@gv-tech/design-system 2.29.0 → 2.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.cjs.map +1 -1
- package/dist/accordion.mjs +12 -13
- package/dist/accordion.mjs.map +1 -1
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.cjs.map +1 -1
- package/dist/alert-dialog.mjs +16 -17
- package/dist/alert-dialog.mjs.map +1 -1
- package/dist/alert.cjs +1 -1
- package/dist/alert.cjs.map +1 -1
- package/dist/alert.mjs +4 -5
- package/dist/alert.mjs.map +1 -1
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.cjs.map +1 -1
- package/dist/aspect-ratio.mjs +2 -3
- package/dist/aspect-ratio.mjs.map +1 -1
- package/dist/attachment.cjs +1 -1
- package/dist/attachment.cjs.map +1 -1
- package/dist/attachment.mjs +6 -6
- package/dist/attachment.mjs.map +1 -1
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.cjs.map +1 -1
- package/dist/avatar.mjs +3 -4
- package/dist/avatar.mjs.map +1 -1
- package/dist/badge.cjs +1 -1
- package/dist/badge.cjs.map +1 -1
- package/dist/badge.mjs +6 -6
- package/dist/badge.mjs.map +1 -1
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.cjs.map +1 -1
- package/dist/breadcrumb.mjs +4 -6
- package/dist/breadcrumb.mjs.map +1 -1
- package/dist/bubble.cjs +1 -1
- package/dist/bubble.cjs.map +1 -1
- package/dist/bubble.mjs +7 -7
- package/dist/bubble.mjs.map +1 -1
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.cjs.map +1 -1
- package/dist/button-group.mjs +5 -6
- package/dist/button-group.mjs.map +1 -1
- package/dist/button.cjs +1 -1
- package/dist/button.cjs.map +1 -1
- package/dist/button.mjs +6 -6
- package/dist/button.mjs.map +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.cjs.map +1 -1
- package/dist/calendar.mjs +9 -10
- package/dist/calendar.mjs.map +1 -1
- package/dist/card.cjs +1 -1
- package/dist/card.cjs.map +1 -1
- package/dist/card.mjs +2 -3
- package/dist/card.mjs.map +1 -1
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.cjs.map +1 -1
- package/dist/carousel.mjs +5 -8
- package/dist/carousel.mjs.map +1 -1
- package/dist/chart.cjs +2 -2
- package/dist/chart.cjs.map +1 -1
- package/dist/chart.mjs +14 -15
- package/dist/chart.mjs.map +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.mjs +2 -3
- package/dist/checkbox.mjs.map +1 -1
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.cjs.map +1 -1
- package/dist/collapsible.mjs +5 -6
- package/dist/collapsible.mjs.map +1 -1
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.cjs.map +1 -1
- package/dist/combobox.mjs +2 -3
- package/dist/combobox.mjs.map +1 -1
- package/dist/command.cjs +1 -1
- package/dist/command.cjs.map +1 -1
- package/dist/command.mjs +2 -3
- package/dist/command.mjs.map +1 -1
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.cjs.map +1 -1
- package/dist/context-menu.mjs +24 -25
- package/dist/context-menu.mjs.map +1 -1
- package/dist/design-system.css +2 -2
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.mjs +2 -3
- package/dist/dialog.mjs.map +1 -1
- package/dist/direction.cjs +1 -1
- package/dist/direction.cjs.map +1 -1
- package/dist/direction.mjs +2 -3
- package/dist/direction.mjs.map +1 -1
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.cjs.map +1 -1
- package/dist/drawer.mjs +2 -3
- package/dist/drawer.mjs.map +1 -1
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.mjs +24 -25
- package/dist/dropdown-menu.mjs.map +1 -1
- package/dist/empty.cjs +1 -1
- package/dist/empty.cjs.map +1 -1
- package/dist/empty.mjs +3 -4
- package/dist/empty.mjs.map +1 -1
- package/dist/field.cjs +1 -1
- package/dist/field.cjs.map +1 -1
- package/dist/field.mjs +4 -6
- package/dist/field.mjs.map +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.cjs.map +1 -1
- package/dist/form.mjs +11 -12
- package/dist/form.mjs.map +1 -1
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.cjs.map +1 -1
- package/dist/hover-card.mjs +7 -8
- package/dist/hover-card.mjs.map +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.mjs +260 -74
- package/dist/index.mjs.map +1 -0
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.cjs.map +1 -1
- package/dist/input-group.mjs +5 -11
- package/dist/input-group.mjs.map +1 -1
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.cjs.map +1 -1
- package/dist/input-otp.mjs +3 -4
- package/dist/input-otp.mjs.map +1 -1
- package/dist/input.cjs +1 -1
- package/dist/input.cjs.map +1 -1
- package/dist/input.mjs +2 -3
- package/dist/input.mjs.map +1 -1
- package/dist/item.cjs +1 -1
- package/dist/item.cjs.map +1 -1
- package/dist/item.mjs +7 -8
- package/dist/item.mjs.map +1 -1
- package/dist/kbd.cjs +1 -1
- package/dist/kbd.cjs.map +1 -1
- package/dist/kbd.mjs +2 -3
- package/dist/kbd.mjs.map +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.cjs.map +1 -1
- package/dist/label.mjs +2 -3
- package/dist/label.mjs.map +1 -1
- package/dist/marker.cjs +1 -1
- package/dist/marker.cjs.map +1 -1
- package/dist/marker.mjs +7 -7
- package/dist/marker.mjs.map +1 -1
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.cjs.map +1 -1
- package/dist/menubar.mjs +21 -22
- package/dist/menubar.mjs.map +1 -1
- package/dist/message-scroller.cjs +1 -1
- package/dist/message-scroller.cjs.map +1 -1
- package/dist/message-scroller.mjs +2 -3
- package/dist/message-scroller.mjs.map +1 -1
- package/dist/message.cjs +1 -1
- package/dist/message.cjs.map +1 -1
- package/dist/message.mjs +2 -3
- package/dist/message.mjs.map +1 -1
- package/dist/native-select.cjs +1 -1
- package/dist/native-select.cjs.map +1 -1
- package/dist/native-select.mjs +2 -3
- package/dist/native-select.mjs.map +1 -1
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.cjs.map +1 -1
- package/dist/navigation-menu.mjs +9 -10
- package/dist/navigation-menu.mjs.map +1 -1
- package/dist/packages/design-tokens/src/index.d.ts +75 -69
- package/dist/packages/design-tokens/src/palette.d.ts +23 -17
- package/dist/packages/design-tokens/src/preset.d.ts +6 -0
- package/dist/packages/design-tokens/src/theme.d.ts +52 -52
- package/dist/packages/ui-core/src/contracts/scroll-to-top.d.ts +1 -2
- package/dist/packages/ui-core/src/contracts/table-of-contents.d.ts +5 -18
- package/dist/packages/ui-web/src/__contracts.d.ts +0 -1
- package/dist/packages/ui-web/src/accordion.d.ts +1 -1
- package/dist/packages/ui-web/src/alert-dialog.d.ts +1 -1
- package/dist/packages/ui-web/src/alert.d.ts +1 -1
- package/dist/packages/ui-web/src/aspect-ratio.d.ts +2 -2
- package/dist/packages/ui-web/src/attachment.d.ts +1 -1
- package/dist/packages/ui-web/src/avatar.d.ts +1 -1
- package/dist/packages/ui-web/src/badge.d.ts +1 -1
- package/dist/packages/ui-web/src/bubble.d.ts +1 -1
- package/dist/packages/ui-web/src/button-group.d.ts +3 -3
- package/dist/packages/ui-web/src/button.d.ts +1 -1
- package/dist/packages/ui-web/src/calendar.d.ts +1 -1
- package/dist/packages/ui-web/src/carousel.d.ts +3 -3
- package/dist/packages/ui-web/src/checkbox.d.ts +1 -1
- package/dist/packages/ui-web/src/collapsible.d.ts +4 -4
- package/dist/packages/ui-web/src/command.d.ts +1 -1
- package/dist/packages/ui-web/src/context-menu.d.ts +1 -1
- package/dist/packages/ui-web/src/dialog.d.ts +1 -1
- package/dist/packages/ui-web/src/direction.d.ts +1 -1
- package/dist/packages/ui-web/src/drawer.d.ts +1 -1
- package/dist/packages/ui-web/src/dropdown-menu.d.ts +1 -1
- package/dist/packages/ui-web/src/empty.d.ts +7 -7
- package/dist/packages/ui-web/src/field.d.ts +11 -11
- package/dist/packages/ui-web/src/form.d.ts +3 -3
- package/dist/packages/ui-web/src/hooks/use-theme.d.ts +52 -52
- package/dist/packages/ui-web/src/hover-card.d.ts +1 -1
- package/dist/packages/ui-web/src/input-group.d.ts +3 -3
- package/dist/packages/ui-web/src/input-otp.d.ts +1 -1
- package/dist/packages/ui-web/src/item.d.ts +2 -2
- package/dist/packages/ui-web/src/kbd.d.ts +2 -2
- package/dist/packages/ui-web/src/label.d.ts +1 -1
- package/dist/packages/ui-web/src/marker.d.ts +1 -1
- package/dist/packages/ui-web/src/menubar.d.ts +1 -1
- package/dist/packages/ui-web/src/message-scroller.d.ts +1 -1
- package/dist/packages/ui-web/src/navigation-menu.d.ts +1 -1
- package/dist/packages/ui-web/src/pagination.d.ts +2 -2
- package/dist/packages/ui-web/src/popover.d.ts +1 -1
- package/dist/packages/ui-web/src/progress.d.ts +1 -1
- package/dist/packages/ui-web/src/questionnaire.d.ts +1 -1
- package/dist/packages/ui-web/src/resizable.d.ts +3 -3
- package/dist/packages/ui-web/src/scroll-area.d.ts +1 -1
- package/dist/packages/ui-web/src/select.d.ts +1 -1
- package/dist/packages/ui-web/src/separator.d.ts +1 -1
- package/dist/packages/ui-web/src/sheet.d.ts +1 -1
- package/dist/packages/ui-web/src/sidebar.d.ts +1 -1
- package/dist/packages/ui-web/src/skeleton.d.ts +1 -1
- package/dist/packages/ui-web/src/slider.d.ts +1 -1
- package/dist/packages/ui-web/src/sonner.d.ts +1 -1
- package/dist/packages/ui-web/src/spinner.d.ts +2 -1
- package/dist/packages/ui-web/src/switch.d.ts +1 -1
- package/dist/packages/ui-web/src/table-of-contents.d.ts +5 -10
- package/dist/packages/ui-web/src/tabs.d.ts +1 -1
- package/dist/packages/ui-web/src/text.d.ts +1 -1
- package/dist/packages/ui-web/src/theme-provider.d.ts +1 -1
- package/dist/packages/ui-web/src/theme-toggle.d.ts +1 -1
- package/dist/packages/ui-web/src/toast.d.ts +1 -1
- package/dist/packages/ui-web/src/toaster.d.ts +1 -1
- package/dist/packages/ui-web/src/toggle-group.d.ts +1 -1
- package/dist/packages/ui-web/src/toggle.d.ts +1 -1
- package/dist/packages/ui-web/src/tooltip.d.ts +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.cjs.map +1 -1
- package/dist/pagination.mjs +5 -5
- package/dist/pagination.mjs.map +1 -1
- package/dist/popover.cjs +1 -1
- package/dist/popover.cjs.map +1 -1
- package/dist/popover.mjs +8 -9
- package/dist/popover.mjs.map +1 -1
- package/dist/progress.cjs +1 -1
- package/dist/progress.cjs.map +1 -1
- package/dist/progress.mjs +4 -5
- package/dist/progress.mjs.map +1 -1
- package/dist/questionnaire.cjs +1 -1
- package/dist/questionnaire.cjs.map +1 -1
- package/dist/questionnaire.mjs +2 -3
- package/dist/questionnaire.mjs.map +1 -1
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.cjs.map +1 -1
- package/dist/radio-group.mjs +2 -3
- package/dist/radio-group.mjs.map +1 -1
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.cjs.map +1 -1
- package/dist/resizable.mjs +2 -3
- package/dist/resizable.mjs.map +1 -1
- package/dist/rolldown-runtime-DbbDpzbe.js +1 -0
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.cjs.map +1 -1
- package/dist/scroll-area.mjs +4 -5
- package/dist/scroll-area.mjs.map +1 -1
- package/dist/scroll-to-top.cjs +1 -1
- package/dist/scroll-to-top.cjs.map +1 -1
- package/dist/scroll-to-top.mjs +14 -17
- package/dist/scroll-to-top.mjs.map +1 -1
- package/dist/search.cjs +1 -1
- package/dist/search.cjs.map +1 -1
- package/dist/search.mjs +14 -15
- package/dist/search.mjs.map +1 -1
- package/dist/select.cjs +1 -1
- package/dist/select.cjs.map +1 -1
- package/dist/select.mjs +2 -3
- package/dist/select.mjs.map +1 -1
- package/dist/separator.cjs +1 -1
- package/dist/separator.cjs.map +1 -1
- package/dist/separator.mjs +2 -3
- package/dist/separator.mjs.map +1 -1
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.cjs.map +1 -1
- package/dist/sheet.mjs +2 -3
- package/dist/sheet.mjs.map +1 -1
- package/dist/{sidebar-C5ukZKYH.mjs → sidebar-BY-0Gann.mjs} +17 -15
- package/dist/sidebar-BY-0Gann.mjs.map +1 -0
- package/dist/sidebar-BwaRpzdR.js +2 -0
- package/dist/sidebar-BwaRpzdR.js.map +1 -0
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.mjs +1 -2
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.cjs.map +1 -1
- package/dist/skeleton.mjs +2 -3
- package/dist/skeleton.mjs.map +1 -1
- package/dist/slider.cjs +1 -1
- package/dist/slider.cjs.map +1 -1
- package/dist/slider.mjs +2 -3
- package/dist/slider.mjs.map +1 -1
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.cjs.map +1 -1
- package/dist/sonner.mjs +2 -3
- package/dist/sonner.mjs.map +1 -1
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.cjs.map +1 -1
- package/dist/spinner.mjs +10 -7
- package/dist/spinner.mjs.map +1 -1
- package/dist/support-fab.cjs +1 -1
- package/dist/support-fab.cjs.map +1 -1
- package/dist/support-fab.mjs +22 -23
- package/dist/support-fab.mjs.map +1 -1
- package/dist/switch.cjs +1 -1
- package/dist/switch.cjs.map +1 -1
- package/dist/switch.mjs +2 -3
- package/dist/switch.mjs.map +1 -1
- package/dist/table-of-contents.cjs +1 -1
- package/dist/table-of-contents.cjs.map +1 -1
- package/dist/table-of-contents.mjs +29 -29
- package/dist/table-of-contents.mjs.map +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.cjs.map +1 -1
- package/dist/table.mjs +2 -3
- package/dist/table.mjs.map +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.cjs.map +1 -1
- package/dist/tabs.mjs +8 -9
- package/dist/tabs.mjs.map +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.cjs.map +1 -1
- package/dist/text.mjs +18 -16
- package/dist/text.mjs.map +1 -1
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.cjs.map +1 -1
- package/dist/textarea.mjs +2 -3
- package/dist/textarea.mjs.map +1 -1
- package/dist/theme-provider.cjs +1 -1
- package/dist/theme-provider.cjs.map +1 -1
- package/dist/theme-provider.mjs +2 -3
- package/dist/theme-provider.mjs.map +1 -1
- package/dist/theme-toggle-B7jIk1EJ.mjs +173 -0
- package/dist/theme-toggle-B7jIk1EJ.mjs.map +1 -0
- package/dist/theme-toggle-CsR6DVEV.js +2 -0
- package/dist/theme-toggle-CsR6DVEV.js.map +1 -0
- package/dist/theme-toggle.cjs +1 -1
- package/dist/theme-toggle.mjs +1 -2
- package/dist/toast.cjs +1 -1
- package/dist/toast.cjs.map +1 -1
- package/dist/toast.mjs +20 -21
- package/dist/toast.mjs.map +1 -1
- package/dist/{toaster-CfNd-vsx.mjs → toaster-Cr-qFHE_.mjs} +15 -17
- package/dist/toaster-Cr-qFHE_.mjs.map +1 -0
- package/dist/{toaster-D9OZF7hL.js → toaster-CsRfPupI.js} +2 -2
- package/dist/toaster-CsRfPupI.js.map +1 -0
- package/dist/toaster.cjs +1 -1
- package/dist/toaster.mjs +1 -2
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.cjs.map +1 -1
- package/dist/toggle-group.mjs +2 -3
- package/dist/toggle-group.mjs.map +1 -1
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.cjs.map +1 -1
- package/dist/toggle.mjs +4 -5
- package/dist/toggle.mjs.map +1 -1
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.mjs +7 -8
- package/dist/tooltip.mjs.map +1 -1
- package/dist/{utils-CnOgTvBJ.js → utils-BKlmn6yB.js} +2 -2
- package/dist/{utils-CnOgTvBJ.js.map → utils-BKlmn6yB.js.map} +1 -1
- package/dist/{utils-BtHTUEvP.mjs → utils-MPB0bG0d.mjs} +3 -4
- package/dist/utils-MPB0bG0d.mjs.map +1 -0
- package/dist/vendor-Ceu--gxM.js +113 -0
- package/dist/vendor-Ceu--gxM.js.map +1 -0
- package/dist/{vendor-D9rWr_E8.mjs → vendor-PEVwmg1D.mjs} +15976 -15161
- package/dist/vendor-PEVwmg1D.mjs.map +1 -0
- package/package.json +77 -85
- package/dist/rolldown-runtime-CWhphoD1.mjs +0 -23
- package/dist/rolldown-runtime-mLOUI7ql.js +0 -1
- package/dist/sidebar-C5ukZKYH.mjs.map +0 -1
- package/dist/sidebar-DyP2Q-Ru.js +0 -2
- package/dist/sidebar-DyP2Q-Ru.js.map +0 -1
- package/dist/theme-toggle-BGVdrh4J.mjs +0 -337
- package/dist/theme-toggle-BGVdrh4J.mjs.map +0 -1
- package/dist/theme-toggle-CMdzi7Y8.js +0 -2
- package/dist/theme-toggle-CMdzi7Y8.js.map +0 -1
- package/dist/toaster-CfNd-vsx.mjs.map +0 -1
- package/dist/toaster-D9OZF7hL.js.map +0 -1
- package/dist/utils-BtHTUEvP.mjs.map +0 -1
- package/dist/vendor-D9rWr_E8.mjs.map +0 -1
- package/dist/vendor-i1KCLryV.js +0 -101
- package/dist/vendor-i1KCLryV.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
|
|
2
1
|
import { ScrollAreaBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Select as SelectPrimitive } from 'radix-ui';
|
|
2
1
|
import { SelectBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
2
1
|
import { SeparatorBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { Separator as SeparatorPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root> & SeparatorBaseProps): React.JSX.Element;
|
|
5
5
|
export { Separator };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dialog as SheetPrimitive } from 'radix-ui';
|
|
2
1
|
import { SheetBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { Dialog as SheetPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): React.JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { SidebarBaseProps, SidebarContentBaseProps, SidebarFooterBaseProps, SidebarGroupActionBaseProps, SidebarGroupBaseProps, SidebarGroupContentBaseProps, SidebarGroupLabelBaseProps, SidebarHeaderBaseProps, SidebarInputBaseProps, SidebarInsetBaseProps, SidebarMenuActionBaseProps, SidebarMenuBadgeBaseProps, SidebarMenuBaseProps, SidebarMenuButtonBaseProps, SidebarMenuItemBaseProps, SidebarMenuSkeletonBaseProps, SidebarMenuSubBaseProps, SidebarMenuSubButtonBaseProps, SidebarMenuSubItemBaseProps, SidebarProviderBaseProps, SidebarRailBaseProps, SidebarSeparatorBaseProps, SidebarTriggerBaseProps } from '../../ui-core/src';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { Button } from './button';
|
|
3
4
|
import { Input } from './input';
|
|
4
5
|
import { Separator } from './separator';
|
|
5
|
-
import { SidebarBaseProps, SidebarContentBaseProps, SidebarFooterBaseProps, SidebarGroupActionBaseProps, SidebarGroupBaseProps, SidebarGroupContentBaseProps, SidebarGroupLabelBaseProps, SidebarHeaderBaseProps, SidebarInputBaseProps, SidebarInsetBaseProps, SidebarMenuActionBaseProps, SidebarMenuBadgeBaseProps, SidebarMenuBaseProps, SidebarMenuButtonBaseProps, SidebarMenuItemBaseProps, SidebarMenuSkeletonBaseProps, SidebarMenuSubBaseProps, SidebarMenuSubButtonBaseProps, SidebarMenuSubItemBaseProps, SidebarProviderBaseProps, SidebarRailBaseProps, SidebarSeparatorBaseProps, SidebarTriggerBaseProps } from '../../ui-core/src';
|
|
6
6
|
import { ClassProp } from 'class-variance-authority/types';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
type SidebarContextProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SkeletonBaseProps } from '../../ui-core/src';
|
|
2
|
-
declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): import(
|
|
2
|
+
declare function Skeleton({ className, ...props }: React.ComponentProps<'div'>): import('react').JSX.Element;
|
|
3
3
|
export { Skeleton };
|
|
4
4
|
export type ___verifySkeletonContract = React.ComponentProps<typeof Skeleton> extends SkeletonBaseProps ? true : false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
2
1
|
import { SliderBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { Slider as SliderPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function Slider({ className, defaultValue, value, min, max, ...props }: React.ComponentProps<typeof SliderPrimitive.Root>): React.JSX.Element;
|
|
5
5
|
export { Slider };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { SpinnerBaseProps } from '../../ui-core/src';
|
|
2
|
-
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare function Spinner({ className, ...props }: React.ComponentProps<'output'> & SpinnerBaseProps): React.JSX.Element;
|
|
3
4
|
export { Spinner };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
2
1
|
import { SwitchBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { Switch as SwitchPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function Switch({ className, size, ...props }: React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
5
5
|
size?: 'sm' | 'default';
|
|
@@ -2,23 +2,18 @@ import { TableOfContentsContentBaseProps, TableOfContentsListBaseProps, TableOfC
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
export type TableOfContentsProps = TableOfContentsRootBaseProps;
|
|
4
4
|
/**
|
|
5
|
-
* Root component that provides the Table of Contents context.
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* If used standalone: <TableOfContents /> (requires container ref or defaults to document)
|
|
5
|
+
* Root component that provides the Table of Contents context. Can be used as a wrapper OR standalone. If used as a
|
|
6
|
+
* wrapper: <TableOfContents><List /><Content>{children}</Content></TableOfContents> If used standalone:
|
|
7
|
+
* <TableOfContents /> (requires container ref or defaults to document)
|
|
9
8
|
*/
|
|
10
9
|
declare function TableOfContents({ children, className, activeId: activeIdOverride, minLevel, maxLevel, selector, }: TableOfContentsProps): React.JSX.Element;
|
|
11
10
|
declare namespace TableOfContents {
|
|
12
11
|
var List: typeof TableOfContentsList;
|
|
13
12
|
var Content: typeof TableOfContentsContent;
|
|
14
13
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Renders the actual list of links.
|
|
17
|
-
*/
|
|
14
|
+
/** Renders the actual list of links. */
|
|
18
15
|
declare function TableOfContentsList({ className }: TableOfContentsListBaseProps): React.JSX.Element | null;
|
|
19
|
-
/**
|
|
20
|
-
* Wraps the content area and automatically detects headings within it.
|
|
21
|
-
*/
|
|
16
|
+
/** Wraps the content area and automatically detects headings within it. */
|
|
22
17
|
declare function TableOfContentsContent({ children, className }: TableOfContentsContentBaseProps): React.JSX.Element;
|
|
23
18
|
export type { TableOfContentsContentBaseProps as TableOfContentsContentProps, TableOfContentsListBaseProps as TableOfContentsListProps, } from '../../ui-core/src';
|
|
24
19
|
export { TableOfContents, TableOfContentsContent, TableOfContentsList };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { TabsBaseProps } from '../../ui-core/src';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { Tabs as TabsPrimitive } from 'radix-ui';
|
|
3
|
-
import { TabsBaseProps } from '../../ui-core/src';
|
|
4
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
declare function Tabs({ className, orientation, ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import { TextBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { ClassProp } from 'class-variance-authority/types';
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
declare const textVariants: (props?: ({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ThemeProviderBaseProps } from '../../ui-core/src';
|
|
2
2
|
import { ThemeProviderProps as NextThemesProviderProps } from 'next-themes';
|
|
3
3
|
export type ThemeProviderProps = NextThemesProviderProps & ThemeProviderBaseProps;
|
|
4
|
-
export declare function ThemeProvider({ children, ...props }: ThemeProviderProps): import(
|
|
4
|
+
export declare function ThemeProvider({ children, ...props }: ThemeProviderProps): import('react').JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ThemeToggleBaseProps } from '../../ui-core/src';
|
|
2
2
|
export type ThemeToggleProps = ThemeToggleBaseProps;
|
|
3
|
-
export declare function ThemeToggle({ variant, onThemeChange, customTheme, className }: ThemeToggleProps): import(
|
|
3
|
+
export declare function ThemeToggle({ variant, onThemeChange, customTheme, className }: ThemeToggleProps): import('react').JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VariantProps } from 'class-variance-authority';
|
|
2
1
|
import { ToastBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { ClassProp } from 'class-variance-authority/types';
|
|
4
4
|
import * as ToastPrimitives from '@radix-ui/react-toast';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ToasterBaseProps } from '../../ui-core/src';
|
|
2
|
-
export declare function Toaster({ ...props }: ToasterBaseProps): import(
|
|
2
|
+
export declare function Toaster({ ...props }: ToasterBaseProps): import('react').JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ToggleGroupBaseProps } from '../../ui-core/src';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { ToggleGroup as ToggleGroupPrimitive } from 'radix-ui';
|
|
3
4
|
import { toggleVariants } from './toggle';
|
|
4
|
-
import { ToggleGroupBaseProps } from '../../ui-core/src';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React.ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants> & {
|
|
7
7
|
spacing?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ToggleBaseProps } from '../../ui-core/src';
|
|
1
2
|
import { VariantProps } from 'class-variance-authority';
|
|
2
3
|
import { Toggle as TogglePrimitive } from 'radix-ui';
|
|
3
|
-
import { ToggleBaseProps } from '../../ui-core/src';
|
|
4
4
|
import { ClassProp } from 'class-variance-authority/types';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
declare const toggleVariants: (props?: ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
2
1
|
import { TooltipBaseProps } from '../../ui-core/src';
|
|
2
|
+
import { Tooltip as TooltipPrimitive } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): React.JSX.Element;
|
|
5
5
|
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): React.JSX.Element;
|
package/dist/pagination.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js"),n=require("./button.cjs");let r=require("react");r=e.r(r);var i=t.Ar();function a({className:e,...n}){return(0,i.jsx)(`nav`,{role:`navigation`,"aria-label":`pagination`,"data-slot":`pagination`,className:t.ei(`mx-auto flex w-full justify-center`,e),...n})}function o({className:e,...n}){return(0,i.jsx)(`ul`,{"data-slot":`pagination-content`,className:t.ei(`flex items-center gap-0.5`,e),...n})}function s({...e}){return(0,i.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function c({className:e,isActive:r,size:a=`icon`,children:o,...s}){return(0,i.jsx)(n.Button,{asChild:!0,variant:r?`outline`:`ghost`,size:a,className:t.ei(e),children:(0,i.jsx)(`a`,{"aria-current":r?`page`:void 0,"data-slot":`pagination-link`,"data-active":r,...s,children:o})})}function l({className:e,text:n=`Previous`,...r}){return(0,i.jsxs)(c,{"aria-label":`Go to previous page`,size:`default`,className:t.ei(`ps-1.5!`,e),...r,children:[(0,i.jsx)(t.Yr,{"data-icon":`inline-start`,className:`rtl:rotate-180`}),(0,i.jsx)(`span`,{className:`hidden sm:block`,children:n})]})}function u({className:e,text:n=`Next`,...r}){return(0,i.jsxs)(c,{"aria-label":`Go to next page`,size:`default`,className:t.ei(`pe-1.5!`,e),...r,children:[(0,i.jsx)(`span`,{className:`hidden sm:block`,children:n}),(0,i.jsx)(t.Jr,{"data-icon":`inline-end`,className:`rtl:rotate-180`})]})}function d({className:e,...n}){return(0,i.jsxs)(`span`,{"aria-hidden":!0,"data-slot":`pagination-ellipsis`,className:t.ei(`flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4`,e),...n,children:[(0,i.jsx)(t.Wr,{}),(0,i.jsx)(`span`,{className:`sr-only`,children:`More pages`})]})}exports.Pagination=a,exports.PaginationContent=o,exports.PaginationEllipsis=d,exports.PaginationItem=s,exports.PaginationLink=c,exports.PaginationNext=u,exports.PaginationPrevious=l;
|
|
2
2
|
//# sourceMappingURL=pagination.cjs.map
|
package/dist/pagination.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.cjs","names":[],"sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { Button } from '@/./button';\n\
|
|
1
|
+
{"version":3,"file":"pagination.cjs","names":["cn","Button","ChevronLeftIcon","ChevronRightIcon","MoreHorizontalIcon","require_rolldown_runtime","require_vendor","require_button","react","import_jsx_runtime","Pagination","props","className","PaginationContent","PaginationItem","PaginationLink","isActive","PaginationPrevious","text","PaginationNext","PaginationEllipsis"],"sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["import type { PaginationBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { Button } from '@/./button';\n\nfunction Pagination({ className, ...props }: React.ComponentProps<'nav'>) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n );\n}\n\nfunction PaginationContent({ className, ...props }: React.ComponentProps<'ul'>) {\n return <ul data-slot=\"pagination-content\" className={cn('flex items-center gap-0.5', className)} {...props} />;\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<'li'>) {\n return <li data-slot=\"pagination-item\" {...props} />;\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<React.ComponentProps<typeof Button>, 'size'> &\n React.ComponentProps<'a'>;\n\nfunction PaginationLink({ className, isActive, size = 'icon', children, ...props }: PaginationLinkProps) {\n return (\n <Button asChild variant={isActive ? 'outline' : 'ghost'} size={size} className={cn(className)}>\n <a aria-current={isActive ? 'page' : undefined} data-slot=\"pagination-link\" data-active={isActive} {...props}>\n {children}\n </a>\n </Button>\n );\n}\n\nfunction PaginationPrevious({\n className,\n text = 'Previous',\n ...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n return (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('ps-1.5!', className)} {...props}>\n <ChevronLeftIcon data-icon=\"inline-start\" className=\"rtl:rotate-180\" />\n <span className=\"hidden sm:block\">{text}</span>\n </PaginationLink>\n );\n}\n\nfunction PaginationNext({\n className,\n text = 'Next',\n ...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n return (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('pe-1.5!', className)} {...props}>\n <span className=\"hidden sm:block\">{text}</span>\n <ChevronRightIcon data-icon=\"inline-end\" className=\"rtl:rotate-180\" />\n </PaginationLink>\n );\n}\n\nfunction PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn(\"flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4\", className)}\n {...props}\n >\n <MoreHorizontalIcon />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyPaginationContract =\n React.ComponentProps<typeof Pagination> extends PaginationBaseProps ? true : false;\n"],"mappings":"A,2OAOA,SAASU,EAAW,CAAE,YAAW,GAAGC,GAAsC,CACxE,OACE,EAAAF,EAAA,IAAA,CAAC,MAAD,CACE,KAAK,aACL,aAAW,aACX,YAAU,aACV,UAAWT,EAAAA,GAAG,qCAAsCY,CAAS,EAC7D,GAAID,CACL,CAAA,CAEL,CAEA,SAASE,EAAkB,CAAE,YAAW,GAAGF,GAAqC,CAC9E,OAAO,EAAAF,EAAA,IAAA,CAAC,KAAD,CAAI,YAAU,qBAAqB,UAAWT,EAAAA,GAAG,4BAA6BY,CAAS,EAAG,GAAID,CAAQ,CAAA,CAC/G,CAEA,SAASG,EAAe,CAAE,GAAGH,GAAqC,CAChE,OAAO,EAAAF,EAAA,IAAA,CAAC,KAAD,CAAI,YAAU,kBAAkB,GAAIE,CAAQ,CAAA,CACrD,CAOA,SAASI,EAAe,CAAE,YAAW,WAAU,OAAO,OAAQ,WAAU,GAAGJ,GAA8B,CACvG,OACE,EAAAF,EAAA,IAAA,CAACR,EAAAA,OAAD,CAAQ,QAAA,GAAQ,QAASe,EAAW,UAAY,QAAe,OAAM,UAAWhB,EAAAA,GAAGY,CAAS,EAC1F,UAAA,EAAAH,EAAA,IAAA,CAAC,IAAD,CAAG,eAAcO,EAAW,OAAS,IAAA,GAAW,YAAU,kBAAkB,cAAaA,EAAU,GAAIL,EACpG,UACA,CAAA,CACG,CAAA,CAEZ,CAEA,SAASM,EAAmB,CAC1B,YACA,OAAO,WACP,GAAGN,GAC+D,CAClE,OACE,EAAAF,EAAA,KAAA,CAACM,EAAD,CAAgB,aAAW,sBAAsB,KAAK,UAAU,UAAWf,EAAAA,GAAG,UAAWY,CAAS,EAAG,GAAID,EAAzG,SAAA,EACE,EAAAF,EAAA,IAAA,CAACP,EAAAA,GAAD,CAAiB,YAAU,eAAe,UAAU,gBAAkB,CAAA,GACtE,EAAAO,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,kBAAmB,SAAAS,CAAW,CAAA,CAChC,C,EAEpB,CAEA,SAASC,EAAe,CACtB,YACA,OAAO,OACP,GAAGR,GAC+D,CAClE,OACE,EAAAF,EAAA,KAAA,CAACM,EAAD,CAAgB,aAAW,kBAAkB,KAAK,UAAU,UAAWf,EAAAA,GAAG,UAAWY,CAAS,EAAG,GAAID,EAArG,SAAA,EACE,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,kBAAmB,SAAAS,CAAW,CAAA,GAC9C,EAAAT,EAAA,IAAA,CAACN,EAAAA,GAAD,CAAkB,YAAU,aAAa,UAAU,gBAAkB,CAAA,CACvD,C,EAEpB,CAEA,SAASiB,EAAmB,CAAE,YAAW,GAAGT,GAAuC,CACjF,OACE,EAAAF,EAAA,KAAA,CAAC,OAAD,CACE,cAAA,GACA,YAAU,sBACV,UAAWT,EAAAA,GAAG,+EAAgFY,CAAS,EACvG,GAAID,EAJN,SAAA,EAME,EAAAF,EAAA,IAAA,CAACL,EAAAA,GAAD,CAAqB,CAAA,GACrB,EAAAK,EAAA,IAAA,CAAC,OAAD,CAAM,UAAU,UAAU,SAAA,YAAgB,CAAA,CACtC,C,EAEV,C"}
|
package/dist/pagination.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ar as e, Jr as t, Wr as n, Yr as r, ei as i } from "./vendor-
|
|
2
|
+
import { Ar as e, Jr as t, Wr as n, Yr as r, ei as i } from "./vendor-PEVwmg1D.mjs";
|
|
3
3
|
import { Button as a } from "./button.mjs";
|
|
4
4
|
import "react";
|
|
5
|
-
|
|
5
|
+
// packages/ui-web/src/pagination.tsx
|
|
6
6
|
var o = e();
|
|
7
7
|
function s({ className: e, ...t }) {
|
|
8
8
|
return /* @__PURE__ */ (0, o.jsx)("nav", {
|
|
@@ -26,7 +26,7 @@ function l({ ...e }) {
|
|
|
26
26
|
...e
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
function u({ className: e, isActive: t, size: n = "icon",
|
|
29
|
+
function u({ className: e, isActive: t, size: n = "icon", children: r, ...s }) {
|
|
30
30
|
return /* @__PURE__ */ (0, o.jsx)(a, {
|
|
31
31
|
asChild: !0,
|
|
32
32
|
variant: t ? "outline" : "ghost",
|
|
@@ -36,7 +36,8 @@ function u({ className: e, isActive: t, size: n = "icon", ...r }) {
|
|
|
36
36
|
"aria-current": t ? "page" : void 0,
|
|
37
37
|
"data-slot": "pagination-link",
|
|
38
38
|
"data-active": t,
|
|
39
|
-
...
|
|
39
|
+
...s,
|
|
40
|
+
children: r
|
|
40
41
|
})
|
|
41
42
|
});
|
|
42
43
|
}
|
|
@@ -82,7 +83,6 @@ function p({ className: e, ...t }) {
|
|
|
82
83
|
})]
|
|
83
84
|
});
|
|
84
85
|
}
|
|
85
|
-
//#endregion
|
|
86
86
|
export { s as Pagination, c as PaginationContent, p as PaginationEllipsis, l as PaginationItem, u as PaginationLink, f as PaginationNext, d as PaginationPrevious };
|
|
87
87
|
|
|
88
88
|
//# sourceMappingURL=pagination.mjs.map
|
package/dist/pagination.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.mjs","names":[],"sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { Button } from '@/./button';\n\
|
|
1
|
+
{"version":3,"file":"pagination.mjs","names":["ChevronLeftIcon","ChevronRightIcon","MoreHorizontalIcon","require_jsx_runtime","ChevronRight","Ellipsis","ChevronLeft","cn","import_jsx_runtime","Pagination","props","className","PaginationContent","PaginationItem","PaginationLink","Button","isActive","PaginationPrevious","text","PaginationNext","PaginationEllipsis"],"sources":["../packages/ui-web/src/pagination.tsx"],"sourcesContent":["import type { PaginationBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from 'lucide-react';\nimport * as React from 'react';\n\nimport { Button } from '@/./button';\n\nfunction Pagination({ className, ...props }: React.ComponentProps<'nav'>) {\n return (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n data-slot=\"pagination\"\n className={cn('mx-auto flex w-full justify-center', className)}\n {...props}\n />\n );\n}\n\nfunction PaginationContent({ className, ...props }: React.ComponentProps<'ul'>) {\n return <ul data-slot=\"pagination-content\" className={cn('flex items-center gap-0.5', className)} {...props} />;\n}\n\nfunction PaginationItem({ ...props }: React.ComponentProps<'li'>) {\n return <li data-slot=\"pagination-item\" {...props} />;\n}\n\ntype PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<React.ComponentProps<typeof Button>, 'size'> &\n React.ComponentProps<'a'>;\n\nfunction PaginationLink({ className, isActive, size = 'icon', children, ...props }: PaginationLinkProps) {\n return (\n <Button asChild variant={isActive ? 'outline' : 'ghost'} size={size} className={cn(className)}>\n <a aria-current={isActive ? 'page' : undefined} data-slot=\"pagination-link\" data-active={isActive} {...props}>\n {children}\n </a>\n </Button>\n );\n}\n\nfunction PaginationPrevious({\n className,\n text = 'Previous',\n ...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n return (\n <PaginationLink aria-label=\"Go to previous page\" size=\"default\" className={cn('ps-1.5!', className)} {...props}>\n <ChevronLeftIcon data-icon=\"inline-start\" className=\"rtl:rotate-180\" />\n <span className=\"hidden sm:block\">{text}</span>\n </PaginationLink>\n );\n}\n\nfunction PaginationNext({\n className,\n text = 'Next',\n ...props\n}: React.ComponentProps<typeof PaginationLink> & { text?: string }) {\n return (\n <PaginationLink aria-label=\"Go to next page\" size=\"default\" className={cn('pe-1.5!', className)} {...props}>\n <span className=\"hidden sm:block\">{text}</span>\n <ChevronRightIcon data-icon=\"inline-end\" className=\"rtl:rotate-180\" />\n </PaginationLink>\n );\n}\n\nfunction PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>) {\n return (\n <span\n aria-hidden\n data-slot=\"pagination-ellipsis\"\n className={cn(\"flex size-8 items-center justify-center [&_svg:not([class*='size-'])]:size-4\", className)}\n {...props}\n >\n <MoreHorizontalIcon />\n <span className=\"sr-only\">More pages</span>\n </span>\n );\n}\n\nexport {\n Pagination,\n PaginationContent,\n PaginationEllipsis,\n PaginationItem,\n PaginationLink,\n PaginationNext,\n PaginationPrevious,\n};\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyPaginationContract =\n React.ComponentProps<typeof Pagination> extends PaginationBaseProps ? true : false;\n"],"mappings":";;;;;;AAOA,SAASS,EAAW,EAAE,cAAW,GAAGC,KAAsC;CACxE,OACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EACE,MAAK;EACL,cAAW;EACX,aAAU;EACV,WAAWD,EAAG,sCAAsCI,CAAS;EAC7D,GAAID;CACL,CAAA;AAEL;AAEA,SAASE,EAAkB,EAAE,cAAW,GAAGF,KAAqC;CAC9E,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAAC,MAAD;EAAI,aAAU;EAAqB,WAAWD,EAAG,6BAA6BI,CAAS;EAAG,GAAID;CAAQ,CAAA;AAC/G;AAEA,SAASG,EAAe,EAAE,GAAGH,KAAqC;CAChE,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAAC,MAAD;EAAI,aAAU;EAAkB,GAAIE;CAAQ,CAAA;AACrD;AAOA,SAASI,EAAe,EAAE,cAAW,aAAU,UAAO,QAAQ,aAAU,GAAGJ,KAA8B;CACvG,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACO,GAAD;EAAQ,SAAA;EAAQ,SAASC,IAAW,YAAY;EAAe;EAAM,WAAWT,EAAGI,CAAS;EAC1F,UAAA,iBAAA,GAAAH,EAAA,IAAA,CAAC,KAAD;GAAG,gBAAcQ,IAAW,SAAS,KAAA;GAAW,aAAU;GAAkB,eAAaA;GAAU,GAAIN;GACpG;EACA,CAAA;CACG,CAAA;AAEZ;AAEA,SAASO,EAAmB,EAC1B,cACA,UAAO,YACP,GAAGP,KAC+D;CAClE,OACE,iBAAA,GAAAF,EAAA,KAAA,CAACM,GAAD;EAAgB,cAAW;EAAsB,MAAK;EAAU,WAAWP,EAAG,WAAWI,CAAS;EAAG,GAAID;EAAzG,UAAA,CACE,iBAAA,GAAAF,EAAA,IAAA,CAACR,GAAD;GAAiB,aAAU;GAAe,WAAU;EAAkB,CAAA,GACtE,iBAAA,GAAAQ,EAAA,IAAA,CAAC,QAAD;GAAM,WAAU;GAAmB,UAAAU;EAAW,CAAA,CAChC;;AAEpB;AAEA,SAASC,EAAe,EACtB,cACA,UAAO,QACP,GAAGT,KAC+D;CAClE,OACE,iBAAA,GAAAF,EAAA,KAAA,CAACM,GAAD;EAAgB,cAAW;EAAkB,MAAK;EAAU,WAAWP,EAAG,WAAWI,CAAS;EAAG,GAAID;EAArG,UAAA,CACE,iBAAA,GAAAF,EAAA,IAAA,CAAC,QAAD;GAAM,WAAU;GAAmB,UAAAU;EAAW,CAAA,GAC9C,iBAAA,GAAAV,EAAA,IAAA,CAACP,GAAD;GAAkB,aAAU;GAAa,WAAU;EAAkB,CAAA,CACvD;;AAEpB;AAEA,SAASmB,EAAmB,EAAE,cAAW,GAAGV,KAAuC;CACjF,OACE,iBAAA,GAAAF,EAAA,KAAA,CAAC,QAAD;EACE,eAAA;EACA,aAAU;EACV,WAAWD,EAAG,gFAAgFI,CAAS;EACvG,GAAID;EAJN,UAAA,CAME,iBAAA,GAAAF,EAAA,IAAA,CAACN,GAAD,CAAqB,CAAA,GACrB,iBAAA,GAAAM,EAAA,IAAA,CAAC,QAAD;GAAM,WAAU;GAAU,UAAA;EAAgB,CAAA,CACtC;;AAEV"}
|
package/dist/popover.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({...e}){return(0,r.jsx)(t.Vt,{"data-slot":`popover`,...e})}function a({...e}){return(0,r.jsx)(t.Gt,{"data-slot":`popover-trigger`,...e})}function o({className:e,align:n=`center`,sideOffset:i=4,...a}){return(0,r.jsx)(t.Wt,{children:(0,r.jsx)(t.Ut,{"data-slot":`popover-content`,align:n,sideOffset:i,className:t.ei(`bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100`,e),...a})})}function s({...e}){return(0,r.jsx)(t.Ht,{"data-slot":`popover-anchor`,...e})}function c({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`popover-header`,className:t.ei(`flex flex-col gap-0.5 text-sm`,e),...n})}function l({className:e,...n}){return(0,r.jsx)(`div`,{"data-slot":`popover-title`,className:t.ei(`font-medium`,e),...n})}function u({className:e,...n}){return(0,r.jsx)(`p`,{"data-slot":`popover-description`,className:t.ei(`text-muted-foreground`,e),...n})}exports.Popover=i,exports.PopoverAnchor=s,exports.PopoverContent=o,exports.PopoverDescription=u,exports.PopoverHeader=c,exports.PopoverTitle=l,exports.PopoverTrigger=a;
|
|
2
2
|
//# sourceMappingURL=popover.cjs.map
|
package/dist/popover.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.cjs","names":[],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"popover.cjs","names":["cn","require_rolldown_runtime","require_vendor","react","import_jsx_runtime","Popover","props","PopoverTrigger","PopoverContent","className","PopoverAnchor","PopoverHeader","PopoverTitle","PopoverDescription"],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import type { PopoverBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyPopoverContract = React.ComponentProps<typeof Popover> extends PopoverBaseProps ? true : false;\n"],"mappings":"A,iNAKA,SAASK,EAAQ,CAAE,GAAGC,GAA6D,CACjF,OAAO,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CAAuB,YAAU,UAAU,GAAII,CAAQ,CAAA,CAChE,CAEA,SAASC,EAAe,CAAE,GAAGD,GAAgE,CAC3F,OAAO,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CAA0B,YAAU,kBAAkB,GAAII,CAAQ,CAAA,CAC3E,CAEA,SAASE,EAAe,CACtB,YACA,QAAQ,SACR,aAAa,EACb,GAAGF,GACqD,CACxD,OACE,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CAAA,UACE,EAAAE,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,kBACH,QACK,aACZ,UAAWF,EAAAA,GACT,ifACAS,CACF,EACA,GAAIH,CACL,CAAA,CACsB,CAAA,CAE7B,CAEA,SAASI,EAAc,CAAE,GAAGJ,GAA+D,CACzF,OAAO,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CAAyB,YAAU,iBAAiB,GAAII,CAAQ,CAAA,CACzE,CAEA,SAASK,EAAc,CAAE,YAAW,GAAGL,GAAsC,CAC3E,OAAO,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,iBAAiB,UAAWJ,EAAAA,GAAG,gCAAiCS,CAAS,EAAG,GAAIH,CAAQ,CAAA,CAChH,CAEA,SAASM,EAAa,CAAE,YAAW,GAAGN,GAAqC,CACzE,OAAO,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,gBAAgB,UAAWJ,EAAAA,GAAG,cAAeS,CAAS,EAAG,GAAIH,CAAQ,CAAA,CAC7F,CAEA,SAASO,EAAmB,CAAE,YAAW,GAAGP,GAAoC,CAC9E,OAAO,EAAAF,EAAA,IAAA,CAAC,IAAD,CAAG,YAAU,sBAAsB,UAAWJ,EAAAA,GAAG,wBAAyBS,CAAS,EAAG,GAAIH,CAAQ,CAAA,CAC3G,C"}
|
package/dist/popover.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ar as e, Gt as t, Ht as n, Ut as r, Vt as i, Wt as a, ei as o } from "./vendor-
|
|
2
|
+
import { Ar as e, Gt as t, Ht as n, Ut as r, Vt as i, Wt as a, ei as o } from "./vendor-PEVwmg1D.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
|
|
4
|
+
// packages/ui-web/src/popover.tsx
|
|
5
5
|
var s = e();
|
|
6
6
|
function c({ ...e }) {
|
|
7
|
-
return /* @__PURE__ */ (0, s.jsx)(
|
|
7
|
+
return /* @__PURE__ */ (0, s.jsx)(i, {
|
|
8
8
|
"data-slot": "popover",
|
|
9
9
|
...e
|
|
10
10
|
});
|
|
@@ -15,17 +15,17 @@ function l({ ...e }) {
|
|
|
15
15
|
...e
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function u({ className: e, align: t = "center", sideOffset:
|
|
19
|
-
return /* @__PURE__ */ (0, s.jsx)(
|
|
18
|
+
function u({ className: e, align: t = "center", sideOffset: n = 4, ...i }) {
|
|
19
|
+
return /* @__PURE__ */ (0, s.jsx)(a, { children: /* @__PURE__ */ (0, s.jsx)(r, {
|
|
20
20
|
"data-slot": "popover-content",
|
|
21
21
|
align: t,
|
|
22
|
-
sideOffset:
|
|
22
|
+
sideOffset: n,
|
|
23
23
|
className: o("bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100", e),
|
|
24
|
-
...
|
|
24
|
+
...i
|
|
25
25
|
}) });
|
|
26
26
|
}
|
|
27
27
|
function d({ ...e }) {
|
|
28
|
-
return /* @__PURE__ */ (0, s.jsx)(
|
|
28
|
+
return /* @__PURE__ */ (0, s.jsx)(n, {
|
|
29
29
|
"data-slot": "popover-anchor",
|
|
30
30
|
...e
|
|
31
31
|
});
|
|
@@ -51,7 +51,6 @@ function m({ className: e, ...t }) {
|
|
|
51
51
|
...t
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
//#endregion
|
|
55
54
|
export { c as Popover, d as PopoverAnchor, u as PopoverContent, m as PopoverDescription, f as PopoverHeader, p as PopoverTitle, l as PopoverTrigger };
|
|
56
55
|
|
|
57
56
|
//# sourceMappingURL=popover.mjs.map
|
package/dist/popover.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.mjs","names":[],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import { cn } from 'cn';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"popover.mjs","names":["PopoverPrimitive.Root","PopoverPrimitive.Trigger","PopoverPrimitive.Portal","PopoverPrimitive.Content","PopoverPrimitive.Anchor","require_jsx_runtime","PopoverTrigger$1","PopoverAnchor$1","PopoverContent$1","Popover$1","PopoverPortal","cn","import_jsx_runtime","Popover","props","PopoverTrigger","PopoverContent","className","PopoverAnchor","PopoverHeader","PopoverTitle","PopoverDescription"],"sources":["../packages/ui-web/src/popover.tsx"],"sourcesContent":["import type { PopoverBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Popover as PopoverPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {\n return <PopoverPrimitive.Root data-slot=\"popover\" {...props} />;\n}\n\nfunction PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {\n return <PopoverPrimitive.Trigger data-slot=\"popover-trigger\" {...props} />;\n}\n\nfunction PopoverContent({\n className,\n align = 'center',\n sideOffset = 4,\n ...props\n}: React.ComponentProps<typeof PopoverPrimitive.Content>) {\n return (\n <PopoverPrimitive.Portal>\n <PopoverPrimitive.Content\n data-slot=\"popover-content\"\n align={align}\n sideOffset={sideOffset}\n className={cn(\n 'bg-popover text-popover-foreground ring-foreground/10 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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg p-2.5 text-sm shadow-md ring-1 outline-hidden duration-100',\n className,\n )}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\nfunction PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {\n return <PopoverPrimitive.Anchor data-slot=\"popover-anchor\" {...props} />;\n}\n\nfunction PopoverHeader({ className, ...props }: React.ComponentProps<'div'>) {\n return <div data-slot=\"popover-header\" className={cn('flex flex-col gap-0.5 text-sm', className)} {...props} />;\n}\n\nfunction PopoverTitle({ className, ...props }: React.ComponentProps<'h2'>) {\n return <div data-slot=\"popover-title\" className={cn('font-medium', className)} {...props} />;\n}\n\nfunction PopoverDescription({ className, ...props }: React.ComponentProps<'p'>) {\n return <p data-slot=\"popover-description\" className={cn('text-muted-foreground', className)} {...props} />;\n}\n\nexport { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyPopoverContract = React.ComponentProps<typeof Popover> extends PopoverBaseProps ? true : false;\n"],"mappings":";;;;;AAKA,SAASa,EAAQ,EAAE,GAAGC,KAA6D;CACjF,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAACZ,GAAD;EAAuB,aAAU;EAAU,GAAIc;CAAQ,CAAA;AAChE;AAEA,SAASC,EAAe,EAAE,GAAGD,KAAgE;CAC3F,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAACX,GAAD;EAA0B,aAAU;EAAkB,GAAIa;CAAQ,CAAA;AAC3E;AAEA,SAASE,EAAe,EACtB,cACA,WAAQ,UACR,gBAAa,GACb,GAAGF,KACqD;CACxD,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACV,GAAD,EAAA,UACE,iBAAA,GAAAU,EAAA,IAAA,CAACT,GAAD;EACE,aAAU;EACH;EACK;EACZ,WAAWQ,EACT,kfACAM,CACF;EACA,GAAIH;CACL,CAAA,EACsB,CAAA;AAE7B;AAEA,SAASI,EAAc,EAAE,GAAGJ,KAA+D;CACzF,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAACR,GAAD;EAAyB,aAAU;EAAiB,GAAIU;CAAQ,CAAA;AACzE;AAEA,SAASK,EAAc,EAAE,cAAW,GAAGL,KAAsC;CAC3E,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EAAK,aAAU;EAAiB,WAAWD,EAAG,iCAAiCM,CAAS;EAAG,GAAIH;CAAQ,CAAA;AAChH;AAEA,SAASM,EAAa,EAAE,cAAW,GAAGN,KAAqC;CACzE,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAAC,OAAD;EAAK,aAAU;EAAgB,WAAWD,EAAG,eAAeM,CAAS;EAAG,GAAIH;CAAQ,CAAA;AAC7F;AAEA,SAASO,EAAmB,EAAE,cAAW,GAAGP,KAAoC;CAC9E,OAAO,iBAAA,GAAAF,EAAA,IAAA,CAAC,KAAD;EAAG,aAAU;EAAsB,WAAWD,EAAG,yBAAyBM,CAAS;EAAG,GAAIH;CAAQ,CAAA;AAC3G"}
|
package/dist/progress.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js");let n=require("react");n=e.r(n);var r=t.Ar();function i({className:e,value:n,...i}){return(0,r.jsx)(t.zt,{"data-slot":`progress`,value:n,className:t.ei(`bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full`,e),...i,children:(0,r.jsx)(t.Bt,{"data-slot":`progress-indicator`,className:`bg-primary size-full flex-1 transition-all`,style:{transform:`translateX(-${100-(n||0)}%)`}})})}exports.Progress=i;
|
|
2
2
|
//# sourceMappingURL=progress.cjs.map
|
package/dist/progress.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.cjs","names":[],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from 'cn';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"progress.cjs","names":["cn","require_rolldown_runtime","require_vendor","react","import_jsx_runtime","Progress","props","className","value"],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport type { ProgressBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary size-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyProgressContract = React.ComponentProps<typeof Progress> extends ProgressBaseProps ? true : false;\n"],"mappings":"A,8NAOA,SAASK,EAAS,CAAE,YAAW,QAAO,GAAGC,GAA8D,CACrG,OACE,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,WACH,QACP,UAAWF,EAAAA,GAAG,gFAAiFO,CAAS,EACxG,GAAID,EAEJ,UAAA,EAAAF,EAAA,IAAA,CAAAF,EAAA,GAAA,CACE,YAAU,qBACV,UAAU,6CACV,MAAO,CAAE,UAAW,eAAe,KAAOM,GAAS,GAAG,GAAI,CAC3D,CAAA,CACqB,CAAA,CAE5B,C"}
|
package/dist/progress.mjs
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import { Ar as e, Bt as t, ei as n, zt as r } from "./vendor-
|
|
3
|
+
import { Ar as e, Bt as t, ei as n, zt as r } from "./vendor-PEVwmg1D.mjs";
|
|
4
4
|
import "react";
|
|
5
|
-
|
|
5
|
+
// packages/ui-web/src/progress.tsx
|
|
6
6
|
var i = e();
|
|
7
7
|
function a({ className: e, value: a, ...o }) {
|
|
8
|
-
return /* @__PURE__ */ (0, i.jsx)(
|
|
8
|
+
return /* @__PURE__ */ (0, i.jsx)(r, {
|
|
9
9
|
"data-slot": "progress",
|
|
10
10
|
value: a,
|
|
11
11
|
className: n("bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full", e),
|
|
12
12
|
...o,
|
|
13
|
-
children: /* @__PURE__ */ (0, i.jsx)(
|
|
13
|
+
children: /* @__PURE__ */ (0, i.jsx)(t, {
|
|
14
14
|
"data-slot": "progress-indicator",
|
|
15
15
|
className: "bg-primary size-full flex-1 transition-all",
|
|
16
16
|
style: { transform: `translateX(-${100 - (a || 0)}%)` }
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
//#endregion
|
|
21
20
|
export { a as Progress };
|
|
22
21
|
|
|
23
22
|
//# sourceMappingURL=progress.mjs.map
|
package/dist/progress.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.mjs","names":[],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from 'cn';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\
|
|
1
|
+
{"version":3,"file":"progress.mjs","names":["ProgressPrimitive.Root","ProgressPrimitive.Indicator","require_jsx_runtime","ProgressIndicator","cn","Progress$1","import_jsx_runtime","Progress","props","className","value"],"sources":["../packages/ui-web/src/progress.tsx"],"sourcesContent":["'use client';\n\nimport type { ProgressBaseProps } from '@gv-tech/ui-core';\nimport { cn } from 'cn';\nimport { Progress as ProgressPrimitive } from 'radix-ui';\nimport * as React from 'react';\n\nfunction Progress({ className, value, ...props }: React.ComponentProps<typeof ProgressPrimitive.Root>) {\n return (\n <ProgressPrimitive.Root\n data-slot=\"progress\"\n value={value}\n className={cn('bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-full', className)}\n {...props}\n >\n <ProgressPrimitive.Indicator\n data-slot=\"progress-indicator\"\n className=\"bg-primary size-full flex-1 transition-all\"\n style={{ transform: `translateX(-${100 - (value || 0)}%)` }}\n />\n </ProgressPrimitive.Root>\n );\n}\n\nexport { Progress };\n\n// Verify that the component satisfies the ui-core contract\nexport type ___verifyProgressContract = React.ComponentProps<typeof Progress> extends ProgressBaseProps ? true : false;\n"],"mappings":";;;;;;AAOA,SAASO,EAAS,EAAE,cAAW,UAAO,GAAGC,KAA8D;CACrG,OACE,iBAAA,GAAAF,EAAA,IAAA,CAACN,GAAD;EACE,aAAU;EACH;EACP,WAAWI,EAAG,iFAAiFK,CAAS;EACxG,GAAID;EAEJ,UAAA,iBAAA,GAAAF,EAAA,IAAA,CAACL,GAAD;GACE,aAAU;GACV,WAAU;GACV,OAAO,EAAE,WAAW,eAAe,OAAOS,KAAS,GAAG,IAAI;EAC3D,CAAA;CACqB,CAAA;AAE5B"}
|
package/dist/questionnaire.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-
|
|
1
|
+
"use client";"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./rolldown-runtime-DbbDpzbe.js"),t=require("./vendor-Ceu--gxM.js"),n=require("./button.cjs");let r=require("react");r=e.r(r);var i=t.Ar();function a({className:e,...n}){return(0,i.jsx)(t.t.Root,{"data-slot":`questionnaire`,className:t.ei(`flex w-full min-w-0 flex-col gap-4`,e),...n})}function o({className:e,...n}){return(0,i.jsx)(t.t.Progress,{"data-slot":`questionnaire-progress`,className:t.ei(`text-muted-foreground min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium tabular-nums`,e),...n})}function s({className:e,...n}){return(0,i.jsx)(t.t.Item,{"data-slot":`questionnaire-item`,className:t.ei(`flex min-w-0 flex-col gap-4 border-0 p-0 outline-none`,e),...n})}function c({className:e,...n}){return(0,i.jsx)(t.t.Title,{"data-slot":`questionnaire-title`,className:t.ei(`text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4`,e),...n})}function l({className:e,...n}){return(0,i.jsx)(t.t.Description,{"data-slot":`questionnaire-description`,className:t.ei(`text-muted-foreground text-sm text-pretty`,e),...n})}function u({className:e,...n}){return(0,i.jsx)(t.t.Choices,{"data-slot":`questionnaire-choices`,className:t.ei(`group/questionnaire-choices grid min-w-0 gap-2`,e),...n})}function d({children:e,className:n,...r}){return(0,i.jsxs)(t.t.Choice,{"data-slot":`questionnaire-choice`,className:t.ei(`group/questionnaire-choice border-input hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none has-[>input:focus-visible]:ring-3`,`data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50`,n),...r,children:[(0,i.jsx)(t.t.ChoiceInput,{"data-slot":`questionnaire-choice-input`,className:`absolute inset-0 z-10 size-full cursor-pointer opacity-0`}),(0,i.jsxs)(`span`,{"aria-hidden":`true`,"data-slot":`questionnaire-choice-indicator`,className:`border-input group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-[4px] border group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=radio]/questionnaire-choice:rounded-full`,children:[(0,i.jsx)(`span`,{"data-slot":`questionnaire-choice-indicator-dot`,className:`bg-primary-foreground hidden size-2 rounded-full group-data-checked/questionnaire-choice:block group-data-[type=checkbox]/questionnaire-choice:hidden`}),(0,i.jsx)(t.Zr,{"data-slot":`questionnaire-choice-indicator-check`,className:`hidden size-3.5 group-data-checked/questionnaire-choice:block group-data-[type=radio]/questionnaire-choice:hidden`})]}),(0,i.jsx)(t.t.ChoiceLabel,{"data-slot":`questionnaire-choice-label`,className:`flex min-w-0 flex-1 flex-col gap-0.5 leading-snug`,children:e}),(0,i.jsx)(t.t.ChoiceShortcut,{"data-slot":`questionnaire-choice-shortcut`,className:`border-input bg-background text-muted-foreground pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border font-mono text-[0.625rem] leading-none font-medium group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex`})]})}function f({className:e,...n}){return(0,i.jsx)(`span`,{"data-slot":`questionnaire-choice-description`,className:t.ei(`text-muted-foreground`,e),...n})}function p({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`questionnaire-input-wrapper`,className:`group/questionnaire-input relative w-full min-w-0`,children:(0,i.jsx)(t.t.Input,{"data-slot":`questionnaire-input`,className:t.ei(`border-input focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 min-h-11 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 sm:min-h-0 md:text-sm`,`selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground`,e),...n})})}function m({className:e,...n}){return(0,i.jsx)(t.t.Error,{"data-slot":`questionnaire-error`,className:t.ei(`text-destructive mt-2 text-sm`,e),...n})}function h({className:e,...n}){return(0,i.jsx)(`div`,{"data-slot":`questionnaire-actions`,className:t.ei(`grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8`,e),...n})}function g({children:e,className:r,size:a=`default`,variant:o=`outline`,...s}){return(0,i.jsx)(t.t.Previous,{"data-slot":`questionnaire-previous`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0`,r),...s,children:e??`Previous`})}function _({children:e,className:r,size:a=`default`,variant:o=`outline`,...s}){return(0,i.jsx)(t.t.Skip,{"data-slot":`questionnaire-skip`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Skip`})}function v({children:e,className:r,size:a=`default`,variant:o=`default`,...s}){return(0,i.jsx)(t.t.Next,{"data-slot":`questionnaire-next`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Next`})}function y({children:e,className:r,size:a=`default`,variant:o=`default`,...s}){return(0,i.jsx)(t.t.Submit,{"data-slot":`questionnaire-submit`,"data-size":a,"data-variant":o,className:t.ei(n.buttonVariants({size:a,variant:o}),`col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0`,r),...s,children:e??`Submit`})}exports.Questionnaire=a,exports.QuestionnaireActions=h,exports.QuestionnaireChoice=d,exports.QuestionnaireChoiceDescription=f,exports.QuestionnaireChoices=u,exports.QuestionnaireDescription=l,exports.QuestionnaireError=m,exports.QuestionnaireInput=p,exports.QuestionnaireItem=s,exports.QuestionnaireNext=v,exports.QuestionnairePrevious=g,exports.QuestionnaireProgress=o,exports.QuestionnaireSkip=_,exports.QuestionnaireSubmit=y,exports.QuestionnaireTitle=c;
|
|
2
2
|
//# sourceMappingURL=questionnaire.cjs.map
|