@sanity/ui 3.0.0-static.33 → 3.0.0-static.35
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 +1 -1
- package/dist/_chunks-cjs/_visual-editing.cjs +263 -375
- package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
- package/dist/_chunks-cjs/refractor.cjs.map +1 -1
- package/dist/_chunks-es/_visual-editing.js +263 -377
- package/dist/_chunks-es/_visual-editing.js.map +1 -1
- package/dist/_chunks-es/refractor.js.map +1 -1
- package/dist/_visual-editing.cjs +0 -2
- package/dist/_visual-editing.cjs.map +1 -1
- package/dist/_visual-editing.d.cts +34 -85
- package/dist/_visual-editing.d.ts +34 -85
- package/dist/_visual-editing.js +2 -4
- package/dist/css/index.cjs +12 -12
- package/dist/css/index.cjs.map +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/index.d.cts +383 -13934
- package/dist/css/index.d.ts +383 -13934
- package/dist/css/index.js +12 -12
- package/dist/css/index.js.map +1 -1
- package/dist/index.cjs +241 -366
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +107 -817
- package/dist/index.d.ts +107 -817
- package/dist/index.js +243 -360
- package/dist/index.js.map +1 -1
- package/dist/theme.cjs +367 -4288
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.cts +180 -1582
- package/dist/theme.d.ts +180 -1582
- package/dist/theme.js +371 -4292
- package/dist/theme.js.map +1 -1
- package/exports/_visual-editing.ts +0 -2
- package/package.json +3 -4
- package/src/core/Root.tsx +4 -2
- package/src/core/RootProvider.tsx +4 -4
- package/src/core/__workshop__/boundary.tsx +1 -1
- package/src/core/__workshop__/index.ts +5 -3
- package/src/core/components/autocomplete/__workshop__/async.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +2 -2
- package/src/core/components/autocomplete/__workshop__/custom.tsx +2 -2
- package/src/core/components/autocomplete/__workshop__/example.tsx +2 -2
- package/src/core/components/autocomplete/__workshop__/focusAndBlur.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +1 -1
- package/src/core/components/autocomplete/__workshop__/index.ts +5 -3
- package/src/core/components/autocomplete/__workshop__/mock/apiStore.ts +1 -1
- package/src/core/components/autocomplete/__workshop__/mock/countries.ts +1 -1
- package/src/core/components/autocomplete/autocomplete.tsx +2 -2
- package/src/core/components/autocomplete/autocompleteOption.tsx +2 -2
- package/src/core/components/autocomplete/constants.ts +2 -2
- package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -1
- package/src/core/components/breadcrumbs/__workshop__/index.ts +5 -3
- package/src/core/components/breadcrumbs/breadcrumbs.tsx +6 -11
- package/src/core/components/dialog/__workshop__/activate.tsx +1 -1
- package/src/core/components/dialog/__workshop__/autoFocus.tsx +1 -1
- package/src/core/components/dialog/__workshop__/index.ts +5 -3
- package/src/core/components/dialog/__workshop__/layering.tsx +1 -1
- package/src/core/components/dialog/__workshop__/nested.tsx +2 -3
- package/src/core/components/dialog/__workshop__/onScroll.tsx +1 -1
- package/src/core/components/dialog/__workshop__/panes.tsx +1 -1
- package/src/core/components/dialog/__workshop__/position.tsx +1 -1
- package/src/core/components/dialog/__workshop__/props.tsx +1 -1
- package/src/core/components/dialog/__workshop__/provider.tsx +1 -1
- package/src/core/components/dialog/__workshop__/wrapped.tsx +1 -1
- package/src/core/components/dialog/dialog.tsx +5 -6
- package/src/core/components/dialog/dialogCard.tsx +2 -2
- package/src/core/components/dialog/dialogContext.ts +3 -4
- package/src/core/components/dialog/dialogProvider.tsx +2 -2
- package/src/core/components/hotkeys/__workshop__/index.ts +5 -3
- package/src/core/components/hotkeys/__workshop__/plain.tsx +1 -1
- package/src/core/components/hotkeys/hotkeys.tsx +4 -15
- package/src/core/components/menu/__workshop__/asComponent.tsx +1 -1
- package/src/core/components/menu/__workshop__/avatarMenu.tsx +1 -1
- package/src/core/components/menu/__workshop__/closableMenuButton.tsx +1 -1
- package/src/core/components/menu/__workshop__/constrainedInBoundary.tsx +3 -3
- package/src/core/components/menu/__workshop__/customMenuItem.tsx +1 -1
- package/src/core/components/menu/__workshop__/customSelectedState.tsx +1 -1
- package/src/core/components/menu/__workshop__/disableFocusOnClose.tsx +1 -1
- package/src/core/components/menu/__workshop__/groups.tsx +1 -1
- package/src/core/components/menu/__workshop__/index.ts +5 -3
- package/src/core/components/menu/__workshop__/menuButton.tsx +2 -2
- package/src/core/components/menu/__workshop__/menuGroupRight.tsx +1 -1
- package/src/core/components/menu/__workshop__/nestedMenu.tsx +1 -1
- package/src/core/components/menu/__workshop__/onCloseMenuButton.tsx +1 -1
- package/src/core/components/menu/__workshop__/selectedItem.tsx +1 -1
- package/src/core/components/menu/__workshop__/shouldFocus.tsx +1 -1
- package/src/core/components/menu/__workshop__/tones.tsx +3 -3
- package/src/core/components/menu/__workshop__/withoutArrow.tsx +1 -1
- package/src/core/components/menu/menu.test.tsx +2 -1
- package/src/core/components/menu/menu.tsx +7 -22
- package/src/core/components/menu/menuButton.tsx +4 -50
- package/src/core/components/menu/menuContext.ts +3 -15
- package/src/core/components/menu/menuDivider.tsx +2 -2
- package/src/core/components/menu/menuGroup.tsx +10 -15
- package/src/core/components/menu/menuItem.tsx +7 -18
- package/src/core/components/tab/__workshop__/example.tsx +1 -1
- package/src/core/components/tab/__workshop__/index.ts +5 -3
- package/src/core/components/tab/tab.tsx +6 -4
- package/src/core/components/tab/tabList.tsx +3 -8
- package/src/core/components/tab/tabPanel.tsx +2 -2
- package/src/core/components/toast/__workshop__/hook.tsx +1 -1
- package/src/core/components/toast/__workshop__/index.ts +5 -3
- package/src/core/components/toast/__workshop__/toast.tsx +1 -1
- package/src/core/components/toast/toast.test.tsx +2 -1
- package/src/core/components/toast/toast.tsx +2 -2
- package/src/core/components/toast/toastContext.ts +4 -4
- package/src/core/components/toast/toastLayer.tsx +3 -3
- package/src/core/components/tree/__workshop__/basic.perf.ts +1 -1
- package/src/core/components/tree/__workshop__/basic.tsx +1 -1
- package/src/core/components/tree/__workshop__/index.ts +5 -3
- package/src/core/components/tree/__workshop__/tabFromElement.tsx +1 -1
- package/src/core/components/tree/tree.tsx +8 -9
- package/src/core/components/tree/treeContext.ts +4 -4
- package/src/core/components/tree/treeGroup.tsx +6 -8
- package/src/core/components/tree/treeItem.tsx +4 -4
- package/src/core/components/tree/types.ts +1 -1
- package/src/core/components/virtualList/__workshop__/changingProps.tsx +1 -1
- package/src/core/components/virtualList/__workshop__/elementScroll.tsx +1 -1
- package/src/core/components/virtualList/__workshop__/index.ts +5 -3
- package/src/core/components/virtualList/__workshop__/infiniteList.tsx +1 -1
- package/src/core/components/virtualList/__workshop__/windowScrolll.tsx +1 -1
- package/src/core/components/virtualList/virtualList.tsx +2 -2
- package/src/core/constants.ts +0 -18
- package/src/core/hooks/useMediaIndex/__workshop__/index.ts +5 -3
- package/src/core/hooks/useMediaIndex/__workshop__/test.tsx +1 -1
- package/src/core/hooks/useMediaIndex/useMediaIndex.ts +6 -1
- package/src/core/index.ts +1 -24
- package/src/core/lib/createGlobalScopedContext.ts +1 -1
- package/src/core/lib/globalScope.ts +1 -1
- package/src/core/observers/elementSize.ts +1 -1
- package/src/core/primitives/arrow/arrow.tsx +2 -2
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/index.ts +5 -3
- package/src/core/primitives/avatar/__workshop__/stack.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/withinButton.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +1 -1
- package/src/core/primitives/avatar/avatar.tsx +3 -10
- package/src/core/primitives/avatar/avatarCounter.tsx +2 -2
- package/src/core/primitives/avatar/avatarStack.tsx +2 -4
- package/src/core/primitives/avatar/types.ts +0 -32
- package/src/core/primitives/badge/__workshop__/index.ts +5 -3
- package/src/core/primitives/badge/__workshop__/props.tsx +1 -1
- package/src/core/primitives/badge/__workshop__/tones.tsx +3 -3
- package/src/core/primitives/badge/badge.test.tsx +2 -1
- package/src/core/primitives/badge/badge.tsx +12 -11
- package/src/core/primitives/box/__workshop__/index.ts +5 -3
- package/src/core/primitives/box/__workshop__/props.tsx +1 -1
- package/src/core/primitives/box/__workshop__/responsive.tsx +1 -1
- package/src/core/primitives/box/box.tsx +28 -32
- package/src/core/primitives/button/__workshop__/custom.tsx +5 -5
- package/src/core/primitives/button/__workshop__/customIcons.tsx +1 -1
- package/src/core/primitives/button/__workshop__/disabled.tsx +3 -3
- package/src/core/primitives/button/__workshop__/index.ts +5 -3
- package/src/core/primitives/button/__workshop__/mixedChildren.tsx +1 -1
- package/src/core/primitives/button/__workshop__/props.tsx +1 -1
- package/src/core/primitives/button/__workshop__/sanityUploadButton.tsx +1 -1
- package/src/core/primitives/button/__workshop__/stacked.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled1.tsx +1 -1
- package/src/core/primitives/button/__workshop__/styled2.tsx +1 -1
- package/src/core/primitives/button/__workshop__/textOverflow.tsx +1 -1
- package/src/core/primitives/button/__workshop__/uploadButton.tsx +1 -1
- package/src/core/primitives/button/button.test.tsx +2 -1
- package/src/core/primitives/button/button.tsx +4 -7
- package/src/core/primitives/button/types.ts +0 -20
- package/src/core/primitives/card/__workshop__/asButton.tsx +2 -2
- package/src/core/primitives/card/__workshop__/asComponent.tsx +1 -1
- package/src/core/primitives/card/__workshop__/checkered.tsx +3 -3
- package/src/core/primitives/card/__workshop__/index.ts +5 -3
- package/src/core/primitives/card/__workshop__/interactive.tsx +1 -1
- package/src/core/primitives/card/__workshop__/listNavigation.tsx +1 -1
- package/src/core/primitives/card/__workshop__/props.tsx +1 -1
- package/src/core/primitives/card/__workshop__/selected.tsx +1 -1
- package/src/core/primitives/card/__workshop__/styled.tsx +1 -1
- package/src/core/primitives/card/__workshop__/tones.tsx +3 -3
- package/src/core/primitives/card/card.tsx +4 -2
- package/src/core/primitives/card/cardContext.ts +1 -1
- package/src/core/primitives/card/cardProvider.tsx +4 -4
- package/src/core/primitives/card/types.ts +5 -19
- package/src/core/primitives/checkbox/__workshop__/example.tsx +1 -1
- package/src/core/primitives/checkbox/__workshop__/index.ts +5 -3
- package/src/core/primitives/checkbox/__workshop__/props.tsx +1 -1
- package/src/core/primitives/checkbox/__workshop__/readOnly.tsx +1 -1
- package/src/core/primitives/checkbox/__workshop__/tones.tsx +3 -3
- package/src/core/primitives/checkbox/checkbox.tsx +2 -2
- package/src/core/primitives/code/__workshop__/index.ts +5 -3
- package/src/core/primitives/code/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/code/__workshop__/props.tsx +1 -1
- package/src/core/primitives/code/code.tsx +4 -2
- package/src/core/primitives/code/refractor.tsx +1 -1
- package/src/core/primitives/container/__workshop__/example.tsx +1 -1
- package/src/core/primitives/container/__workshop__/index.ts +5 -3
- package/src/core/primitives/container/container.tsx +2 -2
- package/src/core/primitives/flex/__workshop__/example.tsx +1 -1
- package/src/core/primitives/flex/__workshop__/gap.tsx +1 -1
- package/src/core/primitives/flex/__workshop__/index.ts +5 -3
- package/src/core/primitives/flex/flex.tsx +4 -2
- package/src/core/primitives/grid/__workshop__/index.ts +5 -3
- package/src/core/primitives/grid/__workshop__/responsive.tsx +3 -3
- package/src/core/primitives/grid/grid.tsx +4 -2
- package/src/core/primitives/heading/__workshop__/index.ts +5 -3
- package/src/core/primitives/heading/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/heading/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/heading/heading.tsx +2 -4
- package/src/core/primitives/inline/__workshop__/index.ts +5 -3
- package/src/core/primitives/inline/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/inline/inline.tsx +4 -11
- package/src/core/primitives/kbd/__workshop__/index.ts +5 -3
- package/src/core/primitives/kbd/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/kbd/kbd.tsx +4 -2
- package/src/core/primitives/label/__workshop__/index.ts +5 -3
- package/src/core/primitives/label/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/label/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/label/label.tsx +2 -4
- package/src/core/primitives/layer/__workshop__/_debug.tsx +1 -1
- package/src/core/primitives/layer/__workshop__/index.ts +5 -3
- package/src/core/primitives/layer/__workshop__/multipleRoots.tsx +1 -1
- package/src/core/primitives/layer/__workshop__/nested.tsx +1 -1
- package/src/core/primitives/layer/__workshop__/responsiveZOffset.tsx +1 -1
- package/src/core/primitives/layer/layer.test.tsx +2 -1
- package/src/core/primitives/layer/layer.tsx +2 -2
- package/src/core/primitives/layer/layerCard.tsx +2 -2
- package/src/core/primitives/layer/layerContext.ts +4 -4
- package/src/core/primitives/layer/layerProvider.tsx +2 -10
- package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +2 -2
- package/src/core/primitives/popover/__workshop__/MarginsStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/OpenOnMountStory.tsx +1 -1
- package/src/core/primitives/popover/__workshop__/PlainStory.tsx +2 -2
- package/src/core/primitives/popover/__workshop__/RecursiveStory.tsx +3 -3
- package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +3 -3
- package/src/core/primitives/popover/__workshop__/index.ts +5 -3
- package/src/core/primitives/popover/popover.tsx +4 -9
- package/src/core/primitives/popover/popoverLayer.tsx +2 -2
- package/src/core/primitives/radio/__workshop__/example.tsx +1 -1
- package/src/core/primitives/radio/__workshop__/index.ts +5 -3
- package/src/core/primitives/radio/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/radio/radio.tsx +2 -2
- package/src/core/primitives/select/__workshop__/index.ts +5 -3
- package/src/core/primitives/select/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/select/__workshop__/readOnly.tsx +1 -1
- package/src/core/primitives/select/select.tsx +5 -15
- package/src/core/primitives/selectable/selectable.tsx +4 -4
- package/src/core/primitives/skeleton/__workshop__/delay.tsx +1 -1
- package/src/core/primitives/skeleton/__workshop__/index.ts +5 -3
- package/src/core/primitives/skeleton/__workshop__/skeleton.tsx +2 -2
- package/src/core/primitives/skeleton/codeSkeleton.tsx +2 -2
- package/src/core/primitives/skeleton/headingSkeleton.tsx +2 -2
- package/src/core/primitives/skeleton/labelSkeleton.tsx +2 -2
- package/src/core/primitives/skeleton/skeleton.tsx +2 -2
- package/src/core/primitives/skeleton/textSkeleton.tsx +2 -2
- package/src/core/primitives/spinner/__workshop__/Props.tsx +1 -1
- package/src/core/primitives/spinner/__workshop__/index.ts +5 -3
- package/src/core/primitives/spinner/animatedSpinnerIcon.tsx +2 -2
- package/src/core/primitives/spinner/spinner.tsx +2 -2
- package/src/core/primitives/srOnly/srOnly.tsx +2 -2
- package/src/core/primitives/stack/__workshop__/index.ts +5 -3
- package/src/core/primitives/stack/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/stack/stack.tsx +5 -10
- package/src/core/primitives/switch/__workshop__/example.tsx +1 -1
- package/src/core/primitives/switch/__workshop__/index.ts +5 -3
- package/src/core/primitives/switch/__workshop__/props.tsx +1 -1
- package/src/core/primitives/switch/switch.tsx +2 -2
- package/src/core/primitives/text/__workshop__/colored.tsx +1 -1
- package/src/core/primitives/text/__workshop__/example.tsx +1 -1
- package/src/core/primitives/text/__workshop__/index.ts +5 -3
- package/src/core/primitives/text/__workshop__/opticalAlignment.tsx +1 -1
- package/src/core/primitives/text/text.tsx +4 -4
- package/src/core/primitives/textArea/__workshop__/index.ts +5 -3
- package/src/core/primitives/textArea/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/textArea/textArea.tsx +5 -15
- package/src/core/primitives/textInput/__workshop__/clearButton.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/customValidity.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/index.ts +5 -3
- package/src/core/primitives/textInput/__workshop__/plain.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/readOnly.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/states.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/tones.tsx +1 -1
- package/src/core/primitives/textInput/__workshop__/typed.tsx +1 -1
- package/src/core/primitives/textInput/textInput.tsx +6 -9
- package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/index.ts +5 -3
- package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/props.tsx +1 -1
- package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +1 -1
- package/src/core/primitives/tooltip/constants.ts +1 -1
- package/src/core/primitives/tooltip/tooltip.test.tsx +2 -4
- package/src/core/primitives/tooltip/tooltip.tsx +5 -9
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupContext.tsx +4 -2
- package/src/core/primitives/tooltip/tooltipDelayGroup/tooltipDelayGroupProvider.tsx +5 -3
- package/src/core/primitives/tooltip/tooltipLayer.tsx +2 -2
- package/src/core/{types/props.ts → types.ts} +27 -0
- package/src/core/utils/boundaryElement/__workshop__/index.ts +5 -3
- package/src/core/utils/boundaryElement/__workshop__/plain.tsx +1 -1
- package/src/core/utils/boundaryElement/boundaryElement.test.tsx +2 -1
- package/src/core/utils/boundaryElement/boundaryElementContext.ts +7 -4
- package/src/core/utils/boundaryElement/boundaryElementProvider.tsx +2 -2
- package/src/core/utils/elementQuery/__workshop__/customMedia.tsx +1 -1
- package/src/core/utils/elementQuery/__workshop__/index.ts +5 -3
- package/src/core/utils/elementQuery/elementQuery.tsx +2 -2
- package/src/core/utils/getElementRef.ts +1 -1
- package/src/core/utils/portal/__workshop__/index.ts +5 -3
- package/src/core/utils/portal/__workshop__/named.tsx +1 -1
- package/src/core/utils/portal/portal.test.tsx +2 -1
- package/src/core/utils/portal/portalContext.ts +5 -2
- package/src/core/utils/portal/portalProvider.tsx +5 -9
- package/src/css/_responsiveClassName.ts +2 -2
- package/src/css/_style.css.ts +1 -1
- package/src/css/components/breadcrumbs/breadcrumbs.css.ts +1 -1
- package/src/css/components/dialog/dialog.css.ts +9 -17
- package/src/css/components/menu/menu.css.ts +2 -2
- package/src/css/components/menu/menu.ts +2 -2
- package/src/css/components/skeleton/skeleton.css.ts +2 -6
- package/src/css/components/toast/toast.css.ts +2 -2
- package/src/css/components/toast/toast.ts +2 -2
- package/src/css/components/tree/tree.css.ts +1 -1
- package/src/css/components/tree/tree.ts +1 -1
- package/src/css/defaultTheme.css.ts +59 -60
- package/src/css/layers.css.ts +4 -1
- package/src/css/primitives/_arrow/_arrow.css.ts +5 -5
- package/src/css/primitives/_input/_input.css.ts +4 -4
- package/src/css/primitives/_selectable/_selectable.css.ts +4 -4
- package/src/css/primitives/_selectable/types.ts +2 -2
- package/src/css/primitives/avatar/avatar.css.ts +10 -10
- package/src/css/primitives/badge/badge.css.ts +4 -4
- package/src/css/primitives/badge/types.ts +8 -2
- package/src/css/primitives/box/box.css.ts +2 -2
- package/src/css/primitives/button/button.css.ts +6 -6
- package/src/css/primitives/button/button.ts +2 -2
- package/src/css/primitives/button/types.ts +3 -3
- package/src/css/primitives/card/__workshop__/color.tsx +9 -9
- package/src/css/primitives/card/__workshop__/index.ts +5 -3
- package/src/css/primitives/card/card.css.ts +12 -18
- package/src/css/primitives/card/types.ts +3 -3
- package/src/css/primitives/checkbox/checkbox.css.ts +3 -3
- package/src/css/primitives/checkbox/checkbox.ts +3 -3
- package/src/css/primitives/code/code.css.ts +4 -3
- package/src/css/primitives/code/types.ts +3 -4
- package/src/css/primitives/container/container.css.ts +1 -1
- package/src/css/primitives/heading/heading.css.ts +5 -4
- package/src/css/primitives/heading/types.ts +3 -6
- package/src/css/primitives/kbd/kbd.css.ts +1 -1
- package/src/css/primitives/label/label.css.ts +5 -4
- package/src/css/primitives/label/types.ts +0 -8
- package/src/css/primitives/popover/popover.css.ts +2 -2
- package/src/css/primitives/popover/popover.ts +2 -2
- package/src/css/primitives/radio/radio.css.ts +3 -3
- package/src/css/primitives/radio/radio.ts +3 -3
- package/src/css/primitives/root/root.css.ts +1 -1
- package/src/css/primitives/root/root.ts +1 -1
- package/src/css/primitives/root/types.ts +3 -3
- package/src/css/primitives/select/select.css.ts +3 -3
- package/src/css/primitives/spinner/spinner.css.ts +2 -6
- package/src/css/primitives/spinner/spinner.ts +2 -2
- package/src/css/primitives/srOnly/srOnly.css.ts +1 -1
- package/src/css/primitives/srOnly/srOnly.ts +1 -1
- package/src/css/primitives/stack/stack.css.ts +1 -1
- package/src/css/primitives/stack/stack.ts +1 -1
- package/src/css/primitives/switch/switch.css.ts +5 -5
- package/src/css/primitives/text/text.css.ts +5 -4
- package/src/css/primitives/text/types.ts +3 -5
- package/src/css/primitives/textArea/textArea.css.ts +1 -1
- package/src/css/primitives/textInput/textInput.css.ts +4 -4
- package/src/css/primitives/tooltip/tooltip.css.ts +1 -1
- package/src/css/props/alignItems/alignItems.ts +1 -1
- package/src/css/props/border/border.ts +1 -16
- package/src/css/props/boxSizing/boxSizing.css.ts +2 -1
- package/src/css/props/boxSizing/boxSizing.ts +0 -3
- package/src/css/props/display/display.ts +1 -10
- package/src/css/props/flex/flex.ts +1 -1
- package/src/css/props/flexDirection/flexDirection.ts +1 -1
- package/src/css/props/flexWrap/flexWrap.ts +1 -1
- package/src/css/props/font/font.css.ts +3 -2
- package/src/css/props/font/font.ts +1 -1
- package/src/css/props/gap/gap.ts +1 -1
- package/src/css/props/gridAutoColumns/gridAutoColumns.css.ts +2 -2
- package/src/css/props/gridAutoColumns/gridAutoColumns.ts +2 -2
- package/src/css/props/gridAutoColumns/types.ts +0 -10
- package/src/css/props/gridAutoFlow/gridAutoFlow.ts +2 -2
- package/src/css/props/gridAutoFlow/types.ts +0 -4
- package/src/css/props/gridAutoRows/gridAutoRows.ts +2 -2
- package/src/css/props/gridAutoRows/types.ts +0 -4
- package/src/css/props/gridColumn/gridColumn.ts +3 -3
- package/src/css/props/gridColumn/types.ts +0 -10
- package/src/css/props/gridColumnEnd/gridColumnEnd.ts +3 -3
- package/src/css/props/gridColumnEnd/types.ts +0 -10
- package/src/css/props/gridColumnStart/gridColumnStart.ts +3 -6
- package/src/css/props/gridColumnStart/types.ts +0 -10
- package/src/css/props/gridRow/gridRow.ts +3 -3
- package/src/css/props/gridRow/types.ts +0 -10
- package/src/css/props/gridRowEnd/gridRowEnd.ts +3 -3
- package/src/css/props/gridRowEnd/types.ts +0 -10
- package/src/css/props/gridRowStart/gridRowStart.ts +3 -3
- package/src/css/props/gridRowStart/types.ts +0 -10
- package/src/css/props/gridTemplateColumns/gridTemplateColumns.ts +2 -2
- package/src/css/props/gridTemplateColumns/types.ts +0 -10
- package/src/css/props/gridTemplateRows/gridTemplateRows.ts +2 -2
- package/src/css/props/gridTemplateRows/types.ts +0 -10
- package/src/css/props/height/height.ts +1 -1
- package/src/css/props/height/types.ts +0 -6
- package/src/css/props/inset/inset.ts +1 -1
- package/src/css/props/justifyContent/justifyContent.ts +1 -1
- package/src/css/props/margin/margin.ts +1 -1
- package/src/css/props/maxWidth/maxWidth.ts +1 -1
- package/src/css/props/minHeight/minHeight.ts +1 -1
- package/src/css/props/minWidth/minWidth.ts +1 -1
- package/src/css/props/outline/outline.ts +1 -1
- package/src/css/props/overflow/overflow.ts +1 -1
- package/src/css/props/overflow/types.ts +0 -6
- package/src/css/props/padding/padding.ts +1 -1
- package/src/css/props/pointerEvents/pointerEvents.ts +1 -1
- package/src/css/props/position/position.ts +1 -1
- package/src/css/props/radius/radius.ts +1 -1
- package/src/css/props/shadow/shadow.ts +1 -1
- package/src/css/props/textAlign/textAlign.ts +1 -1
- package/src/css/props/textOverflow/textOverflow.ts +1 -1
- package/src/css/props/width/width.ts +1 -1
- package/src/css/types.ts +225 -53
- package/src/css/util.ts +2 -2
- package/src/css/vars.css.ts +33 -36
- package/src/theme/{v3/_parseColorToken.ts → _parseColorToken.ts} +2 -2
- package/src/theme/buildTheme.ts +33 -0
- package/src/theme/constants.ts +90 -0
- package/src/theme/defaults/color.ts +197 -0
- package/src/theme/{v2/defaults/config.ts → defaults/common.ts} +3 -16
- package/src/theme/{v3/defaultFonts.ts → defaults/fonts.ts} +2 -2
- package/src/theme/index.ts +4 -5
- package/src/theme/{v3/resolveTokens.ts → resolveTokens.ts} +15 -15
- package/src/theme/types.ts +355 -15
- package/src/core/__DEV__.ts +0 -5
- package/src/core/_compat/helpers.ts +0 -72
- package/src/core/_compat/styles/_responsive.ts +0 -19
- package/src/core/_compat/theme/theme.test.tsx +0 -73
- package/src/core/_compat/theme/themeColorProvider.tsx +0 -24
- package/src/core/_compat/theme/themeContext.ts +0 -10
- package/src/core/_compat/theme/themeProvider.tsx +0 -68
- package/src/core/_compat/theme/types.ts +0 -10
- package/src/core/_compat/theme/useRootTheme.ts +0 -15
- package/src/core/_compat/theme/useTheme.ts +0 -12
- package/src/core/_compat/types.ts +0 -191
- package/src/core/hooks/useArrayProp.ts +0 -26
- package/src/core/hooks/useClickOutside.test.tsx +0 -481
- package/src/core/hooks/useClickOutside.ts +0 -113
- package/src/core/hooks/useElementRect/__workshop__/example.tsx +0 -30
- package/src/core/hooks/useElementRect/__workshop__/index.ts +0 -14
- package/src/core/hooks/useElementRect/useElementRect.ts +0 -13
- package/src/core/hooks/useForwardedRef.ts +0 -19
- package/src/core/hooks/useIsomorphicEffect.ts +0 -7
- package/src/core/primitives/badge/types.ts +0 -18
- package/src/core/primitives/box/types.ts +0 -22
- package/src/core/primitives/flex/types.ts +0 -27
- package/src/core/primitives/grid/types.ts +0 -17
- package/src/core/primitives/selectable/types.ts +0 -7
- package/src/core/primitives/types.ts +0 -153
- package/src/core/types/gridItem.ts +0 -32
- package/src/core/types/placement.ts +0 -18
- package/src/core/types/radius.ts +0 -7
- package/src/core/types/textAlign.ts +0 -7
- package/src/core/utils/spanWithTextOverflow.tsx +0 -10
- package/src/theme/getScopedTheme.ts +0 -88
- package/src/theme/v0/avatar.ts +0 -10
- package/src/theme/v0/color/_generic.ts +0 -35
- package/src/theme/v0/color/_system.ts +0 -17
- package/src/theme/v0/color/base.ts +0 -21
- package/src/theme/v0/color/button.ts +0 -42
- package/src/theme/v0/color/card.ts +0 -19
- package/src/theme/v0/color/color.ts +0 -40
- package/src/theme/v0/color/index.ts +0 -11
- package/src/theme/v0/color/input.ts +0 -34
- package/src/theme/v0/color/muted.ts +0 -26
- package/src/theme/v0/color/selectable.ts +0 -31
- package/src/theme/v0/color/solid.ts +0 -26
- package/src/theme/v0/color/spot.ts +0 -13
- package/src/theme/v0/css.ts +0 -10
- package/src/theme/v0/focusRing.ts +0 -5
- package/src/theme/v0/font.ts +0 -40
- package/src/theme/v0/index.ts +0 -10
- package/src/theme/v0/input.ts +0 -23
- package/src/theme/v0/layer.ts +0 -6
- package/src/theme/v0/shadow.ts +0 -15
- package/src/theme/v0/styles.ts +0 -13
- package/src/theme/v0/theme.ts +0 -72
- package/src/theme/v2/avatar.ts +0 -12
- package/src/theme/v2/build/_deprecated/color/_selectable/createSelectableTones.ts +0 -76
- package/src/theme/v2/build/_deprecated/color/_solid/createSolidTones.ts +0 -54
- package/src/theme/v2/build/_deprecated/color/button/createButtonModes.ts +0 -22
- package/src/theme/v2/build/_deprecated/color/button/createButtonTones.ts +0 -55
- package/src/theme/v2/build/_deprecated/color/card/createCardStates.ts +0 -60
- package/src/theme/v2/build/_deprecated/color/color.test.ts +0 -63
- package/src/theme/v2/build/_deprecated/color/defaults.ts +0 -390
- package/src/theme/v2/build/_deprecated/color/factory.ts +0 -141
- package/src/theme/v2/build/_deprecated/color/index.ts +0 -1
- package/src/theme/v2/build/_deprecated/color/input/createInputModes.ts +0 -86
- package/src/theme/v2/build/_deprecated/color/muted/createMuted.ts +0 -54
- package/src/theme/v2/build/_deprecated/color/spot/createSpot.ts +0 -20
- package/src/theme/v2/build/buildColorTheme.test.ts +0 -185
- package/src/theme/v2/build/buildColorTheme.ts +0 -494
- package/src/theme/v2/build/buildTheme.test.ts +0 -89
- package/src/theme/v2/build/buildTheme.ts +0 -37
- package/src/theme/v2/build/colorToken/colorToken.ts +0 -19
- package/src/theme/v2/build/colorToken/compileColorToken.ts +0 -21
- package/src/theme/v2/build/colorToken/index.ts +0 -2
- package/src/theme/v2/build/colorToken/types.ts +0 -6
- package/src/theme/v2/build/index.ts +0 -3
- package/src/theme/v2/build/lib/color-fns/blend/index.ts +0 -3
- package/src/theme/v2/build/lib/color-fns/blend/mix.ts +0 -21
- package/src/theme/v2/build/lib/color-fns/blend/multiply.ts +0 -18
- package/src/theme/v2/build/lib/color-fns/blend/screen.ts +0 -18
- package/src/theme/v2/build/lib/color-fns/color-fns.test.ts +0 -68
- package/src/theme/v2/build/lib/color-fns/contrastRatio.ts +0 -34
- package/src/theme/v2/build/lib/color-fns/convert.ts +0 -150
- package/src/theme/v2/build/lib/color-fns/index.ts +0 -6
- package/src/theme/v2/build/lib/color-fns/parse.ts +0 -60
- package/src/theme/v2/build/lib/color-fns/rgba.ts +0 -14
- package/src/theme/v2/build/lib/color-fns/types.ts +0 -28
- package/src/theme/v2/build/lib/isRecord.ts +0 -3
- package/src/theme/v2/build/lib/utils.ts +0 -19
- package/src/theme/v2/build/merge.ts +0 -28
- package/src/theme/v2/build/mixThemeColor.test.ts +0 -23
- package/src/theme/v2/build/mixThemeColor.ts +0 -53
- package/src/theme/v2/build/renderColorTheme.ts +0 -532
- package/src/theme/v2/build/renderColorValue.ts +0 -85
- package/src/theme/v2/build/resolveColorTokens.ts +0 -268
- package/src/theme/v2/color/_constants.ts +0 -45
- package/src/theme/v2/color/_helpers.ts +0 -24
- package/src/theme/v2/color/_system.ts +0 -38
- package/src/theme/v2/color/avatar.ts +0 -11
- package/src/theme/v2/color/badge.ts +0 -12
- package/src/theme/v2/color/button.ts +0 -11
- package/src/theme/v2/color/color.ts +0 -28
- package/src/theme/v2/color/index.ts +0 -13
- package/src/theme/v2/color/input.ts +0 -23
- package/src/theme/v2/color/kbd.ts +0 -6
- package/src/theme/v2/color/selectable.ts +0 -8
- package/src/theme/v2/color/shadow.ts +0 -7
- package/src/theme/v2/color/state.ts +0 -41
- package/src/theme/v2/color/syntax.ts +0 -39
- package/src/theme/v2/config/helpers.ts +0 -48
- package/src/theme/v2/config/index.ts +0 -4
- package/src/theme/v2/config/system.ts +0 -114
- package/src/theme/v2/config/tokens/color/index.ts +0 -1
- package/src/theme/v2/config/tokens/color/types.ts +0 -137
- package/src/theme/v2/config/tokens/index.ts +0 -3
- package/src/theme/v2/config/tokens/parseTokenValue.test.ts +0 -44
- package/src/theme/v2/config/tokens/parseTokenValue.ts +0 -133
- package/src/theme/v2/config/tokens/types.ts +0 -53
- package/src/theme/v2/config/types.ts +0 -47
- package/src/theme/v2/defaults/colorPalette.ts +0 -5
- package/src/theme/v2/defaults/colorTokens.ts +0 -648
- package/src/theme/v2/defaults/fonts.ts +0 -227
- package/src/theme/v2/index.ts +0 -6
- package/src/theme/v2/input.ts +0 -31
- package/src/theme/v2/theme.ts +0 -45
- package/src/theme/v3/_constants.ts +0 -29
- package/src/theme/v3/buildTheme_v3.ts +0 -39
- package/src/theme/v3/color/_constants.ts +0 -15
- package/src/theme/v3/color/avatar.ts +0 -14
- package/src/theme/v3/color/card.ts +0 -79
- package/src/theme/v3/color/color.ts +0 -98
- package/src/theme/v3/color/element.ts +0 -19
- package/src/theme/v3/color/index.ts +0 -7
- package/src/theme/v3/color/token.ts +0 -32
- package/src/theme/v3/color/tokens.ts +0 -5
- package/src/theme/v3/defaultTokens.ts +0 -199
- package/src/theme/v3/index.ts +0 -9
- package/src/theme/v3/palette/constants.ts +0 -15
- package/src/theme/v3/palette/index.ts +0 -2
- package/src/theme/v3/palette/types.ts +0 -7
- package/src/theme/v3/tokens.ts +0 -16
- package/src/theme/v3/types.ts +0 -133
- package/src/theme/versioning/getTheme_v2.ts +0 -58
- package/src/theme/versioning/index.ts +0 -1
- package/src/theme/versioning/is_v0.ts +0 -7
- package/src/theme/versioning/is_v2.ts +0 -7
- package/src/theme/versioning/themeColor_v0_v2.ts +0 -245
- package/src/theme/versioning/themeColor_v2_v2_9.ts +0 -49
- package/src/theme/versioning/themeColor_v3_v2.ts +0 -383
- package/src/theme/versioning/v0_v2.ts +0 -95
- package/src/theme/versioning/v2_v0.ts +0 -127
- package/src/theme/versioning/v3_v2.ts +0 -130
- /package/src/theme/{v3/merge.ts → merge.ts} +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ThemeColorBase,
|
|
3
|
-
ThemeColorButtonTones,
|
|
4
|
-
ThemeColorMuted,
|
|
5
|
-
ThemeColorSolid,
|
|
6
|
-
} from '../../../../../v0'
|
|
7
|
-
import type {ThemeColorButtonModeKey} from '../../../../color'
|
|
8
|
-
import type {ThemeColorBuilderOpts} from '../factory'
|
|
9
|
-
|
|
10
|
-
export function createButtonTones(
|
|
11
|
-
opts: ThemeColorBuilderOpts,
|
|
12
|
-
base: ThemeColorBase,
|
|
13
|
-
dark: boolean,
|
|
14
|
-
solid: ThemeColorSolid,
|
|
15
|
-
muted: ThemeColorMuted,
|
|
16
|
-
mode: ThemeColorButtonModeKey,
|
|
17
|
-
): ThemeColorButtonTones {
|
|
18
|
-
return {
|
|
19
|
-
default: opts.button({
|
|
20
|
-
base,
|
|
21
|
-
dark,
|
|
22
|
-
solid: solid.default,
|
|
23
|
-
muted: muted.default,
|
|
24
|
-
mode,
|
|
25
|
-
}),
|
|
26
|
-
primary: opts.button({
|
|
27
|
-
base,
|
|
28
|
-
dark,
|
|
29
|
-
solid: solid.primary,
|
|
30
|
-
muted: muted.primary,
|
|
31
|
-
mode,
|
|
32
|
-
}),
|
|
33
|
-
positive: opts.button({
|
|
34
|
-
base,
|
|
35
|
-
dark,
|
|
36
|
-
solid: solid.positive,
|
|
37
|
-
muted: muted.positive,
|
|
38
|
-
mode,
|
|
39
|
-
}),
|
|
40
|
-
caution: opts.button({
|
|
41
|
-
base,
|
|
42
|
-
dark,
|
|
43
|
-
solid: solid.caution,
|
|
44
|
-
muted: muted.caution,
|
|
45
|
-
mode,
|
|
46
|
-
}),
|
|
47
|
-
critical: opts.button({
|
|
48
|
-
base,
|
|
49
|
-
dark,
|
|
50
|
-
solid: solid.critical,
|
|
51
|
-
muted: muted.critical,
|
|
52
|
-
mode,
|
|
53
|
-
}),
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ThemeColorBase,
|
|
3
|
-
ThemeColorCard,
|
|
4
|
-
ThemeColorMuted,
|
|
5
|
-
ThemeColorName,
|
|
6
|
-
ThemeColorSolid,
|
|
7
|
-
} from '../../../../../v0'
|
|
8
|
-
import type {ThemeColorBuilderOpts} from '../factory'
|
|
9
|
-
|
|
10
|
-
export function createCardStates(
|
|
11
|
-
opts: ThemeColorBuilderOpts,
|
|
12
|
-
base: ThemeColorBase,
|
|
13
|
-
dark: boolean,
|
|
14
|
-
name: ThemeColorName,
|
|
15
|
-
solid: ThemeColorSolid,
|
|
16
|
-
muted: ThemeColorMuted,
|
|
17
|
-
): ThemeColorCard {
|
|
18
|
-
return {
|
|
19
|
-
enabled: opts.card({
|
|
20
|
-
base,
|
|
21
|
-
dark,
|
|
22
|
-
name,
|
|
23
|
-
state: 'enabled',
|
|
24
|
-
solid,
|
|
25
|
-
muted,
|
|
26
|
-
}),
|
|
27
|
-
disabled: opts.card({
|
|
28
|
-
base,
|
|
29
|
-
dark,
|
|
30
|
-
name,
|
|
31
|
-
state: 'disabled',
|
|
32
|
-
solid,
|
|
33
|
-
muted,
|
|
34
|
-
}),
|
|
35
|
-
hovered: opts.card({
|
|
36
|
-
base,
|
|
37
|
-
dark,
|
|
38
|
-
name,
|
|
39
|
-
state: 'hovered',
|
|
40
|
-
solid,
|
|
41
|
-
muted,
|
|
42
|
-
}),
|
|
43
|
-
pressed: opts.card({
|
|
44
|
-
base,
|
|
45
|
-
dark,
|
|
46
|
-
name,
|
|
47
|
-
state: 'pressed',
|
|
48
|
-
solid,
|
|
49
|
-
muted,
|
|
50
|
-
}),
|
|
51
|
-
selected: opts.card({
|
|
52
|
-
base,
|
|
53
|
-
dark,
|
|
54
|
-
name,
|
|
55
|
-
state: 'selected',
|
|
56
|
-
solid,
|
|
57
|
-
muted,
|
|
58
|
-
}),
|
|
59
|
-
}
|
|
60
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {describe, expect, it} from 'vitest'
|
|
2
|
-
|
|
3
|
-
import {createColorTheme} from './factory'
|
|
4
|
-
|
|
5
|
-
describe('color', () => {
|
|
6
|
-
describe('createColorTheme', () => {
|
|
7
|
-
it('should generate base (scheme=light, name=default)', () => {
|
|
8
|
-
const theme = createColorTheme()
|
|
9
|
-
const scheme = 'light'
|
|
10
|
-
const name = 'default'
|
|
11
|
-
const color = theme[scheme][name]
|
|
12
|
-
|
|
13
|
-
expect(color.base).toEqual({
|
|
14
|
-
bg: 'hsl(0, 0%, 100%)',
|
|
15
|
-
border: 'hsl(0, 0%, 95%)',
|
|
16
|
-
fg: 'hsl(0, 0%, 0%)',
|
|
17
|
-
focusRing: 'hsl(240, 100%, 50%)',
|
|
18
|
-
shadow: {
|
|
19
|
-
ambient: 'hsl(0, 0%, 0%)',
|
|
20
|
-
outline: 'hsl(0, 0%, 0%)',
|
|
21
|
-
penumbra: 'hsl(0, 0%, 0%)',
|
|
22
|
-
umbra: 'hsl(0, 0%, 0%)',
|
|
23
|
-
},
|
|
24
|
-
skeleton: {
|
|
25
|
-
from: 'hsl(0, 0%, 0%)',
|
|
26
|
-
to: 'hsl(0, 0%, 0%)',
|
|
27
|
-
},
|
|
28
|
-
})
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
it('should generate muted states (scheme=light, name=default)', () => {
|
|
32
|
-
const theme = createColorTheme()
|
|
33
|
-
const scheme = 'light'
|
|
34
|
-
const name = 'default'
|
|
35
|
-
const color = theme[scheme][name]
|
|
36
|
-
|
|
37
|
-
expect(color.muted.default.enabled).toEqual({
|
|
38
|
-
bg: 'hsl(0, 0%, 95%)',
|
|
39
|
-
bg2: 'hsl(0, 0%, 95%)',
|
|
40
|
-
border: 'hsl(0, 0%, 70%)',
|
|
41
|
-
fg: 'hsl(0, 0%, 20%)',
|
|
42
|
-
icon: 'hsl(0, 0%, 20%)',
|
|
43
|
-
muted: {
|
|
44
|
-
fg: 'hsl(0, 0%, 0%)',
|
|
45
|
-
},
|
|
46
|
-
link: {
|
|
47
|
-
fg: 'hsl(0, 0%, 0%)',
|
|
48
|
-
},
|
|
49
|
-
accent: {
|
|
50
|
-
fg: 'hsl(0, 0%, 0%)',
|
|
51
|
-
},
|
|
52
|
-
code: {
|
|
53
|
-
bg: 'hsl(0, 0%, 0%)',
|
|
54
|
-
fg: 'hsl(0, 0%, 0%)',
|
|
55
|
-
},
|
|
56
|
-
skeleton: {
|
|
57
|
-
from: 'hsl(0, 0%, 0%)',
|
|
58
|
-
to: 'hsl(0, 0%, 0%)',
|
|
59
|
-
},
|
|
60
|
-
})
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
})
|
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
import type {ThemeColorBuilderOpts} from './factory'
|
|
2
|
-
|
|
3
|
-
const black = 'hsl(0, 0%, 0%)'
|
|
4
|
-
const white = 'hsl(0, 0%, 100%)'
|
|
5
|
-
|
|
6
|
-
const colors = {
|
|
7
|
-
default: {
|
|
8
|
-
lightest: 'hsl(0, 0%, 95%)',
|
|
9
|
-
lighter: 'hsl(0, 0%, 70%)',
|
|
10
|
-
light: 'hsl(0, 0%, 65%)',
|
|
11
|
-
base: 'hsl(0, 0%, 50%)',
|
|
12
|
-
dark: 'hsl(0, 0%, 35%)',
|
|
13
|
-
darker: 'hsl(0, 0%, 20%)',
|
|
14
|
-
darkest: 'hsl(0, 0%, 5%)',
|
|
15
|
-
},
|
|
16
|
-
transparent: {
|
|
17
|
-
lightest: 'hsl(240, 100%, 95%)',
|
|
18
|
-
lighter: 'hsl(240, 100%, 70%)',
|
|
19
|
-
light: 'hsl(240, 100%, 65%)',
|
|
20
|
-
base: 'hsl(240, 100%, 50%)',
|
|
21
|
-
dark: 'hsl(240, 100%, 35%)',
|
|
22
|
-
darker: 'hsl(240, 100%, 20%)',
|
|
23
|
-
darkest: 'hsl(240, 100%, 5%)',
|
|
24
|
-
},
|
|
25
|
-
primary: {
|
|
26
|
-
lightest: 'hsl(240, 100%, 95%)',
|
|
27
|
-
lighter: 'hsl(240, 100%, 70%)',
|
|
28
|
-
light: 'hsl(240, 100%, 65%)',
|
|
29
|
-
base: 'hsl(240, 100%, 50%)',
|
|
30
|
-
dark: 'hsl(240, 100%, 35%)',
|
|
31
|
-
darker: 'hsl(240, 100%, 20%)',
|
|
32
|
-
darkest: 'hsl(240, 100%, 5%)',
|
|
33
|
-
},
|
|
34
|
-
positive: {
|
|
35
|
-
lightest: 'hsl(120, 100%, 95%)',
|
|
36
|
-
lighter: 'hsl(120, 100%, 70%)',
|
|
37
|
-
light: 'hsl(120, 100%, 65%)',
|
|
38
|
-
base: 'hsl(120, 100%, 50%)',
|
|
39
|
-
dark: 'hsl(120, 100%, 35%)',
|
|
40
|
-
darker: 'hsl(120, 100%, 20%)',
|
|
41
|
-
darkest: 'hsl(120, 100%, 5%)',
|
|
42
|
-
},
|
|
43
|
-
caution: {
|
|
44
|
-
lightest: 'hsl(60, 100%, 95%)',
|
|
45
|
-
lighter: 'hsl(60, 100%, 70%)',
|
|
46
|
-
light: 'hsl(60, 100%, 65%)',
|
|
47
|
-
base: 'hsl(60, 100%, 50%)',
|
|
48
|
-
dark: 'hsl(60, 100%, 35%)',
|
|
49
|
-
darker: 'hsl(60, 100%, 20%)',
|
|
50
|
-
darkest: 'hsl(60, 100%, 5%)',
|
|
51
|
-
},
|
|
52
|
-
critical: {
|
|
53
|
-
lightest: 'hsl(0, 100%, 95%)',
|
|
54
|
-
lighter: 'hsl(0, 100%, 70%)',
|
|
55
|
-
light: 'hsl(0, 100%, 65%)',
|
|
56
|
-
base: 'hsl(0, 100%, 50%)',
|
|
57
|
-
dark: 'hsl(0, 100%, 35%)',
|
|
58
|
-
darker: 'hsl(0, 100%, 20%)',
|
|
59
|
-
darkest: 'hsl(0, 100%, 5%)',
|
|
60
|
-
},
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const spots = {
|
|
64
|
-
gray: 'hsl(0, 0%, 50%)',
|
|
65
|
-
red: 'hsl(0, 100%, 50%)',
|
|
66
|
-
orange: 'hsl(30, 100%, 50%)',
|
|
67
|
-
yellow: 'hsl(60, 100%, 50%)',
|
|
68
|
-
green: 'hsl(120, 100%, 50%)',
|
|
69
|
-
cyan: 'hsl(180, 100%, 50%)',
|
|
70
|
-
blue: 'hsl(240, 100%, 50%)',
|
|
71
|
-
purple: 'hsl(270, 100%, 50%)',
|
|
72
|
-
magenta: 'hsl(300, 100%, 50%)',
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const tones = {
|
|
76
|
-
transparent: {
|
|
77
|
-
bg: [colors.transparent.darkest, colors.transparent.lightest],
|
|
78
|
-
fg: [colors.transparent.lightest, colors.transparent.darkest],
|
|
79
|
-
border: [colors.transparent.darker, colors.transparent.lighter],
|
|
80
|
-
focusRing: [colors.transparent.base, colors.transparent.base],
|
|
81
|
-
},
|
|
82
|
-
primary: {
|
|
83
|
-
bg: [colors.primary.darkest, colors.primary.lightest],
|
|
84
|
-
fg: [colors.primary.lightest, colors.primary.darkest],
|
|
85
|
-
border: [colors.primary.darker, colors.primary.lighter],
|
|
86
|
-
focusRing: [colors.primary.base, colors.primary.base],
|
|
87
|
-
},
|
|
88
|
-
positive: {
|
|
89
|
-
bg: [colors.positive.darkest, colors.positive.lightest],
|
|
90
|
-
fg: [colors.positive.lightest, colors.positive.darkest],
|
|
91
|
-
border: [colors.positive.darker, colors.positive.lighter],
|
|
92
|
-
focusRing: [colors.positive.base, colors.positive.base],
|
|
93
|
-
},
|
|
94
|
-
caution: {
|
|
95
|
-
bg: [colors.caution.darkest, colors.caution.lightest],
|
|
96
|
-
fg: [colors.caution.lightest, colors.caution.darkest],
|
|
97
|
-
border: [colors.caution.darker, colors.caution.lighter],
|
|
98
|
-
focusRing: [colors.caution.base, colors.caution.base],
|
|
99
|
-
},
|
|
100
|
-
critical: {
|
|
101
|
-
bg: [colors.critical.darkest, colors.critical.lightest],
|
|
102
|
-
fg: [colors.critical.lightest, colors.critical.darkest],
|
|
103
|
-
border: [colors.critical.darker, colors.critical.lighter],
|
|
104
|
-
focusRing: [colors.critical.base, colors.critical.base],
|
|
105
|
-
},
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export const defaultOpts: ThemeColorBuilderOpts = {
|
|
109
|
-
base: ({dark, name}) => {
|
|
110
|
-
if (name === 'default') {
|
|
111
|
-
return {
|
|
112
|
-
bg: dark ? black : white,
|
|
113
|
-
fg: dark ? white : black,
|
|
114
|
-
border: dark ? colors.default.darkest : colors.default.lightest,
|
|
115
|
-
focusRing: colors.primary.base,
|
|
116
|
-
shadow: {
|
|
117
|
-
outline: black,
|
|
118
|
-
umbra: black,
|
|
119
|
-
penumbra: black,
|
|
120
|
-
ambient: black,
|
|
121
|
-
},
|
|
122
|
-
skeleton: {
|
|
123
|
-
from: dark ? white : black,
|
|
124
|
-
to: dark ? white : black,
|
|
125
|
-
},
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// Variants:
|
|
130
|
-
// - primary
|
|
131
|
-
// - positive
|
|
132
|
-
// - caution
|
|
133
|
-
// - critical
|
|
134
|
-
return {
|
|
135
|
-
bg: tones[name].bg[dark ? 0 : 1],
|
|
136
|
-
fg: tones[name].fg[dark ? 0 : 1],
|
|
137
|
-
border: tones[name].border[dark ? 0 : 1],
|
|
138
|
-
focusRing: tones[name].focusRing[dark ? 0 : 1],
|
|
139
|
-
shadow: {
|
|
140
|
-
outline: black,
|
|
141
|
-
umbra: black,
|
|
142
|
-
penumbra: black,
|
|
143
|
-
ambient: black,
|
|
144
|
-
},
|
|
145
|
-
skeleton: {
|
|
146
|
-
from: dark ? white : black,
|
|
147
|
-
to: dark ? white : black,
|
|
148
|
-
},
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
solid: ({base, dark, state, tone}) => {
|
|
153
|
-
const color = colors[tone]
|
|
154
|
-
|
|
155
|
-
if (state === 'hovered') {
|
|
156
|
-
return {
|
|
157
|
-
bg: dark ? color.light : color.dark,
|
|
158
|
-
bg2: dark ? color.light : color.dark,
|
|
159
|
-
border: dark ? color.lighter : color.darker,
|
|
160
|
-
fg: dark ? color.darkest : color.lightest,
|
|
161
|
-
icon: dark ? color.darkest : color.lightest,
|
|
162
|
-
muted: {
|
|
163
|
-
fg: black,
|
|
164
|
-
},
|
|
165
|
-
accent: {
|
|
166
|
-
fg: black,
|
|
167
|
-
},
|
|
168
|
-
link: {
|
|
169
|
-
fg: black,
|
|
170
|
-
},
|
|
171
|
-
code: {
|
|
172
|
-
bg: black,
|
|
173
|
-
fg: black,
|
|
174
|
-
},
|
|
175
|
-
skeleton: base.skeleton,
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
return {
|
|
180
|
-
bg: color.base,
|
|
181
|
-
bg2: color.base,
|
|
182
|
-
border: dark ? color.light : color.dark,
|
|
183
|
-
fg: dark ? color.darkest : color.lightest,
|
|
184
|
-
icon: dark ? color.darkest : color.lightest,
|
|
185
|
-
muted: {
|
|
186
|
-
fg: black,
|
|
187
|
-
},
|
|
188
|
-
accent: {
|
|
189
|
-
fg: black,
|
|
190
|
-
},
|
|
191
|
-
link: {
|
|
192
|
-
fg: black,
|
|
193
|
-
},
|
|
194
|
-
code: {
|
|
195
|
-
bg: black,
|
|
196
|
-
fg: black,
|
|
197
|
-
},
|
|
198
|
-
skeleton: base.skeleton,
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
muted: ({base, dark, state, tone}) => {
|
|
203
|
-
const color = colors[tone]
|
|
204
|
-
|
|
205
|
-
if (state === 'hovered') {
|
|
206
|
-
return {
|
|
207
|
-
bg: dark ? color.darker : color.lighter,
|
|
208
|
-
bg2: dark ? color.darker : color.lighter,
|
|
209
|
-
border: dark ? color.lighter : color.darker,
|
|
210
|
-
fg: dark ? color.lightest : color.darkest,
|
|
211
|
-
icon: dark ? color.lightest : color.darkest,
|
|
212
|
-
muted: {
|
|
213
|
-
fg: black,
|
|
214
|
-
},
|
|
215
|
-
accent: {
|
|
216
|
-
fg: black,
|
|
217
|
-
},
|
|
218
|
-
link: {
|
|
219
|
-
fg: black,
|
|
220
|
-
},
|
|
221
|
-
code: {
|
|
222
|
-
bg: black,
|
|
223
|
-
fg: black,
|
|
224
|
-
},
|
|
225
|
-
skeleton: base.skeleton,
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
return {
|
|
230
|
-
bg: dark ? color.darkest : color.lightest,
|
|
231
|
-
bg2: dark ? color.darkest : color.lightest,
|
|
232
|
-
border: dark ? color.darker : color.lighter,
|
|
233
|
-
fg: dark ? color.lighter : color.darker,
|
|
234
|
-
icon: dark ? color.lighter : color.darker,
|
|
235
|
-
muted: {
|
|
236
|
-
fg: black,
|
|
237
|
-
},
|
|
238
|
-
accent: {
|
|
239
|
-
fg: black,
|
|
240
|
-
},
|
|
241
|
-
link: {
|
|
242
|
-
fg: black,
|
|
243
|
-
},
|
|
244
|
-
code: {
|
|
245
|
-
bg: black,
|
|
246
|
-
fg: black,
|
|
247
|
-
},
|
|
248
|
-
skeleton: base.skeleton,
|
|
249
|
-
}
|
|
250
|
-
},
|
|
251
|
-
|
|
252
|
-
button: ({base, mode, muted, solid}) => {
|
|
253
|
-
if (mode === 'bleed') {
|
|
254
|
-
return {
|
|
255
|
-
...muted,
|
|
256
|
-
enabled: {
|
|
257
|
-
bg: 'transparent',
|
|
258
|
-
bg2: 'transparent',
|
|
259
|
-
fg: muted.enabled.fg,
|
|
260
|
-
icon: muted.enabled.fg,
|
|
261
|
-
border: 'transparent',
|
|
262
|
-
muted: {
|
|
263
|
-
fg: black,
|
|
264
|
-
},
|
|
265
|
-
accent: {
|
|
266
|
-
fg: black,
|
|
267
|
-
},
|
|
268
|
-
link: {
|
|
269
|
-
fg: black,
|
|
270
|
-
},
|
|
271
|
-
code: {
|
|
272
|
-
bg: black,
|
|
273
|
-
fg: black,
|
|
274
|
-
},
|
|
275
|
-
skeleton: base.skeleton,
|
|
276
|
-
},
|
|
277
|
-
hovered: {
|
|
278
|
-
bg: muted.enabled.bg,
|
|
279
|
-
bg2: muted.enabled.bg,
|
|
280
|
-
fg: muted.hovered.fg,
|
|
281
|
-
icon: muted.hovered.fg,
|
|
282
|
-
border: 'transparent',
|
|
283
|
-
muted: {
|
|
284
|
-
fg: black,
|
|
285
|
-
},
|
|
286
|
-
accent: {
|
|
287
|
-
fg: black,
|
|
288
|
-
},
|
|
289
|
-
link: {
|
|
290
|
-
fg: black,
|
|
291
|
-
},
|
|
292
|
-
code: {
|
|
293
|
-
bg: black,
|
|
294
|
-
fg: black,
|
|
295
|
-
},
|
|
296
|
-
skeleton: base.skeleton,
|
|
297
|
-
},
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
if (mode === 'ghost')
|
|
302
|
-
return {
|
|
303
|
-
...solid,
|
|
304
|
-
enabled: muted.enabled,
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
return solid
|
|
308
|
-
},
|
|
309
|
-
|
|
310
|
-
card: ({base}) => {
|
|
311
|
-
return {
|
|
312
|
-
bg: black,
|
|
313
|
-
bg2: black,
|
|
314
|
-
fg: black,
|
|
315
|
-
icon: black,
|
|
316
|
-
border: black,
|
|
317
|
-
muted: {
|
|
318
|
-
fg: black,
|
|
319
|
-
},
|
|
320
|
-
accent: {
|
|
321
|
-
fg: black,
|
|
322
|
-
},
|
|
323
|
-
link: {
|
|
324
|
-
fg: black,
|
|
325
|
-
},
|
|
326
|
-
code: {
|
|
327
|
-
bg: black,
|
|
328
|
-
fg: black,
|
|
329
|
-
},
|
|
330
|
-
skeleton: base.skeleton,
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
|
|
334
|
-
input: () => {
|
|
335
|
-
return {
|
|
336
|
-
bg: black,
|
|
337
|
-
bg2: black,
|
|
338
|
-
fg: black,
|
|
339
|
-
border: black,
|
|
340
|
-
placeholder: black,
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
selectable: ({muted, state, tone}) => {
|
|
345
|
-
return muted[tone][state]
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
spot: ({key}) => {
|
|
349
|
-
return spots[key]
|
|
350
|
-
},
|
|
351
|
-
|
|
352
|
-
syntax: () => ({
|
|
353
|
-
atrule: black,
|
|
354
|
-
attrName: black,
|
|
355
|
-
attrValue: black,
|
|
356
|
-
attribute: black,
|
|
357
|
-
boolean: black,
|
|
358
|
-
builtin: black,
|
|
359
|
-
cdata: black,
|
|
360
|
-
char: black,
|
|
361
|
-
class: black,
|
|
362
|
-
className: black,
|
|
363
|
-
comment: black,
|
|
364
|
-
constant: black,
|
|
365
|
-
deleted: black,
|
|
366
|
-
doctype: black,
|
|
367
|
-
entity: black,
|
|
368
|
-
function: black,
|
|
369
|
-
hexcode: black,
|
|
370
|
-
id: black,
|
|
371
|
-
important: black,
|
|
372
|
-
inserted: black,
|
|
373
|
-
keyword: black,
|
|
374
|
-
number: black,
|
|
375
|
-
operator: black,
|
|
376
|
-
prolog: black,
|
|
377
|
-
property: black,
|
|
378
|
-
pseudoClass: black,
|
|
379
|
-
pseudoElement: black,
|
|
380
|
-
punctuation: black,
|
|
381
|
-
regex: black,
|
|
382
|
-
selector: black,
|
|
383
|
-
string: black,
|
|
384
|
-
symbol: black,
|
|
385
|
-
tag: black,
|
|
386
|
-
unit: black,
|
|
387
|
-
url: black,
|
|
388
|
-
variable: black,
|
|
389
|
-
}),
|
|
390
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ThemeColor,
|
|
3
|
-
ThemeColorBase,
|
|
4
|
-
ThemeColorButtonStates,
|
|
5
|
-
ThemeColorGenericState,
|
|
6
|
-
ThemeColorInputState,
|
|
7
|
-
ThemeColorMuted,
|
|
8
|
-
ThemeColorMutedTone,
|
|
9
|
-
ThemeColorName,
|
|
10
|
-
ThemeColorScheme,
|
|
11
|
-
ThemeColorSchemes,
|
|
12
|
-
ThemeColorSolid,
|
|
13
|
-
ThemeColorSolidTone,
|
|
14
|
-
ThemeColorSpotKey,
|
|
15
|
-
ThemeColorToneKey,
|
|
16
|
-
} from '../../../../v0'
|
|
17
|
-
import type {ThemeColorButtonModeKey, ThemeColorSyntax} from '../../../color'
|
|
18
|
-
import {createSelectableTones} from './_selectable/createSelectableTones'
|
|
19
|
-
import {createSolidTones} from './_solid/createSolidTones'
|
|
20
|
-
import {createButtonModes} from './button/createButtonModes'
|
|
21
|
-
import {createCardStates} from './card/createCardStates'
|
|
22
|
-
import {defaultOpts} from './defaults'
|
|
23
|
-
import {createInputModes} from './input/createInputModes'
|
|
24
|
-
import {createMutedTones} from './muted/createMuted'
|
|
25
|
-
import {createSpot} from './spot/createSpot'
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @public
|
|
29
|
-
* @deprecated Use `buildColorTheme` instead.
|
|
30
|
-
*/
|
|
31
|
-
export interface ThemeColorBuilderOpts {
|
|
32
|
-
base: (opts: {dark: boolean; name: ThemeColorName}) => ThemeColorBase
|
|
33
|
-
solid: (opts: {
|
|
34
|
-
base: ThemeColorBase
|
|
35
|
-
dark: boolean
|
|
36
|
-
tone: ThemeColorName
|
|
37
|
-
name: ThemeColorName
|
|
38
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
39
|
-
}) => ThemeColorGenericState
|
|
40
|
-
muted: (opts: {
|
|
41
|
-
base: ThemeColorBase
|
|
42
|
-
dark: boolean
|
|
43
|
-
tone: ThemeColorToneKey
|
|
44
|
-
name: ThemeColorName
|
|
45
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
46
|
-
}) => ThemeColorGenericState
|
|
47
|
-
card: (opts: {
|
|
48
|
-
base: ThemeColorBase
|
|
49
|
-
dark: boolean
|
|
50
|
-
muted: ThemeColorMuted
|
|
51
|
-
name: ThemeColorName
|
|
52
|
-
solid: ThemeColorSolid
|
|
53
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
54
|
-
}) => ThemeColorGenericState
|
|
55
|
-
button: (opts: {
|
|
56
|
-
dark: boolean
|
|
57
|
-
mode: ThemeColorButtonModeKey
|
|
58
|
-
base: ThemeColorBase
|
|
59
|
-
solid: ThemeColorSolidTone
|
|
60
|
-
muted: ThemeColorMutedTone
|
|
61
|
-
}) => ThemeColorButtonStates
|
|
62
|
-
input: (opts: {
|
|
63
|
-
base: ThemeColorBase
|
|
64
|
-
solid: ThemeColorSolidTone
|
|
65
|
-
muted: ThemeColorMutedTone
|
|
66
|
-
dark: boolean
|
|
67
|
-
mode: 'default' | 'invalid'
|
|
68
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'readOnly'
|
|
69
|
-
}) => ThemeColorInputState
|
|
70
|
-
selectable: (opts: {
|
|
71
|
-
dark: boolean
|
|
72
|
-
base: ThemeColorBase
|
|
73
|
-
solid: ThemeColorSolid
|
|
74
|
-
muted: ThemeColorMuted
|
|
75
|
-
state: 'enabled' | 'disabled' | 'hovered' | 'pressed' | 'selected'
|
|
76
|
-
tone: 'default' | 'primary' | 'positive' | 'caution' | 'critical'
|
|
77
|
-
}) => ThemeColorGenericState
|
|
78
|
-
syntax: (opts: {base: ThemeColorBase; dark: boolean}) => ThemeColorSyntax
|
|
79
|
-
spot: (opts: {base: ThemeColorBase; dark: boolean; key: ThemeColorSpotKey}) => string
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @public
|
|
84
|
-
* @deprecated Use `ThemeConfig` instead.
|
|
85
|
-
*/
|
|
86
|
-
export type PartialThemeColorBuilderOpts = Partial<ThemeColorBuilderOpts>
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @public
|
|
90
|
-
* @deprecated Use `buildColorTheme` instead.
|
|
91
|
-
*/
|
|
92
|
-
export function createColorTheme(
|
|
93
|
-
partialOpts: PartialThemeColorBuilderOpts = {},
|
|
94
|
-
): ThemeColorSchemes {
|
|
95
|
-
const builders: ThemeColorBuilderOpts = {...defaultOpts, ...partialOpts}
|
|
96
|
-
|
|
97
|
-
return {
|
|
98
|
-
light: _createColorScheme(builders, false),
|
|
99
|
-
dark: _createColorScheme(builders, true),
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* @internal
|
|
105
|
-
*/
|
|
106
|
-
function _createColorScheme(opts: ThemeColorBuilderOpts, dark: boolean): ThemeColorScheme {
|
|
107
|
-
return {
|
|
108
|
-
default: _createColor(opts, dark, 'default'),
|
|
109
|
-
transparent: _createColor(opts, dark, 'transparent'),
|
|
110
|
-
primary: _createColor(opts, dark, 'primary'),
|
|
111
|
-
positive: _createColor(opts, dark, 'positive'),
|
|
112
|
-
caution: _createColor(opts, dark, 'caution'),
|
|
113
|
-
critical: _createColor(opts, dark, 'critical'),
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
120
|
-
function _createColor(
|
|
121
|
-
opts: ThemeColorBuilderOpts,
|
|
122
|
-
dark: boolean,
|
|
123
|
-
name: ThemeColorName,
|
|
124
|
-
): ThemeColor {
|
|
125
|
-
const base = opts.base({dark, name})
|
|
126
|
-
const solid = createSolidTones(opts, base, dark, name)
|
|
127
|
-
const muted = createMutedTones(opts, base, dark, name)
|
|
128
|
-
|
|
129
|
-
return {
|
|
130
|
-
base,
|
|
131
|
-
button: createButtonModes(opts, base, dark, solid, muted),
|
|
132
|
-
card: createCardStates(opts, base, dark, name, solid, muted),
|
|
133
|
-
dark,
|
|
134
|
-
input: createInputModes(opts, base, dark, solid, muted),
|
|
135
|
-
selectable: createSelectableTones(opts, base, dark, solid, muted),
|
|
136
|
-
spot: createSpot(opts, base, dark),
|
|
137
|
-
syntax: opts.syntax({base, dark}),
|
|
138
|
-
solid,
|
|
139
|
-
muted,
|
|
140
|
-
}
|
|
141
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './factory'
|