@dxos/ui-theme 0.8.4-main.fbb7a13 → 0.8.4-main.fcc0d83b33
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 +762 -2803
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +762 -2803
- 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 +1561 -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 +1561 -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/{styles → theme}/components/icon-button.d.ts +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 +31 -27
- 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 +56 -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 +25 -35
- 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 +132 -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 +129 -108
- package/src/css/theme/animation.css +260 -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 +118 -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 +6 -5
- 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/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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Text
|
|
3
|
+
* Example: <span className='dx-text' data-hue={getHashHue(object.id)}>
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@layer dx-components {
|
|
7
|
+
/*
|
|
8
|
+
* System
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
.dx-text[data-hue='info'],
|
|
12
|
+
.dx-text--info {
|
|
13
|
+
@apply text-cyan-text;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dx-text[data-hue='success'],
|
|
17
|
+
.dx-text--success {
|
|
18
|
+
@apply text-emerald-text;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dx-text[data-hue='warning'],
|
|
22
|
+
.dx-text--warning {
|
|
23
|
+
@apply text-amber-text;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.dx-text[data-hue='error'],
|
|
27
|
+
.dx-text--error {
|
|
28
|
+
@apply text-rose-text;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/*
|
|
32
|
+
* Colors
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
.dx-text[data-hue='neutral'],
|
|
36
|
+
.dx-text--neutral {
|
|
37
|
+
@apply text-neutral-text;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dx-text[data-hue='red'],
|
|
41
|
+
.dx-text--red {
|
|
42
|
+
@apply text-red-text;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.dx-text[data-hue='orange'],
|
|
46
|
+
.dx-text--orange {
|
|
47
|
+
@apply text-orange-text;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.dx-text[data-hue='amber'],
|
|
51
|
+
.dx-text--amber {
|
|
52
|
+
@apply text-amber-text;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.dx-text[data-hue='yellow'],
|
|
56
|
+
.dx-text--yellow {
|
|
57
|
+
@apply text-yellow-text;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dx-text[data-hue='lime'],
|
|
61
|
+
.dx-text--lime {
|
|
62
|
+
@apply text-lime-text;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.dx-text[data-hue='green'],
|
|
66
|
+
.dx-text--green {
|
|
67
|
+
@apply text-green-text;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.dx-text[data-hue='emerald'],
|
|
71
|
+
.dx-text--emerald {
|
|
72
|
+
@apply text-emerald-text;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.dx-text[data-hue='teal'],
|
|
76
|
+
.dx-text--teal {
|
|
77
|
+
@apply text-teal-text;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.dx-text[data-hue='cyan'],
|
|
81
|
+
.dx-text--cyan {
|
|
82
|
+
@apply text-cyan-text;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.dx-text[data-hue='sky'],
|
|
86
|
+
.dx-text--sky {
|
|
87
|
+
@apply text-sky-text;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dx-text[data-hue='blue'],
|
|
91
|
+
.dx-text--blue {
|
|
92
|
+
@apply text-blue-text;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.dx-text[data-hue='indigo'],
|
|
96
|
+
.dx-text--indigo {
|
|
97
|
+
@apply text-indigo-text;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.dx-text[data-hue='violet'],
|
|
101
|
+
.dx-text--violet {
|
|
102
|
+
@apply text-violet-text;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.dx-text[data-hue='purple'],
|
|
106
|
+
.dx-text--purple {
|
|
107
|
+
@apply text-purple-text;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.dx-text[data-hue='fuchsia'],
|
|
111
|
+
.dx-text--fuchsia {
|
|
112
|
+
@apply text-fuchsia-text;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.dx-text[data-hue='pink'],
|
|
116
|
+
.dx-text--pink {
|
|
117
|
+
@apply text-pink-text;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.dx-text[data-hue='rose'],
|
|
121
|
+
.dx-text--rose {
|
|
122
|
+
@apply text-rose-text;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeMirror
|
|
3
|
+
* Uses @theme (not @layer) so Tailwind generates text-cm-* / bg-cm-* utility classes
|
|
4
|
+
* consumed by ui-editor. Compare: tldraw.css uses @layer to map tokens onto tldraw's
|
|
5
|
+
* own variables without generating utilities.
|
|
6
|
+
* TODO(burdon): This could move into the ui-editor package (similar to graph.css).
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/** TODO(burdon): Move to ui-editor */
|
|
10
|
+
@theme {
|
|
11
|
+
--color-cm-codeblock: oklch(from var(--color-neutral-500) l c h / 0.1);
|
|
12
|
+
--color-cm-active-line: light-dark(
|
|
13
|
+
oklch(from var(--color-neutral-200) l c h / 0.5),
|
|
14
|
+
oklch(from var(--color-neutral-800) l c h / 0.5)
|
|
15
|
+
);
|
|
16
|
+
--color-cm-separator: var(--color-blue-500);
|
|
17
|
+
--color-cm-cursor: light-dark(var(--color-neutral-900), var(--color-neutral-100));
|
|
18
|
+
--color-cm-selection: light-dark(
|
|
19
|
+
oklch(from var(--color-blue-400) l c h / 0.5),
|
|
20
|
+
oklch(from var(--color-blue-600) l c h / 0.5)
|
|
21
|
+
);
|
|
22
|
+
--color-cm-focused-selection: light-dark(var(--color-blue-400), var(--color-blue-600));
|
|
23
|
+
--color-cm-highlight: light-dark(var(--color-neutral-950), var(--color-neutral-50));
|
|
24
|
+
--color-cm-highlight-surface: light-dark(var(--color-sky-200), var(--color-cyan-800));
|
|
25
|
+
--color-cm-comment-text: light-dark(var(--color-neutral-50), var(--color-neutral-950));
|
|
26
|
+
--color-cm-comment-surface: light-dark(var(--color-amber-800), var(--color-amber-200));
|
|
27
|
+
|
|
28
|
+
/* Markdown syntax highlighting */
|
|
29
|
+
--color-cm-code: light-dark(var(--color-stone-600), var(--color-stone-400));
|
|
30
|
+
--color-cm-code-inline: light-dark(var(--color-green-500), var(--color-green-500));
|
|
31
|
+
--color-cm-code-mark: var(--color-blue-500);
|
|
32
|
+
--color-cm-heading: light-dark(var(--color-blue-700), var(--color-blue-300));
|
|
33
|
+
--color-cm-heading-number: light-dark(var(--color-blue-600), var(--color-blue-400));
|
|
34
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tldraw
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/** TODO(burdon): Move to tldraw */
|
|
6
|
+
.tl-background {
|
|
7
|
+
--color-background: var(--color-base-surface);
|
|
8
|
+
}
|
|
9
|
+
.tl-container.tl-theme__light,
|
|
10
|
+
.tl-container.tl-theme__dark {
|
|
11
|
+
--color-selected: var(--color-accent-surface);
|
|
12
|
+
--color-panel: var(--color-modal-surface);
|
|
13
|
+
--color-panel-contrast: var(--color-separator);
|
|
14
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Main
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@layer dx-components {
|
|
6
|
+
/**
|
|
7
|
+
* Main Web app.
|
|
8
|
+
*/
|
|
9
|
+
.dx-main-bounce-layout {
|
|
10
|
+
@apply fixed overflow-auto overscroll-auto;
|
|
11
|
+
transition-duration: 200ms;
|
|
12
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
13
|
+
transition-property: padding-inline-start, padding-inline-end, scroll-padding-start, scroll-padding-end;
|
|
14
|
+
inset-inline-start: 0;
|
|
15
|
+
inset-inline-end: 0;
|
|
16
|
+
inset-block-start: 0;
|
|
17
|
+
inset-block-end: 0;
|
|
18
|
+
z-index: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** TODO(burdon): Reconcile with dx-main-bounce-layout */
|
|
22
|
+
.dx-main-content-padding-transitions {
|
|
23
|
+
transition-duration: 200ms;
|
|
24
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
25
|
+
transition-property: padding-inline-start, padding-inline-end, scroll-padding-start, scroll-padding-end;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
.dx-main-intrinsic-size {
|
|
32
|
+
inline-size: calc(100dvw - 2 * var(--main-spacing));
|
|
33
|
+
transition-property: inline-size;
|
|
34
|
+
transition-duration: 200ms;
|
|
35
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
36
|
+
|
|
37
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
38
|
+
&[data-sidebar-left-state='closed'][data-sidebar-right-state='closed'] {
|
|
39
|
+
inline-size: calc(100dvw - 2 * var(--main-spacing));
|
|
40
|
+
}
|
|
41
|
+
&[data-sidebar-left-state='collapsed'][data-sidebar-right-state='closed'] {
|
|
42
|
+
inline-size: calc(100dvw - var(--dx-l0-size) - 2 * var(--main-spacing));
|
|
43
|
+
}
|
|
44
|
+
&[data-sidebar-left-state='expanded'][data-sidebar-right-state='closed'] {
|
|
45
|
+
inline-size: calc(100dvw - var(--dx-nav-sidebar-size) - 2 * var(--main-spacing));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-sidebar-left-state='closed'][data-sidebar-right-state='collapsed'] {
|
|
49
|
+
inline-size: calc(100dvw - var(--dx-r0-size) - 2 * var(--main-spacing));
|
|
50
|
+
}
|
|
51
|
+
&[data-sidebar-left-state='collapsed'][data-sidebar-right-state='collapsed'] {
|
|
52
|
+
inline-size: calc(100dvw - var(--dx-l0-size) - var(--dx-r0-size) - 2 * var(--main-spacing));
|
|
53
|
+
}
|
|
54
|
+
&[data-sidebar-left-state='expanded'][data-sidebar-right-state='collapsed'] {
|
|
55
|
+
inline-size: calc(100dvw - var(--dx-nav-sidebar-size) - var(--dx-r0-size) - 2 * var(--main-spacing));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-sidebar-left-state='closed'][data-sidebar-right-state='expanded'] {
|
|
59
|
+
inline-size: calc(100dvw - var(--dx-complementary-sidebar-size) - 2 * var(--main-spacing));
|
|
60
|
+
}
|
|
61
|
+
&[data-sidebar-left-state='collapsed'][data-sidebar-right-state='expanded'] {
|
|
62
|
+
inline-size: calc(100dvw - var(--dx-l0-size) - var(--dx-complementary-sidebar-size) - 2 * var(--main-spacing));
|
|
63
|
+
}
|
|
64
|
+
&[data-sidebar-left-state='expanded'][data-sidebar-right-state='expanded'] {
|
|
65
|
+
inline-size: calc(
|
|
66
|
+
100dvw - var(--dx-nav-sidebar-size) - var(--dx-complementary-sidebar-size) - 2 * var(--main-spacing)
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@layer dx-components {
|
|
74
|
+
.dx-main-sidebar {
|
|
75
|
+
@apply fixed overscroll-contain overflow-x-hidden overflow-y-auto;
|
|
76
|
+
transition-duration: 200ms;
|
|
77
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
78
|
+
@apply border-primary-separator rounded-md;
|
|
79
|
+
@apply backdrop-blur-md;
|
|
80
|
+
.dark & {
|
|
81
|
+
@apply backdrop-blur-lg;
|
|
82
|
+
}
|
|
83
|
+
background-color: var(--color-sidebar-surface);
|
|
84
|
+
--surface-bg: var(--color-sidebar-surface);
|
|
85
|
+
|
|
86
|
+
transition-property: inset-inline-start, inset-inline-end, inline-size;
|
|
87
|
+
inset-block-start: max(0.5rem, env(safe-area-inset-top));
|
|
88
|
+
inset-block-end: max(0.5rem, env(safe-area-inset-bottom));
|
|
89
|
+
inline-size: calc(100dvw - 3rem);
|
|
90
|
+
z-index: 7;
|
|
91
|
+
|
|
92
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
93
|
+
@apply top-0 bottom-0 rounded-none border-y-0;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&[data-resizing='false'] {
|
|
97
|
+
@apply duration-200;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&[data-side='is'] {
|
|
101
|
+
@apply -start-[100vw] border-e;
|
|
102
|
+
border-inline-end-width: var(--border-width-landmark-line) !important;
|
|
103
|
+
border-inline-end-style: solid;
|
|
104
|
+
z-index: 8;
|
|
105
|
+
|
|
106
|
+
&[data-state='expanded'] {
|
|
107
|
+
inset-inline-start: max(0.5rem, env(safe-area-inset-left));
|
|
108
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
109
|
+
@apply start-0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (width >= theme(--breakpoint-sm)) {
|
|
114
|
+
@apply w-(--dx-nav-sidebar-size);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
118
|
+
border-inline-start-width: 0;
|
|
119
|
+
border-inline-end-width: 0;
|
|
120
|
+
|
|
121
|
+
&[data-state='collapsed'] {
|
|
122
|
+
@apply w-(--dx-l0-size) start-0;
|
|
123
|
+
}
|
|
124
|
+
&[data-state='expanded'] {
|
|
125
|
+
@apply w-(--dx-nav-sidebar-size);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&[data-side='ie'] {
|
|
131
|
+
@apply -end-[100vw] border-s;
|
|
132
|
+
border-inline-start-width: var(--border-width-landmark-line);
|
|
133
|
+
border-inline-start-style: solid;
|
|
134
|
+
|
|
135
|
+
&[data-state='expanded'] {
|
|
136
|
+
inset-inline-end: max(0.5rem, env(safe-area-inset-right));
|
|
137
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
138
|
+
@apply end-0;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@media (width >= theme(--breakpoint-sm)) {
|
|
143
|
+
@apply w-(--dx-complementary-sidebar-size);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
147
|
+
border-inline-end-width: 0;
|
|
148
|
+
|
|
149
|
+
&[data-state='collapsed'] {
|
|
150
|
+
@apply w-(--dx-r0-size) end-0;
|
|
151
|
+
}
|
|
152
|
+
&[data-state='expanded'] {
|
|
153
|
+
@apply w-(--dx-complementary-sidebar-size);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.dx-main-overlay {
|
|
160
|
+
@apply fixed inset-0 bg-scrim-surface;
|
|
161
|
+
transition-property: opacity;
|
|
162
|
+
transition-duration: 200ms;
|
|
163
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
|
|
164
|
+
@apply opacity-0 hidden;
|
|
165
|
+
z-index: 6;
|
|
166
|
+
|
|
167
|
+
&[data-state='open'] {
|
|
168
|
+
@apply opacity-100 block;
|
|
169
|
+
|
|
170
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
171
|
+
@apply opacity-100 hidden;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Main content padding.
|
|
178
|
+
*/
|
|
179
|
+
.dx-main-content-padding {
|
|
180
|
+
padding-inline-start: 0;
|
|
181
|
+
scroll-padding-inline-start: 0;
|
|
182
|
+
padding-inline-end: 0;
|
|
183
|
+
scroll-padding-inline-end: 0;
|
|
184
|
+
|
|
185
|
+
@media (width >= theme(--breakpoint-lg)) {
|
|
186
|
+
&[data-sidebar-left-state='collapsed'] {
|
|
187
|
+
padding-inline-start: var(--dx-l0-size);
|
|
188
|
+
scroll-padding-inline-start: var(--dx-l0-size);
|
|
189
|
+
}
|
|
190
|
+
&[data-sidebar-left-state='expanded'] {
|
|
191
|
+
padding-inline-start: var(--dx-nav-sidebar-size);
|
|
192
|
+
scroll-padding-inline-start: var(--dx-nav-sidebar-size);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&[data-sidebar-right-state='collapsed'] {
|
|
196
|
+
padding-inline-end: var(--dx-r0-size);
|
|
197
|
+
scroll-padding-inline-end: var(--dx-r0-size);
|
|
198
|
+
}
|
|
199
|
+
&[data-sidebar-right-state='expanded'] {
|
|
200
|
+
padding-inline-end: var(--dx-complementary-sidebar-size);
|
|
201
|
+
scroll-padding-inline-end: var(--dx-complementary-sidebar-size);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Native app
|
|
3
|
+
*/
|
|
2
4
|
|
|
5
|
+
@layer dx-components {
|
|
3
6
|
/**
|
|
4
7
|
* Native app drag regions.
|
|
5
8
|
* For Tauri apps, the data-tauri-drag-region attribute is applied
|
|
6
9
|
* automatically by plugin-native (Tauri doesn't support -webkit-app-region).
|
|
7
10
|
* The CSS properties below are for Electron/PWA compatibility.
|
|
8
11
|
*/
|
|
9
|
-
.app-drag {
|
|
12
|
+
.dx-app-drag {
|
|
10
13
|
-webkit-user-select: none;
|
|
11
14
|
-webkit-app-region: drag;
|
|
12
15
|
--app-region: drag;
|
|
13
16
|
}
|
|
14
17
|
|
|
15
|
-
.app-no-drag {
|
|
18
|
+
.dx-app-no-drag {
|
|
16
19
|
-webkit-app-region: no-drag;
|
|
17
20
|
--app-region: no-drag;
|
|
18
21
|
}
|
|
19
|
-
|
|
20
22
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Positioning
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@layer dx-components {
|
|
6
|
+
.dx-contain-layout {
|
|
7
|
+
contain: layout;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.dx-sticky-top-0 {
|
|
11
|
+
--sticky-top: 0;
|
|
12
|
+
}
|
|
13
|
+
.dx-sticky-top-from-topbar-bottom {
|
|
14
|
+
--sticky-top: var(--dx-topbar-size);
|
|
15
|
+
}
|
|
16
|
+
.dx-sticky-bottom-from-statusbar-bottom {
|
|
17
|
+
--sticky-bottom: var(--dx-statusbar-size);
|
|
18
|
+
}
|
|
19
|
+
}
|