@ark-ui/react 3.4.0 → 3.6.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/README.md +3 -0
- 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-root.d.cts +1 -1
- package/dist/components/dialog/dialog-root.d.ts +1 -1
- 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 +92 -58
- package/dist/components/field/use-field.d.cts +7 -61
- package/dist/components/field/use-field.d.ts +7 -61
- package/dist/components/field/use-field.js +93 -59
- package/dist/components/fieldset/fieldset-context.cjs +10 -0
- package/dist/components/fieldset/fieldset-context.d.cts +7 -0
- package/dist/components/fieldset/fieldset-context.d.ts +7 -0
- package/dist/components/fieldset/fieldset-context.js +6 -0
- package/dist/components/fieldset/fieldset-error-text.cjs +21 -0
- package/dist/components/fieldset/fieldset-error-text.d.cts +8 -0
- package/dist/components/fieldset/fieldset-error-text.d.ts +8 -0
- package/dist/components/fieldset/fieldset-error-text.js +17 -0
- package/dist/components/fieldset/fieldset-helper-text.cjs +21 -0
- package/dist/components/fieldset/fieldset-helper-text.d.cts +8 -0
- package/dist/components/fieldset/fieldset-helper-text.d.ts +8 -0
- package/dist/components/fieldset/fieldset-helper-text.js +17 -0
- package/dist/components/fieldset/fieldset-legend.cjs +19 -0
- package/dist/components/fieldset/fieldset-legend.d.cts +8 -0
- package/dist/components/fieldset/fieldset-legend.d.ts +8 -0
- package/dist/components/fieldset/fieldset-legend.js +15 -0
- package/dist/components/fieldset/fieldset-root-provider.cjs +24 -0
- package/dist/components/fieldset/fieldset-root-provider.d.cts +13 -0
- package/dist/components/fieldset/fieldset-root-provider.d.ts +13 -0
- package/dist/components/fieldset/fieldset-root-provider.js +20 -0
- package/dist/components/fieldset/fieldset-root.cjs +27 -0
- package/dist/components/fieldset/fieldset-root.d.cts +9 -0
- package/dist/components/fieldset/fieldset-root.d.ts +9 -0
- package/dist/components/fieldset/fieldset-root.js +23 -0
- package/dist/components/fieldset/fieldset.anatomy.cjs +17 -0
- package/dist/components/fieldset/fieldset.anatomy.d.cts +3 -0
- package/dist/components/fieldset/fieldset.anatomy.d.ts +3 -0
- package/dist/components/fieldset/fieldset.anatomy.js +12 -0
- package/dist/components/fieldset/fieldset.cjs +19 -0
- package/dist/components/fieldset/fieldset.d.cts +6 -0
- package/dist/components/fieldset/fieldset.d.ts +6 -0
- package/dist/components/fieldset/fieldset.js +6 -0
- package/dist/components/fieldset/index.cjs +25 -0
- package/dist/components/fieldset/index.d.cts +9 -0
- package/dist/components/fieldset/index.d.ts +9 -0
- package/dist/components/fieldset/index.js +10 -0
- package/dist/components/fieldset/use-fieldset-context.cjs +16 -0
- package/dist/components/fieldset/use-fieldset-context.d.cts +6 -0
- package/dist/components/fieldset/use-fieldset-context.d.ts +6 -0
- package/dist/components/fieldset/use-fieldset-context.js +11 -0
- package/dist/components/fieldset/use-fieldset.cjs +85 -0
- package/dist/components/fieldset/use-fieldset.d.cts +29 -0
- package/dist/components/fieldset/use-fieldset.d.ts +29 -0
- package/dist/components/fieldset/use-fieldset.js +81 -0
- 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/highlight/highlight.cjs +26 -0
- package/dist/components/highlight/highlight.d.cts +8 -0
- package/dist/components/highlight/highlight.d.ts +8 -0
- package/dist/components/highlight/highlight.js +22 -0
- package/dist/components/highlight/index.cjs +11 -0
- package/dist/components/highlight/index.d.cts +2 -0
- package/dist/components/highlight/index.d.ts +2 -0
- package/dist/components/highlight/index.js +2 -0
- package/dist/components/highlight/use-highlight.cjs +49 -0
- package/dist/components/highlight/use-highlight.d.cts +30 -0
- package/dist/components/highlight/use-highlight.d.ts +30 -0
- package/dist/components/highlight/use-highlight.js +45 -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 +263 -50
- package/dist/components/index.d.cts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +65 -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/time-picker/index.cjs +39 -0
- package/dist/components/time-picker/index.d.cts +17 -0
- package/dist/components/time-picker/index.d.ts +17 -0
- package/dist/components/time-picker/index.js +17 -0
- package/dist/components/time-picker/time-picker-cell.cjs +29 -0
- package/dist/components/time-picker/time-picker-cell.d.cts +14 -0
- package/dist/components/time-picker/time-picker-cell.d.ts +14 -0
- package/dist/components/time-picker/time-picker-cell.js +25 -0
- package/dist/components/time-picker/time-picker-clear-trigger.cjs +21 -0
- package/dist/components/time-picker/time-picker-clear-trigger.d.cts +8 -0
- package/dist/components/time-picker/time-picker-clear-trigger.d.ts +8 -0
- package/dist/components/time-picker/time-picker-clear-trigger.js +17 -0
- package/dist/components/time-picker/time-picker-column.cjs +22 -0
- package/dist/components/time-picker/time-picker-column.d.cts +9 -0
- package/dist/components/time-picker/time-picker-column.d.ts +9 -0
- package/dist/components/time-picker/time-picker-column.js +18 -0
- package/dist/components/time-picker/time-picker-content.cjs +30 -0
- package/dist/components/time-picker/time-picker-content.d.cts +8 -0
- package/dist/components/time-picker/time-picker-content.d.ts +8 -0
- package/dist/components/time-picker/time-picker-content.js +26 -0
- package/dist/components/time-picker/time-picker-context.cjs +10 -0
- package/dist/components/time-picker/time-picker-context.d.cts +7 -0
- package/dist/components/time-picker/time-picker-context.d.ts +7 -0
- package/dist/components/time-picker/time-picker-context.js +6 -0
- package/dist/components/time-picker/time-picker-control.cjs +21 -0
- package/dist/components/time-picker/time-picker-control.d.cts +8 -0
- package/dist/components/time-picker/time-picker-control.d.ts +8 -0
- package/dist/components/time-picker/time-picker-control.js +17 -0
- package/dist/components/time-picker/time-picker-input.cjs +19 -0
- package/dist/components/time-picker/time-picker-input.d.cts +8 -0
- package/dist/components/time-picker/time-picker-input.d.ts +8 -0
- package/dist/components/time-picker/time-picker-input.js +15 -0
- package/dist/components/time-picker/time-picker-label.cjs +19 -0
- package/dist/components/time-picker/time-picker-label.d.cts +8 -0
- package/dist/components/time-picker/time-picker-label.d.ts +8 -0
- package/dist/components/time-picker/time-picker-label.js +15 -0
- package/dist/components/time-picker/time-picker-positioner.cjs +26 -0
- package/dist/components/time-picker/time-picker-positioner.d.cts +8 -0
- package/dist/components/time-picker/time-picker-positioner.d.ts +8 -0
- package/dist/components/time-picker/time-picker-positioner.js +22 -0
- package/dist/components/time-picker/time-picker-root-provider.cjs +30 -0
- package/dist/components/time-picker/time-picker-root-provider.d.cts +14 -0
- package/dist/components/time-picker/time-picker-root-provider.d.ts +14 -0
- package/dist/components/time-picker/time-picker-root-provider.js +26 -0
- package/dist/components/time-picker/time-picker-root.cjs +48 -0
- package/dist/components/time-picker/time-picker-root.d.cts +11 -0
- package/dist/components/time-picker/time-picker-root.d.ts +11 -0
- package/dist/components/time-picker/time-picker-root.js +44 -0
- package/dist/components/time-picker/time-picker-spacer.cjs +19 -0
- package/dist/components/time-picker/time-picker-spacer.d.cts +8 -0
- package/dist/components/time-picker/time-picker-spacer.d.ts +8 -0
- package/dist/components/time-picker/time-picker-spacer.js +15 -0
- package/dist/components/time-picker/time-picker-trigger.cjs +21 -0
- package/dist/components/time-picker/time-picker-trigger.d.cts +8 -0
- package/dist/components/time-picker/time-picker-trigger.d.ts +8 -0
- package/dist/components/time-picker/time-picker-trigger.js +17 -0
- package/dist/components/time-picker/time-picker.cjs +33 -0
- package/dist/components/time-picker/time-picker.d.cts +14 -0
- package/dist/components/time-picker/time-picker.d.ts +14 -0
- package/dist/components/time-picker/time-picker.js +13 -0
- package/dist/components/time-picker/use-time-picker-column-props-context.cjs +15 -0
- package/dist/components/time-picker/use-time-picker-column-props-context.d.cts +7 -0
- package/dist/components/time-picker/use-time-picker-column-props-context.d.ts +7 -0
- package/dist/components/time-picker/use-time-picker-column-props-context.js +10 -0
- package/dist/components/time-picker/use-time-picker-context.cjs +15 -0
- package/dist/components/time-picker/use-time-picker-context.d.cts +6 -0
- package/dist/components/time-picker/use-time-picker-context.d.ts +6 -0
- package/dist/components/time-picker/use-time-picker-context.js +10 -0
- package/dist/components/time-picker/use-time-picker.cjs +60 -0
- package/dist/components/time-picker/use-time-picker.d.cts +31 -0
- package/dist/components/time-picker/use-time-picker.d.ts +31 -0
- package/dist/components/time-picker/use-time-picker.js +37 -0
- package/dist/components/toast/index.cjs +7 -2
- package/dist/components/toast/index.d.cts +2 -1
- package/dist/components/toast/index.d.ts +2 -1
- 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 +263 -50
- package/dist/index.js +65 -0
- package/dist/node_modules/@internationalized/date/dist/CalendarDate.cjs +52 -0
- package/dist/node_modules/@internationalized/date/dist/CalendarDate.js +48 -0
- package/dist/node_modules/@internationalized/date/dist/manipulation.cjs +108 -0
- package/dist/node_modules/@internationalized/date/dist/manipulation.js +99 -0
- package/dist/node_modules/@internationalized/date/dist/queries.cjs +13 -0
- package/dist/node_modules/@internationalized/date/dist/queries.js +9 -0
- package/dist/node_modules/@internationalized/date/dist/string.cjs +38 -0
- package/dist/node_modules/@internationalized/date/dist/string.js +33 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs +13 -0
- package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +8 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs +14 -0
- package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.js +9 -0
- package/package.json +86 -60
package/dist/index.js
CHANGED
|
@@ -33,6 +33,7 @@ export { CarouselRootProvider } from './components/carousel/carousel-root-provid
|
|
|
33
33
|
export { CarouselViewport } from './components/carousel/carousel-viewport.js';
|
|
34
34
|
export { useCarousel } from './components/carousel/use-carousel.js';
|
|
35
35
|
export { useCarouselContext } from './components/carousel/use-carousel-context.js';
|
|
36
|
+
export { carouselAnatomy } from './components/carousel/carousel.anatomy.js';
|
|
36
37
|
import * as carousel from './components/carousel/carousel.js';
|
|
37
38
|
export { carousel as Carousel };
|
|
38
39
|
export { CheckboxContext } from './components/checkbox/checkbox-context.js';
|
|
@@ -47,6 +48,7 @@ export { useCheckbox } from './components/checkbox/use-checkbox.js';
|
|
|
47
48
|
export { useCheckboxContext } from './components/checkbox/use-checkbox-context.js';
|
|
48
49
|
export { useCheckboxGroup } from './components/checkbox/use-checkbox-group.js';
|
|
49
50
|
export { useCheckboxGroupContext } from './components/checkbox/use-checkbox-group-context.js';
|
|
51
|
+
export { checkboxAnatomy } from './components/checkbox/checkbox.anatomy.js';
|
|
50
52
|
import * as checkbox from './components/checkbox/checkbox.js';
|
|
51
53
|
export { checkbox as Checkbox };
|
|
52
54
|
export { ClipboardContext } from './components/clipboard/clipboard-context.js';
|
|
@@ -101,6 +103,7 @@ export { ColorPickerValueText } from './components/color-picker/color-picker-val
|
|
|
101
103
|
export { ColorPickerView } from './components/color-picker/color-picker-view.js';
|
|
102
104
|
export { useColorPicker } from './components/color-picker/use-color-picker.js';
|
|
103
105
|
export { useColorPickerContext } from './components/color-picker/use-color-picker-context.js';
|
|
106
|
+
export { colorPickerAnatomy } from './components/color-picker/color-picker.anatomy.js';
|
|
104
107
|
import * as colorPicker from './components/color-picker/color-picker.js';
|
|
105
108
|
export { colorPicker as ColorPicker };
|
|
106
109
|
export { ComboboxClearTrigger } from './components/combobox/combobox-clear-trigger.js';
|
|
@@ -153,6 +156,7 @@ export { DatePickerViewTrigger } from './components/date-picker/date-picker-view
|
|
|
153
156
|
export { DatePickerYearSelect } from './components/date-picker/date-picker-year-select.js';
|
|
154
157
|
export { useDatePicker } from './components/date-picker/use-date-picker.js';
|
|
155
158
|
export { useDatePickerContext } from './components/date-picker/use-date-picker-context.js';
|
|
159
|
+
export { datePickerAnatomy } from './components/date-picker/date-picker.anatomy.js';
|
|
156
160
|
import * as datePicker from './components/date-picker/date-picker.js';
|
|
157
161
|
export { datePicker as DatePicker };
|
|
158
162
|
export { DialogBackdrop } from './components/dialog/dialog-backdrop.js';
|
|
@@ -195,8 +199,19 @@ export { FieldRoot } from './components/field/field-root.js';
|
|
|
195
199
|
export { FieldRootProvider } from './components/field/field-root-provider.js';
|
|
196
200
|
export { FieldTextarea } from './components/field/field-textarea.js';
|
|
197
201
|
export { useFieldContext } from './components/field/use-field-context.js';
|
|
202
|
+
export { fieldAnatomy } from './components/field/field.anatomy.js';
|
|
198
203
|
import * as field from './components/field/field.js';
|
|
199
204
|
export { field as Field };
|
|
205
|
+
export { FieldsetContext } from './components/fieldset/fieldset-context.js';
|
|
206
|
+
export { FieldsetErrorText } from './components/fieldset/fieldset-error-text.js';
|
|
207
|
+
export { FieldsetHelperText } from './components/fieldset/fieldset-helper-text.js';
|
|
208
|
+
export { FieldsetRoot } from './components/fieldset/fieldset-root.js';
|
|
209
|
+
export { FieldsetRootProvider } from './components/fieldset/fieldset-root-provider.js';
|
|
210
|
+
export { FieldsetLegend } from './components/fieldset/fieldset-legend.js';
|
|
211
|
+
export { fieldsetAnatomy } from './components/fieldset/fieldset.anatomy.js';
|
|
212
|
+
export { useFieldsetContext } from './components/fieldset/use-fieldset-context.js';
|
|
213
|
+
import * as fieldset from './components/fieldset/fieldset.js';
|
|
214
|
+
export { fieldset as Fieldset };
|
|
200
215
|
export { FileUploadContext } from './components/file-upload/file-upload-context.js';
|
|
201
216
|
export { FileUploadDropzone } from './components/file-upload/file-upload-dropzone.js';
|
|
202
217
|
export { FileUploadHiddenInput } from './components/file-upload/file-upload-hidden-input.js';
|
|
@@ -219,6 +234,8 @@ export { FormatByte } from './components/format/format-byte.js';
|
|
|
219
234
|
export { FormatNumber } from './components/format/format-number.js';
|
|
220
235
|
import * as format from './components/format/format.js';
|
|
221
236
|
export { format as Format };
|
|
237
|
+
export { Highlight } from './components/highlight/highlight.js';
|
|
238
|
+
export { useHighlight } from './components/highlight/use-highlight.js';
|
|
222
239
|
export { HoverCardArrow } from './components/hover-card/hover-card-arrow.js';
|
|
223
240
|
export { HoverCardArrowTip } from './components/hover-card/hover-card-arrow-tip.js';
|
|
224
241
|
export { HoverCardContent } from './components/hover-card/hover-card-content.js';
|
|
@@ -266,6 +283,7 @@ export { NumberInputLabel } from './components/number-input/number-input-label.j
|
|
|
266
283
|
export { NumberInputRoot } from './components/number-input/number-input-root.js';
|
|
267
284
|
export { NumberInputRootProvider } from './components/number-input/number-input-root-provider.js';
|
|
268
285
|
export { NumberInputScrubber } from './components/number-input/number-input-scrubber.js';
|
|
286
|
+
export { NumberInputValueText } from './components/number-input/number-input-value-text.js';
|
|
269
287
|
export { useNumberInput } from './components/number-input/use-number-input.js';
|
|
270
288
|
export { useNumberInputContext } from './components/number-input/use-number-input-context.js';
|
|
271
289
|
import * as numberInput from './components/number-input/number-input.js';
|
|
@@ -380,6 +398,7 @@ export { SegmentGroupRootProvider } from './components/segment-group/segment-gro
|
|
|
380
398
|
export { useSegmentGroup } from './components/segment-group/use-segment-group.js';
|
|
381
399
|
export { useSegmentGroupContext } from './components/segment-group/use-segment-group-context.js';
|
|
382
400
|
export { useSegmentGroupItemContext } from './components/segment-group/use-segment-group-item-context.js';
|
|
401
|
+
export { segmentGroupAnatomy } from './components/segment-group/segment-group.anatomy.js';
|
|
383
402
|
import * as segmentGroup from './components/segment-group/segment-group.js';
|
|
384
403
|
export { segmentGroup as SegmentGroup };
|
|
385
404
|
export { SelectClearTrigger } from './components/select/select-clear-trigger.js';
|
|
@@ -485,6 +504,23 @@ export { useTagsInputContext } from './components/tags-input/use-tags-input-cont
|
|
|
485
504
|
export { useTagsInputItemContext } from './components/tags-input/use-tags-input-item-context.js';
|
|
486
505
|
import * as tagsInput from './components/tags-input/tags-input.js';
|
|
487
506
|
export { tagsInput as TagsInput };
|
|
507
|
+
export { TimePickerCell } from './components/time-picker/time-picker-cell.js';
|
|
508
|
+
export { TimePickerClearTrigger } from './components/time-picker/time-picker-clear-trigger.js';
|
|
509
|
+
export { TimePickerColumn } from './components/time-picker/time-picker-column.js';
|
|
510
|
+
export { TimePickerContent } from './components/time-picker/time-picker-content.js';
|
|
511
|
+
export { TimePickerContext } from './components/time-picker/time-picker-context.js';
|
|
512
|
+
export { TimePickerControl } from './components/time-picker/time-picker-control.js';
|
|
513
|
+
export { TimePickerInput } from './components/time-picker/time-picker-input.js';
|
|
514
|
+
export { TimePickerLabel } from './components/time-picker/time-picker-label.js';
|
|
515
|
+
export { TimePickerPositioner } from './components/time-picker/time-picker-positioner.js';
|
|
516
|
+
export { TimePickerRoot } from './components/time-picker/time-picker-root.js';
|
|
517
|
+
export { TimePickerRootProvider } from './components/time-picker/time-picker-root-provider.js';
|
|
518
|
+
export { TimePickerSpacer } from './components/time-picker/time-picker-spacer.js';
|
|
519
|
+
export { TimePickerTrigger } from './components/time-picker/time-picker-trigger.js';
|
|
520
|
+
export { useTimePicker } from './components/time-picker/use-time-picker.js';
|
|
521
|
+
export { useTimePickerContext } from './components/time-picker/use-time-picker-context.js';
|
|
522
|
+
import * as timePicker from './components/time-picker/time-picker.js';
|
|
523
|
+
export { timePicker as TimePicker };
|
|
488
524
|
export { createToaster } from './components/toast/create-toaster.js';
|
|
489
525
|
export { ToastActionTrigger } from './components/toast/toast-action-trigger.js';
|
|
490
526
|
export { ToastCloseTrigger } from './components/toast/toast-close-trigger.js';
|
|
@@ -540,3 +576,32 @@ export { EnvironmentProvider } from './providers/environment/environment-provide
|
|
|
540
576
|
export { useEnvironmentContext } from './providers/environment/use-environment-context.js';
|
|
541
577
|
export { LocaleProvider } from './providers/locale/locale-provider.js';
|
|
542
578
|
export { useLocaleContext } from './providers/locale/use-locale-context.js';
|
|
579
|
+
export { anatomy as accordionAnatomy } from '@zag-js/accordion';
|
|
580
|
+
export { anatomy as avatarAnatomy } from '@zag-js/avatar';
|
|
581
|
+
export { anatomy as clipboardAnatomy } from '@zag-js/clipboard';
|
|
582
|
+
export { anatomy as collapsibleAnatomy } from '@zag-js/collapsible';
|
|
583
|
+
export { anatomy as comboboxAnatomy } from '@zag-js/combobox';
|
|
584
|
+
export { anatomy as dialogAnatomy } from '@zag-js/dialog';
|
|
585
|
+
export { anatomy as editableAnatomy } from '@zag-js/editable';
|
|
586
|
+
export { anatomy as fileUploadAnatomy } from '@zag-js/file-upload';
|
|
587
|
+
export { anatomy as hoverCardAnatomy } from '@zag-js/hover-card';
|
|
588
|
+
export { anatomy as menuAnatomy } from '@zag-js/menu';
|
|
589
|
+
export { anatomy as numberInputAnatomy } from '@zag-js/number-input';
|
|
590
|
+
export { anatomy as paginationAnatomy } from '@zag-js/pagination';
|
|
591
|
+
export { anatomy as pinInputAnatomy } from '@zag-js/pin-input';
|
|
592
|
+
export { anatomy as popoverAnatomy } from '@zag-js/popover';
|
|
593
|
+
export { anatomy as progressAnatomy } from '@zag-js/progress';
|
|
594
|
+
export { anatomy as qrCodeAnatomy } from '@zag-js/qr-code';
|
|
595
|
+
export { anatomy as radioGroupAnatomy } from '@zag-js/radio-group';
|
|
596
|
+
export { anatomy as ratingGroupAnatomy } from '@zag-js/rating-group';
|
|
597
|
+
export { anatomy as selectAnatomy } from '@zag-js/select';
|
|
598
|
+
export { anatomy as signaturePadAnatomy } from '@zag-js/signature-pad';
|
|
599
|
+
export { anatomy as sliderAnatomy } from '@zag-js/slider';
|
|
600
|
+
export { anatomy as splitterAnatomy } from '@zag-js/splitter';
|
|
601
|
+
export { anatomy as switchAnatomy } from '@zag-js/switch';
|
|
602
|
+
export { anatomy as tabsAnatomy } from '@zag-js/tabs';
|
|
603
|
+
export { anatomy as tagsInputAnatomy } from '@zag-js/tags-input';
|
|
604
|
+
export { anatomy as toastAnatomy } from '@zag-js/toast';
|
|
605
|
+
export { anatomy as toggleGroupAnatomy } from '@zag-js/toggle-group';
|
|
606
|
+
export { anatomy as tooltipAnatomy } from '@zag-js/tooltip';
|
|
607
|
+
export { anatomy as treeViewAnatomy } from '@zag-js/tree-view';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const manipulation = require('./manipulation.cjs');
|
|
7
|
+
const queries = require('./queries.cjs');
|
|
8
|
+
const string = require('./string.cjs');
|
|
9
|
+
const _class_private_field_init = require('../../../@swc/helpers/esm/_class_private_field_init.cjs');
|
|
10
|
+
|
|
11
|
+
var // This prevents TypeScript from allowing other types with the same fields to match.
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
$35ea8db9cb2ccb90$var$_type1 = /*#__PURE__*/ new WeakMap();
|
|
14
|
+
class $35ea8db9cb2ccb90$export$680ea196effce5f {
|
|
15
|
+
/** Returns a copy of this time. */ copy() {
|
|
16
|
+
return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
|
|
17
|
+
}
|
|
18
|
+
/** Returns a new `Time` with the given duration added to it. */ add(duration) {
|
|
19
|
+
return (manipulation.addTime)(this, duration);
|
|
20
|
+
}
|
|
21
|
+
/** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {
|
|
22
|
+
return (manipulation.subtractTime)(this, duration);
|
|
23
|
+
}
|
|
24
|
+
/** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
25
|
+
return (manipulation.setTime)(this, fields);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Returns a new `Time` with the given field adjusted by a specified amount.
|
|
29
|
+
* When the resulting value reaches the limits of the field, it wraps around.
|
|
30
|
+
*/ cycle(field, amount, options) {
|
|
31
|
+
return (manipulation.cycleTime)(this, field, amount, options);
|
|
32
|
+
}
|
|
33
|
+
/** Converts the time to an ISO 8601 formatted string. */ toString() {
|
|
34
|
+
return (string.timeToString)(this);
|
|
35
|
+
}
|
|
36
|
+
/** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {
|
|
37
|
+
return (queries.compareTime)(this, b);
|
|
38
|
+
}
|
|
39
|
+
constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
|
|
40
|
+
(_class_private_field_init._class_private_field_init)(this, $35ea8db9cb2ccb90$var$_type1, {
|
|
41
|
+
writable: true,
|
|
42
|
+
value: void 0
|
|
43
|
+
});
|
|
44
|
+
this.hour = hour;
|
|
45
|
+
this.minute = minute;
|
|
46
|
+
this.second = second;
|
|
47
|
+
this.millisecond = millisecond;
|
|
48
|
+
(manipulation.constrainTime)(this);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
exports.Time = $35ea8db9cb2ccb90$export$680ea196effce5f;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { addTime as $735220c2d4774dd3$export$7ed87b6bc2506470, subtractTime as $735220c2d4774dd3$export$fe34d3a381cd7501, setTime as $735220c2d4774dd3$export$e5d5e1c1822b6e56, cycleTime as $735220c2d4774dd3$export$dd02b3e0007dfe28, constrainTime as $735220c2d4774dd3$export$7555de1e070510cb } from './manipulation.js';
|
|
3
|
+
import { compareTime as $14e0f24ef4ac5c92$export$c19a80a9721b80f6 } from './queries.js';
|
|
4
|
+
import { timeToString as $fae977aafc393c5c$export$f59dee82248f5ad4 } from './string.js';
|
|
5
|
+
import { _class_private_field_init } from '../../../@swc/helpers/esm/_class_private_field_init.js';
|
|
6
|
+
|
|
7
|
+
var // This prevents TypeScript from allowing other types with the same fields to match.
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
$35ea8db9cb2ccb90$var$_type1 = /*#__PURE__*/ new WeakMap();
|
|
10
|
+
class $35ea8db9cb2ccb90$export$680ea196effce5f {
|
|
11
|
+
/** Returns a copy of this time. */ copy() {
|
|
12
|
+
return new $35ea8db9cb2ccb90$export$680ea196effce5f(this.hour, this.minute, this.second, this.millisecond);
|
|
13
|
+
}
|
|
14
|
+
/** Returns a new `Time` with the given duration added to it. */ add(duration) {
|
|
15
|
+
return ($735220c2d4774dd3$export$7ed87b6bc2506470)(this, duration);
|
|
16
|
+
}
|
|
17
|
+
/** Returns a new `Time` with the given duration subtracted from it. */ subtract(duration) {
|
|
18
|
+
return ($735220c2d4774dd3$export$fe34d3a381cd7501)(this, duration);
|
|
19
|
+
}
|
|
20
|
+
/** Returns a new `Time` with the given fields set to the provided values. Other fields will be constrained accordingly. */ set(fields) {
|
|
21
|
+
return ($735220c2d4774dd3$export$e5d5e1c1822b6e56)(this, fields);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns a new `Time` with the given field adjusted by a specified amount.
|
|
25
|
+
* When the resulting value reaches the limits of the field, it wraps around.
|
|
26
|
+
*/ cycle(field, amount, options) {
|
|
27
|
+
return ($735220c2d4774dd3$export$dd02b3e0007dfe28)(this, field, amount, options);
|
|
28
|
+
}
|
|
29
|
+
/** Converts the time to an ISO 8601 formatted string. */ toString() {
|
|
30
|
+
return ($fae977aafc393c5c$export$f59dee82248f5ad4)(this);
|
|
31
|
+
}
|
|
32
|
+
/** Compares this time with another. A negative result indicates that this time is before the given one, and a positive time indicates that it is after. */ compare(b) {
|
|
33
|
+
return ($14e0f24ef4ac5c92$export$c19a80a9721b80f6)(this, b);
|
|
34
|
+
}
|
|
35
|
+
constructor(hour = 0, minute = 0, second = 0, millisecond = 0){
|
|
36
|
+
(_class_private_field_init)(this, $35ea8db9cb2ccb90$var$_type1, {
|
|
37
|
+
writable: true,
|
|
38
|
+
value: void 0
|
|
39
|
+
});
|
|
40
|
+
this.hour = hour;
|
|
41
|
+
this.minute = minute;
|
|
42
|
+
this.second = second;
|
|
43
|
+
this.millisecond = millisecond;
|
|
44
|
+
($735220c2d4774dd3$export$7555de1e070510cb)(this);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { $35ea8db9cb2ccb90$export$680ea196effce5f as Time };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
|
|
7
|
+
let inverseDuration = {};
|
|
8
|
+
for(let key in duration)if (typeof duration[key] === 'number') inverseDuration[key] = -duration[key];
|
|
9
|
+
return inverseDuration;
|
|
10
|
+
}
|
|
11
|
+
function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
|
|
12
|
+
let mutableValue = value.copy();
|
|
13
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
14
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
15
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
16
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
17
|
+
$735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
|
|
18
|
+
return mutableValue;
|
|
19
|
+
}
|
|
20
|
+
function $735220c2d4774dd3$var$balanceTime(time) {
|
|
21
|
+
time.second += Math.floor(time.millisecond / 1000);
|
|
22
|
+
time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1000);
|
|
23
|
+
time.minute += Math.floor(time.second / 60);
|
|
24
|
+
time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
|
|
25
|
+
time.hour += Math.floor(time.minute / 60);
|
|
26
|
+
time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
|
|
27
|
+
let days = Math.floor(time.hour / 24);
|
|
28
|
+
time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
|
|
29
|
+
return days;
|
|
30
|
+
}
|
|
31
|
+
function $735220c2d4774dd3$export$7555de1e070510cb(time) {
|
|
32
|
+
time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));
|
|
33
|
+
time.second = Math.max(0, Math.min(time.second, 59));
|
|
34
|
+
time.minute = Math.max(0, Math.min(time.minute, 59));
|
|
35
|
+
time.hour = Math.max(0, Math.min(time.hour, 23));
|
|
36
|
+
}
|
|
37
|
+
function $735220c2d4774dd3$var$nonNegativeMod(a, b) {
|
|
38
|
+
let result = a % b;
|
|
39
|
+
if (result < 0) result += b;
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
function $735220c2d4774dd3$var$addTimeFields(time, duration) {
|
|
43
|
+
time.hour += duration.hours || 0;
|
|
44
|
+
time.minute += duration.minutes || 0;
|
|
45
|
+
time.second += duration.seconds || 0;
|
|
46
|
+
time.millisecond += duration.milliseconds || 0;
|
|
47
|
+
return $735220c2d4774dd3$var$balanceTime(time);
|
|
48
|
+
}
|
|
49
|
+
function $735220c2d4774dd3$export$7ed87b6bc2506470(time, duration) {
|
|
50
|
+
let res = time.copy();
|
|
51
|
+
$735220c2d4774dd3$var$addTimeFields(res, duration);
|
|
52
|
+
return res;
|
|
53
|
+
}
|
|
54
|
+
function $735220c2d4774dd3$export$fe34d3a381cd7501(time, duration) {
|
|
55
|
+
return $735220c2d4774dd3$export$7ed87b6bc2506470(time, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
|
|
56
|
+
}
|
|
57
|
+
function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
|
|
58
|
+
let mutable = value.copy();
|
|
59
|
+
switch(field){
|
|
60
|
+
case 'hour':
|
|
61
|
+
{
|
|
62
|
+
let hours = value.hour;
|
|
63
|
+
let min = 0;
|
|
64
|
+
let max = 23;
|
|
65
|
+
if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
|
|
66
|
+
let isPM = hours >= 12;
|
|
67
|
+
min = isPM ? 12 : 0;
|
|
68
|
+
max = isPM ? 23 : 11;
|
|
69
|
+
}
|
|
70
|
+
mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
case 'minute':
|
|
74
|
+
mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
|
|
75
|
+
break;
|
|
76
|
+
case 'second':
|
|
77
|
+
mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
|
|
78
|
+
break;
|
|
79
|
+
case 'millisecond':
|
|
80
|
+
mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
|
|
81
|
+
break;
|
|
82
|
+
default:
|
|
83
|
+
throw new Error('Unsupported field ' + field);
|
|
84
|
+
}
|
|
85
|
+
return mutable;
|
|
86
|
+
}
|
|
87
|
+
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
|
|
88
|
+
if (round) {
|
|
89
|
+
value += Math.sign(amount);
|
|
90
|
+
if (value < min) value = max;
|
|
91
|
+
let div = Math.abs(amount);
|
|
92
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
93
|
+
else value = Math.floor(value / div) * div;
|
|
94
|
+
if (value > max) value = min;
|
|
95
|
+
} else {
|
|
96
|
+
value += amount;
|
|
97
|
+
if (value < min) value = max - (min - value - 1);
|
|
98
|
+
else if (value > max) value = min + (value - max - 1);
|
|
99
|
+
}
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
exports.addTime = $735220c2d4774dd3$export$7ed87b6bc2506470;
|
|
104
|
+
exports.constrainTime = $735220c2d4774dd3$export$7555de1e070510cb;
|
|
105
|
+
exports.cycleTime = $735220c2d4774dd3$export$dd02b3e0007dfe28;
|
|
106
|
+
exports.invertDuration = $735220c2d4774dd3$export$3e2544e88a25bff8;
|
|
107
|
+
exports.setTime = $735220c2d4774dd3$export$e5d5e1c1822b6e56;
|
|
108
|
+
exports.subtractTime = $735220c2d4774dd3$export$fe34d3a381cd7501;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
function $735220c2d4774dd3$export$3e2544e88a25bff8(duration) {
|
|
3
|
+
let inverseDuration = {};
|
|
4
|
+
for(let key in duration)if (typeof duration[key] === 'number') inverseDuration[key] = -duration[key];
|
|
5
|
+
return inverseDuration;
|
|
6
|
+
}
|
|
7
|
+
function $735220c2d4774dd3$export$e5d5e1c1822b6e56(value, fields) {
|
|
8
|
+
let mutableValue = value.copy();
|
|
9
|
+
if (fields.hour != null) mutableValue.hour = fields.hour;
|
|
10
|
+
if (fields.minute != null) mutableValue.minute = fields.minute;
|
|
11
|
+
if (fields.second != null) mutableValue.second = fields.second;
|
|
12
|
+
if (fields.millisecond != null) mutableValue.millisecond = fields.millisecond;
|
|
13
|
+
$735220c2d4774dd3$export$7555de1e070510cb(mutableValue);
|
|
14
|
+
return mutableValue;
|
|
15
|
+
}
|
|
16
|
+
function $735220c2d4774dd3$var$balanceTime(time) {
|
|
17
|
+
time.second += Math.floor(time.millisecond / 1000);
|
|
18
|
+
time.millisecond = $735220c2d4774dd3$var$nonNegativeMod(time.millisecond, 1000);
|
|
19
|
+
time.minute += Math.floor(time.second / 60);
|
|
20
|
+
time.second = $735220c2d4774dd3$var$nonNegativeMod(time.second, 60);
|
|
21
|
+
time.hour += Math.floor(time.minute / 60);
|
|
22
|
+
time.minute = $735220c2d4774dd3$var$nonNegativeMod(time.minute, 60);
|
|
23
|
+
let days = Math.floor(time.hour / 24);
|
|
24
|
+
time.hour = $735220c2d4774dd3$var$nonNegativeMod(time.hour, 24);
|
|
25
|
+
return days;
|
|
26
|
+
}
|
|
27
|
+
function $735220c2d4774dd3$export$7555de1e070510cb(time) {
|
|
28
|
+
time.millisecond = Math.max(0, Math.min(time.millisecond, 1000));
|
|
29
|
+
time.second = Math.max(0, Math.min(time.second, 59));
|
|
30
|
+
time.minute = Math.max(0, Math.min(time.minute, 59));
|
|
31
|
+
time.hour = Math.max(0, Math.min(time.hour, 23));
|
|
32
|
+
}
|
|
33
|
+
function $735220c2d4774dd3$var$nonNegativeMod(a, b) {
|
|
34
|
+
let result = a % b;
|
|
35
|
+
if (result < 0) result += b;
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
function $735220c2d4774dd3$var$addTimeFields(time, duration) {
|
|
39
|
+
time.hour += duration.hours || 0;
|
|
40
|
+
time.minute += duration.minutes || 0;
|
|
41
|
+
time.second += duration.seconds || 0;
|
|
42
|
+
time.millisecond += duration.milliseconds || 0;
|
|
43
|
+
return $735220c2d4774dd3$var$balanceTime(time);
|
|
44
|
+
}
|
|
45
|
+
function $735220c2d4774dd3$export$7ed87b6bc2506470(time, duration) {
|
|
46
|
+
let res = time.copy();
|
|
47
|
+
$735220c2d4774dd3$var$addTimeFields(res, duration);
|
|
48
|
+
return res;
|
|
49
|
+
}
|
|
50
|
+
function $735220c2d4774dd3$export$fe34d3a381cd7501(time, duration) {
|
|
51
|
+
return $735220c2d4774dd3$export$7ed87b6bc2506470(time, $735220c2d4774dd3$export$3e2544e88a25bff8(duration));
|
|
52
|
+
}
|
|
53
|
+
function $735220c2d4774dd3$export$dd02b3e0007dfe28(value, field, amount, options) {
|
|
54
|
+
let mutable = value.copy();
|
|
55
|
+
switch(field){
|
|
56
|
+
case 'hour':
|
|
57
|
+
{
|
|
58
|
+
let hours = value.hour;
|
|
59
|
+
let min = 0;
|
|
60
|
+
let max = 23;
|
|
61
|
+
if ((options === null || options === void 0 ? void 0 : options.hourCycle) === 12) {
|
|
62
|
+
let isPM = hours >= 12;
|
|
63
|
+
min = isPM ? 12 : 0;
|
|
64
|
+
max = isPM ? 23 : 11;
|
|
65
|
+
}
|
|
66
|
+
mutable.hour = $735220c2d4774dd3$var$cycleValue(hours, amount, min, max, options === null || options === void 0 ? void 0 : options.round);
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
case 'minute':
|
|
70
|
+
mutable.minute = $735220c2d4774dd3$var$cycleValue(value.minute, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
|
|
71
|
+
break;
|
|
72
|
+
case 'second':
|
|
73
|
+
mutable.second = $735220c2d4774dd3$var$cycleValue(value.second, amount, 0, 59, options === null || options === void 0 ? void 0 : options.round);
|
|
74
|
+
break;
|
|
75
|
+
case 'millisecond':
|
|
76
|
+
mutable.millisecond = $735220c2d4774dd3$var$cycleValue(value.millisecond, amount, 0, 999, options === null || options === void 0 ? void 0 : options.round);
|
|
77
|
+
break;
|
|
78
|
+
default:
|
|
79
|
+
throw new Error('Unsupported field ' + field);
|
|
80
|
+
}
|
|
81
|
+
return mutable;
|
|
82
|
+
}
|
|
83
|
+
function $735220c2d4774dd3$var$cycleValue(value, amount, min, max, round = false) {
|
|
84
|
+
if (round) {
|
|
85
|
+
value += Math.sign(amount);
|
|
86
|
+
if (value < min) value = max;
|
|
87
|
+
let div = Math.abs(amount);
|
|
88
|
+
if (amount > 0) value = Math.ceil(value / div) * div;
|
|
89
|
+
else value = Math.floor(value / div) * div;
|
|
90
|
+
if (value > max) value = min;
|
|
91
|
+
} else {
|
|
92
|
+
value += amount;
|
|
93
|
+
if (value < min) value = max - (min - value - 1);
|
|
94
|
+
else if (value > max) value = min + (value - max - 1);
|
|
95
|
+
}
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export { $735220c2d4774dd3$export$7ed87b6bc2506470 as addTime, $735220c2d4774dd3$export$7555de1e070510cb as constrainTime, $735220c2d4774dd3$export$dd02b3e0007dfe28 as cycleTime, $735220c2d4774dd3$export$3e2544e88a25bff8 as invertDuration, $735220c2d4774dd3$export$e5d5e1c1822b6e56 as setTime, $735220c2d4774dd3$export$fe34d3a381cd7501 as subtractTime };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {
|
|
7
|
+
return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);
|
|
8
|
+
}
|
|
9
|
+
function $14e0f24ef4ac5c92$var$timeToMs(a) {
|
|
10
|
+
return a.hour * 3600000 + a.minute * 60000 + a.second * 1000 + a.millisecond;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports.compareTime = $14e0f24ef4ac5c92$export$c19a80a9721b80f6;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
function $14e0f24ef4ac5c92$export$c19a80a9721b80f6(a, b) {
|
|
3
|
+
return $14e0f24ef4ac5c92$var$timeToMs(a) - $14e0f24ef4ac5c92$var$timeToMs(b);
|
|
4
|
+
}
|
|
5
|
+
function $14e0f24ef4ac5c92$var$timeToMs(a) {
|
|
6
|
+
return a.hour * 3600000 + a.minute * 60000 + a.second * 1000 + a.millisecond;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { $14e0f24ef4ac5c92$export$c19a80a9721b80f6 as compareTime };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const CalendarDate = require('./CalendarDate.cjs');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
10
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
12
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
15
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
16
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
17
|
+
* governing permissions and limitations under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
const $fae977aafc393c5c$var$TIME_RE = /^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
|
|
23
|
+
function $fae977aafc393c5c$export$c9698ec7f05a07e1(value) {
|
|
24
|
+
let m = value.match($fae977aafc393c5c$var$TIME_RE);
|
|
25
|
+
if (!m) throw new Error('Invalid ISO 8601 time string: ' + value);
|
|
26
|
+
return new (CalendarDate.Time)($fae977aafc393c5c$var$parseNumber(m[1], 0, 23), m[2] ? $fae977aafc393c5c$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $fae977aafc393c5c$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);
|
|
27
|
+
}
|
|
28
|
+
function $fae977aafc393c5c$var$parseNumber(value, min, max) {
|
|
29
|
+
let val = Number(value);
|
|
30
|
+
if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
|
|
31
|
+
return val;
|
|
32
|
+
}
|
|
33
|
+
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
34
|
+
return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:${String(time.second).padStart(2, '0')}${time.millisecond ? String(time.millisecond / 1000).slice(1) : ''}`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
exports.parseTime = $fae977aafc393c5c$export$c9698ec7f05a07e1;
|
|
38
|
+
exports.timeToString = $fae977aafc393c5c$export$f59dee82248f5ad4;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Time as $35ea8db9cb2ccb90$export$680ea196effce5f } from './CalendarDate.js';
|
|
3
|
+
|
|
4
|
+
/*
|
|
5
|
+
* Copyright 2020 Adobe. All rights reserved.
|
|
6
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
8
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
11
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
12
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
13
|
+
* governing permissions and limitations under the License.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
const $fae977aafc393c5c$var$TIME_RE = /^(\d{2})(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/;
|
|
19
|
+
function $fae977aafc393c5c$export$c9698ec7f05a07e1(value) {
|
|
20
|
+
let m = value.match($fae977aafc393c5c$var$TIME_RE);
|
|
21
|
+
if (!m) throw new Error('Invalid ISO 8601 time string: ' + value);
|
|
22
|
+
return new ($35ea8db9cb2ccb90$export$680ea196effce5f)($fae977aafc393c5c$var$parseNumber(m[1], 0, 23), m[2] ? $fae977aafc393c5c$var$parseNumber(m[2], 0, 59) : 0, m[3] ? $fae977aafc393c5c$var$parseNumber(m[3], 0, 59) : 0, m[4] ? $fae977aafc393c5c$var$parseNumber(m[4], 0, Infinity) * 1000 : 0);
|
|
23
|
+
}
|
|
24
|
+
function $fae977aafc393c5c$var$parseNumber(value, min, max) {
|
|
25
|
+
let val = Number(value);
|
|
26
|
+
if (val < min || val > max) throw new RangeError(`Value out of range: ${min} <= ${val} <= ${max}`);
|
|
27
|
+
return val;
|
|
28
|
+
}
|
|
29
|
+
function $fae977aafc393c5c$export$f59dee82248f5ad4(time) {
|
|
30
|
+
return `${String(time.hour).padStart(2, '0')}:${String(time.minute).padStart(2, '0')}:${String(time.second).padStart(2, '0')}${time.millisecond ? String(time.millisecond / 1000).slice(1) : ''}`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { $fae977aafc393c5c$export$c9698ec7f05a07e1 as parseTime, $fae977aafc393c5c$export$f59dee82248f5ad4 as timeToString };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
function _check_private_redeclaration(obj, privateCollection) {
|
|
7
|
+
if (privateCollection.has(obj)) {
|
|
8
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
exports._ = _check_private_redeclaration;
|
|
13
|
+
exports._check_private_redeclaration = _check_private_redeclaration;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
function _check_private_redeclaration(obj, privateCollection) {
|
|
3
|
+
if (privateCollection.has(obj)) {
|
|
4
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { _check_private_redeclaration as _, _check_private_redeclaration };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
5
|
+
|
|
6
|
+
const _check_private_redeclaration = require('./_check_private_redeclaration.cjs');
|
|
7
|
+
|
|
8
|
+
function _class_private_field_init(obj, privateMap, value) {
|
|
9
|
+
_check_private_redeclaration._check_private_redeclaration(obj, privateMap);
|
|
10
|
+
privateMap.set(obj, value);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
exports._ = _class_private_field_init;
|
|
14
|
+
exports._class_private_field_init = _class_private_field_init;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { _check_private_redeclaration } from './_check_private_redeclaration.js';
|
|
3
|
+
|
|
4
|
+
function _class_private_field_init(obj, privateMap, value) {
|
|
5
|
+
_check_private_redeclaration(obj, privateMap);
|
|
6
|
+
privateMap.set(obj, value);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { _class_private_field_init as _, _class_private_field_init };
|