@galaxy-io/dls 2.9.0 → 2.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/beacons/Beacon.d.ts +1 -1
  2. package/dist/beacons/Beacon.js +12 -28
  3. package/dist/brand/GalaxyAlchemyWordmark.d.ts +4 -1
  4. package/dist/brand/GalaxyAlchemyWordmark.js +7 -1
  5. package/dist/brand/GalaxyFilamentWordmark.d.ts +5 -2
  6. package/dist/brand/GalaxyFilamentWordmark.js +9 -2
  7. package/dist/brand/GalaxyLogomark.js +3 -0
  8. package/dist/brand/PoweredBy.d.ts +27 -0
  9. package/dist/brand/PoweredBy.js +96 -0
  10. package/dist/brand/internal/svg/GalaxyFilamentWordmarkSvg.d.ts +1 -1
  11. package/dist/brand/internal/svg/GalaxyFilamentWordmarkSvg.js +2 -2
  12. package/dist/charts/Heatmap.js +25 -9
  13. package/dist/charts/Sparkline.d.ts +1 -1
  14. package/dist/charts/Sparkline.js +10 -26
  15. package/dist/charts/chartFormat.d.ts +1 -1
  16. package/dist/charts/chartFormat.js +2 -2
  17. package/dist/charts/heatmapGeometry.d.ts +14 -0
  18. package/dist/charts/heatmapGeometry.js +17 -1
  19. package/dist/chips/Chip.d.ts +2 -2
  20. package/dist/chips/Chip.js +15 -31
  21. package/dist/drawer/Drawer.d.ts +2 -2
  22. package/dist/drawer/Drawer.js +1 -1
  23. package/dist/editor/CodeEditor.d.ts +1 -1
  24. package/dist/editor/CodeEditor.js +2 -1
  25. package/dist/feedback/Alert.d.ts +36 -9
  26. package/dist/feedback/Alert.js +26 -8
  27. package/dist/feedback/ProgressBar.d.ts +4 -1
  28. package/dist/feedback/ProgressBar.js +17 -30
  29. package/dist/feedback/ProgressCircle.d.ts +1 -1
  30. package/dist/feedback/ProgressCircle.js +14 -30
  31. package/dist/hooks/useEndReached.d.ts +40 -0
  32. package/dist/hooks/useEndReached.js +69 -0
  33. package/dist/icons/Icon.d.ts +36 -8
  34. package/dist/icons/Icon.js +14 -7
  35. package/dist/inputs/CronInput.js +114 -78
  36. package/dist/inputs/DateInput.d.ts +1 -1
  37. package/dist/inputs/DateInput.js +10 -10
  38. package/dist/inputs/MultiSelectInput.d.ts +3 -1
  39. package/dist/inputs/MultiSelectInput.js +8 -3
  40. package/dist/inputs/SelectInput.d.ts +8 -1
  41. package/dist/inputs/SelectInput.js +52 -25
  42. package/dist/inputs/internal/selectAll.d.ts +11 -0
  43. package/dist/inputs/internal/selectAll.js +28 -0
  44. package/dist/json/JsonViewer.js +7 -6
  45. package/dist/layout/AppFrame.d.ts +20 -0
  46. package/dist/layout/AppFrame.js +71 -0
  47. package/dist/layout/EmptyLayout.d.ts +53 -0
  48. package/dist/layout/EmptyLayout.js +59 -0
  49. package/dist/layout/ErrorLayout.d.ts +42 -0
  50. package/dist/layout/ErrorLayout.js +60 -0
  51. package/dist/layout/PageLayout.d.ts +26 -0
  52. package/dist/layout/PageLayout.js +116 -0
  53. package/dist/layout/PendingLayout.d.ts +30 -0
  54. package/dist/layout/PendingLayout.js +57 -0
  55. package/dist/layout/internal/errorState.d.ts +14 -0
  56. package/dist/layout/internal/errorState.js +49 -0
  57. package/dist/layout/internal/region.d.ts +10 -0
  58. package/dist/layout/internal/region.js +24 -0
  59. package/dist/lists/DescriptionList.js +1 -0
  60. package/dist/menu/Menu.d.ts +2 -2
  61. package/dist/menu/Menu.js +6 -13
  62. package/dist/modal/Modal.d.ts +2 -2
  63. package/dist/modal/Modal.js +1 -1
  64. package/dist/navigation/CommandPalette.js +4 -11
  65. package/dist/navigation/SidebarNav.d.ts +5 -0
  66. package/dist/navigation/SidebarNav.js +41 -22
  67. package/dist/navigation/Topbar.js +4 -0
  68. package/dist/shapes/Circle.d.ts +1 -1
  69. package/dist/shapes/Circle.js +10 -26
  70. package/dist/shapes/Square.d.ts +1 -1
  71. package/dist/shapes/Square.js +10 -26
  72. package/dist/styles/internal/roleColor.d.ts +3 -0
  73. package/dist/styles/internal/roleColor.js +42 -0
  74. package/dist/styles/mixins.js +1 -1
  75. package/dist/styles.css +1 -1
  76. package/dist/table/InfiniteSpreadsheet.js +6 -6
  77. package/dist/table/InfiniteTable.d.ts +52 -20
  78. package/dist/table/InfiniteTable.js +3 -2
  79. package/dist/table/TableCore.d.ts +7 -1
  80. package/dist/table/TableCore.js +93 -83
  81. package/dist/table/VirtualizedInfiniteTable.d.ts +53 -21
  82. package/dist/table/VirtualizedInfiniteTable.js +7 -5
  83. package/dist/table/useInfiniteScrollSentinel.d.ts +13 -13
  84. package/dist/table/useInfiniteScrollSentinel.js +7 -51
  85. package/dist/theme/tokens/dark.js +1 -1
  86. package/dist/theme/tokens/light.js +4 -3
  87. package/dist/theme/tokens/types.d.ts +7 -7
  88. package/dist/timeline/Timeline.d.ts +1 -1
  89. package/dist/timeline/Timeline.js +6 -24
  90. package/dist/tokens.css +1 -1
  91. package/dist/utils/format.d.ts +35 -10
  92. package/dist/utils/format.js +60 -12
  93. package/dist/utils/search.d.ts +15 -0
  94. package/dist/utils/search.js +24 -0
  95. package/dist/vite/index.d.ts +16 -2
  96. package/dist/vite/index.js +28 -19
  97. package/dist/vite/internal/themeBoot.d.ts +25 -0
  98. package/dist/vite/internal/themeBoot.js +44 -0
  99. package/dist/vite/internal/wywOptions.d.ts +46 -0
  100. package/dist/vite/internal/wywOptions.js +44 -0
  101. package/package.json +34 -1
