@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,482 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { shorthands as r } from "../../node_modules/@griffel/core/src/index.js";
|
|
4
|
+
import { SLOT_ATTR as c } from "../../renderer/contract.js";
|
|
5
|
+
import { makeVoltStyles as O } from "../../styles/make-styles.js";
|
|
6
|
+
import { fontWeightNormal as x, textSm as w, grayA11 as R, grayA8 as L, grayA12 as F, textXs as v, errorA11 as N, errorA8 as G, errorA4 as V, semErrorSoft as A, accentA8 as S, grayA3 as E, accentA4 as W, accentA3 as P, grayA4 as $, spacingElement3 as k, spacingElement2 as y, spacingElement1 as z, spacingLayout2 as j, radiusLg as M } from "../../tokens/index.js";
|
|
7
|
+
import { mergeClasses as f } from "../../node_modules/@griffel/core/src/mergeClasses.js";
|
|
8
|
+
const X = "div", q = "label", U = "input", Y = "p", _ = "div", D = a.createContext(null), I = () => {
|
|
9
|
+
const l = a.useContext(D);
|
|
10
|
+
if (!l)
|
|
11
|
+
throw new Error("FieldInput must be used within a Field component");
|
|
12
|
+
return l;
|
|
13
|
+
}, oe = () => a.useContext(D), p = O({
|
|
14
|
+
root: {
|
|
15
|
+
position: "relative",
|
|
16
|
+
display: "flex",
|
|
17
|
+
flexDirection: "column",
|
|
18
|
+
width: "100%",
|
|
19
|
+
paddingTop: y,
|
|
20
|
+
paddingBottom: y,
|
|
21
|
+
// v1 uses Tailwind's `px-3` = 0.75rem here. The semantic spacing scale has NO 0.75rem
|
|
22
|
+
// token -- it runs 0.25/0.5/0.5/1/1.5/2 -- so this is a literal by necessity.
|
|
23
|
+
// `spacingGroup1` is 0.5rem and reaching for it by name (as three components did)
|
|
24
|
+
// silently loses 4px per side. See STATUS: the scale gap is the root cause.
|
|
25
|
+
paddingLeft: k,
|
|
26
|
+
paddingRight: k,
|
|
27
|
+
...r.gap(z),
|
|
28
|
+
...r.borderRadius(M),
|
|
29
|
+
transitionProperty: "all",
|
|
30
|
+
transitionDuration: "75ms",
|
|
31
|
+
outlineOffset: "2px",
|
|
32
|
+
outlineWidth: "2px",
|
|
33
|
+
outlineStyle: "none",
|
|
34
|
+
"&[data-focused='true'], &[data-focus-visible]": {
|
|
35
|
+
outlineStyle: "solid"
|
|
36
|
+
},
|
|
37
|
+
"&[data-invalid]": {
|
|
38
|
+
backgroundColor: A,
|
|
39
|
+
outlineColor: G
|
|
40
|
+
},
|
|
41
|
+
// Label's disabled styling, declared here because Field owns the elements these selectors are
|
|
42
|
+
// rooted at. On Label they were written as "[data-disabled] &", ":disabled ~ &" and
|
|
43
|
+
// "[data-disabled] ~ &"; Griffel does not substitute `&` in that position and emits
|
|
44
|
+
// `.hash<selector> .hash`, which never matches, so a label in a disabled field never dimmed.
|
|
45
|
+
// See src/ancestor-selector.test.ts.
|
|
46
|
+
[`&[data-disabled] [${c}="label"]`]: {
|
|
47
|
+
pointerEvents: "none",
|
|
48
|
+
opacity: 0.5
|
|
49
|
+
},
|
|
50
|
+
[`& :disabled ~ [${c}="label"]`]: {
|
|
51
|
+
cursor: "not-allowed",
|
|
52
|
+
opacity: 0.5
|
|
53
|
+
},
|
|
54
|
+
[`& [data-disabled] ~ [${c}="label"]`]: {
|
|
55
|
+
cursor: "not-allowed",
|
|
56
|
+
opacity: 0.5
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
rootDefault: {
|
|
60
|
+
backgroundColor: E,
|
|
61
|
+
":hover": {
|
|
62
|
+
backgroundColor: $
|
|
63
|
+
},
|
|
64
|
+
"&[data-focused='true'], &[data-focus-visible]": {
|
|
65
|
+
outlineColor: S
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
rootHighlight: {
|
|
69
|
+
backgroundColor: P,
|
|
70
|
+
":hover": {
|
|
71
|
+
backgroundColor: W
|
|
72
|
+
},
|
|
73
|
+
"&[data-focused='true'], &[data-focus-visible]": {
|
|
74
|
+
outlineColor: S
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
rootReadonly: {
|
|
78
|
+
backgroundColor: E,
|
|
79
|
+
"&[data-focused='true'], &[data-focus-visible]": {
|
|
80
|
+
outlineColor: S
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
rootDestructive: {
|
|
84
|
+
backgroundColor: A,
|
|
85
|
+
":hover": {
|
|
86
|
+
backgroundColor: V
|
|
87
|
+
},
|
|
88
|
+
"&[data-focused='true'], &[data-focus-visible]": {
|
|
89
|
+
outlineColor: G
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
fieldSet: {
|
|
93
|
+
display: "flex",
|
|
94
|
+
flexDirection: "column",
|
|
95
|
+
...r.gap(j),
|
|
96
|
+
...r.border("0"),
|
|
97
|
+
...r.padding(0),
|
|
98
|
+
...r.margin(0)
|
|
99
|
+
},
|
|
100
|
+
fieldGroup: {
|
|
101
|
+
display: "flex",
|
|
102
|
+
width: "100%",
|
|
103
|
+
...r.gap(y)
|
|
104
|
+
},
|
|
105
|
+
fieldGroupColumn: {
|
|
106
|
+
flexDirection: "column"
|
|
107
|
+
},
|
|
108
|
+
fieldGroupRow: {
|
|
109
|
+
flexDirection: "row"
|
|
110
|
+
},
|
|
111
|
+
fieldContent: {
|
|
112
|
+
display: "flex",
|
|
113
|
+
flexGrow: 1,
|
|
114
|
+
flexShrink: 1,
|
|
115
|
+
flexBasis: "0%",
|
|
116
|
+
flexDirection: "column",
|
|
117
|
+
...r.gap(y),
|
|
118
|
+
lineHeight: "1.375"
|
|
119
|
+
},
|
|
120
|
+
label: {
|
|
121
|
+
minHeight: "1rem",
|
|
122
|
+
fontSize: v,
|
|
123
|
+
display: "flex",
|
|
124
|
+
width: "fit-content",
|
|
125
|
+
...r.gap(y),
|
|
126
|
+
cursor: "default",
|
|
127
|
+
color: F,
|
|
128
|
+
"&[data-disabled]": {
|
|
129
|
+
opacity: 0.5
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
labelContent: {
|
|
133
|
+
display: "inline-flex",
|
|
134
|
+
alignItems: "center",
|
|
135
|
+
...r.gap(z),
|
|
136
|
+
transitionProperty: "opacity",
|
|
137
|
+
transitionDuration: "150ms"
|
|
138
|
+
},
|
|
139
|
+
labelContentHover: {
|
|
140
|
+
width: 0,
|
|
141
|
+
height: 0,
|
|
142
|
+
overflowX: "visible",
|
|
143
|
+
overflowY: "visible",
|
|
144
|
+
opacity: 0,
|
|
145
|
+
pointerEvents: "none"
|
|
146
|
+
},
|
|
147
|
+
description: {
|
|
148
|
+
fontSize: v,
|
|
149
|
+
lineHeight: "1.5",
|
|
150
|
+
fontWeight: x,
|
|
151
|
+
...r.margin(0),
|
|
152
|
+
"& a": {
|
|
153
|
+
textDecorationLine: "underline",
|
|
154
|
+
textUnderlineOffset: "4px"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
descriptionDefault: {
|
|
158
|
+
color: F
|
|
159
|
+
},
|
|
160
|
+
descriptionHelper: {
|
|
161
|
+
color: R
|
|
162
|
+
},
|
|
163
|
+
error: {
|
|
164
|
+
color: N,
|
|
165
|
+
fontSize: v,
|
|
166
|
+
fontWeight: x
|
|
167
|
+
},
|
|
168
|
+
errorList: {
|
|
169
|
+
display: "flex",
|
|
170
|
+
flexDirection: "column",
|
|
171
|
+
...r.margin(0),
|
|
172
|
+
paddingLeft: "1.25rem",
|
|
173
|
+
listStyleType: "disc"
|
|
174
|
+
},
|
|
175
|
+
errorListItem: {
|
|
176
|
+
color: N,
|
|
177
|
+
fontSize: v,
|
|
178
|
+
fontWeight: x,
|
|
179
|
+
marginTop: "0.25rem",
|
|
180
|
+
marginBottom: "0.25rem"
|
|
181
|
+
},
|
|
182
|
+
input: {
|
|
183
|
+
width: "100%",
|
|
184
|
+
height: "1.5rem",
|
|
185
|
+
outlineStyle: "none",
|
|
186
|
+
fontSize: w,
|
|
187
|
+
color: F,
|
|
188
|
+
backgroundColor: "transparent",
|
|
189
|
+
...r.border("0"),
|
|
190
|
+
...r.padding(0),
|
|
191
|
+
"::placeholder": {
|
|
192
|
+
color: L
|
|
193
|
+
},
|
|
194
|
+
":disabled": {
|
|
195
|
+
cursor: "not-allowed"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
inputGroup: {
|
|
199
|
+
display: "flex",
|
|
200
|
+
alignItems: "center",
|
|
201
|
+
...r.gap(z),
|
|
202
|
+
width: "100%"
|
|
203
|
+
},
|
|
204
|
+
textarea: {
|
|
205
|
+
width: "100%",
|
|
206
|
+
outlineStyle: "none",
|
|
207
|
+
fontSize: w,
|
|
208
|
+
color: F,
|
|
209
|
+
backgroundColor: "transparent",
|
|
210
|
+
...r.border("0"),
|
|
211
|
+
...r.padding(0),
|
|
212
|
+
"::placeholder": {
|
|
213
|
+
color: L
|
|
214
|
+
},
|
|
215
|
+
":disabled": {
|
|
216
|
+
cursor: "not-allowed"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
resizeNone: {
|
|
220
|
+
resize: "none"
|
|
221
|
+
},
|
|
222
|
+
resizeVertical: {
|
|
223
|
+
resize: "vertical"
|
|
224
|
+
},
|
|
225
|
+
resizeHorizontal: {
|
|
226
|
+
resize: "horizontal"
|
|
227
|
+
},
|
|
228
|
+
addon: {
|
|
229
|
+
color: R,
|
|
230
|
+
display: "flex",
|
|
231
|
+
height: "auto",
|
|
232
|
+
cursor: "text",
|
|
233
|
+
whiteSpace: "nowrap",
|
|
234
|
+
alignItems: "center",
|
|
235
|
+
justifyContent: "center",
|
|
236
|
+
...r.gap(y),
|
|
237
|
+
fontSize: w,
|
|
238
|
+
fontWeight: x,
|
|
239
|
+
userSelect: "none"
|
|
240
|
+
},
|
|
241
|
+
addonStart: {
|
|
242
|
+
order: -1
|
|
243
|
+
},
|
|
244
|
+
addonEnd: {
|
|
245
|
+
order: 1
|
|
246
|
+
}
|
|
247
|
+
}), ne = ({
|
|
248
|
+
variant: l = "default"
|
|
249
|
+
} = {}) => l, ie = a.forwardRef(
|
|
250
|
+
function({
|
|
251
|
+
className: i,
|
|
252
|
+
variant: e = "default",
|
|
253
|
+
children: t,
|
|
254
|
+
onFocusCapture: o,
|
|
255
|
+
onBlurCapture: n,
|
|
256
|
+
...s
|
|
257
|
+
}, m) {
|
|
258
|
+
const u = p(), h = a.useRef(null), [g, b] = a.useState(!1), H = (C) => {
|
|
259
|
+
b(!0), o == null || o(C);
|
|
260
|
+
}, T = (C) => {
|
|
261
|
+
b(!1), n == null || n(C);
|
|
262
|
+
}, B = e === "highlight" ? u.rootHighlight : e === "readonly" ? u.rootReadonly : e === "destructive" ? u.rootDestructive : u.rootDefault;
|
|
263
|
+
return /* @__PURE__ */ d(D.Provider, { value: { inputRef: h }, children: /* @__PURE__ */ d(
|
|
264
|
+
X,
|
|
265
|
+
{
|
|
266
|
+
ref: m,
|
|
267
|
+
role: "group",
|
|
268
|
+
"data-slot": "field",
|
|
269
|
+
[c]: "field",
|
|
270
|
+
"data-focused": g ? "true" : "false",
|
|
271
|
+
className: f(u.root, B, i),
|
|
272
|
+
onFocusCapture: H,
|
|
273
|
+
onBlurCapture: T,
|
|
274
|
+
...s,
|
|
275
|
+
children: t
|
|
276
|
+
}
|
|
277
|
+
) });
|
|
278
|
+
}
|
|
279
|
+
), le = a.forwardRef(
|
|
280
|
+
function({ className: i, ...e }, t) {
|
|
281
|
+
const o = p();
|
|
282
|
+
return /* @__PURE__ */ d(
|
|
283
|
+
"fieldset",
|
|
284
|
+
{
|
|
285
|
+
ref: t,
|
|
286
|
+
"data-slot": "field-set",
|
|
287
|
+
[c]: "field-set",
|
|
288
|
+
className: f(o.fieldSet, i),
|
|
289
|
+
...e
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
), re = a.forwardRef(
|
|
294
|
+
function({ className: i, direction: e = "column", ...t }, o) {
|
|
295
|
+
const n = p();
|
|
296
|
+
return /* @__PURE__ */ d(
|
|
297
|
+
"div",
|
|
298
|
+
{
|
|
299
|
+
ref: o,
|
|
300
|
+
"data-slot": "field-group",
|
|
301
|
+
[c]: "field-group",
|
|
302
|
+
className: f(
|
|
303
|
+
n.fieldGroup,
|
|
304
|
+
e === "row" ? n.fieldGroupRow : n.fieldGroupColumn,
|
|
305
|
+
i
|
|
306
|
+
),
|
|
307
|
+
...t
|
|
308
|
+
}
|
|
309
|
+
);
|
|
310
|
+
}
|
|
311
|
+
), ae = a.forwardRef(
|
|
312
|
+
function({ className: i, ...e }, t) {
|
|
313
|
+
const o = p();
|
|
314
|
+
return /* @__PURE__ */ d(
|
|
315
|
+
"div",
|
|
316
|
+
{
|
|
317
|
+
ref: t,
|
|
318
|
+
"data-slot": "field-content",
|
|
319
|
+
[c]: "field-content",
|
|
320
|
+
className: f(o.fieldContent, i),
|
|
321
|
+
...e
|
|
322
|
+
}
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
), se = a.forwardRef(
|
|
326
|
+
function({ className: i, ...e }, t) {
|
|
327
|
+
const o = p();
|
|
328
|
+
return /* @__PURE__ */ d(
|
|
329
|
+
q,
|
|
330
|
+
{
|
|
331
|
+
ref: t,
|
|
332
|
+
"data-slot": "field-label",
|
|
333
|
+
[c]: "field-label",
|
|
334
|
+
className: f(o.label, i),
|
|
335
|
+
...e
|
|
336
|
+
}
|
|
337
|
+
);
|
|
338
|
+
}
|
|
339
|
+
), de = a.forwardRef(function({ className: i, showOnHover: e = !0, ...t }, o) {
|
|
340
|
+
const n = p();
|
|
341
|
+
return /* @__PURE__ */ d(
|
|
342
|
+
"div",
|
|
343
|
+
{
|
|
344
|
+
ref: o,
|
|
345
|
+
"data-slot": "field-label-content",
|
|
346
|
+
[c]: "field-label-content",
|
|
347
|
+
className: f(
|
|
348
|
+
n.labelContent,
|
|
349
|
+
e && n.labelContentHover,
|
|
350
|
+
i
|
|
351
|
+
),
|
|
352
|
+
...t
|
|
353
|
+
}
|
|
354
|
+
);
|
|
355
|
+
}), ce = ({
|
|
356
|
+
variant: l = "default"
|
|
357
|
+
} = {}) => l, ue = a.forwardRef(function({ className: i, variant: e = "default", ...t }, o) {
|
|
358
|
+
const n = p(), s = e === "helper" ? n.descriptionHelper : n.descriptionDefault;
|
|
359
|
+
return /* @__PURE__ */ d(
|
|
360
|
+
Y,
|
|
361
|
+
{
|
|
362
|
+
ref: o,
|
|
363
|
+
"data-slot": "field-description",
|
|
364
|
+
[c]: "field-description",
|
|
365
|
+
className: f(n.description, s, i),
|
|
366
|
+
...t
|
|
367
|
+
}
|
|
368
|
+
);
|
|
369
|
+
}), fe = a.forwardRef(
|
|
370
|
+
function({ className: i, children: e, errors: t, ...o }, n) {
|
|
371
|
+
const s = p(), m = a.useMemo(() => {
|
|
372
|
+
var h;
|
|
373
|
+
if (e)
|
|
374
|
+
return e;
|
|
375
|
+
if (!(t != null && t.length))
|
|
376
|
+
return null;
|
|
377
|
+
const u = [
|
|
378
|
+
...new Map(t.map((g) => [g == null ? void 0 : g.message, g])).values()
|
|
379
|
+
];
|
|
380
|
+
return u.length === 1 ? (h = u[0]) == null ? void 0 : h.message : /* @__PURE__ */ d("ul", { className: s.errorList, children: u.map(
|
|
381
|
+
(g, b) => (g == null ? void 0 : g.message) && /* @__PURE__ */ d("li", { className: s.errorListItem, children: g.message }, b)
|
|
382
|
+
) });
|
|
383
|
+
}, [e, t, s.errorList, s.errorListItem]);
|
|
384
|
+
return m ? /* @__PURE__ */ d(
|
|
385
|
+
_,
|
|
386
|
+
{
|
|
387
|
+
ref: n,
|
|
388
|
+
role: "alert",
|
|
389
|
+
"data-slot": "field-error",
|
|
390
|
+
[c]: "field-error",
|
|
391
|
+
className: f(s.error, i),
|
|
392
|
+
...o,
|
|
393
|
+
children: m
|
|
394
|
+
}
|
|
395
|
+
) : null;
|
|
396
|
+
}
|
|
397
|
+
), pe = a.forwardRef(
|
|
398
|
+
function({ className: i, ...e }, t) {
|
|
399
|
+
const o = p(), { inputRef: n } = I();
|
|
400
|
+
return /* @__PURE__ */ d(
|
|
401
|
+
U,
|
|
402
|
+
{
|
|
403
|
+
ref: (s) => {
|
|
404
|
+
n.current = s, typeof t == "function" ? t(s) : t && (t.current = s);
|
|
405
|
+
},
|
|
406
|
+
"data-readonly": e.readOnly,
|
|
407
|
+
"data-slot": "field-input",
|
|
408
|
+
[c]: "field-input",
|
|
409
|
+
className: f(o.input, i),
|
|
410
|
+
...e
|
|
411
|
+
}
|
|
412
|
+
);
|
|
413
|
+
}
|
|
414
|
+
), ge = a.forwardRef(function({ className: i, ...e }, t) {
|
|
415
|
+
const o = p();
|
|
416
|
+
return /* @__PURE__ */ d(
|
|
417
|
+
"div",
|
|
418
|
+
{
|
|
419
|
+
ref: t,
|
|
420
|
+
"data-slot": "field-input-group",
|
|
421
|
+
[c]: "field-input-group",
|
|
422
|
+
className: f(o.inputGroup, i),
|
|
423
|
+
...e
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
}), me = a.forwardRef(function({ className: i, resize: e = "none", ...t }, o) {
|
|
427
|
+
const n = p(), { inputRef: s } = I(), m = e === "vertical" ? n.resizeVertical : e === "horizontal" ? n.resizeHorizontal : n.resizeNone;
|
|
428
|
+
return /* @__PURE__ */ d(
|
|
429
|
+
"textarea",
|
|
430
|
+
{
|
|
431
|
+
...t,
|
|
432
|
+
ref: (u) => {
|
|
433
|
+
s.current = u, typeof o == "function" ? o(u) : o && (o.current = u);
|
|
434
|
+
},
|
|
435
|
+
"data-readonly": t.readOnly,
|
|
436
|
+
"data-slot": "field-textarea",
|
|
437
|
+
[c]: "field-textarea",
|
|
438
|
+
"data-resize": e,
|
|
439
|
+
className: f(n.textarea, m, i)
|
|
440
|
+
}
|
|
441
|
+
);
|
|
442
|
+
}), ye = ({
|
|
443
|
+
align: l = "start"
|
|
444
|
+
} = {}) => l, he = a.forwardRef(function({ className: i, align: e = "start", ...t }, o) {
|
|
445
|
+
const n = p();
|
|
446
|
+
return /* @__PURE__ */ d(
|
|
447
|
+
"div",
|
|
448
|
+
{
|
|
449
|
+
ref: o,
|
|
450
|
+
role: "group",
|
|
451
|
+
"data-slot": "input-group-addon",
|
|
452
|
+
[c]: "input-group-addon",
|
|
453
|
+
"data-align": e,
|
|
454
|
+
className: f(
|
|
455
|
+
n.addon,
|
|
456
|
+
e === "end" ? n.addonEnd : n.addonStart,
|
|
457
|
+
i
|
|
458
|
+
),
|
|
459
|
+
...t
|
|
460
|
+
}
|
|
461
|
+
);
|
|
462
|
+
});
|
|
463
|
+
export {
|
|
464
|
+
ie as Field,
|
|
465
|
+
ae as FieldContent,
|
|
466
|
+
ue as FieldDescription,
|
|
467
|
+
fe as FieldError,
|
|
468
|
+
re as FieldGroup,
|
|
469
|
+
he as FieldGroupAddon,
|
|
470
|
+
pe as FieldInput,
|
|
471
|
+
ge as FieldInputGroup,
|
|
472
|
+
se as FieldLabel,
|
|
473
|
+
de as FieldLabelContent,
|
|
474
|
+
le as FieldSet,
|
|
475
|
+
me as FieldTextarea,
|
|
476
|
+
ce as fieldDescriptionVariants,
|
|
477
|
+
ne as fieldVariants,
|
|
478
|
+
ye as inputGroupAddonVariants,
|
|
479
|
+
I as useFieldContext,
|
|
480
|
+
oe as useOptionalFieldContext
|
|
481
|
+
};
|
|
482
|
+
//# sourceMappingURL=field.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field.js","sources":["../../../src/components/field/field.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { mergeClasses, shorthands } from \"@griffel/core\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\n\n/**\n * Plain elements, not a primitive.\n *\n * v1's Field uses no Radix primitive at all — it is a custom implementation with its own context,\n * and v2 already had the same context (`FieldContext`, carrying `inputRef`). Base UI's Field parts\n * were only supplying the elements, and these are the elements they rendered: Root a div, Label a\n * label, Control an input, Description a p, Error a div. Substituting them is element-identical, so\n * nothing moves visually.\n *\n * **What is genuinely lost:** Base UI's Field also wired label-to-control association and\n * `aria-describedby` automatically. v1 does not do that either — its context carries only `inputRef`\n * — so this matches production rather than regressing against it, but it is a real accessibility\n * affordance that Base UI gave for free and is worth revisiting on its own terms.\n */\nconst FieldRootBase = \"div\" as const\nconst FieldLabelBase = \"label\" as const\nconst FieldControlBase = \"input\" as const\nconst FieldDescriptionBase = \"p\" as const\nconst FieldErrorBase = \"div\" as const\n\nexport type FieldInputRef =\n | HTMLInputElement\n | HTMLTextAreaElement\n | HTMLSelectElement\n | HTMLButtonElement\n | null\n\nexport interface FieldContextValue {\n inputRef: React.RefObject<FieldInputRef>\n}\n\nconst FieldContext = React.createContext<FieldContextValue | null>(null)\n\nexport const useFieldContext = () => {\n const context = React.useContext(FieldContext)\n if (!context) {\n throw new Error(\"FieldInput must be used within a Field component\")\n }\n return context\n}\n\n/**\n * Field context when there is one, `null` otherwise — for parts that work both inside and outside a\n * Field.\n *\n * `useFieldContext` throws by design, which is right for FieldInput (it is meaningless on its own)\n * and wrong for SelectTrigger and the combobox trigger, which are legitimate standalone components\n * that merely pick up field wiring when nested. Those were calling the throwing hook inside a\n * try/catch, i.e. using an exception for control flow on every render of a perfectly valid tree.\n */\nexport const useOptionalFieldContext = (): FieldContextValue | null =>\n React.useContext(FieldContext)\n\nexport type FieldVariant = \"default\" | \"highlight\" | \"readonly\" | \"destructive\"\n\nconst useStyles = makeVoltStyles({\n root: {\n position: \"relative\",\n display: \"flex\",\n flexDirection: \"column\",\n width: \"100%\",\n paddingTop: tokens.spacingElement2,\n paddingBottom: tokens.spacingElement2,\n // v1 uses Tailwind's `px-3` = 0.75rem here. The semantic spacing scale has NO 0.75rem\n // token -- it runs 0.25/0.5/0.5/1/1.5/2 -- so this is a literal by necessity.\n // `spacingGroup1` is 0.5rem and reaching for it by name (as three components did)\n // silently loses 4px per side. See STATUS: the scale gap is the root cause.\n paddingLeft: tokens.spacingElement3,\n paddingRight: tokens.spacingElement3,\n ...shorthands.gap(tokens.spacingElement1),\n ...shorthands.borderRadius(tokens.radiusLg),\n transitionProperty: \"all\",\n transitionDuration: \"75ms\",\n outlineOffset: \"2px\",\n outlineWidth: \"2px\",\n outlineStyle: \"none\",\n \"&[data-focused='true'], &[data-focus-visible]\": {\n outlineStyle: \"solid\",\n },\n \"&[data-invalid]\": {\n backgroundColor: tokens.semErrorSoft,\n outlineColor: tokens.errorA8,\n },\n\n // Label's disabled styling, declared here because Field owns the elements these selectors are\n // rooted at. On Label they were written as \"[data-disabled] &\", \":disabled ~ &\" and\n // \"[data-disabled] ~ &\"; Griffel does not substitute `&` in that position and emits\n // `.hash<selector> .hash`, which never matches, so a label in a disabled field never dimmed.\n // See src/ancestor-selector.test.ts.\n [`&[data-disabled] [${SLOT_ATTR}=\"label\"]`]: {\n pointerEvents: \"none\",\n opacity: 0.5,\n },\n [`& :disabled ~ [${SLOT_ATTR}=\"label\"]`]: {\n cursor: \"not-allowed\",\n opacity: 0.5,\n },\n [`& [data-disabled] ~ [${SLOT_ATTR}=\"label\"]`]: {\n cursor: \"not-allowed\",\n opacity: 0.5,\n },\n },\n rootDefault: {\n backgroundColor: tokens.grayA3,\n \":hover\": {\n backgroundColor: tokens.grayA4,\n },\n \"&[data-focused='true'], &[data-focus-visible]\": {\n outlineColor: tokens.accentA8,\n },\n },\n rootHighlight: {\n backgroundColor: tokens.accentA3,\n \":hover\": {\n backgroundColor: tokens.accentA4,\n },\n \"&[data-focused='true'], &[data-focus-visible]\": {\n outlineColor: tokens.accentA8,\n },\n },\n rootReadonly: {\n backgroundColor: tokens.grayA3,\n \"&[data-focused='true'], &[data-focus-visible]\": {\n outlineColor: tokens.accentA8,\n },\n },\n rootDestructive: {\n backgroundColor: tokens.semErrorSoft,\n \":hover\": {\n backgroundColor: tokens.errorA4,\n },\n \"&[data-focused='true'], &[data-focus-visible]\": {\n outlineColor: tokens.errorA8,\n },\n },\n fieldSet: {\n display: \"flex\",\n flexDirection: \"column\",\n ...shorthands.gap(tokens.spacingLayout2),\n ...shorthands.border(\"0\"),\n ...shorthands.padding(0),\n ...shorthands.margin(0),\n },\n fieldGroup: {\n display: \"flex\",\n width: \"100%\",\n ...shorthands.gap(tokens.spacingElement2),\n },\n fieldGroupColumn: {\n flexDirection: \"column\",\n },\n fieldGroupRow: {\n flexDirection: \"row\",\n },\n fieldContent: {\n display: \"flex\",\n flexGrow: 1,\n flexShrink: 1,\n flexBasis: \"0%\",\n flexDirection: \"column\",\n ...shorthands.gap(tokens.spacingElement2),\n lineHeight: \"1.375\",\n },\n label: {\n minHeight: \"1rem\",\n fontSize: tokens.textXs,\n display: \"flex\",\n width: \"fit-content\",\n ...shorthands.gap(tokens.spacingElement2),\n cursor: \"default\",\n color: tokens.grayA12,\n \"&[data-disabled]\": {\n opacity: 0.5,\n },\n },\n labelContent: {\n display: \"inline-flex\",\n alignItems: \"center\",\n ...shorthands.gap(tokens.spacingElement1),\n transitionProperty: \"opacity\",\n transitionDuration: \"150ms\",\n },\n labelContentHover: {\n width: 0,\n height: 0,\n overflowX: \"visible\",\n overflowY: \"visible\",\n opacity: 0,\n pointerEvents: \"none\",\n },\n description: {\n fontSize: tokens.textXs,\n lineHeight: \"1.5\",\n fontWeight: tokens.fontWeightNormal,\n ...shorthands.margin(0),\n \"& a\": {\n textDecorationLine: \"underline\",\n textUnderlineOffset: \"4px\",\n },\n },\n descriptionDefault: {\n color: tokens.grayA12,\n },\n descriptionHelper: {\n color: tokens.grayA11,\n },\n error: {\n color: tokens.errorA11,\n fontSize: tokens.textXs,\n fontWeight: tokens.fontWeightNormal,\n },\n errorList: {\n display: \"flex\",\n flexDirection: \"column\",\n ...shorthands.margin(0),\n paddingLeft: \"1.25rem\",\n listStyleType: \"disc\",\n },\n errorListItem: {\n color: tokens.errorA11,\n fontSize: tokens.textXs,\n fontWeight: tokens.fontWeightNormal,\n marginTop: \"0.25rem\",\n marginBottom: \"0.25rem\",\n },\n input: {\n width: \"100%\",\n height: \"1.5rem\",\n outlineStyle: \"none\",\n fontSize: tokens.textSm,\n color: tokens.grayA12,\n backgroundColor: \"transparent\",\n ...shorthands.border(\"0\"),\n ...shorthands.padding(0),\n \"::placeholder\": {\n color: tokens.grayA8,\n },\n \":disabled\": {\n cursor: \"not-allowed\",\n },\n },\n inputGroup: {\n display: \"flex\",\n alignItems: \"center\",\n ...shorthands.gap(tokens.spacingElement1),\n width: \"100%\",\n },\n textarea: {\n width: \"100%\",\n outlineStyle: \"none\",\n fontSize: tokens.textSm,\n color: tokens.grayA12,\n backgroundColor: \"transparent\",\n ...shorthands.border(\"0\"),\n ...shorthands.padding(0),\n \"::placeholder\": {\n color: tokens.grayA8,\n },\n \":disabled\": {\n cursor: \"not-allowed\",\n },\n },\n resizeNone: {\n resize: \"none\",\n },\n resizeVertical: {\n resize: \"vertical\",\n },\n resizeHorizontal: {\n resize: \"horizontal\",\n },\n addon: {\n color: tokens.grayA11,\n display: \"flex\",\n height: \"auto\",\n cursor: \"text\",\n whiteSpace: \"nowrap\",\n alignItems: \"center\",\n justifyContent: \"center\",\n ...shorthands.gap(tokens.spacingElement2),\n fontSize: tokens.textSm,\n fontWeight: tokens.fontWeightNormal,\n userSelect: \"none\",\n },\n addonStart: {\n order: -1,\n },\n addonEnd: {\n order: 1,\n },\n})\n\n// fieldVariants helper for v1 API compatibility\nexport const fieldVariants = ({\n variant = \"default\",\n}: { variant?: FieldVariant } = {}) => {\n return variant\n}\n\nexport type FieldProps = Omit<React.ComponentProps<\"div\">, \"className\"> & {\n className?: string\n variant?: FieldVariant\n}\n\nexport const Field = React.forwardRef<HTMLDivElement, FieldProps>(\n function Field(\n {\n className,\n variant = \"default\",\n children,\n onFocusCapture,\n onBlurCapture,\n ...props\n },\n ref\n ) {\n const styles = useStyles()\n const inputRef = React.useRef<FieldInputRef>(null)\n const [isFocused, setIsFocused] = React.useState(false)\n\n const handleFocusCapture: React.ComponentProps<\"div\">[\"onFocusCapture\"] = (\n event\n ) => {\n setIsFocused(true)\n onFocusCapture?.(event)\n }\n\n const handleBlurCapture: React.ComponentProps<\"div\">[\"onBlurCapture\"] = (\n event\n ) => {\n setIsFocused(false)\n onBlurCapture?.(event)\n }\n\n const variantStyle =\n variant === \"highlight\"\n ? styles.rootHighlight\n : variant === \"readonly\"\n ? styles.rootReadonly\n : variant === \"destructive\"\n ? styles.rootDestructive\n : styles.rootDefault\n\n return (\n <FieldContext.Provider value={{ inputRef }}>\n <FieldRootBase\n ref={ref}\n role=\"group\"\n data-slot=\"field\"\n {...{ [SLOT_ATTR]: \"field\" }}\n data-focused={isFocused ? \"true\" : \"false\"}\n className={mergeClasses(styles.root, variantStyle, className)}\n onFocusCapture={handleFocusCapture}\n onBlurCapture={handleBlurCapture}\n {...props}\n >\n {children}\n </FieldRootBase>\n </FieldContext.Provider>\n )\n }\n)\n\nexport type FieldSetProps = React.ComponentProps<\"fieldset\">\n\nexport const FieldSet = React.forwardRef<HTMLFieldSetElement, FieldSetProps>(\n function FieldSet({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <fieldset\n ref={ref}\n data-slot=\"field-set\"\n {...{ [SLOT_ATTR]: \"field-set\" }}\n className={mergeClasses(styles.fieldSet, className)}\n {...props}\n />\n )\n }\n)\n\nexport type FieldGroupProps = React.ComponentProps<\"div\"> & {\n direction?: \"column\" | \"row\"\n}\n\nexport const FieldGroup = React.forwardRef<HTMLDivElement, FieldGroupProps>(\n function FieldGroup({ className, direction = \"column\", ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"field-group\"\n {...{ [SLOT_ATTR]: \"field-group\" }}\n className={mergeClasses(\n styles.fieldGroup,\n direction === \"row\" ? styles.fieldGroupRow : styles.fieldGroupColumn,\n className\n )}\n {...props}\n />\n )\n }\n)\n\nexport type FieldContentProps = React.ComponentProps<\"div\">\n\nexport const FieldContent = React.forwardRef<HTMLDivElement, FieldContentProps>(\n function FieldContent({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"field-content\"\n {...{ [SLOT_ATTR]: \"field-content\" }}\n className={mergeClasses(styles.fieldContent, className)}\n {...props}\n />\n )\n }\n)\n\nexport type FieldLabelProps = Omit<\n React.ComponentProps<\"label\">,\n \"className\"\n> & {\n className?: string\n}\n\nexport const FieldLabel = React.forwardRef<HTMLLabelElement, FieldLabelProps>(\n function FieldLabel({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <FieldLabelBase\n ref={ref}\n data-slot=\"field-label\"\n {...{ [SLOT_ATTR]: \"field-label\" }}\n className={mergeClasses(styles.label, className)}\n {...props}\n />\n )\n }\n)\n\nexport type FieldLabelContentProps = React.ComponentProps<\"div\"> & {\n showOnHover?: boolean\n}\n\nexport const FieldLabelContent = React.forwardRef<\n HTMLDivElement,\n FieldLabelContentProps\n>(function FieldLabelContent({ className, showOnHover = true, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"field-label-content\"\n {...{ [SLOT_ATTR]: \"field-label-content\" }}\n className={mergeClasses(\n styles.labelContent,\n showOnHover && styles.labelContentHover,\n className\n )}\n {...props}\n />\n )\n})\n\nexport type FieldDescriptionVariant = \"default\" | \"helper\"\n\nexport const fieldDescriptionVariants = ({\n variant = \"default\",\n}: { variant?: FieldDescriptionVariant } = {}) => {\n return variant\n}\n\nexport type FieldDescriptionProps = Omit<\n React.ComponentProps<\"p\">,\n \"className\"\n> & {\n className?: string\n variant?: FieldDescriptionVariant\n}\n\nexport const FieldDescription = React.forwardRef<\n HTMLParagraphElement,\n FieldDescriptionProps\n>(function FieldDescription({ className, variant = \"default\", ...props }, ref) {\n const styles = useStyles()\n\n const variantStyle =\n variant === \"helper\" ? styles.descriptionHelper : styles.descriptionDefault\n\n return (\n <FieldDescriptionBase\n ref={ref}\n data-slot=\"field-description\"\n {...{ [SLOT_ATTR]: \"field-description\" }}\n className={mergeClasses(styles.description, variantStyle, className)}\n {...props}\n />\n )\n})\n\nexport type FieldErrorProps = Omit<React.ComponentProps<\"div\">, \"className\"> & {\n className?: string\n errors?: Array<{ message?: string } | undefined>\n}\n\nexport const FieldError = React.forwardRef<HTMLDivElement, FieldErrorProps>(\n function FieldError({ className, children, errors, ...props }, ref) {\n const styles = useStyles()\n\n const content = React.useMemo(() => {\n if (children) {\n return children\n }\n\n if (!errors?.length) {\n return null\n }\n\n const uniqueErrors = [\n ...new Map(errors.map((error) => [error?.message, error])).values(),\n ]\n\n if (uniqueErrors.length === 1) {\n return uniqueErrors[0]?.message\n }\n\n return (\n <ul className={styles.errorList}>\n {uniqueErrors.map(\n (error, index) =>\n error?.message && (\n <li className={styles.errorListItem} key={index}>\n {error.message}\n </li>\n )\n )}\n </ul>\n )\n }, [children, errors, styles.errorList, styles.errorListItem])\n\n if (!content) {\n return null\n }\n\n return (\n <FieldErrorBase\n ref={ref}\n role=\"alert\"\n data-slot=\"field-error\"\n {...{ [SLOT_ATTR]: \"field-error\" }}\n className={mergeClasses(styles.error, className)}\n {...props}\n >\n {content}\n </FieldErrorBase>\n )\n }\n)\n\nexport type FieldInputProps = Omit<\n React.ComponentProps<\"input\">,\n \"className\"\n> & {\n className?: string\n}\n\nexport const FieldInput = React.forwardRef<HTMLInputElement, FieldInputProps>(\n function FieldInput({ className, ...props }, forwardedRef) {\n const styles = useStyles()\n const { inputRef } = useFieldContext()\n\n return (\n <FieldControlBase\n ref={(el: HTMLElement | null) => {\n inputRef.current = el as HTMLInputElement | null\n if (typeof forwardedRef === \"function\") {\n forwardedRef(el as HTMLInputElement)\n } else if (forwardedRef) {\n forwardedRef.current = el as HTMLInputElement | null\n }\n }}\n data-readonly={props.readOnly}\n data-slot=\"field-input\"\n {...{ [SLOT_ATTR]: \"field-input\" }}\n className={mergeClasses(styles.input, className)}\n {...props}\n />\n )\n }\n)\n\nexport type FieldInputGroupProps = React.ComponentProps<\"div\">\n\nexport const FieldInputGroup = React.forwardRef<\n HTMLDivElement,\n FieldInputGroupProps\n>(function FieldInputGroup({ className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n data-slot=\"field-input-group\"\n {...{ [SLOT_ATTR]: \"field-input-group\" }}\n className={mergeClasses(styles.inputGroup, className)}\n {...props}\n />\n )\n})\n\nexport type FieldTextareaResize = \"none\" | \"vertical\" | \"horizontal\"\n\nexport type FieldTextareaProps = React.ComponentProps<\"textarea\"> & {\n resize?: FieldTextareaResize\n}\n\nexport const FieldTextarea = React.forwardRef<\n HTMLTextAreaElement,\n FieldTextareaProps\n>(function FieldTextarea(\n { className, resize = \"none\", ...props },\n forwardedRef\n) {\n const styles = useStyles()\n const { inputRef } = useFieldContext()\n\n const resizeStyle =\n resize === \"vertical\"\n ? styles.resizeVertical\n : resize === \"horizontal\"\n ? styles.resizeHorizontal\n : styles.resizeNone\n\n return (\n <textarea\n {...props}\n ref={(el: HTMLTextAreaElement | null) => {\n inputRef.current = el\n if (typeof forwardedRef === \"function\") {\n forwardedRef(el)\n } else if (forwardedRef) {\n forwardedRef.current = el\n }\n }}\n data-readonly={props.readOnly}\n data-slot=\"field-textarea\"\n {...{ [SLOT_ATTR]: \"field-textarea\" }}\n data-resize={resize}\n className={mergeClasses(styles.textarea, resizeStyle, className)}\n />\n )\n})\n\nexport type FieldGroupAddonAlign = \"start\" | \"end\"\n\nexport const inputGroupAddonVariants = ({\n align = \"start\",\n}: { align?: FieldGroupAddonAlign } = {}) => {\n return align\n}\n\nexport type FieldGroupAddonProps = React.ComponentProps<\"div\"> & {\n align?: FieldGroupAddonAlign\n}\n\nexport const FieldGroupAddon = React.forwardRef<\n HTMLDivElement,\n FieldGroupAddonProps\n>(function FieldGroupAddon({ className, align = \"start\", ...props }, ref) {\n const styles = useStyles()\n\n return (\n <div\n ref={ref}\n role=\"group\"\n data-slot=\"input-group-addon\"\n {...{ [SLOT_ATTR]: \"input-group-addon\" }}\n data-align={align}\n className={mergeClasses(\n styles.addon,\n align === \"end\" ? styles.addonEnd : styles.addonStart,\n className\n )}\n {...props}\n />\n )\n})\n"],"names":["FieldRootBase","FieldLabelBase","FieldControlBase","FieldDescriptionBase","FieldErrorBase","FieldContext","React","useFieldContext","context","useOptionalFieldContext","useStyles","makeVoltStyles","tokens.spacingElement2","tokens.spacingElement3","shorthands","tokens.spacingElement1","tokens.radiusLg","tokens.semErrorSoft","tokens.errorA8","SLOT_ATTR","tokens.grayA3","tokens.grayA4","tokens.accentA8","tokens.accentA3","tokens.accentA4","tokens.errorA4","tokens.spacingLayout2","tokens.textXs","tokens.grayA12","tokens.fontWeightNormal","tokens.grayA11","tokens.errorA11","tokens.textSm","tokens.grayA8","fieldVariants","variant","Field","className","children","onFocusCapture","onBlurCapture","props","ref","styles","inputRef","isFocused","setIsFocused","handleFocusCapture","event","handleBlurCapture","variantStyle","jsx","mergeClasses","FieldSet","FieldGroup","direction","FieldContent","FieldLabel","FieldLabelContent","showOnHover","fieldDescriptionVariants","FieldDescription","FieldError","errors","content","uniqueErrors","error","_a","index","FieldInput","for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AWA,EAAO;AAAA,QAC3CN;AAAA,MAAA;AAAA,MAED,GAAGI;AAAA,IAAA;AAAA,EAAA;AAGV,CAAC;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Label — a native `<label>` element styled with Griffel atoms.
|
|
4
|
+
*
|
|
5
|
+
* Base UI has no Label primitive; v1 wrapped `@radix-ui/react-label`, which only added an
|
|
6
|
+
* `onMouseDown` handler preventing text selection on double click while wrapping a `<label>`
|
|
7
|
+
* to wire `htmlFor`. A native `<label>` natively associates with form controls via `htmlFor` or
|
|
8
|
+
* nesting, so we render a native `<label>` directly with no Base UI or Radix dependency.
|
|
9
|
+
*
|
|
10
|
+
* Variants: `primary` (`gray-a12`) and `destructive` (`error-a12`), both from the core token
|
|
11
|
+
* sheet so no palette install is required.
|
|
12
|
+
*
|
|
13
|
+
* Sizes: `sm` (`text-xs`), `base` (`text-sm`), and `lg` (`text-base`).
|
|
14
|
+
*/
|
|
15
|
+
export type LabelVariant = "primary" | "destructive";
|
|
16
|
+
export type LabelSize = "sm" | "base" | "lg";
|
|
17
|
+
export type LabelProps = React.ComponentProps<"label"> & {
|
|
18
|
+
variant?: LabelVariant;
|
|
19
|
+
size?: LabelSize;
|
|
20
|
+
};
|
|
21
|
+
export declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import * as m from "react";
|
|
3
|
+
import { shorthands as i } from "../../node_modules/@griffel/core/src/index.js";
|
|
4
|
+
import { SLOT_ATTR as n } from "../../renderer/contract.js";
|
|
5
|
+
import { makeVoltStyles as f } from "../../styles/make-styles.js";
|
|
6
|
+
import { textBase as p, textSm as c, textXs as b, errorA12 as d, grayA12 as g, fontWeightNormal as y, spacingElement2 as S } from "../../tokens/index.js";
|
|
7
|
+
import { mergeClasses as x } from "../../node_modules/@griffel/core/src/mergeClasses.js";
|
|
8
|
+
const u = f({
|
|
9
|
+
root: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
...i.gap(S),
|
|
13
|
+
// No lineHeight, deliberately, and this is NOT an omission -- see vr/specimens for the label
|
|
14
|
+
// specimens that pin it.
|
|
15
|
+
//
|
|
16
|
+
// v1 declares `leading-none` in source. It never reaches the DOM: v1's cn() runs tailwind-merge,
|
|
17
|
+
// which treats the later `text-sm` as also owning line-height (true in Tailwind v3) and drops
|
|
18
|
+
// `leading-none`. What ships then is `.volt-text-sm`, whose rule is
|
|
19
|
+
// line-height: var(--volt-leading, var(--text-xs--line-height))
|
|
20
|
+
// and BOTH of those are undefined in the shipped sheet -- the prefixer rewrote the definition to
|
|
21
|
+
// --volt-text-sm--line-height but left the reference unprefixed. An invalid line-height falls
|
|
22
|
+
// back to inherited, which under root-config's Tailwind preflight is html { line-height: 1.5 }.
|
|
23
|
+
//
|
|
24
|
+
// So production v1 renders labels at 1.5, not at 1. Declaring `lineHeight: 1` here is faithful
|
|
25
|
+
// to v1's SOURCE and renders 7px shorter than v1 does, which would visibly shift every form
|
|
26
|
+
// layout on migration. Inheriting is faithful to v1's OUTPUT, and output is what Rule 0 means.
|
|
27
|
+
//
|
|
28
|
+
// Two v1 bugs compound to produce this. Both belong in a STABLE360 ticket against v1, and when
|
|
29
|
+
// v1 is fixed this decision should be revisited together with it -- not silently.
|
|
30
|
+
fontWeight: y,
|
|
31
|
+
"&[for]": {
|
|
32
|
+
cursor: "pointer"
|
|
33
|
+
},
|
|
34
|
+
// The disabled-by-ANCESTOR and disabled-by-SIBLING rules are not here; they live on Field,
|
|
35
|
+
// which owns the elements those selectors are rooted at. See field.tsx.
|
|
36
|
+
//
|
|
37
|
+
// v1 expresses them with Tailwind's `group-data-[disabled=true]:` and `peer-disabled:`, which
|
|
38
|
+
// work only because Tailwind emits GLOBAL utility classes that can be rooted anywhere. Scoped
|
|
39
|
+
// atomic CSS cannot: a rule has to be declared by the component that owns the element the
|
|
40
|
+
// selector starts from. That is a real capability difference, and the consequence is recorded in
|
|
41
|
+
// field.tsx — a Label used OUTSIDE a Field, next to a disabled input, will not dim.
|
|
42
|
+
"&[data-disabled]": {
|
|
43
|
+
pointerEvents: "none",
|
|
44
|
+
opacity: 0.5
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
// Variants
|
|
48
|
+
primary: {
|
|
49
|
+
color: g
|
|
50
|
+
},
|
|
51
|
+
destructive: {
|
|
52
|
+
color: d
|
|
53
|
+
},
|
|
54
|
+
// Sizes
|
|
55
|
+
sm: {
|
|
56
|
+
fontSize: b
|
|
57
|
+
},
|
|
58
|
+
base: {
|
|
59
|
+
fontSize: c
|
|
60
|
+
},
|
|
61
|
+
lg: {
|
|
62
|
+
fontSize: p
|
|
63
|
+
}
|
|
64
|
+
}), E = m.forwardRef(
|
|
65
|
+
function({ variant: o = "primary", size: e = "base", className: r, ...a }, s) {
|
|
66
|
+
const t = u();
|
|
67
|
+
return /* @__PURE__ */ l(
|
|
68
|
+
"label",
|
|
69
|
+
{
|
|
70
|
+
ref: s,
|
|
71
|
+
"data-slot": "label",
|
|
72
|
+
[n]: "label",
|
|
73
|
+
className: x(
|
|
74
|
+
t.root,
|
|
75
|
+
t[o],
|
|
76
|
+
t[e],
|
|
77
|
+
r
|
|
78
|
+
),
|
|
79
|
+
...a
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
export {
|
|
85
|
+
E as Label
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.js","sources":["../../../src/components/label/label.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { mergeClasses, shorthands } from \"@griffel/core\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\nimport * as tokens from \"../../tokens\"\n\n/**\n * Label — a native `<label>` element styled with Griffel atoms.\n *\n * Base UI has no Label primitive; v1 wrapped `@radix-ui/react-label`, which only added an\n * `onMouseDown` handler preventing text selection on double click while wrapping a `<label>`\n * to wire `htmlFor`. A native `<label>` natively associates with form controls via `htmlFor` or\n * nesting, so we render a native `<label>` directly with no Base UI or Radix dependency.\n *\n * Variants: `primary` (`gray-a12`) and `destructive` (`error-a12`), both from the core token\n * sheet so no palette install is required.\n *\n * Sizes: `sm` (`text-xs`), `base` (`text-sm`), and `lg` (`text-base`).\n */\n\nexport type LabelVariant = \"primary\" | \"destructive\"\nexport type LabelSize = \"sm\" | \"base\" | \"lg\"\n\nconst useStyles = makeVoltStyles({\n root: {\n display: \"flex\",\n alignItems: \"center\",\n ...shorthands.gap(tokens.spacingElement2),\n // No lineHeight, deliberately, and this is NOT an omission -- see vr/specimens for the label\n // specimens that pin it.\n //\n // v1 declares `leading-none` in source. It never reaches the DOM: v1's cn() runs tailwind-merge,\n // which treats the later `text-sm` as also owning line-height (true in Tailwind v3) and drops\n // `leading-none`. What ships then is `.volt-text-sm`, whose rule is\n // line-height: var(--volt-leading, var(--text-xs--line-height))\n // and BOTH of those are undefined in the shipped sheet -- the prefixer rewrote the definition to\n // --volt-text-sm--line-height but left the reference unprefixed. An invalid line-height falls\n // back to inherited, which under root-config's Tailwind preflight is html { line-height: 1.5 }.\n //\n // So production v1 renders labels at 1.5, not at 1. Declaring `lineHeight: 1` here is faithful\n // to v1's SOURCE and renders 7px shorter than v1 does, which would visibly shift every form\n // layout on migration. Inheriting is faithful to v1's OUTPUT, and output is what Rule 0 means.\n //\n // Two v1 bugs compound to produce this. Both belong in a STABLE360 ticket against v1, and when\n // v1 is fixed this decision should be revisited together with it -- not silently.\n fontWeight: tokens.fontWeightNormal,\n \"&[for]\": {\n cursor: \"pointer\",\n },\n // The disabled-by-ANCESTOR and disabled-by-SIBLING rules are not here; they live on Field,\n // which owns the elements those selectors are rooted at. See field.tsx.\n //\n // v1 expresses them with Tailwind's `group-data-[disabled=true]:` and `peer-disabled:`, which\n // work only because Tailwind emits GLOBAL utility classes that can be rooted anywhere. Scoped\n // atomic CSS cannot: a rule has to be declared by the component that owns the element the\n // selector starts from. That is a real capability difference, and the consequence is recorded in\n // field.tsx — a Label used OUTSIDE a Field, next to a disabled input, will not dim.\n \"&[data-disabled]\": {\n pointerEvents: \"none\",\n opacity: 0.5,\n },\n },\n // Variants\n primary: {\n color: tokens.grayA12,\n },\n destructive: {\n color: tokens.errorA12,\n },\n // Sizes\n sm: {\n fontSize: tokens.textXs,\n },\n base: {\n fontSize: tokens.textSm,\n },\n lg: {\n fontSize: tokens.textBase,\n },\n})\n\nexport type LabelProps = React.ComponentProps<\"label\"> & {\n variant?: LabelVariant\n size?: LabelSize\n}\n\nexport const Label = React.forwardRef<HTMLLabelElement, LabelProps>(\n function Label(\n { variant = \"primary\", size = \"base\", className, ...props },\n ref\n ) {\n const styles = useStyles()\n\n return (\n <label\n ref={ref}\n data-slot=\"label\"\n {...{ [SLOT_ATTR]: \"label\" }}\n className={mergeClasses(\n styles.root,\n styles[variant],\n styles[size],\n className\n )}\n {...props}\n />\n )\n }\n)\n"],"names":["useStyles","makeVoltStyles","shorthands","tokens.spacingElement2","tokens.fontWeightNormal","tokens.grayA12","tokens.errorA12","tokens.textXs","tokens.textSm","tokens.textBase","Label","React","variant","size","className","props","ref","styles","jsx","SLOT_ATTR","mergeClasses"],"mappings":";;;;;;;AAyBA,MAAMA,IAAYC,EAAe;AAAA,EAC/B,MAAM;AAAA,IACJ,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,GAAGC,EAAW,IAAIC,CAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAkBxC,YAAYC;AAAAA,IACZ,UAAU;AAAA,MACR,QAAQ;AAAA,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAUV,oBAAoB;AAAA,MAClB,eAAe;AAAA,MACf,SAAS;AAAA,IAAA;AAAA,EACX;AAAA;AAAA,EAGF,SAAS;AAAA,IACP,OAAOC;AAAAA,EAAO;AAAA,EAEhB,aAAa;AAAA,IACX,OAAOC;AAAAA,EAAO;AAAA;AAAA,EAGhB,IAAI;AAAA,IACF,UAAUC;AAAAA,EAAO;AAAA,EAEnB,MAAM;AAAA,IACJ,UAAUC;AAAAA,EAAO;AAAA,EAEnB,IAAI;AAAA,IACF,UAAUC;AAAAA,EAAO;AAErB,CAAC,GAOYC,IAAQC,EAAM;AAAA,EACzB,SACE,EAAE,SAAAC,IAAU,WAAW,MAAAC,IAAO,QAAQ,WAAAC,GAAW,GAAGC,EAAA,GACpDC,GACA;AACA,UAAMC,IAASjB,EAAA;AAEf,WACE,gBAAAkB;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAF;AAAA,QACA,aAAU;AAAA,QACJ,CAACG,CAAS,GAAG;AAAA,QACnB,WAAWC;AAAA,UACTH,EAAO;AAAA,UACPA,EAAOL,CAAO;AAAA,UACdK,EAAOJ,CAAI;AAAA,UACXC;AAAA,QAAA;AAAA,QAED,GAAGC;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;"}
|