@pie-element/shared-theming 0.1.1-next.1 → 0.2.0-next.10

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.
@@ -6,6 +6,7 @@ export declare const PIE_COLOR_DEFAULTS: {
6
6
  readonly TEXT: "black";
7
7
  readonly DISABLED: "grey";
8
8
  readonly DISABLED_SECONDARY: "#ABABAB";
9
+ readonly DISABLED_TEXT: "#545454";
9
10
  readonly CORRECT: "#4CAF50";
10
11
  readonly CORRECT_SECONDARY: "#E8F5E9";
11
12
  readonly CORRECT_TERTIARY: "#0EA449";
@@ -27,6 +28,7 @@ export declare const PIE_COLOR_DEFAULTS: {
27
28
  readonly BACKGROUND_DARK: "#ECEDF1";
28
29
  readonly DROPDOWN_BACKGROUND: "#E0E1E6";
29
30
  readonly SECONDARY_BACKGROUND: "rgba(241,241,241,1)";
31
+ readonly SURFACE: "#E0E1E6";
30
32
  readonly BORDER: "#9A9A9A";
31
33
  readonly BORDER_LIGHT: "#D1D1D1";
32
34
  readonly BORDER_DARK: "#646464";
@@ -39,7 +41,7 @@ export declare const PIE_COLOR_DEFAULTS: {
39
41
  readonly FOCUS_UNCHECKED: "#E0E0E0";
40
42
  readonly FOCUS_UNCHECKED_BORDER: "#757575";
41
43
  readonly BLUE_GREY100: "#F3F5F7";
42
- readonly BLUE_GREY300: "#C0C3CF";
44
+ readonly BLUE_GREY300: "#81848F";
43
45
  readonly BLUE_GREY600: "#7E8494";
44
46
  readonly BLUE_GREY900: "#152452";
45
47
  readonly FADED_PRIMARY: "#DCDAFB";
@@ -84,6 +86,10 @@ export declare const DEFAULT_CSS_MAPPINGS: readonly [{
84
86
  readonly variableName: "--pie-dropdown-background";
85
87
  readonly themeKey: "dropdown-background";
86
88
  readonly fallback: "#E0E1E6";
89
+ }, {
90
+ readonly variableName: "--pie-surface";
91
+ readonly themeKey: "surface";
92
+ readonly fallback: "#E0E1E6";
87
93
  }, {
88
94
  readonly variableName: "--pie-primary";
89
95
  readonly themeKey: "primary";
@@ -164,6 +170,10 @@ export declare const DEFAULT_CSS_MAPPINGS: readonly [{
164
170
  readonly variableName: "--pie-disabled-secondary";
165
171
  readonly themeKey: "disabled-secondary";
166
172
  readonly fallback: "#ABABAB";
173
+ }, {
174
+ readonly variableName: "--pie-disabled-text";
175
+ readonly themeKey: "disabled-text";
176
+ readonly fallback: "#545454";
167
177
  }, {
168
178
  readonly variableName: "--pie-border";
169
179
  readonly themeKey: "border";
@@ -203,7 +213,7 @@ export declare const DEFAULT_CSS_MAPPINGS: readonly [{
203
213
  }, {
204
214
  readonly variableName: "--pie-blue-grey-300";
205
215
  readonly themeKey: "blue-grey-300";
206
- readonly fallback: "#C0C3CF";
216
+ readonly fallback: "#81848F";
207
217
  }, {
208
218
  readonly variableName: "--pie-blue-grey-600";
209
219
  readonly themeKey: "blue-grey-600";
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@ var e = {
3
3
  TEXT: "black",
4
4
  DISABLED: "grey",
5
5
  DISABLED_SECONDARY: "#ABABAB",
6
+ DISABLED_TEXT: "#545454",
6
7
  CORRECT: "#4CAF50",
7
8
  CORRECT_SECONDARY: "#E8F5E9",
8
9
  CORRECT_TERTIARY: "#0EA449",
@@ -24,6 +25,7 @@ var e = {
24
25
  BACKGROUND_DARK: "#ECEDF1",
25
26
  DROPDOWN_BACKGROUND: "#E0E1E6",
26
27
  SECONDARY_BACKGROUND: "rgba(241,241,241,1)",
28
+ SURFACE: "#E0E1E6",
27
29
  BORDER: "#9A9A9A",
28
30
  BORDER_LIGHT: "#D1D1D1",
29
31
  BORDER_DARK: "#646464",
@@ -36,7 +38,7 @@ var e = {
36
38
  FOCUS_UNCHECKED: "#E0E0E0",
37
39
  FOCUS_UNCHECKED_BORDER: "#757575",
38
40
  BLUE_GREY100: "#F3F5F7",
39
- BLUE_GREY300: "#C0C3CF",
41
+ BLUE_GREY300: "#81848F",
40
42
  BLUE_GREY600: "#7E8494",
41
43
  BLUE_GREY900: "#152452",
42
44
  FADED_PRIMARY: "#DCDAFB",
@@ -82,6 +84,11 @@ var e = {
82
84
  themeKey: "dropdown-background",
83
85
  fallback: e.DROPDOWN_BACKGROUND
84
86
  },
87
+ {
88
+ variableName: "--pie-surface",
89
+ themeKey: "surface",
90
+ fallback: e.SURFACE
91
+ },
85
92
  {
86
93
  variableName: "--pie-primary",
87
94
  themeKey: "primary",
@@ -182,6 +189,11 @@ var e = {
182
189
  themeKey: "disabled-secondary",
183
190
  fallback: e.DISABLED_SECONDARY
184
191
  },
192
+ {
193
+ variableName: "--pie-disabled-text",
194
+ themeKey: "disabled-text",
195
+ fallback: e.DISABLED_TEXT
196
+ },
185
197
  {
186
198
  variableName: "--pie-border",
187
199
  themeKey: "border",
@@ -357,9 +369,11 @@ var e = {
357
369
  "missing-icon": "#757575",
358
370
  disabled: "#9E9E9E",
359
371
  "disabled-secondary": "#E0E0E0",
372
+ "disabled-text": "#545454",
360
373
  "background-dark": "#F5F5F5",
361
374
  "secondary-background": "#FAFAFA",
362
375
  "dropdown-background": "#ffffff",
376
+ surface: "#E0E1E6",
363
377
  border: "#BDBDBD",
364
378
  "border-light": "#E0E0E0",
365
379
  "border-dark": "#757575",
@@ -369,8 +383,7 @@ var e = {
369
383
  "focus-unchecked": "#E0E0E0",
370
384
  "focus-unchecked-border": "#757575",
371
385
  "blue-grey-100": "#F3F5F7",
372
- "blue-grey-300": "#C0C3CF",
373
- "blue-grey-600": "#7E8494",
386
+ "blue-grey-300": "#9094A0",
374
387
  "blue-grey-900": "#152452",
375
388
  black: "#000000",
376
389
  white: "#ffffff",
@@ -412,9 +425,11 @@ var e = {
412
425
  "missing-icon": "#9E9E9E",
413
426
  disabled: "#757575",
414
427
  "disabled-secondary": "#424242",
428
+ "disabled-text": "#A0AEC0",
415
429
  "background-dark": "#0f1419",
416
430
  "secondary-background": "#2d3748",
417
431
  "dropdown-background": "#2d3748",
432
+ surface: "#2d3748",
418
433
  border: "#616161",
419
434
  "border-light": "#424242",
420
435
  "border-dark": "#9E9E9E",
@@ -424,7 +439,7 @@ var e = {
424
439
  "focus-unchecked": "#424242",
425
440
  "focus-unchecked-border": "#9E9E9E",
426
441
  "blue-grey-100": "#37474F",
427
- "blue-grey-300": "#546E7A",
442
+ "blue-grey-300": "#526B77",
428
443
  "blue-grey-600": "#78909C",
429
444
  "blue-grey-900": "#ECEFF1",
430
445
  black: "#000000",
package/dist/types.d.ts CHANGED
@@ -18,6 +18,7 @@ export interface PieThemeExtended extends PieTheme {
18
18
  'base-300'?: string;
19
19
  disabled?: string;
20
20
  'disabled-secondary'?: string;
21
+ 'disabled-text'?: string;
21
22
  'correct-secondary'?: string;
22
23
  'correct-tertiary'?: string;
23
24
  'correct-icon'?: string;
@@ -35,6 +36,7 @@ export interface PieThemeExtended extends PieTheme {
35
36
  'background-dark'?: string;
36
37
  'dropdown-background'?: string;
37
38
  'secondary-background'?: string;
39
+ surface?: string;
38
40
  border?: string;
39
41
  'border-light'?: string;
40
42
  'border-dark'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-element/shared-theming",
3
- "version": "0.1.1-next.1",
3
+ "version": "0.2.0-next.10",
4
4
  "description": "Core theming system for PIE elements",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,13 +21,7 @@
21
21
  "clean": "rm -rf dist"
22
22
  },
23
23
  "dependencies": {
24
- "@pie-element/shared-types": "0.1.0"
25
- },
26
- "devDependencies": {
27
- "@types/react": "^18.3.0",
28
- "typescript": "^5.9.3",
29
- "vite": "^8.0.1",
30
- "vitest": "^4.1.0"
24
+ "@pie-element/shared-types": "0.2.0-next.5"
31
25
  },
32
26
  "publishConfig": {
33
27
  "access": "public"
@@ -35,7 +29,7 @@
35
29
  "license": "MIT",
36
30
  "repository": {
37
31
  "type": "git",
38
- "url": "https://github.com/pie-framework/pie-elements-ng.git",
32
+ "url": "git+https://github.com/pie-framework/pie-elements-ng.git",
39
33
  "directory": "packages/shared/theming"
40
34
  },
41
35
  "homepage": "https://github.com/pie-framework/pie-elements-ng#readme",