@likec4/styles 1.39.2 → 1.39.4

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.
Files changed (3) hide show
  1. package/dev.ts +1 -1
  2. package/dist/preset.mjs +109 -8
  3. package/package.json +3 -3
package/dev.ts CHANGED
@@ -12,7 +12,7 @@ export function defineConfig(config: Omit<Config, 'importMap' | 'presets' | 'plu
12
12
  presets: [
13
13
  likec4preset,
14
14
  ],
15
- cssVarRoot: ':where(:host, :root)',
15
+ cssVarRoot: ':where(:root,:host)',
16
16
  // hash: isProduction,
17
17
  // globalVars: {},
18
18
  // hash: true,
package/dist/preset.mjs CHANGED
@@ -4775,19 +4775,120 @@ const conditions = {
4775
4775
  };
4776
4776
  const globalCss = {
4777
4777
  extend: {
4778
- "@supports ((hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none))": {
4779
- // TODO: this workaround disables animations in Safari (to improve performance)
4780
- ["--likec4-safari-animation-hook"]: " "
4781
- },
4782
- ":where(:root, :host)": {
4778
+ // '@supports ((hanging-punctuation: first) and (font: -apple-system-body) and (-webkit-appearance: none))': {
4779
+ // // TODO: this workaround disables animations in Safari (to improve performance)
4780
+ // ['--likec4-safari-animation-hook']: '/*-*/ /*-*/',
4781
+ // },
4782
+ ":where(:root,:host)": {
4783
4783
  ["--likec4-app-font-default"]: `'IBM Plex Sans','ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'`
4784
4784
  },
4785
+ ...generatedGlobalCss,
4785
4786
  ".likec4-shadow-root": {
4786
4787
  display: "contents",
4787
4788
  "--mantine-font-family": "var(--likec4-app-font, var(--likec4-app-font-default))",
4788
- "--mantine-font-family-headings": "var(--likec4-app-font, var(--likec4-app-font-default))"
4789
+ "--mantine-font-family-headings": "var(--likec4-app-font, var(--likec4-app-font-default))",
4790
+ "& dialog": {
4791
+ color: "var(--mantine-color-text)"
4792
+ }
4793
+ },
4794
+ ".likec4-edge-label-container": {
4795
+ top: 0,
4796
+ left: 0,
4797
+ position: "absolute",
4798
+ width: "auto",
4799
+ height: "auto",
4800
+ display: {
4801
+ _reduceGraphicsOnPan: "none",
4802
+ _smallZoom: "none"
4803
+ }
4789
4804
  },
4790
- ...generatedGlobalCss
4805
+ ".likec4-root": {
4806
+ overflow: "hidden",
4807
+ position: "relative",
4808
+ padding: 0,
4809
+ margin: 0,
4810
+ width: "100%",
4811
+ height: "100%",
4812
+ border: "0px solid transparent",
4813
+ containerName: "likec4-root",
4814
+ containerType: "size",
4815
+ "& .mantine-ActionIcon-icon .tabler-icon": {
4816
+ width: "75%",
4817
+ height: "75%"
4818
+ },
4819
+ "& .react-flow": {
4820
+ contain: "paint",
4821
+ "--xy-background-color": "var(--colors-likec4-background)",
4822
+ "--xy-background-pattern-color": "var(--colors-likec4-background-pattern, var(--colors-likec4-background))",
4823
+ "&:is(.not-initialized)": {
4824
+ opacity: 0
4825
+ },
4826
+ "&:is(.bg-transparent)": {
4827
+ background: "transparent !important",
4828
+ "--xy-background-color": "transparent !important"
4829
+ },
4830
+ "& .react-flow__pane": {
4831
+ userSelect: "none"
4832
+ },
4833
+ "& :where(.react-flow__nodes, .react-flow__edges, .react-flow__edgelabel-renderer)": {
4834
+ display: "contents"
4835
+ },
4836
+ "& .react-flow__node.draggable:has(.likec4-compound-node)": {
4837
+ cursor: "default"
4838
+ }
4839
+ },
4840
+ "& :where(.react-flow__node, .react-flow__edge):has([data-likec4-dimmed])": {
4841
+ opacity: 0.25
4842
+ },
4843
+ "& .likec4-edge-label-container:is([data-likec4-dimmed])": {
4844
+ opacity: 0.25
4845
+ },
4846
+ "& :where(.likec4-edge-container, .likec4-edge-label-container)": {
4847
+ "--xy-edge-stroke-width": 3,
4848
+ "--xy-edge-stroke": "var(--likec4-palette-relation-stroke)",
4849
+ "--xy-edge-stroke-selected": "var(--likec4-palette-relation-stroke-selected)",
4850
+ "--xy-edge-label-color": "var(--likec4-palette-relation-label)",
4851
+ "--xy-edge-label-background-color": "var(--likec4-palette-relation-label-bg)",
4852
+ _dark: {
4853
+ "--xy-edge-label-background-color": "color-mix(in srgb, var(--likec4-palette-relation-label-bg) 50%, transparent)"
4854
+ },
4855
+ _light: {
4856
+ "--xy-edge-label-color": "color-mix(in srgb, var(--likec4-palette-relation-label), rgba(255 255 255 / 0.85) 40%)",
4857
+ "--xy-edge-label-background-color": "color-mix(in srgb, var(--likec4-palette-relation-label-bg) 60%, transparent)"
4858
+ },
4859
+ '&:is([data-likec4-hovered="true"], [data-edge-active="true"])': {
4860
+ "--xy-edge-stroke-width": 4,
4861
+ "--xy-edge-stroke": "var(--likec4-palette-relation-stroke-selected)"
4862
+ }
4863
+ },
4864
+ "&:not([data-likec4-reduced-graphics])": {
4865
+ "& :where(.react-flow__node, .react-flow__edge):has([data-likec4-dimmed])": {
4866
+ filter: "grayscale(85%)"
4867
+ },
4868
+ '& :where(.react-flow__node, .react-flow__edge):has([data-likec4-dimmed="true"])': {
4869
+ transitionProperty: "opacity, filter",
4870
+ transitionTimingFunction: "cubic-bezier(0.50, 0, 0.2, 1)",
4871
+ transitionDuration: "600ms"
4872
+ },
4873
+ "& .likec4-edge-label-container:is([data-likec4-dimmed])": {
4874
+ filter: "grayscale(85%)"
4875
+ },
4876
+ '& .likec4-edge-label-container:is([data-likec4-dimmed="true"])': {
4877
+ transitionProperty: "opacity, filter",
4878
+ transitionTimingFunction: "cubic-bezier(0.50, 0, 0.2, 1)",
4879
+ transitionDuration: "600ms"
4880
+ },
4881
+ "& :where(.react-flow__edges, .react-flow__edgelabel-renderer) > :where(svg, .likec4-edge-label-container)": {
4882
+ mixBlendMode: {
4883
+ _dark: "plus-lighter",
4884
+ _light: "screen"
4885
+ }
4886
+ }
4887
+ }
4888
+ },
4889
+ ".likec4-static-view .react-flow .react-flow__attribution": {
4890
+ display: "none"
4891
+ }
4791
4892
  }
4792
4893
  };
4793
4894
  const globalVars = {
@@ -5580,7 +5681,7 @@ const markdownBlock = defineRecipe({
5580
5681
  },
5581
5682
  _dark: {
5582
5683
  backgroundColor: "mantine.colors.yellow[5]",
5583
- color: "mantine.colors.black"
5684
+ color: "var(--mantine-color-black)"
5584
5685
  }
5585
5686
  },
5586
5687
  "& :where(a)": {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@likec4/styles",
3
3
  "description": "Shared PandaCSS preset and generated styles, used in LikeC4",
4
4
  "license": "MIT",
5
- "version": "1.39.2",
5
+ "version": "1.39.4",
6
6
  "bugs": "https://github.com/likec4/likec4/issues",
7
7
  "homepage": "https://likec4.dev",
8
8
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -72,8 +72,8 @@
72
72
  "nano-spawn": "^1.0.2",
73
73
  "unbuild": "3.5.0",
74
74
  "typescript": "5.9.2",
75
- "@likec4/style-preset": "1.39.2",
76
- "@likec4/tsconfig": "1.39.2"
75
+ "@likec4/style-preset": "1.39.4",
76
+ "@likec4/tsconfig": "1.39.4"
77
77
  },
78
78
  "scripts": {
79
79
  "typecheck": "tsc --build --verbose",