@dxos/ui-theme 0.8.4-main.fbb7a13 → 0.8.4-staging.ac66bdf99f
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/lib/browser/index.mjs +766 -2802
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +766 -2802
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/plugin/node-cjs/main.css +1529 -0
- package/dist/plugin/node-cjs/main.css.map +7 -0
- package/dist/plugin/node-cjs/meta.json +1 -1
- package/dist/plugin/node-cjs/plugins/ThemePlugin.cjs +137 -0
- package/dist/plugin/node-cjs/plugins/ThemePlugin.cjs.map +7 -0
- package/dist/plugin/node-esm/main.css +1529 -0
- package/dist/plugin/node-esm/main.css.map +7 -0
- package/dist/plugin/node-esm/meta.json +1 -1
- package/dist/plugin/node-esm/plugins/ThemePlugin.mjs +105 -0
- package/dist/plugin/node-esm/plugins/ThemePlugin.mjs.map +7 -0
- package/dist/types/src/Theme.stories.d.ts +27 -0
- package/dist/types/src/Theme.stories.d.ts.map +1 -0
- package/dist/types/src/defs.d.ts +21 -0
- package/dist/types/src/defs.d.ts.map +1 -0
- package/dist/types/src/fragments/density.d.ts +4 -0
- package/dist/types/src/fragments/density.d.ts.map +1 -0
- package/dist/types/src/fragments/disabled.d.ts.map +1 -0
- package/dist/types/src/fragments/hover.d.ts +10 -0
- package/dist/types/src/fragments/hover.d.ts.map +1 -0
- package/dist/types/src/fragments/index.d.ts +5 -0
- package/dist/types/src/fragments/index.d.ts.map +1 -0
- package/dist/types/src/fragments/text.d.ts +2 -0
- package/dist/types/src/fragments/text.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -10
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugins/ThemePlugin.d.ts +16 -0
- package/dist/types/src/plugins/ThemePlugin.d.ts.map +1 -0
- package/dist/types/src/plugins/dark-mode.d.ts +1 -0
- package/dist/types/src/plugins/dark-mode.d.ts.map +1 -0
- package/dist/types/src/theme/components/avatar.d.ts.map +1 -0
- package/dist/types/src/theme/components/breadcrumb.d.ts.map +1 -0
- package/dist/types/src/theme/components/button.d.ts +15 -0
- package/dist/types/src/theme/components/button.d.ts.map +1 -0
- package/dist/types/src/theme/components/card.d.ts +12 -0
- package/dist/types/src/theme/components/card.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/dialog.d.ts +2 -0
- package/dist/types/src/theme/components/dialog.d.ts.map +1 -0
- package/dist/types/src/theme/components/focus.d.ts +6 -0
- package/dist/types/src/theme/components/focus.d.ts.map +1 -0
- package/dist/types/src/theme/components/icon-button.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/icon.d.ts +3 -0
- package/dist/types/src/theme/components/icon.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/index.d.ts +4 -1
- package/dist/types/src/theme/components/index.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/input.d.ts +25 -21
- package/dist/types/src/theme/components/input.d.ts.map +1 -0
- package/dist/types/src/theme/components/link.d.ts.map +1 -0
- package/dist/types/src/theme/components/list.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/main.d.ts +2 -7
- package/dist/types/src/theme/components/main.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/menu.d.ts +1 -1
- package/dist/types/src/theme/components/menu.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/message.d.ts +1 -0
- package/dist/types/src/theme/components/message.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/popover.d.ts +1 -1
- package/dist/types/src/theme/components/popover.d.ts.map +1 -0
- package/dist/types/src/theme/components/scroll-area.d.ts +32 -0
- package/dist/types/src/theme/components/scroll-area.d.ts.map +1 -0
- package/dist/types/src/theme/components/select.d.ts.map +1 -0
- package/dist/types/src/theme/components/separator.d.ts.map +1 -0
- package/dist/types/src/theme/components/skeleton.d.ts +7 -0
- package/dist/types/src/theme/components/skeleton.d.ts.map +1 -0
- package/dist/types/src/theme/components/splitter.d.ts +4 -0
- package/dist/types/src/theme/components/splitter.d.ts.map +1 -0
- package/dist/types/src/{styles → theme}/components/status.d.ts +1 -1
- package/dist/types/src/theme/components/status.d.ts.map +1 -0
- package/dist/types/src/theme/components/tag.d.ts.map +1 -0
- package/dist/types/src/theme/components/toast.d.ts.map +1 -0
- package/dist/types/src/theme/components/toolbar.d.ts +11 -0
- package/dist/types/src/theme/components/toolbar.d.ts.map +1 -0
- package/dist/types/src/theme/components/tooltip.d.ts.map +1 -0
- package/dist/types/src/theme/components/treegrid.d.ts.map +1 -0
- package/dist/types/src/theme/index.d.ts +4 -0
- package/dist/types/src/theme/index.d.ts.map +1 -0
- package/dist/types/src/theme/primitives/column.d.ts +29 -0
- package/dist/types/src/theme/primitives/column.d.ts.map +1 -0
- package/dist/types/src/theme/primitives/index.d.ts +3 -0
- package/dist/types/src/theme/primitives/index.d.ts.map +1 -0
- package/dist/types/src/theme/primitives/panel.d.ts +13 -0
- package/dist/types/src/theme/primitives/panel.d.ts.map +1 -0
- package/dist/types/src/theme/theme.d.ts +5 -0
- package/dist/types/src/theme/theme.d.ts.map +1 -0
- package/dist/types/src/{styles/fragments → util}/elevation.d.ts +0 -6
- package/dist/types/src/util/elevation.d.ts.map +1 -0
- package/dist/types/src/util/hash-styles.d.ts +8 -5
- package/dist/types/src/util/hash-styles.d.ts.map +1 -1
- package/dist/types/src/util/index.d.ts +3 -0
- package/dist/types/src/util/index.d.ts.map +1 -1
- package/dist/types/src/util/mx.d.ts +36 -0
- package/dist/types/src/util/mx.d.ts.map +1 -1
- package/dist/types/src/util/size.d.ts +27 -0
- package/dist/types/src/util/size.d.ts.map +1 -0
- package/dist/types/src/util/valence.d.ts +4 -0
- package/dist/types/src/util/valence.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +24 -27
- package/src/Theme.stories.tsx +224 -0
- package/src/css/base/base.css +43 -0
- package/src/{styles/layers → css/base}/typography.css +3 -5
- package/src/{styles/layers → css/components}/button.css +23 -14
- package/src/{styles/layers → css/components}/checkbox.css +12 -8
- package/src/{styles/layers → css/components}/dialog.css +16 -15
- package/src/{styles/layers/focus-ring.css → css/components/focus.css} +60 -41
- package/src/css/components/icon.css +9 -0
- package/src/css/components/link.css +9 -0
- package/src/css/components/panel.css +117 -0
- package/src/css/components/scrollbar.css +24 -0
- package/src/css/components/selected.css +30 -0
- package/src/css/components/surface.css +34 -0
- package/src/css/components/tag.css +130 -0
- package/src/css/components/text.css +124 -0
- package/src/css/integrations/codemirror.css +34 -0
- package/src/css/integrations/tldraw.css +14 -0
- package/src/css/layout/main.css +205 -0
- package/src/{styles/layers → css/layout}/native.css +6 -4
- package/src/css/layout/positioning.css +19 -0
- package/src/{styles/layers → css/layout}/size.css +117 -109
- package/src/css/theme/animation.css +229 -0
- package/src/css/theme/border.css +23 -0
- package/src/css/theme/palette.css +36 -0
- package/src/css/theme/semantic.css +116 -0
- package/src/css/theme/spacing.css +147 -0
- package/src/css/theme/styles.css +145 -0
- package/src/css/theme/text.css +37 -0
- package/src/css/utilities.css +76 -0
- package/src/defs.ts +48 -0
- package/src/fragments/AUDIT.md +57 -0
- package/src/fragments/density.ts +16 -0
- package/src/fragments/hover.ts +18 -0
- package/src/fragments/index.ts +10 -0
- package/src/fragments/text.ts +6 -0
- package/src/index.ts +3 -14
- package/src/main.css +87 -0
- package/src/plugins/ThemePlugin.ts +125 -0
- package/src/plugins/dark-mode.ts +22 -0
- package/src/plugins/main.css +45 -0
- package/src/{styles → theme}/components/avatar.ts +12 -13
- package/src/theme/components/button.ts +48 -0
- package/src/theme/components/card.ts +102 -0
- package/src/{styles → theme}/components/dialog.ts +19 -10
- package/src/theme/components/focus.ts +33 -0
- package/src/{styles → theme}/components/icon-button.ts +1 -3
- package/src/theme/components/icon.ts +28 -0
- package/src/{styles → theme}/components/index.ts +4 -1
- package/src/theme/components/input.ts +171 -0
- package/src/{styles → theme}/components/link.ts +3 -4
- package/src/{styles → theme}/components/list.ts +5 -5
- package/src/{styles → theme}/components/main.ts +2 -6
- package/src/{styles → theme}/components/menu.ts +11 -21
- package/src/{styles → theme}/components/message.ts +11 -7
- package/src/{styles → theme}/components/popover.ts +13 -12
- package/src/theme/components/scroll-area.ts +115 -0
- package/src/{styles → theme}/components/select.ts +8 -16
- package/src/{styles → theme}/components/separator.ts +3 -3
- package/src/theme/components/skeleton.ts +23 -0
- package/src/theme/components/splitter.ts +20 -0
- package/src/{styles → theme}/components/status.ts +7 -7
- package/src/{styles → theme}/components/tag.ts +1 -1
- package/src/{styles → theme}/components/toast.ts +6 -8
- package/src/theme/components/toolbar.ts +35 -0
- package/src/{styles → theme}/components/tooltip.ts +4 -6
- package/src/{styles → theme}/components/treegrid.ts +9 -9
- package/src/{styles → theme}/index.ts +2 -2
- package/src/theme/primitives/column.ts +71 -0
- package/src/theme/primitives/index.ts +6 -0
- package/src/theme/primitives/panel.ts +43 -0
- package/src/{styles → theme}/theme.ts +27 -9
- package/src/typings.d.ts +3 -1
- package/src/{styles/fragments → util}/elevation.ts +6 -8
- package/src/util/hash-styles.ts +118 -98
- package/src/util/index.ts +3 -0
- package/src/util/mx.ts +165 -43
- package/src/util/size.ts +103 -0
- package/src/util/valence.ts +33 -0
- package/dist/plugin/node-cjs/chunk-UUMDOU7E.cjs +0 -79
- package/dist/plugin/node-cjs/chunk-UUMDOU7E.cjs.map +0 -7
- package/dist/plugin/node-cjs/chunk-ZVALPM6U.cjs +0 -1619
- package/dist/plugin/node-cjs/chunk-ZVALPM6U.cjs.map +0 -7
- package/dist/plugin/node-cjs/config/tailwind.cjs +0 -29
- package/dist/plugin/node-cjs/config/tailwind.cjs.map +0 -7
- package/dist/plugin/node-cjs/plugins/esbuild-plugin.cjs +0 -90
- package/dist/plugin/node-cjs/plugins/esbuild-plugin.cjs.map +0 -7
- package/dist/plugin/node-cjs/plugins/plugin.cjs +0 -124
- package/dist/plugin/node-cjs/plugins/plugin.cjs.map +0 -7
- package/dist/plugin/node-cjs/theme.css +0 -1418
- package/dist/plugin/node-cjs/theme.css.map +0 -7
- package/dist/plugin/node-esm/chunk-AFRHJHP4.mjs +0 -49
- package/dist/plugin/node-esm/chunk-AFRHJHP4.mjs.map +0 -7
- package/dist/plugin/node-esm/chunk-HJE6EZWE.mjs +0 -1614
- package/dist/plugin/node-esm/chunk-HJE6EZWE.mjs.map +0 -7
- package/dist/plugin/node-esm/config/tailwind.mjs +0 -8
- package/dist/plugin/node-esm/config/tailwind.mjs.map +0 -7
- package/dist/plugin/node-esm/plugins/esbuild-plugin.mjs +0 -63
- package/dist/plugin/node-esm/plugins/esbuild-plugin.mjs.map +0 -7
- package/dist/plugin/node-esm/plugins/plugin.mjs +0 -98
- package/dist/plugin/node-esm/plugins/plugin.mjs.map +0 -7
- package/dist/plugin/node-esm/theme.css +0 -1418
- package/dist/plugin/node-esm/theme.css.map +0 -7
- package/dist/types/src/Tokens.stories.d.ts +0 -10
- package/dist/types/src/Tokens.stories.d.ts.map +0 -1
- package/dist/types/src/config/index.d.ts +0 -3
- package/dist/types/src/config/index.d.ts.map +0 -1
- package/dist/types/src/config/tailwind.d.ts +0 -9
- package/dist/types/src/config/tailwind.d.ts.map +0 -1
- package/dist/types/src/config/tokens/alias-colors.d.ts +0 -21
- package/dist/types/src/config/tokens/alias-colors.d.ts.map +0 -1
- package/dist/types/src/config/tokens/index.d.ts +0 -486
- package/dist/types/src/config/tokens/index.d.ts.map +0 -1
- package/dist/types/src/config/tokens/lengths.d.ts +0 -139
- package/dist/types/src/config/tokens/lengths.d.ts.map +0 -1
- package/dist/types/src/config/tokens/physical-colors.d.ts +0 -23
- package/dist/types/src/config/tokens/physical-colors.d.ts.map +0 -1
- package/dist/types/src/config/tokens/semantic-colors.d.ts +0 -187
- package/dist/types/src/config/tokens/semantic-colors.d.ts.map +0 -1
- package/dist/types/src/config/tokens/sememes-calls.d.ts +0 -3
- package/dist/types/src/config/tokens/sememes-calls.d.ts.map +0 -1
- package/dist/types/src/config/tokens/sememes-codemirror.d.ts +0 -43
- package/dist/types/src/config/tokens/sememes-codemirror.d.ts.map +0 -1
- package/dist/types/src/config/tokens/sememes-hue.d.ts +0 -4
- package/dist/types/src/config/tokens/sememes-hue.d.ts.map +0 -1
- package/dist/types/src/config/tokens/sememes-sheet.d.ts +0 -58
- package/dist/types/src/config/tokens/sememes-sheet.d.ts.map +0 -1
- package/dist/types/src/config/tokens/sememes-system.d.ts +0 -99
- package/dist/types/src/config/tokens/sememes-system.d.ts.map +0 -1
- package/dist/types/src/config/tokens/sizes.d.ts +0 -7
- package/dist/types/src/config/tokens/sizes.d.ts.map +0 -1
- package/dist/types/src/config/tokens/types.d.ts +0 -5
- package/dist/types/src/config/tokens/types.d.ts.map +0 -1
- package/dist/types/src/plugins/esbuild-plugin.d.ts +0 -9
- package/dist/types/src/plugins/esbuild-plugin.d.ts.map +0 -1
- package/dist/types/src/plugins/plugin.d.ts +0 -20
- package/dist/types/src/plugins/plugin.d.ts.map +0 -1
- package/dist/types/src/plugins/resolveContent.d.ts +0 -2
- package/dist/types/src/plugins/resolveContent.d.ts.map +0 -1
- package/dist/types/src/styles/components/anchored-overflow.d.ts +0 -6
- package/dist/types/src/styles/components/anchored-overflow.d.ts.map +0 -1
- package/dist/types/src/styles/components/avatar.d.ts.map +0 -1
- package/dist/types/src/styles/components/breadcrumb.d.ts.map +0 -1
- package/dist/types/src/styles/components/button.d.ts +0 -19
- package/dist/types/src/styles/components/button.d.ts.map +0 -1
- package/dist/types/src/styles/components/dialog.d.ts.map +0 -1
- package/dist/types/src/styles/components/icon-button.d.ts.map +0 -1
- package/dist/types/src/styles/components/icon.d.ts.map +0 -1
- package/dist/types/src/styles/components/index.d.ts.map +0 -1
- package/dist/types/src/styles/components/input.d.ts.map +0 -1
- package/dist/types/src/styles/components/link.d.ts.map +0 -1
- package/dist/types/src/styles/components/list.d.ts.map +0 -1
- package/dist/types/src/styles/components/main.d.ts.map +0 -1
- package/dist/types/src/styles/components/menu.d.ts.map +0 -1
- package/dist/types/src/styles/components/message.d.ts.map +0 -1
- package/dist/types/src/styles/components/popover.d.ts.map +0 -1
- package/dist/types/src/styles/components/scroll-area.d.ts +0 -9
- package/dist/types/src/styles/components/scroll-area.d.ts.map +0 -1
- package/dist/types/src/styles/components/select.d.ts.map +0 -1
- package/dist/types/src/styles/components/separator.d.ts.map +0 -1
- package/dist/types/src/styles/components/status.d.ts.map +0 -1
- package/dist/types/src/styles/components/tag.d.ts.map +0 -1
- package/dist/types/src/styles/components/toast.d.ts.map +0 -1
- package/dist/types/src/styles/components/toolbar.d.ts +0 -11
- package/dist/types/src/styles/components/toolbar.d.ts.map +0 -1
- package/dist/types/src/styles/components/tooltip.d.ts.map +0 -1
- package/dist/types/src/styles/components/treegrid.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/density.d.ts +0 -13
- package/dist/types/src/styles/fragments/density.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/dimension.d.ts +0 -5
- package/dist/types/src/styles/fragments/dimension.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/disabled.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/elevation.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/focus.d.ts +0 -6
- package/dist/types/src/styles/fragments/focus.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/group.d.ts +0 -5
- package/dist/types/src/styles/fragments/group.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/hover.d.ts +0 -17
- package/dist/types/src/styles/fragments/hover.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/index.d.ts +0 -17
- package/dist/types/src/styles/fragments/index.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/layout.d.ts +0 -3
- package/dist/types/src/styles/fragments/layout.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/motion.d.ts +0 -2
- package/dist/types/src/styles/fragments/motion.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/ornament.d.ts +0 -5
- package/dist/types/src/styles/fragments/ornament.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/selected.d.ts +0 -13
- package/dist/types/src/styles/fragments/selected.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/shimmer.d.ts +0 -3
- package/dist/types/src/styles/fragments/shimmer.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/size.d.ts +0 -9
- package/dist/types/src/styles/fragments/size.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/surface.d.ts +0 -9
- package/dist/types/src/styles/fragments/surface.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/text.d.ts +0 -7
- package/dist/types/src/styles/fragments/text.d.ts.map +0 -1
- package/dist/types/src/styles/fragments/valence.d.ts +0 -13
- package/dist/types/src/styles/fragments/valence.d.ts.map +0 -1
- package/dist/types/src/styles/index.d.ts +0 -4
- package/dist/types/src/styles/index.d.ts.map +0 -1
- package/dist/types/src/styles/theme.d.ts +0 -5
- package/dist/types/src/styles/theme.d.ts.map +0 -1
- package/dist/types/src/tailwind.d.ts +0 -3
- package/dist/types/src/tailwind.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -3
- package/dist/types/src/types.d.ts.map +0 -1
- package/dist/types/src/util/withLogical.d.ts +0 -164
- package/dist/types/src/util/withLogical.d.ts.map +0 -1
- package/src/Tokens.stories.tsx +0 -88
- package/src/config/index.ts +0 -6
- package/src/config/tailwind.ts +0 -264
- package/src/config/tokens/alias-colors.ts +0 -39
- package/src/config/tokens/index.ts +0 -92
- package/src/config/tokens/lengths.ts +0 -97
- package/src/config/tokens/physical-colors.ts +0 -125
- package/src/config/tokens/semantic-colors.ts +0 -27
- package/src/config/tokens/sememes-calls.ts +0 -17
- package/src/config/tokens/sememes-codemirror.ts +0 -50
- package/src/config/tokens/sememes-hue.ts +0 -54
- package/src/config/tokens/sememes-sheet.ts +0 -62
- package/src/config/tokens/sememes-system.ts +0 -302
- package/src/config/tokens/sizes.ts +0 -10
- package/src/config/tokens/types.ts +0 -9
- package/src/docs/theme.drawio.svg +0 -635
- package/src/plugins/esbuild-plugin.ts +0 -65
- package/src/plugins/plugin.ts +0 -130
- package/src/plugins/resolveContent.ts +0 -51
- package/src/styles/components/README.md +0 -6
- package/src/styles/components/anchored-overflow.ts +0 -20
- package/src/styles/components/button.ts +0 -48
- package/src/styles/components/icon.ts +0 -19
- package/src/styles/components/input.ts +0 -177
- package/src/styles/components/scroll-area.ts +0 -43
- package/src/styles/components/toolbar.ts +0 -29
- package/src/styles/fragments/density.ts +0 -17
- package/src/styles/fragments/dimension.ts +0 -8
- package/src/styles/fragments/focus.ts +0 -16
- package/src/styles/fragments/group.ts +0 -12
- package/src/styles/fragments/hover.ts +0 -25
- package/src/styles/fragments/index.ts +0 -20
- package/src/styles/fragments/layout.ts +0 -7
- package/src/styles/fragments/motion.ts +0 -6
- package/src/styles/fragments/ornament.ts +0 -10
- package/src/styles/fragments/selected.ts +0 -45
- package/src/styles/fragments/shimmer.ts +0 -9
- package/src/styles/fragments/size.ts +0 -117
- package/src/styles/fragments/surface.ts +0 -29
- package/src/styles/fragments/text.ts +0 -12
- package/src/styles/fragments/valence.ts +0 -46
- package/src/styles/layers/README.md +0 -15
- package/src/styles/layers/anchored-overflow.css +0 -9
- package/src/styles/layers/animation.css +0 -17
- package/src/styles/layers/attention.css +0 -8
- package/src/styles/layers/base.css +0 -25
- package/src/styles/layers/can-scroll.css +0 -26
- package/src/styles/layers/drag-preview.css +0 -18
- package/src/styles/layers/hues.css +0 -110
- package/src/styles/layers/index.css +0 -26
- package/src/styles/layers/main.css +0 -227
- package/src/styles/layers/positioning.css +0 -23
- package/src/styles/layers/surfaces.css +0 -31
- package/src/styles/layers/tag.css +0 -132
- package/src/styles/layers/tldraw.css +0 -91
- package/src/styles/layers/tokens.css +0 -46
- package/src/tailwind.ts +0 -7
- package/src/theme.css +0 -9
- package/src/types.ts +0 -7
- package/src/util/withLogical.ts +0 -114
- /package/dist/types/src/{styles/fragments → fragments}/disabled.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/avatar.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/breadcrumb.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/icon-button.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/link.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/list.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/select.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/separator.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/tag.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/toast.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/tooltip.d.ts +0 -0
- /package/dist/types/src/{styles → theme}/components/treegrid.d.ts +0 -0
- /package/src/{styles/fragments → fragments}/disabled.ts +0 -0
- /package/src/{styles → theme}/components/breadcrumb.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/ui-theme",
|
|
3
|
-
"version": "0.8.4-
|
|
3
|
+
"version": "0.8.4-staging.ac66bdf99f",
|
|
4
4
|
"description": "A set of design system tokens to use with DXOS UI.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -20,23 +20,17 @@
|
|
|
20
20
|
"types": "./dist/types/src/index.d.ts",
|
|
21
21
|
"default": "./dist/lib/browser/index.mjs"
|
|
22
22
|
},
|
|
23
|
-
"./esbuild-plugin": {
|
|
24
|
-
"source": "./src/plugins/esbuild-plugin.ts",
|
|
25
|
-
"types": "./dist/types/src/plugins/esbuild-plugin.d.ts",
|
|
26
|
-
"import": "./dist/plugin/node-esm/plugins/esbuild-plugin.mjs",
|
|
27
|
-
"require": "./dist/plugin/node-cjs/plugins/esbuild-plugin.cjs"
|
|
28
|
-
},
|
|
29
23
|
"./plugin": {
|
|
30
|
-
"source": "./src/plugins/
|
|
31
|
-
"types": "./dist/types/src/plugins/
|
|
32
|
-
"import": "./dist/plugin/node-esm/plugins/
|
|
33
|
-
"require": "./dist/plugin/node-cjs/plugins/
|
|
24
|
+
"source": "./src/plugins/ThemePlugin.ts",
|
|
25
|
+
"types": "./dist/types/src/plugins/ThemePlugin.d.ts",
|
|
26
|
+
"import": "./dist/plugin/node-esm/plugins/ThemePlugin.mjs",
|
|
27
|
+
"require": "./dist/plugin/node-cjs/plugins/ThemePlugin.cjs"
|
|
34
28
|
}
|
|
35
29
|
},
|
|
36
30
|
"typesVersions": {
|
|
37
31
|
"*": {
|
|
38
32
|
"plugin": [
|
|
39
|
-
"dist/types/src/plugins/
|
|
33
|
+
"dist/types/src/plugins/ThemePlugin.d.ts"
|
|
40
34
|
]
|
|
41
35
|
}
|
|
42
36
|
},
|
|
@@ -45,13 +39,12 @@
|
|
|
45
39
|
"src"
|
|
46
40
|
],
|
|
47
41
|
"dependencies": {
|
|
48
|
-
"@ch-ui/tailwind-tokens": "2.8.1",
|
|
49
|
-
"@ch-ui/tokens": "3.0.1",
|
|
50
42
|
"@fontsource-variable/inter": "5.2.8",
|
|
51
43
|
"@fontsource-variable/jetbrains-mono": "5.0.21",
|
|
52
44
|
"@fontsource/poiret-one": "^5.0.20",
|
|
53
|
-
"@
|
|
54
|
-
"@tailwindcss/forms": "^0.5.
|
|
45
|
+
"@radix-ui/react-slot": "1.1.2",
|
|
46
|
+
"@tailwindcss/forms": "^0.5.9",
|
|
47
|
+
"@tailwindcss/postcss": "^4.2.0",
|
|
55
48
|
"autoprefixer": "^10.4.12",
|
|
56
49
|
"esbuild-style-plugin": "^1.6.1",
|
|
57
50
|
"glob": "^7.2.3",
|
|
@@ -59,26 +52,30 @@
|
|
|
59
52
|
"lodash.merge": "^4.6.2",
|
|
60
53
|
"postcss": "^8.4.41",
|
|
61
54
|
"postcss-import": "^16.1.0",
|
|
62
|
-
"
|
|
63
|
-
"tailwind-
|
|
64
|
-
"
|
|
65
|
-
"tailwindcss
|
|
66
|
-
"tailwindcss-radix": "^
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/util": "0.8.4-
|
|
55
|
+
"postcss-nesting": "^13.0.1",
|
|
56
|
+
"tailwind-merge": "^3.5.0",
|
|
57
|
+
"tailwind-scrollbar": "^4.0.0",
|
|
58
|
+
"tailwindcss": "^4.2.0",
|
|
59
|
+
"tailwindcss-radix": "^4.0.2",
|
|
60
|
+
"@dxos/log": "0.8.4-staging.ac66bdf99f",
|
|
61
|
+
"@dxos/util": "0.8.4-staging.ac66bdf99f",
|
|
62
|
+
"@dxos/node-std": "0.8.4-staging.ac66bdf99f"
|
|
69
63
|
},
|
|
70
64
|
"devDependencies": {
|
|
71
|
-
"@ch-ui/colors": "1.2.1",
|
|
72
65
|
"@types/lodash.merge": "^4.6.6",
|
|
73
66
|
"@types/postcss-import": "^14.0.3",
|
|
74
|
-
"esbuild": "0.25.
|
|
75
|
-
"vite": "7.1.
|
|
76
|
-
"@dxos/ui-types": "0.8.4-
|
|
67
|
+
"esbuild": "0.25.11",
|
|
68
|
+
"vite": "^7.1.11",
|
|
69
|
+
"@dxos/ui-types": "0.8.4-staging.ac66bdf99f"
|
|
70
|
+
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"react": "~19.2.3"
|
|
77
73
|
},
|
|
78
74
|
"publishConfig": {
|
|
79
75
|
"access": "public"
|
|
80
76
|
},
|
|
81
77
|
"scripts": {
|
|
78
|
+
"audit-classes": "npx tsx bin/audit-classes.mts",
|
|
82
79
|
"tailwind-check": "tailwindcss -i ./dist/plugin/node-esm/theme.css --config ./src/tailwind.ts --content \"./src/**/*.{js,ts,jsx,tsx,vue}\" --check"
|
|
83
80
|
}
|
|
84
81
|
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Meta } from '@storybook/react-vite';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
|
|
8
|
+
import { hueShades, hues } from './defs';
|
|
9
|
+
import { mx } from './util';
|
|
10
|
+
|
|
11
|
+
// prettier-ignore
|
|
12
|
+
const neutralShades: [number, string][] = [
|
|
13
|
+
[50, 'bg-neutral-50'],
|
|
14
|
+
[75, 'bg-neutral-75'],
|
|
15
|
+
[100, 'bg-neutral-100'],
|
|
16
|
+
[200, 'bg-neutral-200'],
|
|
17
|
+
[250, 'bg-neutral-250'],
|
|
18
|
+
[300, 'bg-neutral-300'],
|
|
19
|
+
[400, 'bg-neutral-400'],
|
|
20
|
+
[500, 'bg-neutral-500'],
|
|
21
|
+
[600, 'bg-neutral-600'],
|
|
22
|
+
[700, 'bg-neutral-700'],
|
|
23
|
+
[750, 'bg-neutral-750'],
|
|
24
|
+
[800, 'bg-neutral-800'],
|
|
25
|
+
[900, 'bg-neutral-900'],
|
|
26
|
+
[925, 'bg-neutral-925'],
|
|
27
|
+
[950, 'bg-neutral-950'],
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
const ColorSwatch = ({ hue }: { hue: string }) => {
|
|
31
|
+
return (
|
|
32
|
+
<div
|
|
33
|
+
style={{
|
|
34
|
+
borderColor: `var(--color-${hue}-border)`,
|
|
35
|
+
}}
|
|
36
|
+
className={mx('shrink-0 aspect-square w-36 grid grid-rows-3 border-2 overflow-hidden rounded-md')}
|
|
37
|
+
>
|
|
38
|
+
<div
|
|
39
|
+
style={{
|
|
40
|
+
color: `var(--color-${hue}-text)`,
|
|
41
|
+
backgroundColor: `var(--color-base-surface)`,
|
|
42
|
+
}}
|
|
43
|
+
className='p-2 text-sm'
|
|
44
|
+
>
|
|
45
|
+
{hue}
|
|
46
|
+
</div>
|
|
47
|
+
<div
|
|
48
|
+
style={{
|
|
49
|
+
color: `var(--color-${hue}-text)`,
|
|
50
|
+
backgroundColor: `var(--color-${hue}-fill)`,
|
|
51
|
+
}}
|
|
52
|
+
className='px-1 text-sm flex items-center'
|
|
53
|
+
>
|
|
54
|
+
<svg className='h-6 w-6'>
|
|
55
|
+
<use href='/icons.svg#ph--aperture--regular' />
|
|
56
|
+
</svg>
|
|
57
|
+
</div>
|
|
58
|
+
<div
|
|
59
|
+
style={{
|
|
60
|
+
color: `var(--color-${hue}-surface-text)`,
|
|
61
|
+
backgroundColor: `var(--color-${hue}-surface)`,
|
|
62
|
+
}}
|
|
63
|
+
className='p-2 text-sm'
|
|
64
|
+
>
|
|
65
|
+
{hue}
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const HueSwatch = ({ hue, shades }: { hue: string; shades: readonly number[] }) => (
|
|
72
|
+
<div className='flex gap-1'>
|
|
73
|
+
{shades.map((shade) => (
|
|
74
|
+
<div
|
|
75
|
+
key={shade}
|
|
76
|
+
className='shrink-0 aspect-square w-24 flex flex-col rounded-sm'
|
|
77
|
+
style={{ backgroundColor: `var(--color-${hue}-${shade})` }}
|
|
78
|
+
>
|
|
79
|
+
<span
|
|
80
|
+
className='flex flex-col h-full justify-between text-sm p-2'
|
|
81
|
+
style={{ color: shade <= 500 ? 'black' : 'white' }}
|
|
82
|
+
>
|
|
83
|
+
<span className='text-xs'>{shade}</span>
|
|
84
|
+
{shade === 500 && <span className='text-xs'>{hue}</span>}
|
|
85
|
+
</span>
|
|
86
|
+
</div>
|
|
87
|
+
))}
|
|
88
|
+
</div>
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
const meta = {
|
|
92
|
+
title: 'ui/ui-theme/Theme',
|
|
93
|
+
parameters: {
|
|
94
|
+
layout: 'fullscreen',
|
|
95
|
+
},
|
|
96
|
+
} satisfies Meta;
|
|
97
|
+
|
|
98
|
+
export default meta;
|
|
99
|
+
|
|
100
|
+
export const Styles = {
|
|
101
|
+
render: () => {
|
|
102
|
+
return (
|
|
103
|
+
<div className='p-4'>
|
|
104
|
+
<div className='flex flex-wrap gap-2'>
|
|
105
|
+
{['neutral', ...hues].map((hue) => (
|
|
106
|
+
<ColorSwatch key={hue} hue={hue} />
|
|
107
|
+
))}
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
);
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export const Colors = {
|
|
115
|
+
render: () => {
|
|
116
|
+
return (
|
|
117
|
+
<div className='p-4'>
|
|
118
|
+
<div className='flex flex-col gap-1'>
|
|
119
|
+
{['neutral', ...hues].map((hue) => (
|
|
120
|
+
<HueSwatch key={hue} hue={hue} shades={hueShades} />
|
|
121
|
+
))}
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
);
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export const Neutral = {
|
|
129
|
+
render: () => {
|
|
130
|
+
return (
|
|
131
|
+
<div className='p-4'>
|
|
132
|
+
<div className='flex flex-col items-center'>
|
|
133
|
+
{neutralShades.map(([value, className]) => (
|
|
134
|
+
<div
|
|
135
|
+
key={value}
|
|
136
|
+
className={mx(
|
|
137
|
+
'h-12 w-48 p-2 text-right text-sm',
|
|
138
|
+
className,
|
|
139
|
+
value <= 500 ? 'text-neutral-950' : 'text-neutral-50',
|
|
140
|
+
)}
|
|
141
|
+
>
|
|
142
|
+
{value}
|
|
143
|
+
</div>
|
|
144
|
+
))}
|
|
145
|
+
</div>
|
|
146
|
+
</div>
|
|
147
|
+
);
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
export const Surfaces = {
|
|
152
|
+
render: () => {
|
|
153
|
+
return (
|
|
154
|
+
<div className='absolute inset-0 h-full p-4 bg-white dark:bg-black'>
|
|
155
|
+
<div className='flex flex-wrap gap-2'>
|
|
156
|
+
{[
|
|
157
|
+
{ className: 'bg-scrim-surface', label: 'scrim' },
|
|
158
|
+
{ className: 'bg-base-surface', label: 'base' },
|
|
159
|
+
{ className: 'bg-deck-surface', label: 'deck' },
|
|
160
|
+
{ className: 'bg-group-surface', label: 'group' },
|
|
161
|
+
{ className: 'bg-sidebar-surface', label: 'sidebar' },
|
|
162
|
+
{ className: 'bg-header-surface', label: 'header' },
|
|
163
|
+
{ className: 'bg-card-surface', label: 'card' },
|
|
164
|
+
{ className: 'bg-modal-surface', label: 'modal' },
|
|
165
|
+
{ className: 'bg-input-surface', label: 'input' },
|
|
166
|
+
{ className: 'bg-active-surface', label: 'active' },
|
|
167
|
+
{ className: 'bg-hover-surface', label: 'hover' },
|
|
168
|
+
{ className: 'bg-inverse-surface text-inverse-surface-text', label: 'inverse' },
|
|
169
|
+
].map(({ className, label }) => (
|
|
170
|
+
<div key={className} className={mx('shrink-0 p-2 aspect-square w-48 rounded-md', className)}>
|
|
171
|
+
{label}
|
|
172
|
+
</div>
|
|
173
|
+
))}
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
);
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export const Tags = {
|
|
181
|
+
render: () => {
|
|
182
|
+
return (
|
|
183
|
+
<div className='p-4'>
|
|
184
|
+
<div className='flex flex-col gap-1'>
|
|
185
|
+
{['neutral', ...hues].map((hue) => (
|
|
186
|
+
<div key={hue} className='grid grid-cols-[8rem_8rem]'>
|
|
187
|
+
<div>
|
|
188
|
+
<span className='dx-tag' data-hue={hue}>
|
|
189
|
+
{hue}
|
|
190
|
+
</span>
|
|
191
|
+
</div>
|
|
192
|
+
<div>
|
|
193
|
+
<span className='dx-text text-sm' data-hue={hue}>
|
|
194
|
+
{hue}
|
|
195
|
+
</span>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
))}
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
);
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export const Animation = {
|
|
206
|
+
render: () => {
|
|
207
|
+
return (
|
|
208
|
+
<div className='absolute inset-0 grid place-items-center'>
|
|
209
|
+
<div className='dx-density-coarse border border-separator rounded-md'>
|
|
210
|
+
<div
|
|
211
|
+
className={mx(
|
|
212
|
+
'flex items-center font-mono text-2xl text-test-experimental',
|
|
213
|
+
'p-form-padding w-card-min-width grid grid-cols-[min-content_1fr_min-content]',
|
|
214
|
+
)}
|
|
215
|
+
>
|
|
216
|
+
<span className='animate-blink text-error-text'>*</span>
|
|
217
|
+
<span className='text-center'>experimental</span>
|
|
218
|
+
<span className='animate-blink text-error-text'>*</span>
|
|
219
|
+
</div>
|
|
220
|
+
</div>
|
|
221
|
+
</div>
|
|
222
|
+
);
|
|
223
|
+
},
|
|
224
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base utilities.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@layer dx-base {
|
|
6
|
+
:root {
|
|
7
|
+
color-scheme: light;
|
|
8
|
+
touch-action: pan-x pan-y;
|
|
9
|
+
font-synthesis: none;
|
|
10
|
+
font-variation-settings:
|
|
11
|
+
'wght' 400,
|
|
12
|
+
'slnt' 0;
|
|
13
|
+
scroll-padding-block-start: var(--spacing-14);
|
|
14
|
+
scroll-padding-block-end: var(--spacing-2);
|
|
15
|
+
@apply font-body;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.dark {
|
|
19
|
+
color-scheme: dark;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
button {
|
|
23
|
+
@apply cursor-pointer;
|
|
24
|
+
-webkit-tap-highlight-color: transparent;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@layer dx-tokens {
|
|
29
|
+
:root {
|
|
30
|
+
--dx-tag-padding-block: var(--spacing-tag-padding-block);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
html,
|
|
34
|
+
html.dark,
|
|
35
|
+
html .dark,
|
|
36
|
+
.sb-show-main {
|
|
37
|
+
background-color: var(--color-base-surface);
|
|
38
|
+
color: var(--color-base-surface-text);
|
|
39
|
+
--surface-bg: var(--color-base-surface);
|
|
40
|
+
--surface-text: var(--color-base-surface-text);
|
|
41
|
+
--description-text: var(--color-description);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Typography
|
|
2
|
+
* Typography
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
@import '@fontsource-variable/jetbrains-mono/wght-italic.css';
|
|
6
6
|
@import '@fontsource-variable/jetbrains-mono/wght.css';
|
|
7
|
-
/* @import '@fontsource-variable/inter/slnt.css'; */
|
|
8
7
|
@import '@fontsource/poiret-one';
|
|
9
8
|
|
|
10
|
-
@layer
|
|
11
|
-
|
|
9
|
+
@layer dx-components {
|
|
12
10
|
/* Font weights & `italic` handling */
|
|
13
11
|
.not-italic {
|
|
14
12
|
font-variation-settings:
|
|
@@ -174,4 +172,4 @@
|
|
|
174
172
|
'wght' 900,
|
|
175
173
|
'slnt' -10;
|
|
176
174
|
}
|
|
177
|
-
}
|
|
175
|
+
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
/* TODO(thure): Focus is handled by .dx-focus-ring, but should ideally be applied as part of this component. */
|
|
2
6
|
@layer dx-components {
|
|
3
7
|
/**
|
|
@@ -6,71 +10,76 @@
|
|
|
6
10
|
|
|
7
11
|
/* Base styles */
|
|
8
12
|
.dx-button {
|
|
9
|
-
@apply
|
|
13
|
+
@apply shrink-0 inline-flex select-none items-center justify-center overflow-hidden min-h-[2.5rem] px-3;
|
|
14
|
+
@apply font-medium transition-colors duration-100 ease-linear bg-input-surface;
|
|
10
15
|
&[aria-pressed='true'],
|
|
11
16
|
&[aria-checked='true'] {
|
|
12
|
-
@apply text-
|
|
17
|
+
@apply text-accent-text bg-attention-surface;
|
|
13
18
|
}
|
|
19
|
+
|
|
14
20
|
/* Disabled styles */
|
|
15
21
|
&[disabled]:not([disabled='false']) {
|
|
16
22
|
@apply opacity-40 cursor-not-allowed shadow-none;
|
|
17
23
|
}
|
|
24
|
+
|
|
18
25
|
/* Variants consistent between enabled & disabled */
|
|
19
26
|
&[data-variant='ghost'] {
|
|
20
27
|
@apply bg-transparent;
|
|
21
28
|
&:hover {
|
|
22
|
-
@apply bg-
|
|
29
|
+
@apply bg-hover-surface text-inherit;
|
|
23
30
|
}
|
|
24
31
|
&[data-state='open'] {
|
|
25
|
-
@apply bg-
|
|
32
|
+
@apply bg-input-surface;
|
|
26
33
|
}
|
|
27
34
|
&[aria-pressed='true'],
|
|
28
35
|
&[aria-checked='true'] {
|
|
29
|
-
@apply bg-
|
|
36
|
+
@apply bg-base-surface text-accent-text;
|
|
30
37
|
}
|
|
31
38
|
}
|
|
32
39
|
&[data-variant='outline'] {
|
|
33
|
-
@apply border border-
|
|
40
|
+
@apply border border-base-surface bg-transparent;
|
|
34
41
|
&:hover {
|
|
35
|
-
@apply bg-
|
|
42
|
+
@apply bg-hover-surface;
|
|
36
43
|
}
|
|
37
44
|
}
|
|
45
|
+
|
|
38
46
|
/* Enabled styles */
|
|
39
47
|
&:not([disabled]),
|
|
40
48
|
&[disabled='false'] {
|
|
41
49
|
/* Hover */
|
|
42
50
|
&:hover {
|
|
43
|
-
@apply bg-
|
|
51
|
+
@apply bg-hover-surface;
|
|
44
52
|
}
|
|
53
|
+
|
|
45
54
|
/* Variants */
|
|
46
55
|
&[data-variant='primary'] {
|
|
47
|
-
@apply text-
|
|
56
|
+
@apply text-accent-surface-text bg-accent-surface;
|
|
48
57
|
&:hover,
|
|
49
58
|
&[aria-pressed='true'],
|
|
50
59
|
&[aria-checked='true'] &[data-state='open'] {
|
|
51
|
-
@apply bg-
|
|
60
|
+
@apply bg-accent-surface-hover;
|
|
52
61
|
}
|
|
53
62
|
}
|
|
54
63
|
&[data-variant='destructive'] {
|
|
55
|
-
@apply text-
|
|
64
|
+
@apply text-accent-surface-text bg-rose-fill;
|
|
56
65
|
&:hover,
|
|
57
66
|
&[aria-pressed='true'],
|
|
58
67
|
&[aria-checked='true'] &[data-state='open'] {
|
|
59
|
-
@apply bg-
|
|
68
|
+
@apply bg-rose-fill;
|
|
60
69
|
}
|
|
61
70
|
}
|
|
62
71
|
}
|
|
63
72
|
}
|
|
64
73
|
/* Props */
|
|
65
74
|
.dx-button:not([data-props~='grouped']) {
|
|
66
|
-
@apply rounded-
|
|
75
|
+
@apply rounded-xs;
|
|
67
76
|
}
|
|
68
77
|
.dx-button:not([data-props~='wrap']) {
|
|
69
78
|
@apply truncate;
|
|
70
79
|
}
|
|
71
80
|
@media (pointer: fine) {
|
|
72
81
|
.dx-button[data-density='fine'] {
|
|
73
|
-
@apply min-
|
|
82
|
+
@apply min-h-[2rem] px-2.5;
|
|
74
83
|
}
|
|
75
84
|
}
|
|
76
85
|
}
|
|
@@ -1,40 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkbox
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
/* TODO(thure): Focus is handled by .dx-focus-ring, but should ideally be applied as part of this component.*/
|
|
2
6
|
@layer dx-components {
|
|
3
7
|
.dx-checkbox--switch,
|
|
4
8
|
.dx-checkbox {
|
|
5
|
-
@apply border border-
|
|
9
|
+
@apply border border-un-accent;
|
|
6
10
|
&[aria-checked='true'],
|
|
7
11
|
&[aria-checked='mixed'],
|
|
8
12
|
&:checked {
|
|
9
|
-
@apply bg-
|
|
13
|
+
@apply bg-accent-surface accent-accent-surface border-accent-surface;
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
&:not([disabled]),
|
|
13
17
|
&[disabled='false'] {
|
|
14
18
|
&:hover {
|
|
15
|
-
@apply bg-
|
|
19
|
+
@apply bg-un-accent-hover accent-un-accent-hover;
|
|
16
20
|
&[aria-checked='true'],
|
|
17
21
|
&[aria-checked='mixed'],
|
|
18
22
|
&:checked {
|
|
19
|
-
@apply bg-
|
|
23
|
+
@apply bg-accent-surface-hover accent-accent-surface-hover border-accent-surface-hover;
|
|
20
24
|
}
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
.dx-checkbox {
|
|
26
|
-
@apply
|
|
30
|
+
@apply w-4 h-4 overflow-hidden shadow-inner transition-colors bg-un-accent accent-un-accent text-accent-surface-text shrink-0 inline-grid place-items-center rounded-xs;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
33
|
/* TODO(ZaymonFC): Focus is handled by .dx-focus-ring, but should ideally be applied as part of this component.*/
|
|
30
34
|
/* NOTE: This isn't compatible with the Radix switch. */
|
|
31
35
|
.dx-checkbox--switch {
|
|
32
|
-
@apply inline-block appearance-none relative shrink-0
|
|
33
|
-
@apply shadow-inner transition-colors bg-
|
|
36
|
+
@apply inline-block appearance-none relative shrink-0 h-5 w-8;
|
|
37
|
+
@apply shadow-inner transition-colors bg-un-accent;
|
|
34
38
|
@apply cursor-pointer rounded-full;
|
|
35
39
|
|
|
36
40
|
&::before {
|
|
37
|
-
@apply
|
|
41
|
+
@apply w-3 h-3 mx-[0.1875rem] my-[0.1875rem] absolute block bg-white rounded-full border-separator transition-transform duration-100 will-change-transform;
|
|
38
42
|
content: '';
|
|
39
43
|
}
|
|
40
44
|
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dialog
|
|
3
|
+
*/
|
|
4
|
+
|
|
1
5
|
@layer dx-components {
|
|
2
6
|
.dx-dialog__overlay {
|
|
3
|
-
@apply z-
|
|
4
|
-
|
|
7
|
+
@apply z-40 fixed grid inset-x-0 top-0 h-dvh py-[env(safe-area-inset-top)] place-items-center;
|
|
8
|
+
@apply bg-scrim-surface backdrop-blur-xs;
|
|
9
|
+
|
|
5
10
|
&[data-state='open'] {
|
|
6
11
|
@apply animate-fade-in;
|
|
7
12
|
}
|
|
@@ -25,26 +30,26 @@
|
|
|
25
30
|
}
|
|
26
31
|
}
|
|
27
32
|
|
|
28
|
-
@media (
|
|
33
|
+
@media (width >= theme(--breakpoint-sm)) {
|
|
29
34
|
.dx-dialog__overlay {
|
|
30
35
|
@apply p-[calc(env(safe-area-inset-top)+.6rem)];
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
|
|
34
|
-
@media (
|
|
39
|
+
@media (width >= theme(--breakpoint-md)) {
|
|
35
40
|
.dx-dialog__overlay {
|
|
36
41
|
@apply p-[calc(env(safe-area-inset-top)+1.2rem)];
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
|
|
40
|
-
@media (
|
|
45
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
41
46
|
.dx-dialog__overlay {
|
|
42
47
|
@apply p-[calc(env(safe-area-inset-top)+2.4rem)];
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
|
|
46
51
|
.dx-dialog__content {
|
|
47
|
-
@apply flex flex-col
|
|
52
|
+
@apply flex flex-col w-dvw max-w-full max-h-full overflow-hidden shadow-md;
|
|
48
53
|
|
|
49
54
|
&[data-state='open'] {
|
|
50
55
|
@apply animate-slide-up-and-fade;
|
|
@@ -55,23 +60,19 @@
|
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
|
|
58
|
-
@media (
|
|
63
|
+
@media (width >= theme(--breakpoint-sm)) {
|
|
59
64
|
.dx-dialog__content {
|
|
60
|
-
@apply
|
|
65
|
+
@apply w-[95vw] border rounded-md border-separator;
|
|
61
66
|
}
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
@media (
|
|
69
|
+
@media (width >= theme(--breakpoint-md)) {
|
|
65
70
|
.dx-dialog__content {
|
|
66
|
-
@apply max-
|
|
71
|
+
@apply max-w-[24rem];
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
.dx-dialog__title {
|
|
71
76
|
@apply shrink-0 text-xl font-medium;
|
|
72
77
|
}
|
|
73
|
-
|
|
74
|
-
.dx-dialog__description {
|
|
75
|
-
@apply mlb-2;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
+
}
|