@blockle/blocks 0.19.1 → 0.20.0-alpha1.0
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/dist/components/accessibility/VisuallyHidden/VisuallyHidden.cjs +20 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts +5 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.js +20 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.spec.d.ts +1 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.stories.d.ts +6 -0
- package/dist/components/accessibility/VisuallyHidden/index.d.ts +1 -0
- package/dist/{styles/components/Accessibility → components/accessibility}/VisuallyHidden/visually-hidden.css.cjs +3 -2
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts +1 -0
- package/dist/{styles/components/Accessibility/VisuallyHidden/visually-hidden.css.mjs → components/accessibility/VisuallyHidden/visually-hidden.css.js} +2 -2
- package/dist/components/display/Divider/Divider.cjs +26 -0
- package/dist/components/display/Divider/Divider.d.ts +7 -0
- package/dist/components/display/Divider/Divider.js +26 -0
- package/dist/components/display/Divider/Divider.spec.d.ts +1 -0
- package/dist/components/display/Divider/Divider.stories.d.ts +6 -0
- package/dist/{styles/components → components}/display/Divider/divider.css.cjs +4 -3
- package/dist/components/display/Divider/divider.css.d.ts +1 -0
- package/dist/{styles/components/display/Divider/divider.css.mjs → components/display/Divider/divider.css.js} +2 -2
- package/dist/components/display/Divider/index.d.ts +1 -0
- package/dist/components/feedback/Progress/Progress.cjs +54 -0
- package/dist/components/feedback/Progress/Progress.d.ts +16 -0
- package/dist/components/feedback/Progress/Progress.js +54 -0
- package/dist/components/feedback/Progress/Progress.stories.d.ts +5 -0
- package/dist/components/feedback/Progress/index.d.ts +1 -0
- package/dist/components/feedback/Spinner/Spinner.cjs +26 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts +9 -0
- package/dist/components/feedback/Spinner/Spinner.js +26 -0
- package/dist/components/feedback/Spinner/Spinner.stories.d.ts +5 -0
- package/dist/components/feedback/Spinner/index.d.ts +1 -0
- package/dist/components/form/Button/Button.cjs +59 -0
- package/dist/{styles/components → components}/form/Button/Button.css.cjs +4 -3
- package/dist/components/form/Button/Button.css.d.ts +1 -0
- package/dist/{styles/components/form/Button/Button.css.mjs → components/form/Button/Button.css.js} +2 -2
- package/dist/components/form/Button/Button.d.ts +21 -0
- package/dist/{styles/components/form/Button/Button.mjs → components/form/Button/Button.js} +16 -14
- package/dist/components/form/Button/Button.spec.d.ts +1 -0
- package/dist/components/form/Button/Button.stories.d.ts +7 -0
- package/dist/components/form/Button/index.d.ts +1 -0
- package/dist/components/form/Checkbox/Checkbox.cjs +79 -0
- package/dist/components/form/Checkbox/Checkbox.d.ts +9 -0
- package/dist/components/form/Checkbox/Checkbox.js +79 -0
- package/dist/components/form/Checkbox/Checkbox.spec.d.ts +1 -0
- package/dist/components/form/Checkbox/Checkbox.stories.d.ts +5 -0
- package/dist/{styles/components → components}/form/Checkbox/checkbox.css.cjs +7 -6
- package/dist/components/form/Checkbox/checkbox.css.d.ts +3 -0
- package/dist/{styles/components/form/Checkbox/checkbox.css.mjs → components/form/Checkbox/checkbox.css.js} +4 -4
- package/dist/components/form/Checkbox/index.d.ts +1 -0
- package/dist/components/form/Input/Input.cjs +51 -0
- package/dist/components/form/Input/Input.d.ts +11 -0
- package/dist/components/form/Input/Input.js +51 -0
- package/dist/components/form/Input/Input.spec.d.ts +1 -0
- package/dist/components/form/Input/Input.stories.d.ts +5 -0
- package/dist/components/form/Input/index.d.ts +1 -0
- package/dist/{styles/components → components}/form/Input/input.css.cjs +4 -3
- package/dist/components/form/Input/input.css.d.ts +1 -0
- package/dist/{styles/components/form/Input/input.css.mjs → components/form/Input/input.css.js} +2 -2
- package/dist/components/form/Label/Label.cjs +30 -0
- package/dist/components/form/Label/Label.d.ts +18 -0
- package/dist/components/form/Label/Label.js +30 -0
- package/dist/components/form/Label/Label.spec.d.ts +1 -0
- package/dist/components/form/Label/Label.stories.d.ts +6 -0
- package/dist/components/form/Label/index.d.ts +1 -0
- package/dist/components/form/Radio/Radio.cjs +48 -0
- package/dist/components/form/Radio/Radio.d.ts +8 -0
- package/dist/components/form/Radio/Radio.js +48 -0
- package/dist/components/form/Radio/Radio.spec.d.ts +1 -0
- package/dist/components/form/Radio/Radio.stories.d.ts +6 -0
- package/dist/components/form/Radio/RadioGroup.d.ts +8 -0
- package/dist/components/form/Radio/index.d.ts +2 -0
- package/dist/{styles/components → components}/form/Radio/radio.css.cjs +7 -6
- package/dist/components/form/Radio/radio.css.d.ts +3 -0
- package/dist/{styles/components/form/Radio/radio.css.mjs → components/form/Radio/radio.css.js} +4 -4
- package/dist/components/form/Select/Select.cjs +65 -0
- package/dist/components/form/Select/Select.d.ts +10 -0
- package/dist/{styles/components/form/Select/Select.mjs → components/form/Select/Select.js} +24 -7
- package/dist/components/form/Select/Select.stories.d.ts +5 -0
- package/dist/components/form/Select/index.d.ts +1 -0
- package/dist/{styles/components → components}/form/Select/select.css.cjs +8 -7
- package/dist/components/form/Select/select.css.d.ts +3 -0
- package/dist/{styles/components/form/Select/select.css.mjs → components/form/Select/select.css.js} +4 -4
- package/dist/components/form/Slider/Slider.cjs +141 -0
- package/dist/components/form/Slider/Slider.d.ts +20 -0
- package/dist/components/form/Slider/Slider.js +141 -0
- package/dist/components/form/Slider/Slider.spec.d.ts +1 -0
- package/dist/components/form/Slider/Slider.stories.d.ts +6 -0
- package/dist/components/form/Slider/index.d.ts +1 -0
- package/dist/{styles/components → components}/form/Slider/slider.css.cjs +12 -11
- package/dist/components/form/Slider/slider.css.d.ts +5 -0
- package/dist/{styles/components/form/Slider/slider.css.mjs → components/form/Slider/slider.css.js} +6 -6
- package/dist/components/form/Slider/usePointerProgress.cjs +47 -0
- package/dist/components/form/Slider/usePointerProgress.d.ts +11 -0
- package/dist/components/form/Slider/usePointerProgress.js +47 -0
- package/dist/{styles/components → components}/form/Switch/Switch.cjs +12 -8
- package/dist/components/form/Switch/Switch.d.ts +6 -0
- package/dist/{styles/components/form/Switch/Switch.mjs → components/form/Switch/Switch.js} +9 -6
- package/dist/components/form/Switch/Switch.stories.d.ts +5 -0
- package/dist/components/form/Switch/index.d.ts +1 -0
- package/dist/{styles/components → components}/form/Switch/switch.css.cjs +6 -5
- package/dist/components/form/Switch/switch.css.d.ts +2 -0
- package/dist/{styles/components/form/Switch/switch.css.mjs → components/form/Switch/switch.css.js} +3 -3
- package/dist/components/layout/Box/Box.cjs +28 -0
- package/dist/components/layout/Box/Box.d.ts +11 -0
- package/dist/components/layout/Box/Box.js +28 -0
- package/dist/components/layout/Box/Box.spec.d.ts +1 -0
- package/dist/components/layout/Box/Box.stories.d.ts +6 -0
- package/dist/components/layout/Box/index.d.ts +1 -0
- package/dist/components/layout/Inline/Inline.cjs +30 -0
- package/dist/components/layout/Inline/Inline.d.ts +13 -0
- package/dist/components/layout/Inline/Inline.js +30 -0
- package/dist/components/layout/Inline/Inline.stories.d.ts +6 -0
- package/dist/components/layout/Inline/index.d.ts +1 -0
- package/dist/components/layout/Stack/Stack.cjs +30 -0
- package/dist/components/layout/Stack/Stack.d.ts +17 -0
- package/dist/components/layout/Stack/Stack.js +30 -0
- package/dist/components/layout/Stack/Stack.stories.d.ts +6 -0
- package/dist/components/layout/Stack/index.d.ts +1 -0
- package/dist/components/navigation/Link/Link.cjs +32 -0
- package/dist/components/navigation/Link/Link.d.ts +11 -0
- package/dist/components/navigation/Link/Link.js +32 -0
- package/dist/components/navigation/Link/Link.stories.d.ts +6 -0
- package/dist/components/navigation/Link/index.d.ts +1 -0
- package/dist/components/other/BlocksProvider/BlocksProvider.cjs +38 -0
- package/dist/components/other/BlocksProvider/BlocksProvider.d.ts +8 -0
- package/dist/{styles/components/other/BlocksProvider/BlocksProvider.mjs → components/other/BlocksProvider/BlocksProvider.js} +12 -6
- package/dist/components/other/BlocksProvider/context.cjs +6 -0
- package/dist/components/other/BlocksProvider/context.d.ts +4 -0
- package/dist/components/other/BlocksProvider/context.js +6 -0
- package/dist/components/other/BlocksProvider/index.d.ts +2 -0
- package/dist/components/other/Portal/Portal.cjs +8 -0
- package/dist/components/other/Portal/Portal.d.ts +5 -0
- package/dist/components/other/Portal/Portal.js +8 -0
- package/dist/components/other/Portal/index.d.ts +1 -0
- package/dist/components/overlay/Dialog/Dialog.cjs +79 -0
- package/dist/components/overlay/Dialog/Dialog.d.ts +10 -0
- package/dist/components/overlay/Dialog/Dialog.js +79 -0
- package/dist/components/overlay/Dialog/Dialog.stories.d.ts +7 -0
- package/dist/{styles/components → components}/overlay/Dialog/dialog.css.cjs +4 -3
- package/dist/components/overlay/Dialog/dialog.css.d.ts +1 -0
- package/dist/{styles/components/overlay/Dialog/dialog.css.mjs → components/overlay/Dialog/dialog.css.js} +2 -2
- package/dist/components/overlay/Dialog/dialogHelper.cjs +22 -0
- package/dist/components/overlay/Dialog/dialogHelper.d.ts +6 -0
- package/dist/components/overlay/Dialog/dialogHelper.js +22 -0
- package/dist/components/overlay/Dialog/index.d.ts +1 -0
- package/dist/components/overlay/Popover/Popover.cjs +113 -0
- package/dist/components/overlay/Popover/Popover.d.ts +12 -0
- package/dist/components/overlay/Popover/Popover.js +113 -0
- package/dist/components/overlay/Popover/Popover.stories.d.ts +5 -0
- package/dist/components/overlay/Popover/popover-utils.cjs +62 -0
- package/dist/components/overlay/Popover/popover-utils.d.ts +2 -0
- package/dist/components/overlay/Popover/popover-utils.js +62 -0
- package/dist/components/overlay/Tooltip/Tooltip.cjs +73 -0
- package/dist/components/overlay/Tooltip/Tooltip.d.ts +11 -0
- package/dist/components/overlay/Tooltip/Tooltip.js +73 -0
- package/dist/components/overlay/Tooltip/Tooltip.stories.d.ts +5 -0
- package/dist/components/overlay/Tooltip/index.d.ts +1 -0
- package/dist/components/typography/Heading/Heading.cjs +24 -0
- package/dist/components/typography/Heading/Heading.d.ts +8 -0
- package/dist/components/typography/Heading/Heading.js +24 -0
- package/dist/{styles/components → components}/typography/Heading/heading.css.cjs +4 -3
- package/dist/components/typography/Heading/heading.css.d.ts +1 -0
- package/dist/{styles/components/typography/Heading/heading.css.mjs → components/typography/Heading/heading.css.js} +2 -2
- package/dist/components/typography/Heading/heading.stories.d.ts +12 -0
- package/dist/components/typography/Heading/index.d.ts +1 -0
- package/dist/components/typography/Text/Text.cjs +21 -0
- package/dist/components/typography/Text/Text.d.ts +12 -0
- package/dist/{styles/components/typography/Text/Text.mjs → components/typography/Text/Text.js} +3 -3
- package/dist/components/typography/Text/Text.stories.d.ts +5 -0
- package/dist/components/typography/Text/index.d.ts +1 -0
- package/dist/{styles/components → components}/typography/Text/text.css.cjs +4 -3
- package/dist/components/typography/Text/text.css.d.ts +1 -0
- package/dist/{styles/components/typography/Text/text.css.mjs → components/typography/Text/text.css.js} +2 -2
- package/dist/entries/reset.d.ts +0 -0
- package/dist/entries/themes/momotaro.d.ts +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.cjs +24 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +6 -0
- package/dist/hooks/useClickOutside/useClickOutside.js +24 -0
- package/dist/hooks/useControlledValue/useControlledValue.cjs +33 -0
- package/dist/hooks/useControlledValue/useControlledValue.d.ts +8 -0
- package/dist/hooks/useControlledValue/useControlledValue.js +33 -0
- package/dist/hooks/useFocusLock/index.d.ts +1 -0
- package/dist/hooks/useFocusLock/useFocusLock.d.ts +6 -0
- package/dist/hooks/useIsomorphicLayoutEffect/index.d.ts +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.cjs +6 -0
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +5 -0
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js +6 -0
- package/dist/hooks/useKeyboard/index.d.ts +1 -0
- package/dist/hooks/useKeyboard/useKeyboard.cjs +21 -0
- package/dist/hooks/useKeyboard/useKeyboard.d.ts +6 -0
- package/dist/hooks/useKeyboard/useKeyboard.js +21 -0
- package/dist/hooks/useLayer/index.d.ts +1 -0
- package/dist/hooks/useLayer/useLayer.cjs +27 -0
- package/dist/hooks/useLayer/useLayer.d.ts +1 -0
- package/dist/hooks/useLayer/useLayer.js +27 -0
- package/dist/hooks/usePreventBodyScroll/index.d.ts +1 -0
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.cjs +30 -0
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts +1 -0
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.js +30 -0
- package/dist/hooks/useRestoreFocus/index.d.ts +1 -0
- package/dist/hooks/useRestoreFocus/useRestoreFocus.cjs +19 -0
- package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts +4 -0
- package/dist/hooks/useRestoreFocus/useRestoreFocus.js +19 -0
- package/dist/hooks/useRootAriaHidden/index.d.ts +1 -0
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.cjs +12 -0
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.d.ts +7 -0
- package/dist/hooks/useRootAriaHidden/useRootAriaHidden.js +12 -0
- package/dist/hooks/useVisibilityState/index.d.ts +1 -0
- package/dist/hooks/useVisibilityState/useVisibilityState.cjs +17 -0
- package/dist/hooks/useVisibilityState/useVisibilityState.d.ts +3 -0
- package/dist/hooks/useVisibilityState/useVisibilityState.js +17 -0
- package/dist/index.cjs +71 -444
- package/dist/index.d.ts +36 -1
- package/dist/index.js +73 -0
- package/dist/lib/asChildRenderer/createAsChildTemplate.cjs +73 -0
- package/dist/lib/asChildRenderer/createAsChildTemplate.d.ts +34 -0
- package/dist/lib/asChildRenderer/createAsChildTemplate.js +73 -0
- package/dist/lib/asChildRenderer/createAsChildTemplate.spec.d.ts +1 -0
- package/dist/lib/css/atoms/atomTypes.d.ts +37 -0
- package/dist/{styles/lib → lib}/css/atoms/atomicProperties.cjs +29 -22
- package/dist/lib/css/atoms/atomicProperties.d.ts +286 -0
- package/dist/{styles/lib/css/atoms/atomicProperties.mjs → lib/css/atoms/atomicProperties.js} +8 -2
- package/dist/lib/css/atoms/atoms.d.ts +1 -0
- package/dist/{styles/lib → lib}/css/atoms/breakpoints.cjs +2 -0
- package/dist/lib/css/atoms/breakpoints.d.ts +9 -0
- package/dist/{styles/lib/css/atoms/breakpoints.mjs → lib/css/atoms/breakpoints.js} +1 -0
- package/dist/lib/css/atoms/index.d.ts +2 -0
- package/dist/lib/css/atoms/sprinkles.css.cjs +52 -0
- package/dist/lib/css/atoms/sprinkles.css.d.ts +233 -0
- package/dist/{styles/lib/css/atoms/sprinkles.css.mjs → lib/css/atoms/sprinkles.css.js} +18 -5
- package/dist/lib/css/flexbox/flexbox.cjs +17 -0
- package/dist/lib/css/flexbox/flexbox.d.ts +15 -0
- package/dist/lib/css/flexbox/flexbox.js +17 -0
- package/dist/{styles/lib → lib}/css/layers/layers.css.cjs +1 -0
- package/dist/lib/css/layers/layers.css.d.ts +1 -0
- package/dist/lib/css/reset/reset.css.d.ts +1 -0
- package/dist/{styles/lib → lib}/css/style/style.cjs +4 -3
- package/dist/lib/css/style/style.d.ts +12 -0
- package/dist/{styles/lib/css/style/style.mjs → lib/css/style/style.js} +1 -1
- package/dist/{styles/lib → lib}/css/utils/cssUtils.cjs +1 -0
- package/dist/lib/css/utils/cssUtils.d.ts +1 -0
- package/dist/lib/react/mergeProps.cjs +43 -0
- package/dist/lib/react/mergeProps.d.ts +4 -0
- package/dist/lib/react/mergeProps.js +43 -0
- package/dist/lib/react/refs.cjs +17 -0
- package/dist/lib/react/refs.d.ts +3 -0
- package/dist/lib/react/refs.js +17 -0
- package/dist/lib/theme/componentThemes.d.ts +134 -0
- package/dist/{styles/lib → lib}/theme/makeComponentTheme.cjs +1 -0
- package/dist/lib/theme/makeComponentTheme.d.ts +49 -0
- package/dist/lib/theme/makeTheme.cjs +13 -0
- package/dist/lib/theme/makeTheme.d.ts +14 -0
- package/dist/{styles/lib/theme/makeTheme.mjs → lib/theme/makeTheme.js} +2 -2
- package/dist/{styles/lib → lib}/theme/makeVanillaTheme.cjs +1 -0
- package/dist/lib/theme/makeVanillaTheme.d.ts +16 -0
- package/dist/lib/theme/store/theme.cjs +93 -0
- package/dist/lib/theme/store/theme.d.ts +13 -0
- package/dist/lib/theme/store/theme.js +93 -0
- package/dist/{styles/lib → lib}/theme/tokens.cjs +1 -0
- package/dist/lib/theme/tokens.d.ts +2 -0
- package/dist/lib/theme/tokensType.d.ts +33 -0
- package/dist/lib/theme/vars.css.cjs +10 -0
- package/dist/lib/theme/vars.css.d.ts +75 -0
- package/dist/{styles/lib/theme/vars.css.mjs → lib/theme/vars.css.js} +2 -2
- package/dist/{styles/lib → lib}/utils/atom-props.cjs +3 -2
- package/dist/lib/utils/atom-props.d.ts +4 -0
- package/dist/{styles/lib/utils/atom-props.mjs → lib/utils/atom-props.js} +1 -1
- package/dist/lib/utils/classnames.cjs +7 -0
- package/dist/lib/utils/classnames.d.ts +3 -0
- package/dist/lib/utils/classnames.js +7 -0
- package/dist/lib/utils/dom-focus.d.ts +2 -0
- package/dist/lib/utils/dom.cjs +13 -0
- package/dist/lib/utils/dom.d.ts +4 -0
- package/dist/lib/utils/dom.js +13 -0
- package/dist/lib/utils/helpers.d.ts +9 -0
- package/dist/lib/utils/math.cjs +13 -0
- package/dist/lib/utils/math.d.ts +2 -0
- package/dist/lib/utils/math.js +13 -0
- package/dist/lib/utils/utils.d.ts +3 -0
- package/dist/reset.cjs +2 -2
- package/dist/reset.js +2 -0
- package/dist/themes/momotaro/components/button.css.cjs +110 -0
- package/dist/themes/momotaro/components/button.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/button.css.mjs → themes/momotaro/components/button.css.js} +45 -39
- package/dist/themes/momotaro/components/checkbox.css.cjs +64 -0
- package/dist/themes/momotaro/components/checkbox.css.d.ts +1 -0
- package/dist/themes/momotaro/components/checkbox.css.js +64 -0
- package/dist/themes/momotaro/components/dialog.css.cjs +82 -0
- package/dist/themes/momotaro/components/dialog.css.d.ts +1 -0
- package/dist/themes/momotaro/components/dialog.css.js +82 -0
- package/dist/{styles/themes → themes}/momotaro/components/divider.css.cjs +4 -3
- package/dist/themes/momotaro/components/divider.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/divider.css.mjs → themes/momotaro/components/divider.css.js} +2 -2
- package/dist/{styles/themes → themes}/momotaro/components/helpers.css.cjs +13 -9
- package/dist/themes/momotaro/components/helpers.css.d.ts +8 -0
- package/dist/{styles/themes/momotaro/components/helpers.css.mjs → themes/momotaro/components/helpers.css.js} +10 -7
- package/dist/themes/momotaro/components/index.cjs +35 -0
- package/dist/themes/momotaro/components/index.d.ts +2 -0
- package/dist/themes/momotaro/components/index.js +35 -0
- package/dist/themes/momotaro/components/input.css.cjs +48 -0
- package/dist/themes/momotaro/components/input.css.d.ts +1 -0
- package/dist/themes/momotaro/components/input.css.js +48 -0
- package/dist/themes/momotaro/components/label.css.cjs +34 -0
- package/dist/themes/momotaro/components/label.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/label.css.mjs → themes/momotaro/components/label.css.js} +7 -7
- package/dist/themes/momotaro/components/link.css.cjs +57 -0
- package/dist/themes/momotaro/components/link.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/link.css.mjs → themes/momotaro/components/link.css.js} +27 -24
- package/dist/{styles/themes → themes}/momotaro/components/popover.css.cjs +5 -4
- package/dist/themes/momotaro/components/popover.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/popover.css.mjs → themes/momotaro/components/popover.css.js} +2 -2
- package/dist/{styles/themes → themes}/momotaro/components/progress.css.cjs +22 -18
- package/dist/themes/momotaro/components/progress.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/progress.css.mjs → themes/momotaro/components/progress.css.js} +18 -15
- package/dist/themes/momotaro/components/radio.css.cjs +65 -0
- package/dist/themes/momotaro/components/radio.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/radio.css.mjs → themes/momotaro/components/radio.css.js} +31 -27
- package/dist/themes/momotaro/components/select.css.cjs +48 -0
- package/dist/themes/momotaro/components/select.css.d.ts +1 -0
- package/dist/themes/momotaro/components/select.css.js +48 -0
- package/dist/themes/momotaro/components/slider.css.cjs +93 -0
- package/dist/themes/momotaro/components/slider.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/slider.css.mjs → themes/momotaro/components/slider.css.js} +31 -28
- package/dist/{styles/themes → themes}/momotaro/components/spinner.css.cjs +8 -7
- package/dist/themes/momotaro/components/spinner.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/spinner.css.mjs → themes/momotaro/components/spinner.css.js} +6 -6
- package/dist/themes/momotaro/components/switch.css.cjs +62 -0
- package/dist/themes/momotaro/components/switch.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/switch.css.mjs → themes/momotaro/components/switch.css.js} +31 -28
- package/dist/{styles/themes → themes}/momotaro/components/tooltip.css.cjs +7 -6
- package/dist/themes/momotaro/components/tooltip.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/components/tooltip.css.mjs → themes/momotaro/components/tooltip.css.js} +2 -2
- package/dist/{styles/themes → themes}/momotaro/components/transitions.cjs +1 -0
- package/dist/themes/momotaro/components/transitions.d.ts +1 -0
- package/dist/themes/momotaro/index.d.ts +1 -0
- package/dist/themes/momotaro/momotaro.css.cjs +14 -0
- package/dist/themes/momotaro/momotaro.css.d.ts +1 -0
- package/dist/{styles/themes/momotaro/momotaro.css.mjs → themes/momotaro/momotaro.css.js} +3 -3
- package/dist/{styles/themes → themes}/momotaro/tokens.css.cjs +12 -11
- package/dist/themes/momotaro/tokens.css.d.ts +2 -0
- package/dist/{styles/themes/momotaro/tokens.css.mjs → themes/momotaro/tokens.css.js} +1 -1
- package/dist/themes/momotaro.cjs +2 -2
- package/dist/themes/momotaro.js +4 -0
- package/package.json +17 -28
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +0 -451
- package/dist/momotaro.chunk.d.ts +0 -922
- package/dist/reset.d.mts +0 -2
- package/dist/reset.d.ts +0 -2
- package/dist/reset.mjs +0 -2
- package/dist/styles/components/Accessibility/VisuallyHidden/VisuallyHidden.cjs +0 -16
- package/dist/styles/components/Accessibility/VisuallyHidden/VisuallyHidden.mjs +0 -17
- package/dist/styles/components/display/Divider/Divider.cjs +0 -239
- package/dist/styles/components/display/Divider/Divider.mjs +0 -240
- package/dist/styles/components/form/Button/Button.cjs +0 -56
- package/dist/styles/components/form/Checkbox/Checkbox.cjs +0 -84
- package/dist/styles/components/form/Checkbox/Checkbox.mjs +0 -85
- package/dist/styles/components/form/Input/Input.cjs +0 -37
- package/dist/styles/components/form/Input/Input.mjs +0 -38
- package/dist/styles/components/form/Radio/Radio.cjs +0 -23
- package/dist/styles/components/form/Radio/Radio.mjs +0 -24
- package/dist/styles/components/form/Select/Select.cjs +0 -47
- package/dist/styles/components/form/Slider/Slider.cjs +0 -205
- package/dist/styles/components/form/Slider/Slider.mjs +0 -206
- package/dist/styles/components/other/BlocksProvider/BlocksProvider.cjs +0 -31
- package/dist/styles/components/overlay/Dialog/Dialog.cjs +0 -172
- package/dist/styles/components/overlay/Dialog/Dialog.mjs +0 -173
- package/dist/styles/components/typography/Heading/Heading.cjs +0 -15
- package/dist/styles/components/typography/Heading/Heading.mjs +0 -16
- package/dist/styles/components/typography/Text/Text.cjs +0 -20
- package/dist/styles/lib/css/atoms/atoms.cjs +0 -2
- package/dist/styles/lib/css/atoms/atoms.mjs +0 -1
- package/dist/styles/lib/css/atoms/index.cjs +0 -2
- package/dist/styles/lib/css/atoms/index.mjs +0 -1
- package/dist/styles/lib/css/atoms/sprinkles.css.cjs +0 -38
- package/dist/styles/lib/theme/makeTheme.cjs +0 -12
- package/dist/styles/lib/theme/vars.css.cjs +0 -9
- package/dist/styles/themes/momotaro/components/button.css.cjs +0 -103
- package/dist/styles/themes/momotaro/components/checkbox.css.cjs +0 -59
- package/dist/styles/themes/momotaro/components/checkbox.css.mjs +0 -60
- package/dist/styles/themes/momotaro/components/dialog.css.cjs +0 -78
- package/dist/styles/themes/momotaro/components/dialog.css.mjs +0 -79
- package/dist/styles/themes/momotaro/components/index.cjs +0 -34
- package/dist/styles/themes/momotaro/components/index.mjs +0 -35
- package/dist/styles/themes/momotaro/components/input.css.cjs +0 -41
- package/dist/styles/themes/momotaro/components/input.css.mjs +0 -42
- package/dist/styles/themes/momotaro/components/label.css.cjs +0 -33
- package/dist/styles/themes/momotaro/components/link.css.cjs +0 -53
- package/dist/styles/themes/momotaro/components/radio.css.cjs +0 -60
- package/dist/styles/themes/momotaro/components/select.css.cjs +0 -44
- package/dist/styles/themes/momotaro/components/select.css.mjs +0 -45
- package/dist/styles/themes/momotaro/components/slider.css.cjs +0 -89
- package/dist/styles/themes/momotaro/components/switch.css.cjs +0 -58
- package/dist/styles/themes/momotaro/index.cjs +0 -2
- package/dist/styles/themes/momotaro/index.mjs +0 -1
- package/dist/styles/themes/momotaro/momotaro.css.cjs +0 -13
- package/dist/themes/momotaro.d.mts +0 -1
- package/dist/themes/momotaro.d.ts +0 -1
- package/dist/themes/momotaro.mjs +0 -4
- package/reset/index.d.ts +0 -1
- package/reset/package.json +0 -5
- /package/dist/{styles/lib/css/layers/layers.css.mjs → lib/css/layers/layers.css.js} +0 -0
- /package/dist/{styles/lib → lib}/css/reset/reset.css.cjs +0 -0
- /package/dist/{styles/lib/css/reset/reset.css.mjs → lib/css/reset/reset.css.js} +0 -0
- /package/dist/{styles/lib/css/utils/cssUtils.mjs → lib/css/utils/cssUtils.js} +0 -0
- /package/dist/{styles/lib/theme/makeComponentTheme.mjs → lib/theme/makeComponentTheme.js} +0 -0
- /package/dist/{styles/lib/theme/makeVanillaTheme.mjs → lib/theme/makeVanillaTheme.js} +0 -0
- /package/dist/{styles/lib/theme/tokens.mjs → lib/theme/tokens.js} +0 -0
- /package/dist/{styles/themes/momotaro/components/transitions.mjs → themes/momotaro/components/transitions.js} +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
4
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
const
|
|
5
|
+
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
5
6
|
fileScope.setFileScope("src/themes/momotaro/components/helpers.css.ts", "@blockle/blocks");
|
|
6
|
-
const focusRingColor = css.createVar(
|
|
7
|
+
const focusRingColor = css.createVar();
|
|
7
8
|
const focusable = css.style({
|
|
8
9
|
"@media": {
|
|
9
10
|
"(prefers-reduced-motion: no-preference)": {
|
|
10
|
-
transition: `box-shadow ${
|
|
11
|
+
transition: `box-shadow ${vars_css.vars.transition.fast}`
|
|
11
12
|
}
|
|
12
13
|
},
|
|
13
14
|
":focus-visible": {
|
|
@@ -24,19 +25,22 @@ const focusable = css.style({
|
|
|
24
25
|
"&:has(input:focus-visible)": {
|
|
25
26
|
outline: "2px solid transparent",
|
|
26
27
|
outlineOffset: "2px",
|
|
27
|
-
boxShadow:
|
|
28
|
+
boxShadow: vars_css.vars.focus.boxShadow
|
|
28
29
|
},
|
|
29
30
|
"&:has(input:disabled)": {
|
|
30
31
|
opacity: 0.5,
|
|
31
32
|
cursor: "auto"
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
|
-
}
|
|
35
|
-
const clickable = css.style([
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
});
|
|
36
|
+
const clickable = css.style([
|
|
37
|
+
focusable,
|
|
38
|
+
{
|
|
39
|
+
":active": {
|
|
40
|
+
transform: "scale(0.975)"
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
|
-
|
|
43
|
+
]);
|
|
40
44
|
fileScope.endFileScope();
|
|
41
45
|
exports.clickable = clickable;
|
|
42
46
|
exports.focusRingColor = focusRingColor;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const focusRingColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
2
|
+
/**
|
|
3
|
+
* NOTE: When the original element has a transition, make sure to include
|
|
4
|
+
* `box-shadow ${vars.transition.fast}` in the transition property for the
|
|
5
|
+
* focus transition to work correctly.
|
|
6
|
+
*/
|
|
7
|
+
export declare const focusable: string;
|
|
8
|
+
export declare const clickable: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style, fallbackVar, createVar } from "@vanilla-extract/css";
|
|
3
|
-
import { vars } from "../../../lib/theme/vars.css.
|
|
3
|
+
import { vars } from "../../../lib/theme/vars.css.js";
|
|
4
4
|
setFileScope("src/themes/momotaro/components/helpers.css.ts", "@blockle/blocks");
|
|
5
|
-
const focusRingColor = createVar(
|
|
5
|
+
const focusRingColor = createVar();
|
|
6
6
|
const focusable = style({
|
|
7
7
|
"@media": {
|
|
8
8
|
"(prefers-reduced-motion: no-preference)": {
|
|
@@ -30,12 +30,15 @@ const focusable = style({
|
|
|
30
30
|
cursor: "auto"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
}
|
|
34
|
-
const clickable = style([
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
});
|
|
34
|
+
const clickable = style([
|
|
35
|
+
focusable,
|
|
36
|
+
{
|
|
37
|
+
":active": {
|
|
38
|
+
transform: "scale(0.975)"
|
|
39
|
+
}
|
|
37
40
|
}
|
|
38
|
-
|
|
41
|
+
]);
|
|
39
42
|
endFileScope();
|
|
40
43
|
export {
|
|
41
44
|
clickable,
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const button_css = require("./button.css.cjs");
|
|
4
|
+
const checkbox_css = require("./checkbox.css.cjs");
|
|
5
|
+
const dialog_css = require("./dialog.css.cjs");
|
|
6
|
+
const divider_css = require("./divider.css.cjs");
|
|
7
|
+
const input_css = require("./input.css.cjs");
|
|
8
|
+
const label_css = require("./label.css.cjs");
|
|
9
|
+
const link_css = require("./link.css.cjs");
|
|
10
|
+
const popover_css = require("./popover.css.cjs");
|
|
11
|
+
const progress_css = require("./progress.css.cjs");
|
|
12
|
+
const radio_css = require("./radio.css.cjs");
|
|
13
|
+
const select_css = require("./select.css.cjs");
|
|
14
|
+
const slider_css = require("./slider.css.cjs");
|
|
15
|
+
const spinner_css = require("./spinner.css.cjs");
|
|
16
|
+
const switch_css = require("./switch.css.cjs");
|
|
17
|
+
const tooltip_css = require("./tooltip.css.cjs");
|
|
18
|
+
const components = {
|
|
19
|
+
button: button_css.button,
|
|
20
|
+
checkbox: checkbox_css.checkbox,
|
|
21
|
+
dialog: dialog_css.dialog,
|
|
22
|
+
divider: divider_css.divider,
|
|
23
|
+
input: input_css.input,
|
|
24
|
+
label: label_css.label,
|
|
25
|
+
link: link_css.link,
|
|
26
|
+
popover: popover_css.popover,
|
|
27
|
+
progress: progress_css.progress,
|
|
28
|
+
radio: radio_css.radio,
|
|
29
|
+
select: select_css.select,
|
|
30
|
+
slider: slider_css.slider,
|
|
31
|
+
spinner: spinner_css.spinner,
|
|
32
|
+
switch: switch_css.switchTheme,
|
|
33
|
+
tooltip: tooltip_css.tooltip
|
|
34
|
+
};
|
|
35
|
+
exports.components = components;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { button } from "./button.css.js";
|
|
2
|
+
import { checkbox } from "./checkbox.css.js";
|
|
3
|
+
import { dialog } from "./dialog.css.js";
|
|
4
|
+
import { divider } from "./divider.css.js";
|
|
5
|
+
import { input } from "./input.css.js";
|
|
6
|
+
import { label } from "./label.css.js";
|
|
7
|
+
import { link } from "./link.css.js";
|
|
8
|
+
import { popover } from "./popover.css.js";
|
|
9
|
+
import { progress } from "./progress.css.js";
|
|
10
|
+
import { radio } from "./radio.css.js";
|
|
11
|
+
import { select } from "./select.css.js";
|
|
12
|
+
import { slider } from "./slider.css.js";
|
|
13
|
+
import { spinner } from "./spinner.css.js";
|
|
14
|
+
import { switchTheme } from "./switch.css.js";
|
|
15
|
+
import { tooltip } from "./tooltip.css.js";
|
|
16
|
+
const components = {
|
|
17
|
+
button,
|
|
18
|
+
checkbox,
|
|
19
|
+
dialog,
|
|
20
|
+
divider,
|
|
21
|
+
input,
|
|
22
|
+
label,
|
|
23
|
+
link,
|
|
24
|
+
popover,
|
|
25
|
+
progress,
|
|
26
|
+
radio,
|
|
27
|
+
select,
|
|
28
|
+
slider,
|
|
29
|
+
spinner,
|
|
30
|
+
switch: switchTheme,
|
|
31
|
+
tooltip
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
components
|
|
35
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
7
|
+
const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
8
|
+
fileScope.setFileScope("src/themes/momotaro/components/input.css.ts", "@blockle/blocks");
|
|
9
|
+
const input = makeComponentTheme.makeComponentTheme("input", {
|
|
10
|
+
input: css.style([
|
|
11
|
+
sprinkles_css.atoms({
|
|
12
|
+
color: "text",
|
|
13
|
+
padding: "large",
|
|
14
|
+
border: "none",
|
|
15
|
+
borderRadius: "small"
|
|
16
|
+
}),
|
|
17
|
+
{
|
|
18
|
+
outline: "none",
|
|
19
|
+
background: "transparent",
|
|
20
|
+
"::placeholder": {
|
|
21
|
+
color: vars_css.vars.color.textLight
|
|
22
|
+
},
|
|
23
|
+
":disabled": {}
|
|
24
|
+
}
|
|
25
|
+
]),
|
|
26
|
+
container: css.style([
|
|
27
|
+
{
|
|
28
|
+
minHeight: 56,
|
|
29
|
+
"@media": {
|
|
30
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
31
|
+
transition: `box-shadow ${vars_css.vars.transition.fast}`
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
":focus-within": {
|
|
35
|
+
outline: "2px solid transparent",
|
|
36
|
+
outlineOffset: "2px",
|
|
37
|
+
boxShadow: `${vars_css.vars.shadow.small}, ${vars_css.vars.focus.boxShadow}`
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
sprinkles_css.atoms({
|
|
41
|
+
backgroundColor: "white",
|
|
42
|
+
borderRadius: "medium",
|
|
43
|
+
boxShadow: "medium"
|
|
44
|
+
})
|
|
45
|
+
])
|
|
46
|
+
});
|
|
47
|
+
fileScope.endFileScope();
|
|
48
|
+
exports.input = input;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const input: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').InputTheme> | undefined;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style } from "@vanilla-extract/css";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
+
import { vars } from "../../../lib/theme/vars.css.js";
|
|
5
|
+
import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
|
|
6
|
+
setFileScope("src/themes/momotaro/components/input.css.ts", "@blockle/blocks");
|
|
7
|
+
const input = makeComponentTheme("input", {
|
|
8
|
+
input: style([
|
|
9
|
+
atoms({
|
|
10
|
+
color: "text",
|
|
11
|
+
padding: "large",
|
|
12
|
+
border: "none",
|
|
13
|
+
borderRadius: "small"
|
|
14
|
+
}),
|
|
15
|
+
{
|
|
16
|
+
outline: "none",
|
|
17
|
+
background: "transparent",
|
|
18
|
+
"::placeholder": {
|
|
19
|
+
color: vars.color.textLight
|
|
20
|
+
},
|
|
21
|
+
":disabled": {}
|
|
22
|
+
}
|
|
23
|
+
]),
|
|
24
|
+
container: style([
|
|
25
|
+
{
|
|
26
|
+
minHeight: 56,
|
|
27
|
+
"@media": {
|
|
28
|
+
"(prefers-reduced-motion: no-preference)": {
|
|
29
|
+
transition: `box-shadow ${vars.transition.fast}`
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
":focus-within": {
|
|
33
|
+
outline: "2px solid transparent",
|
|
34
|
+
outlineOffset: "2px",
|
|
35
|
+
boxShadow: `${vars.shadow.small}, ${vars.focus.boxShadow}`
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
atoms({
|
|
39
|
+
backgroundColor: "white",
|
|
40
|
+
borderRadius: "medium",
|
|
41
|
+
boxShadow: "medium"
|
|
42
|
+
})
|
|
43
|
+
])
|
|
44
|
+
});
|
|
45
|
+
endFileScope();
|
|
46
|
+
export {
|
|
47
|
+
input
|
|
48
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
7
|
+
fileScope.setFileScope("src/themes/momotaro/components/label.css.ts", "@blockle/blocks");
|
|
8
|
+
const label = makeComponentTheme.makeComponentTheme("label", {
|
|
9
|
+
base: css.style({}),
|
|
10
|
+
variants: {
|
|
11
|
+
size: {
|
|
12
|
+
small: css.style({
|
|
13
|
+
fontSize: vars_css.vars.fontSize.xsmall
|
|
14
|
+
}),
|
|
15
|
+
medium: css.style({
|
|
16
|
+
fontSize: vars_css.vars.fontSize.small
|
|
17
|
+
}),
|
|
18
|
+
large: css.style({
|
|
19
|
+
fontSize: vars_css.vars.fontSize.medium
|
|
20
|
+
})
|
|
21
|
+
},
|
|
22
|
+
required: css.style({
|
|
23
|
+
":after": {
|
|
24
|
+
content: '"*"',
|
|
25
|
+
marginLeft: vars_css.vars.space.xsmall
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
size: "large"
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
fileScope.endFileScope();
|
|
34
|
+
exports.label = label;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const label: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').LabelTheme> | undefined;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.
|
|
4
|
-
import { vars } from "../../../lib/theme/vars.css.
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
+
import { vars } from "../../../lib/theme/vars.css.js";
|
|
5
5
|
setFileScope("src/themes/momotaro/components/label.css.ts", "@blockle/blocks");
|
|
6
6
|
const label = makeComponentTheme("label", {
|
|
7
|
-
base: style({}
|
|
7
|
+
base: style({}),
|
|
8
8
|
variants: {
|
|
9
9
|
size: {
|
|
10
10
|
small: style({
|
|
11
11
|
fontSize: vars.fontSize.xsmall
|
|
12
|
-
}
|
|
12
|
+
}),
|
|
13
13
|
medium: style({
|
|
14
14
|
fontSize: vars.fontSize.small
|
|
15
|
-
}
|
|
15
|
+
}),
|
|
16
16
|
large: style({
|
|
17
17
|
fontSize: vars.fontSize.medium
|
|
18
|
-
}
|
|
18
|
+
})
|
|
19
19
|
},
|
|
20
20
|
required: style({
|
|
21
21
|
":after": {
|
|
22
22
|
content: '"*"',
|
|
23
23
|
marginLeft: vars.space.xsmall
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
})
|
|
26
26
|
},
|
|
27
27
|
defaultVariants: {
|
|
28
28
|
size: "large"
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
const helpers_css = require("./helpers.css.cjs");
|
|
7
|
+
const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
8
|
+
fileScope.setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
|
|
9
|
+
const link = makeComponentTheme.makeComponentTheme("link", {
|
|
10
|
+
base: css.style([
|
|
11
|
+
{
|
|
12
|
+
outline: "none",
|
|
13
|
+
border: "none",
|
|
14
|
+
textDecoration: "none",
|
|
15
|
+
background: "transparent",
|
|
16
|
+
borderRadius: 1,
|
|
17
|
+
":hover": {
|
|
18
|
+
textDecoration: "underline"
|
|
19
|
+
},
|
|
20
|
+
":focus-visible": {
|
|
21
|
+
textDecoration: "underline"
|
|
22
|
+
},
|
|
23
|
+
cursor: "pointer"
|
|
24
|
+
// selectors: {
|
|
25
|
+
// '&[target="_blank"]::after': {
|
|
26
|
+
// content: '"\\2197"',
|
|
27
|
+
// marginLeft: 4,
|
|
28
|
+
// },
|
|
29
|
+
// },
|
|
30
|
+
},
|
|
31
|
+
helpers_css.focusable
|
|
32
|
+
]),
|
|
33
|
+
variants: {
|
|
34
|
+
variant: {
|
|
35
|
+
inherit: css.style({
|
|
36
|
+
color: "inherit",
|
|
37
|
+
fontWeight: "inherit"
|
|
38
|
+
}),
|
|
39
|
+
primary: sprinkles_css.atoms({
|
|
40
|
+
color: "primary",
|
|
41
|
+
fontWeight: "medium"
|
|
42
|
+
}),
|
|
43
|
+
secondary: sprinkles_css.atoms({
|
|
44
|
+
color: "secondary",
|
|
45
|
+
fontWeight: "medium"
|
|
46
|
+
})
|
|
47
|
+
},
|
|
48
|
+
underline: css.style({
|
|
49
|
+
textDecoration: "underline"
|
|
50
|
+
})
|
|
51
|
+
},
|
|
52
|
+
defaultVariants: {
|
|
53
|
+
variant: "primary"
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
fileScope.endFileScope();
|
|
57
|
+
exports.link = link;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const link: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').LinkTheme> | undefined;
|
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.
|
|
4
|
-
import { focusable } from "./helpers.css.
|
|
5
|
-
import { atoms } from "../../../lib/css/atoms/sprinkles.css.
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
+
import { focusable } from "./helpers.css.js";
|
|
5
|
+
import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
|
|
6
6
|
setFileScope("src/themes/momotaro/components/link.css.ts", "@blockle/blocks");
|
|
7
7
|
const link = makeComponentTheme("link", {
|
|
8
|
-
base: style([
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
8
|
+
base: style([
|
|
9
|
+
{
|
|
10
|
+
outline: "none",
|
|
11
|
+
border: "none",
|
|
12
|
+
textDecoration: "none",
|
|
13
|
+
background: "transparent",
|
|
14
|
+
borderRadius: 1,
|
|
15
|
+
":hover": {
|
|
16
|
+
textDecoration: "underline"
|
|
17
|
+
},
|
|
18
|
+
":focus-visible": {
|
|
19
|
+
textDecoration: "underline"
|
|
20
|
+
},
|
|
21
|
+
cursor: "pointer"
|
|
22
|
+
// selectors: {
|
|
23
|
+
// '&[target="_blank"]::after': {
|
|
24
|
+
// content: '"\\2197"',
|
|
25
|
+
// marginLeft: 4,
|
|
26
|
+
// },
|
|
27
|
+
// },
|
|
19
28
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// '&[target="_blank"]::after': {
|
|
23
|
-
// content: '"\\2197"',
|
|
24
|
-
// marginLeft: 4,
|
|
25
|
-
// },
|
|
26
|
-
// },
|
|
27
|
-
}, focusable], "link_base"),
|
|
29
|
+
focusable
|
|
30
|
+
]),
|
|
28
31
|
variants: {
|
|
29
32
|
variant: {
|
|
30
33
|
inherit: style({
|
|
31
34
|
color: "inherit",
|
|
32
35
|
fontWeight: "inherit"
|
|
33
|
-
}
|
|
36
|
+
}),
|
|
34
37
|
primary: atoms({
|
|
35
38
|
color: "primary",
|
|
36
39
|
fontWeight: "medium"
|
|
@@ -42,7 +45,7 @@ const link = makeComponentTheme("link", {
|
|
|
42
45
|
},
|
|
43
46
|
underline: style({
|
|
44
47
|
textDecoration: "underline"
|
|
45
|
-
}
|
|
48
|
+
})
|
|
46
49
|
},
|
|
47
50
|
defaultVariants: {
|
|
48
51
|
variant: "primary"
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
-
const
|
|
4
|
-
const
|
|
4
|
+
const style = require("../../../lib/css/style/style.cjs");
|
|
5
|
+
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
5
6
|
fileScope.setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
|
|
6
|
-
const popover =
|
|
7
|
-
base:
|
|
7
|
+
const popover = makeComponentTheme.makeComponentTheme("popover", {
|
|
8
|
+
base: style.style({
|
|
8
9
|
backgroundColor: "white",
|
|
9
10
|
borderRadius: "small",
|
|
10
11
|
boxShadow: "medium",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const popover: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').PopoverTheme> | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import { style } from "../../../lib/css/style/style.
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.
|
|
2
|
+
import { style } from "../../../lib/css/style/style.js";
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
4
|
setFileScope("src/themes/momotaro/components/popover.css.ts", "@blockle/blocks");
|
|
5
5
|
const popover = makeComponentTheme("popover", {
|
|
6
6
|
base: style({
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
4
|
const css = require("@vanilla-extract/css");
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const makeComponentTheme = require("../../../lib/theme/makeComponentTheme.cjs");
|
|
6
|
+
const vars_css = require("../../../lib/theme/vars.css.cjs");
|
|
7
|
+
const sprinkles_css = require("../../../lib/css/atoms/sprinkles.css.cjs");
|
|
7
8
|
fileScope.setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
|
|
8
9
|
const indeterminateAnimation = css.keyframes({
|
|
9
10
|
"0%": {
|
|
@@ -12,17 +13,20 @@ const indeterminateAnimation = css.keyframes({
|
|
|
12
13
|
"100%": {
|
|
13
14
|
transform: "translateX(100%)"
|
|
14
15
|
}
|
|
15
|
-
}
|
|
16
|
-
const progress =
|
|
17
|
-
base: css.style([
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
});
|
|
17
|
+
const progress = makeComponentTheme.makeComponentTheme("progress", {
|
|
18
|
+
base: css.style([
|
|
19
|
+
{
|
|
20
|
+
height: 8
|
|
21
|
+
},
|
|
22
|
+
sprinkles_css.atoms({
|
|
23
|
+
inlineSize: "full",
|
|
24
|
+
borderRadius: "small",
|
|
25
|
+
backgroundColor: "textLight",
|
|
26
|
+
color: "primary",
|
|
27
|
+
overflow: "hidden"
|
|
28
|
+
})
|
|
29
|
+
]),
|
|
26
30
|
bar: css.style({
|
|
27
31
|
borderRadius: "inherit",
|
|
28
32
|
"@media": {
|
|
@@ -30,7 +34,7 @@ const progress = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("pro
|
|
|
30
34
|
transition: "transform 180ms ease-out"
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
|
-
}
|
|
37
|
+
}),
|
|
34
38
|
variants: {
|
|
35
39
|
indeterminate: css.style({
|
|
36
40
|
"@media": {
|
|
@@ -40,15 +44,15 @@ const progress = styles_lib_theme_makeComponentTheme_cjs.makeComponentTheme("pro
|
|
|
40
44
|
45deg,
|
|
41
45
|
transparent,
|
|
42
46
|
transparent 20px,
|
|
43
|
-
${
|
|
44
|
-
${
|
|
47
|
+
${vars_css.vars.color.primaryDark} 20px,
|
|
48
|
+
${vars_css.vars.color.primaryDark} 40px
|
|
45
49
|
)`
|
|
46
50
|
},
|
|
47
51
|
"(prefers-reduced-motion: no-preference)": {
|
|
48
52
|
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
|
-
}
|
|
55
|
+
})
|
|
52
56
|
}
|
|
53
57
|
});
|
|
54
58
|
fileScope.endFileScope();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const progress: import('../../../lib/theme/makeComponentTheme').ComponentTheme<import('../../../lib/theme/componentThemes').ProgressTheme> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
2
|
import { style, keyframes } from "@vanilla-extract/css";
|
|
3
|
-
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.
|
|
4
|
-
import { vars } from "../../../lib/theme/vars.css.
|
|
5
|
-
import { atoms } from "../../../lib/css/atoms/sprinkles.css.
|
|
3
|
+
import { makeComponentTheme } from "../../../lib/theme/makeComponentTheme.js";
|
|
4
|
+
import { vars } from "../../../lib/theme/vars.css.js";
|
|
5
|
+
import { atoms } from "../../../lib/css/atoms/sprinkles.css.js";
|
|
6
6
|
setFileScope("src/themes/momotaro/components/progress.css.ts", "@blockle/blocks");
|
|
7
7
|
const indeterminateAnimation = keyframes({
|
|
8
8
|
"0%": {
|
|
@@ -11,17 +11,20 @@ const indeterminateAnimation = keyframes({
|
|
|
11
11
|
"100%": {
|
|
12
12
|
transform: "translateX(100%)"
|
|
13
13
|
}
|
|
14
|
-
}
|
|
14
|
+
});
|
|
15
15
|
const progress = makeComponentTheme("progress", {
|
|
16
|
-
base: style([
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
base: style([
|
|
17
|
+
{
|
|
18
|
+
height: 8
|
|
19
|
+
},
|
|
20
|
+
atoms({
|
|
21
|
+
inlineSize: "full",
|
|
22
|
+
borderRadius: "small",
|
|
23
|
+
backgroundColor: "textLight",
|
|
24
|
+
color: "primary",
|
|
25
|
+
overflow: "hidden"
|
|
26
|
+
})
|
|
27
|
+
]),
|
|
25
28
|
bar: style({
|
|
26
29
|
borderRadius: "inherit",
|
|
27
30
|
"@media": {
|
|
@@ -29,7 +32,7 @@ const progress = makeComponentTheme("progress", {
|
|
|
29
32
|
transition: "transform 180ms ease-out"
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
|
-
}
|
|
35
|
+
}),
|
|
33
36
|
variants: {
|
|
34
37
|
indeterminate: style({
|
|
35
38
|
"@media": {
|
|
@@ -47,7 +50,7 @@ const progress = makeComponentTheme("progress", {
|
|
|
47
50
|
animation: `${indeterminateAnimation} 3s ease-in-out infinite`
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
|
-
}
|
|
53
|
+
})
|
|
51
54
|
}
|
|
52
55
|
});
|
|
53
56
|
endFileScope();
|