@blockle/blocks 0.20.0-alpha1.0 → 1.0.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 +2 -2
- package/dist/index.cjs +21 -71
- package/dist/index.d.ts +3 -36
- package/dist/index.js +3 -73
- package/dist/reset.cjs +1 -2
- package/dist/reset.d.ts +0 -0
- package/dist/reset.js +1 -2
- package/package.json +22 -78
- package/LICENSE +0 -21
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.cjs +0 -20
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts +0 -5
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.js +0 -20
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.spec.d.ts +0 -1
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.stories.d.ts +0 -6
- package/dist/components/accessibility/VisuallyHidden/index.d.ts +0 -1
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.cjs +0 -16
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts +0 -1
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.js +0 -16
- package/dist/components/display/Divider/Divider.cjs +0 -26
- package/dist/components/display/Divider/Divider.d.ts +0 -7
- package/dist/components/display/Divider/Divider.js +0 -26
- package/dist/components/display/Divider/Divider.spec.d.ts +0 -1
- package/dist/components/display/Divider/Divider.stories.d.ts +0 -6
- package/dist/components/display/Divider/divider.css.cjs +0 -16
- package/dist/components/display/Divider/divider.css.d.ts +0 -1
- package/dist/components/display/Divider/divider.css.js +0 -16
- package/dist/components/display/Divider/index.d.ts +0 -1
- package/dist/components/feedback/Progress/Progress.cjs +0 -54
- package/dist/components/feedback/Progress/Progress.d.ts +0 -16
- package/dist/components/feedback/Progress/Progress.js +0 -54
- package/dist/components/feedback/Progress/Progress.stories.d.ts +0 -5
- package/dist/components/feedback/Progress/index.d.ts +0 -1
- package/dist/components/feedback/Spinner/Spinner.cjs +0 -26
- package/dist/components/feedback/Spinner/Spinner.d.ts +0 -9
- package/dist/components/feedback/Spinner/Spinner.js +0 -26
- package/dist/components/feedback/Spinner/Spinner.stories.d.ts +0 -5
- package/dist/components/feedback/Spinner/index.d.ts +0 -1
- package/dist/components/form/Button/Button.cjs +0 -59
- package/dist/components/form/Button/Button.css.cjs +0 -16
- package/dist/components/form/Button/Button.css.d.ts +0 -1
- package/dist/components/form/Button/Button.css.js +0 -16
- package/dist/components/form/Button/Button.d.ts +0 -21
- package/dist/components/form/Button/Button.js +0 -59
- package/dist/components/form/Button/Button.spec.d.ts +0 -1
- package/dist/components/form/Button/Button.stories.d.ts +0 -7
- package/dist/components/form/Button/index.d.ts +0 -1
- package/dist/components/form/Checkbox/Checkbox.cjs +0 -79
- package/dist/components/form/Checkbox/Checkbox.d.ts +0 -9
- package/dist/components/form/Checkbox/Checkbox.js +0 -79
- package/dist/components/form/Checkbox/Checkbox.spec.d.ts +0 -1
- package/dist/components/form/Checkbox/Checkbox.stories.d.ts +0 -5
- package/dist/components/form/Checkbox/checkbox.css.cjs +0 -32
- package/dist/components/form/Checkbox/checkbox.css.d.ts +0 -3
- package/dist/components/form/Checkbox/checkbox.css.js +0 -32
- package/dist/components/form/Checkbox/index.d.ts +0 -1
- package/dist/components/form/Input/Input.cjs +0 -51
- package/dist/components/form/Input/Input.d.ts +0 -11
- package/dist/components/form/Input/Input.js +0 -51
- package/dist/components/form/Input/Input.spec.d.ts +0 -1
- package/dist/components/form/Input/Input.stories.d.ts +0 -5
- package/dist/components/form/Input/index.d.ts +0 -1
- package/dist/components/form/Input/input.css.cjs +0 -21
- package/dist/components/form/Input/input.css.d.ts +0 -1
- package/dist/components/form/Input/input.css.js +0 -21
- package/dist/components/form/Label/Label.cjs +0 -30
- package/dist/components/form/Label/Label.d.ts +0 -18
- package/dist/components/form/Label/Label.js +0 -30
- package/dist/components/form/Label/Label.spec.d.ts +0 -1
- package/dist/components/form/Label/Label.stories.d.ts +0 -6
- package/dist/components/form/Label/index.d.ts +0 -1
- package/dist/components/form/Radio/Radio.cjs +0 -48
- package/dist/components/form/Radio/Radio.d.ts +0 -8
- package/dist/components/form/Radio/Radio.js +0 -48
- package/dist/components/form/Radio/Radio.spec.d.ts +0 -1
- package/dist/components/form/Radio/Radio.stories.d.ts +0 -6
- package/dist/components/form/Radio/RadioGroup.d.ts +0 -8
- package/dist/components/form/Radio/index.d.ts +0 -2
- package/dist/components/form/Radio/radio.css.cjs +0 -32
- package/dist/components/form/Radio/radio.css.d.ts +0 -3
- package/dist/components/form/Radio/radio.css.js +0 -32
- package/dist/components/form/Select/Select.cjs +0 -65
- package/dist/components/form/Select/Select.d.ts +0 -10
- package/dist/components/form/Select/Select.js +0 -65
- package/dist/components/form/Select/Select.stories.d.ts +0 -5
- package/dist/components/form/Select/index.d.ts +0 -1
- package/dist/components/form/Select/select.css.cjs +0 -38
- package/dist/components/form/Select/select.css.d.ts +0 -3
- package/dist/components/form/Select/select.css.js +0 -38
- package/dist/components/form/Slider/Slider.cjs +0 -141
- package/dist/components/form/Slider/Slider.d.ts +0 -20
- package/dist/components/form/Slider/Slider.js +0 -141
- package/dist/components/form/Slider/Slider.spec.d.ts +0 -1
- package/dist/components/form/Slider/Slider.stories.d.ts +0 -6
- package/dist/components/form/Slider/index.d.ts +0 -1
- package/dist/components/form/Slider/slider.css.cjs +0 -75
- package/dist/components/form/Slider/slider.css.d.ts +0 -5
- package/dist/components/form/Slider/slider.css.js +0 -75
- package/dist/components/form/Slider/usePointerProgress.cjs +0 -47
- package/dist/components/form/Slider/usePointerProgress.d.ts +0 -11
- package/dist/components/form/Slider/usePointerProgress.js +0 -47
- package/dist/components/form/Switch/Switch.cjs +0 -73
- package/dist/components/form/Switch/Switch.d.ts +0 -6
- package/dist/components/form/Switch/Switch.js +0 -73
- package/dist/components/form/Switch/Switch.stories.d.ts +0 -5
- package/dist/components/form/Switch/index.d.ts +0 -1
- package/dist/components/form/Switch/switch.css.cjs +0 -27
- package/dist/components/form/Switch/switch.css.d.ts +0 -2
- package/dist/components/form/Switch/switch.css.js +0 -27
- package/dist/components/layout/Box/Box.cjs +0 -28
- package/dist/components/layout/Box/Box.d.ts +0 -11
- package/dist/components/layout/Box/Box.js +0 -28
- package/dist/components/layout/Box/Box.spec.d.ts +0 -1
- package/dist/components/layout/Box/Box.stories.d.ts +0 -6
- package/dist/components/layout/Box/index.d.ts +0 -1
- package/dist/components/layout/Inline/Inline.cjs +0 -30
- package/dist/components/layout/Inline/Inline.d.ts +0 -13
- package/dist/components/layout/Inline/Inline.js +0 -30
- package/dist/components/layout/Inline/Inline.stories.d.ts +0 -6
- package/dist/components/layout/Inline/index.d.ts +0 -1
- package/dist/components/layout/Stack/Stack.cjs +0 -30
- package/dist/components/layout/Stack/Stack.d.ts +0 -17
- package/dist/components/layout/Stack/Stack.js +0 -30
- package/dist/components/layout/Stack/Stack.stories.d.ts +0 -6
- package/dist/components/layout/Stack/index.d.ts +0 -1
- package/dist/components/navigation/Link/Link.cjs +0 -32
- package/dist/components/navigation/Link/Link.d.ts +0 -11
- package/dist/components/navigation/Link/Link.js +0 -32
- package/dist/components/navigation/Link/Link.stories.d.ts +0 -6
- package/dist/components/navigation/Link/index.d.ts +0 -1
- package/dist/components/other/BlocksProvider/BlocksProvider.cjs +0 -38
- package/dist/components/other/BlocksProvider/BlocksProvider.d.ts +0 -8
- package/dist/components/other/BlocksProvider/BlocksProvider.js +0 -38
- package/dist/components/other/BlocksProvider/context.cjs +0 -6
- package/dist/components/other/BlocksProvider/context.d.ts +0 -4
- package/dist/components/other/BlocksProvider/context.js +0 -6
- package/dist/components/other/BlocksProvider/index.d.ts +0 -2
- package/dist/components/other/Portal/Portal.cjs +0 -8
- package/dist/components/other/Portal/Portal.d.ts +0 -5
- package/dist/components/other/Portal/Portal.js +0 -8
- package/dist/components/other/Portal/index.d.ts +0 -1
- package/dist/components/overlay/Dialog/Dialog.cjs +0 -79
- package/dist/components/overlay/Dialog/Dialog.d.ts +0 -10
- package/dist/components/overlay/Dialog/Dialog.js +0 -79
- package/dist/components/overlay/Dialog/Dialog.stories.d.ts +0 -7
- package/dist/components/overlay/Dialog/dialog.css.cjs +0 -22
- package/dist/components/overlay/Dialog/dialog.css.d.ts +0 -1
- package/dist/components/overlay/Dialog/dialog.css.js +0 -22
- package/dist/components/overlay/Dialog/dialogHelper.cjs +0 -22
- package/dist/components/overlay/Dialog/dialogHelper.d.ts +0 -6
- package/dist/components/overlay/Dialog/dialogHelper.js +0 -22
- package/dist/components/overlay/Dialog/index.d.ts +0 -1
- package/dist/components/overlay/Popover/Popover.cjs +0 -113
- package/dist/components/overlay/Popover/Popover.d.ts +0 -12
- package/dist/components/overlay/Popover/Popover.js +0 -113
- package/dist/components/overlay/Popover/Popover.stories.d.ts +0 -5
- package/dist/components/overlay/Popover/popover-utils.cjs +0 -62
- package/dist/components/overlay/Popover/popover-utils.d.ts +0 -2
- package/dist/components/overlay/Popover/popover-utils.js +0 -62
- package/dist/components/overlay/Tooltip/Tooltip.cjs +0 -73
- package/dist/components/overlay/Tooltip/Tooltip.d.ts +0 -11
- package/dist/components/overlay/Tooltip/Tooltip.js +0 -73
- package/dist/components/overlay/Tooltip/Tooltip.stories.d.ts +0 -5
- package/dist/components/overlay/Tooltip/index.d.ts +0 -1
- package/dist/components/typography/Heading/Heading.cjs +0 -24
- package/dist/components/typography/Heading/Heading.d.ts +0 -8
- package/dist/components/typography/Heading/Heading.js +0 -24
- package/dist/components/typography/Heading/heading.css.cjs +0 -16
- package/dist/components/typography/Heading/heading.css.d.ts +0 -1
- package/dist/components/typography/Heading/heading.css.js +0 -16
- package/dist/components/typography/Heading/heading.stories.d.ts +0 -12
- package/dist/components/typography/Heading/index.d.ts +0 -1
- package/dist/components/typography/Text/Text.cjs +0 -21
- package/dist/components/typography/Text/Text.d.ts +0 -12
- package/dist/components/typography/Text/Text.js +0 -21
- package/dist/components/typography/Text/Text.stories.d.ts +0 -5
- package/dist/components/typography/Text/index.d.ts +0 -1
- package/dist/components/typography/Text/text.css.cjs +0 -16
- package/dist/components/typography/Text/text.css.d.ts +0 -1
- package/dist/components/typography/Text/text.css.js +0 -16
- package/dist/entries/themes/momotaro.d.ts +0 -1
- package/dist/hooks/useClickOutside/useClickOutside.cjs +0 -24
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +0 -6
- package/dist/hooks/useClickOutside/useClickOutside.js +0 -24
- package/dist/hooks/useControlledValue/useControlledValue.cjs +0 -33
- package/dist/hooks/useControlledValue/useControlledValue.d.ts +0 -8
- package/dist/hooks/useControlledValue/useControlledValue.js +0 -33
- package/dist/hooks/useFocusLock/index.d.ts +0 -1
- package/dist/hooks/useFocusLock/useFocusLock.d.ts +0 -6
- package/dist/hooks/useIsomorphicLayoutEffect/index.d.ts +0 -1
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +0 -6
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +0 -5
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +0 -6
- package/dist/hooks/useKeyboard/index.d.ts +0 -1
- package/dist/hooks/useKeyboard/useKeyboard.cjs +0 -21
- package/dist/hooks/useKeyboard/useKeyboard.d.ts +0 -6
- package/dist/hooks/useKeyboard/useKeyboard.js +0 -21
- package/dist/hooks/useLayer/index.d.ts +0 -1
- package/dist/hooks/useLayer/useLayer.cjs +0 -27
- package/dist/hooks/useLayer/useLayer.d.ts +0 -1
- package/dist/hooks/useLayer/useLayer.js +0 -27
- package/dist/hooks/usePreventBodyScroll/index.d.ts +0 -1
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.cjs +0 -30
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts +0 -1
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.js +0 -30
- package/dist/hooks/useRestoreFocus/index.d.ts +0 -1
- package/dist/hooks/useRestoreFocus/useRestoreFocus.cjs +0 -19
- package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts +0 -4
- package/dist/hooks/useRestoreFocus/useRestoreFocus.js +0 -19
- package/dist/hooks/useRootAriaHidden/index.d.ts +0 -1
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.cjs +0 -12
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.d.ts +0 -7
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.js +0 -12
- package/dist/hooks/useVisibilityState/index.d.ts +0 -1
- package/dist/hooks/useVisibilityState/useVisibilityState.cjs +0 -17
- package/dist/hooks/useVisibilityState/useVisibilityState.d.ts +0 -3
- package/dist/hooks/useVisibilityState/useVisibilityState.js +0 -17
- package/dist/lib/asChildRenderer/createAsChildTemplate.cjs +0 -73
- package/dist/lib/asChildRenderer/createAsChildTemplate.d.ts +0 -34
- package/dist/lib/asChildRenderer/createAsChildTemplate.js +0 -73
- package/dist/lib/asChildRenderer/createAsChildTemplate.spec.d.ts +0 -1
- package/dist/lib/css/atoms/atomTypes.d.ts +0 -37
- package/dist/lib/css/atoms/atomicProperties.cjs +0 -90
- package/dist/lib/css/atoms/atomicProperties.d.ts +0 -286
- package/dist/lib/css/atoms/atomicProperties.js +0 -90
- package/dist/lib/css/atoms/atoms.d.ts +0 -1
- package/dist/lib/css/atoms/breakpoints.cjs +0 -15
- package/dist/lib/css/atoms/breakpoints.d.ts +0 -9
- package/dist/lib/css/atoms/breakpoints.js +0 -15
- package/dist/lib/css/atoms/index.d.ts +0 -2
- package/dist/lib/css/atoms/sprinkles.css.cjs +0 -52
- package/dist/lib/css/atoms/sprinkles.css.d.ts +0 -233
- package/dist/lib/css/atoms/sprinkles.css.js +0 -52
- package/dist/lib/css/flexbox/flexbox.cjs +0 -17
- package/dist/lib/css/flexbox/flexbox.d.ts +0 -15
- package/dist/lib/css/flexbox/flexbox.js +0 -17
- package/dist/lib/css/layers/layers.css.cjs +0 -8
- package/dist/lib/css/layers/layers.css.d.ts +0 -1
- package/dist/lib/css/layers/layers.css.js +0 -8
- package/dist/lib/css/reset/reset.css.cjs +0 -38
- package/dist/lib/css/reset/reset.css.d.ts +0 -1
- package/dist/lib/css/reset/reset.css.js +0 -37
- package/dist/lib/css/style/style.cjs +0 -29
- package/dist/lib/css/style/style.d.ts +0 -12
- package/dist/lib/css/style/style.js +0 -29
- package/dist/lib/css/utils/cssUtils.cjs +0 -6
- package/dist/lib/css/utils/cssUtils.d.ts +0 -1
- package/dist/lib/css/utils/cssUtils.js +0 -6
- package/dist/lib/react/mergeProps.cjs +0 -43
- package/dist/lib/react/mergeProps.d.ts +0 -4
- package/dist/lib/react/mergeProps.js +0 -43
- package/dist/lib/react/refs.cjs +0 -17
- package/dist/lib/react/refs.d.ts +0 -3
- package/dist/lib/react/refs.js +0 -17
- package/dist/lib/theme/componentThemes.d.ts +0 -134
- package/dist/lib/theme/makeComponentTheme.cjs +0 -6
- package/dist/lib/theme/makeComponentTheme.d.ts +0 -49
- package/dist/lib/theme/makeComponentTheme.js +0 -6
- package/dist/lib/theme/makeTheme.cjs +0 -13
- package/dist/lib/theme/makeTheme.d.ts +0 -14
- package/dist/lib/theme/makeTheme.js +0 -13
- package/dist/lib/theme/makeVanillaTheme.cjs +0 -20
- package/dist/lib/theme/makeVanillaTheme.d.ts +0 -16
- package/dist/lib/theme/makeVanillaTheme.js +0 -20
- package/dist/lib/theme/store/theme.cjs +0 -93
- package/dist/lib/theme/store/theme.d.ts +0 -13
- package/dist/lib/theme/store/theme.js +0 -93
- package/dist/lib/theme/tokens.cjs +0 -82
- package/dist/lib/theme/tokens.d.ts +0 -2
- package/dist/lib/theme/tokens.js +0 -82
- package/dist/lib/theme/tokensType.d.ts +0 -33
- package/dist/lib/theme/vars.css.cjs +0 -10
- package/dist/lib/theme/vars.css.d.ts +0 -75
- package/dist/lib/theme/vars.css.js +0 -10
- package/dist/lib/utils/atom-props.cjs +0 -16
- package/dist/lib/utils/atom-props.d.ts +0 -4
- package/dist/lib/utils/atom-props.js +0 -16
- package/dist/lib/utils/classnames.cjs +0 -7
- package/dist/lib/utils/classnames.d.ts +0 -3
- package/dist/lib/utils/classnames.js +0 -7
- package/dist/lib/utils/dom-focus.d.ts +0 -2
- package/dist/lib/utils/dom.cjs +0 -13
- package/dist/lib/utils/dom.d.ts +0 -4
- package/dist/lib/utils/dom.js +0 -13
- package/dist/lib/utils/helpers.d.ts +0 -9
- package/dist/lib/utils/math.cjs +0 -13
- package/dist/lib/utils/math.d.ts +0 -2
- package/dist/lib/utils/math.js +0 -13
- package/dist/lib/utils/utils.d.ts +0 -3
- package/dist/themes/momotaro/components/button.css.cjs +0 -110
- package/dist/themes/momotaro/components/button.css.d.ts +0 -1
- package/dist/themes/momotaro/components/button.css.js +0 -110
- package/dist/themes/momotaro/components/checkbox.css.cjs +0 -64
- package/dist/themes/momotaro/components/checkbox.css.d.ts +0 -1
- package/dist/themes/momotaro/components/checkbox.css.js +0 -64
- package/dist/themes/momotaro/components/dialog.css.cjs +0 -82
- package/dist/themes/momotaro/components/dialog.css.d.ts +0 -1
- package/dist/themes/momotaro/components/dialog.css.js +0 -82
- package/dist/themes/momotaro/components/divider.css.cjs +0 -16
- package/dist/themes/momotaro/components/divider.css.d.ts +0 -1
- package/dist/themes/momotaro/components/divider.css.js +0 -16
- package/dist/themes/momotaro/components/helpers.css.cjs +0 -47
- package/dist/themes/momotaro/components/helpers.css.d.ts +0 -8
- package/dist/themes/momotaro/components/helpers.css.js +0 -47
- package/dist/themes/momotaro/components/index.cjs +0 -35
- package/dist/themes/momotaro/components/index.d.ts +0 -2
- package/dist/themes/momotaro/components/index.js +0 -35
- package/dist/themes/momotaro/components/input.css.cjs +0 -48
- package/dist/themes/momotaro/components/input.css.d.ts +0 -1
- package/dist/themes/momotaro/components/input.css.js +0 -48
- package/dist/themes/momotaro/components/label.css.cjs +0 -34
- package/dist/themes/momotaro/components/label.css.d.ts +0 -1
- package/dist/themes/momotaro/components/label.css.js +0 -34
- package/dist/themes/momotaro/components/link.css.cjs +0 -57
- package/dist/themes/momotaro/components/link.css.d.ts +0 -1
- package/dist/themes/momotaro/components/link.css.js +0 -57
- package/dist/themes/momotaro/components/popover.css.cjs +0 -33
- package/dist/themes/momotaro/components/popover.css.d.ts +0 -1
- package/dist/themes/momotaro/components/popover.css.js +0 -33
- package/dist/themes/momotaro/components/progress.css.cjs +0 -59
- package/dist/themes/momotaro/components/progress.css.d.ts +0 -1
- package/dist/themes/momotaro/components/progress.css.js +0 -59
- package/dist/themes/momotaro/components/radio.css.cjs +0 -65
- package/dist/themes/momotaro/components/radio.css.d.ts +0 -1
- package/dist/themes/momotaro/components/radio.css.js +0 -65
- package/dist/themes/momotaro/components/select.css.cjs +0 -48
- package/dist/themes/momotaro/components/select.css.d.ts +0 -1
- package/dist/themes/momotaro/components/select.css.js +0 -48
- package/dist/themes/momotaro/components/slider.css.cjs +0 -93
- package/dist/themes/momotaro/components/slider.css.d.ts +0 -1
- package/dist/themes/momotaro/components/slider.css.js +0 -93
- package/dist/themes/momotaro/components/spinner.css.cjs +0 -44
- package/dist/themes/momotaro/components/spinner.css.d.ts +0 -1
- package/dist/themes/momotaro/components/spinner.css.js +0 -44
- package/dist/themes/momotaro/components/switch.css.cjs +0 -62
- package/dist/themes/momotaro/components/switch.css.d.ts +0 -1
- package/dist/themes/momotaro/components/switch.css.js +0 -62
- package/dist/themes/momotaro/components/tooltip.css.cjs +0 -31
- package/dist/themes/momotaro/components/tooltip.css.d.ts +0 -1
- package/dist/themes/momotaro/components/tooltip.css.js +0 -31
- package/dist/themes/momotaro/components/transitions.cjs +0 -4
- package/dist/themes/momotaro/components/transitions.d.ts +0 -1
- package/dist/themes/momotaro/components/transitions.js +0 -4
- package/dist/themes/momotaro/index.d.ts +0 -1
- package/dist/themes/momotaro/momotaro.css.cjs +0 -14
- package/dist/themes/momotaro/momotaro.css.d.ts +0 -1
- package/dist/themes/momotaro/momotaro.css.js +0 -14
- package/dist/themes/momotaro/tokens.css.cjs +0 -86
- package/dist/themes/momotaro/tokens.css.d.ts +0 -2
- package/dist/themes/momotaro/tokens.css.js +0 -86
- package/dist/themes/momotaro.cjs +0 -4
- package/dist/themes/momotaro.js +0 -4
- package/themes/momotaro/index.d.ts +0 -1
- package/themes/momotaro/package.json +0 -5
- /package/dist/{entries/reset.d.ts → index.spec.d.ts} +0 -0
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { createVar } from "@vanilla-extract/css";
|
|
3
|
-
import { style } from "../../../lib/css/style/style.js";
|
|
4
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
5
|
-
import { vars } from "../../../lib/theme/vars.css.js";
|
|
6
|
-
import { focusable } from "./helpers.css.js";
|
|
7
|
-
setFileScope("src/themes/momotaro/components/slider.css.ts", "@blockle/blocks");
|
|
8
|
-
const trackBackground = createVar();
|
|
9
|
-
const filledTrackBackground = createVar();
|
|
10
|
-
const thumbBackground = createVar();
|
|
11
|
-
const thumbActive = createVar();
|
|
12
|
-
const slider = makeComponentTheme("slider", {
|
|
13
|
-
base: style({
|
|
14
|
-
blockSize: "20px"
|
|
15
|
-
}),
|
|
16
|
-
track: style({
|
|
17
|
-
blockSize: "4px",
|
|
18
|
-
backgroundColor: trackBackground,
|
|
19
|
-
borderRadius: "small"
|
|
20
|
-
}),
|
|
21
|
-
filledTrack: style({
|
|
22
|
-
backgroundColor: filledTrackBackground
|
|
23
|
-
}),
|
|
24
|
-
thumb: style([
|
|
25
|
-
{
|
|
26
|
-
backgroundColor: thumbBackground,
|
|
27
|
-
borderRadius: "50%",
|
|
28
|
-
height: "16px",
|
|
29
|
-
width: "16px",
|
|
30
|
-
boxShadow: `0 0 0 0px color-mix(in srgb, ${vars.color.primaryLight}, transparent 0%)`,
|
|
31
|
-
vars: {
|
|
32
|
-
[thumbActive]: `0 0 0 8px color-mix(in srgb, ${vars.color.primaryLight}, transparent 20%)`
|
|
33
|
-
},
|
|
34
|
-
":hover": {
|
|
35
|
-
boxShadow: thumbActive
|
|
36
|
-
},
|
|
37
|
-
":focus-visible": {
|
|
38
|
-
boxShadow: thumbActive
|
|
39
|
-
},
|
|
40
|
-
"@media": {
|
|
41
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
42
|
-
transition: "box-shadow 0.2s"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
focusable
|
|
47
|
-
]),
|
|
48
|
-
variants: {
|
|
49
|
-
size: {
|
|
50
|
-
small: style({
|
|
51
|
-
inlineSize: "100px"
|
|
52
|
-
}),
|
|
53
|
-
medium: style({
|
|
54
|
-
inlineSize: "200px"
|
|
55
|
-
}),
|
|
56
|
-
large: style({
|
|
57
|
-
inlineSize: "300px"
|
|
58
|
-
})
|
|
59
|
-
},
|
|
60
|
-
colorScheme: {
|
|
61
|
-
primary: style({
|
|
62
|
-
vars: {
|
|
63
|
-
[trackBackground]: vars.color.primaryLight,
|
|
64
|
-
[filledTrackBackground]: vars.color.primary,
|
|
65
|
-
[thumbBackground]: vars.color.primary
|
|
66
|
-
}
|
|
67
|
-
}),
|
|
68
|
-
secondary: style({
|
|
69
|
-
vars: {
|
|
70
|
-
[trackBackground]: vars.color.primaryLight,
|
|
71
|
-
[filledTrackBackground]: vars.color.secondary,
|
|
72
|
-
[thumbBackground]: vars.color.secondary
|
|
73
|
-
}
|
|
74
|
-
})
|
|
75
|
-
},
|
|
76
|
-
disabled: style({
|
|
77
|
-
pointerEvents: "none",
|
|
78
|
-
vars: {
|
|
79
|
-
[trackBackground]: "#c0c0c0",
|
|
80
|
-
[filledTrackBackground]: "#ccc",
|
|
81
|
-
[thumbBackground]: "#c0c0c0"
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
},
|
|
85
|
-
defaultVariants: {
|
|
86
|
-
size: "medium",
|
|
87
|
-
colorScheme: "primary"
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
endFileScope();
|
|
91
|
-
export {
|
|
92
|
-
slider
|
|
93
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const css = require("@vanilla-extract/css");
|
|
5
|
-
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
-
fileScope.setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
|
|
7
|
-
const spinAnimation = css.keyframes({
|
|
8
|
-
"0%": {
|
|
9
|
-
transform: "rotate(0deg)"
|
|
10
|
-
},
|
|
11
|
-
"100%": {
|
|
12
|
-
transform: "rotate(360deg)"
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const spinner = makeComponentTheme.makeComponentTheme("spinner", {
|
|
16
|
-
base: css.style({
|
|
17
|
-
aspectRatio: "1 / 1",
|
|
18
|
-
overflow: "hidden",
|
|
19
|
-
borderRadius: "50%",
|
|
20
|
-
borderWidth: "3px",
|
|
21
|
-
borderStyle: "solid",
|
|
22
|
-
borderColor: "currentColor transparent currentColor transparent",
|
|
23
|
-
animation: `${spinAnimation} 1.2s linear infinite`
|
|
24
|
-
}),
|
|
25
|
-
variants: {
|
|
26
|
-
// note: colors are handled by atoms
|
|
27
|
-
size: {
|
|
28
|
-
small: css.style({
|
|
29
|
-
width: 16
|
|
30
|
-
}),
|
|
31
|
-
medium: css.style({
|
|
32
|
-
width: 24
|
|
33
|
-
}),
|
|
34
|
-
large: css.style({
|
|
35
|
-
width: 32
|
|
36
|
-
})
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
size: "small"
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
fileScope.endFileScope();
|
|
44
|
-
exports.spinner = spinner;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const spinner: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SpinnerTheme> | undefined;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style, keyframes } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/spinner.css.ts", "@blockle/blocks");
|
|
5
|
-
const spinAnimation = keyframes({
|
|
6
|
-
"0%": {
|
|
7
|
-
transform: "rotate(0deg)"
|
|
8
|
-
},
|
|
9
|
-
"100%": {
|
|
10
|
-
transform: "rotate(360deg)"
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const spinner = makeComponentTheme("spinner", {
|
|
14
|
-
base: style({
|
|
15
|
-
aspectRatio: "1 / 1",
|
|
16
|
-
overflow: "hidden",
|
|
17
|
-
borderRadius: "50%",
|
|
18
|
-
borderWidth: "3px",
|
|
19
|
-
borderStyle: "solid",
|
|
20
|
-
borderColor: "currentColor transparent currentColor transparent",
|
|
21
|
-
animation: `${spinAnimation} 1.2s linear infinite`
|
|
22
|
-
}),
|
|
23
|
-
variants: {
|
|
24
|
-
// note: colors are handled by atoms
|
|
25
|
-
size: {
|
|
26
|
-
small: style({
|
|
27
|
-
width: 16
|
|
28
|
-
}),
|
|
29
|
-
medium: style({
|
|
30
|
-
width: 24
|
|
31
|
-
}),
|
|
32
|
-
large: style({
|
|
33
|
-
width: 32
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
defaultVariants: {
|
|
38
|
-
size: "small"
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
endFileScope();
|
|
42
|
-
export {
|
|
43
|
-
spinner
|
|
44
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const css = require("@vanilla-extract/css");
|
|
5
|
-
const style = require("../../../lib/css/style/style.cjs");
|
|
6
|
-
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
7
|
-
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
8
|
-
const helpers_css = require("./helpers.css.cjs");
|
|
9
|
-
fileScope.setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/blocks");
|
|
10
|
-
const activeScaleFactor = css.createVar();
|
|
11
|
-
const switchTheme = makeComponentTheme.makeComponentTheme("switch", {
|
|
12
|
-
base: style.style([
|
|
13
|
-
{
|
|
14
|
-
width: 52,
|
|
15
|
-
height: 32,
|
|
16
|
-
borderRadius: "xlarge",
|
|
17
|
-
backgroundColor: "textLight",
|
|
18
|
-
"@media": {
|
|
19
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
20
|
-
transition: `background-color 120ms linear, box-shadow ${vars_css.vars.transition.fast}`
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
selectors: {
|
|
24
|
-
'&[data-checked="true"]': {
|
|
25
|
-
backgroundColor: vars_css.vars.color.secondary
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
// Scale the switch when it's `:active`
|
|
29
|
-
vars: {
|
|
30
|
-
[activeScaleFactor]: "1"
|
|
31
|
-
},
|
|
32
|
-
":active": {
|
|
33
|
-
vars: {
|
|
34
|
-
[activeScaleFactor]: "0.96"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
helpers_css.focusable
|
|
39
|
-
]),
|
|
40
|
-
slider: style.style({
|
|
41
|
-
width: 24,
|
|
42
|
-
height: 24,
|
|
43
|
-
top: 4,
|
|
44
|
-
left: 4,
|
|
45
|
-
transform: `translateX(0) scale(calc(0.9 * ${activeScaleFactor}))`,
|
|
46
|
-
position: "absolute",
|
|
47
|
-
backgroundColor: "white",
|
|
48
|
-
borderRadius: "xlarge",
|
|
49
|
-
selectors: {
|
|
50
|
-
'&[data-checked="true"]': {
|
|
51
|
-
transform: `translateX(20px) scale(${activeScaleFactor})`
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"@media": {
|
|
55
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
56
|
-
transition: "transform 120ms ease-out"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
})
|
|
60
|
-
});
|
|
61
|
-
fileScope.endFileScope();
|
|
62
|
-
exports.switchTheme = switchTheme;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const switchTheme: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').SwitchTheme> | undefined;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { createVar } from "@vanilla-extract/css";
|
|
3
|
-
import { style } from "../../../lib/css/style/style.js";
|
|
4
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
5
|
-
import { vars } from "../../../lib/theme/vars.css.js";
|
|
6
|
-
import { focusable } from "./helpers.css.js";
|
|
7
|
-
setFileScope("src/themes/momotaro/components/switch.css.ts", "@blockle/blocks");
|
|
8
|
-
const activeScaleFactor = createVar();
|
|
9
|
-
const switchTheme = makeComponentTheme("switch", {
|
|
10
|
-
base: style([
|
|
11
|
-
{
|
|
12
|
-
width: 52,
|
|
13
|
-
height: 32,
|
|
14
|
-
borderRadius: "xlarge",
|
|
15
|
-
backgroundColor: "textLight",
|
|
16
|
-
"@media": {
|
|
17
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
18
|
-
transition: `background-color 120ms linear, box-shadow ${vars.transition.fast}`
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
selectors: {
|
|
22
|
-
'&[data-checked="true"]': {
|
|
23
|
-
backgroundColor: vars.color.secondary
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
// Scale the switch when it's `:active`
|
|
27
|
-
vars: {
|
|
28
|
-
[activeScaleFactor]: "1"
|
|
29
|
-
},
|
|
30
|
-
":active": {
|
|
31
|
-
vars: {
|
|
32
|
-
[activeScaleFactor]: "0.96"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
focusable
|
|
37
|
-
]),
|
|
38
|
-
slider: style({
|
|
39
|
-
width: 24,
|
|
40
|
-
height: 24,
|
|
41
|
-
top: 4,
|
|
42
|
-
left: 4,
|
|
43
|
-
transform: `translateX(0) scale(calc(0.9 * ${activeScaleFactor}))`,
|
|
44
|
-
position: "absolute",
|
|
45
|
-
backgroundColor: "white",
|
|
46
|
-
borderRadius: "xlarge",
|
|
47
|
-
selectors: {
|
|
48
|
-
'&[data-checked="true"]': {
|
|
49
|
-
transform: `translateX(20px) scale(${activeScaleFactor})`
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
"@media": {
|
|
53
|
-
"(prefers-reduced-motion: no-preference)": {
|
|
54
|
-
transition: "transform 120ms ease-out"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
endFileScope();
|
|
60
|
-
export {
|
|
61
|
-
switchTheme
|
|
62
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const style = require("../../../lib/css/style/style.cjs");
|
|
5
|
-
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
-
fileScope.setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
|
|
7
|
-
const tooltip = makeComponentTheme.makeComponentTheme("tooltip", {
|
|
8
|
-
base: style.style({
|
|
9
|
-
backgroundColor: "primary",
|
|
10
|
-
padding: "small"
|
|
11
|
-
}),
|
|
12
|
-
variants: {
|
|
13
|
-
colorScheme: {
|
|
14
|
-
primary: style.style({
|
|
15
|
-
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
16
|
-
boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
|
|
17
|
-
color: "white"
|
|
18
|
-
}),
|
|
19
|
-
secondary: style.style({
|
|
20
|
-
backgroundColor: "rgba(255, 255, 255, 0.8)",
|
|
21
|
-
boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
|
|
22
|
-
color: "black"
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
defaultVariants: {
|
|
27
|
-
colorScheme: "primary"
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
fileScope.endFileScope();
|
|
31
|
-
exports.tooltip = tooltip;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const tooltip: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').TooltipTheme> | undefined;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style } from "../../../lib/css/style/style.js";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
-
setFileScope("src/themes/momotaro/components/tooltip.css.ts", "@blockle/blocks");
|
|
5
|
-
const tooltip = makeComponentTheme("tooltip", {
|
|
6
|
-
base: style({
|
|
7
|
-
backgroundColor: "primary",
|
|
8
|
-
padding: "small"
|
|
9
|
-
}),
|
|
10
|
-
variants: {
|
|
11
|
-
colorScheme: {
|
|
12
|
-
primary: style({
|
|
13
|
-
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
14
|
-
boxShadow: "0 0 0 1px rgba(255, 255, 255, 0.1)",
|
|
15
|
-
color: "white"
|
|
16
|
-
}),
|
|
17
|
-
secondary: style({
|
|
18
|
-
backgroundColor: "rgba(255, 255, 255, 0.8)",
|
|
19
|
-
boxShadow: "0 0 0 1px rgba(0, 0, 0, 0.1)",
|
|
20
|
-
color: "black"
|
|
21
|
-
})
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
colorScheme: "primary"
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
endFileScope();
|
|
29
|
-
export {
|
|
30
|
-
tooltip
|
|
31
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const bounceOut = "cubic-bezier(.65,.36,.55,1.65)";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { momotaro } from './momotaro.css';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const makeTheme = require("../../lib/theme/makeTheme.cjs");
|
|
5
|
-
const index = require("./components/index.cjs");
|
|
6
|
-
const tokens_css = require("./tokens.css.cjs");
|
|
7
|
-
fileScope.setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/blocks");
|
|
8
|
-
const momotaro = makeTheme.makeTheme({
|
|
9
|
-
name: "momotaro",
|
|
10
|
-
tokens: tokens_css.tokens,
|
|
11
|
-
components: index.components
|
|
12
|
-
});
|
|
13
|
-
fileScope.endFileScope();
|
|
14
|
-
exports.momotaro = momotaro;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const momotaro: import('../../lib/theme/makeTheme').Theme;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { makeTheme } from "../../lib/theme/makeTheme.js";
|
|
3
|
-
import { components } from "./components/index.js";
|
|
4
|
-
import { tokens } from "./tokens.css.js";
|
|
5
|
-
setFileScope("src/themes/momotaro/momotaro.css.ts", "@blockle/blocks");
|
|
6
|
-
const momotaro = makeTheme({
|
|
7
|
-
name: "momotaro",
|
|
8
|
-
tokens,
|
|
9
|
-
components
|
|
10
|
-
});
|
|
11
|
-
endFileScope();
|
|
12
|
-
export {
|
|
13
|
-
momotaro
|
|
14
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
4
|
-
const cssUtils = require("../../lib/css/utils/cssUtils.cjs");
|
|
5
|
-
fileScope.setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/blocks");
|
|
6
|
-
const tokens = {
|
|
7
|
-
border: {
|
|
8
|
-
radius: {
|
|
9
|
-
small: "4px",
|
|
10
|
-
medium: "8px",
|
|
11
|
-
large: "16px",
|
|
12
|
-
xlarge: "32px"
|
|
13
|
-
},
|
|
14
|
-
width: {
|
|
15
|
-
small: "1px",
|
|
16
|
-
medium: "2px",
|
|
17
|
-
large: "4px"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
color: {
|
|
21
|
-
white: "#fff",
|
|
22
|
-
black: "#000",
|
|
23
|
-
body: "#F4F6FA",
|
|
24
|
-
primaryLight: "#E4DFFF",
|
|
25
|
-
primary: "#7265E3",
|
|
26
|
-
primaryDark: "#4D3CAB",
|
|
27
|
-
secondaryLight: "#7CF5CD",
|
|
28
|
-
secondary: "#7FE3F0",
|
|
29
|
-
secondaryDark: "#68C6EF",
|
|
30
|
-
text: "#2D3142",
|
|
31
|
-
textLight: "#9C9EB9",
|
|
32
|
-
textDark: "#4C5980",
|
|
33
|
-
danger: "#FF9B90",
|
|
34
|
-
link: "#7265E3"
|
|
35
|
-
},
|
|
36
|
-
shadow: {
|
|
37
|
-
small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
|
|
38
|
-
medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
|
|
39
|
-
large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
|
|
40
|
-
},
|
|
41
|
-
focus: {
|
|
42
|
-
boxShadow: "0 0 1px 2px #AF8EFF"
|
|
43
|
-
},
|
|
44
|
-
spacing: {
|
|
45
|
-
none: "0px",
|
|
46
|
-
gutter: "28px",
|
|
47
|
-
xsmall: "4px",
|
|
48
|
-
small: "8px",
|
|
49
|
-
medium: "12px",
|
|
50
|
-
large: "16px",
|
|
51
|
-
xlarge: "24px"
|
|
52
|
-
},
|
|
53
|
-
transition: {
|
|
54
|
-
slow: "240ms",
|
|
55
|
-
normal: "120ms",
|
|
56
|
-
fast: "80ms"
|
|
57
|
-
},
|
|
58
|
-
typography: {
|
|
59
|
-
fontFamily: {
|
|
60
|
-
body: '"Rubik", sans-serif',
|
|
61
|
-
primary: '"Rubik", sans-serif',
|
|
62
|
-
secondary: '"Rubik", sans-serif'
|
|
63
|
-
},
|
|
64
|
-
fontSize: {
|
|
65
|
-
xsmall: cssUtils.rem(12),
|
|
66
|
-
small: cssUtils.rem(14),
|
|
67
|
-
medium: cssUtils.rem(16),
|
|
68
|
-
large: cssUtils.rem(20),
|
|
69
|
-
xlarge: cssUtils.rem(24)
|
|
70
|
-
},
|
|
71
|
-
fontWeight: {
|
|
72
|
-
regular: 400,
|
|
73
|
-
medium: 500,
|
|
74
|
-
strong: 700
|
|
75
|
-
},
|
|
76
|
-
lineHeight: {
|
|
77
|
-
xsmall: cssUtils.rem(16),
|
|
78
|
-
small: cssUtils.rem(20),
|
|
79
|
-
medium: cssUtils.rem(24),
|
|
80
|
-
large: cssUtils.rem(28),
|
|
81
|
-
xlarge: cssUtils.rem(32)
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
fileScope.endFileScope();
|
|
86
|
-
exports.tokens = tokens;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { rem } from "../../lib/css/utils/cssUtils.js";
|
|
3
|
-
setFileScope("src/themes/momotaro/tokens.css.ts", "@blockle/blocks");
|
|
4
|
-
const tokens = {
|
|
5
|
-
border: {
|
|
6
|
-
radius: {
|
|
7
|
-
small: "4px",
|
|
8
|
-
medium: "8px",
|
|
9
|
-
large: "16px",
|
|
10
|
-
xlarge: "32px"
|
|
11
|
-
},
|
|
12
|
-
width: {
|
|
13
|
-
small: "1px",
|
|
14
|
-
medium: "2px",
|
|
15
|
-
large: "4px"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
color: {
|
|
19
|
-
white: "#fff",
|
|
20
|
-
black: "#000",
|
|
21
|
-
body: "#F4F6FA",
|
|
22
|
-
primaryLight: "#E4DFFF",
|
|
23
|
-
primary: "#7265E3",
|
|
24
|
-
primaryDark: "#4D3CAB",
|
|
25
|
-
secondaryLight: "#7CF5CD",
|
|
26
|
-
secondary: "#7FE3F0",
|
|
27
|
-
secondaryDark: "#68C6EF",
|
|
28
|
-
text: "#2D3142",
|
|
29
|
-
textLight: "#9C9EB9",
|
|
30
|
-
textDark: "#4C5980",
|
|
31
|
-
danger: "#FF9B90",
|
|
32
|
-
link: "#7265E3"
|
|
33
|
-
},
|
|
34
|
-
shadow: {
|
|
35
|
-
small: "0px 4px 8px rgba(0, 0, 0, 0.08)",
|
|
36
|
-
medium: "0px 8px 16px rgba(0, 0, 0, 0.08)",
|
|
37
|
-
large: "0px 16px 24px rgba(0, 0, 0, 0.08)"
|
|
38
|
-
},
|
|
39
|
-
focus: {
|
|
40
|
-
boxShadow: "0 0 1px 2px #AF8EFF"
|
|
41
|
-
},
|
|
42
|
-
spacing: {
|
|
43
|
-
none: "0px",
|
|
44
|
-
gutter: "28px",
|
|
45
|
-
xsmall: "4px",
|
|
46
|
-
small: "8px",
|
|
47
|
-
medium: "12px",
|
|
48
|
-
large: "16px",
|
|
49
|
-
xlarge: "24px"
|
|
50
|
-
},
|
|
51
|
-
transition: {
|
|
52
|
-
slow: "240ms",
|
|
53
|
-
normal: "120ms",
|
|
54
|
-
fast: "80ms"
|
|
55
|
-
},
|
|
56
|
-
typography: {
|
|
57
|
-
fontFamily: {
|
|
58
|
-
body: '"Rubik", sans-serif',
|
|
59
|
-
primary: '"Rubik", sans-serif',
|
|
60
|
-
secondary: '"Rubik", sans-serif'
|
|
61
|
-
},
|
|
62
|
-
fontSize: {
|
|
63
|
-
xsmall: rem(12),
|
|
64
|
-
small: rem(14),
|
|
65
|
-
medium: rem(16),
|
|
66
|
-
large: rem(20),
|
|
67
|
-
xlarge: rem(24)
|
|
68
|
-
},
|
|
69
|
-
fontWeight: {
|
|
70
|
-
regular: 400,
|
|
71
|
-
medium: 500,
|
|
72
|
-
strong: 700
|
|
73
|
-
},
|
|
74
|
-
lineHeight: {
|
|
75
|
-
xsmall: rem(16),
|
|
76
|
-
small: rem(20),
|
|
77
|
-
medium: rem(24),
|
|
78
|
-
large: rem(28),
|
|
79
|
-
xlarge: rem(32)
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
endFileScope();
|
|
84
|
-
export {
|
|
85
|
-
tokens
|
|
86
|
-
};
|
package/dist/themes/momotaro.cjs
DELETED
package/dist/themes/momotaro.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../dist/themes/momotaro";
|
|
File without changes
|