@mittwald/flow-react-components 1.6.0-next.66 → 1.6.0-next.68

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 (87) hide show
  1. package/AGENTS.md +0 -11
  2. package/MIGRATION.md +0 -205
  3. package/USAGE.md +1 -1
  4. package/dist/assets/component-index.json +1 -1
  5. package/dist/assets/doc-properties.json +1 -1
  6. package/dist/css/all-layered.css +1 -1
  7. package/dist/css/all.css +6 -8
  8. package/dist/js/default.mjs +1 -1
  9. package/dist/js/internal.mjs +2 -2
  10. package/dist/js/packages/components/src/components/AccentBox/AccentBox.mjs +11 -35
  11. package/dist/js/packages/components/src/components/AccentBox/AccentBox.mjs.map +1 -1
  12. package/dist/js/packages/components/src/components/AccentBox/AccentBox.module.mjs +11 -11
  13. package/dist/js/packages/components/src/components/AccentBox/AccentBox.module.mjs.map +1 -1
  14. package/dist/js/packages/components/src/components/Accordion/Accordion.mjs +1 -1
  15. package/dist/js/packages/components/src/components/ActionGroup/ActionGroup.mjs +1 -1
  16. package/dist/js/packages/components/src/components/Alert/Alert.module.mjs.map +1 -1
  17. package/dist/js/packages/components/src/components/Avatar/Avatar.mjs +2 -8
  18. package/dist/js/packages/components/src/components/Avatar/Avatar.mjs.map +1 -1
  19. package/dist/js/packages/components/src/components/Avatar/Avatar.module.mjs +7 -9
  20. package/dist/js/packages/components/src/components/Avatar/Avatar.module.mjs.map +1 -1
  21. package/dist/js/packages/components/src/components/Avatar/avatarColors.mjs +7 -3
  22. package/dist/js/packages/components/src/components/Avatar/avatarColors.mjs.map +1 -1
  23. package/dist/js/packages/components/src/components/Badge/Badge.mjs +3 -16
  24. package/dist/js/packages/components/src/components/Badge/Badge.mjs.map +1 -1
  25. package/dist/js/packages/components/src/components/Badge/Badge.module.mjs +11 -11
  26. package/dist/js/packages/components/src/components/Badge/Badge.module.mjs.map +1 -1
  27. package/dist/js/packages/components/src/components/Breadcrumb/Breadcrumb.mjs +1 -1
  28. package/dist/js/packages/components/src/components/Button/Button.mjs +1 -1
  29. package/dist/js/packages/components/src/components/CartesianChart/components/Area/Area.mjs +1 -1
  30. package/dist/js/packages/components/src/components/CartesianChart/components/Area/Area.mjs.map +1 -1
  31. package/dist/js/packages/components/src/components/CartesianChart/components/Bar/Bar.mjs +1 -1
  32. package/dist/js/packages/components/src/components/CartesianChart/components/Bar/Bar.mjs.map +1 -1
  33. package/dist/js/packages/components/src/components/CartesianChart/components/Line/Line.mjs +1 -1
  34. package/dist/js/packages/components/src/components/CartesianChart/components/Line/Line.mjs.map +1 -1
  35. package/dist/js/packages/components/src/components/CodeEditor/CodeEditor.mjs +17 -8
  36. package/dist/js/packages/components/src/components/CodeEditor/CodeEditor.mjs.map +1 -1
  37. package/dist/js/packages/components/src/components/CodeEditor/themes/defaultEditorTheme.mjs +10 -10
  38. package/dist/js/packages/components/src/components/CodeEditor/themes/defaultEditorTheme.mjs.map +1 -1
  39. package/dist/js/packages/components/src/components/Color/Color.mjs +6 -5
  40. package/dist/js/packages/components/src/components/Color/Color.mjs.map +1 -1
  41. package/dist/js/packages/components/src/components/Color/Color.module.mjs +5 -7
  42. package/dist/js/packages/components/src/components/Color/Color.module.mjs.map +1 -1
  43. package/dist/js/packages/components/src/components/DonutChart/components/DonutChartFill.mjs +1 -1
  44. package/dist/js/packages/components/src/components/DonutChart/components/DonutChartFill.mjs.map +1 -1
  45. package/dist/js/packages/components/src/components/HeaderNavigation/HeaderNavigation.mjs +1 -1
  46. package/dist/js/packages/components/src/components/Heading/Heading.mjs +1 -1
  47. package/dist/js/packages/components/src/components/Icon/Icon.mjs +7 -5
  48. package/dist/js/packages/components/src/components/Icon/Icon.mjs.map +1 -1
  49. package/dist/js/packages/components/src/components/Icon/Icon.module.mjs +5 -7
  50. package/dist/js/packages/components/src/components/Icon/Icon.module.mjs.map +1 -1
  51. package/dist/js/packages/components/src/components/IllustratedMessage/IllustratedMessage.mjs +1 -1
  52. package/dist/js/packages/components/src/components/Initials/lib/getColorFromInitials.mjs +1 -1
  53. package/dist/js/packages/components/src/components/Initials/lib/getColorFromInitials.mjs.map +1 -1
  54. package/dist/js/packages/components/src/components/Legend/components/LegendItem/LegendItem.mjs +1 -1
  55. package/dist/js/packages/components/src/components/Legend/components/LegendItem/LegendItem.mjs.map +1 -1
  56. package/dist/js/packages/components/src/components/Link/Link.mjs +1 -1
  57. package/dist/js/packages/components/src/components/LoadingSpinner/LoadingSpinner.mjs +1 -1
  58. package/dist/js/packages/components/src/components/Notification/Notification.module.mjs.map +1 -1
  59. package/dist/js/packages/components/src/components/Overlay/Overlay.module.mjs.map +1 -1
  60. package/dist/js/packages/components/src/components/ProgressBar/components/ProgressBarBar.mjs +1 -1
  61. package/dist/js/packages/components/src/components/ProgressBar/components/ProgressBarBar.mjs.map +1 -1
  62. package/dist/js/packages/components/src/components/Text/Text.mjs +1 -1
  63. package/dist/js/packages/components/src/lib/dom/getCspNonce.mjs +16 -0
  64. package/dist/js/packages/components/src/lib/dom/getCspNonce.mjs.map +1 -0
  65. package/dist/js/packages/components/src/lib/tokens/CategoricalColors.mjs +1 -1
  66. package/dist/js/packages/components/src/lib/tokens/CategoricalColors.mjs.map +1 -1
  67. package/dist/js/packages/components/src/lib/types/props.mjs +1 -17
  68. package/dist/js/packages/components/src/lib/types/props.mjs.map +1 -1
  69. package/dist/js/packages/design-tokens/dist/json-runtime/all-dark.mjs +1270 -1779
  70. package/dist/js/packages/design-tokens/dist/json-runtime/all-dark.mjs.map +1 -1
  71. package/dist/js/packages/design-tokens/dist/json-runtime/all-light.mjs +1270 -1779
  72. package/dist/js/packages/design-tokens/dist/json-runtime/all-light.mjs.map +1 -1
  73. package/dist/types/components/AccentBox/AccentBox.d.ts +3 -12
  74. package/dist/types/components/Avatar/Avatar.d.ts +3 -7
  75. package/dist/types/components/Avatar/avatarColors.d.ts +1 -2
  76. package/dist/types/components/Badge/Badge.d.ts +3 -19
  77. package/dist/types/components/Color/Color.d.ts +4 -8
  78. package/dist/types/components/Icon/Icon.d.ts +3 -5
  79. package/dist/types/lib/dom/getCspNonce.d.ts +6 -0
  80. package/dist/types/lib/theming/hooks/useDesignTokens.d.ts +889 -1409
  81. package/dist/types/lib/tokens/CategoricalColors.d.ts +1 -1
  82. package/dist/types/lib/tokens/getCategoricalColorByIndex.d.ts +1 -1
  83. package/dist/types/lib/types/props.d.ts +0 -12
  84. package/package.json +10 -10
  85. package/dist/js/packages/components/src/lib/hooks/useDeprecatedColor.mjs +0 -20
  86. package/dist/js/packages/components/src/lib/hooks/useDeprecatedColor.mjs.map +0 -1
  87. package/dist/types/lib/hooks/useDeprecatedColor.d.ts +0 -9
