@ark-ui/react 5.31.0 → 5.33.0
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/dist/components/anatomy.cjs +7 -5
- package/dist/components/anatomy.d.cts +2 -1
- package/dist/components/anatomy.d.ts +2 -1
- package/dist/components/anatomy.js +2 -1
- package/dist/components/angle-slider/angle-slider-label.d.cts +1 -1
- package/dist/components/angle-slider/angle-slider-label.d.ts +1 -1
- package/dist/components/checkbox/checkbox-group.cjs +2 -1
- package/dist/components/checkbox/checkbox-group.js +2 -1
- package/dist/components/checkbox/use-checkbox-group.cjs +7 -3
- package/dist/components/checkbox/use-checkbox-group.d.cts +4 -0
- package/dist/components/checkbox/use-checkbox-group.d.ts +4 -0
- package/dist/components/checkbox/use-checkbox-group.js +7 -3
- package/dist/components/color-picker/color-picker.anatomy.d.cts +1 -1
- package/dist/components/color-picker/color-picker.anatomy.d.ts +1 -1
- package/dist/components/combobox/combobox.anatomy.d.cts +1 -1
- package/dist/components/combobox/combobox.anatomy.d.ts +1 -1
- package/dist/components/date-picker/date-picker-root.cjs +5 -1
- package/dist/components/date-picker/date-picker-root.js +5 -1
- package/dist/components/date-picker/date-picker-week-number-cell.cjs +24 -0
- package/dist/components/date-picker/date-picker-week-number-cell.d.cts +10 -0
- package/dist/components/date-picker/date-picker-week-number-cell.d.ts +10 -0
- package/dist/components/date-picker/date-picker-week-number-cell.js +20 -0
- package/dist/components/date-picker/date-picker-week-number-header-cell.cjs +23 -0
- package/dist/components/date-picker/date-picker-week-number-header-cell.d.cts +7 -0
- package/dist/components/date-picker/date-picker-week-number-header-cell.d.ts +7 -0
- package/dist/components/date-picker/date-picker-week-number-header-cell.js +19 -0
- package/dist/components/date-picker/date-picker.anatomy.d.cts +1 -1
- package/dist/components/date-picker/date-picker.anatomy.d.ts +1 -1
- package/dist/components/date-picker/date-picker.cjs +4 -0
- package/dist/components/date-picker/date-picker.d.cts +3 -1
- package/dist/components/date-picker/date-picker.d.ts +3 -1
- package/dist/components/date-picker/date-picker.js +2 -0
- package/dist/components/date-picker/index.cjs +4 -0
- package/dist/components/date-picker/index.d.cts +3 -1
- package/dist/components/date-picker/index.d.ts +3 -1
- package/dist/components/date-picker/index.js +2 -0
- package/dist/components/{bottom-sheet/bottom-sheet-backdrop.cjs → drawer/drawer-backdrop.cjs} +7 -7
- package/dist/components/drawer/drawer-backdrop.d.cts +7 -0
- package/dist/components/drawer/drawer-backdrop.d.ts +7 -0
- package/dist/components/{bottom-sheet/bottom-sheet-backdrop.js → drawer/drawer-backdrop.js} +7 -7
- package/dist/components/drawer/drawer-close-trigger.cjs +19 -0
- package/dist/components/drawer/drawer-close-trigger.d.cts +7 -0
- package/dist/components/drawer/drawer-close-trigger.d.ts +7 -0
- package/dist/components/drawer/drawer-close-trigger.js +15 -0
- package/dist/components/{bottom-sheet/bottom-sheet-content.cjs → drawer/drawer-content.cjs} +6 -6
- package/dist/components/drawer/drawer-content.d.cts +8 -0
- package/dist/components/drawer/drawer-content.d.ts +8 -0
- package/dist/components/{bottom-sheet/bottom-sheet-content.js → drawer/drawer-content.js} +6 -6
- package/dist/components/drawer/drawer-context.cjs +10 -0
- package/dist/components/drawer/drawer-context.d.cts +6 -0
- package/dist/components/drawer/drawer-context.d.ts +6 -0
- package/dist/components/drawer/drawer-context.js +6 -0
- package/dist/components/drawer/drawer-grabber-indicator.cjs +19 -0
- package/dist/components/drawer/drawer-grabber-indicator.d.cts +7 -0
- package/dist/components/drawer/drawer-grabber-indicator.d.ts +7 -0
- package/dist/components/drawer/drawer-grabber-indicator.js +15 -0
- package/dist/components/drawer/drawer-grabber.cjs +19 -0
- package/dist/components/drawer/drawer-grabber.d.cts +7 -0
- package/dist/components/drawer/drawer-grabber.d.ts +7 -0
- package/dist/components/drawer/drawer-grabber.js +15 -0
- package/dist/components/drawer/drawer-indent-background.cjs +19 -0
- package/dist/components/drawer/drawer-indent-background.d.cts +7 -0
- package/dist/components/drawer/drawer-indent-background.d.ts +7 -0
- package/dist/components/drawer/drawer-indent-background.js +15 -0
- package/dist/components/drawer/drawer-indent.cjs +19 -0
- package/dist/components/drawer/drawer-indent.d.cts +7 -0
- package/dist/components/drawer/drawer-indent.d.ts +7 -0
- package/dist/components/drawer/drawer-indent.js +15 -0
- package/dist/components/drawer/drawer-positioner.cjs +24 -0
- package/dist/components/drawer/drawer-positioner.d.cts +7 -0
- package/dist/components/drawer/drawer-positioner.d.ts +7 -0
- package/dist/components/drawer/drawer-positioner.js +20 -0
- package/dist/components/drawer/drawer-root-provider.cjs +21 -0
- package/dist/components/drawer/drawer-root-provider.d.cts +14 -0
- package/dist/components/drawer/drawer-root-provider.d.ts +14 -0
- package/dist/components/drawer/drawer-root-provider.js +17 -0
- package/dist/components/{bottom-sheet/bottom-sheet-root.cjs → drawer/drawer-root.cjs} +7 -7
- package/dist/components/drawer/drawer-root.d.cts +9 -0
- package/dist/components/drawer/drawer-root.d.ts +9 -0
- package/dist/components/drawer/drawer-root.js +19 -0
- package/dist/components/drawer/drawer-stack.cjs +40 -0
- package/dist/components/drawer/drawer-stack.d.cts +5 -0
- package/dist/components/drawer/drawer-stack.d.ts +5 -0
- package/dist/components/drawer/drawer-stack.js +17 -0
- package/dist/components/drawer/drawer-title.cjs +19 -0
- package/dist/components/drawer/drawer-title.d.cts +7 -0
- package/dist/components/drawer/drawer-title.d.ts +7 -0
- package/dist/components/drawer/drawer-title.js +15 -0
- package/dist/components/{bottom-sheet/bottom-sheet-trigger.cjs → drawer/drawer-trigger.cjs} +7 -7
- package/dist/components/drawer/drawer-trigger.d.cts +7 -0
- package/dist/components/drawer/drawer-trigger.d.ts +7 -0
- package/dist/components/{bottom-sheet/bottom-sheet-trigger.js → drawer/drawer-trigger.js} +7 -7
- package/dist/components/drawer/drawer.anatomy.d.cts +1 -0
- package/dist/components/drawer/drawer.anatomy.d.ts +1 -0
- package/dist/components/drawer/drawer.cjs +35 -0
- package/dist/components/drawer/drawer.d.cts +15 -0
- package/dist/components/drawer/drawer.d.ts +15 -0
- package/dist/components/drawer/drawer.js +14 -0
- package/dist/components/drawer/index.cjs +48 -0
- package/dist/components/drawer/index.d.cts +20 -0
- package/dist/components/drawer/index.d.ts +20 -0
- package/dist/components/drawer/index.js +20 -0
- package/dist/components/drawer/use-drawer-context.cjs +15 -0
- package/dist/components/drawer/use-drawer-context.d.cts +5 -0
- package/dist/components/drawer/use-drawer-context.d.ts +5 -0
- package/dist/components/drawer/use-drawer-context.js +10 -0
- package/dist/components/drawer/use-drawer-stack-context.cjs +15 -0
- package/dist/components/drawer/use-drawer-stack-context.d.cts +6 -0
- package/dist/components/drawer/use-drawer-stack-context.d.ts +6 -0
- package/dist/components/drawer/use-drawer-stack-context.js +10 -0
- package/dist/components/drawer/use-drawer-stack-store.cjs +13 -0
- package/dist/components/drawer/use-drawer-stack-store.d.cts +4 -0
- package/dist/components/drawer/use-drawer-stack-store.d.ts +4 -0
- package/dist/components/drawer/use-drawer-stack-store.js +8 -0
- package/dist/components/{bottom-sheet/use-bottom-sheet.cjs → drawer/use-drawer.cjs} +9 -6
- package/dist/components/drawer/use-drawer.d.cts +9 -0
- package/dist/components/drawer/use-drawer.d.ts +9 -0
- package/dist/components/{bottom-sheet/use-bottom-sheet.js → drawer/use-drawer.js} +8 -5
- package/dist/components/index.cjs +59 -31
- package/dist/components/index.d.cts +2 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +30 -15
- package/dist/components/listbox/listbox-label.cjs +1 -1
- package/dist/components/listbox/listbox-label.d.cts +2 -2
- package/dist/components/listbox/listbox-label.d.ts +2 -2
- package/dist/components/listbox/listbox-label.js +1 -1
- package/dist/components/progress/progress-label.cjs +1 -1
- package/dist/components/progress/progress-label.d.cts +2 -2
- package/dist/components/progress/progress-label.d.ts +2 -2
- package/dist/components/progress/progress-label.js +1 -1
- package/dist/components/radio-group/radio-group-label.cjs +1 -1
- package/dist/components/radio-group/radio-group-label.d.cts +2 -2
- package/dist/components/radio-group/radio-group-label.d.ts +2 -2
- package/dist/components/radio-group/radio-group-label.js +1 -1
- package/dist/components/segment-group/segment-group-label.cjs +1 -1
- package/dist/components/segment-group/segment-group-label.d.cts +2 -2
- package/dist/components/segment-group/segment-group-label.d.ts +2 -2
- package/dist/components/segment-group/segment-group-label.js +1 -1
- package/dist/components/select/select-root.cjs +1 -0
- package/dist/components/select/select-root.js +1 -0
- package/dist/components/swap/index.cjs +21 -0
- package/dist/components/swap/index.d.cts +7 -0
- package/dist/components/swap/index.d.ts +7 -0
- package/dist/components/swap/index.js +8 -0
- package/dist/components/swap/swap-indicator.cjs +23 -0
- package/dist/components/swap/swap-indicator.d.cts +8 -0
- package/dist/components/swap/swap-indicator.d.ts +8 -0
- package/dist/components/swap/swap-indicator.js +19 -0
- package/dist/components/swap/swap-root-provider.cjs +19 -0
- package/dist/components/swap/swap-root-provider.d.cts +9 -0
- package/dist/components/swap/swap-root-provider.d.ts +9 -0
- package/dist/components/swap/swap-root-provider.js +15 -0
- package/dist/components/swap/swap-root.cjs +21 -0
- package/dist/components/swap/swap-root.d.cts +8 -0
- package/dist/components/swap/swap-root.d.ts +8 -0
- package/dist/components/swap/swap-root.js +17 -0
- package/dist/components/swap/swap.anatomy.cjs +12 -0
- package/dist/components/swap/swap.anatomy.d.cts +3 -0
- package/dist/components/swap/swap.anatomy.d.ts +3 -0
- package/dist/components/swap/swap.anatomy.js +7 -0
- package/dist/components/swap/swap.cjs +15 -0
- package/dist/components/swap/swap.d.cts +4 -0
- package/dist/components/swap/swap.d.ts +4 -0
- package/dist/components/swap/swap.js +4 -0
- package/dist/components/swap/use-swap-context.cjs +15 -0
- package/dist/components/swap/use-swap-context.d.cts +5 -0
- package/dist/components/swap/use-swap-context.d.ts +5 -0
- package/dist/components/swap/use-swap-context.js +10 -0
- package/dist/components/swap/use-swap.cjs +37 -0
- package/dist/components/swap/use-swap.d.cts +36 -0
- package/dist/components/swap/use-swap.d.ts +36 -0
- package/dist/components/swap/use-swap.js +33 -0
- package/dist/components/tour/tour.anatomy.d.cts +1 -1
- package/dist/components/tour/tour.anatomy.d.ts +1 -1
- package/dist/index.cjs +61 -31
- package/dist/index.js +31 -15
- package/dist/providers/index.cjs +2 -0
- package/dist/providers/index.js +1 -0
- package/dist/providers/locale/index.cjs +2 -0
- package/dist/providers/locale/index.d.cts +1 -0
- package/dist/providers/locale/index.d.ts +1 -0
- package/dist/providers/locale/index.js +1 -0
- package/dist/providers/locale/use-date-formatter.cjs +19 -0
- package/dist/providers/locale/use-date-formatter.d.cts +5 -0
- package/dist/providers/locale/use-date-formatter.d.ts +5 -0
- package/dist/providers/locale/use-date-formatter.js +15 -0
- package/package.json +81 -80
- package/dist/components/bottom-sheet/bottom-sheet-backdrop.d.cts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-backdrop.d.ts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-close-trigger.cjs +0 -19
- package/dist/components/bottom-sheet/bottom-sheet-close-trigger.d.cts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-close-trigger.d.ts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-close-trigger.js +0 -15
- package/dist/components/bottom-sheet/bottom-sheet-content.d.cts +0 -8
- package/dist/components/bottom-sheet/bottom-sheet-content.d.ts +0 -8
- package/dist/components/bottom-sheet/bottom-sheet-context.cjs +0 -10
- package/dist/components/bottom-sheet/bottom-sheet-context.d.cts +0 -6
- package/dist/components/bottom-sheet/bottom-sheet-context.d.ts +0 -6
- package/dist/components/bottom-sheet/bottom-sheet-context.js +0 -6
- package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.cjs +0 -21
- package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.d.cts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.d.ts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-grabber-indicator.js +0 -17
- package/dist/components/bottom-sheet/bottom-sheet-grabber.cjs +0 -19
- package/dist/components/bottom-sheet/bottom-sheet-grabber.d.cts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-grabber.d.ts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-grabber.js +0 -15
- package/dist/components/bottom-sheet/bottom-sheet-root-provider.cjs +0 -21
- package/dist/components/bottom-sheet/bottom-sheet-root-provider.d.cts +0 -14
- package/dist/components/bottom-sheet/bottom-sheet-root-provider.d.ts +0 -14
- package/dist/components/bottom-sheet/bottom-sheet-root-provider.js +0 -17
- package/dist/components/bottom-sheet/bottom-sheet-root.d.cts +0 -9
- package/dist/components/bottom-sheet/bottom-sheet-root.d.ts +0 -9
- package/dist/components/bottom-sheet/bottom-sheet-root.js +0 -19
- package/dist/components/bottom-sheet/bottom-sheet-title.cjs +0 -19
- package/dist/components/bottom-sheet/bottom-sheet-title.d.cts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-title.d.ts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-title.js +0 -15
- package/dist/components/bottom-sheet/bottom-sheet-trigger.d.cts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet-trigger.d.ts +0 -7
- package/dist/components/bottom-sheet/bottom-sheet.anatomy.d.cts +0 -1
- package/dist/components/bottom-sheet/bottom-sheet.anatomy.d.ts +0 -1
- package/dist/components/bottom-sheet/bottom-sheet.cjs +0 -27
- package/dist/components/bottom-sheet/bottom-sheet.d.cts +0 -11
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +0 -11
- package/dist/components/bottom-sheet/bottom-sheet.js +0 -10
- package/dist/components/bottom-sheet/index.cjs +0 -38
- package/dist/components/bottom-sheet/index.d.cts +0 -15
- package/dist/components/bottom-sheet/index.d.ts +0 -15
- package/dist/components/bottom-sheet/index.js +0 -15
- package/dist/components/bottom-sheet/use-bottom-sheet-context.cjs +0 -15
- package/dist/components/bottom-sheet/use-bottom-sheet-context.d.cts +0 -5
- package/dist/components/bottom-sheet/use-bottom-sheet-context.d.ts +0 -5
- package/dist/components/bottom-sheet/use-bottom-sheet-context.js +0 -10
- package/dist/components/bottom-sheet/use-bottom-sheet.d.cts +0 -8
- package/dist/components/bottom-sheet/use-bottom-sheet.d.ts +0 -8
package/dist/index.js
CHANGED
|
@@ -34,20 +34,25 @@ export { useAvatar } from './components/avatar/use-avatar.js';
|
|
|
34
34
|
export { useAvatarContext } from './components/avatar/use-avatar-context.js';
|
|
35
35
|
import * as avatar from './components/avatar/avatar.js';
|
|
36
36
|
export { avatar as Avatar };
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
|
|
50
|
-
export {
|
|
37
|
+
export { DrawerBackdrop } from './components/drawer/drawer-backdrop.js';
|
|
38
|
+
export { DrawerCloseTrigger } from './components/drawer/drawer-close-trigger.js';
|
|
39
|
+
export { DrawerContent } from './components/drawer/drawer-content.js';
|
|
40
|
+
export { DrawerContext } from './components/drawer/drawer-context.js';
|
|
41
|
+
export { DrawerPositioner } from './components/drawer/drawer-positioner.js';
|
|
42
|
+
export { DrawerGrabber } from './components/drawer/drawer-grabber.js';
|
|
43
|
+
export { DrawerGrabberIndicator } from './components/drawer/drawer-grabber-indicator.js';
|
|
44
|
+
export { DrawerRoot } from './components/drawer/drawer-root.js';
|
|
45
|
+
export { DrawerRootProvider } from './components/drawer/drawer-root-provider.js';
|
|
46
|
+
export { DrawerTitle } from './components/drawer/drawer-title.js';
|
|
47
|
+
export { DrawerTrigger } from './components/drawer/drawer-trigger.js';
|
|
48
|
+
export { DrawerIndent } from './components/drawer/drawer-indent.js';
|
|
49
|
+
export { DrawerIndentBackground } from './components/drawer/drawer-indent-background.js';
|
|
50
|
+
export { DrawerStack } from './components/drawer/drawer-stack.js';
|
|
51
|
+
export { useDrawer } from './components/drawer/use-drawer.js';
|
|
52
|
+
export { useDrawerContext } from './components/drawer/use-drawer-context.js';
|
|
53
|
+
export { useDrawerStackContext } from './components/drawer/use-drawer-stack-context.js';
|
|
54
|
+
import * as drawer from './components/drawer/drawer.js';
|
|
55
|
+
export { drawer as Drawer };
|
|
51
56
|
export { CarouselAutoplayIndicator } from './components/carousel/carousel-autoplay-indicator.js';
|
|
52
57
|
export { CarouselProgressText } from './components/carousel/carousel-progress-text.js';
|
|
53
58
|
export { CarouselAutoplayTrigger } from './components/carousel/carousel-autoplay-trigger.js';
|
|
@@ -190,6 +195,8 @@ export { DatePickerTableCell } from './components/date-picker/date-picker-table-
|
|
|
190
195
|
export { DatePickerTableCellTrigger } from './components/date-picker/date-picker-table-cell-trigger.js';
|
|
191
196
|
export { DatePickerTableHead } from './components/date-picker/date-picker-table-head.js';
|
|
192
197
|
export { DatePickerTableHeader } from './components/date-picker/date-picker-table-header.js';
|
|
198
|
+
export { DatePickerWeekNumberHeaderCell } from './components/date-picker/date-picker-week-number-header-cell.js';
|
|
199
|
+
export { DatePickerWeekNumberCell } from './components/date-picker/date-picker-week-number-cell.js';
|
|
193
200
|
export { DatePickerTableRow } from './components/date-picker/date-picker-table-row.js';
|
|
194
201
|
export { DatePickerTrigger } from './components/date-picker/date-picker-trigger.js';
|
|
195
202
|
export { DatePickerView } from './components/date-picker/date-picker-view.js';
|
|
@@ -646,6 +653,14 @@ export { useStepsContext } from './components/steps/use-steps-context.js';
|
|
|
646
653
|
export { useStepsItemContext } from './components/steps/use-steps-item-context.js';
|
|
647
654
|
import * as steps from './components/steps/steps.js';
|
|
648
655
|
export { steps as Steps };
|
|
656
|
+
import * as swap from './components/swap/swap.js';
|
|
657
|
+
export { swap as Swap };
|
|
658
|
+
export { SwapIndicator } from './components/swap/swap-indicator.js';
|
|
659
|
+
export { SwapRoot } from './components/swap/swap-root.js';
|
|
660
|
+
export { SwapRootProvider } from './components/swap/swap-root-provider.js';
|
|
661
|
+
export { swapAnatomy } from './components/swap/swap.anatomy.js';
|
|
662
|
+
export { useSwap } from './components/swap/use-swap.js';
|
|
663
|
+
export { useSwapContext } from './components/swap/use-swap-context.js';
|
|
649
664
|
export { SwitchContext } from './components/switch/switch-context.js';
|
|
650
665
|
export { SwitchControl } from './components/switch/switch-control.js';
|
|
651
666
|
export { SwitchHiddenInput } from './components/switch/switch-hidden-input.js';
|
|
@@ -789,6 +804,7 @@ export { EnvironmentProvider } from './providers/environment/environment-provide
|
|
|
789
804
|
export { useEnvironmentContext } from './providers/environment/use-environment-context.js';
|
|
790
805
|
export { LocaleProvider } from './providers/locale/locale-provider.js';
|
|
791
806
|
export { useCollator } from './providers/locale/use-collator.js';
|
|
807
|
+
export { useDateFormatter } from './providers/locale/use-date-formatter.js';
|
|
792
808
|
export { useFilter } from './providers/locale/use-filter.js';
|
|
793
809
|
export { useLocaleContext } from './providers/locale/use-locale-context.js';
|
|
794
810
|
export { createContext } from './utils/create-context.js';
|
|
@@ -796,10 +812,10 @@ export { mergeProps } from '@zag-js/core';
|
|
|
796
812
|
export { anatomy as accordionAnatomy } from '@zag-js/accordion';
|
|
797
813
|
export { anatomy as angleSliderAnatomy } from '@zag-js/angle-slider';
|
|
798
814
|
export { anatomy as avatarAnatomy } from '@zag-js/avatar';
|
|
799
|
-
export { anatomy as bottomSheetAnatomy } from '@zag-js/bottom-sheet';
|
|
800
815
|
export { anatomy as clipboardAnatomy } from '@zag-js/clipboard';
|
|
801
816
|
export { anatomy as collapsibleAnatomy } from '@zag-js/collapsible';
|
|
802
817
|
export { anatomy as dialogAnatomy } from '@zag-js/dialog';
|
|
818
|
+
export { anatomy as drawerAnatomy } from '@zag-js/drawer';
|
|
803
819
|
export { anatomy as editableAnatomy } from '@zag-js/editable';
|
|
804
820
|
export { anatomy as fileUploadAnatomy } from '@zag-js/file-upload';
|
|
805
821
|
export { anatomy as floatingPanelAnatomy } from '@zag-js/floating-panel';
|
package/dist/providers/index.cjs
CHANGED
|
@@ -6,6 +6,7 @@ const environmentProvider = require('./environment/environment-provider.cjs');
|
|
|
6
6
|
const useEnvironmentContext = require('./environment/use-environment-context.cjs');
|
|
7
7
|
const localeProvider = require('./locale/locale-provider.cjs');
|
|
8
8
|
const useCollator = require('./locale/use-collator.cjs');
|
|
9
|
+
const useDateFormatter = require('./locale/use-date-formatter.cjs');
|
|
9
10
|
const useFilter = require('./locale/use-filter.cjs');
|
|
10
11
|
const useLocaleContext = require('./locale/use-locale-context.cjs');
|
|
11
12
|
|
|
@@ -15,5 +16,6 @@ exports.EnvironmentProvider = environmentProvider.EnvironmentProvider;
|
|
|
15
16
|
exports.useEnvironmentContext = useEnvironmentContext.useEnvironmentContext;
|
|
16
17
|
exports.LocaleProvider = localeProvider.LocaleProvider;
|
|
17
18
|
exports.useCollator = useCollator.useCollator;
|
|
19
|
+
exports.useDateFormatter = useDateFormatter.useDateFormatter;
|
|
18
20
|
exports.useFilter = useFilter.useFilter;
|
|
19
21
|
exports.useLocaleContext = useLocaleContext.useLocaleContext;
|
package/dist/providers/index.js
CHANGED
|
@@ -2,5 +2,6 @@ export { EnvironmentProvider } from './environment/environment-provider.js';
|
|
|
2
2
|
export { useEnvironmentContext } from './environment/use-environment-context.js';
|
|
3
3
|
export { LocaleProvider } from './locale/locale-provider.js';
|
|
4
4
|
export { useCollator } from './locale/use-collator.js';
|
|
5
|
+
export { useDateFormatter } from './locale/use-date-formatter.js';
|
|
5
6
|
export { useFilter } from './locale/use-filter.js';
|
|
6
7
|
export { useLocaleContext } from './locale/use-locale-context.js';
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
4
4
|
|
|
5
5
|
const localeProvider = require('./locale-provider.cjs');
|
|
6
6
|
const useCollator = require('./use-collator.cjs');
|
|
7
|
+
const useDateFormatter = require('./use-date-formatter.cjs');
|
|
7
8
|
const useFilter = require('./use-filter.cjs');
|
|
8
9
|
const useLocaleContext = require('./use-locale-context.cjs');
|
|
9
10
|
|
|
@@ -11,5 +12,6 @@ const useLocaleContext = require('./use-locale-context.cjs');
|
|
|
11
12
|
|
|
12
13
|
exports.LocaleProvider = localeProvider.LocaleProvider;
|
|
13
14
|
exports.useCollator = useCollator.useCollator;
|
|
15
|
+
exports.useDateFormatter = useDateFormatter.useDateFormatter;
|
|
14
16
|
exports.useFilter = useFilter.useFilter;
|
|
15
17
|
exports.useLocaleContext = useLocaleContext.useLocaleContext;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { LocaleProvider, type LocaleProviderProps } from './locale-provider';
|
|
2
2
|
export { useCollator, type UseCollatorProps } from './use-collator';
|
|
3
|
+
export { useDateFormatter, type UseDateFormatterProps } from './use-date-formatter';
|
|
3
4
|
export { useFilter, type UseFilterProps, type UseFilterReturn } from './use-filter';
|
|
4
5
|
export { useLocaleContext, type UseLocaleContext } from './use-locale-context';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { LocaleProvider, type LocaleProviderProps } from './locale-provider';
|
|
2
2
|
export { useCollator, type UseCollatorProps } from './use-collator';
|
|
3
|
+
export { useDateFormatter, type UseDateFormatterProps } from './use-date-formatter';
|
|
3
4
|
export { useFilter, type UseFilterProps, type UseFilterReturn } from './use-filter';
|
|
4
5
|
export { useLocaleContext, type UseLocaleContext } from './use-locale-context';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { LocaleProvider } from './locale-provider.js';
|
|
2
2
|
export { useCollator } from './use-collator.js';
|
|
3
|
+
export { useDateFormatter } from './use-date-formatter.js';
|
|
3
4
|
export { useFilter } from './use-filter.js';
|
|
4
5
|
export { useLocaleContext } from './use-locale-context.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const date = require('@internationalized/date');
|
|
7
|
+
const react = require('react');
|
|
8
|
+
const useLocaleContext = require('./use-locale-context.cjs');
|
|
9
|
+
|
|
10
|
+
function useDateFormatter(props = {}) {
|
|
11
|
+
const env = useLocaleContext.useLocaleContext();
|
|
12
|
+
const locale = props.locale ?? env.locale;
|
|
13
|
+
return react.useMemo(() => {
|
|
14
|
+
const { locale: _, ...options } = props;
|
|
15
|
+
return new date.DateFormatter(locale, options);
|
|
16
|
+
}, [locale, props]);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.useDateFormatter = useDateFormatter;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { DateFormatter } from '@internationalized/date';
|
|
3
|
+
import { useMemo } from 'react';
|
|
4
|
+
import { useLocaleContext } from './use-locale-context.js';
|
|
5
|
+
|
|
6
|
+
function useDateFormatter(props = {}) {
|
|
7
|
+
const env = useLocaleContext();
|
|
8
|
+
const locale = props.locale ?? env.locale;
|
|
9
|
+
return useMemo(() => {
|
|
10
|
+
const { locale: _, ...options } = props;
|
|
11
|
+
return new DateFormatter(locale, options);
|
|
12
|
+
}, [locale, props]);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { useDateFormatter };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark-ui/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.33.0",
|
|
5
5
|
"description": "A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"accordion",
|
|
@@ -149,103 +149,104 @@
|
|
|
149
149
|
},
|
|
150
150
|
"sideEffects": false,
|
|
151
151
|
"dependencies": {
|
|
152
|
-
"@internationalized/date": "3.
|
|
153
|
-
"@zag-js/accordion": "1.
|
|
154
|
-
"@zag-js/anatomy": "1.
|
|
155
|
-
"@zag-js/angle-slider": "1.
|
|
156
|
-
"@zag-js/async-list": "1.
|
|
157
|
-
"@zag-js/auto-resize": "1.
|
|
158
|
-
"@zag-js/avatar": "1.
|
|
159
|
-
"@zag-js/
|
|
160
|
-
"@zag-js/
|
|
161
|
-
"@zag-js/checkbox": "1.
|
|
162
|
-
"@zag-js/clipboard": "1.
|
|
163
|
-
"@zag-js/collapsible": "1.
|
|
164
|
-
"@zag-js/collection": "1.
|
|
165
|
-
"@zag-js/color-picker": "1.
|
|
166
|
-
"@zag-js/color-utils": "1.
|
|
167
|
-
"@zag-js/combobox": "1.
|
|
168
|
-
"@zag-js/core": "1.
|
|
169
|
-
"@zag-js/date-picker": "1.
|
|
170
|
-
"@zag-js/date-utils": "1.
|
|
171
|
-
"@zag-js/dialog": "1.
|
|
172
|
-
"@zag-js/dom-query": "1.
|
|
173
|
-
"@zag-js/
|
|
174
|
-
"@zag-js/
|
|
175
|
-
"@zag-js/file-
|
|
176
|
-
"@zag-js/
|
|
177
|
-
"@zag-js/
|
|
178
|
-
"@zag-js/
|
|
179
|
-
"@zag-js/
|
|
180
|
-
"@zag-js/
|
|
181
|
-
"@zag-js/i18n-utils": "1.
|
|
182
|
-
"@zag-js/
|
|
183
|
-
"@zag-js/
|
|
184
|
-
"@zag-js/
|
|
185
|
-
"@zag-js/
|
|
186
|
-
"@zag-js/
|
|
187
|
-
"@zag-js/
|
|
188
|
-
"@zag-js/
|
|
189
|
-
"@zag-js/
|
|
190
|
-
"@zag-js/
|
|
191
|
-
"@zag-js/
|
|
192
|
-
"@zag-js/
|
|
193
|
-
"@zag-js/
|
|
194
|
-
"@zag-js/
|
|
195
|
-
"@zag-js/
|
|
196
|
-
"@zag-js/
|
|
197
|
-
"@zag-js/
|
|
198
|
-
"@zag-js/
|
|
199
|
-
"@zag-js/
|
|
200
|
-
"@zag-js/
|
|
201
|
-
"@zag-js/
|
|
202
|
-
"@zag-js/
|
|
203
|
-
"@zag-js/
|
|
204
|
-
"@zag-js/
|
|
205
|
-
"@zag-js/
|
|
206
|
-
"@zag-js/
|
|
207
|
-
"@zag-js/
|
|
208
|
-
"@zag-js/
|
|
209
|
-
"@zag-js/
|
|
210
|
-
"@zag-js/toggle
|
|
211
|
-
"@zag-js/
|
|
212
|
-
"@zag-js/
|
|
213
|
-
"@zag-js/
|
|
214
|
-
"@zag-js/
|
|
215
|
-
"@zag-js/
|
|
152
|
+
"@internationalized/date": "3.11.0",
|
|
153
|
+
"@zag-js/accordion": "1.35.1",
|
|
154
|
+
"@zag-js/anatomy": "1.35.1",
|
|
155
|
+
"@zag-js/angle-slider": "1.35.1",
|
|
156
|
+
"@zag-js/async-list": "1.35.1",
|
|
157
|
+
"@zag-js/auto-resize": "1.35.1",
|
|
158
|
+
"@zag-js/avatar": "1.35.1",
|
|
159
|
+
"@zag-js/carousel": "1.35.1",
|
|
160
|
+
"@zag-js/cascade-select": "1.35.1",
|
|
161
|
+
"@zag-js/checkbox": "1.35.1",
|
|
162
|
+
"@zag-js/clipboard": "1.35.1",
|
|
163
|
+
"@zag-js/collapsible": "1.35.1",
|
|
164
|
+
"@zag-js/collection": "1.35.1",
|
|
165
|
+
"@zag-js/color-picker": "1.35.1",
|
|
166
|
+
"@zag-js/color-utils": "1.35.1",
|
|
167
|
+
"@zag-js/combobox": "1.35.1",
|
|
168
|
+
"@zag-js/core": "1.35.1",
|
|
169
|
+
"@zag-js/date-picker": "1.35.1",
|
|
170
|
+
"@zag-js/date-utils": "1.35.1",
|
|
171
|
+
"@zag-js/dialog": "1.35.1",
|
|
172
|
+
"@zag-js/dom-query": "1.35.1",
|
|
173
|
+
"@zag-js/drawer": "1.35.1",
|
|
174
|
+
"@zag-js/editable": "1.35.1",
|
|
175
|
+
"@zag-js/file-upload": "1.35.1",
|
|
176
|
+
"@zag-js/file-utils": "1.35.1",
|
|
177
|
+
"@zag-js/floating-panel": "1.35.1",
|
|
178
|
+
"@zag-js/focus-trap": "1.35.1",
|
|
179
|
+
"@zag-js/highlight-word": "1.35.1",
|
|
180
|
+
"@zag-js/hover-card": "1.35.1",
|
|
181
|
+
"@zag-js/i18n-utils": "1.35.1",
|
|
182
|
+
"@zag-js/image-cropper": "1.35.1",
|
|
183
|
+
"@zag-js/json-tree-utils": "1.35.1",
|
|
184
|
+
"@zag-js/listbox": "1.35.1",
|
|
185
|
+
"@zag-js/marquee": "1.35.1",
|
|
186
|
+
"@zag-js/menu": "1.35.1",
|
|
187
|
+
"@zag-js/navigation-menu": "1.35.1",
|
|
188
|
+
"@zag-js/number-input": "1.35.1",
|
|
189
|
+
"@zag-js/pagination": "1.35.1",
|
|
190
|
+
"@zag-js/password-input": "1.35.1",
|
|
191
|
+
"@zag-js/pin-input": "1.35.1",
|
|
192
|
+
"@zag-js/popover": "1.35.1",
|
|
193
|
+
"@zag-js/presence": "1.35.1",
|
|
194
|
+
"@zag-js/progress": "1.35.1",
|
|
195
|
+
"@zag-js/qr-code": "1.35.1",
|
|
196
|
+
"@zag-js/radio-group": "1.35.1",
|
|
197
|
+
"@zag-js/rating-group": "1.35.1",
|
|
198
|
+
"@zag-js/react": "1.35.1",
|
|
199
|
+
"@zag-js/scroll-area": "1.35.1",
|
|
200
|
+
"@zag-js/select": "1.35.1",
|
|
201
|
+
"@zag-js/signature-pad": "1.35.1",
|
|
202
|
+
"@zag-js/slider": "1.35.1",
|
|
203
|
+
"@zag-js/splitter": "1.35.1",
|
|
204
|
+
"@zag-js/steps": "1.35.1",
|
|
205
|
+
"@zag-js/switch": "1.35.1",
|
|
206
|
+
"@zag-js/tabs": "1.35.1",
|
|
207
|
+
"@zag-js/tags-input": "1.35.1",
|
|
208
|
+
"@zag-js/timer": "1.35.1",
|
|
209
|
+
"@zag-js/toast": "1.35.1",
|
|
210
|
+
"@zag-js/toggle": "1.35.1",
|
|
211
|
+
"@zag-js/toggle-group": "1.35.1",
|
|
212
|
+
"@zag-js/tooltip": "1.35.1",
|
|
213
|
+
"@zag-js/tour": "1.35.1",
|
|
214
|
+
"@zag-js/tree-view": "1.35.1",
|
|
215
|
+
"@zag-js/types": "1.35.1",
|
|
216
|
+
"@zag-js/utils": "1.35.1"
|
|
216
217
|
},
|
|
217
218
|
"devDependencies": {
|
|
218
|
-
"@biomejs/biome": "2.
|
|
219
|
-
"@storybook/addon-a11y": "10.
|
|
220
|
-
"@storybook/react-vite": "10.
|
|
219
|
+
"@biomejs/biome": "2.4.4",
|
|
220
|
+
"@storybook/addon-a11y": "10.2.10",
|
|
221
|
+
"@storybook/react-vite": "10.2.10",
|
|
221
222
|
"@tanstack/react-virtual": "3.13.18",
|
|
222
223
|
"@testing-library/dom": "10.4.1",
|
|
223
224
|
"@testing-library/jest-dom": "6.9.1",
|
|
224
|
-
"@testing-library/react": "16.3.
|
|
225
|
+
"@testing-library/react": "16.3.2",
|
|
225
226
|
"@testing-library/user-event": "14.6.1",
|
|
226
227
|
"@types/jsdom": "21.1.7",
|
|
227
|
-
"@types/react": "19.2.
|
|
228
|
+
"@types/react": "19.2.14",
|
|
228
229
|
"@types/react-dom": "19.2.3",
|
|
229
|
-
"@vitejs/plugin-react": "5.1.
|
|
230
|
+
"@vitejs/plugin-react": "5.1.4",
|
|
230
231
|
"@vitest/coverage-v8": "^4.0.0",
|
|
231
232
|
"check-password-strength": "3.0.0",
|
|
232
233
|
"clean-package": "2.2.0",
|
|
233
|
-
"globby": "16.1.
|
|
234
|
-
"happy-dom": "20.0
|
|
234
|
+
"globby": "16.1.1",
|
|
235
|
+
"happy-dom": "20.7.0",
|
|
235
236
|
"image-conversion": "2.1.1",
|
|
236
|
-
"lucide-react": "0.
|
|
237
|
-
"react": "19.2.
|
|
238
|
-
"react-dom": "19.2.
|
|
237
|
+
"lucide-react": "0.575.0",
|
|
238
|
+
"react": "19.2.4",
|
|
239
|
+
"react-dom": "19.2.4",
|
|
239
240
|
"react-frame-component": "5.2.7",
|
|
240
|
-
"react-hook-form": "7.
|
|
241
|
+
"react-hook-form": "7.71.2",
|
|
241
242
|
"react-shadow": "20.6.0",
|
|
242
243
|
"react-use": "17.6.0",
|
|
243
244
|
"resize-observer-polyfill": "1.5.1",
|
|
244
|
-
"storybook": "10.
|
|
245
|
+
"storybook": "10.2.10",
|
|
245
246
|
"typescript": "5.9.3",
|
|
246
|
-
"vite": "7.3.
|
|
247
|
+
"vite": "7.3.1",
|
|
247
248
|
"vite-plugin-dts": "4.5.4",
|
|
248
|
-
"vitest": "^4.0.
|
|
249
|
+
"vitest": "^4.0.18",
|
|
249
250
|
"vitest-axe": "1.0.0-pre.5"
|
|
250
251
|
},
|
|
251
252
|
"peerDependencies": {
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export interface BottomSheetBackdropBaseProps extends PolymorphicProps {
|
|
4
|
-
}
|
|
5
|
-
export interface BottomSheetBackdropProps extends HTMLProps<'div'>, BottomSheetBackdropBaseProps {
|
|
6
|
-
}
|
|
7
|
-
export declare const BottomSheetBackdrop: ForwardRefExoticComponent<BottomSheetBackdropProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export interface BottomSheetBackdropBaseProps extends PolymorphicProps {
|
|
4
|
-
}
|
|
5
|
-
export interface BottomSheetBackdropProps extends HTMLProps<'div'>, BottomSheetBackdropBaseProps {
|
|
6
|
-
}
|
|
7
|
-
export declare const BottomSheetBackdrop: ForwardRefExoticComponent<BottomSheetBackdropProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const react$1 = require('@zag-js/react');
|
|
8
|
-
const react = require('react');
|
|
9
|
-
const factory = require('../factory.cjs');
|
|
10
|
-
const useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
|
|
11
|
-
|
|
12
|
-
const BottomSheetCloseTrigger = react.forwardRef((props, ref) => {
|
|
13
|
-
const bottomSheet = useBottomSheetContext.useBottomSheetContext();
|
|
14
|
-
const mergedProps = react$1.mergeProps(bottomSheet.getCloseTriggerProps(), props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.button, { ...mergedProps, ref });
|
|
16
|
-
});
|
|
17
|
-
BottomSheetCloseTrigger.displayName = "BottomSheetCloseTrigger";
|
|
18
|
-
|
|
19
|
-
exports.BottomSheetCloseTrigger = BottomSheetCloseTrigger;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export interface BottomSheetCloseTriggerBaseProps extends PolymorphicProps {
|
|
4
|
-
}
|
|
5
|
-
export interface BottomSheetCloseTriggerProps extends HTMLProps<'button'>, BottomSheetCloseTriggerBaseProps {
|
|
6
|
-
}
|
|
7
|
-
export declare const BottomSheetCloseTrigger: ForwardRefExoticComponent<BottomSheetCloseTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export interface BottomSheetCloseTriggerBaseProps extends PolymorphicProps {
|
|
4
|
-
}
|
|
5
|
-
export interface BottomSheetCloseTriggerProps extends HTMLProps<'button'>, BottomSheetCloseTriggerBaseProps {
|
|
6
|
-
}
|
|
7
|
-
export declare const BottomSheetCloseTrigger: ForwardRefExoticComponent<BottomSheetCloseTriggerProps & RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { mergeProps } from '@zag-js/react';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
import { ark } from '../factory.js';
|
|
6
|
-
import { useBottomSheetContext } from './use-bottom-sheet-context.js';
|
|
7
|
-
|
|
8
|
-
const BottomSheetCloseTrigger = forwardRef((props, ref) => {
|
|
9
|
-
const bottomSheet = useBottomSheetContext();
|
|
10
|
-
const mergedProps = mergeProps(bottomSheet.getCloseTriggerProps(), props);
|
|
11
|
-
return /* @__PURE__ */ jsx(ark.button, { ...mergedProps, ref });
|
|
12
|
-
});
|
|
13
|
-
BottomSheetCloseTrigger.displayName = "BottomSheetCloseTrigger";
|
|
14
|
-
|
|
15
|
-
export { BottomSheetCloseTrigger };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ContentProps } from '@zag-js/bottom-sheet';
|
|
2
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
-
export interface BottomSheetContentBaseProps extends PolymorphicProps, ContentProps {
|
|
5
|
-
}
|
|
6
|
-
export interface BottomSheetContentProps extends Omit<HTMLProps<'div'>, 'draggable'>, BottomSheetContentBaseProps {
|
|
7
|
-
}
|
|
8
|
-
export declare const BottomSheetContent: ForwardRefExoticComponent<BottomSheetContentProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ContentProps } from '@zag-js/bottom-sheet';
|
|
2
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
3
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
-
export interface BottomSheetContentBaseProps extends PolymorphicProps, ContentProps {
|
|
5
|
-
}
|
|
6
|
-
export interface BottomSheetContentProps extends Omit<HTMLProps<'div'>, 'draggable'>, BottomSheetContentBaseProps {
|
|
7
|
-
}
|
|
8
|
-
export declare const BottomSheetContent: ForwardRefExoticComponent<BottomSheetContentProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
|
|
7
|
-
|
|
8
|
-
const BottomSheetContext = (props) => props.children(useBottomSheetContext.useBottomSheetContext());
|
|
9
|
-
|
|
10
|
-
exports.BottomSheetContext = BottomSheetContext;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { UseBottomSheetContext } from './use-bottom-sheet-context';
|
|
3
|
-
export interface BottomSheetContextProps {
|
|
4
|
-
children: (context: UseBottomSheetContext) => ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const BottomSheetContext: (props: BottomSheetContextProps) => ReactNode;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { UseBottomSheetContext } from './use-bottom-sheet-context';
|
|
3
|
-
export interface BottomSheetContextProps {
|
|
4
|
-
children: (context: UseBottomSheetContext) => ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const BottomSheetContext: (props: BottomSheetContextProps) => ReactNode;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const react$1 = require('@zag-js/react');
|
|
8
|
-
const react = require('react');
|
|
9
|
-
const factory = require('../factory.cjs');
|
|
10
|
-
const useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
|
|
11
|
-
|
|
12
|
-
const BottomSheetGrabberIndicator = react.forwardRef(
|
|
13
|
-
(props, ref) => {
|
|
14
|
-
const bottomSheet = useBottomSheetContext.useBottomSheetContext();
|
|
15
|
-
const mergedProps = react$1.mergeProps(bottomSheet.getGrabberIndicatorProps(), props);
|
|
16
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
17
|
-
}
|
|
18
|
-
);
|
|
19
|
-
BottomSheetGrabberIndicator.displayName = "BottomSheetGrabberIndicator";
|
|
20
|
-
|
|
21
|
-
exports.BottomSheetGrabberIndicator = BottomSheetGrabberIndicator;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export interface BottomSheetGrabberIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
-
}
|
|
5
|
-
export interface BottomSheetGrabberIndicatorProps extends HTMLProps<'div'>, BottomSheetGrabberIndicatorBaseProps {
|
|
6
|
-
}
|
|
7
|
-
export declare const BottomSheetGrabberIndicator: ForwardRefExoticComponent<BottomSheetGrabberIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export interface BottomSheetGrabberIndicatorBaseProps extends PolymorphicProps {
|
|
4
|
-
}
|
|
5
|
-
export interface BottomSheetGrabberIndicatorProps extends HTMLProps<'div'>, BottomSheetGrabberIndicatorBaseProps {
|
|
6
|
-
}
|
|
7
|
-
export declare const BottomSheetGrabberIndicator: ForwardRefExoticComponent<BottomSheetGrabberIndicatorProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { mergeProps } from '@zag-js/react';
|
|
4
|
-
import { forwardRef } from 'react';
|
|
5
|
-
import { ark } from '../factory.js';
|
|
6
|
-
import { useBottomSheetContext } from './use-bottom-sheet-context.js';
|
|
7
|
-
|
|
8
|
-
const BottomSheetGrabberIndicator = forwardRef(
|
|
9
|
-
(props, ref) => {
|
|
10
|
-
const bottomSheet = useBottomSheetContext();
|
|
11
|
-
const mergedProps = mergeProps(bottomSheet.getGrabberIndicatorProps(), props);
|
|
12
|
-
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
BottomSheetGrabberIndicator.displayName = "BottomSheetGrabberIndicator";
|
|
16
|
-
|
|
17
|
-
export { BottomSheetGrabberIndicator };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
-
|
|
6
|
-
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const react$1 = require('@zag-js/react');
|
|
8
|
-
const react = require('react');
|
|
9
|
-
const factory = require('../factory.cjs');
|
|
10
|
-
const useBottomSheetContext = require('./use-bottom-sheet-context.cjs');
|
|
11
|
-
|
|
12
|
-
const BottomSheetGrabber = react.forwardRef((props, ref) => {
|
|
13
|
-
const bottomSheet = useBottomSheetContext.useBottomSheetContext();
|
|
14
|
-
const mergedProps = react$1.mergeProps(bottomSheet.getGrabberProps(), props);
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
16
|
-
});
|
|
17
|
-
BottomSheetGrabber.displayName = "BottomSheetGrabber";
|
|
18
|
-
|
|
19
|
-
exports.BottomSheetGrabber = BottomSheetGrabber;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export interface BottomSheetGrabberBaseProps extends PolymorphicProps {
|
|
4
|
-
}
|
|
5
|
-
export interface BottomSheetGrabberProps extends HTMLProps<'div'>, BottomSheetGrabberBaseProps {
|
|
6
|
-
}
|
|
7
|
-
export declare const BottomSheetGrabber: ForwardRefExoticComponent<BottomSheetGrabberProps & RefAttributes<HTMLDivElement>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HTMLProps, PolymorphicProps } from '../factory';
|
|
2
|
-
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
export interface BottomSheetGrabberBaseProps extends PolymorphicProps {
|
|
4
|
-
}
|
|
5
|
-
export interface BottomSheetGrabberProps extends HTMLProps<'div'>, BottomSheetGrabberBaseProps {
|
|
6
|
-
}
|
|
7
|
-
export declare const BottomSheetGrabber: ForwardRefExoticComponent<BottomSheetGrabberProps & RefAttributes<HTMLDivElement>>;
|