@epilot/volt-ui-experimental-griffel 0.1.0-experiment.1
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 +157 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/components/accordion/accordion.d.ts +14 -0
- package/dist/components/accordion/accordion.js +167 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +36 -0
- package/dist/components/alert-dialog/alert-dialog.js +270 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/avatar/avatar-group.d.ts +7 -0
- package/dist/components/avatar/avatar-group.js +143 -0
- package/dist/components/avatar/avatar-group.js.map +1 -0
- package/dist/components/avatar/avatar.d.ts +17 -0
- package/dist/components/avatar/avatar.js +173 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/badge/badge.d.ts +41 -0
- package/dist/components/badge/badge.js +137 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +31 -0
- package/dist/components/breadcrumb/breadcrumb.js +111 -0
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/button/button.d.ts +12 -0
- package/dist/components/button/button.js +168 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button-group/button-group.d.ts +30 -0
- package/dist/components/button-group/button-group.js +123 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/callout/callout.d.ts +23 -0
- package/dist/components/callout/callout.js +312 -0
- package/dist/components/callout/callout.js.map +1 -0
- package/dist/components/card/card.d.ts +9 -0
- package/dist/components/card/card.js +172 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +4 -0
- package/dist/components/checkbox/checkbox.js +123 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/collapsible-sidebar/collapsible-sidebar.d.ts +33 -0
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js +216 -0
- package/dist/components/collapsible-sidebar/collapsible-sidebar.js.map +1 -0
- package/dist/components/command/command.d.ts +85 -0
- package/dist/components/command/command.js +358 -0
- package/dist/components/command/command.js.map +1 -0
- package/dist/components/date-range-picker/date-range-picker-utils.d.ts +2 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +34 -0
- package/dist/components/date-range-picker/date-range-picker.js +393 -0
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -0
- package/dist/components/date-range-picker/range-calendar.d.ts +15 -0
- package/dist/components/date-range-picker/range-calendar.js +143 -0
- package/dist/components/date-range-picker/range-calendar.js.map +1 -0
- package/dist/components/date-time-picker/calendar.d.ts +28 -0
- package/dist/components/date-time-picker/calendar.js +632 -0
- package/dist/components/date-time-picker/calendar.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-context.d.ts +39 -0
- package/dist/components/date-time-picker/date-time-picker-context.js +79 -0
- package/dist/components/date-time-picker/date-time-picker-context.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-input.d.ts +13 -0
- package/dist/components/date-time-picker/date-time-picker-input.js +229 -0
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-panel.d.ts +15 -0
- package/dist/components/date-time-picker/date-time-picker-panel.js +276 -0
- package/dist/components/date-time-picker/date-time-picker-panel.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-popover.d.ts +6 -0
- package/dist/components/date-time-picker/date-time-picker-popover.js +26 -0
- package/dist/components/date-time-picker/date-time-picker-popover.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker-utils.d.ts +37 -0
- package/dist/components/date-time-picker/date-time-picker-utils.js +103 -0
- package/dist/components/date-time-picker/date-time-picker-utils.js.map +1 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +47 -0
- package/dist/components/date-time-picker/date-time-picker.js +112 -0
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -0
- package/dist/components/date-time-picker/time-picker.d.ts +12 -0
- package/dist/components/date-time-picker/time-picker.js +269 -0
- package/dist/components/date-time-picker/time-picker.js.map +1 -0
- package/dist/components/dialog/dialog.d.ts +27 -0
- package/dist/components/dialog/dialog.js +333 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/drawer/drawer.d.ts +27 -0
- package/dist/components/drawer/drawer.js +437 -0
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +41 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +424 -0
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/field/field-combobox.d.ts +90 -0
- package/dist/components/field/field-combobox.js +457 -0
- package/dist/components/field/field-combobox.js.map +1 -0
- package/dist/components/field/field-select.d.ts +4 -0
- package/dist/components/field/field-select.js +26 -0
- package/dist/components/field/field-select.js.map +1 -0
- package/dist/components/field/field.d.ts +76 -0
- package/dist/components/field/field.js +482 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/label/label.d.ts +21 -0
- package/dist/components/label/label.js +87 -0
- package/dist/components/label/label.js.map +1 -0
- package/dist/components/list/list.d.ts +46 -0
- package/dist/components/list/list.js +770 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/option-card/option-card.d.ts +39 -0
- package/dist/components/option-card/option-card.js +454 -0
- package/dist/components/option-card/option-card.js.map +1 -0
- package/dist/components/pill/pill.d.ts +27 -0
- package/dist/components/pill/pill.js +159 -0
- package/dist/components/pill/pill.js.map +1 -0
- package/dist/components/popover/popover.d.ts +14 -0
- package/dist/components/popover/popover.js +138 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/radio/radio.d.ts +6 -0
- package/dist/components/radio/radio.js +138 -0
- package/dist/components/radio/radio.js.map +1 -0
- package/dist/components/scroll-overflow/scroll-overflow.d.ts +38 -0
- package/dist/components/scroll-overflow/scroll-overflow.js +485 -0
- package/dist/components/scroll-overflow/scroll-overflow.js.map +1 -0
- package/dist/components/segmented-control/segmented-control.d.ts +11 -0
- package/dist/components/segmented-control/segmented-control.js +262 -0
- package/dist/components/segmented-control/segmented-control.js.map +1 -0
- package/dist/components/select/select.d.ts +26 -0
- package/dist/components/select/select.js +509 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/separator/separator.d.ts +30 -0
- package/dist/components/separator/separator.js +42 -0
- package/dist/components/separator/separator.js.map +1 -0
- package/dist/components/skeleton/skeleton.d.ts +24 -0
- package/dist/components/skeleton/skeleton.js +121 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/spinner/spinner.d.ts +25 -0
- package/dist/components/spinner/spinner.js +95 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/switch/switch.d.ts +17 -0
- package/dist/components/switch/switch.js +251 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/table/table.d.ts +50 -0
- package/dist/components/table/table.js +262 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/tabs/tabs.d.ts +18 -0
- package/dist/components/tabs/tabs.js +180 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/text/text.d.ts +22 -0
- package/dist/components/text/text.js +80 -0
- package/dist/components/text/text.js.map +1 -0
- package/dist/components/toast/toast.d.ts +10 -0
- package/dist/components/toast/toast.js +240 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toggle/toggle-group.d.ts +10 -0
- package/dist/components/toggle/toggle-group.js +49 -0
- package/dist/components/toggle/toggle-group.js.map +1 -0
- package/dist/components/toggle/toggle.d.ts +10 -0
- package/dist/components/toggle/toggle.js +124 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/tooltip/tooltip.d.ts +15 -0
- package/dist/components/tooltip/tooltip.js +167 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +253 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/clear-button.d.ts +5 -0
- package/dist/lib/clear-button.js +52 -0
- package/dist/lib/clear-button.js.map +1 -0
- package/dist/lib/icons.d.ts +3 -0
- package/dist/lib/icons.js +15 -0
- package/dist/lib/icons.js.map +1 -0
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +57 -0
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +1 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +2599 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js.map +1 -0
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +368 -0
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +1 -0
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +236 -0
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +1 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +23 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/constants.js +34 -0
- package/dist/node_modules/@griffel/core/src/constants.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/getAtomicDebugSequenceTree.js +27 -0
- package/dist/node_modules/@griffel/core/src/devtools/getAtomicDebugSequenceTree.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/getResetDebugSequence.js +19 -0
- package/dist/node_modules/@griffel/core/src/devtools/getResetDebugSequence.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/getSourceURLfromError.js +18 -0
- package/dist/node_modules/@griffel/core/src/devtools/getSourceURLfromError.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/injectDevTools.js +26 -0
- package/dist/node_modules/@griffel/core/src/devtools/injectDevTools.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/isDevToolsEnabled.js +12 -0
- package/dist/node_modules/@griffel/core/src/devtools/isDevToolsEnabled.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/mergeDebugSequence.js +15 -0
- package/dist/node_modules/@griffel/core/src/devtools/mergeDebugSequence.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/react-render-tracker/stackTrace.js +40 -0
- package/dist/node_modules/@griffel/core/src/devtools/react-render-tracker/stackTrace.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/store.js +22 -0
- package/dist/node_modules/@griffel/core/src/devtools/store.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/devtools/utils.js +22 -0
- package/dist/node_modules/@griffel/core/src/devtools/utils.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/index.js +52 -0
- package/dist/node_modules/@griffel/core/src/index.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/insertionFactory.js +10 -0
- package/dist/node_modules/@griffel/core/src/insertionFactory.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/makeResetStyles.js +26 -0
- package/dist/node_modules/@griffel/core/src/makeResetStyles.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/makeStyles.js +33 -0
- package/dist/node_modules/@griffel/core/src/makeStyles.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/mergeClasses.js +49 -0
- package/dist/node_modules/@griffel/core/src/mergeClasses.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/renderer/createDOMRenderer.js +43 -0
- package/dist/node_modules/@griffel/core/src/renderer/createDOMRenderer.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/renderer/createIsomorphicStyleSheet.js +23 -0
- package/dist/node_modules/@griffel/core/src/renderer/createIsomorphicStyleSheet.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/renderer/getStyleSheetForBucket.js +81 -0
- package/dist/node_modules/@griffel/core/src/renderer/getStyleSheetForBucket.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/renderer/safeInsertRule.js +19 -0
- package/dist/node_modules/@griffel/core/src/renderer/safeInsertRule.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/resolveStyleRulesForSlots.js +15 -0
- package/dist/node_modules/@griffel/core/src/resolveStyleRulesForSlots.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/compileAtomicCSSRule.js +28 -0
- package/dist/node_modules/@griffel/core/src/runtime/compileAtomicCSSRule.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/compileCSSRules.js +23 -0
- package/dist/node_modules/@griffel/core/src/runtime/compileCSSRules.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/compileKeyframeCSS.js +27 -0
- package/dist/node_modules/@griffel/core/src/runtime/compileKeyframeCSS.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/compileResetCSSRules.js +31 -0
- package/dist/node_modules/@griffel/core/src/runtime/compileResetCSSRules.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/getStyleBucketName.js +34 -0
- package/dist/node_modules/@griffel/core/src/runtime/getStyleBucketName.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/reduceToClassNameForSlots.js +33 -0
- package/dist/node_modules/@griffel/core/src/runtime/reduceToClassNameForSlots.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/resolveResetStyleRules.js +95 -0
- package/dist/node_modules/@griffel/core/src/runtime/resolveResetStyleRules.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/resolveStyleRules.js +187 -0
- package/dist/node_modules/@griffel/core/src/runtime/resolveStyleRules.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/shorthands.js +146 -0
- package/dist/node_modules/@griffel/core/src/runtime/shorthands.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/globalPlugin.js +29 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/globalPlugin.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/isAtRuleElement.js +15 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/isAtRuleElement.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/prefixerPlugin.js +107 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/prefixerPlugin.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/rulesheetPlugin.js +9 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/rulesheetPlugin.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/scopePlugin.js +41 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/scopePlugin.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/sortClassesInAtRulesPlugin.js +8 -0
- package/dist/node_modules/@griffel/core/src/runtime/stylis/sortClassesInAtRulesPlugin.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/cssifyObject.js +19 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/cssifyObject.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/generateCombinedMediaQuery.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/generateCombinedMediaQuery.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/hashClassName.js +11 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/hashClassName.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/hashPropertyKey.js +16 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/hashPropertyKey.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/hashSequence.js +17 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/hashSequence.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/hyphenateProperty.js +16 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/hyphenateProperty.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isContainerQuerySelector.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isContainerQuerySelector.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isLayerSelector.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isLayerSelector.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isMediaQuerySelector.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isMediaQuerySelector.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isNestedSelector.js +8 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isNestedSelector.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isObject.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isObject.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isResetValue.js +8 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isResetValue.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isScopeSelector.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isScopeSelector.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isSupportQuerySelector.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/isSupportQuerySelector.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/normalizeCSSBucketEntry.js +11 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/normalizeCSSBucketEntry.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/normalizeNestedProperty.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/normalizeNestedProperty.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/trimSelector.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/utils/trimSelector.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/warnings/logError.js +7 -0
- package/dist/node_modules/@griffel/core/src/runtime/warnings/logError.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/warnings/warnAboutUnresolvedRule.js +22 -0
- package/dist/node_modules/@griffel/core/src/runtime/warnings/warnAboutUnresolvedRule.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/runtime/warnings/warnAboutUnsupportedProperties.js +16 -0
- package/dist/node_modules/@griffel/core/src/runtime/warnings/warnAboutUnsupportedProperties.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/border.js +19 -0
- package/dist/node_modules/@griffel/core/src/shorthands/border.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderBottom.js +16 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderBottom.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderColor.js +8 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderColor.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderLeft.js +16 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderLeft.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderRadius.js +12 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderRadius.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderRight.js +16 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderRight.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderStyle.js +8 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderStyle.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderTop.js +16 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderTop.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderWidth.js +8 -0
- package/dist/node_modules/@griffel/core/src/shorthands/borderWidth.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/flex.js +66 -0
- package/dist/node_modules/@griffel/core/src/shorthands/flex.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/gap.js +10 -0
- package/dist/node_modules/@griffel/core/src/shorthands/gap.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/generateStyles.js +14 -0
- package/dist/node_modules/@griffel/core/src/shorthands/generateStyles.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/gridArea.js +31 -0
- package/dist/node_modules/@griffel/core/src/shorthands/gridArea.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/inset.js +13 -0
- package/dist/node_modules/@griffel/core/src/shorthands/inset.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/margin.js +8 -0
- package/dist/node_modules/@griffel/core/src/shorthands/margin.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/marginBlock.js +10 -0
- package/dist/node_modules/@griffel/core/src/shorthands/marginBlock.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/marginInline.js +10 -0
- package/dist/node_modules/@griffel/core/src/shorthands/marginInline.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/outline.js +11 -0
- package/dist/node_modules/@griffel/core/src/shorthands/outline.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/overflow.js +10 -0
- package/dist/node_modules/@griffel/core/src/shorthands/overflow.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/padding.js +8 -0
- package/dist/node_modules/@griffel/core/src/shorthands/padding.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/paddingBlock.js +10 -0
- package/dist/node_modules/@griffel/core/src/shorthands/paddingBlock.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/paddingInline.js +10 -0
- package/dist/node_modules/@griffel/core/src/shorthands/paddingInline.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/textDecoration.js +19 -0
- package/dist/node_modules/@griffel/core/src/shorthands/textDecoration.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/transition.js +19 -0
- package/dist/node_modules/@griffel/core/src/shorthands/transition.js.map +1 -0
- package/dist/node_modules/@griffel/core/src/shorthands/utils.js +19 -0
- package/dist/node_modules/@griffel/core/src/shorthands/utils.js.map +1 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/number/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +10 -0
- package/dist/node_modules/@radix-ui/primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +240 -0
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +128 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +25 -0
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +76 -0
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +252 -0
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +121 -0
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +51 -0
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +30 -0
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +71 -0
- package/dist/node_modules/@radix-ui/react-context/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +263 -0
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +51 -0
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +128 -0
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +228 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +18 -0
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +138 -0
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-id/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +653 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +51 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +244 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +51 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +222 -0
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +209 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +403 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/node_modules/@floating-ui/core/dist/floating-ui.core.js +528 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +137 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +131 -0
- package/dist/node_modules/@radix-ui/react-popper/node_modules/@floating-ui/react-dom/node_modules/@floating-ui/dom/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +17 -0
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +72 -0
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +37 -0
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +51 -0
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +239 -0
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +184 -0
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +534 -0
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +863 -0
- package/dist/node_modules/@radix-ui/react-select/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +51 -0
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +133 -0
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +164 -0
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +34 -0
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +138 -0
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +340 -0
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js +12 -0
- package/dist/node_modules/@radix-ui/react-tooltip/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +14 -0
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +55 -0
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +16 -0
- package/dist/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +7 -0
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +9 -0
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +28 -0
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js.map +1 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +33 -0
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js.map +1 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +53 -0
- package/dist/node_modules/aria-hidden/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js +18 -0
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js.map +1 -0
- package/dist/node_modules/cmdk/dist/index.js +313 -0
- package/dist/node_modules/cmdk/dist/index.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +8 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +516 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +60 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +53 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +19 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +12 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +9 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +21 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
- package/dist/node_modules/date-fns/addDays.js +11 -0
- package/dist/node_modules/date-fns/addDays.js.map +1 -0
- package/dist/node_modules/date-fns/addMonths.js +21 -0
- package/dist/node_modules/date-fns/addMonths.js.map +1 -0
- package/dist/node_modules/date-fns/constants.js +10 -0
- package/dist/node_modules/date-fns/constants.js.map +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +9 -0
- package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
- package/dist/node_modules/date-fns/constructNow.js +9 -0
- package/dist/node_modules/date-fns/constructNow.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +17 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.js +18 -0
- package/dist/node_modules/date-fns/eachDayOfInterval.js.map +1 -0
- package/dist/node_modules/date-fns/endOfWeek.js +10 -0
- package/dist/node_modules/date-fns/endOfWeek.js.map +1 -0
- package/dist/node_modules/date-fns/format.js +60 -0
- package/dist/node_modules/date-fns/format.js.map +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +12 -0
- package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js +9 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js.map +1 -0
- package/dist/node_modules/date-fns/getISODay.js +10 -0
- package/dist/node_modules/date-fns/getISODay.js.map +1 -0
- package/dist/node_modules/date-fns/getISOWeek.js +13 -0
- package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +16 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/getWeek.js +13 -0
- package/dist/node_modules/date-fns/getWeek.js.map +1 -0
- package/dist/node_modules/date-fns/getWeekYear.js +18 -0
- package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/isAfter.js +9 -0
- package/dist/node_modules/date-fns/isAfter.js.map +1 -0
- package/dist/node_modules/date-fns/isBefore.js +9 -0
- package/dist/node_modules/date-fns/isBefore.js.map +1 -0
- package/dist/node_modules/date-fns/isDate.js +8 -0
- package/dist/node_modules/date-fns/isDate.js.map +1 -0
- package/dist/node_modules/date-fns/isSameDay.js +15 -0
- package/dist/node_modules/date-fns/isSameDay.js.map +1 -0
- package/dist/node_modules/date-fns/isSameMonth.js +14 -0
- package/dist/node_modules/date-fns/isSameMonth.js.map +1 -0
- package/dist/node_modules/date-fns/isToday.js +14 -0
- package/dist/node_modules/date-fns/isToday.js.map +1 -0
- package/dist/node_modules/date-fns/isValid.js +10 -0
- package/dist/node_modules/date-fns/isValid.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +19 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +32 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/de/_lib/formatDistance.js +164 -0
- package/dist/node_modules/date-fns/locale/de/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/date-fns/locale/de/_lib/formatLong.js +38 -0
- package/dist/node_modules/date-fns/locale/de/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/date-fns/locale/de/_lib/formatRelative.js +12 -0
- package/dist/node_modules/date-fns/locale/de/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/date-fns/locale/de/_lib/localize.js +162 -0
- package/dist/node_modules/date-fns/locale/de/_lib/localize.js.map +1 -0
- package/dist/node_modules/date-fns/locale/de/_lib/match.js +113 -0
- package/dist/node_modules/date-fns/locale/de/_lib/match.js.map +1 -0
- package/dist/node_modules/date-fns/locale/de.js +22 -0
- package/dist/node_modules/date-fns/locale/de.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +71 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +34 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +156 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +111 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US.js +22 -0
- package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/formatDistance.js +71 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/formatLong.js +34 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/formatRelative.js +12 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/localize.js +122 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/localize.js.map +1 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/match.js +111 -0
- package/dist/node_modules/date-fns/locale/fr/_lib/match.js.map +1 -0
- package/dist/node_modules/date-fns/locale/fr.js +22 -0
- package/dist/node_modules/date-fns/locale/fr.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +23 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +42 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +62 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +46 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +31 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +22 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +23 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +34 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +100 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +41 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +75 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +49 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +70 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +72 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +33 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +75 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +72 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +23 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +23 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +68 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js.map +1 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js +104 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js.map +1 -0
- package/dist/node_modules/date-fns/parse.js +90 -0
- package/dist/node_modules/date-fns/parse.js.map +1 -0
- package/dist/node_modules/date-fns/setDay.js +13 -0
- package/dist/node_modules/date-fns/setDay.js.map +1 -0
- package/dist/node_modules/date-fns/setHours.js +10 -0
- package/dist/node_modules/date-fns/setHours.js.map +1 -0
- package/dist/node_modules/date-fns/setISODay.js +12 -0
- package/dist/node_modules/date-fns/setISODay.js.map +1 -0
- package/dist/node_modules/date-fns/setISOWeek.js +11 -0
- package/dist/node_modules/date-fns/setISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/setMinutes.js +10 -0
- package/dist/node_modules/date-fns/setMinutes.js.map +1 -0
- package/dist/node_modules/date-fns/setWeek.js +11 -0
- package/dist/node_modules/date-fns/setWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +10 -0
- package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +12 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfMonth.js +10 -0
- package/dist/node_modules/date-fns/startOfMonth.js.map +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +12 -0
- package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +14 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/subMonths.js +9 -0
- package/dist/node_modules/date-fns/subMonths.js.map +1 -0
- package/dist/node_modules/date-fns/toDate.js +9 -0
- package/dist/node_modules/date-fns/toDate.js.map +1 -0
- package/dist/node_modules/date-fns/transpose.js +19 -0
- package/dist/node_modules/date-fns/transpose.js.map +1 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js +8 -0
- package/dist/node_modules/get-nonce/dist/es2015/index.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +12 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +113 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +32 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +17 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +69 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +6 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js.map +1 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +8 -0
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +72 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +8 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js.map +1 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +26 -0
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +12 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +16 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js.map +1 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +31 -0
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js.map +1 -0
- package/dist/node_modules/rifm/dist/rifm.esm.js +87 -0
- package/dist/node_modules/rifm/dist/rifm.esm.js.map +1 -0
- package/dist/node_modules/rtl-css-js/dist/esm/convert-9768a965.js +303 -0
- package/dist/node_modules/rtl-css-js/dist/esm/convert-9768a965.js.map +1 -0
- package/dist/node_modules/sonner/dist/index.js +747 -0
- package/dist/node_modules/sonner/dist/index.js.map +1 -0
- package/dist/node_modules/stylis/src/Enum.js +16 -0
- package/dist/node_modules/stylis/src/Enum.js.map +1 -0
- package/dist/node_modules/stylis/src/Middleware.js +19 -0
- package/dist/node_modules/stylis/src/Middleware.js.map +1 -0
- package/dist/node_modules/stylis/src/Parser.js +128 -0
- package/dist/node_modules/stylis/src/Parser.js.map +1 -0
- package/dist/node_modules/stylis/src/Serializer.js +29 -0
- package/dist/node_modules/stylis/src/Serializer.js.map +1 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +151 -0
- package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/dist/node_modules/stylis/src/Utility.js +51 -0
- package/dist/node_modules/stylis/src/Utility.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +28 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +7 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +27 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +26 -0
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +19 -0
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js.map +1 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +68 -0
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +9 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
- package/dist/renderer/contract.d.ts +43 -0
- package/dist/renderer/contract.js +8 -0
- package/dist/renderer/contract.js.map +1 -0
- package/dist/renderer/index.d.ts +22 -0
- package/dist/renderer/index.js +59 -0
- package/dist/renderer/index.js.map +1 -0
- package/dist/renderer/insertion-point.d.ts +35 -0
- package/dist/renderer/insertion-point.js +30 -0
- package/dist/renderer/insertion-point.js.map +1 -0
- package/dist/renderer/rule-key.d.ts +14 -0
- package/dist/renderer/rule-key.js +12 -0
- package/dist/renderer/rule-key.js.map +1 -0
- package/dist/renderer/sheet-adoption.d.ts +32 -0
- package/dist/renderer/sheet-adoption.js +30 -0
- package/dist/renderer/sheet-adoption.js.map +1 -0
- package/dist/styles/make-styles.d.ts +43 -0
- package/dist/styles/make-styles.js +22 -0
- package/dist/styles/make-styles.js.map +1 -0
- package/dist/tokens/class-salt.generated.d.ts +2 -0
- package/dist/tokens/class-salt.generated.js +5 -0
- package/dist/tokens/class-salt.generated.js.map +1 -0
- package/dist/tokens/core.generated.d.ts +3 -0
- package/dist/tokens/core.generated.js +487 -0
- package/dist/tokens/core.generated.js.map +1 -0
- package/dist/tokens/ensure-sheet.d.ts +3 -0
- package/dist/tokens/ensure-sheet.js +14 -0
- package/dist/tokens/ensure-sheet.js.map +1 -0
- package/dist/tokens/index.d.ts +952 -0
- package/dist/tokens/index.js +958 -0
- package/dist/tokens/index.js.map +1 -0
- package/dist/tokens/install.d.ts +33 -0
- package/dist/tokens/install.js +14 -0
- package/dist/tokens/install.js.map +1 -0
- package/dist/tokens/palette.generated.d.ts +3 -0
- package/dist/tokens/palette.generated.js +1078 -0
- package/dist/tokens/palette.generated.js.map +1 -0
- package/dist/tokens.json +1911 -0
- package/package.json +87 -0
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import { jsxs as k, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { createElement as ne } from "react";
|
|
4
|
+
import { shorthands as l } from "../../node_modules/@griffel/core/src/index.js";
|
|
5
|
+
import { Field as re, FieldLabel as ae, FieldInputGroup as se, FieldGroupAddon as de, FieldError as ie } from "../field/field.js";
|
|
6
|
+
import { Button as oe } from "../button/button.js";
|
|
7
|
+
import { Pill as pe } from "../pill/pill.js";
|
|
8
|
+
import { Popover as le, PopoverTrigger as ce, PopoverContent as ge } from "../popover/popover.js";
|
|
9
|
+
import { SLOT_ATTR as c } from "../../renderer/contract.js";
|
|
10
|
+
import { makeVoltStyles as he } from "../../styles/make-styles.js";
|
|
11
|
+
import { gray6 as ue, gray9 as me, textSm as G, grayA8 as fe, grayA12 as Te, spacingElement1 as Ce, spacingGroup1 as qe, spacingElement2 as ye } from "../../tokens/index.js";
|
|
12
|
+
import { RangeCalendar as ke } from "./range-calendar.js";
|
|
13
|
+
import { formatDateTimeDisplay as d, parseDateTimeInput as b } from "../date-time-picker/date-time-picker-utils.js";
|
|
14
|
+
import { mergeClasses as z } from "../../node_modules/@griffel/core/src/mergeClasses.js";
|
|
15
|
+
const Se = (S) => /* @__PURE__ */ s(
|
|
16
|
+
"svg",
|
|
17
|
+
{
|
|
18
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
19
|
+
height: "18px",
|
|
20
|
+
viewBox: "0 -960 960 960",
|
|
21
|
+
width: "18px",
|
|
22
|
+
fill: "currentColor",
|
|
23
|
+
...S,
|
|
24
|
+
children: /* @__PURE__ */ s("path", { d: "M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z" })
|
|
25
|
+
}
|
|
26
|
+
), xe = "dd/MM/yyyy", B = he({
|
|
27
|
+
root: {
|
|
28
|
+
width: "100%"
|
|
29
|
+
},
|
|
30
|
+
inputGroup: {
|
|
31
|
+
width: "100%"
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Reproduces a v1 defect on purpose, the same way Label's line-height is reproduced: v1's
|
|
35
|
+
* `icon-sm` size classes do not reach this button, so v1 renders it content-sized at 18x18 around
|
|
36
|
+
* an unconstrained 18px icon rather than the 28x28-with-14px-icon that `icon-sm` specifies.
|
|
37
|
+
* Standalone, both arms render 28x28 — see the `button/size-icon-sm` specimen.
|
|
38
|
+
*
|
|
39
|
+
* Rule 0 targets v1's OUTPUT, and here the output is what consumers lay out against: matching
|
|
40
|
+
* `icon-sm` instead makes every date field 4px taller. So the size is released back to the content
|
|
41
|
+
* and the icon left unconstrained, which is v1's mechanism and not just its numbers.
|
|
42
|
+
*/
|
|
43
|
+
addonButton: {
|
|
44
|
+
width: "auto",
|
|
45
|
+
height: "auto",
|
|
46
|
+
"& svg": { width: "auto", height: "auto" }
|
|
47
|
+
},
|
|
48
|
+
popoverTrigger: {
|
|
49
|
+
flexGrow: 1,
|
|
50
|
+
flexShrink: 1,
|
|
51
|
+
flexBasis: "0%"
|
|
52
|
+
},
|
|
53
|
+
triggerRoot: {
|
|
54
|
+
display: "flex",
|
|
55
|
+
alignItems: "center",
|
|
56
|
+
...l.gap(ye),
|
|
57
|
+
flexGrow: 1,
|
|
58
|
+
flexShrink: 1,
|
|
59
|
+
flexBasis: "0%",
|
|
60
|
+
height: "1.5rem",
|
|
61
|
+
cursor: "pointer"
|
|
62
|
+
},
|
|
63
|
+
input: {
|
|
64
|
+
width: "5.5rem",
|
|
65
|
+
outlineStyle: "none",
|
|
66
|
+
fontSize: G,
|
|
67
|
+
color: Te,
|
|
68
|
+
backgroundColor: "transparent",
|
|
69
|
+
textAlign: "center",
|
|
70
|
+
...l.border("0"),
|
|
71
|
+
...l.padding("0"),
|
|
72
|
+
"::placeholder": {
|
|
73
|
+
color: fe
|
|
74
|
+
},
|
|
75
|
+
":disabled": {
|
|
76
|
+
cursor: "not-allowed"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
separator: {
|
|
80
|
+
fontSize: G,
|
|
81
|
+
color: me,
|
|
82
|
+
flexShrink: 0,
|
|
83
|
+
userSelect: "none",
|
|
84
|
+
...l.padding("0", "0.125rem")
|
|
85
|
+
// v1 px-0.5
|
|
86
|
+
},
|
|
87
|
+
popoverContent: {
|
|
88
|
+
...l.overflow("hidden")
|
|
89
|
+
},
|
|
90
|
+
content: {
|
|
91
|
+
display: "flex",
|
|
92
|
+
flexDirection: "row",
|
|
93
|
+
...l.gap(qe),
|
|
94
|
+
...l.padding("0.75rem")
|
|
95
|
+
// v1 p-3 (0.75rem)
|
|
96
|
+
},
|
|
97
|
+
presets: {
|
|
98
|
+
display: "flex",
|
|
99
|
+
flexDirection: "column",
|
|
100
|
+
...l.gap(Ce),
|
|
101
|
+
width: "8rem",
|
|
102
|
+
// v1 w-32
|
|
103
|
+
borderLeftWidth: "1px",
|
|
104
|
+
borderLeftStyle: "solid",
|
|
105
|
+
borderLeftColor: ue,
|
|
106
|
+
paddingLeft: "0.75rem"
|
|
107
|
+
// v1 pl-3 (0.75rem)
|
|
108
|
+
},
|
|
109
|
+
presetPill: {
|
|
110
|
+
alignSelf: "flex-start"
|
|
111
|
+
}
|
|
112
|
+
}), we = a.forwardRef((S, t) => {
|
|
113
|
+
const {
|
|
114
|
+
startValue: o,
|
|
115
|
+
endValue: i,
|
|
116
|
+
startPlaceholder: x,
|
|
117
|
+
endPlaceholder: R,
|
|
118
|
+
disabled: T,
|
|
119
|
+
onStartChange: C,
|
|
120
|
+
onEndChange: I,
|
|
121
|
+
onStartBlur: v,
|
|
122
|
+
onEndBlur: n,
|
|
123
|
+
testId: e,
|
|
124
|
+
inputAriaLabel: E,
|
|
125
|
+
className: N,
|
|
126
|
+
"data-slot": O,
|
|
127
|
+
...V
|
|
128
|
+
} = S, h = B();
|
|
129
|
+
return /* @__PURE__ */ k(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
ref: t,
|
|
133
|
+
...V,
|
|
134
|
+
className: z(h.triggerRoot, N),
|
|
135
|
+
"data-slot": "date-range-input",
|
|
136
|
+
[c]: "date-range-input",
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ s(
|
|
139
|
+
"input",
|
|
140
|
+
{
|
|
141
|
+
"aria-label": E || "Start date",
|
|
142
|
+
className: h.input,
|
|
143
|
+
"data-slot": "date-range-start-input",
|
|
144
|
+
[c]: "date-range-start-input",
|
|
145
|
+
"data-testid": e ? `${e}-start` : void 0,
|
|
146
|
+
disabled: T,
|
|
147
|
+
onBlur: v,
|
|
148
|
+
onChange: C,
|
|
149
|
+
placeholder: x,
|
|
150
|
+
value: o
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ s(
|
|
154
|
+
"span",
|
|
155
|
+
{
|
|
156
|
+
className: h.separator,
|
|
157
|
+
"data-slot": "date-range-separator",
|
|
158
|
+
[c]: "date-range-separator",
|
|
159
|
+
children: "–"
|
|
160
|
+
}
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ s(
|
|
163
|
+
"input",
|
|
164
|
+
{
|
|
165
|
+
"aria-label": "End date",
|
|
166
|
+
className: h.input,
|
|
167
|
+
"data-slot": "date-range-end-input",
|
|
168
|
+
[c]: "date-range-end-input",
|
|
169
|
+
"data-testid": e ? `${e}-end` : void 0,
|
|
170
|
+
disabled: T,
|
|
171
|
+
onBlur: n,
|
|
172
|
+
onChange: I,
|
|
173
|
+
placeholder: R,
|
|
174
|
+
value: i
|
|
175
|
+
}
|
|
176
|
+
)
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
);
|
|
180
|
+
}), Oe = a.forwardRef(function({
|
|
181
|
+
value: t,
|
|
182
|
+
onChange: o,
|
|
183
|
+
onBlur: i,
|
|
184
|
+
disabled: x = !1,
|
|
185
|
+
disablePast: R = !1,
|
|
186
|
+
label: T,
|
|
187
|
+
error: C,
|
|
188
|
+
startPlaceholder: I = "dd/MM/yyyy",
|
|
189
|
+
endPlaceholder: v = "dd/MM/yyyy",
|
|
190
|
+
format: n = xe,
|
|
191
|
+
locale: e = "de",
|
|
192
|
+
className: E,
|
|
193
|
+
keyboardIcon: N,
|
|
194
|
+
inputAriaLabel: O,
|
|
195
|
+
openPickerAriaLabel: V = "Open date picker",
|
|
196
|
+
previousMonthLabel: h = "Previous month",
|
|
197
|
+
nextMonthLabel: H = "Next month",
|
|
198
|
+
testId: _,
|
|
199
|
+
currentTimeInTimezone: j,
|
|
200
|
+
showWeekNumbers: $ = !1,
|
|
201
|
+
presets: P
|
|
202
|
+
}, U) {
|
|
203
|
+
const p = B(), [Z, M] = a.useState(!1), [A, u] = a.useState(
|
|
204
|
+
() => t.start ? d(t.start, n, e) : ""
|
|
205
|
+
), [D, m] = a.useState(
|
|
206
|
+
() => t.end ? d(t.end, n, e) : ""
|
|
207
|
+
), [w, q] = a.useState(t), f = a.useRef(t);
|
|
208
|
+
a.useEffect(() => {
|
|
209
|
+
u(
|
|
210
|
+
t.start ? d(t.start, n, e) : ""
|
|
211
|
+
), m(
|
|
212
|
+
t.end ? d(t.end, n, e) : ""
|
|
213
|
+
), q(t);
|
|
214
|
+
}, [t, n, e]), a.useEffect(() => {
|
|
215
|
+
Z && (f.current = t, q(t));
|
|
216
|
+
}, [Z, t]);
|
|
217
|
+
const W = a.useCallback(
|
|
218
|
+
(r) => {
|
|
219
|
+
const g = r.target.value;
|
|
220
|
+
u(g);
|
|
221
|
+
const y = b(g, n, e);
|
|
222
|
+
if (y) {
|
|
223
|
+
const L = { ...t, start: y };
|
|
224
|
+
o(L);
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
[o, t, n, e]
|
|
228
|
+
), J = a.useCallback(
|
|
229
|
+
(r) => {
|
|
230
|
+
const g = r.target.value;
|
|
231
|
+
m(g);
|
|
232
|
+
const y = b(g, n, e);
|
|
233
|
+
if (y) {
|
|
234
|
+
const L = { ...t, end: y };
|
|
235
|
+
o(L);
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
[o, t, n, e]
|
|
239
|
+
), K = a.useCallback(() => {
|
|
240
|
+
b(A, n, e) || u(
|
|
241
|
+
t.start ? d(t.start, n, e) : ""
|
|
242
|
+
), i == null || i();
|
|
243
|
+
}, [A, t.start, n, e, i]), Q = a.useCallback(() => {
|
|
244
|
+
b(D, n, e) || m(
|
|
245
|
+
t.end ? d(t.end, n, e) : ""
|
|
246
|
+
), i == null || i();
|
|
247
|
+
}, [D, t.end, n, e, i]), X = a.useCallback(
|
|
248
|
+
(r) => {
|
|
249
|
+
q(r), u(
|
|
250
|
+
r.start ? d(r.start, n, e) : ""
|
|
251
|
+
), m(
|
|
252
|
+
r.end ? d(r.end, n, e) : ""
|
|
253
|
+
);
|
|
254
|
+
},
|
|
255
|
+
[n, e]
|
|
256
|
+
), F = a.useCallback(
|
|
257
|
+
(r) => {
|
|
258
|
+
o(r), q(r), u(
|
|
259
|
+
r.start ? d(r.start, n, e) : ""
|
|
260
|
+
), m(
|
|
261
|
+
r.end ? d(r.end, n, e) : ""
|
|
262
|
+
), setTimeout(() => {
|
|
263
|
+
M(!1);
|
|
264
|
+
}, 150);
|
|
265
|
+
},
|
|
266
|
+
[o, n, e]
|
|
267
|
+
), Y = a.useCallback(
|
|
268
|
+
(r) => {
|
|
269
|
+
r || (!w.start || !w.end) && (q(f.current), u(
|
|
270
|
+
f.current.start ? d(
|
|
271
|
+
f.current.start,
|
|
272
|
+
n,
|
|
273
|
+
e
|
|
274
|
+
) : ""
|
|
275
|
+
), m(
|
|
276
|
+
f.current.end ? d(
|
|
277
|
+
f.current.end,
|
|
278
|
+
n,
|
|
279
|
+
e
|
|
280
|
+
) : ""
|
|
281
|
+
)), M(r);
|
|
282
|
+
},
|
|
283
|
+
[w, n, e]
|
|
284
|
+
), ee = N || /* @__PURE__ */ s(Se, {}), te = C ? "destructive" : "highlight";
|
|
285
|
+
return /* @__PURE__ */ k(
|
|
286
|
+
re,
|
|
287
|
+
{
|
|
288
|
+
className: z(p.root, E),
|
|
289
|
+
"data-slot": "daterangepicker",
|
|
290
|
+
[c]: "daterangepicker",
|
|
291
|
+
ref: U,
|
|
292
|
+
variant: te,
|
|
293
|
+
children: [
|
|
294
|
+
T && /* @__PURE__ */ s(ae, { children: T }),
|
|
295
|
+
/* @__PURE__ */ k(le, { modal: !0, onOpenChange: Y, open: Z, children: [
|
|
296
|
+
/* @__PURE__ */ k(se, { className: p.inputGroup, children: [
|
|
297
|
+
/* @__PURE__ */ s(ce, { asChild: !0, className: p.popoverTrigger, children: /* @__PURE__ */ s(
|
|
298
|
+
we,
|
|
299
|
+
{
|
|
300
|
+
disabled: x,
|
|
301
|
+
endPlaceholder: v,
|
|
302
|
+
endValue: D,
|
|
303
|
+
inputAriaLabel: O,
|
|
304
|
+
onEndBlur: Q,
|
|
305
|
+
onEndChange: J,
|
|
306
|
+
onStartBlur: K,
|
|
307
|
+
onStartChange: W,
|
|
308
|
+
startPlaceholder: I,
|
|
309
|
+
startValue: A,
|
|
310
|
+
testId: _
|
|
311
|
+
}
|
|
312
|
+
) }),
|
|
313
|
+
/* @__PURE__ */ s(de, { align: "end", children: /* @__PURE__ */ s(
|
|
314
|
+
oe,
|
|
315
|
+
{
|
|
316
|
+
"aria-label": V,
|
|
317
|
+
disabled: x,
|
|
318
|
+
onClick: () => M(!0),
|
|
319
|
+
className: p.addonButton,
|
|
320
|
+
size: "icon-sm",
|
|
321
|
+
variant: "tertiary",
|
|
322
|
+
children: ee
|
|
323
|
+
}
|
|
324
|
+
) })
|
|
325
|
+
] }),
|
|
326
|
+
/* @__PURE__ */ s(
|
|
327
|
+
ge,
|
|
328
|
+
{
|
|
329
|
+
align: "start",
|
|
330
|
+
className: p.popoverContent,
|
|
331
|
+
flush: !0,
|
|
332
|
+
side: "bottom",
|
|
333
|
+
sideOffset: 4,
|
|
334
|
+
children: /* @__PURE__ */ k(
|
|
335
|
+
"div",
|
|
336
|
+
{
|
|
337
|
+
className: p.content,
|
|
338
|
+
"data-slot": "daterangepicker-content",
|
|
339
|
+
[c]: "daterangepicker-content",
|
|
340
|
+
children: [
|
|
341
|
+
/* @__PURE__ */ s(
|
|
342
|
+
ke,
|
|
343
|
+
{
|
|
344
|
+
currentTimeInTimezone: j,
|
|
345
|
+
disablePast: R,
|
|
346
|
+
locale: e,
|
|
347
|
+
nextMonthLabel: H,
|
|
348
|
+
onChange: X,
|
|
349
|
+
onRangeComplete: F,
|
|
350
|
+
previousMonthLabel: h,
|
|
351
|
+
showWeekNumbers: $,
|
|
352
|
+
value: w
|
|
353
|
+
}
|
|
354
|
+
),
|
|
355
|
+
P && P.length > 0 && /* @__PURE__ */ s(
|
|
356
|
+
"aside",
|
|
357
|
+
{
|
|
358
|
+
className: p.presets,
|
|
359
|
+
"data-slot": "daterangepicker-presets",
|
|
360
|
+
[c]: "daterangepicker-presets",
|
|
361
|
+
children: P.map((r) => /* @__PURE__ */ ne(
|
|
362
|
+
pe,
|
|
363
|
+
{
|
|
364
|
+
className: p.presetPill,
|
|
365
|
+
"data-slot": "daterangepicker-preset",
|
|
366
|
+
[c]: "daterangepicker-preset",
|
|
367
|
+
key: r.label,
|
|
368
|
+
onClick: () => {
|
|
369
|
+
const g = r.getValue();
|
|
370
|
+
F(g);
|
|
371
|
+
},
|
|
372
|
+
variant: "surface"
|
|
373
|
+
},
|
|
374
|
+
r.label
|
|
375
|
+
))
|
|
376
|
+
}
|
|
377
|
+
)
|
|
378
|
+
]
|
|
379
|
+
}
|
|
380
|
+
)
|
|
381
|
+
}
|
|
382
|
+
)
|
|
383
|
+
] }),
|
|
384
|
+
C && /* @__PURE__ */ s(ie, { children: C })
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
);
|
|
388
|
+
});
|
|
389
|
+
export {
|
|
390
|
+
Oe as DateRangePicker,
|
|
391
|
+
ke as RangeCalendar
|
|
392
|
+
};
|
|
393
|
+
//# sourceMappingURL=date-range-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-range-picker.js","sources":["../../../src/components/date-range-picker/date-range-picker.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { mergeClasses, shorthands } from \"@griffel/core\"\n\nimport {\n Field,\n FieldLabel,\n FieldError,\n FieldInputGroup,\n FieldGroupAddon,\n} from \"../field/field\"\nimport { Button } from \"../button/button\"\nimport { Pill } from \"../pill/pill\"\nimport { Popover, PopoverTrigger, PopoverContent } from \"../popover/popover\"\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\n\nimport { RangeCalendar } from \"./range-calendar\"\nimport type { RangeCalendarProps } from \"./range-calendar\"\nimport type { DateRange, DateTimePickerLocale } from \"./date-range-picker-utils\"\nimport {\n formatDateTimeDisplay,\n parseDateTimeInput,\n} from \"./date-range-picker-utils\"\n\nconst CalendarIcon = (props: React.SVGProps<SVGSVGElement>) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n height=\"18px\"\n viewBox=\"0 -960 960 960\"\n width=\"18px\"\n fill=\"currentColor\"\n {...props}\n >\n <path d=\"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z\" />\n </svg>\n)\n\nconst DEFAULT_FORMAT = \"dd/MM/yyyy\"\n\nexport type DateRangePreset = {\n label: string\n getValue: () => DateRange\n}\n\nexport type DateRangePickerProps = {\n value: DateRange\n onChange: (range: DateRange) => void\n onBlur?: () => void\n disabled?: boolean\n disablePast?: boolean\n label?: string\n error?: string\n startPlaceholder?: string\n endPlaceholder?: string\n format?: string\n locale?: DateTimePickerLocale\n className?: string\n keyboardIcon?: React.ReactNode\n inputAriaLabel?: string\n openPickerAriaLabel?: string\n previousMonthLabel?: string\n nextMonthLabel?: string\n testId?: string\n currentTimeInTimezone?: Date\n showWeekNumbers?: boolean\n presets?: DateRangePreset[]\n}\n\nconst useStyles = makeVoltStyles({\n root: {\n width: \"100%\",\n },\n inputGroup: {\n width: \"100%\",\n },\n /**\n * Reproduces a v1 defect on purpose, the same way Label's line-height is reproduced: v1's\n * `icon-sm` size classes do not reach this button, so v1 renders it content-sized at 18x18 around\n * an unconstrained 18px icon rather than the 28x28-with-14px-icon that `icon-sm` specifies.\n * Standalone, both arms render 28x28 — see the `button/size-icon-sm` specimen.\n *\n * Rule 0 targets v1's OUTPUT, and here the output is what consumers lay out against: matching\n * `icon-sm` instead makes every date field 4px taller. So the size is released back to the content\n * and the icon left unconstrained, which is v1's mechanism and not just its numbers.\n */\n addonButton: {\n width: \"auto\",\n height: \"auto\",\n \"& svg\": { width: \"auto\", height: \"auto\" },\n },\n popoverTrigger: {\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: \"0%\",\n },\n triggerRoot: {\n display: \"flex\",\n alignItems: \"center\",\n ...shorthands.gap(tokens.spacingElement2),\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: \"0%\",\n height: \"1.5rem\",\n cursor: \"pointer\",\n },\n input: {\n width: \"5.5rem\",\n outlineStyle: \"none\",\n fontSize: tokens.textSm,\n color: tokens.grayA12,\n backgroundColor: \"transparent\",\n textAlign: \"center\",\n ...shorthands.border(\"0\"),\n ...shorthands.padding(\"0\"),\n \"::placeholder\": {\n color: tokens.grayA8,\n },\n \":disabled\": {\n cursor: \"not-allowed\",\n },\n },\n separator: {\n fontSize: tokens.textSm,\n color: tokens.gray9,\n flexShrink: 0,\n userSelect: \"none\",\n ...shorthands.padding(\"0\", \"0.125rem\"), // v1 px-0.5\n },\n popoverContent: {\n ...shorthands.overflow(\"hidden\"),\n },\n content: {\n display: \"flex\",\n flexDirection: \"row\",\n ...shorthands.gap(tokens.spacingGroup1),\n ...shorthands.padding(\"0.75rem\"), // v1 p-3 (0.75rem)\n },\n presets: {\n display: \"flex\",\n flexDirection: \"column\",\n ...shorthands.gap(tokens.spacingElement1),\n width: \"8rem\", // v1 w-32\n borderLeftWidth: \"1px\",\n borderLeftStyle: \"solid\",\n borderLeftColor: tokens.gray6,\n paddingLeft: \"0.75rem\", // v1 pl-3 (0.75rem)\n },\n presetPill: {\n alignSelf: \"flex-start\",\n },\n})\n\nconst RangeInputTrigger = React.forwardRef<\n HTMLDivElement,\n {\n startValue: string\n endValue: string\n startPlaceholder: string\n endPlaceholder: string\n disabled: boolean\n onStartChange: (e: React.ChangeEvent<HTMLInputElement>) => void\n onEndChange: (e: React.ChangeEvent<HTMLInputElement>) => void\n onStartBlur: () => void\n onEndBlur: () => void\n testId?: string\n inputAriaLabel?: string\n \"data-slot\"?: string\n } & React.HTMLAttributes<HTMLDivElement>\n>((props, ref) => {\n const {\n startValue,\n endValue,\n startPlaceholder,\n endPlaceholder,\n disabled,\n onStartChange,\n onEndChange,\n onStartBlur,\n onEndBlur,\n testId,\n inputAriaLabel,\n className,\n \"data-slot\": _dataSlot,\n ...divProps\n } = props\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n {...divProps}\n className={mergeClasses(styles.triggerRoot, className)}\n data-slot=\"date-range-input\"\n {...{ [SLOT_ATTR]: \"date-range-input\" }}\n >\n <input\n aria-label={inputAriaLabel || \"Start date\"}\n className={styles.input}\n data-slot=\"date-range-start-input\"\n {...{ [SLOT_ATTR]: \"date-range-start-input\" }}\n data-testid={testId ? `${testId}-start` : undefined}\n disabled={disabled}\n onBlur={onStartBlur}\n onChange={onStartChange}\n placeholder={startPlaceholder}\n value={startValue}\n />\n <span\n className={styles.separator}\n data-slot=\"date-range-separator\"\n {...{ [SLOT_ATTR]: \"date-range-separator\" }}\n >\n {\"\\u2013\"}\n </span>\n <input\n aria-label=\"End date\"\n className={styles.input}\n data-slot=\"date-range-end-input\"\n {...{ [SLOT_ATTR]: \"date-range-end-input\" }}\n data-testid={testId ? `${testId}-end` : undefined}\n disabled={disabled}\n onBlur={onEndBlur}\n onChange={onEndChange}\n placeholder={endPlaceholder}\n value={endValue}\n />\n </div>\n )\n})\n\nexport const DateRangePicker = React.forwardRef<\n HTMLDivElement,\n DateRangePickerProps\n>(function DateRangePicker(\n {\n value,\n onChange,\n onBlur,\n disabled = false,\n disablePast = false,\n label,\n error,\n startPlaceholder = \"dd/MM/yyyy\",\n endPlaceholder = \"dd/MM/yyyy\",\n format = DEFAULT_FORMAT,\n locale = \"de\",\n className,\n keyboardIcon,\n inputAriaLabel,\n openPickerAriaLabel = \"Open date picker\",\n previousMonthLabel = \"Previous month\",\n nextMonthLabel = \"Next month\",\n testId,\n currentTimeInTimezone,\n showWeekNumbers = false,\n presets,\n },\n ref\n) {\n const styles = useStyles()\n const [isOpen, setIsOpen] = React.useState(false)\n const [startInputValue, setStartInputValue] = React.useState(() =>\n value.start ? formatDateTimeDisplay(value.start, format, locale) : \"\"\n )\n const [endInputValue, setEndInputValue] = React.useState(() =>\n value.end ? formatDateTimeDisplay(value.end, format, locale) : \"\"\n )\n const [tempRange, setTempRange] = React.useState<DateRange>(value)\n const originalValueRef = React.useRef<DateRange>(value)\n\n React.useEffect(() => {\n setStartInputValue(\n value.start ? formatDateTimeDisplay(value.start, format, locale) : \"\"\n )\n setEndInputValue(\n value.end ? formatDateTimeDisplay(value.end, format, locale) : \"\"\n )\n setTempRange(value)\n }, [value, format, locale])\n\n React.useEffect(() => {\n if (isOpen) {\n originalValueRef.current = value\n setTempRange(value)\n }\n }, [isOpen, value])\n\n const handleStartInputChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const newValue = e.target.value\n\n setStartInputValue(newValue)\n\n const parsed = parseDateTimeInput(newValue, format, locale)\n\n if (parsed) {\n const newRange = { ...value, start: parsed }\n\n onChange(newRange)\n }\n },\n [onChange, value, format, locale]\n )\n\n const handleEndInputChange = React.useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const newValue = e.target.value\n\n setEndInputValue(newValue)\n\n const parsed = parseDateTimeInput(newValue, format, locale)\n\n if (parsed) {\n const newRange = { ...value, end: parsed }\n\n onChange(newRange)\n }\n },\n [onChange, value, format, locale]\n )\n\n const handleStartInputBlur = React.useCallback(() => {\n const parsed = parseDateTimeInput(startInputValue, format, locale)\n\n if (!parsed) {\n setStartInputValue(\n value.start ? formatDateTimeDisplay(value.start, format, locale) : \"\"\n )\n }\n onBlur?.()\n }, [startInputValue, value.start, format, locale, onBlur])\n\n const handleEndInputBlur = React.useCallback(() => {\n const parsed = parseDateTimeInput(endInputValue, format, locale)\n\n if (!parsed) {\n setEndInputValue(\n value.end ? formatDateTimeDisplay(value.end, format, locale) : \"\"\n )\n }\n onBlur?.()\n }, [endInputValue, value.end, format, locale, onBlur])\n\n const handleRangeChange = React.useCallback(\n (range: DateRange) => {\n setTempRange(range)\n setStartInputValue(\n range.start ? formatDateTimeDisplay(range.start, format, locale) : \"\"\n )\n setEndInputValue(\n range.end ? formatDateTimeDisplay(range.end, format, locale) : \"\"\n )\n },\n [format, locale]\n )\n\n const handleRangeComplete = React.useCallback(\n (range: DateRange) => {\n onChange(range)\n setTempRange(range)\n setStartInputValue(\n range.start ? formatDateTimeDisplay(range.start, format, locale) : \"\"\n )\n setEndInputValue(\n range.end ? formatDateTimeDisplay(range.end, format, locale) : \"\"\n )\n // Small delay to allow the user to see the selection before closing\n setTimeout(() => {\n setIsOpen(false)\n }, 150)\n },\n [onChange, format, locale]\n )\n\n const handlePopoverOpenChange = React.useCallback(\n (open: boolean) => {\n if (!open) {\n // If closing without a complete selection, revert\n if (!tempRange.start || !tempRange.end) {\n setTempRange(originalValueRef.current)\n setStartInputValue(\n originalValueRef.current.start\n ? formatDateTimeDisplay(\n originalValueRef.current.start,\n format,\n locale\n )\n : \"\"\n )\n setEndInputValue(\n originalValueRef.current.end\n ? formatDateTimeDisplay(\n originalValueRef.current.end,\n format,\n locale\n )\n : \"\"\n )\n }\n }\n setIsOpen(open)\n },\n [tempRange, format, locale]\n )\n\n const IconComponent = keyboardIcon || <CalendarIcon />\n const fieldVariant = error ? \"destructive\" : \"highlight\"\n\n return (\n <Field\n className={mergeClasses(styles.root, className)}\n data-slot=\"daterangepicker\"\n {...{ [SLOT_ATTR]: \"daterangepicker\" }}\n ref={ref}\n variant={fieldVariant}\n >\n {label && <FieldLabel>{label}</FieldLabel>}\n <Popover modal onOpenChange={handlePopoverOpenChange} open={isOpen}>\n <FieldInputGroup className={styles.inputGroup}>\n <PopoverTrigger asChild className={styles.popoverTrigger}>\n <RangeInputTrigger\n disabled={disabled}\n endPlaceholder={endPlaceholder}\n endValue={endInputValue}\n inputAriaLabel={inputAriaLabel}\n onEndBlur={handleEndInputBlur}\n onEndChange={handleEndInputChange}\n onStartBlur={handleStartInputBlur}\n onStartChange={handleStartInputChange}\n startPlaceholder={startPlaceholder}\n startValue={startInputValue}\n testId={testId}\n />\n </PopoverTrigger>\n <FieldGroupAddon align=\"end\">\n <Button\n aria-label={openPickerAriaLabel}\n disabled={disabled}\n onClick={() => setIsOpen(true)}\n className={styles.addonButton}\n size=\"icon-sm\"\n variant=\"tertiary\"\n >\n {IconComponent}\n </Button>\n </FieldGroupAddon>\n </FieldInputGroup>\n <PopoverContent\n align=\"start\"\n className={styles.popoverContent}\n flush\n side=\"bottom\"\n sideOffset={4}\n >\n <div\n className={styles.content}\n data-slot=\"daterangepicker-content\"\n {...{ [SLOT_ATTR]: \"daterangepicker-content\" }}\n >\n <RangeCalendar\n currentTimeInTimezone={currentTimeInTimezone}\n disablePast={disablePast}\n locale={locale}\n nextMonthLabel={nextMonthLabel}\n onChange={handleRangeChange}\n onRangeComplete={handleRangeComplete}\n previousMonthLabel={previousMonthLabel}\n showWeekNumbers={showWeekNumbers}\n value={tempRange}\n />\n {presets && presets.length > 0 && (\n <aside\n className={styles.presets}\n data-slot=\"daterangepicker-presets\"\n {...{ [SLOT_ATTR]: \"daterangepicker-presets\" }}\n >\n {presets.map((preset) => (\n <Pill\n className={styles.presetPill}\n data-slot=\"daterangepicker-preset\"\n {...{ [SLOT_ATTR]: \"daterangepicker-preset\" }}\n key={preset.label}\n onClick={() => {\n const range = preset.getValue()\n\n handleRangeComplete(range)\n }}\n variant=\"surface\"\n >\n {preset.label}\n </Pill>\n ))}\n </aside>\n )}\n </div>\n </PopoverContent>\n </Popover>\n {error && <FieldError>{error}</FieldError>}\n </Field>\n )\n})\n\nexport { RangeCalendar }\nexport type { RangeCalendarProps, DateRange, DateTimePickerLocale }\n"],"names":["CalendarIcon","props","jsx","DEFAULT_FORMAT","useStyles","makeVoltStyles","shorthands","tokens.spacingElement2","tokens.textSm","tokens.grayA12","tokens.grayA8","tokens.gray9","tokens.spacingGroup1","tokens.spacingElement1","tokens.gray6","RangeInputTrigger","React","ref","startValue","endValue","startPlaceholder","endPlaceholder","disabled","onStartChange","onEndChange","onStartBlur","onEndBlur","testId","inputAriaLabel","className","_dataSlot","divProps","styles","jsxs","mergeClasses","SLOT_ATTR","DateRangePicker","value","onChange","onBlur","disablePast","label","error","format","locale","keyboardIcon","openPickerAriaLabel","previousMonthLabel","nextMonthLabel","currentTimeInTimezone","showWeekNumbers","presets","isOpen","setIsOpen","startInputValue","setStartInputValue","formatDateTimeDisplay","endInputValue","setEndInputValue","tempRange","setTempRange","originalValueRef","handleStartInputChange","e","newValue","parsed","parseDateTimeInput","newRange","handleEndInputChange","handleStartInputBlur","handleEndInputBlur","handleRangeChange","range","handleRangeComplete","handlePopoverOpenChange","open","IconComponent","fieldVariant","Field","FieldLabel","Popover","FieldInputGroup","PopoverTrigger","FieldGroupAddon","Button","PopoverContent","RangeCalendar","preset","createElement","Pill","FieldError"],"mappings":";;;;;;;;;;;;;;AAyBA,MAAMA,KAAe,CAACC,MACpB,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,OAAM;AAAA,IACN,MAAK;AAAA,IACJ,GAAGD;AAAA,IAEJ,UAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,yyBAAA,CAAyyB;AAAA,EAAA;AACnzB,GAGIC,KAAiB,cA+BjBC,IAAYC,GAAe;AAAA,EAC/B,MAAM;AAAA,IACJ,OAAO;AAAA,EAAA;AAAA,EAET,YAAY;AAAA,IACV,OAAO;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAYT,aAAa;AAAA,IACX,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,SAAS,EAAE,OAAO,QAAQ,QAAQ,OAAA;AAAA,EAAO;AAAA,EAE3C,gBAAgB;AAAA,IACd,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,EAAA;AAAA,EAEb,aAAa;AAAA,IACX,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,GAAGC,EAAW,IAAIC,EAAsB;AAAA,IACxC,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,Q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,IAAA;AAAA,EAAA;AAGnC,CAAC;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { DateRange, DateTimePickerLocale } from "./date-range-picker-utils";
|
|
3
|
+
export type RangeCalendarProps = {
|
|
4
|
+
value: DateRange;
|
|
5
|
+
onChange: (range: DateRange) => void;
|
|
6
|
+
onRangeComplete?: (range: DateRange) => void;
|
|
7
|
+
disablePast?: boolean;
|
|
8
|
+
locale?: DateTimePickerLocale;
|
|
9
|
+
previousMonthLabel?: string;
|
|
10
|
+
nextMonthLabel?: string;
|
|
11
|
+
currentTimeInTimezone?: Date;
|
|
12
|
+
showWeekNumbers?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const RangeCalendar: React.ForwardRefExoticComponent<RangeCalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { jsxs as L, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { shorthands as b } from "../../node_modules/@griffel/core/src/index.js";
|
|
4
|
+
import { Calendar as M } from "../date-time-picker/calendar.js";
|
|
5
|
+
import { SLOT_ATTR as h } from "../../renderer/contract.js";
|
|
6
|
+
import { makeVoltStyles as z } from "../../styles/make-styles.js";
|
|
7
|
+
import { spacingLayout1 as A } from "../../tokens/index.js";
|
|
8
|
+
import { normalizeRange as T } from "../date-time-picker/date-time-picker-utils.js";
|
|
9
|
+
import { mergeClasses as _ } from "../../node_modules/@griffel/core/src/mergeClasses.js";
|
|
10
|
+
import { startOfDay as N } from "../../node_modules/date-fns/startOfDay.js";
|
|
11
|
+
import { addMonths as q } from "../../node_modules/date-fns/addMonths.js";
|
|
12
|
+
import { subMonths as F } from "../../node_modules/date-fns/subMonths.js";
|
|
13
|
+
const G = z({
|
|
14
|
+
root: {
|
|
15
|
+
display: "flex",
|
|
16
|
+
flexDirection: "row",
|
|
17
|
+
...b.gap(A)
|
|
18
|
+
// v1 gap-6 (1.5rem)
|
|
19
|
+
},
|
|
20
|
+
panel: {
|
|
21
|
+
width: "280px",
|
|
22
|
+
flexShrink: 0
|
|
23
|
+
}
|
|
24
|
+
}), ae = e.forwardRef(function({
|
|
25
|
+
value: t,
|
|
26
|
+
onChange: i,
|
|
27
|
+
onRangeComplete: r,
|
|
28
|
+
disablePast: D = !1,
|
|
29
|
+
locale: u = "de",
|
|
30
|
+
previousMonthLabel: g = "Previous month",
|
|
31
|
+
nextMonthLabel: p = "Next month",
|
|
32
|
+
currentTimeInTimezone: w,
|
|
33
|
+
showWeekNumbers: y = !1,
|
|
34
|
+
className: R
|
|
35
|
+
}, P) {
|
|
36
|
+
const d = G(), [c, S] = e.useState(() => t.start ? N(t.start) : N(/* @__PURE__ */ new Date())), [n, C] = e.useState("idle"), [s, f] = e.useState(t.start), [V, m] = e.useState(t.end), [k, x] = e.useState(null);
|
|
37
|
+
e.useEffect(() => {
|
|
38
|
+
n === "idle" && (f(t.start), m(t.end));
|
|
39
|
+
}, [t.start, t.end, n]);
|
|
40
|
+
const j = e.useMemo(
|
|
41
|
+
() => q(c, 1),
|
|
42
|
+
[c]
|
|
43
|
+
), O = e.useCallback(
|
|
44
|
+
(a) => {
|
|
45
|
+
if (n === "idle")
|
|
46
|
+
f(a), m(null), C("selectingEnd"), i({ start: a, end: null });
|
|
47
|
+
else {
|
|
48
|
+
const o = T(s, a);
|
|
49
|
+
f(o.start), m(o.end), C("idle"), x(null), i(o), r == null || r(o);
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
[n, s, i, r]
|
|
53
|
+
), E = e.useCallback(
|
|
54
|
+
(a) => {
|
|
55
|
+
n === "selectingEnd" && x(a);
|
|
56
|
+
},
|
|
57
|
+
[n]
|
|
58
|
+
), v = e.useCallback((a) => {
|
|
59
|
+
S(a);
|
|
60
|
+
}, []), B = e.useCallback((a) => {
|
|
61
|
+
S(F(a));
|
|
62
|
+
}, []), H = e.useMemo(
|
|
63
|
+
() => t.start || /* @__PURE__ */ new Date(),
|
|
64
|
+
[t.start]
|
|
65
|
+
);
|
|
66
|
+
return /* @__PURE__ */ L(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
className: _(d.root, R),
|
|
70
|
+
"data-slot": "range-calendar",
|
|
71
|
+
[h]: "range-calendar",
|
|
72
|
+
ref: P,
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ l(
|
|
75
|
+
"div",
|
|
76
|
+
{
|
|
77
|
+
className: d.panel,
|
|
78
|
+
"data-slot": "range-calendar-panel",
|
|
79
|
+
[h]: "range-calendar-panel",
|
|
80
|
+
children: /* @__PURE__ */ l(
|
|
81
|
+
M,
|
|
82
|
+
{
|
|
83
|
+
controlledViewDate: c,
|
|
84
|
+
currentTimeInTimezone: w,
|
|
85
|
+
disablePast: D,
|
|
86
|
+
hideOutOfMonthDays: !0,
|
|
87
|
+
hoveredDate: k,
|
|
88
|
+
locale: u,
|
|
89
|
+
nextMonthLabel: p,
|
|
90
|
+
onChange: () => {
|
|
91
|
+
},
|
|
92
|
+
onDayClick: O,
|
|
93
|
+
onDayHover: E,
|
|
94
|
+
onViewDateChange: v,
|
|
95
|
+
previousMonthLabel: g,
|
|
96
|
+
rangeEnd: V,
|
|
97
|
+
rangeStart: s,
|
|
98
|
+
showNextButton: !1,
|
|
99
|
+
showWeekNumbers: y,
|
|
100
|
+
value: H
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ l(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: d.panel,
|
|
109
|
+
"data-slot": "range-calendar-panel",
|
|
110
|
+
[h]: "range-calendar-panel",
|
|
111
|
+
children: /* @__PURE__ */ l(
|
|
112
|
+
M,
|
|
113
|
+
{
|
|
114
|
+
controlledViewDate: j,
|
|
115
|
+
currentTimeInTimezone: w,
|
|
116
|
+
disablePast: D,
|
|
117
|
+
hideOutOfMonthDays: !0,
|
|
118
|
+
hoveredDate: k,
|
|
119
|
+
locale: u,
|
|
120
|
+
nextMonthLabel: p,
|
|
121
|
+
onChange: () => {
|
|
122
|
+
},
|
|
123
|
+
onDayClick: O,
|
|
124
|
+
onDayHover: E,
|
|
125
|
+
onViewDateChange: B,
|
|
126
|
+
previousMonthLabel: g,
|
|
127
|
+
rangeEnd: V,
|
|
128
|
+
rangeStart: s,
|
|
129
|
+
showPreviousButton: !1,
|
|
130
|
+
showWeekNumbers: y,
|
|
131
|
+
value: H
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
});
|
|
140
|
+
export {
|
|
141
|
+
ae as RangeCalendar
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=range-calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-calendar.js","sources":["../../../src/components/date-range-picker/range-calendar.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { addMonths, subMonths, startOfDay } from \"date-fns\"\nimport { mergeClasses, shorthands } from \"@griffel/core\"\n\nimport { Calendar } from \"../date-time-picker/calendar\"\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\n\nimport type { DateRange, DateTimePickerLocale } from \"./date-range-picker-utils\"\nimport { normalizeRange } from \"./date-range-picker-utils\"\n\ntype SelectionPhase = \"idle\" | \"selectingEnd\"\n\nexport type RangeCalendarProps = {\n value: DateRange\n onChange: (range: DateRange) => void\n onRangeComplete?: (range: DateRange) => void\n disablePast?: boolean\n locale?: DateTimePickerLocale\n previousMonthLabel?: string\n nextMonthLabel?: string\n currentTimeInTimezone?: Date\n showWeekNumbers?: boolean\n className?: string\n}\n\nconst useStyles = makeVoltStyles({\n root: {\n display: \"flex\",\n flexDirection: \"row\",\n ...shorthands.gap(tokens.spacingLayout1), // v1 gap-6 (1.5rem)\n },\n panel: {\n width: \"280px\",\n flexShrink: 0,\n },\n})\n\nexport const RangeCalendar = React.forwardRef<\n HTMLDivElement,\n RangeCalendarProps\n>(function RangeCalendar(\n {\n value,\n onChange,\n onRangeComplete,\n disablePast = false,\n locale = \"de\",\n previousMonthLabel = \"Previous month\",\n nextMonthLabel = \"Next month\",\n currentTimeInTimezone,\n showWeekNumbers = false,\n className,\n },\n ref\n) {\n const styles = useStyles()\n const [leftViewDate, setLeftViewDate] = React.useState(() => {\n if (value.start) return startOfDay(value.start)\n\n return startOfDay(new Date())\n })\n\n const [selectionPhase, setSelectionPhase] =\n React.useState<SelectionPhase>(\"idle\")\n const [rangeStart, setRangeStart] = React.useState<Date | null>(value.start)\n const [rangeEnd, setRangeEnd] = React.useState<Date | null>(value.end)\n const [hoveredDate, setHoveredDate] = React.useState<Date | null>(null)\n\n React.useEffect(() => {\n if (selectionPhase === \"idle\") {\n setRangeStart(value.start)\n setRangeEnd(value.end)\n }\n }, [value.start, value.end, selectionPhase])\n\n const rightViewDate = React.useMemo(\n () => addMonths(leftViewDate, 1),\n [leftViewDate]\n )\n\n // Shared day click handler (range state machine)\n const handleDayClick = React.useCallback(\n (day: Date) => {\n if (selectionPhase === \"idle\") {\n setRangeStart(day)\n setRangeEnd(null)\n setSelectionPhase(\"selectingEnd\")\n onChange({ start: day, end: null })\n } else {\n const normalized = normalizeRange(rangeStart!, day)\n\n setRangeStart(normalized.start)\n setRangeEnd(normalized.end)\n setSelectionPhase(\"idle\")\n setHoveredDate(null)\n onChange(normalized)\n onRangeComplete?.(normalized)\n }\n },\n [selectionPhase, rangeStart, onChange, onRangeComplete]\n )\n\n // Shared hover handler\n const handleDayHover = React.useCallback(\n (day: Date | null) => {\n if (selectionPhase === \"selectingEnd\") {\n setHoveredDate(day)\n }\n },\n [selectionPhase]\n )\n\n // Left panel navigation\n const handleLeftViewDateChange = React.useCallback((date: Date) => {\n setLeftViewDate(date)\n }, [])\n\n // Right panel navigation: when the right panel moves, shift leftViewDate accordingly\n const handleRightViewDateChange = React.useCallback((date: Date) => {\n // Right panel changed its viewDate, so left should be one month before\n setLeftViewDate(subMonths(date, 1))\n }, [])\n\n // Dummy value for Calendar (required prop but unused in range mode)\n const dummyDate = React.useMemo(\n () => value.start || new Date(),\n [value.start]\n )\n\n return (\n <div\n className={mergeClasses(styles.root, className)}\n data-slot=\"range-calendar\"\n {...{ [SLOT_ATTR]: \"range-calendar\" }}\n ref={ref}\n >\n {/* Left panel */}\n <div\n className={styles.panel}\n data-slot=\"range-calendar-panel\"\n {...{ [SLOT_ATTR]: \"range-calendar-panel\" }}\n >\n <Calendar\n controlledViewDate={leftViewDate}\n currentTimeInTimezone={currentTimeInTimezone}\n disablePast={disablePast}\n hideOutOfMonthDays\n hoveredDate={hoveredDate}\n locale={locale}\n nextMonthLabel={nextMonthLabel}\n onChange={() => {}}\n onDayClick={handleDayClick}\n onDayHover={handleDayHover}\n onViewDateChange={handleLeftViewDateChange}\n previousMonthLabel={previousMonthLabel}\n rangeEnd={rangeEnd}\n rangeStart={rangeStart}\n showNextButton={false}\n showWeekNumbers={showWeekNumbers}\n value={dummyDate}\n />\n </div>\n\n {/* Right panel */}\n <div\n className={styles.panel}\n data-slot=\"range-calendar-panel\"\n {...{ [SLOT_ATTR]: \"range-calendar-panel\" }}\n >\n <Calendar\n controlledViewDate={rightViewDate}\n currentTimeInTimezone={currentTimeInTimezone}\n disablePast={disablePast}\n hideOutOfMonthDays\n hoveredDate={hoveredDate}\n locale={locale}\n nextMonthLabel={nextMonthLabel}\n onChange={() => {}}\n onDayClick={handleDayClick}\n onDayHover={handleDayHover}\n onViewDateChange={handleRightViewDateChange}\n previousMonthLabel={previousMonthLabel}\n rangeEnd={rangeEnd}\n rangeStart={rangeStart}\n showPreviousButton={false}\n showWeekNumbers={showWeekNumbers}\n value={dummyDate}\n />\n </div>\n </div>\n )\n})\n"],"names":["useStyles","makeVoltStyles","shorthands","tokens.spacingLayout1","RangeCalendar","React","value","onChange","onRangeComplete","disablePast","locale","previousMonthLabel","nextMonthLabel","currentTimeInTimezone","showWeekNumbers","className","ref","styles","leftViewDate","setLeftViewDate","startOfDay","selectionPhase","setSelectionPhase","rangeStart","setRangeStart","rangeEnd","setRangeEnd","hoveredDate","setHoveredDate","rightViewDate","addMonths","handleDayClick","day","normalized","normalizeRange","handleDayHover","handleLeftViewDateChange","date","handleRightViewDateChange","subMonths","dummyDate","jsxs","mergeClasses","SLOT_ATTR","jsx","Calendar"],"mappings":";;;;;;;;;;;;AA2BA,MAAMA,IAAYC,EAAe;AAAA,EAC/B,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,eAAe;AAAA,IACf,GAAGC,EAAW,IAAIC,CAAqB;AAAA;AAAA,EAAA;AAAA,EAEzC,OAAO;AAAA,IACL,OAAO;AAAA,IACP,YAAY;AAAA,EAAA;AAEhB,CAAC,GAEYC,KAAgBC,EAAM,WAGjC,SACA;AAAA,EACE,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,QAAAC,IAAS;AAAA,EACT,oBAAAC,IAAqB;AAAA,EACrB,gBAAAC,IAAiB;AAAA,EACjB,uBAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,WAAAC;AACF,GACAC,GACA;AACA,QAAMC,IAASjB,EAAA,GACT,CAACkB,GAAcC,CAAe,IAAId,EAAM,SAAS,MACjDC,EAAM,QAAcc,EAAWd,EAAM,KAAK,IAEvCc,EAAW,oBAAI,MAAM,CAC7B,GAEK,CAACC,GAAgBC,CAAiB,IACtCjB,EAAM,SAAyB,MAAM,GACjC,CAACkB,GAAYC,CAAa,IAAInB,EAAM,SAAsBC,EAAM,KAAK,GACrE,CAACmB,GAAUC,CAAW,IAAIrB,EAAM,SAAsBC,EAAM,GAAG,GAC/D,CAACqB,GAAaC,CAAc,IAAIvB,EAAM,SAAsB,IAAI;AAEtE,EAAAA,E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AAAF;AAAA,gBACA,oBAAoB;AAAA,gBACpB,iBAAAT;AAAA,gBACA,OAAO0B;AAAA,cAAA;AAAA,YAAA;AAAA,UACT;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN,CAAC;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { DateTimePickerLocale } from "./date-time-picker-utils";
|
|
3
|
+
export type CalendarView = "days" | "months" | "years";
|
|
4
|
+
export type CalendarProps = {
|
|
5
|
+
value: Date | null;
|
|
6
|
+
onChange: (date: Date) => void;
|
|
7
|
+
onDateSelect?: () => void;
|
|
8
|
+
disablePast?: boolean;
|
|
9
|
+
locale?: DateTimePickerLocale;
|
|
10
|
+
previousMonthLabel?: string;
|
|
11
|
+
nextMonthLabel?: string;
|
|
12
|
+
showTodayButton?: boolean;
|
|
13
|
+
todayLabel?: string;
|
|
14
|
+
currentTimeInTimezone?: Date;
|
|
15
|
+
showWeekNumbers?: boolean;
|
|
16
|
+
rangeStart?: Date | null;
|
|
17
|
+
rangeEnd?: Date | null;
|
|
18
|
+
hoveredDate?: Date | null;
|
|
19
|
+
onDayHover?: (day: Date | null) => void;
|
|
20
|
+
onDayClick?: (day: Date) => void;
|
|
21
|
+
showPreviousButton?: boolean;
|
|
22
|
+
showNextButton?: boolean;
|
|
23
|
+
controlledViewDate?: Date;
|
|
24
|
+
onViewDateChange?: (date: Date) => void;
|
|
25
|
+
hideOutOfMonthDays?: boolean;
|
|
26
|
+
className?: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
|