@@ -1 +1 @@
1
- {"version":3,"file":"Overlay.module.mjs","names":[],"sources":["../../../../../../../src/components/Overlay/Overlay.module.scss"],"sourcesContent":["/* Full-page backdrop behind every overlay (Modal, LightBox, …).\n\n Sized to `--visual-viewport-height`, the property the Modal wrapper uses too,\n so the whole overlay stack tracks the on-screen keyboard as one. react-aria\n publishes it on this element and updates it with the visual viewport.\n\n Not `--page-height` (the full document height): this element is `fixed`, so\n anything past the viewport never shows, while `backdrop-filter` blurs the\n whole layer every frame. Chromium drops an oversized one for single frames\n while scrolling, flickering backdrop and modal alike. #2338 switched\n `absolute` → `fixed` and added the blur, but kept the `--page-height` that\n `absolute` had needed. */\n.overlay {\n position: fixed;\n top: 0;\n inset-inline-start: 0;\n width: 100%;\n height: var(--visual-viewport-height);\n isolation: isolate;\n background: var(--overlay--backdrop-color);\n backdrop-filter: blur(var(--blur));\n\n &[data-entering] {\n animation: overlay-fade var(--transition--duration--slow);\n }\n\n &[data-exiting] {\n animation: overlay-fade var(--transition--duration--default) reverse ease-in;\n }\n}\n\n/* Centering viewport between the backdrop and react-aria's modal wrapper.\n Sized to the visual viewport so it tracks the on-screen keyboard. Modal,\n OffCanvas and LightBox refine it (padding, pointer-events) — they used to\n repeat this whole block behind a `> div` selector each. */\n.viewport {\n position: fixed;\n height: var(--visual-viewport-height);\n display: flex;\n flex-direction: column;\n width: 100%;\n justify-content: center;\n align-items: center;\n}\n\n/* Fallback shown while suspended overlay content loads. */\n.suspense {\n padding: var(--size-px--xl);\n}\n\n@keyframes overlay-fade {\n 0% {\n opacity: 0;\n }\n\n 50% {\n opacity: 1;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@media (prefers-contrast: more), (prefers-reduced-transparency) {\n .overlay {\n backdrop-filter: none;\n background-color: var(--dark--color--strong--300);\n }\n}\n"],"mappings":""}
1
+ {"version":3,"file":"Overlay.module.mjs","names":[],"sources":["../../../../../../../src/components/Overlay/Overlay.module.scss"],"sourcesContent":["/* Full-page backdrop behind every overlay (Modal, LightBox, …).\n\n Sized to `--visual-viewport-height`, the property the Modal wrapper uses too,\n so the whole overlay stack tracks the on-screen keyboard as one. react-aria\n publishes it on this element and updates it with the visual viewport.\n\n Not `--page-height` (the full document height): this element is `fixed`, so\n anything past the viewport never shows, while `backdrop-filter` blurs the\n whole layer every frame. Chromium drops an oversized one for single frames\n while scrolling, flickering backdrop and modal alike. #2338 switched\n `absolute` → `fixed` and added the blur, but kept the `--page-height` that\n `absolute` had needed. */\n.overlay {\n position: fixed;\n top: 0;\n inset-inline-start: 0;\n width: 100%;\n height: var(--visual-viewport-height);\n isolation: isolate;\n background: var(--overlay--backdrop-color);\n backdrop-filter: blur(var(--blur));\n\n &[data-entering] {\n animation: overlay-fade var(--transition--duration--slow);\n }\n\n &[data-exiting] {\n animation: overlay-fade var(--transition--duration--default) reverse ease-in;\n }\n}\n\n/* Centering viewport between the backdrop and react-aria's modal wrapper.\n Sized to the visual viewport so it tracks the on-screen keyboard. Modal,\n OffCanvas and LightBox refine it (padding, pointer-events) — they used to\n repeat this whole block behind a `> div` selector each. */\n.viewport {\n position: fixed;\n height: var(--visual-viewport-height);\n display: flex;\n flex-direction: column;\n width: 100%;\n justify-content: center;\n align-items: center;\n}\n\n/* Fallback shown while suspended overlay content loads. */\n.suspense {\n padding: var(--size-px--xl);\n}\n\n@keyframes overlay-fade {\n 0% {\n opacity: 0;\n }\n\n 50% {\n opacity: 1;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@media (prefers-contrast: more), (prefers-reduced-transparency) {\n .overlay {\n backdrop-filter: none;\n background-color: var(--dark--color--600);\n }\n}\n"],"mappings":""}
@@ -10,7 +10,7 @@ var ProgressBarBar = (props) => {
10
10
  const { segments, percentage } = props;
11
11
  if (useSkeletonMode()) return /* @__PURE__ */ jsx("div", { className: ProgressBar_module_default.bar });
12
12
  const segmentFill = segments && segments.length > 0 ? segments.map((s, i) => {
13
- const backgroundColor = !s.color ? `var(--categorical--color--${getCategoricalColorByIndex(i)})` : isCategoricalColor(s.color) ? `var(--categorical--color--${s.color})` : s.color;
13
+ const backgroundColor = !s.color ? `var(--color--categorical--${getCategoricalColorByIndex(i)})` : isCategoricalColor(s.color) ? `var(--color--categorical--${s.color})` : s.color;
14
14
  return /* @__PURE__ */ jsx("div", {
15
15
  "aria-hidden": true,
16
16
  className: ProgressBar_module_default.segment,
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBarBar.mjs","names":["styles"],"sources":["../../../../../../../../src/components/ProgressBar/components/ProgressBarBar.tsx"],"sourcesContent":["import styles from \"@/components/ProgressBar/ProgressBar.module.scss\";\nimport type { FC } from \"react\";\nimport type { ProgressBarProps } from \"@/components/ProgressBar\";\nimport { getCategoricalColorByIndex } from \"@/lib/tokens/getCategoricalColorByIndex\";\nimport { isCategoricalColor } from \"@/lib/tokens/isCategoricalColor\";\nimport { useSkeletonMode } from \"@/components/SkeletonMode/skeletonModeContext\";\n\ninterface Props extends Pick<ProgressBarProps, \"segments\"> {\n percentage?: number;\n}\n\nexport const ProgressBarBar: FC<Props> = (props) => {\n const { segments, percentage } = props;\n\n const isSkeleton = useSkeletonMode();\n\n /* In the mode, the track stays and shows no value. */\n if (isSkeleton) {\n return <div className={styles.bar} />;\n }\n\n const segmentFill =\n segments && segments.length > 0\n ? segments.map((s, i) => {\n const backgroundColor = !s.color\n ? `var(--categorical--color--${getCategoricalColorByIndex(i)})`\n : isCategoricalColor(s.color)\n ? `var(--categorical--color--${s.color})`\n : s.color;\n\n return (\n <div\n key={s.title}\n aria-hidden\n className={styles.segment}\n style={{\n backgroundColor,\n \"--progress-bar--segment-value\": s.value,\n }}\n />\n );\n })\n : null;\n\n return (\n <div className={styles.bar}>\n <div\n className={styles.fill}\n style={{ \"--progress-bar--percentage\": percentage }}\n >\n {segmentFill}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;AAWA,IAAa,kBAA6B,UAAU;CAClD,MAAM,EAAE,UAAU,eAAe;CAKjC,IAHmB,gBAGf,GACF,OAAO,oBAAC,OAAD,EAAK,WAAWA,2BAAO,IAAM,CAAA;CAGtC,MAAM,cACJ,YAAY,SAAS,SAAS,IAC1B,SAAS,KAAK,GAAG,MAAM;EACrB,MAAM,kBAAkB,CAAC,EAAE,QACvB,6BAA6B,2BAA2B,CAAC,EAAE,KAC3D,mBAAmB,EAAE,KAAK,IACxB,6BAA6B,EAAE,MAAM,KACrC,EAAE;EAER,OACE,oBAAC,OAAD;GAEE,eAAA;GACA,WAAWA,2BAAO;GAClB,OAAO;IACL;IACA,iCAAiC,EAAE;GACrC;EACD,GAPM,EAAE,KAOR;CAEL,CAAC,IACD;CAEN,OACE,oBAAC,OAAD;EAAK,WAAWA,2BAAO;EACrB,UAAA,oBAAC,OAAD;GACE,WAAWA,2BAAO;GAClB,OAAO,EAAE,8BAA8B,WAAW;GAEjD,UAAA;EACE,CAAA;CACF,CAAA;AAET"}
1
+ {"version":3,"file":"ProgressBarBar.mjs","names":["styles"],"sources":["../../../../../../../../src/components/ProgressBar/components/ProgressBarBar.tsx"],"sourcesContent":["import styles from \"@/components/ProgressBar/ProgressBar.module.scss\";\nimport type { FC } from \"react\";\nimport type { ProgressBarProps } from \"@/components/ProgressBar\";\nimport { getCategoricalColorByIndex } from \"@/lib/tokens/getCategoricalColorByIndex\";\nimport { isCategoricalColor } from \"@/lib/tokens/isCategoricalColor\";\nimport { useSkeletonMode } from \"@/components/SkeletonMode/skeletonModeContext\";\n\ninterface Props extends Pick<ProgressBarProps, \"segments\"> {\n percentage?: number;\n}\n\nexport const ProgressBarBar: FC<Props> = (props) => {\n const { segments, percentage } = props;\n\n const isSkeleton = useSkeletonMode();\n\n /* In the mode, the track stays and shows no value. */\n if (isSkeleton) {\n return <div className={styles.bar} />;\n }\n\n const segmentFill =\n segments && segments.length > 0\n ? segments.map((s, i) => {\n const backgroundColor = !s.color\n ? `var(--color--categorical--${getCategoricalColorByIndex(i)})`\n : isCategoricalColor(s.color)\n ? `var(--color--categorical--${s.color})`\n : s.color;\n\n return (\n <div\n key={s.title}\n aria-hidden\n className={styles.segment}\n style={{\n backgroundColor,\n \"--progress-bar--segment-value\": s.value,\n }}\n />\n );\n })\n : null;\n\n return (\n <div className={styles.bar}>\n <div\n className={styles.fill}\n style={{ \"--progress-bar--percentage\": percentage }}\n >\n {segmentFill}\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;AAWA,IAAa,kBAA6B,UAAU;CAClD,MAAM,EAAE,UAAU,eAAe;CAKjC,IAHmB,gBAGf,GACF,OAAO,oBAAC,OAAD,EAAK,WAAWA,2BAAO,IAAM,CAAA;CAGtC,MAAM,cACJ,YAAY,SAAS,SAAS,IAC1B,SAAS,KAAK,GAAG,MAAM;EACrB,MAAM,kBAAkB,CAAC,EAAE,QACvB,6BAA6B,2BAA2B,CAAC,EAAE,KAC3D,mBAAmB,EAAE,KAAK,IACxB,6BAA6B,EAAE,MAAM,KACrC,EAAE;EAER,OACE,oBAAC,OAAD;GAEE,eAAA;GACA,WAAWA,2BAAO;GAClB,OAAO;IACL;IACA,iCAAiC,EAAE;GACrC;EACD,GAPM,EAAE,KAOR;CAEL,CAAC,IACD;CAEN,OACE,oBAAC,OAAD;EAAK,WAAWA,2BAAO;EACrB,UAAA,oBAAC,OAAD;GACE,WAAWA,2BAAO;GAClB,OAAO,EAAE,8BAA8B,WAAW;GAEjD,UAAA;EACE,CAAA;CACF,CAAA;AAET"}
@@ -1,8 +1,8 @@
1
1
  "use client"
2
2
  /* */
3
- import { isAlphaColor } from "../../lib/types/props.mjs";
4
3
  import { PropsContextProvider } from "../../lib/propsContext/components/PropsContextProvider.mjs";
5
4
  import { flowComponent } from "../../lib/componentFactory/flowComponent.mjs";
5
+ import { isAlphaColor } from "../../lib/types/props.mjs";
6
6
  import { useSkeletonMode } from "../SkeletonMode/skeletonModeContext.mjs";
7
7
  import { Wrap } from "../Wrap/Wrap.mjs";
8
8
  import { EmulatedBoldText } from "../EmulatedBoldText/EmulatedBoldText.mjs";
@@ -0,0 +1,16 @@
1
+ "use client"
2
+ /* */
3
+ // src/lib/dom/getCspNonce.ts
4
+ /**
5
+ * Reads the CSP nonce from `<meta property="csp-nonce">`, the convention Vite
6
+ * and others follow. Browsers hide a `nonce` attribute after parsing, so the
7
+ * `nonce` property is read first and `content` serves as the fallback.
8
+ */
9
+ var getCspNonce = () => {
10
+ if (typeof document === "undefined") return;
11
+ const meta = document.querySelector("meta[property=\"csp-nonce\"]");
12
+ return meta?.nonce || meta?.content || void 0;
13
+ };
14
+ export { getCspNonce };
15
+
16
+ //# sourceMappingURL=getCspNonce.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCspNonce.mjs","names":[],"sources":["../../../../../../../src/lib/dom/getCspNonce.ts"],"sourcesContent":["/**\n * Reads the CSP nonce from `<meta property=\"csp-nonce\">`, the convention Vite\n * and others follow. Browsers hide a `nonce` attribute after parsing, so the\n * `nonce` property is read first and `content` serves as the fallback.\n */\nexport const getCspNonce = (): string | undefined => {\n if (typeof document === \"undefined\") {\n return undefined;\n }\n\n const meta = document.querySelector<HTMLMetaElement>(\n 'meta[property=\"csp-nonce\"]',\n );\n\n return meta?.nonce || meta?.content || undefined;\n};\n"],"mappings":";;;;;;;;AAKA,IAAa,oBAAwC;CACnD,IAAI,OAAO,aAAa,aACtB;CAGF,MAAM,OAAO,SAAS,cACpB,8BACF;CAEA,OAAO,MAAM,SAAS,MAAM,WAAW,KAAA;AACzC"}
@@ -2,7 +2,7 @@
2
2
  /* */
3
3
  import all_light_default from "../../../../design-tokens/dist/json-runtime/all-light.mjs";
4
4
  // src/lib/tokens/CategoricalColors.ts
5
- var categoricalColors = Object.keys(all_light_default.categorical.color);
5
+ var categoricalColors = Object.keys(all_light_default.color.categorical);
6
6
  export { categoricalColors };
7
7
 
8
8
  //# sourceMappingURL=CategoricalColors.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"CategoricalColors.mjs","names":["tokens"],"sources":["../../../../../../../src/lib/tokens/CategoricalColors.ts"],"sourcesContent":["import tokens from \"@mittwald/flow-design-tokens/json-runtime/all-light.json\";\n\nexport const categoricalColors = Object.keys(\n tokens.categorical.color,\n) as (keyof typeof tokens.categorical.color)[];\n\nexport type CategoricalColor = (typeof categoricalColors)[number];\nexport type CategoricalWithCustomColor = CategoricalColor | (string & {});\n"],"mappings":";;;;AAEA,IAAa,oBAAoB,OAAO,KACtCA,kBAAO,YAAY,KACrB"}
1
+ {"version":3,"file":"CategoricalColors.mjs","names":["tokens"],"sources":["../../../../../../../src/lib/tokens/CategoricalColors.ts"],"sourcesContent":["import tokens from \"@mittwald/flow-design-tokens/json-runtime/all-light.json\";\n\nexport const categoricalColors = Object.keys(\n tokens.color.categorical,\n) as (keyof typeof tokens.color.categorical)[];\n\nexport type CategoricalColor = (typeof categoricalColors)[number];\nexport type CategoricalWithCustomColor = CategoricalColor | (string & {});\n"],"mappings":";;;;AAEA,IAAa,oBAAoB,OAAO,KACtCA,kBAAO,MAAM,WACf"}
@@ -17,22 +17,6 @@ var alphaColors = [
17
17
  function isAlphaColor(color) {
18
18
  return alphaColors.includes(color);
19
19
  }
20
- /** The decorative colors, one per mittwald brand color. */
21
- var decorativeColors = [
22
- "blue",
23
- "navy",
24
- "lilac",
25
- "sage",
26
- "salmon"
27
- ];
28
- /**
29
- * Deprecated decorative color values and the color each renders as. `violet`
30
- * duplicated `lilac`; `teal` already rendered the sage tone.
31
- */
32
- var deprecatedDecorativeColors = {
33
- violet: "lilac",
34
- teal: "sage"
35
- };
36
- export { alphaColors, decorativeColors, deprecatedDecorativeColors, isAlphaColor, statusTypes };
20
+ export { alphaColors, isAlphaColor, statusTypes };
37
21
 
38
22
  //# sourceMappingURL=props.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.mjs","names":[],"sources":["../../../../../../../src/lib/types/props.ts"],"sourcesContent":["import type { FlowComponentName } from \"@/components/propTypes\";\nimport type { ExoticComponent, HTMLAttributes } from \"react\";\n\nexport const statusTypes = [\n \"info\",\n \"success\",\n \"warning\",\n \"danger\",\n \"unavailable\",\n] as const;\n\nexport type Status = (typeof statusTypes)[number];\n\nexport type PropsWithStatus<T extends Status = Status, P = unknown> = P & {\n /** The elements status */\n status?: T;\n};\n\nexport type TunnelTarget = {\n id: string;\n component: FlowComponentName;\n /**\n * A stable entry id instead of a generated one. Needed wherever the same\n * component is rendered more than once for a single logical element:\n * react-aria renders collection children twice — once into its hidden\n * collection document, once for real — and a generated id would register each\n * render as its own entry, so the tunnel exit renders every element twice.\n * Must be unique among the siblings of one tunnel.\n */\n staticEntryId?: string;\n} | null;\n\nexport interface PropsWithTunnel {\n /** @internal */\n tunnel?: TunnelTarget;\n}\n\nexport interface PropsWithClassName {\n /** The elements class name. */\n className?: string;\n}\n\nexport type PropsWithElementType<\n T extends keyof HTMLElementTagNameMap = never,\n> = HTMLAttributes<HTMLElement> & {\n /** The HTML element or React component rendered as the elements root. */\n elementType?: T | ExoticComponent;\n};\n\nexport type ContainerBreakpointSize = \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n\nexport interface PropsWithContainerBreakpointSize {\n /**\n * The breakpoint at which the element switches to its compact layout.\n * Evaluated as a container query against the surrounding container, not\n * against the viewport.\n */\n containerBreakpointSize?: ContainerBreakpointSize;\n}\n\nexport const alphaColors = [\n \"dark\",\n \"light\",\n \"dark-static\",\n \"light-static\",\n] as const;\n\nexport type AlphaColor = (typeof alphaColors)[number];\n\nexport function isAlphaColor(color: string): color is AlphaColor {\n return alphaColors.includes(color as AlphaColor);\n}\n\n/** The decorative colors, one per mittwald brand color. */\nexport const decorativeColors = [\n \"blue\",\n \"navy\",\n \"lilac\",\n \"sage\",\n \"salmon\",\n] as const;\n\nexport type DecorativeColor = (typeof decorativeColors)[number];\n\n/**\n * Deprecated decorative color values and the color each renders as. `violet`\n * duplicated `lilac`; `teal` already rendered the sage tone.\n */\nexport const deprecatedDecorativeColors = {\n violet: \"lilac\",\n teal: \"sage\",\n} as const satisfies Record<string, DecorativeColor>;\n\nexport type DeprecatedDecorativeColor = keyof typeof deprecatedDecorativeColors;\n"],"mappings":";;;AAGA,IAAa,cAAc;CACzB;CACA;CACA;CACA;CACA;AACF;AAmDA,IAAa,cAAc;CACzB;CACA;CACA;CACA;AACF;AAIA,SAAgB,aAAa,OAAoC;CAC/D,OAAO,YAAY,SAAS,KAAmB;AACjD;;AAGA,IAAa,mBAAmB;CAC9B;CACA;CACA;CACA;CACA;AACF;;;;;AAQA,IAAa,6BAA6B;CACxC,QAAQ;CACR,MAAM;AACR"}
1
+ {"version":3,"file":"props.mjs","names":[],"sources":["../../../../../../../src/lib/types/props.ts"],"sourcesContent":["import type { FlowComponentName } from \"@/components/propTypes\";\nimport type { ExoticComponent, HTMLAttributes } from \"react\";\n\nexport const statusTypes = [\n \"info\",\n \"success\",\n \"warning\",\n \"danger\",\n \"unavailable\",\n] as const;\n\nexport type Status = (typeof statusTypes)[number];\n\nexport type PropsWithStatus<T extends Status = Status, P = unknown> = P & {\n /** The elements status */\n status?: T;\n};\n\nexport type TunnelTarget = {\n id: string;\n component: FlowComponentName;\n /**\n * A stable entry id instead of a generated one. Needed wherever the same\n * component is rendered more than once for a single logical element:\n * react-aria renders collection children twice — once into its hidden\n * collection document, once for real — and a generated id would register each\n * render as its own entry, so the tunnel exit renders every element twice.\n * Must be unique among the siblings of one tunnel.\n */\n staticEntryId?: string;\n} | null;\n\nexport interface PropsWithTunnel {\n /** @internal */\n tunnel?: TunnelTarget;\n}\n\nexport interface PropsWithClassName {\n /** The elements class name. */\n className?: string;\n}\n\nexport type PropsWithElementType<\n T extends keyof HTMLElementTagNameMap = never,\n> = HTMLAttributes<HTMLElement> & {\n /** The HTML element or React component rendered as the elements root. */\n elementType?: T | ExoticComponent;\n};\n\nexport type ContainerBreakpointSize = \"xs\" | \"s\" | \"m\" | \"l\" | \"xl\";\n\nexport interface PropsWithContainerBreakpointSize {\n /**\n * The breakpoint at which the element switches to its compact layout.\n * Evaluated as a container query against the surrounding container, not\n * against the viewport.\n */\n containerBreakpointSize?: ContainerBreakpointSize;\n}\n\nexport const alphaColors = [\n \"dark\",\n \"light\",\n \"dark-static\",\n \"light-static\",\n] as const;\n\nexport type AlphaColor = (typeof alphaColors)[number];\n\nexport function isAlphaColor(color: string): color is AlphaColor {\n return alphaColors.includes(color as AlphaColor);\n}\n"],"mappings":";;;AAGA,IAAa,cAAc;CACzB;CACA;CACA;CACA;CACA;AACF;AAmDA,IAAa,cAAc;CACzB;CACA;CACA;CACA;AACF;AAIA,SAAgB,aAAa,OAAoC;CAC/D,OAAO,YAAY,SAAS,KAAmB;AACjD"}