@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,24 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Skeleton — v1's loading placeholder ported to Griffel atoms.
|
|
4
|
+
*
|
|
5
|
+
* Two variants, `default` and `ai`. `default` is a gray block that pulses; `ai` is a gray field
|
|
6
|
+
* that renders three decorative colour spots drifting behind the content. The spots are ported from
|
|
7
|
+
* v1's global `skeleton-ai-spot-*` classes in `styles/utilities.css`, including their exact
|
|
8
|
+
* gradients, durations (10s / 12s / 14s) and easing.
|
|
9
|
+
*
|
|
10
|
+
* The keyframes are the object form, so Griffel hashes each one from its content — a hand-authored
|
|
11
|
+
* global `@keyframes` would collide across two co-resident copies of this package. The pulse is a
|
|
12
|
+
* single three-stop animation; each spot carries its own.
|
|
13
|
+
*
|
|
14
|
+
* The spots are `purple-a4`, `pink-a4` and `indigo-a4`, none of which is a core token family
|
|
15
|
+
* (accent / gray / error / warning / success / info ship in the core sheet; everything else lives
|
|
16
|
+
* in the palette sheet, which is not loaded by default). `ai` therefore calls
|
|
17
|
+
* `ensurePaletteTokens()` — CONVENTIONS rule 3. There is no `color` prop, so no inline custom
|
|
18
|
+
* properties: the spot colours are constant and live inside the style objects.
|
|
19
|
+
*/
|
|
20
|
+
export type SkeletonVariant = "default" | "ai";
|
|
21
|
+
export type SkeletonProps = React.ComponentProps<"div"> & {
|
|
22
|
+
variant?: SkeletonVariant;
|
|
23
|
+
};
|
|
24
|
+
export declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { shorthands as i } from "../../node_modules/@griffel/core/src/index.js";
|
|
4
|
+
import { SLOT_ATTR as m } from "../../renderer/contract.js";
|
|
5
|
+
import { makeVoltStyles as p } from "../../styles/make-styles.js";
|
|
6
|
+
import { indigoA4 as f, pinkA4 as g, purpleA4 as k, gray3 as b, gray4 as y, radiusMd as l } from "../../tokens/index.js";
|
|
7
|
+
import { ensurePaletteTokens as N } from "../../tokens/install.js";
|
|
8
|
+
import { mergeClasses as t } from "../../node_modules/@griffel/core/src/mergeClasses.js";
|
|
9
|
+
const T = p({
|
|
10
|
+
default: {
|
|
11
|
+
backgroundColor: y,
|
|
12
|
+
...i.borderRadius(l),
|
|
13
|
+
animationName: {
|
|
14
|
+
"0%,100%": { opacity: 1 },
|
|
15
|
+
"50%": { opacity: 0.5 }
|
|
16
|
+
},
|
|
17
|
+
animationDuration: "2s",
|
|
18
|
+
animationTimingFunction: "cubic-bezier(0.4,0,0.6,1)",
|
|
19
|
+
animationIterationCount: "infinite"
|
|
20
|
+
},
|
|
21
|
+
ai: {
|
|
22
|
+
backgroundColor: b,
|
|
23
|
+
...i.borderRadius(l),
|
|
24
|
+
position: "relative",
|
|
25
|
+
...i.overflow("hidden")
|
|
26
|
+
},
|
|
27
|
+
spot: {
|
|
28
|
+
position: "absolute",
|
|
29
|
+
inset: "-50%",
|
|
30
|
+
...i.borderRadius("50%"),
|
|
31
|
+
opacity: 0.6,
|
|
32
|
+
filter: "blur(18px)",
|
|
33
|
+
pointerEvents: "none"
|
|
34
|
+
},
|
|
35
|
+
spot1: {
|
|
36
|
+
backgroundImage: `radial-gradient(circle, ${k} 0%, transparent 65%)`,
|
|
37
|
+
animationName: {
|
|
38
|
+
"0%,100%": { transform: "translate(-20%, 0%) scale(1)" },
|
|
39
|
+
"33%": { transform: "translate(40%, -25%) scale(1.2)" },
|
|
40
|
+
"66%": { transform: "translate(-10%, 30%) scale(0.9)" }
|
|
41
|
+
},
|
|
42
|
+
animationDuration: "10s",
|
|
43
|
+
animationTimingFunction: "ease-in-out",
|
|
44
|
+
animationIterationCount: "infinite"
|
|
45
|
+
},
|
|
46
|
+
spot2: {
|
|
47
|
+
backgroundImage: `radial-gradient(circle, ${g} 0%, transparent 65%)`,
|
|
48
|
+
animationName: {
|
|
49
|
+
"0%,100%": { transform: "translate(20%, 0%) scale(1.1)" },
|
|
50
|
+
"33%": { transform: "translate(-35%, 25%) scale(0.9)" },
|
|
51
|
+
"66%": { transform: "translate(30%, -20%) scale(1.3)" }
|
|
52
|
+
},
|
|
53
|
+
animationDuration: "12s",
|
|
54
|
+
animationTimingFunction: "ease-in-out",
|
|
55
|
+
animationIterationCount: "infinite"
|
|
56
|
+
},
|
|
57
|
+
spot3: {
|
|
58
|
+
backgroundImage: `radial-gradient(circle, ${f} 0%, transparent 65%)`,
|
|
59
|
+
animationName: {
|
|
60
|
+
"0%,100%": { transform: "translate(0%, 20%) scale(1)" },
|
|
61
|
+
"33%": { transform: "translate(25%, -30%) scale(1.2)" },
|
|
62
|
+
"66%": { transform: "translate(-30%, 10%) scale(0.8)" }
|
|
63
|
+
},
|
|
64
|
+
animationDuration: "14s",
|
|
65
|
+
animationTimingFunction: "ease-in-out",
|
|
66
|
+
animationIterationCount: "infinite"
|
|
67
|
+
}
|
|
68
|
+
}), D = d.forwardRef(
|
|
69
|
+
function({ variant: u = "default", className: o, children: e, ...r }, s) {
|
|
70
|
+
N();
|
|
71
|
+
const a = T();
|
|
72
|
+
return u === "ai" ? /* @__PURE__ */ c(
|
|
73
|
+
"div",
|
|
74
|
+
{
|
|
75
|
+
ref: s,
|
|
76
|
+
"data-slot": "skeleton",
|
|
77
|
+
[m]: "skeleton",
|
|
78
|
+
className: t(a.ai, o),
|
|
79
|
+
...r,
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ n(
|
|
82
|
+
"span",
|
|
83
|
+
{
|
|
84
|
+
"aria-hidden": "true",
|
|
85
|
+
className: t(a.spot, a.spot1)
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ n(
|
|
89
|
+
"span",
|
|
90
|
+
{
|
|
91
|
+
"aria-hidden": "true",
|
|
92
|
+
className: t(a.spot, a.spot2)
|
|
93
|
+
}
|
|
94
|
+
),
|
|
95
|
+
/* @__PURE__ */ n(
|
|
96
|
+
"span",
|
|
97
|
+
{
|
|
98
|
+
"aria-hidden": "true",
|
|
99
|
+
className: t(a.spot, a.spot3)
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
e
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
) : /* @__PURE__ */ n(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
ref: s,
|
|
109
|
+
"data-slot": "skeleton",
|
|
110
|
+
[m]: "skeleton",
|
|
111
|
+
className: t(a.default, o),
|
|
112
|
+
...r,
|
|
113
|
+
children: e
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
export {
|
|
119
|
+
D as Skeleton
|
|
120
|
+
};
|
|
121
|
+
//# sourceMappingURL=skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.js","sources":["../../../src/components/skeleton/skeleton.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\"\nimport { ensurePaletteTokens } from \"../../tokens/install\"\n\n/**\n * Skeleton — v1's loading placeholder ported to Griffel atoms.\n *\n * Two variants, `default` and `ai`. `default` is a gray block that pulses; `ai` is a gray field\n * that renders three decorative colour spots drifting behind the content. The spots are ported from\n * v1's global `skeleton-ai-spot-*` classes in `styles/utilities.css`, including their exact\n * gradients, durations (10s / 12s / 14s) and easing.\n *\n * The keyframes are the object form, so Griffel hashes each one from its content — a hand-authored\n * global `@keyframes` would collide across two co-resident copies of this package. The pulse is a\n * single three-stop animation; each spot carries its own.\n *\n * The spots are `purple-a4`, `pink-a4` and `indigo-a4`, none of which is a core token family\n * (accent / gray / error / warning / success / info ship in the core sheet; everything else lives\n * in the palette sheet, which is not loaded by default). `ai` therefore calls\n * `ensurePaletteTokens()` — CONVENTIONS rule 3. There is no `color` prop, so no inline custom\n * properties: the spot colours are constant and live inside the style objects.\n */\n\nexport type SkeletonVariant = \"default\" | \"ai\"\n\nconst useStyles = makeVoltStyles({\n default: {\n backgroundColor: tokens.gray4,\n ...shorthands.borderRadius(tokens.radiusMd),\n animationName: {\n \"0%,100%\": { opacity: 1 },\n \"50%\": { opacity: 0.5 },\n },\n animationDuration: \"2s\",\n animationTimingFunction: \"cubic-bezier(0.4,0,0.6,1)\",\n animationIterationCount: \"infinite\",\n },\n ai: {\n backgroundColor: tokens.gray3,\n ...shorthands.borderRadius(tokens.radiusMd),\n position: \"relative\",\n ...shorthands.overflow(\"hidden\"),\n },\n spot: {\n position: \"absolute\",\n inset: \"-50%\",\n ...shorthands.borderRadius(\"50%\"),\n opacity: 0.6,\n filter: \"blur(18px)\",\n pointerEvents: \"none\",\n },\n spot1: {\n backgroundImage: `radial-gradient(circle, ${tokens.purpleA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(-20%, 0%) scale(1)\" },\n \"33%\": { transform: \"translate(40%, -25%) scale(1.2)\" },\n \"66%\": { transform: \"translate(-10%, 30%) scale(0.9)\" },\n },\n animationDuration: \"10s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n spot2: {\n backgroundImage: `radial-gradient(circle, ${tokens.pinkA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(20%, 0%) scale(1.1)\" },\n \"33%\": { transform: \"translate(-35%, 25%) scale(0.9)\" },\n \"66%\": { transform: \"translate(30%, -20%) scale(1.3)\" },\n },\n animationDuration: \"12s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n spot3: {\n backgroundImage: `radial-gradient(circle, ${tokens.indigoA4} 0%, transparent 65%)`,\n animationName: {\n \"0%,100%\": { transform: \"translate(0%, 20%) scale(1)\" },\n \"33%\": { transform: \"translate(25%, -30%) scale(1.2)\" },\n \"66%\": { transform: \"translate(-30%, 10%) scale(0.8)\" },\n },\n animationDuration: \"14s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n})\n\nexport type SkeletonProps = React.ComponentProps<\"div\"> & {\n variant?: SkeletonVariant\n}\n\nexport const Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(\n function Skeleton(\n { variant = \"default\", className, children, ...props },\n ref\n ) {\n // The decorative families live in the palette sheet, which is not installed by default\n // (CONVENTIONS rule 3). It has to be present whenever this component renders at all.\n ensurePaletteTokens()\n\n const styles = useStyles()\n\n if (variant === \"ai\") {\n return (\n <div\n ref={ref}\n data-slot=\"skeleton\"\n {...{ [SLOT_ATTR]: \"skeleton\" }}\n className={mergeClasses(styles.ai, className)}\n {...props}\n >\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot1)}\n />\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot2)}\n />\n <span\n aria-hidden=\"true\"\n className={mergeClasses(styles.spot, styles.spot3)}\n />\n {children}\n </div>\n )\n }\n\n return (\n <div\n ref={ref}\n data-slot=\"skeleton\"\n {...{ [SLOT_ATTR]: \"skeleton\" }}\n className={mergeClasses(styles.default, className)}\n {...props}\n >\n {children}\n </div>\n )\n }\n)\n"],"names":["useStyles","makeVoltStyles","tokens.gray4","shorthands","tokens.radiusMd","tokens.gray3","tokens.purpleA4","tokens.pinkA4","tokens.indigoA4","Skeleton","React","variant","className","children","props","ref","ensurePaletteTokens","styles","jsxs","SLOT_ATTR","mergeClasses","jsx"],"mappings":"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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Spinner — v1's SVG spinner ported to a size-driven style object.
|
|
4
|
+
*
|
|
5
|
+
* v1 sizes this with Tailwind `size-*` utilities and deprecated the `size` prop in favour of a
|
|
6
|
+
* `className` like `size-4`. There is no Tailwind here, so that escape hatch does not exist: `size`
|
|
7
|
+
* is the supported API and the `@deprecated` tag is dropped (CONVENTIONS rule 9).
|
|
8
|
+
*
|
|
9
|
+
* The SVG markup, `viewBox` and stroke attributes are copied exactly from v1. Both animations are
|
|
10
|
+
* the object form per CONVENTIONS rule 8: the outer `<g>` spins from a single `100%` stop, and the
|
|
11
|
+
* dash sweep carries all three of v1's keyframe stops (`0%`, `47.5%`, `95%,100%`) from
|
|
12
|
+
* `styles/animations.css`. The only mechanical changes are stylistic: sizes become width/height
|
|
13
|
+
* atoms and the two `animate-*` classes become `animationName` + duration + timing + iteration.
|
|
14
|
+
*
|
|
15
|
+
* The five dimensions (1rem / 1.5rem / 2.5rem / 4rem / 6rem) are v1's Tailwind `size-N` values;
|
|
16
|
+
* the v2 token set has no size or width/height family, so they are literals (CONVENTIONS rule 1).
|
|
17
|
+
*
|
|
18
|
+
* v1 also exposes a `variant` prop (`circle` | `line`) whose branches are both empty strings — it
|
|
19
|
+
* produces no styles at all, so it is omitted here.
|
|
20
|
+
*/
|
|
21
|
+
export type SpinnerSize = "sm" | "base" | "lg" | "xl" | "2xl";
|
|
22
|
+
export type SpinnerProps = React.ComponentProps<"svg"> & {
|
|
23
|
+
size?: SpinnerSize;
|
|
24
|
+
};
|
|
25
|
+
export declare const Spinner: React.ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { SLOT_ATTR as m } from "../../renderer/contract.js";
|
|
4
|
+
import { makeVoltStyles as h } from "../../styles/make-styles.js";
|
|
5
|
+
import { mergeClasses as c } from "../../node_modules/@griffel/core/src/mergeClasses.js";
|
|
6
|
+
const l = h({
|
|
7
|
+
sm: {
|
|
8
|
+
width: "1rem",
|
|
9
|
+
height: "1rem"
|
|
10
|
+
},
|
|
11
|
+
base: {
|
|
12
|
+
width: "1.5rem",
|
|
13
|
+
height: "1.5rem"
|
|
14
|
+
},
|
|
15
|
+
lg: {
|
|
16
|
+
width: "2.5rem",
|
|
17
|
+
height: "2.5rem"
|
|
18
|
+
},
|
|
19
|
+
xl: {
|
|
20
|
+
width: "4rem",
|
|
21
|
+
height: "4rem"
|
|
22
|
+
},
|
|
23
|
+
"2xl": {
|
|
24
|
+
width: "6rem",
|
|
25
|
+
height: "6rem"
|
|
26
|
+
},
|
|
27
|
+
spin: {
|
|
28
|
+
transformOrigin: "center",
|
|
29
|
+
animationName: {
|
|
30
|
+
"100%": { transform: "rotate(360deg)" }
|
|
31
|
+
},
|
|
32
|
+
animationDuration: "2s",
|
|
33
|
+
animationTimingFunction: "linear",
|
|
34
|
+
animationIterationCount: "infinite"
|
|
35
|
+
},
|
|
36
|
+
dash: {
|
|
37
|
+
animationName: {
|
|
38
|
+
"0%": {
|
|
39
|
+
strokeDasharray: "0 150",
|
|
40
|
+
strokeDashoffset: 0
|
|
41
|
+
},
|
|
42
|
+
"47.5%": {
|
|
43
|
+
strokeDasharray: "42 150",
|
|
44
|
+
strokeDashoffset: -16
|
|
45
|
+
},
|
|
46
|
+
"95%,100%": {
|
|
47
|
+
strokeDasharray: "42 150",
|
|
48
|
+
strokeDashoffset: -59
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
animationDuration: "1.5s",
|
|
52
|
+
animationTimingFunction: "ease-in-out",
|
|
53
|
+
animationIterationCount: "infinite"
|
|
54
|
+
}
|
|
55
|
+
}), w = a.forwardRef(
|
|
56
|
+
function({ size: i = "base", className: r, ...n }, o) {
|
|
57
|
+
const t = l();
|
|
58
|
+
return /* @__PURE__ */ e(
|
|
59
|
+
"svg",
|
|
60
|
+
{
|
|
61
|
+
ref: o,
|
|
62
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
63
|
+
width: "24",
|
|
64
|
+
height: "24",
|
|
65
|
+
viewBox: "0 0 24 24",
|
|
66
|
+
fill: "none",
|
|
67
|
+
stroke: "currentColor",
|
|
68
|
+
role: "status",
|
|
69
|
+
"data-slot": "spinner",
|
|
70
|
+
[m]: "spinner",
|
|
71
|
+
className: c(t[i], r),
|
|
72
|
+
...n,
|
|
73
|
+
children: /* @__PURE__ */ s("g", { className: t.spin, children: [
|
|
74
|
+
/* @__PURE__ */ e("circle", { cx: "12", cy: "12", r: "9.5", strokeWidth: "3", opacity: "0.1" }),
|
|
75
|
+
/* @__PURE__ */ e(
|
|
76
|
+
"circle",
|
|
77
|
+
{
|
|
78
|
+
className: t.dash,
|
|
79
|
+
cx: "12",
|
|
80
|
+
cy: "12",
|
|
81
|
+
r: "9.5",
|
|
82
|
+
strokeWidth: "3",
|
|
83
|
+
strokeLinecap: "round",
|
|
84
|
+
fill: "none"
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
] })
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
export {
|
|
93
|
+
w as Spinner
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.js","sources":["../../../src/components/spinner/spinner.tsx"],"sourcesContent":["import * as React from \"react\"\n\nimport { mergeClasses } from \"@griffel/core\"\n\nimport { SLOT_ATTR } from \"../../renderer/contract\"\nimport { makeVoltStyles } from \"../../styles/make-styles\"\n\n/**\n * Spinner — v1's SVG spinner ported to a size-driven style object.\n *\n * v1 sizes this with Tailwind `size-*` utilities and deprecated the `size` prop in favour of a\n * `className` like `size-4`. There is no Tailwind here, so that escape hatch does not exist: `size`\n * is the supported API and the `@deprecated` tag is dropped (CONVENTIONS rule 9).\n *\n * The SVG markup, `viewBox` and stroke attributes are copied exactly from v1. Both animations are\n * the object form per CONVENTIONS rule 8: the outer `<g>` spins from a single `100%` stop, and the\n * dash sweep carries all three of v1's keyframe stops (`0%`, `47.5%`, `95%,100%`) from\n * `styles/animations.css`. The only mechanical changes are stylistic: sizes become width/height\n * atoms and the two `animate-*` classes become `animationName` + duration + timing + iteration.\n *\n * The five dimensions (1rem / 1.5rem / 2.5rem / 4rem / 6rem) are v1's Tailwind `size-N` values;\n * the v2 token set has no size or width/height family, so they are literals (CONVENTIONS rule 1).\n *\n * v1 also exposes a `variant` prop (`circle` | `line`) whose branches are both empty strings — it\n * produces no styles at all, so it is omitted here.\n */\n\nexport type SpinnerSize = \"sm\" | \"base\" | \"lg\" | \"xl\" | \"2xl\"\n\nconst useStyles = makeVoltStyles({\n sm: {\n width: \"1rem\",\n height: \"1rem\",\n },\n base: {\n width: \"1.5rem\",\n height: \"1.5rem\",\n },\n lg: {\n width: \"2.5rem\",\n height: \"2.5rem\",\n },\n xl: {\n width: \"4rem\",\n height: \"4rem\",\n },\n \"2xl\": {\n width: \"6rem\",\n height: \"6rem\",\n },\n spin: {\n transformOrigin: \"center\",\n animationName: {\n \"100%\": { transform: \"rotate(360deg)\" },\n },\n animationDuration: \"2s\",\n animationTimingFunction: \"linear\",\n animationIterationCount: \"infinite\",\n },\n dash: {\n animationName: {\n \"0%\": {\n strokeDasharray: \"0 150\",\n strokeDashoffset: 0,\n },\n \"47.5%\": {\n strokeDasharray: \"42 150\",\n strokeDashoffset: -16,\n },\n \"95%,100%\": {\n strokeDasharray: \"42 150\",\n strokeDashoffset: -59,\n },\n },\n animationDuration: \"1.5s\",\n animationTimingFunction: \"ease-in-out\",\n animationIterationCount: \"infinite\",\n },\n})\n\nexport type SpinnerProps = React.ComponentProps<\"svg\"> & {\n size?: SpinnerSize\n}\n\nexport const Spinner = React.forwardRef<SVGSVGElement, SpinnerProps>(\n function Spinner({ size = \"base\", className, ...props }, ref) {\n const styles = useStyles()\n\n return (\n <svg\n ref={ref}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n role=\"status\"\n data-slot=\"spinner\"\n {...{ [SLOT_ATTR]: \"spinner\" }}\n className={mergeClasses(styles[size], className)}\n {...props}\n >\n <g className={styles.spin}>\n <circle cx=\"12\" cy=\"12\" r=\"9.5\" strokeWidth=\"3\" opacity=\"0.1\" />\n <circle\n className={styles.dash}\n cx=\"12\"\n cy=\"12\"\n r=\"9.5\"\n strokeWidth=\"3\"\n strokeLinecap=\"round\"\n fill=\"none\"\n />\n </g>\n </svg>\n )\n }\n)\n"],"names":["useStyles","makeVoltStyles","Spinner","React","size","className","props","ref","styles","jsx","SLOT_ATTR","mergeClasses","jsxs"],"mappings":";;;;;AA6BA,MAAMA,IAAYC,EAAe;AAAA,EAC/B,IAAI;AAAA,IACF,OAAO;AAAA,IACP,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,QAAQ;AAAA,EAAA;AAAA,EAEV,IAAI;AAAA,IACF,OAAO;AAAA,IACP,QAAQ;AAAA,EAAA;AAAA,EAEV,IAAI;AAAA,IACF,OAAO;AAAA,IACP,QAAQ;AAAA,EAAA;AAAA,EAEV,OAAO;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,EAAA;AAAA,EAEV,MAAM;AAAA,IACJ,iBAAiB;AAAA,IACjB,eAAe;AAAA,MACb,QAAQ,EAAE,WAAW,iBAAA;AAAA,IAAiB;AAAA,IAExC,mBAAmB;AAAA,IACnB,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,EAAA;AAAA,EAE3B,MAAM;AAAA,IACJ,eAAe;AAAA,MACb,MAAM;AAAA,QACJ,iBAAiB;AAAA,QACjB,kBAAkB;AAAA,MAAA;AAAA,MAEpB,SAAS;AAAA,QACP,iBAAiB;AAAA,QACjB,kBAAkB;AAAA,MAAA;AAAA,MAEpB,YAAY;AAAA,QACV,iBAAiB;AAAA,QACjB,kBAAkB;AAAA,MAAA;AAAA,IACpB;AAAA,IAEF,mBAAmB;AAAA,IACnB,yBAAyB;AAAA,IACzB,yBAAyB;AAAA,EAAA;AAE7B,CAAC,GAMYC,IAAUC,EAAM;AAAA,EAC3B,SAAiB,EAAE,MAAAC,IAAO,QAAQ,WAAAC,GAAW,GAAGC,EAAA,GAASC,GAAK;AAC5D,UAAMC,IAASR,EAAA;AAEf,WACE,gBAAAS;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,KAAAF;AAAA,QACA,OAAM;AAAA,QACN,OAAM;AAAA,QACN,QAAO;AAAA,QACP,SAAQ;AAAA,QACR,MAAK;AAAA,QACL,QAAO;AAAA,QACP,MAAK;AAAA,QACL,aAAU;AAAA,QACJ,CAACG,CAAS,GAAG;AAAA,QACnB,WAAWC,EAAaH,EAAOJ,CAAI,GAAGC,CAAS;AAAA,QAC9C,GAAGC;AAAA,QAEJ,UAAA,gBAAAM,EAAC,KAAA,EAAE,WAAWJ,EAAO,MACnB,UAAA;AAAA,UAAA,gBAAAC,EAAC,UAAA,EAAO,IAAG,MAAK,IAAG,MAAK,GAAE,OAAM,aAAY,KAAI,SAAQ,MAAA,CAAM;AAAA,UAC9D,gBAAAA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAWD,EAAO;AAAA,cAClB,IAAG;AAAA,cACH,IAAG;AAAA,cACH,GAAE;AAAA,cACF,aAAY;AAAA,cACZ,eAAc;AAAA,cACd,MAAK;AAAA,YAAA;AAAA,UAAA;AAAA,QACP,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
3
|
+
/**
|
|
4
|
+
* `primary` is a deprecated alias of `default`, carried because v1 has it and real consumers still
|
|
5
|
+
* pass it — entity-sidepanel's SettingsControls does. v1's own comment marks it deprecated and its
|
|
6
|
+
* styles are byte-identical to `default`, so it is mapped rather than duplicated.
|
|
7
|
+
*
|
|
8
|
+
* @remarks `primary` is deprecated; use `default`.
|
|
9
|
+
*/
|
|
10
|
+
export type SwitchVariant = "default" | "destructive" | "primary";
|
|
11
|
+
export type SwitchSize = "sm" | "base" | "lg";
|
|
12
|
+
export type SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root> & {
|
|
13
|
+
variant?: SwitchVariant;
|
|
14
|
+
size?: SwitchSize;
|
|
15
|
+
showThumbIcon?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { Root as v, Thumb as x } from "../../node_modules/@radix-ui/react-switch/dist/index.js";
|
|
4
|
+
import { shorthands as r } from "../../node_modules/@griffel/core/src/index.js";
|
|
5
|
+
import { SLOT_ATTR as s } from "../../renderer/contract.js";
|
|
6
|
+
import { makeVoltStyles as b } from "../../styles/make-styles.js";
|
|
7
|
+
import { errorA8 as c, errorA3 as C, semErrorSolid as y, accentA8 as S, grayA3 as T, semAccentSolid as R, grayA8 as u, errorA11 as A, errorContrast as V, accentA11 as E, grayContrast as I } from "../../tokens/index.js";
|
|
8
|
+
import { mergeClasses as g } from "../../node_modules/@griffel/core/src/mergeClasses.js";
|
|
9
|
+
const N = a.forwardRef(
|
|
10
|
+
function(i, e) {
|
|
11
|
+
const o = w();
|
|
12
|
+
return /* @__PURE__ */ t(
|
|
13
|
+
"svg",
|
|
14
|
+
{
|
|
15
|
+
ref: e,
|
|
16
|
+
"data-slot": "switch-thumb-icon-checked",
|
|
17
|
+
[s]: "switch-thumb-icon-checked",
|
|
18
|
+
role: "presentation",
|
|
19
|
+
className: o.checked,
|
|
20
|
+
viewBox: "0 0 1 6",
|
|
21
|
+
fill: "none",
|
|
22
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
23
|
+
children: /* @__PURE__ */ t("rect", { width: "1", height: "6", fill: "currentColor" })
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
), D = a.forwardRef(
|
|
28
|
+
function(i, e) {
|
|
29
|
+
const o = w();
|
|
30
|
+
return /* @__PURE__ */ t(
|
|
31
|
+
"svg",
|
|
32
|
+
{
|
|
33
|
+
ref: e,
|
|
34
|
+
"data-slot": "switch-thumb-icon-unchecked",
|
|
35
|
+
[s]: "switch-thumb-icon-unchecked",
|
|
36
|
+
role: "presentation",
|
|
37
|
+
className: o.unchecked,
|
|
38
|
+
viewBox: "0 0 4 6",
|
|
39
|
+
fill: "none",
|
|
40
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
41
|
+
children: /* @__PURE__ */ t(
|
|
42
|
+
"rect",
|
|
43
|
+
{
|
|
44
|
+
x: "0.5",
|
|
45
|
+
y: "0.5",
|
|
46
|
+
width: "3",
|
|
47
|
+
height: "5",
|
|
48
|
+
rx: "1.5",
|
|
49
|
+
stroke: "currentColor"
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
), H = a.forwardRef(
|
|
56
|
+
function(i, e) {
|
|
57
|
+
const o = w();
|
|
58
|
+
return /* @__PURE__ */ t(
|
|
59
|
+
"svg",
|
|
60
|
+
{
|
|
61
|
+
ref: e,
|
|
62
|
+
"data-slot": "switch-thumb-icon-disabled",
|
|
63
|
+
[s]: "switch-thumb-icon-disabled",
|
|
64
|
+
className: o.disabled,
|
|
65
|
+
viewBox: "0 0 4 5",
|
|
66
|
+
fill: "none",
|
|
67
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
68
|
+
children: /* @__PURE__ */ t(
|
|
69
|
+
"path",
|
|
70
|
+
{
|
|
71
|
+
d: "M0 5V1.875H0.666667V1.25C0.666667 0.90625 0.797223 0.611979 1.05833 0.367188C1.31944 0.122396 1.63333 0 2 0C2.36667 0 2.68056 0.122396 2.94167 0.367188C3.20278 0.611979 3.33333 0.90625 3.33333 1.25V1.875H4V5H0ZM1.33333 1.875H2.66667V1.25C2.66667 1.07292 2.60278 0.924479 2.475 0.804687C2.34722 0.684896 2.18889 0.625 2 0.625C1.81111 0.625 1.65278 0.684896 1.525 0.804687C1.39722 0.924479 1.33333 1.07292 1.33333 1.25V1.875Z",
|
|
72
|
+
fill: "currentColor"
|
|
73
|
+
}
|
|
74
|
+
)
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
), w = b({
|
|
79
|
+
checked: {
|
|
80
|
+
display: "none",
|
|
81
|
+
position: "absolute",
|
|
82
|
+
pointerEvents: "none",
|
|
83
|
+
...r.inset(0),
|
|
84
|
+
color: "currentColor",
|
|
85
|
+
...r.margin("auto")
|
|
86
|
+
},
|
|
87
|
+
unchecked: {
|
|
88
|
+
display: "none",
|
|
89
|
+
position: "absolute",
|
|
90
|
+
pointerEvents: "none",
|
|
91
|
+
...r.inset(0),
|
|
92
|
+
color: "currentColor",
|
|
93
|
+
...r.margin("auto")
|
|
94
|
+
},
|
|
95
|
+
disabled: {
|
|
96
|
+
display: "inline-block",
|
|
97
|
+
position: "absolute",
|
|
98
|
+
pointerEvents: "none",
|
|
99
|
+
...r.inset(0),
|
|
100
|
+
color: "currentColor",
|
|
101
|
+
...r.margin("auto")
|
|
102
|
+
}
|
|
103
|
+
}), _ = b({
|
|
104
|
+
root: {
|
|
105
|
+
boxSizing: "border-box",
|
|
106
|
+
display: "inline-flex",
|
|
107
|
+
alignItems: "center",
|
|
108
|
+
flexShrink: 0,
|
|
109
|
+
cursor: "pointer",
|
|
110
|
+
borderRadius: "9999px",
|
|
111
|
+
...r.border("1px", "solid", "transparent"),
|
|
112
|
+
boxShadow: "0 1px 2px 0 #0000000d",
|
|
113
|
+
transitionProperty: "all",
|
|
114
|
+
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
115
|
+
transitionDuration: "150ms",
|
|
116
|
+
":focus-visible": {
|
|
117
|
+
outlineWidth: "2px",
|
|
118
|
+
outlineStyle: "solid",
|
|
119
|
+
outlineOffset: "2px"
|
|
120
|
+
},
|
|
121
|
+
":disabled, &[data-disabled]": {
|
|
122
|
+
pointerEvents: "none",
|
|
123
|
+
opacity: 0.5
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
default: {
|
|
127
|
+
color: u,
|
|
128
|
+
"&[data-state='checked']": { backgroundColor: R },
|
|
129
|
+
"&[data-state='unchecked']": { backgroundColor: T },
|
|
130
|
+
":focus-visible": { outlineColor: S }
|
|
131
|
+
},
|
|
132
|
+
destructive: {
|
|
133
|
+
color: c,
|
|
134
|
+
"&[data-state='checked']": { backgroundColor: y },
|
|
135
|
+
"&[data-state='unchecked']": { backgroundColor: C },
|
|
136
|
+
":focus-visible": { outlineColor: c }
|
|
137
|
+
},
|
|
138
|
+
sm: {
|
|
139
|
+
width: "1.625rem",
|
|
140
|
+
height: "1rem",
|
|
141
|
+
"& svg": { width: "0.25rem", height: "0.375rem" }
|
|
142
|
+
},
|
|
143
|
+
base: {
|
|
144
|
+
width: "2.125rem",
|
|
145
|
+
height: "1.25rem",
|
|
146
|
+
"& svg": { width: "0.4375rem", height: "0.5rem" }
|
|
147
|
+
},
|
|
148
|
+
lg: {
|
|
149
|
+
width: "2.625rem",
|
|
150
|
+
height: "1.5rem",
|
|
151
|
+
"& svg": { width: "0.5rem", height: "0.625rem" }
|
|
152
|
+
}
|
|
153
|
+
}), B = b({
|
|
154
|
+
thumb: {
|
|
155
|
+
position: "relative",
|
|
156
|
+
display: "block",
|
|
157
|
+
pointerEvents: "none",
|
|
158
|
+
borderRadius: "9999px",
|
|
159
|
+
boxShadow: "0 1px 2px 0 #0000000d",
|
|
160
|
+
transitionProperty: "transform",
|
|
161
|
+
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
162
|
+
transitionDuration: "150ms",
|
|
163
|
+
"&[data-state='checked']": {
|
|
164
|
+
transform: "translateX(calc(100% - 1px))"
|
|
165
|
+
},
|
|
166
|
+
"&[data-state='unchecked']": {
|
|
167
|
+
transform: "translateX(1px)"
|
|
168
|
+
},
|
|
169
|
+
"&[data-state='checked'] [data-volt2-slot='switch-thumb-icon-checked']": {
|
|
170
|
+
display: "inline-block"
|
|
171
|
+
},
|
|
172
|
+
"&[data-state='unchecked'] [data-volt2-slot='switch-thumb-icon-unchecked']": {
|
|
173
|
+
display: "inline-block"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
default: {
|
|
177
|
+
backgroundColor: I,
|
|
178
|
+
color: u,
|
|
179
|
+
"&[data-state='checked']": { color: E },
|
|
180
|
+
"&[data-state='unchecked']": { color: u }
|
|
181
|
+
},
|
|
182
|
+
destructive: {
|
|
183
|
+
backgroundColor: V,
|
|
184
|
+
color: c,
|
|
185
|
+
"&[data-state='checked']": { color: A },
|
|
186
|
+
"&[data-state='unchecked']": { color: c }
|
|
187
|
+
},
|
|
188
|
+
sm: {
|
|
189
|
+
width: "0.75rem",
|
|
190
|
+
height: "0.75rem",
|
|
191
|
+
"& svg[data-volt2-slot='switch-thumb-icon-disabled']": { width: "0.25rem" }
|
|
192
|
+
},
|
|
193
|
+
base: {
|
|
194
|
+
width: "1rem",
|
|
195
|
+
height: "1rem",
|
|
196
|
+
"& svg[data-volt2-slot='switch-thumb-icon-disabled']": {
|
|
197
|
+
width: "0.375rem"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
lg: {
|
|
201
|
+
width: "1.25rem",
|
|
202
|
+
height: "1.25rem",
|
|
203
|
+
"& svg[data-volt2-slot='switch-thumb-icon-disabled']": {
|
|
204
|
+
width: "0.4375rem"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}), X = a.forwardRef(function({
|
|
208
|
+
variant: i = "default",
|
|
209
|
+
size: e = "base",
|
|
210
|
+
className: o,
|
|
211
|
+
showThumbIcon: d = !1,
|
|
212
|
+
...n
|
|
213
|
+
}, f) {
|
|
214
|
+
const h = _(), m = B(), p = i === "primary" ? "default" : i;
|
|
215
|
+
return /* @__PURE__ */ t(
|
|
216
|
+
v,
|
|
217
|
+
{
|
|
218
|
+
ref: f,
|
|
219
|
+
"data-slot": "switch",
|
|
220
|
+
[s]: "switch",
|
|
221
|
+
className: g(
|
|
222
|
+
h.root,
|
|
223
|
+
h[p],
|
|
224
|
+
h[e],
|
|
225
|
+
o
|
|
226
|
+
),
|
|
227
|
+
...n,
|
|
228
|
+
children: /* @__PURE__ */ k(
|
|
229
|
+
x,
|
|
230
|
+
{
|
|
231
|
+
"data-slot": "switch-thumb",
|
|
232
|
+
[s]: "switch-thumb",
|
|
233
|
+
className: g(
|
|
234
|
+
m.thumb,
|
|
235
|
+
m[p],
|
|
236
|
+
m[e]
|
|
237
|
+
),
|
|
238
|
+
children: [
|
|
239
|
+
d && !n.disabled && /* @__PURE__ */ t(N, {}),
|
|
240
|
+
d && !n.disabled && /* @__PURE__ */ t(D, {}),
|
|
241
|
+
d && n.disabled && /* @__PURE__ */ t(H, {})
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
});
|
|
248
|
+
export {
|
|
249
|
+
X as Switch
|
|
250
|
+
};
|
|
251
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.js","sources":["../../../src/components/switch/switch.tsx"],"sourcesContent":["import * as React from \"react\"\nimport * as SwitchPrimitive from \"@radix-ui/react-switch\"\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\nconst ThumbIconChecked = React.forwardRef<SVGSVGElement>(\n function ThumbIconChecked(_props, ref) {\n const styles = useThumbIconStyles()\n\n return (\n <svg\n ref={ref}\n data-slot=\"switch-thumb-icon-checked\"\n {...{ [SLOT_ATTR]: \"switch-thumb-icon-checked\" }}\n role=\"presentation\"\n className={styles.checked}\n viewBox=\"0 0 1 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect width=\"1\" height=\"6\" fill=\"currentColor\" />\n </svg>\n )\n }\n)\n\nconst ThumbIconUnchecked = React.forwardRef<SVGSVGElement>(\n function ThumbIconUnchecked(_props, ref) {\n const styles = useThumbIconStyles()\n\n return (\n <svg\n ref={ref}\n data-slot=\"switch-thumb-icon-unchecked\"\n {...{ [SLOT_ATTR]: \"switch-thumb-icon-unchecked\" }}\n role=\"presentation\"\n className={styles.unchecked}\n viewBox=\"0 0 4 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <rect\n x=\"0.5\"\n y=\"0.5\"\n width=\"3\"\n height=\"5\"\n rx=\"1.5\"\n stroke=\"currentColor\"\n />\n </svg>\n )\n }\n)\n\nconst ThumbIconDisabled = React.forwardRef<SVGSVGElement>(\n function ThumbIconDisabled(_props, ref) {\n const styles = useThumbIconStyles()\n\n return (\n <svg\n ref={ref}\n data-slot=\"switch-thumb-icon-disabled\"\n {...{ [SLOT_ATTR]: \"switch-thumb-icon-disabled\" }}\n className={styles.disabled}\n viewBox=\"0 0 4 5\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M0 5V1.875H0.666667V1.25C0.666667 0.90625 0.797223 0.611979 1.05833 0.367188C1.31944 0.122396 1.63333 0 2 0C2.36667 0 2.68056 0.122396 2.94167 0.367188C3.20278 0.611979 3.33333 0.90625 3.33333 1.25V1.875H4V5H0ZM1.33333 1.875H2.66667V1.25C2.66667 1.07292 2.60278 0.924479 2.475 0.804687C2.34722 0.684896 2.18889 0.625 2 0.625C1.81111 0.625 1.65278 0.684896 1.525 0.804687C1.39722 0.924479 1.33333 1.07292 1.33333 1.25V1.875Z\"\n fill=\"currentColor\"\n />\n </svg>\n )\n }\n)\n\nconst useThumbIconStyles = makeVoltStyles({\n checked: {\n display: \"none\",\n position: \"absolute\",\n pointerEvents: \"none\",\n ...shorthands.inset(0),\n color: \"currentColor\",\n ...shorthands.margin(\"auto\"),\n },\n unchecked: {\n display: \"none\",\n position: \"absolute\",\n pointerEvents: \"none\",\n ...shorthands.inset(0),\n color: \"currentColor\",\n ...shorthands.margin(\"auto\"),\n },\n disabled: {\n display: \"inline-block\",\n position: \"absolute\",\n pointerEvents: \"none\",\n ...shorthands.inset(0),\n color: \"currentColor\",\n ...shorthands.margin(\"auto\"),\n },\n})\n\nconst useRootStyles = makeVoltStyles({\n root: {\n boxSizing: \"border-box\",\n display: \"inline-flex\",\n alignItems: \"center\",\n flexShrink: 0,\n cursor: \"pointer\",\n borderRadius: \"9999px\",\n ...shorthands.border(\"1px\", \"solid\", \"transparent\"),\n boxShadow: \"0 1px 2px 0 #0000000d\",\n transitionProperty: \"all\",\n transitionTimingFunction: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n transitionDuration: \"150ms\",\n \":focus-visible\": {\n outlineWidth: \"2px\",\n outlineStyle: \"solid\",\n outlineOffset: \"2px\",\n },\n \":disabled, &[data-disabled]\": {\n pointerEvents: \"none\",\n opacity: 0.5,\n },\n },\n default: {\n color: tokens.grayA8,\n \"&[data-state='checked']\": { backgroundColor: tokens.semAccentSolid },\n \"&[data-state='unchecked']\": { backgroundColor: tokens.grayA3 },\n \":focus-visible\": { outlineColor: tokens.accentA8 },\n },\n destructive: {\n color: tokens.errorA8,\n \"&[data-state='checked']\": { backgroundColor: tokens.semErrorSolid },\n \"&[data-state='unchecked']\": { backgroundColor: tokens.errorA3 },\n \":focus-visible\": { outlineColor: tokens.errorA8 },\n },\n sm: {\n width: \"1.625rem\",\n height: \"1rem\",\n \"& svg\": { width: \"0.25rem\", height: \"0.375rem\" },\n },\n base: {\n width: \"2.125rem\",\n height: \"1.25rem\",\n \"& svg\": { width: \"0.4375rem\", height: \"0.5rem\" },\n },\n lg: {\n width: \"2.625rem\",\n height: \"1.5rem\",\n \"& svg\": { width: \"0.5rem\", height: \"0.625rem\" },\n },\n})\n\nconst useThumbStyles = makeVoltStyles({\n thumb: {\n position: \"relative\",\n display: \"block\",\n pointerEvents: \"none\",\n borderRadius: \"9999px\",\n boxShadow: \"0 1px 2px 0 #0000000d\",\n transitionProperty: \"transform\",\n transitionTimingFunction: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n transitionDuration: \"150ms\",\n \"&[data-state='checked']\": {\n transform: \"translateX(calc(100% - 1px))\",\n },\n \"&[data-state='unchecked']\": {\n transform: \"translateX(1px)\",\n },\n \"&[data-state='checked'] [data-volt2-slot='switch-thumb-icon-checked']\": {\n display: \"inline-block\",\n },\n \"&[data-state='unchecked'] [data-volt2-slot='switch-thumb-icon-unchecked']\":\n {\n display: \"inline-block\",\n },\n },\n default: {\n backgroundColor: tokens.grayContrast,\n color: tokens.grayA8,\n \"&[data-state='checked']\": { color: tokens.accentA11 },\n \"&[data-state='unchecked']\": { color: tokens.grayA8 },\n },\n destructive: {\n backgroundColor: tokens.errorContrast,\n color: tokens.errorA8,\n \"&[data-state='checked']\": { color: tokens.errorA11 },\n \"&[data-state='unchecked']\": { color: tokens.errorA8 },\n },\n sm: {\n width: \"0.75rem\",\n height: \"0.75rem\",\n \"& svg[data-volt2-slot='switch-thumb-icon-disabled']\": { width: \"0.25rem\" },\n },\n base: {\n width: \"1rem\",\n height: \"1rem\",\n \"& svg[data-volt2-slot='switch-thumb-icon-disabled']\": {\n width: \"0.375rem\",\n },\n },\n lg: {\n width: \"1.25rem\",\n height: \"1.25rem\",\n \"& svg[data-volt2-slot='switch-thumb-icon-disabled']\": {\n width: \"0.4375rem\",\n },\n },\n})\n\n/**\n * `primary` is a deprecated alias of `default`, carried because v1 has it and real consumers still\n * pass it — entity-sidepanel's SettingsControls does. v1's own comment marks it deprecated and its\n * styles are byte-identical to `default`, so it is mapped rather than duplicated.\n *\n * @remarks `primary` is deprecated; use `default`.\n */\nexport type SwitchVariant = \"default\" | \"destructive\" | \"primary\"\nexport type SwitchSize = \"sm\" | \"base\" | \"lg\"\n\nexport type SwitchProps = React.ComponentProps<typeof SwitchPrimitive.Root> & {\n variant?: SwitchVariant\n size?: SwitchSize\n showThumbIcon?: boolean\n}\n\nexport const Switch = React.forwardRef<\n React.ComponentRef<typeof SwitchPrimitive.Root>,\n SwitchProps\n>(function Switch(\n {\n variant = \"default\",\n size = \"base\",\n className,\n showThumbIcon = false,\n ...props\n },\n ref\n) {\n const rootStyles = useRootStyles()\n const thumbStyles = useThumbStyles()\n // See SwitchVariant: `primary` is v1's deprecated alias for `default`, same styles.\n const variantKey = variant === \"primary\" ? \"default\" : variant\n\n return (\n <SwitchPrimitive.Root\n ref={ref}\n data-slot=\"switch\"\n {...{ [SLOT_ATTR]: \"switch\" }}\n className={mergeClasses(\n rootStyles.root,\n rootStyles[variantKey],\n rootStyles[size],\n className\n )}\n {...props}\n >\n <SwitchPrimitive.Thumb\n data-slot=\"switch-thumb\"\n {...{ [SLOT_ATTR]: \"switch-thumb\" }}\n className={mergeClasses(\n thumbStyles.thumb,\n thumbStyles[variantKey],\n thumbStyles[size]\n )}\n >\n {showThumbIcon && !props.disabled && <ThumbIconChecked />}\n {showThumbIcon && !props.disabled && <ThumbIconUnchecked />}\n {showThumbIcon && props.disabled && <ThumbIconDisabled />}\n </SwitchPrimitive.Thumb>\n </SwitchPrimitive.Root>\n )\n})\n"],"names":["ThumbIconChecked","React","_props","ref","styles","useThumbIconStyles","jsx","SLOT_ATTR","ThumbIconUnchecked","ThumbIconDisabled","makeVoltStyles","shorthands","useRootStyles","tokens.grayA8","tokens.semAccentSolid","tokens.grayA3","tokens.accentA8","tokens.errorA8","tokens.semErrorSolid","tokens.errorA3","useThumbStyles","tokens.grayContrast","tokens.accentA11","tokens.errorContrast","tokens.errorA11","Switch","variant","size","className","showThumbIcon","props","rootStyles","thumbStyles","variantKey","SwitchPrimitive.Root","mergeClasses","jsxs","SwitchPrimitive.Thumb"],"mappings":"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"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Table — the primitive set (Table, TableHeader, TableBody, TableFooter, TableRow, TableHead,
|
|
4
|
+
* TableCell, TableCaption) in Card's compound pattern: one `makeVoltStyles` call, one slot per
|
|
5
|
+
* sub-component, each reading its own slot.
|
|
6
|
+
*
|
|
7
|
+
* v1 ships a density dimension through React context, defaulting to `normal`; TableHead and
|
|
8
|
+
* TableCell each resolve `effectiveDensity = density ?? contextDensity`, and that drives a height
|
|
9
|
+
* (head) or a vertical padding (cell) slot. Selectors carry over untouched where they do not
|
|
10
|
+
* involve `data-slot`: `[&_tr]:border-b`, `[&_tr:last-child]:border-0`,
|
|
11
|
+
* `data-[state=selected]:bg-accent-a3` (Radix selection state) and the `role="checkbox"`
|
|
12
|
+
* column-reflow rules all obey the original attribute.
|
|
13
|
+
*
|
|
14
|
+
* Values explicit where no token exists: `px-3` (0.75rem) on head/cell, the `h-9` / `h-10`
|
|
15
|
+
* heights (2.25rem / 2.5rem), `py-1.5` (0.375rem) and `py-3` (0.75rem) cell paddings. The row's
|
|
16
|
+
* `transition-colors` expands to Tailwind v4's default property list plus the 150ms
|
|
17
|
+
* `cubic-bezier(0.4, 0, 0.2, 1)` easing — visible motion from the framework's default theme,
|
|
18
|
+
* which the v1 file does not state (Rule 0: flagged, not approximated away). The checkbox
|
|
19
|
+
* `translate-y-[2px]` maps to the modern `translate` property, which is what Tailwind v4 emits.
|
|
20
|
+
*/
|
|
21
|
+
export type TableDensity = "compact" | "normal" | "comfortable";
|
|
22
|
+
declare const TableDensityContext: React.Context<TableDensity>;
|
|
23
|
+
export type TableProps = React.ComponentProps<"table"> & {
|
|
24
|
+
density?: TableDensity;
|
|
25
|
+
};
|
|
26
|
+
export declare const Table: React.ForwardRefExoticComponent<Omit<TableProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
27
|
+
export declare const TableHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
28
|
+
export declare const TableBody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
29
|
+
export declare const TableFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
30
|
+
export type TableRowProps = React.ComponentProps<"tr"> & {
|
|
31
|
+
/** Disable hover background effect */
|
|
32
|
+
noHover?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export declare const TableRow: React.ForwardRefExoticComponent<Omit<TableRowProps, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
35
|
+
export type TableHeadProps = React.ComponentProps<"th"> & {
|
|
36
|
+
align?: "left" | "center" | "right";
|
|
37
|
+
density?: TableDensity;
|
|
38
|
+
};
|
|
39
|
+
export declare const TableHead: React.ForwardRefExoticComponent<Omit<TableHeadProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
40
|
+
export type TableCellProps = React.ComponentProps<"td"> & {
|
|
41
|
+
align?: "left" | "center" | "right";
|
|
42
|
+
numeric?: boolean;
|
|
43
|
+
density?: TableDensity;
|
|
44
|
+
};
|
|
45
|
+
export declare const TableCell: React.ForwardRefExoticComponent<Omit<TableCellProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
46
|
+
export type TableCaptionProps = React.ComponentProps<"caption"> & {
|
|
47
|
+
position?: "top" | "bottom";
|
|
48
|
+
};
|
|
49
|
+
export declare const TableCaption: React.ForwardRefExoticComponent<Omit<TableCaptionProps, "ref"> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
50
|
+
export { TableDensityContext };
|