@mehdashti/tokens 0.1.1 → 0.2.1
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/LICENSE +21 -0
- package/README.md +1 -1
- package/dist/borders.d.ts +1 -0
- package/dist/borders.d.ts.map +1 -1
- package/dist/borders.js +1 -0
- package/dist/borders.js.map +1 -1
- package/dist/colors.d.ts +24 -10
- package/dist/colors.d.ts.map +1 -1
- package/dist/colors.js +34 -13
- package/dist/colors.js.map +1 -1
- package/dist/css/theme-dark.css +9 -4
- package/dist/css/theme-light.css +13 -8
- package/dist/css/theme.css +53 -12
- package/dist/density.d.ts +36 -0
- package/dist/density.d.ts.map +1 -0
- package/dist/density.js +48 -0
- package/dist/density.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/interactions.d.ts +111 -0
- package/dist/interactions.d.ts.map +1 -0
- package/dist/interactions.js +120 -0
- package/dist/interactions.js.map +1 -0
- package/package.json +6 -6
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mahdi Ashti
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
package/dist/borders.d.ts
CHANGED
package/dist/borders.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borders.d.ts","sourceRoot":"","sources":["../src/borders.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"borders.d.ts","sourceRoot":"","sources":["../src/borders.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAMX,eAAO,MAAM,WAAW;;;;;;CAMd,CAAC"}
|
package/dist/borders.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
// =============================================================================
|
|
9
9
|
export const borderRadius = {
|
|
10
10
|
none: "0",
|
|
11
|
+
xs: "0.1875rem", // 3px - Material Design 3 standard for interactive components
|
|
11
12
|
sm: "0.125rem", // 2px
|
|
12
13
|
base: "0.25rem", // 4px
|
|
13
14
|
md: "0.375rem", // 6px
|
package/dist/borders.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"borders.js","sourceRoot":"","sources":["../src/borders.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,gFAAgF;AAChF,gBAAgB;AAChB,gFAAgF;AAEhF,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,GAAG;IACT,EAAE,EAAE,UAAU,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-32,6 +32,18 @@ export declare const brandColors: {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
export declare const semanticColors: {
|
|
35
|
+
readonly neutral: {
|
|
36
|
+
readonly 50: "#eff6ff";
|
|
37
|
+
readonly 100: "#dbeafe";
|
|
38
|
+
readonly 200: "#bfdbfe";
|
|
39
|
+
readonly 300: "#93c5fd";
|
|
40
|
+
readonly 400: "#60a5fa";
|
|
41
|
+
readonly 500: "#3b82f6";
|
|
42
|
+
readonly 600: "#2563eb";
|
|
43
|
+
readonly 700: "#1d4ed8";
|
|
44
|
+
readonly 800: "#1e40af";
|
|
45
|
+
readonly 900: "#1e3a8a";
|
|
46
|
+
};
|
|
35
47
|
readonly success: {
|
|
36
48
|
readonly 50: "#f0fdf4";
|
|
37
49
|
readonly 100: "#dcfce7";
|
|
@@ -45,16 +57,16 @@ export declare const semanticColors: {
|
|
|
45
57
|
readonly 900: "#14532d";
|
|
46
58
|
};
|
|
47
59
|
readonly warning: {
|
|
48
|
-
readonly 50: "#
|
|
49
|
-
readonly 100: "#
|
|
50
|
-
readonly 200: "#
|
|
51
|
-
readonly 300: "#
|
|
52
|
-
readonly 400: "#
|
|
53
|
-
readonly 500: "#
|
|
54
|
-
readonly 600: "#
|
|
55
|
-
readonly 700: "#
|
|
56
|
-
readonly 800: "#
|
|
57
|
-
readonly 900: "#
|
|
60
|
+
readonly 50: "#fff7ed";
|
|
61
|
+
readonly 100: "#ffedd5";
|
|
62
|
+
readonly 200: "#fed7aa";
|
|
63
|
+
readonly 300: "#fdba74";
|
|
64
|
+
readonly 400: "#fb923c";
|
|
65
|
+
readonly 500: "#f97316";
|
|
66
|
+
readonly 600: "#ea580c";
|
|
67
|
+
readonly 700: "#c2410c";
|
|
68
|
+
readonly 800: "#9a3412";
|
|
69
|
+
readonly 900: "#7c2d12";
|
|
58
70
|
};
|
|
59
71
|
readonly error: {
|
|
60
72
|
readonly 50: "#fef2f2";
|
|
@@ -119,6 +131,8 @@ export interface ThemeColors {
|
|
|
119
131
|
destructiveForeground: string;
|
|
120
132
|
muted: string;
|
|
121
133
|
mutedForeground: string;
|
|
134
|
+
neutral: string;
|
|
135
|
+
neutralForeground: string;
|
|
122
136
|
success: string;
|
|
123
137
|
successForeground: string;
|
|
124
138
|
warning: string;
|
package/dist/colors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Bd,CAAC;AAMX,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Bd,CAAC;AAMX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEjB,CAAC;AAMX,eAAO,MAAM,aAAa;;;;;;;;;;;;CAYhB,CAAC;AAMX,MAAM,WAAW,WAAW;IAE1B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAG3B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAG3B,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IAGxB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAG5B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB,EAAE,MAAM,CAAC;IAG9B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IAGxB,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,UAAU,EAAE,WA2CxB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,WA2CvB,CAAC"}
|
package/dist/colors.js
CHANGED
|
@@ -38,6 +38,20 @@ export const brandColors = {
|
|
|
38
38
|
// Semantic Colors
|
|
39
39
|
// =============================================================================
|
|
40
40
|
export const semanticColors = {
|
|
41
|
+
// Neutral (Blue) - SAP Fiori Neutral state
|
|
42
|
+
neutral: {
|
|
43
|
+
50: "#eff6ff",
|
|
44
|
+
100: "#dbeafe",
|
|
45
|
+
200: "#bfdbfe",
|
|
46
|
+
300: "#93c5fd",
|
|
47
|
+
400: "#60a5fa",
|
|
48
|
+
500: "#3b82f6",
|
|
49
|
+
600: "#2563eb",
|
|
50
|
+
700: "#1d4ed8",
|
|
51
|
+
800: "#1e40af",
|
|
52
|
+
900: "#1e3a8a",
|
|
53
|
+
},
|
|
54
|
+
// Success (Green) - SAP Fiori Positive state
|
|
41
55
|
success: {
|
|
42
56
|
50: "#f0fdf4",
|
|
43
57
|
100: "#dcfce7",
|
|
@@ -50,18 +64,20 @@ export const semanticColors = {
|
|
|
50
64
|
800: "#166534",
|
|
51
65
|
900: "#14532d",
|
|
52
66
|
},
|
|
67
|
+
// Warning (Orange) - SAP Fiori Critical state
|
|
53
68
|
warning: {
|
|
54
|
-
50: "#
|
|
55
|
-
100: "#
|
|
56
|
-
200: "#
|
|
57
|
-
300: "#
|
|
58
|
-
400: "#
|
|
59
|
-
500: "#
|
|
60
|
-
600: "#
|
|
61
|
-
700: "#
|
|
62
|
-
800: "#
|
|
63
|
-
900: "#
|
|
69
|
+
50: "#fff7ed",
|
|
70
|
+
100: "#ffedd5",
|
|
71
|
+
200: "#fed7aa",
|
|
72
|
+
300: "#fdba74",
|
|
73
|
+
400: "#fb923c",
|
|
74
|
+
500: "#f97316",
|
|
75
|
+
600: "#ea580c",
|
|
76
|
+
700: "#c2410c",
|
|
77
|
+
800: "#9a3412",
|
|
78
|
+
900: "#7c2d12",
|
|
64
79
|
},
|
|
80
|
+
// Error/Destructive (Red) - SAP Fiori Negative state
|
|
65
81
|
error: {
|
|
66
82
|
50: "#fef2f2",
|
|
67
83
|
100: "#fee2e2",
|
|
@@ -74,6 +90,7 @@ export const semanticColors = {
|
|
|
74
90
|
800: "#991b1b",
|
|
75
91
|
900: "#7f1d1d",
|
|
76
92
|
},
|
|
93
|
+
// Info (Blue) - Additional informational state
|
|
77
94
|
info: {
|
|
78
95
|
50: "#eff6ff",
|
|
79
96
|
100: "#dbeafe",
|
|
@@ -128,10 +145,12 @@ export const lightTheme = {
|
|
|
128
145
|
destructiveForeground: "#ffffff",
|
|
129
146
|
muted: neutralColors[100],
|
|
130
147
|
mutedForeground: neutralColors[500],
|
|
148
|
+
neutral: semanticColors.neutral[600],
|
|
149
|
+
neutralForeground: "#ffffff",
|
|
131
150
|
success: semanticColors.success[600],
|
|
132
151
|
successForeground: "#ffffff",
|
|
133
|
-
warning: semanticColors.warning[
|
|
134
|
-
warningForeground:
|
|
152
|
+
warning: semanticColors.warning[600],
|
|
153
|
+
warningForeground: "#ffffff",
|
|
135
154
|
error: semanticColors.error[600],
|
|
136
155
|
errorForeground: "#ffffff",
|
|
137
156
|
info: semanticColors.info[600],
|
|
@@ -162,10 +181,12 @@ export const darkTheme = {
|
|
|
162
181
|
destructiveForeground: "#ffffff",
|
|
163
182
|
muted: neutralColors[800],
|
|
164
183
|
mutedForeground: neutralColors[400],
|
|
184
|
+
neutral: semanticColors.neutral[500],
|
|
185
|
+
neutralForeground: "#ffffff",
|
|
165
186
|
success: semanticColors.success[500],
|
|
166
187
|
successForeground: "#ffffff",
|
|
167
188
|
warning: semanticColors.warning[500],
|
|
168
|
-
warningForeground:
|
|
189
|
+
warningForeground: "#ffffff",
|
|
169
190
|
error: semanticColors.error[500],
|
|
170
191
|
errorForeground: "#ffffff",
|
|
171
192
|
info: semanticColors.info[500],
|
package/dist/colors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,gFAAgF;AAChF,eAAe;AACf,gFAAgF;AAEhF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;KACf;IACD,SAAS,EAAE;QACT,EAAE,EAAE,SAAS;QACb,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QAC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,CAAC,SAAS,CAAC,GAAG,CAAC;IACrC,cAAc,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC;IAC1C,eAAe,EAAE,WAAW,CAAC,SAAS,CAAC,GAAG,CAAC;IAC3C,mBAAmB,EAAE,WAAW,CAAC,SAAS,CAAC,EAAE,CAAC;IAE9C,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC;IAChC,WAAW,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC;IACrC,gBAAgB,EAAE,aAAa,CAAC,GAAG,CAAC;IAEpC,WAAW,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC;IACtC,gBAAgB,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC;IAC3C,qBAAqB,EAAE,SAAS;IAEhC,KAAK,EAAE,aAAa,CAAC,GAAG,CAAC;IACzB,eAAe,EAAE,aAAa,CAAC,GAAG,CAAC;IAEnC,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC;IACpC,iBAAiB,EAAE,SAAS;IAC5B,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC;IACpC,iBAAiB,EAAE,SAAS;IAC5B,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC;IACpC,iBAAiB,EAAE,SAAS;IAC5B,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC;IAChC,eAAe,EAAE,SAAS;IAC1B,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC;IAC9B,cAAc,EAAE,SAAS;CAC1B,CAAC"}
|
package/dist/css/theme-dark.css
CHANGED
|
@@ -40,17 +40,22 @@
|
|
|
40
40
|
--ring: 195 45% 38%;
|
|
41
41
|
|
|
42
42
|
/* Semantic colors - Dark */
|
|
43
|
-
--
|
|
43
|
+
--neutral: 213 93% 78%; /* #93C5FD - SAP Fiori Neutral state */
|
|
44
|
+
--neutral-foreground: 213 93% 78%;
|
|
45
|
+
--neutral-bg: 214 52% 24%; /* #1E3A5F */
|
|
46
|
+
--neutral-border: 224 76% 40%; /* #1E40AF */
|
|
47
|
+
|
|
48
|
+
--success: 156 72% 67%; /* #6EE7B7 - SAP Fiori Positive state */
|
|
44
49
|
--success-foreground: 156 72% 67%;
|
|
45
50
|
--success-bg: 166 91% 16%; /* #064E3B */
|
|
46
51
|
--success-border: 163 94% 20%; /* #065F46 */
|
|
47
52
|
|
|
48
|
-
--warning: 43 96% 65%; /* #FCD34D -
|
|
53
|
+
--warning: 43 96% 65%; /* #FCD34D - SAP Fiori Critical state */
|
|
49
54
|
--warning-foreground: 43 96% 65%;
|
|
50
55
|
--warning-bg: 22 92% 14%; /* #451A03 */
|
|
51
56
|
--warning-border: 26 79% 26%; /* #78350F */
|
|
52
57
|
|
|
53
|
-
--info: 213 93% 78%; /* #93C5FD
|
|
58
|
+
--info: 213 93% 78%; /* #93C5FD */
|
|
54
59
|
--info-foreground: 213 93% 78%;
|
|
55
60
|
--info-bg: 214 52% 24%; /* #1E3A5F */
|
|
56
61
|
--info-border: 224 76% 40%; /* #1E40AF */
|
|
@@ -58,7 +63,7 @@
|
|
|
58
63
|
--destructive-bg: 0 77% 15%; /* #450A0A */
|
|
59
64
|
--destructive-border: 0 63% 31%; /* #7F1D1D */
|
|
60
65
|
|
|
61
|
-
/* Error alias (same as destructive) */
|
|
66
|
+
/* Error alias (same as destructive) - SAP Fiori Negative state */
|
|
62
67
|
--error: 0 94% 82%; /* #FCA5A5 */
|
|
63
68
|
--error-bg: 0 77% 15%; /* #450A0A */
|
|
64
69
|
--error-border: 0 63% 31%; /* #7F1D1D */
|
package/dist/css/theme-light.css
CHANGED
|
@@ -42,25 +42,30 @@
|
|
|
42
42
|
--radius: 3px;
|
|
43
43
|
|
|
44
44
|
/* Semantic colors - Light */
|
|
45
|
-
--
|
|
45
|
+
--neutral: 224 76% 48%; /* #2563EB - SAP Fiori Neutral state */
|
|
46
|
+
--neutral-foreground: 0 0% 100%;
|
|
47
|
+
--neutral-bg: 214 95% 93%; /* #DBEAFE */
|
|
48
|
+
--neutral-border: 213 93% 78%; /* #93C5FD */
|
|
49
|
+
|
|
50
|
+
--success: 142 64% 24%; /* #166534 - SAP Fiori Positive state */
|
|
46
51
|
--success-foreground: 0 0% 100%;
|
|
47
52
|
--success-bg: 142 72% 94%; /* #DCFCE7 */
|
|
48
53
|
--success-border: 142 77% 73%; /* #86EFAC */
|
|
49
54
|
|
|
50
|
-
--warning: 26 83% 31%; /* #92400E -
|
|
51
|
-
--warning-foreground:
|
|
52
|
-
--warning-bg:
|
|
53
|
-
--warning-border:
|
|
55
|
+
--warning: 26 83% 31%; /* #92400E - SAP Fiori Critical state */
|
|
56
|
+
--warning-foreground: 0 0% 100%;
|
|
57
|
+
--warning-bg: 25 95% 90%; /* #FFEDD5 */
|
|
58
|
+
--warning-border: 25 95% 70%; /* #FDBA74 */
|
|
54
59
|
|
|
55
|
-
--info: 224 76% 40%; /* #1E40AF
|
|
56
|
-
--info-foreground:
|
|
60
|
+
--info: 224 76% 40%; /* #1E40AF */
|
|
61
|
+
--info-foreground: 0 0% 100%;
|
|
57
62
|
--info-bg: 214 95% 93%; /* #DBEAFE */
|
|
58
63
|
--info-border: 213 93% 78%; /* #93C5FD */
|
|
59
64
|
|
|
60
65
|
--destructive-bg: 0 93% 94%; /* #FEE2E2 */
|
|
61
66
|
--destructive-border: 0 94% 82%; /* #FCA5A5 */
|
|
62
67
|
|
|
63
|
-
/* Error alias (same as destructive) */
|
|
68
|
+
/* Error alias (same as destructive) - SAP Fiori Negative state */
|
|
64
69
|
--error: 0 74% 35%; /* #991B1B */
|
|
65
70
|
--error-bg: 0 93% 94%; /* #FEE2E2 */
|
|
66
71
|
--error-border: 0 94% 82%; /* #FCA5A5 */
|
package/dist/css/theme.css
CHANGED
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
/* Border Radius */
|
|
43
43
|
--radius-none: 0;
|
|
44
|
+
--radius-xs: 0.1875rem;
|
|
44
45
|
--radius-sm: 0.125rem;
|
|
45
46
|
--radius-base: 0.25rem;
|
|
46
47
|
--radius-md: 0.375rem;
|
|
@@ -70,6 +71,36 @@
|
|
|
70
71
|
--z-popover: 1500;
|
|
71
72
|
--z-tooltip: 1600;
|
|
72
73
|
--z-toast: 1700;
|
|
74
|
+
|
|
75
|
+
/* Density Modes - Default (Balanced) */
|
|
76
|
+
--density-height: 2.5rem;
|
|
77
|
+
--density-padding-x: 0.875rem;
|
|
78
|
+
--density-padding-y: 0.625rem;
|
|
79
|
+
--density-font-size: 0.9375rem;
|
|
80
|
+
--density-gap: 0.625rem;
|
|
81
|
+
--density-icon-size: 1.125rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Cozy Mode - Touch-friendly */
|
|
85
|
+
.density-cozy,
|
|
86
|
+
[data-density="cozy"] {
|
|
87
|
+
--density-height: 2.75rem;
|
|
88
|
+
--density-padding-x: 1rem;
|
|
89
|
+
--density-padding-y: 0.75rem;
|
|
90
|
+
--density-font-size: 1rem;
|
|
91
|
+
--density-gap: 0.75rem;
|
|
92
|
+
--density-icon-size: 1.25rem;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* Compact Mode - Desktop-optimized */
|
|
96
|
+
.density-compact,
|
|
97
|
+
[data-density="compact"] {
|
|
98
|
+
--density-height: 2rem;
|
|
99
|
+
--density-padding-x: 0.75rem;
|
|
100
|
+
--density-padding-y: 0.5rem;
|
|
101
|
+
--density-font-size: 0.875rem;
|
|
102
|
+
--density-gap: 0.5rem;
|
|
103
|
+
--density-icon-size: 1rem;
|
|
73
104
|
}
|
|
74
105
|
|
|
75
106
|
/**
|
|
@@ -116,25 +147,30 @@
|
|
|
116
147
|
--radius: 3px;
|
|
117
148
|
|
|
118
149
|
/* Semantic colors - Light */
|
|
119
|
-
--
|
|
150
|
+
--neutral: 224 76% 48%; /* #2563EB - SAP Fiori Neutral state */
|
|
151
|
+
--neutral-foreground: 0 0% 100%;
|
|
152
|
+
--neutral-bg: 214 95% 93%; /* #DBEAFE */
|
|
153
|
+
--neutral-border: 213 93% 78%; /* #93C5FD */
|
|
154
|
+
|
|
155
|
+
--success: 142 64% 24%; /* #166534 - SAP Fiori Positive state */
|
|
120
156
|
--success-foreground: 0 0% 100%;
|
|
121
157
|
--success-bg: 142 72% 94%; /* #DCFCE7 */
|
|
122
158
|
--success-border: 142 77% 73%; /* #86EFAC */
|
|
123
159
|
|
|
124
|
-
--warning: 26 83% 31%; /* #92400E -
|
|
125
|
-
--warning-foreground:
|
|
126
|
-
--warning-bg:
|
|
127
|
-
--warning-border:
|
|
160
|
+
--warning: 26 83% 31%; /* #92400E - SAP Fiori Critical state */
|
|
161
|
+
--warning-foreground: 0 0% 100%;
|
|
162
|
+
--warning-bg: 25 95% 90%; /* #FFEDD5 */
|
|
163
|
+
--warning-border: 25 95% 70%; /* #FDBA74 */
|
|
128
164
|
|
|
129
|
-
--info: 224 76% 40%; /* #1E40AF
|
|
130
|
-
--info-foreground:
|
|
165
|
+
--info: 224 76% 40%; /* #1E40AF */
|
|
166
|
+
--info-foreground: 0 0% 100%;
|
|
131
167
|
--info-bg: 214 95% 93%; /* #DBEAFE */
|
|
132
168
|
--info-border: 213 93% 78%; /* #93C5FD */
|
|
133
169
|
|
|
134
170
|
--destructive-bg: 0 93% 94%; /* #FEE2E2 */
|
|
135
171
|
--destructive-border: 0 94% 82%; /* #FCA5A5 */
|
|
136
172
|
|
|
137
|
-
/* Error alias (same as destructive) */
|
|
173
|
+
/* Error alias (same as destructive) - SAP Fiori Negative state */
|
|
138
174
|
--error: 0 74% 35%; /* #991B1B */
|
|
139
175
|
--error-bg: 0 93% 94%; /* #FEE2E2 */
|
|
140
176
|
--error-border: 0 94% 82%; /* #FCA5A5 */
|
|
@@ -196,17 +232,22 @@
|
|
|
196
232
|
--ring: 195 45% 38%;
|
|
197
233
|
|
|
198
234
|
/* Semantic colors - Dark */
|
|
199
|
-
--
|
|
235
|
+
--neutral: 213 93% 78%; /* #93C5FD - SAP Fiori Neutral state */
|
|
236
|
+
--neutral-foreground: 213 93% 78%;
|
|
237
|
+
--neutral-bg: 214 52% 24%; /* #1E3A5F */
|
|
238
|
+
--neutral-border: 224 76% 40%; /* #1E40AF */
|
|
239
|
+
|
|
240
|
+
--success: 156 72% 67%; /* #6EE7B7 - SAP Fiori Positive state */
|
|
200
241
|
--success-foreground: 156 72% 67%;
|
|
201
242
|
--success-bg: 166 91% 16%; /* #064E3B */
|
|
202
243
|
--success-border: 163 94% 20%; /* #065F46 */
|
|
203
244
|
|
|
204
|
-
--warning: 43 96% 65%; /* #FCD34D -
|
|
245
|
+
--warning: 43 96% 65%; /* #FCD34D - SAP Fiori Critical state */
|
|
205
246
|
--warning-foreground: 43 96% 65%;
|
|
206
247
|
--warning-bg: 22 92% 14%; /* #451A03 */
|
|
207
248
|
--warning-border: 26 79% 26%; /* #78350F */
|
|
208
249
|
|
|
209
|
-
--info: 213 93% 78%; /* #93C5FD
|
|
250
|
+
--info: 213 93% 78%; /* #93C5FD */
|
|
210
251
|
--info-foreground: 213 93% 78%;
|
|
211
252
|
--info-bg: 214 52% 24%; /* #1E3A5F */
|
|
212
253
|
--info-border: 224 76% 40%; /* #1E40AF */
|
|
@@ -214,7 +255,7 @@
|
|
|
214
255
|
--destructive-bg: 0 77% 15%; /* #450A0A */
|
|
215
256
|
--destructive-border: 0 63% 31%; /* #7F1D1D */
|
|
216
257
|
|
|
217
|
-
/* Error alias (same as destructive) */
|
|
258
|
+
/* Error alias (same as destructive) - SAP Fiori Negative state */
|
|
218
259
|
--error: 0 94% 82%; /* #FCA5A5 */
|
|
219
260
|
--error-bg: 0 77% 15%; /* #450A0A */
|
|
220
261
|
--error-border: 0 63% 31%; /* #7F1D1D */
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Density Mode Tokens
|
|
3
|
+
*
|
|
4
|
+
* Defines spacing and sizing for different density modes
|
|
5
|
+
* Aligned with SAP Fiori Cozy/Compact patterns
|
|
6
|
+
*/
|
|
7
|
+
export interface DensityConfig {
|
|
8
|
+
height: string;
|
|
9
|
+
paddingX: string;
|
|
10
|
+
paddingY: string;
|
|
11
|
+
fontSize: string;
|
|
12
|
+
gap: string;
|
|
13
|
+
iconSize: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Cozy mode - Touch-friendly sizing for mobile and tablet devices
|
|
17
|
+
* Minimum touch target: 44px (Apple HIG) / 48px (Material Design)
|
|
18
|
+
*/
|
|
19
|
+
export declare const cozyMode: DensityConfig;
|
|
20
|
+
/**
|
|
21
|
+
* Compact mode - Desktop-optimized for mouse and keyboard
|
|
22
|
+
* Smaller footprint for information density
|
|
23
|
+
*/
|
|
24
|
+
export declare const compactMode: DensityConfig;
|
|
25
|
+
/**
|
|
26
|
+
* Default mode - Balanced between cozy and compact
|
|
27
|
+
* Used when density is set to "inherit"
|
|
28
|
+
*/
|
|
29
|
+
export declare const defaultMode: DensityConfig;
|
|
30
|
+
export declare const density: {
|
|
31
|
+
readonly cozy: DensityConfig;
|
|
32
|
+
readonly compact: DensityConfig;
|
|
33
|
+
readonly default: DensityConfig;
|
|
34
|
+
};
|
|
35
|
+
export type DensityMode = keyof typeof density;
|
|
36
|
+
//# sourceMappingURL=density.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"density.d.ts","sourceRoot":"","sources":["../src/density.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,aAOb,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,aAOhB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,aAOhB,CAAC;AAEX,eAAO,MAAM,OAAO;;;;CAIV,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,OAAO,CAAC"}
|
package/dist/density.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Density Mode Tokens
|
|
3
|
+
*
|
|
4
|
+
* Defines spacing and sizing for different density modes
|
|
5
|
+
* Aligned with SAP Fiori Cozy/Compact patterns
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Cozy mode - Touch-friendly sizing for mobile and tablet devices
|
|
9
|
+
* Minimum touch target: 44px (Apple HIG) / 48px (Material Design)
|
|
10
|
+
*/
|
|
11
|
+
export const cozyMode = {
|
|
12
|
+
height: "2.75rem", // 44px
|
|
13
|
+
paddingX: "1rem", // 16px
|
|
14
|
+
paddingY: "0.75rem", // 12px
|
|
15
|
+
fontSize: "1rem", // 16px
|
|
16
|
+
gap: "0.75rem", // 12px
|
|
17
|
+
iconSize: "1.25rem", // 20px
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Compact mode - Desktop-optimized for mouse and keyboard
|
|
21
|
+
* Smaller footprint for information density
|
|
22
|
+
*/
|
|
23
|
+
export const compactMode = {
|
|
24
|
+
height: "2rem", // 32px
|
|
25
|
+
paddingX: "0.75rem", // 12px
|
|
26
|
+
paddingY: "0.5rem", // 8px
|
|
27
|
+
fontSize: "0.875rem", // 14px
|
|
28
|
+
gap: "0.5rem", // 8px
|
|
29
|
+
iconSize: "1rem", // 16px
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Default mode - Balanced between cozy and compact
|
|
33
|
+
* Used when density is set to "inherit"
|
|
34
|
+
*/
|
|
35
|
+
export const defaultMode = {
|
|
36
|
+
height: "2.5rem", // 40px
|
|
37
|
+
paddingX: "0.875rem", // 14px
|
|
38
|
+
paddingY: "0.625rem", // 10px
|
|
39
|
+
fontSize: "0.9375rem", // 15px
|
|
40
|
+
gap: "0.625rem", // 10px
|
|
41
|
+
iconSize: "1.125rem", // 18px
|
|
42
|
+
};
|
|
43
|
+
export const density = {
|
|
44
|
+
cozy: cozyMode,
|
|
45
|
+
compact: compactMode,
|
|
46
|
+
default: defaultMode,
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=density.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"density.js","sourceRoot":"","sources":["../src/density.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAWH;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAkB;IACrC,MAAM,EAAE,SAAS,EAAE,OAAO;IAC1B,QAAQ,EAAE,MAAM,EAAE,OAAO;IACzB,QAAQ,EAAE,SAAS,EAAE,OAAO;IAC5B,QAAQ,EAAE,MAAM,EAAE,OAAO;IACzB,GAAG,EAAE,SAAS,EAAE,OAAO;IACvB,QAAQ,EAAE,SAAS,EAAE,OAAO;CACpB,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB;IACxC,MAAM,EAAE,MAAM,EAAE,OAAO;IACvB,QAAQ,EAAE,SAAS,EAAE,OAAO;IAC5B,QAAQ,EAAE,QAAQ,EAAE,MAAM;IAC1B,QAAQ,EAAE,UAAU,EAAE,OAAO;IAC7B,GAAG,EAAE,QAAQ,EAAE,MAAM;IACrB,QAAQ,EAAE,MAAM,EAAE,OAAO;CACjB,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB;IACxC,MAAM,EAAE,QAAQ,EAAE,OAAO;IACzB,QAAQ,EAAE,UAAU,EAAE,OAAO;IAC7B,QAAQ,EAAE,UAAU,EAAE,OAAO;IAC7B,QAAQ,EAAE,WAAW,EAAE,OAAO;IAC9B,GAAG,EAAE,UAAU,EAAE,OAAO;IACxB,QAAQ,EAAE,UAAU,EAAE,OAAO;CACrB,CAAC;AAEX,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,WAAW;IACpB,OAAO,EAAE,WAAW;CACZ,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* - Border radius
|
|
9
9
|
* - Shadows
|
|
10
10
|
* - Z-index layers
|
|
11
|
+
* - Density modes (cozy/compact)
|
|
12
|
+
* - Interaction states (Ghost, Outlined, Underline variants)
|
|
11
13
|
*/
|
|
12
14
|
export * from "./colors.js";
|
|
13
15
|
export * from "./spacing.js";
|
|
@@ -16,4 +18,6 @@ export * from "./borders.js";
|
|
|
16
18
|
export * from "./shadows.js";
|
|
17
19
|
export * from "./zIndex.js";
|
|
18
20
|
export * from "./breakpoints.js";
|
|
21
|
+
export * from "./density.js";
|
|
22
|
+
export * from "./interactions.js";
|
|
19
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* - Border radius
|
|
9
9
|
* - Shadows
|
|
10
10
|
* - Z-index layers
|
|
11
|
+
* - Density modes (cozy/compact)
|
|
12
|
+
* - Interaction states (Ghost, Outlined, Underline variants)
|
|
11
13
|
*/
|
|
12
14
|
export * from "./colors.js";
|
|
13
15
|
export * from "./spacing.js";
|
|
@@ -16,4 +18,6 @@ export * from "./borders.js";
|
|
|
16
18
|
export * from "./shadows.js";
|
|
17
19
|
export * from "./zIndex.js";
|
|
18
20
|
export * from "./breakpoints.js";
|
|
21
|
+
export * from "./density.js";
|
|
22
|
+
export * from "./interactions.js";
|
|
19
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interaction State Tokens
|
|
3
|
+
*
|
|
4
|
+
* Defines interaction patterns for components following enterprise UI standards:
|
|
5
|
+
* - Ghost variant (IFS Cloud style): No borders, background on hover
|
|
6
|
+
* - Outlined variant (SAP Fiori style): With borders, background + border on hover
|
|
7
|
+
* - Underline variant (Navigation style): Bottom border on hover
|
|
8
|
+
*/
|
|
9
|
+
export declare const interactionOpacity: {
|
|
10
|
+
readonly hover: "0.05";
|
|
11
|
+
readonly hoverStrong: "0.10";
|
|
12
|
+
readonly active: "0.15";
|
|
13
|
+
readonly focus: "0.08";
|
|
14
|
+
readonly disabled: "0.40";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Ghost Variant Pattern (IFS Cloud Style)
|
|
18
|
+
* - No borders
|
|
19
|
+
* - Transparent background
|
|
20
|
+
* - Background color on hover (5-10% opacity)
|
|
21
|
+
* - Border radius: 3px (Material Design 3 standard)
|
|
22
|
+
*/
|
|
23
|
+
export declare const ghostVariant: {
|
|
24
|
+
readonly base: {
|
|
25
|
+
readonly border: "none";
|
|
26
|
+
readonly borderWidth: "0";
|
|
27
|
+
readonly background: "transparent";
|
|
28
|
+
readonly borderRadius: "0.1875rem";
|
|
29
|
+
};
|
|
30
|
+
readonly hover: {
|
|
31
|
+
readonly background: "hsl(var(--accent) / 0.5)";
|
|
32
|
+
};
|
|
33
|
+
readonly focus: {
|
|
34
|
+
readonly background: "hsl(var(--accent) / 0.5)";
|
|
35
|
+
readonly outline: "2px solid hsl(var(--ring))";
|
|
36
|
+
readonly outlineOffset: "2px";
|
|
37
|
+
};
|
|
38
|
+
readonly active: {
|
|
39
|
+
readonly background: "hsl(var(--accent) / 0.5)";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Outlined Variant Pattern (SAP Fiori Style)
|
|
44
|
+
* - With borders
|
|
45
|
+
* - Background + border color change on hover
|
|
46
|
+
* - Border radius: 3px
|
|
47
|
+
*/
|
|
48
|
+
export declare const outlinedVariant: {
|
|
49
|
+
readonly base: {
|
|
50
|
+
readonly border: "1px solid hsl(var(--input))";
|
|
51
|
+
readonly background: "transparent";
|
|
52
|
+
readonly borderRadius: "0.1875rem";
|
|
53
|
+
};
|
|
54
|
+
readonly hover: {
|
|
55
|
+
readonly background: "hsl(var(--accent) / 0.5)";
|
|
56
|
+
readonly borderColor: "hsl(var(--primary) / 0.5)";
|
|
57
|
+
};
|
|
58
|
+
readonly focus: {
|
|
59
|
+
readonly background: "hsl(var(--accent) / 0.5)";
|
|
60
|
+
readonly borderColor: "hsl(var(--ring))";
|
|
61
|
+
readonly outline: "2px solid hsl(var(--ring))";
|
|
62
|
+
readonly outlineOffset: "2px";
|
|
63
|
+
};
|
|
64
|
+
readonly active: {
|
|
65
|
+
readonly background: "hsl(var(--accent))";
|
|
66
|
+
readonly borderColor: "hsl(var(--primary))";
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Underline Variant Pattern (Navigation Style)
|
|
71
|
+
* - No top/side borders
|
|
72
|
+
* - Bottom border appears on hover
|
|
73
|
+
* - No border radius (sharp corners for navigation)
|
|
74
|
+
*/
|
|
75
|
+
export declare const underlineVariant: {
|
|
76
|
+
readonly base: {
|
|
77
|
+
readonly border: "none";
|
|
78
|
+
readonly borderBottom: "2px solid transparent";
|
|
79
|
+
readonly background: "transparent";
|
|
80
|
+
readonly borderRadius: "0";
|
|
81
|
+
};
|
|
82
|
+
readonly hover: {
|
|
83
|
+
readonly borderBottomColor: "hsl(var(--primary) / 0.5)";
|
|
84
|
+
};
|
|
85
|
+
readonly focus: {
|
|
86
|
+
readonly borderBottomColor: "hsl(var(--primary))";
|
|
87
|
+
readonly outline: "2px solid hsl(var(--ring))";
|
|
88
|
+
readonly outlineOffset: "2px";
|
|
89
|
+
};
|
|
90
|
+
readonly active: {
|
|
91
|
+
readonly borderBottomColor: "hsl(var(--primary))";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Standard border radius for interactive components
|
|
96
|
+
* Following Material Design 3: 3px for buttons, inputs, cards, filters, tabs
|
|
97
|
+
*/
|
|
98
|
+
export declare const interactiveBorderRadius = "0.1875rem";
|
|
99
|
+
/**
|
|
100
|
+
* Hover background opacity for ghost-style components
|
|
101
|
+
*/
|
|
102
|
+
export declare const hoverBackgroundOpacity = "0.5";
|
|
103
|
+
/**
|
|
104
|
+
* Focus ring configuration
|
|
105
|
+
*/
|
|
106
|
+
export declare const focusRing: {
|
|
107
|
+
readonly width: "2px";
|
|
108
|
+
readonly color: "hsl(var(--ring))";
|
|
109
|
+
readonly offset: "2px";
|
|
110
|
+
};
|
|
111
|
+
//# sourceMappingURL=interactions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactions.d.ts","sourceRoot":"","sources":["../src/interactions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,eAAO,MAAM,kBAAkB;;;;;;CAMrB,CAAC;AAMX;;;;;;GAMG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;CAkBf,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;CAoBlB,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;CAkBnB,CAAC;AAMX;;;GAGG;AACH,eAAO,MAAM,uBAAuB,cAAc,CAAC;AAEnD;;GAEG;AACH,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,SAAS;;;;CAIZ,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interaction State Tokens
|
|
3
|
+
*
|
|
4
|
+
* Defines interaction patterns for components following enterprise UI standards:
|
|
5
|
+
* - Ghost variant (IFS Cloud style): No borders, background on hover
|
|
6
|
+
* - Outlined variant (SAP Fiori style): With borders, background + border on hover
|
|
7
|
+
* - Underline variant (Navigation style): Bottom border on hover
|
|
8
|
+
*/
|
|
9
|
+
// =============================================================================
|
|
10
|
+
// Opacity Levels for Interaction States
|
|
11
|
+
// =============================================================================
|
|
12
|
+
export const interactionOpacity = {
|
|
13
|
+
hover: "0.05", // 5% for ghost variant hover
|
|
14
|
+
hoverStrong: "0.10", // 10% for stronger hover states
|
|
15
|
+
active: "0.15", // 15% for active/pressed states
|
|
16
|
+
focus: "0.08", // 8% for focus states
|
|
17
|
+
disabled: "0.40", // 40% for disabled states
|
|
18
|
+
};
|
|
19
|
+
// =============================================================================
|
|
20
|
+
// Variant Patterns
|
|
21
|
+
// =============================================================================
|
|
22
|
+
/**
|
|
23
|
+
* Ghost Variant Pattern (IFS Cloud Style)
|
|
24
|
+
* - No borders
|
|
25
|
+
* - Transparent background
|
|
26
|
+
* - Background color on hover (5-10% opacity)
|
|
27
|
+
* - Border radius: 3px (Material Design 3 standard)
|
|
28
|
+
*/
|
|
29
|
+
export const ghostVariant = {
|
|
30
|
+
base: {
|
|
31
|
+
border: "none",
|
|
32
|
+
borderWidth: "0",
|
|
33
|
+
background: "transparent",
|
|
34
|
+
borderRadius: "0.1875rem", // 3px
|
|
35
|
+
},
|
|
36
|
+
hover: {
|
|
37
|
+
background: "hsl(var(--accent) / 0.5)", // 50% opacity of accent color
|
|
38
|
+
},
|
|
39
|
+
focus: {
|
|
40
|
+
background: "hsl(var(--accent) / 0.5)",
|
|
41
|
+
outline: "2px solid hsl(var(--ring))",
|
|
42
|
+
outlineOffset: "2px",
|
|
43
|
+
},
|
|
44
|
+
active: {
|
|
45
|
+
background: "hsl(var(--accent) / 0.5)",
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Outlined Variant Pattern (SAP Fiori Style)
|
|
50
|
+
* - With borders
|
|
51
|
+
* - Background + border color change on hover
|
|
52
|
+
* - Border radius: 3px
|
|
53
|
+
*/
|
|
54
|
+
export const outlinedVariant = {
|
|
55
|
+
base: {
|
|
56
|
+
border: "1px solid hsl(var(--input))",
|
|
57
|
+
background: "transparent",
|
|
58
|
+
borderRadius: "0.1875rem", // 3px
|
|
59
|
+
},
|
|
60
|
+
hover: {
|
|
61
|
+
background: "hsl(var(--accent) / 0.5)",
|
|
62
|
+
borderColor: "hsl(var(--primary) / 0.5)",
|
|
63
|
+
},
|
|
64
|
+
focus: {
|
|
65
|
+
background: "hsl(var(--accent) / 0.5)",
|
|
66
|
+
borderColor: "hsl(var(--ring))",
|
|
67
|
+
outline: "2px solid hsl(var(--ring))",
|
|
68
|
+
outlineOffset: "2px",
|
|
69
|
+
},
|
|
70
|
+
active: {
|
|
71
|
+
background: "hsl(var(--accent))",
|
|
72
|
+
borderColor: "hsl(var(--primary))",
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Underline Variant Pattern (Navigation Style)
|
|
77
|
+
* - No top/side borders
|
|
78
|
+
* - Bottom border appears on hover
|
|
79
|
+
* - No border radius (sharp corners for navigation)
|
|
80
|
+
*/
|
|
81
|
+
export const underlineVariant = {
|
|
82
|
+
base: {
|
|
83
|
+
border: "none",
|
|
84
|
+
borderBottom: "2px solid transparent",
|
|
85
|
+
background: "transparent",
|
|
86
|
+
borderRadius: "0",
|
|
87
|
+
},
|
|
88
|
+
hover: {
|
|
89
|
+
borderBottomColor: "hsl(var(--primary) / 0.5)",
|
|
90
|
+
},
|
|
91
|
+
focus: {
|
|
92
|
+
borderBottomColor: "hsl(var(--primary))",
|
|
93
|
+
outline: "2px solid hsl(var(--ring))",
|
|
94
|
+
outlineOffset: "2px",
|
|
95
|
+
},
|
|
96
|
+
active: {
|
|
97
|
+
borderBottomColor: "hsl(var(--primary))",
|
|
98
|
+
},
|
|
99
|
+
};
|
|
100
|
+
// =============================================================================
|
|
101
|
+
// Semantic Interaction Tokens
|
|
102
|
+
// =============================================================================
|
|
103
|
+
/**
|
|
104
|
+
* Standard border radius for interactive components
|
|
105
|
+
* Following Material Design 3: 3px for buttons, inputs, cards, filters, tabs
|
|
106
|
+
*/
|
|
107
|
+
export const interactiveBorderRadius = "0.1875rem"; // 3px
|
|
108
|
+
/**
|
|
109
|
+
* Hover background opacity for ghost-style components
|
|
110
|
+
*/
|
|
111
|
+
export const hoverBackgroundOpacity = "0.5"; // 50% of accent color
|
|
112
|
+
/**
|
|
113
|
+
* Focus ring configuration
|
|
114
|
+
*/
|
|
115
|
+
export const focusRing = {
|
|
116
|
+
width: "2px",
|
|
117
|
+
color: "hsl(var(--ring))",
|
|
118
|
+
offset: "2px",
|
|
119
|
+
};
|
|
120
|
+
//# sourceMappingURL=interactions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactions.js","sourceRoot":"","sources":["../src/interactions.ts"],"names":[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G;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE;QACJ,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,uBAAuB;QACrC,UAAU,EAAE,aAAa;QACzB,YAAY,EAAE,GAAG;KAClB;IACD,KAAK,EAAE;QACL,iBAAiB,EAAE,2BAA2B;KAC/C;IACD,KAAK,EAAE;QACL,iBAAiB,EAAE,qBAAqB;QACxC,OAAO,EAAE,4BAA4B;QACrC,aAAa,EAAE,KAAK;KACrB;IACD,MAAM,EAAE;QACN,iBAAiB,EAAE,qBAAqB;KACzC;CACO,CAAC;AAEX,gFAAgF;AAChF,8BAA8B;AAC9B,gFAAgF;AAEhF;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,WAAW,CAAC,CAAC,MAAM;AAE1D;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,CAAC,CAAC,sBAAsB;AAEnE;;GAEG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,kBAAkB;IACzB,MAAM,EAAE,KAAK;CACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mehdashti/tokens",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Design tokens for Smart Platform - colors, spacing, typography, and themes",
|
|
5
5
|
"author": "mehdashti",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"files": [
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"typescript": "^5.7.2",
|
|
42
|
+
"@smart/typescript-config": "0.0.0"
|
|
43
|
+
},
|
|
40
44
|
"scripts": {
|
|
41
45
|
"build": "node scripts/build.js && tsc",
|
|
42
46
|
"dev": "node scripts/build.js --watch",
|
|
43
47
|
"clean": "rm -rf dist"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@smart/typescript-config": "workspace:*",
|
|
47
|
-
"typescript": "^5.7.2"
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
}
|