@ark-ui/react 3.4.0 → 3.5.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/accordion/accordion.anatomy.d.cts +1 -0
- package/dist/components/accordion/accordion.anatomy.d.ts +1 -0
- package/dist/components/accordion/index.cjs +7 -2
- package/dist/components/accordion/index.d.cts +7 -6
- package/dist/components/accordion/index.d.ts +7 -6
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/avatar/avatar.anatomy.d.cts +1 -0
- package/dist/components/avatar/avatar.anatomy.d.ts +1 -0
- package/dist/components/avatar/index.cjs +7 -2
- package/dist/components/avatar/index.d.cts +1 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/carousel/carousel-control.cjs +2 -2
- package/dist/components/carousel/carousel-control.js +1 -1
- package/dist/components/carousel/carousel.anatomy.cjs +10 -0
- package/dist/components/carousel/carousel.anatomy.d.cts +2 -0
- package/dist/components/carousel/carousel.anatomy.d.ts +2 -0
- package/dist/components/carousel/carousel.anatomy.js +6 -0
- package/dist/components/carousel/index.cjs +2 -0
- package/dist/components/carousel/index.d.cts +1 -0
- package/dist/components/carousel/index.d.ts +1 -0
- package/dist/components/carousel/index.js +1 -0
- package/dist/components/checkbox/checkbox-group.cjs +4 -3
- package/dist/components/checkbox/checkbox-group.js +3 -2
- package/dist/components/checkbox/checkbox.anatomy.cjs +10 -0
- package/dist/components/checkbox/checkbox.anatomy.d.cts +2 -0
- package/dist/components/checkbox/checkbox.anatomy.d.ts +2 -0
- package/dist/components/checkbox/checkbox.anatomy.js +6 -0
- package/dist/components/checkbox/index.cjs +2 -0
- package/dist/components/checkbox/index.d.cts +1 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/use-checkbox-group.cjs +3 -1
- package/dist/components/checkbox/use-checkbox-group.d.cts +7 -0
- package/dist/components/checkbox/use-checkbox-group.d.ts +7 -0
- package/dist/components/checkbox/use-checkbox-group.js +3 -1
- package/dist/components/clipboard/clipboard.anatomy.d.cts +1 -0
- package/dist/components/clipboard/clipboard.anatomy.d.ts +1 -0
- package/dist/components/clipboard/index.cjs +7 -2
- package/dist/components/clipboard/index.d.cts +1 -0
- package/dist/components/clipboard/index.d.ts +1 -0
- package/dist/components/clipboard/index.js +1 -0
- package/dist/components/collapsible/collapsible.anatomy.d.cts +1 -0
- package/dist/components/collapsible/collapsible.anatomy.d.ts +1 -0
- package/dist/components/collapsible/index.cjs +7 -2
- package/dist/components/collapsible/index.d.cts +1 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/color-picker/color-picker-value-text.cjs +4 -2
- package/dist/components/color-picker/color-picker-value-text.js +4 -2
- package/dist/components/color-picker/color-picker-view.cjs +2 -2
- package/dist/components/color-picker/color-picker-view.js +1 -1
- package/dist/components/color-picker/color-picker.anatomy.cjs +10 -0
- package/dist/components/color-picker/color-picker.anatomy.d.cts +2 -0
- package/dist/components/color-picker/color-picker.anatomy.d.ts +2 -0
- package/dist/components/color-picker/color-picker.anatomy.js +6 -0
- package/dist/components/color-picker/index.cjs +2 -0
- package/dist/components/color-picker/index.d.cts +1 -0
- package/dist/components/color-picker/index.d.ts +1 -0
- package/dist/components/color-picker/index.js +1 -0
- package/dist/components/combobox/combobox.anatomy.d.cts +1 -0
- package/dist/components/combobox/combobox.anatomy.d.ts +1 -0
- package/dist/components/combobox/index.cjs +7 -2
- package/dist/components/combobox/index.d.cts +1 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/combobox/index.js +1 -0
- package/dist/components/date-picker/date-picker-view.cjs +2 -2
- package/dist/components/date-picker/date-picker-view.js +1 -1
- package/dist/components/date-picker/date-picker.anatomy.cjs +10 -0
- package/dist/components/date-picker/date-picker.anatomy.d.cts +2 -0
- package/dist/components/date-picker/date-picker.anatomy.d.ts +2 -0
- package/dist/components/date-picker/date-picker.anatomy.js +6 -0
- package/dist/components/date-picker/index.cjs +2 -0
- package/dist/components/date-picker/index.d.cts +1 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/dialog/dialog.anatomy.d.cts +1 -0
- package/dist/components/dialog/dialog.anatomy.d.ts +1 -0
- package/dist/components/dialog/index.cjs +7 -2
- package/dist/components/dialog/index.d.cts +1 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/editable/editable.anatomy.d.cts +1 -0
- package/dist/components/editable/editable.anatomy.d.ts +1 -0
- package/dist/components/editable/index.cjs +7 -2
- package/dist/components/editable/index.d.cts +1 -0
- package/dist/components/editable/index.d.ts +1 -0
- package/dist/components/editable/index.js +1 -0
- package/dist/components/field/field.anatomy.cjs +20 -0
- package/dist/components/field/field.anatomy.d.cts +3 -0
- package/dist/components/field/field.anatomy.d.ts +3 -0
- package/dist/components/field/field.anatomy.js +15 -0
- package/dist/components/field/index.cjs +2 -0
- package/dist/components/field/index.d.cts +1 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/field/index.js +1 -0
- package/dist/components/field/use-field.cjs +8 -9
- package/dist/components/field/use-field.js +1 -2
- package/dist/components/file-upload/file-upload.anatomy.d.cts +1 -0
- package/dist/components/file-upload/file-upload.anatomy.d.ts +1 -0
- package/dist/components/file-upload/index.cjs +7 -2
- package/dist/components/file-upload/index.d.cts +1 -0
- package/dist/components/file-upload/index.d.ts +1 -0
- package/dist/components/file-upload/index.js +1 -0
- package/dist/components/hover-card/hover-card.anatomy.d.cts +1 -0
- package/dist/components/hover-card/hover-card.anatomy.d.ts +1 -0
- package/dist/components/hover-card/index.cjs +7 -2
- package/dist/components/hover-card/index.d.cts +1 -0
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/hover-card/index.js +1 -0
- package/dist/components/index.cjs +209 -50
- package/dist/components/index.js +36 -0
- package/dist/components/menu/index.cjs +7 -2
- package/dist/components/menu/index.d.cts +1 -0
- package/dist/components/menu/index.d.ts +1 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/menu.anatomy.d.cts +1 -0
- package/dist/components/menu/menu.anatomy.d.ts +1 -0
- package/dist/components/number-input/index.cjs +9 -2
- package/dist/components/number-input/index.d.cts +10 -8
- package/dist/components/number-input/index.d.ts +10 -8
- package/dist/components/number-input/index.js +2 -0
- package/dist/components/number-input/number-input-value-text.cjs +22 -0
- package/dist/components/number-input/number-input-value-text.d.cts +8 -0
- package/dist/components/number-input/number-input-value-text.d.ts +8 -0
- package/dist/components/number-input/number-input-value-text.js +18 -0
- package/dist/components/number-input/number-input.anatomy.d.cts +1 -0
- package/dist/components/number-input/number-input.anatomy.d.ts +1 -0
- package/dist/components/number-input/number-input.cjs +2 -0
- package/dist/components/number-input/number-input.d.cts +9 -8
- package/dist/components/number-input/number-input.d.ts +9 -8
- package/dist/components/number-input/number-input.js +1 -0
- package/dist/components/pagination/index.cjs +7 -2
- package/dist/components/pagination/index.d.cts +1 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pagination/pagination.anatomy.d.cts +1 -0
- package/dist/components/pagination/pagination.anatomy.d.ts +1 -0
- package/dist/components/pin-input/index.cjs +7 -2
- package/dist/components/pin-input/index.d.cts +1 -0
- package/dist/components/pin-input/index.d.ts +1 -0
- package/dist/components/pin-input/index.js +1 -0
- package/dist/components/pin-input/pin-input.anatomy.d.cts +1 -0
- package/dist/components/pin-input/pin-input.anatomy.d.ts +1 -0
- package/dist/components/popover/index.cjs +7 -2
- package/dist/components/popover/index.d.cts +1 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/popover.anatomy.d.cts +1 -0
- package/dist/components/popover/popover.anatomy.d.ts +1 -0
- package/dist/components/progress/index.cjs +7 -2
- package/dist/components/progress/index.d.cts +1 -0
- package/dist/components/progress/index.d.ts +1 -0
- package/dist/components/progress/index.js +1 -0
- package/dist/components/progress/progress.anatomy.d.cts +1 -0
- package/dist/components/progress/progress.anatomy.d.ts +1 -0
- package/dist/components/qr-code/index.cjs +5 -0
- package/dist/components/qr-code/index.d.cts +1 -0
- package/dist/components/qr-code/index.d.ts +1 -0
- package/dist/components/qr-code/index.js +1 -0
- package/dist/components/qr-code/qr-code.anatomy.d.cts +1 -0
- package/dist/components/qr-code/qr-code.anatomy.d.ts +1 -0
- package/dist/components/radio-group/index.cjs +5 -0
- package/dist/components/radio-group/index.d.cts +1 -0
- package/dist/components/radio-group/index.d.ts +1 -0
- package/dist/components/radio-group/index.js +1 -0
- package/dist/components/radio-group/radio-group.anatomy.d.cts +1 -0
- package/dist/components/radio-group/radio-group.anatomy.d.ts +1 -0
- package/dist/components/rating-group/index.cjs +5 -0
- package/dist/components/rating-group/index.d.cts +1 -0
- package/dist/components/rating-group/index.d.ts +1 -0
- package/dist/components/rating-group/index.js +1 -0
- package/dist/components/rating-group/rating-group.anatomy.d.cts +1 -0
- package/dist/components/rating-group/rating-group.anatomy.d.ts +1 -0
- package/dist/components/segment-group/index.cjs +2 -0
- package/dist/components/segment-group/index.d.cts +1 -0
- package/dist/components/segment-group/index.d.ts +1 -0
- package/dist/components/segment-group/index.js +1 -0
- package/dist/components/segment-group/segment-group-indicator.cjs +2 -2
- package/dist/components/segment-group/segment-group-indicator.js +2 -2
- package/dist/components/segment-group/segment-group-item-control.cjs +2 -2
- package/dist/components/segment-group/segment-group-item-control.js +2 -2
- package/dist/components/segment-group/segment-group-item-text.cjs +2 -2
- package/dist/components/segment-group/segment-group-item-text.js +2 -2
- package/dist/components/segment-group/segment-group-item.cjs +2 -2
- package/dist/components/segment-group/segment-group-item.js +2 -2
- package/dist/components/segment-group/segment-group-label.cjs +2 -2
- package/dist/components/segment-group/segment-group-label.js +2 -2
- package/dist/components/segment-group/segment-group-root-provider.cjs +2 -2
- package/dist/components/segment-group/segment-group-root-provider.js +2 -2
- package/dist/components/segment-group/segment-group-root.cjs +2 -2
- package/dist/components/segment-group/segment-group-root.js +2 -2
- package/dist/components/segment-group/segment-group.anatomy.cjs +12 -0
- package/dist/components/segment-group/segment-group.anatomy.d.cts +3 -0
- package/dist/components/segment-group/segment-group.anatomy.d.ts +3 -0
- package/dist/components/segment-group/segment-group.anatomy.js +7 -0
- package/dist/components/select/index.cjs +7 -2
- package/dist/components/select/index.d.cts +1 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/select-hidden-select.cjs +1 -1
- package/dist/components/select/select-hidden-select.js +1 -1
- package/dist/components/select/select-value-text.cjs +4 -3
- package/dist/components/select/select-value-text.js +4 -3
- package/dist/components/select/select.anatomy.d.cts +1 -0
- package/dist/components/select/select.anatomy.d.ts +1 -0
- package/dist/components/signature-pad/index.cjs +7 -2
- package/dist/components/signature-pad/index.d.cts +1 -0
- package/dist/components/signature-pad/index.d.ts +1 -0
- package/dist/components/signature-pad/index.js +1 -0
- package/dist/components/signature-pad/signature-pad.anatomy.d.cts +1 -0
- package/dist/components/signature-pad/signature-pad.anatomy.d.ts +1 -0
- package/dist/components/slider/index.cjs +7 -2
- package/dist/components/slider/index.d.cts +1 -0
- package/dist/components/slider/index.d.ts +1 -0
- package/dist/components/slider/index.js +1 -0
- package/dist/components/slider/slider.anatomy.d.cts +1 -0
- package/dist/components/slider/slider.anatomy.d.ts +1 -0
- package/dist/components/splitter/index.cjs +7 -2
- package/dist/components/splitter/index.d.cts +1 -0
- package/dist/components/splitter/index.d.ts +1 -0
- package/dist/components/splitter/index.js +1 -0
- package/dist/components/splitter/splitter.anatomy.d.cts +1 -0
- package/dist/components/splitter/splitter.anatomy.d.ts +1 -0
- package/dist/components/switch/index.cjs +5 -0
- package/dist/components/switch/index.d.cts +1 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/switch.anatomy.d.cts +1 -0
- package/dist/components/switch/switch.anatomy.d.ts +1 -0
- package/dist/components/tabs/index.cjs +7 -2
- package/dist/components/tabs/index.d.cts +1 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/tabs.anatomy.d.cts +1 -0
- package/dist/components/tabs/tabs.anatomy.d.ts +1 -0
- package/dist/components/tags-input/index.cjs +7 -2
- package/dist/components/tags-input/index.d.cts +1 -0
- package/dist/components/tags-input/index.d.ts +1 -0
- package/dist/components/tags-input/index.js +1 -0
- package/dist/components/tags-input/tags-input.anatomy.d.cts +1 -0
- package/dist/components/tags-input/tags-input.anatomy.d.ts +1 -0
- package/dist/components/toast/index.cjs +7 -2
- package/dist/components/toast/index.d.cts +1 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/toast/index.js +1 -0
- package/dist/components/toast/toast.anatomy.d.cts +1 -0
- package/dist/components/toast/toast.anatomy.d.ts +1 -0
- package/dist/components/toggle-group/index.cjs +7 -2
- package/dist/components/toggle-group/index.d.cts +1 -0
- package/dist/components/toggle-group/index.d.ts +1 -0
- package/dist/components/toggle-group/index.js +1 -0
- package/dist/components/toggle-group/toggle-group.anatomy.d.cts +1 -0
- package/dist/components/toggle-group/toggle-group.anatomy.d.ts +1 -0
- package/dist/components/tooltip/index.cjs +7 -2
- package/dist/components/tooltip/index.d.cts +1 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/tooltip.anatomy.d.cts +1 -0
- package/dist/components/tooltip/tooltip.anatomy.d.ts +1 -0
- package/dist/components/tree-view/index.cjs +7 -2
- package/dist/components/tree-view/index.d.cts +1 -0
- package/dist/components/tree-view/index.d.ts +1 -0
- package/dist/components/tree-view/index.js +1 -0
- package/dist/components/tree-view/tree-view.anatomy.d.cts +1 -0
- package/dist/components/tree-view/tree-view.anatomy.d.ts +1 -0
- package/dist/index.cjs +209 -50
- package/dist/index.js +36 -0
- package/package.json +44 -44
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as qrCodeAnatomy } from '@zag-js/qr-code';
|
|
@@ -16,6 +16,7 @@ const useRadioGroup = require('./use-radio-group.cjs');
|
|
|
16
16
|
const useRadioGroupContext = require('./use-radio-group-context.cjs');
|
|
17
17
|
const useRadioGroupItemContext = require('./use-radio-group-item-context.cjs');
|
|
18
18
|
const radioGroup = require('./radio-group.cjs');
|
|
19
|
+
const radio = require('@zag-js/radio-group');
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
|
|
@@ -33,3 +34,7 @@ exports.useRadioGroup = useRadioGroup.useRadioGroup;
|
|
|
33
34
|
exports.useRadioGroupContext = useRadioGroupContext.useRadioGroupContext;
|
|
34
35
|
exports.useRadioGroupItemContext = useRadioGroupItemContext.useRadioGroupItemContext;
|
|
35
36
|
exports.RadioGroup = radioGroup;
|
|
37
|
+
Object.defineProperty(exports, "radioGroupAnatomy", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: () => radio.anatomy
|
|
40
|
+
});
|
|
@@ -12,4 +12,5 @@ export { RadioGroupRootProvider, type RadioGroupRootProviderProps, type RadioGro
|
|
|
12
12
|
export { useRadioGroup, type UseRadioGroupProps, type UseRadioGroupReturn } from './use-radio-group';
|
|
13
13
|
export { useRadioGroupContext, type UseRadioGroupContext } from './use-radio-group-context';
|
|
14
14
|
export { useRadioGroupItemContext, type UseRadioGroupItemContext, } from './use-radio-group-item-context';
|
|
15
|
+
export { radioGroupAnatomy } from './radio-group.anatomy';
|
|
15
16
|
export * as RadioGroup from './radio-group';
|
|
@@ -12,4 +12,5 @@ export { RadioGroupRootProvider, type RadioGroupRootProviderProps, type RadioGro
|
|
|
12
12
|
export { useRadioGroup, type UseRadioGroupProps, type UseRadioGroupReturn } from './use-radio-group';
|
|
13
13
|
export { useRadioGroupContext, type UseRadioGroupContext } from './use-radio-group-context';
|
|
14
14
|
export { useRadioGroupItemContext, type UseRadioGroupItemContext, } from './use-radio-group-item-context';
|
|
15
|
+
export { radioGroupAnatomy } from './radio-group.anatomy';
|
|
15
16
|
export * as RadioGroup from './radio-group';
|
|
@@ -13,3 +13,4 @@ export { useRadioGroupContext } from './use-radio-group-context.js';
|
|
|
13
13
|
export { useRadioGroupItemContext } from './use-radio-group-item-context.js';
|
|
14
14
|
import * as radioGroup from './radio-group.js';
|
|
15
15
|
export { radioGroup as RadioGroup };
|
|
16
|
+
export { anatomy as radioGroupAnatomy } from '@zag-js/radio-group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as radioGroupAnatomy } from '@zag-js/radio-group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as radioGroupAnatomy } from '@zag-js/radio-group';
|
|
@@ -14,6 +14,7 @@ const useRatingGroup = require('./use-rating-group.cjs');
|
|
|
14
14
|
const useRatingGroupContext = require('./use-rating-group-context.cjs');
|
|
15
15
|
const useRatingGroupItemContext = require('./use-rating-group-item-context.cjs');
|
|
16
16
|
const ratingGroup = require('./rating-group.cjs');
|
|
17
|
+
const rating = require('@zag-js/rating-group');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -29,3 +30,7 @@ exports.useRatingGroup = useRatingGroup.useRatingGroup;
|
|
|
29
30
|
exports.useRatingGroupContext = useRatingGroupContext.useRatingGroupContext;
|
|
30
31
|
exports.useRatingGroupItemContext = useRatingGroupItemContext.useRatingGroupItemContext;
|
|
31
32
|
exports.RatingGroup = ratingGroup;
|
|
33
|
+
Object.defineProperty(exports, "ratingGroupAnatomy", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: () => rating.anatomy
|
|
36
|
+
});
|
|
@@ -10,4 +10,5 @@ export { RatingGroupRootProvider, type RatingGroupRootProviderProps, type Rating
|
|
|
10
10
|
export { useRatingGroup, type UseRatingGroupProps, type UseRatingGroupReturn, } from './use-rating-group';
|
|
11
11
|
export { useRatingGroupContext, type UseRatingGroupContext } from './use-rating-group-context';
|
|
12
12
|
export { useRatingGroupItemContext, type UseRatingGroupItemContext, } from './use-rating-group-item-context';
|
|
13
|
+
export { ratingGroupAnatomy } from './rating-group.anatomy';
|
|
13
14
|
export * as RatingGroup from './rating-group';
|
|
@@ -10,4 +10,5 @@ export { RatingGroupRootProvider, type RatingGroupRootProviderProps, type Rating
|
|
|
10
10
|
export { useRatingGroup, type UseRatingGroupProps, type UseRatingGroupReturn, } from './use-rating-group';
|
|
11
11
|
export { useRatingGroupContext, type UseRatingGroupContext } from './use-rating-group-context';
|
|
12
12
|
export { useRatingGroupItemContext, type UseRatingGroupItemContext, } from './use-rating-group-item-context';
|
|
13
|
+
export { ratingGroupAnatomy } from './rating-group.anatomy';
|
|
13
14
|
export * as RatingGroup from './rating-group';
|
|
@@ -11,3 +11,4 @@ export { useRatingGroupContext } from './use-rating-group-context.js';
|
|
|
11
11
|
export { useRatingGroupItemContext } from './use-rating-group-item-context.js';
|
|
12
12
|
import * as ratingGroup from './rating-group.js';
|
|
13
13
|
export { ratingGroup as RatingGroup };
|
|
14
|
+
export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
|
|
@@ -15,6 +15,7 @@ const segmentGroupRootProvider = require('./segment-group-root-provider.cjs');
|
|
|
15
15
|
const useSegmentGroup = require('./use-segment-group.cjs');
|
|
16
16
|
const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
17
17
|
const useSegmentGroupItemContext = require('./use-segment-group-item-context.cjs');
|
|
18
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
18
19
|
const segmentGroup = require('./segment-group.cjs');
|
|
19
20
|
|
|
20
21
|
|
|
@@ -32,4 +33,5 @@ exports.SegmentGroupRootProvider = segmentGroupRootProvider.SegmentGroupRootProv
|
|
|
32
33
|
exports.useSegmentGroup = useSegmentGroup.useSegmentGroup;
|
|
33
34
|
exports.useSegmentGroupContext = useSegmentGroupContext.useSegmentGroupContext;
|
|
34
35
|
exports.useSegmentGroupItemContext = useSegmentGroupItemContext.useSegmentGroupItemContext;
|
|
36
|
+
exports.segmentGroupAnatomy = segmentGroup_anatomy.segmentGroupAnatomy;
|
|
35
37
|
exports.SegmentGroup = segmentGroup;
|
|
@@ -12,4 +12,5 @@ export { SegmentGroupRootProvider, type SegmentGroupRootProviderProps, type Segm
|
|
|
12
12
|
export { useSegmentGroup, type UseSegmentGroupProps, type UseSegmentGroupReturn, } from './use-segment-group';
|
|
13
13
|
export { useSegmentGroupContext, type UseSegmentGroupContext } from './use-segment-group-context';
|
|
14
14
|
export { useSegmentGroupItemContext, type UseSegmentGroupItemContext, } from './use-segment-group-item-context';
|
|
15
|
+
export { segmentGroupAnatomy } from './segment-group.anatomy';
|
|
15
16
|
export * as SegmentGroup from './segment-group';
|
|
@@ -12,4 +12,5 @@ export { SegmentGroupRootProvider, type SegmentGroupRootProviderProps, type Segm
|
|
|
12
12
|
export { useSegmentGroup, type UseSegmentGroupProps, type UseSegmentGroupReturn, } from './use-segment-group';
|
|
13
13
|
export { useSegmentGroupContext, type UseSegmentGroupContext } from './use-segment-group-context';
|
|
14
14
|
export { useSegmentGroupItemContext, type UseSegmentGroupItemContext, } from './use-segment-group-item-context';
|
|
15
|
+
export { segmentGroupAnatomy } from './segment-group.anatomy';
|
|
15
16
|
export * as SegmentGroup from './segment-group';
|
|
@@ -11,5 +11,6 @@ export { SegmentGroupRootProvider } from './segment-group-root-provider.js';
|
|
|
11
11
|
export { useSegmentGroup } from './use-segment-group.js';
|
|
12
12
|
export { useSegmentGroupContext } from './use-segment-group-context.js';
|
|
13
13
|
export { useSegmentGroupItemContext } from './use-segment-group-item-context.js';
|
|
14
|
+
export { segmentGroupAnatomy } from './segment-group.anatomy.js';
|
|
14
15
|
import * as segmentGroup from './segment-group.js';
|
|
15
16
|
export { segmentGroup as SegmentGroup };
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const anatomy = require('@ark-ui/anatomy');
|
|
8
7
|
const react$1 = require('@zag-js/react');
|
|
9
8
|
const react = require('react');
|
|
10
9
|
const factory = require('../factory.cjs');
|
|
10
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
11
11
|
const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
12
12
|
|
|
13
13
|
const SegmentGroupIndicator = react.forwardRef(
|
|
@@ -15,7 +15,7 @@ const SegmentGroupIndicator = react.forwardRef(
|
|
|
15
15
|
const segmentGroup = useSegmentGroupContext.useSegmentGroupContext();
|
|
16
16
|
const mergedProps = react$1.mergeProps(
|
|
17
17
|
segmentGroup.getIndicatorProps(),
|
|
18
|
-
|
|
18
|
+
segmentGroup_anatomy.parts.indicator.attrs,
|
|
19
19
|
props
|
|
20
20
|
);
|
|
21
21
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { segmentGroupAnatomy } from '@ark-ui/anatomy';
|
|
4
3
|
import { mergeProps } from '@zag-js/react';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
6
5
|
import { ark } from '../factory.js';
|
|
6
|
+
import { parts } from './segment-group.anatomy.js';
|
|
7
7
|
import { useSegmentGroupContext } from './use-segment-group-context.js';
|
|
8
8
|
|
|
9
9
|
const SegmentGroupIndicator = forwardRef(
|
|
@@ -11,7 +11,7 @@ const SegmentGroupIndicator = forwardRef(
|
|
|
11
11
|
const segmentGroup = useSegmentGroupContext();
|
|
12
12
|
const mergedProps = mergeProps(
|
|
13
13
|
segmentGroup.getIndicatorProps(),
|
|
14
|
-
|
|
14
|
+
parts.indicator.attrs,
|
|
15
15
|
props
|
|
16
16
|
);
|
|
17
17
|
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const anatomy = require('@ark-ui/anatomy');
|
|
8
7
|
const react$1 = require('@zag-js/react');
|
|
9
8
|
const react = require('react');
|
|
10
9
|
const factory = require('../factory.cjs');
|
|
10
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
11
11
|
const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
12
12
|
const useSegmentGroupItemPropsContext = require('./use-segment-group-item-props-context.cjs');
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ const SegmentGroupItemControl = react.forwardRef(
|
|
|
17
17
|
const itemProps = useSegmentGroupItemPropsContext.useSegmentGroupItemPropsContext();
|
|
18
18
|
const mergedProps = react$1.mergeProps(
|
|
19
19
|
segmentGroup.getItemControlProps(itemProps),
|
|
20
|
-
|
|
20
|
+
segmentGroup_anatomy.parts.itemControl.attrs,
|
|
21
21
|
props
|
|
22
22
|
);
|
|
23
23
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { segmentGroupAnatomy } from '@ark-ui/anatomy';
|
|
4
3
|
import { mergeProps } from '@zag-js/react';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
6
5
|
import { ark } from '../factory.js';
|
|
6
|
+
import { parts } from './segment-group.anatomy.js';
|
|
7
7
|
import { useSegmentGroupContext } from './use-segment-group-context.js';
|
|
8
8
|
import { useSegmentGroupItemPropsContext } from './use-segment-group-item-props-context.js';
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ const SegmentGroupItemControl = forwardRef(
|
|
|
13
13
|
const itemProps = useSegmentGroupItemPropsContext();
|
|
14
14
|
const mergedProps = mergeProps(
|
|
15
15
|
segmentGroup.getItemControlProps(itemProps),
|
|
16
|
-
|
|
16
|
+
parts.itemControl.attrs,
|
|
17
17
|
props
|
|
18
18
|
);
|
|
19
19
|
return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const anatomy = require('@ark-ui/anatomy');
|
|
8
7
|
const react$1 = require('@zag-js/react');
|
|
9
8
|
const react = require('react');
|
|
10
9
|
const factory = require('../factory.cjs');
|
|
10
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
11
11
|
const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
12
12
|
const useSegmentGroupItemPropsContext = require('./use-segment-group-item-props-context.cjs');
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ const SegmentGroupItemText = react.forwardRef(
|
|
|
17
17
|
const itemProps = useSegmentGroupItemPropsContext.useSegmentGroupItemPropsContext();
|
|
18
18
|
const mergedProps = react$1.mergeProps(
|
|
19
19
|
segmentGroup.getItemTextProps(itemProps),
|
|
20
|
-
|
|
20
|
+
segmentGroup_anatomy.parts.itemText.attrs,
|
|
21
21
|
props
|
|
22
22
|
);
|
|
23
23
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { segmentGroupAnatomy } from '@ark-ui/anatomy';
|
|
4
3
|
import { mergeProps } from '@zag-js/react';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
6
5
|
import { ark } from '../factory.js';
|
|
6
|
+
import { parts } from './segment-group.anatomy.js';
|
|
7
7
|
import { useSegmentGroupContext } from './use-segment-group-context.js';
|
|
8
8
|
import { useSegmentGroupItemPropsContext } from './use-segment-group-item-props-context.js';
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ const SegmentGroupItemText = forwardRef(
|
|
|
13
13
|
const itemProps = useSegmentGroupItemPropsContext();
|
|
14
14
|
const mergedProps = mergeProps(
|
|
15
15
|
segmentGroup.getItemTextProps(itemProps),
|
|
16
|
-
|
|
16
|
+
parts.itemText.attrs,
|
|
17
17
|
props
|
|
18
18
|
);
|
|
19
19
|
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref });
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const anatomy = require('@ark-ui/anatomy');
|
|
8
7
|
const react$1 = require('@zag-js/react');
|
|
9
8
|
const react = require('react');
|
|
10
9
|
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
11
10
|
const factory = require('../factory.cjs');
|
|
11
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
12
12
|
const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
13
13
|
const useSegmentGroupItemContext = require('./use-segment-group-item-context.cjs');
|
|
14
14
|
const useSegmentGroupItemPropsContext = require('./use-segment-group-item-props-context.cjs');
|
|
@@ -23,7 +23,7 @@ const SegmentGroupItem = react.forwardRef(
|
|
|
23
23
|
const segmentGroup = useSegmentGroupContext.useSegmentGroupContext();
|
|
24
24
|
const mergedProps = react$1.mergeProps(
|
|
25
25
|
segmentGroup.getItemProps(itemProps),
|
|
26
|
-
|
|
26
|
+
segmentGroup_anatomy.parts.item.attrs,
|
|
27
27
|
localProps
|
|
28
28
|
);
|
|
29
29
|
const itemState = segmentGroup.getItemState(itemProps);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { segmentGroupAnatomy } from '@ark-ui/anatomy';
|
|
4
3
|
import { mergeProps } from '@zag-js/react';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
6
5
|
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
7
6
|
import { ark } from '../factory.js';
|
|
7
|
+
import { parts } from './segment-group.anatomy.js';
|
|
8
8
|
import { useSegmentGroupContext } from './use-segment-group-context.js';
|
|
9
9
|
import { SegmentGroupItemProvider } from './use-segment-group-item-context.js';
|
|
10
10
|
import { SegmentGroupItemPropsProvider } from './use-segment-group-item-props-context.js';
|
|
@@ -19,7 +19,7 @@ const SegmentGroupItem = forwardRef(
|
|
|
19
19
|
const segmentGroup = useSegmentGroupContext();
|
|
20
20
|
const mergedProps = mergeProps(
|
|
21
21
|
segmentGroup.getItemProps(itemProps),
|
|
22
|
-
|
|
22
|
+
parts.item.attrs,
|
|
23
23
|
localProps
|
|
24
24
|
);
|
|
25
25
|
const itemState = segmentGroup.getItemState(itemProps);
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const anatomy = require('@ark-ui/anatomy');
|
|
8
7
|
const react$1 = require('@zag-js/react');
|
|
9
8
|
const react = require('react');
|
|
10
9
|
const factory = require('../factory.cjs');
|
|
10
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
11
11
|
const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
12
12
|
|
|
13
13
|
const SegmentGroupLabel = react.forwardRef(
|
|
@@ -15,7 +15,7 @@ const SegmentGroupLabel = react.forwardRef(
|
|
|
15
15
|
const segmentGroup = useSegmentGroupContext.useSegmentGroupContext();
|
|
16
16
|
const mergedProps = react$1.mergeProps(
|
|
17
17
|
segmentGroup.getLabelProps(),
|
|
18
|
-
|
|
18
|
+
segmentGroup_anatomy.parts.label.attrs,
|
|
19
19
|
props
|
|
20
20
|
);
|
|
21
21
|
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.label, { ...mergedProps, ref });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { segmentGroupAnatomy } from '@ark-ui/anatomy';
|
|
4
3
|
import { mergeProps } from '@zag-js/react';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
6
5
|
import { ark } from '../factory.js';
|
|
6
|
+
import { parts } from './segment-group.anatomy.js';
|
|
7
7
|
import { useSegmentGroupContext } from './use-segment-group-context.js';
|
|
8
8
|
|
|
9
9
|
const SegmentGroupLabel = forwardRef(
|
|
@@ -11,7 +11,7 @@ const SegmentGroupLabel = forwardRef(
|
|
|
11
11
|
const segmentGroup = useSegmentGroupContext();
|
|
12
12
|
const mergedProps = mergeProps(
|
|
13
13
|
segmentGroup.getLabelProps(),
|
|
14
|
-
|
|
14
|
+
parts.label.attrs,
|
|
15
15
|
props
|
|
16
16
|
);
|
|
17
17
|
return /* @__PURE__ */ jsx(ark.label, { ...mergedProps, ref });
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const anatomy = require('@ark-ui/anatomy');
|
|
8
7
|
const react$1 = require('@zag-js/react');
|
|
9
8
|
const react = require('react');
|
|
10
9
|
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
11
10
|
const factory = require('../factory.cjs');
|
|
11
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
12
12
|
const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
13
13
|
|
|
14
14
|
const SegmentGroupRootProvider = react.forwardRef(
|
|
@@ -18,7 +18,7 @@ const SegmentGroupRootProvider = react.forwardRef(
|
|
|
18
18
|
]);
|
|
19
19
|
const mergedProps = react$1.mergeProps(
|
|
20
20
|
segmentGroup.getRootProps(),
|
|
21
|
-
|
|
21
|
+
segmentGroup_anatomy.parts.root.attrs,
|
|
22
22
|
localProps
|
|
23
23
|
);
|
|
24
24
|
return /* @__PURE__ */ jsxRuntime.jsx(useSegmentGroupContext.SegmentGroupProvider, { value: segmentGroup, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { segmentGroupAnatomy } from '@ark-ui/anatomy';
|
|
4
3
|
import { mergeProps } from '@zag-js/react';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
6
5
|
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
7
6
|
import { ark } from '../factory.js';
|
|
7
|
+
import { parts } from './segment-group.anatomy.js';
|
|
8
8
|
import { SegmentGroupProvider } from './use-segment-group-context.js';
|
|
9
9
|
|
|
10
10
|
const SegmentGroupRootProvider = forwardRef(
|
|
@@ -14,7 +14,7 @@ const SegmentGroupRootProvider = forwardRef(
|
|
|
14
14
|
]);
|
|
15
15
|
const mergedProps = mergeProps(
|
|
16
16
|
segmentGroup.getRootProps(),
|
|
17
|
-
|
|
17
|
+
parts.root.attrs,
|
|
18
18
|
localProps
|
|
19
19
|
);
|
|
20
20
|
return /* @__PURE__ */ jsx(SegmentGroupProvider, { value: segmentGroup, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const anatomy = require('@ark-ui/anatomy');
|
|
8
7
|
const react$1 = require('@zag-js/react');
|
|
9
8
|
const react = require('react');
|
|
10
9
|
const createSplitProps = require('../../utils/create-split-props.cjs');
|
|
11
10
|
const factory = require('../factory.cjs');
|
|
11
|
+
const segmentGroup_anatomy = require('./segment-group.anatomy.cjs');
|
|
12
12
|
const useSegmentGroup = require('./use-segment-group.cjs');
|
|
13
13
|
const useSegmentGroupContext = require('./use-segment-group-context.cjs');
|
|
14
14
|
|
|
@@ -28,7 +28,7 @@ const SegmentGroupRoot = react.forwardRef((props, ref) => {
|
|
|
28
28
|
const segmentGroup = useSegmentGroup.useSegmentGroup(useSegmentGroupProps);
|
|
29
29
|
const mergedProps = react$1.mergeProps(
|
|
30
30
|
segmentGroup.getRootProps(),
|
|
31
|
-
|
|
31
|
+
segmentGroup_anatomy.parts.root.attrs,
|
|
32
32
|
localProps
|
|
33
33
|
);
|
|
34
34
|
return /* @__PURE__ */ jsxRuntime.jsx(useSegmentGroupContext.SegmentGroupProvider, { value: segmentGroup, children: /* @__PURE__ */ jsxRuntime.jsx(factory.ark.div, { ...mergedProps, ref }) });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import { segmentGroupAnatomy } from '@ark-ui/anatomy';
|
|
4
3
|
import { mergeProps } from '@zag-js/react';
|
|
5
4
|
import { forwardRef } from 'react';
|
|
6
5
|
import { createSplitProps } from '../../utils/create-split-props.js';
|
|
7
6
|
import { ark } from '../factory.js';
|
|
7
|
+
import { parts } from './segment-group.anatomy.js';
|
|
8
8
|
import { useSegmentGroup } from './use-segment-group.js';
|
|
9
9
|
import { SegmentGroupProvider } from './use-segment-group-context.js';
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ const SegmentGroupRoot = forwardRef((props, ref) => {
|
|
|
24
24
|
const segmentGroup = useSegmentGroup(useSegmentGroupProps);
|
|
25
25
|
const mergedProps = mergeProps(
|
|
26
26
|
segmentGroup.getRootProps(),
|
|
27
|
-
|
|
27
|
+
parts.root.attrs,
|
|
28
28
|
localProps
|
|
29
29
|
);
|
|
30
30
|
return /* @__PURE__ */ jsx(SegmentGroupProvider, { value: segmentGroup, children: /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref }) });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const radio = require('@zag-js/radio-group');
|
|
7
|
+
|
|
8
|
+
const segmentGroupAnatomy = radio.anatomy.rename("segment-group");
|
|
9
|
+
const parts = segmentGroupAnatomy.build();
|
|
10
|
+
|
|
11
|
+
exports.parts = parts;
|
|
12
|
+
exports.segmentGroupAnatomy = segmentGroupAnatomy;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Anatomy, AnatomyPart } from '@zag-js/anatomy';
|
|
2
|
+
export declare const segmentGroupAnatomy: Anatomy<"label" | "root" | "item" | "indicator" | "itemText" | "itemControl">;
|
|
3
|
+
export declare const parts: Record<"label" | "root" | "item" | "indicator" | "itemText" | "itemControl", AnatomyPart>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Anatomy, AnatomyPart } from '@zag-js/anatomy';
|
|
2
|
+
export declare const segmentGroupAnatomy: Anatomy<"label" | "root" | "item" | "indicator" | "itemText" | "itemControl">;
|
|
3
|
+
export declare const parts: Record<"label" | "root" | "item" | "indicator" | "itemText" | "itemControl", AnatomyPart>;
|
|
@@ -24,7 +24,8 @@ const selectValueText = require('./select-value-text.cjs');
|
|
|
24
24
|
const useSelect = require('./use-select.cjs');
|
|
25
25
|
const useSelectContext = require('./use-select-context.cjs');
|
|
26
26
|
const useSelectItemContext = require('./use-select-item-context.cjs');
|
|
27
|
-
const select = require('./select.cjs');
|
|
27
|
+
const select$1 = require('./select.cjs');
|
|
28
|
+
const select = require('@zag-js/select');
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
|
|
@@ -50,4 +51,8 @@ exports.SelectValueText = selectValueText.SelectValueText;
|
|
|
50
51
|
exports.useSelect = useSelect.useSelect;
|
|
51
52
|
exports.useSelectContext = useSelectContext.useSelectContext;
|
|
52
53
|
exports.useSelectItemContext = useSelectItemContext.useSelectItemContext;
|
|
53
|
-
exports.Select = select;
|
|
54
|
+
exports.Select = select$1;
|
|
55
|
+
Object.defineProperty(exports, "selectAnatomy", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
get: () => select.anatomy
|
|
58
|
+
});
|
|
@@ -22,4 +22,5 @@ export { SelectValueText, type SelectValueTextProps, type SelectValueTextBasePro
|
|
|
22
22
|
export { useSelect, type UseSelectProps, type UseSelectReturn } from './use-select';
|
|
23
23
|
export { useSelectContext, type UseSelectContext } from './use-select-context';
|
|
24
24
|
export { useSelectItemContext, type UseSelectItemContext } from './use-select-item-context';
|
|
25
|
+
export { selectAnatomy } from './select.anatomy';
|
|
25
26
|
export * as Select from './select';
|
|
@@ -22,4 +22,5 @@ export { SelectValueText, type SelectValueTextProps, type SelectValueTextBasePro
|
|
|
22
22
|
export { useSelect, type UseSelectProps, type UseSelectReturn } from './use-select';
|
|
23
23
|
export { useSelectContext, type UseSelectContext } from './use-select-context';
|
|
24
24
|
export { useSelectItemContext, type UseSelectItemContext } from './use-select-item-context';
|
|
25
|
+
export { selectAnatomy } from './select.anatomy';
|
|
25
26
|
export * as Select from './select';
|
|
@@ -18,7 +18,7 @@ const SelectHiddenSelect = react.forwardRef(
|
|
|
18
18
|
const field = useFieldContext.useFieldContext();
|
|
19
19
|
return /* @__PURE__ */ jsxRuntime.jsxs(factory.ark.select, { "aria-describedby": field?.ariaDescribedby, ...mergedProps, ref, children: [
|
|
20
20
|
isValueEmpty && /* @__PURE__ */ jsxRuntime.jsx("option", { value: "" }),
|
|
21
|
-
select.collection.
|
|
21
|
+
select.collection.items.map((option) => /* @__PURE__ */ jsxRuntime.jsx("option", { value: option.value, children: option.label }, option.value))
|
|
22
22
|
] });
|
|
23
23
|
}
|
|
24
24
|
);
|
|
@@ -14,7 +14,7 @@ const SelectHiddenSelect = forwardRef(
|
|
|
14
14
|
const field = useFieldContext();
|
|
15
15
|
return /* @__PURE__ */ jsxs(ark.select, { "aria-describedby": field?.ariaDescribedby, ...mergedProps, ref, children: [
|
|
16
16
|
isValueEmpty && /* @__PURE__ */ jsx("option", { value: "" }),
|
|
17
|
-
select.collection.
|
|
17
|
+
select.collection.items.map((option) => /* @__PURE__ */ jsx("option", { value: option.value, children: option.label }, option.value))
|
|
18
18
|
] });
|
|
19
19
|
}
|
|
20
20
|
);
|
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
5
|
|
|
6
6
|
const jsxRuntime = require('react/jsx-runtime');
|
|
7
|
-
const
|
|
7
|
+
const react$1 = require('@zag-js/react');
|
|
8
8
|
const react = require('react');
|
|
9
9
|
const factory = require('../factory.cjs');
|
|
10
10
|
const useSelectContext = require('./use-select-context.cjs');
|
|
11
11
|
|
|
12
12
|
const SelectValueText = react.forwardRef((props, ref) => {
|
|
13
|
-
const { children, placeholder, ...
|
|
13
|
+
const { children, placeholder, ...localprops } = props;
|
|
14
14
|
const select = useSelectContext.useSelectContext();
|
|
15
|
-
|
|
15
|
+
const mergedProps = react$1.mergeProps(select.getValueTextProps(), localprops);
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(factory.ark.span, { ...mergedProps, ref, children: children || select.valueAsString || placeholder });
|
|
16
17
|
});
|
|
17
18
|
SelectValueText.displayName = "SelectValueText";
|
|
18
19
|
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { mergeProps } from '@zag-js/react';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
5
|
import { ark } from '../factory.js';
|
|
6
6
|
import { useSelectContext } from './use-select-context.js';
|
|
7
7
|
|
|
8
8
|
const SelectValueText = forwardRef((props, ref) => {
|
|
9
|
-
const { children, placeholder, ...
|
|
9
|
+
const { children, placeholder, ...localprops } = props;
|
|
10
10
|
const select = useSelectContext();
|
|
11
|
-
|
|
11
|
+
const mergedProps = mergeProps(select.getValueTextProps(), localprops);
|
|
12
|
+
return /* @__PURE__ */ jsx(ark.span, { ...mergedProps, ref, children: children || select.valueAsString || placeholder });
|
|
12
13
|
});
|
|
13
14
|
SelectValueText.displayName = "SelectValueText";
|
|
14
15
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as selectAnatomy } from '@zag-js/select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { anatomy as selectAnatomy } from '@zag-js/select';
|
|
@@ -13,7 +13,8 @@ const signaturePadRootProvider = require('./signature-pad-root-provider.cjs');
|
|
|
13
13
|
const signaturePadSegment = require('./signature-pad-segment.cjs');
|
|
14
14
|
const useSignaturePad = require('./use-signature-pad.cjs');
|
|
15
15
|
const useSignaturePadContext = require('./use-signature-pad-context.cjs');
|
|
16
|
-
const signaturePad = require('./signature-pad.cjs');
|
|
16
|
+
const signaturePad$1 = require('./signature-pad.cjs');
|
|
17
|
+
const signaturePad = require('@zag-js/signature-pad');
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
|
|
@@ -28,4 +29,8 @@ exports.SignaturePadRootProvider = signaturePadRootProvider.SignaturePadRootProv
|
|
|
28
29
|
exports.SignaturePadSegment = signaturePadSegment.SignaturePadSegment;
|
|
29
30
|
exports.useSignaturePad = useSignaturePad.useSignaturePad;
|
|
30
31
|
exports.useSignaturePadContext = useSignaturePadContext.useSignaturePadContext;
|
|
31
|
-
exports.SignaturePad = signaturePad;
|
|
32
|
+
exports.SignaturePad = signaturePad$1;
|
|
33
|
+
Object.defineProperty(exports, "signaturePadAnatomy", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: () => signaturePad.anatomy
|
|
36
|
+
});
|
|
@@ -10,4 +10,5 @@ export { SignaturePadRootProvider, type SignaturePadRootProviderProps, type Sign
|
|
|
10
10
|
export { SignaturePadSegment, type SignaturePadSegmentProps, type SignaturePadSegmentBaseProps, } from './signature-pad-segment';
|
|
11
11
|
export { useSignaturePad, type UseSignaturePadProps, type UseSignaturePadReturn, } from './use-signature-pad';
|
|
12
12
|
export { useSignaturePadContext, type UseSignaturePadContext } from './use-signature-pad-context';
|
|
13
|
+
export { signaturePadAnatomy } from './signature-pad.anatomy';
|
|
13
14
|
export * as SignaturePad from './signature-pad';
|
|
@@ -10,4 +10,5 @@ export { SignaturePadRootProvider, type SignaturePadRootProviderProps, type Sign
|
|
|
10
10
|
export { SignaturePadSegment, type SignaturePadSegmentProps, type SignaturePadSegmentBaseProps, } from './signature-pad-segment';
|
|
11
11
|
export { useSignaturePad, type UseSignaturePadProps, type UseSignaturePadReturn, } from './use-signature-pad';
|
|
12
12
|
export { useSignaturePadContext, type UseSignaturePadContext } from './use-signature-pad-context';
|
|
13
|
+
export { signaturePadAnatomy } from './signature-pad.anatomy';
|
|
13
14
|
export * as SignaturePad from './signature-pad';
|
|
@@ -11,3 +11,4 @@ export { useSignaturePad } from './use-signature-pad.js';
|
|
|
11
11
|
export { useSignaturePadContext } from './use-signature-pad-context.js';
|
|
12
12
|
import * as signaturePad from './signature-pad.js';
|
|
13
13
|
export { signaturePad as SignaturePad };
|
|
14
|
+
export { anatomy as signaturePadAnatomy } from '@zag-js/signature-pad';
|