pixelize-design-library 2.2.143 → 2.2.145

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.
@@ -15,342 +15,107 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  var palette_1 = __importDefault(require("../Default/palette"));
18
- var palette = __assign(__assign({}, palette_1.default), { primary: {
19
- 50: "#e3f2f9",
20
- 100: "#c5e4f3",
21
- 200: "#a2d4ec",
22
- 300: "#7ac1e4",
23
- 400: "#47a9da",
24
- 500: "#0088cc", // primary shade
25
- 600: "#007ab8",
26
- 700: "#006ba1",
27
- 800: "#005885",
28
- 900: "#003f5e",
29
- opacity: {
30
- 4: "#9A4FE50a",
31
- 8: "#9A4FE514",
32
- 16: "#9A4FE529",
33
- 24: "#9A4FE53d",
34
- 32: "#9A4FE552",
35
- 40: "#9A4FE566",
36
- 48: "#9A4FE57a",
37
- }
38
- }, secondary: {
39
- 50: "#e8e8e9",
40
- 100: "#b7b8bb",
41
- 200: "#94989b",
42
- 300: "#63666d",
43
- 400: "#454951",
44
- 500: "#161b25", // secondary shade
45
- 600: "#141922",
46
- 700: "#10131a",
47
- 800: "#0c0f14",
48
- 900: "#090b10",
49
- opacity: {
50
- 4: "#161b250a",
51
- 8: "#161b2514",
52
- 16: "#161b2529",
53
- 24: "#161b253d",
54
- 32: "#161b2552",
55
- 40: "#161b2566",
56
- 48: "#161b257a",
57
- }
58
- }, tertiary: {
59
- 50: "#e3f2f9",
60
- 100: "#c5e4f3",
61
- 200: "#a2d4ec",
62
- 300: "#7ac1e4",
63
- 400: "#47a9da",
64
- 500: "#0088cc", // primary shade
65
- 600: "#007ab8",
66
- 700: "#006ba1",
67
- 800: "#005885",
68
- 900: "#003f5e",
69
- opacity: {
70
- 4: "#9A4FE50a",
71
- 8: "#9A4FE514",
72
- 16: "#9A4FE529",
73
- 24: "#9A4FE53d",
74
- 32: "#9A4FE552",
75
- 40: "#9A4FE566",
76
- 48: "#9A4FE57a",
77
- }
78
- }, transparent: "transparent", black: "#000", white: "#fff", semantic: {
79
- success: {
80
- 50: "#e6f9f0",
81
- 100: "#c0f0d8",
82
- 200: "#8be6bb",
83
- 300: "#5bdb9e",
84
- 400: "#33d181",
85
- 500: "#00b768", // Main success color
86
- 600: "#00a05a",
87
- 700: "#00854b",
88
- 800: "#006b3c",
89
- 900: "#004c28",
90
- },
91
- error: {
92
- 50: "#ffe6e6",
93
- 100: "#fbbcbc",
94
- 200: "#f28f8f",
95
- 300: "#e66060",
96
- 400: "#db3a3a",
97
- 500: "#c21e1e", // Main error color
98
- 600: "#a01919",
99
- 700: "#7e1313",
100
- 800: "#5c0d0d",
101
- 900: "#3d0909",
102
- },
103
- warning: {
104
- 50: "#fff4e6",
105
- 100: "#ffe1b8",
106
- 200: "#ffcc85",
107
- 300: "#ffb653",
108
- 400: "#ffa31a",
109
- 500: "#ff8a00", // Main warning color
110
- 600: "#db7000",
111
- 700: "#b75800",
112
- 800: "#934300",
113
- 900: "#702f00",
114
- },
115
- info: {
116
- 50: "#e3f5ff",
117
- 100: "#b8e4ff",
118
- 200: "#85d1ff",
119
- 300: "#52bdff",
120
- 400: "#1fa9ff",
121
- 500: "#008df5", // Main info color
122
- 600: "#0077db",
123
- 700: "#005cb3",
124
- 800: "#004489",
125
- 900: "#002d5c",
126
- },
127
- }, gray: {
128
- 50: "#f7fafc",
129
- 100: "#edf2f7",
130
- 200: "#e2e8f0",
131
- 300: "#cbd5e0",
132
- 400: "#a0aec0",
133
- 500: "#718096",
134
- 600: "#4a5568",
135
- 700: "#2d3748",
136
- 800: "#1a202c",
137
- 900: "#171923",
138
- }, red: {
139
- 50: "#fff5f5",
140
- 100: "#fed7d7",
141
- 200: "#feb2b2",
142
- 300: "#fc8181",
143
- 400: "#f56565",
144
- 500: "#e53e3e",
145
- 600: "#c53030",
146
- 700: "#9b2c2c",
147
- 800: "#822727",
148
- 900: "#63171b",
149
- }, orange: {
150
- 50: "#fffaf0",
151
- 100: "#feebc8",
152
- 200: "#fbd38d",
153
- 300: "#f6ad55",
154
- 400: "#ed8936",
155
- 500: "#dd6b20",
156
- 600: "#c05621",
157
- 700: "#9c4221",
158
- 800: "#7b341e",
159
- 900: "#652b19",
160
- }, yellow: {
161
- 50: "#fffff0",
162
- 100: "#fefcbf",
163
- 200: "#faf089",
164
- 300: "#f6e05e",
165
- 400: "#ecc94b",
166
- 500: "#d69e2e",
167
- 600: "#b7791f",
168
- 700: "#975a16",
169
- 800: "#744210",
170
- 900: "#5f370e",
171
- }, green: {
172
- 50: "#f0fff4",
173
- 100: "#c6f6d5",
174
- 200: "#9ae6b4",
175
- 300: "#68d391",
176
- 400: "#48bb78",
177
- 500: "#38a169",
178
- 600: "#2f855a",
179
- 700: "#276749",
180
- 800: "#22543d",
181
- 900: "#1c4532",
182
- }, teal: {
183
- 50: "#e6fffa",
184
- 100: "#b2f5ea",
185
- 200: "#81e6d9",
186
- 300: "#4fd1c5",
187
- 400: "#38b2ac",
188
- 500: "#319795",
189
- 600: "#2c7a7b",
190
- 700: "#285e61",
191
- 800: "#234e52",
192
- 900: "#1d4044",
193
- }, blue: {
194
- 50: "#ebf8ff",
195
- 100: "#bee3f8",
196
- 200: "#90cdf4",
197
- 300: "#63b3ed",
198
- 400: "#4299e1",
199
- 500: "#3182ce",
200
- 600: "#2b6cb0",
201
- 700: "#2c5282",
202
- 800: "#2a4365",
203
- 900: "#1a365d",
204
- }, cyan: {
205
- 50: "#edfdfd",
206
- 100: "#c4f1f9",
207
- 200: "#9decf9",
208
- 300: "#76e4f7",
209
- 400: "#0bc5ea",
210
- 500: "#00b5d8",
211
- 600: "#00a3c4",
212
- 700: "#0987a0",
213
- 800: "#086f83",
214
- 900: "#065666",
215
- }, purple: {
216
- 50: "#faf5ff",
217
- 100: "#e9d8fd",
218
- 200: "#d6bcfa",
219
- 300: "#b794f4",
220
- 400: "#9f7aea",
221
- 500: "#805ad5",
222
- 600: "#6b46c1",
223
- 700: "#553c9a",
224
- 800: "#44337a",
225
- 900: "#322659",
226
- }, pink: {
227
- 50: "#fff5f7",
228
- 100: "#fed7e2",
229
- 200: "#fbb6ce",
230
- 300: "#f687b3",
231
- 400: "#ed64a6",
232
- 500: "#d53f8c",
233
- 600: "#b83280",
234
- 700: "#97266d",
235
- 800: "#702459",
236
- 900: "#521b41",
18
+ var buildBrandTokens_1 = require("../buildBrandTokens");
19
+ var PRIMARY_500 = "#0088cc";
20
+ var primary = {
21
+ 50: "#e6f4fb",
22
+ 100: "#cce9f7",
23
+ 200: "#99d2ef",
24
+ 300: "#66bbe6",
25
+ 400: "#33a4de",
26
+ 500: PRIMARY_500,
27
+ 600: "#0077b3",
28
+ 700: "#006399",
29
+ 800: "#004f7a",
30
+ 900: "#003a5c",
31
+ opacity: (0, buildBrandTokens_1.buildPrimaryOpacity)(PRIMARY_500),
32
+ };
33
+ var palette = __assign(__assign({}, palette_1.default), { primary: primary, tertiary: __assign({}, primary), gray: {
34
+ 50: "#f5f9fb",
35
+ 100: "#e8f0f6",
36
+ 200: "#d7e4ed",
37
+ 300: "#b8cedc",
38
+ 400: "#8aa8bd",
39
+ 500: "#5f8299",
40
+ 600: "#456178",
41
+ 700: "#364d5f",
42
+ 800: "#273845",
43
+ 900: "#1a262f",
44
+ }, backgroundColor: {
45
+ main: "#f5f9fc",
46
+ secondary: "#eaf2f8",
47
+ tertiary: "#e2ecf4",
48
+ quaternary: "#d8e4ef",
49
+ light: "#fafcfe",
50
+ medium: "#e4edf4",
51
+ accent: "#dae6f1",
52
+ subtle: "#f2f7fb",
53
+ muted: "#cfdce8",
54
+ neutral: "#e2eaf1",
55
+ base: "#f9fbfd",
56
+ tableHeader: "#eaf2f8",
237
57
  }, background: {
238
58
  50: "#ffffff",
239
- 100: "#fefefe",
240
- 200: "#fdfdfd",
241
- 300: "#fcfcfc",
242
- 400: "#fcfcfc",
243
- 500: "#fbfbfb",
244
- 600: "#e4e4e4",
245
- 700: "#b2b2b2",
246
- 800: "#8a8a8a",
247
- 900: "#696969",
248
- }, backgroundColor: {
249
- main: "#f8f9fa", // Light greyish white
250
- secondary: "#f1f1f1", // Very light grey
251
- tertiary: "#ececec", // Soft grey
252
- quaternary: "#e2e6ea", // Pale blueish-grey
253
- light: "#fafafa", // Almost pure white
254
- medium: "#eaeaea", // Medium light grey
255
- accent: "#e5e5e5", // A slightly deeper grey
256
- subtle: "#f5f6f7", // Slightly off-white with a cooler tone
257
- muted: "#dfe3e6", // Light muted blue-grey
258
- neutral: "#ebedef", // Neutral grey with a balanced tone
259
- }, text: {
260
- 50: "#eeeff0",
261
- 100: "#cacccf",
262
- 200: "#b1b3b8",
263
- 300: "#8d9097",
264
- 400: "#777b83",
265
- 500: "#555a64",
266
- 600: "#4d525b",
267
- 700: "#3c4047",
268
- 800: "#2f3237",
269
- 900: "#24262a",
270
- }, header: {
271
- 50: "#ecedec",
272
- 100: "#c5c6ca",
273
- 200: "#a9abb0",
274
- 300: "#81848c",
275
- 400: "#696b75",
276
- 500: "#434853",
277
- 600: "#3d424c",
278
- 700: "#30333b",
279
- 800: "#25282e",
280
- 900: "#1c1e23",
281
- }, placeholder: {
282
- 50: "#f1f1f2",
283
- 100: "#d3d5d8",
284
- 200: "#bec0c5",
285
- 300: "#a0a3aa",
286
- 400: "#8d9199",
287
- 500: "#717680",
288
- 600: "#676b74",
289
- 700: "#50545b",
290
- 800: "#3e4146",
291
- 900: "#2f3236",
292
- }, boxShadow: {
293
- primary: "#9A52E247",
294
- error: "#F2463A47",
295
- default: "",
296
- }, sidebar: {
297
- background: {
298
- 50: "#f1f1f2",
299
- 100: "#d3d5d8",
300
- 200: "#bec0c5",
301
- 300: "#a0a3aa",
302
- 400: "#8d9199",
303
- 500: "#161B32",
304
- 600: "#676b74",
305
- 700: "#50545b",
306
- 800: "#3e4146",
307
- 900: "#2f3236",
308
- }
309
- }, boxborder: {
310
- 50: "#fbfbfb",
311
- 100: "#f2f3f4",
312
- 200: "#ecedee",
313
- 300: "#e4e5e7",
314
- 400: "#dee0e2",
315
- 500: "#d6d8db",
316
- 600: "#c3c5c7",
317
- 700: "#98999b",
318
- 800: "#767778",
319
- 900: "#5a5b5c",
59
+ 100: "#fafcfe",
60
+ 200: "#f2f7fb",
61
+ 300: "#eaf2f8",
62
+ 400: "#e3edf5",
63
+ 500: "#dce7f1",
64
+ 600: "#c5d4e0",
65
+ 700: "#9aaab8",
66
+ 800: "#74808d",
67
+ 900: "#57616c",
320
68
  }, border: {
321
- 50: "#fdfdfd",
322
- 100: "#f8f8f8",
323
- 200: "#f4f4f4",
324
- 300: "#f0f0f0",
325
- 400: "#ededed",
326
- 500: "#e8e8e8",
327
- 600: "#d3d3d3",
328
- 700: "#a5a5a5",
329
- 800: "#808080",
330
- 900: "#616161",
69
+ 50: "#fbfcfd",
70
+ 100: "#f1f5f9",
71
+ 200: "#eaeff4",
72
+ 300: "#e2e9ef",
73
+ 400: "#dce4eb",
74
+ 500: "#d4dde6",
75
+ 600: "#c0cad4",
76
+ 700: "#96a0ab",
77
+ 800: "#727a83",
78
+ 900: "#575d64",
79
+ }, boxborder: {
80
+ 50: "#fbfcfd",
81
+ 100: "#f0f4f8",
82
+ 200: "#e9eef3",
83
+ 300: "#e1e7ee",
84
+ 400: "#dae1e9",
85
+ 500: "#d2dae3",
86
+ 600: "#bec7d1",
87
+ 700: "#949ca4",
88
+ 800: "#70767c",
89
+ 900: "#565a5f",
331
90
  }, table: {
332
91
  hover: {
333
- 50: "#fefefe",
334
- 100: "#fcfcfc",
335
- 200: "#fbfbfb",
336
- 300: "#f9f9f9",
337
- 400: "#f8f8f8",
338
- 500: "#f6f6f6",
339
- 600: "#e0e0e0",
340
- 700: "#afafaf",
341
- 800: "#878787",
342
- 900: "#676767",
343
- }
344
- }, disabled: {
345
- 50: "#fcfcfc",
346
- 100: "#f7f7f7",
347
- 200: "#f3f3f3",
348
- 300: "#ededed",
349
- 400: "#e9e9e9",
350
- 500: "#e4e4e4",
351
- 600: "#cfcfcf",
352
- 700: "#a2a2a2",
353
- 800: "#7d7d7d",
354
- 900: "#606060",
92
+ 50: "#feffff",
93
+ 100: "#f6fafd",
94
+ 200: "#eff5fa",
95
+ 300: "#e9f1f7",
96
+ 400: "#e3edf5",
97
+ 500: "#dde8f2",
98
+ 600: "#c8d5e0",
99
+ 700: "#9eabb8",
100
+ 800: "#78828c",
101
+ 900: "#5a636b",
102
+ },
103
+ }, sidebar: {
104
+ background: {
105
+ 50: "#e8f0f7",
106
+ 100: "#d3e2ee",
107
+ 200: "#243646",
108
+ 300: "#6d8aa3",
109
+ 400: "#4a6578",
110
+ 500: "#162534",
111
+ 600: "#121f2b",
112
+ 700: "#0e1822",
113
+ 800: "#0a1219",
114
+ 900: "#070c11",
115
+ },
116
+ }, boxShadow: {
117
+ primary: (0, buildBrandTokens_1.buildPrimaryShadowTint)(PRIMARY_500),
118
+ error: palette_1.default.boxShadow.error,
119
+ default: palette_1.default.boxShadow.default,
355
120
  } });
356
121
  exports.default = palette;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Builds 8-digit hex alpha tokens from a 6-digit brand color (Chakra primary.500).
3
+ */
4
+ export declare function normalizeHex(hex: string): string;
5
+ export declare function buildPrimaryOpacity(primary500: string): {
6
+ 4: string;
7
+ 8: string;
8
+ 16: string;
9
+ 24: string;
10
+ 32: string;
11
+ 40: string;
12
+ 48: string;
13
+ };
14
+ /** Tint used for focus rings / primary-tinted shadows (matches ~28% alpha pattern). */
15
+ export declare function buildPrimaryShadowTint(primary500: string): string;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeHex = normalizeHex;
4
+ exports.buildPrimaryOpacity = buildPrimaryOpacity;
5
+ exports.buildPrimaryShadowTint = buildPrimaryShadowTint;
6
+ /**
7
+ * Builds 8-digit hex alpha tokens from a 6-digit brand color (Chakra primary.500).
8
+ */
9
+ function normalizeHex(hex) {
10
+ var trimmed = hex.trim();
11
+ var withHash = trimmed.startsWith("#") ? trimmed : "#".concat(trimmed);
12
+ if (!/^#[0-9a-fA-F]{6}$/.test(withHash)) {
13
+ throw new Error("Invalid hex color (expected #RRGGBB): ".concat(hex));
14
+ }
15
+ return withHash.toLowerCase();
16
+ }
17
+ function buildPrimaryOpacity(primary500) {
18
+ var h = normalizeHex(primary500);
19
+ return {
20
+ 4: "".concat(h, "0a"),
21
+ 8: "".concat(h, "14"),
22
+ 16: "".concat(h, "29"),
23
+ 24: "".concat(h, "3d"),
24
+ 32: "".concat(h, "52"),
25
+ 40: "".concat(h, "66"),
26
+ 48: "".concat(h, "7a"),
27
+ };
28
+ }
29
+ /** Tint used for focus rings / primary-tinted shadows (matches ~28% alpha pattern). */
30
+ function buildPrimaryShadowTint(primary500) {
31
+ var h = normalizeHex(primary500);
32
+ return "".concat(h, "47");
33
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var buildBrandTokens_1 = require("./buildBrandTokens");
4
+ describe("normalizeHex", function () {
5
+ it("adds hash and lowercases", function () {
6
+ expect((0, buildBrandTokens_1.normalizeHex)("9A4FE5")).toBe("#9a4fe5");
7
+ expect((0, buildBrandTokens_1.normalizeHex)("#2CAA3D")).toBe("#2caa3d");
8
+ });
9
+ it("rejects invalid hex", function () {
10
+ expect(function () { return (0, buildBrandTokens_1.normalizeHex)("gggggg"); }).toThrow(/Invalid hex/);
11
+ expect(function () { return (0, buildBrandTokens_1.normalizeHex)("#fff"); }).toThrow(/Invalid hex/);
12
+ });
13
+ });
14
+ describe("buildPrimaryOpacity", function () {
15
+ it("appends alpha steps to brand hex", function () {
16
+ expect((0, buildBrandTokens_1.buildPrimaryOpacity)("#2caa3d")).toEqual({
17
+ 4: "#2caa3d0a",
18
+ 8: "#2caa3d14",
19
+ 16: "#2caa3d29",
20
+ 24: "#2caa3d3d",
21
+ 32: "#2caa3d52",
22
+ 40: "#2caa3d66",
23
+ 48: "#2caa3d7a",
24
+ });
25
+ });
26
+ });
27
+ describe("buildPrimaryShadowTint", function () {
28
+ it("returns 8-digit hex with shadow alpha", function () {
29
+ expect((0, buildBrandTokens_1.buildPrimaryShadowTint)("#0088cc")).toBe("#0088cc47");
30
+ });
31
+ });
@@ -366,6 +366,8 @@ export type CustomThemeProps = {
366
366
  subtle: string;
367
367
  muted: string;
368
368
  neutral: string;
369
+ base: string;
370
+ tableHeader: string;
369
371
  };
370
372
  };
371
373
  fonts: ChakraTheme["fonts"] & {
package/dist/global.css CHANGED
@@ -1,21 +1,22 @@
1
1
  :root {
2
- --color-primary-50: #ecddfb;
3
- --color-primary-100: #d6b7f6;
4
- --color-primary-200: #be8ef0;
5
- --color-primary-300: #aa6ae9;
6
- --color-primary-400: #944cde;
7
- --color-primary-500: #9A4FE5;
8
- --color-primary-600: #8b48d8;
9
- --color-primary-700: #7a3ccc;
10
- --color-primary-800: #6933b2;
11
- --color-primary-900: #59299a;
12
-
13
- --color-primary-opacity-8: rgba(154, 82, 226, 0.08);
14
- --color-primary-opacity-16: rgba(154, 82, 226, 0.16);
15
- --color-primary-opacity-24: rgba(154, 82, 226, 0.24);
16
- --color-primary-opacity-28: rgba(154, 82, 226, 0.28);
17
- --color-primary-opacity-32: rgba(154, 82, 226, 0.32);
18
- --color-primary-opacity-40: rgba(154, 82, 226, 0.40);
2
+ /* Aligned with Theme/Default (lavender) primary ramp */
3
+ --color-primary-50: #f5edfc;
4
+ --color-primary-100: #e0c8f7;
5
+ --color-primary-200: #d1aef3;
6
+ --color-primary-300: #bb89ee;
7
+ --color-primary-400: #ae72ea;
8
+ --color-primary-500: #9a4fe5;
9
+ --color-primary-600: #8c48d0;
10
+ --color-primary-700: #6d38a3;
11
+ --color-primary-800: #55277e;
12
+ --color-primary-900: #412160;
13
+
14
+ --color-primary-opacity-8: rgba(154, 79, 229, 0.08);
15
+ --color-primary-opacity-16: rgba(154, 79, 229, 0.16);
16
+ --color-primary-opacity-24: rgba(154, 79, 229, 0.24);
17
+ --color-primary-opacity-28: rgba(154, 79, 229, 0.28);
18
+ --color-primary-opacity-32: rgba(154, 79, 229, 0.32);
19
+ --color-primary-opacity-40: rgba(154, 79, 229, 0.4);
19
20
 
20
21
  --color-success-50: #e9fdf1;
21
22
  --color-success-100: #c8f7d8;
@@ -223,3 +224,16 @@
223
224
  --color-success-500: #319795;
224
225
  --color-error-500: #d53f8c;
225
226
  }
227
+
228
+ /* Optional: align CSS variables with Chakra named themes when `data-theme` is set on a wrapper */
229
+ [data-theme="meadow"] {
230
+ --color-primary-500: #2caa3d;
231
+ }
232
+
233
+ [data-theme="radiant"] {
234
+ --color-primary-500: #fb8c00;
235
+ }
236
+
237
+ [data-theme="skyline"] {
238
+ --color-primary-500: #0088cc;
239
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "2.2.143",
3
+ "version": "2.2.145",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",