@@ -1,3 +1,4 @@
1
+ import { ROLE_COLOR_TO_CSS_MAP } from "../styles/internal/roleColor.js";
1
2
  /* empty css */
2
3
  import { styled } from "@linaria/react";
3
4
  import { forwardRef } from "react";
@@ -34,7 +35,7 @@ var CircleSize = /* @__PURE__ */ function(CircleSize) {
34
35
  CircleSize["X_LARGE"] = "X_LARGE";
35
36
  return CircleSize;
36
37
  }({});
37
- /** Fill color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
38
+ /** Fill color role (AGENTS.md "Variant": color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
38
39
  var CircleVariant = /* @__PURE__ */ function(CircleVariant) {
39
40
  /** `text.primary`. */
40
41
  CircleVariant["PRIMARY"] = "PRIMARY";
@@ -82,31 +83,14 @@ var CIRCLE_VARIANT_TO_CSS_MAP = {
82
83
  ["WARNING"]: "gx-Circle-WARNING-w1wd9i5w",
83
84
  ["ERROR"]: "gx-Circle-ERROR-e4bqin2"
84
85
  };
85
- /** Categorical `color`: `mark.<family>`, the way a status variant renders. */
86
- var CIRCLE_COLOR_TO_CSS_MAP = {
87
- success: "gx-Circle-success-sisghat",
88
- warning: "gx-Circle-warning-wrnyxi5",
89
- error: "gx-Circle-error-emlehi9",
90
- red: "gx-Circle-red-rx4zu59",
91
- orange: "gx-Circle-orange-omm7dfa",
92
- amber: "gx-Circle-amber-a15qmdzt",
93
- yellow: "gx-Circle-yellow-y1p4fg4l",
94
- lime: "gx-Circle-lime-l6eszpj",
95
- green: "gx-Circle-green-g1kmyxwu",
96
- emerald: "gx-Circle-emerald-er4sdq5",
97
- teal: "gx-Circle-teal-tw9vccf",
98
- cyan: "gx-Circle-cyan-c1rmact7",
99
- sky: "gx-Circle-sky-syv0gwd",
100
- blue: "gx-Circle-blue-bdx6kbq",
101
- indigo: "gx-Circle-indigo-i1j11685",
102
- violet: "gx-Circle-violet-vgz62lk",
103
- purple: "gx-Circle-purple-pe429ux",
104
- fuchsia: "gx-Circle-fuchsia-f1h7hg24",
105
- pink: "gx-Circle-pink-po1cc6l",
106
- rose: "gx-Circle-rose-r1ljyczc"
107
- };
86
+ /**
87
+ * Categorical `color`: `mark.<family>`, the way a status variant renders. Reads the shared
88
+ * `--gx-role-*` variables `ROLE_COLOR_TO_CSS_MAP` sets per family, so the twenty families are
89
+ * written once (`styles/internal/roleColor`).
90
+ */
91
+ var CIRCLE_COLOR_CSS = "gx-Circle-CIRCLE_COLOR_CSS-cisghat";
108
92
  /** Declared after the variant and color maps so `hex` wins over them. */
109
- var HEX_CSS = "gx-Circle-HEX_CSS-h18iedp";
93
+ var HEX_CSS = "gx-Circle-HEX_CSS-hrnyxi5";
110
94
  /** A filled dot beside a label; its color is a role (`variant`), a category (`color`) or data (`hex`). */
111
95
  var Circle = forwardRef(function Circle({ size = "MEDIUM", variant = "TERTIARY", color, hex, ariaLabel, id, className, style, ...rest }, ref) {
112
96
  const variables = {};
@@ -119,7 +103,7 @@ var Circle = forwardRef(function Circle({ size = "MEDIUM", variant = "TERTIARY",
119
103
  ...rest,
120
104
  ref,
121
105
  id,
122
- className: cx(CIRCLE_SIZE_TO_CSS_MAP[size], color !== void 0 ? CIRCLE_COLOR_TO_CSS_MAP[color] : CIRCLE_VARIANT_TO_CSS_MAP[variant], hex !== void 0 && HEX_CSS, className),
106
+ className: cx(CIRCLE_SIZE_TO_CSS_MAP[size], color !== void 0 ? cx(ROLE_COLOR_TO_CSS_MAP[color], CIRCLE_COLOR_CSS) : CIRCLE_VARIANT_TO_CSS_MAP[variant], hex !== void 0 && HEX_CSS, className),
123
107
  style: {
124
108
  ...variables,
125
109
  ...style
@@ -13,7 +13,7 @@ export declare enum SquareSize {
13
13
  /** 12px, beside `body_lg` (20px line). */
14
14
  X_LARGE = "X_LARGE"
15
15
  }
16
- /** Fill color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
16
+ /** Fill color role (AGENTS.md "Variant": color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
17
17
  export declare enum SquareVariant {
18
18
  /** `text.primary`. */
19
19
  PRIMARY = "PRIMARY",
@@ -1,3 +1,4 @@
1
+ import { ROLE_COLOR_TO_CSS_MAP } from "../styles/internal/roleColor.js";
1
2
  /* empty css */
2
3
  import { styled } from "@linaria/react";
3
4
  import { forwardRef } from "react";
@@ -34,7 +35,7 @@ var SquareSize = /* @__PURE__ */ function(SquareSize) {
34
35
  SquareSize["X_LARGE"] = "X_LARGE";
35
36
  return SquareSize;
36
37
  }({});
37
- /** Fill color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
38
+ /** Fill color role (AGENTS.md "Variant": color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
38
39
  var SquareVariant = /* @__PURE__ */ function(SquareVariant) {
39
40
  /** `text.primary`. */
40
41
  SquareVariant["PRIMARY"] = "PRIMARY";
@@ -83,31 +84,14 @@ var SQUARE_VARIANT_TO_CSS_MAP = {
83
84
  ["WARNING"]: "gx-Square-WARNING-w1jcu9g9",
84
85
  ["ERROR"]: "gx-Square-ERROR-e1a9qgv5"
85
86
  };
86
- /** Categorical `color`: `mark.<family>`, the way a status variant renders. */
87
- var SQUARE_COLOR_TO_CSS_MAP = {
88
- success: "gx-Square-success-s44keg",
89
- warning: "gx-Square-warning-w1czb11g",
90
- error: "gx-Square-error-e11m2avz",
91
- red: "gx-Square-red-r1dycb8",
92
- orange: "gx-Square-orange-o13w32o7",
93
- amber: "gx-Square-amber-aflvbdc",
94
- yellow: "gx-Square-yellow-y1wrg0mj",
95
- lime: "gx-Square-lime-lbmrs5y",
96
- green: "gx-Square-green-g1229390",
97
- emerald: "gx-Square-emerald-eylmgp4",
98
- teal: "gx-Square-teal-tgnvnom",
99
- cyan: "gx-Square-cyan-cqzrj1i",
100
- sky: "gx-Square-sky-sx1evfg",
101
- blue: "gx-Square-blue-b1bh3ofr",
102
- indigo: "gx-Square-indigo-i15n3xo4",
103
- violet: "gx-Square-violet-v1qvour9",
104
- purple: "gx-Square-purple-p1g6v6vx",
105
- fuchsia: "gx-Square-fuchsia-f1u3b7de",
106
- pink: "gx-Square-pink-pdedn2c",
107
- rose: "gx-Square-rose-rod6x1x"
108
- };
87
+ /**
88
+ * Categorical `color`: `mark.<family>`, the way a status variant renders. Reads the shared
89
+ * `--gx-role-*` variables `ROLE_COLOR_TO_CSS_MAP` sets per family, so the twenty families are
90
+ * written once (`styles/internal/roleColor`).
91
+ */
92
+ var SQUARE_COLOR_CSS = "gx-Square-SQUARE_COLOR_CSS-s44keg";
109
93
  /** Declared after the variant and color maps so `hex` wins over them. */
110
- var HEX_CSS = "gx-Square-HEX_CSS-h1ah0bbe";
94
+ var HEX_CSS = "gx-Square-HEX_CSS-h1czb11g";
111
95
  /** A filled square mark beside a label; its color is a role (`variant`), a category (`color`) or data (`hex`). */
112
96
  var Square = forwardRef(function Square({ size = "MEDIUM", variant = "TERTIARY", color, hex, ariaLabel, id, className, style, ...rest }, ref) {
113
97
  const variables = {};
@@ -120,7 +104,7 @@ var Square = forwardRef(function Square({ size = "MEDIUM", variant = "TERTIARY",
120
104
  ...rest,
121
105
  ref,
122
106
  id,
123
- className: cx(SQUARE_SIZE_TO_CSS_MAP[size], color !== void 0 ? SQUARE_COLOR_TO_CSS_MAP[color] : SQUARE_VARIANT_TO_CSS_MAP[variant], hex !== void 0 && HEX_CSS, className),
107
+ className: cx(SQUARE_SIZE_TO_CSS_MAP[size], color !== void 0 ? cx(ROLE_COLOR_TO_CSS_MAP[color], SQUARE_COLOR_CSS) : SQUARE_VARIANT_TO_CSS_MAP[variant], hex !== void 0 && HEX_CSS, className),
124
108
  style: {
125
109
  ...variables,
126
110
  ...style
@@ -0,0 +1,3 @@
1
+ import type { RoleColor } from "../../theme/tokens/types.js";
2
+ /** Sets the four `--gx-role-*` variables per status and palette family. */
3
+ export declare const ROLE_COLOR_TO_CSS_MAP: Record<RoleColor, string>;
@@ -0,0 +1,42 @@
1
+ /* empty css */
2
+ //#region src/styles/internal/roleColor.ts
3
+ /**
4
+ * @internal One role-color source for every `color?: RoleColor` prop. Each block sets four custom
5
+ * properties for one status or palette family, and a component reads the ones it needs:
6
+ *
7
+ * - `--gx-role-text`: `text.<c>` (labels and icons; icons keep `text`, never `mark`);
8
+ * - `--gx-role-fill`: `background.<c>` (a quiet tinted surface);
9
+ * - `--gx-role-border`: `border.<c>` (its hairline);
10
+ * - `--gx-role-mark`: `mark.<c>` (a filled shape with no text on it).
11
+ *
12
+ * Why variables rather than one `Record<RoleColor>` of declarations per component: the twenty
13
+ * families are written once, a component keys `ROLE_COLOR_TO_CSS_MAP[color]` and adds one block
14
+ * that maps the variables onto its own properties, and `hex` and disabled states keep overriding
15
+ * by declaration order exactly as before. Private on purpose (an `internal/` module: built, never a
16
+ * package export).
17
+ */
18
+ /** Sets the four `--gx-role-*` variables per status and palette family. */
19
+ var ROLE_COLOR_TO_CSS_MAP = {
20
+ success: "gx-roleColor-success-s1c8ieft",
21
+ warning: "gx-roleColor-warning-w100nkh0",
22
+ error: "gx-roleColor-error-e1nhco0",
23
+ red: "gx-roleColor-red-r16os4ey",
24
+ orange: "gx-roleColor-orange-oyt3k76",
25
+ amber: "gx-roleColor-amber-ail1y4f",
26
+ yellow: "gx-roleColor-yellow-y1bp9ddu",
27
+ lime: "gx-roleColor-lime-lb02nu3",
28
+ green: "gx-roleColor-green-gyvr8v1",
29
+ emerald: "gx-roleColor-emerald-e16fojs1",
30
+ teal: "gx-roleColor-teal-t1ik3gps",
31
+ cyan: "gx-roleColor-cyan-c1tqfkft",
32
+ sky: "gx-roleColor-sky-s1q7825m",
33
+ blue: "gx-roleColor-blue-bxyqpwq",
34
+ indigo: "gx-roleColor-indigo-i1rsw8me",
35
+ violet: "gx-roleColor-violet-v1l5oydn",
36
+ purple: "gx-roleColor-purple-p1k8sszd",
37
+ fuchsia: "gx-roleColor-fuchsia-f149phwe",
38
+ pink: "gx-roleColor-pink-p1fg2myf",
39
+ rose: "gx-roleColor-rose-r1ur3f9e"
40
+ };
41
+ //#endregion
42
+ export { ROLE_COLOR_TO_CSS_MAP };
@@ -2,7 +2,7 @@ import { t } from "../theme/tokens/t.js";
2
2
  /* empty css */
3
3
  //#region src/styles/mixins.ts
4
4
  /**
5
- * Shared style mixins (Constitution IV.6). Each export is a CSS-text fragment (a plain string,
5
+ * Shared style mixins (AGENTS.md "Mixins"). Each export is a CSS-text fragment (a plain string,
6
6
  * evaluated at build time by wyw): interpolate it inside a `styled` or `css` template instead of
7
7
  * re-declaring the rules. Never compose a mixin with `cx(...)`; it is not a class name.
8
8
  *