@pie-element/shared-theming 0.1.1-next.2 → 0.2.0-next.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.
- package/dist/constants.d.ts +10 -0
- package/dist/index.js +16 -0
- package/dist/types.d.ts +2 -0
- package/package.json +1 -7
package/dist/constants.d.ts
CHANGED
|
@@ -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";
|
|
@@ -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";
|
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",
|
|
@@ -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",
|
|
@@ -412,9 +426,11 @@ var e = {
|
|
|
412
426
|
"missing-icon": "#9E9E9E",
|
|
413
427
|
disabled: "#757575",
|
|
414
428
|
"disabled-secondary": "#424242",
|
|
429
|
+
"disabled-text": "#A0AEC0",
|
|
415
430
|
"background-dark": "#0f1419",
|
|
416
431
|
"secondary-background": "#2d3748",
|
|
417
432
|
"dropdown-background": "#2d3748",
|
|
433
|
+
surface: "#2d3748",
|
|
418
434
|
border: "#616161",
|
|
419
435
|
"border-light": "#424242",
|
|
420
436
|
"border-dark": "#9E9E9E",
|
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.
|
|
3
|
+
"version": "0.2.0-next.4",
|
|
4
4
|
"description": "Core theming system for PIE elements",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,12 +23,6 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@pie-element/shared-types": "0.2.0-next.0"
|
|
25
25
|
},
|
|
26
|
-
"devDependencies": {
|
|
27
|
-
"@types/react": "^18.3.0",
|
|
28
|
-
"typescript": "^5.9.3",
|
|
29
|
-
"vite": "^8.1.5",
|
|
30
|
-
"vitest": "^4.1.11"
|
|
31
|
-
},
|
|
32
26
|
"publishConfig": {
|
|
33
27
|
"access": "public"
|
|
34
28
|
},
|