diff --git a/.storybook/decorators/withNextLink.tsx b/.storybook/decorators/withNextLink.tsx new file mode 100644 index 00000000..a3d3b983 --- /dev/null +++ b/.storybook/decorators/withNextLink.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Decorator } from '@storybook/react'; + +import { LinkProvider } from '../../src/providers/NextLinkProvider'; + +const withNextLink: Decorator = (StoryFn) => { + // consumers of the library pass in actual React/Next.js links + const FakeLink = function ({ children }) { + return ( + + {children} + + ); + }; + return ( + + + + ); +}; +export default withNextLink; diff --git a/.storybook/globals.css b/.storybook/globals.css deleted file mode 100644 index 25866e0c..00000000 --- a/.storybook/globals.css +++ /dev/null @@ -1,1891 +0,0 @@ -/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */ -@layer properties { - @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or - ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) { - *, - :before, - :after, - ::backdrop { - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-translate-z: 0; - --tw-space-x-reverse: 0; - --tw-border-style: solid; - --tw-leading: initial; - --tw-font-weight: initial; - --tw-tracking: initial; - --tw-ordinal: initial; - --tw-slashed-zero: initial; - --tw-numeric-figure: initial; - --tw-numeric-spacing: initial; - --tw-numeric-fraction: initial; - --tw-shadow: 0 0 #0000; - --tw-shadow-color: initial; - --tw-shadow-alpha: 100%; - --tw-inset-shadow: 0 0 #0000; - --tw-inset-shadow-color: initial; - --tw-inset-shadow-alpha: 100%; - --tw-ring-color: initial; - --tw-ring-shadow: 0 0 #0000; - --tw-inset-ring-color: initial; - --tw-inset-ring-shadow: 0 0 #0000; - --tw-ring-inset: initial; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-offset-shadow: 0 0 #0000; - --tw-duration: initial; - --tw-ease: initial; - } - } -} -@layer theme { - :root, - :host { - --lib-font-sans: - ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; - --lib-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; - --lib-color-black: #000; - --lib-color-white: #fff; - --lib-spacing: 0.25rem; - --lib-text-xs: 0.75rem; - --lib-text-xs--line-height: calc(1 / 0.75); - --lib-text-sm: 0.875rem; - --lib-text-sm--line-height: calc(1.25 / 0.875); - --lib-text-base: 1rem; - --lib-text-base--line-height: 1.5; - --lib-text-lg: 1.125rem; - --lib-text-lg--line-height: calc(1.75 / 1.125); - --lib-font-weight-normal: 400; - --lib-font-weight-medium: 500; - --lib-font-weight-semibold: 600; - --lib-tracking-tight: -0.025em; - --lib-tracking-widest: 0.1em; - --lib-radius-xs: 0.125rem; - --lib-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); - --lib-animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; - --lib-aspect-video: 16/9; - --lib-default-transition-duration: 0.15s; - --lib-default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); - --lib-default-font-family: var(--lib-font-sans); - --lib-default-mono-font-family: var(--lib-font-mono); - } -} -@layer base { - *, - :after, - :before, - ::backdrop { - box-sizing: border-box; - border: 0 solid; - margin: 0; - padding: 0; - } - ::file-selector-button { - box-sizing: border-box; - border: 0 solid; - margin: 0; - padding: 0; - } - html, - :host { - -webkit-text-size-adjust: 100%; - tab-size: 4; - line-height: 1.5; - font-family: var( - --lib-default-font-family, - ui-sans-serif, - system-ui, - sans-serif, - 'Apple Color Emoji', - 'Segoe UI Emoji', - 'Segoe UI Symbol', - 'Noto Color Emoji' - ); - font-feature-settings: var(--lib-default-font-feature-settings, normal); - font-variation-settings: var(--lib-default-font-variation-settings, normal); - -webkit-tap-highlight-color: transparent; - } - hr { - height: 0; - color: inherit; - border-top-width: 1px; - } - abbr:where([title]) { - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; - } - h1, - h2, - h3, - h4, - h5, - h6 { - font-size: inherit; - font-weight: inherit; - } - a { - color: inherit; - -webkit-text-decoration: inherit; - text-decoration: inherit; - } - b, - strong { - font-weight: bolder; - } - code, - kbd, - samp, - pre { - font-family: var( - --lib-default-mono-font-family, - ui-monospace, - SFMono-Regular, - Menlo, - Monaco, - Consolas, - 'Liberation Mono', - 'Courier New', - monospace - ); - font-feature-settings: var(--lib-default-mono-font-feature-settings, normal); - font-variation-settings: var(--lib-default-mono-font-variation-settings, normal); - font-size: 1em; - } - small { - font-size: 80%; - } - sub, - sup { - vertical-align: baseline; - font-size: 75%; - line-height: 0; - position: relative; - } - sub { - bottom: -0.25em; - } - sup { - top: -0.5em; - } - table { - text-indent: 0; - border-color: inherit; - border-collapse: collapse; - } - :-moz-focusring { - outline: auto; - } - progress { - vertical-align: baseline; - } - summary { - display: list-item; - } - ol, - ul, - menu { - list-style: none; - } - img, - svg, - video, - canvas, - audio, - iframe, - embed, - object { - vertical-align: middle; - display: block; - } - img, - video { - max-width: 100%; - height: auto; - } - button, - input, - select, - optgroup, - textarea { - font: inherit; - font-feature-settings: inherit; - font-variation-settings: inherit; - letter-spacing: inherit; - color: inherit; - opacity: 1; - background-color: #0000; - border-radius: 0; - } - ::file-selector-button { - font: inherit; - font-feature-settings: inherit; - font-variation-settings: inherit; - letter-spacing: inherit; - color: inherit; - opacity: 1; - background-color: #0000; - border-radius: 0; - } - :where(select:is([multiple], [size])) optgroup { - font-weight: bolder; - } - :where(select:is([multiple], [size])) optgroup option { - padding-inline-start: 20px; - } - ::file-selector-button { - margin-inline-end: 4px; - } - ::placeholder { - opacity: 1; - } - @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) { - ::placeholder { - color: currentColor; - } - @supports (color: color-mix(in lab, red, red)) { - ::placeholder { - color: color-mix(in oklab, currentcolor 50%, transparent); - } - } - } - textarea { - resize: vertical; - } - ::-webkit-search-decoration { - -webkit-appearance: none; - } - ::-webkit-date-and-time-value { - min-height: 1lh; - text-align: inherit; - } - ::-webkit-datetime-edit { - display: inline-flex; - } - ::-webkit-datetime-edit-fields-wrapper { - padding: 0; - } - ::-webkit-datetime-edit { - padding-block: 0; - } - ::-webkit-datetime-edit-year-field { - padding-block: 0; - } - ::-webkit-datetime-edit-month-field { - padding-block: 0; - } - ::-webkit-datetime-edit-day-field { - padding-block: 0; - } - ::-webkit-datetime-edit-hour-field { - padding-block: 0; - } - ::-webkit-datetime-edit-minute-field { - padding-block: 0; - } - ::-webkit-datetime-edit-second-field { - padding-block: 0; - } - ::-webkit-datetime-edit-millisecond-field { - padding-block: 0; - } - ::-webkit-datetime-edit-meridiem-field { - padding-block: 0; - } - :-moz-ui-invalid { - box-shadow: none; - } - button, - input:where([type='button'], [type='reset'], [type='submit']) { - appearance: button; - } - ::file-selector-button { - appearance: button; - } - ::-webkit-inner-spin-button { - height: auto; - } - ::-webkit-outer-spin-button { - height: auto; - } - [hidden]:where(:not([hidden='until-found'])) { - display: none !important; - } - * { - border-color: var(--border); - outline-color: var(--ring); - } - @supports (color: color-mix(in lab, red, red)) { - * { - outline-color: color-mix(in oklab, var(--ring) 50%, transparent); - } - } - body { - background-color: var(--background); - color: var(--foreground); - } -} -@layer components; -@layer utilities { - .lib\:\@container\/card-header { - container: card-header/inline-size; - } - .lib\:pointer-events-none { - pointer-events: none; - } - .lib\:invisible { - visibility: hidden; - } - .lib\:sr-only { - clip: rect(0, 0, 0, 0); - white-space: nowrap; - border-width: 0; - width: 1px; - height: 1px; - margin: -1px; - padding: 0; - position: absolute; - overflow: hidden; - } - .lib\:absolute { - position: absolute; - } - .lib\:fixed { - position: fixed; - } - .lib\:relative { - position: relative; - } - .lib\:inset-0 { - inset: calc(var(--lib-spacing) * 0); - } - .lib\:inset-x-0 { - inset-inline: calc(var(--lib-spacing) * 0); - } - .lib\:inset-y-0 { - inset-block: calc(var(--lib-spacing) * 0); - } - .lib\:-top-12 { - top: calc(var(--lib-spacing) * -12); - } - .lib\:top-0 { - top: calc(var(--lib-spacing) * 0); - } - .lib\:top-1\.5 { - top: calc(var(--lib-spacing) * 1.5); - } - .lib\:top-1\/2 { - top: 50%; - } - .lib\:top-3\.5 { - top: calc(var(--lib-spacing) * 3.5); - } - .lib\:top-4 { - top: calc(var(--lib-spacing) * 4); - } - .lib\:top-\[1px\] { - top: 1px; - } - .lib\:top-\[50\%\] { - top: 50%; - } - .lib\:top-\[60\%\] { - top: 60%; - } - .lib\:top-full { - top: 100%; - } - .lib\:-right-12 { - right: calc(var(--lib-spacing) * -12); - } - .lib\:right-0 { - right: calc(var(--lib-spacing) * 0); - } - .lib\:right-1 { - right: calc(var(--lib-spacing) * 1); - } - .lib\:right-2 { - right: calc(var(--lib-spacing) * 2); - } - .lib\:right-3 { - right: calc(var(--lib-spacing) * 3); - } - .lib\:right-4 { - right: calc(var(--lib-spacing) * 4); - } - .lib\:-bottom-12 { - bottom: calc(var(--lib-spacing) * -12); - } - .lib\:bottom-0 { - bottom: calc(var(--lib-spacing) * 0); - } - .lib\:-left-12 { - left: calc(var(--lib-spacing) * -12); - } - .lib\:left-0 { - left: calc(var(--lib-spacing) * 0); - } - .lib\:left-1 { - left: calc(var(--lib-spacing) * 1); - } - .lib\:left-1\/2 { - left: 50%; - } - .lib\:left-2 { - left: calc(var(--lib-spacing) * 2); - } - .lib\:left-\[50\%\] { - left: 50%; - } - .lib\:isolate { - isolation: isolate; - } - .lib\:z-10 { - z-index: 10; - } - .lib\:z-20 { - z-index: 20; - } - .lib\:z-50 { - z-index: 50; - } - .lib\:z-\[1\] { - z-index: 1; - } - .lib\:col-start-2 { - grid-column-start: 2; - } - .lib\:row-span-2 { - grid-row: span 2 / span 2; - } - .lib\:row-start-1 { - grid-row-start: 1; - } - .lib\:-mx-1 { - margin-inline: calc(var(--lib-spacing) * -1); - } - .lib\:mx-2 { - margin-inline: calc(var(--lib-spacing) * 2); - } - .lib\:mx-3\.5 { - margin-inline: calc(var(--lib-spacing) * 3.5); - } - .lib\:mx-auto { - margin-inline: auto; - } - .lib\:my-1 { - margin-block: calc(var(--lib-spacing) * 1); - } - .lib\:-mt-4 { - margin-top: calc(var(--lib-spacing) * -4); - } - .lib\:mt-1\.5 { - margin-top: calc(var(--lib-spacing) * 1.5); - } - .lib\:mt-2 { - margin-top: calc(var(--lib-spacing) * 2); - } - .lib\:mt-4 { - margin-top: calc(var(--lib-spacing) * 4); - } - .lib\:mt-auto { - margin-top: auto; - } - .lib\:-ml-4 { - margin-left: calc(var(--lib-spacing) * -4); - } - .lib\:ml-1 { - margin-left: calc(var(--lib-spacing) * 1); - } - .lib\:ml-auto { - margin-left: auto; - } - .lib\:line-clamp-1 { - -webkit-line-clamp: 1; - -webkit-box-orient: vertical; - display: -webkit-box; - overflow: hidden; - } - .lib\:block { - display: block; - } - .lib\:flex { - display: flex; - } - .lib\:grid { - display: grid; - } - .lib\:hidden { - display: none; - } - .lib\:inline-flex { - display: inline-flex; - } - .lib\:field-sizing-content { - field-sizing: content; - } - .lib\:aspect-square { - aspect-ratio: 1; - } - .lib\:aspect-video { - aspect-ratio: var(--lib-aspect-video); - } - .lib\:size-2 { - width: calc(var(--lib-spacing) * 2); - height: calc(var(--lib-spacing) * 2); - } - .lib\:size-2\.5 { - width: calc(var(--lib-spacing) * 2.5); - height: calc(var(--lib-spacing) * 2.5); - } - .lib\:size-3 { - width: calc(var(--lib-spacing) * 3); - height: calc(var(--lib-spacing) * 3); - } - .lib\:size-3\.5 { - width: calc(var(--lib-spacing) * 3.5); - height: calc(var(--lib-spacing) * 3.5); - } - .lib\:size-4 { - width: calc(var(--lib-spacing) * 4); - height: calc(var(--lib-spacing) * 4); - } - .lib\:size-7 { - width: calc(var(--lib-spacing) * 7); - height: calc(var(--lib-spacing) * 7); - } - .lib\:size-8 { - width: calc(var(--lib-spacing) * 8); - height: calc(var(--lib-spacing) * 8); - } - .lib\:size-9 { - width: calc(var(--lib-spacing) * 9); - height: calc(var(--lib-spacing) * 9); - } - .lib\:size-full { - width: 100%; - height: 100%; - } - .lib\:h-1\.5 { - height: calc(var(--lib-spacing) * 1.5); - } - .lib\:h-2 { - height: calc(var(--lib-spacing) * 2); - } - .lib\:h-2\.5 { - height: calc(var(--lib-spacing) * 2.5); - } - .lib\:h-4 { - height: calc(var(--lib-spacing) * 4); - } - .lib\:h-5 { - height: calc(var(--lib-spacing) * 5); - } - .lib\:h-7 { - height: calc(var(--lib-spacing) * 7); - } - .lib\:h-8 { - height: calc(var(--lib-spacing) * 8); - } - .lib\:h-9 { - height: calc(var(--lib-spacing) * 9); - } - .lib\:h-10 { - height: calc(var(--lib-spacing) * 10); - } - .lib\:h-12 { - height: calc(var(--lib-spacing) * 12); - } - .lib\:h-\[1\.15rem\] { - height: 1.15rem; - } - .lib\:h-\[calc\(100\%-1px\)\] { - height: calc(100% - 1px); - } - .lib\:h-\[var\(--radix-navigation-menu-viewport-height\)\] { - height: var(--radix-navigation-menu-viewport-height); - } - .lib\:h-\[var\(--radix-select-trigger-height\)\] { - height: var(--radix-select-trigger-height); - } - .lib\:h-auto { - height: auto; - } - .lib\:h-full { - height: 100%; - } - .lib\:h-px { - height: 1px; - } - .lib\:h-svh { - height: 100svh; - } - .lib\:max-h-\(--radix-context-menu-content-available-height\) { - max-height: var(--radix-context-menu-content-available-height); - } - .lib\:max-h-\(--radix-dropdown-menu-content-available-height\) { - max-height: var(--radix-dropdown-menu-content-available-height); - } - .lib\:max-h-\(--radix-select-content-available-height\) { - max-height: var(--radix-select-content-available-height); - } - .lib\:max-h-\[300px\] { - max-height: 300px; - } - .lib\:min-h-0 { - min-height: calc(var(--lib-spacing) * 0); - } - .lib\:min-h-4 { - min-height: calc(var(--lib-spacing) * 4); - } - .lib\:min-h-16 { - min-height: calc(var(--lib-spacing) * 16); - } - .lib\:min-h-svh { - min-height: 100svh; - } - .lib\:w-\(--sidebar-width\) { - width: var(--sidebar-width); - } - .lib\:w-2 { - width: calc(var(--lib-spacing) * 2); - } - .lib\:w-2\.5 { - width: calc(var(--lib-spacing) * 2.5); - } - .lib\:w-3 { - width: calc(var(--lib-spacing) * 3); - } - .lib\:w-3\/4 { - width: 75%; - } - .lib\:w-4 { - width: calc(var(--lib-spacing) * 4); - } - .lib\:w-5 { - width: calc(var(--lib-spacing) * 5); - } - .lib\:w-8 { - width: calc(var(--lib-spacing) * 8); - } - .lib\:w-9 { - width: calc(var(--lib-spacing) * 9); - } - .lib\:w-64 { - width: calc(var(--lib-spacing) * 64); - } - .lib\:w-72 { - width: calc(var(--lib-spacing) * 72); - } - .lib\:w-\[100px\] { - width: 100px; - } - .lib\:w-auto { - width: auto; - } - .lib\:w-fit { - width: fit-content; - } - .lib\:w-full { - width: 100%; - } - .lib\:w-max { - width: max-content; - } - .lib\:w-px { - width: 1px; - } - .lib\:max-w-\(--skeleton-width\) { - max-width: var(--skeleton-width); - } - .lib\:max-w-\[calc\(100\%-2rem\)\] { - max-width: calc(100% - 2rem); - } - .lib\:max-w-max { - max-width: max-content; - } - .lib\:min-w-0 { - min-width: calc(var(--lib-spacing) * 0); - } - .lib\:min-w-5 { - min-width: calc(var(--lib-spacing) * 5); - } - .lib\:min-w-8 { - min-width: calc(var(--lib-spacing) * 8); - } - .lib\:min-w-9 { - min-width: calc(var(--lib-spacing) * 9); - } - .lib\:min-w-10 { - min-width: calc(var(--lib-spacing) * 10); - } - .lib\:min-w-\[8rem\] { - min-width: 8rem; - } - .lib\:min-w-\[12rem\] { - min-width: 12rem; - } - .lib\:min-w-\[var\(--radix-select-trigger-width\)\] { - min-width: var(--radix-select-trigger-width); - } - .lib\:flex-1 { - flex: 1; - } - .lib\:shrink-0 { - flex-shrink: 0; - } - .lib\:grow { - flex-grow: 1; - } - .lib\:grow-0 { - flex-grow: 0; - } - .lib\:basis-full { - flex-basis: 100%; - } - .lib\:caption-bottom { - caption-side: bottom; - } - .lib\:border-collapse { - border-collapse: collapse; - } - .lib\:origin-\(--radix-context-menu-content-transform-origin\) { - transform-origin: var(--radix-context-menu-content-transform-origin); - } - .lib\:origin-\(--radix-dropdown-menu-content-transform-origin\) { - transform-origin: var(--radix-dropdown-menu-content-transform-origin); - } - .lib\:origin-\(--radix-hover-card-content-transform-origin\) { - transform-origin: var(--radix-hover-card-content-transform-origin); - } - .lib\:origin-\(--radix-menubar-content-transform-origin\) { - transform-origin: var(--radix-menubar-content-transform-origin); - } - .lib\:origin-\(--radix-popover-content-transform-origin\) { - transform-origin: var(--radix-popover-content-transform-origin); - } - .lib\:origin-\(--radix-select-content-transform-origin\) { - transform-origin: var(--radix-select-content-transform-origin); - } - .lib\:origin-\(--radix-tooltip-content-transform-origin\) { - transform-origin: var(--radix-tooltip-content-transform-origin); - } - .lib\:-translate-x-1\/2 { - --tw-translate-x: -50%; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:-translate-x-px { - --tw-translate-x: -1px; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-x-\[-50\%\] { - --tw-translate-x: -50%; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-x-px { - --tw-translate-x: 1px; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:-translate-y-1\/2 { - --tw-translate-y: -50%; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-y-0\.5 { - --tw-translate-y: calc(var(--lib-spacing) * 0.5); - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-y-\[-50\%\] { - --tw-translate-y: -50%; - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:translate-y-\[calc\(-50\%_-_2px\)\] { - --tw-translate-y: calc(-50% - 2px); - translate: var(--tw-translate-x) var(--tw-translate-y); - } - .lib\:rotate-45 { - rotate: 45deg; - } - .lib\:rotate-90 { - rotate: 90deg; - } - .lib\:animate-caret-blink { - animation: 1.25s ease-out infinite caret-blink; - } - .lib\:animate-in { - animation: enter var(--tw-animation-duration, var(--tw-duration, 0.15s)) var(--tw-ease, ease); - } - .lib\:animate-pulse { - animation: var(--lib-animate-pulse); - } - .lib\:cursor-default { - cursor: default; - } - .lib\:touch-none { - touch-action: none; - } - .lib\:scroll-my-1 { - scroll-margin-block: calc(var(--lib-spacing) * 1); - } - .lib\:scroll-py-1 { - scroll-padding-block: calc(var(--lib-spacing) * 1); - } - .lib\:list-none { - list-style-type: none; - } - .lib\:auto-rows-min { - grid-auto-rows: min-content; - } - .lib\:grid-cols-\[0_1fr\] { - grid-template-columns: 0 1fr; - } - .lib\:grid-rows-\[auto_auto\] { - grid-template-rows: auto auto; - } - .lib\:flex-col { - flex-direction: column; - } - .lib\:flex-col-reverse { - flex-direction: column-reverse; - } - .lib\:flex-row { - flex-direction: row; - } - .lib\:flex-wrap { - flex-wrap: wrap; - } - .lib\:items-center { - align-items: center; - } - .lib\:items-end { - align-items: flex-end; - } - .lib\:items-start { - align-items: flex-start; - } - .lib\:items-stretch { - align-items: stretch; - } - .lib\:justify-between { - justify-content: space-between; - } - .lib\:justify-center { - justify-content: center; - } - .lib\:justify-items-start { - justify-items: start; - } - .lib\:gap-1 { - gap: calc(var(--lib-spacing) * 1); - } - .lib\:gap-1\.5 { - gap: calc(var(--lib-spacing) * 1.5); - } - .lib\:gap-2 { - gap: calc(var(--lib-spacing) * 2); - } - .lib\:gap-3 { - gap: calc(var(--lib-spacing) * 3); - } - .lib\:gap-4 { - gap: calc(var(--lib-spacing) * 4); - } - .lib\:gap-6 { - gap: calc(var(--lib-spacing) * 6); - } - :where(.lib\:space-x-1 > :not(:last-child)) { - --tw-space-x-reverse: 0; - margin-inline-start: calc(calc(var(--lib-spacing) * 1) * var(--tw-space-x-reverse)); - margin-inline-end: calc(calc(var(--lib-spacing) * 1) * calc(1 - var(--tw-space-x-reverse))); - } - .lib\:gap-y-0\.5 { - row-gap: calc(var(--lib-spacing) * 0.5); - } - .lib\:self-start { - align-self: flex-start; - } - .lib\:justify-self-end { - justify-self: flex-end; - } - .lib\:overflow-auto { - overflow: auto; - } - .lib\:overflow-hidden { - overflow: hidden; - } - .lib\:overflow-x-auto { - overflow-x: auto; - } - .lib\:overflow-x-hidden { - overflow-x: hidden; - } - .lib\:overflow-y-auto { - overflow-y: auto; - } - .lib\:rounded-\[2px\] { - border-radius: 2px; - } - .lib\:rounded-\[4px\] { - border-radius: 4px; - } - .lib\:rounded-\[inherit\] { - border-radius: inherit; - } - .lib\:rounded-full { - border-radius: 3.40282e38px; - } - .lib\:rounded-lg { - border-radius: var(--radius); - } - .lib\:rounded-md { - border-radius: calc(var(--radius) - 2px); - } - .lib\:rounded-none { - border-radius: 0; - } - .lib\:rounded-sm { - border-radius: calc(var(--radius) - 4px); - } - .lib\:rounded-xl { - border-radius: calc(var(--radius) + 4px); - } - .lib\:rounded-xs { - border-radius: var(--lib-radius-xs); - } - .lib\:rounded-tl-sm { - border-top-left-radius: calc(var(--radius) - 4px); - } - .lib\:border { - border-style: var(--tw-border-style); - border-width: 1px; - } - .lib\:border-y { - border-block-style: var(--tw-border-style); - border-block-width: 1px; - } - .lib\:border-t { - border-top-style: var(--tw-border-style); - border-top-width: 1px; - } - .lib\:border-r { - border-right-style: var(--tw-border-style); - border-right-width: 1px; - } - .lib\:border-b { - border-bottom-style: var(--tw-border-style); - border-bottom-width: 1px; - } - .lib\:border-l { - border-left-style: var(--tw-border-style); - border-left-width: 1px; - } - .lib\:border-\(--color-border\) { - border-color: var(--color-border); - } - .lib\:border-border\/50 { - border-color: var(--border); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:border-border\/50 { - border-color: color-mix(in oklab, var(--border) 50%, transparent); - } - } - .lib\:border-input { - border-color: var(--input); - } - .lib\:border-primary { - border-color: var(--primary); - } - .lib\:border-sidebar-border { - border-color: var(--sidebar-border); - } - .lib\:border-transparent { - border-color: #0000; - } - .lib\:border-t-transparent { - border-top-color: #0000; - } - .lib\:border-l-transparent { - border-left-color: #0000; - } - .lib\:bg-\(--color-bg\) { - background-color: var(--color-bg); - } - .lib\:bg-accent { - background-color: var(--accent); - } - .lib\:bg-background { - background-color: var(--background); - } - .lib\:bg-black\/50 { - background-color: var(--lib-color-black); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:bg-black\/50 { - background-color: color-mix(in oklab, var(--lib-color-black) 50%, transparent); - } - } - .lib\:bg-border { - background-color: var(--border); - } - .lib\:bg-card { - background-color: var(--card); - } - .lib\:bg-destructive { - background-color: var(--destructive); - } - .lib\:bg-foreground { - background-color: var(--foreground); - } - .lib\:bg-muted, - .lib\:bg-muted\/50 { - background-color: var(--muted); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:bg-muted\/50 { - background-color: color-mix(in oklab, var(--muted) 50%, transparent); - } - } - .lib\:bg-popover { - background-color: var(--popover); - } - .lib\:bg-primary, - .lib\:bg-primary\/20 { - background-color: var(--primary); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:bg-primary\/20 { - background-color: color-mix(in oklab, var(--primary) 20%, transparent); - } - } - .lib\:bg-secondary { - background-color: var(--secondary); - } - .lib\:bg-sidebar { - background-color: var(--sidebar); - } - .lib\:bg-sidebar-border { - background-color: var(--sidebar-border); - } - .lib\:bg-transparent { - background-color: #0000; - } - .lib\:fill-current { - fill: currentColor; - } - .lib\:fill-primary { - fill: var(--primary); - } - .lib\:p-0 { - padding: calc(var(--lib-spacing) * 0); - } - .lib\:p-1 { - padding: calc(var(--lib-spacing) * 1); - } - .lib\:p-2 { - padding: calc(var(--lib-spacing) * 2); - } - .lib\:p-3 { - padding: calc(var(--lib-spacing) * 3); - } - .lib\:p-4 { - padding: calc(var(--lib-spacing) * 4); - } - .lib\:p-6 { - padding: calc(var(--lib-spacing) * 6); - } - .lib\:p-\[3px\] { - padding: 3px; - } - .lib\:p-px { - padding: 1px; - } - .lib\:px-1 { - padding-inline: calc(var(--lib-spacing) * 1); - } - .lib\:px-1\.5 { - padding-inline: calc(var(--lib-spacing) * 1.5); - } - .lib\:px-2 { - padding-inline: calc(var(--lib-spacing) * 2); - } - .lib\:px-2\.5 { - padding-inline: calc(var(--lib-spacing) * 2.5); - } - .lib\:px-3 { - padding-inline: calc(var(--lib-spacing) * 3); - } - .lib\:px-4 { - padding-inline: calc(var(--lib-spacing) * 4); - } - .lib\:px-6 { - padding-inline: calc(var(--lib-spacing) * 6); - } - .lib\:py-0\.5 { - padding-block: calc(var(--lib-spacing) * 0.5); - } - .lib\:py-1 { - padding-block: calc(var(--lib-spacing) * 1); - } - .lib\:py-1\.5 { - padding-block: calc(var(--lib-spacing) * 1.5); - } - .lib\:py-2 { - padding-block: calc(var(--lib-spacing) * 2); - } - .lib\:py-3 { - padding-block: calc(var(--lib-spacing) * 3); - } - .lib\:py-4 { - padding-block: calc(var(--lib-spacing) * 4); - } - .lib\:py-6 { - padding-block: calc(var(--lib-spacing) * 6); - } - .lib\:pt-0 { - padding-top: calc(var(--lib-spacing) * 0); - } - .lib\:pt-1 { - padding-top: calc(var(--lib-spacing) * 1); - } - .lib\:pt-3 { - padding-top: calc(var(--lib-spacing) * 3); - } - .lib\:pt-4 { - padding-top: calc(var(--lib-spacing) * 4); - } - .lib\:pr-2 { - padding-right: calc(var(--lib-spacing) * 2); - } - .lib\:pr-2\.5 { - padding-right: calc(var(--lib-spacing) * 2.5); - } - .lib\:pr-8 { - padding-right: calc(var(--lib-spacing) * 8); - } - .lib\:pb-3 { - padding-bottom: calc(var(--lib-spacing) * 3); - } - .lib\:pb-4 { - padding-bottom: calc(var(--lib-spacing) * 4); - } - .lib\:pl-2 { - padding-left: calc(var(--lib-spacing) * 2); - } - .lib\:pl-4 { - padding-left: calc(var(--lib-spacing) * 4); - } - .lib\:pl-8 { - padding-left: calc(var(--lib-spacing) * 8); - } - .lib\:text-center { - text-align: center; - } - .lib\:text-left { - text-align: left; - } - .lib\:align-middle { - vertical-align: middle; - } - .lib\:font-mono { - font-family: var(--lib-font-mono); - } - .lib\:text-base { - font-size: var(--lib-text-base); - line-height: var(--tw-leading, var(--lib-text-base--line-height)); - } - .lib\:text-lg { - font-size: var(--lib-text-lg); - line-height: var(--tw-leading, var(--lib-text-lg--line-height)); - } - .lib\:text-sm { - font-size: var(--lib-text-sm); - line-height: var(--tw-leading, var(--lib-text-sm--line-height)); - } - .lib\:text-xs { - font-size: var(--lib-text-xs); - line-height: var(--tw-leading, var(--lib-text-xs--line-height)); - } - .lib\:text-\[0\.8rem\] { - font-size: 0.8rem; - } - .lib\:leading-none { - --tw-leading: 1; - line-height: 1; - } - .lib\:font-medium { - --tw-font-weight: var(--lib-font-weight-medium); - font-weight: var(--lib-font-weight-medium); - } - .lib\:font-normal { - --tw-font-weight: var(--lib-font-weight-normal); - font-weight: var(--lib-font-weight-normal); - } - .lib\:font-semibold { - --tw-font-weight: var(--lib-font-weight-semibold); - font-weight: var(--lib-font-weight-semibold); - } - .lib\:tracking-tight { - --tw-tracking: var(--lib-tracking-tight); - letter-spacing: var(--lib-tracking-tight); - } - .lib\:tracking-widest { - --tw-tracking: var(--lib-tracking-widest); - letter-spacing: var(--lib-tracking-widest); - } - .lib\:text-balance { - text-wrap: balance; - } - .lib\:break-words { - overflow-wrap: break-word; - } - .lib\:whitespace-nowrap { - white-space: nowrap; - } - .lib\:text-accent-foreground { - color: var(--accent-foreground); - } - .lib\:text-card-foreground { - color: var(--card-foreground); - } - .lib\:text-current { - color: currentColor; - } - .lib\:text-destructive { - color: var(--destructive); - } - .lib\:text-foreground { - color: var(--foreground); - } - .lib\:text-muted-foreground { - color: var(--muted-foreground); - } - .lib\:text-popover-foreground { - color: var(--popover-foreground); - } - .lib\:text-primary { - color: var(--primary); - } - .lib\:text-primary-foreground { - color: var(--primary-foreground); - } - .lib\:text-secondary-foreground { - color: var(--secondary-foreground); - } - .lib\:text-sidebar-foreground, - .lib\:text-sidebar-foreground\/70 { - color: var(--sidebar-foreground); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:text-sidebar-foreground\/70 { - color: color-mix(in oklab, var(--sidebar-foreground) 70%, transparent); - } - } - .lib\:text-white { - color: var(--lib-color-white); - } - .lib\:tabular-nums { - --tw-numeric-spacing: tabular-nums; - font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) - var(--tw-numeric-spacing,) var(--tw-numeric-fraction,); - } - .lib\:underline-offset-4 { - text-underline-offset: 4px; - } - .lib\:opacity-50 { - opacity: 0.5; - } - .lib\:opacity-70 { - opacity: 0.7; - } - .lib\:shadow { - --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\] { - --tw-shadow: 0 0 0 1px var(--tw-shadow-color, hsl(var(--sidebar-border))); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-lg { - --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a), 0 4px 6px -4px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-md { - --tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, #0000001a), 0 2px 4px -2px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-none { - --tw-shadow: 0 0 #0000; - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-sm { - --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-xl { - --tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, #0000001a), 0 8px 10px -6px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:shadow-xs { - --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:ring-0 { - --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + var(--tw-ring-offset-width)) - var(--tw-ring-color, currentcolor); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:ring-ring\/50 { - --tw-ring-color: var(--ring); - } - @supports (color: color-mix(in lab, red, red)) { - .lib\:ring-ring\/50 { - --tw-ring-color: color-mix(in oklab, var(--ring) 50%, transparent); - } - } - .lib\:ring-sidebar-ring { - --tw-ring-color: var(--sidebar-ring); - } - .lib\:ring-offset-background { - --tw-ring-offset-color: var(--background); - } - .lib\:outline-hidden { - --tw-outline-style: none; - outline-style: none; - } - @media (forced-colors: active) { - .lib\:outline-hidden { - outline-offset: 2px; - outline: 2px solid #0000; - } - } - .lib\:transition { - transition-property: - color, - background-color, - border-color, - outline-color, - text-decoration-color, - fill, - stroke, - --tw-gradient-from, - --tw-gradient-via, - --tw-gradient-to, - opacity, - box-shadow, - transform, - translate, - scale, - rotate, - filter, - -webkit-backdrop-filter, - backdrop-filter, - display, - visibility, - content-visibility, - overlay, - pointer-events; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[color\,box-shadow\] { - transition-property: color, box-shadow; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[left\,right\,width\] { - transition-property: left, right, width; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[margin\,opacity\] { - transition-property: margin, opacity; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[width\,height\,padding\] { - transition-property: width, height, padding; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-\[width\] { - transition-property: width; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-all { - transition-property: all; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-colors { - transition-property: - color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, - --tw-gradient-via, --tw-gradient-to; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-opacity { - transition-property: opacity; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-shadow { - transition-property: box-shadow; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-transform { - transition-property: transform, translate, scale, rotate; - transition-timing-function: var(--tw-ease, var(--lib-default-transition-timing-function)); - transition-duration: var(--tw-duration, var(--lib-default-transition-duration)); - } - .lib\:transition-none { - transition-property: none; - } - .lib\:duration-200 { - --tw-duration: 0.2s; - transition-duration: 0.2s; - } - .lib\:duration-300 { - --tw-duration: 0.3s; - transition-duration: 0.3s; - } - .lib\:duration-1000 { - --tw-duration: 1s; - transition-duration: 1s; - } - .lib\:ease-in-out { - --tw-ease: var(--lib-ease-in-out); - transition-timing-function: var(--lib-ease-in-out); - } - .lib\:ease-linear { - --tw-ease: linear; - transition-timing-function: linear; - } - .lib\:fade-in-0 { - --tw-enter-opacity: 0; - } - .lib\:outline-none { - --tw-outline-style: none; - outline-style: none; - } - .lib\:select-none { - -webkit-user-select: none; - user-select: none; - } - .lib\:zoom-in-95 { - --tw-enter-scale: 0.95; - } - .lib\:group-focus-within\/menu-item\:opacity-100:is(:where(.lib\:group\/menu-item):focus-within *) { - opacity: 1; - } - @media (hover: hover) { - .lib\:group-hover\/menu-item\:opacity-100:is(:where(.lib\:group\/menu-item):hover *) { - opacity: 1; - } - } - .lib\:group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is( - :where(.lib\:group\/menu-item):has([data-sidebar='menu-action']) * - ) { - padding-right: calc(var(--lib-spacing) * 8); - } - .lib\:group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:block:is( - :where(.lib\:group\/drawer-content)[data-vaul-drawer-direction='bottom'] * - ) { - display: block; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:top-full:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - top: 100%; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - margin-top: calc(var(--lib-spacing) * 1.5); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - overflow: hidden; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - border-radius: calc(var(--radius) - 2px); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:border:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - border-style: var(--tw-border-style); - border-width: 1px; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - background-color: var(--popover); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - color: var(--popover-foreground); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:shadow:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a); - box-shadow: - var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), - var(--tw-shadow); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - ) { - --tw-duration: 0.2s; - transition-duration: 0.2s; - } - @media (hover: hover) { - .lib\:peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.lib\:peer\/menu-button):hover ~ *) { - color: var(--sidebar-accent-foreground); - } - } - .lib\:peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is( - :where(.lib\:peer\/menu-button)[data-active='true'] ~ * - ) { - color: var(--sidebar-accent-foreground); - } - .lib\:peer-data-\[size\=default\]\/menu-button\:top-1\.5:is( - :where(.lib\:peer\/menu-button)[data-size='default'] ~ * - ) { - top: calc(var(--lib-spacing) * 1.5); - } - .lib\:peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.lib\:peer\/menu-button)[data-size='lg'] ~ *) { - top: calc(var(--lib-spacing) * 2.5); - } - .lib\:peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.lib\:peer\/menu-button)[data-size='sm'] ~ *) { - top: calc(var(--lib-spacing) * 1); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='closed'] { - animation: exit var(--tw-animation-duration, var(--tw-duration, 0.15s)) var(--tw-ease, ease); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='closed'] { - --tw-exit-opacity: 0; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='closed'] { - --tw-exit-scale: 0.95; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='open'] { - animation: enter var(--tw-animation-duration, var(--tw-duration, 0.15s)) var(--tw-ease, ease); - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='open'] { - --tw-enter-opacity: 0; - } - .lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is( - :where(.lib\:group\/navigation-menu)[data-viewport='false'] * - )[data-state='open'] { - --tw-enter-scale: 0.95; - } -} -:root { - --background: oklch(100% 0 0); - --foreground: oklch(14.5% 0 0); - --card: oklch(100% 0 0); - --card-foreground: oklch(14.5% 0 0); - --popover: oklch(100% 0 0); - --popover-foreground: oklch(14.5% 0 0); - --primary: oklch(20.5% 0 0); - --primary-foreground: oklch(98.5% 0 0); - --secondary: oklch(97% 0 0); - --secondary-foreground: oklch(20.5% 0 0); - --muted: oklch(97% 0 0); - --muted-foreground: oklch(55.6% 0 0); - --accent: oklch(97% 0 0); - --accent-foreground: oklch(20.5% 0 0); - --destructive: oklch(57.7% 0.245 27.325); - --destructive-foreground: oklch(57.7% 0.245 27.325); - --border: oklch(92.2% 0 0); - --input: oklch(92.2% 0 0); - --ring: oklch(70.8% 0 0); - --chart-1: oklch(64.6% 0.222 41.116); - --chart-2: oklch(60% 0.118 184.704); - --chart-3: oklch(39.8% 0.07 227.392); - --chart-4: oklch(82.8% 0.189 84.429); - --chart-5: oklch(76.9% 0.188 70.08); - --radius: 0.625rem; - --sidebar: oklch(98.5% 0 0); - --sidebar-foreground: oklch(14.5% 0 0); - --sidebar-primary: oklch(20.5% 0 0); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(97% 0 0); - --sidebar-accent-foreground: oklch(20.5% 0 0); - --sidebar-border: oklch(92.2% 0 0); - --sidebar-ring: oklch(70.8% 0 0); -} -.dark { - --background: oklch(14.5% 0 0); - --foreground: oklch(98.5% 0 0); - --card: oklch(20.5% 0 0); - --card-foreground: oklch(98.5% 0 0); - --popover: oklch(20.5% 0 0); - --popover-foreground: oklch(98.5% 0 0); - --primary: oklch(92.2% 0 0); - --primary-foreground: oklch(20.5% 0 0); - --secondary: oklch(26.9% 0 0); - --secondary-foreground: oklch(98.5% 0 0); - --muted: oklch(26.9% 0 0); - --muted-foreground: oklch(70.8% 0 0); - --accent: oklch(26.9% 0 0); - --accent-foreground: oklch(98.5% 0 0); - --destructive: oklch(70.4% 0.191 22.216); - --destructive-foreground: oklch(63.7% 0.237 25.331); - --border: oklch(100% 0 0/0.1); - --input: oklch(100% 0 0/0.15); - --ring: oklch(55.6% 0 0); - --chart-1: oklch(48.8% 0.243 264.376); - --chart-2: oklch(69.6% 0.17 162.48); - --chart-3: oklch(76.9% 0.188 70.08); - --chart-4: oklch(62.7% 0.265 303.9); - --chart-5: oklch(64.5% 0.246 16.439); - --sidebar: oklch(20.5% 0 0); - --sidebar-foreground: oklch(98.5% 0 0); - --sidebar-primary: oklch(48.8% 0.243 264.376); - --sidebar-primary-foreground: oklch(98.5% 0 0); - --sidebar-accent: oklch(26.9% 0 0); - --sidebar-accent-foreground: oklch(98.5% 0 0); - --sidebar-border: oklch(100% 0 0/0.1); - --sidebar-ring: oklch(55.6% 0 0); -} -@property --tw-translate-x { - syntax: '*'; - inherits: false; - initial-value: 0; -} -@property --tw-translate-y { - syntax: '*'; - inherits: false; - initial-value: 0; -} -@property --tw-translate-z { - syntax: '*'; - inherits: false; - initial-value: 0; -} -@property --tw-space-x-reverse { - syntax: '*'; - inherits: false; - initial-value: 0; -} -@property --tw-border-style { - syntax: '*'; - inherits: false; - initial-value: solid; -} -@property --tw-leading { - syntax: '*'; - inherits: false; -} -@property --tw-font-weight { - syntax: '*'; - inherits: false; -} -@property --tw-tracking { - syntax: '*'; - inherits: false; -} -@property --tw-ordinal { - syntax: '*'; - inherits: false; -} -@property --tw-slashed-zero { - syntax: '*'; - inherits: false; -} -@property --tw-numeric-figure { - syntax: '*'; - inherits: false; -} -@property --tw-numeric-spacing { - syntax: '*'; - inherits: false; -} -@property --tw-numeric-fraction { - syntax: '*'; - inherits: false; -} -@property --tw-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-shadow-color { - syntax: '*'; - inherits: false; -} -@property --tw-shadow-alpha { - syntax: ''; - inherits: false; - initial-value: 100%; -} -@property --tw-inset-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-inset-shadow-color { - syntax: '*'; - inherits: false; -} -@property --tw-inset-shadow-alpha { - syntax: ''; - inherits: false; - initial-value: 100%; -} -@property --tw-ring-color { - syntax: '*'; - inherits: false; -} -@property --tw-ring-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-inset-ring-color { - syntax: '*'; - inherits: false; -} -@property --tw-inset-ring-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-ring-inset { - syntax: '*'; - inherits: false; -} -@property --tw-ring-offset-width { - syntax: ''; - inherits: false; - initial-value: 0; -} -@property --tw-ring-offset-color { - syntax: '*'; - inherits: false; - initial-value: #fff; -} -@property --tw-ring-offset-shadow { - syntax: '*'; - inherits: false; - initial-value: 0 0 #0000; -} -@property --tw-duration { - syntax: '*'; - inherits: false; -} -@property --tw-ease { - syntax: '*'; - inherits: false; -} -@keyframes pulse { - 50% { - opacity: 0.5; - } -} -@keyframes enter { - 0% { - opacity: var(--tw-enter-opacity, 1); - transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) - scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) - rotate(var(--tw-enter-rotate, 0)); - } -} -@keyframes exit { - to { - opacity: var(--tw-exit-opacity, 1); - transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) - scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) - rotate(var(--tw-exit-rotate, 0)); - } -} -@keyframes caret-blink { - 0%, - 70%, - to { - opacity: 1; - } - 20%, - 50% { - opacity: 0; - } -} -@keyframes react-loading-skeleton { - to { - transform: translate(100%); - } -} -.react-loading-skeleton { - --base-color: #ebebeb; - --highlight-color: #f5f5f5; - --animation-duration: 1.5s; - --animation-direction: normal; - --pseudo-element-display: block; - background-color: var(--base-color); - width: 100%; - border-radius: 0.25rem; - display: inline-flex; - line-height: 1; - position: relative; - user-select: none; - overflow: hidden; -} -.react-loading-skeleton:after { - content: ' '; - display: var(--pseudo-element-display); - position: absolute; - top: 0; - left: 0; - right: 0; - height: 100%; - background-repeat: no-repeat; - background-image: var( - --custom-highlight-background, - linear-gradient(90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100%) - ); - transform: translate(-100%); - animation-name: react-loading-skeleton; - animation-direction: var(--animation-direction); - animation-duration: var(--animation-duration); - animation-timing-function: ease-in-out; - animation-iteration-count: infinite; -} -@media (prefers-reduced-motion) { - .react-loading-skeleton { - --pseudo-element-display: none; - } -} diff --git a/.storybook/main.ts b/.storybook/main.ts index 33c2f882..97d47c05 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -2,7 +2,7 @@ import type { StorybookConfig } from '@storybook/react-vite'; const config: StorybookConfig = { stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], - addons: ['@storybook/addon-onboarding', '@storybook/addon-docs'], + addons: ['@storybook/addon-docs'], framework: { name: '@storybook/react-vite', options: {}, diff --git a/.storybook/manager.ts b/.storybook/manager.ts index 20ac48dc..eafb0a1c 100644 --- a/.storybook/manager.ts +++ b/.storybook/manager.ts @@ -1,4 +1,4 @@ -import { addons } from '@storybook/manager-api'; +import { addons } from 'storybook/manager-api'; import LagoonTheme from './theme'; diff --git a/.storybook/preview.ts b/.storybook/preview.ts index d3672552..142155a5 100644 --- a/.storybook/preview.ts +++ b/.storybook/preview.ts @@ -1,7 +1,9 @@ import type { Preview } from '@storybook/react'; -import './globals.css'; + +import '../src/index.css'; import React from 'react'; +import withNextLink from './decorators/withNextLink'; const preview: Preview = { parameters: { controls: { @@ -29,6 +31,7 @@ const preview: Preview = { }, }, }, + decorators: [withNextLink], }; export default preview; diff --git a/.storybook/theme.js b/.storybook/theme.js index 20f0e206..ab212d1d 100644 --- a/.storybook/theme.js +++ b/.storybook/theme.js @@ -1,4 +1,4 @@ -import { create } from '@storybook/theming'; +import { create } from 'storybook/theming'; import logo from './public/logo.svg'; diff --git a/components.json b/components.json index d608f9ad..b76121fd 100644 --- a/components.json +++ b/components.json @@ -7,8 +7,7 @@ "config": "", "css": "src/index.css", "baseColor": "neutral", - "cssVariables": true, - "prefix": "lib:" + "cssVariables": true }, "aliases": { "components": "@/components", diff --git a/dist/_util/helpers.d.ts b/dist/_util/helpers.d.ts index 882333e2..6645106a 100644 --- a/dist/_util/helpers.d.ts +++ b/dist/_util/helpers.d.ts @@ -1,3 +1,9 @@ +import { NavItems } from '../components/sidenav/Sidenav'; import { ReactNode } from 'react'; export declare const highlightTextInElement: (element: ReactNode, searchString: string, key: string | number) => any; +export declare const genAvatarBackground: (firstLetter: string, secondLetter: string) => { + bgColor: string; + textColor: string; +}; +export declare const getCurrentPath: (navLinks: NavItems, pathname: string) => string; //# sourceMappingURL=helpers.d.ts.map \ No newline at end of file diff --git a/dist/_util/helpers.d.ts.map b/dist/_util/helpers.d.ts.map index 0149467b..fb40a173 100644 --- a/dist/_util/helpers.d.ts.map +++ b/dist/_util/helpers.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/_util/helpers.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,GAAI,SAAS,SAAS,EAAE,cAAc,MAAM,EAAE,KAAK,MAAM,GAAG,MAAM,KAAG,GAqBvG,CAAC"} \ No newline at end of file +{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/_util/helpers.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,sBAAsB,GAAI,SAAS,SAAS,EAAE,cAAc,MAAM,EAAE,KAAK,MAAM,GAAG,MAAM,KAAG,GAqBvG,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC/B,aAAa,MAAM,EACnB,cAAc,MAAM,KAClB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAYtC,CAAC;AAaF,eAAO,MAAM,cAAc,GAAI,UAAU,QAAQ,EAAE,UAAU,MAAM,KAAG,MAKrE,CAAC"} \ No newline at end of file diff --git a/dist/components/AvatarBubble/AvatarBubble.d.ts b/dist/components/AvatarBubble/AvatarBubble.d.ts new file mode 100644 index 00000000..a1b4e2e1 --- /dev/null +++ b/dist/components/AvatarBubble/AvatarBubble.d.ts @@ -0,0 +1,8 @@ +import { HTMLAttributes } from 'react'; +type AvatarBubbleProps = HTMLAttributes & { + bgColor: string; + textColor: string; +}; +export default function AvatarBubble({ bgColor, textColor, className, children, ...props }: AvatarBubbleProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=AvatarBubble.d.ts.map \ No newline at end of file diff --git a/dist/components/AvatarBubble/AvatarBubble.d.ts.map b/dist/components/AvatarBubble/AvatarBubble.d.ts.map new file mode 100644 index 00000000..8d7f35da --- /dev/null +++ b/dist/components/AvatarBubble/AvatarBubble.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AvatarBubble.d.ts","sourceRoot":"","sources":["../../../src/components/AvatarBubble/AvatarBubble.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAKvC,KAAK,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACzD,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+CAM5G"} \ No newline at end of file diff --git a/dist/components/Breadcrumb/Breadcrumb.d.ts b/dist/components/Breadcrumb/Breadcrumb.d.ts new file mode 100644 index 00000000..94616061 --- /dev/null +++ b/dist/components/Breadcrumb/Breadcrumb.d.ts @@ -0,0 +1,26 @@ +import { default as React, FC, MouseEventHandler, ReactElement, ReactNode } from 'react'; +type Component> = ReactElement; +type LinkComponent = Component<'a'>; +export interface BasicProps { + items: ({ + title: string | ReactNode; + navOnClick?: MouseEventHandler; + key?: string | number; + copyText?: string; + } | { + title: LinkComponent; + key?: string | number; + copyText?: string; + })[]; + activeKey?: string | number; +} +export type UIBreadcrumbProps = BasicProps & ({ + type: 'default'; + currentSlug?: never; +} | { + type: 'orgs'; + currentSlug?: 'project' | 'user' | 'group'; +}); +declare const UIBreadcrumb: FC; +export default UIBreadcrumb; +//# sourceMappingURL=Breadcrumb.d.ts.map \ No newline at end of file diff --git a/dist/components/Breadcrumb/Breadcrumb.d.ts.map b/dist/components/Breadcrumb/Breadcrumb.d.ts.map new file mode 100644 index 00000000..dfa36386 --- /dev/null +++ b/dist/components/Breadcrumb/Breadcrumb.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,EAAY,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWxF,KAAK,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,iBAAiB,GAAG,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAC3G,KAAK,aAAa,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;AAOpC,MAAM,WAAW,UAAU;IAC1B,KAAK,EAAE,CACJ;QACA,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;QAC1B,UAAU,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,GAAG,eAAe,CAAC,CAAC;QACpE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACjB,GACD;QACA,KAAK,EAAE,aAAa,CAAC;QACrB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACjB,CACH,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,iBAAiB,GAAG,UAAU,GACzC,CAAC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,WAAW,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC,CAAC;AAE3G,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA2DvC,CAAC;AAGF,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/components/Breadcrumb/index.d.ts b/dist/components/Breadcrumb/index.d.ts new file mode 100644 index 00000000..1ca0dd53 --- /dev/null +++ b/dist/components/Breadcrumb/index.d.ts @@ -0,0 +1,3 @@ +import { default as Breadcrumb } from './Breadcrumb'; +export default Breadcrumb; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Breadcrumb/index.d.ts.map b/dist/components/Breadcrumb/index.d.ts.map new file mode 100644 index 00000000..255c5689 --- /dev/null +++ b/dist/components/Breadcrumb/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Breadcrumb/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/Checkbox/Checkbox.d.ts b/dist/components/Checkbox/Checkbox.d.ts new file mode 100644 index 00000000..a569c4f6 --- /dev/null +++ b/dist/components/Checkbox/Checkbox.d.ts @@ -0,0 +1,12 @@ +import { default as React } from 'react'; +import { Checkbox } from '../ui/checkbox'; +type CheckboxProps = React.ComponentProps & { + label: string; + id: string; +}; +declare function CheckboxWithLabel({ label, id, ...rest }: CheckboxProps): import("react/jsx-dev-runtime").JSX.Element; +declare namespace CheckboxWithLabel { + var displayName: string; +} +export default CheckboxWithLabel; +//# sourceMappingURL=Checkbox.d.ts.map \ No newline at end of file diff --git a/dist/components/Checkbox/Checkbox.d.ts.map b/dist/components/Checkbox/Checkbox.d.ts.map new file mode 100644 index 00000000..b1e4a646 --- /dev/null +++ b/dist/components/Checkbox/Checkbox.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,iBAAwB,iBAAiB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,+CAS9E;kBATuB,iBAAiB;;;eAAjB,iBAAiB"} \ No newline at end of file diff --git a/dist/components/Checkbox/index.d.ts b/dist/components/Checkbox/index.d.ts new file mode 100644 index 00000000..00e657e6 --- /dev/null +++ b/dist/components/Checkbox/index.d.ts @@ -0,0 +1,3 @@ +import { default as Checkbox } from './Checkbox'; +export default Checkbox; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Checkbox/index.d.ts.map b/dist/components/Checkbox/index.d.ts.map new file mode 100644 index 00000000..a6cbc0eb --- /dev/null +++ b/dist/components/Checkbox/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/components/CopyToClipboard/CopyToClipboard.d.ts b/dist/components/CopyToClipboard/CopyToClipboard.d.ts new file mode 100644 index 00000000..b30e3b7f --- /dev/null +++ b/dist/components/CopyToClipboard/CopyToClipboard.d.ts @@ -0,0 +1,12 @@ +import { default as React } from 'react'; +export interface ClipboardProps { + text: string | number; + type?: 'visible' | 'hidden' | 'hiddenWithIcon' | 'alwaysHidden'; + width?: number | string; + fontSize?: string; + withToolTip?: boolean; + iconOnly?: boolean; +} +declare const CopyToClipboard: React.FC; +export default CopyToClipboard; +//# sourceMappingURL=CopyToClipboard.d.ts.map \ No newline at end of file diff --git a/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map b/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map new file mode 100644 index 00000000..7454be2d --- /dev/null +++ b/dist/components/CopyToClipboard/CopyToClipboard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/components/CopyToClipboard/CopyToClipboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,gBAAgB,GAAG,cAAc,CAAC;IAChE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAiCD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiG7C,CAAC;AAEF,eAAe,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/components/CopyToClipboard/index.d.ts b/dist/components/CopyToClipboard/index.d.ts new file mode 100644 index 00000000..eb4aa53b --- /dev/null +++ b/dist/components/CopyToClipboard/index.d.ts @@ -0,0 +1,3 @@ +import { default as CopyToClipboard } from './CopyToClipboard'; +export default CopyToClipboard; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/CopyToClipboard/index.d.ts.map b/dist/components/CopyToClipboard/index.d.ts.map new file mode 100644 index 00000000..ece4a692 --- /dev/null +++ b/dist/components/CopyToClipboard/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CopyToClipboard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/D,eAAe,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/components/DetailStat/DetailStat.d.ts b/dist/components/DetailStat/DetailStat.d.ts new file mode 100644 index 00000000..cce77789 --- /dev/null +++ b/dist/components/DetailStat/DetailStat.d.ts @@ -0,0 +1,12 @@ +import { default as React, ReactNode } from 'react'; +type StatProps = { + title: string; + value: ReactNode; + fullWidth?: boolean; + lowercaseValue?: boolean; + capitalizeValue?: boolean; +}; +declare const DetailStat: React.FC; +export default DetailStat; +export type { StatProps }; +//# sourceMappingURL=DetailStat.d.ts.map \ No newline at end of file diff --git a/dist/components/DetailStat/DetailStat.d.ts.map b/dist/components/DetailStat/DetailStat.d.ts.map new file mode 100644 index 00000000..8359a01a --- /dev/null +++ b/dist/components/DetailStat/DetailStat.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DetailStat.d.ts","sourceRoot":"","sources":["../../../src/components/DetailStat/DetailStat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAkB,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzD,KAAK,SAAS,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAmBF,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAuBnC,CAAC;AAEF,eAAe,UAAU,CAAC;AAC1B,YAAY,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/DetailStat/index.d.ts b/dist/components/DetailStat/index.d.ts new file mode 100644 index 00000000..fd2bf9a4 --- /dev/null +++ b/dist/components/DetailStat/index.d.ts @@ -0,0 +1,3 @@ +import { default as DetailStat } from './DetailStat'; +export default DetailStat; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/DetailStat/index.d.ts.map b/dist/components/DetailStat/index.d.ts.map new file mode 100644 index 00000000..1403d290 --- /dev/null +++ b/dist/components/DetailStat/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/DetailStat/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/Input/Input.d.ts b/dist/components/Input/Input.d.ts new file mode 100644 index 00000000..fa50c3cd --- /dev/null +++ b/dist/components/Input/Input.d.ts @@ -0,0 +1,11 @@ +import { Input as ShadInput } from '../ui/input'; +import { ComponentProps, ReactNode } from 'react'; +type InputProps = ComponentProps & { + label: string; + placeholder?: string; + description?: string; + icon?: ReactNode; +}; +export default function Input({ label, placeholder, icon, description, ...rest }: InputProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=Input.d.ts.map \ No newline at end of file diff --git a/dist/components/Input/Input.d.ts.map b/dist/components/Input/Input.d.ts.map new file mode 100644 index 00000000..5875a5d5 --- /dev/null +++ b/dist/components/Input/Input.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/Input/Input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD,KAAK,UAAU,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;CACjB,CAAC;AAUF,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,KAAK,EAAE,WAAgB,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,+CAoBhG"} \ No newline at end of file diff --git a/dist/components/Input/index.d.ts b/dist/components/Input/index.d.ts new file mode 100644 index 00000000..77645f92 --- /dev/null +++ b/dist/components/Input/index.d.ts @@ -0,0 +1,3 @@ +import { default as Input } from './Input'; +export default Input; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Input/index.d.ts.map b/dist/components/Input/index.d.ts.map new file mode 100644 index 00000000..02a7206f --- /dev/null +++ b/dist/components/Input/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAe,KAAK,CAAC"} \ No newline at end of file diff --git a/dist/components/KeyFactCard/KeyFactCard.d.ts b/dist/components/KeyFactCard/KeyFactCard.d.ts new file mode 100644 index 00000000..8e0b95a3 --- /dev/null +++ b/dist/components/KeyFactCard/KeyFactCard.d.ts @@ -0,0 +1,10 @@ +import { ReactElement } from 'react'; +type KeyFactProps = { + name: string; + category: string; + value: string; + img: ReactElement; +}; +export default function KeyFactCard({ name, category, value, img }: KeyFactProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=KeyFactCard.d.ts.map \ No newline at end of file diff --git a/dist/components/KeyFactCard/KeyFactCard.d.ts.map b/dist/components/KeyFactCard/KeyFactCard.d.ts.map new file mode 100644 index 00000000..aea24c8f --- /dev/null +++ b/dist/components/KeyFactCard/KeyFactCard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"KeyFactCard.d.ts","sourceRoot":"","sources":["../../../src/components/KeyFactCard/KeyFactCard.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG5C,KAAK,YAAY,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAA;CAAE,CAAC;AAE3G,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,YAAY,+CAW/E"} \ No newline at end of file diff --git a/dist/components/KeyFactCard/index.d.ts b/dist/components/KeyFactCard/index.d.ts new file mode 100644 index 00000000..a0e68ac7 --- /dev/null +++ b/dist/components/KeyFactCard/index.d.ts @@ -0,0 +1,3 @@ +import { default as KeyFactCard } from './KeyFactCard'; +export default KeyFactCard; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/KeyFactCard/index.d.ts.map b/dist/components/KeyFactCard/index.d.ts.map new file mode 100644 index 00000000..6c4f2722 --- /dev/null +++ b/dist/components/KeyFactCard/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/KeyFactCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvD,eAAe,WAAW,CAAC"} \ No newline at end of file diff --git a/dist/components/Notification/Notification.d.ts b/dist/components/Notification/Notification.d.ts new file mode 100644 index 00000000..01dd9a51 --- /dev/null +++ b/dist/components/Notification/Notification.d.ts @@ -0,0 +1,17 @@ +import { ReactNode } from 'react'; +type NotificationProps = { + title: string; + message: string; + cancelText?: string; + onCancel?: () => void; + confirmText?: string; + onConfirm?: () => void; +} & ({ + children?: ReactNode; +} | { + open?: boolean; + onOpenChange?: (open: boolean) => void; +}); +export default function Notification({ title, message, cancelText, onCancel, confirmText, onConfirm, ...rest }: NotificationProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=Notification.d.ts.map \ No newline at end of file diff --git a/dist/components/Notification/Notification.d.ts.map b/dist/components/Notification/Notification.d.ts.map new file mode 100644 index 00000000..c7845151 --- /dev/null +++ b/dist/components/Notification/Notification.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/Notification.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,KAAK,iBAAiB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,GAAG,CACD;IAAE,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GACxB;IACA,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC,CACH,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACpC,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,IAAI,EACP,EAAE,iBAAiB,+CAkCnB"} \ No newline at end of file diff --git a/dist/components/Notification/index.d.ts b/dist/components/Notification/index.d.ts new file mode 100644 index 00000000..8db484ef --- /dev/null +++ b/dist/components/Notification/index.d.ts @@ -0,0 +1,3 @@ +import { default as Notification } from './Notification'; +export default Notification; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Notification/index.d.ts.map b/dist/components/Notification/index.d.ts.map new file mode 100644 index 00000000..520feb8e --- /dev/null +++ b/dist/components/Notification/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEzD,eAAe,YAAY,CAAC"} \ No newline at end of file diff --git a/dist/components/ProblemsOverview/ProblemsOverview.d.ts b/dist/components/ProblemsOverview/ProblemsOverview.d.ts new file mode 100644 index 00000000..c003539f --- /dev/null +++ b/dist/components/ProblemsOverview/ProblemsOverview.d.ts @@ -0,0 +1,16 @@ +import { default as React } from 'react'; +type LagoonProblemsOverviewProps = { + problems: number; + critical: number; + high: number; + medium: number; + low: number; + skeleton?: false; +}; +type Props = LagoonProblemsOverviewProps | { + skeleton: true; +}; +declare const LagoonProblemsOverview: React.FC; +export default LagoonProblemsOverview; +export type { LagoonProblemsOverviewProps }; +//# sourceMappingURL=ProblemsOverview.d.ts.map \ No newline at end of file diff --git a/dist/components/ProblemsOverview/ProblemsOverview.d.ts.map b/dist/components/ProblemsOverview/ProblemsOverview.d.ts.map new file mode 100644 index 00000000..a978e128 --- /dev/null +++ b/dist/components/ProblemsOverview/ProblemsOverview.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ProblemsOverview.d.ts","sourceRoot":"","sources":["../../../src/components/ProblemsOverview/ProblemsOverview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,2BAA2B,GAAG;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AACF,KAAK,KAAK,GACP,2BAA2B,GAC3B;IACA,QAAQ,EAAE,IAAI,CAAC;CACd,CAAC;AAEL,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA+C3C,CAAC;AAGF,eAAe,sBAAsB,CAAC;AACtC,YAAY,EAAE,2BAA2B,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ProblemsOverview/index.d.ts b/dist/components/ProblemsOverview/index.d.ts new file mode 100644 index 00000000..7402365b --- /dev/null +++ b/dist/components/ProblemsOverview/index.d.ts @@ -0,0 +1,3 @@ +import { default as ProblemsOverview } from './ProblemsOverview'; +export default ProblemsOverview; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/ProblemsOverview/index.d.ts.map b/dist/components/ProblemsOverview/index.d.ts.map new file mode 100644 index 00000000..a952c998 --- /dev/null +++ b/dist/components/ProblemsOverview/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ProblemsOverview/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEjE,eAAe,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/components/RootLayout/RootLayout.d.ts b/dist/components/RootLayout/RootLayout.d.ts new file mode 100644 index 00000000..147c804c --- /dev/null +++ b/dist/components/RootLayout/RootLayout.d.ts @@ -0,0 +1,11 @@ +import { ReactNode } from 'react'; +import { AppInfo, UserInfo } from '../sidenav/Sidenav'; +interface RootLayoutProps { + userInfo: UserInfo; + appInfo: AppInfo; + children: ReactNode; + signOutFn: () => Promise; +} +export default function RootLayout({ userInfo, appInfo, signOutFn, children }: RootLayoutProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=RootLayout.d.ts.map \ No newline at end of file diff --git a/dist/components/RootLayout/RootLayout.d.ts.map b/dist/components/RootLayout/RootLayout.d.ts.map new file mode 100644 index 00000000..3fcfa2ea --- /dev/null +++ b/dist/components/RootLayout/RootLayout.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RootLayout.d.ts","sourceRoot":"","sources":["../../../src/components/RootLayout/RootLayout.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEvD,UAAU,eAAe;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAMD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,eAAe,+CAa7F"} \ No newline at end of file diff --git a/dist/components/RootLayout/index.d.ts b/dist/components/RootLayout/index.d.ts new file mode 100644 index 00000000..22a2edc0 --- /dev/null +++ b/dist/components/RootLayout/index.d.ts @@ -0,0 +1,3 @@ +import { default as RootLayout } from './RootLayout'; +export default RootLayout; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/RootLayout/index.d.ts.map b/dist/components/RootLayout/index.d.ts.map new file mode 100644 index 00000000..24b51cdf --- /dev/null +++ b/dist/components/RootLayout/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RootLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAErD,eAAe,UAAU,CAAC"} \ No newline at end of file diff --git a/dist/components/Select/Select.d.ts b/dist/components/Select/Select.d.ts new file mode 100644 index 00000000..dec0c8b7 --- /dev/null +++ b/dist/components/Select/Select.d.ts @@ -0,0 +1,17 @@ +import { Select } from '../ui/select'; +type Option = { + label: string; + value: string | number; +}; +type OptionGroup = { + label: string; + options: Option[]; +}; +type SelectProps = Omit, 'disabled'> & { + placeholder: string; + options?: Option[] | OptionGroup[]; + disabled?: boolean; +}; +export default function SelectWithOptions({ placeholder, options, disabled, ...rest }: SelectProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=Select.d.ts.map \ No newline at end of file diff --git a/dist/components/Select/Select.d.ts.map b/dist/components/Select/Select.d.ts.map new file mode 100644 index 00000000..20ee671c --- /dev/null +++ b/dist/components/Select/Select.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAmF,MAAM,cAAc,CAAC;AAEvH,KAAK,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AACxD,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAExD,KAAK,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAMF,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,+CA4BjG"} \ No newline at end of file diff --git a/dist/components/Select/index.d.ts b/dist/components/Select/index.d.ts new file mode 100644 index 00000000..a3f17e2e --- /dev/null +++ b/dist/components/Select/index.d.ts @@ -0,0 +1,3 @@ +import { default as SelectWithOptions } from './Select'; +export default SelectWithOptions; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/Select/index.d.ts.map b/dist/components/Select/index.d.ts.map new file mode 100644 index 00000000..f4829863 --- /dev/null +++ b/dist/components/Select/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAExD,eAAe,iBAAiB,CAAC"} \ No newline at end of file diff --git a/dist/components/StatCard/StatCard.d.ts b/dist/components/StatCard/StatCard.d.ts new file mode 100644 index 00000000..9e7817b1 --- /dev/null +++ b/dist/components/StatCard/StatCard.d.ts @@ -0,0 +1,12 @@ +import { ReactNode } from 'react'; +type StatCardprops = { + title: string; + content: ReactNode; + type?: 'default' | 'withIcon' | 'stat'; +}; +export declare const cardVariants: (props?: ({ + type?: "default" | "withIcon" | "stat" | null | undefined; +} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string; +export default function StatCard({ type, title, content }: StatCardprops): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=StatCard.d.ts.map \ No newline at end of file diff --git a/dist/components/StatCard/StatCard.d.ts.map b/dist/components/StatCard/StatCard.d.ts.map new file mode 100644 index 00000000..a4f64d1c --- /dev/null +++ b/dist/components/StatCard/StatCard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../../../src/components/StatCard/StatCard.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKzC,KAAK,aAAa,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,MAAM,CAAA;CAAE,CAAC;AAEnG,eAAO,MAAM,YAAY;;mFAWvB,CAAC;AAEH,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,EAAE,IAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,aAAa,+CAyBnF"} \ No newline at end of file diff --git a/dist/components/StatCard/index.d.ts b/dist/components/StatCard/index.d.ts new file mode 100644 index 00000000..07fe372a --- /dev/null +++ b/dist/components/StatCard/index.d.ts @@ -0,0 +1,3 @@ +import { default as StatCard } from './StatCard'; +export default StatCard; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/StatCard/index.d.ts.map b/dist/components/StatCard/index.d.ts.map new file mode 100644 index 00000000..dcdc718c --- /dev/null +++ b/dist/components/StatCard/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StatCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/components/sidenav/Sidenav.d.ts b/dist/components/sidenav/Sidenav.d.ts new file mode 100644 index 00000000..dfc56c4c --- /dev/null +++ b/dist/components/sidenav/Sidenav.d.ts @@ -0,0 +1,41 @@ +import { default as React } from 'react'; +import { Sidebar } from '../ui/sidebar'; +type SidebarProps = React.ComponentProps; +export type UserInfo = { + email: string; + image?: React.ImgHTMLAttributes['src']; + firstName?: string; + lastName?: string; +}; +export type AppInfo = { + name: string; + version: string; + kcUrl: string; + logo?: React.ReactNode; +}; +export type SidenavProps = SidebarProps & { + userInfo: UserInfo; + appInfo: AppInfo; + signOutFn: () => Promise; + currentPath?: string; +}; +export type NavItems = ReturnType; +declare const getSidenavItems: (kcUrl: string, signOutFn: () => Promise) => { + section: string; + sectionItems: ({ + title: string; + url: string; + icon: React.ForwardRefExoticComponent & React.RefAttributes>; + target?: undefined; + onClick?: undefined; + } | { + title: string; + url: string; + target: string; + onClick: () => Promise; + icon: React.ForwardRefExoticComponent & React.RefAttributes>; + })[]; +}[]; +export default function Sidenav({ userInfo, appInfo, currentPath, signOutFn, ...props }: SidenavProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=Sidenav.d.ts.map \ No newline at end of file diff --git a/dist/components/sidenav/Sidenav.d.ts.map b/dist/components/sidenav/Sidenav.d.ts.map new file mode 100644 index 00000000..e7fdfe73 --- /dev/null +++ b/dist/components/sidenav/Sidenav.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Sidenav.d.ts","sourceRoot":"","sources":["../../../src/components/sidenav/Sidenav.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EACN,OAAO,EAUP,MAAM,eAAe,CAAC;AAUvB,KAAK,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,YAAY,GAAG;IACzC,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,QAAA,MAAM,eAAe,GAAI,OAAO,MAAM,EAAE,WAAW,MAAM,OAAO,CAAC,IAAI,CAAC;;;;;;;;;;;;uBAAb,OAAO,CAAC,IAAI,CAAC;;;GA4CrE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,+CAqGpG"} \ No newline at end of file diff --git a/dist/components/sidenav/SidenavDropdown.d.ts b/dist/components/sidenav/SidenavDropdown.d.ts new file mode 100644 index 00000000..785ad4a4 --- /dev/null +++ b/dist/components/sidenav/SidenavDropdown.d.ts @@ -0,0 +1,7 @@ +import { AppInfo } from './Sidenav'; +type DropdownProps = AppInfo & { + signOutFn: () => Promise; +}; +export default function SidenavDropdown({ name, version, logo, signOutFn }: DropdownProps): import("react/jsx-dev-runtime").JSX.Element; +export {}; +//# sourceMappingURL=SidenavDropdown.d.ts.map \ No newline at end of file diff --git a/dist/components/sidenav/SidenavDropdown.d.ts.map b/dist/components/sidenav/SidenavDropdown.d.ts.map new file mode 100644 index 00000000..88a14626 --- /dev/null +++ b/dist/components/sidenav/SidenavDropdown.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SidenavDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/sidenav/SidenavDropdown.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,KAAK,aAAa,GAAG,OAAO,GAAG;IAAE,SAAS,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;CAAE,CAAC;AAElE,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,aAAa,+CA0CxF"} \ No newline at end of file diff --git a/dist/components/sidenav/index.d.ts b/dist/components/sidenav/index.d.ts new file mode 100644 index 00000000..dc172f9a --- /dev/null +++ b/dist/components/sidenav/index.d.ts @@ -0,0 +1,3 @@ +import { default as Sidenav } from './Sidenav'; +export default Sidenav; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/components/sidenav/index.d.ts.map b/dist/components/sidenav/index.d.ts.map new file mode 100644 index 00000000..6f206c46 --- /dev/null +++ b/dist/components/sidenav/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidenav/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAE/C,eAAe,OAAO,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/avatar.d.ts.map b/dist/components/ui/avatar.d.ts.map index c83cfbf7..8ee25c6d 100644 --- a/dist/components/ui/avatar.d.ts.map +++ b/dist/components/ui/avatar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAQzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,+CAWrG;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAQzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAI/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,+CAQrG;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/badge.d.ts.map b/dist/components/ui/badge.d.ts.map index 20f77362..dde105bd 100644 --- a/dist/components/ui/badge.d.ts.map +++ b/dist/components/ui/badge.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;mFAiBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,OAAO,EACP,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAI3F;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;mFAgBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACd,SAAS,EACT,OAAO,EACP,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAI3F;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/breadcrumb.d.ts.map b/dist/components/ui/breadcrumb.d.ts.map index a4590ee9..1f18f7e3 100644 --- a/dist/components/ui/breadcrumb.d.ts.map +++ b/dist/components/ui/breadcrumb.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAE5D;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAW1E;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAQ1E;AAED,iBAAS,cAAc,CAAC,EACvB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,+CAUA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAW5E;AAED,iBAAS,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAYzF;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAahF;AAED,OAAO,EACN,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAE5D;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAW1E;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAE1E;AAED,iBAAS,cAAc,CAAC,EACvB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB,+CAMA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAW5E;AAED,iBAAS,mBAAmB,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAYzF;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAahF;AAED,OAAO,EACN,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GAClB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/calendar.d.ts b/dist/components/ui/calendar.d.ts index 68e0002d..cc8f78b3 100644 --- a/dist/components/ui/calendar.d.ts +++ b/dist/components/ui/calendar.d.ts @@ -1,5 +1,9 @@ -import { DayPicker } from 'react-day-picker'; +import { DayButton, DayPicker } from 'react-day-picker'; +import { Button } from './button'; import * as React from 'react'; -declare function Calendar({ className, classNames, showOutsideDays, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; -export { Calendar }; +declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps & { + buttonVariant?: React.ComponentProps['variant']; +}): import("react/jsx-dev-runtime").JSX.Element; +declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; +export { Calendar, CalendarDayButton }; //# sourceMappingURL=calendar.d.ts.map \ No newline at end of file diff --git a/dist/components/ui/calendar.d.ts.map b/dist/components/ui/calendar.d.ts.map index 4fdc9498..b11fbb38 100644 --- a/dist/components/ui/calendar.d.ts.map +++ b/dist/components/ui/calendar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK7C,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,eAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+CAiDpH;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAwB,MAAM,kBAAkB,CAAC;AAG9E,OAAO,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAEhE,iBAAS,QAAQ,CAAC,EACjB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,aAAuB,EACvB,aAAuB,EACvB,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAC3C,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAC/D,+CAyGA;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+CA4BzG;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/card.d.ts.map b/dist/components/ui/card.d.ts.map index 20de35e1..23536e5b 100644 --- a/dist/components/ui/card.d.ts.map +++ b/dist/components/ui/card.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAWjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAEtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAI5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAExE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQvE;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAEtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAE5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAExE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAIvE;AAED,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/carousel.d.ts.map b/dist/components/ui/carousel.d.ts.map index ab4544f3..b1b0c376 100644 --- a/dist/components/ui/carousel.d.ts.map +++ b/dist/components/ui/carousel.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,EAAE,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAInF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,KAAK,aAAa,GAAG;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACpC,CAAC;AAuBF,iBAAS,QAAQ,CAAC,EACjB,WAA0B,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,aAAa,+CA+E7C;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAW5E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAgBzE;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAuBrC;AAED,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAuBrC;AAED,OAAO,EAAE,KAAK,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"carousel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/carousel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,gBAAgB,EAAE,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAInF,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,KAAK,WAAW,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;AAC3C,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACjE,KAAK,eAAe,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAChD,KAAK,cAAc,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAC;AAE/C,KAAK,aAAa,GAAG;IACpB,IAAI,CAAC,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CACpC,CAAC;AAuBF,iBAAS,QAAQ,CAAC,EACjB,WAA0B,EAC1B,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,aAAa,+CA+E7C;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQ5E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAYzE;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAuBrC;AAED,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,OAAmB,EACnB,IAAa,EACb,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAuBrC;AAED,OAAO,EAAE,KAAK,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/chart.d.ts.map b/dist/components/ui/chart.d.ts.map index b9bd4df8..cc6769d3 100644 --- a/dist/components/ui/chart.d.ts.map +++ b/dist/components/ui/chart.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;KACxB,CAAC,IAAI,MAAM,GAAG;QACd,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC3B,GAAG,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CACvG,CAAC;AAkBF,iBAAS,cAAc,CAAC,EACvB,EAAE,EACF,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;CACzF,+CAoBA;AAED,QAAA,MAAM,UAAU,GAAI,gBAAgB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,uDA2BtE,CAAC;AAEF,QAAA,MAAM,YAAY,kCAA4B,CAAC;AAE/C,iBAAS,mBAAmB,CAAC,EAC5B,MAAM,EACN,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,SAAiB,EACjB,aAAqB,EACrB,KAAK,EACL,cAAc,EACd,cAAc,EACd,SAAS,EACT,KAAK,EACL,OAAO,EACP,QAAQ,GACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,OAAO,CAAC,GACxD,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,sDAwGD;AAED,QAAA,MAAM,WAAW,iCAA2B,CAAC;AAE7C,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,QAAgB,EAChB,OAAO,EACP,aAAwB,EACxB,OAAO,GACP,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAC7B,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,SAAS,GAAG,eAAe,CAAC,GAAG;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,sDA0CD;AA4BD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"chart.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,UAAU,CAAC;AAK9C,QAAA,MAAM,MAAM;;;CAAwC,CAAC;AAErD,MAAM,MAAM,WAAW,GAAG;KACxB,CAAC,IAAI,MAAM,GAAG;QACd,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACxB,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC3B,GAAG,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG;QAAE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC,MAAM,OAAO,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC;CACvG,CAAC;AAkBF,iBAAS,cAAc,CAAC,EACvB,EAAE,EACF,SAAS,EACT,QAAQ,EACR,MAAM,EACN,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,mBAAmB,CAAC,CAAC,UAAU,CAAC,CAAC;CACzF,+CAoBA;AAED,QAAA,MAAM,UAAU,GAAI,gBAAgB;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,uDA2BtE,CAAC;AAEF,QAAA,MAAM,YAAY,kCAA4B,CAAC;AAE/C,iBAAS,mBAAmB,CAAC,EAC5B,MAAM,EACN,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,SAAiB,EACjB,aAAqB,EACrB,KAAK,EACL,cAAc,EACd,cAAc,EACd,SAAS,EACT,KAAK,EACL,OAAO,EACP,QAAQ,GACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,OAAO,CAAC,GACxD,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,sDAkGD;AAED,QAAA,MAAM,WAAW,iCAA2B,CAAC;AAE7C,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,QAAgB,EAChB,OAAO,EACP,aAAwB,EACxB,OAAO,GACP,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAC7B,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,SAAS,GAAG,eAAe,CAAC,GAAG;IAClE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,sDAkCD;AA4BD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,EAAE,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/command.d.ts b/dist/components/ui/command.d.ts index fdd512f3..fee8847e 100644 --- a/dist/components/ui/command.d.ts +++ b/dist/components/ui/command.d.ts @@ -2,9 +2,11 @@ import { Command as CommandPrimitive } from 'cmdk'; import { Dialog } from './dialog'; import * as React from 'react'; declare function Command({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; -declare function CommandDialog({ title, description, children, ...props }: React.ComponentProps & { +declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps & { title?: string; description?: string; + className?: string; + showCloseButton?: boolean; }): import("react/jsx-dev-runtime").JSX.Element; declare function CommandInput({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; declare function CommandList({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; diff --git a/dist/components/ui/command.d.ts.map b/dist/components/ui/command.d.ts.map index 816860f5..38df15f3 100644 --- a/dist/components/ui/command.d.ts.map +++ b/dist/components/ui/command.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAInD,OAAO,EAAE,MAAM,EAA+D,MAAM,wBAAwB,CAAC;AAE7G,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,+CAWtF;AAED,iBAAS,aAAa,CAAC,EACtB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,+CAcA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAiBjG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAQ/F;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAItF;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAWjG;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAQzG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAW/F;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQ7E;AAED,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GAChB,CAAC"} \ No newline at end of file +{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAInD,OAAO,EAAE,MAAM,EAA+D,MAAM,wBAAwB,CAAC;AAE7G,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,+CAWtF;AAED,iBAAS,aAAa,CAAC,EACtB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAsB,EACtB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,+CAcA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAcjG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAQ/F;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAEtF;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAWjG;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAQzG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAW/F;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQ7E;AAED,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GAChB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/context-menu.d.ts.map b/dist/components/ui/context-menu.d.ts.map index 746fe60f..c09781e5 100644 --- a/dist/components/ui/context-menu.d.ts.map +++ b/dist/components/ui/context-menu.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,+CAExF;AAED,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+CAElG;AAED,iBAAS,gBAAgB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,+CAE9F;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,+CAEhG;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG,CAAC,+CAE1F;AAED,iBAAS,qBAAqB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,+CAExG;AAED,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAeA;AAED,iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,+CAWnH;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+CAa7G;AAED,iBAAS,eAAe,CAAC,EACxB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,GAAG;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC,+CAaA;AAED,iBAAS,uBAAuB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,YAAY,CAAC,+CAmBhE;AAED,iBAAS,oBAAoB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,+CAkB7D;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,GAAG;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAYA;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,+CAQjH;AAED,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQjF;AAED,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB,CAAC"} \ No newline at end of file +{"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,+CAExF;AAED,iBAAS,kBAAkB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+CAElG;AAED,iBAAS,gBAAgB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,+CAE9F;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,MAAM,CAAC,+CAEhG;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,GAAG,CAAC,+CAE1F;AAED,iBAAS,qBAAqB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,+CAExG;AAED,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAeA;AAED,iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,UAAU,CAAC,+CAWnH;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,+CAa7G;AAED,iBAAS,eAAe,CAAC,EACxB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,GAAG;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC,+CAaA;AAED,iBAAS,uBAAuB,CAAC,EAChC,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,YAAY,CAAC,+CAmBhE;AAED,iBAAS,oBAAoB,CAAC,EAC7B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,+CAkB7D;AAED,iBAAS,gBAAgB,CAAC,EACzB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,KAAK,CAAC,GAAG;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CASA;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,+CAQjH;AAED,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQjF;AAED,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/dialog.d.ts b/dist/components/ui/dialog.d.ts index fcd53e62..4d82d819 100644 --- a/dist/components/ui/dialog.d.ts +++ b/dist/components/ui/dialog.d.ts @@ -5,7 +5,9 @@ declare function DialogTrigger({ ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; declare function DialogClose({ ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; declare function DialogOverlay({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; -declare function DialogContent({ className, children, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; +declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps & { + showCloseButton?: boolean; +}): import("react/jsx-dev-runtime").JSX.Element; declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-dev-runtime").JSX.Element; declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-dev-runtime").JSX.Element; declare function DialogTitle({ className, ...props }: React.ComponentProps): import("react/jsx-dev-runtime").JSX.Element; diff --git a/dist/components/ui/dialog.d.ts.map b/dist/components/ui/dialog.d.ts.map index 409e3320..41e665ec 100644 --- a/dist/components/ui/dialog.d.ts.map +++ b/dist/components/ui/dialog.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,+CAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAWnG;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAoB7G;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+CAQ3G;AAED,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,CAAC"} \ No newline at end of file +{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,+CAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAWnG;AAED,iBAAS,aAAa,CAAC,EACtB,SAAS,EACT,QAAQ,EACR,eAAsB,EACtB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACzD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,+CAyBA;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+CAQ3G;AAED,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/drawer.d.ts.map b/dist/components/ui/drawer.d.ts.map index ad6c8822..0c18bfe1 100644 --- a/dist/components/ui/drawer.d.ts.map +++ b/dist/components/ui/drawer.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAIjD,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,+CAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAWnG;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAqB7G;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAIzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+CAQ3G;AAED,OAAO,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GACjB,CAAC"} \ No newline at end of file +{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAIjD,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAE9E;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAExF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,+CAEtF;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAWnG;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+CAqB7G;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAWzE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAEzE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+CAQ/F;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,+CAQ3G;AAED,OAAO,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GACjB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/form.d.ts.map b/dist/components/ui/form.d.ts.map index f4f066ec..130ba406 100644 --- a/dist/components/ui/form.d.ts.map +++ b/dist/components/ui/form.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAKN,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACd,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC9D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,gDAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,+CAY3F;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,+CAYnE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,+CAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,sDAkBtE;AAED,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/ui/form.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAKN,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,MAAM,iBAAiB,CAAC;AAKzB,QAAA,MAAM,IAAI,4MAAe,CAAC;AAW1B,QAAA,MAAM,SAAS,GACd,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAC9D,cAEC,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,gDAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,+CAY3F;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,+CAYnE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,+CAW1E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,sDAatE;AAED,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/menubar.d.ts.map b/dist/components/ui/menubar.d.ts.map index 26b18ece..da85b0ec 100644 --- a/dist/components/ui/menubar.d.ts.map +++ b/dist/components/ui/menubar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"menubar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/menubar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAK5D,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAW3F;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAEpF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAEtF;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,+CAExF;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,+CAEhG;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+CAWrG;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,KAAe,EACf,WAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+CAgBvD;AAED,iBAAS,WAAW,CAAC,EACpB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG;IACvD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC,+CAaA;AAED,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,YAAY,CAAC,+CAmB5D;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAkBnH;AAED,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CASA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAQzG;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQ7E;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,GAAG,CAAC,+CAElF;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAeA;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,+CAW3G;AAED,OAAO,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GACjB,CAAC"} \ No newline at end of file +{"version":3,"file":"menubar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/menubar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAK5D,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAQ3F;AAED,iBAAS,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,+CAEpF;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,+CAEtF;AAED,iBAAS,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,+CAExF;AAED,iBAAS,iBAAiB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,+CAEhG;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+CAWrG;AAED,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,KAAe,EACf,WAAgB,EAChB,UAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+CAgBvD;AAED,iBAAS,WAAW,CAAC,EACpB,SAAS,EACT,KAAK,EACL,OAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG;IACvD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC;CACpC,+CAaA;AAED,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,YAAY,CAAC,+CAmB5D;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAkBnH;AAED,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,GAAG;IACxD,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CASA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,+CAQzG;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAQ7E;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,GAAG,CAAC,+CAElF;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,GAAG;IAC7D,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,+CAeA;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,UAAU,CAAC,+CAW3G;AAED,OAAO,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GACjB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/navigation-menu.d.ts.map b/dist/components/ui/navigation-menu.d.ts.map index 2e451f4d..256f2328 100644 --- a/dist/components/ui/navigation-menu.d.ts.map +++ b/dist/components/ui/navigation-menu.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAM3E,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,QAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,GAAG;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAeA;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAW7G;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAQ7G;AAED,QAAA,MAAM,0BAA0B,yFAE/B,CAAC;AAEF,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,+CAc9D;AAED,iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,+CAYnH;AAED,iBAAS,sBAAsB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,QAAQ,CAAC,+CAa/D;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAW7G;AAED,iBAAS,uBAAuB,CAAC,EAChC,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,SAAS,CAAC,+CAahE;AAED,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC1B,CAAC"} \ No newline at end of file +{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/navigation-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,uBAAuB,MAAM,iCAAiC,CAAC;AAM3E,iBAAS,cAAc,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,QAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,GAAG;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAYA;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAQ7G;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAI7G;AAED,QAAA,MAAM,0BAA0B,yFAE/B,CAAC;AAEF,iBAAS,qBAAqB,CAAC,EAC9B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,+CAc9D;AAED,iBAAS,qBAAqB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,OAAO,CAAC,+CAYnH;AAED,iBAAS,sBAAsB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,QAAQ,CAAC,+CAa/D;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,IAAI,CAAC,+CAW7G;AAED,iBAAS,uBAAuB,CAAC,EAChC,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,uBAAuB,CAAC,SAAS,CAAC,+CAahE;AAED,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC1B,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/pagination.d.ts.map b/dist/components/ui/pagination.d.ts.map index 61cc696d..61a7cbca 100644 --- a/dist/components/ui/pagination.d.ts.map +++ b/dist/components/ui/pagination.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAEhE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAUvE;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAQ7E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAE/D;AAED,KAAK,mBAAmB,GAAG;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACpD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE3B,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+CAgB5F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,+CAY/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,+CAY3F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAYhF;AAED,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GAClB,CAAC"} \ No newline at end of file +{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/components/ui/pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAEhE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAUvE;AAED,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAE7E;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAE/D;AAED,KAAK,mBAAmB,GAAG;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,CAAC,GACpD,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;AAE3B,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+CAgB5F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,+CAY/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,+CAY3F;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAYhF;AAED,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GAClB,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/progress.d.ts.map b/dist/components/ui/progress.d.ts.map index 566f0960..24e55546 100644 --- a/dist/components/ui/progress.d.ts.map +++ b/dist/components/ui/progress.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,+CAiBpG;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAI9D,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,IAAI,CAAC,+CAcpG;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/radio-group.d.ts.map b/dist/components/ui/radio-group.d.ts.map index 949b7a14..2b220606 100644 --- a/dist/components/ui/radio-group.d.ts.map +++ b/dist/components/ui/radio-group.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAKnE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+CAIjG;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+CAkBrG;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAKnE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+CAEjG;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+CAkBrG;AAED,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/sheet.d.ts.map b/dist/components/ui/sheet.d.ts.map index d039d26a..9c36b27f 100644 --- a/dist/components/ui/sheet.d.ts.map +++ b/dist/components/ui/sheet.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAKzD,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,+CAE5E;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,+CAEtF;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,+CAElF;AAmBD,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC3C,+CA4BA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAIxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,+CAQ7F;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,+CAQzG;AAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAKzD,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,+CAE5E;AAED,iBAAS,YAAY,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,+CAEtF;AAED,iBAAS,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,+CAElF;AAmBD,iBAAS,YAAY,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC3C,+CA4BA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAExE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAExE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,+CAQ7F;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,+CAQzG;AAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/sidebar.d.ts.map b/dist/components/ui/sidebar.d.ts.map index 9a99706c..d06ce551 100644 --- a/dist/components/ui/sidebar.d.ts.map +++ b/dist/components/ui/sidebar.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAW,cAAc,EAAmC,MAAM,yBAAyB,CAAC;AASnG,KAAK,mBAAmB,GAAG;IAC1B,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAIF,iBAAS,UAAU,wBAOlB;AAED,iBAAS,eAAe,CAAC,EACxB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,+CAiFA;AAED,iBAAS,OAAO,CAAC,EAChB,IAAa,EACb,OAAmB,EACnB,WAAyB,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAC3C,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;CAC5C,+CAyFA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAoB5F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,+CAuB3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAY1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,+CAShF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAS1E;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAS1E;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+CASxF;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAY3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CASzE;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAerD;AAED,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAiBxD;AAED,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAShF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CASvE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAS3E;AAED,QAAA,MAAM,yBAAyB;;;mFAoB9B,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EAC1B,OAAe,EACf,QAAgB,EAChB,OAAmB,EACnB,IAAgB,EAChB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;CAC/D,GAAG,YAAY,CAAC,OAAO,yBAAyB,CAAC,+CA+BjD;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,OAAe,EACf,WAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,+CAsBA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAiB7E;AAED,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,QAAgB,EAChB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAyBA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAa1E;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAS9E;AAED,iBAAS,oBAAoB,CAAC,EAC7B,OAAe,EACf,IAAW,EACX,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAoBA;AAED,OAAO,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACV,CAAC"} \ No newline at end of file +{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAGtD,OAAO,EAAW,cAAc,EAAmC,MAAM,yBAAyB,CAAC;AASnG,KAAK,mBAAmB,GAAG;IAC1B,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAIF,iBAAS,UAAU,wBAOlB;AAED,iBAAS,eAAe,CAAC,EACxB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC,+CA8EA;AAED,iBAAS,OAAO,CAAC,EAChB,IAAa,EACb,OAAmB,EACnB,WAAyB,EACzB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;IAC3C,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,MAAM,CAAC;CAC5C,+CAsFA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,+CAoB5F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,+CAuB3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,+CAY1E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,+CAShF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAS1E;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAS1E;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+CASxF;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAY3E;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CASzE;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAerD;AAED,iBAAS,kBAAkB,CAAC,EAC3B,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,+CAiBxD;AAED,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAShF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CASvE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAS3E;AAED,QAAA,MAAM,yBAAyB;;;mFAoB9B,CAAC;AAEF,iBAAS,iBAAiB,CAAC,EAC1B,OAAe,EACf,QAAgB,EAChB,OAAmB,EACnB,IAAgB,EAChB,OAAO,EACP,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;CAC/D,GAAG,YAAY,CAAC,OAAO,yBAAyB,CAAC,+CA+BjD;AAED,iBAAS,iBAAiB,CAAC,EAC1B,SAAS,EACT,OAAe,EACf,WAAmB,EACnB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB,+CAsBA;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAiB7E;AAED,iBAAS,mBAAmB,CAAC,EAC5B,SAAS,EACT,QAAgB,EAChB,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAyBA;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAa1E;AAED,iBAAS,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAS9E;AAED,iBAAS,oBAAoB,CAAC,EAC7B,OAAe,EACf,IAAW,EACX,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,+CAoBA;AAED,OAAO,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACV,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/skeleton.d.ts.map b/dist/components/ui/skeleton.d.ts.map index 01694c8f..776128a7 100644 --- a/dist/components/ui/skeleton.d.ts.map +++ b/dist/components/ui/skeleton.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAEA,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAIrE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/ui/skeleton.tsx"],"names":[],"mappings":"AAEA,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,+CAErE;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/slider.d.ts.map b/dist/components/ui/slider.d.ts.map index 3489b66c..4c6d9ef3 100644 --- a/dist/components/ui/slider.d.ts.map +++ b/dist/components/ui/slider.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EACf,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAyCnD;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,iBAAS,MAAM,CAAC,EACf,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+CAuCnD;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/table.d.ts.map b/dist/components/ui/table.d.ts.map index c266ad7c..63b44a70 100644 --- a/dist/components/ui/table.d.ts.map +++ b/dist/components/ui/table.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAMpE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAE1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAExE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAQ1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWrE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,+CAQ7E;AAED,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAMpE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAE1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAExE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,+CAQ1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAQpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,+CAWrE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,+CAI7E;AAED,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/tabs.d.ts.map b/dist/components/ui/tabs.d.ts.map index 57f39891..6a701dee 100644 --- a/dist/components/ui/tabs.d.ts.map +++ b/dist/components/ui/tabs.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAItD,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+CAIrF;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+CAWzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+CAW/F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+CAQ/F;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAItD,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+CAErF;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,+CAWzF;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+CAW/F;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,+CAE/F;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/components/ui/toggle.d.ts.map b/dist/components/ui/toggle.d.ts.map index 4111d29b..8215cf3c 100644 --- a/dist/components/ui/toggle.d.ts.map +++ b/dist/components/ui/toggle.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;mFAoBnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACf,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,+CAIzF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file +{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;mFAmBnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACf,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,+CAIzF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"} \ No newline at end of file diff --git a/dist/hooks/useTheme.d.ts b/dist/hooks/useTheme.d.ts deleted file mode 100644 index 28f01c43..00000000 --- a/dist/hooks/useTheme.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { default as React } from 'react'; -type Theme = 'dark' | 'light'; -declare const useTheme: () => any; -export declare const AppThemeProvider: ({ defaultScheme, children }: { - defaultScheme?: Theme; - children: React.ReactNode; -}) => import("react/jsx-dev-runtime").JSX.Element; -export default useTheme; -//# sourceMappingURL=useTheme.d.ts.map \ No newline at end of file diff --git a/dist/hooks/useTheme.d.ts.map b/dist/hooks/useTheme.d.ts.map deleted file mode 100644 index 9d118f9d..00000000 --- a/dist/hooks/useTheme.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/hooks/useTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAE9E,KAAK,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAI9B,QAAA,MAAM,QAAQ,WAMb,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,6BAA6B;IAAE,aAAa,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,gDAiCjH,CAAC;AAEF,eAAe,QAAQ,CAAC"} \ No newline at end of file diff --git a/dist/index.cjs.js b/dist/index.cjs.js index e94be3de..d5da7850 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const H=require("./index.cjs3.js"),N=require("./index.cjs4.js"),y=require("./index.cjs5.js"),x=require("./index.cjs6.js"),m=require("./index.cjs7.js"),n=require("./index.cjs8.js"),v=require("./index.cjs9.js"),O=require("./index.cjs10.js"),w=require("./index.cjs11.js"),G=require("./index.cjs12.js"),C=require("./index.cjs13.js"),L=require("./index.cjs14.js"),V=require("./index.cjs15.js"),p=require("./index.cjs16.js"),M=require("./index.cjs17.js"),S=require("./index.cjs18.js"),z=require("./index.cjs19.js"),A=require("./index.cjs20.js"),l=require("./index.cjs21.js"),o=require("./index.cjs22.js"),a=require("./index.cjs23.js"),i=require("./index.cjs24.js"),t=require("./index.cjs25.js"),g=require("./index.cjs26.js"),h=require("./index.cjs27.js"),D=require("./index.cjs28.js"),E=require("./index.cjs29.js"),f=require("./index.cjs30.js"),r=require("./index.cjs31.js"),d=require("./index.cjs32.js"),s=require("./index.cjs33.js"),T=require("./index.cjs34.js"),U=require("./index.cjs35.js"),F=require("./index.cjs36.js"),q=require("./index.cjs37.js"),B=require("./index.cjs38.js"),u=require("./index.cjs39.js"),_=require("./index.cjs40.js"),b=require("./index.cjs41.js"),e=require("./index.cjs42.js"),j=require("./index.cjs43.js"),W=require("./index.cjs44.js"),J=require("./index.cjs45.js"),K=require("./index.cjs46.js"),c=require("./index.cjs47.js"),I=require("./index.cjs48.js"),Q=require("./index.cjs49.js"),R=require("./index.cjs50.js"),k=require("./index.cjs51.js"),P=require("./index.cjs52.js");exports.Colors=H.default;exports.useTheme=N.default;exports.UIThemeProvider=y.default;exports.NextLinkProvider=x.LinkProvider;exports.useNextLink=x.useLinkComponent;exports.Accordion=m.Accordion;exports.AccordionContent=m.AccordionContent;exports.AccordionItem=m.AccordionItem;exports.AccordionTrigger=m.AccordionTrigger;exports.AlertDialog=n.AlertDialog;exports.AlertDialogAction=n.AlertDialogAction;exports.AlertDialogCancel=n.AlertDialogCancel;exports.AlertDialogContent=n.AlertDialogContent;exports.AlertDialogDescription=n.AlertDialogDescription;exports.AlertDialogFooter=n.AlertDialogFooter;exports.AlertDialogHeader=n.AlertDialogHeader;exports.AlertDialogOverlay=n.AlertDialogOverlay;exports.AlertDialogPortal=n.AlertDialogPortal;exports.AlertDialogTitle=n.AlertDialogTitle;exports.AlertDialogTrigger=n.AlertDialogTrigger;exports.Alert=v.Alert;exports.AlertDescription=v.AlertDescription;exports.AlertTitle=v.AlertTitle;exports.AspectRatio=O.AspectRatio;exports.Avatar=w.Avatar;exports.AvatarFallback=w.AvatarFallback;exports.AvatarImage=w.AvatarImage;exports.Badge=G.Badge;exports.badgeVariants=G.badgeVariants;exports.Breadcrumb=C.Breadcrumb;exports.BreadcrumbEllipsis=C.BreadcrumbEllipsis;exports.BreadcrumbItem=C.BreadcrumbItem;exports.BreadcrumbLink=C.BreadcrumbLink;exports.BreadcrumbList=C.BreadcrumbList;exports.BreadcrumbPage=C.BreadcrumbPage;exports.BreadcrumbSeparator=C.BreadcrumbSeparator;exports.Button=L.Button;exports.buttonVariants=L.buttonVariants;exports.Calendar=V.Calendar;exports.Card=p.Card;exports.CardAction=p.CardAction;exports.CardContent=p.CardContent;exports.CardDescription=p.CardDescription;exports.CardFooter=p.CardFooter;exports.CardHeader=p.CardHeader;exports.CardTitle=p.CardTitle;exports.Carousel=M.Carousel;exports.CarouselContent=M.CarouselContent;exports.CarouselItem=M.CarouselItem;exports.CarouselNext=M.CarouselNext;exports.CarouselPrevious=M.CarouselPrevious;exports.ChartContainer=S.ChartContainer;exports.ChartLegend=S.ChartLegend;exports.ChartLegendContent=S.ChartLegendContent;exports.ChartStyle=S.ChartStyle;exports.ChartTooltip=S.ChartTooltip;exports.ChartTooltipContent=S.ChartTooltipContent;exports.Checkbox=z.Checkbox;exports.Collapsible=A.Collapsible;exports.CollapsibleContent=A.CollapsibleContent;exports.CollapsibleTrigger=A.CollapsibleTrigger;exports.Command=l.Command;exports.CommandDialog=l.CommandDialog;exports.CommandEmpty=l.CommandEmpty;exports.CommandGroup=l.CommandGroup;exports.CommandInput=l.CommandInput;exports.CommandItem=l.CommandItem;exports.CommandList=l.CommandList;exports.CommandSeparator=l.CommandSeparator;exports.CommandShortcut=l.CommandShortcut;exports.ContextMenu=o.ContextMenu;exports.ContextMenuCheckboxItem=o.ContextMenuCheckboxItem;exports.ContextMenuContent=o.ContextMenuContent;exports.ContextMenuGroup=o.ContextMenuGroup;exports.ContextMenuItem=o.ContextMenuItem;exports.ContextMenuLabel=o.ContextMenuLabel;exports.ContextMenuPortal=o.ContextMenuPortal;exports.ContextMenuRadioGroup=o.ContextMenuRadioGroup;exports.ContextMenuRadioItem=o.ContextMenuRadioItem;exports.ContextMenuSeparator=o.ContextMenuSeparator;exports.ContextMenuShortcut=o.ContextMenuShortcut;exports.ContextMenuSub=o.ContextMenuSub;exports.ContextMenuSubContent=o.ContextMenuSubContent;exports.ContextMenuSubTrigger=o.ContextMenuSubTrigger;exports.ContextMenuTrigger=o.ContextMenuTrigger;exports.Dialog=a.Dialog;exports.DialogClose=a.DialogClose;exports.DialogContent=a.DialogContent;exports.DialogDescription=a.DialogDescription;exports.DialogFooter=a.DialogFooter;exports.DialogHeader=a.DialogHeader;exports.DialogOverlay=a.DialogOverlay;exports.DialogPortal=a.DialogPortal;exports.DialogTitle=a.DialogTitle;exports.DialogTrigger=a.DialogTrigger;exports.Drawer=i.Drawer;exports.DrawerClose=i.DrawerClose;exports.DrawerContent=i.DrawerContent;exports.DrawerDescription=i.DrawerDescription;exports.DrawerFooter=i.DrawerFooter;exports.DrawerHeader=i.DrawerHeader;exports.DrawerOverlay=i.DrawerOverlay;exports.DrawerPortal=i.DrawerPortal;exports.DrawerTitle=i.DrawerTitle;exports.DrawerTrigger=i.DrawerTrigger;exports.DropdownMenu=t.DropdownMenu;exports.DropdownMenuCheckboxItem=t.DropdownMenuCheckboxItem;exports.DropdownMenuContent=t.DropdownMenuContent;exports.DropdownMenuGroup=t.DropdownMenuGroup;exports.DropdownMenuItem=t.DropdownMenuItem;exports.DropdownMenuLabel=t.DropdownMenuLabel;exports.DropdownMenuPortal=t.DropdownMenuPortal;exports.DropdownMenuRadioGroup=t.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=t.DropdownMenuRadioItem;exports.DropdownMenuSeparator=t.DropdownMenuSeparator;exports.DropdownMenuShortcut=t.DropdownMenuShortcut;exports.DropdownMenuSub=t.DropdownMenuSub;exports.DropdownMenuSubContent=t.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=t.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=t.DropdownMenuTrigger;exports.Form=g.Form;exports.FormControl=g.FormControl;exports.FormDescription=g.FormDescription;exports.FormField=g.FormField;exports.FormItem=g.FormItem;exports.FormLabel=g.FormLabel;exports.FormMessage=g.FormMessage;exports.useFormField=g.useFormField;exports.HoverCard=h.HoverCard;exports.HoverCardContent=h.HoverCardContent;exports.HoverCardTrigger=h.HoverCardTrigger;exports.InputOTP=D.InputOTP;exports.InputOTPGroup=D.InputOTPGroup;exports.InputOTPSeparator=D.InputOTPSeparator;exports.InputOTPSlot=D.InputOTPSlot;exports.Input=E.Input;exports.Label=f.Label;exports.Menubar=r.Menubar;exports.MenubarCheckboxItem=r.MenubarCheckboxItem;exports.MenubarContent=r.MenubarContent;exports.MenubarGroup=r.MenubarGroup;exports.MenubarItem=r.MenubarItem;exports.MenubarLabel=r.MenubarLabel;exports.MenubarMenu=r.MenubarMenu;exports.MenubarPortal=r.MenubarPortal;exports.MenubarRadioGroup=r.MenubarRadioGroup;exports.MenubarRadioItem=r.MenubarRadioItem;exports.MenubarSeparator=r.MenubarSeparator;exports.MenubarShortcut=r.MenubarShortcut;exports.MenubarSub=r.MenubarSub;exports.MenubarSubContent=r.MenubarSubContent;exports.MenubarSubTrigger=r.MenubarSubTrigger;exports.MenubarTrigger=r.MenubarTrigger;exports.NavigationMenu=d.NavigationMenu;exports.NavigationMenuContent=d.NavigationMenuContent;exports.NavigationMenuIndicator=d.NavigationMenuIndicator;exports.NavigationMenuItem=d.NavigationMenuItem;exports.NavigationMenuLink=d.NavigationMenuLink;exports.NavigationMenuList=d.NavigationMenuList;exports.NavigationMenuTrigger=d.NavigationMenuTrigger;exports.NavigationMenuViewport=d.NavigationMenuViewport;exports.navigationMenuTriggerStyle=d.navigationMenuTriggerStyle;exports.Pagination=s.Pagination;exports.PaginationContent=s.PaginationContent;exports.PaginationEllipsis=s.PaginationEllipsis;exports.PaginationItem=s.PaginationItem;exports.PaginationLink=s.PaginationLink;exports.PaginationNext=s.PaginationNext;exports.PaginationPrevious=s.PaginationPrevious;exports.Popover=T.Popover;exports.PopoverAnchor=T.PopoverAnchor;exports.PopoverContent=T.PopoverContent;exports.PopoverTrigger=T.PopoverTrigger;exports.Progress=U.Progress;exports.RadioGroup=F.RadioGroup;exports.RadioGroupItem=F.RadioGroupItem;exports.ResizableHandle=q.ResizableHandle;exports.ResizablePanel=q.ResizablePanel;exports.ResizablePanelGroup=q.ResizablePanelGroup;exports.ScrollArea=B.ScrollArea;exports.ScrollBar=B.ScrollBar;exports.Select=u.Select;exports.SelectContent=u.SelectContent;exports.SelectGroup=u.SelectGroup;exports.SelectItem=u.SelectItem;exports.SelectLabel=u.SelectLabel;exports.SelectScrollDownButton=u.SelectScrollDownButton;exports.SelectScrollUpButton=u.SelectScrollUpButton;exports.SelectSeparator=u.SelectSeparator;exports.SelectTrigger=u.SelectTrigger;exports.SelectValue=u.SelectValue;exports.Separator=_.Separator;exports.Sheet=b.Sheet;exports.SheetClose=b.SheetClose;exports.SheetContent=b.SheetContent;exports.SheetDescription=b.SheetDescription;exports.SheetFooter=b.SheetFooter;exports.SheetHeader=b.SheetHeader;exports.SheetTitle=b.SheetTitle;exports.SheetTrigger=b.SheetTrigger;exports.Sidebar=e.Sidebar;exports.SidebarContent=e.SidebarContent;exports.SidebarFooter=e.SidebarFooter;exports.SidebarGroup=e.SidebarGroup;exports.SidebarGroupAction=e.SidebarGroupAction;exports.SidebarGroupContent=e.SidebarGroupContent;exports.SidebarGroupLabel=e.SidebarGroupLabel;exports.SidebarHeader=e.SidebarHeader;exports.SidebarInput=e.SidebarInput;exports.SidebarInset=e.SidebarInset;exports.SidebarMenu=e.SidebarMenu;exports.SidebarMenuAction=e.SidebarMenuAction;exports.SidebarMenuBadge=e.SidebarMenuBadge;exports.SidebarMenuButton=e.SidebarMenuButton;exports.SidebarMenuItem=e.SidebarMenuItem;exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton;exports.SidebarMenuSub=e.SidebarMenuSub;exports.SidebarMenuSubButton=e.SidebarMenuSubButton;exports.SidebarMenuSubItem=e.SidebarMenuSubItem;exports.SidebarProvider=e.SidebarProvider;exports.SidebarRail=e.SidebarRail;exports.SidebarSeparator=e.SidebarSeparator;exports.SidebarTrigger=e.SidebarTrigger;exports.useSidebar=e.useSidebar;exports.Skeleton=j.Skeleton;exports.Slider=W.Slider;exports.Toaster=J.Toaster;exports.Switch=K.Switch;exports.Table=c.Table;exports.TableBody=c.TableBody;exports.TableCaption=c.TableCaption;exports.TableCell=c.TableCell;exports.TableFooter=c.TableFooter;exports.TableHead=c.TableHead;exports.TableHeader=c.TableHeader;exports.TableRow=c.TableRow;exports.Tabs=I.Tabs;exports.TabsContent=I.TabsContent;exports.TabsList=I.TabsList;exports.TabsTrigger=I.TabsTrigger;exports.Textarea=Q.Textarea;exports.ToggleGroup=R.ToggleGroup;exports.ToggleGroupItem=R.ToggleGroupItem;exports.Toggle=k.Toggle;exports.toggleVariants=k.toggleVariants;exports.Tooltip=P.Tooltip;exports.TooltipContent=P.TooltipContent;exports.TooltipProvider=P.TooltipProvider;exports.TooltipTrigger=P.TooltipTrigger; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const N=require("./index.cjs3.js"),H=require("./index.cjs4.js"),x=require("./index.cjs5.js"),m=require("./index.cjs6.js"),a=require("./index.cjs7.js"),I=require("./index.cjs8.js"),y=require("./index.cjs9.js"),w=require("./index.cjs10.js"),L=require("./index.cjs11.js"),C=require("./index.cjs12.js"),F=require("./index.cjs13.js"),O=require("./index.cjs14.js"),s=require("./index.cjs15.js"),M=require("./index.cjs16.js"),S=require("./index.cjs17.js"),f=require("./index.cjs18.js"),q=require("./index.cjs19.js"),l=require("./index.cjs20.js"),o=require("./index.cjs21.js"),n=require("./index.cjs22.js"),i=require("./index.cjs23.js"),t=require("./index.cjs24.js"),b=require("./index.cjs25.js"),h=require("./index.cjs26.js"),D=require("./index.cjs27.js"),V=require("./index.cjs28.js"),z=require("./index.cjs29.js"),r=require("./index.cjs30.js"),d=require("./index.cjs31.js"),p=require("./index.cjs32.js"),T=require("./index.cjs33.js"),E=require("./index.cjs34.js"),G=require("./index.cjs35.js"),A=require("./index.cjs36.js"),B=require("./index.cjs37.js"),u=require("./index.cjs38.js"),K=require("./index.cjs39.js"),g=require("./index.cjs40.js"),e=require("./index.cjs41.js"),U=require("./index.cjs42.js"),W=require("./index.cjs43.js"),j=require("./index.cjs44.js"),_=require("./index.cjs45.js"),c=require("./index.cjs46.js"),v=require("./index.cjs47.js"),J=require("./index.cjs48.js"),R=require("./index.cjs49.js"),k=require("./index.cjs50.js"),P=require("./index.cjs51.js"),Q=require("./index.cjs52.js"),X=require("./index.cjs53.js"),Y=require("./index.cjs54.js"),Z=require("./index.cjs55.js"),$=require("./index.cjs56.js"),ee=require("./index.cjs57.js"),re=require("./index.cjs58.js"),oe=require("./index.cjs59.js"),te=require("./index.cjs60.js"),ae=require("./index.cjs61.js"),ne=require("./index.cjs62.js"),ie=require("./index.cjs63.js");exports.Colors=N.default;exports.ThemeProvider=H.default;exports.NextLinkProvider=x.LinkProvider;exports.useNextLink=x.useLinkComponent;exports.Accordion=m.Accordion;exports.AccordionContent=m.AccordionContent;exports.AccordionItem=m.AccordionItem;exports.AccordionTrigger=m.AccordionTrigger;exports.AlertDialog=a.AlertDialog;exports.AlertDialogAction=a.AlertDialogAction;exports.AlertDialogCancel=a.AlertDialogCancel;exports.AlertDialogContent=a.AlertDialogContent;exports.AlertDialogDescription=a.AlertDialogDescription;exports.AlertDialogFooter=a.AlertDialogFooter;exports.AlertDialogHeader=a.AlertDialogHeader;exports.AlertDialogOverlay=a.AlertDialogOverlay;exports.AlertDialogPortal=a.AlertDialogPortal;exports.AlertDialogTitle=a.AlertDialogTitle;exports.AlertDialogTrigger=a.AlertDialogTrigger;exports.Alert=I.Alert;exports.AlertDescription=I.AlertDescription;exports.AlertTitle=I.AlertTitle;exports.AspectRatio=y.AspectRatio;exports.Avatar=w.Avatar;exports.AvatarFallback=w.AvatarFallback;exports.AvatarImage=w.AvatarImage;exports.Badge=L.Badge;exports.badgeVariants=L.badgeVariants;exports.Breadcrumb=C.Breadcrumb;exports.BreadcrumbEllipsis=C.BreadcrumbEllipsis;exports.BreadcrumbItem=C.BreadcrumbItem;exports.BreadcrumbLink=C.BreadcrumbLink;exports.BreadcrumbList=C.BreadcrumbList;exports.BreadcrumbPage=C.BreadcrumbPage;exports.BreadcrumbSeparator=C.BreadcrumbSeparator;exports.Button=F.Button;exports.buttonVariants=F.buttonVariants;exports.Calendar=O.Calendar;exports.Card=s.Card;exports.CardAction=s.CardAction;exports.CardContent=s.CardContent;exports.CardDescription=s.CardDescription;exports.CardFooter=s.CardFooter;exports.CardHeader=s.CardHeader;exports.CardTitle=s.CardTitle;exports.Carousel=M.Carousel;exports.CarouselContent=M.CarouselContent;exports.CarouselItem=M.CarouselItem;exports.CarouselNext=M.CarouselNext;exports.CarouselPrevious=M.CarouselPrevious;exports.ChartContainer=S.ChartContainer;exports.ChartLegend=S.ChartLegend;exports.ChartLegendContent=S.ChartLegendContent;exports.ChartStyle=S.ChartStyle;exports.ChartTooltip=S.ChartTooltip;exports.ChartTooltipContent=S.ChartTooltipContent;exports.Checkbox=f.Checkbox;exports.Collapsible=q.Collapsible;exports.CollapsibleContent=q.CollapsibleContent;exports.CollapsibleTrigger=q.CollapsibleTrigger;exports.Command=l.Command;exports.CommandDialog=l.CommandDialog;exports.CommandEmpty=l.CommandEmpty;exports.CommandGroup=l.CommandGroup;exports.CommandInput=l.CommandInput;exports.CommandItem=l.CommandItem;exports.CommandList=l.CommandList;exports.CommandSeparator=l.CommandSeparator;exports.CommandShortcut=l.CommandShortcut;exports.ContextMenu=o.ContextMenu;exports.ContextMenuCheckboxItem=o.ContextMenuCheckboxItem;exports.ContextMenuContent=o.ContextMenuContent;exports.ContextMenuGroup=o.ContextMenuGroup;exports.ContextMenuItem=o.ContextMenuItem;exports.ContextMenuLabel=o.ContextMenuLabel;exports.ContextMenuPortal=o.ContextMenuPortal;exports.ContextMenuRadioGroup=o.ContextMenuRadioGroup;exports.ContextMenuRadioItem=o.ContextMenuRadioItem;exports.ContextMenuSeparator=o.ContextMenuSeparator;exports.ContextMenuShortcut=o.ContextMenuShortcut;exports.ContextMenuSub=o.ContextMenuSub;exports.ContextMenuSubContent=o.ContextMenuSubContent;exports.ContextMenuSubTrigger=o.ContextMenuSubTrigger;exports.ContextMenuTrigger=o.ContextMenuTrigger;exports.Dialog=n.Dialog;exports.DialogClose=n.DialogClose;exports.DialogContent=n.DialogContent;exports.DialogDescription=n.DialogDescription;exports.DialogFooter=n.DialogFooter;exports.DialogHeader=n.DialogHeader;exports.DialogOverlay=n.DialogOverlay;exports.DialogPortal=n.DialogPortal;exports.DialogTitle=n.DialogTitle;exports.DialogTrigger=n.DialogTrigger;exports.Drawer=i.Drawer;exports.DrawerClose=i.DrawerClose;exports.DrawerContent=i.DrawerContent;exports.DrawerDescription=i.DrawerDescription;exports.DrawerFooter=i.DrawerFooter;exports.DrawerHeader=i.DrawerHeader;exports.DrawerOverlay=i.DrawerOverlay;exports.DrawerPortal=i.DrawerPortal;exports.DrawerTitle=i.DrawerTitle;exports.DrawerTrigger=i.DrawerTrigger;exports.DropdownMenu=t.DropdownMenu;exports.DropdownMenuCheckboxItem=t.DropdownMenuCheckboxItem;exports.DropdownMenuContent=t.DropdownMenuContent;exports.DropdownMenuGroup=t.DropdownMenuGroup;exports.DropdownMenuItem=t.DropdownMenuItem;exports.DropdownMenuLabel=t.DropdownMenuLabel;exports.DropdownMenuPortal=t.DropdownMenuPortal;exports.DropdownMenuRadioGroup=t.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=t.DropdownMenuRadioItem;exports.DropdownMenuSeparator=t.DropdownMenuSeparator;exports.DropdownMenuShortcut=t.DropdownMenuShortcut;exports.DropdownMenuSub=t.DropdownMenuSub;exports.DropdownMenuSubContent=t.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=t.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=t.DropdownMenuTrigger;exports.Form=b.Form;exports.FormControl=b.FormControl;exports.FormDescription=b.FormDescription;exports.FormField=b.FormField;exports.FormItem=b.FormItem;exports.FormLabel=b.FormLabel;exports.FormMessage=b.FormMessage;exports.useFormField=b.useFormField;exports.HoverCard=h.HoverCard;exports.HoverCardContent=h.HoverCardContent;exports.HoverCardTrigger=h.HoverCardTrigger;exports.InputOTP=D.InputOTP;exports.InputOTPGroup=D.InputOTPGroup;exports.InputOTPSeparator=D.InputOTPSeparator;exports.InputOTPSlot=D.InputOTPSlot;exports.ShadInput=V.Input;exports.Label=z.Label;exports.Menubar=r.Menubar;exports.MenubarCheckboxItem=r.MenubarCheckboxItem;exports.MenubarContent=r.MenubarContent;exports.MenubarGroup=r.MenubarGroup;exports.MenubarItem=r.MenubarItem;exports.MenubarLabel=r.MenubarLabel;exports.MenubarMenu=r.MenubarMenu;exports.MenubarPortal=r.MenubarPortal;exports.MenubarRadioGroup=r.MenubarRadioGroup;exports.MenubarRadioItem=r.MenubarRadioItem;exports.MenubarSeparator=r.MenubarSeparator;exports.MenubarShortcut=r.MenubarShortcut;exports.MenubarSub=r.MenubarSub;exports.MenubarSubContent=r.MenubarSubContent;exports.MenubarSubTrigger=r.MenubarSubTrigger;exports.MenubarTrigger=r.MenubarTrigger;exports.NavigationMenu=d.NavigationMenu;exports.NavigationMenuContent=d.NavigationMenuContent;exports.NavigationMenuIndicator=d.NavigationMenuIndicator;exports.NavigationMenuItem=d.NavigationMenuItem;exports.NavigationMenuLink=d.NavigationMenuLink;exports.NavigationMenuList=d.NavigationMenuList;exports.NavigationMenuTrigger=d.NavigationMenuTrigger;exports.NavigationMenuViewport=d.NavigationMenuViewport;exports.navigationMenuTriggerStyle=d.navigationMenuTriggerStyle;exports.Pagination=p.Pagination;exports.PaginationContent=p.PaginationContent;exports.PaginationEllipsis=p.PaginationEllipsis;exports.PaginationItem=p.PaginationItem;exports.PaginationLink=p.PaginationLink;exports.PaginationNext=p.PaginationNext;exports.PaginationPrevious=p.PaginationPrevious;exports.Popover=T.Popover;exports.PopoverAnchor=T.PopoverAnchor;exports.PopoverContent=T.PopoverContent;exports.PopoverTrigger=T.PopoverTrigger;exports.Progress=E.Progress;exports.RadioGroup=G.RadioGroup;exports.RadioGroupItem=G.RadioGroupItem;exports.ResizableHandle=A.ResizableHandle;exports.ResizablePanel=A.ResizablePanel;exports.ResizablePanelGroup=A.ResizablePanelGroup;exports.ScrollArea=B.ScrollArea;exports.ScrollBar=B.ScrollBar;exports.Select=u.Select;exports.SelectContent=u.SelectContent;exports.SelectGroup=u.SelectGroup;exports.SelectItem=u.SelectItem;exports.SelectLabel=u.SelectLabel;exports.SelectScrollDownButton=u.SelectScrollDownButton;exports.SelectScrollUpButton=u.SelectScrollUpButton;exports.SelectSeparator=u.SelectSeparator;exports.SelectTrigger=u.SelectTrigger;exports.SelectValue=u.SelectValue;exports.Separator=K.Separator;exports.Sheet=g.Sheet;exports.SheetClose=g.SheetClose;exports.SheetContent=g.SheetContent;exports.SheetDescription=g.SheetDescription;exports.SheetFooter=g.SheetFooter;exports.SheetHeader=g.SheetHeader;exports.SheetTitle=g.SheetTitle;exports.SheetTrigger=g.SheetTrigger;exports.Sidebar=e.Sidebar;exports.SidebarContent=e.SidebarContent;exports.SidebarFooter=e.SidebarFooter;exports.SidebarGroup=e.SidebarGroup;exports.SidebarGroupAction=e.SidebarGroupAction;exports.SidebarGroupContent=e.SidebarGroupContent;exports.SidebarGroupLabel=e.SidebarGroupLabel;exports.SidebarHeader=e.SidebarHeader;exports.SidebarInput=e.SidebarInput;exports.SidebarInset=e.SidebarInset;exports.SidebarMenu=e.SidebarMenu;exports.SidebarMenuAction=e.SidebarMenuAction;exports.SidebarMenuBadge=e.SidebarMenuBadge;exports.SidebarMenuButton=e.SidebarMenuButton;exports.SidebarMenuItem=e.SidebarMenuItem;exports.SidebarMenuSkeleton=e.SidebarMenuSkeleton;exports.SidebarMenuSub=e.SidebarMenuSub;exports.SidebarMenuSubButton=e.SidebarMenuSubButton;exports.SidebarMenuSubItem=e.SidebarMenuSubItem;exports.SidebarProvider=e.SidebarProvider;exports.SidebarRail=e.SidebarRail;exports.SidebarSeparator=e.SidebarSeparator;exports.SidebarTrigger=e.SidebarTrigger;exports.useSidebar=e.useSidebar;exports.Skeleton=U.Skeleton;exports.Slider=W.Slider;exports.Toaster=j.Toaster;exports.Switch=_.Switch;exports.Table=c.Table;exports.TableBody=c.TableBody;exports.TableCaption=c.TableCaption;exports.TableCell=c.TableCell;exports.TableFooter=c.TableFooter;exports.TableHead=c.TableHead;exports.TableHeader=c.TableHeader;exports.TableRow=c.TableRow;exports.Tabs=v.Tabs;exports.TabsContent=v.TabsContent;exports.TabsList=v.TabsList;exports.TabsTrigger=v.TabsTrigger;exports.Textarea=J.Textarea;exports.ToggleGroup=R.ToggleGroup;exports.ToggleGroupItem=R.ToggleGroupItem;exports.Toggle=k.Toggle;exports.toggleVariants=k.toggleVariants;exports.Tooltip=P.Tooltip;exports.TooltipContent=P.TooltipContent;exports.TooltipProvider=P.TooltipProvider;exports.TooltipTrigger=P.TooltipTrigger;exports.RootLayout=Q.default;exports.Sidenav=X.default;exports.CheckboxWithLabel=Y.default;exports.StatCard=Z.default;exports.DetailStat=$.default;exports.KeyFactCard=ee.default;exports.CopyToClipboard=re.default;exports.NavBreadcrumb=oe.default;exports.Notification=te.default;exports.ProblemsOverview=ae.default;exports.SelectWithOptions=ne.default;exports.Input=ie.default; diff --git a/dist/index.cjs10.js b/dist/index.cjs10.js index 654c1f6e..b69f5089 100644 --- a/dist/index.cjs10.js +++ b/dist/index.cjs10.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("@radix-ui/react-aspect-ratio");function i(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const a=i(c);function n({...t}){return React.createElement(a.Root,{"data-slot":"aspect-ratio",...t})}exports.AspectRatio=n; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),i=require("@radix-ui/react-avatar"),n=require("./index.cjs65.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=u(i);function o({className:e,...t}){return r.jsxRuntimeExports.jsx(s.Root,{"data-slot":"avatar",className:n.cn("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...t})}function c({className:e,...t}){return r.jsxRuntimeExports.jsx(s.Image,{"data-slot":"avatar-image",className:n.cn("aspect-square size-full",e),...t})}function f({className:e,...t}){return r.jsxRuntimeExports.jsx(s.Fallback,{"data-slot":"avatar-fallback",className:n.cn("bg-muted flex size-full items-center justify-center rounded-full",e),...t})}exports.Avatar=o;exports.AvatarFallback=f;exports.AvatarImage=c; diff --git a/dist/index.cjs11.js b/dist/index.cjs11.js index 8c78da43..efbe3e98 100644 --- a/dist/index.cjs11.js +++ b/dist/index.cjs11.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),s=require("@radix-ui/react-avatar"),l=require("./index.cjs54.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const r=c(o),i=c(s);function u({className:e,...t}){return r.createElement(i.Root,{"data-slot":"avatar",className:l.cn("lib:relative lib:flex lib:size-8 lib:shrink-0 lib:overflow-hidden lib:rounded-full",e),...t})}function b({className:e,...t}){return r.createElement(i.Image,{"data-slot":"avatar-image",className:l.cn("lib:aspect-square lib:size-full",e),...t})}function f({className:e,...t}){return r.createElement(i.Fallback,{"data-slot":"avatar-fallback",className:l.cn("lib:bg-muted lib:flex lib:size-full lib:items-center lib:justify-center lib:rounded-full",e),...t})}exports.Avatar=u;exports.AvatarFallback=f;exports.AvatarImage=b; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs64.js"),o=require("@radix-ui/react-slot"),d=require("class-variance-authority"),c=require("./index.cjs65.js"),e=d.cva("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function u({className:r,variant:t,asChild:i=!1,...a}){const n=i?o.Slot:"span";return s.jsxRuntimeExports.jsx(n,{"data-slot":"badge",className:c.cn(e({variant:t}),r),...a})}exports.Badge=u;exports.badgeVariants=e; diff --git a/dist/index.cjs12.js b/dist/index.cjs12.js index 0607dd4f..a4af84a9 100644 --- a/dist/index.cjs12.js +++ b/dist/index.cjs12.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),b=require("@radix-ui/react-slot"),o=require("class-variance-authority"),s=require("./index.cjs54.js");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return r.default=e,Object.freeze(r)}const d=c(l),a=o.cva("lib:inline-flex lib:items-center lib:justify-center lib:rounded-md lib:border lib:px-2 lib:py-0.5 lib:text-xs lib:font-medium lib:w-fit lib:whitespace-nowrap lib:shrink-0 [&>svg]:lib:size-3 lib:gap-1 [&>svg]:lib:pointer-events-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:transition-[color,box-shadow] lib:overflow-hidden",{variants:{variant:{default:"lib:border-transparent lib:bg-primary lib:text-primary-foreground [a&]:hover:lib:bg-primary/90",secondary:"lib:border-transparent lib:bg-secondary lib:text-secondary-foreground [a&]:hover:lib:bg-secondary/90",destructive:"lib:border-transparent lib:bg-destructive lib:text-white [a&]:hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60",outline:"lib:text-foreground [a&]:hover:lib:bg-accent [a&]:hover:lib:text-accent-foreground"}},defaultVariants:{variant:"default"}});function u({className:e,variant:r,asChild:i=!1,...t}){const n=i?b.Slot:"span";return d.createElement(n,{"data-slot":"badge",className:s.cn(a({variant:r}),e),...t})}exports.Badge=u;exports.badgeVariants=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),u=require("@radix-ui/react-slot"),n=require("lucide-react"),a=require("./index.cjs65.js");function o({...e}){return t.jsxRuntimeExports.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function c({className:e,...r}){return t.jsxRuntimeExports.jsx("ol",{"data-slot":"breadcrumb-list",className:a.cn("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",e),...r})}function m({className:e,...r}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-item",className:a.cn("inline-flex items-center gap-1.5",e),...r})}function l({asChild:e,className:r,...s}){const i=e?u.Slot:"a";return t.jsxRuntimeExports.jsx(i,{"data-slot":"breadcrumb-link",className:a.cn("hover:text-foreground transition-colors",r),...s})}function d({className:e,...r}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:a.cn("text-foreground font-normal",e),...r})}function x({children:e,className:r,...s}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:a.cn("[&>svg]:size-3.5",r),...s,children:e??t.jsxRuntimeExports.jsx(n.ChevronRight,{})})}function b({className:e,...r}){return t.jsxRuntimeExports.jsxs("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:a.cn("flex size-9 items-center justify-center",e),...r,children:[t.jsxRuntimeExports.jsx(n.MoreHorizontal,{className:"size-4"}),t.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More"})]})}exports.Breadcrumb=o;exports.BreadcrumbEllipsis=b;exports.BreadcrumbItem=m;exports.BreadcrumbLink=l;exports.BreadcrumbList=c;exports.BreadcrumbPage=d;exports.BreadcrumbSeparator=x; diff --git a/dist/index.cjs13.js b/dist/index.cjs13.js index cce58d34..11592b98 100644 --- a/dist/index.cjs13.js +++ b/dist/index.cjs13.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),s=require("@radix-ui/react-slot"),i=require("lucide-react"),l=require("./index.cjs54.js");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const t=o(c);function u({...e}){return t.createElement("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function b({className:e,...r}){return t.createElement("ol",{"data-slot":"breadcrumb-list",className:l.cn("lib:text-muted-foreground lib:flex lib:flex-wrap lib:items-center lib:gap-1.5 lib:text-sm lib:break-words sm:lib:gap-2.5",e),...r})}function m({className:e,...r}){return t.createElement("li",{"data-slot":"breadcrumb-item",className:l.cn("lib:inline-flex lib:items-center lib:gap-1.5",e),...r})}function d({asChild:e,className:r,...a}){const n=e?s.Slot:"a";return t.createElement(n,{"data-slot":"breadcrumb-link",className:l.cn("hover:lib:text-foreground lib:transition-colors",r),...a})}function f({className:e,...r}){return t.createElement("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l.cn("lib:text-foreground lib:font-normal",e),...r})}function p({children:e,className:r,...a}){return t.createElement("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l.cn("[&>svg]:lib:size-3.5",r),...a},e??t.createElement(i.ChevronRight,null))}function g({className:e,...r}){return t.createElement("span",{"data-slot":"breadcrumb-ellipsis",role:"presentation","aria-hidden":"true",className:l.cn("lib:flex lib:size-9 lib:items-center lib:justify-center",e),...r},t.createElement(i.MoreHorizontal,{className:"lib:size-4"}),t.createElement("span",{className:"lib:sr-only"},"More"))}exports.Breadcrumb=u;exports.BreadcrumbEllipsis=g;exports.BreadcrumbItem=m;exports.BreadcrumbLink=d;exports.BreadcrumbList=b;exports.BreadcrumbPage=f;exports.BreadcrumbSeparator=p; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),d=require("@radix-ui/react-slot"),u=require("class-variance-authority"),c=require("./index.cjs65.js"),e=u.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function v({className:t,variant:r,size:i,asChild:n=!1,...s}){const o=n?d.Slot:"button";return a.jsxRuntimeExports.jsx(o,{"data-slot":"button",className:c.cn(e({variant:r,size:i,className:t})),...s})}exports.Button=v;exports.buttonVariants=e; diff --git a/dist/index.cjs14.js b/dist/index.cjs14.js index bcee4fbb..78ff583e 100644 --- a/dist/index.cjs14.js +++ b/dist/index.cjs14.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),o=require("@radix-ui/react-slot"),s=require("class-variance-authority"),c=require("./index.cjs54.js");function d(i){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:()=>i[e]})}}return t.default=i,Object.freeze(t)}const u=d(a),l=s.cva("lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:whitespace-nowrap lib:rounded-md lib:text-sm lib:font-medium lib:transition-all disabled:lib:pointer-events-none disabled:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 lib:shrink-0 [&_svg]:lib:shrink-0 lib:outline-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive",{variants:{variant:{default:"lib:bg-primary lib:text-primary-foreground lib:shadow-xs hover:lib:bg-primary/90",destructive:"lib:bg-destructive lib:text-white lib:shadow-xs hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60",outline:"lib:border lib:bg-background lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground dark:lib:bg-input/30 dark:lib:border-input dark:hover:lib:bg-input/50",secondary:"lib:bg-secondary lib:text-secondary-foreground lib:shadow-xs hover:lib:bg-secondary/80",ghost:"hover:lib:bg-accent hover:lib:text-accent-foreground dark:hover:lib:bg-accent/50",link:"lib:text-primary lib:underline-offset-4 hover:lib:underline"},size:{default:"lib:h-9 lib:px-4 lib:py-2 has-[>svg]:lib:px-3",sm:"lib:h-8 lib:rounded-md lib:gap-1.5 lib:px-3 has-[>svg]:lib:px-2.5",lg:"lib:h-10 lib:rounded-md lib:px-6 has-[>svg]:lib:px-4",icon:"lib:size-9"}},defaultVariants:{variant:"default",size:"default"}});function g({className:i,variant:t,size:e,asChild:r=!1,...b}){const n=r?o.Slot:"button";return u.createElement(n,{"data-slot":"button",className:c.cn(l({variant:t,size:e,className:i})),...b})}exports.Button=g;exports.buttonVariants=l; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./index.cjs64.js"),_=require("react"),g=require("lucide-react"),m=require("react-day-picker"),e=require("./index.cjs65.js"),f=require("./index.cjs13.js");function w(r){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(o,n,s.get?s:{enumerable:!0,get:()=>r[n]})}}return o.default=r,Object.freeze(o)}const p=w(_);function h({className:r,classNames:o,showOutsideDays:n=!0,captionLayout:s="label",buttonVariant:l="ghost",formatters:i,components:b,...y}){const t=m.getDefaultClassNames();return d.jsxRuntimeExports.jsx(m.DayPicker,{showOutsideDays:n,className:e.cn("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,r),captionLayout:s,formatters:{formatMonthDropdown:a=>a.toLocaleString("default",{month:"short"}),...i},classNames:{root:e.cn("w-fit",t.root),months:e.cn("flex gap-4 flex-col md:flex-row relative",t.months),month:e.cn("flex flex-col w-full gap-4",t.month),nav:e.cn("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",t.nav),button_previous:e.cn(f.buttonVariants({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",t.button_previous),button_next:e.cn(f.buttonVariants({variant:l}),"size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",t.button_next),month_caption:e.cn("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",t.month_caption),dropdowns:e.cn("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",t.dropdowns),dropdown_root:e.cn("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",t.dropdown_root),dropdown:e.cn("absolute inset-0 opacity-0",t.dropdown),caption_label:e.cn("select-none font-medium",s==="label"?"text-sm":"rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",t.caption_label),table:"w-full border-collapse",weekdays:e.cn("flex",t.weekdays),weekday:e.cn("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",t.weekday),week:e.cn("flex w-full mt-2",t.week),week_number_header:e.cn("select-none w-(--cell-size)",t.week_number_header),week_number:e.cn("text-[0.8rem] select-none text-muted-foreground",t.week_number),day:e.cn("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",t.day),range_start:e.cn("rounded-l-md bg-accent",t.range_start),range_middle:e.cn("rounded-none",t.range_middle),range_end:e.cn("rounded-r-md bg-accent",t.range_end),today:e.cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",t.today),outside:e.cn("text-muted-foreground aria-selected:text-muted-foreground",t.outside),disabled:e.cn("text-muted-foreground opacity-50",t.disabled),hidden:e.cn("invisible",t.hidden),...o},components:{Root:({className:a,rootRef:u,...c})=>d.jsxRuntimeExports.jsx("div",{"data-slot":"calendar",ref:u,className:e.cn(a),...c}),Chevron:({className:a,orientation:u,...c})=>u==="left"?d.jsxRuntimeExports.jsx(g.ChevronLeftIcon,{className:e.cn("size-4",a),...c}):u==="right"?d.jsxRuntimeExports.jsx(g.ChevronRightIcon,{className:e.cn("size-4",a),...c}):d.jsxRuntimeExports.jsx(g.ChevronDownIcon,{className:e.cn("size-4",a),...c}),DayButton:x,WeekNumber:({children:a,...u})=>d.jsxRuntimeExports.jsx("td",{...u,children:d.jsxRuntimeExports.jsx("div",{className:"flex size-(--cell-size) items-center justify-center text-center",children:a})}),...b},...y})}function x({className:r,day:o,modifiers:n,...s}){const l=m.getDefaultClassNames(),i=p.useRef(null);return p.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),d.jsxRuntimeExports.jsx(f.Button,{ref:i,variant:"ghost",size:"icon","data-day":o.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:e.cn("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",l.day,r),...s})}exports.Calendar=h;exports.CalendarDayButton=x; diff --git a/dist/index.cjs15.js b/dist/index.cjs15.js index 0ebca879..c6d64b28 100644 --- a/dist/index.cjs15.js +++ b/dist/index.cjs15.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),o=require("lucide-react"),s=require("react-day-picker"),i=require("./index.cjs54.js"),d=require("./index.cjs14.js");function u(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const b=u(c);function m({className:e,classNames:l,showOutsideDays:t=!0,...a}){return b.createElement(s.DayPicker,{showOutsideDays:t,className:i.cn("lib:p-3",e),classNames:{months:"lib:flex lib:flex-col sm:lib:flex-row lib:gap-2",month:"lib:flex lib:flex-col lib:gap-4",caption:"lib:flex lib:justify-center lib:pt-1 lib:relative lib:items-center lib:w-full",caption_label:"lib:text-sm lib:font-medium",nav:"lib:flex lib:items-center lib:gap-1",nav_button:i.cn(d.buttonVariants({variant:"outline"}),"lib:size-7 lib:bg-transparent lib:p-0 lib:opacity-50 hover:lib:opacity-100"),nav_button_previous:"lib:absolute lib:left-1",nav_button_next:"lib:absolute lib:right-1",table:"lib:w-full lib:border-collapse lib:space-x-1",head_row:"lib:flex",head_cell:"lib:text-muted-foreground lib:rounded-md lib:w-8 lib:font-normal lib:text-[0.8rem]",row:"lib:flex lib:w-full lib:mt-2",cell:i.cn("lib:relative lib:p-0 lib:text-center lib:text-sm focus-within:lib:relative focus-within:lib:z-20 [&:has([aria-selected])]:lib:bg-accent [&:has([aria-selected].day-range-end)]:lib:rounded-r-md",a.mode==="range"?"[&:has(>.day-range-end)]:lib:rounded-r-md [&:has(>.day-range-start)]:lib:rounded-l-md first:[&:has([aria-selected])]:lib:rounded-l-md last:[&:has([aria-selected])]:lib:rounded-r-md":"[&:has([aria-selected])]:lib:rounded-md"),day:i.cn(d.buttonVariants({variant:"ghost"}),"lib:size-8 lib:p-0 lib:font-normal aria-selected:lib:opacity-100"),day_range_start:"lib:day-range-start aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground",day_range_end:"lib:day-range-end aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground",day_selected:"lib:bg-primary lib:text-primary-foreground hover:lib:bg-primary hover:lib:text-primary-foreground focus:lib:bg-primary focus:lib:text-primary-foreground",day_today:"lib:bg-accent lib:text-accent-foreground",day_outside:"lib:day-outside lib:text-muted-foreground aria-selected:lib:text-muted-foreground",day_disabled:"lib:text-muted-foreground lib:opacity-50",day_range_middle:"aria-selected:lib:bg-accent aria-selected:lib:text-accent-foreground",day_hidden:"lib:invisible",...l},components:{IconLeft:({className:r,...n})=>b.createElement(o.ChevronLeft,{className:i.cn("lib:size-4",r),...n}),IconRight:({className:r,...n})=>b.createElement(o.ChevronRight,{className:i.cn("lib:size-4",r),...n})},...a})}exports.Calendar=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),e=require("./index.cjs65.js");function s({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card",className:e.cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...r})}function o({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-header",className:e.cn("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...r})}function n({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-title",className:e.cn("leading-none font-semibold",t),...r})}function d({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-description",className:e.cn("text-muted-foreground text-sm",t),...r})}function i({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-action",className:e.cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end",t),...r})}function c({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-content",className:e.cn("px-6",t),...r})}function u({className:t,...r}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"card-footer",className:e.cn("flex items-center px-6 [.border-t]:pt-6",t),...r})}exports.Card=s;exports.CardAction=i;exports.CardContent=c;exports.CardDescription=d;exports.CardFooter=u;exports.CardHeader=o;exports.CardTitle=n; diff --git a/dist/index.cjs16.js b/dist/index.cjs16.js index b1ff74cd..be0e620b 100644 --- a/dist/index.cjs16.js +++ b/dist/index.cjs16.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),r=require("./index.cjs54.js");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const l=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,l.get?l:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const a=o(n);function c({className:e,...t}){return a.createElement("div",{"data-slot":"card",className:r.cn("lib:bg-card lib:text-card-foreground lib:flex lib:flex-col lib:gap-6 lib:rounded-xl lib:border lib:py-6 lib:shadow-sm",e),...t})}function d({className:e,...t}){return a.createElement("div",{"data-slot":"card-header",className:r.cn("lib:@container/card-header lib:grid lib:auto-rows-min lib:grid-rows-[auto_auto] lib:items-start lib:gap-1.5 lib:px-6 has-data-[slot=card-action]:lib:grid-cols-[1fr_auto] [.border-b]:lib:pb-6",e),...t})}function s({className:e,...t}){return a.createElement("div",{"data-slot":"card-title",className:r.cn("lib:leading-none lib:font-semibold",e),...t})}function b({className:e,...t}){return a.createElement("div",{"data-slot":"card-description",className:r.cn("lib:text-muted-foreground lib:text-sm",e),...t})}function u({className:e,...t}){return a.createElement("div",{"data-slot":"card-action",className:r.cn("lib:col-start-2 lib:row-span-2 lib:row-start-1 lib:self-start lib:justify-self-end",e),...t})}function f({className:e,...t}){return a.createElement("div",{"data-slot":"card-content",className:r.cn("lib:px-6",e),...t})}function m({className:e,...t}){return a.createElement("div",{"data-slot":"card-footer",className:r.cn("lib:flex lib:items-center lib:px-6 [.border-t]:lib:pt-6",e),...t})}exports.Card=c;exports.CardAction=u;exports.CardContent=f;exports.CardDescription=b;exports.CardFooter=m;exports.CardHeader=d;exports.CardTitle=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs64.js"),S=require("react"),P=require("embla-carousel-react"),j=require("lucide-react"),f=require("./index.cjs65.js"),p=require("./index.cjs13.js");function g(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=g(S),b=l.createContext(null);function d(){const e=l.useContext(b);if(!e)throw new Error("useCarousel must be used within a ");return e}function w({orientation:e="horizontal",opts:o,setApi:t,plugins:n,className:c,children:u,...i}){const[h,r]=P({...o,axis:e==="horizontal"?"x":"y"},n),[v,N]=l.useState(!1),[R,y]=l.useState(!1),x=l.useCallback(a=>{a&&(N(a.canScrollPrev()),y(a.canScrollNext()))},[]),m=l.useCallback(()=>{r?.scrollPrev()},[r]),C=l.useCallback(()=>{r?.scrollNext()},[r]),E=l.useCallback(a=>{a.key==="ArrowLeft"?(a.preventDefault(),m()):a.key==="ArrowRight"&&(a.preventDefault(),C())},[m,C]);return l.useEffect(()=>{!r||!t||t(r)},[r,t]),l.useEffect(()=>{if(r)return x(r),r.on("reInit",x),r.on("select",x),()=>{r?.off("select",x)}},[r,x]),s.jsxRuntimeExports.jsx(b.Provider,{value:{carouselRef:h,api:r,opts:o,orientation:e||(o?.axis==="y"?"vertical":"horizontal"),scrollPrev:m,scrollNext:C,canScrollPrev:v,canScrollNext:R},children:s.jsxRuntimeExports.jsx("div",{onKeyDownCapture:E,className:f.cn("relative",c),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...i,children:u})})}function k({className:e,...o}){const{carouselRef:t,orientation:n}=d();return s.jsxRuntimeExports.jsx("div",{ref:t,className:"overflow-hidden","data-slot":"carousel-content",children:s.jsxRuntimeExports.jsx("div",{className:f.cn("flex",n==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...o})})}function z({className:e,...o}){const{orientation:t}=d();return s.jsxRuntimeExports.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:f.cn("min-w-0 shrink-0 grow-0 basis-full",t==="horizontal"?"pl-4":"pt-4",e),...o})}function q({className:e,variant:o="outline",size:t="icon",...n}){const{orientation:c,scrollPrev:u,canScrollPrev:i}=d();return s.jsxRuntimeExports.jsxs(p.Button,{"data-slot":"carousel-previous",variant:o,size:t,className:f.cn("absolute size-8 rounded-full",c==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:u,...n,children:[s.jsxRuntimeExports.jsx(j.ArrowLeft,{}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Previous slide"})]})}function D({className:e,variant:o="outline",size:t="icon",...n}){const{orientation:c,scrollNext:u,canScrollNext:i}=d();return s.jsxRuntimeExports.jsxs(p.Button,{"data-slot":"carousel-next",variant:o,size:t,className:f.cn("absolute size-8 rounded-full",c==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!i,onClick:u,...n,children:[s.jsxRuntimeExports.jsx(j.ArrowRight,{}),s.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Next slide"})]})}exports.Carousel=w;exports.CarouselContent=k;exports.CarouselItem=z;exports.CarouselNext=D;exports.CarouselPrevious=q; diff --git a/dist/index.cjs17.js b/dist/index.cjs17.js index fbde1981..72d14dcb 100644 --- a/dist/index.cjs17.js +++ b/dist/index.cjs17.js @@ -1 +1,7 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),g=require("embla-carousel-react"),C=require("lucide-react"),b=require("./index.cjs54.js"),x=require("./index.cjs14.js");function w(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(r,l,n.get?n:{enumerable:!0,get:()=>t[l]})}}return r.default=t,Object.freeze(r)}const e=w(P),v=e.createContext(null);function f(){const t=e.useContext(v);if(!t)throw new Error("useCarousel must be used within a ");return t}function k({orientation:t="horizontal",opts:r,setApi:l,plugins:n,className:s,children:i,...c}){const[N,o]=g({...r,axis:t==="horizontal"?"x":"y"},n),[p,h]=e.useState(!1),[y,E]=e.useState(!1),u=e.useCallback(a=>{a&&(h(a.canScrollPrev()),E(a.canScrollNext()))},[]),d=e.useCallback(()=>{o?.scrollPrev()},[o]),m=e.useCallback(()=>{o?.scrollNext()},[o]),S=e.useCallback(a=>{a.key==="ArrowLeft"?(a.preventDefault(),d()):a.key==="ArrowRight"&&(a.preventDefault(),m())},[d,m]);return e.useEffect(()=>{!o||!l||l(o)},[o,l]),e.useEffect(()=>{if(o)return u(o),o.on("reInit",u),o.on("select",u),()=>{o?.off("select",u)}},[o,u]),e.createElement(v.Provider,{value:{carouselRef:N,api:o,opts:r,orientation:t||(r?.axis==="y"?"vertical":"horizontal"),scrollPrev:d,scrollNext:m,canScrollPrev:p,canScrollNext:y}},e.createElement("div",{onKeyDownCapture:S,className:b.cn("lib:relative",s),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...c},i))}function z({className:t,...r}){const{carouselRef:l,orientation:n}=f();return e.createElement("div",{ref:l,className:"lib:overflow-hidden","data-slot":"carousel-content"},e.createElement("div",{className:b.cn("lib:flex",n==="horizontal"?"lib:-ml-4":"lib:-mt-4 lib:flex-col",t),...r}))}function R({className:t,...r}){const{orientation:l}=f();return e.createElement("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:b.cn("lib:min-w-0 lib:shrink-0 lib:grow-0 lib:basis-full",l==="horizontal"?"lib:pl-4":"lib:pt-4",t),...r})}function D({className:t,variant:r="outline",size:l="icon",...n}){const{orientation:s,scrollPrev:i,canScrollPrev:c}=f();return e.createElement(x.Button,{"data-slot":"carousel-previous",variant:r,size:l,className:b.cn("lib:absolute lib:size-8 lib:rounded-full",s==="horizontal"?"lib:top-1/2 lib:-left-12 lib:-translate-y-1/2":"lib:-top-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90",t),disabled:!c,onClick:i,...n},e.createElement(C.ArrowLeft,null),e.createElement("span",{className:"lib:sr-only"},"Previous slide"))}function O({className:t,variant:r="outline",size:l="icon",...n}){const{orientation:s,scrollNext:i,canScrollNext:c}=f();return e.createElement(x.Button,{"data-slot":"carousel-next",variant:r,size:l,className:b.cn("lib:absolute lib:size-8 lib:rounded-full",s==="horizontal"?"lib:top-1/2 lib:-right-12 lib:-translate-y-1/2":"lib:-bottom-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90",t),disabled:!c,onClick:i,...n},e.createElement(C.ArrowRight,null),e.createElement("span",{className:"lib:sr-only"},"Next slide"))}exports.Carousel=k;exports.CarouselContent=z;exports.CarouselItem=R;exports.CarouselNext=O;exports.CarouselPrevious=D; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),P=require("react"),S=require("recharts"),a=require("./index.cjs65.js");function _(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const r in s)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(s,r);Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>s[r]})}}return e.default=s,Object.freeze(e)}const m=_(P),b=_(S),T={light:"",dark:".dark"},k=m.createContext(null);function y(){const s=m.useContext(k);if(!s)throw new Error("useChart must be used within a ");return s}function $({id:s,className:e,children:r,config:t,...i}){const u=m.useId(),c=`chart-${s||u.replace(/:/g,"")}`;return n.jsxRuntimeExports.jsx(k.Provider,{value:{config:t},children:n.jsxRuntimeExports.jsxs("div",{"data-slot":"chart","data-chart":c,className:a.cn("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",e),...i,children:[n.jsxRuntimeExports.jsx(w,{id:c,config:t}),n.jsxRuntimeExports.jsx(b.ResponsiveContainer,{children:r})]})})}const w=({id:s,config:e})=>{const r=Object.entries(e).filter(([,t])=>t.theme||t.color);return r.length?n.jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(T).map(([t,i])=>` +${i} [data-chart=${s}] { +${r.map(([u,c])=>{const l=c.theme?.[t]||c.color;return l?` --color-${u}: ${l};`:null}).join(` +`)} +} +`).join(` +`)}}):null},O=b.Tooltip;function q({active:s,payload:e,className:r,indicator:t="dot",hideLabel:i=!1,hideIndicator:u=!1,label:c,labelFormatter:l,labelClassName:d,formatter:C,color:N,nameKey:L,labelKey:p}){const{config:h}=y(),R=m.useMemo(()=>{if(i||!e?.length)return null;const[o]=e,g=`${p||o?.dataKey||o?.name||"value"}`,j=v(h,o,g),x=!p&&typeof c=="string"?h[c]?.label||c:j?.label;return l?n.jsxRuntimeExports.jsx("div",{className:a.cn("font-medium",d),children:l(x,e)}):x?n.jsxRuntimeExports.jsx("div",{className:a.cn("font-medium",d),children:x}):null},[c,l,e,i,d,h,p]);if(!s||!e?.length)return null;const f=e.length===1&&t!=="dot";return n.jsxRuntimeExports.jsxs("div",{className:a.cn("border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl",r),children:[f?null:R,n.jsxRuntimeExports.jsx("div",{className:"grid gap-1.5",children:e.map((o,g)=>{const j=`${L||o.name||o.dataKey||"value"}`,x=v(h,o,j),E=N||o.payload.fill||o.color;return n.jsxRuntimeExports.jsx("div",{className:a.cn("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5",t==="dot"&&"items-center"),children:C&&o?.value!==void 0&&o.name?C(o.value,o.name,o,g,o.payload):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[x?.icon?n.jsxRuntimeExports.jsx(x.icon,{}):!u&&n.jsxRuntimeExports.jsx("div",{className:a.cn("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":t==="dot","w-1":t==="line","w-0 border-[1.5px] border-dashed bg-transparent":t==="dashed","my-0.5":f&&t==="dashed"}),style:{"--color-bg":E,"--color-border":E}}),n.jsxRuntimeExports.jsxs("div",{className:a.cn("flex flex-1 justify-between leading-none",f?"items-end":"items-center"),children:[n.jsxRuntimeExports.jsxs("div",{className:"grid gap-1.5",children:[f?R:null,n.jsxRuntimeExports.jsx("span",{className:"text-muted-foreground",children:x?.label||o.name})]}),o.value&&n.jsxRuntimeExports.jsx("span",{className:"text-foreground font-mono font-medium tabular-nums",children:o.value.toLocaleString()})]})]})},o.dataKey)})})]})}const M=b.Legend;function I({className:s,hideIcon:e=!1,payload:r,verticalAlign:t="bottom",nameKey:i}){const{config:u}=y();return r?.length?n.jsxRuntimeExports.jsx("div",{className:a.cn("flex items-center justify-center gap-4",t==="top"?"pb-3":"pt-3",s),children:r.map(c=>{const l=`${i||c.dataKey||"value"}`,d=v(u,c,l);return n.jsxRuntimeExports.jsxs("div",{className:a.cn("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[d?.icon&&!e?n.jsxRuntimeExports.jsx(d.icon,{}):n.jsxRuntimeExports.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:c.color}}),d?.label]},c.value)})}):null}function v(s,e,r){if(typeof e!="object"||e===null)return;const t="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let i=r;return r in e&&typeof e[r]=="string"?i=e[r]:t&&r in t&&typeof t[r]=="string"&&(i=t[r]),i in s?s[i]:s[r]}exports.ChartContainer=$;exports.ChartLegend=M;exports.ChartLegendContent=I;exports.ChartStyle=w;exports.ChartTooltip=O;exports.ChartTooltipContent=q; diff --git a/dist/index.cjs18.js b/dist/index.cjs18.js index c85bb08a..0656c509 100644 --- a/dist/index.cjs18.js +++ b/dist/index.cjs18.js @@ -1,7 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react"),S=require("recharts"),c=require("./index.cjs54.js");function k(l){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const n in l)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(l,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>l[n]})}}return e.default=l,Object.freeze(e)}const t=k(P),C=k(S),T={light:"",dark:".dark"},y=t.createContext(null);function w(){const l=t.useContext(y);if(!l)throw new Error("useChart must be used within a ");return l}function $({id:l,className:e,children:n,config:r,...a}){const b=t.useId(),i=`chart-${l||b.replace(/:/g,"")}`;return t.createElement(y.Provider,{value:{config:r}},t.createElement("div",{"data-slot":"chart","data-chart":i,className:c.cn("[&_.recharts-cartesian-axis-tick_text]:lib:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke=#ccc]]:lib:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:lib:stroke-border [&_.recharts-polar-grid_[stroke=#ccc]]:lib:stroke-border [&_.recharts-radial-bar-background-sector]:lib:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:lib:fill-muted [&_.recharts-reference-line_[stroke=#ccc]]:lib:stroke-border lib:flex lib:aspect-video lib:justify-center lib:text-xs [&_.recharts-dot[stroke=#fff]]:lib:stroke-transparent [&_.recharts-layer]:lib:outline-hidden [&_.recharts-sector]:lib:outline-hidden [&_.recharts-sector[stroke=#fff]]:lib:stroke-transparent [&_.recharts-surface]:lib:outline-hidden",e),...a},t.createElement(j,{id:i,config:r}),t.createElement(C.ResponsiveContainer,null,n)))}const j=({id:l,config:e})=>{const n=Object.entries(e).filter(([,r])=>r.theme||r.color);return n.length?t.createElement("style",{dangerouslySetInnerHTML:{__html:Object.entries(T).map(([r,a])=>` -${a} [data-chart=${l}] { -${n.map(([b,i])=>{const s=i.theme?.[r]||i.color;return s?` --color-${b}: ${s};`:null}).join(` -`)} -} -`).join(` -`)}}):null},O=C.Tooltip;function M({active:l,payload:e,className:n,indicator:r="dot",hideLabel:a=!1,hideIndicator:b=!1,label:i,labelFormatter:s,labelClassName:u,formatter:x,color:N,nameKey:L,labelKey:g}){const{config:f}=w(),E=t.useMemo(()=>{if(a||!e?.length)return null;const[o]=e,h=`${g||o?.dataKey||o?.name||"value"}`,p=v(f,o,h),d=!g&&typeof i=="string"?f[i]?.label||i:p?.label;return s?t.createElement("div",{className:c.cn("lib:font-medium",u)},s(d,e)):d?t.createElement("div",{className:c.cn("lib:font-medium",u)},d):null},[i,s,e,a,u,f,g]);if(!l||!e?.length)return null;const m=e.length===1&&r!=="dot";return t.createElement("div",{className:c.cn("lib:border-border/50 lib:bg-background lib:grid lib:min-w-[8rem] lib:items-start lib:gap-1.5 lib:rounded-lg lib:border lib:px-2.5 lib:py-1.5 lib:text-xs lib:shadow-xl",n)},m?null:E,t.createElement("div",{className:"lib:grid lib:gap-1.5"},e.map((o,h)=>{const p=`${L||o.name||o.dataKey||"value"}`,d=v(f,o,p),_=N||o.payload.fill||o.color;return t.createElement("div",{key:o.dataKey,className:c.cn("[&>svg]:lib:text-muted-foreground lib:flex lib:w-full lib:flex-wrap lib:items-stretch lib:gap-2 [&>svg]:lib:h-2.5 [&>svg]:lib:w-2.5",r==="dot"&&"lib:items-center")},x&&o?.value!==void 0&&o.name?x(o.value,o.name,o,h,o.payload):t.createElement(t.Fragment,null,d?.icon?t.createElement(d.icon,null):!b&&t.createElement("div",{className:c.cn("lib:shrink-0 lib:rounded-[2px] lib:border-(--color-border) lib:bg-(--color-bg)",{"h-2.5 w-2.5":r==="dot","w-1":r==="line","w-0 border-[1.5px] border-dashed bg-transparent":r==="dashed","my-0.5":m&&r==="dashed"}),style:{"--color-bg":_,"--color-border":_}}),t.createElement("div",{className:c.cn("lib:flex lib:flex-1 lib:justify-between lib:leading-none",m?"lib:items-end":"lib:items-center")},t.createElement("div",{className:"lib:grid lib:gap-1.5"},m?E:null,t.createElement("span",{className:"lib:text-muted-foreground"},d?.label||o.name)),o.value&&t.createElement("span",{className:"lib:text-foreground lib:font-mono lib:font-medium lib:tabular-nums"},o.value.toLocaleString()))))})))}const R=C.Legend;function q({className:l,hideIcon:e=!1,payload:n,verticalAlign:r="bottom",nameKey:a}){const{config:b}=w();return n?.length?t.createElement("div",{className:c.cn("lib:flex lib:items-center lib:justify-center lib:gap-4",r==="top"?"lib:pb-3":"lib:pt-3",l)},n.map(i=>{const s=`${a||i.dataKey||"value"}`,u=v(b,i,s);return t.createElement("div",{key:i.value,className:c.cn("[&>svg]:lib:text-muted-foreground lib:flex lib:items-center lib:gap-1.5 [&>svg]:lib:h-3 [&>svg]:lib:w-3")},u?.icon&&!e?t.createElement(u.icon,null):t.createElement("div",{className:"lib:h-2 lib:w-2 lib:shrink-0 lib:rounded-[2px]",style:{backgroundColor:i.color}}),u?.label)})):null}function v(l,e,n){if(typeof e!="object"||e===null)return;const r="payload"in e&&typeof e.payload=="object"&&e.payload!==null?e.payload:void 0;let a=n;return n in e&&typeof e[n]=="string"?a=e[n]:r&&n in r&&typeof r[n]=="string"&&(a=r[n]),a in l?l[a]:l[n]}exports.ChartContainer=$;exports.ChartLegend=R;exports.ChartLegendContent=q;exports.ChartStyle=j;exports.ChartTooltip=O;exports.ChartTooltipContent=M; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),o=require("@radix-ui/react-checkbox"),c=require("lucide-react"),s=require("./index.cjs65.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=d(o);function u({className:e,...t}){return i.jsxRuntimeExports.jsx(n.Root,{"data-slot":"checkbox",className:s.cn("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:i.jsxRuntimeExports.jsx(n.Indicator,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:i.jsxRuntimeExports.jsx(c.CheckIcon,{className:"size-3.5"})})})}exports.Checkbox=u; diff --git a/dist/index.cjs19.js b/dist/index.cjs19.js index 5d69999f..2bf37fcf 100644 --- a/dist/index.cjs19.js +++ b/dist/index.cjs19.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),o=require("@radix-ui/react-checkbox"),b=require("lucide-react"),s=require("./index.cjs54.js");function l(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const r=l(n),c=l(o);function d({className:e,...i}){return r.createElement(c.Root,{"data-slot":"checkbox",className:s.cn("lib:peer lib:border-input dark:lib:bg-input/30 data-[state=checked]:lib:bg-primary data-[state=checked]:lib:text-primary-foreground dark:data-[state=checked]:lib:bg-primary data-[state=checked]:lib:border-primary focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:size-4 lib:shrink-0 lib:rounded-[4px] lib:border lib:shadow-xs lib:transition-shadow lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50",e),...i},r.createElement(c.Indicator,{"data-slot":"checkbox-indicator",className:"lib:flex lib:items-center lib:justify-center lib:text-current lib:transition-none"},r.createElement(b.CheckIcon,{className:"lib:size-3.5"})))}exports.Checkbox=d; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),n=require("@radix-ui/react-collapsible");function s(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const i=s(n);function a({...e}){return o.jsxRuntimeExports.jsx(i.Root,{"data-slot":"collapsible",...e})}function u({...e}){return o.jsxRuntimeExports.jsx(i.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function c({...e}){return o.jsxRuntimeExports.jsx(i.CollapsibleContent,{"data-slot":"collapsible-content",...e})}exports.Collapsible=a;exports.CollapsibleContent=c;exports.CollapsibleTrigger=u; diff --git a/dist/index.cjs20.js b/dist/index.cjs20.js index 2c94ac69..dcda6327 100644 --- a/dist/index.cjs20.js +++ b/dist/index.cjs20.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@radix-ui/react-collapsible");function a(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(l,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return l.default=e,Object.freeze(l)}const o=a(n);function i({...e}){return React.createElement(o.Root,{"data-slot":"collapsible",...e})}function c({...e}){return React.createElement(o.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...e})}function s({...e}){return React.createElement(o.CollapsibleContent,{"data-slot":"collapsible-content",...e})}exports.Collapsible=i;exports.CollapsibleContent=s;exports.CollapsibleTrigger=c; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs64.js"),m=require("cmdk"),c=require("lucide-react"),n=require("./index.cjs65.js"),a=require("./index.cjs22.js");function r({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command,{"data-slot":"command",className:n.cn("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...o})}function p({title:t="Command Palette",description:o="Search for a command to run...",children:s,className:d,showCloseButton:i=!0,...u}){return e.jsxRuntimeExports.jsxs(a.Dialog,{...u,children:[e.jsxRuntimeExports.jsxs(a.DialogHeader,{className:"sr-only",children:[e.jsxRuntimeExports.jsx(a.DialogTitle,{children:t}),e.jsxRuntimeExports.jsx(a.DialogDescription,{children:o})]}),e.jsxRuntimeExports.jsx(a.DialogContent,{className:n.cn("overflow-hidden p-0",d),showCloseButton:i,children:e.jsxRuntimeExports.jsx(r,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:s})})]})}function l({className:t,...o}){return e.jsxRuntimeExports.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[e.jsxRuntimeExports.jsx(c.SearchIcon,{className:"size-4 shrink-0 opacity-50"}),e.jsxRuntimeExports.jsx(m.Command.Input,{"data-slot":"command-input",className:n.cn("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...o})]})}function x({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.List,{"data-slot":"command-list",className:n.cn("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...o})}function g({...t}){return e.jsxRuntimeExports.jsx(m.Command.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function h({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Group,{"data-slot":"command-group",className:n.cn("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...o})}function f({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Separator,{"data-slot":"command-separator",className:n.cn("bg-border -mx-1 h-px",t),...o})}function j({className:t,...o}){return e.jsxRuntimeExports.jsx(m.Command.Item,{"data-slot":"command-item",className:n.cn("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...o})}function C({className:t,...o}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"command-shortcut",className:n.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...o})}exports.Command=r;exports.CommandDialog=p;exports.CommandEmpty=g;exports.CommandGroup=h;exports.CommandInput=l;exports.CommandItem=j;exports.CommandList=x;exports.CommandSeparator=f;exports.CommandShortcut=C; diff --git a/dist/index.cjs21.js b/dist/index.cjs21.js index ed3654b9..8e1d1e83 100644 --- a/dist/index.cjs21.js +++ b/dist/index.cjs21.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),n=require("cmdk"),c=require("lucide-react"),a=require("./index.cjs54.js"),o=require("./index.cjs23.js");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const m=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,m.get?m:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const l=b(d);function r({className:e,...t}){return l.createElement(n.Command,{"data-slot":"command",className:a.cn("lib:bg-popover lib:text-popover-foreground lib:flex lib:h-full lib:w-full lib:flex-col lib:overflow-hidden lib:rounded-md",e),...t})}function u({title:e="Command Palette",description:t="Search for a command to run...",children:i,...m}){return l.createElement(o.Dialog,{...m},l.createElement(o.DialogHeader,{className:"lib:sr-only"},l.createElement(o.DialogTitle,null,e),l.createElement(o.DialogDescription,null,t)),l.createElement(o.DialogContent,{className:"lib:overflow-hidden lib:p-0"},l.createElement(r,{className:"[&_[cmdk-group-heading]]:lib:text-muted-foreground **:data-[slot=command-input-wrapper]:lib:h-12 [&_[cmdk-group-heading]]:lib:px-2 [&_[cmdk-group-heading]]:lib:font-medium [&_[cmdk-group]]:lib:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:lib:pt-0 [&_[cmdk-input-wrapper]_svg]:lib:h-5 [&_[cmdk-input-wrapper]_svg]:lib:w-5 [&_[cmdk-input]]:lib:h-12 [&_[cmdk-item]]:lib:px-2 [&_[cmdk-item]]:lib:py-3 [&_[cmdk-item]_svg]:lib:h-5 [&_[cmdk-item]_svg]:lib:w-5"},i)))}function s({className:e,...t}){return l.createElement("div",{"data-slot":"command-input-wrapper",className:"lib:flex lib:h-9 lib:items-center lib:gap-2 lib:border-b lib:px-3"},l.createElement(c.SearchIcon,{className:"lib:size-4 lib:shrink-0 lib:opacity-50"}),l.createElement(n.Command.Input,{"data-slot":"command-input",className:a.cn("placeholder:lib:text-muted-foreground lib:flex lib:h-10 lib:w-full lib:rounded-md lib:bg-transparent lib:py-3 lib:text-sm lib:outline-hidden disabled:lib:cursor-not-allowed disabled:lib:opacity-50",e),...t}))}function p({className:e,...t}){return l.createElement(n.Command.List,{"data-slot":"command-list",className:a.cn("lib:max-h-[300px] lib:scroll-py-1 lib:overflow-x-hidden lib:overflow-y-auto",e),...t})}function g({...e}){return l.createElement(n.Command.Empty,{"data-slot":"command-empty",className:"lib:py-6 lib:text-center lib:text-sm",...e})}function f({className:e,...t}){return l.createElement(n.Command.Group,{"data-slot":"command-group",className:a.cn("lib:text-foreground [&_[cmdk-group-heading]]:lib:text-muted-foreground lib:overflow-hidden lib:p-1 [&_[cmdk-group-heading]]:lib:px-2 [&_[cmdk-group-heading]]:lib:py-1.5 [&_[cmdk-group-heading]]:lib:text-xs [&_[cmdk-group-heading]]:lib:font-medium",e),...t})}function x({className:e,...t}){return l.createElement(n.Command.Separator,{"data-slot":"command-separator",className:a.cn("lib:bg-border lib:-mx-1 lib:h-px",e),...t})}function h({className:e,...t}){return l.createElement(n.Command.Item,{"data-slot":"command-item",className:a.cn("data-[selected=true]:lib:bg-accent data-[selected=true]:lib:text-accent-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled=true]:lib:pointer-events-none data-[disabled=true]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...t})}function _({className:e,...t}){return l.createElement("span",{"data-slot":"command-shortcut",className:a.cn("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest",e),...t})}exports.Command=r;exports.CommandDialog=u;exports.CommandEmpty=g;exports.CommandGroup=f;exports.CommandInput=s;exports.CommandItem=h;exports.CommandList=p;exports.CommandSeparator=x;exports.CommandShortcut=_; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs64.js"),u=require("@radix-ui/react-context-menu"),i=require("lucide-react"),a=require("./index.cjs65.js");function d(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return n.default=t,Object.freeze(n)}const o=d(u);function c({...t}){return e.jsxRuntimeExports.jsx(o.Root,{"data-slot":"context-menu",...t})}function x({...t}){return e.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"context-menu-trigger",...t})}function l({...t}){return e.jsxRuntimeExports.jsx(o.Group,{"data-slot":"context-menu-group",...t})}function m({...t}){return e.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"context-menu-portal",...t})}function p({...t}){return e.jsxRuntimeExports.jsx(o.Sub,{"data-slot":"context-menu-sub",...t})}function f({...t}){return e.jsxRuntimeExports.jsx(o.RadioGroup,{"data-slot":"context-menu-radio-group",...t})}function g({className:t,inset:n,children:s,...r}){return e.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:a.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r,children:[s,e.jsxRuntimeExports.jsx(i.ChevronRightIcon,{className:"ml-auto"})]})}function v({className:t,...n}){return e.jsxRuntimeExports.jsx(o.SubContent,{"data-slot":"context-menu-sub-content",className:a.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",t),...n})}function b({className:t,...n}){return e.jsxRuntimeExports.jsx(o.Portal,{children:e.jsxRuntimeExports.jsx(o.Content,{"data-slot":"context-menu-content",className:a.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",t),...n})})}function j({className:t,inset:n,variant:s="default",...r}){return e.jsxRuntimeExports.jsx(o.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":s,className:a.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r})}function C({className:t,children:n,checked:s,...r}){return e.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"context-menu-checkbox-item",className:a.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),checked:s,...r,children:[e.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(o.ItemIndicator,{children:e.jsxRuntimeExports.jsx(i.CheckIcon,{className:"size-4"})})}),n]})}function h({className:t,children:n,...s}){return e.jsxRuntimeExports.jsxs(o.RadioItem,{"data-slot":"context-menu-radio-item",className:a.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...s,children:[e.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:e.jsxRuntimeExports.jsx(o.ItemIndicator,{children:e.jsxRuntimeExports.jsx(i.CircleIcon,{className:"size-2 fill-current"})})}),n]})}function M({className:t,inset:n,...s}){return e.jsxRuntimeExports.jsx(o.Label,{"data-slot":"context-menu-label","data-inset":n,className:a.cn("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",t),...s})}function R({className:t,...n}){return e.jsxRuntimeExports.jsx(o.Separator,{"data-slot":"context-menu-separator",className:a.cn("bg-border -mx-1 my-1 h-px",t),...n})}function E({className:t,...n}){return e.jsxRuntimeExports.jsx("span",{"data-slot":"context-menu-shortcut",className:a.cn("text-muted-foreground ml-auto text-xs tracking-widest",t),...n})}exports.ContextMenu=c;exports.ContextMenuCheckboxItem=C;exports.ContextMenuContent=b;exports.ContextMenuGroup=l;exports.ContextMenuItem=j;exports.ContextMenuLabel=M;exports.ContextMenuPortal=m;exports.ContextMenuRadioGroup=f;exports.ContextMenuRadioItem=h;exports.ContextMenuSeparator=R;exports.ContextMenuShortcut=E;exports.ContextMenuSub=p;exports.ContextMenuSubContent=v;exports.ContextMenuSubTrigger=g;exports.ContextMenuTrigger=x; diff --git a/dist/index.cjs22.js b/dist/index.cjs22.js index fcb6cca2..bf912d3d 100644 --- a/dist/index.cjs22.js +++ b/dist/index.cjs22.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),c=require("@radix-ui/react-context-menu"),r=require("lucide-react"),o=require("./index.cjs54.js");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(n,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return n.default=e,Object.freeze(n)}const t=s(b),i=s(c);function u({...e}){return t.createElement(i.Root,{"data-slot":"context-menu",...e})}function d({...e}){return t.createElement(i.Trigger,{"data-slot":"context-menu-trigger",...e})}function m({...e}){return t.createElement(i.Group,{"data-slot":"context-menu-group",...e})}function x({...e}){return t.createElement(i.Portal,{"data-slot":"context-menu-portal",...e})}function f({...e}){return t.createElement(i.Sub,{"data-slot":"context-menu-sub",...e})}function p({...e}){return t.createElement(i.RadioGroup,{"data-slot":"context-menu-radio-group",...e})}function g({className:e,inset:n,children:l,...a}){return t.createElement(i.SubTrigger,{"data-slot":"context-menu-sub-trigger","data-inset":n,className:o.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...a},l,t.createElement(r.ChevronRightIcon,{className:"lib:ml-auto"}))}function v({className:e,...n}){return t.createElement(i.SubContent,{"data-slot":"context-menu-sub-content",className:o.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-context-menu-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg",e),...n})}function C({className:e,...n}){return t.createElement(i.Portal,null,t.createElement(i.Content,{"data-slot":"context-menu-content",className:o.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-context-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-context-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md",e),...n}))}function M({className:e,inset:n,variant:l="default",...a}){return t.createElement(i.Item,{"data-slot":"context-menu-item","data-inset":n,"data-variant":l,className:o.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...a})}function h({className:e,children:n,checked:l,...a}){return t.createElement(i.CheckboxItem,{"data-slot":"context-menu-checkbox-item",className:o.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),checked:l,...a},t.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(i.ItemIndicator,null,t.createElement(r.CheckIcon,{className:"lib:size-4"}))),n)}function E({className:e,children:n,...l}){return t.createElement(i.RadioItem,{"data-slot":"context-menu-radio-item",className:o.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...l},t.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(i.ItemIndicator,null,t.createElement(r.CircleIcon,{className:"lib:size-2 lib:fill-current"}))),n)}function z({className:e,inset:n,...l}){return t.createElement(i.Label,{"data-slot":"context-menu-label","data-inset":n,className:o.cn("lib:text-foreground lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8",e),...l})}function S({className:e,...n}){return t.createElement(i.Separator,{"data-slot":"context-menu-separator",className:o.cn("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px",e),...n})}function _({className:e,...n}){return t.createElement("span",{"data-slot":"context-menu-shortcut",className:o.cn("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest",e),...n})}exports.ContextMenu=u;exports.ContextMenuCheckboxItem=h;exports.ContextMenuContent=C;exports.ContextMenuGroup=m;exports.ContextMenuItem=M;exports.ContextMenuLabel=z;exports.ContextMenuPortal=x;exports.ContextMenuRadioGroup=p;exports.ContextMenuRadioItem=E;exports.ContextMenuSeparator=S;exports.ContextMenuShortcut=_;exports.ContextMenuSub=f;exports.ContextMenuSubContent=v;exports.ContextMenuSubTrigger=g;exports.ContextMenuTrigger=d; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),d=require("@radix-ui/react-dialog"),c=require("lucide-react"),n=require("./index.cjs65.js");function u(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=u(d);function g({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"dialog",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"dialog-trigger",...t})}function r({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"dialog-portal",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"dialog-close",...t})}function l({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"dialog-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function f({className:t,children:e,showCloseButton:s=!0,...i}){return o.jsxRuntimeExports.jsxs(r,{"data-slot":"dialog-portal",children:[o.jsxRuntimeExports.jsx(l,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"dialog-content",className:n.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[e,s&&o.jsxRuntimeExports.jsxs(a.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[o.jsxRuntimeExports.jsx(c.XIcon,{}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function p({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-header",className:n.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"dialog-footer",className:n.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function D({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"dialog-title",className:n.cn("text-lg leading-none font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"dialog-description",className:n.cn("text-muted-foreground text-sm",t),...e})}exports.Dialog=g;exports.DialogClose=m;exports.DialogContent=f;exports.DialogDescription=b;exports.DialogFooter=j;exports.DialogHeader=p;exports.DialogOverlay=l;exports.DialogPortal=r;exports.DialogTitle=D;exports.DialogTrigger=x; diff --git a/dist/index.cjs23.js b/dist/index.cjs23.js index 35c5994b..a230129d 100644 --- a/dist/index.cjs23.js +++ b/dist/index.cjs23.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),d=require("@radix-ui/react-dialog"),g=require("lucide-react"),o=require("./index.cjs54.js");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const l=r(b),a=r(d);function u({...e}){return l.createElement(a.Root,{"data-slot":"dialog",...e})}function m({...e}){return l.createElement(a.Trigger,{"data-slot":"dialog-trigger",...e})}function s({...e}){return l.createElement(a.Portal,{"data-slot":"dialog-portal",...e})}function f({...e}){return l.createElement(a.Close,{"data-slot":"dialog-close",...e})}function c({className:e,...t}){return l.createElement(a.Overlay,{"data-slot":"dialog-overlay",className:o.cn("data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50",e),...t})}function p({className:e,children:t,...i}){return l.createElement(s,{"data-slot":"dialog-portal"},l.createElement(c,null),l.createElement(a.Content,{"data-slot":"dialog-content",className:o.cn("lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 lib:fixed lib:top-[50%] lib:left-[50%] lib:z-50 lib:grid lib:w-full lib:max-w-[calc(100%-2rem)] lib:translate-x-[-50%] lib:translate-y-[-50%] lib:gap-4 lib:rounded-lg lib:border lib:p-6 lib:shadow-lg lib:duration-200 sm:lib:max-w-lg",e),...i},t,l.createElement(a.Close,{className:"lib:ring-offset-background focus:lib:ring-ring data-[state=open]:lib:bg-accent data-[state=open]:lib:text-muted-foreground lib:absolute lib:top-4 lib:right-4 lib:rounded-xs lib:opacity-70 lib:transition-opacity hover:lib:opacity-100 focus:lib:ring-2 focus:lib:ring-offset-2 focus:lib:outline-hidden disabled:lib:pointer-events-none [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4"},l.createElement(g.XIcon,null),l.createElement("span",{className:"lib:sr-only"},"Close"))))}function D({className:e,...t}){return l.createElement("div",{"data-slot":"dialog-header",className:o.cn("lib:flex lib:flex-col lib:gap-2 lib:text-center sm:lib:text-left",e),...t})}function v({className:e,...t}){return l.createElement("div",{"data-slot":"dialog-footer",className:o.cn("lib:flex lib:flex-col-reverse lib:gap-2 sm:lib:flex-row sm:lib:justify-end",e),...t})}function x({className:e,...t}){return l.createElement(a.Title,{"data-slot":"dialog-title",className:o.cn("lib:text-lg lib:leading-none lib:font-semibold",e),...t})}function y({className:e,...t}){return l.createElement(a.Description,{"data-slot":"dialog-description",className:o.cn("lib:text-muted-foreground lib:text-sm",e),...t})}exports.Dialog=u;exports.DialogClose=f;exports.DialogContent=p;exports.DialogDescription=y;exports.DialogFooter=v;exports.DialogHeader=D;exports.DialogOverlay=c;exports.DialogPortal=s;exports.DialogTitle=x;exports.DialogTrigger=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),a=require("vaul"),o=require("./index.cjs65.js");function s({...r}){return t.jsxRuntimeExports.jsx(a.Drawer.Root,{"data-slot":"drawer",...r})}function l({...r}){return t.jsxRuntimeExports.jsx(a.Drawer.Trigger,{"data-slot":"drawer-trigger",...r})}function d({...r}){return t.jsxRuntimeExports.jsx(a.Drawer.Portal,{"data-slot":"drawer-portal",...r})}function u({...r}){return t.jsxRuntimeExports.jsx(a.Drawer.Close,{"data-slot":"drawer-close",...r})}function n({className:r,...e}){return t.jsxRuntimeExports.jsx(a.Drawer.Overlay,{"data-slot":"drawer-overlay",className:o.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",r),...e})}function c({className:r,children:e,...i}){return t.jsxRuntimeExports.jsxs(d,{"data-slot":"drawer-portal",children:[t.jsxRuntimeExports.jsx(n,{}),t.jsxRuntimeExports.jsxs(a.Drawer.Content,{"data-slot":"drawer-content",className:o.cn("group/drawer-content bg-background fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",r),...i,children:[t.jsxRuntimeExports.jsx("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]})}function w({className:r,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"drawer-header",className:o.cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",r),...e})}function x({className:r,...e}){return t.jsxRuntimeExports.jsx("div",{"data-slot":"drawer-footer",className:o.cn("mt-auto flex flex-col gap-2 p-4",r),...e})}function m({className:r,...e}){return t.jsxRuntimeExports.jsx(a.Drawer.Title,{"data-slot":"drawer-title",className:o.cn("text-foreground font-semibold",r),...e})}function p({className:r,...e}){return t.jsxRuntimeExports.jsx(a.Drawer.Description,{"data-slot":"drawer-description",className:o.cn("text-muted-foreground text-sm",r),...e})}exports.Drawer=s;exports.DrawerClose=u;exports.DrawerContent=c;exports.DrawerDescription=p;exports.DrawerFooter=x;exports.DrawerHeader=w;exports.DrawerOverlay=n;exports.DrawerPortal=d;exports.DrawerTitle=m;exports.DrawerTrigger=l; diff --git a/dist/index.cjs24.js b/dist/index.cjs24.js index 88f2f6ed..b253bd90 100644 --- a/dist/index.cjs24.js +++ b/dist/index.cjs24.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),a=require("vaul"),i=require("./index.cjs54.js");function b(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(r,l,o.get?o:{enumerable:!0,get:()=>e[l]})}}return r.default=e,Object.freeze(r)}const t=b(c);function u({...e}){return t.createElement(a.Drawer.Root,{"data-slot":"drawer",...e})}function w({...e}){return t.createElement(a.Drawer.Trigger,{"data-slot":"drawer-trigger",...e})}function d({...e}){return t.createElement(a.Drawer.Portal,{"data-slot":"drawer-portal",...e})}function s({...e}){return t.createElement(a.Drawer.Close,{"data-slot":"drawer-close",...e})}function n({className:e,...r}){return t.createElement(a.Drawer.Overlay,{"data-slot":"drawer-overlay",className:i.cn("data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50",e),...r})}function m({className:e,children:r,...l}){return t.createElement(d,{"data-slot":"drawer-portal"},t.createElement(n,null),t.createElement(a.Drawer.Content,{"data-slot":"drawer-content",className:i.cn("lib:group/drawer-content lib:bg-background lib:fixed lib:z-50 lib:flex lib:h-auto lib:flex-col","data-[vaul-drawer-direction=top]:lib:inset-x-0 data-[vaul-drawer-direction=top]:lib:top-0 data-[vaul-drawer-direction=top]:lib:mb-24 data-[vaul-drawer-direction=top]:lib:max-h-[80vh] data-[vaul-drawer-direction=top]:lib:rounded-b-lg data-[vaul-drawer-direction=top]:lib:border-b","data-[vaul-drawer-direction=bottom]:lib:inset-x-0 data-[vaul-drawer-direction=bottom]:lib:bottom-0 data-[vaul-drawer-direction=bottom]:lib:mt-24 data-[vaul-drawer-direction=bottom]:lib:max-h-[80vh] data-[vaul-drawer-direction=bottom]:lib:rounded-t-lg data-[vaul-drawer-direction=bottom]:lib:border-t","data-[vaul-drawer-direction=right]:lib:inset-y-0 data-[vaul-drawer-direction=right]:lib:right-0 data-[vaul-drawer-direction=right]:lib:w-3/4 data-[vaul-drawer-direction=right]:lib:border-l data-[vaul-drawer-direction=right]:sm:lib:max-w-sm","data-[vaul-drawer-direction=left]:lib:inset-y-0 data-[vaul-drawer-direction=left]:lib:left-0 data-[vaul-drawer-direction=left]:lib:w-3/4 data-[vaul-drawer-direction=left]:lib:border-r data-[vaul-drawer-direction=left]:sm:lib:max-w-sm",e),...l},t.createElement("div",{className:"lib:bg-muted lib:mx-auto lib:mt-4 lib:hidden lib:h-2 lib:w-[100px] lib:shrink-0 lib:rounded-full lib:group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),r))}function f({className:e,...r}){return t.createElement("div",{"data-slot":"drawer-header",className:i.cn("lib:flex lib:flex-col lib:gap-1.5 lib:p-4",e),...r})}function v({className:e,...r}){return t.createElement("div",{"data-slot":"drawer-footer",className:i.cn("lib:mt-auto lib:flex lib:flex-col lib:gap-2 lib:p-4",e),...r})}function g({className:e,...r}){return t.createElement(a.Drawer.Title,{"data-slot":"drawer-title",className:i.cn("lib:text-foreground lib:font-semibold",e),...r})}function D({className:e,...r}){return t.createElement(a.Drawer.Description,{"data-slot":"drawer-description",className:i.cn("lib:text-muted-foreground lib:text-sm",e),...r})}exports.Drawer=u;exports.DrawerClose=s;exports.DrawerContent=m;exports.DrawerDescription=D;exports.DrawerFooter=v;exports.DrawerHeader=f;exports.DrawerOverlay=n;exports.DrawerPortal=d;exports.DrawerTitle=g;exports.DrawerTrigger=w; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),i=require("@radix-ui/react-dropdown-menu"),d=require("lucide-react"),s=require("./index.cjs65.js");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const o=u(i);function c({...e}){return t.jsxRuntimeExports.jsx(o.Root,{"data-slot":"dropdown-menu",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"dropdown-menu-portal",...e})}function l({...e}){return t.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function m({className:e,sideOffset:n=4,...r}){return t.jsxRuntimeExports.jsx(o.Portal,{children:t.jsxRuntimeExports.jsx(o.Content,{"data-slot":"dropdown-menu-content",sideOffset:n,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function x({...e}){return t.jsxRuntimeExports.jsx(o.Group,{"data-slot":"dropdown-menu-group",...e})}function f({className:e,inset:n,variant:r="default",...a}){return t.jsxRuntimeExports.jsx(o.Item,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":r,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}function g({className:e,children:n,checked:r,...a}){return t.jsxRuntimeExports.jsxs(o.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...a,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(o.ItemIndicator,{children:t.jsxRuntimeExports.jsx(d.CheckIcon,{className:"size-4"})})}),n]})}function w({...e}){return t.jsxRuntimeExports.jsx(o.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function b({className:e,children:n,...r}){return t.jsxRuntimeExports.jsxs(o.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[t.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(o.ItemIndicator,{children:t.jsxRuntimeExports.jsx(d.CircleIcon,{className:"size-2 fill-current"})})}),n]})}function j({className:e,inset:n,...r}){return t.jsxRuntimeExports.jsx(o.Label,{"data-slot":"dropdown-menu-label","data-inset":n,className:s.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function v({className:e,...n}){return t.jsxRuntimeExports.jsx(o.Separator,{"data-slot":"dropdown-menu-separator",className:s.cn("bg-border -mx-1 my-1 h-px",e),...n})}function h({className:e,...n}){return t.jsxRuntimeExports.jsx("span",{"data-slot":"dropdown-menu-shortcut",className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...n})}function D({...e}){return t.jsxRuntimeExports.jsx(o.Sub,{"data-slot":"dropdown-menu-sub",...e})}function M({className:e,inset:n,children:r,...a}){return t.jsxRuntimeExports.jsxs(o.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",e),...a,children:[r,t.jsxRuntimeExports.jsx(d.ChevronRightIcon,{className:"ml-auto size-4"})]})}function R({className:e,...n}){return t.jsxRuntimeExports.jsx(o.SubContent,{"data-slot":"dropdown-menu-sub-content",className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...n})}exports.DropdownMenu=c;exports.DropdownMenuCheckboxItem=g;exports.DropdownMenuContent=m;exports.DropdownMenuGroup=x;exports.DropdownMenuItem=f;exports.DropdownMenuLabel=j;exports.DropdownMenuPortal=p;exports.DropdownMenuRadioGroup=w;exports.DropdownMenuRadioItem=b;exports.DropdownMenuSeparator=v;exports.DropdownMenuShortcut=h;exports.DropdownMenuSub=D;exports.DropdownMenuSubContent=R;exports.DropdownMenuSubTrigger=M;exports.DropdownMenuTrigger=l; diff --git a/dist/index.cjs25.js b/dist/index.cjs25.js index bf80fdb6..e827a699 100644 --- a/dist/index.cjs25.js +++ b/dist/index.cjs25.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),b=require("@radix-ui/react-dropdown-menu"),r=require("lucide-react"),l=require("./index.cjs54.js");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const t=d(s),o=d(b);function u({...e}){return t.createElement(o.Root,{"data-slot":"dropdown-menu",...e})}function c({...e}){return t.createElement(o.Portal,{"data-slot":"dropdown-menu-portal",...e})}function m({...e}){return t.createElement(o.Trigger,{"data-slot":"dropdown-menu-trigger",...e})}function p({className:e,sideOffset:n=4,...i}){return t.createElement(o.Portal,null,t.createElement(o.Content,{"data-slot":"dropdown-menu-content",sideOffset:n,className:l.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-dropdown-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md",e),...i}))}function f({...e}){return t.createElement(o.Group,{"data-slot":"dropdown-menu-group",...e})}function g({className:e,inset:n,variant:i="default",...a}){return t.createElement(o.Item,{"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":i,className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...a})}function w({className:e,children:n,checked:i,...a}){return t.createElement(o.CheckboxItem,{"data-slot":"dropdown-menu-checkbox-item",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),checked:i,...a},t.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(o.ItemIndicator,null,t.createElement(r.CheckIcon,{className:"lib:size-4"}))),n)}function v({...e}){return t.createElement(o.RadioGroup,{"data-slot":"dropdown-menu-radio-group",...e})}function x({className:e,children:n,...i}){return t.createElement(o.RadioItem,{"data-slot":"dropdown-menu-radio-item",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...i},t.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(o.ItemIndicator,null,t.createElement(r.CircleIcon,{className:"lib:size-2 lib:fill-current"}))),n)}function D({className:e,inset:n,...i}){return t.createElement(o.Label,{"data-slot":"dropdown-menu-label","data-inset":n,className:l.cn("lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8",e),...i})}function M({className:e,...n}){return t.createElement(o.Separator,{"data-slot":"dropdown-menu-separator",className:l.cn("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px",e),...n})}function h({className:e,...n}){return t.createElement("span",{"data-slot":"dropdown-menu-shortcut",className:l.cn("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest",e),...n})}function E({...e}){return t.createElement(o.Sub,{"data-slot":"dropdown-menu-sub",...e})}function z({className:e,inset:n,children:i,...a}){return t.createElement(o.SubTrigger,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8",e),...a},i,t.createElement(r.ChevronRightIcon,{className:"lib:ml-auto lib:size-4"}))}function S({className:e,...n}){return t.createElement(o.SubContent,{"data-slot":"dropdown-menu-sub-content",className:l.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg",e),...n})}exports.DropdownMenu=u;exports.DropdownMenuCheckboxItem=w;exports.DropdownMenuContent=p;exports.DropdownMenuGroup=f;exports.DropdownMenuItem=g;exports.DropdownMenuLabel=D;exports.DropdownMenuPortal=c;exports.DropdownMenuRadioGroup=v;exports.DropdownMenuRadioItem=x;exports.DropdownMenuSeparator=M;exports.DropdownMenuShortcut=h;exports.DropdownMenuSub=E;exports.DropdownMenuSubContent=S;exports.DropdownMenuSubTrigger=z;exports.DropdownMenuTrigger=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),x=require("react"),f=require("@radix-ui/react-slot"),c=require("react-hook-form"),d=require("./index.cjs65.js"),F=require("./index.cjs29.js");function j(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=j(x),p=c.FormProvider,u=i.createContext({}),g=({...e})=>n.jsxRuntimeExports.jsx(u.Provider,{value:{name:e.name},children:n.jsxRuntimeExports.jsx(c.Controller,{...e})}),m=()=>{const e=i.useContext(u),t=i.useContext(l),{getFieldState:r}=c.useFormContext(),o=c.useFormState({name:e.name}),s=r(e.name,o);if(!e)throw new Error("useFormField should be used within ");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...s}},l=i.createContext({});function b({className:e,...t}){const r=i.useId();return n.jsxRuntimeExports.jsx(l.Provider,{value:{id:r},children:n.jsxRuntimeExports.jsx("div",{"data-slot":"form-item",className:d.cn("grid gap-2",e),...t})})}function I({className:e,...t}){const{error:r,formItemId:o}=m();return n.jsxRuntimeExports.jsx(F.Label,{"data-slot":"form-label","data-error":!!r,className:d.cn("data-[error=true]:text-destructive",e),htmlFor:o,...t})}function C({...e}){const{error:t,formItemId:r,formDescriptionId:o,formMessageId:s}=m();return n.jsxRuntimeExports.jsx(f.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${o} ${s}`:`${o}`,"aria-invalid":!!t,...e})}function v({className:e,...t}){const{formDescriptionId:r}=m();return n.jsxRuntimeExports.jsx("p",{"data-slot":"form-description",id:r,className:d.cn("text-muted-foreground text-sm",e),...t})}function R({className:e,...t}){const{error:r,formMessageId:o}=m(),s=r?String(r?.message??""):t.children;return s?n.jsxRuntimeExports.jsx("p",{"data-slot":"form-message",id:o,className:d.cn("text-destructive text-sm",e),...t,children:s}):null}exports.Form=p;exports.FormControl=C;exports.FormDescription=v;exports.FormField=g;exports.FormItem=b;exports.FormLabel=I;exports.FormMessage=R;exports.useFormField=m; diff --git a/dist/index.cjs26.js b/dist/index.cjs26.js index 78a82d8e..d4205944 100644 --- a/dist/index.cjs26.js +++ b/dist/index.cjs26.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),f=require("@radix-ui/react-slot"),s=require("react-hook-form"),c=require("./index.cjs54.js"),F=require("./index.cjs30.js");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=b(u),g=s.FormProvider,l=o.createContext({}),I=({...e})=>o.createElement(l.Provider,{value:{name:e.name}},o.createElement(s.Controller,{...e})),a=()=>{const e=o.useContext(l),t=o.useContext(d),{getFieldState:r}=s.useFormContext(),n=s.useFormState({name:e.name}),m=r(e.name,n);if(!e)throw new Error("useFormField should be used within ");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...m}},d=o.createContext({});function x({className:e,...t}){const r=o.useId();return o.createElement(d.Provider,{value:{id:r}},o.createElement("div",{"data-slot":"form-item",className:c.cn("lib:grid lib:gap-2",e),...t}))}function p({className:e,...t}){const{error:r,formItemId:n}=a();return o.createElement(F.Label,{"data-slot":"form-label","data-error":!!r,className:c.cn("data-[error=true]:lib:text-destructive",e),htmlFor:n,...t})}function C({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:m}=a();return o.createElement(f.Slot,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${m}`:`${n}`,"aria-invalid":!!t,...e})}function v({className:e,...t}){const{formDescriptionId:r}=a();return o.createElement("p",{"data-slot":"form-description",id:r,className:c.cn("lib:text-muted-foreground lib:text-sm",e),...t})}function S({className:e,...t}){const{error:r,formMessageId:n}=a(),m=r?String(r?.message??""):t.children;return m?o.createElement("p",{"data-slot":"form-message",id:n,className:c.cn("lib:text-destructive lib:text-sm",e),...t},m):null}exports.Form=g;exports.FormControl=C;exports.FormDescription=v;exports.FormField=I;exports.FormItem=x;exports.FormLabel=p;exports.FormMessage=S;exports.useFormField=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),i=require("@radix-ui/react-hover-card"),d=require("./index.cjs65.js");function s(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const n=s(i);function c({...t}){return a.jsxRuntimeExports.jsx(n.Root,{"data-slot":"hover-card",...t})}function u({...t}){return a.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"hover-card-trigger",...t})}function l({className:t,align:r="center",sideOffset:e=4,...o}){return a.jsxRuntimeExports.jsx(n.Portal,{"data-slot":"hover-card-portal",children:a.jsxRuntimeExports.jsx(n.Content,{"data-slot":"hover-card-content",align:r,sideOffset:e,className:d.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...o})})}exports.HoverCard=c;exports.HoverCardContent=l;exports.HoverCardTrigger=u; diff --git a/dist/index.cjs27.js b/dist/index.cjs27.js index 6f66ba87..61eb62c4 100644 --- a/dist/index.cjs27.js +++ b/dist/index.cjs27.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),l=require("@radix-ui/react-hover-card"),c=require("./index.cjs54.js");function n(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const a=n(d),i=n(l);function s({...e}){return a.createElement(i.Root,{"data-slot":"hover-card",...e})}function b({...e}){return a.createElement(i.Trigger,{"data-slot":"hover-card-trigger",...e})}function u({className:e,align:r="center",sideOffset:t=4,...o}){return a.createElement(i.Portal,{"data-slot":"hover-card-portal"},a.createElement(i.Content,{"data-slot":"hover-card-content",align:r,sideOffset:t,className:c.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-64 lib:origin-(--radix-hover-card-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden",e),...o}))}exports.HoverCard=s;exports.HoverCardContent=u;exports.HoverCardTrigger=b; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),d=require("react"),s=require("input-otp"),l=require("lucide-react"),i=require("./index.cjs65.js");function p(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const x=p(d);function m({className:t,containerClassName:e,...r}){return n.jsxRuntimeExports.jsx(s.OTPInput,{"data-slot":"input-otp",containerClassName:i.cn("flex items-center gap-2 has-disabled:opacity-50",e),className:i.cn("disabled:cursor-not-allowed",t),...r})}function v({className:t,...e}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-group",className:i.cn("flex items-center",t),...e})}function f({index:t,className:e,...r}){const a=x.useContext(s.OTPInputContext),{char:o,hasFakeCaret:u,isActive:c}=a?.slots[t]??{};return n.jsxRuntimeExports.jsxs("div",{"data-slot":"input-otp-slot","data-active":c,className:i.cn("data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",e),...r,children:[o,u&&n.jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:n.jsxRuntimeExports.jsx("div",{className:"animate-caret-blink bg-foreground h-4 w-px duration-1000"})})]})}function j({...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"input-otp-separator",role:"separator",...t,children:n.jsxRuntimeExports.jsx(l.MinusIcon,{})})}exports.InputOTP=m;exports.InputOTPGroup=v;exports.InputOTPSeparator=j;exports.InputOTPSlot=f; diff --git a/dist/index.cjs28.js b/dist/index.cjs28.js index 00d9790b..5153aff5 100644 --- a/dist/index.cjs28.js +++ b/dist/index.cjs28.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),l=require("input-otp"),b=require("lucide-react"),n=require("./index.cjs54.js");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const r=d(s);function p({className:t,containerClassName:e,...i}){return r.createElement(l.OTPInput,{"data-slot":"input-otp",containerClassName:n.cn("flex items-center gap-2 has-disabled:opacity-50",e),className:n.cn("disabled:lib:cursor-not-allowed",t),...i})}function m({className:t,...e}){return r.createElement("div",{"data-slot":"input-otp-group",className:n.cn("lib:flex lib:items-center",t),...e})}function v({index:t,className:e,...i}){const a=r.useContext(l.OTPInputContext),{char:o,hasFakeCaret:u,isActive:c}=a?.slots[t]??{};return r.createElement("div",{"data-slot":"input-otp-slot","data-active":c,className:n.cn("data-[active=true]:lib:border-ring data-[active=true]:lib:ring-ring/50 data-[active=true]:aria-invalid:lib:ring-destructive/20 dark:data-[active=true]:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive data-[active=true]:aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:border-input lib:relative lib:flex lib:h-9 lib:w-9 lib:items-center lib:justify-center lib:border-y lib:border-r lib:text-sm lib:shadow-xs lib:transition-all lib:outline-none first:lib:rounded-l-md first:lib:border-l last:lib:rounded-r-md data-[active=true]:lib:z-10 data-[active=true]:lib:ring-[3px]",e),...i},o,u&&r.createElement("div",{className:"lib:pointer-events-none lib:absolute lib:inset-0 lib:flex lib:items-center lib:justify-center"},r.createElement("div",{className:"lib:animate-caret-blink lib:bg-foreground lib:h-4 lib:w-px lib:duration-1000"})))}function f({...t}){return r.createElement("div",{"data-slot":"input-otp-separator",role:"separator",...t},r.createElement(b.MinusIcon,null))}exports.InputOTP=p;exports.InputOTPGroup=m;exports.InputOTPSeparator=f;exports.InputOTPSlot=v; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),n=require("./index.cjs65.js");function o({className:e,type:i,...r}){return t.jsxRuntimeExports.jsx("input",{type:i,"data-slot":"input",className:n.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}exports.Input=o; diff --git a/dist/index.cjs29.js b/dist/index.cjs29.js index 24ecdb49..6178db70 100644 --- a/dist/index.cjs29.js +++ b/dist/index.cjs29.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),n=require("./index.cjs54.js");function b(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const t=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(l,i,t.get?t:{enumerable:!0,get:()=>e[i]})}}return l.default=e,Object.freeze(l)}const o=b(r);function a({className:e,type:l,...i}){return o.createElement("input",{type:l,"data-slot":"input",className:n.cn("file:lib:text-foreground placeholder:lib:text-muted-foreground selection:lib:bg-primary selection:lib:text-primary-foreground dark:lib:bg-input/30 lib:border-input lib:flex lib:h-9 lib:w-full lib:min-w-0 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-1 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none file:lib:inline-flex file:lib:h-7 file:lib:border-0 file:lib:bg-transparent file:lib:text-sm file:lib:font-medium disabled:lib:pointer-events-none disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm","focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px]","aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive",e),...i})}exports.Input=a; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),a=require("@radix-ui/react-label"),i=require("./index.cjs65.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=l(a);function u({className:e,...t}){return o.jsxRuntimeExports.jsx(s.Root,{"data-slot":"label",className:i.cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}exports.Label=u; diff --git a/dist/index.cjs30.js b/dist/index.cjs30.js index ca3a0f76..cf7219ba 100644 --- a/dist/index.cjs30.js +++ b/dist/index.cjs30.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),r=require("@radix-ui/react-label"),o=require("./index.cjs54.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const l=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,l.get?l:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const c=a(n),b=a(r);function s({className:e,...t}){return c.createElement(b.Root,{"data-slot":"label",className:o.cn("lib:flex lib:items-center lib:gap-2 lib:text-sm lib:leading-none lib:font-medium lib:select-none group-data-[disabled=true]:lib:pointer-events-none group-data-[disabled=true]:lib:opacity-50 peer-disabled:lib:cursor-not-allowed peer-disabled:lib:opacity-50",e),...t})}exports.Label=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),c=require("@radix-ui/react-menubar"),u=require("lucide-react"),s=require("./index.cjs65.js");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const a=m(c);function l({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Root,{"data-slot":"menubar",className:s.cn("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs",e),...t})}function x({...e}){return n.jsxRuntimeExports.jsx(a.Menu,{"data-slot":"menubar-menu",...e})}function b({...e}){return n.jsxRuntimeExports.jsx(a.Group,{"data-slot":"menubar-group",...e})}function i({...e}){return n.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"menubar-portal",...e})}function p({...e}){return n.jsxRuntimeExports.jsx(a.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function f({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"menubar-trigger",className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",e),...t})}function g({className:e,align:t="start",alignOffset:r=-4,sideOffset:o=8,...d}){return n.jsxRuntimeExports.jsx(i,{children:n.jsxRuntimeExports.jsx(a.Content,{"data-slot":"menubar-content",align:t,alignOffset:r,sideOffset:o,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",e),...d})})}function j({className:e,inset:t,variant:r="default",...o}){return n.jsxRuntimeExports.jsx(a.Item,{"data-slot":"menubar-item","data-inset":t,"data-variant":r,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o})}function v({className:e,children:t,checked:r,...o}){return n.jsxRuntimeExports.jsxs(a.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),checked:r,...o,children:[n.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsxRuntimeExports.jsx(a.ItemIndicator,{children:n.jsxRuntimeExports.jsx(u.CheckIcon,{className:"size-4"})})}),t]})}function M({className:e,children:t,...r}){return n.jsxRuntimeExports.jsxs(a.RadioItem,{"data-slot":"menubar-radio-item",className:s.cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...r,children:[n.jsxRuntimeExports.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:n.jsxRuntimeExports.jsx(a.ItemIndicator,{children:n.jsxRuntimeExports.jsx(u.CircleIcon,{className:"size-2 fill-current"})})}),t]})}function h({className:e,inset:t,...r}){return n.jsxRuntimeExports.jsx(a.Label,{"data-slot":"menubar-label","data-inset":t,className:s.cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...r})}function R({className:e,...t}){return n.jsxRuntimeExports.jsx(a.Separator,{"data-slot":"menubar-separator",className:s.cn("bg-border -mx-1 my-1 h-px",e),...t})}function E({className:e,...t}){return n.jsxRuntimeExports.jsx("span",{"data-slot":"menubar-shortcut",className:s.cn("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function S({...e}){return n.jsxRuntimeExports.jsx(a.Sub,{"data-slot":"menubar-sub",...e})}function y({className:e,inset:t,children:r,...o}){return n.jsxRuntimeExports.jsxs(a.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":t,className:s.cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",e),...o,children:[r,n.jsxRuntimeExports.jsx(u.ChevronRightIcon,{className:"ml-auto h-4 w-4"})]})}function z({className:e,...t}){return n.jsxRuntimeExports.jsx(a.SubContent,{"data-slot":"menubar-sub-content",className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",e),...t})}exports.Menubar=l;exports.MenubarCheckboxItem=v;exports.MenubarContent=g;exports.MenubarGroup=b;exports.MenubarItem=j;exports.MenubarLabel=h;exports.MenubarMenu=x;exports.MenubarPortal=i;exports.MenubarRadioGroup=p;exports.MenubarRadioItem=M;exports.MenubarSeparator=R;exports.MenubarShortcut=E;exports.MenubarSub=S;exports.MenubarSubContent=z;exports.MenubarSubTrigger=y;exports.MenubarTrigger=f; diff --git a/dist/index.cjs31.js b/dist/index.cjs31.js index ae2fc2f5..95ff9e2c 100644 --- a/dist/index.cjs31.js +++ b/dist/index.cjs31.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),d=require("@radix-ui/react-menubar"),b=require("lucide-react"),l=require("./index.cjs54.js");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=o(c),a=o(d);function m({className:e,...t}){return i.createElement(a.Root,{"data-slot":"menubar",className:l.cn("lib:bg-background lib:flex lib:h-9 lib:items-center lib:gap-1 lib:rounded-md lib:border lib:p-1 lib:shadow-xs",e),...t})}function f({...e}){return i.createElement(a.Menu,{"data-slot":"menubar-menu",...e})}function p({...e}){return i.createElement(a.Group,{"data-slot":"menubar-group",...e})}function s({...e}){return i.createElement(a.Portal,{"data-slot":"menubar-portal",...e})}function g({...e}){return i.createElement(a.RadioGroup,{"data-slot":"menubar-radio-group",...e})}function v({className:e,...t}){return i.createElement(a.Trigger,{"data-slot":"menubar-trigger",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:items-center lib:rounded-sm lib:px-2 lib:py-1 lib:text-sm lib:font-medium lib:outline-hidden lib:select-none",e),...t})}function x({className:e,align:t="start",alignOffset:n=-4,sideOffset:r=8,...u}){return i.createElement(s,null,i.createElement(a.Content,{"data-slot":"menubar-content",align:t,alignOffset:n,sideOffset:r,className:l.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[12rem] lib:origin-(--radix-menubar-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-md",e),...u}))}function M({className:e,inset:t,variant:n="default",...r}){return i.createElement(a.Item,{"data-slot":"menubar-item","data-inset":t,"data-variant":n,className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...r})}function h({className:e,children:t,checked:n,...r}){return i.createElement(a.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-xs lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),checked:n,...r},i.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},i.createElement(a.ItemIndicator,null,i.createElement(b.CheckIcon,{className:"lib:size-4"}))),t)}function E({className:e,children:t,...n}){return i.createElement(a.RadioItem,{"data-slot":"menubar-radio-item",className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-xs lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...n},i.createElement("span",{className:"lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},i.createElement(a.ItemIndicator,null,i.createElement(b.CircleIcon,{className:"lib:size-2 lib:fill-current"}))),t)}function S({className:e,inset:t,...n}){return i.createElement(a.Label,{"data-slot":"menubar-label","data-inset":t,className:l.cn("lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8",e),...n})}function y({className:e,...t}){return i.createElement(a.Separator,{"data-slot":"menubar-separator",className:l.cn("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px",e),...t})}function z({className:e,...t}){return i.createElement("span",{"data-slot":"menubar-shortcut",className:l.cn("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest",e),...t})}function N({...e}){return i.createElement(a.Sub,{"data-slot":"menubar-sub",...e})}function I({className:e,inset:t,children:n,...r}){return i.createElement(a.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":t,className:l.cn("focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-none lib:select-none data-[inset]:lib:pl-8",e),...r},n,i.createElement(b.ChevronRightIcon,{className:"lib:ml-auto lib:h-4 lib:w-4"}))}function _({className:e,...t}){return i.createElement(a.SubContent,{"data-slot":"menubar-sub-content",className:l.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-menubar-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg",e),...t})}exports.Menubar=m;exports.MenubarCheckboxItem=h;exports.MenubarContent=x;exports.MenubarGroup=p;exports.MenubarItem=M;exports.MenubarLabel=S;exports.MenubarMenu=f;exports.MenubarPortal=s;exports.MenubarRadioGroup=g;exports.MenubarRadioItem=E;exports.MenubarSeparator=y;exports.MenubarShortcut=z;exports.MenubarSub=N;exports.MenubarSubContent=_;exports.MenubarSubTrigger=I;exports.MenubarTrigger=v; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),d=require("@radix-ui/react-navigation-menu"),c=require("class-variance-authority"),l=require("lucide-react"),o=require("./index.cjs65.js");function g(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const i=g(d);function m({className:t,children:e,viewport:n=!0,...r}){return a.jsxRuntimeExports.jsxs(i.Root,{"data-slot":"navigation-menu","data-viewport":n,className:o.cn("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...r,children:[e,n&&a.jsxRuntimeExports.jsx(u,{})]})}function v({className:t,...e}){return a.jsxRuntimeExports.jsx(i.List,{"data-slot":"navigation-menu-list",className:o.cn("group flex flex-1 list-none items-center justify-center gap-1",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Item,{"data-slot":"navigation-menu-item",className:o.cn("relative",t),...e})}const s=c.cva("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1");function f({className:t,children:e,...n}){return a.jsxRuntimeExports.jsxs(i.Trigger,{"data-slot":"navigation-menu-trigger",className:o.cn(s(),"group",t),...n,children:[e," ",a.jsxRuntimeExports.jsx(l.ChevronDownIcon,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function x({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Content,{"data-slot":"navigation-menu-content",className:o.cn("data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",t),...e})}function u({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{className:o.cn("absolute top-full left-0 isolate z-50 flex justify-center"),children:a.jsxRuntimeExports.jsx(i.Viewport,{"data-slot":"navigation-menu-viewport",className:o.cn("origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",t),...e})})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Link,{"data-slot":"navigation-menu-link",className:o.cn("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4",t),...e})}function w({className:t,...e}){return a.jsxRuntimeExports.jsx(i.Indicator,{"data-slot":"navigation-menu-indicator",className:o.cn("data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",t),...e,children:a.jsxRuntimeExports.jsx("div",{className:"bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md"})})}exports.NavigationMenu=m;exports.NavigationMenuContent=x;exports.NavigationMenuIndicator=w;exports.NavigationMenuItem=p;exports.NavigationMenuLink=b;exports.NavigationMenuList=v;exports.NavigationMenuTrigger=f;exports.NavigationMenuViewport=u;exports.navigationMenuTriggerStyle=s; diff --git a/dist/index.cjs32.js b/dist/index.cjs32.js index 30b93090..04a5429d 100644 --- a/dist/index.cjs32.js +++ b/dist/index.cjs32.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),c=require("@radix-ui/react-navigation-menu"),d=require("class-variance-authority"),g=require("lucide-react"),n=require("./index.cjs54.js");function r(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,l.get?l:{enumerable:!0,get:()=>t[a]})}}return i.default=t,Object.freeze(i)}const e=r(s),o=r(c);function m({className:t,children:i,viewport:a=!0,...l}){return e.createElement(o.Root,{"data-slot":"navigation-menu","data-viewport":a,className:n.cn("lib:group/navigation-menu lib:relative lib:flex lib:max-w-max lib:flex-1 lib:items-center lib:justify-center",t),...l},i,a&&e.createElement(u,null))}function v({className:t,...i}){return e.createElement(o.List,{"data-slot":"navigation-menu-list",className:n.cn("lib:group lib:flex lib:flex-1 lib:list-none lib:items-center lib:justify-center lib:gap-1",t),...i})}function f({className:t,...i}){return e.createElement(o.Item,{"data-slot":"navigation-menu-item",className:n.cn("lib:relative",t),...i})}const b=d.cva("lib:group lib:inline-flex lib:h-9 lib:w-max lib:items-center lib:justify-center lib:rounded-md lib:bg-background lib:px-4 lib:py-2 lib:text-sm lib:font-medium hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=open]:hover:lib:bg-accent data-[state=open]:lib:text-accent-foreground data-[state=open]:focus:lib:bg-accent data-[state=open]:lib:bg-accent/50 focus-visible:lib:ring-ring/50 lib:outline-none lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1");function p({className:t,children:i,...a}){return e.createElement(o.Trigger,{"data-slot":"navigation-menu-trigger",className:n.cn(b(),"lib:group",t),...a},i," ",e.createElement(g.ChevronDownIcon,{className:"lib:relative lib:top-[1px] lib:ml-1 lib:size-3 lib:transition lib:duration-300 group-data-[state=open]:lib:rotate-180","aria-hidden":"true"}))}function w({className:t,...i}){return e.createElement(o.Content,{"data-slot":"navigation-menu-content",className:n.cn("data-[motion^=from-]:lib:animate-in data-[motion^=to-]:lib:animate-out data-[motion^=from-]:lib:fade-in data-[motion^=to-]:lib:fade-out data-[motion=from-end]:lib:slide-in-from-right-52 data-[motion=from-start]:lib:slide-in-from-left-52 data-[motion=to-end]:lib:slide-out-to-right-52 data-[motion=to-start]:lib:slide-out-to-left-52 lib:top-0 lib:left-0 lib:w-full lib:p-2 lib:pr-2.5 md:lib:absolute md:lib:w-auto","lib:group-data-[viewport=false]/navigation-menu:bg-popover lib:group-data-[viewport=false]/navigation-menu:text-popover-foreground lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 lib:group-data-[viewport=false]/navigation-menu:top-full lib:group-data-[viewport=false]/navigation-menu:mt-1.5 lib:group-data-[viewport=false]/navigation-menu:overflow-hidden lib:group-data-[viewport=false]/navigation-menu:rounded-md lib:group-data-[viewport=false]/navigation-menu:border lib:group-data-[viewport=false]/navigation-menu:shadow lib:group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:lib:ring-0 **:data-[slot=navigation-menu-link]:focus:lib:outline-none",t),...i})}function u({className:t,...i}){return e.createElement("div",{className:n.cn("lib:absolute lib:top-full lib:left-0 lib:isolate lib:z-50 lib:flex lib:justify-center")},e.createElement(o.Viewport,{"data-slot":"navigation-menu-viewport",className:n.cn("lib:origin-top-center lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-90 lib:relative lib:mt-1.5 lib:h-[var(--radix-navigation-menu-viewport-height)] lib:w-full lib:overflow-hidden lib:rounded-md lib:border lib:shadow md:lib:w-[var(--radix-navigation-menu-viewport-width)]",t),...i}))}function x({className:t,...i}){return e.createElement(o.Link,{"data-slot":"navigation-menu-link",className:n.cn("data-[active=true]:focus:lib:bg-accent data-[active=true]:hover:lib:bg-accent data-[active=true]:lib:bg-accent/50 data-[active=true]:lib:text-accent-foreground hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground focus-visible:lib:ring-ring/50 [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:flex lib:flex-col lib:gap-1 lib:rounded-sm lib:p-2 lib:text-sm lib:transition-all lib:outline-none focus-visible:lib:ring-[3px] focus-visible:lib:outline-1 [&_svg:not([class*=size-])]:lib:size-4",t),...i})}function N({className:t,...i}){return e.createElement(o.Indicator,{"data-slot":"navigation-menu-indicator",className:n.cn("data-[state=visible]:lib:animate-in data-[state=hidden]:lib:animate-out data-[state=hidden]:lib:fade-out data-[state=visible]:lib:fade-in lib:top-full lib:z-[1] lib:flex lib:h-1.5 lib:items-end lib:justify-center lib:overflow-hidden",t),...i},e.createElement("div",{className:"lib:bg-border lib:relative lib:top-[60%] lib:h-2 lib:w-2 lib:rotate-45 lib:rounded-tl-sm lib:shadow-md"}))}exports.NavigationMenu=m;exports.NavigationMenuContent=w;exports.NavigationMenuIndicator=N;exports.NavigationMenuItem=f;exports.NavigationMenuLink=x;exports.NavigationMenuList=v;exports.NavigationMenuTrigger=p;exports.NavigationMenuViewport=u;exports.navigationMenuTriggerStyle=b; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),e=require("lucide-react"),a=require("./index.cjs65.js"),l=require("./index.cjs13.js");function u({className:n,...t}){return i.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:a.cn("mx-auto flex w-full justify-center",n),...t})}function x({className:n,...t}){return i.jsxRuntimeExports.jsx("ul",{"data-slot":"pagination-content",className:a.cn("flex flex-row items-center gap-1",n),...t})}function c({...n}){return i.jsxRuntimeExports.jsx("li",{"data-slot":"pagination-item",...n})}function s({className:n,isActive:t,size:o="icon",...r}){return i.jsxRuntimeExports.jsx("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:a.cn(l.buttonVariants({variant:t?"outline":"ghost",size:o}),n),...r})}function p({className:n,...t}){return i.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to previous page",size:"default",className:a.cn("gap-1 px-2.5 sm:pl-2.5",n),...t,children:[i.jsxRuntimeExports.jsx(e.ChevronLeftIcon,{}),i.jsxRuntimeExports.jsx("span",{className:"hidden sm:block",children:"Previous"})]})}function m({className:n,...t}){return i.jsxRuntimeExports.jsxs(s,{"aria-label":"Go to next page",size:"default",className:a.cn("gap-1 px-2.5 sm:pr-2.5",n),...t,children:[i.jsxRuntimeExports.jsx("span",{className:"hidden sm:block",children:"Next"}),i.jsxRuntimeExports.jsx(e.ChevronRightIcon,{})]})}function g({className:n,...t}){return i.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:a.cn("flex size-9 items-center justify-center",n),...t,children:[i.jsxRuntimeExports.jsx(e.MoreHorizontalIcon,{className:"size-4"}),i.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More pages"})]})}exports.Pagination=u;exports.PaginationContent=x;exports.PaginationEllipsis=g;exports.PaginationItem=c;exports.PaginationLink=s;exports.PaginationNext=m;exports.PaginationPrevious=p; diff --git a/dist/index.cjs33.js b/dist/index.cjs33.js index f5b2b122..4d3b5fd4 100644 --- a/dist/index.cjs33.js +++ b/dist/index.cjs33.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),o=require("lucide-react"),i=require("./index.cjs54.js"),s=require("./index.cjs14.js");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const n=u(c);function b({className:e,...t}){return n.createElement("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:i.cn("lib:mx-auto lib:flex lib:w-full lib:justify-center",e),...t})}function m({className:e,...t}){return n.createElement("ul",{"data-slot":"pagination-content",className:i.cn("lib:flex lib:flex-row lib:items-center lib:gap-1",e),...t})}function g({...e}){return n.createElement("li",{"data-slot":"pagination-item",...e})}function r({className:e,isActive:t,size:a="icon",...l}){return n.createElement("a",{"aria-current":t?"page":void 0,"data-slot":"pagination-link","data-active":t,className:i.cn(s.buttonVariants({variant:t?"outline":"ghost",size:a}),e),...l})}function p({className:e,...t}){return n.createElement(r,{"aria-label":"Go to previous page",size:"default",className:i.cn("lib:gap-1 lib:px-2.5 sm:lib:pl-2.5",e),...t},n.createElement(o.ChevronLeftIcon,null),n.createElement("span",{className:"lib:hidden sm:lib:block"},"Previous"))}function f({className:e,...t}){return n.createElement(r,{"aria-label":"Go to next page",size:"default",className:i.cn("lib:gap-1 lib:px-2.5 sm:lib:pr-2.5",e),...t},n.createElement("span",{className:"lib:hidden sm:lib:block"},"Next"),n.createElement(o.ChevronRightIcon,null))}function d({className:e,...t}){return n.createElement("span",{"aria-hidden":!0,"data-slot":"pagination-ellipsis",className:i.cn("lib:flex lib:size-9 lib:items-center lib:justify-center",e),...t},n.createElement(o.MoreHorizontalIcon,{className:"lib:size-4"}),n.createElement("span",{className:"lib:sr-only"},"More pages"))}exports.Pagination=b;exports.PaginationContent=m;exports.PaginationEllipsis=d;exports.PaginationItem=g;exports.PaginationLink=r;exports.PaginationNext=f;exports.PaginationPrevious=p; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),a=require("@radix-ui/react-popover"),s=require("./index.cjs65.js");function d(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,i.get?i:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const n=d(a);function p({...t}){return r.jsxRuntimeExports.jsx(n.Root,{"data-slot":"popover",...t})}function u({...t}){return r.jsxRuntimeExports.jsx(n.Trigger,{"data-slot":"popover-trigger",...t})}function c({className:t,align:o="center",sideOffset:e=4,...i}){return r.jsxRuntimeExports.jsx(n.Portal,{children:r.jsxRuntimeExports.jsx(n.Content,{"data-slot":"popover-content",align:o,sideOffset:e,className:s.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...i})})}function l({...t}){return r.jsxRuntimeExports.jsx(n.Anchor,{"data-slot":"popover-anchor",...t})}exports.Popover=p;exports.PopoverAnchor=l;exports.PopoverContent=c;exports.PopoverTrigger=u; diff --git a/dist/index.cjs34.js b/dist/index.cjs34.js index 5e46a743..33b29647 100644 --- a/dist/index.cjs34.js +++ b/dist/index.cjs34.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),d=require("@radix-ui/react-popover"),c=require("./index.cjs54.js");function a(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=a(l),n=a(d);function s({...e}){return r.createElement(n.Root,{"data-slot":"popover",...e})}function p({...e}){return r.createElement(n.Trigger,{"data-slot":"popover-trigger",...e})}function b({className:e,align:o="center",sideOffset:t=4,...i}){return r.createElement(n.Portal,null,r.createElement(n.Content,{"data-slot":"popover-content",align:o,sideOffset:t,className:c.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-72 lib:origin-(--radix-popover-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden",e),...i}))}function u({...e}){return r.createElement(n.Anchor,{"data-slot":"popover-anchor",...e})}exports.Popover=s;exports.PopoverAnchor=u;exports.PopoverContent=b;exports.PopoverTrigger=p; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),i=require("@radix-ui/react-progress"),l=require("./index.cjs65.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=a(i);function u({className:e,value:t,...r}){return o.jsxRuntimeExports.jsx(n.Root,{"data-slot":"progress",className:l.cn("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...r,children:o.jsxRuntimeExports.jsx(n.Indicator,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}exports.Progress=u; diff --git a/dist/index.cjs35.js b/dist/index.cjs35.js index 1af6b0c6..ce3cb456 100644 --- a/dist/index.cjs35.js +++ b/dist/index.cjs35.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),s=require("@radix-ui/react-progress"),c=require("./index.cjs54.js");function a(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=a(n),o=a(s);function u({className:e,value:r,...t}){return i.createElement(o.Root,{"data-slot":"progress",className:c.cn("lib:bg-primary/20 lib:relative lib:h-2 lib:w-full lib:overflow-hidden lib:rounded-full",e),...t},i.createElement(o.Indicator,{"data-slot":"progress-indicator",className:"lib:bg-primary lib:h-full lib:w-full lib:flex-1 lib:transition-all",style:{transform:`translateX(-${100-(r||0)}%)`}}))}exports.Progress=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),n=require("@radix-ui/react-radio-group"),u=require("lucide-react"),s=require("./index.cjs65.js");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=c(n);function d({className:e,...r}){return i.jsxRuntimeExports.jsx(o.Root,{"data-slot":"radio-group",className:s.cn("grid gap-3",e),...r})}function l({className:e,...r}){return i.jsxRuntimeExports.jsx(o.Item,{"data-slot":"radio-group-item",className:s.cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:i.jsxRuntimeExports.jsx(o.Indicator,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:i.jsxRuntimeExports.jsx(u.CircleIcon,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}exports.RadioGroup=d;exports.RadioGroupItem=l; diff --git a/dist/index.cjs36.js b/dist/index.cjs36.js index 8e3fa72a..a5c1135e 100644 --- a/dist/index.cjs36.js +++ b/dist/index.cjs36.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),s=require("@radix-ui/react-radio-group"),b=require("lucide-react"),o=require("./index.cjs54.js");function n(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const r=n(c),l=n(s);function u({className:e,...i}){return r.createElement(l.Root,{"data-slot":"radio-group",className:o.cn("lib:grid lib:gap-3",e),...i})}function d({className:e,...i}){return r.createElement(l.Item,{"data-slot":"radio-group-item",className:o.cn("lib:border-input lib:text-primary focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:aspect-square lib:size-4 lib:shrink-0 lib:rounded-full lib:border lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50",e),...i},r.createElement(l.Indicator,{"data-slot":"radio-group-indicator",className:"lib:relative lib:flex lib:items-center lib:justify-center"},r.createElement(b.CircleIcon,{className:"lib:fill-primary lib:absolute lib:top-1/2 lib:left-1/2 lib:size-2 lib:-translate-x-1/2 lib:-translate-y-1/2"})))}exports.RadioGroup=u;exports.RadioGroupItem=d; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),s=require("lucide-react"),o=require("react-resizable-panels"),n=require("./index.cjs65.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const i=c(o);function u({className:e,...t}){return r.jsxRuntimeExports.jsx(i.PanelGroup,{"data-slot":"resizable-panel-group",className:n.cn("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t})}function d({...e}){return r.jsxRuntimeExports.jsx(i.Panel,{"data-slot":"resizable-panel",...e})}function f({withHandle:e,className:t,...a}){return r.jsxRuntimeExports.jsx(i.PanelResizeHandle,{"data-slot":"resizable-handle",className:n.cn("bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...a,children:e&&r.jsxRuntimeExports.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:r.jsxRuntimeExports.jsx(s.GripVerticalIcon,{className:"size-2.5"})})})}exports.ResizableHandle=f;exports.ResizablePanel=d;exports.ResizablePanelGroup=u; diff --git a/dist/index.cjs37.js b/dist/index.cjs37.js index 245768d2..49f10440 100644 --- a/dist/index.cjs37.js +++ b/dist/index.cjs37.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),o=require("lucide-react"),s=require("react-resizable-panels"),n=require("./index.cjs54.js");function c(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(l,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return l.default=e,Object.freeze(l)}const t=c(b),a=c(s);function u({className:e,...l}){return t.createElement(a.PanelGroup,{"data-slot":"resizable-panel-group",className:n.cn("lib:flex lib:h-full lib:w-full data-[panel-group-direction=vertical]:lib:flex-col",e),...l})}function d({...e}){return t.createElement(a.Panel,{"data-slot":"resizable-panel",...e})}function f({withHandle:e,className:l,...i}){return t.createElement(a.PanelResizeHandle,{"data-slot":"resizable-handle",className:n.cn("lib:bg-border focus-visible:lib:ring-ring lib:relative lib:flex lib:w-px lib:items-center lib:justify-center after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-1 after:lib:-translate-x-1/2 focus-visible:lib:ring-1 focus-visible:lib:ring-offset-1 focus-visible:lib:outline-hidden data-[panel-group-direction=vertical]:lib:h-px data-[panel-group-direction=vertical]:lib:w-full data-[panel-group-direction=vertical]:after:lib:left-0 data-[panel-group-direction=vertical]:after:lib:h-1 data-[panel-group-direction=vertical]:after:lib:w-full data-[panel-group-direction=vertical]:after:lib:-translate-y-1/2 data-[panel-group-direction=vertical]:after:lib:translate-x-0 [&[data-panel-group-direction=vertical]>div]:lib:rotate-90",l),...i},e&&t.createElement("div",{className:"lib:bg-border lib:z-10 lib:flex lib:h-4 lib:w-3 lib:items-center lib:justify-center lib:rounded-xs lib:border"},t.createElement(o.GripVerticalIcon,{className:"lib:size-2.5"})))}exports.ResizableHandle=f;exports.ResizablePanel=d;exports.ResizablePanelGroup=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs64.js"),i=require("@radix-ui/react-scroll-area"),n=require("./index.cjs65.js");function c(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=c(i);function u({className:e,children:r,...t}){return l.jsxRuntimeExports.jsxs(o.Root,{"data-slot":"scroll-area",className:n.cn("relative",e),...t,children:[l.jsxRuntimeExports.jsx(o.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:r}),l.jsxRuntimeExports.jsx(a,{}),l.jsxRuntimeExports.jsx(o.Corner,{})]})}function a({className:e,orientation:r="vertical",...t}){return l.jsxRuntimeExports.jsx(o.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:r,className:n.cn("flex touch-none p-px transition-colors select-none",r==="vertical"&&"h-full w-2.5 border-l border-l-transparent",r==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...t,children:l.jsxRuntimeExports.jsx(o.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}exports.ScrollArea=u;exports.ScrollBar=a; diff --git a/dist/index.cjs38.js b/dist/index.cjs38.js index 102d68f5..5af17b0e 100644 --- a/dist/index.cjs38.js +++ b/dist/index.cjs38.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),s=require("@radix-ui/react-scroll-area"),a=require("./index.cjs54.js");function c(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(l,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return l.default=e,Object.freeze(l)}const t=c(b),i=c(s);function u({className:e,children:l,...r}){return t.createElement(i.Root,{"data-slot":"scroll-area",className:a.cn("lib:relative",e),...r},t.createElement(i.Viewport,{"data-slot":"scroll-area-viewport",className:"focus-visible:lib:ring-ring/50 lib:size-full lib:rounded-[inherit] lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] focus-visible:lib:outline-1"},l),t.createElement(n,null),t.createElement(i.Corner,null))}function n({className:e,orientation:l="vertical",...r}){return t.createElement(i.ScrollAreaScrollbar,{"data-slot":"scroll-area-scrollbar",orientation:l,className:a.cn("lib:flex lib:touch-none lib:p-px lib:transition-colors lib:select-none",l==="vertical"&&"lib:h-full lib:w-2.5 lib:border-l lib:border-l-transparent",l==="horizontal"&&"lib:h-2.5 lib:flex-col lib:border-t lib:border-t-transparent",e),...r},t.createElement(i.ScrollAreaThumb,{"data-slot":"scroll-area-thumb",className:"lib:bg-border lib:relative lib:flex-1 lib:rounded-full"}))}exports.ScrollArea=u;exports.ScrollBar=n; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),d=require("@radix-ui/react-select"),l=require("lucide-react"),a=require("./index.cjs65.js");function u(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(s,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return s.default=e,Object.freeze(s)}const r=u(d);function x({...e}){return t.jsxRuntimeExports.jsx(r.Root,{"data-slot":"select",...e})}function p({...e}){return t.jsxRuntimeExports.jsx(r.Group,{"data-slot":"select-group",...e})}function m({...e}){return t.jsxRuntimeExports.jsx(r.Value,{"data-slot":"select-value",...e})}function f({className:e,size:s="default",children:n,...o}){return t.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"select-trigger","data-size":s,className:a.cn("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...o,children:[n,t.jsxRuntimeExports.jsx(r.Icon,{asChild:!0,children:t.jsxRuntimeExports.jsx(l.ChevronDownIcon,{className:"size-4 opacity-50"})})]})}function g({className:e,children:s,position:n="popper",...o}){return t.jsxRuntimeExports.jsx(r.Portal,{children:t.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"select-content",className:a.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...o,children:[t.jsxRuntimeExports.jsx(i,{}),t.jsxRuntimeExports.jsx(r.Viewport,{className:a.cn("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:s}),t.jsxRuntimeExports.jsx(c,{})]})})}function j({className:e,...s}){return t.jsxRuntimeExports.jsx(r.Label,{"data-slot":"select-label",className:a.cn("text-muted-foreground px-2 py-1.5 text-xs",e),...s})}function v({className:e,children:s,...n}){return t.jsxRuntimeExports.jsxs(r.Item,{"data-slot":"select-item",className:a.cn("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[t.jsxRuntimeExports.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:t.jsxRuntimeExports.jsx(r.ItemIndicator,{children:t.jsxRuntimeExports.jsx(l.CheckIcon,{className:"size-4"})})}),t.jsxRuntimeExports.jsx(r.ItemText,{children:s})]})}function b({className:e,...s}){return t.jsxRuntimeExports.jsx(r.Separator,{"data-slot":"select-separator",className:a.cn("bg-border pointer-events-none -mx-1 my-1 h-px",e),...s})}function i({className:e,...s}){return t.jsxRuntimeExports.jsx(r.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:a.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.ChevronUpIcon,{className:"size-4"})})}function c({className:e,...s}){return t.jsxRuntimeExports.jsx(r.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:a.cn("flex cursor-default items-center justify-center py-1",e),...s,children:t.jsxRuntimeExports.jsx(l.ChevronDownIcon,{className:"size-4"})})}exports.Select=x;exports.SelectContent=g;exports.SelectGroup=p;exports.SelectItem=v;exports.SelectLabel=j;exports.SelectScrollDownButton=c;exports.SelectScrollUpButton=i;exports.SelectSeparator=b;exports.SelectTrigger=f;exports.SelectValue=m; diff --git a/dist/index.cjs39.js b/dist/index.cjs39.js index 47585905..32780b77 100644 --- a/dist/index.cjs39.js +++ b/dist/index.cjs39.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),u=require("@radix-ui/react-select"),o=require("lucide-react"),n=require("./index.cjs54.js");function s(e){const l=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(l,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return l.default=e,Object.freeze(l)}const t=s(d),i=s(u);function m({...e}){return t.createElement(i.Root,{"data-slot":"select",...e})}function p({...e}){return t.createElement(i.Group,{"data-slot":"select-group",...e})}function f({...e}){return t.createElement(i.Value,{"data-slot":"select-value",...e})}function g({className:e,size:l="default",children:a,...r}){return t.createElement(i.Trigger,{"data-slot":"select-trigger","data-size":l,className:n.cn("lib:border-input data-[placeholder]:lib:text-muted-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 dark:hover:lib:bg-input/50 lib:flex lib:w-fit lib:items-center lib:justify-between lib:gap-2 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-sm lib:whitespace-nowrap lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 data-[size=default]:lib:h-9 data-[size=sm]:lib:h-8 *:data-[slot=select-value]:lib:line-clamp-1 *:data-[slot=select-value]:lib:flex *:data-[slot=select-value]:lib:items-center *:data-[slot=select-value]:lib:gap-2 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...r},a,t.createElement(i.Icon,{asChild:!0},t.createElement(o.ChevronDownIcon,{className:"lib:size-4 lib:opacity-50"})))}function v({className:e,children:l,position:a="popper",...r}){return t.createElement(i.Portal,null,t.createElement(i.Content,{"data-slot":"select-content",className:n.cn("lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:relative lib:z-50 lib:max-h-(--radix-select-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-select-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:shadow-md",a==="popper"&&"data-[side=bottom]:lib:translate-y-1 data-[side=left]:lib:-translate-x-1 data-[side=right]:lib:translate-x-1 data-[side=top]:lib:-translate-y-1",e),position:a,...r},t.createElement(c,null),t.createElement(i.Viewport,{className:n.cn("lib:p-1",a==="popper"&&"lib:h-[var(--radix-select-trigger-height)] lib:w-full lib:min-w-[var(--radix-select-trigger-width)] lib:scroll-my-1")},l),t.createElement(b,null)))}function x({className:e,...l}){return t.createElement(i.Label,{"data-slot":"select-label",className:n.cn("lib:text-muted-foreground lib:px-2 lib:py-1.5 lib:text-xs",e),...l})}function S({className:e,children:l,...a}){return t.createElement(i.Item,{"data-slot":"select-item",className:n.cn("focus:lib:bg-accent focus:lib:text-accent-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:w-full lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-8 lib:pl-2 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4 *:[span]:last:lib:flex *:[span]:last:lib:items-center *:[span]:last:lib:gap-2",e),...a},t.createElement("span",{className:"lib:absolute lib:right-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center"},t.createElement(i.ItemIndicator,null,t.createElement(o.CheckIcon,{className:"lib:size-4"}))),t.createElement(i.ItemText,null,l))}function h({className:e,...l}){return t.createElement(i.Separator,{"data-slot":"select-separator",className:n.cn("lib:bg-border lib:pointer-events-none lib:-mx-1 lib:my-1 lib:h-px",e),...l})}function c({className:e,...l}){return t.createElement(i.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:n.cn("lib:flex lib:cursor-default lib:items-center lib:justify-center lib:py-1",e),...l},t.createElement(o.ChevronUpIcon,{className:"lib:size-4"}))}function b({className:e,...l}){return t.createElement(i.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:n.cn("lib:flex lib:cursor-default lib:items-center lib:justify-center lib:py-1",e),...l},t.createElement(o.ChevronDownIcon,{className:"lib:size-4"}))}exports.Select=m;exports.SelectContent=v;exports.SelectGroup=p;exports.SelectItem=S;exports.SelectLabel=x;exports.SelectScrollDownButton=b;exports.SelectScrollUpButton=c;exports.SelectSeparator=h;exports.SelectTrigger=g;exports.SelectValue=f; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),n=require("@radix-ui/react-separator"),i=require("./index.cjs65.js");function l(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const u=l(n);function c({className:t,orientation:r="horizontal",decorative:e=!0,...o}){return a.jsxRuntimeExports.jsx(u.Root,{"data-slot":"separator",decorative:e,orientation:r,className:i.cn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...o})}exports.Separator=c; diff --git a/dist/index.cjs4.js b/dist/index.cjs4.js index 2f099835..0d1accaa 100644 --- a/dist/index.cjs4.js +++ b/dist/index.cjs4.js @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react"),n=o.createContext(null),i=()=>{const t=o.useContext(n);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t},c=({defaultScheme:t,children:a})=>{const[s,r]=o.useState(null);o.useEffect(()=>{if(t){r(t);return}const e=localStorage.getItem("theme");e&&["light","dark"].includes(e)?r(e):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?(r("dark"),localStorage.setItem("theme","dark")):(r("light"),localStorage.setItem("theme","light"))},[]);const l=()=>{const e=s==="light"?"dark":"light";r(e),localStorage.setItem("theme",e),window.dispatchEvent(new Event("storage"))};return o.createElement(n.Provider,{value:{theme:s,toggleTheme:l}},a)};exports.AppThemeProvider=c;exports.default=i; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs64.js"),u=require("next-themes");function i({children:e,...r}){return t.jsxRuntimeExports.jsx(u.ThemeProvider,{...r,children:e})}exports.default=i; diff --git a/dist/index.cjs40.js b/dist/index.cjs40.js index 1b7feeff..d0aa947a 100644 --- a/dist/index.cjs40.js +++ b/dist/index.cjs40.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),n=require("@radix-ui/react-separator"),l=require("./index.cjs54.js");function o(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const a=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,a.get?a:{enumerable:!0,get:()=>t[e]})}}return r.default=t,Object.freeze(r)}const c=o(i),u=o(n);function s({className:t,orientation:r="horizontal",decorative:e=!0,...a}){return c.createElement(u.Root,{"data-slot":"separator-root",decorative:e,orientation:r,className:l.cn("lib:bg-border lib:shrink-0 data-[orientation=horizontal]:lib:h-px data-[orientation=horizontal]:lib:w-full data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:w-px",t),...a})}exports.Separator=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),i=require("@radix-ui/react-dialog"),l=require("lucide-react"),n=require("./index.cjs65.js");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const a=d(i);function u({...t}){return o.jsxRuntimeExports.jsx(a.Root,{"data-slot":"sheet",...t})}function c({...t}){return o.jsxRuntimeExports.jsx(a.Trigger,{"data-slot":"sheet-trigger",...t})}function x({...t}){return o.jsxRuntimeExports.jsx(a.Close,{"data-slot":"sheet-close",...t})}function m({...t}){return o.jsxRuntimeExports.jsx(a.Portal,{"data-slot":"sheet-portal",...t})}function f({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Overlay,{"data-slot":"sheet-overlay",className:n.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function p({className:t,children:e,side:s="right",...r}){return o.jsxRuntimeExports.jsxs(m,{children:[o.jsxRuntimeExports.jsx(f,{}),o.jsxRuntimeExports.jsxs(a.Content,{"data-slot":"sheet-content",className:n.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",s==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",s==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...r,children:[e,o.jsxRuntimeExports.jsxs(a.Close,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[o.jsxRuntimeExports.jsx(l.XIcon,{className:"size-4"}),o.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function h({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-header",className:n.cn("flex flex-col gap-1.5 p-4",t),...e})}function g({className:t,...e}){return o.jsxRuntimeExports.jsx("div",{"data-slot":"sheet-footer",className:n.cn("mt-auto flex flex-col gap-2 p-4",t),...e})}function j({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Title,{"data-slot":"sheet-title",className:n.cn("text-foreground font-semibold",t),...e})}function b({className:t,...e}){return o.jsxRuntimeExports.jsx(a.Description,{"data-slot":"sheet-description",className:n.cn("text-muted-foreground text-sm",t),...e})}exports.Sheet=u;exports.SheetClose=x;exports.SheetContent=p;exports.SheetDescription=b;exports.SheetFooter=g;exports.SheetHeader=h;exports.SheetTitle=j;exports.SheetTrigger=c; diff --git a/dist/index.cjs41.js b/dist/index.cjs41.js index f2395b98..9a55755b 100644 --- a/dist/index.cjs41.js +++ b/dist/index.cjs41.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),b=require("@radix-ui/react-dialog"),c=require("lucide-react"),o=require("./index.cjs54.js");function r(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const l=r(s),a=r(b);function d({...e}){return l.createElement(a.Root,{"data-slot":"sheet",...e})}function u({...e}){return l.createElement(a.Trigger,{"data-slot":"sheet-trigger",...e})}function m({...e}){return l.createElement(a.Close,{"data-slot":"sheet-close",...e})}function f({...e}){return l.createElement(a.Portal,{"data-slot":"sheet-portal",...e})}function h({className:e,...t}){return l.createElement(a.Overlay,{"data-slot":"sheet-overlay",className:o.cn("data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50",e),...t})}function g({className:e,children:t,side:i="right",...n}){return l.createElement(f,null,l.createElement(h,null),l.createElement(a.Content,{"data-slot":"sheet-content",className:o.cn("lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out lib:fixed lib:z-50 lib:flex lib:flex-col lib:gap-4 lib:shadow-lg lib:transition lib:ease-in-out data-[state=closed]:lib:duration-300 data-[state=open]:lib:duration-500",i==="right"&&"data-[state=closed]:lib:slide-out-to-right data-[state=open]:lib:slide-in-from-right lib:inset-y-0 lib:right-0 lib:h-full lib:w-3/4 lib:border-l sm:lib:max-w-sm",i==="left"&&"data-[state=closed]:lib:slide-out-to-left data-[state=open]:lib:slide-in-from-left lib:inset-y-0 lib:left-0 lib:h-full lib:w-3/4 lib:border-r sm:lib:max-w-sm",i==="top"&&"data-[state=closed]:lib:slide-out-to-top data-[state=open]:lib:slide-in-from-top lib:inset-x-0 lib:top-0 lib:h-auto lib:border-b",i==="bottom"&&"data-[state=closed]:lib:slide-out-to-bottom data-[state=open]:lib:slide-in-from-bottom lib:inset-x-0 lib:bottom-0 lib:h-auto lib:border-t",e),...n},t,l.createElement(a.Close,{className:"lib:ring-offset-background focus:lib:ring-ring data-[state=open]:lib:bg-secondary lib:absolute lib:top-4 lib:right-4 lib:rounded-xs lib:opacity-70 lib:transition-opacity hover:lib:opacity-100 focus:lib:ring-2 focus:lib:ring-offset-2 focus:lib:outline-hidden disabled:lib:pointer-events-none"},l.createElement(c.XIcon,{className:"lib:size-4"}),l.createElement("span",{className:"lib:sr-only"},"Close"))))}function p({className:e,...t}){return l.createElement("div",{"data-slot":"sheet-header",className:o.cn("lib:flex lib:flex-col lib:gap-1.5 lib:p-4",e),...t})}function S({className:e,...t}){return l.createElement("div",{"data-slot":"sheet-footer",className:o.cn("lib:mt-auto lib:flex lib:flex-col lib:gap-2 lib:p-4",e),...t})}function x({className:e,...t}){return l.createElement(a.Title,{"data-slot":"sheet-title",className:o.cn("lib:text-foreground lib:font-semibold",e),...t})}function y({className:e,...t}){return l.createElement(a.Description,{"data-slot":"sheet-description",className:o.cn("lib:text-muted-foreground lib:text-sm",e),...t})}exports.Sheet=d;exports.SheetClose=m;exports.SheetContent=g;exports.SheetDescription=y;exports.SheetFooter=S;exports.SheetHeader=p;exports.SheetTitle=x;exports.SheetTrigger=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),k=require("react"),g=require("@radix-ui/react-slot"),_=require("class-variance-authority"),C=require("lucide-react"),I=require("./index.cjs66.js"),i=require("./index.cjs65.js"),z=require("./index.cjs13.js"),O=require("./index.cjs28.js"),T=require("./index.cjs39.js"),f=require("./index.cjs40.js"),R=require("./index.cjs42.js"),w=require("./index.cjs51.js");function D(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const u=D(k),B="sidebar_state",q=60*60*24*7,A="16rem",G="18rem",H="3rem",P="b",y=u.createContext(null);function h(){const e=u.useContext(y);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function K({defaultOpen:e=!0,open:t,onOpenChange:r,className:s,style:n,children:d,...x}){const l=I.useIsMobile(),[p,c]=u.useState(!1),[v,M]=u.useState(e),m=t??v,S=u.useCallback(o=>{const b=typeof o=="function"?o(m):o;r?r(b):M(b),document.cookie=`${B}=${b}; path=/; max-age=${q}`},[r,m]),j=u.useCallback(()=>l?c(o=>!o):S(o=>!o),[l,S,c]);u.useEffect(()=>{const o=b=>{b.key===P&&(b.metaKey||b.ctrlKey)&&(b.preventDefault(),j())};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[j]);const E=m?"expanded":"collapsed",N=u.useMemo(()=>({state:E,open:m,setOpen:S,isMobile:l,openMobile:p,setOpenMobile:c,toggleSidebar:j}),[E,m,S,l,p,c,j]);return a.jsxRuntimeExports.jsx(y.Provider,{value:N,children:a.jsxRuntimeExports.jsx(w.TooltipProvider,{delayDuration:0,children:a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":A,"--sidebar-width-icon":H,...n},className:i.cn("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",s),...x,children:d})})})}function L({side:e="left",variant:t="sidebar",collapsible:r="offcanvas",className:s,children:n,...d}){const{isMobile:x,state:l,openMobile:p,setOpenMobile:c}=h();return r==="none"?a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar",className:i.cn("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",s),...d,children:n}):x?a.jsxRuntimeExports.jsx(f.Sheet,{open:p,onOpenChange:c,...d,children:a.jsxRuntimeExports.jsxs(f.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":G},side:e,children:[a.jsxRuntimeExports.jsxs(f.SheetHeader,{className:"sr-only",children:[a.jsxRuntimeExports.jsx(f.SheetTitle,{children:"Sidebar"}),a.jsxRuntimeExports.jsx(f.SheetDescription,{children:"Displays the mobile sidebar."})]}),a.jsxRuntimeExports.jsx("div",{className:"flex h-full w-full flex-col",children:n})]})}):a.jsxRuntimeExports.jsxs("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":l,"data-collapsible":l==="collapsed"?r:"","data-variant":t,"data-side":e,"data-slot":"sidebar",children:[a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-gap",className:i.cn("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-container",className:i.cn("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...d,children:a.jsxRuntimeExports.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:n})})]})}function V({className:e,onClick:t,...r}){const{toggleSidebar:s}=h();return a.jsxRuntimeExports.jsxs(z.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:i.cn("size-7",e),onClick:n=>{t?.(n),s()},...r,children:[a.jsxRuntimeExports.jsx(C.PanelLeftIcon,{}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}function W({className:e,...t}){const{toggleSidebar:r}=h();return a.jsxRuntimeExports.jsx("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:i.cn("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...t})}function F({className:e,...t}){return a.jsxRuntimeExports.jsx("main",{"data-slot":"sidebar-inset",className:i.cn("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...t})}function U({className:e,...t}){return a.jsxRuntimeExports.jsx(O.Input,{"data-slot":"sidebar-input","data-sidebar":"input",className:i.cn("bg-background h-8 w-full shadow-none",e),...t})}function X({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:i.cn("flex flex-col gap-2 p-2",e),...t})}function Y({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:i.cn("flex flex-col gap-2 p-2",e),...t})}function J({className:e,...t}){return a.jsxRuntimeExports.jsx(T.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:i.cn("bg-sidebar-border mx-2 w-auto",e),...t})}function Q({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:i.cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...t})}function Z({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:i.cn("relative flex w-full min-w-0 flex-col p-2",e),...t})}function $({className:e,asChild:t=!1,...r}){const s=t?g.Slot:"div";return a.jsxRuntimeExports.jsx(s,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:i.cn("text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...r})}function ee({className:e,asChild:t=!1,...r}){const s=t?g.Slot:"button";return a.jsxRuntimeExports.jsx(s,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:i.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","group-data-[collapsible=icon]:hidden",e),...r})}function te({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:i.cn("w-full text-sm",e),...t})}function ae({className:e,...t}){return a.jsxRuntimeExports.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:i.cn("flex w-full min-w-0 flex-col gap-1",e),...t})}function re({className:e,...t}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:i.cn("group/menu-item relative",e),...t})}const ie=_.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function se({asChild:e=!1,isActive:t=!1,variant:r="default",size:s="default",tooltip:n,className:d,...x}){const l=e?g.Slot:"button",{isMobile:p,state:c}=h(),v=a.jsxRuntimeExports.jsx(l,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":s,"data-active":t,className:i.cn(ie({variant:r,size:s}),d),...x});return n?(typeof n=="string"&&(n={children:n}),a.jsxRuntimeExports.jsxs(w.Tooltip,{children:[a.jsxRuntimeExports.jsx(w.TooltipTrigger,{asChild:!0,children:v}),a.jsxRuntimeExports.jsx(w.TooltipContent,{side:"right",align:"center",hidden:c!=="collapsed"||p,...n})]})):v}function ne({className:e,asChild:t=!1,showOnHover:r=!1,...s}){const n=t?g.Slot:"button";return a.jsxRuntimeExports.jsx(n,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:i.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 md:after:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",r&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",e),...s})}function oe({className:e,...t}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:i.cn("text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...t})}function de({className:e,showIcon:t=!1,...r}){const s=u.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return a.jsxRuntimeExports.jsxs("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:i.cn("flex h-8 items-center gap-2 rounded-md px-2",e),...r,children:[t&&a.jsxRuntimeExports.jsx(R.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),a.jsxRuntimeExports.jsx(R.Skeleton,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]})}function le({className:e,...t}){return a.jsxRuntimeExports.jsx("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:i.cn("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...t})}function ue({className:e,...t}){return a.jsxRuntimeExports.jsx("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:i.cn("group/menu-sub-item relative",e),...t})}function ce({asChild:e=!1,size:t="md",isActive:r=!1,className:s,...n}){const d=e?g.Slot:"a";return a.jsxRuntimeExports.jsx(d,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:i.cn("text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",s),...n})}exports.Sidebar=L;exports.SidebarContent=Q;exports.SidebarFooter=Y;exports.SidebarGroup=Z;exports.SidebarGroupAction=ee;exports.SidebarGroupContent=te;exports.SidebarGroupLabel=$;exports.SidebarHeader=X;exports.SidebarInput=U;exports.SidebarInset=F;exports.SidebarMenu=ae;exports.SidebarMenuAction=ne;exports.SidebarMenuBadge=oe;exports.SidebarMenuButton=se;exports.SidebarMenuItem=re;exports.SidebarMenuSkeleton=de;exports.SidebarMenuSub=le;exports.SidebarMenuSubButton=ce;exports.SidebarMenuSubItem=ue;exports.SidebarProvider=K;exports.SidebarRail=W;exports.SidebarSeparator=J;exports.SidebarTrigger=V;exports.useSidebar=h; diff --git a/dist/index.cjs42.js b/dist/index.cjs42.js index 7ea6b851..a1f275ff 100644 --- a/dist/index.cjs42.js +++ b/dist/index.cjs42.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react"),g=require("@radix-ui/react-slot"),C=require("class-variance-authority"),I=require("lucide-react"),z=require("./index.cjs55.js"),l=require("./index.cjs54.js"),O=require("./index.cjs14.js"),T=require("./index.cjs29.js"),D=require("./index.cjs40.js"),p=require("./index.cjs41.js"),y=require("./index.cjs43.js"),w=require("./index.cjs52.js");function B(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(i,a,r.get?r:{enumerable:!0,get:()=>e[a]})}}return i.default=e,Object.freeze(i)}const t=B(_),A="sidebar_state",q=60*60*24*7,R="16rem",G="18rem",j="3rem",H="b",M=t.createContext(null);function h(){const e=t.useContext(M);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function P({defaultOpen:e=!0,open:i,onOpenChange:a,className:r,style:b,children:o,...m}){const d=z.useIsMobile(),[u,s]=t.useState(!1),[v,N]=t.useState(e),f=i??v,x=t.useCallback(n=>{const c=typeof n=="function"?n(f):n;a?a(c):N(c),document.cookie=`${A}=${c}; path=/; max-age=${q}`},[a,f]),S=t.useCallback(()=>d?s(n=>!n):x(n=>!n),[d,x,s]);t.useEffect(()=>{const n=c=>{c.key===H&&(c.metaKey||c.ctrlKey)&&(c.preventDefault(),S())};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[S]);const E=f?"expanded":"collapsed",k=t.useMemo(()=>({state:E,open:f,setOpen:x,isMobile:d,openMobile:u,setOpenMobile:s,toggleSidebar:S}),[E,f,x,d,u,s,S]);return t.createElement(M.Provider,{value:k},t.createElement(w.TooltipProvider,{delayDuration:0},t.createElement("div",{"data-slot":"sidebar-wrapper",style:{"--sidebar-width":R,"--sidebar-width-icon":j,...b},className:l.cn("lib:group/sidebar-wrapper has-data-[variant=inset]:lib:bg-sidebar lib:flex lib:min-h-svh lib:w-full",r),...m},o)))}function K({side:e="left",variant:i="sidebar",collapsible:a="offcanvas",className:r,children:b,...o}){const{isMobile:m,state:d,openMobile:u,setOpenMobile:s}=h();return a==="none"?t.createElement("div",{"data-slot":"sidebar",className:l.cn("lib:bg-sidebar lib:text-sidebar-foreground lib:flex lib:h-full lib:w-(--sidebar-width) lib:flex-col",r),...o},b):m?t.createElement(p.Sheet,{open:u,onOpenChange:s,...o},t.createElement(p.SheetContent,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"lib:bg-sidebar lib:text-sidebar-foreground lib:w-(--sidebar-width) lib:p-0 [&>button]:lib:hidden",style:{"--sidebar-width":G},side:e},t.createElement(p.SheetHeader,{className:"lib:sr-only"},t.createElement(p.SheetTitle,null,"Sidebar"),t.createElement(p.SheetDescription,null,"Displays the mobile sidebar.")),t.createElement("div",{className:"lib:flex lib:h-full lib:w-full lib:flex-col"},b))):t.createElement("div",{className:"lib:group lib:peer lib:text-sidebar-foreground lib:hidden md:lib:block","data-state":d,"data-collapsible":d==="collapsed"?a:"","data-variant":i,"data-side":e,"data-slot":"sidebar"},t.createElement("div",{"data-slot":"sidebar-gap",className:l.cn("lib:relative lib:w-(--sidebar-width) lib:bg-transparent lib:transition-[width] lib:duration-200 lib:ease-linear","group-data-[collapsible=offcanvas]:lib:w-0","group-data-[side=right]:lib:rotate-180",i==="floating"||i==="inset"?"group-data-[collapsible=icon]:lib:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:lib:w-(--sidebar-width-icon)")}),t.createElement("div",{"data-slot":"sidebar-container",className:l.cn("lib:fixed lib:inset-y-0 lib:z-10 lib:hidden lib:h-svh lib:w-(--sidebar-width) lib:transition-[left,right,width] lib:duration-200 lib:ease-linear md:lib:flex",e==="left"?"lib:left-0 group-data-[collapsible=offcanvas]:lib:left-[calc(var(--sidebar-width)*-1)]":"lib:right-0 group-data-[collapsible=offcanvas]:lib:right-[calc(var(--sidebar-width)*-1)]",i==="floating"||i==="inset"?"lib:p-2 group-data-[collapsible=icon]:lib:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:lib:w-(--sidebar-width-icon) group-data-[side=left]:lib:border-r group-data-[side=right]:lib:border-l",r),...o},t.createElement("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"lib:bg-sidebar group-data-[variant=floating]:lib:border-sidebar-border lib:flex lib:h-full lib:w-full lib:flex-col group-data-[variant=floating]:lib:rounded-lg group-data-[variant=floating]:lib:border group-data-[variant=floating]:lib:shadow-sm"},b)))}function L({className:e,onClick:i,...a}){const{toggleSidebar:r}=h();return t.createElement(O.Button,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:l.cn("lib:size-7",e),onClick:b=>{i?.(b),r()},...a},t.createElement(I.PanelLeftIcon,null),t.createElement("span",{className:"lib:sr-only"},"Toggle Sidebar"))}function V({className:e,...i}){const{toggleSidebar:a}=h();return t.createElement("button",{"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:l.cn("hover:after:lib:bg-sidebar-border lib:absolute lib:inset-y-0 lib:z-20 lib:hidden lib:w-4 lib:-translate-x-1/2 lib:transition-all lib:ease-linear group-data-[side=left]:lib:-right-4 group-data-[side=right]:lib:left-0 after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-[2px] sm:lib:flex","in-data-[side=left]:lib:cursor-w-resize in-data-[side=right]:lib:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:lib:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:lib:cursor-w-resize","hover:group-data-[collapsible=offcanvas]:lib:bg-sidebar group-data-[collapsible=offcanvas]:lib:translate-x-0 group-data-[collapsible=offcanvas]:after:lib:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:lib:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:lib:-left-2",e),...i})}function W({className:e,...i}){return t.createElement("main",{"data-slot":"sidebar-inset",className:l.cn("lib:bg-background lib:relative lib:flex lib:w-full lib:flex-1 lib:flex-col","md:peer-data-[variant=inset]:lib:m-2 md:peer-data-[variant=inset]:lib:ml-0 md:peer-data-[variant=inset]:lib:rounded-xl md:peer-data-[variant=inset]:lib:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:lib:ml-2",e),...i})}function F({className:e,...i}){return t.createElement(T.Input,{"data-slot":"sidebar-input","data-sidebar":"input",className:l.cn("lib:bg-background lib:h-8 lib:w-full lib:shadow-none",e),...i})}function U({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l.cn("lib:flex lib:flex-col lib:gap-2 lib:p-2",e),...i})}function X({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l.cn("lib:flex lib:flex-col lib:gap-2 lib:p-2",e),...i})}function Y({className:e,...i}){return t.createElement(D.Separator,{"data-slot":"sidebar-separator","data-sidebar":"separator",className:l.cn("lib:bg-sidebar-border lib:mx-2 lib:w-auto",e),...i})}function J({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l.cn("lib:flex lib:min-h-0 lib:flex-1 lib:flex-col lib:gap-2 lib:overflow-auto group-data-[collapsible=icon]:lib:overflow-hidden",e),...i})}function Q({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l.cn("lib:relative lib:flex lib:w-full lib:min-w-0 lib:flex-col lib:p-2",e),...i})}function Z({className:e,asChild:i=!1,...a}){const r=i?g.Slot:"div";return t.createElement(r,{"data-slot":"sidebar-group-label","data-sidebar":"group-label",className:l.cn("lib:text-sidebar-foreground/70 lib:ring-sidebar-ring lib:flex lib:h-8 lib:shrink-0 lib:items-center lib:rounded-md lib:px-2 lib:text-xs lib:font-medium lib:outline-hidden lib:transition-[margin,opacity] lib:duration-200 lib:ease-linear focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0","group-data-[collapsible=icon]:lib:-mt-8 group-data-[collapsible=icon]:lib:opacity-0",e),...a})}function $({className:e,asChild:i=!1,...a}){const r=i?g.Slot:"button";return t.createElement(r,{"data-slot":"sidebar-group-action","data-sidebar":"group-action",className:l.cn("lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:absolute lib:top-3.5 lib:right-3 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0","after:lib:absolute after:lib:-inset-2 md:after:lib:hidden","group-data-[collapsible=icon]:lib:hidden",e),...a})}function ee({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l.cn("lib:w-full lib:text-sm",e),...i})}function ie({className:e,...i}){return t.createElement("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l.cn("lib:flex lib:w-full lib:min-w-0 lib:flex-col lib:gap-1",e),...i})}function te({className:e,...i}){return t.createElement("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l.cn("lib:group/menu-item lib:relative",e),...i})}const ae=C.cva("lib:peer/menu-button lib:flex lib:w-full lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:p-2 lib:text-left lib:text-sm lib:outline-hidden lib:ring-sidebar-ring lib:transition-[width,height,padding] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground focus-visible:lib:ring-2 active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 lib:group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:font-medium data-[active=true]:lib:text-sidebar-accent-foreground data-[state=open]:hover:lib:bg-sidebar-accent data-[state=open]:hover:lib:text-sidebar-accent-foreground group-data-[collapsible=icon]:lib:size-8! group-data-[collapsible=icon]:lib:p-2! [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0",{variants:{variant:{default:"hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground",outline:"lib:bg-background lib:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground hover:lib:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"lib:h-8 lib:text-sm",sm:"lib:h-7 lib:text-xs",lg:"lib:h-12 lib:text-sm group-data-[collapsible=icon]:lib:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function le({asChild:e=!1,isActive:i=!1,variant:a="default",size:r="default",tooltip:b,className:o,...m}){const d=e?g.Slot:"button",{isMobile:u,state:s}=h(),v=t.createElement(d,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":r,"data-active":i,className:l.cn(ae({variant:a,size:r}),o),...m});return b?(typeof b=="string"&&(b={children:b}),t.createElement(w.Tooltip,null,t.createElement(w.TooltipTrigger,{asChild:!0},v),t.createElement(w.TooltipContent,{side:"right",align:"center",hidden:s!=="collapsed"||u,...b}))):v}function re({className:e,asChild:i=!1,showOnHover:a=!1,...r}){const b=i?g.Slot:"button";return t.createElement(b,{"data-slot":"sidebar-menu-action","data-sidebar":"menu-action",className:l.cn("lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:absolute lib:top-1.5 lib:right-1 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0","after:lib:absolute after:lib:-inset-2 md:after:lib:hidden","lib:peer-data-[size=sm]/menu-button:top-1","lib:peer-data-[size=default]/menu-button:top-1.5","lib:peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:lib:hidden",a&&"lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground lib:group-focus-within/menu-item:opacity-100 lib:group-hover/menu-item:opacity-100 data-[state=open]:lib:opacity-100 md:lib:opacity-0",e),...r})}function be({className:e,...i}){return t.createElement("div",{"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:l.cn("lib:text-sidebar-foreground lib:pointer-events-none lib:absolute lib:right-1 lib:flex lib:h-5 lib:min-w-5 lib:items-center lib:justify-center lib:rounded-md lib:px-1 lib:text-xs lib:font-medium lib:tabular-nums lib:select-none","lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","lib:peer-data-[size=sm]/menu-button:top-1","lib:peer-data-[size=default]/menu-button:top-1.5","lib:peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:lib:hidden",e),...i})}function ne({className:e,showIcon:i=!1,...a}){const r=t.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return t.createElement("div",{"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:l.cn("lib:flex lib:h-8 lib:items-center lib:gap-2 lib:rounded-md lib:px-2",e),...a},i&&t.createElement(y.Skeleton,{className:"lib:size-4 lib:rounded-md","data-sidebar":"menu-skeleton-icon"}),t.createElement(y.Skeleton,{className:"lib:h-4 lib:max-w-(--skeleton-width) lib:flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":r}}))}function oe({className:e,...i}){return t.createElement("ul",{"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:l.cn("lib:border-sidebar-border lib:mx-3.5 lib:flex lib:min-w-0 lib:translate-x-px lib:flex-col lib:gap-1 lib:border-l lib:px-2.5 lib:py-0.5","group-data-[collapsible=icon]:lib:hidden",e),...i})}function de({className:e,...i}){return t.createElement("li",{"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:l.cn("lib:group/menu-sub-item lib:relative",e),...i})}function se({asChild:e=!1,size:i="md",isActive:a=!1,className:r,...b}){const o=e?g.Slot:"a";return t.createElement(o,{"data-slot":"sidebar-menu-sub-button","data-sidebar":"menu-sub-button","data-size":i,"data-active":a,className:l.cn("lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground [&>svg]:lib:text-sidebar-accent-foreground lib:flex lib:h-7 lib:min-w-0 lib:-translate-x-px lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:px-2 lib:outline-hidden focus-visible:lib:ring-2 disabled:lib:pointer-events-none disabled:lib:opacity-50 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0","data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:text-sidebar-accent-foreground",i==="sm"&&"lib:text-xs",i==="md"&&"lib:text-sm","group-data-[collapsible=icon]:lib:hidden",r),...b})}exports.Sidebar=K;exports.SidebarContent=J;exports.SidebarFooter=X;exports.SidebarGroup=Q;exports.SidebarGroupAction=$;exports.SidebarGroupContent=ee;exports.SidebarGroupLabel=Z;exports.SidebarHeader=U;exports.SidebarInput=F;exports.SidebarInset=W;exports.SidebarMenu=ie;exports.SidebarMenuAction=re;exports.SidebarMenuBadge=be;exports.SidebarMenuButton=le;exports.SidebarMenuItem=te;exports.SidebarMenuSkeleton=ne;exports.SidebarMenuSub=oe;exports.SidebarMenuSubButton=se;exports.SidebarMenuSubItem=de;exports.SidebarProvider=P;exports.SidebarRail=V;exports.SidebarSeparator=Y;exports.SidebarTrigger=L;exports.useSidebar=h; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),s=require("./index.cjs65.js");function o({className:e,...t}){return n.jsxRuntimeExports.jsx("div",{"data-slot":"skeleton",className:s.cn("bg-accent animate-pulse rounded-md",e),...t})}exports.Skeleton=o; diff --git a/dist/index.cjs43.js b/dist/index.cjs43.js index bf207a81..db03b52f 100644 --- a/dist/index.cjs43.js +++ b/dist/index.cjs43.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs54.js");function n({className:e,...t}){return React.createElement("div",{"data-slot":"skeleton",className:l.cn("lib:bg-accent lib:animate-pulse lib:rounded-md",e),...t})}exports.Skeleton=n; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),b=require("react"),m=require("@radix-ui/react-slider"),s=require("./index.cjs65.js");function l(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const f=l(b),a=l(m);function h({className:r,defaultValue:e,value:t,min:i=0,max:n=100,...c}){const d=f.useMemo(()=>Array.isArray(t)?t:Array.isArray(e)?e:[i,n],[t,e,i,n]);return o.jsxRuntimeExports.jsxs(a.Root,{"data-slot":"slider",defaultValue:e,value:t,min:i,max:n,className:s.cn("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",r),...c,children:[o.jsxRuntimeExports.jsx(a.Track,{"data-slot":"slider-track",className:s.cn("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:o.jsxRuntimeExports.jsx(a.Range,{"data-slot":"slider-range",className:s.cn("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(g,u)=>o.jsxRuntimeExports.jsx(a.Thumb,{"data-slot":"slider-thumb",className:"border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},u))]})}exports.Slider=h; diff --git a/dist/index.cjs44.js b/dist/index.cjs44.js index 39155226..eb5734ce 100644 --- a/dist/index.cjs44.js +++ b/dist/index.cjs44.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),f=require("@radix-ui/react-slider"),n=require("./index.cjs54.js");function b(t){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const l=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(i,e,l.get?l:{enumerable:!0,get:()=>t[e]})}}return i.default=t,Object.freeze(i)}const r=b(u),a=b(f);function m({className:t,defaultValue:i,value:e,min:l=0,max:o=100,...c}){const s=r.useMemo(()=>Array.isArray(e)?e:Array.isArray(i)?i:[l,o],[e,i,l,o]);return r.createElement(a.Root,{"data-slot":"slider",defaultValue:i,value:e,min:l,max:o,className:n.cn("lib:relative lib:flex lib:w-full lib:touch-none lib:items-center lib:select-none data-[disabled]:lib:opacity-50 data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:min-h-44 data-[orientation=vertical]:lib:w-auto data-[orientation=vertical]:lib:flex-col",t),...c},r.createElement(a.Track,{"data-slot":"slider-track",className:n.cn("lib:bg-muted lib:relative lib:grow lib:overflow-hidden lib:rounded-full data-[orientation=horizontal]:lib:h-1.5 data-[orientation=horizontal]:lib:w-full data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:w-1.5")},r.createElement(a.Range,{"data-slot":"slider-range",className:n.cn("lib:bg-primary lib:absolute data-[orientation=horizontal]:lib:h-full data-[orientation=vertical]:lib:w-full")})),Array.from({length:s.length},(g,d)=>r.createElement(a.Thumb,{"data-slot":"slider-thumb",key:d,className:"lib:border-primary lib:bg-background lib:ring-ring/50 lib:block lib:size-4 lib:shrink-0 lib:rounded-full lib:border lib:shadow-sm lib:transition-[color,box-shadow] hover:lib:ring-4 focus-visible:lib:ring-4 focus-visible:lib:outline-hidden disabled:lib:pointer-events-none disabled:lib:opacity-50"})))}exports.Slider=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),t=require("next-themes"),s=require("sonner"),n=({...e})=>{const{theme:r="system"}=t.useTheme();return o.jsxRuntimeExports.jsx(s.Toaster,{theme:r,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};exports.Toaster=n; diff --git a/dist/index.cjs45.js b/dist/index.cjs45.js index 41868bdd..42f22fcc 100644 --- a/dist/index.cjs45.js +++ b/dist/index.cjs45.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("next-themes"),t=require("sonner"),s=({...e})=>{const{theme:r="system"}=o.useTheme();return React.createElement(t.Toaster,{theme:r,className:"lib:toaster lib:group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};exports.Toaster=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),c=require("@radix-ui/react-switch"),i=require("./index.cjs65.js");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const s=o(c);function d({className:e,...t}){return a.jsxRuntimeExports.jsx(s.Root,{"data-slot":"switch",className:i.cn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:a.jsxRuntimeExports.jsx(s.Thumb,{"data-slot":"switch-thumb",className:i.cn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}exports.Switch=d; diff --git a/dist/index.cjs46.js b/dist/index.cjs46.js index 2e1fe50f..1a12c8f6 100644 --- a/dist/index.cjs46.js +++ b/dist/index.cjs46.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),o=require("@radix-ui/react-switch"),a=require("./index.cjs54.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const l=c(b),n=c(o);function s({className:e,...t}){return l.createElement(n.Root,{"data-slot":"switch",className:a.cn("lib:peer data-[state=checked]:lib:bg-primary data-[state=unchecked]:lib:bg-input focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 dark:data-[state=unchecked]:lib:bg-input/80 lib:inline-flex lib:h-[1.15rem] lib:w-8 lib:shrink-0 lib:items-center lib:rounded-full lib:border lib:border-transparent lib:shadow-xs lib:transition-all lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50",e),...t},l.createElement(n.Thumb,{"data-slot":"switch-thumb",className:a.cn("lib:bg-background dark:data-[state=unchecked]:lib:bg-foreground dark:data-[state=checked]:lib:bg-primary-foreground lib:pointer-events-none lib:block lib:size-4 lib:rounded-full lib:ring-0 lib:transition-transform data-[state=checked]:lib:translate-x-[calc(100%-2px)] data-[state=unchecked]:lib:translate-x-0")}))}exports.Switch=s; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),o=require("./index.cjs65.js");function l({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:a.jsxRuntimeExports.jsx("table",{"data-slot":"table",className:o.cn("w-full caption-bottom text-sm",t),...e})})}function r({className:t,...e}){return a.jsxRuntimeExports.jsx("thead",{"data-slot":"table-header",className:o.cn("[&_tr]:border-b",t),...e})}function s({className:t,...e}){return a.jsxRuntimeExports.jsx("tbody",{"data-slot":"table-body",className:o.cn("[&_tr:last-child]:border-0",t),...e})}function n({className:t,...e}){return a.jsxRuntimeExports.jsx("tfoot",{"data-slot":"table-footer",className:o.cn("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",t),...e})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx("tr",{"data-slot":"table-row",className:o.cn("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx("th",{"data-slot":"table-head",className:o.cn("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function d({className:t,...e}){return a.jsxRuntimeExports.jsx("td",{"data-slot":"table-cell",className:o.cn("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),...e})}function i({className:t,...e}){return a.jsxRuntimeExports.jsx("caption",{"data-slot":"table-caption",className:o.cn("text-muted-foreground mt-4 text-sm",t),...e})}exports.Table=l;exports.TableBody=s;exports.TableCaption=i;exports.TableCell=d;exports.TableFooter=n;exports.TableHead=b;exports.TableHeader=r;exports.TableRow=c; diff --git a/dist/index.cjs47.js b/dist/index.cjs47.js index 3b89a918..50602666 100644 --- a/dist/index.cjs47.js +++ b/dist/index.cjs47.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),a=require("./index.cjs54.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=n(b);function i({className:e,...t}){return l.createElement("div",{"data-slot":"table-container",className:"lib:relative lib:w-full lib:overflow-x-auto"},l.createElement("table",{"data-slot":"table",className:a.cn("lib:w-full lib:caption-bottom lib:text-sm",e),...t}))}function c({className:e,...t}){return l.createElement("thead",{"data-slot":"table-header",className:a.cn("[&_tr]:lib:border-b",e),...t})}function s({className:e,...t}){return l.createElement("tbody",{"data-slot":"table-body",className:a.cn("[&_tr:last-child]:lib:border-0",e),...t})}function d({className:e,...t}){return l.createElement("tfoot",{"data-slot":"table-footer",className:a.cn("lib:bg-muted/50 lib:border-t lib:font-medium [&>tr]:last:lib:border-b-0",e),...t})}function u({className:e,...t}){return l.createElement("tr",{"data-slot":"table-row",className:a.cn("hover:lib:bg-muted/50 data-[state=selected]:lib:bg-muted lib:border-b lib:transition-colors",e),...t})}function m({className:e,...t}){return l.createElement("th",{"data-slot":"table-head",className:a.cn("lib:text-foreground lib:h-10 lib:px-2 lib:text-left lib:align-middle lib:font-medium lib:whitespace-nowrap [&:has([role=checkbox])]:lib:pr-0 [&>[role=checkbox]]:lib:translate-y-[2px]",e),...t})}function f({className:e,...t}){return l.createElement("td",{"data-slot":"table-cell",className:a.cn("lib:p-2 lib:align-middle lib:whitespace-nowrap [&:has([role=checkbox])]:lib:pr-0 [&>[role=checkbox]]:lib:translate-y-[2px]",e),...t})}function p({className:e,...t}){return l.createElement("caption",{"data-slot":"table-caption",className:a.cn("lib:text-muted-foreground lib:mt-4 lib:text-sm",e),...t})}exports.Table=i;exports.TableBody=s;exports.TableCaption=p;exports.TableCell=f;exports.TableFooter=d;exports.TableHead=m;exports.TableHeader=c;exports.TableRow=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index.cjs64.js"),o=require("@radix-ui/react-tabs"),r=require("./index.cjs65.js");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const i=c(o);function u({className:t,...e}){return n.jsxRuntimeExports.jsx(i.Root,{"data-slot":"tabs",className:r.cn("flex flex-col gap-2",t),...e})}function l({className:t,...e}){return n.jsxRuntimeExports.jsx(i.List,{"data-slot":"tabs-list",className:r.cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",t),...e})}function d({className:t,...e}){return n.jsxRuntimeExports.jsx(i.Trigger,{"data-slot":"tabs-trigger",className:r.cn("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...e})}function b({className:t,...e}){return n.jsxRuntimeExports.jsx(i.Content,{"data-slot":"tabs-content",className:r.cn("flex-1 outline-none",t),...e})}exports.Tabs=u;exports.TabsContent=b;exports.TabsList=l;exports.TabsTrigger=d; diff --git a/dist/index.cjs48.js b/dist/index.cjs48.js index d5fbe3ea..36157d12 100644 --- a/dist/index.cjs48.js +++ b/dist/index.cjs48.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),o=require("@radix-ui/react-tabs"),l=require("./index.cjs54.js");function b(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const n=b(s),a=b(o);function c({className:e,...t}){return n.createElement(a.Root,{"data-slot":"tabs",className:l.cn("lib:flex lib:flex-col lib:gap-2",e),...t})}function u({className:e,...t}){return n.createElement(a.List,{"data-slot":"tabs-list",className:l.cn("lib:bg-muted lib:text-muted-foreground lib:inline-flex lib:h-9 lib:w-fit lib:items-center lib:justify-center lib:rounded-lg lib:p-[3px]",e),...t})}function d({className:e,...t}){return n.createElement(a.Trigger,{"data-slot":"tabs-trigger",className:l.cn("data-[state=active]:lib:bg-background dark:data-[state=active]:lib:text-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:outline-ring dark:data-[state=active]:lib:border-input dark:data-[state=active]:lib:bg-input/30 lib:text-foreground dark:lib:text-muted-foreground lib:inline-flex lib:h-[calc(100%-1px)] lib:flex-1 lib:items-center lib:justify-center lib:gap-1.5 lib:rounded-md lib:border lib:border-transparent lib:px-2 lib:py-1 lib:text-sm lib:font-medium lib:whitespace-nowrap lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1 disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=active]:lib:shadow-sm [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4",e),...t})}function g({className:e,...t}){return n.createElement(a.Content,{"data-slot":"tabs-content",className:l.cn("lib:flex-1 lib:outline-none",e),...t})}exports.Tabs=c;exports.TabsContent=g;exports.TabsList=u;exports.TabsTrigger=d; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs64.js"),i=require("./index.cjs65.js");function a({className:e,...r}){return t.jsxRuntimeExports.jsx("textarea",{"data-slot":"textarea",className:i.cn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...r})}exports.Textarea=a; diff --git a/dist/index.cjs49.js b/dist/index.cjs49.js index 39386a82..6334c325 100644 --- a/dist/index.cjs49.js +++ b/dist/index.cjs49.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),a=require("./index.cjs54.js");function n(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(i,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return i.default=e,Object.freeze(i)}const b=n(l);function o({className:e,...i}){return b.createElement("textarea",{"data-slot":"textarea",className:a.cn("lib:border-input placeholder:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:flex lib:field-sizing-content lib:min-h-16 lib:w-full lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm",e),...i})}exports.Textarea=o; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),g=require("react"),m=require("@radix-ui/react-toggle-group"),s=require("./index.cjs65.js"),p=require("./index.cjs50.js");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const l=u(g),c=u(m),d=l.createContext({size:"default",variant:"default"});function f({className:t,variant:o,size:e,children:r,...a}){return i.jsxRuntimeExports.jsx(c.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:s.cn("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",t),...a,children:i.jsxRuntimeExports.jsx(d.Provider,{value:{variant:o,size:e},children:r})})}function x({className:t,children:o,variant:e,size:r,...a}){const n=l.useContext(d);return i.jsxRuntimeExports.jsx(c.Item,{"data-slot":"toggle-group-item","data-variant":n.variant||e,"data-size":n.size||r,className:s.cn(p.toggleVariants({variant:n.variant||e,size:n.size||r}),"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",t),...a,children:o})}exports.ToggleGroup=f;exports.ToggleGroupItem=x; diff --git a/dist/index.cjs5.js b/dist/index.cjs5.js index 51715e0a..5b22c924 100644 --- a/dist/index.cjs5.js +++ b/dist/index.cjs5.js @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./index.cjs4.js"),e=require("react"),u=require("./index.cjs53.js"),l=({children:r,defaultScheme:t})=>e.createElement(o.AppThemeProvider,{defaultScheme:t||void 0},e.createElement(u.default,null,r));exports.default=l; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),n=require("react"),t=n.createContext(void 0),i=({linkComponent:e,children:o})=>r.jsxRuntimeExports.jsx(t.Provider,{value:e,children:o}),s=()=>{const e=n.useContext(t);if(!e)throw new Error("useLinkComponent must be used within a LinkProvider");return e};exports.LinkContext=t;exports.LinkProvider=i;exports.useLinkComponent=s; diff --git a/dist/index.cjs50.js b/dist/index.cjs50.js index 0c30822e..5f8f3c3f 100644 --- a/dist/index.cjs50.js +++ b/dist/index.cjs50.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),d=require("@radix-ui/react-toggle-group"),l=require("./index.cjs54.js"),b=require("./index.cjs51.js");function u(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const i=u(g),s=u(d),c=i.createContext({size:"default",variant:"default"});function m({className:t,variant:o,size:e,children:r,...n}){return i.createElement(s.Root,{"data-slot":"toggle-group","data-variant":o,"data-size":e,className:l.cn("lib:group/toggle-group lib:flex lib:w-fit lib:items-center lib:rounded-md data-[variant=outline]:lib:shadow-xs",t),...n},i.createElement(c.Provider,{value:{variant:o,size:e}},r))}function f({className:t,children:o,variant:e,size:r,...n}){const a=i.useContext(c);return i.createElement(s.Item,{"data-slot":"toggle-group-item","data-variant":a.variant||e,"data-size":a.size||r,className:l.cn(b.toggleVariants({variant:a.variant||e,size:a.size||r}),"lib:min-w-0 lib:flex-1 lib:shrink-0 lib:rounded-none lib:shadow-none first:lib:rounded-l-md last:lib:rounded-r-md focus:lib:z-10 focus-visible:lib:z-10 data-[variant=outline]:lib:border-l-0 data-[variant=outline]:first:lib:border-l",t),...n},o)}exports.ToggleGroup=m;exports.ToggleGroupItem=f; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),o=require("@radix-ui/react-toggle"),s=require("class-variance-authority"),c=require("./index.cjs65.js");function u(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const l=u(o),i=s.cva("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-2 min-w-9",sm:"h-8 px-1.5 min-w-8",lg:"h-10 px-2.5 min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:n,size:t,...r}){return a.jsxRuntimeExports.jsx(l.Root,{"data-slot":"toggle",className:c.cn(i({variant:n,size:t,className:e})),...r})}exports.Toggle=d;exports.toggleVariants=i; diff --git a/dist/index.cjs51.js b/dist/index.cjs51.js index 6d00c703..bab3ef0e 100644 --- a/dist/index.cjs51.js +++ b/dist/index.cjs51.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),o=require("@radix-ui/react-toggle"),b=require("class-variance-authority"),s=require("./index.cjs54.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const c=l(a),u=l(o),r=b.cva("lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:rounded-md lib:text-sm lib:font-medium hover:lib:bg-muted hover:lib:text-muted-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=on]:lib:bg-accent data-[state=on]:lib:text-accent-foreground [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 [&_svg]:lib:shrink-0 focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] lib:outline-none lib:transition-[color,box-shadow] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:whitespace-nowrap",{variants:{variant:{default:"lib:bg-transparent",outline:"lib:border lib:border-input lib:bg-transparent lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground"},size:{default:"lib:h-9 lib:px-2 lib:min-w-9",sm:"lib:h-8 lib:px-1.5 lib:min-w-8",lg:"lib:h-10 lib:px-2.5 lib:min-w-10"}},defaultVariants:{variant:"default",size:"default"}});function d({className:e,variant:t,size:i,...n}){return c.createElement(u.Root,{"data-slot":"toggle",className:s.cn(r({variant:t,size:i,className:e})),...n})}exports.Toggle=d;exports.toggleVariants=r; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs64.js"),a=require("@radix-ui/react-tooltip"),l=require("./index.cjs65.js");function d(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(o,i,n.get?n:{enumerable:!0,get:()=>t[i]})}}return o.default=t,Object.freeze(o)}const r=d(a);function s({delayDuration:t=0,...o}){return e.jsxRuntimeExports.jsx(r.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...o})}function p({...t}){return e.jsxRuntimeExports.jsx(s,{children:e.jsxRuntimeExports.jsx(r.Root,{"data-slot":"tooltip",...t})})}function u({...t}){return e.jsxRuntimeExports.jsx(r.Trigger,{"data-slot":"tooltip-trigger",...t})}function c({className:t,sideOffset:o=0,children:i,...n}){return e.jsxRuntimeExports.jsx(r.Portal,{children:e.jsxRuntimeExports.jsxs(r.Content,{"data-slot":"tooltip-content",sideOffset:o,className:l.cn("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...n,children:[i,e.jsxRuntimeExports.jsx(r.Arrow,{className:"bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}exports.Tooltip=p;exports.TooltipContent=c;exports.TooltipProvider=s;exports.TooltipTrigger=u; diff --git a/dist/index.cjs52.js b/dist/index.cjs52.js index 2191c4a2..662eff7d 100644 --- a/dist/index.cjs52.js +++ b/dist/index.cjs52.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),d=require("@radix-ui/react-tooltip"),s=require("./index.cjs54.js");function a(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,r.get?r:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const i=a(c),l=a(d);function n({delayDuration:t=0,...e}){return i.createElement(l.Provider,{"data-slot":"tooltip-provider",delayDuration:t,...e})}function b({...t}){return i.createElement(n,null,i.createElement(l.Root,{"data-slot":"tooltip",...t}))}function p({...t}){return i.createElement(l.Trigger,{"data-slot":"tooltip-trigger",...t})}function m({className:t,sideOffset:e=0,children:o,...r}){return i.createElement(l.Portal,null,i.createElement(l.Content,{"data-slot":"tooltip-content",sideOffset:e,className:s.cn("lib:bg-primary lib:text-primary-foreground lib:animate-in lib:fade-in-0 lib:zoom-in-95 data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=closed]:lib:zoom-out-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-fit lib:origin-(--radix-tooltip-content-transform-origin) lib:rounded-md lib:px-3 lib:py-1.5 lib:text-xs lib:text-balance",t),...r},o,i.createElement(l.Arrow,{className:"lib:bg-primary lib:fill-primary lib:z-50 lib:size-2.5 lib:translate-y-[calc(-50%_-_2px)] lib:rotate-45 lib:rounded-[2px]"})))}exports.Tooltip=b;exports.TooltipContent=m;exports.TooltipProvider=n;exports.TooltipTrigger=p; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),t=require("./index.cjs41.js"),n=require("./index.cjs53.js"),a=require("./index.cjs4.js");function o({userInfo:r,appInfo:s,signOutFn:i,children:u}){return e.jsxRuntimeExports.jsx(a.default,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,children:e.jsxRuntimeExports.jsxs(t.SidebarProvider,{defaultOpen:!0,children:[e.jsxRuntimeExports.jsx(n.default,{userInfo:r,appInfo:s,signOutFn:i}),e.jsxRuntimeExports.jsxs("main",{className:"w-fit",children:[e.jsxRuntimeExports.jsx(t.SidebarTrigger,{}),u]})]})})}exports.default=o; diff --git a/dist/index.cjs53.js b/dist/index.cjs53.js index 6be09a3b..a9283f09 100644 --- a/dist/index.cjs53.js +++ b/dist/index.cjs53.js @@ -1 +1 @@ -"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react-loading-skeleton"),l=require("./index.cjs4.js");;/* empty css */const c=({children:e,baseColor:t,highlightColor:o})=>{localStorage.getItem("theme");const{theme:n}=l.default();return React.createElement(r.SkeletonTheme,{baseColor:t||"#000",highlightColor:o||"#c9c9c9"},e)};exports.default=c; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),b=require("react"),t=require("./index.cjs41.js"),n=require("lucide-react"),N=require("./index.cjs85.js"),j=require("./index.cjs86.js"),g=require("./index.cjs10.js"),y=require("@radix-ui/react-avatar"),B=require("./index.cjs87.js"),P=require("./index.cjs5.js"),U=(c,r)=>[{section:"Projects",sectionItems:[{title:"All Projects",url:"/projects",icon:n.SquareTerminal}]},{section:"Organizations",sectionItems:[{title:"All Organizations",url:"/organizations",icon:n.BriefcaseBusiness},{title:"All Deployments",url:"/deployments",icon:n.ServerCog}]},{section:"Settings",sectionItems:[{title:"SSH Keys",url:"/settings",icon:n.KeyRound},{title:"My Account",url:`${c}/account`,target:"blank",onClick:r,icon:n.UserRoundCog}]}];function L({userInfo:c,appInfo:r,currentPath:m,signOutFn:l,...E}){const v=P.useLinkComponent(),{firstName:i,lastName:a,image:p,email:o}=c,S=!!p,u=!!(i&&a),h=u?j.genAvatarBackground(i.charAt(0),a.charAt(0)):j.genAvatarBackground(o.charAt(0),o.charAt(1)),A=u?i.charAt(0).toUpperCase()+a.charAt(0).toUpperCase():o.charAt(0).toUpperCase(),C=S?e.jsxRuntimeExports.jsxs(g.Avatar,{children:[e.jsxRuntimeExports.jsx(g.AvatarImage,{src:p,alt:"user_avatar"}),e.jsxRuntimeExports.jsx(y.AvatarFallback,{children:"Avatar"})]}):e.jsxRuntimeExports.jsx(B.default,{bgColor:h.bgColor,textColor:h.textColor,children:A}),k=u?e.jsxRuntimeExports.jsx("span",{className:"user-name",children:`${i} ${a}`}):e.jsxRuntimeExports.jsx("span",{className:"user-name",children:o}),x=b.useMemo(()=>U(r.kcUrl,l),[r.kcUrl,l]),M=b.useMemo(()=>j.getCurrentPath(x,m||""),[x,m]),f={...r,signOutFn:l};return e.jsxRuntimeExports.jsxs(t.Sidebar,{variant:"sidebar",collapsible:"icon",...E,children:[e.jsxRuntimeExports.jsx(t.SidebarHeader,{children:e.jsxRuntimeExports.jsx(t.SidebarMenu,{children:e.jsxRuntimeExports.jsx(t.SidebarMenuItem,{children:e.jsxRuntimeExports.jsx(N.default,{...f})})})}),e.jsxRuntimeExports.jsx(t.SidebarContent,{children:x.map(d=>e.jsxRuntimeExports.jsxs(t.SidebarGroup,{children:[e.jsxRuntimeExports.jsx(t.SidebarGroupLabel,{children:d.section}),e.jsxRuntimeExports.jsx(t.SidebarGroupContent,{className:"list-none",children:d.sectionItems.map(s=>{const q=s.target==="blank",R=s.onClick;return e.jsxRuntimeExports.jsx(t.SidebarMenuItem,{children:e.jsxRuntimeExports.jsx(t.SidebarMenuButton,{asChild:!0,isActive:M===s.url,children:e.jsxRuntimeExports.jsxs(v,{onClick:async()=>{R&&await R()},href:s.url,target:q?"_blank":"_self",children:[e.jsxRuntimeExports.jsx(s.icon,{}),e.jsxRuntimeExports.jsx("span",{children:s.title})]})})},s.title)})})]},d.section))}),e.jsxRuntimeExports.jsx(t.SidebarFooter,{children:e.jsxRuntimeExports.jsx(t.SidebarMenu,{children:e.jsxRuntimeExports.jsx(t.SidebarMenuItem,{children:e.jsxRuntimeExports.jsxs(t.SidebarMenuButton,{size:"lg",children:[C,e.jsxRuntimeExports.jsx("div",{className:"grid flex-1 text-left text-sm leading-tight",children:e.jsxRuntimeExports.jsx("span",{className:"truncate font-light",children:k})})]})})})})]})}exports.default=L; diff --git a/dist/index.cjs54.js b/dist/index.cjs54.js index 8ac276b6..68267287 100644 --- a/dist/index.cjs54.js +++ b/dist/index.cjs54.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("clsx"),t=require("tailwind-merge");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),l=require("./index.cjs18.js"),x=require("./index.cjs29.js");function s({label:r,id:t,...i}){return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxRuntimeExports.jsx(l.Checkbox,{id:t,...i}),e.jsxRuntimeExports.jsx(x.Label,{htmlFor:t,children:r})]})})}s.displayName="CheckboxWithLabel";exports.default=s; diff --git a/dist/index.cjs55.js b/dist/index.cjs55.js index ac97fd4b..74803fab 100644 --- a/dist/index.cjs55.js +++ b/dist/index.cjs55.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=s(c),i=768;function a(){const[e,n]=r.useState(void 0);return r.useEffect(()=>{const t=window.matchMedia(`(max-width: ${i-1}px)`),o=()=>{n(window.innerWidtht.removeEventListener("change",o)},[]),!!e}exports.useIsMobile=a; +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs64.js"),a=require("./index.cjs15.js"),i=require("class-variance-authority"),l=require("./index.cjs65.js"),r=i.cva("max-w-[160px] border rounded-lg flex flex-col justify-center",{variants:{type:{default:"h-[108px]",withIcon:"h-[125px] gap-2 p-6",stat:"w-[370px] max-w-[370px] h-[140px] gap-3 p-5"}},defaultVariants:{type:"default"}});function x({type:e="default",title:n,content:s}){return t.jsxRuntimeExports.jsxs(a.Card,{className:l.cn(r({type:e})),children:[t.jsxRuntimeExports.jsx(a.CardHeader,{children:t.jsxRuntimeExports.jsx(a.CardTitle,{className:e==="stat"?"font-sans font-light text-sm leading-[1.4] tracking-normal":"font-sans font-medium text-sm leading-[1.5] tracking-normal",children:n})}),t.jsxRuntimeExports.jsx(a.CardContent,{children:e==="stat"?t.jsxRuntimeExports.jsx("section",{className:"font-sans font-normal leading-[1.75] tracking-normal",children:s}):e==="default"?t.jsxRuntimeExports.jsx("p",{className:"text-2xl leading-normal font-bold ml-auto w-max",children:s}):t.jsxRuntimeExports.jsx(t.jsxRuntimeExports.Fragment,{children:s})})]})}exports.cardVariants=r;exports.default=x; diff --git a/dist/index.cjs56.js b/dist/index.cjs56.js new file mode 100644 index 00000000..ff55e5bd --- /dev/null +++ b/dist/index.cjs56.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index.cjs64.js"),l=require("react"),u=require("./index.cjs55.js"),m=require("class-variance-authority"),d=m.cva("font-sans font-normal text-lg leading-normal tracking-normal text-right",{variants:{transform:{lowercase:"lowercase",capitalize:"capitalize",none:""}},defaultVariants:{transform:"none"}});function o(t){return t.toLowerCase().replace(/\s+/g,"-")}const f=({title:t,value:e,lowercaseValue:n,capitalizeValue:s})=>{const i=l.isValidElement(e);let a="";n&&(a="lowercase"),s&&(a="capitalize");const c=i?r.jsxRuntimeExports.jsx("div",{className:a,"data-cy":o(t),children:e}):r.jsxRuntimeExports.jsx("span",{className:d({transform:n?"lowercase":s?"capitalize":"none"}),"data-cy":o(t),children:e});return r.jsxRuntimeExports.jsx(u.default,{type:"stat",title:t,content:c})};exports.default=f; diff --git a/dist/index.cjs57.js b/dist/index.cjs57.js new file mode 100644 index 00000000..6c2b96af --- /dev/null +++ b/dist/index.cjs57.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("./index.cjs64.js"),i=require("./index.cjs55.js");function o({name:e,category:s,value:n,img:r}){const a=t.jsxRuntimeExports.jsxs("section",{className:"flex-row justify-items-end font-sans font-normal text-xs leading-[1.25] tracking-normal text-right",children:[r,t.jsxRuntimeExports.jsx("span",{className:"name",children:e}),t.jsxRuntimeExports.jsx("br",{}),t.jsxRuntimeExports.jsx("span",{className:"value",children:n})]});return t.jsxRuntimeExports.jsx(i.default,{type:"withIcon",title:s,content:a})}exports.default=o; diff --git a/dist/index.cjs58.js b/dist/index.cjs58.js new file mode 100644 index 00000000..971d2da0 --- /dev/null +++ b/dist/index.cjs58.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),x=require("react"),t=require("lucide-react"),b=require("class-variance-authority"),s=require("./index.cjs51.js"),y=b.cva("truncate transition-all duration-300",{variants:{type:{visible:"",hidden:"blur-sm select-none hover:blur-0 hover:select-text",hiddenWithIcon:"",alwaysHidden:"blur-sm select-none"},unblur:{true:"!blur-0 !select-text",false:""}},compoundVariants:[{type:"hiddenWithIcon",unblur:!1,className:"blur-sm select-none"},{type:"hiddenWithIcon",unblur:!0,className:"!blur-0 !select-text"}],defaultVariants:{type:"visible",unblur:!1}}),f=({text:r,width:n,fontSize:m="14px",type:a="visible",withToolTip:d=!1,iconOnly:l=!1})=>{const[p,u]=x.useState(!1),[o,h]=x.useState(!1),j=()=>{navigator.clipboard.writeText(r.toString())},g=()=>{j(),u(!0),setTimeout(()=>u(!1),3500)},i=()=>h(!o),c={maxWidth:n?typeof n=="number"?`${n}px`:n:void 0,fontSize:m,width:l?"max-content":void 0};return e.jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-4 min-w-max justify-between",style:c,children:[!l&&e.jsxRuntimeExports.jsx("span",{className:y({type:a,unblur:o}),style:{maxWidth:c.maxWidth},children:d?e.jsxRuntimeExports.jsxs(s.Tooltip,{children:[e.jsxRuntimeExports.jsx(s.TooltipTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx("span",{className:"truncate",children:r})}),e.jsxRuntimeExports.jsx(s.TooltipContent,{side:"bottom",children:e.jsxRuntimeExports.jsx("p",{children:r})})]}):r}),e.jsxRuntimeExports.jsx("div",{className:"flex items-center gap-3",children:p?e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxRuntimeExports.jsxs(s.Tooltip,{children:[e.jsxRuntimeExports.jsx(s.TooltipTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(t.Check,{className:"w-4 h-4 text-green-500"})}),e.jsxRuntimeExports.jsx(s.TooltipContent,{children:e.jsxRuntimeExports.jsx("span",{className:"truncate",children:"Copied!"})})]}),a==="hiddenWithIcon"&&(o?e.jsxRuntimeExports.jsx(t.EyeOff,{className:"w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300",onClick:i}):e.jsxRuntimeExports.jsx(t.Eye,{className:"w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300",onClick:i}))]}):e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(t.Copy,{className:"w-4 h-4 text-muted-foreground hover:bg-gray-200 active:bg-gray-300 cursor-pointer","data-cy":"copy-button",onClick:g}),a==="hiddenWithIcon"&&(o?e.jsxRuntimeExports.jsx(t.EyeOff,{className:"w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300",onClick:i}):e.jsxRuntimeExports.jsx(t.Eye,{className:"w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300",onClick:i}))]})})]})};exports.default=f; diff --git a/dist/index.cjs59.js b/dist/index.cjs59.js new file mode 100644 index 00000000..1677e2e4 --- /dev/null +++ b/dist/index.cjs59.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),h=require("react"),s=require("./index.cjs12.js"),R=require("./index.cjs58.js"),g=require("lucide-react"),b={default:["","project","environment"],orgs:["","organization","project"]},d=({activeKey:a,items:l,type:r,currentSlug:i})=>{const n=r&&["default","orgs"].includes(r)?[...b[r]]:null;return i&&n&&(n[2]=i),e.jsxRuntimeExports.jsx(s.Breadcrumb,{className:"mb-8 text-sm","data-cy":"page-title",children:e.jsxRuntimeExports.jsx(s.BreadcrumbList,{children:l.map((t,o)=>{const x="key"in t?t.key:o,p=a&&a===x,c=n?.[o]??null,m="copyText"in t&&t.copyText&&c,u=t.copyText&&t.copyText.length<15&&c==="organization"?"Org":c,j=e.jsxRuntimeExports.jsxs("div",{className:"relative flex flex-col items-start group",children:[u&&e.jsxRuntimeExports.jsx("span",{className:"absolute -top-3 left-0 text-[11px] font-semibold uppercase text-primary pointer-events-none select-none",children:u}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-1",children:[e.jsxRuntimeExports.jsx("span",{className:p?"text-foreground":"text-muted-foreground",children:"navOnClick"in t&&t.navOnClick?e.jsxRuntimeExports.jsx("span",{onClick:t.navOnClick,className:"hover:underline cursor-pointer",children:t.title}):t.title}),m&&e.jsxRuntimeExports.jsx("div",{className:"text-primary scale-90 ml-1",children:e.jsxRuntimeExports.jsx(R.default,{text:t.copyText,iconOnly:!0})})]})]});return e.jsxRuntimeExports.jsxs(h.Fragment,{children:[e.jsxRuntimeExports.jsx(s.BreadcrumbItem,{children:e.jsxRuntimeExports.jsx(s.BreadcrumbLink,{asChild:!0,children:j})}),o!==l.length-1&&e.jsxRuntimeExports.jsx(s.BreadcrumbSeparator,{children:e.jsxRuntimeExports.jsx(g.ChevronRight,{className:"w-4 h-4 text-muted-foreground"})})]},x)})})})};d.displayName="Breadcrumb";exports.default=d; diff --git a/dist/index.cjs6.js b/dist/index.cjs6.js index 0d4cdd56..7502b90d 100644 --- a/dist/index.cjs6.js +++ b/dist/index.cjs6.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),n=t.createContext(void 0),r=({linkComponent:e,children:o})=>t.createElement(n.Provider,{value:e},o),i=()=>{const e=t.useContext(n);if(!e)throw new Error("useLinkComponent must be used within a LinkProvider");return e};exports.LinkContext=n;exports.LinkProvider=r;exports.useLinkComponent=i; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index.cjs64.js"),c=require("@radix-ui/react-accordion"),a=require("lucide-react"),i=require("./index.cjs65.js");function d(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const r=d(c);function u({...e}){return o.jsxRuntimeExports.jsx(r.Root,{"data-slot":"accordion",...e})}function l({className:e,...t}){return o.jsxRuntimeExports.jsx(r.Item,{"data-slot":"accordion-item",className:i.cn("border-b last:border-b-0",e),...t})}function m({className:e,children:t,...n}){return o.jsxRuntimeExports.jsx(r.Header,{className:"flex",children:o.jsxRuntimeExports.jsxs(r.Trigger,{"data-slot":"accordion-trigger",className:i.cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",e),...n,children:[t,o.jsxRuntimeExports.jsx(a.ChevronDownIcon,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function x({className:e,children:t,...n}){return o.jsxRuntimeExports.jsx(r.Content,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...n,children:o.jsxRuntimeExports.jsx("div",{className:i.cn("pt-0 pb-4",e),children:t})})}exports.Accordion=u;exports.AccordionContent=x;exports.AccordionItem=l;exports.AccordionTrigger=m; diff --git a/dist/index.cjs60.js b/dist/index.cjs60.js new file mode 100644 index 00000000..bdbfcfa3 --- /dev/null +++ b/dist/index.cjs60.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),i=require("./index.cjs7.js");function u({title:r,message:o,cancelText:s,onCancel:t,confirmText:x,onConfirm:l,...n}){const a="rest"in arguments&&"open"in n&&"onOpenChange"in n?{open:n.open,onOpenChange:n.onOpenChange}:{};return e.jsxRuntimeExports.jsxs(i.AlertDialog,{...a,children:[e.jsxRuntimeExports.jsx(i.AlertDialogTrigger,{asChild:!0,children:"children"in n?n.children:null}),e.jsxRuntimeExports.jsxs(i.AlertDialogContent,{children:[e.jsxRuntimeExports.jsxs(i.AlertDialogHeader,{children:[e.jsxRuntimeExports.jsx(i.AlertDialogTitle,{children:r}),e.jsxRuntimeExports.jsx(i.AlertDialogDescription,{children:o})]}),e.jsxRuntimeExports.jsxs(i.AlertDialogFooter,{children:[e.jsxRuntimeExports.jsx(i.AlertDialogCancel,{onClick:()=>{t&&t()},children:s??"Cancel"}),e.jsxRuntimeExports.jsx(i.AlertDialogAction,{onClick:()=>{l&&l()},children:x??"Continue"})]})]})]})}exports.default=u; diff --git a/dist/index.cjs61.js b/dist/index.cjs61.js new file mode 100644 index 00000000..e304841f --- /dev/null +++ b/dist/index.cjs61.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),t=require("lucide-react"),r=require("./index.cjs26.js"),s=require("./index.cjs55.js"),a=i=>{if(i.skeleton)return e.jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4 animate-pulse",children:Array.from({length:5}).map((c,d)=>e.jsxRuntimeExports.jsx("div",{className:"h-[80px] rounded-xl bg-muted"},d))});const{problems:m,critical:n,high:x,medium:o,low:l}=i,u=()=>n>=1?e.jsxRuntimeExports.jsx(t.Frown,{className:"h-6 w-6 text-rose-500"}):x>=1?e.jsxRuntimeExports.jsx(t.Meh,{className:"h-6 w-6 text-orange-500"}):o>=1||l>=1?e.jsxRuntimeExports.jsx(t.Smile,{className:"h-6 w-6 text-green-500"}):e.jsxRuntimeExports.jsx(t.Smile,{className:"h-6 w-6 text-green-500"});return e.jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3 text-center mx-auto w-fit",children:[e.jsxRuntimeExports.jsx("div",{className:"shrink-0",children:u()}),e.jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2 text-xl font-semibold",children:[e.jsxRuntimeExports.jsx("h2",{children:"At a glance"}),e.jsxRuntimeExports.jsxs(r.HoverCard,{children:[e.jsxRuntimeExports.jsx(r.HoverCardTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(t.HelpCircle,{className:"h-4 w-4 text-muted-foreground cursor-pointer"})}),e.jsxRuntimeExports.jsx(r.HoverCardContent,{className:"w-64 text-sm text-muted-foreground",children:"The summary of all the problems is shown here."})]})]})]}),e.jsxRuntimeExports.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4",children:[e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"Problems",content:m}),e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"Critical",content:n}),e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"High",content:x}),e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"Medium",content:o}),e.jsxRuntimeExports.jsx(s.default,{type:"default",title:"Low",content:l})]})]})};a.displayName="LagoonProblemsOverview";exports.default=a; diff --git a/dist/index.cjs62.js b/dist/index.cjs62.js new file mode 100644 index 00000000..9a62cf3c --- /dev/null +++ b/dist/index.cjs62.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),t=require("./index.cjs38.js");function a(r){return Array.isArray(r)&&"options"in r[0]}function c({placeholder:r,options:s,disabled:n,...i}){return e.jsxRuntimeExports.jsxs(t.Select,{disabled:n,...i,children:[e.jsxRuntimeExports.jsx(t.SelectTrigger,{className:"w-[266px]",children:e.jsxRuntimeExports.jsx(t.SelectValue,{placeholder:r||"Make a selection"})}),!n&&s&&e.jsxRuntimeExports.jsx(t.SelectContent,{children:a(s)?s.map(l=>e.jsxRuntimeExports.jsxs(t.SelectGroup,{children:[e.jsxRuntimeExports.jsx(t.SelectLabel,{children:l.label}),l.options.map(u=>e.jsxRuntimeExports.jsx(t.SelectItem,{value:String(u.value),children:u.label},u.value))]},l.label)):s.map(l=>e.jsxRuntimeExports.jsx(t.SelectItem,{value:String(l.value),children:l.label},l.value))})]})}exports.default=c; diff --git a/dist/index.cjs63.js b/dist/index.cjs63.js new file mode 100644 index 00000000..34e84098 --- /dev/null +++ b/dist/index.cjs63.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),a=require("./index.cjs29.js"),i=require("./index.cjs28.js"),l=require("class-variance-authority"),o=l.cva("w-full rounded-lg bg-background",{variants:{hasIcon:{true:"pl-8",false:""}}});function c({label:t,placeholder:n="",icon:s,description:r,...u}){return e.jsxRuntimeExports.jsxs("div",{className:"grid w-full max-w-sm items-center gap-1.5",children:[e.jsxRuntimeExports.jsx(a.Label,{htmlFor:`${t}-input`,children:t}),e.jsxRuntimeExports.jsxs("div",{className:"relative",children:[s&&e.jsxRuntimeExports.jsx("div",{className:"absolute left-2.5 top-1.5 h-2.5 w-2.5 text-muted-foreground",children:s}),e.jsxRuntimeExports.jsx(i.Input,{className:o({hasIcon:!!s}),id:`${t}-input`,placeholder:n,...u}),r&&e.jsxRuntimeExports.jsx("p",{className:"font-sans font-normal text-sm leading-[1.5] tracking-[0%] text-muted-foreground",children:r})]})]})}exports.default=c; diff --git a/dist/index.cjs64.js b/dist/index.cjs64.js new file mode 100644 index 00000000..16620126 --- /dev/null +++ b/dist/index.cjs64.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs79.js");var t=e.__require();exports.jsxRuntimeExports=t; diff --git a/dist/index.cjs65.js b/dist/index.cjs65.js new file mode 100644 index 00000000..8ac276b6 --- /dev/null +++ b/dist/index.cjs65.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("clsx"),t=require("tailwind-merge");function n(...e){return t.twMerge(r.clsx(e))}exports.cn=n; diff --git a/dist/index.cjs66.js b/dist/index.cjs66.js new file mode 100644 index 00000000..ac97fd4b --- /dev/null +++ b/dist/index.cjs66.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=s(c),i=768;function a(){const[e,n]=r.useState(void 0);return r.useEffect(()=>{const t=window.matchMedia(`(max-width: ${i-1}px)`),o=()=>{n(window.innerWidtht.removeEventListener("change",o)},[]),!!e}exports.useIsMobile=a; diff --git a/dist/index.cjs67.js b/dist/index.cjs67.js new file mode 100644 index 00000000..08de5c9d --- /dev/null +++ b/dist/index.cjs67.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs52.js");exports.default=e.default; diff --git a/dist/index.cjs68.js b/dist/index.cjs68.js new file mode 100644 index 00000000..536c67a8 --- /dev/null +++ b/dist/index.cjs68.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs53.js");exports.default=e.default; diff --git a/dist/index.cjs69.js b/dist/index.cjs69.js new file mode 100644 index 00000000..c840c8fc --- /dev/null +++ b/dist/index.cjs69.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs54.js");exports.default=e.default; diff --git a/dist/index.cjs7.js b/dist/index.cjs7.js index 13835a71..475b1862 100644 --- a/dist/index.cjs7.js +++ b/dist/index.cjs7.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),s=require("@radix-ui/react-accordion"),b=require("lucide-react"),r=require("./index.cjs54.js");function l(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const c=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,c.get?c:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const n=l(a),o=l(s);function d({...e}){return n.createElement(o.Root,{"data-slot":"accordion",...e})}function u({className:e,...t}){return n.createElement(o.Item,{"data-slot":"accordion-item",className:r.cn("lib:border-b last:lib:border-b-0",e),...t})}function m({className:e,children:t,...i}){return n.createElement(o.Header,{className:"lib:flex"},n.createElement(o.Trigger,{"data-slot":"accordion-trigger",className:r.cn("focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 lib:flex lib:flex-1 lib:items-start lib:justify-between lib:gap-4 lib:rounded-md lib:py-4 lib:text-left lib:text-sm lib:font-medium lib:transition-all lib:outline-none hover:lib:underline focus-visible:lib:ring-[3px] disabled:lib:pointer-events-none disabled:lib:opacity-50 [&[data-state=open]>svg]:lib:rotate-180",e),...i},t,n.createElement(b.ChevronDownIcon,{className:"lib:text-muted-foreground lib:pointer-events-none lib:size-4 lib:shrink-0 lib:translate-y-0.5 lib:transition-transform lib:duration-200"})))}function f({className:e,children:t,...i}){return n.createElement(o.Content,{"data-slot":"accordion-content",className:"data-[state=closed]:lib:animate-accordion-up data-[state=open]:lib:animate-accordion-down lib:overflow-hidden lib:text-sm",...i},n.createElement("div",{className:r.cn("lib:pt-0 lib:pb-4",e)},t))}exports.Accordion=d;exports.AccordionContent=f;exports.AccordionItem=u;exports.AccordionTrigger=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs64.js"),u=require("@radix-ui/react-alert-dialog"),r=require("./index.cjs65.js"),i=require("./index.cjs13.js");function d(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const l in t)if(l!=="default"){const n=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(e,l,n.get?n:{enumerable:!0,get:()=>t[l]})}}return e.default=t,Object.freeze(e)}const o=d(u);function g({...t}){return a.jsxRuntimeExports.jsx(o.Root,{"data-slot":"alert-dialog",...t})}function x({...t}){return a.jsxRuntimeExports.jsx(o.Trigger,{"data-slot":"alert-dialog-trigger",...t})}function s({...t}){return a.jsxRuntimeExports.jsx(o.Portal,{"data-slot":"alert-dialog-portal",...t})}function c({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Overlay,{"data-slot":"alert-dialog-overlay",className:r.cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...e})}function m({className:t,...e}){return a.jsxRuntimeExports.jsxs(s,{children:[a.jsxRuntimeExports.jsx(c,{}),a.jsxRuntimeExports.jsx(o.Content,{"data-slot":"alert-dialog-content",className:r.cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...e})]})}function f({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-header",className:r.cn("flex flex-col gap-2 text-center sm:text-left",t),...e})}function p({className:t,...e}){return a.jsxRuntimeExports.jsx("div",{"data-slot":"alert-dialog-footer",className:r.cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...e})}function j({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Title,{"data-slot":"alert-dialog-title",className:r.cn("text-lg font-semibold",t),...e})}function D({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Description,{"data-slot":"alert-dialog-description",className:r.cn("text-muted-foreground text-sm",t),...e})}function A({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Action,{className:r.cn(i.buttonVariants(),t),...e})}function b({className:t,...e}){return a.jsxRuntimeExports.jsx(o.Cancel,{className:r.cn(i.buttonVariants({variant:"outline"}),t),...e})}exports.AlertDialog=g;exports.AlertDialogAction=A;exports.AlertDialogCancel=b;exports.AlertDialogContent=m;exports.AlertDialogDescription=D;exports.AlertDialogFooter=p;exports.AlertDialogHeader=f;exports.AlertDialogOverlay=c;exports.AlertDialogPortal=s;exports.AlertDialogTitle=j;exports.AlertDialogTrigger=x; diff --git a/dist/index.cjs70.js b/dist/index.cjs70.js new file mode 100644 index 00000000..f8545cf5 --- /dev/null +++ b/dist/index.cjs70.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs55.js");exports.default=e.default; diff --git a/dist/index.cjs71.js b/dist/index.cjs71.js new file mode 100644 index 00000000..42e230b6 --- /dev/null +++ b/dist/index.cjs71.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs56.js");exports.default=e.default; diff --git a/dist/index.cjs72.js b/dist/index.cjs72.js new file mode 100644 index 00000000..568ea1b7 --- /dev/null +++ b/dist/index.cjs72.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs57.js");exports.default=e.default; diff --git a/dist/index.cjs73.js b/dist/index.cjs73.js new file mode 100644 index 00000000..11f74f41 --- /dev/null +++ b/dist/index.cjs73.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs58.js");exports.default=e.default; diff --git a/dist/index.cjs74.js b/dist/index.cjs74.js new file mode 100644 index 00000000..80cf8a42 --- /dev/null +++ b/dist/index.cjs74.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs59.js");exports.default=e.default; diff --git a/dist/index.cjs75.js b/dist/index.cjs75.js new file mode 100644 index 00000000..c94004dc --- /dev/null +++ b/dist/index.cjs75.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs60.js");exports.default=e.default; diff --git a/dist/index.cjs76.js b/dist/index.cjs76.js new file mode 100644 index 00000000..8d45bd2f --- /dev/null +++ b/dist/index.cjs76.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs61.js");exports.default=e.default; diff --git a/dist/index.cjs77.js b/dist/index.cjs77.js new file mode 100644 index 00000000..27939f50 --- /dev/null +++ b/dist/index.cjs77.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs62.js");exports.default=e.default; diff --git a/dist/index.cjs78.js b/dist/index.cjs78.js new file mode 100644 index 00000000..46b62b5d --- /dev/null +++ b/dist/index.cjs78.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs63.js");exports.default=e.default; diff --git a/dist/index.cjs79.js b/dist/index.cjs79.js new file mode 100644 index 00000000..e6b78d62 --- /dev/null +++ b/dist/index.cjs79.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs80.js"),t=require("./index.cjs81.js"),u=require("./index.cjs82.js");var r;function i(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=u.__require()),e.__module.exports}exports.__require=i; diff --git a/dist/index.cjs8.js b/dist/index.cjs8.js index e969bb20..f06fccf3 100644 --- a/dist/index.cjs8.js +++ b/dist/index.cjs8.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),g=require("@radix-ui/react-alert-dialog"),i=require("./index.cjs54.js"),n=require("./index.cjs14.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=c(b),a=c(g);function u({...e}){return l.createElement(a.Root,{"data-slot":"alert-dialog",...e})}function m({...e}){return l.createElement(a.Trigger,{"data-slot":"alert-dialog-trigger",...e})}function s({...e}){return l.createElement(a.Portal,{"data-slot":"alert-dialog-portal",...e})}function d({className:e,...t}){return l.createElement(a.Overlay,{"data-slot":"alert-dialog-overlay",className:i.cn("data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50",e),...t})}function f({className:e,...t}){return l.createElement(s,null,l.createElement(d,null),l.createElement(a.Content,{"data-slot":"alert-dialog-content",className:i.cn("lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 lib:fixed lib:top-[50%] lib:left-[50%] lib:z-50 lib:grid lib:w-full lib:max-w-[calc(100%-2rem)] lib:translate-x-[-50%] lib:translate-y-[-50%] lib:gap-4 lib:rounded-lg lib:border lib:p-6 lib:shadow-lg lib:duration-200 sm:lib:max-w-lg",e),...t}))}function D({className:e,...t}){return l.createElement("div",{"data-slot":"alert-dialog-header",className:i.cn("lib:flex lib:flex-col lib:gap-2 lib:text-center sm:lib:text-left",e),...t})}function A({className:e,...t}){return l.createElement("div",{"data-slot":"alert-dialog-footer",className:i.cn("lib:flex lib:flex-col-reverse lib:gap-2 sm:lib:flex-row sm:lib:justify-end",e),...t})}function p({className:e,...t}){return l.createElement(a.Title,{"data-slot":"alert-dialog-title",className:i.cn("lib:text-lg lib:font-semibold",e),...t})}function x({className:e,...t}){return l.createElement(a.Description,{"data-slot":"alert-dialog-description",className:i.cn("lib:text-muted-foreground lib:text-sm",e),...t})}function E({className:e,...t}){return l.createElement(a.Action,{className:i.cn(n.buttonVariants(),e),...t})}function v({className:e,...t}){return l.createElement(a.Cancel,{className:i.cn(n.buttonVariants({variant:"outline"}),e),...t})}exports.AlertDialog=u;exports.AlertDialogAction=E;exports.AlertDialogCancel=v;exports.AlertDialogContent=f;exports.AlertDialogDescription=x;exports.AlertDialogFooter=A;exports.AlertDialogHeader=D;exports.AlertDialogOverlay=d;exports.AlertDialogPortal=s;exports.AlertDialogTitle=p;exports.AlertDialogTrigger=m; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs64.js"),i=require("class-variance-authority"),a=require("./index.cjs65.js"),l=i.cva("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function n({className:t,variant:e,...s}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert",role:"alert",className:a.cn(l({variant:e}),t),...s})}function c({className:t,...e}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert-title",className:a.cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",t),...e})}function o({className:t,...e}){return r.jsxRuntimeExports.jsx("div",{"data-slot":"alert-description",className:a.cn("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",t),...e})}exports.Alert=n;exports.AlertDescription=o;exports.AlertTitle=c; diff --git a/dist/index.cjs80.js b/dist/index.cjs80.js new file mode 100644 index 00000000..6cd11289 --- /dev/null +++ b/dist/index.cjs80.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e; diff --git a/dist/index.cjs81.js b/dist/index.cjs81.js new file mode 100644 index 00000000..5f932dfd --- /dev/null +++ b/dist/index.cjs81.js @@ -0,0 +1,9 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index.cjs83.js"),R=require("react");/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var p;function a(){if(p)return t.__exports;p=1;var f=R,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),d=Object.prototype.hasOwnProperty,m=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,y={key:!0,ref:!0,__self:!0,__source:!0};function u(o,e,i){var r,n={},_=null,s=null;i!==void 0&&(_=""+i),e.key!==void 0&&(_=""+e.key),e.ref!==void 0&&(s=e.ref);for(r in e)d.call(e,r)&&!y.hasOwnProperty(r)&&(n[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps,e)n[r]===void 0&&(n[r]=e[r]);return{$$typeof:c,type:o,key:_,ref:s,props:n,_owner:m.current}}return t.__exports.Fragment=l,t.__exports.jsx=u,t.__exports.jsxs=u,t.__exports}exports.__require=a; diff --git a/dist/index.cjs82.js b/dist/index.cjs82.js new file mode 100644 index 00000000..3dcb6099 --- /dev/null +++ b/dist/index.cjs82.js @@ -0,0 +1,22 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./index.cjs84.js"),ir=require("react");/** + * @license React + * react-jsx-runtime.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Ee;function or(){return Ee||(Ee=1,process.env.NODE_ENV!=="production"&&function(){var ye=ir,x=Symbol.for("react.element"),_e=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),K=Symbol.for("react.provider"),N=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),Re=Symbol.for("react.offscreen"),q=Symbol.iterator,me="@@iterator";function Te(e){if(e===null||typeof e!="object")return null;var r=q&&e[q]||e[me];return typeof r=="function"?r:null}var h=ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n=1&&l>=0&&a[s]!==c[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==c[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==c[l]){var d=` +`+a[s].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),typeof e=="function"&&P.set(e,d),d}while(s>=1&&l>=0);break}}}finally{W=!1,A.current=u,Fe(),Error.prepareStackTrace=o}var y=e?e.displayName||e.name:"",b=y?O(y):"";return typeof e=="function"&&P.set(e,b),b}function Ie(e,r,t){return ne(e,!1)}function We(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function w(e,r,t){if(e==null)return"";if(typeof e=="function")return ne(e,We(e));if(typeof e=="string")return O(e);switch(e){case k:return O("Suspense");case D:return O("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case S:return Ie(e.render);case C:return w(e.type,r,t);case F:{var n=e,o=n._payload,u=n._init;try{return w(u(o),r,t)}catch{}}}return""}var R=Object.prototype.hasOwnProperty,ae={},ie=h.ReactDebugCurrentFrame;function j(e){if(e){var r=e._owner,t=w(e.type,e._source,r?r.type:null);ie.setExtraStackFrame(t)}else ie.setExtraStackFrame(null)}function Ye(e,r,t,n,o){{var u=Function.call.bind(R);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var c=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(j(o),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),j(null)),a instanceof Error&&!(a.message in ae)&&(ae[a.message]=!0,j(o),f("Failed %s type: %s",t,a.message),j(null))}}}var $e=Array.isArray;function Y(e){return $e(e)}function Me(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ve(e){try{return oe(e),!1}catch{return!0}}function oe(e){return""+e}function ue(e){if(Ve(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Me(e)),oe(e)}var se=h.ReactCurrentOwner,Le={key:!0,ref:!0,__self:!0,__source:!0},le,fe;function Ue(e){if(R.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Be(e){if(R.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ke(e,r){typeof e.ref=="string"&&se.current}function Ne(e,r){{var t=function(){le||(le=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function qe(e,r){{var t=function(){fe||(fe=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Ge=function(e,r,t,n,o,u,i){var a={$$typeof:x,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Je(e,r,t,n,o){{var u,i={},a=null,c=null;t!==void 0&&(ue(t),a=""+t),Be(r)&&(ue(r.key),a=""+r.key),Ue(r)&&(c=r.ref,Ke(r,o));for(u in r)R.call(r,u)&&!Le.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||c){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Ne(i,l),c&&qe(i,l)}return Ge(e,a,c,o,n,se.current,i)}}var $=h.ReactCurrentOwner,ce=h.ReactDebugCurrentFrame;function E(e){if(e){var r=e._owner,t=w(e.type,e._source,r?r.type:null);ce.setExtraStackFrame(t)}else ce.setExtraStackFrame(null)}var M;M=!1;function V(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function ve(){{if($.current){var e=p($.current.type);if(e)return` + +Check the render method of \``+e+"`."}return""}}function ze(e){return""}var de={};function Xe(e){{var r=ve();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` + +Check the top-level render call using <`+t+">.")}return r}}function pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=Xe(r);if(de[t])return;de[t]=!0;var n="";e&&e._owner&&e._owner!==$.current&&(n=" It was passed a child from "+p(e._owner.type)+"."),E(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),E(null)}}function ge(e,r){{if(typeof e!="object")return;if(Y(e))for(var t=0;t",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=Je(e,r,t,o,u);if(l==null)return l;if(i){var d=r.children;if(d!==void 0)if(n)if(Y(d)){for(var y=0;y0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!be[b+L]){var nr=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX: + let props = %s; + <%s {...props} /> +React keys must be passed directly to JSX without using spread: + let props = %s; + <%s key={someKey} {...props} />`,L,b,nr,b),be[b+L]=!0}}return e===T?Ze(l):He(l),l}}function Qe(e,r,t){return he(e,r,t,!0)}function er(e,r,t){return he(e,r,t,!1)}var rr=er,tr=Qe;m.__exports.Fragment=T,m.__exports.jsx=rr,m.__exports.jsxs=tr}()),m.__exports}exports.__require=or; diff --git a/dist/index.cjs83.js b/dist/index.cjs83.js new file mode 100644 index 00000000..da5291a3 --- /dev/null +++ b/dist/index.cjs83.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e; diff --git a/dist/index.cjs84.js b/dist/index.cjs84.js new file mode 100644 index 00000000..da5291a3 --- /dev/null +++ b/dist/index.cjs84.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e; diff --git a/dist/index.cjs85.js b/dist/index.cjs85.js new file mode 100644 index 00000000..8c19029d --- /dev/null +++ b/dist/index.cjs85.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.cjs64.js"),t=require("lucide-react"),c=require("next-themes"),s=require("./index.cjs24.js"),d=require("./index.cjs41.js"),l=require("./index.cjs88.js"),m=require("./index.cjs5.js");function j({name:i,version:o,logo:n,signOutFn:x}){const{setTheme:r,theme:a}=c.useTheme(),u=m.useLinkComponent();return e.jsxRuntimeExports.jsxs(s.DropdownMenu,{children:[e.jsxRuntimeExports.jsx(s.DropdownMenuTrigger,{className:"w-full",children:e.jsxRuntimeExports.jsxs(d.SidebarMenuButton,{size:"lg",className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",children:[e.jsxRuntimeExports.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg text-sidebar-primary-foreground",children:e.jsxRuntimeExports.jsx(u,{href:"/projects",children:n||e.jsxRuntimeExports.jsx("img",{src:l.default,className:"size-8"})})}),e.jsxRuntimeExports.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[e.jsxRuntimeExports.jsx("span",{className:"truncate font-semibold",children:i}),e.jsxRuntimeExports.jsx("span",{className:"truncate text-xs",children:o})]}),e.jsxRuntimeExports.jsx(t.ChevronsUpDown,{className:"ml-auto h-4 w-4"})]})}),e.jsxRuntimeExports.jsxs(s.DropdownMenuContent,{className:"w-56",align:"start",side:"right",sideOffset:4,style:{zIndex:9999},children:[a==="dark"?e.jsxRuntimeExports.jsxs(s.DropdownMenuItem,{onClick:()=>r("light"),children:[e.jsxRuntimeExports.jsx(t.Sun,{className:"mr-2 h-4 w-4"}),"Light"]}):e.jsxRuntimeExports.jsxs(s.DropdownMenuItem,{onClick:()=>r("dark"),children:[e.jsxRuntimeExports.jsx(t.Moon,{className:"mr-2 h-4 w-4"}),"Dark"]}),e.jsxRuntimeExports.jsxs(s.DropdownMenuItem,{onClick:()=>x(),children:[e.jsxRuntimeExports.jsx(t.LogOut,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]})]})}exports.default=j; diff --git a/dist/index.cjs86.js b/dist/index.cjs86.js new file mode 100644 index 00000000..a6e4137c --- /dev/null +++ b/dist/index.cjs86.js @@ -0,0 +1 @@ +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs64.js");require("react");require("react-highlight-words");const c=(r,n)=>{const a=o=>o.charCodeAt(0)-64,e=o=>Math.round(a(o)*11);let t=e(r)%256,u=e(n)%256,l=Math.round((a(r)+a(n))/2*11)%256;return{bgColor:`rgb(${t}, ${u}, ${l})`,textColor:s(t,u,l)>.5?"#000000":"#FFFFFF"}};function s(r,n,a){const e=[r,n,a].map(t=>(t/=255,t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)));return .2126*e[0]+.7152*e[1]+.0722*e[2]}const g=(r,n)=>r.flatMap(t=>t.sectionItems).find(t=>n.startsWith(t.url))?.url||"";exports.genAvatarBackground=c;exports.getCurrentPath=g; diff --git a/dist/index.cjs87.js b/dist/index.cjs87.js new file mode 100644 index 00000000..5c9fe127 --- /dev/null +++ b/dist/index.cjs87.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./index.cjs64.js"),o=require("class-variance-authority"),i=require("./index.cjs65.js"),l=o.cva("rounded-full h-6 w-6 min-w-[24px] flex justify-center items-center mr-2 text-xs");function a({bgColor:e,textColor:t,className:r,children:u,...s}){return n.jsxRuntimeExports.jsx("div",{...s,className:i.cn(l(),r),style:{backgroundColor:e,color:t},children:u})}exports.default=a; diff --git a/dist/index.cjs88.js b/dist/index.cjs88.js new file mode 100644 index 00000000..cfe8cb5f --- /dev/null +++ b/dist/index.cjs88.js @@ -0,0 +1 @@ +"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.8262%2015.3527L30.0001%2022.1537V8.61523L24.1268%2011.6919L17.8262%2015.3527Z'%20fill='url(%23paint0_linear_2241_6387)'/%3e%3cpath%20d='M30%2024.0036L16%2016L11.36%2018.2397L2%2024.0022L16.0087%2032L30%2024.0036Z'%20fill='url(%23paint1_linear_2241_6387)'/%3e%3cpath%20d='M16.6087%2016.4073V0L2%208.19701L2.00455%2024.6154L16.6087%2016.4073Z'%20fill='url(%23paint2_linear_2241_6387)'/%3e%3cpath%20d='M30.0001%207.99624L17.8262%201.23096V14.7694L30.0001%207.99624Z'%20fill='url(%23paint3_linear_2241_6387)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2241_6387'%20x1='22.6449'%20y1='19.9685'%20x2='31.8358'%20y2='10.3738'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.9'%20stop-color='%232BC0E4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2241_6387'%20x1='21.7839'%20y1='17.1815'%20x2='10.358'%20y2='30.9421'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.75'%20stop-color='%23262D65'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2241_6387'%20x1='19.2776'%20y1='2.59742'%20x2='-0.127779'%20y2='22.5405'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.15'%20stop-color='%234578E6'/%3e%3cstop%20offset='0.95'%20stop-color='%23262D65'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2241_6387'%20x1='17.8264'%20y1='8.0002'%20x2='30.0003'%20y2='8.0002'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.55'%20stop-color='%232BC0E4'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";exports.default=e; diff --git a/dist/index.cjs9.js b/dist/index.cjs9.js index c717db7c..6f03682f 100644 --- a/dist/index.cjs9.js +++ b/dist/index.cjs9.js @@ -1 +1 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),s=require("class-variance-authority"),l=require("./index.cjs54.js");function c(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const i in t)if(i!=="default"){const a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>t[i]})}}return e.default=t,Object.freeze(e)}const r=c(n),b=s.cva("lib:relative lib:w-full lib:rounded-lg lib:border lib:px-4 lib:py-3 lib:text-sm lib:grid has-[>svg]:lib:grid-cols-[calc(var(--spacing)*4)_1fr] lib:grid-cols-[0_1fr] has-[>svg]:lib:gap-x-3 lib:gap-y-0.5 lib:items-start [&>svg]:lib:size-4 [&>svg]:lib:translate-y-0.5 [&>svg]:lib:text-current",{variants:{variant:{default:"lib:bg-card lib:text-card-foreground",destructive:"lib:text-destructive lib:bg-card [&>svg]:lib:text-current *:data-[slot=alert-description]:lib:text-destructive/90"}},defaultVariants:{variant:"default"}});function o({className:t,variant:e,...i}){return r.createElement("div",{"data-slot":"alert",role:"alert",className:l.cn(b({variant:e}),t),...i})}function u({className:t,...e}){return r.createElement("div",{"data-slot":"alert-title",className:l.cn("lib:col-start-2 lib:line-clamp-1 lib:min-h-4 lib:font-medium lib:tracking-tight",t),...e})}function d({className:t,...e}){return r.createElement("div",{"data-slot":"alert-description",className:l.cn("lib:text-muted-foreground lib:col-start-2 lib:grid lib:justify-items-start lib:gap-1 lib:text-sm [&_p]:lib:leading-relaxed",t),...e})}exports.Alert=o;exports.AlertDescription=d;exports.AlertTitle=u; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs64.js"),n=require("@radix-ui/react-aspect-ratio");function c(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const a=c(n);function s({...t}){return i.jsxRuntimeExports.jsx(a.Root,{"data-slot":"aspect-ratio",...t})}exports.AspectRatio=s; diff --git a/dist/index.d.ts b/dist/index.d.ts index 457490d4..c624ff82 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1,6 +1,5 @@ export { default as Colors } from './_util/colors'; -export { default as useTheme } from './hooks/useTheme'; -export { default as UIThemeProvider } from './providers/__ContextWrapper'; +export { default as ThemeProvider } from './providers/ThemeProvider'; export { LinkProvider as NextLinkProvider, useLinkComponent as useNextLink } from './providers/NextLinkProvider'; export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from './components/ui/accordion'; export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './components/ui/alert-dialog'; @@ -24,7 +23,7 @@ export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuCont export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, } from './components/ui/form'; export { HoverCard, HoverCardTrigger, HoverCardContent } from './components/ui/hover-card'; export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator } from './components/ui/input-otp'; -export { Input } from './components/ui/input'; +export { Input as ShadInput } from './components/ui/input'; export { Label } from './components/ui/label'; export { Menubar, MenubarPortal, MenubarMenu, MenubarTrigger, MenubarContent, MenubarGroup, MenubarSeparator, MenubarLabel, MenubarItem, MenubarShortcut, MenubarCheckboxItem, MenubarRadioGroup, MenubarRadioItem, MenubarSub, MenubarSubTrigger, MenubarSubContent, } from './components/ui/menubar'; export { NavigationMenu, NavigationMenuList, NavigationMenuItem, NavigationMenuContent, NavigationMenuTrigger, NavigationMenuLink, NavigationMenuIndicator, NavigationMenuViewport, navigationMenuTriggerStyle, } from './components/ui/navigation-menu'; @@ -48,4 +47,16 @@ export { Textarea } from './components/ui/textarea'; export { ToggleGroup, ToggleGroupItem } from './components/ui/toggle-group'; export { Toggle, toggleVariants } from './components/ui/toggle'; export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './components/ui/tooltip'; +export { default as RootLayout } from './components/RootLayout'; +export { default as Sidenav } from './components/sidenav'; +export { default as CheckboxWithLabel } from './components/Checkbox'; +export { default as StatCard } from './components/StatCard'; +export { default as DetailStat } from './components/DetailStat'; +export { default as KeyFactCard } from './components/KeyFactCard'; +export { default as CopyToClipboard } from './components/CopyToClipboard'; +export { default as NavBreadcrumb } from './components/Breadcrumb'; +export { default as Notification } from './components/Notification'; +export { default as ProblemsOverview } from './components/ProblemsOverview'; +export { default as SelectWithOptions } from './components/Select'; +export { default as Input } from './components/Input'; //# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map index 5dc1352f..9cf9b60a 100644 --- a/dist/index.d.ts.map +++ b/dist/index.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGjH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEzG,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EACN,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EACN,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACN,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACN,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,UAAU,GACV,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAElG,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACN,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAErG,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC1B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEjG,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjG,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EACN,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACX,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EACN,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACV,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EACN,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"} \ No newline at end of file +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEnD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,gBAAgB,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAGjH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEzG,OAAO,EACN,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EACN,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EACN,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACX,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACN,KAAK,WAAW,EAChB,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,YAAY,GACZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACN,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,UAAU,GACV,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAElG,OAAO,EACN,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GAChB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,GACb,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACtB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACN,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,WAAW,EACX,eAAe,EACf,WAAW,EACX,SAAS,GACT,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE3F,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAErG,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAE3D,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C,OAAO,EACN,OAAO,EACP,aAAa,EACb,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,iBAAiB,GACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,sBAAsB,EACtB,0BAA0B,GAC1B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACN,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GAClB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEjG,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAEzE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjG,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EACN,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACX,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,EACN,KAAK,EACL,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GAChB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACN,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,UAAU,GACV,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EACN,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE5E,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAGnG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE1E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAEnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC"} \ No newline at end of file diff --git a/dist/index.es.js b/dist/index.es.js index 3268c5e7..caf70523 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -1,302 +1,324 @@ /* empty css */ import { default as t } from "./index.es3.js"; import { default as n } from "./index.es4.js"; -import { default as l } from "./index.es5.js"; -import { LinkProvider as p, useLinkComponent as m } from "./index.es6.js"; -import { Accordion as g, AccordionContent as b, AccordionItem as C, AccordionTrigger as S } from "./index.es7.js"; -import { AlertDialog as M, AlertDialogAction as s, AlertDialogCancel as D, AlertDialogContent as T, AlertDialogDescription as c, AlertDialogFooter as f, AlertDialogHeader as I, AlertDialogOverlay as P, AlertDialogPortal as v, AlertDialogTitle as w, AlertDialogTrigger as A } from "./index.es8.js"; -import { Alert as L, AlertDescription as F, AlertTitle as G } from "./index.es9.js"; -import { AspectRatio as k } from "./index.es10.js"; -import { Avatar as H, AvatarFallback as N, AvatarImage as y } from "./index.es11.js"; -import { Badge as V, badgeVariants as z } from "./index.es12.js"; -import { Breadcrumb as U, BreadcrumbEllipsis as j, BreadcrumbItem as q, BreadcrumbLink as J, BreadcrumbList as K, BreadcrumbPage as Q, BreadcrumbSeparator as W } from "./index.es13.js"; -import { Button as Y, buttonVariants as Z } from "./index.es14.js"; -import { Calendar as $ } from "./index.es15.js"; -import { Card as re, CardAction as oe, CardContent as te, CardDescription as ae, CardFooter as ne, CardHeader as ie, CardTitle as le } from "./index.es16.js"; -import { Carousel as pe, CarouselContent as me, CarouselItem as de, CarouselNext as ge, CarouselPrevious as be } from "./index.es17.js"; -import { ChartContainer as Se, ChartLegend as xe, ChartLegendContent as Me, ChartStyle as se, ChartTooltip as De, ChartTooltipContent as Te } from "./index.es18.js"; -import { Checkbox as fe } from "./index.es19.js"; -import { Collapsible as Pe, CollapsibleContent as ve, CollapsibleTrigger as we } from "./index.es20.js"; -import { Command as he, CommandDialog as Le, CommandEmpty as Fe, CommandGroup as Ge, CommandInput as Be, CommandItem as ke, CommandList as Re, CommandSeparator as He, CommandShortcut as Ne } from "./index.es21.js"; -import { ContextMenu as Oe, ContextMenuCheckboxItem as Ve, ContextMenuContent as ze, ContextMenuGroup as Ee, ContextMenuItem as Ue, ContextMenuLabel as je, ContextMenuPortal as qe, ContextMenuRadioGroup as Je, ContextMenuRadioItem as Ke, ContextMenuSeparator as Qe, ContextMenuShortcut as We, ContextMenuSub as Xe, ContextMenuSubContent as Ye, ContextMenuSubTrigger as Ze, ContextMenuTrigger as _e } from "./index.es22.js"; -import { Dialog as er, DialogClose as rr, DialogContent as or, DialogDescription as tr, DialogFooter as ar, DialogHeader as nr, DialogOverlay as ir, DialogPortal as lr, DialogTitle as ur, DialogTrigger as pr } from "./index.es23.js"; -import { Drawer as dr, DrawerClose as gr, DrawerContent as br, DrawerDescription as Cr, DrawerFooter as Sr, DrawerHeader as xr, DrawerOverlay as Mr, DrawerPortal as sr, DrawerTitle as Dr, DrawerTrigger as Tr } from "./index.es24.js"; -import { DropdownMenu as fr, DropdownMenuCheckboxItem as Ir, DropdownMenuContent as Pr, DropdownMenuGroup as vr, DropdownMenuItem as wr, DropdownMenuLabel as Ar, DropdownMenuPortal as hr, DropdownMenuRadioGroup as Lr, DropdownMenuRadioItem as Fr, DropdownMenuSeparator as Gr, DropdownMenuShortcut as Br, DropdownMenuSub as kr, DropdownMenuSubContent as Rr, DropdownMenuSubTrigger as Hr, DropdownMenuTrigger as Nr } from "./index.es25.js"; -import { Form as Or, FormControl as Vr, FormDescription as zr, FormField as Er, FormItem as Ur, FormLabel as jr, FormMessage as qr, useFormField as Jr } from "./index.es26.js"; -import { HoverCard as Qr, HoverCardContent as Wr, HoverCardTrigger as Xr } from "./index.es27.js"; -import { InputOTP as Zr, InputOTPGroup as _r, InputOTPSeparator as $r, InputOTPSlot as eo } from "./index.es28.js"; -import { Input as oo } from "./index.es29.js"; -import { Label as ao } from "./index.es30.js"; -import { Menubar as io, MenubarCheckboxItem as lo, MenubarContent as uo, MenubarGroup as po, MenubarItem as mo, MenubarLabel as go, MenubarMenu as bo, MenubarPortal as Co, MenubarRadioGroup as So, MenubarRadioItem as xo, MenubarSeparator as Mo, MenubarShortcut as so, MenubarSub as Do, MenubarSubContent as To, MenubarSubTrigger as co, MenubarTrigger as fo } from "./index.es31.js"; -import { NavigationMenu as Po, NavigationMenuContent as vo, NavigationMenuIndicator as wo, NavigationMenuItem as Ao, NavigationMenuLink as ho, NavigationMenuList as Lo, NavigationMenuTrigger as Fo, NavigationMenuViewport as Go, navigationMenuTriggerStyle as Bo } from "./index.es32.js"; -import { Pagination as Ro, PaginationContent as Ho, PaginationEllipsis as No, PaginationItem as yo, PaginationLink as Oo, PaginationNext as Vo, PaginationPrevious as zo } from "./index.es33.js"; -import { Popover as Uo, PopoverAnchor as jo, PopoverContent as qo, PopoverTrigger as Jo } from "./index.es34.js"; -import { Progress as Qo } from "./index.es35.js"; -import { RadioGroup as Xo, RadioGroupItem as Yo } from "./index.es36.js"; -import { ResizableHandle as _o, ResizablePanel as $o, ResizablePanelGroup as et } from "./index.es37.js"; -import { ScrollArea as ot, ScrollBar as tt } from "./index.es38.js"; -import { Select as nt, SelectContent as it, SelectGroup as lt, SelectItem as ut, SelectLabel as pt, SelectScrollDownButton as mt, SelectScrollUpButton as dt, SelectSeparator as gt, SelectTrigger as bt, SelectValue as Ct } from "./index.es39.js"; -import { Separator as xt } from "./index.es40.js"; -import { Sheet as st, SheetClose as Dt, SheetContent as Tt, SheetDescription as ct, SheetFooter as ft, SheetHeader as It, SheetTitle as Pt, SheetTrigger as vt } from "./index.es41.js"; -import { Sidebar as At, SidebarContent as ht, SidebarFooter as Lt, SidebarGroup as Ft, SidebarGroupAction as Gt, SidebarGroupContent as Bt, SidebarGroupLabel as kt, SidebarHeader as Rt, SidebarInput as Ht, SidebarInset as Nt, SidebarMenu as yt, SidebarMenuAction as Ot, SidebarMenuBadge as Vt, SidebarMenuButton as zt, SidebarMenuItem as Et, SidebarMenuSkeleton as Ut, SidebarMenuSub as jt, SidebarMenuSubButton as qt, SidebarMenuSubItem as Jt, SidebarProvider as Kt, SidebarRail as Qt, SidebarSeparator as Wt, SidebarTrigger as Xt, useSidebar as Yt } from "./index.es42.js"; -import { Skeleton as _t } from "./index.es43.js"; -import { Slider as ea } from "./index.es44.js"; -import { Toaster as oa } from "./index.es45.js"; -import { Switch as aa } from "./index.es46.js"; -import { Table as ia, TableBody as la, TableCaption as ua, TableCell as pa, TableFooter as ma, TableHead as da, TableHeader as ga, TableRow as ba } from "./index.es47.js"; -import { Tabs as Sa, TabsContent as xa, TabsList as Ma, TabsTrigger as sa } from "./index.es48.js"; -import { Textarea as Ta } from "./index.es49.js"; -import { ToggleGroup as fa, ToggleGroupItem as Ia } from "./index.es50.js"; -import { Toggle as va, toggleVariants as wa } from "./index.es51.js"; -import { Tooltip as ha, TooltipContent as La, TooltipProvider as Fa, TooltipTrigger as Ga } from "./index.es52.js"; +import { LinkProvider as l, useLinkComponent as u } from "./index.es5.js"; +import { Accordion as d, AccordionContent as m, AccordionItem as b, AccordionTrigger as g } from "./index.es6.js"; +import { AlertDialog as x, AlertDialogAction as S, AlertDialogCancel as f, AlertDialogContent as s, AlertDialogDescription as M, AlertDialogFooter as c, AlertDialogHeader as D, AlertDialogOverlay as T, AlertDialogPortal as v, AlertDialogTitle as I, AlertDialogTrigger as P } from "./index.es7.js"; +import { Alert as h, AlertDescription as A, AlertTitle as L } from "./index.es8.js"; +import { AspectRatio as G } from "./index.es9.js"; +import { Avatar as k, AvatarFallback as R, AvatarImage as N } from "./index.es10.js"; +import { Badge as y, badgeVariants as O } from "./index.es11.js"; +import { Breadcrumb as z, BreadcrumbEllipsis as E, BreadcrumbItem as W, BreadcrumbLink as K, BreadcrumbList as U, BreadcrumbPage as j, BreadcrumbSeparator as q } from "./index.es12.js"; +import { Button as Q, buttonVariants as X } from "./index.es13.js"; +import { Calendar as Z } from "./index.es14.js"; +import { Card as $, CardAction as ee, CardContent as re, CardDescription as oe, CardFooter as te, CardHeader as ae, CardTitle as ne } from "./index.es15.js"; +import { Carousel as le, CarouselContent as ue, CarouselItem as pe, CarouselNext as de, CarouselPrevious as me } from "./index.es16.js"; +import { ChartContainer as ge, ChartLegend as Ce, ChartLegendContent as xe, ChartStyle as Se, ChartTooltip as fe, ChartTooltipContent as se } from "./index.es17.js"; +import { Checkbox as ce } from "./index.es18.js"; +import { Collapsible as Te, CollapsibleContent as ve, CollapsibleTrigger as Ie } from "./index.es19.js"; +import { Command as we, CommandDialog as he, CommandEmpty as Ae, CommandGroup as Le, CommandInput as Fe, CommandItem as Ge, CommandList as Be, CommandSeparator as ke, CommandShortcut as Re } from "./index.es20.js"; +import { ContextMenu as He, ContextMenuCheckboxItem as ye, ContextMenuContent as Oe, ContextMenuGroup as Ve, ContextMenuItem as ze, ContextMenuLabel as Ee, ContextMenuPortal as We, ContextMenuRadioGroup as Ke, ContextMenuRadioItem as Ue, ContextMenuSeparator as je, ContextMenuShortcut as qe, ContextMenuSub as Je, ContextMenuSubContent as Qe, ContextMenuSubTrigger as Xe, ContextMenuTrigger as Ye } from "./index.es21.js"; +import { Dialog as _e, DialogClose as $e, DialogContent as er, DialogDescription as rr, DialogFooter as or, DialogHeader as tr, DialogOverlay as ar, DialogPortal as nr, DialogTitle as ir, DialogTrigger as lr } from "./index.es22.js"; +import { Drawer as pr, DrawerClose as dr, DrawerContent as mr, DrawerDescription as br, DrawerFooter as gr, DrawerHeader as Cr, DrawerOverlay as xr, DrawerPortal as Sr, DrawerTitle as fr, DrawerTrigger as sr } from "./index.es23.js"; +import { DropdownMenu as cr, DropdownMenuCheckboxItem as Dr, DropdownMenuContent as Tr, DropdownMenuGroup as vr, DropdownMenuItem as Ir, DropdownMenuLabel as Pr, DropdownMenuPortal as wr, DropdownMenuRadioGroup as hr, DropdownMenuRadioItem as Ar, DropdownMenuSeparator as Lr, DropdownMenuShortcut as Fr, DropdownMenuSub as Gr, DropdownMenuSubContent as Br, DropdownMenuSubTrigger as kr, DropdownMenuTrigger as Rr } from "./index.es24.js"; +import { Form as Hr, FormControl as yr, FormDescription as Or, FormField as Vr, FormItem as zr, FormLabel as Er, FormMessage as Wr, useFormField as Kr } from "./index.es25.js"; +import { HoverCard as jr, HoverCardContent as qr, HoverCardTrigger as Jr } from "./index.es26.js"; +import { InputOTP as Xr, InputOTPGroup as Yr, InputOTPSeparator as Zr, InputOTPSlot as _r } from "./index.es27.js"; +import { Input as eo } from "./index.es28.js"; +import { Label as oo } from "./index.es29.js"; +import { Menubar as ao, MenubarCheckboxItem as no, MenubarContent as io, MenubarGroup as lo, MenubarItem as uo, MenubarLabel as po, MenubarMenu as mo, MenubarPortal as bo, MenubarRadioGroup as go, MenubarRadioItem as Co, MenubarSeparator as xo, MenubarShortcut as So, MenubarSub as fo, MenubarSubContent as so, MenubarSubTrigger as Mo, MenubarTrigger as co } from "./index.es30.js"; +import { NavigationMenu as To, NavigationMenuContent as vo, NavigationMenuIndicator as Io, NavigationMenuItem as Po, NavigationMenuLink as wo, NavigationMenuList as ho, NavigationMenuTrigger as Ao, NavigationMenuViewport as Lo, navigationMenuTriggerStyle as Fo } from "./index.es31.js"; +import { Pagination as Bo, PaginationContent as ko, PaginationEllipsis as Ro, PaginationItem as No, PaginationLink as Ho, PaginationNext as yo, PaginationPrevious as Oo } from "./index.es32.js"; +import { Popover as zo, PopoverAnchor as Eo, PopoverContent as Wo, PopoverTrigger as Ko } from "./index.es33.js"; +import { Progress as jo } from "./index.es34.js"; +import { RadioGroup as Jo, RadioGroupItem as Qo } from "./index.es35.js"; +import { ResizableHandle as Yo, ResizablePanel as Zo, ResizablePanelGroup as _o } from "./index.es36.js"; +import { ScrollArea as et, ScrollBar as rt } from "./index.es37.js"; +import { Select as tt, SelectContent as at, SelectGroup as nt, SelectItem as it, SelectLabel as lt, SelectScrollDownButton as ut, SelectScrollUpButton as pt, SelectSeparator as dt, SelectTrigger as mt, SelectValue as bt } from "./index.es38.js"; +import { Separator as Ct } from "./index.es39.js"; +import { Sheet as St, SheetClose as ft, SheetContent as st, SheetDescription as Mt, SheetFooter as ct, SheetHeader as Dt, SheetTitle as Tt, SheetTrigger as vt } from "./index.es40.js"; +import { Sidebar as Pt, SidebarContent as wt, SidebarFooter as ht, SidebarGroup as At, SidebarGroupAction as Lt, SidebarGroupContent as Ft, SidebarGroupLabel as Gt, SidebarHeader as Bt, SidebarInput as kt, SidebarInset as Rt, SidebarMenu as Nt, SidebarMenuAction as Ht, SidebarMenuBadge as yt, SidebarMenuButton as Ot, SidebarMenuItem as Vt, SidebarMenuSkeleton as zt, SidebarMenuSub as Et, SidebarMenuSubButton as Wt, SidebarMenuSubItem as Kt, SidebarProvider as Ut, SidebarRail as jt, SidebarSeparator as qt, SidebarTrigger as Jt, useSidebar as Qt } from "./index.es41.js"; +import { Skeleton as Yt } from "./index.es42.js"; +import { Slider as _t } from "./index.es43.js"; +import { Toaster as ea } from "./index.es44.js"; +import { Switch as oa } from "./index.es45.js"; +import { Table as aa, TableBody as na, TableCaption as ia, TableCell as la, TableFooter as ua, TableHead as pa, TableHeader as da, TableRow as ma } from "./index.es46.js"; +import { Tabs as ga, TabsContent as Ca, TabsList as xa, TabsTrigger as Sa } from "./index.es47.js"; +import { Textarea as sa } from "./index.es48.js"; +import { ToggleGroup as ca, ToggleGroupItem as Da } from "./index.es49.js"; +import { Toggle as va, toggleVariants as Ia } from "./index.es50.js"; +import { Tooltip as wa, TooltipContent as ha, TooltipProvider as Aa, TooltipTrigger as La } from "./index.es51.js"; +import { default as Ga } from "./index.es52.js"; +import { default as ka } from "./index.es53.js"; +import { default as Na } from "./index.es54.js"; +import { default as ya } from "./index.es55.js"; +import { default as Va } from "./index.es56.js"; +import { default as Ea } from "./index.es57.js"; +import { default as Ka } from "./index.es58.js"; +import { default as ja } from "./index.es59.js"; +import { default as Ja } from "./index.es60.js"; +import { default as Xa } from "./index.es61.js"; +import { default as Za } from "./index.es62.js"; +import { default as $a } from "./index.es63.js"; export { - g as Accordion, - b as AccordionContent, - C as AccordionItem, - S as AccordionTrigger, - L as Alert, - F as AlertDescription, - M as AlertDialog, - s as AlertDialogAction, - D as AlertDialogCancel, - T as AlertDialogContent, - c as AlertDialogDescription, - f as AlertDialogFooter, - I as AlertDialogHeader, - P as AlertDialogOverlay, + d as Accordion, + m as AccordionContent, + b as AccordionItem, + g as AccordionTrigger, + h as Alert, + A as AlertDescription, + x as AlertDialog, + S as AlertDialogAction, + f as AlertDialogCancel, + s as AlertDialogContent, + M as AlertDialogDescription, + c as AlertDialogFooter, + D as AlertDialogHeader, + T as AlertDialogOverlay, v as AlertDialogPortal, - w as AlertDialogTitle, - A as AlertDialogTrigger, - G as AlertTitle, - k as AspectRatio, - H as Avatar, - N as AvatarFallback, - y as AvatarImage, - V as Badge, - U as Breadcrumb, - j as BreadcrumbEllipsis, - q as BreadcrumbItem, - J as BreadcrumbLink, - K as BreadcrumbList, - Q as BreadcrumbPage, - W as BreadcrumbSeparator, - Y as Button, - $ as Calendar, - re as Card, - oe as CardAction, - te as CardContent, - ae as CardDescription, - ne as CardFooter, - ie as CardHeader, - le as CardTitle, - pe as Carousel, - me as CarouselContent, - de as CarouselItem, - ge as CarouselNext, - be as CarouselPrevious, - Se as ChartContainer, - xe as ChartLegend, - Me as ChartLegendContent, - se as ChartStyle, - De as ChartTooltip, - Te as ChartTooltipContent, - fe as Checkbox, - Pe as Collapsible, + I as AlertDialogTitle, + P as AlertDialogTrigger, + L as AlertTitle, + G as AspectRatio, + k as Avatar, + R as AvatarFallback, + N as AvatarImage, + y as Badge, + z as Breadcrumb, + E as BreadcrumbEllipsis, + W as BreadcrumbItem, + K as BreadcrumbLink, + U as BreadcrumbList, + j as BreadcrumbPage, + q as BreadcrumbSeparator, + Q as Button, + Z as Calendar, + $ as Card, + ee as CardAction, + re as CardContent, + oe as CardDescription, + te as CardFooter, + ae as CardHeader, + ne as CardTitle, + le as Carousel, + ue as CarouselContent, + pe as CarouselItem, + de as CarouselNext, + me as CarouselPrevious, + ge as ChartContainer, + Ce as ChartLegend, + xe as ChartLegendContent, + Se as ChartStyle, + fe as ChartTooltip, + se as ChartTooltipContent, + ce as Checkbox, + Na as CheckboxWithLabel, + Te as Collapsible, ve as CollapsibleContent, - we as CollapsibleTrigger, + Ie as CollapsibleTrigger, t as Colors, - he as Command, - Le as CommandDialog, - Fe as CommandEmpty, - Ge as CommandGroup, - Be as CommandInput, - ke as CommandItem, - Re as CommandList, - He as CommandSeparator, - Ne as CommandShortcut, - Oe as ContextMenu, - Ve as ContextMenuCheckboxItem, - ze as ContextMenuContent, - Ee as ContextMenuGroup, - Ue as ContextMenuItem, - je as ContextMenuLabel, - qe as ContextMenuPortal, - Je as ContextMenuRadioGroup, - Ke as ContextMenuRadioItem, - Qe as ContextMenuSeparator, - We as ContextMenuShortcut, - Xe as ContextMenuSub, - Ye as ContextMenuSubContent, - Ze as ContextMenuSubTrigger, - _e as ContextMenuTrigger, - er as Dialog, - rr as DialogClose, - or as DialogContent, - tr as DialogDescription, - ar as DialogFooter, - nr as DialogHeader, - ir as DialogOverlay, - lr as DialogPortal, - ur as DialogTitle, - pr as DialogTrigger, - dr as Drawer, - gr as DrawerClose, - br as DrawerContent, - Cr as DrawerDescription, - Sr as DrawerFooter, - xr as DrawerHeader, - Mr as DrawerOverlay, - sr as DrawerPortal, - Dr as DrawerTitle, - Tr as DrawerTrigger, - fr as DropdownMenu, - Ir as DropdownMenuCheckboxItem, - Pr as DropdownMenuContent, + we as Command, + he as CommandDialog, + Ae as CommandEmpty, + Le as CommandGroup, + Fe as CommandInput, + Ge as CommandItem, + Be as CommandList, + ke as CommandSeparator, + Re as CommandShortcut, + He as ContextMenu, + ye as ContextMenuCheckboxItem, + Oe as ContextMenuContent, + Ve as ContextMenuGroup, + ze as ContextMenuItem, + Ee as ContextMenuLabel, + We as ContextMenuPortal, + Ke as ContextMenuRadioGroup, + Ue as ContextMenuRadioItem, + je as ContextMenuSeparator, + qe as ContextMenuShortcut, + Je as ContextMenuSub, + Qe as ContextMenuSubContent, + Xe as ContextMenuSubTrigger, + Ye as ContextMenuTrigger, + Ka as CopyToClipboard, + Va as DetailStat, + _e as Dialog, + $e as DialogClose, + er as DialogContent, + rr as DialogDescription, + or as DialogFooter, + tr as DialogHeader, + ar as DialogOverlay, + nr as DialogPortal, + ir as DialogTitle, + lr as DialogTrigger, + pr as Drawer, + dr as DrawerClose, + mr as DrawerContent, + br as DrawerDescription, + gr as DrawerFooter, + Cr as DrawerHeader, + xr as DrawerOverlay, + Sr as DrawerPortal, + fr as DrawerTitle, + sr as DrawerTrigger, + cr as DropdownMenu, + Dr as DropdownMenuCheckboxItem, + Tr as DropdownMenuContent, vr as DropdownMenuGroup, - wr as DropdownMenuItem, - Ar as DropdownMenuLabel, - hr as DropdownMenuPortal, - Lr as DropdownMenuRadioGroup, - Fr as DropdownMenuRadioItem, - Gr as DropdownMenuSeparator, - Br as DropdownMenuShortcut, - kr as DropdownMenuSub, - Rr as DropdownMenuSubContent, - Hr as DropdownMenuSubTrigger, - Nr as DropdownMenuTrigger, - Or as Form, - Vr as FormControl, - zr as FormDescription, - Er as FormField, - Ur as FormItem, - jr as FormLabel, - qr as FormMessage, - Qr as HoverCard, - Wr as HoverCardContent, - Xr as HoverCardTrigger, - oo as Input, - Zr as InputOTP, - _r as InputOTPGroup, - $r as InputOTPSeparator, - eo as InputOTPSlot, - ao as Label, - io as Menubar, - lo as MenubarCheckboxItem, - uo as MenubarContent, - po as MenubarGroup, - mo as MenubarItem, - go as MenubarLabel, - bo as MenubarMenu, - Co as MenubarPortal, - So as MenubarRadioGroup, - xo as MenubarRadioItem, - Mo as MenubarSeparator, - so as MenubarShortcut, - Do as MenubarSub, - To as MenubarSubContent, - co as MenubarSubTrigger, - fo as MenubarTrigger, - Po as NavigationMenu, + Ir as DropdownMenuItem, + Pr as DropdownMenuLabel, + wr as DropdownMenuPortal, + hr as DropdownMenuRadioGroup, + Ar as DropdownMenuRadioItem, + Lr as DropdownMenuSeparator, + Fr as DropdownMenuShortcut, + Gr as DropdownMenuSub, + Br as DropdownMenuSubContent, + kr as DropdownMenuSubTrigger, + Rr as DropdownMenuTrigger, + Hr as Form, + yr as FormControl, + Or as FormDescription, + Vr as FormField, + zr as FormItem, + Er as FormLabel, + Wr as FormMessage, + jr as HoverCard, + qr as HoverCardContent, + Jr as HoverCardTrigger, + $a as Input, + Xr as InputOTP, + Yr as InputOTPGroup, + Zr as InputOTPSeparator, + _r as InputOTPSlot, + Ea as KeyFactCard, + oo as Label, + ao as Menubar, + no as MenubarCheckboxItem, + io as MenubarContent, + lo as MenubarGroup, + uo as MenubarItem, + po as MenubarLabel, + mo as MenubarMenu, + bo as MenubarPortal, + go as MenubarRadioGroup, + Co as MenubarRadioItem, + xo as MenubarSeparator, + So as MenubarShortcut, + fo as MenubarSub, + so as MenubarSubContent, + Mo as MenubarSubTrigger, + co as MenubarTrigger, + ja as NavBreadcrumb, + To as NavigationMenu, vo as NavigationMenuContent, - wo as NavigationMenuIndicator, - Ao as NavigationMenuItem, - ho as NavigationMenuLink, - Lo as NavigationMenuList, - Fo as NavigationMenuTrigger, - Go as NavigationMenuViewport, - p as NextLinkProvider, - Ro as Pagination, - Ho as PaginationContent, - No as PaginationEllipsis, - yo as PaginationItem, - Oo as PaginationLink, - Vo as PaginationNext, - zo as PaginationPrevious, - Uo as Popover, - jo as PopoverAnchor, - qo as PopoverContent, - Jo as PopoverTrigger, - Qo as Progress, - Xo as RadioGroup, - Yo as RadioGroupItem, - _o as ResizableHandle, - $o as ResizablePanel, - et as ResizablePanelGroup, - ot as ScrollArea, - tt as ScrollBar, - nt as Select, - it as SelectContent, - lt as SelectGroup, - ut as SelectItem, - pt as SelectLabel, - mt as SelectScrollDownButton, - dt as SelectScrollUpButton, - gt as SelectSeparator, - bt as SelectTrigger, - Ct as SelectValue, - xt as Separator, - st as Sheet, - Dt as SheetClose, - Tt as SheetContent, - ct as SheetDescription, - ft as SheetFooter, - It as SheetHeader, - Pt as SheetTitle, + Io as NavigationMenuIndicator, + Po as NavigationMenuItem, + wo as NavigationMenuLink, + ho as NavigationMenuList, + Ao as NavigationMenuTrigger, + Lo as NavigationMenuViewport, + l as NextLinkProvider, + Ja as Notification, + Bo as Pagination, + ko as PaginationContent, + Ro as PaginationEllipsis, + No as PaginationItem, + Ho as PaginationLink, + yo as PaginationNext, + Oo as PaginationPrevious, + zo as Popover, + Eo as PopoverAnchor, + Wo as PopoverContent, + Ko as PopoverTrigger, + Xa as ProblemsOverview, + jo as Progress, + Jo as RadioGroup, + Qo as RadioGroupItem, + Yo as ResizableHandle, + Zo as ResizablePanel, + _o as ResizablePanelGroup, + Ga as RootLayout, + et as ScrollArea, + rt as ScrollBar, + tt as Select, + at as SelectContent, + nt as SelectGroup, + it as SelectItem, + lt as SelectLabel, + ut as SelectScrollDownButton, + pt as SelectScrollUpButton, + dt as SelectSeparator, + mt as SelectTrigger, + bt as SelectValue, + Za as SelectWithOptions, + Ct as Separator, + eo as ShadInput, + St as Sheet, + ft as SheetClose, + st as SheetContent, + Mt as SheetDescription, + ct as SheetFooter, + Dt as SheetHeader, + Tt as SheetTitle, vt as SheetTrigger, - At as Sidebar, - ht as SidebarContent, - Lt as SidebarFooter, - Ft as SidebarGroup, - Gt as SidebarGroupAction, - Bt as SidebarGroupContent, - kt as SidebarGroupLabel, - Rt as SidebarHeader, - Ht as SidebarInput, - Nt as SidebarInset, - yt as SidebarMenu, - Ot as SidebarMenuAction, - Vt as SidebarMenuBadge, - zt as SidebarMenuButton, - Et as SidebarMenuItem, - Ut as SidebarMenuSkeleton, - jt as SidebarMenuSub, - qt as SidebarMenuSubButton, - Jt as SidebarMenuSubItem, - Kt as SidebarProvider, - Qt as SidebarRail, - Wt as SidebarSeparator, - Xt as SidebarTrigger, - _t as Skeleton, - ea as Slider, - aa as Switch, - ia as Table, - la as TableBody, - ua as TableCaption, - pa as TableCell, - ma as TableFooter, - da as TableHead, - ga as TableHeader, - ba as TableRow, - Sa as Tabs, - xa as TabsContent, - Ma as TabsList, - sa as TabsTrigger, - Ta as Textarea, - oa as Toaster, + Pt as Sidebar, + wt as SidebarContent, + ht as SidebarFooter, + At as SidebarGroup, + Lt as SidebarGroupAction, + Ft as SidebarGroupContent, + Gt as SidebarGroupLabel, + Bt as SidebarHeader, + kt as SidebarInput, + Rt as SidebarInset, + Nt as SidebarMenu, + Ht as SidebarMenuAction, + yt as SidebarMenuBadge, + Ot as SidebarMenuButton, + Vt as SidebarMenuItem, + zt as SidebarMenuSkeleton, + Et as SidebarMenuSub, + Wt as SidebarMenuSubButton, + Kt as SidebarMenuSubItem, + Ut as SidebarProvider, + jt as SidebarRail, + qt as SidebarSeparator, + Jt as SidebarTrigger, + ka as Sidenav, + Yt as Skeleton, + _t as Slider, + ya as StatCard, + oa as Switch, + aa as Table, + na as TableBody, + ia as TableCaption, + la as TableCell, + ua as TableFooter, + pa as TableHead, + da as TableHeader, + ma as TableRow, + ga as Tabs, + Ca as TabsContent, + xa as TabsList, + Sa as TabsTrigger, + sa as Textarea, + n as ThemeProvider, + ea as Toaster, va as Toggle, - fa as ToggleGroup, - Ia as ToggleGroupItem, - ha as Tooltip, - La as TooltipContent, - Fa as TooltipProvider, - Ga as TooltipTrigger, - l as UIThemeProvider, - z as badgeVariants, - Z as buttonVariants, - Bo as navigationMenuTriggerStyle, - wa as toggleVariants, - Jr as useFormField, - m as useNextLink, - Yt as useSidebar, - n as useTheme + ca as ToggleGroup, + Da as ToggleGroupItem, + wa as Tooltip, + ha as TooltipContent, + Aa as TooltipProvider, + La as TooltipTrigger, + O as badgeVariants, + X as buttonVariants, + Fo as navigationMenuTriggerStyle, + Ia as toggleVariants, + Kr as useFormField, + u as useNextLink, + Qt as useSidebar }; diff --git a/dist/index.es10.js b/dist/index.es10.js index 45dd6e41..5b1e08b0 100644 --- a/dist/index.es10.js +++ b/dist/index.es10.js @@ -1,7 +1,31 @@ -import * as e from "@radix-ui/react-aspect-ratio"; -function o({ ...t }) { - return /* @__PURE__ */ React.createElement(e.Root, { "data-slot": "aspect-ratio", ...t }); +import { j as e } from "./index.es64.js"; +import * as r from "@radix-ui/react-avatar"; +import { cn as l } from "./index.es65.js"; +function i({ className: a, ...t }) { + return /* @__PURE__ */ e.jsx( + r.Root, + { + "data-slot": "avatar", + className: l("relative flex size-8 shrink-0 overflow-hidden rounded-full", a), + ...t + } + ); +} +function n({ className: a, ...t }) { + return /* @__PURE__ */ e.jsx(r.Image, { "data-slot": "avatar-image", className: l("aspect-square size-full", a), ...t }); +} +function m({ className: a, ...t }) { + return /* @__PURE__ */ e.jsx( + r.Fallback, + { + "data-slot": "avatar-fallback", + className: l("bg-muted flex size-full items-center justify-center rounded-full", a), + ...t + } + ); } export { - o as AspectRatio + i as Avatar, + m as AvatarFallback, + n as AvatarImage }; diff --git a/dist/index.es11.js b/dist/index.es11.js index 39fbb361..4217136c 100644 --- a/dist/index.es11.js +++ b/dist/index.es11.js @@ -1,41 +1,33 @@ -import * as l from "react"; -import * as t from "@radix-ui/react-avatar"; -import { cn as i } from "./index.es54.js"; -function n({ className: a, ...e }) { - return /* @__PURE__ */ l.createElement( - t.Root, - { - "data-slot": "avatar", - className: i("lib:relative lib:flex lib:size-8 lib:shrink-0 lib:overflow-hidden lib:rounded-full", a), - ...e +import { j as o } from "./index.es64.js"; +import { Slot as n } from "@radix-ui/react-slot"; +import { cva as s } from "class-variance-authority"; +import { cn as d } from "./index.es65.js"; +const c = s( + "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", + { + variants: { + variant: { + default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90", + secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90", + destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", + outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground" + } + }, + defaultVariants: { + variant: "default" } - ); -} -function o({ className: a, ...e }) { - return /* @__PURE__ */ l.createElement( - t.Image, - { - "data-slot": "avatar-image", - className: i("lib:aspect-square lib:size-full", a), - ...e - } - ); -} -function s({ className: a, ...e }) { - return /* @__PURE__ */ l.createElement( - t.Fallback, - { - "data-slot": "avatar-fallback", - className: i( - "lib:bg-muted lib:flex lib:size-full lib:items-center lib:justify-center lib:rounded-full", - a - ), - ...e - } - ); + } +); +function b({ + className: r, + variant: e, + asChild: t = !1, + ...i +}) { + const a = t ? n : "span"; + return /* @__PURE__ */ o.jsx(a, { "data-slot": "badge", className: d(c({ variant: e }), r), ...i }); } export { - n as Avatar, - s as AvatarFallback, - o as AvatarImage + b as Badge, + c as badgeVariants }; diff --git a/dist/index.es12.js b/dist/index.es12.js index d7ac61ae..c40bfc1d 100644 --- a/dist/index.es12.js +++ b/dist/index.es12.js @@ -1,33 +1,82 @@ -import * as b from "react"; -import { Slot as l } from "@radix-ui/react-slot"; -import { cva as n } from "class-variance-authority"; -import { cn as o } from "./index.es54.js"; -const s = n( - "lib:inline-flex lib:items-center lib:justify-center lib:rounded-md lib:border lib:px-2 lib:py-0.5 lib:text-xs lib:font-medium lib:w-fit lib:whitespace-nowrap lib:shrink-0 [&>svg]:lib:size-3 lib:gap-1 [&>svg]:lib:pointer-events-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:transition-[color,box-shadow] lib:overflow-hidden", - { - variants: { - variant: { - default: "lib:border-transparent lib:bg-primary lib:text-primary-foreground [a&]:hover:lib:bg-primary/90", - secondary: "lib:border-transparent lib:bg-secondary lib:text-secondary-foreground [a&]:hover:lib:bg-secondary/90", - destructive: "lib:border-transparent lib:bg-destructive lib:text-white [a&]:hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60", - outline: "lib:text-foreground [a&]:hover:lib:bg-accent [a&]:hover:lib:text-accent-foreground" - } - }, - defaultVariants: { - variant: "default" +import { j as a } from "./index.es64.js"; +import { Slot as o } from "@radix-ui/react-slot"; +import { ChevronRight as i, MoreHorizontal as l } from "lucide-react"; +import { cn as t } from "./index.es65.js"; +function b({ ...r }) { + return /* @__PURE__ */ a.jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...r }); +} +function p({ className: r, ...e }) { + return /* @__PURE__ */ a.jsx( + "ol", + { + "data-slot": "breadcrumb-list", + className: t( + "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", + r + ), + ...e } - } -); -function u({ - className: i, - variant: r, - asChild: e = !1, - ...t + ); +} +function x({ className: r, ...e }) { + return /* @__PURE__ */ a.jsx("li", { "data-slot": "breadcrumb-item", className: t("inline-flex items-center gap-1.5", r), ...e }); +} +function f({ + asChild: r, + className: e, + ...s }) { - const a = e ? l : "span"; - return /* @__PURE__ */ b.createElement(a, { "data-slot": "badge", className: o(s({ variant: r }), i), ...t }); + const n = r ? o : "a"; + return /* @__PURE__ */ a.jsx(n, { "data-slot": "breadcrumb-link", className: t("hover:text-foreground transition-colors", e), ...s }); +} +function j({ className: r, ...e }) { + return /* @__PURE__ */ a.jsx( + "span", + { + "data-slot": "breadcrumb-page", + role: "link", + "aria-disabled": "true", + "aria-current": "page", + className: t("text-foreground font-normal", r), + ...e + } + ); +} +function g({ children: r, className: e, ...s }) { + return /* @__PURE__ */ a.jsx( + "li", + { + "data-slot": "breadcrumb-separator", + role: "presentation", + "aria-hidden": "true", + className: t("[&>svg]:size-3.5", e), + ...s, + children: r ?? /* @__PURE__ */ a.jsx(i, {}) + } + ); +} +function h({ className: r, ...e }) { + return /* @__PURE__ */ a.jsxs( + "span", + { + "data-slot": "breadcrumb-ellipsis", + role: "presentation", + "aria-hidden": "true", + className: t("flex size-9 items-center justify-center", r), + ...e, + children: [ + /* @__PURE__ */ a.jsx(l, { className: "size-4" }), + /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "More" }) + ] + } + ); } export { - u as Badge, - s as badgeVariants + b as Breadcrumb, + h as BreadcrumbEllipsis, + x as BreadcrumbItem, + f as BreadcrumbLink, + p as BreadcrumbList, + j as BreadcrumbPage, + g as BreadcrumbSeparator }; diff --git a/dist/index.es13.js b/dist/index.es13.js index 2242b6a9..a8cfb942 100644 --- a/dist/index.es13.js +++ b/dist/index.es13.js @@ -1,94 +1,43 @@ -import * as t from "react"; -import { Slot as n } from "@radix-ui/react-slot"; -import { ChevronRight as o, MoreHorizontal as s } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function u({ ...e }) { - return /* @__PURE__ */ t.createElement("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...e }); -} -function d({ className: e, ...r }) { - return /* @__PURE__ */ t.createElement( - "ol", - { - "data-slot": "breadcrumb-list", - className: a( - "lib:text-muted-foreground lib:flex lib:flex-wrap lib:items-center lib:gap-1.5 lib:text-sm lib:break-words sm:lib:gap-2.5", - e - ), - ...r - } - ); -} -function p({ className: e, ...r }) { - return /* @__PURE__ */ t.createElement( - "li", - { - "data-slot": "breadcrumb-item", - className: a("lib:inline-flex lib:items-center lib:gap-1.5", e), - ...r +import { j as s } from "./index.es64.js"; +import { Slot as a } from "@radix-ui/react-slot"; +import { cva as d } from "class-variance-authority"; +import { cn as u } from "./index.es65.js"; +const c = d( + "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", + { + variants: { + variant: { + default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90", + destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60", + outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50", + secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80", + ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50", + link: "text-primary underline-offset-4 hover:underline" + }, + size: { + default: "h-9 px-4 py-2 has-[>svg]:px-3", + sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5", + lg: "h-10 rounded-md px-6 has-[>svg]:px-4", + icon: "size-9" + } + }, + defaultVariants: { + variant: "default", + size: "default" } - ); -} -function f({ - asChild: e, - className: r, - ...l + } +); +function b({ + className: e, + variant: r, + size: t, + asChild: i = !1, + ...n }) { - const i = e ? n : "a"; - return /* @__PURE__ */ t.createElement( - i, - { - "data-slot": "breadcrumb-link", - className: a("hover:lib:text-foreground lib:transition-colors", r), - ...l - } - ); -} -function g({ className: e, ...r }) { - return /* @__PURE__ */ t.createElement( - "span", - { - "data-slot": "breadcrumb-page", - role: "link", - "aria-disabled": "true", - "aria-current": "page", - className: a("lib:text-foreground lib:font-normal", e), - ...r - } - ); -} -function E({ children: e, className: r, ...l }) { - return /* @__PURE__ */ t.createElement( - "li", - { - "data-slot": "breadcrumb-separator", - role: "presentation", - "aria-hidden": "true", - className: a("[&>svg]:lib:size-3.5", r), - ...l - }, - e ?? /* @__PURE__ */ t.createElement(o, null) - ); -} -function x({ className: e, ...r }) { - return /* @__PURE__ */ t.createElement( - "span", - { - "data-slot": "breadcrumb-ellipsis", - role: "presentation", - "aria-hidden": "true", - className: a("lib:flex lib:size-9 lib:items-center lib:justify-center", e), - ...r - }, - /* @__PURE__ */ t.createElement(s, { className: "lib:size-4" }), - /* @__PURE__ */ t.createElement("span", { className: "lib:sr-only" }, "More") - ); + const o = i ? a : "button"; + return /* @__PURE__ */ s.jsx(o, { "data-slot": "button", className: u(c({ variant: r, size: t, className: e })), ...n }); } export { - u as Breadcrumb, - x as BreadcrumbEllipsis, - p as BreadcrumbItem, - f as BreadcrumbLink, - d as BreadcrumbList, - g as BreadcrumbPage, - E as BreadcrumbSeparator + b as Button, + c as buttonVariants }; diff --git a/dist/index.es14.js b/dist/index.es14.js index 8aa0f9fd..41ac2e24 100644 --- a/dist/index.es14.js +++ b/dist/index.es14.js @@ -1,43 +1,129 @@ -import * as n from "react"; -import { Slot as o } from "@radix-ui/react-slot"; -import { cva as a } from "class-variance-authority"; -import { cn as s } from "./index.es54.js"; -const d = a( - "lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:whitespace-nowrap lib:rounded-md lib:text-sm lib:font-medium lib:transition-all disabled:lib:pointer-events-none disabled:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 lib:shrink-0 [&_svg]:lib:shrink-0 lib:outline-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive", - { - variants: { - variant: { - default: "lib:bg-primary lib:text-primary-foreground lib:shadow-xs hover:lib:bg-primary/90", - destructive: "lib:bg-destructive lib:text-white lib:shadow-xs hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60", - outline: "lib:border lib:bg-background lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground dark:lib:bg-input/30 dark:lib:border-input dark:hover:lib:bg-input/50", - secondary: "lib:bg-secondary lib:text-secondary-foreground lib:shadow-xs hover:lib:bg-secondary/80", - ghost: "hover:lib:bg-accent hover:lib:text-accent-foreground dark:hover:lib:bg-accent/50", - link: "lib:text-primary lib:underline-offset-4 hover:lib:underline" +import { j as n } from "./index.es64.js"; +import * as g from "react"; +import { ChevronLeftIcon as b, ChevronRightIcon as w, ChevronDownIcon as _ } from "lucide-react"; +import { getDefaultClassNames as f, DayPicker as h } from "react-day-picker"; +import { cn as e } from "./index.es65.js"; +import { buttonVariants as m, Button as y } from "./index.es13.js"; +function D({ + className: c, + classNames: i, + showOutsideDays: r = !0, + captionLayout: s = "label", + buttonVariant: l = "ghost", + formatters: u, + components: p, + ...x +}) { + const t = f(); + return /* @__PURE__ */ n.jsx( + h, + { + showOutsideDays: r, + className: e( + "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", + String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, + String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, + c + ), + captionLayout: s, + formatters: { + formatMonthDropdown: (a) => a.toLocaleString("default", { month: "short" }), + ...u + }, + classNames: { + root: e("w-fit", t.root), + months: e("flex gap-4 flex-col md:flex-row relative", t.months), + month: e("flex flex-col w-full gap-4", t.month), + nav: e("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", t.nav), + button_previous: e( + m({ variant: l }), + "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", + t.button_previous + ), + button_next: e( + m({ variant: l }), + "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", + t.button_next + ), + month_caption: e( + "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", + t.month_caption + ), + dropdowns: e( + "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", + t.dropdowns + ), + dropdown_root: e( + "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md", + t.dropdown_root + ), + dropdown: e("absolute inset-0 opacity-0", t.dropdown), + caption_label: e( + "select-none font-medium", + s === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", + t.caption_label + ), + table: "w-full border-collapse", + weekdays: e("flex", t.weekdays), + weekday: e( + "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", + t.weekday + ), + week: e("flex w-full mt-2", t.week), + week_number_header: e("select-none w-(--cell-size)", t.week_number_header), + week_number: e("text-[0.8rem] select-none text-muted-foreground", t.week_number), + day: e( + "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", + t.day + ), + range_start: e("rounded-l-md bg-accent", t.range_start), + range_middle: e("rounded-none", t.range_middle), + range_end: e("rounded-r-md bg-accent", t.range_end), + today: e( + "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", + t.today + ), + outside: e("text-muted-foreground aria-selected:text-muted-foreground", t.outside), + disabled: e("text-muted-foreground opacity-50", t.disabled), + hidden: e("invisible", t.hidden), + ...i + }, + components: { + Root: ({ className: a, rootRef: d, ...o }) => /* @__PURE__ */ n.jsx("div", { "data-slot": "calendar", ref: d, className: e(a), ...o }), + Chevron: ({ className: a, orientation: d, ...o }) => d === "left" ? /* @__PURE__ */ n.jsx(b, { className: e("size-4", a), ...o }) : d === "right" ? /* @__PURE__ */ n.jsx(w, { className: e("size-4", a), ...o }) : /* @__PURE__ */ n.jsx(_, { className: e("size-4", a), ...o }), + DayButton: v, + WeekNumber: ({ children: a, ...d }) => /* @__PURE__ */ n.jsx("td", { ...d, children: /* @__PURE__ */ n.jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children: a }) }), + ...p }, - size: { - default: "lib:h-9 lib:px-4 lib:py-2 has-[>svg]:lib:px-3", - sm: "lib:h-8 lib:rounded-md lib:gap-1.5 lib:px-3 has-[>svg]:lib:px-2.5", - lg: "lib:h-10 lib:rounded-md lib:px-6 has-[>svg]:lib:px-4", - icon: "lib:size-9" - } - }, - defaultVariants: { - variant: "default", - size: "default" + ...x } - } -); -function g({ - className: i, - variant: e, - size: l, - asChild: r = !1, - ...b -}) { - const t = r ? o : "button"; - return /* @__PURE__ */ n.createElement(t, { "data-slot": "button", className: s(d({ variant: e, size: l, className: i })), ...b }); + ); +} +function v({ className: c, day: i, modifiers: r, ...s }) { + const l = f(), u = g.useRef(null); + return g.useEffect(() => { + r.focused && u.current?.focus(); + }, [r.focused]), /* @__PURE__ */ n.jsx( + y, + { + ref: u, + variant: "ghost", + size: "icon", + "data-day": i.date.toLocaleDateString(), + "data-selected-single": r.selected && !r.range_start && !r.range_end && !r.range_middle, + "data-range-start": r.range_start, + "data-range-end": r.range_end, + "data-range-middle": r.range_middle, + className: e( + "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", + l.day, + c + ), + ...s + } + ); } export { - g as Button, - d as buttonVariants + D as Calendar, + v as CalendarDayButton }; diff --git a/dist/index.es15.js b/dist/index.es15.js index c90cab56..0c17959d 100644 --- a/dist/index.es15.js +++ b/dist/index.es15.js @@ -1,56 +1,56 @@ -import * as a from "react"; -import { ChevronRight as n, ChevronLeft as s } from "lucide-react"; -import { DayPicker as c } from "react-day-picker"; -import { cn as e } from "./index.es54.js"; -import { buttonVariants as r } from "./index.es14.js"; -function p({ className: b, classNames: o, showOutsideDays: d = !0, ...t }) { - return /* @__PURE__ */ a.createElement( - c, +import { j as a } from "./index.es64.js"; +import { cn as o } from "./index.es65.js"; +function s({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx( + "div", { - showOutsideDays: d, - className: e("lib:p-3", b), - classNames: { - months: "lib:flex lib:flex-col sm:lib:flex-row lib:gap-2", - month: "lib:flex lib:flex-col lib:gap-4", - caption: "lib:flex lib:justify-center lib:pt-1 lib:relative lib:items-center lib:w-full", - caption_label: "lib:text-sm lib:font-medium", - nav: "lib:flex lib:items-center lib:gap-1", - nav_button: e( - r({ variant: "outline" }), - "lib:size-7 lib:bg-transparent lib:p-0 lib:opacity-50 hover:lib:opacity-100" - ), - nav_button_previous: "lib:absolute lib:left-1", - nav_button_next: "lib:absolute lib:right-1", - table: "lib:w-full lib:border-collapse lib:space-x-1", - head_row: "lib:flex", - head_cell: "lib:text-muted-foreground lib:rounded-md lib:w-8 lib:font-normal lib:text-[0.8rem]", - row: "lib:flex lib:w-full lib:mt-2", - cell: e( - "lib:relative lib:p-0 lib:text-center lib:text-sm focus-within:lib:relative focus-within:lib:z-20 [&:has([aria-selected])]:lib:bg-accent [&:has([aria-selected].day-range-end)]:lib:rounded-r-md", - t.mode === "range" ? "[&:has(>.day-range-end)]:lib:rounded-r-md [&:has(>.day-range-start)]:lib:rounded-l-md first:[&:has([aria-selected])]:lib:rounded-l-md last:[&:has([aria-selected])]:lib:rounded-r-md" : "[&:has([aria-selected])]:lib:rounded-md" - ), - day: e( - r({ variant: "ghost" }), - "lib:size-8 lib:p-0 lib:font-normal aria-selected:lib:opacity-100" - ), - day_range_start: "lib:day-range-start aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground", - day_range_end: "lib:day-range-end aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground", - day_selected: "lib:bg-primary lib:text-primary-foreground hover:lib:bg-primary hover:lib:text-primary-foreground focus:lib:bg-primary focus:lib:text-primary-foreground", - day_today: "lib:bg-accent lib:text-accent-foreground", - day_outside: "lib:day-outside lib:text-muted-foreground aria-selected:lib:text-muted-foreground", - day_disabled: "lib:text-muted-foreground lib:opacity-50", - day_range_middle: "aria-selected:lib:bg-accent aria-selected:lib:text-accent-foreground", - day_hidden: "lib:invisible", - ...o - }, - components: { - IconLeft: ({ className: i, ...l }) => /* @__PURE__ */ a.createElement(s, { className: e("lib:size-4", i), ...l }), - IconRight: ({ className: i, ...l }) => /* @__PURE__ */ a.createElement(n, { className: e("lib:size-4", i), ...l }) - }, - ...t + "data-slot": "card", + className: o("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", t), + ...r } ); } +function n({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx( + "div", + { + "data-slot": "card-header", + className: o( + "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", + t + ), + ...r + } + ); +} +function c({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-title", className: o("leading-none font-semibold", t), ...r }); +} +function i({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-description", className: o("text-muted-foreground text-sm", t), ...r }); +} +function l({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx( + "div", + { + "data-slot": "card-action", + className: o("col-start-2 row-span-2 row-start-1 self-start justify-self-end", t), + ...r + } + ); +} +function u({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-content", className: o("px-6", t), ...r }); +} +function f({ className: t, ...r }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "card-footer", className: o("flex items-center px-6 [.border-t]:pt-6", t), ...r }); +} export { - p as Calendar + s as Card, + l as CardAction, + u as CardContent, + i as CardDescription, + f as CardFooter, + n as CardHeader, + c as CardTitle }; diff --git a/dist/index.es16.js b/dist/index.es16.js index 13ca3921..c81a1f00 100644 --- a/dist/index.es16.js +++ b/dist/index.es16.js @@ -1,66 +1,155 @@ -import * as a from "react"; -import { cn as r } from "./index.es54.js"; -function l({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement( - "div", +import { j as l } from "./index.es64.js"; +import * as s from "react"; +import y from "embla-carousel-react"; +import { ArrowLeft as P, ArrowRight as k } from "lucide-react"; +import { cn as x } from "./index.es65.js"; +import { Button as h } from "./index.es13.js"; +const v = s.createContext(null); +function d() { + const o = s.useContext(v); + if (!o) + throw new Error("useCarousel must be used within a "); + return o; +} +function A({ + orientation: o = "horizontal", + opts: r, + setApi: t, + plugins: n, + className: c, + children: i, + ...u +}) { + const [p, e] = y( { - "data-slot": "card", - className: r( - "lib:bg-card lib:text-card-foreground lib:flex lib:flex-col lib:gap-6 lib:rounded-xl lib:border lib:py-6 lib:shadow-sm", - t - ), - ...e - } + ...r, + axis: o === "horizontal" ? "x" : "y" + }, + n + ), [N, j] = s.useState(!1), [b, w] = s.useState(!1), f = s.useCallback((a) => { + a && (j(a.canScrollPrev()), w(a.canScrollNext())); + }, []), m = s.useCallback(() => { + e?.scrollPrev(); + }, [e]), C = s.useCallback(() => { + e?.scrollNext(); + }, [e]), S = s.useCallback( + (a) => { + a.key === "ArrowLeft" ? (a.preventDefault(), m()) : a.key === "ArrowRight" && (a.preventDefault(), C()); + }, + [m, C] ); -} -function o({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement( - "div", + return s.useEffect(() => { + !e || !t || t(e); + }, [e, t]), s.useEffect(() => { + if (e) + return f(e), e.on("reInit", f), e.on("select", f), () => { + e?.off("select", f); + }; + }, [e, f]), /* @__PURE__ */ l.jsx( + v.Provider, { - "data-slot": "card-header", - className: r( - "lib:@container/card-header lib:grid lib:auto-rows-min lib:grid-rows-[auto_auto] lib:items-start lib:gap-1.5 lib:px-6 has-data-[slot=card-action]:lib:grid-cols-[1fr_auto] [.border-b]:lib:pb-6", - t - ), - ...e + value: { + carouselRef: p, + api: e, + opts: r, + orientation: o || (r?.axis === "y" ? "vertical" : "horizontal"), + scrollPrev: m, + scrollNext: C, + canScrollPrev: N, + canScrollNext: b + }, + children: /* @__PURE__ */ l.jsx( + "div", + { + onKeyDownCapture: S, + className: x("relative", c), + role: "region", + "aria-roledescription": "carousel", + "data-slot": "carousel", + ...u, + children: i + } + ) } ); } -function d({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement("div", { "data-slot": "card-title", className: r("lib:leading-none lib:font-semibold", t), ...e }); +function I({ className: o, ...r }) { + const { carouselRef: t, orientation: n } = d(); + return /* @__PURE__ */ l.jsx("div", { ref: t, className: "overflow-hidden", "data-slot": "carousel-content", children: /* @__PURE__ */ l.jsx("div", { className: x("flex", n === "horizontal" ? "-ml-4" : "-mt-4 flex-col", o), ...r }) }); } -function n({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement("div", { "data-slot": "card-description", className: r("lib:text-muted-foreground lib:text-sm", t), ...e }); -} -function c({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement( +function K({ className: o, ...r }) { + const { orientation: t } = d(); + return /* @__PURE__ */ l.jsx( "div", { - "data-slot": "card-action", - className: r("lib:col-start-2 lib:row-span-2 lib:row-start-1 lib:self-start lib:justify-self-end", t), - ...e + role: "group", + "aria-roledescription": "slide", + "data-slot": "carousel-item", + className: x("min-w-0 shrink-0 grow-0 basis-full", t === "horizontal" ? "pl-4" : "pt-4", o), + ...r } ); } -function s({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement("div", { "data-slot": "card-content", className: r("lib:px-6", t), ...e }); +function L({ + className: o, + variant: r = "outline", + size: t = "icon", + ...n +}) { + const { orientation: c, scrollPrev: i, canScrollPrev: u } = d(); + return /* @__PURE__ */ l.jsxs( + h, + { + "data-slot": "carousel-previous", + variant: r, + size: t, + className: x( + "absolute size-8 rounded-full", + c === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", + o + ), + disabled: !u, + onClick: i, + ...n, + children: [ + /* @__PURE__ */ l.jsx(P, {}), + /* @__PURE__ */ l.jsx("span", { className: "sr-only", children: "Previous slide" }) + ] + } + ); } -function b({ className: t, ...e }) { - return /* @__PURE__ */ a.createElement( - "div", +function B({ + className: o, + variant: r = "outline", + size: t = "icon", + ...n +}) { + const { orientation: c, scrollNext: i, canScrollNext: u } = d(); + return /* @__PURE__ */ l.jsxs( + h, { - "data-slot": "card-footer", - className: r("lib:flex lib:items-center lib:px-6 [.border-t]:lib:pt-6", t), - ...e + "data-slot": "carousel-next", + variant: r, + size: t, + className: x( + "absolute size-8 rounded-full", + c === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", + o + ), + disabled: !u, + onClick: i, + ...n, + children: [ + /* @__PURE__ */ l.jsx(k, {}), + /* @__PURE__ */ l.jsx("span", { className: "sr-only", children: "Next slide" }) + ] } ); } export { - l as Card, - c as CardAction, - s as CardContent, - n as CardDescription, - b as CardFooter, - o as CardHeader, - d as CardTitle + A as Carousel, + I as CarouselContent, + K as CarouselItem, + B as CarouselNext, + L as CarouselPrevious }; diff --git a/dist/index.es17.js b/dist/index.es17.js index 807c4326..0b166bcf 100644 --- a/dist/index.es17.js +++ b/dist/index.es17.js @@ -1,160 +1,185 @@ -import * as e from "react"; -import S from "embla-carousel-react"; -import { ArrowLeft as y, ArrowRight as P } from "lucide-react"; -import { cn as b } from "./index.es54.js"; -import { Button as C } from "./index.es14.js"; -const x = e.createContext(null); -function f() { - const t = e.useContext(x); - if (!t) - throw new Error("useCarousel must be used within a "); - return t; +import { j as r } from "./index.es64.js"; +import * as x from "react"; +import * as b from "recharts"; +import { cn as l } from "./index.es65.js"; +const L = { light: "", dark: ".dark" }, w = x.createContext(null); +function N() { + const c = x.useContext(w); + if (!c) + throw new Error("useChart must be used within a "); + return c; } -function D({ - orientation: t = "horizontal", - opts: o, - setApi: r, - plugins: n, - className: i, +function I({ + id: c, + className: e, children: s, - ...c + config: t, + ...a }) { - const [v, l] = S( - { - ...o, - axis: t === "horizontal" ? "x" : "y" - }, - n - ), [N, h] = e.useState(!1), [p, E] = e.useState(!1), u = e.useCallback((a) => { - a && (h(a.canScrollPrev()), E(a.canScrollNext())); - }, []), m = e.useCallback(() => { - l?.scrollPrev(); - }, [l]), d = e.useCallback(() => { - l?.scrollNext(); - }, [l]), w = e.useCallback( - (a) => { - a.key === "ArrowLeft" ? (a.preventDefault(), m()) : a.key === "ArrowRight" && (a.preventDefault(), d()); - }, - [m, d] - ); - return e.useEffect(() => { - !l || !r || r(l); - }, [l, r]), e.useEffect(() => { - if (l) - return u(l), l.on("reInit", u), l.on("select", u), () => { - l?.off("select", u); - }; - }, [l, u]), /* @__PURE__ */ e.createElement( - x.Provider, - { - value: { - carouselRef: v, - api: l, - opts: o, - orientation: t || (o?.axis === "y" ? "vertical" : "horizontal"), - scrollPrev: m, - scrollNext: d, - canScrollPrev: N, - canScrollNext: p - } - }, - /* @__PURE__ */ e.createElement( - "div", - { - onKeyDownCapture: w, - className: b("lib:relative", i), - role: "region", - "aria-roledescription": "carousel", - "data-slot": "carousel", - ...c - }, - s - ) - ); -} -function A({ className: t, ...o }) { - const { carouselRef: r, orientation: n } = f(); - return /* @__PURE__ */ e.createElement("div", { ref: r, className: "lib:overflow-hidden", "data-slot": "carousel-content" }, /* @__PURE__ */ e.createElement( + const d = x.useId(), o = `chart-${c || d.replace(/:/g, "")}`; + return /* @__PURE__ */ r.jsx(w.Provider, { value: { config: t }, children: /* @__PURE__ */ r.jsxs( "div", { - className: b("lib:flex", n === "horizontal" ? "lib:-ml-4" : "lib:-mt-4 lib:flex-col", t), - ...o + "data-slot": "chart", + "data-chart": o, + className: l( + "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", + e + ), + ...a, + children: [ + /* @__PURE__ */ r.jsx(P, { id: o, config: t }), + /* @__PURE__ */ r.jsx(b.ResponsiveContainer, { children: s }) + ] } - )); + ) }); } -function I({ className: t, ...o }) { - const { orientation: r } = f(); - return /* @__PURE__ */ e.createElement( - "div", +const P = ({ id: c, config: e }) => { + const s = Object.entries(e).filter(([, t]) => t.theme || t.color); + return s.length ? /* @__PURE__ */ r.jsx( + "style", { - role: "group", - "aria-roledescription": "slide", - "data-slot": "carousel-item", - className: b( - "lib:min-w-0 lib:shrink-0 lib:grow-0 lib:basis-full", - r === "horizontal" ? "lib:pl-4" : "lib:pt-4", - t - ), - ...o - } - ); + dangerouslySetInnerHTML: { + __html: Object.entries(L).map( + ([t, a]) => ` +${a} [data-chart=${c}] { +${s.map(([d, o]) => { + const i = o.theme?.[t] || o.color; + return i ? ` --color-${d}: ${i};` : null; + }).join(` +`)} } -function K({ - className: t, - variant: o = "outline", - size: r = "icon", - ...n +` + ).join(` +`) + } + } + ) : null; +}, R = b.Tooltip; +function S({ + active: c, + payload: e, + className: s, + indicator: t = "dot", + hideLabel: a = !1, + hideIndicator: d = !1, + label: o, + labelFormatter: i, + labelClassName: u, + formatter: C, + color: y, + nameKey: $, + labelKey: m }) { - const { orientation: i, scrollPrev: s, canScrollPrev: c } = f(); - return /* @__PURE__ */ e.createElement( - C, + const { config: f } = N(), _ = x.useMemo(() => { + if (a || !e?.length) + return null; + const [n] = e, p = `${m || n?.dataKey || n?.name || "value"}`, v = j(f, n, p), h = !m && typeof o == "string" ? f[o]?.label || o : v?.label; + return i ? /* @__PURE__ */ r.jsx("div", { className: l("font-medium", u), children: i(h, e) }) : h ? /* @__PURE__ */ r.jsx("div", { className: l("font-medium", u), children: h }) : null; + }, [o, i, e, a, u, f, m]); + if (!c || !e?.length) + return null; + const g = e.length === 1 && t !== "dot"; + return /* @__PURE__ */ r.jsxs( + "div", { - "data-slot": "carousel-previous", - variant: o, - size: r, - className: b( - "lib:absolute lib:size-8 lib:rounded-full", - i === "horizontal" ? "lib:top-1/2 lib:-left-12 lib:-translate-y-1/2" : "lib:-top-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90", - t + className: l( + "border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl", + s ), - disabled: !c, - onClick: s, - ...n - }, - /* @__PURE__ */ e.createElement(y, null), - /* @__PURE__ */ e.createElement("span", { className: "lib:sr-only" }, "Previous slide") + children: [ + g ? null : _, + /* @__PURE__ */ r.jsx("div", { className: "grid gap-1.5", children: e.map((n, p) => { + const v = `${$ || n.name || n.dataKey || "value"}`, h = j(f, n, v), k = y || n.payload.fill || n.color; + return /* @__PURE__ */ r.jsx( + "div", + { + className: l( + "[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5", + t === "dot" && "items-center" + ), + children: C && n?.value !== void 0 && n.name ? C(n.value, n.name, n, p, n.payload) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [ + h?.icon ? /* @__PURE__ */ r.jsx(h.icon, {}) : !d && /* @__PURE__ */ r.jsx( + "div", + { + className: l("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)", { + "h-2.5 w-2.5": t === "dot", + "w-1": t === "line", + "w-0 border-[1.5px] border-dashed bg-transparent": t === "dashed", + "my-0.5": g && t === "dashed" + }), + style: { + "--color-bg": k, + "--color-border": k + } + } + ), + /* @__PURE__ */ r.jsxs( + "div", + { + className: l("flex flex-1 justify-between leading-none", g ? "items-end" : "items-center"), + children: [ + /* @__PURE__ */ r.jsxs("div", { className: "grid gap-1.5", children: [ + g ? _ : null, + /* @__PURE__ */ r.jsx("span", { className: "text-muted-foreground", children: h?.label || n.name }) + ] }), + n.value && /* @__PURE__ */ r.jsx("span", { className: "text-foreground font-mono font-medium tabular-nums", children: n.value.toLocaleString() }) + ] + } + ) + ] }) + }, + n.dataKey + ); + }) }) + ] + } ); } -function L({ - className: t, - variant: o = "outline", - size: r = "icon", - ...n +const K = b.Legend; +function M({ + className: c, + hideIcon: e = !1, + payload: s, + verticalAlign: t = "bottom", + nameKey: a }) { - const { orientation: i, scrollNext: s, canScrollNext: c } = f(); - return /* @__PURE__ */ e.createElement( - C, - { - "data-slot": "carousel-next", - variant: o, - size: r, - className: b( - "lib:absolute lib:size-8 lib:rounded-full", - i === "horizontal" ? "lib:top-1/2 lib:-right-12 lib:-translate-y-1/2" : "lib:-bottom-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90", - t - ), - disabled: !c, - onClick: s, - ...n - }, - /* @__PURE__ */ e.createElement(P, null), - /* @__PURE__ */ e.createElement("span", { className: "lib:sr-only" }, "Next slide") - ); + const { config: d } = N(); + return s?.length ? /* @__PURE__ */ r.jsx("div", { className: l("flex items-center justify-center gap-4", t === "top" ? "pb-3" : "pt-3", c), children: s.map((o) => { + const i = `${a || o.dataKey || "value"}`, u = j(d, o, i); + return /* @__PURE__ */ r.jsxs( + "div", + { + className: l("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"), + children: [ + u?.icon && !e ? /* @__PURE__ */ r.jsx(u.icon, {}) : /* @__PURE__ */ r.jsx( + "div", + { + className: "h-2 w-2 shrink-0 rounded-[2px]", + style: { + backgroundColor: o.color + } + } + ), + u?.label + ] + }, + o.value + ); + }) }) : null; +} +function j(c, e, s) { + if (typeof e != "object" || e === null) + return; + const t = "payload" in e && typeof e.payload == "object" && e.payload !== null ? e.payload : void 0; + let a = s; + return s in e && typeof e[s] == "string" ? a = e[s] : t && s in t && typeof t[s] == "string" && (a = t[s]), a in c ? c[a] : c[s]; } export { - D as Carousel, - A as CarouselContent, - I as CarouselItem, - L as CarouselNext, - K as CarouselPrevious + I as ChartContainer, + K as ChartLegend, + M as ChartLegendContent, + P as ChartStyle, + R as ChartTooltip, + S as ChartTooltipContent }; diff --git a/dist/index.es18.js b/dist/index.es18.js index 05ae4117..68e52b1c 100644 --- a/dist/index.es18.js +++ b/dist/index.es18.js @@ -1,188 +1,28 @@ -import * as e from "react"; -import * as x from "recharts"; -import { cn as s } from "./index.es54.js"; -const j = { light: "", dark: ".dark" }, k = e.createContext(null); -function w() { - const i = e.useContext(k); - if (!i) - throw new Error("useChart must be used within a "); - return i; -} -function P({ - id: i, - className: t, - children: n, - config: r, - ...a -}) { - const b = e.useId(), o = `chart-${i || b.replace(/:/g, "")}`; - return /* @__PURE__ */ e.createElement(k.Provider, { value: { config: r } }, /* @__PURE__ */ e.createElement( - "div", +import { j as r } from "./index.es64.js"; +import * as e from "@radix-ui/react-checkbox"; +import { CheckIcon as a } from "lucide-react"; +import { cn as o } from "./index.es65.js"; +function c({ className: i, ...t }) { + return /* @__PURE__ */ r.jsx( + e.Root, { - "data-slot": "chart", - "data-chart": o, - className: s( - "[&_.recharts-cartesian-axis-tick_text]:lib:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke=#ccc]]:lib:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:lib:stroke-border [&_.recharts-polar-grid_[stroke=#ccc]]:lib:stroke-border [&_.recharts-radial-bar-background-sector]:lib:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:lib:fill-muted [&_.recharts-reference-line_[stroke=#ccc]]:lib:stroke-border lib:flex lib:aspect-video lib:justify-center lib:text-xs [&_.recharts-dot[stroke=#fff]]:lib:stroke-transparent [&_.recharts-layer]:lib:outline-hidden [&_.recharts-sector]:lib:outline-hidden [&_.recharts-sector[stroke=#fff]]:lib:stroke-transparent [&_.recharts-surface]:lib:outline-hidden", - t + "data-slot": "checkbox", + className: o( + "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", + i ), - ...a - }, - /* @__PURE__ */ e.createElement($, { id: o, config: r }), - /* @__PURE__ */ e.createElement(x.ResponsiveContainer, null, n) - )); -} -const $ = ({ id: i, config: t }) => { - const n = Object.entries(t).filter(([, r]) => r.theme || r.color); - return n.length ? /* @__PURE__ */ e.createElement( - "style", - { - dangerouslySetInnerHTML: { - __html: Object.entries(j).map( - ([r, a]) => ` -${a} [data-chart=${i}] { -${n.map(([b, o]) => { - const c = o.theme?.[r] || o.color; - return c ? ` --color-${b}: ${c};` : null; - }).join(` -`)} -} -` - ).join(` -`) - } - } - ) : null; -}, T = x.Tooltip; -function I({ - active: i, - payload: t, - className: n, - indicator: r = "dot", - hideLabel: a = !1, - hideIndicator: b = !1, - label: o, - labelFormatter: c, - labelClassName: u, - formatter: E, - color: y, - nameKey: N, - labelKey: h -}) { - const { config: m } = w(), C = e.useMemo(() => { - if (a || !t?.length) - return null; - const [l] = t, g = `${h || l?.dataKey || l?.name || "value"}`, v = p(m, l, g), d = !h && typeof o == "string" ? m[o]?.label || o : v?.label; - return c ? /* @__PURE__ */ e.createElement("div", { className: s("lib:font-medium", u) }, c(d, t)) : d ? /* @__PURE__ */ e.createElement("div", { className: s("lib:font-medium", u) }, d) : null; - }, [o, c, t, a, u, m, h]); - if (!i || !t?.length) - return null; - const f = t.length === 1 && r !== "dot"; - return /* @__PURE__ */ e.createElement( - "div", - { - className: s( - "lib:border-border/50 lib:bg-background lib:grid lib:min-w-[8rem] lib:items-start lib:gap-1.5 lib:rounded-lg lib:border lib:px-2.5 lib:py-1.5 lib:text-xs lib:shadow-xl", - n - ) - }, - f ? null : C, - /* @__PURE__ */ e.createElement("div", { className: "lib:grid lib:gap-1.5" }, t.map((l, g) => { - const v = `${N || l.name || l.dataKey || "value"}`, d = p(m, l, v), _ = y || l.payload.fill || l.color; - return /* @__PURE__ */ e.createElement( - "div", + ...t, + children: /* @__PURE__ */ r.jsx( + e.Indicator, { - key: l.dataKey, - className: s( - "[&>svg]:lib:text-muted-foreground lib:flex lib:w-full lib:flex-wrap lib:items-stretch lib:gap-2 [&>svg]:lib:h-2.5 [&>svg]:lib:w-2.5", - r === "dot" && "lib:items-center" - ) - }, - E && l?.value !== void 0 && l.name ? E(l.value, l.name, l, g, l.payload) : /* @__PURE__ */ e.createElement(e.Fragment, null, d?.icon ? /* @__PURE__ */ e.createElement(d.icon, null) : !b && /* @__PURE__ */ e.createElement( - "div", - { - className: s( - "lib:shrink-0 lib:rounded-[2px] lib:border-(--color-border) lib:bg-(--color-bg)", - { - "h-2.5 w-2.5": r === "dot", - "w-1": r === "line", - "w-0 border-[1.5px] border-dashed bg-transparent": r === "dashed", - "my-0.5": f && r === "dashed" - } - ), - style: { - "--color-bg": _, - "--color-border": _ - } - } - ), /* @__PURE__ */ e.createElement( - "div", - { - className: s( - "lib:flex lib:flex-1 lib:justify-between lib:leading-none", - f ? "lib:items-end" : "lib:items-center" - ) - }, - /* @__PURE__ */ e.createElement("div", { className: "lib:grid lib:gap-1.5" }, f ? C : null, /* @__PURE__ */ e.createElement("span", { className: "lib:text-muted-foreground" }, d?.label || l.name)), - l.value && /* @__PURE__ */ e.createElement("span", { className: "lib:text-foreground lib:font-mono lib:font-medium lib:tabular-nums" }, l.value.toLocaleString()) - )) - ); - })) - ); -} -const S = x.Legend; -function K({ - className: i, - hideIcon: t = !1, - payload: n, - verticalAlign: r = "bottom", - nameKey: a -}) { - const { config: b } = w(); - return n?.length ? /* @__PURE__ */ e.createElement( - "div", - { - className: s( - "lib:flex lib:items-center lib:justify-center lib:gap-4", - r === "top" ? "lib:pb-3" : "lib:pt-3", - i + "data-slot": "checkbox-indicator", + className: "flex items-center justify-center text-current transition-none", + children: /* @__PURE__ */ r.jsx(a, { className: "size-3.5" }) + } ) - }, - n.map((o) => { - const c = `${a || o.dataKey || "value"}`, u = p(b, o, c); - return /* @__PURE__ */ e.createElement( - "div", - { - key: o.value, - className: s( - "[&>svg]:lib:text-muted-foreground lib:flex lib:items-center lib:gap-1.5 [&>svg]:lib:h-3 [&>svg]:lib:w-3" - ) - }, - u?.icon && !t ? /* @__PURE__ */ e.createElement(u.icon, null) : /* @__PURE__ */ e.createElement( - "div", - { - className: "lib:h-2 lib:w-2 lib:shrink-0 lib:rounded-[2px]", - style: { - backgroundColor: o.color - } - } - ), - u?.label - ); - }) - ) : null; -} -function p(i, t, n) { - if (typeof t != "object" || t === null) - return; - const r = "payload" in t && typeof t.payload == "object" && t.payload !== null ? t.payload : void 0; - let a = n; - return n in t && typeof t[n] == "string" ? a = t[n] : r && n in r && typeof r[n] == "string" && (a = r[n]), a in i ? i[a] : i[n]; + } + ); } export { - P as ChartContainer, - S as ChartLegend, - K as ChartLegendContent, - $ as ChartStyle, - T as ChartTooltip, - I as ChartTooltipContent + c as Checkbox }; diff --git a/dist/index.es19.js b/dist/index.es19.js index 6b091fc4..27cd975b 100644 --- a/dist/index.es19.js +++ b/dist/index.es19.js @@ -1,28 +1,16 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-checkbox"; -import { CheckIcon as a } from "lucide-react"; -import { cn as l } from "./index.es54.js"; -function c({ className: r, ...t }) { - return /* @__PURE__ */ i.createElement( - e.Root, - { - "data-slot": "checkbox", - className: l( - "lib:peer lib:border-input dark:lib:bg-input/30 data-[state=checked]:lib:bg-primary data-[state=checked]:lib:text-primary-foreground dark:data-[state=checked]:lib:bg-primary data-[state=checked]:lib:border-primary focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:size-4 lib:shrink-0 lib:rounded-[4px] lib:border lib:shadow-xs lib:transition-shadow lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50", - r - ), - ...t - }, - /* @__PURE__ */ i.createElement( - e.Indicator, - { - "data-slot": "checkbox-indicator", - className: "lib:flex lib:items-center lib:justify-center lib:text-current lib:transition-none" - }, - /* @__PURE__ */ i.createElement(a, { className: "lib:size-3.5" }) - ) - ); +import { j as o } from "./index.es64.js"; +import * as t from "@radix-ui/react-collapsible"; +function i({ ...l }) { + return /* @__PURE__ */ o.jsx(t.Root, { "data-slot": "collapsible", ...l }); +} +function r({ ...l }) { + return /* @__PURE__ */ o.jsx(t.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...l }); +} +function s({ ...l }) { + return /* @__PURE__ */ o.jsx(t.CollapsibleContent, { "data-slot": "collapsible-content", ...l }); } export { - c as Checkbox + i as Collapsible, + s as CollapsibleContent, + r as CollapsibleTrigger }; diff --git a/dist/index.es20.js b/dist/index.es20.js index 40358a9e..a5b06912 100644 --- a/dist/index.es20.js +++ b/dist/index.es20.js @@ -1,15 +1,120 @@ -import * as l from "@radix-ui/react-collapsible"; -function t({ ...e }) { - return /* @__PURE__ */ React.createElement(l.Root, { "data-slot": "collapsible", ...e }); +import { j as t } from "./index.es64.js"; +import { Command as n } from "cmdk"; +import { SearchIcon as c } from "lucide-react"; +import { cn as a } from "./index.es65.js"; +import { Dialog as i, DialogHeader as u, DialogTitle as l, DialogDescription as p, DialogContent as x } from "./index.es22.js"; +function g({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n, + { + "data-slot": "command", + className: a( + "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", + e + ), + ...o + } + ); } -function o({ ...e }) { - return /* @__PURE__ */ React.createElement(l.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...e }); +function j({ + title: e = "Command Palette", + description: o = "Search for a command to run...", + children: r, + className: d, + showCloseButton: m = !0, + ...s +}) { + return /* @__PURE__ */ t.jsxs(i, { ...s, children: [ + /* @__PURE__ */ t.jsxs(u, { className: "sr-only", children: [ + /* @__PURE__ */ t.jsx(l, { children: e }), + /* @__PURE__ */ t.jsx(p, { children: o }) + ] }), + /* @__PURE__ */ t.jsx(x, { className: a("overflow-hidden p-0", d), showCloseButton: m, children: /* @__PURE__ */ t.jsx(g, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: r }) }) + ] }); } -function a({ ...e }) { - return /* @__PURE__ */ React.createElement(l.CollapsibleContent, { "data-slot": "collapsible-content", ...e }); +function w({ className: e, ...o }) { + return /* @__PURE__ */ t.jsxs("div", { "data-slot": "command-input-wrapper", className: "flex h-9 items-center gap-2 border-b px-3", children: [ + /* @__PURE__ */ t.jsx(c, { className: "size-4 shrink-0 opacity-50" }), + /* @__PURE__ */ t.jsx( + n.Input, + { + "data-slot": "command-input", + className: a( + "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", + e + ), + ...o + } + ) + ] }); +} +function y({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.List, + { + "data-slot": "command-list", + className: a("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", e), + ...o + } + ); +} +function C({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Empty, { "data-slot": "command-empty", className: "py-6 text-center text-sm", ...e }); +} +function N({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.Group, + { + "data-slot": "command-group", + className: a( + "text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", + e + ), + ...o + } + ); +} +function b({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.Separator, + { + "data-slot": "command-separator", + className: a("bg-border -mx-1 h-px", e), + ...o + } + ); +} +function D({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.Item, + { + "data-slot": "command-item", + className: a( + "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...o + } + ); +} +function I({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + "span", + { + "data-slot": "command-shortcut", + className: a("text-muted-foreground ml-auto text-xs tracking-widest", e), + ...o + } + ); } export { - t as Collapsible, - a as CollapsibleContent, - o as CollapsibleTrigger + g as Command, + j as CommandDialog, + C as CommandEmpty, + N as CommandGroup, + w as CommandInput, + D as CommandItem, + y as CommandList, + b as CommandSeparator, + I as CommandShortcut }; diff --git a/dist/index.es21.js b/dist/index.es21.js index ee8b03f2..31cd3d77 100644 --- a/dist/index.es21.js +++ b/dist/index.es21.js @@ -1,117 +1,187 @@ -import * as t from "react"; -import { Command as i } from "cmdk"; -import { SearchIcon as m } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -import { Dialog as r, DialogHeader as d, DialogTitle as b, DialogDescription as c, DialogContent as s } from "./index.es23.js"; -function u({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i, +import { j as e } from "./index.es64.js"; +import * as o from "@radix-ui/react-context-menu"; +import { CheckIcon as i, CircleIcon as d, ChevronRightIcon as u } from "lucide-react"; +import { cn as s } from "./index.es65.js"; +function x({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "context-menu", ...t }); +} +function f({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "context-menu-trigger", ...t }); +} +function p({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Group, { "data-slot": "context-menu-group", ...t }); +} +function g({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "context-menu-portal", ...t }); +} +function v({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Sub, { "data-slot": "context-menu-sub", ...t }); +} +function b({ ...t }) { + return /* @__PURE__ */ e.jsx(o.RadioGroup, { "data-slot": "context-menu-radio-group", ...t }); +} +function h({ + className: t, + inset: n, + children: a, + ...r +}) { + return /* @__PURE__ */ e.jsxs( + o.SubTrigger, { - "data-slot": "command", - className: a( - "lib:bg-popover lib:text-popover-foreground lib:flex lib:h-full lib:w-full lib:flex-col lib:overflow-hidden lib:rounded-md", - e + "data-slot": "context-menu-sub-trigger", + "data-inset": n, + className: s( + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t ), - ...l + ...r, + children: [ + a, + /* @__PURE__ */ e.jsx(u, { className: "ml-auto" }) + ] } ); } -function h({ - title: e = "Command Palette", - description: l = "Search for a command to run...", - children: o, - ...n -}) { - return /* @__PURE__ */ t.createElement(r, { ...n }, /* @__PURE__ */ t.createElement(d, { className: "lib:sr-only" }, /* @__PURE__ */ t.createElement(b, null, e), /* @__PURE__ */ t.createElement(c, null, l)), /* @__PURE__ */ t.createElement(s, { className: "lib:overflow-hidden lib:p-0" }, /* @__PURE__ */ t.createElement(u, { className: "[&_[cmdk-group-heading]]:lib:text-muted-foreground **:data-[slot=command-input-wrapper]:lib:h-12 [&_[cmdk-group-heading]]:lib:px-2 [&_[cmdk-group-heading]]:lib:font-medium [&_[cmdk-group]]:lib:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:lib:pt-0 [&_[cmdk-input-wrapper]_svg]:lib:h-5 [&_[cmdk-input-wrapper]_svg]:lib:w-5 [&_[cmdk-input]]:lib:h-12 [&_[cmdk-item]]:lib:px-2 [&_[cmdk-item]]:lib:py-3 [&_[cmdk-item]_svg]:lib:h-5 [&_[cmdk-item]_svg]:lib:w-5" }, o))); -} -function _({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - "div", +function j({ className: t, ...n }) { + return /* @__PURE__ */ e.jsx( + o.SubContent, { - "data-slot": "command-input-wrapper", - className: "lib:flex lib:h-9 lib:items-center lib:gap-2 lib:border-b lib:px-3" - }, - /* @__PURE__ */ t.createElement(m, { className: "lib:size-4 lib:shrink-0 lib:opacity-50" }), - /* @__PURE__ */ t.createElement( - i.Input, - { - "data-slot": "command-input", - className: a( - "placeholder:lib:text-muted-foreground lib:flex lib:h-10 lib:w-full lib:rounded-md lib:bg-transparent lib:py-3 lib:text-sm lib:outline-hidden disabled:lib:cursor-not-allowed disabled:lib:opacity-50", - e - ), - ...l - } - ) + "data-slot": "context-menu-sub-content", + className: s( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", + t + ), + ...n + } ); } -function k({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i.List, +function C({ className: t, ...n }) { + return /* @__PURE__ */ e.jsx(o.Portal, { children: /* @__PURE__ */ e.jsx( + o.Content, { - "data-slot": "command-list", - className: a("lib:max-h-[300px] lib:scroll-py-1 lib:overflow-x-hidden lib:overflow-y-auto", e), - ...l + "data-slot": "context-menu-content", + className: s( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", + t + ), + ...n + } + ) }); +} +function z({ + className: t, + inset: n, + variant: a = "default", + ...r +}) { + return /* @__PURE__ */ e.jsx( + o.Item, + { + "data-slot": "context-menu-item", + "data-inset": n, + "data-variant": a, + className: s( + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t + ), + ...r } ); } -function v({ ...e }) { - return /* @__PURE__ */ t.createElement(i.Empty, { "data-slot": "command-empty", className: "lib:py-6 lib:text-center lib:text-sm", ...e }); +function M({ + className: t, + children: n, + checked: a, + ...r +}) { + return /* @__PURE__ */ e.jsxs( + o.CheckboxItem, + { + "data-slot": "context-menu-checkbox-item", + className: s( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t + ), + checked: a, + ...r, + children: [ + /* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(o.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-4" }) }) }), + n + ] + } + ); } -function E({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i.Group, +function N({ + className: t, + children: n, + ...a +}) { + return /* @__PURE__ */ e.jsxs( + o.RadioItem, { - "data-slot": "command-group", - className: a( - "lib:text-foreground [&_[cmdk-group-heading]]:lib:text-muted-foreground lib:overflow-hidden lib:p-1 [&_[cmdk-group-heading]]:lib:px-2 [&_[cmdk-group-heading]]:lib:py-1.5 [&_[cmdk-group-heading]]:lib:text-xs [&_[cmdk-group-heading]]:lib:font-medium", - e + "data-slot": "context-menu-radio-item", + className: s( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t ), - ...l + ...a, + children: [ + /* @__PURE__ */ e.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(o.ItemIndicator, { children: /* @__PURE__ */ e.jsx(d, { className: "size-2 fill-current" }) }) }), + n + ] } ); } -function w({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i.Separator, +function I({ + className: t, + inset: n, + ...a +}) { + return /* @__PURE__ */ e.jsx( + o.Label, { - "data-slot": "command-separator", - className: a("lib:bg-border lib:-mx-1 lib:h-px", e), - ...l + "data-slot": "context-menu-label", + "data-inset": n, + className: s("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t), + ...a } ); } -function y({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - i.Item, +function _({ className: t, ...n }) { + return /* @__PURE__ */ e.jsx( + o.Separator, { - "data-slot": "command-item", - className: a( - "data-[selected=true]:lib:bg-accent data-[selected=true]:lib:text-accent-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled=true]:lib:pointer-events-none data-[disabled=true]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...l + "data-slot": "context-menu-separator", + className: s("bg-border -mx-1 my-1 h-px", t), + ...n } ); } -function C({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( +function y({ className: t, ...n }) { + return /* @__PURE__ */ e.jsx( "span", { - "data-slot": "command-shortcut", - className: a("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest", e), - ...l + "data-slot": "context-menu-shortcut", + className: s("text-muted-foreground ml-auto text-xs tracking-widest", t), + ...n } ); } export { - u as Command, - h as CommandDialog, - v as CommandEmpty, - E as CommandGroup, - _ as CommandInput, - y as CommandItem, - k as CommandList, - w as CommandSeparator, - C as CommandShortcut + x as ContextMenu, + M as ContextMenuCheckboxItem, + C as ContextMenuContent, + p as ContextMenuGroup, + z as ContextMenuItem, + I as ContextMenuLabel, + g as ContextMenuPortal, + b as ContextMenuRadioGroup, + N as ContextMenuRadioItem, + _ as ContextMenuSeparator, + y as ContextMenuShortcut, + v as ContextMenuSub, + j as ContextMenuSubContent, + h as ContextMenuSubTrigger, + f as ContextMenuTrigger }; diff --git a/dist/index.es22.js b/dist/index.es22.js index c3d16ea4..2c3b92df 100644 --- a/dist/index.es22.js +++ b/dist/index.es22.js @@ -1,184 +1,116 @@ -import * as t from "react"; -import * as n from "@radix-ui/react-context-menu"; -import { CheckIcon as r, CircleIcon as s, ChevronRightIcon as b } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function u({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Root, { "data-slot": "context-menu", ...e }); +import { j as a } from "./index.es64.js"; +import * as o from "@radix-ui/react-dialog"; +import { XIcon as l } from "lucide-react"; +import { cn as s } from "./index.es65.js"; +function f({ ...t }) { + return /* @__PURE__ */ a.jsx(o.Root, { "data-slot": "dialog", ...t }); } -function m({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Trigger, { "data-slot": "context-menu-trigger", ...e }); +function m({ ...t }) { + return /* @__PURE__ */ a.jsx(o.Trigger, { "data-slot": "dialog-trigger", ...t }); } -function f({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Group, { "data-slot": "context-menu-group", ...e }); +function r({ ...t }) { + return /* @__PURE__ */ a.jsx(o.Portal, { "data-slot": "dialog-portal", ...t }); } -function x({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Portal, { "data-slot": "context-menu-portal", ...e }); +function x({ ...t }) { + return /* @__PURE__ */ a.jsx(o.Close, { "data-slot": "dialog-close", ...t }); } -function p({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Sub, { "data-slot": "context-menu-sub", ...e }); -} -function g({ ...e }) { - return /* @__PURE__ */ t.createElement(n.RadioGroup, { "data-slot": "context-menu-radio-group", ...e }); -} -function v({ - className: e, - inset: i, - children: l, - ...o -}) { - return /* @__PURE__ */ t.createElement( - n.SubTrigger, - { - "data-slot": "context-menu-sub-trigger", - "data-inset": i, - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...o - }, - l, - /* @__PURE__ */ t.createElement(b, { className: "lib:ml-auto" }) - ); -} -function h({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - n.SubContent, +function d({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + o.Overlay, { - "data-slot": "context-menu-sub-content", - className: a( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-context-menu-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg", - e + "data-slot": "dialog-overlay", + className: s( + "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", + t ), - ...i + ...e } ); } -function C({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement(n.Portal, null, /* @__PURE__ */ t.createElement( - n.Content, - { - "data-slot": "context-menu-content", - className: a( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-context-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-context-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md", - e - ), - ...i - } - )); -} -function E({ - className: e, - inset: i, - variant: l = "default", - ...o +function p({ + className: t, + children: e, + showCloseButton: n = !0, + ...i }) { - return /* @__PURE__ */ t.createElement( - n.Item, - { - "data-slot": "context-menu-item", - "data-inset": i, - "data-variant": l, - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...o - } - ); -} -function z({ - className: e, - children: i, - checked: l, - ...o -}) { - return /* @__PURE__ */ t.createElement( - n.CheckboxItem, - { - "data-slot": "context-menu-checkbox-item", - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - checked: l, - ...o - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(n.ItemIndicator, null, /* @__PURE__ */ t.createElement(r, { className: "lib:size-4" }))), - i - ); + return /* @__PURE__ */ a.jsxs(r, { "data-slot": "dialog-portal", children: [ + /* @__PURE__ */ a.jsx(d, {}), + /* @__PURE__ */ a.jsxs( + o.Content, + { + "data-slot": "dialog-content", + className: s( + "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", + t + ), + ...i, + children: [ + e, + n && /* @__PURE__ */ a.jsxs( + o.Close, + { + "data-slot": "dialog-close", + className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + children: [ + /* @__PURE__ */ a.jsx(l, {}), + /* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Close" }) + ] + } + ) + ] + } + ) + ] }); } -function M({ - className: e, - children: i, - ...l -}) { - return /* @__PURE__ */ t.createElement( - n.RadioItem, +function j({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "div", { - "data-slot": "context-menu-radio-item", - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...l - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(n.ItemIndicator, null, /* @__PURE__ */ t.createElement(s, { className: "lib:size-2 lib:fill-current" }))), - i + "data-slot": "dialog-header", + className: s("flex flex-col gap-2 text-center sm:text-left", t), + ...e + } ); } -function N({ - className: e, - inset: i, - ...l -}) { - return /* @__PURE__ */ t.createElement( - n.Label, +function v({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "div", { - "data-slot": "context-menu-label", - "data-inset": i, - className: a( - "lib:text-foreground lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8", - e - ), - ...l + "data-slot": "dialog-footer", + className: s("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t), + ...e } ); } -function I({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - n.Separator, +function D({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + o.Title, { - "data-slot": "context-menu-separator", - className: a("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px", e), - ...i + "data-slot": "dialog-title", + className: s("text-lg leading-none font-semibold", t), + ...e } ); } -function _({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - "span", +function b({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + o.Description, { - "data-slot": "context-menu-shortcut", - className: a("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest", e), - ...i + "data-slot": "dialog-description", + className: s("text-muted-foreground text-sm", t), + ...e } ); } export { - u as ContextMenu, - z as ContextMenuCheckboxItem, - C as ContextMenuContent, - f as ContextMenuGroup, - E as ContextMenuItem, - N as ContextMenuLabel, - x as ContextMenuPortal, - g as ContextMenuRadioGroup, - M as ContextMenuRadioItem, - I as ContextMenuSeparator, - _ as ContextMenuShortcut, - p as ContextMenuSub, - h as ContextMenuSubContent, - v as ContextMenuSubTrigger, - m as ContextMenuTrigger + f as Dialog, + x as DialogClose, + p as DialogContent, + b as DialogDescription, + v as DialogFooter, + j as DialogHeader, + d as DialogOverlay, + r as DialogPortal, + D as DialogTitle, + m as DialogTrigger }; diff --git a/dist/index.es23.js b/dist/index.es23.js index 62d134ba..43d852ef 100644 --- a/dist/index.es23.js +++ b/dist/index.es23.js @@ -1,96 +1,100 @@ -import * as t from "react"; -import * as a from "@radix-ui/react-dialog"; -import { XIcon as n } from "lucide-react"; -import { cn as i } from "./index.es54.js"; -function c({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Root, { "data-slot": "dialog", ...e }); +import { j as r } from "./index.es64.js"; +import { Drawer as e } from "vaul"; +import { cn as d } from "./index.es65.js"; +function u({ ...t }) { + return /* @__PURE__ */ r.jsx(e.Root, { "data-slot": "drawer", ...t }); } -function g({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Trigger, { "data-slot": "dialog-trigger", ...e }); +function w({ ...t }) { + return /* @__PURE__ */ r.jsx(e.Trigger, { "data-slot": "drawer-trigger", ...t }); } -function r({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Portal, { "data-slot": "dialog-portal", ...e }); +function i({ ...t }) { + return /* @__PURE__ */ r.jsx(e.Portal, { "data-slot": "drawer-portal", ...t }); } -function m({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Close, { "data-slot": "dialog-close", ...e }); +function m({ ...t }) { + return /* @__PURE__ */ r.jsx(e.Close, { "data-slot": "drawer-close", ...t }); } -function s({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - a.Overlay, +function n({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx( + e.Overlay, { - "data-slot": "dialog-overlay", - className: i( - "data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50", - e + "data-slot": "drawer-overlay", + className: d( + "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", + t ), - ...l + ...a } ); } -function u({ className: e, children: l, ...o }) { - return /* @__PURE__ */ t.createElement(r, { "data-slot": "dialog-portal" }, /* @__PURE__ */ t.createElement(s, null), /* @__PURE__ */ t.createElement( - a.Content, - { - "data-slot": "dialog-content", - className: i( - "lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 lib:fixed lib:top-[50%] lib:left-[50%] lib:z-50 lib:grid lib:w-full lib:max-w-[calc(100%-2rem)] lib:translate-x-[-50%] lib:translate-y-[-50%] lib:gap-4 lib:rounded-lg lib:border lib:p-6 lib:shadow-lg lib:duration-200 sm:lib:max-w-lg", - e - ), - ...o - }, - l, - /* @__PURE__ */ t.createElement(a.Close, { className: "lib:ring-offset-background focus:lib:ring-ring data-[state=open]:lib:bg-accent data-[state=open]:lib:text-muted-foreground lib:absolute lib:top-4 lib:right-4 lib:rounded-xs lib:opacity-70 lib:transition-opacity hover:lib:opacity-100 focus:lib:ring-2 focus:lib:ring-offset-2 focus:lib:outline-hidden disabled:lib:pointer-events-none [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4" }, /* @__PURE__ */ t.createElement(n, null), /* @__PURE__ */ t.createElement("span", { className: "lib:sr-only" }, "Close")) - )); +function x({ className: t, children: a, ...o }) { + return /* @__PURE__ */ r.jsxs(i, { "data-slot": "drawer-portal", children: [ + /* @__PURE__ */ r.jsx(n, {}), + /* @__PURE__ */ r.jsxs( + e.Content, + { + "data-slot": "drawer-content", + className: d( + "group/drawer-content bg-background fixed z-50 flex h-auto flex-col", + "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", + "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", + "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", + "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", + t + ), + ...o, + children: [ + /* @__PURE__ */ r.jsx("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), + a + ] + } + ) + ] }); } -function f({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( +function f({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx( "div", { - "data-slot": "dialog-header", - className: i("lib:flex lib:flex-col lib:gap-2 lib:text-center sm:lib:text-left", e), - ...l + "data-slot": "drawer-header", + className: d( + "flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", + t + ), + ...a } ); } -function p({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - "div", - { - "data-slot": "dialog-footer", - className: i("lib:flex lib:flex-col-reverse lib:gap-2 sm:lib:flex-row sm:lib:justify-end", e), - ...l - } - ); +function v({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx("div", { "data-slot": "drawer-footer", className: d("mt-auto flex flex-col gap-2 p-4", t), ...a }); } -function x({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - a.Title, +function p({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx( + e.Title, { - "data-slot": "dialog-title", - className: i("lib:text-lg lib:leading-none lib:font-semibold", e), - ...l + "data-slot": "drawer-title", + className: d("text-foreground font-semibold", t), + ...a } ); } -function E({ className: e, ...l }) { - return /* @__PURE__ */ t.createElement( - a.Description, +function g({ className: t, ...a }) { + return /* @__PURE__ */ r.jsx( + e.Description, { - "data-slot": "dialog-description", - className: i("lib:text-muted-foreground lib:text-sm", e), - ...l + "data-slot": "drawer-description", + className: d("text-muted-foreground text-sm", t), + ...a } ); } export { - c as Dialog, - m as DialogClose, - u as DialogContent, - E as DialogDescription, - p as DialogFooter, - f as DialogHeader, - s as DialogOverlay, - r as DialogPortal, - x as DialogTitle, - g as DialogTrigger + u as Drawer, + m as DrawerClose, + x as DrawerContent, + g as DrawerDescription, + v as DrawerFooter, + f as DrawerHeader, + n as DrawerOverlay, + i as DrawerPortal, + p as DrawerTitle, + w as DrawerTrigger }; diff --git a/dist/index.es24.js b/dist/index.es24.js index 97ccf2e5..b4c9a135 100644 --- a/dist/index.es24.js +++ b/dist/index.es24.js @@ -1,92 +1,195 @@ -import * as e from "react"; -import { Drawer as r } from "vaul"; -import { cn as i } from "./index.es54.js"; -function c({ ...t }) { - return /* @__PURE__ */ e.createElement(r.Root, { "data-slot": "drawer", ...t }); +import { j as t } from "./index.es64.js"; +import * as n from "@radix-ui/react-dropdown-menu"; +import { CheckIcon as s, CircleIcon as i, ChevronRightIcon as u } from "lucide-react"; +import { cn as r } from "./index.es65.js"; +function p({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Root, { "data-slot": "dropdown-menu", ...e }); } -function u({ ...t }) { - return /* @__PURE__ */ e.createElement(r.Trigger, { "data-slot": "drawer-trigger", ...t }); +function f({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "dropdown-menu-portal", ...e }); } -function d({ ...t }) { - return /* @__PURE__ */ e.createElement(r.Portal, { "data-slot": "drawer-portal", ...t }); +function x({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Trigger, { "data-slot": "dropdown-menu-trigger", ...e }); } -function m({ ...t }) { - return /* @__PURE__ */ e.createElement(r.Close, { "data-slot": "drawer-close", ...t }); -} -function o({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement( - r.Overlay, +function g({ + className: e, + sideOffset: o = 4, + ...a +}) { + return /* @__PURE__ */ t.jsx(n.Portal, { children: /* @__PURE__ */ t.jsx( + n.Content, { - "data-slot": "drawer-overlay", - className: i( - "data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50", - t + "data-slot": "dropdown-menu-content", + sideOffset: o, + className: r( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", + e ), ...a } + ) }); +} +function v({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "dropdown-menu-group", ...e }); +} +function w({ + className: e, + inset: o, + variant: a = "default", + ...d +}) { + return /* @__PURE__ */ t.jsx( + n.Item, + { + "data-slot": "dropdown-menu-item", + "data-inset": o, + "data-variant": a, + className: r( + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...d + } ); } -function w({ className: t, children: a, ...l }) { - return /* @__PURE__ */ e.createElement(d, { "data-slot": "drawer-portal" }, /* @__PURE__ */ e.createElement(o, null), /* @__PURE__ */ e.createElement( - r.Content, +function b({ + className: e, + children: o, + checked: a, + ...d +}) { + return /* @__PURE__ */ t.jsxs( + n.CheckboxItem, { - "data-slot": "drawer-content", - className: i( - "lib:group/drawer-content lib:bg-background lib:fixed lib:z-50 lib:flex lib:h-auto lib:flex-col", - "data-[vaul-drawer-direction=top]:lib:inset-x-0 data-[vaul-drawer-direction=top]:lib:top-0 data-[vaul-drawer-direction=top]:lib:mb-24 data-[vaul-drawer-direction=top]:lib:max-h-[80vh] data-[vaul-drawer-direction=top]:lib:rounded-b-lg data-[vaul-drawer-direction=top]:lib:border-b", - "data-[vaul-drawer-direction=bottom]:lib:inset-x-0 data-[vaul-drawer-direction=bottom]:lib:bottom-0 data-[vaul-drawer-direction=bottom]:lib:mt-24 data-[vaul-drawer-direction=bottom]:lib:max-h-[80vh] data-[vaul-drawer-direction=bottom]:lib:rounded-t-lg data-[vaul-drawer-direction=bottom]:lib:border-t", - "data-[vaul-drawer-direction=right]:lib:inset-y-0 data-[vaul-drawer-direction=right]:lib:right-0 data-[vaul-drawer-direction=right]:lib:w-3/4 data-[vaul-drawer-direction=right]:lib:border-l data-[vaul-drawer-direction=right]:sm:lib:max-w-sm", - "data-[vaul-drawer-direction=left]:lib:inset-y-0 data-[vaul-drawer-direction=left]:lib:left-0 data-[vaul-drawer-direction=left]:lib:w-3/4 data-[vaul-drawer-direction=left]:lib:border-r data-[vaul-drawer-direction=left]:sm:lib:max-w-sm", - t + "data-slot": "dropdown-menu-checkbox-item", + className: r( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e ), - ...l - }, - /* @__PURE__ */ e.createElement("div", { className: "lib:bg-muted lib:mx-auto lib:mt-4 lib:hidden lib:h-2 lib:w-[100px] lib:shrink-0 lib:rounded-full lib:group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), - a - )); + checked: a, + ...d, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(s, { className: "size-4" }) }) }), + o + ] + } + ); } -function s({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement("div", { "data-slot": "drawer-header", className: i("lib:flex lib:flex-col lib:gap-1.5 lib:p-4", t), ...a }); +function h({ ...e }) { + return /* @__PURE__ */ t.jsx(n.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...e }); } -function f({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement( - "div", +function j({ + className: e, + children: o, + ...a +}) { + return /* @__PURE__ */ t.jsxs( + n.RadioItem, { - "data-slot": "drawer-footer", - className: i("lib:mt-auto lib:flex lib:flex-col lib:gap-2 lib:p-4", t), - ...a + "data-slot": "dropdown-menu-radio-item", + className: r( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...a, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(i, { className: "size-2 fill-current" }) }) }), + o + ] } ); } -function v({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement( - r.Title, +function z({ + className: e, + inset: o, + ...a +}) { + return /* @__PURE__ */ t.jsx( + n.Label, { - "data-slot": "drawer-title", - className: i("lib:text-foreground lib:font-semibold", t), + "data-slot": "dropdown-menu-label", + "data-inset": o, + className: r("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e), ...a } ); } -function p({ className: t, ...a }) { - return /* @__PURE__ */ e.createElement( - r.Description, +function D({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + n.Separator, { - "data-slot": "drawer-description", - className: i("lib:text-muted-foreground lib:text-sm", t), - ...a + "data-slot": "dropdown-menu-separator", + className: r("bg-border -mx-1 my-1 h-px", e), + ...o + } + ); +} +function M({ className: e, ...o }) { + return /* @__PURE__ */ t.jsx( + "span", + { + "data-slot": "dropdown-menu-shortcut", + className: r("text-muted-foreground ml-auto text-xs tracking-widest", e), + ...o + } + ); +} +function N({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "dropdown-menu-sub", ...e }); +} +function I({ + className: e, + inset: o, + children: a, + ...d +}) { + return /* @__PURE__ */ t.jsxs( + n.SubTrigger, + { + "data-slot": "dropdown-menu-sub-trigger", + "data-inset": o, + className: r( + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8", + e + ), + ...d, + children: [ + a, + /* @__PURE__ */ t.jsx(u, { className: "ml-auto size-4" }) + ] + } + ); +} +function y({ + className: e, + ...o +}) { + return /* @__PURE__ */ t.jsx( + n.SubContent, + { + "data-slot": "dropdown-menu-sub-content", + className: r( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", + e + ), + ...o } ); } export { - c as Drawer, - m as DrawerClose, - w as DrawerContent, - p as DrawerDescription, - f as DrawerFooter, - s as DrawerHeader, - o as DrawerOverlay, - d as DrawerPortal, - v as DrawerTitle, - u as DrawerTrigger + p as DropdownMenu, + b as DropdownMenuCheckboxItem, + g as DropdownMenuContent, + v as DropdownMenuGroup, + w as DropdownMenuItem, + z as DropdownMenuLabel, + f as DropdownMenuPortal, + h as DropdownMenuRadioGroup, + j as DropdownMenuRadioItem, + D as DropdownMenuSeparator, + M as DropdownMenuShortcut, + N as DropdownMenuSub, + y as DropdownMenuSubContent, + I as DropdownMenuSubTrigger, + x as DropdownMenuTrigger }; diff --git a/dist/index.es25.js b/dist/index.es25.js index d5958e8d..df149753 100644 --- a/dist/index.es25.js +++ b/dist/index.es25.js @@ -1,189 +1,78 @@ -import * as t from "react"; -import * as n from "@radix-ui/react-dropdown-menu"; -import { CheckIcon as r, CircleIcon as d, ChevronRightIcon as s } from "lucide-react"; -import { cn as l } from "./index.es54.js"; -function c({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Root, { "data-slot": "dropdown-menu", ...e }); +import { j as m } from "./index.es64.js"; +import * as n from "react"; +import { Slot as f } from "@radix-ui/react-slot"; +import { FormProvider as u, useFormContext as x, useFormState as F, Controller as I } from "react-hook-form"; +import { cn as a } from "./index.es65.js"; +import { Label as p } from "./index.es29.js"; +const b = u, c = n.createContext({}), S = ({ + ...t +}) => /* @__PURE__ */ m.jsx(c.Provider, { value: { name: t.name }, children: /* @__PURE__ */ m.jsx(I, { ...t }) }), d = () => { + const t = n.useContext(c), e = n.useContext(l), { getFieldState: r } = x(), o = F({ name: t.name }), s = r(t.name, o); + if (!t) + throw new Error("useFormField should be used within "); + const { id: i } = e; + return { + id: i, + name: t.name, + formItemId: `${i}-form-item`, + formDescriptionId: `${i}-form-item-description`, + formMessageId: `${i}-form-item-message`, + ...s + }; +}, l = n.createContext({}); +function $({ className: t, ...e }) { + const r = n.useId(); + return /* @__PURE__ */ m.jsx(l.Provider, { value: { id: r }, children: /* @__PURE__ */ m.jsx("div", { "data-slot": "form-item", className: a("grid gap-2", t), ...e }) }); } -function m({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Portal, { "data-slot": "dropdown-menu-portal", ...e }); -} -function p({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Trigger, { "data-slot": "dropdown-menu-trigger", ...e }); -} -function f({ - className: e, - sideOffset: i = 4, - ...o -}) { - return /* @__PURE__ */ t.createElement(n.Portal, null, /* @__PURE__ */ t.createElement( - n.Content, - { - "data-slot": "dropdown-menu-content", - sideOffset: i, - className: l( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-dropdown-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md", - e - ), - ...o - } - )); -} -function g({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Group, { "data-slot": "dropdown-menu-group", ...e }); -} -function v({ - className: e, - inset: i, - variant: o = "default", - ...a -}) { - return /* @__PURE__ */ t.createElement( - n.Item, - { - "data-slot": "dropdown-menu-item", - "data-inset": i, - "data-variant": o, - className: l( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...a - } - ); -} -function w({ - className: e, - children: i, - checked: o, - ...a -}) { - return /* @__PURE__ */ t.createElement( - n.CheckboxItem, - { - "data-slot": "dropdown-menu-checkbox-item", - className: l( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - checked: o, - ...a - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(n.ItemIndicator, null, /* @__PURE__ */ t.createElement(r, { className: "lib:size-4" }))), - i - ); -} -function x({ ...e }) { - return /* @__PURE__ */ t.createElement(n.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...e }); -} -function h({ - className: e, - children: i, - ...o -}) { - return /* @__PURE__ */ t.createElement( - n.RadioItem, - { - "data-slot": "dropdown-menu-radio-item", - className: l( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...o - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(n.ItemIndicator, null, /* @__PURE__ */ t.createElement(d, { className: "lib:size-2 lib:fill-current" }))), - i - ); -} -function E({ - className: e, - inset: i, - ...o -}) { - return /* @__PURE__ */ t.createElement( - n.Label, +function D({ className: t, ...e }) { + const { error: r, formItemId: o } = d(); + return /* @__PURE__ */ m.jsx( + p, { - "data-slot": "dropdown-menu-label", - "data-inset": i, - className: l("lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8", e), - ...o + "data-slot": "form-label", + "data-error": !!r, + className: a("data-[error=true]:text-destructive", t), + htmlFor: o, + ...e } ); } -function z({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - n.Separator, +function M({ ...t }) { + const { error: e, formItemId: r, formDescriptionId: o, formMessageId: s } = d(); + return /* @__PURE__ */ m.jsx( + f, { - "data-slot": "dropdown-menu-separator", - className: l("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px", e), - ...i + "data-slot": "form-control", + id: r, + "aria-describedby": e ? `${o} ${s}` : `${o}`, + "aria-invalid": !!e, + ...t } ); } -function D({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - "span", +function N({ className: t, ...e }) { + const { formDescriptionId: r } = d(); + return /* @__PURE__ */ m.jsx( + "p", { - "data-slot": "dropdown-menu-shortcut", - className: l("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest", e), - ...i + "data-slot": "form-description", + id: r, + className: a("text-muted-foreground text-sm", t), + ...e } ); } -function M({ ...e }) { - return /* @__PURE__ */ t.createElement(n.Sub, { "data-slot": "dropdown-menu-sub", ...e }); -} -function N({ - className: e, - inset: i, - children: o, - ...a -}) { - return /* @__PURE__ */ t.createElement( - n.SubTrigger, - { - "data-slot": "dropdown-menu-sub-trigger", - "data-inset": i, - className: l( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8", - e - ), - ...a - }, - o, - /* @__PURE__ */ t.createElement(s, { className: "lib:ml-auto lib:size-4" }) - ); -} -function I({ - className: e, - ...i -}) { - return /* @__PURE__ */ t.createElement( - n.SubContent, - { - "data-slot": "dropdown-menu-sub-content", - className: l( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg", - e - ), - ...i - } - ); +function w({ className: t, ...e }) { + const { error: r, formMessageId: o } = d(), s = r ? String(r?.message ?? "") : e.children; + return s ? /* @__PURE__ */ m.jsx("p", { "data-slot": "form-message", id: o, className: a("text-destructive text-sm", t), ...e, children: s }) : null; } export { - c as DropdownMenu, - w as DropdownMenuCheckboxItem, - f as DropdownMenuContent, - g as DropdownMenuGroup, - v as DropdownMenuItem, - E as DropdownMenuLabel, - m as DropdownMenuPortal, - x as DropdownMenuRadioGroup, - h as DropdownMenuRadioItem, - z as DropdownMenuSeparator, - D as DropdownMenuShortcut, - M as DropdownMenuSub, - I as DropdownMenuSubContent, - N as DropdownMenuSubTrigger, - p as DropdownMenuTrigger + b as Form, + M as FormControl, + N as FormDescription, + S as FormField, + $ as FormItem, + D as FormLabel, + w as FormMessage, + d as useFormField }; diff --git a/dist/index.es26.js b/dist/index.es26.js index 3d17f3ed..0b7f7505 100644 --- a/dist/index.es26.js +++ b/dist/index.es26.js @@ -1,86 +1,34 @@ -import * as r from "react"; -import { Slot as d } from "@radix-ui/react-slot"; -import { FormProvider as f, useFormContext as u, useFormState as F, Controller as x } from "react-hook-form"; -import { cn as a } from "./index.es54.js"; -import { Label as I } from "./index.es30.js"; -const v = f, c = r.createContext({}), E = ({ - ...e -}) => /* @__PURE__ */ r.createElement(c.Provider, { value: { name: e.name } }, /* @__PURE__ */ r.createElement(x, { ...e })), s = () => { - const e = r.useContext(c), t = r.useContext(l), { getFieldState: o } = u(), m = F({ name: e.name }), n = o(e.name, m); - if (!e) - throw new Error("useFormField should be used within "); - const { id: i } = t; - return { - id: i, - name: e.name, - formItemId: `${i}-form-item`, - formDescriptionId: `${i}-form-item-description`, - formMessageId: `${i}-form-item-message`, - ...n - }; -}, l = r.createContext({}); -function S({ className: e, ...t }) { - const o = r.useId(); - return /* @__PURE__ */ r.createElement(l.Provider, { value: { id: o } }, /* @__PURE__ */ r.createElement("div", { "data-slot": "form-item", className: a("lib:grid lib:gap-2", e), ...t })); +import { j as o } from "./index.es64.js"; +import * as r from "@radix-ui/react-hover-card"; +import { cn as i } from "./index.es65.js"; +function m({ ...t }) { + return /* @__PURE__ */ o.jsx(r.Root, { "data-slot": "hover-card", ...t }); } -function $({ className: e, ...t }) { - const { error: o, formItemId: m } = s(); - return /* @__PURE__ */ r.createElement( - I, - { - "data-slot": "form-label", - "data-error": !!o, - className: a("data-[error=true]:lib:text-destructive", e), - htmlFor: m, - ...t - } - ); +function l({ ...t }) { + return /* @__PURE__ */ o.jsx(r.Trigger, { "data-slot": "hover-card-trigger", ...t }); } -function h({ ...e }) { - const { error: t, formItemId: o, formDescriptionId: m, formMessageId: n } = s(); - return /* @__PURE__ */ r.createElement( - d, +function c({ + className: t, + align: e = "center", + sideOffset: a = 4, + ...d +}) { + return /* @__PURE__ */ o.jsx(r.Portal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ o.jsx( + r.Content, { - "data-slot": "form-control", - id: o, - "aria-describedby": t ? `${m} ${n}` : `${m}`, - "aria-invalid": !!t, - ...e + "data-slot": "hover-card-content", + align: e, + sideOffset: a, + className: i( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", + t + ), + ...d } - ); -} -function D({ className: e, ...t }) { - const { formDescriptionId: o } = s(); - return /* @__PURE__ */ r.createElement( - "p", - { - "data-slot": "form-description", - id: o, - className: a("lib:text-muted-foreground lib:text-sm", e), - ...t - } - ); -} -function M({ className: e, ...t }) { - const { error: o, formMessageId: m } = s(), n = o ? String(o?.message ?? "") : t.children; - return n ? /* @__PURE__ */ r.createElement( - "p", - { - "data-slot": "form-message", - id: m, - className: a("lib:text-destructive lib:text-sm", e), - ...t - }, - n - ) : null; + ) }); } export { - v as Form, - h as FormControl, - D as FormDescription, - E as FormField, - S as FormItem, - $ as FormLabel, - M as FormMessage, - s as useFormField + m as HoverCard, + c as HoverCardContent, + l as HoverCardTrigger }; diff --git a/dist/index.es27.js b/dist/index.es27.js index 09c4c797..5b92b555 100644 --- a/dist/index.es27.js +++ b/dist/index.es27.js @@ -1,34 +1,55 @@ -import * as e from "react"; -import * as o from "@radix-ui/react-hover-card"; -import { cn as d } from "./index.es54.js"; -function l({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Root, { "data-slot": "hover-card", ...t }); +import { j as e } from "./index.es64.js"; +import * as u from "react"; +import { OTPInput as c, OTPInputContext as l } from "input-otp"; +import { MinusIcon as p } from "lucide-react"; +import { cn as a } from "./index.es65.js"; +function b({ + className: t, + containerClassName: r, + ...i +}) { + return /* @__PURE__ */ e.jsx( + c, + { + "data-slot": "input-otp", + containerClassName: a("flex items-center gap-2 has-disabled:opacity-50", r), + className: a("disabled:cursor-not-allowed", t), + ...i + } + ); } -function s({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Trigger, { "data-slot": "hover-card-trigger", ...t }); +function g({ className: t, ...r }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "input-otp-group", className: a("flex items-center", t), ...r }); } -function m({ - className: t, - align: a = "center", - sideOffset: r = 4, +function j({ + index: t, + className: r, ...i }) { - return /* @__PURE__ */ e.createElement(o.Portal, { "data-slot": "hover-card-portal" }, /* @__PURE__ */ e.createElement( - o.Content, + const n = u.useContext(l), { char: o, hasFakeCaret: s, isActive: d } = n?.slots[t] ?? {}; + return /* @__PURE__ */ e.jsxs( + "div", { - "data-slot": "hover-card-content", - align: a, - sideOffset: r, - className: d( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-64 lib:origin-(--radix-hover-card-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden", - t + "data-slot": "input-otp-slot", + "data-active": d, + className: a( + "data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]", + r ), - ...i + ...i, + children: [ + o, + s && /* @__PURE__ */ e.jsx("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e.jsx("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) }) + ] } - )); + ); +} +function h({ ...t }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "input-otp-separator", role: "separator", ...t, children: /* @__PURE__ */ e.jsx(p, {}) }); } export { - l as HoverCard, - m as HoverCardContent, - s as HoverCardTrigger + b as InputOTP, + g as InputOTPGroup, + h as InputOTPSeparator, + j as InputOTPSlot }; diff --git a/dist/index.es28.js b/dist/index.es28.js index ae4add5f..9c25eeff 100644 --- a/dist/index.es28.js +++ b/dist/index.es28.js @@ -1,52 +1,21 @@ -import * as t from "react"; -import { OTPInput as s, OTPInputContext as d } from "input-otp"; -import { MinusIcon as u } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function v({ - className: e, - containerClassName: i, - ...r -}) { - return /* @__PURE__ */ t.createElement( - s, +import { j as t } from "./index.es64.js"; +import { cn as n } from "./index.es65.js"; +function a({ className: e, type: i, ...r }) { + return /* @__PURE__ */ t.jsx( + "input", { - "data-slot": "input-otp", - containerClassName: a("flex items-center gap-2 has-disabled:opacity-50", i), - className: a("disabled:lib:cursor-not-allowed", e), - ...r - } - ); -} -function f({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement("div", { "data-slot": "input-otp-group", className: a("lib:flex lib:items-center", e), ...i }); -} -function x({ - index: e, - className: i, - ...r -}) { - const l = t.useContext(d), { char: n, hasFakeCaret: o, isActive: b } = l?.slots[e] ?? {}; - return /* @__PURE__ */ t.createElement( - "div", - { - "data-slot": "input-otp-slot", - "data-active": b, - className: a( - "data-[active=true]:lib:border-ring data-[active=true]:lib:ring-ring/50 data-[active=true]:aria-invalid:lib:ring-destructive/20 dark:data-[active=true]:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive data-[active=true]:aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:border-input lib:relative lib:flex lib:h-9 lib:w-9 lib:items-center lib:justify-center lib:border-y lib:border-r lib:text-sm lib:shadow-xs lib:transition-all lib:outline-none first:lib:rounded-l-md first:lib:border-l last:lib:rounded-r-md data-[active=true]:lib:z-10 data-[active=true]:lib:ring-[3px]", - i + type: i, + "data-slot": "input", + className: n( + "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", + "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", + "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", + e ), ...r - }, - n, - o && /* @__PURE__ */ t.createElement("div", { className: "lib:pointer-events-none lib:absolute lib:inset-0 lib:flex lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement("div", { className: "lib:animate-caret-blink lib:bg-foreground lib:h-4 lib:w-px lib:duration-1000" })) + } ); } -function g({ ...e }) { - return /* @__PURE__ */ t.createElement("div", { "data-slot": "input-otp-separator", role: "separator", ...e }, /* @__PURE__ */ t.createElement(u, null)); -} export { - v as InputOTP, - f as InputOTPGroup, - g as InputOTPSeparator, - x as InputOTPSlot + a as Input }; diff --git a/dist/index.es29.js b/dist/index.es29.js index c920d943..060aa4e9 100644 --- a/dist/index.es29.js +++ b/dist/index.es29.js @@ -1,21 +1,19 @@ -import * as r from "react"; -import { cn as b } from "./index.es54.js"; -function n({ className: i, type: l, ...e }) { - return /* @__PURE__ */ r.createElement( - "input", +import { j as o } from "./index.es64.js"; +import * as a from "@radix-ui/react-label"; +import { cn as r } from "./index.es65.js"; +function s({ className: e, ...t }) { + return /* @__PURE__ */ o.jsx( + a.Root, { - type: l, - "data-slot": "input", - className: b( - "file:lib:text-foreground placeholder:lib:text-muted-foreground selection:lib:bg-primary selection:lib:text-primary-foreground dark:lib:bg-input/30 lib:border-input lib:flex lib:h-9 lib:w-full lib:min-w-0 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-1 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none file:lib:inline-flex file:lib:h-7 file:lib:border-0 file:lib:bg-transparent file:lib:text-sm file:lib:font-medium disabled:lib:pointer-events-none disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm", - "focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px]", - "aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive", - i + "data-slot": "label", + className: r( + "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", + e ), - ...e + ...t } ); } export { - n as Input + s as Label }; diff --git a/dist/index.es30.js b/dist/index.es30.js index 96252a22..794588b5 100644 --- a/dist/index.es30.js +++ b/dist/index.es30.js @@ -1,19 +1,213 @@ -import * as t from "react"; -import * as l from "@radix-ui/react-label"; -import { cn as a } from "./index.es54.js"; -function r({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - l.Root, - { - "data-slot": "label", - className: a( - "lib:flex lib:items-center lib:gap-2 lib:text-sm lib:leading-none lib:font-medium lib:select-none group-data-[disabled=true]:lib:pointer-events-none group-data-[disabled=true]:lib:opacity-50 peer-disabled:lib:cursor-not-allowed peer-disabled:lib:opacity-50", +import { j as t } from "./index.es64.js"; +import * as n from "@radix-ui/react-menubar"; +import { CheckIcon as i, CircleIcon as u, ChevronRightIcon as c } from "lucide-react"; +import { cn as o } from "./index.es65.js"; +function p({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + n.Root, + { + "data-slot": "menubar", + className: o("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", e), + ...a + } + ); +} +function x({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Menu, { "data-slot": "menubar-menu", ...e }); +} +function g({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Group, { "data-slot": "menubar-group", ...e }); +} +function l({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Portal, { "data-slot": "menubar-portal", ...e }); +} +function v({ ...e }) { + return /* @__PURE__ */ t.jsx(n.RadioGroup, { "data-slot": "menubar-radio-group", ...e }); +} +function h({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + n.Trigger, + { + "data-slot": "menubar-trigger", + className: o( + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none", + e + ), + ...a + } + ); +} +function j({ + className: e, + align: a = "start", + alignOffset: r = -4, + sideOffset: s = 8, + ...d +}) { + return /* @__PURE__ */ t.jsx(l, { children: /* @__PURE__ */ t.jsx( + n.Content, + { + "data-slot": "menubar-content", + align: a, + alignOffset: r, + sideOffset: s, + className: o( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md", + e + ), + ...d + } + ) }); +} +function M({ + className: e, + inset: a, + variant: r = "default", + ...s +}) { + return /* @__PURE__ */ t.jsx( + n.Item, + { + "data-slot": "menubar-item", + "data-inset": a, + "data-variant": r, + className: o( + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...s + } + ); +} +function z({ + className: e, + children: a, + checked: r, + ...s +}) { + return /* @__PURE__ */ t.jsxs( + n.CheckboxItem, + { + "data-slot": "menubar-checkbox-item", + className: o( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + checked: r, + ...s, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(i, { className: "size-4" }) }) }), + a + ] + } + ); +} +function N({ className: e, children: a, ...r }) { + return /* @__PURE__ */ t.jsxs( + n.RadioItem, + { + "data-slot": "menubar-radio-item", + className: o( + "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + e + ), + ...r, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t.jsx(n.ItemIndicator, { children: /* @__PURE__ */ t.jsx(u, { className: "size-2 fill-current" }) }) }), + a + ] + } + ); +} +function I({ + className: e, + inset: a, + ...r +}) { + return /* @__PURE__ */ t.jsx( + n.Label, + { + "data-slot": "menubar-label", + "data-inset": a, + className: o("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", e), + ...r + } + ); +} +function y({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + n.Separator, + { + "data-slot": "menubar-separator", + className: o("bg-border -mx-1 my-1 h-px", e), + ...a + } + ); +} +function k({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + "span", + { + "data-slot": "menubar-shortcut", + className: o("text-muted-foreground ml-auto text-xs tracking-widest", e), + ...a + } + ); +} +function _({ ...e }) { + return /* @__PURE__ */ t.jsx(n.Sub, { "data-slot": "menubar-sub", ...e }); +} +function w({ + className: e, + inset: a, + children: r, + ...s +}) { + return /* @__PURE__ */ t.jsxs( + n.SubTrigger, + { + "data-slot": "menubar-sub-trigger", + "data-inset": a, + className: o( + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8", + e + ), + ...s, + children: [ + r, + /* @__PURE__ */ t.jsx(c, { className: "ml-auto h-4 w-4" }) + ] + } + ); +} +function C({ className: e, ...a }) { + return /* @__PURE__ */ t.jsx( + n.SubContent, + { + "data-slot": "menubar-sub-content", + className: o( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", e ), - ...i + ...a } ); } export { - r as Label + p as Menubar, + z as MenubarCheckboxItem, + j as MenubarContent, + g as MenubarGroup, + M as MenubarItem, + I as MenubarLabel, + x as MenubarMenu, + l as MenubarPortal, + v as MenubarRadioGroup, + N as MenubarRadioItem, + y as MenubarSeparator, + k as MenubarShortcut, + _ as MenubarSub, + C as MenubarSubContent, + w as MenubarSubTrigger, + h as MenubarTrigger }; diff --git a/dist/index.es31.js b/dist/index.es31.js index 6219219c..e55f1e81 100644 --- a/dist/index.es31.js +++ b/dist/index.es31.js @@ -1,210 +1,137 @@ -import * as t from "react"; -import * as a from "@radix-ui/react-menubar"; -import { CheckIcon as o, CircleIcon as s, ChevronRightIcon as d } from "lucide-react"; -import { cn as n } from "./index.es54.js"; -function f({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - a.Root, +import { j as e } from "./index.es64.js"; +import * as n from "@radix-ui/react-navigation-menu"; +import { cva as s } from "class-variance-authority"; +import { ChevronDownIcon as u } from "lucide-react"; +import { cn as o } from "./index.es65.js"; +function f({ + className: t, + children: a, + viewport: i = !0, + ...r +}) { + return /* @__PURE__ */ e.jsxs( + n.Root, { - "data-slot": "menubar", - className: n( - "lib:bg-background lib:flex lib:h-9 lib:items-center lib:gap-1 lib:rounded-md lib:border lib:p-1 lib:shadow-xs", - e - ), - ...i + "data-slot": "navigation-menu", + "data-viewport": i, + className: o("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center", t), + ...r, + children: [ + a, + i && /* @__PURE__ */ e.jsx(l, {}) + ] } ); } -function p({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Menu, { "data-slot": "menubar-menu", ...e }); -} -function g({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Group, { "data-slot": "menubar-group", ...e }); -} -function u({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Portal, { "data-slot": "menubar-portal", ...e }); -} -function v({ ...e }) { - return /* @__PURE__ */ t.createElement(a.RadioGroup, { "data-slot": "menubar-radio-group", ...e }); -} -function x({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - a.Trigger, +function p({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + n.List, { - "data-slot": "menubar-trigger", - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:items-center lib:rounded-sm lib:px-2 lib:py-1 lib:text-sm lib:font-medium lib:outline-hidden lib:select-none", - e - ), - ...i + "data-slot": "navigation-menu-list", + className: o("group flex flex-1 list-none items-center justify-center gap-1", t), + ...a } ); } -function h({ - className: e, - align: i = "start", - alignOffset: l = -4, - sideOffset: r = 8, - ...b -}) { - return /* @__PURE__ */ t.createElement(u, null, /* @__PURE__ */ t.createElement( - a.Content, - { - "data-slot": "menubar-content", - align: i, - alignOffset: l, - sideOffset: r, - className: n( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[12rem] lib:origin-(--radix-menubar-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-md", - e - ), - ...b - } - )); +function x({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx(n.Item, { "data-slot": "navigation-menu-item", className: o("relative", t), ...a }); } -function E({ - className: e, - inset: i, - variant: l = "default", - ...r +const d = s( + "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1" +); +function w({ + className: t, + children: a, + ...i }) { - return /* @__PURE__ */ t.createElement( - a.Item, + return /* @__PURE__ */ e.jsxs( + n.Trigger, { - "data-slot": "menubar-item", - "data-inset": i, - "data-variant": l, - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - ...r + "data-slot": "navigation-menu-trigger", + className: o(d(), "group", t), + ...i, + children: [ + a, + " ", + /* @__PURE__ */ e.jsx( + u, + { + className: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180", + "aria-hidden": "true" + } + ) + ] } ); } -function M({ - className: e, - children: i, - checked: l, - ...r -}) { - return /* @__PURE__ */ t.createElement( - a.CheckboxItem, - { - "data-slot": "menubar-checkbox-item", - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-xs lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e - ), - checked: l, - ...r - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(a.ItemIndicator, null, /* @__PURE__ */ t.createElement(o, { className: "lib:size-4" }))), - i - ); -} -function z({ className: e, children: i, ...l }) { - return /* @__PURE__ */ t.createElement( - a.RadioItem, +function b({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + n.Content, { - "data-slot": "menubar-radio-item", - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-xs lib:py-1.5 lib:pr-2 lib:pl-8 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - e + "data-slot": "navigation-menu-content", + className: o( + "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto", + "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none", + t ), - ...l - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:pointer-events-none lib:absolute lib:left-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ t.createElement(a.ItemIndicator, null, /* @__PURE__ */ t.createElement(s, { className: "lib:size-2 lib:fill-current" }))), - i - ); -} -function N({ - className: e, - inset: i, - ...l -}) { - return /* @__PURE__ */ t.createElement( - a.Label, - { - "data-slot": "menubar-label", - "data-inset": i, - className: n("lib:px-2 lib:py-1.5 lib:text-sm lib:font-medium data-[inset]:lib:pl-8", e), - ...l + ...a } ); } -function I({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - a.Separator, +function l({ + className: t, + ...a +}) { + return /* @__PURE__ */ e.jsx("div", { className: o("absolute top-full left-0 isolate z-50 flex justify-center"), children: /* @__PURE__ */ e.jsx( + n.Viewport, { - "data-slot": "menubar-separator", - className: n("lib:bg-border lib:-mx-1 lib:my-1 lib:h-px", e), - ...i + "data-slot": "navigation-menu-viewport", + className: o( + "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]", + t + ), + ...a } - ); + ) }); } -function y({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - "span", +function h({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + n.Link, { - "data-slot": "menubar-shortcut", - className: n("lib:text-muted-foreground lib:ml-auto lib:text-xs lib:tracking-widest", e), - ...i + "data-slot": "navigation-menu-link", + className: o( + "data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_svg:not([class*='size-'])]:size-4", + t + ), + ...a } ); } -function k({ ...e }) { - return /* @__PURE__ */ t.createElement(a.Sub, { "data-slot": "menubar-sub", ...e }); -} -function _({ - className: e, - inset: i, - children: l, - ...r +function N({ + className: t, + ...a }) { - return /* @__PURE__ */ t.createElement( - a.SubTrigger, - { - "data-slot": "menubar-sub-trigger", - "data-inset": i, - className: n( - "focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-none lib:select-none data-[inset]:lib:pl-8", - e - ), - ...r - }, - l, - /* @__PURE__ */ t.createElement(d, { className: "lib:ml-auto lib:h-4 lib:w-4" }) - ); -} -function w({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - a.SubContent, + return /* @__PURE__ */ e.jsx( + n.Indicator, { - "data-slot": "menubar-sub-content", - className: n( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:min-w-[8rem] lib:origin-(--radix-menubar-content-transform-origin) lib:overflow-hidden lib:rounded-md lib:border lib:p-1 lib:shadow-lg", - e + "data-slot": "navigation-menu-indicator", + className: o( + "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden", + t ), - ...i + ...a, + children: /* @__PURE__ */ e.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" }) } ); } export { - f as Menubar, - M as MenubarCheckboxItem, - h as MenubarContent, - g as MenubarGroup, - E as MenubarItem, - N as MenubarLabel, - p as MenubarMenu, - u as MenubarPortal, - v as MenubarRadioGroup, - z as MenubarRadioItem, - I as MenubarSeparator, - y as MenubarShortcut, - k as MenubarSub, - w as MenubarSubContent, - _ as MenubarSubTrigger, - x as MenubarTrigger + f as NavigationMenu, + b as NavigationMenuContent, + N as NavigationMenuIndicator, + x as NavigationMenuItem, + h as NavigationMenuLink, + p as NavigationMenuList, + w as NavigationMenuTrigger, + l as NavigationMenuViewport, + d as navigationMenuTriggerStyle }; diff --git a/dist/index.es32.js b/dist/index.es32.js index d5af797e..f59cf490 100644 --- a/dist/index.es32.js +++ b/dist/index.es32.js @@ -1,146 +1,94 @@ -import * as e from "react"; -import * as n from "@radix-ui/react-navigation-menu"; -import { cva as r } from "class-variance-authority"; -import { ChevronDownIcon as b } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function g({ - className: i, - children: t, - viewport: o = !0, - ...l -}) { - return /* @__PURE__ */ e.createElement( - n.Root, +import { j as t } from "./index.es64.js"; +import { ChevronLeftIcon as r, ChevronRightIcon as l, MoreHorizontalIcon as c } from "lucide-react"; +import { cn as i } from "./index.es65.js"; +import { buttonVariants as p } from "./index.es13.js"; +function d({ className: a, ...n }) { + return /* @__PURE__ */ t.jsx( + "nav", { - "data-slot": "navigation-menu", - "data-viewport": o, - className: a( - "lib:group/navigation-menu lib:relative lib:flex lib:max-w-max lib:flex-1 lib:items-center lib:justify-center", - i - ), - ...l - }, - t, - o && /* @__PURE__ */ e.createElement(s, null) - ); -} -function v({ className: i, ...t }) { - return /* @__PURE__ */ e.createElement( - n.List, - { - "data-slot": "navigation-menu-list", - className: a( - "lib:group lib:flex lib:flex-1 lib:list-none lib:items-center lib:justify-center lib:gap-1", - i - ), - ...t + role: "navigation", + "aria-label": "pagination", + "data-slot": "pagination", + className: i("mx-auto flex w-full justify-center", a), + ...n } ); } -function f({ className: i, ...t }) { - return /* @__PURE__ */ e.createElement( - n.Item, - { - "data-slot": "navigation-menu-item", - className: a("lib:relative", i), - ...t - } - ); +function f({ className: a, ...n }) { + return /* @__PURE__ */ t.jsx("ul", { "data-slot": "pagination-content", className: i("flex flex-row items-center gap-1", a), ...n }); } -const u = r( - "lib:group lib:inline-flex lib:h-9 lib:w-max lib:items-center lib:justify-center lib:rounded-md lib:bg-background lib:px-4 lib:py-2 lib:text-sm lib:font-medium hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=open]:hover:lib:bg-accent data-[state=open]:lib:text-accent-foreground data-[state=open]:focus:lib:bg-accent data-[state=open]:lib:bg-accent/50 focus-visible:lib:ring-ring/50 lib:outline-none lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1" -); -function p({ - className: i, - children: t, - ...o -}) { - return /* @__PURE__ */ e.createElement( - n.Trigger, - { - "data-slot": "navigation-menu-trigger", - className: a(u(), "lib:group", i), - ...o - }, - t, - " ", - /* @__PURE__ */ e.createElement( - b, - { - className: "lib:relative lib:top-[1px] lib:ml-1 lib:size-3 lib:transition lib:duration-300 group-data-[state=open]:lib:rotate-180", - "aria-hidden": "true" - } - ) - ); +function j({ ...a }) { + return /* @__PURE__ */ t.jsx("li", { "data-slot": "pagination-item", ...a }); } -function w({ className: i, ...t }) { - return /* @__PURE__ */ e.createElement( - n.Content, +function e({ className: a, isActive: n, size: s = "icon", ...o }) { + return /* @__PURE__ */ t.jsx( + "a", { - "data-slot": "navigation-menu-content", - className: a( - "data-[motion^=from-]:lib:animate-in data-[motion^=to-]:lib:animate-out data-[motion^=from-]:lib:fade-in data-[motion^=to-]:lib:fade-out data-[motion=from-end]:lib:slide-in-from-right-52 data-[motion=from-start]:lib:slide-in-from-left-52 data-[motion=to-end]:lib:slide-out-to-right-52 data-[motion=to-start]:lib:slide-out-to-left-52 lib:top-0 lib:left-0 lib:w-full lib:p-2 lib:pr-2.5 md:lib:absolute md:lib:w-auto", - "lib:group-data-[viewport=false]/navigation-menu:bg-popover lib:group-data-[viewport=false]/navigation-menu:text-popover-foreground lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 lib:group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 lib:group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 lib:group-data-[viewport=false]/navigation-menu:top-full lib:group-data-[viewport=false]/navigation-menu:mt-1.5 lib:group-data-[viewport=false]/navigation-menu:overflow-hidden lib:group-data-[viewport=false]/navigation-menu:rounded-md lib:group-data-[viewport=false]/navigation-menu:border lib:group-data-[viewport=false]/navigation-menu:shadow lib:group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:lib:ring-0 **:data-[slot=navigation-menu-link]:focus:lib:outline-none", - i + "aria-current": n ? "page" : void 0, + "data-slot": "pagination-link", + "data-active": n, + className: i( + p({ + variant: n ? "outline" : "ghost", + size: s + }), + a ), - ...t + ...o } ); } -function s({ - className: i, - ...t -}) { - return /* @__PURE__ */ e.createElement("div", { className: a("lib:absolute lib:top-full lib:left-0 lib:isolate lib:z-50 lib:flex lib:justify-center") }, /* @__PURE__ */ e.createElement( - n.Viewport, +function h({ className: a, ...n }) { + return /* @__PURE__ */ t.jsxs( + e, { - "data-slot": "navigation-menu-viewport", - className: a( - "lib:origin-top-center lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-90 lib:relative lib:mt-1.5 lib:h-[var(--radix-navigation-menu-viewport-height)] lib:w-full lib:overflow-hidden lib:rounded-md lib:border lib:shadow md:lib:w-[var(--radix-navigation-menu-viewport-width)]", - i - ), - ...t + "aria-label": "Go to previous page", + size: "default", + className: i("gap-1 px-2.5 sm:pl-2.5", a), + ...n, + children: [ + /* @__PURE__ */ t.jsx(r, {}), + /* @__PURE__ */ t.jsx("span", { className: "hidden sm:block", children: "Previous" }) + ] } - )); + ); } -function x({ className: i, ...t }) { - return /* @__PURE__ */ e.createElement( - n.Link, +function N({ className: a, ...n }) { + return /* @__PURE__ */ t.jsxs( + e, { - "data-slot": "navigation-menu-link", - className: a( - "data-[active=true]:focus:lib:bg-accent data-[active=true]:hover:lib:bg-accent data-[active=true]:lib:bg-accent/50 data-[active=true]:lib:text-accent-foreground hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground focus-visible:lib:ring-ring/50 [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:flex lib:flex-col lib:gap-1 lib:rounded-sm lib:p-2 lib:text-sm lib:transition-all lib:outline-none focus-visible:lib:ring-[3px] focus-visible:lib:outline-1 [&_svg:not([class*=size-])]:lib:size-4", - i - ), - ...t + "aria-label": "Go to next page", + size: "default", + className: i("gap-1 px-2.5 sm:pr-2.5", a), + ...n, + children: [ + /* @__PURE__ */ t.jsx("span", { className: "hidden sm:block", children: "Next" }), + /* @__PURE__ */ t.jsx(l, {}) + ] } ); } -function h({ - className: i, - ...t -}) { - return /* @__PURE__ */ e.createElement( - n.Indicator, +function P({ className: a, ...n }) { + return /* @__PURE__ */ t.jsxs( + "span", { - "data-slot": "navigation-menu-indicator", - className: a( - "data-[state=visible]:lib:animate-in data-[state=hidden]:lib:animate-out data-[state=hidden]:lib:fade-out data-[state=visible]:lib:fade-in lib:top-full lib:z-[1] lib:flex lib:h-1.5 lib:items-end lib:justify-center lib:overflow-hidden", - i - ), - ...t - }, - /* @__PURE__ */ e.createElement("div", { className: "lib:bg-border lib:relative lib:top-[60%] lib:h-2 lib:w-2 lib:rotate-45 lib:rounded-tl-sm lib:shadow-md" }) + "aria-hidden": !0, + "data-slot": "pagination-ellipsis", + className: i("flex size-9 items-center justify-center", a), + ...n, + children: [ + /* @__PURE__ */ t.jsx(c, { className: "size-4" }), + /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "More pages" }) + ] + } ); } export { - g as NavigationMenu, - w as NavigationMenuContent, - h as NavigationMenuIndicator, - f as NavigationMenuItem, - x as NavigationMenuLink, - v as NavigationMenuList, - p as NavigationMenuTrigger, - s as NavigationMenuViewport, - u as navigationMenuTriggerStyle + d as Pagination, + f as PaginationContent, + P as PaginationEllipsis, + j as PaginationItem, + e as PaginationLink, + N as PaginationNext, + h as PaginationPrevious }; diff --git a/dist/index.es33.js b/dist/index.es33.js index 241fa333..5dc68851 100644 --- a/dist/index.es33.js +++ b/dist/index.es33.js @@ -1,95 +1,38 @@ -import * as t from "react"; -import { ChevronLeftIcon as r, ChevronRightIcon as s, MoreHorizontalIcon as c } from "lucide-react"; -import { cn as n } from "./index.es54.js"; -import { buttonVariants as m } from "./index.es14.js"; -function g({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - "nav", - { - role: "navigation", - "aria-label": "pagination", - "data-slot": "pagination", - className: n("lib:mx-auto lib:flex lib:w-full lib:justify-center", e), - ...a - } - ); -} -function f({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - "ul", - { - "data-slot": "pagination-content", - className: n("lib:flex lib:flex-row lib:items-center lib:gap-1", e), - ...a - } - ); +import { j as t } from "./index.es64.js"; +import * as e from "@radix-ui/react-popover"; +import { cn as i } from "./index.es65.js"; +function p({ ...o }) { + return /* @__PURE__ */ t.jsx(e.Root, { "data-slot": "popover", ...o }); } -function d({ ...e }) { - return /* @__PURE__ */ t.createElement("li", { "data-slot": "pagination-item", ...e }); +function m({ ...o }) { + return /* @__PURE__ */ t.jsx(e.Trigger, { "data-slot": "popover-trigger", ...o }); } -function i({ className: e, isActive: a, size: l = "icon", ...o }) { - return /* @__PURE__ */ t.createElement( - "a", +function f({ + className: o, + align: r = "center", + sideOffset: a = 4, + ...n +}) { + return /* @__PURE__ */ t.jsx(e.Portal, { children: /* @__PURE__ */ t.jsx( + e.Content, { - "aria-current": a ? "page" : void 0, - "data-slot": "pagination-link", - "data-active": a, - className: n( - m({ - variant: a ? "outline" : "ghost", - size: l - }), - e + "data-slot": "popover-content", + align: r, + sideOffset: a, + className: i( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", + o ), - ...o + ...n } - ); + ) }); } -function E({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - i, - { - "aria-label": "Go to previous page", - size: "default", - className: n("lib:gap-1 lib:px-2.5 sm:lib:pl-2.5", e), - ...a - }, - /* @__PURE__ */ t.createElement(r, null), - /* @__PURE__ */ t.createElement("span", { className: "lib:hidden sm:lib:block" }, "Previous") - ); -} -function N({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - i, - { - "aria-label": "Go to next page", - size: "default", - className: n("lib:gap-1 lib:px-2.5 sm:lib:pr-2.5", e), - ...a - }, - /* @__PURE__ */ t.createElement("span", { className: "lib:hidden sm:lib:block" }, "Next"), - /* @__PURE__ */ t.createElement(s, null) - ); -} -function x({ className: e, ...a }) { - return /* @__PURE__ */ t.createElement( - "span", - { - "aria-hidden": !0, - "data-slot": "pagination-ellipsis", - className: n("lib:flex lib:size-9 lib:items-center lib:justify-center", e), - ...a - }, - /* @__PURE__ */ t.createElement(c, { className: "lib:size-4" }), - /* @__PURE__ */ t.createElement("span", { className: "lib:sr-only" }, "More pages") - ); +function l({ ...o }) { + return /* @__PURE__ */ t.jsx(e.Anchor, { "data-slot": "popover-anchor", ...o }); } export { - g as Pagination, - f as PaginationContent, - x as PaginationEllipsis, - d as PaginationItem, - i as PaginationLink, - N as PaginationNext, - E as PaginationPrevious + p as Popover, + l as PopoverAnchor, + f as PopoverContent, + m as PopoverTrigger }; diff --git a/dist/index.es34.js b/dist/index.es34.js index c0aef3ed..84ab4575 100644 --- a/dist/index.es34.js +++ b/dist/index.es34.js @@ -1,38 +1,24 @@ -import * as e from "react"; -import * as o from "@radix-ui/react-popover"; -import { cn as n } from "./index.es54.js"; -function d({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Root, { "data-slot": "popover", ...t }); -} -function p({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Trigger, { "data-slot": "popover-trigger", ...t }); -} -function s({ - className: t, - align: r = "center", - sideOffset: i = 4, - ...a -}) { - return /* @__PURE__ */ e.createElement(o.Portal, null, /* @__PURE__ */ e.createElement( - o.Content, +import { j as r } from "./index.es64.js"; +import * as o from "@radix-ui/react-progress"; +import { cn as l } from "./index.es65.js"; +function n({ className: s, value: t, ...a }) { + return /* @__PURE__ */ r.jsx( + o.Root, { - "data-slot": "popover-content", - align: r, - sideOffset: i, - className: n( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-72 lib:origin-(--radix-popover-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden", - t - ), - ...a + "data-slot": "progress", + className: l("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", s), + ...a, + children: /* @__PURE__ */ r.jsx( + o.Indicator, + { + "data-slot": "progress-indicator", + className: "bg-primary h-full w-full flex-1 transition-all", + style: { transform: `translateX(-${100 - (t || 0)}%)` } + } + ) } - )); -} -function m({ ...t }) { - return /* @__PURE__ */ e.createElement(o.Anchor, { "data-slot": "popover-anchor", ...t }); + ); } export { - d as Popover, - m as PopoverAnchor, - s as PopoverContent, - p as PopoverTrigger + n as Progress }; diff --git a/dist/index.es35.js b/dist/index.es35.js index 2319ec67..fb2d55c5 100644 --- a/dist/index.es35.js +++ b/dist/index.es35.js @@ -1,27 +1,32 @@ -import * as r from "react"; -import * as l from "@radix-ui/react-progress"; -import { cn as a } from "./index.es54.js"; -function s({ className: i, value: e, ...t }) { - return /* @__PURE__ */ r.createElement( - l.Root, +import { j as r } from "./index.es64.js"; +import * as a from "@radix-ui/react-radio-group"; +import { CircleIcon as e } from "lucide-react"; +import { cn as t } from "./index.es65.js"; +function l({ className: i, ...o }) { + return /* @__PURE__ */ r.jsx(a.Root, { "data-slot": "radio-group", className: t("grid gap-3", i), ...o }); +} +function u({ className: i, ...o }) { + return /* @__PURE__ */ r.jsx( + a.Item, { - "data-slot": "progress", - className: a( - "lib:bg-primary/20 lib:relative lib:h-2 lib:w-full lib:overflow-hidden lib:rounded-full", + "data-slot": "radio-group-item", + className: t( + "border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", i ), - ...t - }, - /* @__PURE__ */ r.createElement( - l.Indicator, - { - "data-slot": "progress-indicator", - className: "lib:bg-primary lib:h-full lib:w-full lib:flex-1 lib:transition-all", - style: { transform: `translateX(-${100 - (e || 0)}%)` } - } - ) + ...o, + children: /* @__PURE__ */ r.jsx( + a.Indicator, + { + "data-slot": "radio-group-indicator", + className: "relative flex items-center justify-center", + children: /* @__PURE__ */ r.jsx(e, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" }) + } + ) + } ); } export { - s as Progress + l as RadioGroup, + u as RadioGroupItem }; diff --git a/dist/index.es36.js b/dist/index.es36.js index 68dbe9e2..cb69edb8 100644 --- a/dist/index.es36.js +++ b/dist/index.es36.js @@ -1,32 +1,40 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-radio-group"; -import { CircleIcon as a } from "lucide-react"; -import { cn as t } from "./index.es54.js"; -function s({ className: r, ...l }) { - return /* @__PURE__ */ i.createElement(e.Root, { "data-slot": "radio-group", className: t("lib:grid lib:gap-3", r), ...l }); +import { j as a } from "./index.es64.js"; +import { GripVerticalIcon as n } from "lucide-react"; +import * as t from "react-resizable-panels"; +import { cn as i } from "./index.es65.js"; +function d({ className: e, ...r }) { + return /* @__PURE__ */ a.jsx( + t.PanelGroup, + { + "data-slot": "resizable-panel-group", + className: i("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", e), + ...r + } + ); +} +function f({ ...e }) { + return /* @__PURE__ */ a.jsx(t.Panel, { "data-slot": "resizable-panel", ...e }); } -function n({ className: r, ...l }) { - return /* @__PURE__ */ i.createElement( - e.Item, +function p({ + withHandle: e, + className: r, + ...l +}) { + return /* @__PURE__ */ a.jsx( + t.PanelResizeHandle, { - "data-slot": "radio-group-item", - className: t( - "lib:border-input lib:text-primary focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:aspect-square lib:size-4 lib:shrink-0 lib:rounded-full lib:border lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50", + "data-slot": "resizable-handle", + className: i( + "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90", r ), - ...l - }, - /* @__PURE__ */ i.createElement( - e.Indicator, - { - "data-slot": "radio-group-indicator", - className: "lib:relative lib:flex lib:items-center lib:justify-center" - }, - /* @__PURE__ */ i.createElement(a, { className: "lib:fill-primary lib:absolute lib:top-1/2 lib:left-1/2 lib:size-2 lib:-translate-x-1/2 lib:-translate-y-1/2" }) - ) + ...l, + children: e && /* @__PURE__ */ a.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border", children: /* @__PURE__ */ a.jsx(n, { className: "size-2.5" }) }) + } ); } export { - s as RadioGroup, - n as RadioGroupItem + p as ResizableHandle, + f as ResizablePanel, + d as ResizablePanelGroup }; diff --git a/dist/index.es37.js b/dist/index.es37.js index 83804716..56eacb45 100644 --- a/dist/index.es37.js +++ b/dist/index.es37.js @@ -1,40 +1,48 @@ -import * as l from "react"; -import { GripVerticalIcon as n } from "lucide-react"; -import * as a from "react-resizable-panels"; -import { cn as t } from "./index.es54.js"; -function c({ className: e, ...i }) { - return /* @__PURE__ */ l.createElement( - a.PanelGroup, - { - "data-slot": "resizable-panel-group", - className: t("lib:flex lib:h-full lib:w-full data-[panel-group-direction=vertical]:lib:flex-col", e), - ...i - } - ); +import { j as r } from "./index.es64.js"; +import * as o from "@radix-ui/react-scroll-area"; +import { cn as s } from "./index.es65.js"; +function n({ className: e, children: l, ...a }) { + return /* @__PURE__ */ r.jsxs(o.Root, { "data-slot": "scroll-area", className: s("relative", e), ...a, children: [ + /* @__PURE__ */ r.jsx( + o.Viewport, + { + "data-slot": "scroll-area-viewport", + className: "focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1", + children: l + } + ), + /* @__PURE__ */ r.jsx(t, {}), + /* @__PURE__ */ r.jsx(o.Corner, {}) + ] }); } -function s({ ...e }) { - return /* @__PURE__ */ l.createElement(a.Panel, { "data-slot": "resizable-panel", ...e }); -} -function f({ - withHandle: e, - className: i, - ...r +function t({ + className: e, + orientation: l = "vertical", + ...a }) { - return /* @__PURE__ */ l.createElement( - a.PanelResizeHandle, + return /* @__PURE__ */ r.jsx( + o.ScrollAreaScrollbar, { - "data-slot": "resizable-handle", - className: t( - "lib:bg-border focus-visible:lib:ring-ring lib:relative lib:flex lib:w-px lib:items-center lib:justify-center after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-1 after:lib:-translate-x-1/2 focus-visible:lib:ring-1 focus-visible:lib:ring-offset-1 focus-visible:lib:outline-hidden data-[panel-group-direction=vertical]:lib:h-px data-[panel-group-direction=vertical]:lib:w-full data-[panel-group-direction=vertical]:after:lib:left-0 data-[panel-group-direction=vertical]:after:lib:h-1 data-[panel-group-direction=vertical]:after:lib:w-full data-[panel-group-direction=vertical]:after:lib:-translate-y-1/2 data-[panel-group-direction=vertical]:after:lib:translate-x-0 [&[data-panel-group-direction=vertical]>div]:lib:rotate-90", - i + "data-slot": "scroll-area-scrollbar", + orientation: l, + className: s( + "flex touch-none p-px transition-colors select-none", + l === "vertical" && "h-full w-2.5 border-l border-l-transparent", + l === "horizontal" && "h-2.5 flex-col border-t border-t-transparent", + e ), - ...r - }, - e && /* @__PURE__ */ l.createElement("div", { className: "lib:bg-border lib:z-10 lib:flex lib:h-4 lib:w-3 lib:items-center lib:justify-center lib:rounded-xs lib:border" }, /* @__PURE__ */ l.createElement(n, { className: "lib:size-2.5" })) + ...a, + children: /* @__PURE__ */ r.jsx( + o.ScrollAreaThumb, + { + "data-slot": "scroll-area-thumb", + className: "bg-border relative flex-1 rounded-full" + } + ) + } ); } export { - f as ResizableHandle, - s as ResizablePanel, - c as ResizablePanelGroup + n as ScrollArea, + t as ScrollBar }; diff --git a/dist/index.es38.js b/dist/index.es38.js index 051baa85..84a4f507 100644 --- a/dist/index.es38.js +++ b/dist/index.es38.js @@ -1,44 +1,144 @@ -import * as l from "react"; -import * as r from "@radix-ui/react-scroll-area"; -import { cn as a } from "./index.es54.js"; -function c({ className: i, children: e, ...o }) { - return /* @__PURE__ */ l.createElement(r.Root, { "data-slot": "scroll-area", className: a("lib:relative", i), ...o }, /* @__PURE__ */ l.createElement( - r.Viewport, +import { j as e } from "./index.es64.js"; +import * as a from "@radix-ui/react-select"; +import { CheckIcon as i, ChevronDownIcon as l, ChevronUpIcon as d } from "lucide-react"; +import { cn as r } from "./index.es65.js"; +function f({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "select", ...t }); +} +function g({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Group, { "data-slot": "select-group", ...t }); +} +function v({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Value, { "data-slot": "select-value", ...t }); +} +function h({ + className: t, + size: s = "default", + children: o, + ...n +}) { + return /* @__PURE__ */ e.jsxs( + a.Trigger, { - "data-slot": "scroll-area-viewport", - className: "focus-visible:lib:ring-ring/50 lib:size-full lib:rounded-[inherit] lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] focus-visible:lib:outline-1" - }, - e - ), /* @__PURE__ */ l.createElement(t, null), /* @__PURE__ */ l.createElement(r.Corner, null)); -} -function t({ - className: i, - orientation: e = "vertical", - ...o + "data-slot": "select-trigger", + "data-size": s, + className: r( + "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t + ), + ...n, + children: [ + o, + /* @__PURE__ */ e.jsx(a.Icon, { asChild: !0, children: /* @__PURE__ */ e.jsx(l, { className: "size-4 opacity-50" }) }) + ] + } + ); +} +function b({ + className: t, + children: s, + position: o = "popper", + ...n }) { - return /* @__PURE__ */ l.createElement( - r.ScrollAreaScrollbar, + return /* @__PURE__ */ e.jsx(a.Portal, { children: /* @__PURE__ */ e.jsxs( + a.Content, { - "data-slot": "scroll-area-scrollbar", - orientation: e, - className: a( - "lib:flex lib:touch-none lib:p-px lib:transition-colors lib:select-none", - e === "vertical" && "lib:h-full lib:w-2.5 lib:border-l lib:border-l-transparent", - e === "horizontal" && "lib:h-2.5 lib:flex-col lib:border-t lib:border-t-transparent", - i + "data-slot": "select-content", + className: r( + "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", + o === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", + t ), - ...o - }, - /* @__PURE__ */ l.createElement( - r.ScrollAreaThumb, - { - "data-slot": "scroll-area-thumb", - className: "lib:bg-border lib:relative lib:flex-1 lib:rounded-full" - } - ) + position: o, + ...n, + children: [ + /* @__PURE__ */ e.jsx(c, {}), + /* @__PURE__ */ e.jsx( + a.Viewport, + { + className: r( + "p-1", + o === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1" + ), + children: s + } + ), + /* @__PURE__ */ e.jsx(u, {}) + ] + } + ) }); +} +function j({ className: t, ...s }) { + return /* @__PURE__ */ e.jsx( + a.Label, + { + "data-slot": "select-label", + className: r("text-muted-foreground px-2 py-1.5 text-xs", t), + ...s + } + ); +} +function w({ className: t, children: s, ...o }) { + return /* @__PURE__ */ e.jsxs( + a.Item, + { + "data-slot": "select-item", + className: r( + "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", + t + ), + ...o, + children: [ + /* @__PURE__ */ e.jsx("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ e.jsx(a.ItemIndicator, { children: /* @__PURE__ */ e.jsx(i, { className: "size-4" }) }) }), + /* @__PURE__ */ e.jsx(a.ItemText, { children: s }) + ] + } + ); +} +function y({ className: t, ...s }) { + return /* @__PURE__ */ e.jsx( + a.Separator, + { + "data-slot": "select-separator", + className: r("bg-border pointer-events-none -mx-1 my-1 h-px", t), + ...s + } + ); +} +function c({ className: t, ...s }) { + return /* @__PURE__ */ e.jsx( + a.ScrollUpButton, + { + "data-slot": "select-scroll-up-button", + className: r("flex cursor-default items-center justify-center py-1", t), + ...s, + children: /* @__PURE__ */ e.jsx(d, { className: "size-4" }) + } + ); +} +function u({ + className: t, + ...s +}) { + return /* @__PURE__ */ e.jsx( + a.ScrollDownButton, + { + "data-slot": "select-scroll-down-button", + className: r("flex cursor-default items-center justify-center py-1", t), + ...s, + children: /* @__PURE__ */ e.jsx(l, { className: "size-4" }) + } ); } export { - c as ScrollArea, - t as ScrollBar + f as Select, + b as SelectContent, + g as SelectGroup, + w as SelectItem, + j as SelectLabel, + u as SelectScrollDownButton, + c as SelectScrollUpButton, + y as SelectSeparator, + h as SelectTrigger, + v as SelectValue }; diff --git a/dist/index.es39.js b/dist/index.es39.js index 6b567ac9..2931833d 100644 --- a/dist/index.es39.js +++ b/dist/index.es39.js @@ -1,138 +1,26 @@ -import * as e from "react"; -import * as l from "@radix-ui/react-select"; -import { CheckIcon as o, ChevronDownIcon as s, ChevronUpIcon as b } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function p({ ...t }) { - return /* @__PURE__ */ e.createElement(l.Root, { "data-slot": "select", ...t }); -} -function f({ ...t }) { - return /* @__PURE__ */ e.createElement(l.Group, { "data-slot": "select-group", ...t }); -} -function g({ ...t }) { - return /* @__PURE__ */ e.createElement(l.Value, { "data-slot": "select-value", ...t }); -} -function v({ +import { j as i } from "./index.es64.js"; +import * as n from "@radix-ui/react-separator"; +import { cn as e } from "./index.es65.js"; +function s({ className: t, - size: i = "default", - children: r, - ...n + orientation: o = "horizontal", + decorative: r = !0, + ...a }) { - return /* @__PURE__ */ e.createElement( - l.Trigger, + return /* @__PURE__ */ i.jsx( + n.Root, { - "data-slot": "select-trigger", - "data-size": i, - className: a( - "lib:border-input data-[placeholder]:lib:text-muted-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 dark:hover:lib:bg-input/50 lib:flex lib:w-fit lib:items-center lib:justify-between lib:gap-2 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-sm lib:whitespace-nowrap lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 data-[size=default]:lib:h-9 data-[size=sm]:lib:h-8 *:data-[slot=select-value]:lib:line-clamp-1 *:data-[slot=select-value]:lib:flex *:data-[slot=select-value]:lib:items-center *:data-[slot=select-value]:lib:gap-2 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", + "data-slot": "separator", + decorative: r, + orientation: o, + className: e( + "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", t ), - ...n - }, - r, - /* @__PURE__ */ e.createElement(l.Icon, { asChild: !0 }, /* @__PURE__ */ e.createElement(s, { className: "lib:size-4 lib:opacity-50" })) - ); -} -function x({ - className: t, - children: i, - position: r = "popper", - ...n -}) { - return /* @__PURE__ */ e.createElement(l.Portal, null, /* @__PURE__ */ e.createElement( - l.Content, - { - "data-slot": "select-content", - className: a( - "lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:relative lib:z-50 lib:max-h-(--radix-select-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-select-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:shadow-md", - r === "popper" && "data-[side=bottom]:lib:translate-y-1 data-[side=left]:lib:-translate-x-1 data-[side=right]:lib:translate-x-1 data-[side=top]:lib:-translate-y-1", - t - ), - position: r, - ...n - }, - /* @__PURE__ */ e.createElement(c, null), - /* @__PURE__ */ e.createElement( - l.Viewport, - { - className: a( - "lib:p-1", - r === "popper" && "lib:h-[var(--radix-select-trigger-height)] lib:w-full lib:min-w-[var(--radix-select-trigger-width)] lib:scroll-my-1" - ) - }, - i - ), - /* @__PURE__ */ e.createElement(d, null) - )); -} -function h({ className: t, ...i }) { - return /* @__PURE__ */ e.createElement( - l.Label, - { - "data-slot": "select-label", - className: a("lib:text-muted-foreground lib:px-2 lib:py-1.5 lib:text-xs", t), - ...i + ...a } ); } -function E({ className: t, children: i, ...r }) { - return /* @__PURE__ */ e.createElement( - l.Item, - { - "data-slot": "select-item", - className: a( - "focus:lib:bg-accent focus:lib:text-accent-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:w-full lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:py-1.5 lib:pr-8 lib:pl-2 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4 *:[span]:last:lib:flex *:[span]:last:lib:items-center *:[span]:last:lib:gap-2", - t - ), - ...r - }, - /* @__PURE__ */ e.createElement("span", { className: "lib:absolute lib:right-2 lib:flex lib:size-3.5 lib:items-center lib:justify-center" }, /* @__PURE__ */ e.createElement(l.ItemIndicator, null, /* @__PURE__ */ e.createElement(o, { className: "lib:size-4" }))), - /* @__PURE__ */ e.createElement(l.ItemText, null, i) - ); -} -function w({ className: t, ...i }) { - return /* @__PURE__ */ e.createElement( - l.Separator, - { - "data-slot": "select-separator", - className: a("lib:bg-border lib:pointer-events-none lib:-mx-1 lib:my-1 lib:h-px", t), - ...i - } - ); -} -function c({ className: t, ...i }) { - return /* @__PURE__ */ e.createElement( - l.ScrollUpButton, - { - "data-slot": "select-scroll-up-button", - className: a("lib:flex lib:cursor-default lib:items-center lib:justify-center lib:py-1", t), - ...i - }, - /* @__PURE__ */ e.createElement(b, { className: "lib:size-4" }) - ); -} -function d({ - className: t, - ...i -}) { - return /* @__PURE__ */ e.createElement( - l.ScrollDownButton, - { - "data-slot": "select-scroll-down-button", - className: a("lib:flex lib:cursor-default lib:items-center lib:justify-center lib:py-1", t), - ...i - }, - /* @__PURE__ */ e.createElement(s, { className: "lib:size-4" }) - ); -} export { - p as Select, - x as SelectContent, - f as SelectGroup, - E as SelectItem, - h as SelectLabel, - d as SelectScrollDownButton, - c as SelectScrollUpButton, - w as SelectSeparator, - v as SelectTrigger, - g as SelectValue + s as Separator }; diff --git a/dist/index.es4.js b/dist/index.es4.js index 3c7861c6..e050bab5 100644 --- a/dist/index.es4.js +++ b/dist/index.es4.js @@ -1,26 +1,8 @@ -import h, { createContext as l, useContext as m, useState as c, useEffect as i } from "react"; -const a = l(null), u = () => { - const t = m(a); - if (!t) - throw new Error("useTheme must be used within a ThemeProvider"); - return t; -}, g = ({ defaultScheme: t, children: s }) => { - const [r, o] = c(null); - i(() => { - if (t) { - o(t); - return; - } - const e = localStorage.getItem("theme"); - e && ["light", "dark"].includes(e) ? o(e) : window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? (o("dark"), localStorage.setItem("theme", "dark")) : (o("light"), localStorage.setItem("theme", "light")); - }, []); - const n = () => { - const e = r === "light" ? "dark" : "light"; - o(e), localStorage.setItem("theme", e), window.dispatchEvent(new Event("storage")); - }; - return /* @__PURE__ */ h.createElement(a.Provider, { value: { theme: r, toggleTheme: n } }, s); -}; +import { j as o } from "./index.es64.js"; +import { ThemeProvider as m } from "next-themes"; +function s({ children: r, ...e }) { + return /* @__PURE__ */ o.jsx(m, { ...e, children: r }); +} export { - g as AppThemeProvider, - u as default + s as default }; diff --git a/dist/index.es40.js b/dist/index.es40.js index 75c1636d..6405b230 100644 --- a/dist/index.es40.js +++ b/dist/index.es40.js @@ -1,26 +1,97 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-separator"; -import { cn as l } from "./index.es54.js"; -function m({ +import { j as e } from "./index.es64.js"; +import * as a from "@radix-ui/react-dialog"; +import { XIcon as i } from "lucide-react"; +import { cn as s } from "./index.es65.js"; +function m({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Root, { "data-slot": "sheet", ...t }); +} +function h({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Trigger, { "data-slot": "sheet-trigger", ...t }); +} +function p({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Close, { "data-slot": "sheet-close", ...t }); +} +function l({ ...t }) { + return /* @__PURE__ */ e.jsx(a.Portal, { "data-slot": "sheet-portal", ...t }); +} +function d({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx( + a.Overlay, + { + "data-slot": "sheet-overlay", + className: s( + "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", + t + ), + ...o + } + ); +} +function x({ className: t, - orientation: a = "horizontal", - decorative: o = !0, + children: o, + side: n = "right", ...r }) { - return /* @__PURE__ */ i.createElement( - e.Root, + return /* @__PURE__ */ e.jsxs(l, { children: [ + /* @__PURE__ */ e.jsx(d, {}), + /* @__PURE__ */ e.jsxs( + a.Content, + { + "data-slot": "sheet-content", + className: s( + "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", + n === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", + n === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", + n === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", + n === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", + t + ), + ...r, + children: [ + o, + /* @__PURE__ */ e.jsxs(a.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [ + /* @__PURE__ */ e.jsx(i, { className: "size-4" }), + /* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Close" }) + ] }) + ] + } + ) + ] }); +} +function g({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "sheet-header", className: s("flex flex-col gap-1.5 p-4", t), ...o }); +} +function b({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "sheet-footer", className: s("mt-auto flex flex-col gap-2 p-4", t), ...o }); +} +function j({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx( + a.Title, { - "data-slot": "separator-root", - decorative: o, - orientation: a, - className: l( - "lib:bg-border lib:shrink-0 data-[orientation=horizontal]:lib:h-px data-[orientation=horizontal]:lib:w-full data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:w-px", - t - ), - ...r + "data-slot": "sheet-title", + className: s("text-foreground font-semibold", t), + ...o + } + ); +} +function y({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx( + a.Description, + { + "data-slot": "sheet-description", + className: s("text-muted-foreground text-sm", t), + ...o } ); } export { - m as Separator + m as Sheet, + p as SheetClose, + x as SheetContent, + y as SheetDescription, + b as SheetFooter, + g as SheetHeader, + j as SheetTitle, + h as SheetTrigger }; diff --git a/dist/index.es41.js b/dist/index.es41.js index 99b995ef..ceace754 100644 --- a/dist/index.es41.js +++ b/dist/index.es41.js @@ -1,96 +1,558 @@ -import * as e from "react"; -import * as i from "@radix-ui/react-dialog"; -import { XIcon as s } from "lucide-react"; -import { cn as a } from "./index.es54.js"; -function m({ ...t }) { - return /* @__PURE__ */ e.createElement(i.Root, { "data-slot": "sheet", ...t }); -} -function u({ ...t }) { - return /* @__PURE__ */ e.createElement(i.Trigger, { "data-slot": "sheet-trigger", ...t }); -} -function f({ ...t }) { - return /* @__PURE__ */ e.createElement(i.Close, { "data-slot": "sheet-close", ...t }); -} -function r({ ...t }) { - return /* @__PURE__ */ e.createElement(i.Portal, { "data-slot": "sheet-portal", ...t }); -} -function b({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement( - i.Overlay, - { - "data-slot": "sheet-overlay", - className: a( - "data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50", - t +import { j as t } from "./index.es64.js"; +import * as c from "react"; +import { Slot as g } from "@radix-ui/react-slot"; +import { cva as k } from "class-variance-authority"; +import { PanelLeftIcon as M } from "lucide-react"; +import { useIsMobile as C } from "./index.es66.js"; +import { cn as r } from "./index.es65.js"; +import { Button as z } from "./index.es13.js"; +import { Input as I } from "./index.es28.js"; +import { Separator as E } from "./index.es39.js"; +import { Sheet as D, SheetContent as T, SheetHeader as B, SheetTitle as A, SheetDescription as O } from "./index.es40.js"; +import { Skeleton as j } from "./index.es42.js"; +import { Tooltip as R, TooltipTrigger as H, TooltipContent as K, TooltipProvider as G } from "./index.es51.js"; +const L = "sidebar_state", $ = 60 * 60 * 24 * 7, P = "16rem", V = "18rem", W = "3rem", q = "b", N = c.createContext(null); +function w() { + const a = c.useContext(N); + if (!a) + throw new Error("useSidebar must be used within a SidebarProvider."); + return a; +} +function ne({ + defaultOpen: a = !0, + open: e, + onOpenChange: i, + className: s, + style: n, + children: d, + ...p +}) { + const l = C(), [f, u] = c.useState(!1), [x, y] = c.useState(a), m = e ?? x, h = c.useCallback( + (o) => { + const b = typeof o == "function" ? o(m) : o; + i ? i(b) : y(b), document.cookie = `${L}=${b}; path=/; max-age=${$}`; + }, + [i, m] + ), v = c.useCallback(() => l ? u((o) => !o) : h((o) => !o), [l, h, u]); + c.useEffect(() => { + const o = (b) => { + b.key === q && (b.metaKey || b.ctrlKey) && (b.preventDefault(), v()); + }; + return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o); + }, [v]); + const S = m ? "expanded" : "collapsed", _ = c.useMemo( + () => ({ + state: S, + open: m, + setOpen: h, + isMobile: l, + openMobile: f, + setOpenMobile: u, + toggleSidebar: v + }), + [S, m, h, l, f, u, v] + ); + return /* @__PURE__ */ t.jsx(N.Provider, { value: _, children: /* @__PURE__ */ t.jsx(G, { delayDuration: 0, children: /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-wrapper", + style: { + "--sidebar-width": P, + "--sidebar-width-icon": W, + ...n + }, + className: r("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full", s), + ...p, + children: d + } + ) }) }); +} +function oe({ + side: a = "left", + variant: e = "sidebar", + collapsible: i = "offcanvas", + className: s, + children: n, + ...d +}) { + const { isMobile: p, state: l, openMobile: f, setOpenMobile: u } = w(); + return i === "none" ? /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar", + className: r("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", s), + ...d, + children: n + } + ) : p ? /* @__PURE__ */ t.jsx(D, { open: f, onOpenChange: u, ...d, children: /* @__PURE__ */ t.jsxs( + T, + { + "data-sidebar": "sidebar", + "data-slot": "sidebar", + "data-mobile": "true", + className: "bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden", + style: { + "--sidebar-width": V + }, + side: a, + children: [ + /* @__PURE__ */ t.jsxs(B, { className: "sr-only", children: [ + /* @__PURE__ */ t.jsx(A, { children: "Sidebar" }), + /* @__PURE__ */ t.jsx(O, { children: "Displays the mobile sidebar." }) + ] }), + /* @__PURE__ */ t.jsx("div", { className: "flex h-full w-full flex-col", children: n }) + ] + } + ) }) : /* @__PURE__ */ t.jsxs( + "div", + { + className: "group peer text-sidebar-foreground hidden md:block", + "data-state": l, + "data-collapsible": l === "collapsed" ? i : "", + "data-variant": e, + "data-side": a, + "data-slot": "sidebar", + children: [ + /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-gap", + className: r( + "relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear", + "group-data-[collapsible=offcanvas]:w-0", + "group-data-[side=right]:rotate-180", + e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)" + ) + } + ), + /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-container", + className: r( + "fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", + a === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", + // Adjust the padding for floating and inset variants. + e === "floating" || e === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", + s + ), + ...d, + children: /* @__PURE__ */ t.jsx( + "div", + { + "data-sidebar": "sidebar", + "data-slot": "sidebar-inner", + className: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm", + children: n + } + ) + } + ) + ] + } + ); +} +function de({ className: a, onClick: e, ...i }) { + const { toggleSidebar: s } = w(); + return /* @__PURE__ */ t.jsxs( + z, + { + "data-sidebar": "trigger", + "data-slot": "sidebar-trigger", + variant: "ghost", + size: "icon", + className: r("size-7", a), + onClick: (n) => { + e?.(n), s(); + }, + ...i, + children: [ + /* @__PURE__ */ t.jsx(M, {}), + /* @__PURE__ */ t.jsx("span", { className: "sr-only", children: "Toggle Sidebar" }) + ] + } + ); +} +function le({ className: a, ...e }) { + const { toggleSidebar: i } = w(); + return /* @__PURE__ */ t.jsx( + "button", + { + "data-sidebar": "rail", + "data-slot": "sidebar-rail", + "aria-label": "Toggle Sidebar", + tabIndex: -1, + onClick: i, + title: "Toggle Sidebar", + className: r( + "hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex", + "in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize", + "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", + "hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full", + "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", + "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", + a ), - ...l + ...e } ); } -function h({ - className: t, - children: l, - side: o = "right", - ...n +function ce({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "main", + { + "data-slot": "sidebar-inset", + className: r( + "bg-background relative flex w-full flex-1 flex-col", + "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2", + a + ), + ...e + } + ); +} +function ue({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + I, + { + "data-slot": "sidebar-input", + "data-sidebar": "input", + className: r("bg-background h-8 w-full shadow-none", a), + ...e + } + ); +} +function be({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-header", + "data-sidebar": "header", + className: r("flex flex-col gap-2 p-2", a), + ...e + } + ); +} +function fe({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-footer", + "data-sidebar": "footer", + className: r("flex flex-col gap-2 p-2", a), + ...e + } + ); +} +function pe({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + E, + { + "data-slot": "sidebar-separator", + "data-sidebar": "separator", + className: r("bg-sidebar-border mx-2 w-auto", a), + ...e + } + ); +} +function me({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-content", + "data-sidebar": "content", + className: r( + "flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", + a + ), + ...e + } + ); +} +function ge({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-group", + "data-sidebar": "group", + className: r("relative flex w-full min-w-0 flex-col p-2", a), + ...e + } + ); +} +function xe({ + className: a, + asChild: e = !1, + ...i }) { - return /* @__PURE__ */ e.createElement(r, null, /* @__PURE__ */ e.createElement(b, null), /* @__PURE__ */ e.createElement( - i.Content, - { - "data-slot": "sheet-content", - className: a( - "lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out lib:fixed lib:z-50 lib:flex lib:flex-col lib:gap-4 lib:shadow-lg lib:transition lib:ease-in-out data-[state=closed]:lib:duration-300 data-[state=open]:lib:duration-500", - o === "right" && "data-[state=closed]:lib:slide-out-to-right data-[state=open]:lib:slide-in-from-right lib:inset-y-0 lib:right-0 lib:h-full lib:w-3/4 lib:border-l sm:lib:max-w-sm", - o === "left" && "data-[state=closed]:lib:slide-out-to-left data-[state=open]:lib:slide-in-from-left lib:inset-y-0 lib:left-0 lib:h-full lib:w-3/4 lib:border-r sm:lib:max-w-sm", - o === "top" && "data-[state=closed]:lib:slide-out-to-top data-[state=open]:lib:slide-in-from-top lib:inset-x-0 lib:top-0 lib:h-auto lib:border-b", - o === "bottom" && "data-[state=closed]:lib:slide-out-to-bottom data-[state=open]:lib:slide-in-from-bottom lib:inset-x-0 lib:bottom-0 lib:h-auto lib:border-t", - t + const s = e ? g : "div"; + return /* @__PURE__ */ t.jsx( + s, + { + "data-slot": "sidebar-group-label", + "data-sidebar": "group-label", + className: r( + "text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", + "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", + a ), - ...n + ...i + } + ); +} +function he({ + className: a, + asChild: e = !1, + ...i +}) { + const s = e ? g : "button"; + return /* @__PURE__ */ t.jsx( + s, + { + "data-slot": "sidebar-group-action", + "data-sidebar": "group-action", + className: r( + "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", + // Increases the hit area of the button on mobile. + "after:absolute after:-inset-2 md:after:hidden", + "group-data-[collapsible=icon]:hidden", + a + ), + ...i + } + ); +} +function ve({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "div", + { + "data-slot": "sidebar-group-content", + "data-sidebar": "group-content", + className: r("w-full text-sm", a), + ...e + } + ); +} +function we({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "ul", + { + "data-slot": "sidebar-menu", + "data-sidebar": "menu", + className: r("flex w-full min-w-0 flex-col gap-1", a), + ...e + } + ); +} +function Se({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "li", + { + "data-slot": "sidebar-menu-item", + "data-sidebar": "menu-item", + className: r("group/menu-item relative", a), + ...e + } + ); +} +const F = k( + "peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", + { + variants: { + variant: { + default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground", + outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]" + }, + size: { + default: "h-8 text-sm", + sm: "h-7 text-xs", + lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!" + } }, + defaultVariants: { + variant: "default", + size: "default" + } + } +); +function je({ + asChild: a = !1, + isActive: e = !1, + variant: i = "default", + size: s = "default", + tooltip: n, + className: d, + ...p +}) { + const l = a ? g : "button", { isMobile: f, state: u } = w(), x = /* @__PURE__ */ t.jsx( l, - /* @__PURE__ */ e.createElement(i.Close, { className: "lib:ring-offset-background focus:lib:ring-ring data-[state=open]:lib:bg-secondary lib:absolute lib:top-4 lib:right-4 lib:rounded-xs lib:opacity-70 lib:transition-opacity hover:lib:opacity-100 focus:lib:ring-2 focus:lib:ring-offset-2 focus:lib:outline-hidden disabled:lib:pointer-events-none" }, /* @__PURE__ */ e.createElement(s, { className: "lib:size-4" }), /* @__PURE__ */ e.createElement("span", { className: "lib:sr-only" }, "Close")) - )); + { + "data-slot": "sidebar-menu-button", + "data-sidebar": "menu-button", + "data-size": s, + "data-active": e, + className: r(F({ variant: i, size: s }), d), + ...p + } + ); + return n ? (typeof n == "string" && (n = { + children: n + }), /* @__PURE__ */ t.jsxs(R, { children: [ + /* @__PURE__ */ t.jsx(H, { asChild: !0, children: x }), + /* @__PURE__ */ t.jsx(K, { side: "right", align: "center", hidden: u !== "collapsed" || f, ...n }) + ] })) : x; } -function p({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement("div", { "data-slot": "sheet-header", className: a("lib:flex lib:flex-col lib:gap-1.5 lib:p-4", t), ...l }); +function Ne({ + className: a, + asChild: e = !1, + showOnHover: i = !1, + ...s +}) { + const n = e ? g : "button"; + return /* @__PURE__ */ t.jsx( + n, + { + "data-slot": "sidebar-menu-action", + "data-sidebar": "menu-action", + className: r( + "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", + // Increases the hit area of the button on mobile. + "after:absolute after:-inset-2 md:after:hidden", + "peer-data-[size=sm]/menu-button:top-1", + "peer-data-[size=default]/menu-button:top-1.5", + "peer-data-[size=lg]/menu-button:top-2.5", + "group-data-[collapsible=icon]:hidden", + i && "peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0", + a + ), + ...s + } + ); } -function g({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement( +function ye({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( "div", { - "data-slot": "sheet-footer", - className: a("lib:mt-auto lib:flex lib:flex-col lib:gap-2 lib:p-4", t), - ...l + "data-slot": "sidebar-menu-badge", + "data-sidebar": "menu-badge", + className: r( + "text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none", + "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", + "peer-data-[size=sm]/menu-button:top-1", + "peer-data-[size=default]/menu-button:top-1.5", + "peer-data-[size=lg]/menu-button:top-2.5", + "group-data-[collapsible=icon]:hidden", + a + ), + ...e } ); } -function x({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement( - i.Title, +function _e({ + className: a, + showIcon: e = !1, + ...i +}) { + const s = c.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []); + return /* @__PURE__ */ t.jsxs( + "div", { - "data-slot": "sheet-title", - className: a("lib:text-foreground lib:font-semibold", t), - ...l + "data-slot": "sidebar-menu-skeleton", + "data-sidebar": "menu-skeleton", + className: r("flex h-8 items-center gap-2 rounded-md px-2", a), + ...i, + children: [ + e && /* @__PURE__ */ t.jsx(j, { className: "size-4 rounded-md", "data-sidebar": "menu-skeleton-icon" }), + /* @__PURE__ */ t.jsx( + j, + { + className: "h-4 max-w-(--skeleton-width) flex-1", + "data-sidebar": "menu-skeleton-text", + style: { + "--skeleton-width": s + } + } + ) + ] } ); } -function E({ className: t, ...l }) { - return /* @__PURE__ */ e.createElement( - i.Description, +function ke({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "ul", { - "data-slot": "sheet-description", - className: a("lib:text-muted-foreground lib:text-sm", t), - ...l + "data-slot": "sidebar-menu-sub", + "data-sidebar": "menu-sub", + className: r( + "border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5", + "group-data-[collapsible=icon]:hidden", + a + ), + ...e + } + ); +} +function Me({ className: a, ...e }) { + return /* @__PURE__ */ t.jsx( + "li", + { + "data-slot": "sidebar-menu-sub-item", + "data-sidebar": "menu-sub-item", + className: r("group/menu-sub-item relative", a), + ...e + } + ); +} +function Ce({ + asChild: a = !1, + size: e = "md", + isActive: i = !1, + className: s, + ...n +}) { + const d = a ? g : "a"; + return /* @__PURE__ */ t.jsx( + d, + { + "data-slot": "sidebar-menu-sub-button", + "data-sidebar": "menu-sub-button", + "data-size": e, + "data-active": i, + className: r( + "text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", + "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", + e === "sm" && "text-xs", + e === "md" && "text-sm", + "group-data-[collapsible=icon]:hidden", + s + ), + ...n } ); } export { - m as Sheet, - f as SheetClose, - h as SheetContent, - E as SheetDescription, - g as SheetFooter, - p as SheetHeader, - x as SheetTitle, - u as SheetTrigger + oe as Sidebar, + me as SidebarContent, + fe as SidebarFooter, + ge as SidebarGroup, + he as SidebarGroupAction, + ve as SidebarGroupContent, + xe as SidebarGroupLabel, + be as SidebarHeader, + ue as SidebarInput, + ce as SidebarInset, + we as SidebarMenu, + Ne as SidebarMenuAction, + ye as SidebarMenuBadge, + je as SidebarMenuButton, + Se as SidebarMenuItem, + _e as SidebarMenuSkeleton, + ke as SidebarMenuSub, + Ce as SidebarMenuSubButton, + Me as SidebarMenuSubItem, + ne as SidebarProvider, + le as SidebarRail, + pe as SidebarSeparator, + de as SidebarTrigger, + w as useSidebar }; diff --git a/dist/index.es42.js b/dist/index.es42.js index c3ca5ea2..8c58f2af 100644 --- a/dist/index.es42.js +++ b/dist/index.es42.js @@ -1,549 +1,8 @@ -import * as i from "react"; -import { Slot as p } from "@radix-ui/react-slot"; -import { cva as _ } from "class-variance-authority"; -import { PanelLeftIcon as k } from "lucide-react"; -import { useIsMobile as M } from "./index.es55.js"; -import { cn as t } from "./index.es54.js"; -import { Button as C } from "./index.es14.js"; -import { Input as z } from "./index.es29.js"; -import { Separator as I } from "./index.es40.js"; -import { Sheet as D, SheetContent as T, SheetHeader as B, SheetTitle as A, SheetDescription as O } from "./index.es41.js"; -import { Skeleton as E } from "./index.es43.js"; -import { Tooltip as R, TooltipTrigger as H, TooltipContent as K, TooltipProvider as G } from "./index.es52.js"; -const L = "sidebar_state", $ = 60 * 60 * 24 * 7, j = "16rem", P = "18rem", V = "3rem", W = "b", S = i.createContext(null); -function x() { - const a = i.useContext(S); - if (!a) - throw new Error("useSidebar must be used within a SidebarProvider."); - return a; -} -function le({ - defaultOpen: a = !0, - open: e, - onOpenChange: l, - className: r, - style: b, - children: o, - ...m -}) { - const s = M(), [u, d] = i.useState(!1), [g, N] = i.useState(a), f = e ?? g, h = i.useCallback( - (n) => { - const c = typeof n == "function" ? n(f) : n; - l ? l(c) : N(c), document.cookie = `${L}=${c}; path=/; max-age=${$}`; - }, - [l, f] - ), v = i.useCallback(() => s ? d((n) => !n) : h((n) => !n), [s, h, d]); - i.useEffect(() => { - const n = (c) => { - c.key === W && (c.metaKey || c.ctrlKey) && (c.preventDefault(), v()); - }; - return window.addEventListener("keydown", n), () => window.removeEventListener("keydown", n); - }, [v]); - const w = f ? "expanded" : "collapsed", y = i.useMemo( - () => ({ - state: w, - open: f, - setOpen: h, - isMobile: s, - openMobile: u, - setOpenMobile: d, - toggleSidebar: v - }), - [w, f, h, s, u, d, v] - ); - return /* @__PURE__ */ i.createElement(S.Provider, { value: y }, /* @__PURE__ */ i.createElement(G, { delayDuration: 0 }, /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-wrapper", - style: { - "--sidebar-width": j, - "--sidebar-width-icon": V, - ...b - }, - className: t( - "lib:group/sidebar-wrapper has-data-[variant=inset]:lib:bg-sidebar lib:flex lib:min-h-svh lib:w-full", - r - ), - ...m - }, - o - ))); -} -function re({ - side: a = "left", - variant: e = "sidebar", - collapsible: l = "offcanvas", - className: r, - children: b, - ...o -}) { - const { isMobile: m, state: s, openMobile: u, setOpenMobile: d } = x(); - return l === "none" ? /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar", - className: t( - "lib:bg-sidebar lib:text-sidebar-foreground lib:flex lib:h-full lib:w-(--sidebar-width) lib:flex-col", - r - ), - ...o - }, - b - ) : m ? /* @__PURE__ */ i.createElement(D, { open: u, onOpenChange: d, ...o }, /* @__PURE__ */ i.createElement( - T, - { - "data-sidebar": "sidebar", - "data-slot": "sidebar", - "data-mobile": "true", - className: "lib:bg-sidebar lib:text-sidebar-foreground lib:w-(--sidebar-width) lib:p-0 [&>button]:lib:hidden", - style: { - "--sidebar-width": P - }, - side: a - }, - /* @__PURE__ */ i.createElement(B, { className: "lib:sr-only" }, /* @__PURE__ */ i.createElement(A, null, "Sidebar"), /* @__PURE__ */ i.createElement(O, null, "Displays the mobile sidebar.")), - /* @__PURE__ */ i.createElement("div", { className: "lib:flex lib:h-full lib:w-full lib:flex-col" }, b) - )) : /* @__PURE__ */ i.createElement( - "div", - { - className: "lib:group lib:peer lib:text-sidebar-foreground lib:hidden md:lib:block", - "data-state": s, - "data-collapsible": s === "collapsed" ? l : "", - "data-variant": e, - "data-side": a, - "data-slot": "sidebar" - }, - /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-gap", - className: t( - "lib:relative lib:w-(--sidebar-width) lib:bg-transparent lib:transition-[width] lib:duration-200 lib:ease-linear", - "group-data-[collapsible=offcanvas]:lib:w-0", - "group-data-[side=right]:lib:rotate-180", - e === "floating" || e === "inset" ? "group-data-[collapsible=icon]:lib:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:lib:w-(--sidebar-width-icon)" - ) - } - ), - /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-container", - className: t( - "lib:fixed lib:inset-y-0 lib:z-10 lib:hidden lib:h-svh lib:w-(--sidebar-width) lib:transition-[left,right,width] lib:duration-200 lib:ease-linear md:lib:flex", - a === "left" ? "lib:left-0 group-data-[collapsible=offcanvas]:lib:left-[calc(var(--sidebar-width)*-1)]" : "lib:right-0 group-data-[collapsible=offcanvas]:lib:right-[calc(var(--sidebar-width)*-1)]", - // Adjust the padding for floating and inset variants. - e === "floating" || e === "inset" ? "lib:p-2 group-data-[collapsible=icon]:lib:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:lib:w-(--sidebar-width-icon) group-data-[side=left]:lib:border-r group-data-[side=right]:lib:border-l", - r - ), - ...o - }, - /* @__PURE__ */ i.createElement( - "div", - { - "data-sidebar": "sidebar", - "data-slot": "sidebar-inner", - className: "lib:bg-sidebar group-data-[variant=floating]:lib:border-sidebar-border lib:flex lib:h-full lib:w-full lib:flex-col group-data-[variant=floating]:lib:rounded-lg group-data-[variant=floating]:lib:border group-data-[variant=floating]:lib:shadow-sm" - }, - b - ) - ) - ); -} -function be({ className: a, onClick: e, ...l }) { - const { toggleSidebar: r } = x(); - return /* @__PURE__ */ i.createElement( - C, - { - "data-sidebar": "trigger", - "data-slot": "sidebar-trigger", - variant: "ghost", - size: "icon", - className: t("lib:size-7", a), - onClick: (b) => { - e?.(b), r(); - }, - ...l - }, - /* @__PURE__ */ i.createElement(k, null), - /* @__PURE__ */ i.createElement("span", { className: "lib:sr-only" }, "Toggle Sidebar") - ); -} -function ne({ className: a, ...e }) { - const { toggleSidebar: l } = x(); - return /* @__PURE__ */ i.createElement( - "button", - { - "data-sidebar": "rail", - "data-slot": "sidebar-rail", - "aria-label": "Toggle Sidebar", - tabIndex: -1, - onClick: l, - title: "Toggle Sidebar", - className: t( - "hover:after:lib:bg-sidebar-border lib:absolute lib:inset-y-0 lib:z-20 lib:hidden lib:w-4 lib:-translate-x-1/2 lib:transition-all lib:ease-linear group-data-[side=left]:lib:-right-4 group-data-[side=right]:lib:left-0 after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-[2px] sm:lib:flex", - "in-data-[side=left]:lib:cursor-w-resize in-data-[side=right]:lib:cursor-e-resize", - "[[data-side=left][data-state=collapsed]_&]:lib:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:lib:cursor-w-resize", - "hover:group-data-[collapsible=offcanvas]:lib:bg-sidebar group-data-[collapsible=offcanvas]:lib:translate-x-0 group-data-[collapsible=offcanvas]:after:lib:left-full", - "[[data-side=left][data-collapsible=offcanvas]_&]:lib:-right-2", - "[[data-side=right][data-collapsible=offcanvas]_&]:lib:-left-2", - a - ), - ...e - } - ); -} -function oe({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "main", - { - "data-slot": "sidebar-inset", - className: t( - "lib:bg-background lib:relative lib:flex lib:w-full lib:flex-1 lib:flex-col", - "md:peer-data-[variant=inset]:lib:m-2 md:peer-data-[variant=inset]:lib:ml-0 md:peer-data-[variant=inset]:lib:rounded-xl md:peer-data-[variant=inset]:lib:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:lib:ml-2", - a - ), - ...e - } - ); -} -function se({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - z, - { - "data-slot": "sidebar-input", - "data-sidebar": "input", - className: t("lib:bg-background lib:h-8 lib:w-full lib:shadow-none", a), - ...e - } - ); -} -function de({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-header", - "data-sidebar": "header", - className: t("lib:flex lib:flex-col lib:gap-2 lib:p-2", a), - ...e - } - ); -} -function ce({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-footer", - "data-sidebar": "footer", - className: t("lib:flex lib:flex-col lib:gap-2 lib:p-2", a), - ...e - } - ); -} -function ue({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - I, - { - "data-slot": "sidebar-separator", - "data-sidebar": "separator", - className: t("lib:bg-sidebar-border lib:mx-2 lib:w-auto", a), - ...e - } - ); -} -function me({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-content", - "data-sidebar": "content", - className: t( - "lib:flex lib:min-h-0 lib:flex-1 lib:flex-col lib:gap-2 lib:overflow-auto group-data-[collapsible=icon]:lib:overflow-hidden", - a - ), - ...e - } - ); -} -function fe({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-group", - "data-sidebar": "group", - className: t("lib:relative lib:flex lib:w-full lib:min-w-0 lib:flex-col lib:p-2", a), - ...e - } - ); -} -function pe({ - className: a, - asChild: e = !1, - ...l -}) { - const r = e ? p : "div"; - return /* @__PURE__ */ i.createElement( - r, - { - "data-slot": "sidebar-group-label", - "data-sidebar": "group-label", - className: t( - "lib:text-sidebar-foreground/70 lib:ring-sidebar-ring lib:flex lib:h-8 lib:shrink-0 lib:items-center lib:rounded-md lib:px-2 lib:text-xs lib:font-medium lib:outline-hidden lib:transition-[margin,opacity] lib:duration-200 lib:ease-linear focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - "group-data-[collapsible=icon]:lib:-mt-8 group-data-[collapsible=icon]:lib:opacity-0", - a - ), - ...l - } - ); -} -function ge({ - className: a, - asChild: e = !1, - ...l -}) { - const r = e ? p : "button"; - return /* @__PURE__ */ i.createElement( - r, - { - "data-slot": "sidebar-group-action", - "data-sidebar": "group-action", - className: t( - "lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:absolute lib:top-3.5 lib:right-3 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - // Increases the hit area of the button on mobile. - "after:lib:absolute after:lib:-inset-2 md:after:lib:hidden", - "group-data-[collapsible=icon]:lib:hidden", - a - ), - ...l - } - ); -} -function he({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-group-content", - "data-sidebar": "group-content", - className: t("lib:w-full lib:text-sm", a), - ...e - } - ); -} -function ve({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "ul", - { - "data-slot": "sidebar-menu", - "data-sidebar": "menu", - className: t("lib:flex lib:w-full lib:min-w-0 lib:flex-col lib:gap-1", a), - ...e - } - ); -} -function xe({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "li", - { - "data-slot": "sidebar-menu-item", - "data-sidebar": "menu-item", - className: t("lib:group/menu-item lib:relative", a), - ...e - } - ); -} -const q = _( - "lib:peer/menu-button lib:flex lib:w-full lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:p-2 lib:text-left lib:text-sm lib:outline-hidden lib:ring-sidebar-ring lib:transition-[width,height,padding] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground focus-visible:lib:ring-2 active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 lib:group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:font-medium data-[active=true]:lib:text-sidebar-accent-foreground data-[state=open]:hover:lib:bg-sidebar-accent data-[state=open]:hover:lib:text-sidebar-accent-foreground group-data-[collapsible=icon]:lib:size-8! group-data-[collapsible=icon]:lib:p-2! [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - { - variants: { - variant: { - default: "hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground", - outline: "lib:bg-background lib:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground hover:lib:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]" - }, - size: { - default: "lib:h-8 lib:text-sm", - sm: "lib:h-7 lib:text-xs", - lg: "lib:h-12 lib:text-sm group-data-[collapsible=icon]:lib:p-0!" - } - }, - defaultVariants: { - variant: "default", - size: "default" - } - } -); -function we({ - asChild: a = !1, - isActive: e = !1, - variant: l = "default", - size: r = "default", - tooltip: b, - className: o, - ...m -}) { - const s = a ? p : "button", { isMobile: u, state: d } = x(), g = /* @__PURE__ */ i.createElement( - s, - { - "data-slot": "sidebar-menu-button", - "data-sidebar": "menu-button", - "data-size": r, - "data-active": e, - className: t(q({ variant: l, size: r }), o), - ...m - } - ); - return b ? (typeof b == "string" && (b = { - children: b - }), /* @__PURE__ */ i.createElement(R, null, /* @__PURE__ */ i.createElement(H, { asChild: !0 }, g), /* @__PURE__ */ i.createElement(K, { side: "right", align: "center", hidden: d !== "collapsed" || u, ...b }))) : g; -} -function Ee({ - className: a, - asChild: e = !1, - showOnHover: l = !1, - ...r -}) { - const b = e ? p : "button"; - return /* @__PURE__ */ i.createElement( - b, - { - "data-slot": "sidebar-menu-action", - "data-sidebar": "menu-action", - className: t( - "lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:absolute lib:top-1.5 lib:right-1 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - // Increases the hit area of the button on mobile. - "after:lib:absolute after:lib:-inset-2 md:after:lib:hidden", - "lib:peer-data-[size=sm]/menu-button:top-1", - "lib:peer-data-[size=default]/menu-button:top-1.5", - "lib:peer-data-[size=lg]/menu-button:top-2.5", - "group-data-[collapsible=icon]:lib:hidden", - l && "lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground lib:group-focus-within/menu-item:opacity-100 lib:group-hover/menu-item:opacity-100 data-[state=open]:lib:opacity-100 md:lib:opacity-0", - a - ), - ...r - } - ); -} -function Se({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-menu-badge", - "data-sidebar": "menu-badge", - className: t( - "lib:text-sidebar-foreground lib:pointer-events-none lib:absolute lib:right-1 lib:flex lib:h-5 lib:min-w-5 lib:items-center lib:justify-center lib:rounded-md lib:px-1 lib:text-xs lib:font-medium lib:tabular-nums lib:select-none", - "lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", - "lib:peer-data-[size=sm]/menu-button:top-1", - "lib:peer-data-[size=default]/menu-button:top-1.5", - "lib:peer-data-[size=lg]/menu-button:top-2.5", - "group-data-[collapsible=icon]:lib:hidden", - a - ), - ...e - } - ); -} -function Ne({ - className: a, - showIcon: e = !1, - ...l -}) { - const r = i.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []); - return /* @__PURE__ */ i.createElement( - "div", - { - "data-slot": "sidebar-menu-skeleton", - "data-sidebar": "menu-skeleton", - className: t("lib:flex lib:h-8 lib:items-center lib:gap-2 lib:rounded-md lib:px-2", a), - ...l - }, - e && /* @__PURE__ */ i.createElement(E, { className: "lib:size-4 lib:rounded-md", "data-sidebar": "menu-skeleton-icon" }), - /* @__PURE__ */ i.createElement( - E, - { - className: "lib:h-4 lib:max-w-(--skeleton-width) lib:flex-1", - "data-sidebar": "menu-skeleton-text", - style: { - "--skeleton-width": r - } - } - ) - ); -} -function ye({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "ul", - { - "data-slot": "sidebar-menu-sub", - "data-sidebar": "menu-sub", - className: t( - "lib:border-sidebar-border lib:mx-3.5 lib:flex lib:min-w-0 lib:translate-x-px lib:flex-col lib:gap-1 lib:border-l lib:px-2.5 lib:py-0.5", - "group-data-[collapsible=icon]:lib:hidden", - a - ), - ...e - } - ); -} -function _e({ className: a, ...e }) { - return /* @__PURE__ */ i.createElement( - "li", - { - "data-slot": "sidebar-menu-sub-item", - "data-sidebar": "menu-sub-item", - className: t("lib:group/menu-sub-item lib:relative", a), - ...e - } - ); -} -function ke({ - asChild: a = !1, - size: e = "md", - isActive: l = !1, - className: r, - ...b -}) { - const o = a ? p : "a"; - return /* @__PURE__ */ i.createElement( - o, - { - "data-slot": "sidebar-menu-sub-button", - "data-sidebar": "menu-sub-button", - "data-size": e, - "data-active": l, - className: t( - "lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground [&>svg]:lib:text-sidebar-accent-foreground lib:flex lib:h-7 lib:min-w-0 lib:-translate-x-px lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:px-2 lib:outline-hidden focus-visible:lib:ring-2 disabled:lib:pointer-events-none disabled:lib:opacity-50 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0", - "data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:text-sidebar-accent-foreground", - e === "sm" && "lib:text-xs", - e === "md" && "lib:text-sm", - "group-data-[collapsible=icon]:lib:hidden", - r - ), - ...b - } - ); +import { j as o } from "./index.es64.js"; +import { cn as n } from "./index.es65.js"; +function a({ className: t, ...e }) { + return /* @__PURE__ */ o.jsx("div", { "data-slot": "skeleton", className: n("bg-accent animate-pulse rounded-md", t), ...e }); } export { - re as Sidebar, - me as SidebarContent, - ce as SidebarFooter, - fe as SidebarGroup, - ge as SidebarGroupAction, - he as SidebarGroupContent, - pe as SidebarGroupLabel, - de as SidebarHeader, - se as SidebarInput, - oe as SidebarInset, - ve as SidebarMenu, - Ee as SidebarMenuAction, - Se as SidebarMenuBadge, - we as SidebarMenuButton, - xe as SidebarMenuItem, - Ne as SidebarMenuSkeleton, - ye as SidebarMenuSub, - ke as SidebarMenuSubButton, - _e as SidebarMenuSubItem, - le as SidebarProvider, - ne as SidebarRail, - ue as SidebarSeparator, - be as SidebarTrigger, - x as useSidebar + a as Skeleton }; diff --git a/dist/index.es43.js b/dist/index.es43.js index 4a018817..ca5b989b 100644 --- a/dist/index.es43.js +++ b/dist/index.es43.js @@ -1,7 +1,61 @@ -import { cn as n } from "./index.es54.js"; -function l({ className: e, ...t }) { - return /* @__PURE__ */ React.createElement("div", { "data-slot": "skeleton", className: n("lib:bg-accent lib:animate-pulse lib:rounded-md", e), ...t }); +import { j as a } from "./index.es64.js"; +import * as h from "react"; +import * as o from "@radix-ui/react-slider"; +import { cn as n } from "./index.es65.js"; +function u({ + className: l, + defaultValue: r, + value: t, + min: i = 0, + max: e = 100, + ...s +}) { + const d = h.useMemo( + () => Array.isArray(t) ? t : Array.isArray(r) ? r : [i, e], + [t, r, i, e] + ); + return /* @__PURE__ */ a.jsxs( + o.Root, + { + "data-slot": "slider", + defaultValue: r, + value: t, + min: i, + max: e, + className: n( + "relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", + l + ), + ...s, + children: [ + /* @__PURE__ */ a.jsx( + o.Track, + { + "data-slot": "slider-track", + className: n( + "bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5" + ), + children: /* @__PURE__ */ a.jsx( + o.Range, + { + "data-slot": "slider-range", + className: n("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full") + } + ) + } + ), + Array.from({ length: d.length }, (m, c) => /* @__PURE__ */ a.jsx( + o.Thumb, + { + "data-slot": "slider-thumb", + className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50" + }, + c + )) + ] + } + ); } export { - l as Skeleton + u as Slider }; diff --git a/dist/index.es44.js b/dist/index.es44.js index 78b8517d..ec2bd889 100644 --- a/dist/index.es44.js +++ b/dist/index.es44.js @@ -1,60 +1,22 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-slider"; -import { cn as o } from "./index.es54.js"; -function h({ - className: n, - defaultValue: l, - value: t, - min: a = 0, - max: r = 100, - ...b -}) { - const s = i.useMemo( - () => Array.isArray(t) ? t : Array.isArray(l) ? l : [a, r], - [t, l, a, r] - ); - return /* @__PURE__ */ i.createElement( - e.Root, +import { j as e } from "./index.es64.js"; +import { useTheme as t } from "next-themes"; +import { Toaster as s } from "sonner"; +const n = ({ ...r }) => { + const { theme: o = "system" } = t(); + return /* @__PURE__ */ e.jsx( + s, { - "data-slot": "slider", - defaultValue: l, - value: t, - min: a, - max: r, - className: o( - "lib:relative lib:flex lib:w-full lib:touch-none lib:items-center lib:select-none data-[disabled]:lib:opacity-50 data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:min-h-44 data-[orientation=vertical]:lib:w-auto data-[orientation=vertical]:lib:flex-col", - n - ), - ...b - }, - /* @__PURE__ */ i.createElement( - e.Track, - { - "data-slot": "slider-track", - className: o( - "lib:bg-muted lib:relative lib:grow lib:overflow-hidden lib:rounded-full data-[orientation=horizontal]:lib:h-1.5 data-[orientation=horizontal]:lib:w-full data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:w-1.5" - ) + theme: o, + className: "toaster group", + style: { + "--normal-bg": "var(--popover)", + "--normal-text": "var(--popover-foreground)", + "--normal-border": "var(--border)" }, - /* @__PURE__ */ i.createElement( - e.Range, - { - "data-slot": "slider-range", - className: o( - "lib:bg-primary lib:absolute data-[orientation=horizontal]:lib:h-full data-[orientation=vertical]:lib:w-full" - ) - } - ) - ), - Array.from({ length: s.length }, (c, d) => /* @__PURE__ */ i.createElement( - e.Thumb, - { - "data-slot": "slider-thumb", - key: d, - className: "lib:border-primary lib:bg-background lib:ring-ring/50 lib:block lib:size-4 lib:shrink-0 lib:rounded-full lib:border lib:shadow-sm lib:transition-[color,box-shadow] hover:lib:ring-4 focus-visible:lib:ring-4 focus-visible:lib:outline-hidden disabled:lib:pointer-events-none disabled:lib:opacity-50" - } - )) + ...r + } ); -} +}; export { - h as Slider + n as Toaster }; diff --git a/dist/index.es45.js b/dist/index.es45.js index 1d63614c..968319fa 100644 --- a/dist/index.es45.js +++ b/dist/index.es45.js @@ -1,21 +1,28 @@ -import { useTheme as o } from "next-themes"; -import { Toaster as t } from "sonner"; -const m = ({ ...r }) => { - const { theme: e = "system" } = o(); - return /* @__PURE__ */ React.createElement( - t, +import { j as t } from "./index.es64.js"; +import * as e from "@radix-ui/react-switch"; +import { cn as a } from "./index.es65.js"; +function o({ className: r, ...n }) { + return /* @__PURE__ */ t.jsx( + e.Root, { - theme: e, - className: "lib:toaster lib:group", - style: { - "--normal-bg": "var(--popover)", - "--normal-text": "var(--popover-foreground)", - "--normal-border": "var(--border)" - }, - ...r + "data-slot": "switch", + className: a( + "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", + r + ), + ...n, + children: /* @__PURE__ */ t.jsx( + e.Thumb, + { + "data-slot": "switch-thumb", + className: a( + "bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0" + ) + } + ) } ); -}; +} export { - m as Toaster + o as Switch }; diff --git a/dist/index.es46.js b/dist/index.es46.js index ec5dcd12..7c3d5f10 100644 --- a/dist/index.es46.js +++ b/dist/index.es46.js @@ -1,28 +1,70 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-switch"; -import { cn as t } from "./index.es54.js"; -function b({ className: l, ...a }) { - return /* @__PURE__ */ i.createElement( - e.Root, +import { j as a } from "./index.es64.js"; +import { cn as o } from "./index.es65.js"; +function s({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx("div", { "data-slot": "table-container", className: "relative w-full overflow-x-auto", children: /* @__PURE__ */ a.jsx("table", { "data-slot": "table", className: o("w-full caption-bottom text-sm", t), ...e }) }); +} +function n({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx("thead", { "data-slot": "table-header", className: o("[&_tr]:border-b", t), ...e }); +} +function d({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx("tbody", { "data-slot": "table-body", className: o("[&_tr:last-child]:border-0", t), ...e }); +} +function c({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "tfoot", + { + "data-slot": "table-footer", + className: o("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", t), + ...e + } + ); +} +function b({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "tr", + { + "data-slot": "table-row", + className: o("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", t), + ...e + } + ); +} +function i({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "th", { - "data-slot": "switch", - className: t( - "lib:peer data-[state=checked]:lib:bg-primary data-[state=unchecked]:lib:bg-input focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 dark:data-[state=unchecked]:lib:bg-input/80 lib:inline-flex lib:h-[1.15rem] lib:w-8 lib:shrink-0 lib:items-center lib:rounded-full lib:border lib:border-transparent lib:shadow-xs lib:transition-all lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50", - l + "data-slot": "table-head", + className: o( + "text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", + t ), - ...a - }, - /* @__PURE__ */ i.createElement( - e.Thumb, - { - "data-slot": "switch-thumb", - className: t( - "lib:bg-background dark:data-[state=unchecked]:lib:bg-foreground dark:data-[state=checked]:lib:bg-primary-foreground lib:pointer-events-none lib:block lib:size-4 lib:rounded-full lib:ring-0 lib:transition-transform data-[state=checked]:lib:translate-x-[calc(100%-2px)] data-[state=unchecked]:lib:translate-x-0" - ) - } - ) + ...e + } ); } +function m({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx( + "td", + { + "data-slot": "table-cell", + className: o( + "p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", + t + ), + ...e + } + ); +} +function u({ className: t, ...e }) { + return /* @__PURE__ */ a.jsx("caption", { "data-slot": "table-caption", className: o("text-muted-foreground mt-4 text-sm", t), ...e }); +} export { - b as Switch + s as Table, + d as TableBody, + u as TableCaption, + m as TableCell, + c as TableFooter, + i as TableHead, + n as TableHeader, + b as TableRow }; diff --git a/dist/index.es47.js b/dist/index.es47.js index 7f791d9b..59a9704e 100644 --- a/dist/index.es47.js +++ b/dist/index.es47.js @@ -1,80 +1,41 @@ -import * as l from "react"; -import { cn as a } from "./index.es54.js"; -function r({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement("div", { "data-slot": "table-container", className: "lib:relative lib:w-full lib:overflow-x-auto" }, /* @__PURE__ */ l.createElement("table", { "data-slot": "table", className: a("lib:w-full lib:caption-bottom lib:text-sm", e), ...t })); -} -function o({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement("thead", { "data-slot": "table-header", className: a("[&_tr]:lib:border-b", e), ...t }); -} -function i({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement("tbody", { "data-slot": "table-body", className: a("[&_tr:last-child]:lib:border-0", e), ...t }); -} -function n({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "tfoot", - { - "data-slot": "table-footer", - className: a("lib:bg-muted/50 lib:border-t lib:font-medium [&>tr]:last:lib:border-b-0", e), - ...t - } - ); -} -function c({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "tr", +import { j as s } from "./index.es64.js"; +import * as a from "@radix-ui/react-tabs"; +import { cn as i } from "./index.es65.js"; +function o({ className: t, ...e }) { + return /* @__PURE__ */ s.jsx(a.Root, { "data-slot": "tabs", className: i("flex flex-col gap-2", t), ...e }); +} +function d({ className: t, ...e }) { + return /* @__PURE__ */ s.jsx( + a.List, { - "data-slot": "table-row", - className: a( - "hover:lib:bg-muted/50 data-[state=selected]:lib:bg-muted lib:border-b lib:transition-colors", - e + "data-slot": "tabs-list", + className: i( + "bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", + t ), - ...t + ...e } ); } -function s({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "th", +function c({ className: t, ...e }) { + return /* @__PURE__ */ s.jsx( + a.Trigger, { - "data-slot": "table-head", - className: a( - "lib:text-foreground lib:h-10 lib:px-2 lib:text-left lib:align-middle lib:font-medium lib:whitespace-nowrap [&:has([role=checkbox])]:lib:pr-0 [&>[role=checkbox]]:lib:translate-y-[2px]", - e + "data-slot": "tabs-trigger", + className: i( + "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", + t ), - ...t + ...e } ); } -function d({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "td", - { - "data-slot": "table-cell", - className: a( - "lib:p-2 lib:align-middle lib:whitespace-nowrap [&:has([role=checkbox])]:lib:pr-0 [&>[role=checkbox]]:lib:translate-y-[2px]", - e - ), - ...t - } - ); -} -function m({ className: e, ...t }) { - return /* @__PURE__ */ l.createElement( - "caption", - { - "data-slot": "table-caption", - className: a("lib:text-muted-foreground lib:mt-4 lib:text-sm", e), - ...t - } - ); +function l({ className: t, ...e }) { + return /* @__PURE__ */ s.jsx(a.Content, { "data-slot": "tabs-content", className: i("flex-1 outline-none", t), ...e }); } export { - r as Table, - i as TableBody, - m as TableCaption, - d as TableCell, - n as TableFooter, - s as TableHead, - o as TableHeader, - c as TableRow + o as Tabs, + l as TabsContent, + d as TabsList, + c as TabsTrigger }; diff --git a/dist/index.es48.js b/dist/index.es48.js index 50276cfc..f5902e6e 100644 --- a/dist/index.es48.js +++ b/dist/index.es48.js @@ -1,48 +1,18 @@ -import * as t from "react"; -import * as l from "@radix-ui/react-tabs"; -import { cn as a } from "./index.es54.js"; -function n({ className: i, ...e }) { - return /* @__PURE__ */ t.createElement(l.Root, { "data-slot": "tabs", className: a("lib:flex lib:flex-col lib:gap-2", i), ...e }); -} -function r({ className: i, ...e }) { - return /* @__PURE__ */ t.createElement( - l.List, - { - "data-slot": "tabs-list", - className: a( - "lib:bg-muted lib:text-muted-foreground lib:inline-flex lib:h-9 lib:w-fit lib:items-center lib:justify-center lib:rounded-lg lib:p-[3px]", - i - ), - ...e - } - ); -} -function s({ className: i, ...e }) { - return /* @__PURE__ */ t.createElement( - l.Trigger, +import { j as i } from "./index.es64.js"; +import { cn as t } from "./index.es65.js"; +function n({ className: r, ...e }) { + return /* @__PURE__ */ i.jsx( + "textarea", { - "data-slot": "tabs-trigger", - className: a( - "data-[state=active]:lib:bg-background dark:data-[state=active]:lib:text-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:outline-ring dark:data-[state=active]:lib:border-input dark:data-[state=active]:lib:bg-input/30 lib:text-foreground dark:lib:text-muted-foreground lib:inline-flex lib:h-[calc(100%-1px)] lib:flex-1 lib:items-center lib:justify-center lib:gap-1.5 lib:rounded-md lib:border lib:border-transparent lib:px-2 lib:py-1 lib:text-sm lib:font-medium lib:whitespace-nowrap lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1 disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=active]:lib:shadow-sm [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4", - i + "data-slot": "textarea", + className: t( + "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", + r ), ...e } ); } -function o({ className: i, ...e }) { - return /* @__PURE__ */ t.createElement( - l.Content, - { - "data-slot": "tabs-content", - className: a("lib:flex-1 lib:outline-none", i), - ...e - } - ); -} export { - n as Tabs, - o as TabsContent, - r as TabsList, - s as TabsTrigger + n as Textarea }; diff --git a/dist/index.es49.js b/dist/index.es49.js index c7cbc4e0..4c18d68a 100644 --- a/dist/index.es49.js +++ b/dist/index.es49.js @@ -1,18 +1,62 @@ -import * as e from "react"; -import { cn as r } from "./index.es54.js"; -function b({ className: i, ...l }) { - return /* @__PURE__ */ e.createElement( - "textarea", +import { j as n } from "./index.es64.js"; +import * as s from "react"; +import * as d from "@radix-ui/react-toggle-group"; +import { cn as l } from "./index.es65.js"; +import { toggleVariants as m } from "./index.es50.js"; +const u = s.createContext({ + size: "default", + variant: "default" +}); +function c({ + className: a, + variant: o, + size: t, + children: e, + ...i +}) { + return /* @__PURE__ */ n.jsx( + d.Root, { - "data-slot": "textarea", - className: r( - "lib:border-input placeholder:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:flex lib:field-sizing-content lib:min-h-16 lib:w-full lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm", - i + "data-slot": "toggle-group", + "data-variant": o, + "data-size": t, + className: l( + "group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs", + a ), - ...l + ...i, + children: /* @__PURE__ */ n.jsx(u.Provider, { value: { variant: o, size: t }, children: e }) + } + ); +} +function x({ + className: a, + children: o, + variant: t, + size: e, + ...i +}) { + const r = s.useContext(u); + return /* @__PURE__ */ n.jsx( + d.Item, + { + "data-slot": "toggle-group-item", + "data-variant": r.variant || t, + "data-size": r.size || e, + className: l( + m({ + variant: r.variant || t, + size: r.size || e + }), + "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", + a + ), + ...i, + children: o } ); } export { - b as Textarea + c as ToggleGroup, + x as ToggleGroupItem }; diff --git a/dist/index.es5.js b/dist/index.es5.js index 0d2af613..16920075 100644 --- a/dist/index.es5.js +++ b/dist/index.es5.js @@ -1,7 +1,13 @@ -import { AppThemeProvider as o } from "./index.es4.js"; -import e from "react"; -import m from "./index.es53.js"; -const d = ({ children: r, defaultScheme: t }) => /* @__PURE__ */ e.createElement(o, { defaultScheme: t || void 0 }, /* @__PURE__ */ e.createElement(m, null, r)); +import { j as n } from "./index.es64.js"; +import { createContext as r, useContext as i } from "react"; +const o = r(void 0), m = ({ linkComponent: t, children: e }) => /* @__PURE__ */ n.jsx(o.Provider, { value: t, children: e }), x = () => { + const t = i(o); + if (!t) + throw new Error("useLinkComponent must be used within a LinkProvider"); + return t; +}; export { - d as default + o as LinkContext, + m as LinkProvider, + x as useLinkComponent }; diff --git a/dist/index.es50.js b/dist/index.es50.js index c5fd389a..aa84fe4b 100644 --- a/dist/index.es50.js +++ b/dist/index.es50.js @@ -1,61 +1,36 @@ -import * as e from "react"; -import * as n from "@radix-ui/react-toggle-group"; -import { cn as d } from "./index.es54.js"; -import { toggleVariants as u } from "./index.es51.js"; -const s = e.createContext({ - size: "default", - variant: "default" -}); -function g({ - className: r, - variant: o, - size: t, - children: a, - ...l -}) { - return /* @__PURE__ */ e.createElement( - n.Root, - { - "data-slot": "toggle-group", - "data-variant": o, - "data-size": t, - className: d( - "lib:group/toggle-group lib:flex lib:w-fit lib:items-center lib:rounded-md data-[variant=outline]:lib:shadow-xs", - r - ), - ...l +import { j as n } from "./index.es64.js"; +import * as a from "@radix-ui/react-toggle"; +import { cva as o } from "class-variance-authority"; +import { cn as s } from "./index.es65.js"; +const d = o( + "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", + { + variants: { + variant: { + default: "bg-transparent", + outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground" + }, + size: { + default: "h-9 px-2 min-w-9", + sm: "h-8 px-1.5 min-w-8", + lg: "h-10 px-2.5 min-w-10" + } }, - /* @__PURE__ */ e.createElement(s.Provider, { value: { variant: o, size: t } }, a) - ); -} -function c({ - className: r, - children: o, + defaultVariants: { + variant: "default", + size: "default" + } + } +); +function u({ + className: e, variant: t, - size: a, - ...l + size: i, + ...r }) { - const i = e.useContext(s); - return /* @__PURE__ */ e.createElement( - n.Item, - { - "data-slot": "toggle-group-item", - "data-variant": i.variant || t, - "data-size": i.size || a, - className: d( - u({ - variant: i.variant || t, - size: i.size || a - }), - "lib:min-w-0 lib:flex-1 lib:shrink-0 lib:rounded-none lib:shadow-none first:lib:rounded-l-md last:lib:rounded-r-md focus:lib:z-10 focus-visible:lib:z-10 data-[variant=outline]:lib:border-l-0 data-[variant=outline]:first:lib:border-l", - r - ), - ...l - }, - o - ); + return /* @__PURE__ */ n.jsx(a.Root, { "data-slot": "toggle", className: s(d({ variant: t, size: i, className: e })), ...r }); } export { - g as ToggleGroup, - c as ToggleGroupItem + u as Toggle, + d as toggleVariants }; diff --git a/dist/index.es51.js b/dist/index.es51.js index d0372878..b92dee09 100644 --- a/dist/index.es51.js +++ b/dist/index.es51.js @@ -1,36 +1,41 @@ -import * as r from "react"; -import * as n from "@radix-ui/react-toggle"; -import { cva as a } from "class-variance-authority"; -import { cn as b } from "./index.es54.js"; -const o = a( - "lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:rounded-md lib:text-sm lib:font-medium hover:lib:bg-muted hover:lib:text-muted-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=on]:lib:bg-accent data-[state=on]:lib:text-accent-foreground [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 [&_svg]:lib:shrink-0 focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] lib:outline-none lib:transition-[color,box-shadow] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:whitespace-nowrap", - { - variants: { - variant: { - default: "lib:bg-transparent", - outline: "lib:border lib:border-input lib:bg-transparent lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground" - }, - size: { - default: "lib:h-9 lib:px-2 lib:min-w-9", - sm: "lib:h-8 lib:px-1.5 lib:min-w-8", - lg: "lib:h-10 lib:px-2.5 lib:min-w-10" - } - }, - defaultVariants: { - variant: "default", - size: "default" - } - } -); -function c({ - className: i, - variant: e, - size: t, - ...l +import { j as o } from "./index.es64.js"; +import * as i from "@radix-ui/react-tooltip"; +import { cn as n } from "./index.es65.js"; +function s({ delayDuration: t = 0, ...r }) { + return /* @__PURE__ */ o.jsx(i.Provider, { "data-slot": "tooltip-provider", delayDuration: t, ...r }); +} +function m({ ...t }) { + return /* @__PURE__ */ o.jsx(s, { children: /* @__PURE__ */ o.jsx(i.Root, { "data-slot": "tooltip", ...t }) }); +} +function p({ ...t }) { + return /* @__PURE__ */ o.jsx(i.Trigger, { "data-slot": "tooltip-trigger", ...t }); +} +function f({ + className: t, + sideOffset: r = 0, + children: e, + ...a }) { - return /* @__PURE__ */ r.createElement(n.Root, { "data-slot": "toggle", className: b(o({ variant: e, size: t, className: i })), ...l }); + return /* @__PURE__ */ o.jsx(i.Portal, { children: /* @__PURE__ */ o.jsxs( + i.Content, + { + "data-slot": "tooltip-content", + sideOffset: r, + className: n( + "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", + t + ), + ...a, + children: [ + e, + /* @__PURE__ */ o.jsx(i.Arrow, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" }) + ] + } + ) }); } export { - c as Toggle, - o as toggleVariants + m as Tooltip, + f as TooltipContent, + s as TooltipProvider, + p as TooltipTrigger }; diff --git a/dist/index.es52.js b/dist/index.es52.js index ef207d26..b3e2026f 100644 --- a/dist/index.es52.js +++ b/dist/index.es52.js @@ -1,39 +1,16 @@ -import * as i from "react"; -import * as e from "@radix-ui/react-tooltip"; -import { cn as a } from "./index.es54.js"; -function n({ delayDuration: t = 0, ...o }) { - return /* @__PURE__ */ i.createElement(e.Provider, { "data-slot": "tooltip-provider", delayDuration: t, ...o }); -} -function b({ ...t }) { - return /* @__PURE__ */ i.createElement(n, null, /* @__PURE__ */ i.createElement(e.Root, { "data-slot": "tooltip", ...t })); -} -function m({ ...t }) { - return /* @__PURE__ */ i.createElement(e.Trigger, { "data-slot": "tooltip-trigger", ...t }); -} -function s({ - className: t, - sideOffset: o = 0, - children: l, - ...r -}) { - return /* @__PURE__ */ i.createElement(e.Portal, null, /* @__PURE__ */ i.createElement( - e.Content, - { - "data-slot": "tooltip-content", - sideOffset: o, - className: a( - "lib:bg-primary lib:text-primary-foreground lib:animate-in lib:fade-in-0 lib:zoom-in-95 data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=closed]:lib:zoom-out-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-fit lib:origin-(--radix-tooltip-content-transform-origin) lib:rounded-md lib:px-3 lib:py-1.5 lib:text-xs lib:text-balance", - t - ), - ...r - }, - l, - /* @__PURE__ */ i.createElement(e.Arrow, { className: "lib:bg-primary lib:fill-primary lib:z-50 lib:size-2.5 lib:translate-y-[calc(-50%_-_2px)] lib:rotate-45 lib:rounded-[2px]" }) - )); +import { j as e } from "./index.es64.js"; +import { SidebarProvider as a, SidebarTrigger as o } from "./index.es41.js"; +import m from "./index.es53.js"; +import n from "./index.es4.js"; +function x({ userInfo: r, appInfo: t, signOutFn: i, children: s }) { + return /* @__PURE__ */ e.jsx(n, { attribute: "class", defaultTheme: "system", enableSystem: !0, disableTransitionOnChange: !0, children: /* @__PURE__ */ e.jsxs(a, { defaultOpen: !0, children: [ + /* @__PURE__ */ e.jsx(m, { userInfo: r, appInfo: t, signOutFn: i }), + /* @__PURE__ */ e.jsxs("main", { className: "w-fit", children: [ + /* @__PURE__ */ e.jsx(o, {}), + s + ] }) + ] }) }); } export { - b as Tooltip, - s as TooltipContent, - n as TooltipProvider, - m as TooltipTrigger + x as default }; diff --git a/dist/index.es53.js b/dist/index.es53.js index bffbfe7b..384f44b6 100644 --- a/dist/index.es53.js +++ b/dist/index.es53.js @@ -1,15 +1,90 @@ -import { SkeletonTheme as r } from "react-loading-skeleton"; -import m from "./index.es4.js"; -/* empty css */ -const i = ({ - children: e, - baseColor: t, - highlightColor: o -}) => { - localStorage.getItem("theme"); - const { theme: l } = m(); - return /* @__PURE__ */ React.createElement(r, { baseColor: t || "#000", highlightColor: o || "#c9c9c9" }, e); -}; +import { j as e } from "./index.es64.js"; +import { useMemo as p } from "react"; +import { Sidebar as M, SidebarHeader as P, SidebarMenu as g, SidebarMenuItem as m, SidebarContent as z, SidebarGroup as L, SidebarGroupLabel as w, SidebarGroupContent as D, SidebarMenuButton as b, SidebarFooter as G } from "./index.es41.js"; +import { SquareTerminal as R, BriefcaseBusiness as T, ServerCog as _, KeyRound as $, UserRoundCog as E } from "lucide-react"; +import H from "./index.es85.js"; +import { genAvatarBackground as v, getCurrentPath as K } from "./index.es86.js"; +import { Avatar as q, AvatarImage as F } from "./index.es10.js"; +import { AvatarFallback as I } from "@radix-ui/react-avatar"; +import J from "./index.es87.js"; +import { useLinkComponent as O } from "./index.es5.js"; +const Q = (n, t) => [ + { + section: "Projects", + sectionItems: [ + { + title: "All Projects", + url: "/projects", + icon: R + } + ] + }, + { + section: "Organizations", + sectionItems: [ + { + title: "All Organizations", + url: "/organizations", + icon: T + }, + { + title: "All Deployments", + url: "/deployments", + icon: _ + } + ] + }, + { + section: "Settings", + sectionItems: [ + { + title: "SSH Keys", + url: "/settings", + icon: $ + }, + { + title: "My Account", + url: `${n}/account`, + target: "blank", + onClick: t, + icon: E + } + ] + } +]; +function ie({ userInfo: n, appInfo: t, currentPath: u, signOutFn: o, ...f }) { + const A = O(), { firstName: s, lastName: a, image: h, email: i } = n, S = !!h, l = !!(s && a), x = l ? v(s.charAt(0), a.charAt(0)) : v(i.charAt(0), i.charAt(1)), C = l ? s.charAt(0).toUpperCase() + a.charAt(0).toUpperCase() : i.charAt(0).toUpperCase(), k = S ? /* @__PURE__ */ e.jsxs(q, { children: [ + /* @__PURE__ */ e.jsx(F, { src: h, alt: "user_avatar" }), + /* @__PURE__ */ e.jsx(I, { children: "Avatar" }) + ] }) : /* @__PURE__ */ e.jsx(J, { bgColor: x.bgColor, textColor: x.textColor, children: C }), N = l ? /* @__PURE__ */ e.jsx("span", { className: "user-name", children: `${s} ${a}` }) : /* @__PURE__ */ e.jsx("span", { className: "user-name", children: i }), c = p(() => Q(t.kcUrl, o), [t.kcUrl, o]), y = p(() => K(c, u || ""), [c, u]), U = { ...t, signOutFn: o }; + return /* @__PURE__ */ e.jsxs(M, { variant: "sidebar", collapsible: "icon", ...f, children: [ + /* @__PURE__ */ e.jsx(P, { children: /* @__PURE__ */ e.jsx(g, { children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(H, { ...U }) }) }) }), + /* @__PURE__ */ e.jsx(z, { children: c.map((d) => /* @__PURE__ */ e.jsxs(L, { children: [ + /* @__PURE__ */ e.jsx(w, { children: d.section }), + /* @__PURE__ */ e.jsx(D, { className: "list-none", children: d.sectionItems.map((r) => { + const B = r.target === "blank", j = r.onClick; + return /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsx(b, { asChild: !0, isActive: y === r.url, children: /* @__PURE__ */ e.jsxs( + A, + { + onClick: async () => { + j && await j(); + }, + href: r.url, + target: B ? "_blank" : "_self", + children: [ + /* @__PURE__ */ e.jsx(r.icon, {}), + /* @__PURE__ */ e.jsx("span", { children: r.title }) + ] + } + ) }) }, r.title); + }) }) + ] }, d.section)) }), + /* @__PURE__ */ e.jsx(G, { children: /* @__PURE__ */ e.jsx(g, { children: /* @__PURE__ */ e.jsx(m, { children: /* @__PURE__ */ e.jsxs(b, { size: "lg", children: [ + k, + /* @__PURE__ */ e.jsx("div", { className: "grid flex-1 text-left text-sm leading-tight", children: /* @__PURE__ */ e.jsx("span", { className: "truncate font-light", children: N }) }) + ] }) }) }) }) + ] }); +} export { - i as default + ie as default }; diff --git a/dist/index.es54.js b/dist/index.es54.js index a4783bbc..d3abcf2a 100644 --- a/dist/index.es54.js +++ b/dist/index.es54.js @@ -1,8 +1,13 @@ -import { clsx as o } from "clsx"; -import { twMerge as t } from "tailwind-merge"; -function n(...r) { - return t(o(r)); +import { j as e } from "./index.es64.js"; +import { Checkbox as s } from "./index.es18.js"; +import { Label as a } from "./index.es29.js"; +function i({ label: t, id: r, ...o }) { + return /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [ + /* @__PURE__ */ e.jsx(s, { id: r, ...o }), + /* @__PURE__ */ e.jsx(a, { htmlFor: r, children: t }) + ] }) }); } +i.displayName = "CheckboxWithLabel"; export { - n as cn + i as default }; diff --git a/dist/index.es55.js b/dist/index.es55.js index 5b54426a..96889903 100644 --- a/dist/index.es55.js +++ b/dist/index.es55.js @@ -1,14 +1,32 @@ -import * as o from "react"; -const e = 768; -function r() { - const [s, n] = o.useState(void 0); - return o.useEffect(() => { - const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => { - n(window.innerWidth < e); - }; - return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i); - }, []), !!s; +import { j as a } from "./index.es64.js"; +import { Card as e, CardHeader as s, CardTitle as l, CardContent as o } from "./index.es15.js"; +import { cva as d } from "class-variance-authority"; +import { cn as i } from "./index.es65.js"; +const m = d("max-w-[160px] border rounded-lg flex flex-col justify-center", { + variants: { + type: { + default: "h-[108px]", + withIcon: "h-[125px] gap-2 p-6", + stat: "w-[370px] max-w-[370px] h-[140px] gap-3 p-5" + } + }, + defaultVariants: { + type: "default" + } +}); +function u({ type: t = "default", title: n, content: r }) { + return /* @__PURE__ */ a.jsxs(e, { className: i(m({ type: t })), children: [ + /* @__PURE__ */ a.jsx(s, { children: /* @__PURE__ */ a.jsx( + l, + { + className: t === "stat" ? "font-sans font-light text-sm leading-[1.4] tracking-normal" : "font-sans font-medium text-sm leading-[1.5] tracking-normal", + children: n + } + ) }), + /* @__PURE__ */ a.jsx(o, { children: t === "stat" ? /* @__PURE__ */ a.jsx("section", { className: "font-sans font-normal leading-[1.75] tracking-normal", children: r }) : t === "default" ? /* @__PURE__ */ a.jsx("p", { className: "text-2xl leading-normal font-bold ml-auto w-max", children: r }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: r }) }) + ] }); } export { - r as useIsMobile + m as cardVariants, + u as default }; diff --git a/dist/index.es56.js b/dist/index.es56.js new file mode 100644 index 00000000..98ad5e2e --- /dev/null +++ b/dist/index.es56.js @@ -0,0 +1,38 @@ +import { j as n } from "./index.es64.js"; +import { isValidElement as m } from "react"; +import l from "./index.es55.js"; +import { cva as f } from "class-variance-authority"; +const p = f("font-sans font-normal text-lg leading-normal tracking-normal text-right", { + variants: { + transform: { + lowercase: "lowercase", + capitalize: "capitalize", + none: "" + } + }, + defaultVariants: { + transform: "none" + } +}); +function s(t) { + return t.toLowerCase().replace(/\s+/g, "-"); +} +const w = ({ title: t, value: a, lowercaseValue: e, capitalizeValue: o }) => { + const i = m(a); + let r = ""; + e && (r = "lowercase"), o && (r = "capitalize"); + const c = i ? /* @__PURE__ */ n.jsx("div", { className: r, "data-cy": s(t), children: a }) : /* @__PURE__ */ n.jsx( + "span", + { + className: p({ + transform: e ? "lowercase" : o ? "capitalize" : "none" + }), + "data-cy": s(t), + children: a + } + ); + return /* @__PURE__ */ n.jsx(l, { type: "stat", title: t, content: c }); +}; +export { + w as default +}; diff --git a/dist/index.es57.js b/dist/index.es57.js new file mode 100644 index 00000000..b781fe3f --- /dev/null +++ b/dist/index.es57.js @@ -0,0 +1,14 @@ +import { j as t } from "./index.es64.js"; +import o from "./index.es55.js"; +function l({ name: e, category: n, value: s, img: a }) { + const r = /* @__PURE__ */ t.jsxs("section", { className: "flex-row justify-items-end font-sans font-normal text-xs leading-[1.25] tracking-normal text-right", children: [ + a, + /* @__PURE__ */ t.jsx("span", { className: "name", children: e }), + /* @__PURE__ */ t.jsx("br", {}), + /* @__PURE__ */ t.jsx("span", { className: "value", children: s }) + ] }); + return /* @__PURE__ */ t.jsx(o, { type: "withIcon", title: n, content: r }); +} +export { + l as default +}; diff --git a/dist/index.es58.js b/dist/index.es58.js new file mode 100644 index 00000000..27518e28 --- /dev/null +++ b/dist/index.es58.js @@ -0,0 +1,102 @@ +import { j as e } from "./index.es64.js"; +import { useState as c } from "react"; +import { Copy as v, EyeOff as d, Eye as u, Check as C } from "lucide-react"; +import { cva as N } from "class-variance-authority"; +import { Tooltip as m, TooltipTrigger as h, TooltipContent as x } from "./index.es51.js"; +const w = N("truncate transition-all duration-300", { + variants: { + type: { + visible: "", + hidden: "blur-sm select-none hover:blur-0 hover:select-text", + hiddenWithIcon: "", + alwaysHidden: "blur-sm select-none" + }, + unblur: { + true: "!blur-0 !select-text", + false: "" + } + }, + compoundVariants: [ + { + type: "hiddenWithIcon", + unblur: !1, + className: "blur-sm select-none" + }, + { + type: "hiddenWithIcon", + unblur: !0, + className: "!blur-0 !select-text" + } + ], + defaultVariants: { + type: "visible", + unblur: !1 + } +}), S = ({ + text: t, + width: s, + fontSize: p = "14px", + type: n = "visible", + withToolTip: g = !1, + iconOnly: o = !1 +}) => { + const [b, l] = c(!1), [r, f] = c(!1), y = () => { + navigator.clipboard.writeText(t.toString()); + }, j = () => { + y(), l(!0), setTimeout(() => l(!1), 3500); + }, a = () => f(!r), i = { + maxWidth: s ? typeof s == "number" ? `${s}px` : s : void 0, + fontSize: p, + width: o ? "max-content" : void 0 + }; + return /* @__PURE__ */ e.jsxs("div", { className: "flex items-start gap-4 min-w-max justify-between", style: i, children: [ + !o && /* @__PURE__ */ e.jsx("span", { className: w({ type: n, unblur: r }), style: { maxWidth: i.maxWidth }, children: g ? /* @__PURE__ */ e.jsxs(m, { children: [ + /* @__PURE__ */ e.jsx(h, { asChild: !0, children: /* @__PURE__ */ e.jsx("span", { className: "truncate", children: t }) }), + /* @__PURE__ */ e.jsx(x, { side: "bottom", children: /* @__PURE__ */ e.jsx("p", { children: t }) }) + ] }) : t }), + /* @__PURE__ */ e.jsx("div", { className: "flex items-center gap-3", children: b ? /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3", children: [ + /* @__PURE__ */ e.jsxs(m, { children: [ + /* @__PURE__ */ e.jsx(h, { asChild: !0, children: /* @__PURE__ */ e.jsx(C, { className: "w-4 h-4 text-green-500" }) }), + /* @__PURE__ */ e.jsx(x, { children: /* @__PURE__ */ e.jsx("span", { className: "truncate", children: "Copied!" }) }) + ] }), + n === "hiddenWithIcon" && (r ? /* @__PURE__ */ e.jsx( + d, + { + className: "w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300", + onClick: a + } + ) : /* @__PURE__ */ e.jsx( + u, + { + className: "w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300", + onClick: a + } + )) + ] }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [ + /* @__PURE__ */ e.jsx( + v, + { + className: "w-4 h-4 text-muted-foreground hover:bg-gray-200 active:bg-gray-300 cursor-pointer", + "data-cy": "copy-button", + onClick: j + } + ), + n === "hiddenWithIcon" && (r ? /* @__PURE__ */ e.jsx( + d, + { + className: "w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300", + onClick: a + } + ) : /* @__PURE__ */ e.jsx( + u, + { + className: "w-4 h-4 ml-3 cursor-pointer text-muted-foreground hover:bg-gray-200 active:bg-gray-300", + onClick: a + } + )) + ] }) }) + ] }); +}; +export { + S as default +}; diff --git a/dist/index.es59.js b/dist/index.es59.js new file mode 100644 index 00000000..93e7eee9 --- /dev/null +++ b/dist/index.es59.js @@ -0,0 +1,28 @@ +import { j as e } from "./index.es64.js"; +import { Fragment as u } from "react"; +import { Breadcrumb as h, BreadcrumbList as j, BreadcrumbItem as f, BreadcrumbLink as g, BreadcrumbSeparator as y } from "./index.es12.js"; +import b from "./index.es58.js"; +import { ChevronRight as v } from "lucide-react"; +const C = { + default: ["", "project", "environment"], + orgs: ["", "organization", "project"] +}, N = ({ activeKey: a, items: c, type: t, currentSlug: l }) => { + const o = t && ["default", "orgs"].includes(t) ? [...C[t]] : null; + return l && o && (o[2] = l), /* @__PURE__ */ e.jsx(h, { className: "mb-8 text-sm", "data-cy": "page-title", children: /* @__PURE__ */ e.jsx(j, { children: c.map((r, s) => { + const i = "key" in r ? r.key : s, p = a && a === i, n = o?.[s] ?? null, x = "copyText" in r && r.copyText && n, d = r.copyText && r.copyText.length < 15 && n === "organization" ? "Org" : n, m = /* @__PURE__ */ e.jsxs("div", { className: "relative flex flex-col items-start group", children: [ + d && /* @__PURE__ */ e.jsx("span", { className: "absolute -top-3 left-0 text-[11px] font-semibold uppercase text-primary pointer-events-none select-none", children: d }), + /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-1", children: [ + /* @__PURE__ */ e.jsx("span", { className: p ? "text-foreground" : "text-muted-foreground", children: "navOnClick" in r && r.navOnClick ? /* @__PURE__ */ e.jsx("span", { onClick: r.navOnClick, className: "hover:underline cursor-pointer", children: r.title }) : r.title }), + x && /* @__PURE__ */ e.jsx("div", { className: "text-primary scale-90 ml-1", children: /* @__PURE__ */ e.jsx(b, { text: r.copyText, iconOnly: !0 }) }) + ] }) + ] }); + return /* @__PURE__ */ e.jsxs(u, { children: [ + /* @__PURE__ */ e.jsx(f, { children: /* @__PURE__ */ e.jsx(g, { asChild: !0, children: m }) }), + s !== c.length - 1 && /* @__PURE__ */ e.jsx(y, { children: /* @__PURE__ */ e.jsx(v, { className: "w-4 h-4 text-muted-foreground" }) }) + ] }, i); + }) }) }); +}; +N.displayName = "Breadcrumb"; +export { + N as default +}; diff --git a/dist/index.es6.js b/dist/index.es6.js index 8d64478e..b6f66c48 100644 --- a/dist/index.es6.js +++ b/dist/index.es6.js @@ -1,12 +1,51 @@ -import o, { createContext as r, useContext as i } from "react"; -const t = r(void 0), u = ({ linkComponent: e, children: n }) => /* @__PURE__ */ o.createElement(t.Provider, { value: e }, n), c = () => { - const e = i(t); - if (!e) - throw new Error("useLinkComponent must be used within a LinkProvider"); - return e; -}; +import { j as e } from "./index.es64.js"; +import * as n from "@radix-ui/react-accordion"; +import { ChevronDownIcon as a } from "lucide-react"; +import { cn as i } from "./index.es65.js"; +function l({ ...t }) { + return /* @__PURE__ */ e.jsx(n.Root, { "data-slot": "accordion", ...t }); +} +function m({ className: t, ...o }) { + return /* @__PURE__ */ e.jsx( + n.Item, + { + "data-slot": "accordion-item", + className: i("border-b last:border-b-0", t), + ...o + } + ); +} +function u({ className: t, children: o, ...r }) { + return /* @__PURE__ */ e.jsx(n.Header, { className: "flex", children: /* @__PURE__ */ e.jsxs( + n.Trigger, + { + "data-slot": "accordion-trigger", + className: i( + "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", + t + ), + ...r, + children: [ + o, + /* @__PURE__ */ e.jsx(a, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" }) + ] + } + ) }); +} +function f({ className: t, children: o, ...r }) { + return /* @__PURE__ */ e.jsx( + n.Content, + { + "data-slot": "accordion-content", + className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm", + ...r, + children: /* @__PURE__ */ e.jsx("div", { className: i("pt-0 pb-4", t), children: o }) + } + ); +} export { - t as LinkContext, - u as LinkProvider, - c as useLinkComponent + l as Accordion, + f as AccordionContent, + m as AccordionItem, + u as AccordionTrigger }; diff --git a/dist/index.es60.js b/dist/index.es60.js new file mode 100644 index 00000000..a88f9863 --- /dev/null +++ b/dist/index.es60.js @@ -0,0 +1,45 @@ +import { j as e } from "./index.es64.js"; +import { AlertDialog as s, AlertDialogTrigger as g, AlertDialogContent as h, AlertDialogHeader as d, AlertDialogTitle as p, AlertDialogDescription as x, AlertDialogFooter as j, AlertDialogCancel as D, AlertDialogAction as A } from "./index.es7.js"; +function m({ + title: o, + message: r, + cancelText: t, + onCancel: i, + confirmText: a, + onConfirm: l, + ...n +}) { + const c = "rest" in arguments && "open" in n && "onOpenChange" in n ? { open: n.open, onOpenChange: n.onOpenChange } : {}; + return /* @__PURE__ */ e.jsxs(s, { ...c, children: [ + /* @__PURE__ */ e.jsx(g, { asChild: !0, children: "children" in n ? n.children : null }), + /* @__PURE__ */ e.jsxs(h, { children: [ + /* @__PURE__ */ e.jsxs(d, { children: [ + /* @__PURE__ */ e.jsx(p, { children: o }), + /* @__PURE__ */ e.jsx(x, { children: r }) + ] }), + /* @__PURE__ */ e.jsxs(j, { children: [ + /* @__PURE__ */ e.jsx( + D, + { + onClick: () => { + i && i(); + }, + children: t ?? "Cancel" + } + ), + /* @__PURE__ */ e.jsx( + A, + { + onClick: () => { + l && l(); + }, + children: a ?? "Continue" + } + ) + ] }) + ] }) + ] }); +} +export { + m as default +}; diff --git a/dist/index.es61.js b/dist/index.es61.js new file mode 100644 index 00000000..8972f460 --- /dev/null +++ b/dist/index.es61.js @@ -0,0 +1,32 @@ +import { j as e } from "./index.es64.js"; +import { HelpCircle as c, Frown as x, Meh as h, Smile as o } from "lucide-react"; +import { HoverCard as g, HoverCardTrigger as u, HoverCardContent as j } from "./index.es26.js"; +import t from "./index.es55.js"; +const f = (s) => { + if (s.skeleton) + return /* @__PURE__ */ e.jsx("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4 animate-pulse", children: Array.from({ length: 5 }).map((p, m) => /* @__PURE__ */ e.jsx("div", { className: "h-[80px] rounded-xl bg-muted" }, m)) }); + const { problems: n, critical: r, high: l, medium: a, low: i } = s, d = () => r >= 1 ? /* @__PURE__ */ e.jsx(x, { className: "h-6 w-6 text-rose-500" }) : l >= 1 ? /* @__PURE__ */ e.jsx(h, { className: "h-6 w-6 text-orange-500" }) : a >= 1 || i >= 1 ? /* @__PURE__ */ e.jsx(o, { className: "h-6 w-6 text-green-500" }) : /* @__PURE__ */ e.jsx(o, { className: "h-6 w-6 text-green-500" }); + return /* @__PURE__ */ e.jsxs("div", { className: "space-y-4", children: [ + /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-3 text-center mx-auto w-fit", children: [ + /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: d() }), + /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-2 text-xl font-semibold", children: [ + /* @__PURE__ */ e.jsx("h2", { children: "At a glance" }), + /* @__PURE__ */ e.jsxs(g, { children: [ + /* @__PURE__ */ e.jsx(u, { asChild: !0, children: /* @__PURE__ */ e.jsx(c, { className: "h-4 w-4 text-muted-foreground cursor-pointer" }) }), + /* @__PURE__ */ e.jsx(j, { className: "w-64 text-sm text-muted-foreground", children: "The summary of all the problems is shown here." }) + ] }) + ] }) + ] }), + /* @__PURE__ */ e.jsxs("div", { className: "grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4", children: [ + /* @__PURE__ */ e.jsx(t, { type: "default", title: "Problems", content: n }), + /* @__PURE__ */ e.jsx(t, { type: "default", title: "Critical", content: r }), + /* @__PURE__ */ e.jsx(t, { type: "default", title: "High", content: l }), + /* @__PURE__ */ e.jsx(t, { type: "default", title: "Medium", content: a }), + /* @__PURE__ */ e.jsx(t, { type: "default", title: "Low", content: i }) + ] }) + ] }); +}; +f.displayName = "LagoonProblemsOverview"; +export { + f as default +}; diff --git a/dist/index.es62.js b/dist/index.es62.js new file mode 100644 index 00000000..1f7e2e36 --- /dev/null +++ b/dist/index.es62.js @@ -0,0 +1,17 @@ +import { j as e } from "./index.es64.js"; +import { Select as i, SelectTrigger as u, SelectValue as x, SelectContent as j, SelectGroup as m, SelectLabel as S, SelectItem as s } from "./index.es38.js"; +function h(r) { + return Array.isArray(r) && "options" in r[0]; +} +function f({ placeholder: r, options: a, disabled: c, ...n }) { + return /* @__PURE__ */ e.jsxs(i, { disabled: c, ...n, children: [ + /* @__PURE__ */ e.jsx(u, { className: "w-[266px]", children: /* @__PURE__ */ e.jsx(x, { placeholder: r || "Make a selection" }) }), + !c && a && /* @__PURE__ */ e.jsx(j, { children: h(a) ? a.map((l) => /* @__PURE__ */ e.jsxs(m, { children: [ + /* @__PURE__ */ e.jsx(S, { children: l.label }), + l.options.map((t) => /* @__PURE__ */ e.jsx(s, { value: String(t.value), children: t.label }, t.value)) + ] }, l.label)) : a.map((l) => /* @__PURE__ */ e.jsx(s, { value: String(l.value), children: l.label }, l.value)) }) + ] }); +} +export { + f as default +}; diff --git a/dist/index.es63.js b/dist/index.es63.js new file mode 100644 index 00000000..db3488bf --- /dev/null +++ b/dist/index.es63.js @@ -0,0 +1,33 @@ +import { j as t } from "./index.es64.js"; +import { Label as o } from "./index.es29.js"; +import { Input as m } from "./index.es28.js"; +import { cva as i } from "class-variance-authority"; +const l = i("w-full rounded-lg bg-background", { + variants: { + hasIcon: { + true: "pl-8", + false: "" + } + } +}); +function f({ label: s, placeholder: e = "", icon: r, description: a, ...n }) { + return /* @__PURE__ */ t.jsxs("div", { className: "grid w-full max-w-sm items-center gap-1.5", children: [ + /* @__PURE__ */ t.jsx(o, { htmlFor: `${s}-input`, children: s }), + /* @__PURE__ */ t.jsxs("div", { className: "relative", children: [ + r && /* @__PURE__ */ t.jsx("div", { className: "absolute left-2.5 top-1.5 h-2.5 w-2.5 text-muted-foreground", children: r }), + /* @__PURE__ */ t.jsx( + m, + { + className: l({ hasIcon: !!r }), + id: `${s}-input`, + placeholder: e, + ...n + } + ), + a && /* @__PURE__ */ t.jsx("p", { className: "font-sans font-normal text-sm leading-[1.5] tracking-[0%] text-muted-foreground", children: a }) + ] }) + ] }); +} +export { + f as default +}; diff --git a/dist/index.es64.js b/dist/index.es64.js new file mode 100644 index 00000000..911cb3b6 --- /dev/null +++ b/dist/index.es64.js @@ -0,0 +1,5 @@ +import { __require as r } from "./index.es79.js"; +var i = r(); +export { + i as j +}; diff --git a/dist/index.es65.js b/dist/index.es65.js new file mode 100644 index 00000000..a4783bbc --- /dev/null +++ b/dist/index.es65.js @@ -0,0 +1,8 @@ +import { clsx as o } from "clsx"; +import { twMerge as t } from "tailwind-merge"; +function n(...r) { + return t(o(r)); +} +export { + n as cn +}; diff --git a/dist/index.es66.js b/dist/index.es66.js new file mode 100644 index 00000000..5b54426a --- /dev/null +++ b/dist/index.es66.js @@ -0,0 +1,14 @@ +import * as o from "react"; +const e = 768; +function r() { + const [s, n] = o.useState(void 0); + return o.useEffect(() => { + const t = window.matchMedia(`(max-width: ${e - 1}px)`), i = () => { + n(window.innerWidth < e); + }; + return t.addEventListener("change", i), n(window.innerWidth < e), () => t.removeEventListener("change", i); + }, []), !!s; +} +export { + r as useIsMobile +}; diff --git a/dist/index.es67.js b/dist/index.es67.js new file mode 100644 index 00000000..6578c92e --- /dev/null +++ b/dist/index.es67.js @@ -0,0 +1,4 @@ +import t from "./index.es52.js"; +export { + t as default +}; diff --git a/dist/index.es68.js b/dist/index.es68.js new file mode 100644 index 00000000..f013ded9 --- /dev/null +++ b/dist/index.es68.js @@ -0,0 +1,4 @@ +import e from "./index.es53.js"; +export { + e as default +}; diff --git a/dist/index.es69.js b/dist/index.es69.js new file mode 100644 index 00000000..82338c5d --- /dev/null +++ b/dist/index.es69.js @@ -0,0 +1,4 @@ +import o from "./index.es54.js"; +export { + o as default +}; diff --git a/dist/index.es7.js b/dist/index.es7.js index 2ca6f10d..5c0e8caf 100644 --- a/dist/index.es7.js +++ b/dist/index.es7.js @@ -1,49 +1,104 @@ -import * as t from "react"; -import * as o from "@radix-ui/react-accordion"; -import { ChevronDownIcon as l } from "lucide-react"; -import { cn as r } from "./index.es54.js"; -function b({ ...e }) { - return /* @__PURE__ */ t.createElement(o.Root, { "data-slot": "accordion", ...e }); -} -function s({ className: e, ...i }) { - return /* @__PURE__ */ t.createElement( - o.Item, +import { j as e } from "./index.es64.js"; +import * as o from "@radix-ui/react-alert-dialog"; +import { cn as l } from "./index.es65.js"; +import { buttonVariants as r } from "./index.es13.js"; +function g({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Root, { "data-slot": "alert-dialog", ...t }); +} +function u({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Trigger, { "data-slot": "alert-dialog-trigger", ...t }); +} +function n({ ...t }) { + return /* @__PURE__ */ e.jsx(o.Portal, { "data-slot": "alert-dialog-portal", ...t }); +} +function i({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + o.Overlay, + { + "data-slot": "alert-dialog-overlay", + className: l( + "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", + t + ), + ...a + } + ); +} +function m({ className: t, ...a }) { + return /* @__PURE__ */ e.jsxs(n, { children: [ + /* @__PURE__ */ e.jsx(i, {}), + /* @__PURE__ */ e.jsx( + o.Content, + { + "data-slot": "alert-dialog-content", + className: l( + "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", + t + ), + ...a + } + ) + ] }); +} +function f({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + "div", { - "data-slot": "accordion-item", - className: r("lib:border-b last:lib:border-b-0", e), - ...i + "data-slot": "alert-dialog-header", + className: l("flex flex-col gap-2 text-center sm:text-left", t), + ...a } ); } -function d({ className: e, children: i, ...n }) { - return /* @__PURE__ */ t.createElement(o.Header, { className: "lib:flex" }, /* @__PURE__ */ t.createElement( - o.Trigger, +function x({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + "div", { - "data-slot": "accordion-trigger", - className: r( - "focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 lib:flex lib:flex-1 lib:items-start lib:justify-between lib:gap-4 lib:rounded-md lib:py-4 lib:text-left lib:text-sm lib:font-medium lib:transition-all lib:outline-none hover:lib:underline focus-visible:lib:ring-[3px] disabled:lib:pointer-events-none disabled:lib:opacity-50 [&[data-state=open]>svg]:lib:rotate-180", - e - ), - ...n - }, - i, - /* @__PURE__ */ t.createElement(l, { className: "lib:text-muted-foreground lib:pointer-events-none lib:size-4 lib:shrink-0 lib:translate-y-0.5 lib:transition-transform lib:duration-200" }) - )); -} -function m({ className: e, children: i, ...n }) { - return /* @__PURE__ */ t.createElement( - o.Content, + "data-slot": "alert-dialog-footer", + className: l("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t), + ...a + } + ); +} +function p({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx( + o.Title, + { + "data-slot": "alert-dialog-title", + className: l("text-lg font-semibold", t), + ...a + } + ); +} +function j({ + className: t, + ...a +}) { + return /* @__PURE__ */ e.jsx( + o.Description, { - "data-slot": "accordion-content", - className: "data-[state=closed]:lib:animate-accordion-up data-[state=open]:lib:animate-accordion-down lib:overflow-hidden lib:text-sm", - ...n - }, - /* @__PURE__ */ t.createElement("div", { className: r("lib:pt-0 lib:pb-4", e) }, i) + "data-slot": "alert-dialog-description", + className: l("text-muted-foreground text-sm", t), + ...a + } ); } +function A({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx(o.Action, { className: l(r(), t), ...a }); +} +function D({ className: t, ...a }) { + return /* @__PURE__ */ e.jsx(o.Cancel, { className: l(r({ variant: "outline" }), t), ...a }); +} export { - b as Accordion, - m as AccordionContent, - s as AccordionItem, - d as AccordionTrigger + g as AlertDialog, + A as AlertDialogAction, + D as AlertDialogCancel, + m as AlertDialogContent, + j as AlertDialogDescription, + x as AlertDialogFooter, + f as AlertDialogHeader, + i as AlertDialogOverlay, + n as AlertDialogPortal, + p as AlertDialogTitle, + u as AlertDialogTrigger }; diff --git a/dist/index.es70.js b/dist/index.es70.js new file mode 100644 index 00000000..e363f8fc --- /dev/null +++ b/dist/index.es70.js @@ -0,0 +1,4 @@ +import a from "./index.es55.js"; +export { + a as default +}; diff --git a/dist/index.es71.js b/dist/index.es71.js new file mode 100644 index 00000000..a2e62d03 --- /dev/null +++ b/dist/index.es71.js @@ -0,0 +1,4 @@ +import a from "./index.es56.js"; +export { + a as default +}; diff --git a/dist/index.es72.js b/dist/index.es72.js new file mode 100644 index 00000000..c01d9b74 --- /dev/null +++ b/dist/index.es72.js @@ -0,0 +1,4 @@ +import r from "./index.es57.js"; +export { + r as default +}; diff --git a/dist/index.es73.js b/dist/index.es73.js new file mode 100644 index 00000000..4fea9b1c --- /dev/null +++ b/dist/index.es73.js @@ -0,0 +1,4 @@ +import p from "./index.es58.js"; +export { + p as default +}; diff --git a/dist/index.es74.js b/dist/index.es74.js new file mode 100644 index 00000000..ea996eed --- /dev/null +++ b/dist/index.es74.js @@ -0,0 +1,4 @@ +import a from "./index.es59.js"; +export { + a as default +}; diff --git a/dist/index.es75.js b/dist/index.es75.js new file mode 100644 index 00000000..35d94421 --- /dev/null +++ b/dist/index.es75.js @@ -0,0 +1,4 @@ +import t from "./index.es60.js"; +export { + t as default +}; diff --git a/dist/index.es76.js b/dist/index.es76.js new file mode 100644 index 00000000..d5cbc057 --- /dev/null +++ b/dist/index.es76.js @@ -0,0 +1,4 @@ +import e from "./index.es61.js"; +export { + e as default +}; diff --git a/dist/index.es77.js b/dist/index.es77.js new file mode 100644 index 00000000..5cf75fc0 --- /dev/null +++ b/dist/index.es77.js @@ -0,0 +1,4 @@ +import e from "./index.es62.js"; +export { + e as default +}; diff --git a/dist/index.es78.js b/dist/index.es78.js new file mode 100644 index 00000000..4d2bfe11 --- /dev/null +++ b/dist/index.es78.js @@ -0,0 +1,4 @@ +import o from "./index.es63.js"; +export { + o as default +}; diff --git a/dist/index.es79.js b/dist/index.es79.js new file mode 100644 index 00000000..a942cc0d --- /dev/null +++ b/dist/index.es79.js @@ -0,0 +1,10 @@ +import { __module as e } from "./index.es80.js"; +import { __require as i } from "./index.es81.js"; +import { __require as t } from "./index.es82.js"; +var r; +function m() { + return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = i() : e.exports = t(), e.exports); +} +export { + m as __require +}; diff --git a/dist/index.es8.js b/dist/index.es8.js index ce012cb8..7cbe1543 100644 --- a/dist/index.es8.js +++ b/dist/index.es8.js @@ -1,101 +1,48 @@ -import * as l from "react"; -import * as a from "@radix-ui/react-alert-dialog"; -import { cn as i } from "./index.es54.js"; -import { buttonVariants as o } from "./index.es14.js"; -function c({ ...t }) { - return /* @__PURE__ */ l.createElement(a.Root, { "data-slot": "alert-dialog", ...t }); -} -function b({ ...t }) { - return /* @__PURE__ */ l.createElement(a.Trigger, { "data-slot": "alert-dialog-trigger", ...t }); -} -function r({ ...t }) { - return /* @__PURE__ */ l.createElement(a.Portal, { "data-slot": "alert-dialog-portal", ...t }); -} -function n({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement( - a.Overlay, - { - "data-slot": "alert-dialog-overlay", - className: i( - "data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 lib:fixed lib:inset-0 lib:z-50 lib:bg-black/50", - t - ), - ...e - } - ); -} -function m({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement(r, null, /* @__PURE__ */ l.createElement(n, null), /* @__PURE__ */ l.createElement( - a.Content, - { - "data-slot": "alert-dialog-content", - className: i( - "lib:bg-background data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 lib:fixed lib:top-[50%] lib:left-[50%] lib:z-50 lib:grid lib:w-full lib:max-w-[calc(100%-2rem)] lib:translate-x-[-50%] lib:translate-y-[-50%] lib:gap-4 lib:rounded-lg lib:border lib:p-6 lib:shadow-lg lib:duration-200 sm:lib:max-w-lg", - t - ), - ...e +import { j as e } from "./index.es64.js"; +import { cva as i } from "class-variance-authority"; +import { cn as a } from "./index.es65.js"; +const l = i( + "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current", + { + variants: { + variant: { + default: "bg-card text-card-foreground", + destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90" + } + }, + defaultVariants: { + variant: "default" } - )); + } +); +function c({ className: t, variant: r, ...s }) { + return /* @__PURE__ */ e.jsx("div", { "data-slot": "alert", role: "alert", className: a(l({ variant: r }), t), ...s }); } -function g({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement( +function g({ className: t, ...r }) { + return /* @__PURE__ */ e.jsx( "div", { - "data-slot": "alert-dialog-header", - className: i("lib:flex lib:flex-col lib:gap-2 lib:text-center sm:lib:text-left", t), - ...e + "data-slot": "alert-title", + className: a("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", t), + ...r } ); } -function u({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement( +function u({ className: t, ...r }) { + return /* @__PURE__ */ e.jsx( "div", { - "data-slot": "alert-dialog-footer", - className: i("lib:flex lib:flex-col-reverse lib:gap-2 sm:lib:flex-row sm:lib:justify-end", t), - ...e - } - ); -} -function f({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement( - a.Title, - { - "data-slot": "alert-dialog-title", - className: i("lib:text-lg lib:font-semibold", t), - ...e - } - ); -} -function p({ - className: t, - ...e -}) { - return /* @__PURE__ */ l.createElement( - a.Description, - { - "data-slot": "alert-dialog-description", - className: i("lib:text-muted-foreground lib:text-sm", t), - ...e + "data-slot": "alert-description", + className: a( + "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", + t + ), + ...r } ); } -function x({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement(a.Action, { className: i(o(), t), ...e }); -} -function A({ className: t, ...e }) { - return /* @__PURE__ */ l.createElement(a.Cancel, { className: i(o({ variant: "outline" }), t), ...e }); -} export { - c as AlertDialog, - x as AlertDialogAction, - A as AlertDialogCancel, - m as AlertDialogContent, - p as AlertDialogDescription, - u as AlertDialogFooter, - g as AlertDialogHeader, - n as AlertDialogOverlay, - r as AlertDialogPortal, - f as AlertDialogTitle, - b as AlertDialogTrigger + c as Alert, + u as AlertDescription, + g as AlertTitle }; diff --git a/dist/index.es80.js b/dist/index.es80.js new file mode 100644 index 00000000..9d3562c2 --- /dev/null +++ b/dist/index.es80.js @@ -0,0 +1,4 @@ +var e = { exports: {} }; +export { + e as __module +}; diff --git a/dist/index.es81.js b/dist/index.es81.js new file mode 100644 index 00000000..49029c94 --- /dev/null +++ b/dist/index.es81.js @@ -0,0 +1,28 @@ +import { __exports as t } from "./index.es83.js"; +import R from "react"; +/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var p; +function v() { + if (p) return t; + p = 1; + var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, a = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, d = { key: !0, ref: !0, __self: !0, __source: !0 }; + function u(o, r, i) { + var e, n = {}, _ = null, f = null; + i !== void 0 && (_ = "" + i), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref); + for (e in r) c.call(r, e) && !d.hasOwnProperty(e) && (n[e] = r[e]); + if (o && o.defaultProps) for (e in r = o.defaultProps, r) n[e] === void 0 && (n[e] = r[e]); + return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: a.current }; + } + return t.Fragment = l, t.jsx = u, t.jsxs = u, t; +} +export { + v as __require +}; diff --git a/dist/index.es82.js b/dist/index.es82.js new file mode 100644 index 00000000..024db884 --- /dev/null +++ b/dist/index.es82.js @@ -0,0 +1,604 @@ +import { __exports as m } from "./index.es84.js"; +import ir from "react"; +/** + * @license React + * react-jsx-runtime.development.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ +var Ee; +function sr() { + return Ee ? m : (Ee = 1, process.env.NODE_ENV !== "production" && function() { + var ye = ir, k = Symbol.for("react.element"), Re = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), K = Symbol.for("react.provider"), N = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), _e = Symbol.for("react.offscreen"), G = Symbol.iterator, me = "@@iterator"; + function Te(e) { + if (e === null || typeof e != "object") + return null; + var r = G && e[G] || e[me]; + return typeof r == "function" ? r : null; + } + var h = ye.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + function f(e) { + { + for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++) + t[n - 1] = arguments[n]; + Ce("error", e, t); + } + } + function Ce(e, r, t) { + { + var n = h.ReactDebugCurrentFrame, o = n.getStackAddendum(); + o !== "" && (r += "%s", t = t.concat([o])); + var u = t.map(function(i) { + return String(i); + }); + u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u); + } + } + var Oe = !1, Pe = !1, Se = !1, we = !1, je = !1, J; + J = Symbol.for("react.module.reference"); + function ke(e) { + return !!(typeof e == "string" || typeof e == "function" || e === T || e === B || je || e === U || e === x || e === D || we || e === _e || Oe || Pe || Se || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === O || e.$$typeof === K || e.$$typeof === N || e.$$typeof === C || // This needs to include all possible module reference object + // types supported by any Flight configuration anywhere since + // we don't know which Flight build this will end up being used + // with. + e.$$typeof === J || e.getModuleId !== void 0)); + } + function xe(e, r, t) { + var n = e.displayName; + if (n) + return n; + var o = r.displayName || r.name || ""; + return o !== "" ? t + "(" + o + ")" : t; + } + function q(e) { + return e.displayName || "Context"; + } + function p(e) { + if (e == null) + return null; + if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") + return e.displayName || e.name || null; + if (typeof e == "string") + return e; + switch (e) { + case T: + return "Fragment"; + case Re: + return "Portal"; + case B: + return "Profiler"; + case U: + return "StrictMode"; + case x: + return "Suspense"; + case D: + return "SuspenseList"; + } + if (typeof e == "object") + switch (e.$$typeof) { + case N: + var r = e; + return q(r) + ".Consumer"; + case K: + var t = e; + return q(t._context) + ".Provider"; + case C: + return xe(e, e.render, "ForwardRef"); + case O: + var n = e.displayName || null; + return n !== null ? n : p(e.type) || "Memo"; + case F: { + var o = e, u = o._payload, i = o._init; + try { + return p(i(u)); + } catch { + return null; + } + } + } + return null; + } + var g = Object.assign, R = 0, z, X, H, Z, Q, ee, re; + function te() { + } + te.__reactDisabledLog = !0; + function De() { + { + if (R === 0) { + z = console.log, X = console.info, H = console.warn, Z = console.error, Q = console.group, ee = console.groupCollapsed, re = console.groupEnd; + var e = { + configurable: !0, + enumerable: !0, + value: te, + writable: !0 + }; + Object.defineProperties(console, { + info: e, + log: e, + warn: e, + error: e, + group: e, + groupCollapsed: e, + groupEnd: e + }); + } + R++; + } + } + function Fe() { + { + if (R--, R === 0) { + var e = { + configurable: !0, + enumerable: !0, + writable: !0 + }; + Object.defineProperties(console, { + log: g({}, e, { + value: z + }), + info: g({}, e, { + value: X + }), + warn: g({}, e, { + value: H + }), + error: g({}, e, { + value: Z + }), + group: g({}, e, { + value: Q + }), + groupCollapsed: g({}, e, { + value: ee + }), + groupEnd: g({}, e, { + value: re + }) + }); + } + R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + var A = h.ReactCurrentDispatcher, I; + function P(e, r, t) { + { + if (I === void 0) + try { + throw Error(); + } catch (o) { + var n = o.stack.trim().match(/\n( *(at )?)/); + I = n && n[1] || ""; + } + return ` +` + I + e; + } + } + var W = !1, S; + { + var Ae = typeof WeakMap == "function" ? WeakMap : Map; + S = new Ae(); + } + function ne(e, r) { + if (!e || W) + return ""; + { + var t = S.get(e); + if (t !== void 0) + return t; + } + var n; + W = !0; + var o = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var u; + u = A.current, A.current = null, De(); + try { + if (r) { + var i = function() { + throw Error(); + }; + if (Object.defineProperty(i.prototype, "props", { + set: function() { + throw Error(); + } + }), typeof Reflect == "object" && Reflect.construct) { + try { + Reflect.construct(i, []); + } catch (v) { + n = v; + } + Reflect.construct(e, [], i); + } else { + try { + i.call(); + } catch (v) { + n = v; + } + e.call(i.prototype); + } + } else { + try { + throw Error(); + } catch (v) { + n = v; + } + e(); + } + } catch (v) { + if (v && n && typeof v.stack == "string") { + for (var a = v.stack.split(` +`), c = n.stack.split(` +`), s = a.length - 1, l = c.length - 1; s >= 1 && l >= 0 && a[s] !== c[l]; ) + l--; + for (; s >= 1 && l >= 0; s--, l--) + if (a[s] !== c[l]) { + if (s !== 1 || l !== 1) + do + if (s--, l--, l < 0 || a[s] !== c[l]) { + var d = ` +` + a[s].replace(" at new ", " at "); + return e.displayName && d.includes("") && (d = d.replace("", e.displayName)), typeof e == "function" && S.set(e, d), d; + } + while (s >= 1 && l >= 0); + break; + } + } + } finally { + W = !1, A.current = u, Fe(), Error.prepareStackTrace = o; + } + var y = e ? e.displayName || e.name : "", b = y ? P(y) : ""; + return typeof e == "function" && S.set(e, b), b; + } + function Ie(e, r, t) { + return ne(e, !1); + } + function We(e) { + var r = e.prototype; + return !!(r && r.isReactComponent); + } + function w(e, r, t) { + if (e == null) + return ""; + if (typeof e == "function") + return ne(e, We(e)); + if (typeof e == "string") + return P(e); + switch (e) { + case x: + return P("Suspense"); + case D: + return P("SuspenseList"); + } + if (typeof e == "object") + switch (e.$$typeof) { + case C: + return Ie(e.render); + case O: + return w(e.type, r, t); + case F: { + var n = e, o = n._payload, u = n._init; + try { + return w(u(o), r, t); + } catch { + } + } + } + return ""; + } + var _ = Object.prototype.hasOwnProperty, ae = {}, ie = h.ReactDebugCurrentFrame; + function j(e) { + if (e) { + var r = e._owner, t = w(e.type, e._source, r ? r.type : null); + ie.setExtraStackFrame(t); + } else + ie.setExtraStackFrame(null); + } + function Ye(e, r, t, n, o) { + { + var u = Function.call.bind(_); + for (var i in e) + if (u(e, i)) { + var a = void 0; + try { + if (typeof e[i] != "function") { + var c = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + throw c.name = "Invariant Violation", c; + } + a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (s) { + a = s; + } + a && !(a instanceof Error) && (j(o), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), j(null)), a instanceof Error && !(a.message in ae) && (ae[a.message] = !0, j(o), f("Failed %s type: %s", t, a.message), j(null)); + } + } + } + var $e = Array.isArray; + function Y(e) { + return $e(e); + } + function Me(e) { + { + var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object"; + return t; + } + } + function Ve(e) { + try { + return oe(e), !1; + } catch { + return !0; + } + } + function oe(e) { + return "" + e; + } + function ue(e) { + if (Ve(e)) + return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Me(e)), oe(e); + } + var se = h.ReactCurrentOwner, Le = { + key: !0, + ref: !0, + __self: !0, + __source: !0 + }, le, fe; + function Ue(e) { + if (_.call(e, "ref")) { + var r = Object.getOwnPropertyDescriptor(e, "ref").get; + if (r && r.isReactWarning) + return !1; + } + return e.ref !== void 0; + } + function Be(e) { + if (_.call(e, "key")) { + var r = Object.getOwnPropertyDescriptor(e, "key").get; + if (r && r.isReactWarning) + return !1; + } + return e.key !== void 0; + } + function Ke(e, r) { + typeof e.ref == "string" && se.current; + } + function Ne(e, r) { + { + var t = function() { + le || (le = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); + }; + t.isReactWarning = !0, Object.defineProperty(e, "key", { + get: t, + configurable: !0 + }); + } + } + function Ge(e, r) { + { + var t = function() { + fe || (fe = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r)); + }; + t.isReactWarning = !0, Object.defineProperty(e, "ref", { + get: t, + configurable: !0 + }); + } + } + var Je = function(e, r, t, n, o, u, i) { + var a = { + // This tag allows us to uniquely identify this as a React Element + $$typeof: k, + // Built-in properties that belong on the element + type: e, + key: r, + ref: t, + props: i, + // Record the component responsible for creating this element. + _owner: u + }; + return a._store = {}, Object.defineProperty(a._store, "validated", { + configurable: !1, + enumerable: !1, + writable: !0, + value: !1 + }), Object.defineProperty(a, "_self", { + configurable: !1, + enumerable: !1, + writable: !1, + value: n + }), Object.defineProperty(a, "_source", { + configurable: !1, + enumerable: !1, + writable: !1, + value: o + }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a; + }; + function qe(e, r, t, n, o) { + { + var u, i = {}, a = null, c = null; + t !== void 0 && (ue(t), a = "" + t), Be(r) && (ue(r.key), a = "" + r.key), Ue(r) && (c = r.ref, Ke(r, o)); + for (u in r) + _.call(r, u) && !Le.hasOwnProperty(u) && (i[u] = r[u]); + if (e && e.defaultProps) { + var s = e.defaultProps; + for (u in s) + i[u] === void 0 && (i[u] = s[u]); + } + if (a || c) { + var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e; + a && Ne(i, l), c && Ge(i, l); + } + return Je(e, a, c, o, n, se.current, i); + } + } + var $ = h.ReactCurrentOwner, ce = h.ReactDebugCurrentFrame; + function E(e) { + if (e) { + var r = e._owner, t = w(e.type, e._source, r ? r.type : null); + ce.setExtraStackFrame(t); + } else + ce.setExtraStackFrame(null); + } + var M; + M = !1; + function V(e) { + return typeof e == "object" && e !== null && e.$$typeof === k; + } + function ve() { + { + if ($.current) { + var e = p($.current.type); + if (e) + return ` + +Check the render method of \`` + e + "`."; + } + return ""; + } + } + function ze(e) { + return ""; + } + var de = {}; + function Xe(e) { + { + var r = ve(); + if (!r) { + var t = typeof e == "string" ? e : e.displayName || e.name; + t && (r = ` + +Check the top-level render call using <` + t + ">."); + } + return r; + } + } + function pe(e, r) { + { + if (!e._store || e._store.validated || e.key != null) + return; + e._store.validated = !0; + var t = Xe(r); + if (de[t]) + return; + de[t] = !0; + var n = ""; + e && e._owner && e._owner !== $.current && (n = " It was passed a child from " + p(e._owner.type) + "."), E(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), E(null); + } + } + function ge(e, r) { + { + if (typeof e != "object") + return; + if (Y(e)) + for (var t = 0; t < e.length; t++) { + var n = e[t]; + V(n) && pe(n, r); + } + else if (V(e)) + e._store && (e._store.validated = !0); + else if (e) { + var o = Te(e); + if (typeof o == "function" && o !== e.entries) + for (var u = o.call(e), i; !(i = u.next()).done; ) + V(i.value) && pe(i.value, r); + } + } + } + function He(e) { + { + var r = e.type; + if (r == null || typeof r == "string") + return; + var t; + if (typeof r == "function") + t = r.propTypes; + else if (typeof r == "object" && (r.$$typeof === C || // Note: Memo only checks outer props here. + // Inner props are checked in the reconciler. + r.$$typeof === O)) + t = r.propTypes; + else + return; + if (t) { + var n = p(r); + Ye(t, e.props, "prop", n, e); + } else if (r.PropTypes !== void 0 && !M) { + M = !0; + var o = p(r); + f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown"); + } + typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + } + } + function Ze(e) { + { + for (var r = Object.keys(e.props), t = 0; t < r.length; t++) { + var n = r[t]; + if (n !== "children" && n !== "key") { + E(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), E(null); + break; + } + } + e.ref !== null && (E(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), E(null)); + } + } + var be = {}; + function he(e, r, t, n, o, u) { + { + var i = ke(e); + if (!i) { + var a = ""; + (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); + var c = ze(); + c ? a += c : a += ve(); + var s; + e === null ? s = "null" : Y(e) ? s = "array" : e !== void 0 && e.$$typeof === k ? (s = "<" + (p(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a); + } + var l = qe(e, r, t, o, u); + if (l == null) + return l; + if (i) { + var d = r.children; + if (d !== void 0) + if (n) + if (Y(d)) { + for (var y = 0; y < d.length; y++) + ge(d[y], e); + Object.freeze && Object.freeze(d); + } else + f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); + else + ge(d, e); + } + if (_.call(r, "key")) { + var b = p(e), v = Object.keys(r).filter(function(ar) { + return ar !== "key"; + }), L = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}"; + if (!be[b + L]) { + var nr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}"; + f(`A props object containing a "key" prop is being spread into JSX: + let props = %s; + <%s {...props} /> +React keys must be passed directly to JSX without using spread: + let props = %s; + <%s key={someKey} {...props} />`, L, b, nr, b), be[b + L] = !0; + } + } + return e === T ? Ze(l) : He(l), l; + } + } + function Qe(e, r, t) { + return he(e, r, t, !0); + } + function er(e, r, t) { + return he(e, r, t, !1); + } + var rr = er, tr = Qe; + m.Fragment = T, m.jsx = rr, m.jsxs = tr; + }(), m); +} +export { + sr as __require +}; diff --git a/dist/index.es83.js b/dist/index.es83.js new file mode 100644 index 00000000..dde92541 --- /dev/null +++ b/dist/index.es83.js @@ -0,0 +1,4 @@ +var r = {}; +export { + r as __exports +}; diff --git a/dist/index.es84.js b/dist/index.es84.js new file mode 100644 index 00000000..f51b0164 --- /dev/null +++ b/dist/index.es84.js @@ -0,0 +1,4 @@ +var e = {}; +export { + e as __exports +}; diff --git a/dist/index.es85.js b/dist/index.es85.js new file mode 100644 index 00000000..135e60e7 --- /dev/null +++ b/dist/index.es85.js @@ -0,0 +1,43 @@ +import { j as e } from "./index.es64.js"; +import { ChevronsUpDown as m, Sun as l, Moon as d, LogOut as x } from "lucide-react"; +import { useTheme as h } from "next-themes"; +import { DropdownMenu as u, DropdownMenuTrigger as p, DropdownMenuContent as j, DropdownMenuItem as s } from "./index.es24.js"; +import { SidebarMenuButton as f } from "./index.es41.js"; +import g from "./index.es88.js"; +import { useLinkComponent as w } from "./index.es5.js"; +function v({ name: n, version: a, logo: r, signOutFn: o }) { + const { setTheme: t, theme: i } = h(), c = w(); + return /* @__PURE__ */ e.jsxs(u, { children: [ + /* @__PURE__ */ e.jsx(p, { className: "w-full", children: /* @__PURE__ */ e.jsxs( + f, + { + size: "lg", + className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground", + children: [ + /* @__PURE__ */ e.jsx("div", { className: "flex aspect-square size-8 items-center justify-center rounded-lg text-sidebar-primary-foreground", children: /* @__PURE__ */ e.jsx(c, { href: "/projects", children: r || /* @__PURE__ */ e.jsx("img", { src: g, className: "size-8" }) }) }), + /* @__PURE__ */ e.jsxs("div", { className: "grid flex-1 text-left text-sm leading-tight", children: [ + /* @__PURE__ */ e.jsx("span", { className: "truncate font-semibold", children: n }), + /* @__PURE__ */ e.jsx("span", { className: "truncate text-xs", children: a }) + ] }), + /* @__PURE__ */ e.jsx(m, { className: "ml-auto h-4 w-4" }) + ] + } + ) }), + /* @__PURE__ */ e.jsxs(j, { className: "w-56", align: "start", side: "right", sideOffset: 4, style: { zIndex: 9999 }, children: [ + i === "dark" ? /* @__PURE__ */ e.jsxs(s, { onClick: () => t("light"), children: [ + /* @__PURE__ */ e.jsx(l, { className: "mr-2 h-4 w-4" }), + "Light" + ] }) : /* @__PURE__ */ e.jsxs(s, { onClick: () => t("dark"), children: [ + /* @__PURE__ */ e.jsx(d, { className: "mr-2 h-4 w-4" }), + "Dark" + ] }), + /* @__PURE__ */ e.jsxs(s, { onClick: () => o(), children: [ + /* @__PURE__ */ e.jsx(x, { className: "mr-2 h-4 w-4" }), + "Sign Out" + ] }) + ] }) + ] }); +} +export { + v as default +}; diff --git a/dist/index.es86.js b/dist/index.es86.js new file mode 100644 index 00000000..872440c2 --- /dev/null +++ b/dist/index.es86.js @@ -0,0 +1,20 @@ +import "./index.es64.js"; +import "react"; +import "react-highlight-words"; +const i = (r, n) => { + const a = (e) => e.charCodeAt(0) - 64, o = (e) => Math.round(a(e) * 11); + let t = o(r) % 256, l = o(n) % 256, c = Math.round((a(r) + a(n)) / 2 * 11) % 256; + return { + bgColor: `rgb(${t}, ${l}, ${c})`, + textColor: u(t, l, c) > 0.5 ? "#000000" : "#FFFFFF" + }; +}; +function u(r, n, a) { + const o = [r, n, a].map((t) => (t /= 255, t <= 0.03928 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4))); + return 0.2126 * o[0] + 0.7152 * o[1] + 0.0722 * o[2]; +} +const g = (r, n) => r.flatMap((t) => t.sectionItems).find((t) => n.startsWith(t.url))?.url || ""; +export { + i as genAvatarBackground, + g as getCurrentPath +}; diff --git a/dist/index.es87.js b/dist/index.es87.js new file mode 100644 index 00000000..b02adca5 --- /dev/null +++ b/dist/index.es87.js @@ -0,0 +1,10 @@ +import { j as s } from "./index.es64.js"; +import { cva as m } from "class-variance-authority"; +import { cn as n } from "./index.es65.js"; +const l = m("rounded-full h-6 w-6 min-w-[24px] flex justify-center items-center mr-2 text-xs"); +function f({ bgColor: r, textColor: t, className: e, children: o, ...a }) { + return /* @__PURE__ */ s.jsx("div", { ...a, className: n(l(), e), style: { backgroundColor: r, color: t }, children: o }); +} +export { + f as default +}; diff --git a/dist/index.es88.js b/dist/index.es88.js new file mode 100644 index 00000000..833b6752 --- /dev/null +++ b/dist/index.es88.js @@ -0,0 +1,4 @@ +const e = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.8262%2015.3527L30.0001%2022.1537V8.61523L24.1268%2011.6919L17.8262%2015.3527Z'%20fill='url(%23paint0_linear_2241_6387)'/%3e%3cpath%20d='M30%2024.0036L16%2016L11.36%2018.2397L2%2024.0022L16.0087%2032L30%2024.0036Z'%20fill='url(%23paint1_linear_2241_6387)'/%3e%3cpath%20d='M16.6087%2016.4073V0L2%208.19701L2.00455%2024.6154L16.6087%2016.4073Z'%20fill='url(%23paint2_linear_2241_6387)'/%3e%3cpath%20d='M30.0001%207.99624L17.8262%201.23096V14.7694L30.0001%207.99624Z'%20fill='url(%23paint3_linear_2241_6387)'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_2241_6387'%20x1='22.6449'%20y1='19.9685'%20x2='31.8358'%20y2='10.3738'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.9'%20stop-color='%232BC0E4'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_2241_6387'%20x1='21.7839'%20y1='17.1815'%20x2='10.358'%20y2='30.9421'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.75'%20stop-color='%23262D65'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint2_linear_2241_6387'%20x1='19.2776'%20y1='2.59742'%20x2='-0.127779'%20y2='22.5405'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.15'%20stop-color='%234578E6'/%3e%3cstop%20offset='0.95'%20stop-color='%23262D65'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint3_linear_2241_6387'%20x1='17.8264'%20y1='8.0002'%20x2='30.0003'%20y2='8.0002'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234578E6'/%3e%3cstop%20offset='0.55'%20stop-color='%232BC0E4'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"; +export { + e as default +}; diff --git a/dist/index.es9.js b/dist/index.es9.js index eaa094b7..c37cf093 100644 --- a/dist/index.es9.js +++ b/dist/index.es9.js @@ -1,48 +1,8 @@ -import * as l from "react"; -import { cva as a } from "class-variance-authority"; -import { cn as e } from "./index.es54.js"; -const s = a( - "lib:relative lib:w-full lib:rounded-lg lib:border lib:px-4 lib:py-3 lib:text-sm lib:grid has-[>svg]:lib:grid-cols-[calc(var(--spacing)*4)_1fr] lib:grid-cols-[0_1fr] has-[>svg]:lib:gap-x-3 lib:gap-y-0.5 lib:items-start [&>svg]:lib:size-4 [&>svg]:lib:translate-y-0.5 [&>svg]:lib:text-current", - { - variants: { - variant: { - default: "lib:bg-card lib:text-card-foreground", - destructive: "lib:text-destructive lib:bg-card [&>svg]:lib:text-current *:data-[slot=alert-description]:lib:text-destructive/90" - } - }, - defaultVariants: { - variant: "default" - } - } -); -function c({ className: t, variant: i, ...r }) { - return /* @__PURE__ */ l.createElement("div", { "data-slot": "alert", role: "alert", className: e(s({ variant: i }), t), ...r }); -} -function d({ className: t, ...i }) { - return /* @__PURE__ */ l.createElement( - "div", - { - "data-slot": "alert-title", - className: e("lib:col-start-2 lib:line-clamp-1 lib:min-h-4 lib:font-medium lib:tracking-tight", t), - ...i - } - ); -} -function o({ className: t, ...i }) { - return /* @__PURE__ */ l.createElement( - "div", - { - "data-slot": "alert-description", - className: e( - "lib:text-muted-foreground lib:col-start-2 lib:grid lib:justify-items-start lib:gap-1 lib:text-sm [&_p]:lib:leading-relaxed", - t - ), - ...i - } - ); +import { j as o } from "./index.es64.js"; +import * as i from "@radix-ui/react-aspect-ratio"; +function s({ ...t }) { + return /* @__PURE__ */ o.jsx(i.Root, { "data-slot": "aspect-ratio", ...t }); } export { - c as Alert, - o as AlertDescription, - d as AlertTitle + s as AspectRatio }; diff --git a/dist/package.json b/dist/package.json index bfa37323..8b262b7d 100644 --- a/dist/package.json +++ b/dist/package.json @@ -2,7 +2,7 @@ "name": "@uselagoon/ui-library", "author": "Amazeeio", "license": "Apache-2.0", - "version": "2.0.0", + "version": "2.0.1", "description": "Lagoon component library using Shadcn / tailwind", "main": "dist/index.cjs.js", "module": "dist/index.es.js", @@ -25,7 +25,7 @@ "bundle": "rm -rf ./dist && tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "copy": "cp package.json dist/ && cp dist/ui-library.css .storybook/globals.css", + "copy": "cp package.json dist/", "postinstall": "node postinstall.cjs", "format": "prettier --write .", "format:check": "prettier --check .", @@ -33,7 +33,7 @@ "build-storybook": "storybook build" }, "dependencies": { - "@hookform/resolvers": "^5.0.1", + "@hookform/resolvers": "^5.1.1", "@radix-ui/react-accordion": "^1.2.11", "@radix-ui/react-alert-dialog": "^1.1.14", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -68,18 +68,19 @@ "embla-carousel-react": "^8.6.0", "input-otp": "^1.4.2", "lucide-react": "^0.511.0", + "next-nprogress-bar": "^2.4.7", "next-themes": "^0.4.6", - "react-day-picker": "^8.10.1", + "react-day-picker": "^9.7.0", "react-highlight-words": "^0.21.0", - "react-hook-form": "^7.56.4", + "react-hook-form": "^7.58.1", "react-loading-skeleton": "^3.5.0", - "react-resizable-panels": "^3.0.2", - "recharts": "^2.15.3", - "sonner": "^2.0.3", + "react-resizable-panels": "^3.0.3", + "recharts": "^2.15.4", + "sonner": "^2.0.5", "tailwind-merge": "^3.3.0", - "tailwindcss": "^4.1.8", + "tailwindcss": "^4.1.10", "vaul": "^1.1.2", - "zod": "^3.25.34" + "zod": "^3.25.67" }, "peerDependencies": { "react": ">=18.2.0", @@ -89,6 +90,7 @@ "@eslint/js": "^9.25.0", "@storybook/addon-docs": "^9.0.0", "@storybook/addon-onboarding": "^9.0.0", + "@storybook/addon-styling-webpack": "^2.0.0", "@storybook/react-vite": "^9.0.0", "@types/lodash": "^4.17.17", "@types/node": "^22.15.24", @@ -106,7 +108,7 @@ "postcss-cli": "^11.0.1", "prettier": "^3.2.2", "storybook": "^9.0.0", - "tw-animate-css": "^1.3.0", + "tw-animate-css": "^1.3.4", "typescript": "~5.8.3", "typescript-eslint": "^8.30.1", "vite": "^6.3.5", diff --git a/dist/providers/NextLinkProvider.d.ts.map b/dist/providers/NextLinkProvider.d.ts.map index 9b746945..a74084f0 100644 --- a/dist/providers/NextLinkProvider.d.ts.map +++ b/dist/providers/NextLinkProvider.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"NextLinkProvider.d.ts","sourceRoot":"","sources":["../../src/providers/NextLinkProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,eAAO,MAAM,WAAW,yCAAqD,CAAC;AAE9E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,aAAa,EAAE,YAAY,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAEA,CAAC;AAEF,eAAO,MAAM,gBAAgB,oBAM5B,CAAC"} \ No newline at end of file +{"version":3,"file":"NextLinkProvider.d.ts","sourceRoot":"","sources":["../../src/providers/NextLinkProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,eAAO,MAAM,WAAW,yCAAqD,CAAC;AAE9E,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,aAAa,EAAE,YAAY,CAAC;IAC5B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAEA,CAAC;AAEF,eAAO,MAAM,gBAAgB,oBAM5B,CAAC"} \ No newline at end of file diff --git a/dist/providers/SkeletonConfigProvider.d.ts b/dist/providers/SkeletonConfigProvider.d.ts deleted file mode 100644 index 305a7dd0..00000000 --- a/dist/providers/SkeletonConfigProvider.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ReactNode } from 'react'; -/** - * A global config provider for react-loading-skeleton - * - * @param {Object} props - Component props. - * @param {ReactNode} props.children - The content to render within the skeleton wrapper. - * @param {string} [props.baseColor] - The base color of the skeleton. Optional, can be overridden. - * @param {string} [props.highlightColor] - The highlight color of the skeleton. Optional, can be overridden. - */ -declare const SkeletonConfigProvider: ({ children, baseColor, highlightColor, }: { - children: ReactNode; - baseColor?: string; - highlightColor?: string; -}) => import("react/jsx-dev-runtime").JSX.Element; -export default SkeletonConfigProvider; -//# sourceMappingURL=SkeletonConfigProvider.d.ts.map \ No newline at end of file diff --git a/dist/providers/SkeletonConfigProvider.d.ts.map b/dist/providers/SkeletonConfigProvider.d.ts.map deleted file mode 100644 index f53dd943..00000000 --- a/dist/providers/SkeletonConfigProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SkeletonConfigProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SkeletonConfigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIlC,OAAO,0CAA0C,CAAC;AAClD;;;;;;;GAOG;AACH,QAAA,MAAM,sBAAsB,GAAI,0CAI7B;IACF,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,gDAcA,CAAC;AAEF,eAAe,sBAAsB,CAAC"} \ No newline at end of file diff --git a/dist/providers/ThemeProvider.d.ts b/dist/providers/ThemeProvider.d.ts new file mode 100644 index 00000000..10aca6e1 --- /dev/null +++ b/dist/providers/ThemeProvider.d.ts @@ -0,0 +1,3 @@ +import { ThemeProviderProps } from 'next-themes'; +export default function ThemeProvider({ children, ...props }: ThemeProviderProps): import("react/jsx-dev-runtime").JSX.Element; +//# sourceMappingURL=ThemeProvider.d.ts.map \ No newline at end of file diff --git a/dist/providers/ThemeProvider.d.ts.map b/dist/providers/ThemeProvider.d.ts.map new file mode 100644 index 00000000..ffd6444c --- /dev/null +++ b/dist/providers/ThemeProvider.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/providers/ThemeProvider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+CAE/E"} \ No newline at end of file diff --git a/dist/providers/__ContextWrapper.d.ts b/dist/providers/__ContextWrapper.d.ts deleted file mode 100644 index 5910d54a..00000000 --- a/dist/providers/__ContextWrapper.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { default as React } from 'react'; -interface Props { - children: React.ReactNode; - defaultScheme?: 'dark' | 'light'; -} -declare const UIThemeProvider: ({ children, defaultScheme }: Props) => import("react/jsx-dev-runtime").JSX.Element; -export default UIThemeProvider; -//# sourceMappingURL=__ContextWrapper.d.ts.map \ No newline at end of file diff --git a/dist/providers/__ContextWrapper.d.ts.map b/dist/providers/__ContextWrapper.d.ts.map deleted file mode 100644 index 5e4a728a..00000000 --- a/dist/providers/__ContextWrapper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"__ContextWrapper.d.ts","sourceRoot":"","sources":["../../src/providers/__ContextWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,KAAK;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACjC;AACD,QAAA,MAAM,eAAe,GAAI,6BAA6B,KAAK,gDAM1D,CAAC;AAEF,eAAe,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/styles/theme.d.ts b/dist/styles/theme.d.ts deleted file mode 100644 index fd99dd17..00000000 --- a/dist/styles/theme.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare const darkTheme: { - colorScheme: string; - UI: {}; -}; -export declare const lightTheme: { - colorScheme: string; - UI: {}; -}; -//# sourceMappingURL=theme.d.ts.map \ No newline at end of file diff --git a/dist/styles/theme.d.ts.map b/dist/styles/theme.d.ts.map deleted file mode 100644 index 5c933ef1..00000000 --- a/dist/styles/theme.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/styles/theme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;CAGrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAGtB,CAAC"} \ No newline at end of file diff --git a/dist/ui-library.css b/dist/ui-library.css index 059fa65a..5a5373ce 100644 --- a/dist/ui-library.css +++ b/dist/ui-library.css @@ -1 +1 @@ -/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--lib-font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--lib-font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--lib-color-black:#000;--lib-color-white:#fff;--lib-spacing:.25rem;--lib-text-xs:.75rem;--lib-text-xs--line-height:calc(1/.75);--lib-text-sm:.875rem;--lib-text-sm--line-height:calc(1.25/.875);--lib-text-base:1rem;--lib-text-base--line-height: 1.5 ;--lib-text-lg:1.125rem;--lib-text-lg--line-height:calc(1.75/1.125);--lib-font-weight-normal:400;--lib-font-weight-medium:500;--lib-font-weight-semibold:600;--lib-tracking-tight:-.025em;--lib-tracking-widest:.1em;--lib-radius-xs:.125rem;--lib-ease-in-out:cubic-bezier(.4,0,.2,1);--lib-animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--lib-aspect-video:16/9;--lib-default-transition-duration:.15s;--lib-default-transition-timing-function:cubic-bezier(.4,0,.2,1);--lib-default-font-family:var(--lib-font-sans);--lib-default-mono-font-family:var(--lib-font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--lib-default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--lib-default-font-feature-settings,normal);font-variation-settings:var(--lib-default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--lib-default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--lib-default-mono-font-feature-settings,normal);font-variation-settings:var(--lib-default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.lib\:\@container\/card-header{container:card-header/inline-size}.lib\:pointer-events-none{pointer-events:none}.lib\:invisible{visibility:hidden}.lib\:sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.lib\:absolute{position:absolute}.lib\:fixed{position:fixed}.lib\:relative{position:relative}.lib\:inset-0{inset:calc(var(--lib-spacing)*0)}.lib\:inset-x-0{inset-inline:calc(var(--lib-spacing)*0)}.lib\:inset-y-0{inset-block:calc(var(--lib-spacing)*0)}.lib\:-top-12{top:calc(var(--lib-spacing)*-12)}.lib\:top-0{top:calc(var(--lib-spacing)*0)}.lib\:top-1\.5{top:calc(var(--lib-spacing)*1.5)}.lib\:top-1\/2{top:50%}.lib\:top-3\.5{top:calc(var(--lib-spacing)*3.5)}.lib\:top-4{top:calc(var(--lib-spacing)*4)}.lib\:top-\[1px\]{top:1px}.lib\:top-\[50\%\]{top:50%}.lib\:top-\[60\%\]{top:60%}.lib\:top-full{top:100%}.lib\:-right-12{right:calc(var(--lib-spacing)*-12)}.lib\:right-0{right:calc(var(--lib-spacing)*0)}.lib\:right-1{right:calc(var(--lib-spacing)*1)}.lib\:right-2{right:calc(var(--lib-spacing)*2)}.lib\:right-3{right:calc(var(--lib-spacing)*3)}.lib\:right-4{right:calc(var(--lib-spacing)*4)}.lib\:-bottom-12{bottom:calc(var(--lib-spacing)*-12)}.lib\:bottom-0{bottom:calc(var(--lib-spacing)*0)}.lib\:-left-12{left:calc(var(--lib-spacing)*-12)}.lib\:left-0{left:calc(var(--lib-spacing)*0)}.lib\:left-1{left:calc(var(--lib-spacing)*1)}.lib\:left-1\/2{left:50%}.lib\:left-2{left:calc(var(--lib-spacing)*2)}.lib\:left-\[50\%\]{left:50%}.lib\:isolate{isolation:isolate}.lib\:z-10{z-index:10}.lib\:z-20{z-index:20}.lib\:z-50{z-index:50}.lib\:z-\[1\]{z-index:1}.lib\:col-start-2{grid-column-start:2}.lib\:row-span-2{grid-row:span 2/span 2}.lib\:row-start-1{grid-row-start:1}.lib\:-mx-1{margin-inline:calc(var(--lib-spacing)*-1)}.lib\:mx-2{margin-inline:calc(var(--lib-spacing)*2)}.lib\:mx-3\.5{margin-inline:calc(var(--lib-spacing)*3.5)}.lib\:mx-auto{margin-inline:auto}.lib\:my-1{margin-block:calc(var(--lib-spacing)*1)}.lib\:-mt-4{margin-top:calc(var(--lib-spacing)*-4)}.lib\:mt-1\.5{margin-top:calc(var(--lib-spacing)*1.5)}.lib\:mt-2{margin-top:calc(var(--lib-spacing)*2)}.lib\:mt-4{margin-top:calc(var(--lib-spacing)*4)}.lib\:mt-auto{margin-top:auto}.lib\:-ml-4{margin-left:calc(var(--lib-spacing)*-4)}.lib\:ml-1{margin-left:calc(var(--lib-spacing)*1)}.lib\:ml-auto{margin-left:auto}.lib\:line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.lib\:block{display:block}.lib\:flex{display:flex}.lib\:grid{display:grid}.lib\:hidden{display:none}.lib\:inline-flex{display:inline-flex}.lib\:field-sizing-content{field-sizing:content}.lib\:aspect-square{aspect-ratio:1}.lib\:aspect-video{aspect-ratio:var(--lib-aspect-video)}.lib\:size-2{width:calc(var(--lib-spacing)*2);height:calc(var(--lib-spacing)*2)}.lib\:size-2\.5{width:calc(var(--lib-spacing)*2.5);height:calc(var(--lib-spacing)*2.5)}.lib\:size-3{width:calc(var(--lib-spacing)*3);height:calc(var(--lib-spacing)*3)}.lib\:size-3\.5{width:calc(var(--lib-spacing)*3.5);height:calc(var(--lib-spacing)*3.5)}.lib\:size-4{width:calc(var(--lib-spacing)*4);height:calc(var(--lib-spacing)*4)}.lib\:size-7{width:calc(var(--lib-spacing)*7);height:calc(var(--lib-spacing)*7)}.lib\:size-8{width:calc(var(--lib-spacing)*8);height:calc(var(--lib-spacing)*8)}.lib\:size-9{width:calc(var(--lib-spacing)*9);height:calc(var(--lib-spacing)*9)}.lib\:size-full{width:100%;height:100%}.lib\:h-1\.5{height:calc(var(--lib-spacing)*1.5)}.lib\:h-2{height:calc(var(--lib-spacing)*2)}.lib\:h-2\.5{height:calc(var(--lib-spacing)*2.5)}.lib\:h-4{height:calc(var(--lib-spacing)*4)}.lib\:h-5{height:calc(var(--lib-spacing)*5)}.lib\:h-7{height:calc(var(--lib-spacing)*7)}.lib\:h-8{height:calc(var(--lib-spacing)*8)}.lib\:h-9{height:calc(var(--lib-spacing)*9)}.lib\:h-10{height:calc(var(--lib-spacing)*10)}.lib\:h-12{height:calc(var(--lib-spacing)*12)}.lib\:h-\[1\.15rem\]{height:1.15rem}.lib\:h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.lib\:h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.lib\:h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.lib\:h-auto{height:auto}.lib\:h-full{height:100%}.lib\:h-px{height:1px}.lib\:h-svh{height:100svh}.lib\:max-h-\(--radix-context-menu-content-available-height\){max-height:var(--radix-context-menu-content-available-height)}.lib\:max-h-\(--radix-dropdown-menu-content-available-height\){max-height:var(--radix-dropdown-menu-content-available-height)}.lib\:max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.lib\:max-h-\[300px\]{max-height:300px}.lib\:min-h-0{min-height:calc(var(--lib-spacing)*0)}.lib\:min-h-4{min-height:calc(var(--lib-spacing)*4)}.lib\:min-h-16{min-height:calc(var(--lib-spacing)*16)}.lib\:min-h-svh{min-height:100svh}.lib\:w-\(--sidebar-width\){width:var(--sidebar-width)}.lib\:w-2{width:calc(var(--lib-spacing)*2)}.lib\:w-2\.5{width:calc(var(--lib-spacing)*2.5)}.lib\:w-3{width:calc(var(--lib-spacing)*3)}.lib\:w-3\/4{width:75%}.lib\:w-4{width:calc(var(--lib-spacing)*4)}.lib\:w-5{width:calc(var(--lib-spacing)*5)}.lib\:w-8{width:calc(var(--lib-spacing)*8)}.lib\:w-9{width:calc(var(--lib-spacing)*9)}.lib\:w-64{width:calc(var(--lib-spacing)*64)}.lib\:w-72{width:calc(var(--lib-spacing)*72)}.lib\:w-\[100px\]{width:100px}.lib\:w-auto{width:auto}.lib\:w-fit{width:fit-content}.lib\:w-full{width:100%}.lib\:w-max{width:max-content}.lib\:w-px{width:1px}.lib\:max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.lib\:max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.lib\:max-w-max{max-width:max-content}.lib\:min-w-0{min-width:calc(var(--lib-spacing)*0)}.lib\:min-w-5{min-width:calc(var(--lib-spacing)*5)}.lib\:min-w-8{min-width:calc(var(--lib-spacing)*8)}.lib\:min-w-9{min-width:calc(var(--lib-spacing)*9)}.lib\:min-w-10{min-width:calc(var(--lib-spacing)*10)}.lib\:min-w-\[8rem\]{min-width:8rem}.lib\:min-w-\[12rem\]{min-width:12rem}.lib\:min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.lib\:flex-1{flex:1}.lib\:shrink-0{flex-shrink:0}.lib\:grow{flex-grow:1}.lib\:grow-0{flex-grow:0}.lib\:basis-full{flex-basis:100%}.lib\:caption-bottom{caption-side:bottom}.lib\:border-collapse{border-collapse:collapse}.lib\:origin-\(--radix-context-menu-content-transform-origin\){transform-origin:var(--radix-context-menu-content-transform-origin)}.lib\:origin-\(--radix-dropdown-menu-content-transform-origin\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.lib\:origin-\(--radix-hover-card-content-transform-origin\){transform-origin:var(--radix-hover-card-content-transform-origin)}.lib\:origin-\(--radix-menubar-content-transform-origin\){transform-origin:var(--radix-menubar-content-transform-origin)}.lib\:origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.lib\:origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.lib\:origin-\(--radix-tooltip-content-transform-origin\){transform-origin:var(--radix-tooltip-content-transform-origin)}.lib\:-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-y-0\.5{--tw-translate-y:calc(var(--lib-spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.lib\:rotate-45{rotate:45deg}.lib\:rotate-90{rotate:90deg}.lib\:animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.lib\:animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.lib\:animate-pulse{animation:var(--lib-animate-pulse)}.lib\:cursor-default{cursor:default}.lib\:touch-none{touch-action:none}.lib\:scroll-my-1{scroll-margin-block:calc(var(--lib-spacing)*1)}.lib\:scroll-py-1{scroll-padding-block:calc(var(--lib-spacing)*1)}.lib\:list-none{list-style-type:none}.lib\:auto-rows-min{grid-auto-rows:min-content}.lib\:grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.lib\:grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.lib\:flex-col{flex-direction:column}.lib\:flex-col-reverse{flex-direction:column-reverse}.lib\:flex-row{flex-direction:row}.lib\:flex-wrap{flex-wrap:wrap}.lib\:items-center{align-items:center}.lib\:items-end{align-items:flex-end}.lib\:items-start{align-items:flex-start}.lib\:items-stretch{align-items:stretch}.lib\:justify-between{justify-content:space-between}.lib\:justify-center{justify-content:center}.lib\:justify-items-start{justify-items:start}.lib\:gap-1{gap:calc(var(--lib-spacing)*1)}.lib\:gap-1\.5{gap:calc(var(--lib-spacing)*1.5)}.lib\:gap-2{gap:calc(var(--lib-spacing)*2)}.lib\:gap-3{gap:calc(var(--lib-spacing)*3)}.lib\:gap-4{gap:calc(var(--lib-spacing)*4)}.lib\:gap-6{gap:calc(var(--lib-spacing)*6)}:where(.lib\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--lib-spacing)*1)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--lib-spacing)*1)*calc(1 - var(--tw-space-x-reverse)))}.lib\:gap-y-0\.5{row-gap:calc(var(--lib-spacing)*.5)}.lib\:self-start{align-self:flex-start}.lib\:justify-self-end{justify-self:flex-end}.lib\:overflow-auto{overflow:auto}.lib\:overflow-hidden{overflow:hidden}.lib\:overflow-x-auto{overflow-x:auto}.lib\:overflow-x-hidden{overflow-x:hidden}.lib\:overflow-y-auto{overflow-y:auto}.lib\:rounded-\[2px\]{border-radius:2px}.lib\:rounded-\[4px\]{border-radius:4px}.lib\:rounded-\[inherit\]{border-radius:inherit}.lib\:rounded-full{border-radius:3.40282e38px}.lib\:rounded-lg{border-radius:var(--radius)}.lib\:rounded-md{border-radius:calc(var(--radius) - 2px)}.lib\:rounded-none{border-radius:0}.lib\:rounded-sm{border-radius:calc(var(--radius) - 4px)}.lib\:rounded-xl{border-radius:calc(var(--radius) + 4px)}.lib\:rounded-xs{border-radius:var(--lib-radius-xs)}.lib\:rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.lib\:border{border-style:var(--tw-border-style);border-width:1px}.lib\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.lib\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.lib\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.lib\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.lib\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.lib\:border-\(--color-border\){border-color:var(--color-border)}.lib\:border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.lib\:border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.lib\:border-input{border-color:var(--input)}.lib\:border-primary{border-color:var(--primary)}.lib\:border-sidebar-border{border-color:var(--sidebar-border)}.lib\:border-transparent{border-color:#0000}.lib\:border-t-transparent{border-top-color:#0000}.lib\:border-l-transparent{border-left-color:#0000}.lib\:bg-\(--color-bg\){background-color:var(--color-bg)}.lib\:bg-accent{background-color:var(--accent)}.lib\:bg-background{background-color:var(--background)}.lib\:bg-black\/50{background-color:var(--lib-color-black)}@supports (color:color-mix(in lab,red,red)){.lib\:bg-black\/50{background-color:color-mix(in oklab,var(--lib-color-black)50%,transparent)}}.lib\:bg-border{background-color:var(--border)}.lib\:bg-card{background-color:var(--card)}.lib\:bg-destructive{background-color:var(--destructive)}.lib\:bg-foreground{background-color:var(--foreground)}.lib\:bg-muted,.lib\:bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.lib\:bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.lib\:bg-popover{background-color:var(--popover)}.lib\:bg-primary,.lib\:bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.lib\:bg-primary\/20{background-color:color-mix(in oklab,var(--primary)20%,transparent)}}.lib\:bg-secondary{background-color:var(--secondary)}.lib\:bg-sidebar{background-color:var(--sidebar)}.lib\:bg-sidebar-border{background-color:var(--sidebar-border)}.lib\:bg-transparent{background-color:#0000}.lib\:fill-current{fill:currentColor}.lib\:fill-primary{fill:var(--primary)}.lib\:p-0{padding:calc(var(--lib-spacing)*0)}.lib\:p-1{padding:calc(var(--lib-spacing)*1)}.lib\:p-2{padding:calc(var(--lib-spacing)*2)}.lib\:p-3{padding:calc(var(--lib-spacing)*3)}.lib\:p-4{padding:calc(var(--lib-spacing)*4)}.lib\:p-6{padding:calc(var(--lib-spacing)*6)}.lib\:p-\[3px\]{padding:3px}.lib\:p-px{padding:1px}.lib\:px-1{padding-inline:calc(var(--lib-spacing)*1)}.lib\:px-1\.5{padding-inline:calc(var(--lib-spacing)*1.5)}.lib\:px-2{padding-inline:calc(var(--lib-spacing)*2)}.lib\:px-2\.5{padding-inline:calc(var(--lib-spacing)*2.5)}.lib\:px-3{padding-inline:calc(var(--lib-spacing)*3)}.lib\:px-4{padding-inline:calc(var(--lib-spacing)*4)}.lib\:px-6{padding-inline:calc(var(--lib-spacing)*6)}.lib\:py-0\.5{padding-block:calc(var(--lib-spacing)*.5)}.lib\:py-1{padding-block:calc(var(--lib-spacing)*1)}.lib\:py-1\.5{padding-block:calc(var(--lib-spacing)*1.5)}.lib\:py-2{padding-block:calc(var(--lib-spacing)*2)}.lib\:py-3{padding-block:calc(var(--lib-spacing)*3)}.lib\:py-4{padding-block:calc(var(--lib-spacing)*4)}.lib\:py-6{padding-block:calc(var(--lib-spacing)*6)}.lib\:pt-0{padding-top:calc(var(--lib-spacing)*0)}.lib\:pt-1{padding-top:calc(var(--lib-spacing)*1)}.lib\:pt-3{padding-top:calc(var(--lib-spacing)*3)}.lib\:pt-4{padding-top:calc(var(--lib-spacing)*4)}.lib\:pr-2{padding-right:calc(var(--lib-spacing)*2)}.lib\:pr-2\.5{padding-right:calc(var(--lib-spacing)*2.5)}.lib\:pr-8{padding-right:calc(var(--lib-spacing)*8)}.lib\:pb-3{padding-bottom:calc(var(--lib-spacing)*3)}.lib\:pb-4{padding-bottom:calc(var(--lib-spacing)*4)}.lib\:pl-2{padding-left:calc(var(--lib-spacing)*2)}.lib\:pl-4{padding-left:calc(var(--lib-spacing)*4)}.lib\:pl-8{padding-left:calc(var(--lib-spacing)*8)}.lib\:text-center{text-align:center}.lib\:text-left{text-align:left}.lib\:align-middle{vertical-align:middle}.lib\:font-mono{font-family:var(--lib-font-mono)}.lib\:text-base{font-size:var(--lib-text-base);line-height:var(--tw-leading,var(--lib-text-base--line-height))}.lib\:text-lg{font-size:var(--lib-text-lg);line-height:var(--tw-leading,var(--lib-text-lg--line-height))}.lib\:text-sm{font-size:var(--lib-text-sm);line-height:var(--tw-leading,var(--lib-text-sm--line-height))}.lib\:text-xs{font-size:var(--lib-text-xs);line-height:var(--tw-leading,var(--lib-text-xs--line-height))}.lib\:text-\[0\.8rem\]{font-size:.8rem}.lib\:leading-none{--tw-leading:1;line-height:1}.lib\:font-medium{--tw-font-weight:var(--lib-font-weight-medium);font-weight:var(--lib-font-weight-medium)}.lib\:font-normal{--tw-font-weight:var(--lib-font-weight-normal);font-weight:var(--lib-font-weight-normal)}.lib\:font-semibold{--tw-font-weight:var(--lib-font-weight-semibold);font-weight:var(--lib-font-weight-semibold)}.lib\:tracking-tight{--tw-tracking:var(--lib-tracking-tight);letter-spacing:var(--lib-tracking-tight)}.lib\:tracking-widest{--tw-tracking:var(--lib-tracking-widest);letter-spacing:var(--lib-tracking-widest)}.lib\:text-balance{text-wrap:balance}.lib\:break-words{overflow-wrap:break-word}.lib\:whitespace-nowrap{white-space:nowrap}.lib\:text-accent-foreground{color:var(--accent-foreground)}.lib\:text-card-foreground{color:var(--card-foreground)}.lib\:text-current{color:currentColor}.lib\:text-destructive{color:var(--destructive)}.lib\:text-foreground{color:var(--foreground)}.lib\:text-muted-foreground{color:var(--muted-foreground)}.lib\:text-popover-foreground{color:var(--popover-foreground)}.lib\:text-primary{color:var(--primary)}.lib\:text-primary-foreground{color:var(--primary-foreground)}.lib\:text-secondary-foreground{color:var(--secondary-foreground)}.lib\:text-sidebar-foreground,.lib\:text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.lib\:text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.lib\:text-white{color:var(--lib-color-white)}.lib\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.lib\:underline-offset-4{text-underline-offset:4px}.lib\:opacity-50{opacity:.5}.lib\:opacity-70{opacity:.7}.lib\:shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:ring-ring\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.lib\:ring-ring\/50{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.lib\:ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.lib\:ring-offset-background{--tw-ring-offset-color:var(--background)}.lib\:outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.lib\:outline-hidden{outline-offset:2px;outline:2px solid #0000}}.lib\:transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--lib-default-transition-timing-function));transition-duration:var(--tw-duration,var(--lib-default-transition-duration))}.lib\:transition-none{transition-property:none}.lib\:duration-200{--tw-duration:.2s;transition-duration:.2s}.lib\:duration-300{--tw-duration:.3s;transition-duration:.3s}.lib\:duration-1000{--tw-duration:1s;transition-duration:1s}.lib\:ease-in-out{--tw-ease:var(--lib-ease-in-out);transition-timing-function:var(--lib-ease-in-out)}.lib\:ease-linear{--tw-ease:linear;transition-timing-function:linear}.lib\:fade-in-0{--tw-enter-opacity:0}.lib\:outline-none{--tw-outline-style:none;outline-style:none}.lib\:select-none{-webkit-user-select:none;user-select:none}.lib\:zoom-in-95{--tw-enter-scale:.95}.lib\:group-focus-within\/menu-item\:opacity-100:is(:where(.lib\:group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.lib\:group-hover\/menu-item\:opacity-100:is(:where(.lib\:group\/menu-item):hover *){opacity:1}}.lib\:group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.lib\:group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--lib-spacing)*8)}.lib\:group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:block:is(:where(.lib\:group\/drawer-content)[data-vaul-drawer-direction=bottom] *){display:block}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){top:100%}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--lib-spacing)*1.5)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){border-radius:calc(var(--radius) - 2px)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){background-color:var(--popover)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){color:var(--popover-foreground)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.lib\:peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.lib\:peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.lib\:peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.lib\:peer\/menu-button)[data-active=true]~*){color:var(--sidebar-accent-foreground)}.lib\:peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.lib\:peer\/menu-button)[data-size=default]~*){top:calc(var(--lib-spacing)*1.5)}.lib\:peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.lib\:peer\/menu-button)[data-size=lg]~*){top:calc(var(--lib-spacing)*2.5)}.lib\:peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.lib\:peer\/menu-button)[data-size=sm]~*){top:calc(var(--lib-spacing)*1)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.lib\:group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.lib\:group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}}@keyframes react-loading-skeleton{to{transform:translate(100%)}}.react-loading-skeleton{--base-color: #ebebeb;--highlight-color: #f5f5f5;--animation-duration: 1.5s;--animation-direction: normal;--pseudo-element-display: block;background-color:var(--base-color);width:100%;border-radius:.25rem;display:inline-flex;line-height:1;position:relative;user-select:none;overflow:hidden}.react-loading-skeleton:after{content:" ";display:var(--pseudo-element-display);position:absolute;top:0;left:0;right:0;height:100%;background-repeat:no-repeat;background-image:var( --custom-highlight-background, linear-gradient( 90deg, var(--base-color) 0%, var(--highlight-color) 50%, var(--base-color) 100% ) );transform:translate(-100%);animation-name:react-loading-skeleton;animation-direction:var(--animation-direction);animation-duration:var(--animation-duration);animation-timing-function:ease-in-out;animation-iteration-count:infinite}@media (prefers-reduced-motion){.react-loading-skeleton{--pseudo-element-display: none}} +/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-content:"";--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-orange-500:oklch(70.5% .213 47.604);--color-green-500:oklch(72.3% .219 149.579);--color-rose-500:oklch(64.5% .246 16.439);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-lg:32rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-widest:.1em;--leading-tight:1.25;--leading-normal:1.5;--leading-relaxed:1.625;--radius-xs:.125rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-border:var(--border)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.inset-x-0{inset-inline:calc(var(--spacing)*0)}.inset-y-0{inset-block:calc(var(--spacing)*0)}.-top-3{top:calc(var(--spacing)*-3)}.-top-12{top:calc(var(--spacing)*-12)}.top-0{top:calc(var(--spacing)*0)}.top-1\.5{top:calc(var(--spacing)*1.5)}.top-1\/2{top:50%}.top-3\.5{top:calc(var(--spacing)*3.5)}.top-4{top:calc(var(--spacing)*4)}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.-right-12{right:calc(var(--spacing)*-12)}.right-0{right:calc(var(--spacing)*0)}.right-1{right:calc(var(--spacing)*1)}.right-2{right:calc(var(--spacing)*2)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.-bottom-12{bottom:calc(var(--spacing)*-12)}.bottom-0{bottom:calc(var(--spacing)*0)}.-left-12{left:calc(var(--spacing)*-12)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-2\.5{left:calc(var(--spacing)*2.5)}.left-\[50\%\]{left:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\[1\]{z-index:1}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mx-3\.5{margin-inline:calc(var(--spacing)*3.5)}.mx-auto{margin-inline:auto}.my-0\.5{margin-block:calc(var(--spacing)*.5)}.my-1{margin-block:calc(var(--spacing)*1)}.-mt-4{margin-top:calc(var(--spacing)*-4)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-auto{margin-top:auto}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.-ml-4{margin-left:calc(var(--spacing)*-4)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-3{margin-left:calc(var(--spacing)*3)}.ml-auto{margin-left:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-row{display:table-row}.field-sizing-content{field-sizing:content}.aspect-square{aspect-ratio:1}.aspect-video{aspect-ratio:var(--aspect-video)}.size-\(--cell-size\){width:var(--cell-size);height:var(--cell-size)}.size-2{width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\.5{width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\.5{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-4{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-7{width:calc(var(--spacing)*7);height:calc(var(--spacing)*7)}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-auto{width:auto;height:auto}.size-full{width:100%;height:100%}.h-\(--cell-size\){height:var(--cell-size)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-\[1\.15rem\]{height:1.15rem}.h-\[44px\]{height:44px}.h-\[80px\]{height:80px}.h-\[108px\]{height:108px}.h-\[125px\]{height:125px}.h-\[140px\]{height:140px}.h-\[calc\(100\%-1px\)\]{height:calc(100% - 1px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-\(--radix-context-menu-content-available-height\){max-height:var(--radix-context-menu-content-available-height)}.max-h-\(--radix-dropdown-menu-content-available-height\){max-height:var(--radix-dropdown-menu-content-available-height)}.max-h-\(--radix-select-content-available-height\){max-height:var(--radix-select-content-available-height)}.max-h-\[300px\]{max-height:300px}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-4{min-height:calc(var(--spacing)*4)}.min-h-16{min-height:calc(var(--spacing)*16)}.min-h-svh{min-height:100svh}.w-\(--cell-size\){width:var(--cell-size)}.w-\(--sidebar-width\){width:var(--sidebar-width)}.w-0{width:calc(var(--spacing)*0)}.w-1{width:calc(var(--spacing)*1)}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-3\/4{width:75%}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-9{width:calc(var(--spacing)*9)}.w-56{width:calc(var(--spacing)*56)}.w-64{width:calc(var(--spacing)*64)}.w-72{width:calc(var(--spacing)*72)}.w-\[44px\]{width:44px}.w-\[100px\]{width:100px}.w-\[266px\]{width:266px}.w-\[370px\]{width:370px}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.w-max{width:max-content}.w-px{width:1px}.max-w-\(--skeleton-width\){max-width:var(--skeleton-width)}.max-w-\[160px\]{max-width:160px}.max-w-\[370px\]{max-width:370px}.max-w-\[calc\(100\%-2rem\)\]{max-width:calc(100% - 2rem)}.max-w-max{max-width:max-content}.max-w-sm{max-width:var(--container-sm)}.min-w-\(--cell-size\){min-width:var(--cell-size)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-5{min-width:calc(var(--spacing)*5)}.min-w-8{min-width:calc(var(--spacing)*8)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-10{min-width:calc(var(--spacing)*10)}.min-w-\[8rem\]{min-width:8rem}.min-w-\[12rem\]{min-width:12rem}.min-w-\[24px\]{min-width:24px}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.min-w-max{min-width:max-content}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.origin-\(--radix-context-menu-content-transform-origin\){transform-origin:var(--radix-context-menu-content-transform-origin)}.origin-\(--radix-dropdown-menu-content-transform-origin\){transform-origin:var(--radix-dropdown-menu-content-transform-origin)}.origin-\(--radix-hover-card-content-transform-origin\){transform-origin:var(--radix-hover-card-content-transform-origin)}.origin-\(--radix-menubar-content-transform-origin\){transform-origin:var(--radix-menubar-content-transform-origin)}.origin-\(--radix-popover-content-transform-origin\){transform-origin:var(--radix-popover-content-transform-origin)}.origin-\(--radix-select-content-transform-origin\){transform-origin:var(--radix-select-content-transform-origin)}.origin-\(--radix-tooltip-content-transform-origin\){transform-origin:var(--radix-tooltip-content-transform-origin)}.-translate-x-1\/2{--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-px{--tw-translate-x:-1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-\[-50\%\]{--tw-translate-x:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-px{--tw-translate-x:1px;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0\.5{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-\[calc\(-50\%_-_2px\)\]{--tw-translate-y: calc(-50% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-90{--tw-scale-x:90%;--tw-scale-y:90%;--tw-scale-z:90%;scale:var(--tw-scale-x)var(--tw-scale-y)}.rotate-45{rotate:45deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-caret-blink{animation:1.25s ease-out infinite caret-blink}.animate-in{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.scroll-my-1{scroll-margin-block:calc(var(--spacing)*1)}.scroll-py-1{scroll-padding-block:calc(var(--spacing)*1)}.list-none{list-style-type:none}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[0_1fr\]{grid-template-columns:0 1fr}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-items-end{justify-items:end}.justify-items-start{justify-items:start}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.gap-y-0\.5{row-gap:calc(var(--spacing)*.5)}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-\[2px\]{border-radius:2px}.rounded-\[4px\]{border-radius:4px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-xs{border-radius:var(--radius-xs)}.rounded-l-md{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.rounded-r-md{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.border{border-style:var(--tw-border-style);border-width:1px}.border-\[1\.5px\]{border-style:var(--tw-border-style);border-width:1.5px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\(--color-border\){border-color:var(--color-border)}.border-border\/50{border-color:var(--border)}@supports (color:color-mix(in lab,red,red)){.border-border\/50{border-color:color-mix(in oklab,var(--border)50%,transparent)}}.border-input{border-color:var(--input)}.border-primary{border-color:var(--primary)}.border-sidebar-border{border-color:var(--sidebar-border)}.border-transparent{border-color:#0000}.border-t-transparent{border-top-color:#0000}.border-l-transparent{border-left-color:#0000}.bg-\(--color-bg\){background-color:var(--color-bg)}.bg-accent{background-color:var(--accent)}.bg-background{background-color:var(--background)}.bg-black\/50{background-color:#00000080}@supports (color:color-mix(in lab,red,red)){.bg-black\/50{background-color:color-mix(in oklab,var(--color-black)50%,transparent)}}.bg-border{background-color:var(--border)}.bg-card{background-color:var(--card)}.bg-destructive{background-color:var(--destructive)}.bg-foreground{background-color:var(--foreground)}.bg-muted,.bg-muted\/50{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.bg-muted\/50{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.bg-popover{background-color:var(--popover)}.bg-primary,.bg-primary\/20{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\/20{background-color:color-mix(in oklab,var(--primary)20%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-sidebar{background-color:var(--sidebar)}.bg-sidebar-border{background-color:var(--sidebar-border)}.bg-transparent{background-color:#0000}.fill-current{fill:currentColor}.fill-primary{fill:var(--primary)}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.p-\[3px\]{padding:3px}.p-px{padding:1px}.px-\(--cell-size\){padding-inline:var(--cell-size)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-2\.5{padding-inline:calc(var(--spacing)*2.5)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.pt-0{padding-top:calc(var(--spacing)*0)}.pt-3{padding-top:calc(var(--spacing)*3)}.pt-4{padding-top:calc(var(--spacing)*4)}.pr-1{padding-right:calc(var(--spacing)*1)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-2\.5{padding-right:calc(var(--spacing)*2.5)}.pr-8{padding-right:calc(var(--spacing)*8)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pb-4{padding-bottom:calc(var(--spacing)*4)}.pl-2{padding-left:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-8{padding-left:calc(var(--spacing)*8)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.font-sans{font-family:var(--font-sans)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[0\.8rem\]{font-size:.8rem}.text-\[11px\]{font-size:11px}.leading-\[1\.4\]{--tw-leading:1.4;line-height:1.4}.leading-\[1\.5\]{--tw-leading:1.5;line-height:1.5}.leading-\[1\.25\]{--tw-leading:1.25;line-height:1.25}.leading-\[1\.75\]{--tw-leading:1.75;line-height:1.75}.leading-none{--tw-leading:1;line-height:1}.leading-normal{--tw-leading:var(--leading-normal);line-height:var(--leading-normal)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[0\%\]{--tw-tracking:0%;letter-spacing:0%}.tracking-normal{--tw-tracking:var(--tracking-normal);letter-spacing:var(--tracking-normal)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-balance{text-wrap:balance}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.text-accent-foreground{color:var(--accent-foreground)}.text-card-foreground{color:var(--card-foreground)}.text-current{color:currentColor}.text-destructive{color:var(--destructive)}.text-foreground{color:var(--foreground)}.text-green-500{color:var(--color-green-500)}.text-muted-foreground{color:var(--muted-foreground)}.text-orange-500{color:var(--color-orange-500)}.text-popover-foreground{color:var(--popover-foreground)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-rose-500{color:var(--color-rose-500)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-sidebar-foreground,.text-sidebar-foreground\/70{color:var(--sidebar-foreground)}@supports (color:color-mix(in lab,red,red)){.text-sidebar-foreground\/70{color:color-mix(in oklab,var(--sidebar-foreground)70%,transparent)}}.text-sidebar-primary-foreground{color:var(--sidebar-primary-foreground)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-border)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-ring\/50{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.ring-ring\/50{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.ring-sidebar-ring{--tw-ring-color:var(--sidebar-ring)}.ring-offset-background{--tw-ring-offset-color:var(--background)}.outline-hidden{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.outline-hidden{outline-offset:2px;outline:2px solid #0000}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur-sm{--tw-blur:blur(var(--blur-sm));filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,visibility,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[width\]{transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-shadow{transition-property:box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-none{transition-property:none}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.duration-1000{--tw-duration:1s;transition-duration:1s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-linear{--tw-ease:linear;transition-timing-function:linear}.\!select-text{-webkit-user-select:text!important;user-select:text!important}.fade-in-0{--tw-enter-opacity:0}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.zoom-in-95{--tw-enter-scale:.95}.\[--cell-size\:--spacing\(8\)\]{--cell-size:calc(var(--spacing)*8)}.running{animation-play-state:running}.group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *){opacity:1}@media (hover:hover){.group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *){opacity:1}}.group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.group\/menu-item):has([data-sidebar=menu-action]) *){padding-right:calc(var(--spacing)*8)}.group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible=icon] *){margin-top:calc(var(--spacing)*-8)}.group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible=icon] *){display:none}.group-data-\[collapsible\=icon\]\:size-8\!:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--spacing)*8)!important;height:calc(var(--spacing)*8)!important}.group-data-\[collapsible\=icon\]\:w-\(--sidebar-width-icon\):is(:where(.group)[data-collapsible=icon] *){width:var(--sidebar-width-icon)}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)))}.group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+\(--spacing\(4\)\)\+2px\)\]:is(:where(.group)[data-collapsible=icon] *){width:calc(var(--sidebar-width-icon) + (calc(var(--spacing)*4)) + 2px)}.group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible=icon] *){overflow:hidden}.group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*0)!important}.group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible=icon] *){padding:calc(var(--spacing)*2)!important}.group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible=icon] *){opacity:0}.group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){right:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(:where(.group)[data-collapsible=offcanvas] *){left:calc(var(--sidebar-width)*-1)}.group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible=offcanvas] *){width:calc(var(--spacing)*0)}.group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(:where(.group)[data-collapsible=offcanvas] *){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[disabled\=true\]\:pointer-events-none:is(:where(.group)[data-disabled=true] *){pointer-events:none}.group-data-\[disabled\=true\]\:opacity-50:is(:where(.group)[data-disabled=true] *){opacity:.5}.group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused=true] *){position:relative}.group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused=true] *){z-index:10}.group-data-\[focused\=true\]\/day\:border-ring:is(:where(.group\/day)[data-focused=true] *){border-color:var(--ring)}.group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused=true] *){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.group-data-\[focused\=true\]\/day\:ring-ring\/50:is(:where(.group\/day)[data-focused=true] *){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side=left] *){right:calc(var(--spacing)*-4)}.group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side=left] *){border-right-style:var(--tw-border-style);border-right-width:1px}.group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side=right] *){left:calc(var(--spacing)*0)}.group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side=right] *){rotate:180deg}.group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side=right] *){border-left-style:var(--tw-border-style);border-left-width:1px}.group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state=open] *){rotate:180deg}.group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant=floating] *){border-radius:var(--radius)}.group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant=floating] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[variant\=floating\]\:border-sidebar-border:is(:where(.group)[data-variant=floating] *){border-color:var(--sidebar-border)}.group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant=floating] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:block:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=bottom] *){display:block}.group-data-\[vaul-drawer-direction\=bottom\]\/drawer-content\:text-center:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=bottom] *),.group-data-\[vaul-drawer-direction\=top\]\/drawer-content\:text-center:is(:where(.group\/drawer-content)[data-vaul-drawer-direction=top] *){text-align:center}.group-data-\[viewport\=false\]\/navigation-menu\:top-full:is(:where(.group\/navigation-menu)[data-viewport=false] *){top:100%}.group-data-\[viewport\=false\]\/navigation-menu\:mt-1\.5:is(:where(.group\/navigation-menu)[data-viewport=false] *){margin-top:calc(var(--spacing)*1.5)}.group-data-\[viewport\=false\]\/navigation-menu\:overflow-hidden:is(:where(.group\/navigation-menu)[data-viewport=false] *){overflow:hidden}.group-data-\[viewport\=false\]\/navigation-menu\:rounded-md:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-radius:calc(var(--radius) - 2px)}.group-data-\[viewport\=false\]\/navigation-menu\:border:is(:where(.group\/navigation-menu)[data-viewport=false] *){border-style:var(--tw-border-style);border-width:1px}.group-data-\[viewport\=false\]\/navigation-menu\:bg-popover:is(:where(.group\/navigation-menu)[data-viewport=false] *){background-color:var(--popover)}.group-data-\[viewport\=false\]\/navigation-menu\:text-popover-foreground:is(:where(.group\/navigation-menu)[data-viewport=false] *){color:var(--popover-foreground)}.group-data-\[viewport\=false\]\/navigation-menu\:shadow:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.group-data-\[viewport\=false\]\/navigation-menu\:duration-200:is(:where(.group\/navigation-menu)[data-viewport=false] *){--tw-duration:.2s;transition-duration:.2s}@media (hover:hover){.peer-hover\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button):hover~*){color:var(--sidebar-accent-foreground)}}.peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled~*){cursor:not-allowed}.peer-disabled\:opacity-50:is(:where(.peer):disabled~*){opacity:.5}.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground:is(:where(.peer\/menu-button)[data-active=true]~*){color:var(--sidebar-accent-foreground)}.peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(:where(.peer\/menu-button)[data-size=default]~*){top:calc(var(--spacing)*1.5)}.peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(:where(.peer\/menu-button)[data-size=lg]~*){top:calc(var(--spacing)*2.5)}.peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size=sm]~*){top:calc(var(--spacing)*1)}.selection\:bg-primary ::selection{background-color:var(--primary)}.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection{color:var(--primary-foreground)}.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);inset:calc(var(--spacing)*-2)}.after\:inset-y-0:after{content:var(--tw-content);inset-block:calc(var(--spacing)*0)}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:calc(var(--spacing)*1)}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(:where(.group)[data-collapsible=offcanvas] *):after{content:var(--tw-content);left:100%}.first\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.first\:border-l:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.last\:border-b-0:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}@media (hover:hover){.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-gray-200:hover{background-color:var(--color-gray-200)}.hover\:bg-muted:hover,.hover\:bg-muted\/50:hover{background-color:var(--muted)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-muted\/50:hover{background-color:color-mix(in oklab,var(--muted)50%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-sidebar-accent:hover{background-color:var(--sidebar-accent)}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-foreground:hover{color:var(--foreground)}.hover\:text-muted-foreground:hover{color:var(--muted-foreground)}.hover\:text-sidebar-accent-foreground:hover{color:var(--sidebar-accent-foreground)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow:0 0 0 1px var(--tw-shadow-color,hsl(var(--sidebar-accent)));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:ring-4:hover{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.hover\:select-text:hover{-webkit-user-select:text;user-select:text}.hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover:is(:where(.group)[data-collapsible=offcanvas] *){background-color:var(--sidebar)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:var(--sidebar-border)}}.focus\:z-10:focus{z-index:10}.focus\:bg-accent:focus{background-color:var(--accent)}.focus\:text-accent-foreground:focus{color:var(--accent-foreground)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-ring:focus{--tw-ring-color:var(--ring)}.focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\:outline-hidden:focus{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus\:outline-hidden:focus{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:z-10:focus-visible{z-index:10}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-1:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-2:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-4:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(4px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring:focus-visible,.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus-visible\:outline-hidden:focus-visible{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.focus-visible\:outline-hidden:focus-visible{outline-offset:2px;outline:2px solid #0000}}.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-ring:focus-visible{outline-color:var(--ring)}.active\:bg-gray-300:active{background-color:var(--color-gray-300)}.active\:bg-sidebar-accent:active{background-color:var(--sidebar-accent)}.active\:text-sidebar-accent-foreground:active{color:var(--sidebar-accent-foreground)}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}:where([data-side=left]) .in-data-\[side\=left\]\:cursor-w-resize{cursor:w-resize}:where([data-side=right]) .in-data-\[side\=right\]\:cursor-e-resize{cursor:e-resize}.has-focus\:border-ring:has(:focus){border-color:var(--ring)}.has-focus\:ring-\[3px\]:has(:focus){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.has-focus\:ring-ring\/50:has(:focus){--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.has-disabled\:opacity-50:has(:disabled){opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-data-\[variant\=inset\]\:bg-sidebar:has([data-variant=inset]){background-color:var(--sidebar)}.has-\[\>svg\]\:grid-cols-\[calc\(var\(--spacing\)\*4\)_1fr\]:has(>svg){grid-template-columns:calc(var(--spacing)*4)1fr}.has-\[\>svg\]\:gap-x-3:has(>svg){column-gap:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.aria-selected\:text-muted-foreground[aria-selected=true]{color:var(--muted-foreground)}.data-\[active\=true\]\:z-10[data-active=true]{z-index:10}.data-\[active\=true\]\:border-ring[data-active=true]{border-color:var(--ring)}.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-\[active\=true\]\:bg-accent\/50[data-active=true]{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:var(--sidebar-accent)}.data-\[active\=true\]\:font-medium[data-active=true]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.data-\[active\=true\]\:text-accent-foreground[data-active=true]{color:var(--accent-foreground)}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:var(--sidebar-accent-foreground)}.data-\[active\=true\]\:ring-\[3px\][data-active=true]{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[active\=true\]\:ring-ring\/50[data-active=true]{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab,red,red)){.data-\[active\=true\]\:ring-ring\/50[data-active=true]{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}@media (hover:hover){.data-\[active\=true\]\:hover\:bg-accent[data-active=true]:hover{background-color:var(--accent)}}.data-\[active\=true\]\:focus\:bg-accent[data-active=true]:focus{background-color:var(--accent)}.data-\[active\=true\]\:aria-invalid\:border-destructive[data-active=true][aria-invalid=true]{border-color:var(--destructive)}.data-\[active\=true\]\:aria-invalid\:ring-destructive\/20[data-active=true][aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[active\=true\]\:aria-invalid\:ring-destructive\/20[data-active=true][aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true]{pointer-events:none}.data-\[disabled\=true\]\:opacity-50[data-disabled=true]{opacity:.5}.data-\[error\=true\]\:text-destructive[data-error=true]{color:var(--destructive)}.data-\[inset\]\:pl-8[data-inset]{padding-left:calc(var(--spacing)*8)}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x:calc(52*var(--spacing))}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x:calc(52*var(--spacing))}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x:calc(52*var(--spacing)*-1)}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity:0}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-]{--tw-exit-opacity:0}.data-\[orientation\=horizontal\]\:h-1\.5[data-orientation=horizontal]{height:calc(var(--spacing)*1.5)}.data-\[orientation\=horizontal\]\:h-full[data-orientation=horizontal]{height:100%}.data-\[orientation\=horizontal\]\:h-px[data-orientation=horizontal]{height:1px}.data-\[orientation\=horizontal\]\:w-full[data-orientation=horizontal]{width:100%}.data-\[orientation\=vertical\]\:h-full[data-orientation=vertical]{height:100%}.data-\[orientation\=vertical\]\:min-h-44[data-orientation=vertical]{min-height:calc(var(--spacing)*44)}.data-\[orientation\=vertical\]\:w-1\.5[data-orientation=vertical]{width:calc(var(--spacing)*1.5)}.data-\[orientation\=vertical\]\:w-auto[data-orientation=vertical]{width:auto}.data-\[orientation\=vertical\]\:w-full[data-orientation=vertical]{width:100%}.data-\[orientation\=vertical\]\:w-px[data-orientation=vertical]{width:1px}.data-\[orientation\=vertical\]\:flex-col[data-orientation=vertical]{flex-direction:column}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:calc(var(--spacing)*0)}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:calc(var(--spacing)*1)}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:var(--muted-foreground)}.data-\[range-end\=true\]\:rounded-md[data-range-end=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:rounded-r-md[data-range-end=true]{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.data-\[range-end\=true\]\:bg-primary[data-range-end=true]{background-color:var(--primary)}.data-\[range-end\=true\]\:text-primary-foreground[data-range-end=true]{color:var(--primary-foreground)}.data-\[range-middle\=true\]\:rounded-none[data-range-middle=true]{border-radius:0}.data-\[range-middle\=true\]\:bg-accent[data-range-middle=true]{background-color:var(--accent)}.data-\[range-middle\=true\]\:text-accent-foreground[data-range-middle=true]{color:var(--accent-foreground)}.data-\[range-start\=true\]\:rounded-md[data-range-start=true]{border-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:rounded-l-md[data-range-start=true]{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.data-\[range-start\=true\]\:bg-primary[data-range-start=true]{background-color:var(--primary)}.data-\[range-start\=true\]\:text-primary-foreground[data-range-start=true]{color:var(--primary-foreground)}.data-\[selected-single\=true\]\:bg-primary[data-selected-single=true]{background-color:var(--primary)}.data-\[selected-single\=true\]\:text-primary-foreground[data-selected-single=true]{color:var(--primary-foreground)}.data-\[selected\=true\]\:rounded-none[data-selected=true]{border-radius:0}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:var(--accent)}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:var(--accent-foreground)}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(2*var(--spacing)*-1)}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(2*var(--spacing))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x:calc(var(--spacing)*1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(2*var(--spacing)*-1)}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y:calc(var(--spacing)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(2*var(--spacing))}.data-\[size\=default\]\:h-9[data-size=default]{height:calc(var(--spacing)*9)}.data-\[size\=sm\]\:h-8[data-size=sm]{height:calc(var(--spacing)*8)}:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){:is(.\*\:data-\[slot\=alert-description\]\:text-destructive\/90>*)[data-slot=alert-description]{color:color-mix(in oklab,var(--destructive)90%,transparent)}}:is(.\*\*\:data-\[slot\=command-input-wrapper\]\:h-12 *)[data-slot=command-input-wrapper]{height:calc(var(--spacing)*12)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:ring-0 *)[data-slot=navigation-menu-link]:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}:is(.\*\*\:data-\[slot\=navigation-menu-link\]\:focus\:outline-none *)[data-slot=navigation-menu-link]:focus{--tw-outline-style:none;outline-style:none}:is(.\*\:data-\[slot\=select-value\]\:line-clamp-1>*)[data-slot=select-value]{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:is(.\*\:data-\[slot\=select-value\]\:flex>*)[data-slot=select-value]{display:flex}:is(.\*\:data-\[slot\=select-value\]\:items-center>*)[data-slot=select-value]{align-items:center}:is(.\*\:data-\[slot\=select-value\]\:gap-2>*)[data-slot=select-value]{gap:calc(var(--spacing)*2)}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:var(--background)}.data-\[state\=active\]\:shadow-sm[data-state=active]{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[state\=checked\]\:translate-x-\[calc\(100\%-2px\)\][data-state=checked]{--tw-translate-x: calc(100% - 2px) ;translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=checked\]\:border-primary[data-state=checked]{border-color:var(--primary)}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:var(--primary)}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:var(--primary-foreground)}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up var(--tw-animation-duration,var(--tw-duration,.2s))ease-out}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:duration-300[data-state=closed]{--tw-duration:.3s;transition-duration:.3s}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y:100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x:-100%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed]{--tw-exit-translate-x:100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:animate-out:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:fade-out-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=closed\]\:zoom-out-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity:0}.data-\[state\=on\]\:bg-accent[data-state=on]{background-color:var(--accent)}.data-\[state\=on\]\:text-accent-foreground[data-state=on]{color:var(--accent-foreground)}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down var(--tw-animation-duration,var(--tw-duration,.2s))ease-out}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-accent[data-state=open],.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:var(--secondary)}.data-\[state\=open\]\:bg-sidebar-accent[data-state=open]{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:var(--accent-foreground)}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:var(--muted-foreground)}.data-\[state\=open\]\:text-sidebar-accent-foreground[data-state=open]{color:var(--sidebar-accent-foreground)}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=open\]\:duration-500[data-state=open]{--tw-duration:.5s;transition-duration:.5s}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale:.9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y:100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x:-100%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x:100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y:-100%}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:animate-in:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:fade-in-0:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-opacity:0}.group-data-\[viewport\=false\]\/navigation-menu\:data-\[state\=open\]\:zoom-in-95:is(:where(.group\/navigation-menu)[data-viewport=false] *)[data-state=open]{--tw-enter-scale:.95}@media (hover:hover){.data-\[state\=open\]\:hover\:bg-accent[data-state=open]:hover{background-color:var(--accent)}.data-\[state\=open\]\:hover\:bg-sidebar-accent[data-state=open]:hover{background-color:var(--sidebar-accent)}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground[data-state=open]:hover{color:var(--sidebar-accent-foreground)}}.data-\[state\=open\]\:focus\:bg-accent[data-state=open]:focus{background-color:var(--accent)}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:var(--muted)}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked]{--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:var(--input)}.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity:0}.data-\[variant\=destructive\]\:text-destructive[data-variant=destructive]{color:var(--destructive)}.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.data-\[variant\=destructive\]\:focus\:bg-destructive\/10[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)10%,transparent)}}.data-\[variant\=destructive\]\:focus\:text-destructive[data-variant=destructive]:focus{color:var(--destructive)}.data-\[variant\=outline\]\:border-l-0[data-variant=outline]{border-left-style:var(--tw-border-style);border-left-width:0}.data-\[variant\=outline\]\:shadow-xs[data-variant=outline]{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.data-\[variant\=outline\]\:first\:border-l[data-variant=outline]:first-child{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[vaul-drawer-direction\=bottom\]\:inset-x-0[data-vaul-drawer-direction=bottom]{inset-inline:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=bottom\]\:bottom-0[data-vaul-drawer-direction=bottom]{bottom:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=bottom\]\:mt-24[data-vaul-drawer-direction=bottom]{margin-top:calc(var(--spacing)*24)}.data-\[vaul-drawer-direction\=bottom\]\:max-h-\[80vh\][data-vaul-drawer-direction=bottom]{max-height:80vh}.data-\[vaul-drawer-direction\=bottom\]\:rounded-t-lg[data-vaul-drawer-direction=bottom]{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.data-\[vaul-drawer-direction\=bottom\]\:border-t[data-vaul-drawer-direction=bottom]{border-top-style:var(--tw-border-style);border-top-width:1px}.data-\[vaul-drawer-direction\=left\]\:inset-y-0[data-vaul-drawer-direction=left]{inset-block:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=left\]\:left-0[data-vaul-drawer-direction=left]{left:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=left\]\:w-3\/4[data-vaul-drawer-direction=left]{width:75%}.data-\[vaul-drawer-direction\=left\]\:border-r[data-vaul-drawer-direction=left]{border-right-style:var(--tw-border-style);border-right-width:1px}.data-\[vaul-drawer-direction\=right\]\:inset-y-0[data-vaul-drawer-direction=right]{inset-block:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=right\]\:right-0[data-vaul-drawer-direction=right]{right:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=right\]\:w-3\/4[data-vaul-drawer-direction=right]{width:75%}.data-\[vaul-drawer-direction\=right\]\:border-l[data-vaul-drawer-direction=right]{border-left-style:var(--tw-border-style);border-left-width:1px}.data-\[vaul-drawer-direction\=top\]\:inset-x-0[data-vaul-drawer-direction=top]{inset-inline:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=top\]\:top-0[data-vaul-drawer-direction=top]{top:calc(var(--spacing)*0)}.data-\[vaul-drawer-direction\=top\]\:mb-24[data-vaul-drawer-direction=top]{margin-bottom:calc(var(--spacing)*24)}.data-\[vaul-drawer-direction\=top\]\:max-h-\[80vh\][data-vaul-drawer-direction=top]{max-height:80vh}.data-\[vaul-drawer-direction\=top\]\:rounded-b-lg[data-vaul-drawer-direction=top]{border-bottom-right-radius:var(--radius);border-bottom-left-radius:var(--radius)}.data-\[vaul-drawer-direction\=top\]\:border-b[data-vaul-drawer-direction=top]{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}@media (min-width:40rem){.sm\:block{display:block}.sm\:flex{display:flex}.sm\:max-w-lg{max-width:var(--container-lg)}.sm\:max-w-sm{max-width:var(--container-sm)}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:calc(var(--spacing)*2.5)}.sm\:pr-2\.5{padding-right:calc(var(--spacing)*2.5)}.sm\:pl-2\.5{padding-left:calc(var(--spacing)*2.5)}.sm\:text-left{text-align:left}.data-\[vaul-drawer-direction\=left\]\:sm\:max-w-sm[data-vaul-drawer-direction=left],.data-\[vaul-drawer-direction\=right\]\:sm\:max-w-sm[data-vaul-drawer-direction=right]{max-width:var(--container-sm)}}@media (min-width:48rem){.md\:absolute{position:absolute}.md\:block{display:block}.md\:flex{display:flex}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-1\.5{gap:calc(var(--spacing)*1.5)}.md\:text-left{text-align:left}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\:opacity-0{opacity:0}.md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant=inset]~*){margin:calc(var(--spacing)*2)}.md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant=inset]~*){margin-left:calc(var(--spacing)*0)}.md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant=inset]~*){border-radius:calc(var(--radius) + 4px)}.md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant=inset]~*){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(:where(.peer)[data-variant=inset]~*):is(:where(.peer)[data-state=collapsed]~*){margin-left:calc(var(--spacing)*2)}.md\:after\:hidden:after{content:var(--tw-content);display:none}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:text-muted-foreground:is(.dark *){color:var(--muted-foreground)}@media (hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}.dark\:hover\:text-accent-foreground:is(.dark *):hover{color:var(--accent-foreground)}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[active\=true\]\:aria-invalid\:ring-destructive\/40:is(.dark *)[data-active=true][aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[active\=true\]\:aria-invalid\:ring-destructive\/40:is(.dark *)[data-active=true][aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:data-\[state\=active\]\:border-input:is(.dark *)[data-state=active]{border-color:var(--input)}.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=active\]\:bg-input\/30:is(.dark *)[data-state=active]{background-color:color-mix(in oklab,var(--input)30%,transparent)}}.dark\:data-\[state\=active\]\:text-foreground:is(.dark *)[data-state=active]{color:var(--foreground)}.dark\:data-\[state\=checked\]\:bg-primary:is(.dark *)[data-state=checked]{background-color:var(--primary)}.dark\:data-\[state\=checked\]\:bg-primary-foreground:is(.dark *)[data-state=checked]{background-color:var(--primary-foreground)}.dark\:data-\[state\=unchecked\]\:bg-foreground:is(.dark *)[data-state=unchecked]{background-color:var(--foreground)}.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:var(--input)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[state\=unchecked\]\:bg-input\/80:is(.dark *)[data-state=unchecked]{background-color:color-mix(in oklab,var(--input)80%,transparent)}}.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){.dark\:data-\[variant\=destructive\]\:focus\:bg-destructive\/20:is(.dark *)[data-variant=destructive]:focus{background-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:var(--muted-foreground)}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:var(--border)}@supports (color:color-mix(in lab,red,red)){.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:color-mix(in oklab,var(--border)50%,transparent)}}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:var(--border)}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:#0000}.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-layer\]\:outline-hidden .recharts-layer{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:var(--border)}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:var(--muted)}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:var(--border)}.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-sector\]\:outline-hidden .recharts-sector{outline-offset:2px;outline:2px solid #0000}}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:#0000}.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{--tw-outline-style:none;outline-style:none}@media (forced-colors:active){.\[\&_\.recharts-surface\]\:outline-hidden .recharts-surface{outline-offset:2px;outline:2px solid #0000}}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-block:calc(var(--spacing)*1.5)}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:var(--muted-foreground)}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:calc(var(--spacing)*0)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:calc(var(--spacing)*5)}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:calc(var(--spacing)*12)}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-inline:calc(var(--spacing)*2)}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-block:calc(var(--spacing)*3)}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:calc(var(--spacing)*5)}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:calc(var(--spacing)*5)}.\[\&_p\]\:leading-relaxed p{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&_svg\:not\(\[class\*\=\'text-\'\]\)\]\:text-muted-foreground svg:not([class*=text-]){color:var(--muted-foreground)}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected=true] button{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing)*0)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}:is(.rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_next>svg),:is(.rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(:dir(rtl),[dir=rtl],[dir=rtl] *) *):is(.rdp-button_previous>svg){rotate:180deg}:is(.\*\:\[span\]\:last\:flex>*):is(span):last-child{display:flex}:is(.\*\:\[span\]\:last\:items-center>*):is(span):last-child{align-items:center}:is(.\*\:\[span\]\:last\:gap-2>*):is(span):last-child{gap:calc(var(--spacing)*2)}:is(.data-\[variant\=destructive\]\:\*\:\[svg\]\:\!text-destructive[data-variant=destructive]>*):is(svg){color:var(--destructive)!important}.\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected=true] button{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y:2px;translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\]\:text-xs>span{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.\[\&\>span\]\:opacity-70>span{opacity:.7}.\[\&\>span\:last-child\]\:truncate>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[\&\>svg\]\:pointer-events-none>svg{pointer-events:none}.\[\&\>svg\]\:size-3>svg{width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.\[\&\>svg\]\:size-3\.5>svg{width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.\[\&\>svg\]\:size-4>svg{width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\&\>svg\]\:h-2\.5>svg{height:calc(var(--spacing)*2.5)}.\[\&\>svg\]\:h-3>svg{height:calc(var(--spacing)*3)}.\[\&\>svg\]\:w-2\.5>svg{width:calc(var(--spacing)*2.5)}.\[\&\>svg\]\:w-3>svg{width:calc(var(--spacing)*3)}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:translate-y-0\.5>svg{--tw-translate-y:calc(var(--spacing)*.5);translate:var(--tw-translate-x)var(--tw-translate-y)}.\[\&\>svg\]\:text-current>svg{color:currentColor}.\[\&\>svg\]\:text-muted-foreground>svg{color:var(--muted-foreground)}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:var(--sidebar-accent-foreground)}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{rotate:90deg}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{rotate:180deg}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:calc(var(--spacing)*-2)}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:calc(var(--spacing)*-2)}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-slot=card-content] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,[data-slot=popover-content] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent{background-color:#0000}@media (hover:hover){a.\[a\&\]\:hover\:bg-accent:hover{background-color:var(--accent)}a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab,red,red)){a.\[a\&\]\:hover\:bg-secondary\/90:hover{background-color:color-mix(in oklab,var(--secondary)90%,transparent)}}a.\[a\&\]\:hover\:text-accent-foreground:hover{color:var(--accent-foreground)}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--background:oklch(100% 0 0);--foreground:oklch(14.5% 0 0);--card:oklch(100% 0 0);--card-foreground:oklch(14.5% 0 0);--popover:oklch(100% 0 0);--popover-foreground:oklch(14.5% 0 0);--primary:oklch(20.5% 0 0);--primary-foreground:oklch(98.5% 0 0);--secondary:oklch(97% 0 0);--secondary-foreground:oklch(20.5% 0 0);--muted:oklch(97% 0 0);--muted-foreground:oklch(55.6% 0 0);--accent:oklch(97% 0 0);--accent-foreground:oklch(20.5% 0 0);--destructive:oklch(57.7% .245 27.325);--destructive-foreground:oklch(57.7% .245 27.325);--border:oklch(92.2% 0 0);--input:oklch(92.2% 0 0);--ring:oklch(70.8% 0 0);--chart-1:oklch(64.6% .222 41.116);--chart-2:oklch(60% .118 184.704);--chart-3:oklch(39.8% .07 227.392);--chart-4:oklch(82.8% .189 84.429);--chart-5:oklch(76.9% .188 70.08);--radius:.625rem;--sidebar:oklch(98.5% 0 0);--sidebar-foreground:oklch(14.5% 0 0);--sidebar-primary:oklch(20.5% 0 0);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(97% 0 0);--sidebar-accent-foreground:oklch(20.5% 0 0);--sidebar-border:oklch(92.2% 0 0);--sidebar-ring:oklch(70.8% 0 0)}.dark{--background:oklch(14.5% 0 0);--foreground:oklch(98.5% 0 0);--card:oklch(20.5% 0 0);--card-foreground:oklch(98.5% 0 0);--popover:oklch(20.5% 0 0);--popover-foreground:oklch(98.5% 0 0);--primary:oklch(92.2% 0 0);--primary-foreground:oklch(20.5% 0 0);--secondary:oklch(26.9% 0 0);--secondary-foreground:oklch(98.5% 0 0);--muted:oklch(26.9% 0 0);--muted-foreground:oklch(70.8% 0 0);--accent:oklch(26.9% 0 0);--accent-foreground:oklch(98.5% 0 0);--destructive:oklch(70.4% .191 22.216);--destructive-foreground:oklch(63.7% .237 25.331);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:oklch(55.6% 0 0);--chart-1:oklch(48.8% .243 264.376);--chart-2:oklch(69.6% .17 162.48);--chart-3:oklch(76.9% .188 70.08);--chart-4:oklch(62.7% .265 303.9);--chart-5:oklch(64.5% .246 16.439);--sidebar:oklch(20.5% 0 0);--sidebar-foreground:oklch(98.5% 0 0);--sidebar-primary:oklch(48.8% .243 264.376);--sidebar-primary-foreground:oklch(98.5% 0 0);--sidebar-accent:oklch(26.9% 0 0);--sidebar-accent-foreground:oklch(98.5% 0 0);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:oklch(55.6% 0 0)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,auto))))}}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height,var(--bits-accordion-content-height,var(--reka-accordion-content-height,var(--kb-accordion-content-height,auto))))}to{height:0}}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}} diff --git a/eslint.config.js b/eslint.config.js index 572f3c04..d3789df3 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -8,7 +8,7 @@ import reactRefresh from 'eslint-plugin-react-refresh'; import tseslint from 'typescript-eslint'; export default tseslint.config( - { ignores: ['dist'] }, + { ignores: ['**/dist/*'] }, { extends: [js.configs.recommended, ...tseslint.configs.recommended], files: ['**/*.{ts,tsx}'], diff --git a/package-lock.json b/package-lock.json index 11dc9c5d..f324c56f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "@uselagoon/ui-library", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@uselagoon/ui-library", - "version": "2.0.0", + "version": "2.0.1", "hasInstallScript": true, "license": "Apache-2.0", "dependencies": { - "@hookform/resolvers": "^5.0.1", + "@hookform/resolvers": "^5.1.1", "@radix-ui/react-accordion": "^1.2.11", "@radix-ui/react-alert-dialog": "^1.1.14", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -45,23 +45,25 @@ "embla-carousel-react": "^8.6.0", "input-otp": "^1.4.2", "lucide-react": "^0.511.0", + "next-nprogress-bar": "^2.4.7", "next-themes": "^0.4.6", - "react-day-picker": "^8.10.1", + "react-day-picker": "^9.7.0", "react-highlight-words": "^0.21.0", - "react-hook-form": "^7.56.4", + "react-hook-form": "^7.58.1", "react-loading-skeleton": "^3.5.0", - "react-resizable-panels": "^3.0.2", - "recharts": "^2.15.3", - "sonner": "^2.0.3", + "react-resizable-panels": "^3.0.3", + "recharts": "^2.15.4", + "sonner": "^2.0.5", "tailwind-merge": "^3.3.0", - "tailwindcss": "^4.1.8", + "tailwindcss": "^4.1.10", "vaul": "^1.1.2", - "zod": "^3.25.34" + "zod": "^3.25.67" }, "devDependencies": { "@eslint/js": "^9.25.0", "@storybook/addon-docs": "^9.0.0", "@storybook/addon-onboarding": "^9.0.0", + "@storybook/addon-styling-webpack": "^2.0.0", "@storybook/react-vite": "^9.0.0", "@types/lodash": "^4.17.17", "@types/node": "^22.15.24", @@ -79,7 +81,7 @@ "postcss-cli": "^11.0.1", "prettier": "^3.2.2", "storybook": "^9.0.0", - "tw-animate-css": "^1.3.0", + "tw-animate-css": "^1.3.4", "typescript": "~5.8.3", "typescript-eslint": "^8.30.1", "vite": "^6.3.5", @@ -401,6 +403,12 @@ "node": ">=6.9.0" } }, + "node_modules/@date-fns/tz": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@date-fns/tz/-/tz-1.2.0.tgz", + "integrity": "sha512-LBrd7MiJZ9McsOgxqWX7AaxrDjcFVjWH/tIKJd7pnR7McaslGYOP1QmmiBXdJH/H/yLCT+rcQ7FaPBUxRGUtrg==", + "license": "MIT" + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.25.5", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.5.tgz", @@ -994,9 +1002,9 @@ "license": "MIT" }, "node_modules/@hookform/resolvers": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.0.1.tgz", - "integrity": "sha512-u/+Jp83luQNx9AdyW2fIPGY6Y7NG68eN2ZW8FOJYL+M0i4s49+refdJdOp/A9n9HFQtQs3HIDHQvX3ZET2o7YA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-5.1.1.tgz", + "integrity": "sha512-J/NVING3LMAEvexJkyTLjruSm7aOFx7QX21pzkiJfMoNG0wl5aFEjLTl7ay7IQb9EWY6AkrBy7tHL2Alijpdcg==", "license": "MIT", "dependencies": { "@standard-schema/utils": "^0.3.0" @@ -1154,6 +1162,18 @@ "node": ">=6.0.0" } }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@jridgewell/source-map/-/source-map-0.3.6.tgz", + "integrity": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==", + "devOptional": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25" + } + }, "node_modules/@jridgewell/sourcemap-codec": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", @@ -3203,6 +3223,17 @@ "storybook": "^9.0.0" } }, + "node_modules/@storybook/addon-styling-webpack": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@storybook/addon-styling-webpack/-/addon-styling-webpack-2.0.0.tgz", + "integrity": "sha512-N8jWhWnk3/nbL4P9zl0OEV/47P0Cxn/kPzSHjdAClyDYnqj9jI6upeLsraZgIV9Ro3QSeqeIloeXb1zMasWpOw==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "storybook": "^9.0.0", + "webpack": "^5.0.0" + } + }, "node_modules/@storybook/builder-vite": { "version": "9.0.0", "resolved": "https://registry.npmjs.org/@storybook/builder-vite/-/builder-vite-9.0.0.tgz", @@ -3351,6 +3382,12 @@ "tailwindcss": "4.1.8" } }, + "node_modules/@tailwindcss/node/node_modules/tailwindcss": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.8.tgz", + "integrity": "sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==", + "license": "MIT" + }, "node_modules/@tailwindcss/oxide": { "version": "4.1.8", "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.8.tgz", @@ -3598,6 +3635,12 @@ "vite": "^5.2.0 || ^6" } }, + "node_modules/@tailwindcss/vite/node_modules/tailwindcss": { + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.8.tgz", + "integrity": "sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==", + "license": "MIT" + }, "node_modules/@testing-library/dom": { "version": "10.4.0", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz", @@ -3805,6 +3848,30 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/eslint": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", + "integrity": "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/@types/eslint-scope/-/eslint-scope-3.7.7.tgz", + "integrity": "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, "node_modules/@types/estree": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", @@ -4355,11 +4422,203 @@ "dev": true, "license": "MIT" }, + "node_modules/@webassemblyjs/ast": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz", + "integrity": "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/helper-numbers": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.13.2.tgz", + "integrity": "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-api-error/-/helper-api-error-1.13.2.tgz", + "integrity": "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-buffer/-/helper-buffer-1.14.1.tgz", + "integrity": "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-numbers/-/helper-numbers-1.13.2.tgz", + "integrity": "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.13.2", + "@webassemblyjs/helper-api-error": "1.13.2", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.13.2.tgz", + "integrity": "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.14.1.tgz", + "integrity": "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/wasm-gen": "1.14.1" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/ieee754/-/ieee754-1.13.2.tgz", + "integrity": "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/leb128/-/leb128-1.13.2.tgz", + "integrity": "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw==", + "dev": true, + "license": "Apache-2.0", + "peer": true, + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.13.2", + "resolved": "https://registry.npmjs.org/@webassemblyjs/utf8/-/utf8-1.13.2.tgz", + "integrity": "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-edit/-/wasm-edit-1.14.1.tgz", + "integrity": "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/helper-wasm-section": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-opt": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1", + "@webassemblyjs/wast-printer": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-gen/-/wasm-gen-1.14.1.tgz", + "integrity": "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-opt/-/wasm-opt-1.14.1.tgz", + "integrity": "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-buffer": "1.14.1", + "@webassemblyjs/wasm-gen": "1.14.1", + "@webassemblyjs/wasm-parser": "1.14.1" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wasm-parser/-/wasm-parser-1.14.1.tgz", + "integrity": "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@webassemblyjs/helper-api-error": "1.13.2", + "@webassemblyjs/helper-wasm-bytecode": "1.13.2", + "@webassemblyjs/ieee754": "1.13.2", + "@webassemblyjs/leb128": "1.13.2", + "@webassemblyjs/utf8": "1.13.2" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/@webassemblyjs/wast-printer/-/wast-printer-1.14.1.tgz", + "integrity": "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@webassemblyjs/ast": "1.14.1", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", + "integrity": "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz", + "integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==", + "dev": true, + "license": "Apache-2.0", + "peer": true + }, "node_modules/acorn": { "version": "8.14.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", - "dev": true, + "devOptional": true, "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -4639,6 +4898,14 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "devOptional": true, + "license": "MIT", + "peer": true + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -4761,6 +5028,17 @@ "node": ">=18" } }, + "node_modules/chrome-trace-event": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz", + "integrity": "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.0" + } + }, "node_modules/class-variance-authority": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", @@ -4886,6 +5164,14 @@ "dev": true, "license": "MIT" }, + "node_modules/commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "devOptional": true, + "license": "MIT", + "peer": true + }, "node_modules/compare-versions": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", @@ -5073,6 +5359,12 @@ "url": "https://github.com/sponsors/kossnocorp" } }, + "node_modules/date-fns-jalali": { + "version": "4.1.0-0", + "resolved": "https://registry.npmjs.org/date-fns-jalali/-/date-fns-jalali-4.1.0-0.tgz", + "integrity": "sha512-hTIP/z+t+qKwBDcmmsnmjWTduxCg+5KfdqWQvb2X/8C9+knYY6epN/pfxdDuyVlSVeFz0sM5eEfwIUQ70U4ckg==", + "license": "MIT" + }, "node_modules/de-indent": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", @@ -5272,6 +5564,14 @@ "url": "https://github.com/fb55/entities?sponsor=1" } }, + "node_modules/es-module-lexer": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz", + "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/esbuild": { "version": "0.25.5", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.5.tgz", @@ -5583,6 +5883,17 @@ "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", "license": "MIT" }, + "node_modules/events": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", + "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=0.8.x" + } + }, "node_modules/exsolve": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.0.5.tgz", @@ -5874,6 +6185,14 @@ "node": ">=10.13.0" } }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", + "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", + "dev": true, + "license": "BSD-2-Clause", + "peer": true + }, "node_modules/glob/node_modules/brace-expansion": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", @@ -6165,6 +6484,39 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jest-worker": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.5.1.tgz", + "integrity": "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, "node_modules/jiti": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz", @@ -6220,6 +6572,14 @@ "dev": true, "license": "MIT" }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -6532,6 +6892,17 @@ "url": "https://github.com/sponsors/antonk52" } }, + "node_modules/loader-runner": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-4.3.0.tgz", + "integrity": "sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=6.11.5" + } + }, "node_modules/local-pkg": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-1.1.1.tgz", @@ -6643,6 +7014,14 @@ "integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw==", "license": "MIT" }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -6680,6 +7059,31 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/min-indent": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", @@ -6820,6 +7224,23 @@ "dev": true, "license": "MIT" }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT", + "peer": true + }, + "node_modules/next-nprogress-bar": { + "version": "2.4.7", + "resolved": "https://registry.npmjs.org/next-nprogress-bar/-/next-nprogress-bar-2.4.7.tgz", + "integrity": "sha512-OeveNQYFBhQhZ+RgrDnvHNUEQfHCmipymmD4AfAVE9pFV4jeWi7/nNK5f0lIk7ODRrtjyyr/n2YpkRbs5kUoMg==", + "license": "MIT", + "dependencies": { + "nprogress-v2": "^1.0.4" + } + }, "node_modules/next-themes": { "version": "0.4.6", "resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz", @@ -6847,6 +7268,12 @@ "node": ">=0.10.0" } }, + "node_modules/nprogress-v2": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/nprogress-v2/-/nprogress-v2-1.1.10.tgz", + "integrity": "sha512-MypWLNIPIM07SS0bAc/oac0vhVFz9vAHm7d1sj//Pnf3J03LQ3CuWrlDteIu6exq0fIvkDJ6tUDRWLaifsIt5w==", + "license": "MIT" + }, "node_modules/object-assign": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", @@ -7322,6 +7749,17 @@ ], "license": "MIT" }, + "node_modules/randombytes": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", + "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, "node_modules/react": { "version": "18.3.1", "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz", @@ -7335,17 +7773,34 @@ } }, "node_modules/react-day-picker": { - "version": "8.10.1", - "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-8.10.1.tgz", - "integrity": "sha512-TMx7fNbhLk15eqcMt+7Z7S2KF7mfTId/XJDjKE8f+IUcFn0l08/kI4FiYTL/0yuOLmEcbR4Fwe3GJf/NiiMnPA==", + "version": "9.7.0", + "resolved": "https://registry.npmjs.org/react-day-picker/-/react-day-picker-9.7.0.tgz", + "integrity": "sha512-urlK4C9XJZVpQ81tmVgd2O7lZ0VQldZeHzNejbwLWZSkzHH498KnArT0EHNfKBOWwKc935iMLGZdxXPRISzUxQ==", "license": "MIT", + "dependencies": { + "@date-fns/tz": "1.2.0", + "date-fns": "4.1.0", + "date-fns-jalali": "4.1.0-0" + }, + "engines": { + "node": ">=18" + }, "funding": { "type": "individual", "url": "https://github.com/sponsors/gpbl" }, "peerDependencies": { - "date-fns": "^2.28.0 || ^3.0.0", - "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + "react": ">=16.8.0" + } + }, + "node_modules/react-day-picker/node_modules/date-fns": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-4.1.0.tgz", + "integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" } }, "node_modules/react-docgen": { @@ -7407,9 +7862,9 @@ } }, "node_modules/react-hook-form": { - "version": "7.56.4", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.56.4.tgz", - "integrity": "sha512-Rob7Ftz2vyZ/ZGsQZPaRdIefkgOSrQSPXfqBdvOPwJfoGnjwRJUs7EM7Kc1mcoDv3NOtqBzPGbcMB8CGn9CKgw==", + "version": "7.58.1", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.58.1.tgz", + "integrity": "sha512-Lml/KZYEEFfPhUVgE0RdCVpnC4yhW+PndRhbiTtdvSlQTL8IfVR+iQkBjLIvmmc6+GGoVeM11z37ktKFPAb0FA==", "license": "MIT", "engines": { "node": ">=18.0.0" @@ -7495,9 +7950,9 @@ } }, "node_modules/react-resizable-panels": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-3.0.2.tgz", - "integrity": "sha512-j4RNII75fnHkLnbsTb5G5YsDvJsSEZrJK2XSF2z0Tc2jIonYlIVir/Yh/5LvcUFCfs1HqrMAoiBFmIrRjC4XnA==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/react-resizable-panels/-/react-resizable-panels-3.0.3.tgz", + "integrity": "sha512-7HA8THVBHTzhDK4ON0tvlGXyMAJN1zBeRpuyyremSikgYh2ku6ltD7tsGQOcXx4NKPrZtYCm/5CBr+dkruTGQw==", "license": "MIT", "peerDependencies": { "react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc", @@ -7611,9 +8066,9 @@ } }, "node_modules/recharts": { - "version": "2.15.3", - "resolved": "https://registry.npmjs.org/recharts/-/recharts-2.15.3.tgz", - "integrity": "sha512-EdOPzTwcFSuqtvkDoaM5ws/Km1+WTAO2eizL7rqiG0V2UVhTnz0m7J2i0CjVPUCdEkZImaWvXLbZDS2H5t6GFQ==", + "version": "2.15.4", + "resolved": "https://registry.npmjs.org/recharts/-/recharts-2.15.4.tgz", + "integrity": "sha512-UT/q6fwS3c1dHbXv2uFgYJ9BMFHu3fwnd7AYZaEQhXuYQ4hgsxLvsUXzGdKeZrW5xopzDCvuA2N41WJ88I7zIw==", "license": "MIT", "dependencies": { "clsx": "^2.0.0", @@ -7794,6 +8249,28 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "peer": true + }, "node_modules/scheduler": { "version": "0.23.2", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz", @@ -7803,6 +8280,86 @@ "loose-envify": "^1.1.0" } }, + "node_modules/schema-utils": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.2.tgz", + "integrity": "sha512-Gn/JaSk/Mt9gYubxTtSn/QCV4em9mpAPiR1rqy/Ocu19u/G9J5WWdNoUT4SiV6mFC3y6cxyFcFwdzPM3FgxGAQ==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/schema-utils/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/schema-utils/node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/schema-utils/node_modules/ajv-keywords": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-5.1.0.tgz", + "integrity": "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/schema-utils/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "dev": true, + "license": "MIT", + "peer": true + }, "node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -7813,6 +8370,17 @@ "semver": "bin/semver.js" } }, + "node_modules/serialize-javascript": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", + "dev": true, + "license": "BSD-3-Clause", + "peer": true, + "dependencies": { + "randombytes": "^2.1.0" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -7863,9 +8431,9 @@ } }, "node_modules/sonner": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.3.tgz", - "integrity": "sha512-njQ4Hht92m0sMqqHVDL32V2Oun9W1+PHO9NDv9FHfJjT3JT22IG4Jpo3FPQy+mouRKCXFWO+r67v6MrHX2zeIA==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/sonner/-/sonner-2.0.5.tgz", + "integrity": "sha512-YwbHQO6cSso3HBXlbCkgrgzDNIhws14r4MO87Ofy+cV2X7ES4pOoAK3+veSmVTvqNx1BWUxlhPmZzP00Crk2aQ==", "license": "MIT", "peerDependencies": { "react": "^18.0.0 || ^19.0.0 || ^19.0.0-rc", @@ -7876,7 +8444,7 @@ "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, + "devOptional": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -7891,6 +8459,18 @@ "node": ">=0.10.0" } }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "devOptional": true, + "license": "MIT", + "peer": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", @@ -8129,9 +8709,9 @@ } }, "node_modules/tailwindcss": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.8.tgz", - "integrity": "sha512-kjeW8gjdxasbmFKpVGrGd5T4i40mV5J2Rasw48QARfYeQ8YS9x02ON9SFWax3Qf616rt4Cp3nVNIj6Hd1mP3og==", + "version": "4.1.10", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.10.tgz", + "integrity": "sha512-P3nr6WkvKV/ONsTzj6Gb57sWPMX29EPNPopo7+FcpkQaNsrNpZ1pv8QmrYI2RqEKD7mlGqLnGovlcYnBK0IqUA==", "license": "MIT" }, "node_modules/tapable": { @@ -8169,6 +8749,62 @@ "node": ">=18" } }, + "node_modules/terser": { + "version": "5.43.1", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.43.1.tgz", + "integrity": "sha512-+6erLbBm0+LROX2sPXlUYx/ux5PyE9K/a92Wrt6oA+WDAoFTdpHE5tCYCI5PNzq2y8df4rA+QgHLJuR4jNymsg==", + "devOptional": true, + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "@jridgewell/source-map": "^0.3.3", + "acorn": "^8.14.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.14", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.14.tgz", + "integrity": "sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.25", + "jest-worker": "^27.4.5", + "schema-utils": "^4.3.0", + "serialize-javascript": "^6.0.2", + "terser": "^5.31.1" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, "node_modules/thenby": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/thenby/-/thenby-1.3.4.tgz", @@ -8276,9 +8912,9 @@ "license": "0BSD" }, "node_modules/tw-animate-css": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.0.tgz", - "integrity": "sha512-jrJ0XenzS9KVuDThJDvnhalbl4IYiMQ/XvpA0a2FL8KmlK+6CSMviO7ROY/I7z1NnUs5NnDhlM6fXmF40xPxzw==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.4.tgz", + "integrity": "sha512-dd1Ht6/YQHcNbq0znIT6dG8uhO7Ce+VIIhZUhjsryXsMPJQz3bZg7Q2eNzLwipb25bRZslGb2myio5mScd1TFg==", "dev": true, "license": "MIT", "funding": { @@ -8609,6 +9245,81 @@ "dev": true, "license": "MIT" }, + "node_modules/watchpack": { + "version": "2.4.4", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.4.tgz", + "integrity": "sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack": { + "version": "5.99.9", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-5.99.9.tgz", + "integrity": "sha512-brOPwM3JnmOa+7kd3NsmOUOwbDAj8FT9xDsG3IW0MgbN9yZV7Oi/s/+MNQ/EcSMqw7qfoRyXPoeEWT8zLVdVGg==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "@types/eslint-scope": "^3.7.7", + "@types/estree": "^1.0.6", + "@types/json-schema": "^7.0.15", + "@webassemblyjs/ast": "^1.14.1", + "@webassemblyjs/wasm-edit": "^1.14.1", + "@webassemblyjs/wasm-parser": "^1.14.1", + "acorn": "^8.14.0", + "browserslist": "^4.24.0", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.17.1", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.11", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^4.3.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.11", + "watchpack": "^2.4.1", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-sources": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-3.3.3.tgz", + "integrity": "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg==", + "dev": true, + "license": "MIT", + "peer": true, + "engines": { + "node": ">=10.13.0" + } + }, "node_modules/webpack-virtual-modules": { "version": "0.6.2", "resolved": "https://registry.npmjs.org/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", @@ -8616,6 +9327,32 @@ "dev": true, "license": "MIT" }, + "node_modules/webpack/node_modules/eslint-scope": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", + "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", + "dev": true, + "license": "BSD-2-Clause", + "peer": true, + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webpack/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "license": "BSD-2-Clause", + "peer": true, + "engines": { + "node": ">=4.0" + } + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -8857,9 +9594,9 @@ } }, "node_modules/zod": { - "version": "3.25.34", - "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.34.tgz", - "integrity": "sha512-lZHvSc2PpWdcfpHlyB33HA9nqP16GpC9IpiG4lYq9jZCJVLZNnWd6Y1cj79bcLSBKTkxepfpjckPv5Y5VOPlwA==", + "version": "3.25.67", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.67.tgz", + "integrity": "sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==", "license": "MIT", "funding": { "url": "https://github.com/sponsors/colinhacks" diff --git a/package.json b/package.json index bfa37323..8b262b7d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@uselagoon/ui-library", "author": "Amazeeio", "license": "Apache-2.0", - "version": "2.0.0", + "version": "2.0.1", "description": "Lagoon component library using Shadcn / tailwind", "main": "dist/index.cjs.js", "module": "dist/index.es.js", @@ -25,7 +25,7 @@ "bundle": "rm -rf ./dist && tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "copy": "cp package.json dist/ && cp dist/ui-library.css .storybook/globals.css", + "copy": "cp package.json dist/", "postinstall": "node postinstall.cjs", "format": "prettier --write .", "format:check": "prettier --check .", @@ -33,7 +33,7 @@ "build-storybook": "storybook build" }, "dependencies": { - "@hookform/resolvers": "^5.0.1", + "@hookform/resolvers": "^5.1.1", "@radix-ui/react-accordion": "^1.2.11", "@radix-ui/react-alert-dialog": "^1.1.14", "@radix-ui/react-aspect-ratio": "^1.1.7", @@ -68,18 +68,19 @@ "embla-carousel-react": "^8.6.0", "input-otp": "^1.4.2", "lucide-react": "^0.511.0", + "next-nprogress-bar": "^2.4.7", "next-themes": "^0.4.6", - "react-day-picker": "^8.10.1", + "react-day-picker": "^9.7.0", "react-highlight-words": "^0.21.0", - "react-hook-form": "^7.56.4", + "react-hook-form": "^7.58.1", "react-loading-skeleton": "^3.5.0", - "react-resizable-panels": "^3.0.2", - "recharts": "^2.15.3", - "sonner": "^2.0.3", + "react-resizable-panels": "^3.0.3", + "recharts": "^2.15.4", + "sonner": "^2.0.5", "tailwind-merge": "^3.3.0", - "tailwindcss": "^4.1.8", + "tailwindcss": "^4.1.10", "vaul": "^1.1.2", - "zod": "^3.25.34" + "zod": "^3.25.67" }, "peerDependencies": { "react": ">=18.2.0", @@ -89,6 +90,7 @@ "@eslint/js": "^9.25.0", "@storybook/addon-docs": "^9.0.0", "@storybook/addon-onboarding": "^9.0.0", + "@storybook/addon-styling-webpack": "^2.0.0", "@storybook/react-vite": "^9.0.0", "@types/lodash": "^4.17.17", "@types/node": "^22.15.24", @@ -106,7 +108,7 @@ "postcss-cli": "^11.0.1", "prettier": "^3.2.2", "storybook": "^9.0.0", - "tw-animate-css": "^1.3.0", + "tw-animate-css": "^1.3.4", "typescript": "~5.8.3", "typescript-eslint": "^8.30.1", "vite": "^6.3.5", diff --git a/src/_util/helpers.tsx b/src/_util/helpers.tsx index 29718678..4ebeac12 100644 --- a/src/_util/helpers.tsx +++ b/src/_util/helpers.tsx @@ -1,3 +1,4 @@ +import { NavItems } from '@/components/sidenav/Sidenav'; import React, { ReactNode } from 'react'; import Highlighter from 'react-highlight-words'; @@ -23,3 +24,38 @@ export const highlightTextInElement = (element: ReactNode, searchString: string, return element; }; + +export const genAvatarBackground = ( + firstLetter: string, + secondLetter: string, +): { bgColor: string; textColor: string } => { + const alphaPosition = (letter: string): number => letter.charCodeAt(0) - 64; + const getColorIndex = (letter: string): number => Math.round(alphaPosition(letter) * 11); + + let red = getColorIndex(firstLetter) % 256; + let green = getColorIndex(secondLetter) % 256; + let blue = Math.round(((alphaPosition(firstLetter) + alphaPosition(secondLetter)) / 2) * 11) % 256; + + return { + bgColor: `rgb(${red}, ${green}, ${blue})`, + textColor: getLuminance(red, green, blue) > 0.5 ? '#000000' : '#FFFFFF', + }; +}; + +function getLuminance(r: number, g: number, b: number) { + // normalize the RGB values to the range [0, 1] + const a = [r, g, b].map((v) => { + v /= 255; + return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4); + }); + + // calculate the luminance. reference: https://www.w3.org/WAI/GL/wiki/Relative_luminance + return 0.2126 * a[0] + 0.7152 * a[1] + 0.0722 * a[2]; +} + +export const getCurrentPath = (navLinks: NavItems, pathname: string): string => { + const allItems = navLinks.flatMap((section) => section.sectionItems); + + const match = allItems.find((item) => pathname.startsWith(item.url)); + return match?.url || ''; +}; diff --git a/src/components/AvatarBubble/AvatarBubble.tsx b/src/components/AvatarBubble/AvatarBubble.tsx new file mode 100644 index 00000000..8997c70f --- /dev/null +++ b/src/components/AvatarBubble/AvatarBubble.tsx @@ -0,0 +1,18 @@ +import { cva } from 'class-variance-authority'; +import { HTMLAttributes } from 'react'; +import { cn } from '@/lib/utils'; + +const avatarBubble = cva('rounded-full h-6 w-6 min-w-[24px] flex justify-center items-center mr-2 text-xs'); + +type AvatarBubbleProps = HTMLAttributes & { + bgColor: string; + textColor: string; +}; + +export default function AvatarBubble({ bgColor, textColor, className, children, ...props }: AvatarBubbleProps) { + return ( +
+ {children} +
+ ); +} diff --git a/src/components/Breadcrumb/Breadcrumb.tsx b/src/components/Breadcrumb/Breadcrumb.tsx new file mode 100644 index 00000000..f73f57ad --- /dev/null +++ b/src/components/Breadcrumb/Breadcrumb.tsx @@ -0,0 +1,104 @@ +'use client'; + +import React, { FC, Fragment, MouseEventHandler, ReactElement, ReactNode } from 'react'; +import { + Breadcrumb, + BreadcrumbItem, + BreadcrumbList, + BreadcrumbLink, + BreadcrumbSeparator, +} from '@/components/ui/breadcrumb'; +import CopyToClipboard from '../CopyToClipboard'; +import { ChevronRight } from 'lucide-react'; + +type Component> = ReactElement; +type LinkComponent = Component<'a'>; + +const decorators = { + default: ['', 'project', 'environment'], + orgs: ['', 'organization', 'project'], +}; + +export interface BasicProps { + items: ( + | { + title: string | ReactNode; + navOnClick?: MouseEventHandler; + key?: string | number; + copyText?: string; + } + | { + title: LinkComponent; + key?: string | number; + copyText?: string; + } + )[]; + activeKey?: string | number; +} + +export type UIBreadcrumbProps = BasicProps & + ({ type: 'default'; currentSlug?: never } | { type: 'orgs'; currentSlug?: 'project' | 'user' | 'group' }); + +const UIBreadcrumb: FC = ({ activeKey, items, type, currentSlug }) => { + const decoratorList = type && ['default', 'orgs'].includes(type) ? [...decorators[type]] : null; + if (currentSlug && decoratorList) { + decoratorList[2] = currentSlug; + } + + return ( + + + {items.map((item, idx) => { + const key = 'key' in item ? item.key : idx; + const isActive = activeKey && activeKey === key; + const titleDecorator = decoratorList?.[idx] ?? null; + const shouldCopy = 'copyText' in item && item.copyText && titleDecorator; + const isSmall = item.copyText && item.copyText.length < 15; + const decorator = isSmall && titleDecorator === 'organization' ? 'Org' : titleDecorator; + + const content = ( +
+ {decorator && ( + + {decorator} + + )} +
+ + {'navOnClick' in item && item.navOnClick ? ( + + {item.title} + + ) : ( + item.title + )} + + {shouldCopy && ( +
+ +
+ )} +
+
+ ); + + return ( + + + {content} + + {idx !== items.length - 1 && ( + + + + )} + + ); + })} +
+
+ ); +}; + +UIBreadcrumb.displayName = 'Breadcrumb'; +export default UIBreadcrumb; diff --git a/src/components/Breadcrumb/index.tsx b/src/components/Breadcrumb/index.tsx new file mode 100644 index 00000000..38c6daf7 --- /dev/null +++ b/src/components/Breadcrumb/index.tsx @@ -0,0 +1,3 @@ +import { default as Breadcrumb } from './Breadcrumb'; + +export default Breadcrumb; diff --git a/src/components/Checkbox/Checkbox.tsx b/src/components/Checkbox/Checkbox.tsx new file mode 100644 index 00000000..56a33aba --- /dev/null +++ b/src/components/Checkbox/Checkbox.tsx @@ -0,0 +1,21 @@ +import React from 'react'; +import { Checkbox } from '../ui/checkbox'; +import { Label } from '../ui/label'; + +type CheckboxProps = React.ComponentProps & { + label: string; + id: string; +}; + +export default function CheckboxWithLabel({ label, id, ...rest }: CheckboxProps) { + return ( + <> +
+ + +
+ + ); +} + +CheckboxWithLabel.displayName = 'CheckboxWithLabel'; diff --git a/src/components/Checkbox/index.tsx b/src/components/Checkbox/index.tsx new file mode 100644 index 00000000..44d64872 --- /dev/null +++ b/src/components/Checkbox/index.tsx @@ -0,0 +1,3 @@ +import { default as Checkbox } from './Checkbox'; + +export default Checkbox; diff --git a/src/components/CopyToClipboard/CopyToClipboard.tsx b/src/components/CopyToClipboard/CopyToClipboard.tsx new file mode 100644 index 00000000..86b21543 --- /dev/null +++ b/src/components/CopyToClipboard/CopyToClipboard.tsx @@ -0,0 +1,145 @@ +import React, { useState } from 'react'; +import { Copy, Check, Eye, EyeOff } from 'lucide-react'; +import { cva } from 'class-variance-authority'; +import { Tooltip, TooltipTrigger, TooltipContent } from '../ui/tooltip'; + +export interface ClipboardProps { + text: string | number; + type?: 'visible' | 'hidden' | 'hiddenWithIcon' | 'alwaysHidden'; + width?: number | string; + fontSize?: string; + withToolTip?: boolean; + iconOnly?: boolean; +} + +const textVariants = cva('truncate transition-all duration-300', { + variants: { + type: { + visible: '', + hidden: 'blur-sm select-none hover:blur-0 hover:select-text', + hiddenWithIcon: '', + alwaysHidden: 'blur-sm select-none', + }, + unblur: { + true: '!blur-0 !select-text', + false: '', + }, + }, + compoundVariants: [ + { + type: 'hiddenWithIcon', + unblur: false, + className: 'blur-sm select-none', + }, + { + type: 'hiddenWithIcon', + unblur: true, + className: '!blur-0 !select-text', + }, + ], + defaultVariants: { + type: 'visible', + unblur: false, + }, +}); + +const CopyToClipboard: React.FC = ({ + text, + width, + fontSize = '14px', + type = 'visible', + withToolTip = false, + iconOnly = false, +}) => { + const [copied, setCopied] = useState(false); + const [manualUnblur, setManualUnblur] = useState(false); + + const copyFn = () => { + navigator.clipboard.writeText(text.toString()); + }; + + const handleCopy = () => { + copyFn(); + setCopied(true); + setTimeout(() => setCopied(false), 3500); + }; + + const handleBlurToggle = () => setManualUnblur(!manualUnblur); + + const containerStyle: React.CSSProperties = { + maxWidth: width ? (typeof width === 'number' ? `${width}px` : width) : undefined, + fontSize, + width: iconOnly ? 'max-content' : undefined, + }; + + return ( +
+ {!iconOnly && ( + + {withToolTip ? ( + + + {text} + + +

{text}

+
+
+ ) : ( + text + )} +
+ )} + +
+ {!copied ? ( + <> + + {type === 'hiddenWithIcon' && + (manualUnblur ? ( + + ) : ( + + ))} + + ) : ( +
+ + + + + + Copied! + + + + {type === 'hiddenWithIcon' && + (manualUnblur ? ( + + ) : ( + + ))} +
+ )} +
+
+ ); +}; + +export default CopyToClipboard; diff --git a/src/components/CopyToClipboard/index.tsx b/src/components/CopyToClipboard/index.tsx new file mode 100644 index 00000000..8bd50eac --- /dev/null +++ b/src/components/CopyToClipboard/index.tsx @@ -0,0 +1,3 @@ +import { default as CopyToClipboard } from './CopyToClipboard'; + +export default CopyToClipboard; diff --git a/src/components/DetailStat/DetailStat.tsx b/src/components/DetailStat/DetailStat.tsx new file mode 100644 index 00000000..f162d04d --- /dev/null +++ b/src/components/DetailStat/DetailStat.tsx @@ -0,0 +1,56 @@ +import React, { isValidElement, ReactNode } from 'react'; +import StatCard from '../StatCard'; +import { cva } from 'class-variance-authority'; + +type StatProps = { + title: string; + value: ReactNode; + fullWidth?: boolean; + lowercaseValue?: boolean; + capitalizeValue?: boolean; +}; + +const valueText = cva('font-sans font-normal text-lg leading-normal tracking-normal text-right', { + variants: { + transform: { + lowercase: 'lowercase', + capitalize: 'capitalize', + none: '', + }, + }, + defaultVariants: { + transform: 'none', + }, +}); + +function formatToCypressString(input: string) { + return input.toLowerCase().replace(/\s+/g, '-'); +} + +const DetailStat: React.FC = ({ title, value, lowercaseValue, capitalizeValue }) => { + const isElement = isValidElement(value); + + let textTransform = ''; + if (lowercaseValue) textTransform = 'lowercase'; + if (capitalizeValue) textTransform = 'capitalize'; + + const content = isElement ? ( +
+ {value} +
+ ) : ( + + {value} + + ); + + return ; +}; + +export default DetailStat; +export type { StatProps }; diff --git a/src/components/DetailStat/index.tsx b/src/components/DetailStat/index.tsx new file mode 100644 index 00000000..f6fe30b0 --- /dev/null +++ b/src/components/DetailStat/index.tsx @@ -0,0 +1,3 @@ +import { default as DetailStat } from './DetailStat'; + +export default DetailStat; diff --git a/src/components/Input/Input.tsx b/src/components/Input/Input.tsx new file mode 100644 index 00000000..3576cc97 --- /dev/null +++ b/src/components/Input/Input.tsx @@ -0,0 +1,41 @@ +import { Label } from '@/components/ui/label'; +import { Input as ShadInput } from '@/components/ui/input'; +import React, { ComponentProps, ReactNode } from 'react'; +import { cva } from 'class-variance-authority'; + +type InputProps = ComponentProps & { + label: string; + placeholder?: string; + description?: string; + icon?: ReactNode; +}; +const inputVariants = cva('w-full rounded-lg bg-background', { + variants: { + hasIcon: { + true: 'pl-8', + false: '', + }, + }, +}); + +export default function Input({ label, placeholder = '', icon, description, ...rest }: InputProps) { + return ( +
+ +
+ {icon &&
{icon}
} + + {description && ( +

+ {description} +

+ )} +
+
+ ); +} diff --git a/src/components/Input/index.tsx b/src/components/Input/index.tsx new file mode 100644 index 00000000..2dab0cb2 --- /dev/null +++ b/src/components/Input/index.tsx @@ -0,0 +1,3 @@ +import { default as Input } from './Input'; + +export default Input; diff --git a/src/components/KeyFactCard/KeyFactCard.tsx b/src/components/KeyFactCard/KeyFactCard.tsx new file mode 100644 index 00000000..a734f0a7 --- /dev/null +++ b/src/components/KeyFactCard/KeyFactCard.tsx @@ -0,0 +1,17 @@ +import React, { ReactElement } from 'react'; +import StatCard from '../StatCard'; + +type KeyFactProps = { name: string; category: string; value: string; img: ReactElement }; + +export default function KeyFactCard({ name, category, value, img }: KeyFactProps) { + const KeyFactContent = ( +
+ {img} + {name} +
+ {value} +
+ ); + + return ; +} diff --git a/src/components/KeyFactCard/index.tsx b/src/components/KeyFactCard/index.tsx new file mode 100644 index 00000000..a5016038 --- /dev/null +++ b/src/components/KeyFactCard/index.tsx @@ -0,0 +1,3 @@ +import { default as KeyFactCard } from './KeyFactCard'; + +export default KeyFactCard; diff --git a/src/components/Notification/Notification.tsx b/src/components/Notification/Notification.tsx new file mode 100644 index 00000000..3be90fe4 --- /dev/null +++ b/src/components/Notification/Notification.tsx @@ -0,0 +1,72 @@ +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle, + AlertDialogTrigger, +} from '@/components/ui/alert-dialog'; +import { Button } from '@/components/ui/button'; +import { ReactNode } from 'react'; + +type NotificationProps = { + title: string; + message: string; + cancelText?: string; + onCancel?: () => void; + confirmText?: string; + onConfirm?: () => void; +} & ( + | { children?: ReactNode } + | { + open?: boolean; + onOpenChange?: (open: boolean) => void; + } +); + +export default function Notification({ + title, + message, + cancelText, + onCancel, + confirmText, + onConfirm, + ...rest +}: NotificationProps) { + const alertDialogProps = + 'rest' in arguments && 'open' in rest && 'onOpenChange' in rest + ? { open: rest.open, onOpenChange: rest.onOpenChange } + : {}; + + return ( + + {'children' in rest ? rest.children : null} + + + + {title} + {message} + + + { + onCancel && onCancel(); + }} + > + {cancelText ?? 'Cancel'} + + { + onConfirm && onConfirm(); + }} + > + {confirmText ?? 'Continue'} + + + + + ); +} diff --git a/src/components/Notification/index.tsx b/src/components/Notification/index.tsx new file mode 100644 index 00000000..8da32913 --- /dev/null +++ b/src/components/Notification/index.tsx @@ -0,0 +1,3 @@ +import { default as Notification } from './Notification'; + +export default Notification; diff --git a/src/components/ProblemsOverview/ProblemsOverview.tsx b/src/components/ProblemsOverview/ProblemsOverview.tsx new file mode 100644 index 00000000..2a740999 --- /dev/null +++ b/src/components/ProblemsOverview/ProblemsOverview.tsx @@ -0,0 +1,72 @@ +import React from 'react'; +import { Frown, Meh, Smile, HelpCircle } from 'lucide-react'; +import { HoverCard, HoverCardContent, HoverCardTrigger } from '@/components/ui/hover-card'; + +import StatCard from '../StatCard'; + +type LagoonProblemsOverviewProps = { + problems: number; + critical: number; + high: number; + medium: number; + low: number; + skeleton?: false; +}; +type Props = + | LagoonProblemsOverviewProps + | { + skeleton: true; + }; + +const LagoonProblemsOverview: React.FC = (props) => { + if (props.skeleton) { + return ( +
+ {Array.from({ length: 5 }).map((_, i) => ( +
+ ))} +
+ ); + } + + const { problems, critical, high, medium, low } = props; + + const getStatusIcon = () => { + if (critical >= 1) return ; + if (high >= 1) return ; + if (medium >= 1 || low >= 1) return ; + + return ; + }; + + return ( +
+
+
{getStatusIcon()}
+
+

At a glance

+ + + + + + The summary of all the problems is shown here. + + +
+
+ +
+ + + + + +
+
+ ); +}; + +LagoonProblemsOverview.displayName = 'LagoonProblemsOverview'; +export default LagoonProblemsOverview; +export type { LagoonProblemsOverviewProps }; diff --git a/src/components/ProblemsOverview/index.tsx b/src/components/ProblemsOverview/index.tsx new file mode 100644 index 00000000..b986d08c --- /dev/null +++ b/src/components/ProblemsOverview/index.tsx @@ -0,0 +1,3 @@ +import { default as ProblemsOverview } from './ProblemsOverview'; + +export default ProblemsOverview; diff --git a/src/components/RootLayout/RootLayout.tsx b/src/components/RootLayout/RootLayout.tsx new file mode 100644 index 00000000..3b0c150a --- /dev/null +++ b/src/components/RootLayout/RootLayout.tsx @@ -0,0 +1,31 @@ +import React, { ReactNode } from 'react'; +import { SidebarProvider, SidebarTrigger } from '../ui/sidebar'; +import Sidenav from '../sidenav'; +import ThemeProvider from '@/providers/ThemeProvider'; +import { AppInfo, UserInfo } from '../sidenav/Sidenav'; + +interface RootLayoutProps { + userInfo: UserInfo; + appInfo: AppInfo; + children: ReactNode; + signOutFn: () => Promise; +} + +//** +// Root layout wrapping the whole app with the side navigation +// */ + +export default function RootLayout({ userInfo, appInfo, signOutFn, children }: RootLayoutProps) { + return ( + + + + +
+ + {children} +
+
+
+ ); +} diff --git a/src/components/RootLayout/index.tsx b/src/components/RootLayout/index.tsx new file mode 100644 index 00000000..cc2f7719 --- /dev/null +++ b/src/components/RootLayout/index.tsx @@ -0,0 +1,3 @@ +import { default as RootLayout } from './RootLayout'; + +export default RootLayout; diff --git a/src/components/Select/Select.tsx b/src/components/Select/Select.tsx new file mode 100644 index 00000000..cd5c413a --- /dev/null +++ b/src/components/Select/Select.tsx @@ -0,0 +1,44 @@ +import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from '../ui/select'; + +type Option = { label: string; value: string | number }; +type OptionGroup = { label: string; options: Option[] }; + +type SelectProps = Omit, 'disabled'> & { + placeholder: string; + options?: Option[] | OptionGroup[]; + disabled?: boolean; +}; + +function isOptionGroupArray(options: Option[] | OptionGroup[] | undefined): options is OptionGroup[] { + return Array.isArray(options) && 'options' in options[0]!; +} + +export default function SelectWithOptions({ placeholder, options, disabled, ...rest }: SelectProps) { + return ( + + ); +} diff --git a/src/components/Select/index.tsx b/src/components/Select/index.tsx new file mode 100644 index 00000000..06f33052 --- /dev/null +++ b/src/components/Select/index.tsx @@ -0,0 +1,3 @@ +import { default as SelectWithOptions } from './Select'; + +export default SelectWithOptions; diff --git a/src/components/StatCard/StatCard.tsx b/src/components/StatCard/StatCard.tsx new file mode 100644 index 00000000..dc71ba94 --- /dev/null +++ b/src/components/StatCard/StatCard.tsx @@ -0,0 +1,46 @@ +import React, { ReactNode } from 'react'; +import { Card, CardHeader, CardTitle, CardContent } from '../ui/card'; +import { cva } from 'class-variance-authority'; +import { cn } from '@/lib/utils'; + +type StatCardprops = { title: string; content: ReactNode; type?: 'default' | 'withIcon' | 'stat' }; + +export const cardVariants = cva('max-w-[160px] border rounded-lg flex flex-col justify-center', { + variants: { + type: { + default: 'h-[108px]', + withIcon: 'h-[125px] gap-2 p-6', + stat: 'w-[370px] max-w-[370px] h-[140px] gap-3 p-5', + }, + }, + defaultVariants: { + type: 'default', + }, +}); + +export default function StatCard({ type = 'default', title, content }: StatCardprops) { + return ( + + + + {title} + + + + {type === 'stat' ? ( +
{content}
+ ) : type === 'default' ? ( +

{content}

+ ) : ( + <>{content} + )} +
+
+ ); +} diff --git a/src/components/StatCard/index.tsx b/src/components/StatCard/index.tsx new file mode 100644 index 00000000..f8301138 --- /dev/null +++ b/src/components/StatCard/index.tsx @@ -0,0 +1,3 @@ +import { default as StatCard } from './StatCard'; + +export default StatCard; diff --git a/src/components/sidenav/Sidenav.tsx b/src/components/sidenav/Sidenav.tsx new file mode 100644 index 00000000..ae15ce0a --- /dev/null +++ b/src/components/sidenav/Sidenav.tsx @@ -0,0 +1,194 @@ +import React, { useEffect, useMemo, useState } from 'react'; +import { + Sidebar, + SidebarContent, + SidebarFooter, + SidebarGroup, + SidebarGroupContent, + SidebarGroupLabel, + SidebarHeader, + SidebarMenu, + SidebarMenuButton, + SidebarMenuItem, +} from '../ui/sidebar'; +import { BriefcaseBusiness, KeyRound, ServerCog, SquareTerminal, UserRoundCog } from 'lucide-react'; +import SidenavDropdown from './SidenavDropdown'; +import { genAvatarBackground, getCurrentPath } from '@/_util/helpers'; + +import { Avatar, AvatarImage } from '../ui/avatar'; +import { AvatarFallback } from '@radix-ui/react-avatar'; +import AvatarBubble from '../AvatarBubble/AvatarBubble'; +import { useLinkComponent } from '@/providers/NextLinkProvider'; + +type SidebarProps = React.ComponentProps; + +export type UserInfo = { + email: string; + image?: React.ImgHTMLAttributes['src']; + firstName?: string; + lastName?: string; +}; + +export type AppInfo = { + name: string; + version: string; + kcUrl: string; + logo?: React.ReactNode; +}; + +export type SidenavProps = SidebarProps & { + userInfo: UserInfo; + appInfo: AppInfo; + signOutFn: () => Promise; + currentPath?: string; +}; +export type NavItems = ReturnType; + +const getSidenavItems = (kcUrl: string, signOutFn: () => Promise) => [ + { + section: 'Projects', + sectionItems: [ + { + title: 'All Projects', + url: '/projects', + icon: SquareTerminal, + }, + ], + }, + { + section: 'Organizations', + sectionItems: [ + { + title: 'All Organizations', + url: '/organizations', + icon: BriefcaseBusiness, + }, + + { + title: 'All Deployments', + url: '/deployments', + icon: ServerCog, + }, + ], + }, + { + section: 'Settings', + sectionItems: [ + { + title: 'SSH Keys', + url: '/settings', + icon: KeyRound, + }, + { + title: 'My Account', + url: `${kcUrl}/account`, + target: 'blank', + onClick: signOutFn, + icon: UserRoundCog, + }, + ], + }, +]; + +export default function Sidenav({ userInfo, appInfo, currentPath, signOutFn, ...props }: SidenavProps) { + const Link = useLinkComponent(); + + const { firstName, lastName, image, email } = userInfo; + + const userImageExists = !!image; + + const firstLastProvided = !!(firstName && lastName); + + const avatarBg = firstLastProvided + ? genAvatarBackground(firstName.charAt(0), lastName.charAt(0)) + : genAvatarBackground(email.charAt(0), email.charAt(1)); + + const avatarInitials = firstLastProvided + ? firstName.charAt(0).toUpperCase() + lastName.charAt(0).toUpperCase() + : email.charAt(0).toUpperCase(); + + // show img + firstname lastnamea + // or avatarbg + firstname lastname + // or genericImage + user email + + const avatarToUse = userImageExists ? ( + + + Avatar + + ) : ( + + {avatarInitials} + + ); + + const userDisplayName = firstLastProvided ? ( + {`${firstName} ${lastName}`} + ) : ( + {email} + ); + + const sidenavItems = useMemo(() => { + return getSidenavItems(appInfo.kcUrl, signOutFn); + }, [appInfo.kcUrl, signOutFn]); + + const activePath = useMemo(() => getCurrentPath(sidenavItems, currentPath || ''), [sidenavItems, currentPath]); + + const sidenavProps = { ...appInfo, signOutFn }; + return ( + + + + + + + + + + + {sidenavItems.map((navItem) => { + return ( + + {navItem.section} + + {navItem.sectionItems.map((sectionItem) => { + const newTab = sectionItem.target === 'blank'; + const action = sectionItem.onClick; + return ( + + + { + action && (await action()); + }} + href={sectionItem.url} + target={newTab ? '_blank' : '_self'} + > + + {sectionItem.title} + + + + ); + })} + + + ); + })} + + + + + + + {avatarToUse} +
+ {userDisplayName} +
+
+
+
+
+
+ ); +} diff --git a/src/components/sidenav/SidenavDropdown.tsx b/src/components/sidenav/SidenavDropdown.tsx new file mode 100644 index 00000000..14107173 --- /dev/null +++ b/src/components/sidenav/SidenavDropdown.tsx @@ -0,0 +1,55 @@ +'use client'; +import React from 'react'; +import { ChevronsUpDown, LogOut, Sun, Moon } from 'lucide-react'; +import { useTheme } from 'next-themes'; +import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from '../ui/dropdown-menu'; +import { SidebarMenuButton } from '../ui/sidebar'; +import LagoonIcon from '../../icons/lagoon.svg'; +import { useLinkComponent } from '@/providers/NextLinkProvider'; +import { AppInfo } from './Sidenav'; + +type DropdownProps = AppInfo & { signOutFn: () => Promise }; + +export default function SidenavDropdown({ name, version, logo, signOutFn }: DropdownProps) { + const { setTheme, theme } = useTheme(); + + const Link = useLinkComponent(); + + return ( + + + +
+ {logo ? logo : } +
+
+ {name} + {version} +
+ + +
+
+ + {theme === 'dark' ? ( + setTheme('light')}> + + Light + + ) : ( + setTheme('dark')}> + + Dark + + )} + signOutFn()}> + + Sign Out + + +
+ ); +} diff --git a/src/components/sidenav/index.tsx b/src/components/sidenav/index.tsx new file mode 100644 index 00000000..26d2a4a9 --- /dev/null +++ b/src/components/sidenav/index.tsx @@ -0,0 +1,3 @@ +import { default as Sidenav } from './Sidenav'; + +export default Sidenav; diff --git a/src/components/ui/accordion.tsx b/src/components/ui/accordion.tsx index 1e09881d..5e62af45 100644 --- a/src/components/ui/accordion.tsx +++ b/src/components/ui/accordion.tsx @@ -12,7 +12,7 @@ function AccordionItem({ className, ...props }: React.ComponentProps ); @@ -20,17 +20,17 @@ function AccordionItem({ className, ...props }: React.ComponentProps) { return ( - + svg]:lib:rotate-180', + 'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180', className, )} {...props} > {children} - + ); @@ -40,10 +40,10 @@ function AccordionContent({ className, children, ...props }: React.ComponentProp return ( -
{children}
+
{children}
); } diff --git a/src/components/ui/alert-dialog.tsx b/src/components/ui/alert-dialog.tsx index 456d1473..9e309c6e 100644 --- a/src/components/ui/alert-dialog.tsx +++ b/src/components/ui/alert-dialog.tsx @@ -23,7 +23,7 @@ function AlertDialogOverlay({ className, ...props }: React.ComponentProps) return (
); @@ -61,7 +61,7 @@ function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>) return (
); @@ -71,7 +71,7 @@ function AlertDialogTitle({ className, ...props }: React.ComponentProps ); @@ -84,7 +84,7 @@ function AlertDialogDescription({ return ( ); diff --git a/src/components/ui/alert.tsx b/src/components/ui/alert.tsx index 54d3f2dc..a482b7ac 100644 --- a/src/components/ui/alert.tsx +++ b/src/components/ui/alert.tsx @@ -4,13 +4,13 @@ import { cva, type VariantProps } from 'class-variance-authority'; import { cn } from '@/lib/utils'; const alertVariants = cva( - 'lib:relative lib:w-full lib:rounded-lg lib:border lib:px-4 lib:py-3 lib:text-sm lib:grid has-[>svg]:lib:grid-cols-[calc(var(--spacing)*4)_1fr] lib:grid-cols-[0_1fr] has-[>svg]:lib:gap-x-3 lib:gap-y-0.5 lib:items-start [&>svg]:lib:size-4 [&>svg]:lib:translate-y-0.5 [&>svg]:lib:text-current', + 'relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current', { variants: { variant: { - default: 'lib:bg-card lib:text-card-foreground', + default: 'bg-card text-card-foreground', destructive: - 'lib:text-destructive lib:bg-card [&>svg]:lib:text-current *:data-[slot=alert-description]:lib:text-destructive/90', + 'text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90', }, }, defaultVariants: { @@ -27,7 +27,7 @@ function AlertTitle({ className, ...props }: React.ComponentProps<'div'>) { return (
); @@ -38,7 +38,7 @@ function AlertDescription({ className, ...props }: React.ComponentProps<'div'>)
); @@ -17,11 +17,7 @@ function Avatar({ className, ...props }: React.ComponentProps) { return ( - + ); } @@ -29,10 +25,7 @@ function AvatarFallback({ className, ...props }: React.ComponentProps ); diff --git a/src/components/ui/badge.tsx b/src/components/ui/badge.tsx index 47927367..01f8e18a 100644 --- a/src/components/ui/badge.tsx +++ b/src/components/ui/badge.tsx @@ -5,16 +5,15 @@ import { cva, type VariantProps } from 'class-variance-authority'; import { cn } from '@/lib/utils'; const badgeVariants = cva( - 'lib:inline-flex lib:items-center lib:justify-center lib:rounded-md lib:border lib:px-2 lib:py-0.5 lib:text-xs lib:font-medium lib:w-fit lib:whitespace-nowrap lib:shrink-0 [&>svg]:lib:size-3 lib:gap-1 [&>svg]:lib:pointer-events-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive lib:transition-[color,box-shadow] lib:overflow-hidden', + 'inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden', { variants: { variant: { - default: 'lib:border-transparent lib:bg-primary lib:text-primary-foreground [a&]:hover:lib:bg-primary/90', - secondary: - 'lib:border-transparent lib:bg-secondary lib:text-secondary-foreground [a&]:hover:lib:bg-secondary/90', + default: 'border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90', + secondary: 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90', destructive: - 'lib:border-transparent lib:bg-destructive lib:text-white [a&]:hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60', - outline: 'lib:text-foreground [a&]:hover:lib:bg-accent [a&]:hover:lib:text-accent-foreground', + 'border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60', + outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground', }, }, defaultVariants: { diff --git a/src/components/ui/breadcrumb.tsx b/src/components/ui/breadcrumb.tsx index d5dd30a7..36d16453 100644 --- a/src/components/ui/breadcrumb.tsx +++ b/src/components/ui/breadcrumb.tsx @@ -13,7 +13,7 @@ function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>) {
    ) { } function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>) { - return ( -
  1. - ); + return
  2. ; } function BreadcrumbLink({ @@ -41,11 +35,7 @@ function BreadcrumbLink({ const Comp = asChild ? Slot : 'a'; return ( - + ); } @@ -56,7 +46,7 @@ function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>) { role="link" aria-disabled="true" aria-current="page" - className={cn('lib:text-foreground lib:font-normal', className)} + className={cn('text-foreground font-normal', className)} {...props} /> ); @@ -68,7 +58,7 @@ function BreadcrumbSeparator({ children, className, ...props }: React.ComponentP data-slot="breadcrumb-separator" role="presentation" aria-hidden="true" - className={cn('[&>svg]:lib:size-3.5', className)} + className={cn('[&>svg]:size-3.5', className)} {...props} > {children ?? } @@ -82,11 +72,11 @@ function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span' data-slot="breadcrumb-ellipsis" role="presentation" aria-hidden="true" - className={cn('lib:flex lib:size-9 lib:items-center lib:justify-center', className)} + className={cn('flex size-9 items-center justify-center', className)} {...props} > - - More + + More ); } diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index 126b0e14..f3c419d7 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -5,24 +5,24 @@ import { cva, type VariantProps } from 'class-variance-authority'; import { cn } from '@/lib/utils'; const buttonVariants = cva( - 'lib:inline-flex lib:items-center lib:justify-center lib:gap-2 lib:whitespace-nowrap lib:rounded-md lib:text-sm lib:font-medium lib:transition-all disabled:lib:pointer-events-none disabled:lib:opacity-50 [&_svg]:lib:pointer-events-none [&_svg:not([class*=size-])]:lib:size-4 lib:shrink-0 [&_svg]:lib:shrink-0 lib:outline-none focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px] aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive', + "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", { variants: { variant: { - default: 'lib:bg-primary lib:text-primary-foreground lib:shadow-xs hover:lib:bg-primary/90', + default: 'bg-primary text-primary-foreground shadow-xs hover:bg-primary/90', destructive: - 'lib:bg-destructive lib:text-white lib:shadow-xs hover:lib:bg-destructive/90 focus-visible:lib:ring-destructive/20 dark:focus-visible:lib:ring-destructive/40 dark:lib:bg-destructive/60', + 'bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60', outline: - 'lib:border lib:bg-background lib:shadow-xs hover:lib:bg-accent hover:lib:text-accent-foreground dark:lib:bg-input/30 dark:lib:border-input dark:hover:lib:bg-input/50', - secondary: 'lib:bg-secondary lib:text-secondary-foreground lib:shadow-xs hover:lib:bg-secondary/80', - ghost: 'hover:lib:bg-accent hover:lib:text-accent-foreground dark:hover:lib:bg-accent/50', - link: 'lib:text-primary lib:underline-offset-4 hover:lib:underline', + 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50', + secondary: 'bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80', + ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50', + link: 'text-primary underline-offset-4 hover:underline', }, size: { - default: 'lib:h-9 lib:px-4 lib:py-2 has-[>svg]:lib:px-3', - sm: 'lib:h-8 lib:rounded-md lib:gap-1.5 lib:px-3 has-[>svg]:lib:px-2.5', - lg: 'lib:h-10 lib:rounded-md lib:px-6 has-[>svg]:lib:px-4', - icon: 'lib:size-9', + default: 'h-9 px-4 py-2 has-[>svg]:px-3', + sm: 'h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5', + lg: 'h-10 rounded-md px-6 has-[>svg]:px-4', + icon: 'size-9', }, }, defaultVariants: { diff --git a/src/components/ui/calendar.tsx b/src/components/ui/calendar.tsx index 0e4541eb..5ed5f5ab 100644 --- a/src/components/ui/calendar.tsx +++ b/src/components/ui/calendar.tsx @@ -1,59 +1,156 @@ import * as React from 'react'; -import { ChevronLeft, ChevronRight } from 'lucide-react'; -import { DayPicker } from 'react-day-picker'; +import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon } from 'lucide-react'; +import { DayButton, DayPicker, getDefaultClassNames } from 'react-day-picker'; import { cn } from '@/lib/utils'; -import { buttonVariants } from '@/components/ui/button'; +import { Button, buttonVariants } from '@/components/ui/button'; + +function Calendar({ + className, + classNames, + showOutsideDays = true, + captionLayout = 'label', + buttonVariant = 'ghost', + formatters, + components, + ...props +}: React.ComponentProps & { + buttonVariant?: React.ComponentProps['variant']; +}) { + const defaultClassNames = getDefaultClassNames(); -function Calendar({ className, classNames, showOutsideDays = true, ...props }: React.ComponentProps) { return ( svg]:rotate-180`, + String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, + className, + )} + captionLayout={captionLayout} + formatters={{ + formatMonthDropdown: (date) => date.toLocaleString('default', { month: 'short' }), + ...formatters, + }} classNames={{ - months: 'lib:flex lib:flex-col sm:lib:flex-row lib:gap-2', - month: 'lib:flex lib:flex-col lib:gap-4', - caption: 'lib:flex lib:justify-center lib:pt-1 lib:relative lib:items-center lib:w-full', - caption_label: 'lib:text-sm lib:font-medium', - nav: 'lib:flex lib:items-center lib:gap-1', - nav_button: cn( - buttonVariants({ variant: 'outline' }), - 'lib:size-7 lib:bg-transparent lib:p-0 lib:opacity-50 hover:lib:opacity-100', - ), - nav_button_previous: 'lib:absolute lib:left-1', - nav_button_next: 'lib:absolute lib:right-1', - table: 'lib:w-full lib:border-collapse lib:space-x-1', - head_row: 'lib:flex', - head_cell: 'lib:text-muted-foreground lib:rounded-md lib:w-8 lib:font-normal lib:text-[0.8rem]', - row: 'lib:flex lib:w-full lib:mt-2', - cell: cn( - 'lib:relative lib:p-0 lib:text-center lib:text-sm focus-within:lib:relative focus-within:lib:z-20 [&:has([aria-selected])]:lib:bg-accent [&:has([aria-selected].day-range-end)]:lib:rounded-r-md', - props.mode === 'range' - ? '[&:has(>.day-range-end)]:lib:rounded-r-md [&:has(>.day-range-start)]:lib:rounded-l-md first:[&:has([aria-selected])]:lib:rounded-l-md last:[&:has([aria-selected])]:lib:rounded-r-md' - : '[&:has([aria-selected])]:lib:rounded-md', + root: cn('w-fit', defaultClassNames.root), + months: cn('flex gap-4 flex-col md:flex-row relative', defaultClassNames.months), + month: cn('flex flex-col w-full gap-4', defaultClassNames.month), + nav: cn('flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between', defaultClassNames.nav), + button_previous: cn( + buttonVariants({ variant: buttonVariant }), + 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none', + defaultClassNames.button_previous, + ), + button_next: cn( + buttonVariants({ variant: buttonVariant }), + 'size-(--cell-size) aria-disabled:opacity-50 p-0 select-none', + defaultClassNames.button_next, + ), + month_caption: cn( + 'flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)', + defaultClassNames.month_caption, + ), + dropdowns: cn( + 'w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5', + defaultClassNames.dropdowns, ), + dropdown_root: cn( + 'relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md', + defaultClassNames.dropdown_root, + ), + dropdown: cn('absolute inset-0 opacity-0', defaultClassNames.dropdown), + caption_label: cn( + 'select-none font-medium', + captionLayout === 'label' + ? 'text-sm' + : 'rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5', + defaultClassNames.caption_label, + ), + table: 'w-full border-collapse', + weekdays: cn('flex', defaultClassNames.weekdays), + weekday: cn( + 'text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none', + defaultClassNames.weekday, + ), + week: cn('flex w-full mt-2', defaultClassNames.week), + week_number_header: cn('select-none w-(--cell-size)', defaultClassNames.week_number_header), + week_number: cn('text-[0.8rem] select-none text-muted-foreground', defaultClassNames.week_number), day: cn( - buttonVariants({ variant: 'ghost' }), - 'lib:size-8 lib:p-0 lib:font-normal aria-selected:lib:opacity-100', - ), - day_range_start: 'lib:day-range-start aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground', - day_range_end: 'lib:day-range-end aria-selected:lib:bg-primary aria-selected:lib:text-primary-foreground', - day_selected: - 'lib:bg-primary lib:text-primary-foreground hover:lib:bg-primary hover:lib:text-primary-foreground focus:lib:bg-primary focus:lib:text-primary-foreground', - day_today: 'lib:bg-accent lib:text-accent-foreground', - day_outside: 'lib:day-outside lib:text-muted-foreground aria-selected:lib:text-muted-foreground', - day_disabled: 'lib:text-muted-foreground lib:opacity-50', - day_range_middle: 'aria-selected:lib:bg-accent aria-selected:lib:text-accent-foreground', - day_hidden: 'lib:invisible', + 'relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none', + defaultClassNames.day, + ), + range_start: cn('rounded-l-md bg-accent', defaultClassNames.range_start), + range_middle: cn('rounded-none', defaultClassNames.range_middle), + range_end: cn('rounded-r-md bg-accent', defaultClassNames.range_end), + today: cn( + 'bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none', + defaultClassNames.today, + ), + outside: cn('text-muted-foreground aria-selected:text-muted-foreground', defaultClassNames.outside), + disabled: cn('text-muted-foreground opacity-50', defaultClassNames.disabled), + hidden: cn('invisible', defaultClassNames.hidden), ...classNames, }} components={{ - IconLeft: ({ className, ...props }) => , - IconRight: ({ className, ...props }) => , + Root: ({ className, rootRef, ...props }) => { + return
    ; + }, + Chevron: ({ className, orientation, ...props }) => { + if (orientation === 'left') { + return ; + } + + if (orientation === 'right') { + return ; + } + + return ; + }, + DayButton: CalendarDayButton, + WeekNumber: ({ children, ...props }) => { + return ( + +
    {children}
    + + ); + }, + ...components, }} {...props} /> ); } -export { Calendar }; +function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps) { + const defaultClassNames = getDefaultClassNames(); + + const ref = React.useRef(null); + React.useEffect(() => { + if (modifiers.focused) ref.current?.focus(); + }, [modifiers.focused]); + + return ( + ); } @@ -204,10 +197,10 @@ function CarouselNext({ variant={variant} size={size} className={cn( - 'lib:absolute lib:size-8 lib:rounded-full', + 'absolute size-8 rounded-full', orientation === 'horizontal' - ? 'lib:top-1/2 lib:-right-12 lib:-translate-y-1/2' - : 'lib:-bottom-12 lib:left-1/2 lib:-translate-x-1/2 lib:rotate-90', + ? 'top-1/2 -right-12 -translate-y-1/2' + : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90', className, )} disabled={!canScrollNext} @@ -215,7 +208,7 @@ function CarouselNext({ {...props} > - Next slide + Next slide ); } diff --git a/src/components/ui/chart.tsx b/src/components/ui/chart.tsx index 8ea6b1a5..7e4844e8 100644 --- a/src/components/ui/chart.tsx +++ b/src/components/ui/chart.tsx @@ -48,7 +48,7 @@ function ChartContainer({ data-slot="chart" data-chart={chartId} className={cn( - '[&_.recharts-cartesian-axis-tick_text]:lib:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke=#ccc]]:lib:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:lib:stroke-border [&_.recharts-polar-grid_[stroke=#ccc]]:lib:stroke-border [&_.recharts-radial-bar-background-sector]:lib:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:lib:fill-muted [&_.recharts-reference-line_[stroke=#ccc]]:lib:stroke-border lib:flex lib:aspect-video lib:justify-center lib:text-xs [&_.recharts-dot[stroke=#fff]]:lib:stroke-transparent [&_.recharts-layer]:lib:outline-hidden [&_.recharts-sector]:lib:outline-hidden [&_.recharts-sector[stroke=#fff]]:lib:stroke-transparent [&_.recharts-surface]:lib:outline-hidden', + "[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden", className, )} {...props} @@ -127,14 +127,14 @@ function ChartTooltipContent({ !labelKey && typeof label === 'string' ? config[label as keyof typeof config]?.label || label : itemConfig?.label; if (labelFormatter) { - return
    {labelFormatter(value, payload)}
    ; + return
    {labelFormatter(value, payload)}
    ; } if (!value) { return null; } - return
    {value}
    ; + return
    {value}
    ; }, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]); if (!active || !payload?.length) { @@ -146,12 +146,12 @@ function ChartTooltipContent({ return (
    {!nestLabel ? tooltipLabel : null} -
    +
    {payload.map((item, index) => { const key = `${nameKey || item.name || item.dataKey || 'value'}`; const itemConfig = getPayloadConfigFromPayload(config, item, key); @@ -161,8 +161,8 @@ function ChartTooltipContent({
    svg]:lib:text-muted-foreground lib:flex lib:w-full lib:flex-wrap lib:items-stretch lib:gap-2 [&>svg]:lib:h-2.5 [&>svg]:lib:w-2.5', - indicator === 'dot' && 'lib:items-center', + '[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5', + indicator === 'dot' && 'items-center', )} > {formatter && item?.value !== undefined && item.name ? ( @@ -174,15 +174,12 @@ function ChartTooltipContent({ ) : ( !hideIndicator && (
    -
    +
    {nestLabel ? tooltipLabel : null} - {itemConfig?.label || item.name} + {itemConfig?.label || item.name}
    {item.value && ( - + {item.value.toLocaleString()} )} @@ -238,13 +232,7 @@ function ChartLegendContent({ } return ( -
    +
    {payload.map((item) => { const key = `${nameKey || item.dataKey || 'value'}`; const itemConfig = getPayloadConfigFromPayload(config, item, key); @@ -252,15 +240,13 @@ function ChartLegendContent({ return (
    svg]:lib:text-muted-foreground lib:flex lib:items-center lib:gap-1.5 [&>svg]:lib:h-3 [&>svg]:lib:w-3', - )} + className={cn('[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3')} > {itemConfig?.icon && !hideIcon ? ( ) : (
    - + ); diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsx index 76a74802..770db6da 100644 --- a/src/components/ui/command.tsx +++ b/src/components/ui/command.tsx @@ -12,7 +12,7 @@ function Command({ className, ...props }: React.ComponentProps & { title?: string; description?: string; + className?: string; + showCloseButton?: boolean; }) { return ( - + {title} {description} - - + + {children} @@ -46,15 +50,12 @@ function CommandDialog({ function CommandInput({ className, ...props }: React.ComponentProps) { return ( -
    - +
    + ); } function CommandEmpty({ ...props }: React.ComponentProps) { - return ( - - ); + return ; } function CommandGroup({ className, ...props }: React.ComponentProps) { @@ -84,7 +83,7 @@ function CommandGroup({ className, ...props }: React.ComponentProps ); @@ -107,7 +106,7 @@ function CommandItem({ className, ...props }: React.ComponentProps) return ( ); diff --git a/src/components/ui/context-menu.tsx b/src/components/ui/context-menu.tsx index 3e594e7d..e24c0efb 100644 --- a/src/components/ui/context-menu.tsx +++ b/src/components/ui/context-menu.tsx @@ -43,13 +43,13 @@ function ContextMenuSubTrigger({ data-slot="context-menu-sub-trigger" data-inset={inset} className={cn( - 'focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4', + "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className, )} {...props} > {children} - + ); } @@ -59,7 +59,7 @@ function ContextMenuSubContent({ className, ...props }: React.ComponentProps - + - + {children} @@ -140,14 +140,14 @@ function ContextMenuRadioItem({ - + - + {children} @@ -166,10 +166,7 @@ function ContextMenuLabel({ ); @@ -179,7 +176,7 @@ function ContextMenuSeparator({ className, ...props }: React.ComponentProps ); @@ -189,7 +186,7 @@ function ContextMenuShortcut({ className, ...props }: React.ComponentProps<'span return ( ); diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 811f78b2..797adb7e 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -25,7 +25,7 @@ function DialogOverlay({ className, ...props }: React.ComponentProps) { +function DialogContent({ + className, + children, + showCloseButton = true, + ...props +}: React.ComponentProps & { + showCloseButton?: boolean; +}) { return ( {children} - - - Close - + {showCloseButton && ( + + + Close + + )} ); @@ -59,7 +71,7 @@ function DialogHeader({ className, ...props }: React.ComponentProps<'div'>) { return (
    ); @@ -69,7 +81,7 @@ function DialogFooter({ className, ...props }: React.ComponentProps<'div'>) { return (
    ); @@ -79,7 +91,7 @@ function DialogTitle({ className, ...props }: React.ComponentProps ); @@ -89,7 +101,7 @@ function DialogDescription({ className, ...props }: React.ComponentProps ); diff --git a/src/components/ui/drawer.tsx b/src/components/ui/drawer.tsx index 7ce2d1b0..5b410003 100644 --- a/src/components/ui/drawer.tsx +++ b/src/components/ui/drawer.tsx @@ -24,7 +24,7 @@ function DrawerOverlay({ className, ...props }: React.ComponentProps -
    +
    {children} @@ -56,26 +56,27 @@ function DrawerContent({ className, children, ...props }: React.ComponentProps) { - return ( -
    - ); -} - -function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) { return (
    ); } +function DrawerFooter({ className, ...props }: React.ComponentProps<'div'>) { + return
    ; +} + function DrawerTitle({ className, ...props }: React.ComponentProps) { return ( ); @@ -85,7 +86,7 @@ function DrawerDescription({ className, ...props }: React.ComponentProps ); diff --git a/src/components/ui/dropdown-menu.tsx b/src/components/ui/dropdown-menu.tsx index 98f5a9ef..7c319c91 100644 --- a/src/components/ui/dropdown-menu.tsx +++ b/src/components/ui/dropdown-menu.tsx @@ -29,7 +29,7 @@ function DropdownMenuContent({ data-slot="dropdown-menu-content" sideOffset={sideOffset} className={cn( - 'lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:max-h-(--radix-dropdown-menu-content-available-height) lib:min-w-[8rem] lib:origin-(--radix-dropdown-menu-content-transform-origin) lib:overflow-x-hidden lib:overflow-y-auto lib:rounded-md lib:border lib:p-1 lib:shadow-md', + 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md', className, )} {...props} @@ -57,7 +57,7 @@ function DropdownMenuItem({ data-inset={inset} data-variant={variant} className={cn( - 'focus:lib:bg-accent focus:lib:text-accent-foreground data-[variant=destructive]:lib:text-destructive data-[variant=destructive]:focus:lib:bg-destructive/10 dark:data-[variant=destructive]:focus:lib:bg-destructive/20 data-[variant=destructive]:focus:lib:text-destructive data-[variant=destructive]:*:[svg]:lib:!text-destructive [&_svg:not([class*=text-])]:lib:text-muted-foreground lib:relative lib:flex lib:cursor-default lib:items-center lib:gap-2 lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[disabled]:lib:pointer-events-none data-[disabled]:lib:opacity-50 data-[inset]:lib:pl-8 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4', + "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className, )} {...props} @@ -75,15 +75,15 @@ function DropdownMenuCheckboxItem({ - + - + {children} @@ -104,14 +104,14 @@ function DropdownMenuRadioItem({ - + - + {children} @@ -130,7 +130,7 @@ function DropdownMenuLabel({ ); @@ -140,7 +140,7 @@ function DropdownMenuSeparator({ className, ...props }: React.ComponentProps ); @@ -150,7 +150,7 @@ function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<'spa return ( ); @@ -173,13 +173,13 @@ function DropdownMenuSubTrigger({ data-slot="dropdown-menu-sub-trigger" data-inset={inset} className={cn( - 'focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-hidden lib:select-none data-[inset]:lib:pl-8', + 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8', className, )} {...props} > {children} - + ); } @@ -192,7 +192,7 @@ function DropdownMenuSubContent({ ) { return ( -
    +
    ); } @@ -84,7 +84,7 @@ function FormLabel({ className, ...props }: React.ComponentProps @@ -112,7 +112,7 @@ function FormDescription({ className, ...props }: React.ComponentProps<'p'>) {

    ); @@ -127,12 +127,7 @@ function FormMessage({ className, ...props }: React.ComponentProps<'p'>) { } return ( -

    +

    {body}

    ); diff --git a/src/components/ui/hover-card.tsx b/src/components/ui/hover-card.tsx index d1bc50f0..363dbe7a 100644 --- a/src/components/ui/hover-card.tsx +++ b/src/components/ui/hover-card.tsx @@ -24,7 +24,7 @@ function HoverCardContent({ align={align} sideOffset={sideOffset} className={cn( - 'lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-64 lib:origin-(--radix-hover-card-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden', + 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden', className, )} {...props} diff --git a/src/components/ui/input-otp.tsx b/src/components/ui/input-otp.tsx index 9ec0f83a..d5fffcbb 100644 --- a/src/components/ui/input-otp.tsx +++ b/src/components/ui/input-otp.tsx @@ -17,14 +17,14 @@ function InputOTP({ ); } function InputOTPGroup({ className, ...props }: React.ComponentProps<'div'>) { - return
    ; + return
    ; } function InputOTPSlot({ @@ -42,15 +42,15 @@ function InputOTPSlot({ data-slot="input-otp-slot" data-active={isActive} className={cn( - 'data-[active=true]:lib:border-ring data-[active=true]:lib:ring-ring/50 data-[active=true]:aria-invalid:lib:ring-destructive/20 dark:data-[active=true]:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive data-[active=true]:aria-invalid:lib:border-destructive dark:lib:bg-input/30 lib:border-input lib:relative lib:flex lib:h-9 lib:w-9 lib:items-center lib:justify-center lib:border-y lib:border-r lib:text-sm lib:shadow-xs lib:transition-all lib:outline-none first:lib:rounded-l-md first:lib:border-l last:lib:rounded-r-md data-[active=true]:lib:z-10 data-[active=true]:lib:ring-[3px]', + 'data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]', className, )} {...props} > {char} {hasFakeCaret && ( -
    -
    +
    +
    )}
    diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx index 9c33b012..34e38112 100644 --- a/src/components/ui/input.tsx +++ b/src/components/ui/input.tsx @@ -8,9 +8,9 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) { type={type} data-slot="input" className={cn( - 'file:lib:text-foreground placeholder:lib:text-muted-foreground selection:lib:bg-primary selection:lib:text-primary-foreground dark:lib:bg-input/30 lib:border-input lib:flex lib:h-9 lib:w-full lib:min-w-0 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-1 lib:text-base lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none file:lib:inline-flex file:lib:h-7 file:lib:border-0 file:lib:bg-transparent file:lib:text-sm file:lib:font-medium disabled:lib:pointer-events-none disabled:lib:cursor-not-allowed disabled:lib:opacity-50 md:lib:text-sm', - 'focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 focus-visible:lib:ring-[3px]', - 'aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive', + 'file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', + 'focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]', + 'aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive', className, )} {...props} diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx index f5a46458..d223ff26 100644 --- a/src/components/ui/label.tsx +++ b/src/components/ui/label.tsx @@ -10,7 +10,7 @@ function Label({ className, ...props }: React.ComponentProps ); @@ -38,7 +35,7 @@ function MenubarTrigger({ className, ...props }: React.ComponentProps - + - + {children} @@ -124,14 +121,14 @@ function MenubarRadioItem({ className, children, ...props }: React.ComponentProp - + - + {children} @@ -150,7 +147,7 @@ function MenubarLabel({ ); @@ -160,7 +157,7 @@ function MenubarSeparator({ className, ...props }: React.ComponentProps ); @@ -170,7 +167,7 @@ function MenubarShortcut({ className, ...props }: React.ComponentProps<'span'>) return ( ); @@ -193,13 +190,13 @@ function MenubarSubTrigger({ data-slot="menubar-sub-trigger" data-inset={inset} className={cn( - 'focus:lib:bg-accent focus:lib:text-accent-foreground data-[state=open]:lib:bg-accent data-[state=open]:lib:text-accent-foreground lib:flex lib:cursor-default lib:items-center lib:rounded-sm lib:px-2 lib:py-1.5 lib:text-sm lib:outline-none lib:select-none data-[inset]:lib:pl-8', + 'focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8', className, )} {...props} > {children} - + ); } @@ -209,7 +206,7 @@ function MenubarSubContent({ className, ...props }: React.ComponentProps {children} @@ -33,10 +30,7 @@ function NavigationMenuList({ className, ...props }: React.ComponentProps ); @@ -44,16 +38,12 @@ function NavigationMenuList({ className, ...props }: React.ComponentProps) { return ( - + ); } const navigationMenuTriggerStyle = cva( - 'lib:group lib:inline-flex lib:h-9 lib:w-max lib:items-center lib:justify-center lib:rounded-md lib:bg-background lib:px-4 lib:py-2 lib:text-sm lib:font-medium hover:lib:bg-accent hover:lib:text-accent-foreground focus:lib:bg-accent focus:lib:text-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 data-[state=open]:hover:lib:bg-accent data-[state=open]:lib:text-accent-foreground data-[state=open]:focus:lib:bg-accent data-[state=open]:lib:bg-accent/50 focus-visible:lib:ring-ring/50 lib:outline-none lib:transition-[color,box-shadow] focus-visible:lib:ring-[3px] focus-visible:lib:outline-1', + 'group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1', ); function NavigationMenuTrigger({ @@ -64,12 +54,12 @@ function NavigationMenuTrigger({ return ( {children}{' '} @@ -81,8 +71,8 @@ function NavigationMenuContent({ className, ...props }: React.ComponentProps) { return ( -
    +
    -
    +
    ); } diff --git a/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsx index fb73ad5a..5b739add 100644 --- a/src/components/ui/pagination.tsx +++ b/src/components/ui/pagination.tsx @@ -10,20 +10,14 @@ function Pagination({ className, ...props }: React.ComponentProps<'nav'>) { role="navigation" aria-label="pagination" data-slot="pagination" - className={cn('lib:mx-auto lib:flex lib:w-full lib:justify-center', className)} + className={cn('mx-auto flex w-full justify-center', className)} {...props} /> ); } function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>) { - return ( -
      - ); + return
        ; } function PaginationItem({ ...props }: React.ComponentProps<'li'>) { @@ -58,11 +52,11 @@ function PaginationPrevious({ className, ...props }: React.ComponentProps - Previous + Previous ); } @@ -72,10 +66,10 @@ function PaginationNext({ className, ...props }: React.ComponentProps - Next + Next ); @@ -86,11 +80,11 @@ function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span' - - More pages + + More pages ); } diff --git a/src/components/ui/popover.tsx b/src/components/ui/popover.tsx index ef9778d2..1d680b3b 100644 --- a/src/components/ui/popover.tsx +++ b/src/components/ui/popover.tsx @@ -26,7 +26,7 @@ function PopoverContent({ align={align} sideOffset={sideOffset} className={cn( - 'lib:bg-popover lib:text-popover-foreground data-[state=open]:lib:animate-in data-[state=closed]:lib:animate-out data-[state=closed]:lib:fade-out-0 data-[state=open]:lib:fade-in-0 data-[state=closed]:lib:zoom-out-95 data-[state=open]:lib:zoom-in-95 data-[side=bottom]:lib:slide-in-from-top-2 data-[side=left]:lib:slide-in-from-right-2 data-[side=right]:lib:slide-in-from-left-2 data-[side=top]:lib:slide-in-from-bottom-2 lib:z-50 lib:w-72 lib:origin-(--radix-popover-content-transform-origin) lib:rounded-md lib:border lib:p-4 lib:shadow-md lib:outline-hidden', + 'bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden', className, )} {...props} diff --git a/src/components/ui/progress.tsx b/src/components/ui/progress.tsx index 3aa4c105..11a358f6 100644 --- a/src/components/ui/progress.tsx +++ b/src/components/ui/progress.tsx @@ -7,15 +7,12 @@ function Progress({ className, value, ...props }: React.ComponentProps diff --git a/src/components/ui/radio-group.tsx b/src/components/ui/radio-group.tsx index 50c330fd..38ca206b 100644 --- a/src/components/ui/radio-group.tsx +++ b/src/components/ui/radio-group.tsx @@ -7,9 +7,7 @@ import { CircleIcon } from 'lucide-react'; import { cn } from '@/lib/utils'; function RadioGroup({ className, ...props }: React.ComponentProps) { - return ( - - ); + return ; } function RadioGroupItem({ className, ...props }: React.ComponentProps) { @@ -17,16 +15,16 @@ function RadioGroupItem({ className, ...props }: React.ComponentProps - + ); diff --git a/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx index e5ca5ae4..bc5fe3cb 100644 --- a/src/components/ui/resizable.tsx +++ b/src/components/ui/resizable.tsx @@ -8,7 +8,7 @@ function ResizablePanelGroup({ className, ...props }: React.ComponentProps ); @@ -29,14 +29,14 @@ function ResizableHandle({ div]:lib:rotate-90', + 'bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90', className, )} {...props} > {withHandle && ( -
        - +
        +
        )} diff --git a/src/components/ui/scroll-area.tsx b/src/components/ui/scroll-area.tsx index 9f0286b8..a3a39e8a 100644 --- a/src/components/ui/scroll-area.tsx +++ b/src/components/ui/scroll-area.tsx @@ -7,10 +7,10 @@ import { cn } from '@/lib/utils'; function ScrollArea({ className, children, ...props }: React.ComponentProps) { return ( - + {children} @@ -30,16 +30,16 @@ function ScrollBar({ data-slot="scroll-area-scrollbar" orientation={orientation} className={cn( - 'lib:flex lib:touch-none lib:p-px lib:transition-colors lib:select-none', - orientation === 'vertical' && 'lib:h-full lib:w-2.5 lib:border-l lib:border-l-transparent', - orientation === 'horizontal' && 'lib:h-2.5 lib:flex-col lib:border-t lib:border-t-transparent', + 'flex touch-none p-px transition-colors select-none', + orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent', + orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent', className, )} {...props} > ); diff --git a/src/components/ui/select.tsx b/src/components/ui/select.tsx index e794fb7f..3a838947 100644 --- a/src/components/ui/select.tsx +++ b/src/components/ui/select.tsx @@ -29,14 +29,14 @@ function SelectTrigger({ data-slot="select-trigger" data-size={size} className={cn( - 'lib:border-input data-[placeholder]:lib:text-muted-foreground [&_svg:not([class*=text-])]:lib:text-muted-foreground focus-visible:lib:border-ring focus-visible:lib:ring-ring/50 aria-invalid:lib:ring-destructive/20 dark:aria-invalid:lib:ring-destructive/40 aria-invalid:lib:border-destructive dark:lib:bg-input/30 dark:hover:lib:bg-input/50 lib:flex lib:w-fit lib:items-center lib:justify-between lib:gap-2 lib:rounded-md lib:border lib:bg-transparent lib:px-3 lib:py-2 lib:text-sm lib:whitespace-nowrap lib:shadow-xs lib:transition-[color,box-shadow] lib:outline-none focus-visible:lib:ring-[3px] disabled:lib:cursor-not-allowed disabled:lib:opacity-50 data-[size=default]:lib:h-9 data-[size=sm]:lib:h-8 *:data-[slot=select-value]:lib:line-clamp-1 *:data-[slot=select-value]:lib:flex *:data-[slot=select-value]:lib:items-center *:data-[slot=select-value]:lib:gap-2 [&_svg]:lib:pointer-events-none [&_svg]:lib:shrink-0 [&_svg:not([class*=size-])]:lib:size-4', + "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className, )} {...props} > {children} - + ); @@ -53,9 +53,9 @@ function SelectContent({ {children} @@ -81,7 +81,7 @@ function SelectLabel({ className, ...props }: React.ComponentProps ); @@ -92,14 +92,14 @@ function SelectItem({ className, children, ...props }: React.ComponentProps - + - + {children} @@ -111,7 +111,7 @@ function SelectSeparator({ className, ...props }: React.ComponentProps ); @@ -121,10 +121,10 @@ function SelectScrollUpButton({ className, ...props }: React.ComponentProps - + ); } @@ -136,10 +136,10 @@ function SelectScrollDownButton({ return ( - + ); } diff --git a/src/components/ui/separator.tsx b/src/components/ui/separator.tsx index 29cb88a1..aea66479 100644 --- a/src/components/ui/separator.tsx +++ b/src/components/ui/separator.tsx @@ -13,11 +13,11 @@ function Separator({ }: React.ComponentProps) { return ( {children} - - - Close + + + Close @@ -71,26 +71,18 @@ function SheetContent({ } function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) { - return ( -
        - ); + return
        ; } function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) { - return ( -
        - ); + return
        ; } function SheetTitle({ className, ...props }: React.ComponentProps) { return ( ); @@ -100,7 +92,7 @@ function SheetDescription({ className, ...props }: React.ComponentProps ); diff --git a/src/components/ui/sidebar.tsx b/src/components/ui/sidebar.tsx index 86c8b66e..1f22d5e5 100644 --- a/src/components/ui/sidebar.tsx +++ b/src/components/ui/sidebar.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { Slot } from '@radix-ui/react-slot'; -import { VariantProps, cva } from 'class-variance-authority'; +import { cva, VariantProps } from 'class-variance-authority'; import { PanelLeftIcon } from 'lucide-react'; import { useIsMobile } from '@/hooks/use-mobile'; @@ -124,10 +124,7 @@ function SidebarProvider({ ...style, } as React.CSSProperties } - className={cn( - 'lib:group/sidebar-wrapper has-data-[variant=inset]:lib:bg-sidebar lib:flex lib:min-h-svh lib:w-full', - className, - )} + className={cn('group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', className)} {...props} > {children} @@ -155,10 +152,7 @@ function Sidebar({ return (
        {children} @@ -173,7 +167,7 @@ function Sidebar({ data-sidebar="sidebar" data-slot="sidebar" data-mobile="true" - className="lib:bg-sidebar lib:text-sidebar-foreground lib:w-(--sidebar-width) lib:p-0 [&>button]:lib:hidden" + className="bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden" style={ { '--sidebar-width': SIDEBAR_WIDTH_MOBILE, @@ -181,11 +175,11 @@ function Sidebar({ } side={side} > - + Sidebar Displays the mobile sidebar. -
        {children}
        +
        {children}
        ); @@ -193,7 +187,7 @@ function Sidebar({ return (
        @@ -248,7 +242,7 @@ function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps { onClick?.(event); toggleSidebar(); @@ -256,7 +250,7 @@ function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps - Toggle Sidebar + Toggle Sidebar ); } @@ -273,12 +267,12 @@ function SidebarRail({ className, ...props }: React.ComponentProps<'button'>) { onClick={toggleSidebar} title="Toggle Sidebar" className={cn( - 'hover:after:lib:bg-sidebar-border lib:absolute lib:inset-y-0 lib:z-20 lib:hidden lib:w-4 lib:-translate-x-1/2 lib:transition-all lib:ease-linear group-data-[side=left]:lib:-right-4 group-data-[side=right]:lib:left-0 after:lib:absolute after:lib:inset-y-0 after:lib:left-1/2 after:lib:w-[2px] sm:lib:flex', - 'in-data-[side=left]:lib:cursor-w-resize in-data-[side=right]:lib:cursor-e-resize', - '[[data-side=left][data-state=collapsed]_&]:lib:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:lib:cursor-w-resize', - 'hover:group-data-[collapsible=offcanvas]:lib:bg-sidebar group-data-[collapsible=offcanvas]:lib:translate-x-0 group-data-[collapsible=offcanvas]:after:lib:left-full', - '[[data-side=left][data-collapsible=offcanvas]_&]:lib:-right-2', - '[[data-side=right][data-collapsible=offcanvas]_&]:lib:-left-2', + 'hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] sm:flex', + 'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize', + '[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize', + 'hover:group-data-[collapsible=offcanvas]:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full', + '[[data-side=left][data-collapsible=offcanvas]_&]:-right-2', + '[[data-side=right][data-collapsible=offcanvas]_&]:-left-2', className, )} {...props} @@ -291,8 +285,8 @@ function SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {
        ); @@ -316,7 +310,7 @@ function SidebarHeader({ className, ...props }: React.ComponentProps<'div'>) {
        ); @@ -327,7 +321,7 @@ function SidebarFooter({ className, ...props }: React.ComponentProps<'div'>) {
        ); @@ -338,7 +332,7 @@ function SidebarSeparator({ className, ...props }: React.ComponentProps ); @@ -350,7 +344,7 @@ function SidebarContent({ className, ...props }: React.ComponentProps<'div'>) { data-slot="sidebar-content" data-sidebar="content" className={cn( - 'lib:flex lib:min-h-0 lib:flex-1 lib:flex-col lib:gap-2 lib:overflow-auto group-data-[collapsible=icon]:lib:overflow-hidden', + 'flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden', className, )} {...props} @@ -363,7 +357,7 @@ function SidebarGroup({ className, ...props }: React.ComponentProps<'div'>) {
        ); @@ -381,8 +375,8 @@ function SidebarGroupLabel({ data-slot="sidebar-group-label" data-sidebar="group-label" className={cn( - 'lib:text-sidebar-foreground/70 lib:ring-sidebar-ring lib:flex lib:h-8 lib:shrink-0 lib:items-center lib:rounded-md lib:px-2 lib:text-xs lib:font-medium lib:outline-hidden lib:transition-[margin,opacity] lib:duration-200 lib:ease-linear focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', - 'group-data-[collapsible=icon]:lib:-mt-8 group-data-[collapsible=icon]:lib:opacity-0', + 'text-sidebar-foreground/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-hidden transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0', + 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0', className, )} {...props} @@ -402,10 +396,10 @@ function SidebarGroupAction({ data-slot="sidebar-group-action" data-sidebar="group-action" className={cn( - 'lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:absolute lib:top-3.5 lib:right-3 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', + 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0', // Increases the hit area of the button on mobile. - 'after:lib:absolute after:lib:-inset-2 md:after:lib:hidden', - 'group-data-[collapsible=icon]:lib:hidden', + 'after:absolute after:-inset-2 md:after:hidden', + 'group-data-[collapsible=icon]:hidden', className, )} {...props} @@ -418,7 +412,7 @@ function SidebarGroupContent({ className, ...props }: React.ComponentProps<'div'
        ); @@ -429,7 +423,7 @@ function SidebarMenu({ className, ...props }: React.ComponentProps<'ul'>) {
          ); @@ -440,25 +434,25 @@ function SidebarMenuItem({ className, ...props }: React.ComponentProps<'li'>) {
        • ); } const sidebarMenuButtonVariants = cva( - 'lib:peer/menu-button lib:flex lib:w-full lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:p-2 lib:text-left lib:text-sm lib:outline-hidden lib:ring-sidebar-ring lib:transition-[width,height,padding] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground focus-visible:lib:ring-2 active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground disabled:lib:pointer-events-none disabled:lib:opacity-50 lib:group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:font-medium data-[active=true]:lib:text-sidebar-accent-foreground data-[state=open]:hover:lib:bg-sidebar-accent data-[state=open]:hover:lib:text-sidebar-accent-foreground group-data-[collapsible=icon]:lib:size-8! group-data-[collapsible=icon]:lib:p-2! [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', + 'peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', { variants: { variant: { - default: 'hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground', + default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground', outline: - 'lib:bg-background lib:shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground hover:lib:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]', + 'bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]', }, size: { - default: 'lib:h-8 lib:text-sm', - sm: 'lib:h-7 lib:text-xs', - lg: 'lib:h-12 lib:text-sm group-data-[collapsible=icon]:lib:p-0!', + default: 'h-8 text-sm', + sm: 'h-7 text-xs', + lg: 'h-12 text-sm group-data-[collapsible=icon]:p-0!', }, }, defaultVariants: { @@ -529,15 +523,15 @@ function SidebarMenuAction({ data-slot="sidebar-menu-action" data-sidebar="menu-action" className={cn( - 'lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:absolute lib:top-1.5 lib:right-1 lib:flex lib:aspect-square lib:w-5 lib:items-center lib:justify-center lib:rounded-md lib:p-0 lib:outline-hidden lib:transition-transform focus-visible:lib:ring-2 [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', + 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground peer-hover/menu-button:text-sidebar-accent-foreground absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 outline-hidden transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0', // Increases the hit area of the button on mobile. - 'after:lib:absolute after:lib:-inset-2 md:after:lib:hidden', - 'lib:peer-data-[size=sm]/menu-button:top-1', - 'lib:peer-data-[size=default]/menu-button:top-1.5', - 'lib:peer-data-[size=lg]/menu-button:top-2.5', - 'group-data-[collapsible=icon]:lib:hidden', + 'after:absolute after:-inset-2 md:after:hidden', + 'peer-data-[size=sm]/menu-button:top-1', + 'peer-data-[size=default]/menu-button:top-1.5', + 'peer-data-[size=lg]/menu-button:top-2.5', + 'group-data-[collapsible=icon]:hidden', showOnHover && - 'lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground lib:group-focus-within/menu-item:opacity-100 lib:group-hover/menu-item:opacity-100 data-[state=open]:lib:opacity-100 md:lib:opacity-0', + 'peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0', className, )} {...props} @@ -551,12 +545,12 @@ function SidebarMenuBadge({ className, ...props }: React.ComponentProps<'div'>) data-slot="sidebar-menu-badge" data-sidebar="menu-badge" className={cn( - 'lib:text-sidebar-foreground lib:pointer-events-none lib:absolute lib:right-1 lib:flex lib:h-5 lib:min-w-5 lib:items-center lib:justify-center lib:rounded-md lib:px-1 lib:text-xs lib:font-medium lib:tabular-nums lib:select-none', - 'lib:peer-hover/menu-button:text-sidebar-accent-foreground lib:peer-data-[active=true]/menu-button:text-sidebar-accent-foreground', - 'lib:peer-data-[size=sm]/menu-button:top-1', - 'lib:peer-data-[size=default]/menu-button:top-1.5', - 'lib:peer-data-[size=lg]/menu-button:top-2.5', - 'group-data-[collapsible=icon]:lib:hidden', + 'text-sidebar-foreground pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums select-none', + 'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground', + 'peer-data-[size=sm]/menu-button:top-1', + 'peer-data-[size=default]/menu-button:top-1.5', + 'peer-data-[size=lg]/menu-button:top-2.5', + 'group-data-[collapsible=icon]:hidden', className, )} {...props} @@ -580,12 +574,12 @@ function SidebarMenuSkeleton({
          - {showIcon && } + {showIcon && } ) { data-slot="sidebar-menu-sub" data-sidebar="menu-sub" className={cn( - 'lib:border-sidebar-border lib:mx-3.5 lib:flex lib:min-w-0 lib:translate-x-px lib:flex-col lib:gap-1 lib:border-l lib:px-2.5 lib:py-0.5', - 'group-data-[collapsible=icon]:lib:hidden', + 'border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5', + 'group-data-[collapsible=icon]:hidden', className, )} {...props} @@ -617,7 +611,7 @@ function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<'li'>)
        • ); @@ -643,11 +637,11 @@ function SidebarMenuSubButton({ data-size={size} data-active={isActive} className={cn( - 'lib:text-sidebar-foreground lib:ring-sidebar-ring hover:lib:bg-sidebar-accent hover:lib:text-sidebar-accent-foreground active:lib:bg-sidebar-accent active:lib:text-sidebar-accent-foreground [&>svg]:lib:text-sidebar-accent-foreground lib:flex lib:h-7 lib:min-w-0 lib:-translate-x-px lib:items-center lib:gap-2 lib:overflow-hidden lib:rounded-md lib:px-2 lib:outline-hidden focus-visible:lib:ring-2 disabled:lib:pointer-events-none disabled:lib:opacity-50 aria-disabled:lib:pointer-events-none aria-disabled:lib:opacity-50 [&>span:last-child]:lib:truncate [&>svg]:lib:size-4 [&>svg]:lib:shrink-0', - 'data-[active=true]:lib:bg-sidebar-accent data-[active=true]:lib:text-sidebar-accent-foreground', - size === 'sm' && 'lib:text-xs', - size === 'md' && 'lib:text-sm', - 'group-data-[collapsible=icon]:lib:hidden', + 'text-sidebar-foreground ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 outline-hidden focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', + 'data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground', + size === 'sm' && 'text-xs', + size === 'md' && 'text-sm', + 'group-data-[collapsible=icon]:hidden', className, )} {...props} diff --git a/src/components/ui/skeleton.tsx b/src/components/ui/skeleton.tsx index 75914d48..3e62a18e 100644 --- a/src/components/ui/skeleton.tsx +++ b/src/components/ui/skeleton.tsx @@ -1,9 +1,7 @@ import { cn } from '@/lib/utils'; function Skeleton({ className, ...props }: React.ComponentProps<'div'>) { - return ( -
          - ); + return
          ; } export { Skeleton }; diff --git a/src/components/ui/slider.tsx b/src/components/ui/slider.tsx index fd50f200..6285e872 100644 --- a/src/components/ui/slider.tsx +++ b/src/components/ui/slider.tsx @@ -26,7 +26,7 @@ function Slider({ min={min} max={max} className={cn( - 'lib:relative lib:flex lib:w-full lib:touch-none lib:items-center lib:select-none data-[disabled]:lib:opacity-50 data-[orientation=vertical]:lib:h-full data-[orientation=vertical]:lib:min-h-44 data-[orientation=vertical]:lib:w-auto data-[orientation=vertical]:lib:flex-col', + 'relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col', className, )} {...props} @@ -34,21 +34,19 @@ function Slider({ {Array.from({ length: _values.length }, (_, index) => ( ))} diff --git a/src/components/ui/sonner.tsx b/src/components/ui/sonner.tsx index cbe61df7..338695a7 100644 --- a/src/components/ui/sonner.tsx +++ b/src/components/ui/sonner.tsx @@ -7,7 +7,7 @@ const Toaster = ({ ...props }: ToasterProps) => { return ( diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx index 8702ae44..58475148 100644 --- a/src/components/ui/table.tsx +++ b/src/components/ui/table.tsx @@ -4,25 +4,25 @@ import { cn } from '@/lib/utils'; function Table({ className, ...props }: React.ComponentProps<'table'>) { return ( -
          - +
          +
          ); } function TableHeader({ className, ...props }: React.ComponentProps<'thead'>) { - return ; + return ; } function TableBody({ className, ...props }: React.ComponentProps<'tbody'>) { - return ; + return ; } function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) { return ( tr]:last:lib:border-b-0', className)} + className={cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', className)} {...props} /> ); @@ -32,10 +32,7 @@ function TableRow({ className, ...props }: React.ComponentProps<'tr'>) { return ( ); @@ -46,7 +43,7 @@ function TableHead({ className, ...props }: React.ComponentProps<'th'>) {
          [role=checkbox]]:lib:translate-y-[2px]', + 'text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className, )} {...props} @@ -59,7 +56,7 @@ function TableCell({ className, ...props }: React.ComponentProps<'td'>) { [role=checkbox]]:lib:translate-y-[2px]', + 'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', className, )} {...props} @@ -69,11 +66,7 @@ function TableCell({ className, ...props }: React.ComponentProps<'td'>) { function TableCaption({ className, ...props }: React.ComponentProps<'caption'>) { return ( -
          + ); } diff --git a/src/components/ui/tabs.tsx b/src/components/ui/tabs.tsx index 7b97bf90..97a3c8e5 100644 --- a/src/components/ui/tabs.tsx +++ b/src/components/ui/tabs.tsx @@ -6,9 +6,7 @@ import * as TabsPrimitive from '@radix-ui/react-tabs'; import { cn } from '@/lib/utils'; function Tabs({ className, ...props }: React.ComponentProps) { - return ( - - ); + return ; } function TabsList({ className, ...props }: React.ComponentProps) { @@ -16,7 +14,7 @@ function TabsList({ className, ...props }: React.ComponentProps) { - return ( - - ); + return ; } export { Tabs, TabsList, TabsTrigger, TabsContent }; diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsx index 948068b9..40f5b4b5 100644 --- a/src/components/ui/textarea.tsx +++ b/src/components/ui/textarea.tsx @@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {