@abhir9/pd-design-system 0.1.0 → 0.1.2
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/index.cjs +147 -193
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +118 -118
- package/dist/index.css.map +1 -1
- package/dist/index.js +147 -193
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1069 -36
- package/package.json +11 -6
package/dist/index.js
CHANGED
|
@@ -120,7 +120,7 @@ function getAvailableIconNames() {
|
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
var buttonVariants = cva(
|
|
123
|
-
"inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--
|
|
123
|
+
"inline-flex items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--border-blue)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
124
124
|
{
|
|
125
125
|
variants: {
|
|
126
126
|
variant: {
|
|
@@ -147,105 +147,105 @@ var buttonVariants = cva(
|
|
|
147
147
|
{
|
|
148
148
|
variant: "primary",
|
|
149
149
|
intent: "primary",
|
|
150
|
-
class: "bg-[var(--
|
|
150
|
+
class: "bg-[var(--background-invert)] text-[var(--content-on-color)] hover:bg-[var(--background-invert-light)] active:bg-[var(--background-invert)] disabled:bg-[var(--background-secondary)] disabled:text-[var(--content-subtle)]"
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
variant: "primary",
|
|
154
154
|
intent: "success",
|
|
155
|
-
class: "bg-[var(--
|
|
155
|
+
class: "bg-[var(--background-green)] text-[var(--content-green)] hover:bg-[var(--background-green-on-hover)] active:bg-[var(--background-green)] border-[var(--border-green)]"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
variant: "primary",
|
|
159
159
|
intent: "warning",
|
|
160
|
-
class: "bg-[var(--
|
|
160
|
+
class: "bg-[var(--background-yellow)] text-[var(--content-yellow)] hover:bg-[var(--background-yellow-on-hover)] active:bg-[var(--background-yellow)] border-[var(--border-yellow)]"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
variant: "primary",
|
|
164
164
|
intent: "danger",
|
|
165
|
-
class: "bg-[var(--
|
|
165
|
+
class: "bg-[var(--background-red)] text-[var(--content-red)] hover:bg-[var(--background-red-on-hover)] hover:text-[var(--content-red-on-hover)] active:bg-[var(--background-red)] border-[var(--border-red)] disabled:bg-[var(--background-red)] disabled:text-[var(--content-subtle)]"
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
variant: "primary",
|
|
169
169
|
intent: "neutral",
|
|
170
|
-
class: "bg-[var(--
|
|
170
|
+
class: "bg-[var(--background-secondary)] text-[var(--content-primary)] hover:bg-[var(--background-low-on-hover)] active:bg-[var(--background-tertiary)] border-[var(--border-primary)]"
|
|
171
171
|
},
|
|
172
172
|
// Secondary variant - using new semantic tokens
|
|
173
173
|
{
|
|
174
174
|
variant: "secondary",
|
|
175
175
|
intent: "primary",
|
|
176
|
-
class: "bg-[var(--
|
|
176
|
+
class: "bg-[var(--background-secondary)] text-[var(--content-primary)] hover:bg-[var(--background-low-on-hover)] active:bg-[var(--background-secondary)] border border-[var(--border-secondary)] disabled:bg-[var(--background-tertiary)] disabled:text-[var(--content-subtle)] disabled:border-[var(--border-subtle)]"
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
variant: "secondary",
|
|
180
180
|
intent: "success",
|
|
181
|
-
class: "bg-[var(--
|
|
181
|
+
class: "bg-[var(--background-green)] text-[var(--content-green)] hover:bg-[var(--background-green-on-hover)] active:bg-[var(--background-green)] border-[var(--border-green-subtle)]"
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
variant: "secondary",
|
|
185
185
|
intent: "warning",
|
|
186
|
-
class: "bg-[var(--
|
|
186
|
+
class: "bg-[var(--background-yellow)] text-[var(--content-yellow)] hover:bg-[var(--background-yellow-on-hover)] active:bg-[var(--background-yellow)] border-[var(--border-yellow-subtle)]"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
variant: "secondary",
|
|
190
190
|
intent: "danger",
|
|
191
|
-
class: "bg-[var(--
|
|
191
|
+
class: "bg-[var(--background-red)] text-[var(--content-red)] hover:bg-[var(--background-red-on-hover)] hover:text-[var(--content-red-on-hover)] active:bg-[var(--background-red)] border border-[var(--border-red)]"
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
variant: "secondary",
|
|
195
195
|
intent: "neutral",
|
|
196
|
-
class: "bg-[var(--
|
|
196
|
+
class: "bg-[var(--background-low)] text-[var(--content-primary)] hover:bg-[var(--background-low-on-hover)] active:bg-[var(--background-tertiary)] border-[var(--border-subtle)]"
|
|
197
197
|
},
|
|
198
198
|
// Ghost variant - using new semantic tokens
|
|
199
199
|
{
|
|
200
200
|
variant: "ghost",
|
|
201
201
|
intent: "primary",
|
|
202
|
-
class: "text-[var(--
|
|
202
|
+
class: "text-[var(--content-primary)] hover:bg-[var(--background-low)] hover:text-[var(--content-primary)] disabled:text-[var(--content-subtle)]"
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
variant: "ghost",
|
|
206
206
|
intent: "success",
|
|
207
|
-
class: "hover:bg-[var(--
|
|
207
|
+
class: "hover:bg-[var(--background-green)] text-[var(--content-green)] hover:text-[var(--content-green-on-hover)]"
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
variant: "ghost",
|
|
211
211
|
intent: "warning",
|
|
212
|
-
class: "hover:bg-[var(--
|
|
212
|
+
class: "hover:bg-[var(--background-yellow)] text-[var(--content-yellow)] hover:text-[var(--content-yellow-on-hover)]"
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
variant: "ghost",
|
|
216
216
|
intent: "danger",
|
|
217
|
-
class: "text-[var(--
|
|
217
|
+
class: "text-[var(--content-red)] hover:bg-[var(--background-red)] hover:text-[var(--content-red-on-hover)]"
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
variant: "ghost",
|
|
221
221
|
intent: "neutral",
|
|
222
|
-
class: "hover:bg-[var(--
|
|
222
|
+
class: "hover:bg-[var(--background-low)] text-[var(--content-secondary)] hover:text-[var(--content-primary)]"
|
|
223
223
|
},
|
|
224
224
|
// Outline variant - using new semantic tokens
|
|
225
225
|
{
|
|
226
226
|
variant: "outline",
|
|
227
227
|
intent: "primary",
|
|
228
|
-
class: "border-[var(--
|
|
228
|
+
class: "border-[var(--border-primary)] text-[var(--content-primary)] hover:bg-[var(--background-low)] hover:border-[var(--border-secondary)]"
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
variant: "outline",
|
|
232
232
|
intent: "success",
|
|
233
|
-
class: "border-[var(--
|
|
233
|
+
class: "border-[var(--border-green)] text-[var(--content-green)] hover:bg-[var(--background-green)] hover:border-[var(--border-green-on-hover)]"
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
236
|
variant: "outline",
|
|
237
237
|
intent: "warning",
|
|
238
|
-
class: "border-[var(--
|
|
238
|
+
class: "border-[var(--border-yellow)] text-[var(--content-yellow)] hover:bg-[var(--background-yellow)] hover:border-[var(--border-yellow-on-hover)]"
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
variant: "outline",
|
|
242
242
|
intent: "danger",
|
|
243
|
-
class: "border border-[var(--
|
|
243
|
+
class: "border border-[var(--border-red)] text-[var(--content-red)] hover:bg-[var(--background-red)] hover:text-[var(--content-red-on-hover)] hover:border-[var(--border-red-on-hover)]"
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
variant: "outline",
|
|
247
247
|
intent: "neutral",
|
|
248
|
-
class: "border-[var(--
|
|
248
|
+
class: "border-[var(--border-primary)] text-[var(--content-primary)] hover:bg-[var(--background-low)] hover:border-[var(--border-secondary)]"
|
|
249
249
|
}
|
|
250
250
|
],
|
|
251
251
|
defaultVariants: {
|
|
@@ -333,10 +333,10 @@ function renderButtonContent({
|
|
|
333
333
|
Loader2,
|
|
334
334
|
{
|
|
335
335
|
"aria-hidden": "true",
|
|
336
|
-
className: `${spinnerSizeClass} ${iconSpacing} animate-spin text-[var(--
|
|
336
|
+
className: `${spinnerSizeClass} ${iconSpacing} animate-spin text-[var(--content-secondary)]`
|
|
337
337
|
}
|
|
338
338
|
),
|
|
339
|
-
/* @__PURE__ */ jsx("span", { className: "text-[var(--
|
|
339
|
+
/* @__PURE__ */ jsx("span", { className: "text-[var(--content-secondary)]", children: loadingText || children }),
|
|
340
340
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: loadingText ? `Loading: ${loadingText}` : "Loading" })
|
|
341
341
|
] });
|
|
342
342
|
}
|
|
@@ -1005,122 +1005,125 @@ function createTheme(name, mode) {
|
|
|
1005
1005
|
const border = isLight ? borderTokens.light : borderTokens.dark;
|
|
1006
1006
|
const content = isLight ? contentTokens.light : contentTokens.dark;
|
|
1007
1007
|
const background = isLight ? backgroundTokens.light : backgroundTokens.dark;
|
|
1008
|
+
const toKebabCase = (str) => {
|
|
1009
|
+
return str.replace(/([A-Z])/g, "-$1").toLowerCase();
|
|
1010
|
+
};
|
|
1008
1011
|
const cssVariables = {
|
|
1009
1012
|
// Base colors
|
|
1010
|
-
"--
|
|
1011
|
-
"--
|
|
1013
|
+
"--color-white": colors.white,
|
|
1014
|
+
"--color-black": colors.black,
|
|
1012
1015
|
// Intent colors
|
|
1013
|
-
"--
|
|
1014
|
-
"--
|
|
1015
|
-
"--
|
|
1016
|
-
"--
|
|
1017
|
-
"--
|
|
1018
|
-
"--
|
|
1019
|
-
"--
|
|
1020
|
-
"--
|
|
1021
|
-
"--
|
|
1022
|
-
"--
|
|
1023
|
-
"--
|
|
1024
|
-
"--
|
|
1025
|
-
"--
|
|
1026
|
-
"--
|
|
1027
|
-
"--
|
|
1028
|
-
"--
|
|
1029
|
-
"--
|
|
1030
|
-
"--
|
|
1031
|
-
"--
|
|
1032
|
-
"--
|
|
1033
|
-
"--
|
|
1034
|
-
"--
|
|
1035
|
-
"--
|
|
1036
|
-
"--
|
|
1037
|
-
"--
|
|
1038
|
-
"--
|
|
1039
|
-
"--
|
|
1040
|
-
"--
|
|
1041
|
-
"--
|
|
1042
|
-
"--
|
|
1043
|
-
"--
|
|
1044
|
-
"--
|
|
1045
|
-
"--
|
|
1046
|
-
"--
|
|
1047
|
-
"--
|
|
1048
|
-
"--
|
|
1049
|
-
"--
|
|
1050
|
-
"--
|
|
1051
|
-
"--
|
|
1052
|
-
"--
|
|
1016
|
+
"--intent-primary": semantic.intent.primary.color,
|
|
1017
|
+
"--intent-primary-hover": semantic.intent.primary.colorHover,
|
|
1018
|
+
"--intent-primary-active": semantic.intent.primary.colorActive,
|
|
1019
|
+
"--intent-primary-bg": semantic.intent.primary.background,
|
|
1020
|
+
"--intent-primary-bg-hover": semantic.intent.primary.backgroundHover,
|
|
1021
|
+
"--intent-primary-bg-active": semantic.intent.primary.backgroundActive,
|
|
1022
|
+
"--intent-primary-border": semantic.intent.primary.border,
|
|
1023
|
+
"--intent-primary-text": semantic.intent.primary.text,
|
|
1024
|
+
"--intent-success": semantic.intent.success.color,
|
|
1025
|
+
"--intent-success-hover": semantic.intent.success.colorHover,
|
|
1026
|
+
"--intent-success-active": semantic.intent.success.colorActive,
|
|
1027
|
+
"--intent-success-bg": semantic.intent.success.background,
|
|
1028
|
+
"--intent-success-bg-hover": semantic.intent.success.backgroundHover,
|
|
1029
|
+
"--intent-success-bg-active": semantic.intent.success.backgroundActive,
|
|
1030
|
+
"--intent-success-border": semantic.intent.success.border,
|
|
1031
|
+
"--intent-success-text": semantic.intent.success.text,
|
|
1032
|
+
"--intent-warning": semantic.intent.warning.color,
|
|
1033
|
+
"--intent-warning-hover": semantic.intent.warning.colorHover,
|
|
1034
|
+
"--intent-warning-active": semantic.intent.warning.colorActive,
|
|
1035
|
+
"--intent-warning-bg": semantic.intent.warning.background,
|
|
1036
|
+
"--intent-warning-bg-hover": semantic.intent.warning.backgroundHover,
|
|
1037
|
+
"--intent-warning-bg-active": semantic.intent.warning.backgroundActive,
|
|
1038
|
+
"--intent-warning-border": semantic.intent.warning.border,
|
|
1039
|
+
"--intent-warning-text": semantic.intent.warning.text,
|
|
1040
|
+
"--intent-danger": semantic.intent.danger.color,
|
|
1041
|
+
"--intent-danger-hover": semantic.intent.danger.colorHover,
|
|
1042
|
+
"--intent-danger-active": semantic.intent.danger.colorActive,
|
|
1043
|
+
"--intent-danger-bg": semantic.intent.danger.background,
|
|
1044
|
+
"--intent-danger-bg-hover": semantic.intent.danger.backgroundHover,
|
|
1045
|
+
"--intent-danger-bg-active": semantic.intent.danger.backgroundActive,
|
|
1046
|
+
"--intent-danger-border": semantic.intent.danger.border,
|
|
1047
|
+
"--intent-danger-text": semantic.intent.danger.text,
|
|
1048
|
+
"--intent-neutral": semantic.intent.neutral.color,
|
|
1049
|
+
"--intent-neutral-hover": semantic.intent.neutral.colorHover,
|
|
1050
|
+
"--intent-neutral-active": semantic.intent.neutral.colorActive,
|
|
1051
|
+
"--intent-neutral-bg": semantic.intent.neutral.background,
|
|
1052
|
+
"--intent-neutral-bg-hover": semantic.intent.neutral.backgroundHover,
|
|
1053
|
+
"--intent-neutral-bg-active": semantic.intent.neutral.backgroundActive,
|
|
1054
|
+
"--intent-neutral-border": semantic.intent.neutral.border,
|
|
1055
|
+
"--intent-neutral-text": semantic.intent.neutral.text,
|
|
1053
1056
|
// Surface
|
|
1054
|
-
"--
|
|
1055
|
-
"--
|
|
1056
|
-
"--
|
|
1057
|
-
"--
|
|
1058
|
-
"--
|
|
1057
|
+
"--surface-base": semantic.surface.base.background,
|
|
1058
|
+
"--surface-base-border": semantic.surface.base.border,
|
|
1059
|
+
"--surface-elevated": semantic.surface.elevated.background,
|
|
1060
|
+
"--surface-elevated-border": semantic.surface.elevated.border,
|
|
1061
|
+
"--surface-overlay": semantic.surface.overlay.background,
|
|
1059
1062
|
// Text
|
|
1060
|
-
"--
|
|
1061
|
-
"--
|
|
1062
|
-
"--
|
|
1063
|
-
"--
|
|
1063
|
+
"--text-heading": semantic.text.heading,
|
|
1064
|
+
"--text-body": semantic.text.body,
|
|
1065
|
+
"--text-muted": semantic.text.muted,
|
|
1066
|
+
"--text-disabled": semantic.text.disabled,
|
|
1064
1067
|
// Spacing
|
|
1065
|
-
"--
|
|
1066
|
-
"--
|
|
1067
|
-
"--
|
|
1068
|
-
"--
|
|
1069
|
-
"--
|
|
1070
|
-
"--
|
|
1071
|
-
"--
|
|
1072
|
-
"--
|
|
1073
|
-
"--
|
|
1074
|
-
"--
|
|
1075
|
-
"--
|
|
1076
|
-
"--
|
|
1077
|
-
"--
|
|
1068
|
+
"--spacing-0": spacing[0],
|
|
1069
|
+
"--spacing-1": spacing[1],
|
|
1070
|
+
"--spacing-2": spacing[2],
|
|
1071
|
+
"--spacing-3": spacing[3],
|
|
1072
|
+
"--spacing-4": spacing[4],
|
|
1073
|
+
"--spacing-5": spacing[5],
|
|
1074
|
+
"--spacing-6": spacing[6],
|
|
1075
|
+
"--spacing-8": spacing[8],
|
|
1076
|
+
"--spacing-10": spacing[10],
|
|
1077
|
+
"--spacing-12": spacing[12],
|
|
1078
|
+
"--spacing-16": spacing[16],
|
|
1079
|
+
"--spacing-20": spacing[20],
|
|
1080
|
+
"--spacing-24": spacing[24],
|
|
1078
1081
|
// Radius
|
|
1079
|
-
"--
|
|
1080
|
-
"--
|
|
1081
|
-
"--
|
|
1082
|
-
"--
|
|
1083
|
-
"--
|
|
1084
|
-
"--
|
|
1085
|
-
"--
|
|
1086
|
-
"--
|
|
1087
|
-
"--
|
|
1082
|
+
"--radius-none": radius.none,
|
|
1083
|
+
"--radius-sm": radius.sm,
|
|
1084
|
+
"--radius-base": radius.base,
|
|
1085
|
+
"--radius-md": radius.md,
|
|
1086
|
+
"--radius-lg": radius.lg,
|
|
1087
|
+
"--radius-xl": radius.xl,
|
|
1088
|
+
"--radius-2xl": radius["2xl"],
|
|
1089
|
+
"--radius-3xl": radius["3xl"],
|
|
1090
|
+
"--radius-full": radius.full,
|
|
1088
1091
|
// Shadows
|
|
1089
|
-
"--
|
|
1090
|
-
"--
|
|
1091
|
-
"--
|
|
1092
|
-
"--
|
|
1093
|
-
"--
|
|
1094
|
-
"--
|
|
1095
|
-
"--
|
|
1096
|
-
"--
|
|
1092
|
+
"--shadow-sm": shadows.sm,
|
|
1093
|
+
"--shadow-base": shadows.base,
|
|
1094
|
+
"--shadow-md": shadows.md,
|
|
1095
|
+
"--shadow-lg": shadows.lg,
|
|
1096
|
+
"--shadow-xl": shadows.xl,
|
|
1097
|
+
"--shadow-2xl": shadows["2xl"],
|
|
1098
|
+
"--shadow-inner": shadows.inner,
|
|
1099
|
+
"--shadow-none": shadows.none,
|
|
1097
1100
|
// Z-index
|
|
1098
|
-
"--
|
|
1099
|
-
"--
|
|
1100
|
-
"--
|
|
1101
|
-
"--
|
|
1102
|
-
"--
|
|
1103
|
-
"--
|
|
1104
|
-
"--
|
|
1101
|
+
"--z-dropdown": String(zIndex.dropdown),
|
|
1102
|
+
"--z-sticky": String(zIndex.sticky),
|
|
1103
|
+
"--z-fixed": String(zIndex.fixed),
|
|
1104
|
+
"--z-modal-backdrop": String(zIndex.modalBackdrop),
|
|
1105
|
+
"--z-modal": String(zIndex.modal),
|
|
1106
|
+
"--z-popover": String(zIndex.popover),
|
|
1107
|
+
"--z-tooltip": String(zIndex.tooltip),
|
|
1105
1108
|
// Typography
|
|
1106
|
-
"--
|
|
1107
|
-
"--
|
|
1108
|
-
"--
|
|
1109
|
-
"--
|
|
1110
|
-
"--
|
|
1111
|
-
"--
|
|
1112
|
-
"--
|
|
1113
|
-
"--
|
|
1114
|
-
"--
|
|
1115
|
-
"--
|
|
1116
|
-
"--
|
|
1117
|
-
"--
|
|
1118
|
-
"--
|
|
1119
|
-
"--
|
|
1120
|
-
"--
|
|
1121
|
-
"--
|
|
1122
|
-
"--
|
|
1123
|
-
"--
|
|
1109
|
+
"--font-sans": typography.fontFamily.sans.join(", "),
|
|
1110
|
+
"--font-mono": typography.fontFamily.mono.join(", "),
|
|
1111
|
+
"--font-size-xs": typography.fontSize.xs,
|
|
1112
|
+
"--font-size-sm": typography.fontSize.sm,
|
|
1113
|
+
"--font-size-base": typography.fontSize.base,
|
|
1114
|
+
"--font-size-lg": typography.fontSize.lg,
|
|
1115
|
+
"--font-size-xl": typography.fontSize.xl,
|
|
1116
|
+
"--font-size-2xl": typography.fontSize["2xl"],
|
|
1117
|
+
"--font-size-3xl": typography.fontSize["3xl"],
|
|
1118
|
+
"--font-size-4xl": typography.fontSize["4xl"],
|
|
1119
|
+
"--font-size-5xl": typography.fontSize["5xl"],
|
|
1120
|
+
"--font-weight-normal": typography.fontWeight.normal,
|
|
1121
|
+
"--font-weight-medium": typography.fontWeight.medium,
|
|
1122
|
+
"--font-weight-semibold": typography.fontWeight.semibold,
|
|
1123
|
+
"--font-weight-bold": typography.fontWeight.bold,
|
|
1124
|
+
"--line-height-tight": typography.lineHeight.tight,
|
|
1125
|
+
"--line-height-normal": typography.lineHeight.normal,
|
|
1126
|
+
"--line-height-relaxed": typography.lineHeight.relaxed,
|
|
1124
1127
|
// shadcn/ui CSS variable mappings for compatibility
|
|
1125
1128
|
"--background": semantic.surface.base.background,
|
|
1126
1129
|
"--foreground": semantic.text.body,
|
|
@@ -1143,70 +1146,21 @@ function createTheme(name, mode) {
|
|
|
1143
1146
|
"--ring": semantic.intent.primary.color,
|
|
1144
1147
|
"--radius": radius.md,
|
|
1145
1148
|
// New semantic token CSS variables (border, content, background)
|
|
1146
|
-
// Border tokens
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
"--pd-border-yellow": border.yellow,
|
|
1162
|
-
"--pd-border-yellowSubtle": border.yellowSubtle,
|
|
1163
|
-
"--pd-border-yellowOnHover": border.yellowOnHover,
|
|
1164
|
-
"--pd-border-green": border.green,
|
|
1165
|
-
"--pd-border-greenSubtle": border.greenSubtle,
|
|
1166
|
-
"--pd-border-greenOnHover": border.greenOnHover,
|
|
1167
|
-
// Content tokens
|
|
1168
|
-
"--pd-content-primary": content.primary,
|
|
1169
|
-
"--pd-content-secondary": content.secondary,
|
|
1170
|
-
"--pd-content-subtle": content.subtle,
|
|
1171
|
-
"--pd-content-onColor": content.onColor,
|
|
1172
|
-
"--pd-content-alwaysWhite": content.alwaysWhite,
|
|
1173
|
-
"--pd-content-alwaysBlack": content.alwaysBlack,
|
|
1174
|
-
"--pd-content-onColorInverse": content.onColorInverse,
|
|
1175
|
-
"--pd-content-blue": content.blue,
|
|
1176
|
-
"--pd-content-blueDisabled": content.blueDisabled,
|
|
1177
|
-
"--pd-content-blueOnHover": content.blueOnHover,
|
|
1178
|
-
"--pd-content-green": content.green,
|
|
1179
|
-
"--pd-content-greenDisabled": content.greenDisabled,
|
|
1180
|
-
"--pd-content-greenOnHover": content.greenOnHover,
|
|
1181
|
-
"--pd-content-red": content.red,
|
|
1182
|
-
"--pd-content-redDisabled": content.redDisabled,
|
|
1183
|
-
"--pd-content-redOnHover": content.redOnHover,
|
|
1184
|
-
"--pd-content-orange": content.orange,
|
|
1185
|
-
"--pd-content-orangeDisabled": content.orangeDisabled,
|
|
1186
|
-
"--pd-content-orangeOnHover": content.orangeOnHover,
|
|
1187
|
-
"--pd-content-yellow": content.yellow,
|
|
1188
|
-
"--pd-content-yellowDisabled": content.yellowDisabled,
|
|
1189
|
-
"--pd-content-yellowOnHover": content.yellowOnHover,
|
|
1190
|
-
// Background tokens
|
|
1191
|
-
"--pd-background-base": background.base,
|
|
1192
|
-
"--pd-background-primary": background.primary,
|
|
1193
|
-
"--pd-background-primaryOnHover": background.primaryOnHover,
|
|
1194
|
-
"--pd-background-secondary": background.secondary,
|
|
1195
|
-
"--pd-background-tertiary": background.tertiary,
|
|
1196
|
-
"--pd-background-invert": background.invert,
|
|
1197
|
-
"--pd-background-invertLight": background.invertLight,
|
|
1198
|
-
"--pd-background-green": background.green,
|
|
1199
|
-
"--pd-background-greenOnHover": background.greenOnHover,
|
|
1200
|
-
"--pd-background-red": background.red,
|
|
1201
|
-
"--pd-background-redOnHover": background.redOnHover,
|
|
1202
|
-
"--pd-background-orange": background.orange,
|
|
1203
|
-
"--pd-background-orangeOnHover": background.orangeOnHover,
|
|
1204
|
-
"--pd-background-yellow": background.yellow,
|
|
1205
|
-
"--pd-background-yellowOnHover": background.yellowOnHover,
|
|
1206
|
-
"--pd-background-low": background.low,
|
|
1207
|
-
"--pd-background-lowOnHover": background.lowOnHover,
|
|
1208
|
-
"--pd-background-info": background.info,
|
|
1209
|
-
"--pd-background-infoOnHover": background.infoOnHover
|
|
1149
|
+
// Border tokens - convert camelCase keys to kebab-case
|
|
1150
|
+
...Object.entries(border).reduce((acc, [key, value]) => {
|
|
1151
|
+
acc[`--border-${toKebabCase(key)}`] = value;
|
|
1152
|
+
return acc;
|
|
1153
|
+
}, {}),
|
|
1154
|
+
// Content tokens - convert camelCase keys to kebab-case
|
|
1155
|
+
...Object.entries(content).reduce((acc, [key, value]) => {
|
|
1156
|
+
acc[`--content-${toKebabCase(key)}`] = value;
|
|
1157
|
+
return acc;
|
|
1158
|
+
}, {}),
|
|
1159
|
+
// Background tokens - convert camelCase keys to kebab-case
|
|
1160
|
+
...Object.entries(background).reduce((acc, [key, value]) => {
|
|
1161
|
+
acc[`--background-${toKebabCase(key)}`] = value;
|
|
1162
|
+
return acc;
|
|
1163
|
+
}, {})
|
|
1210
1164
|
};
|
|
1211
1165
|
return {
|
|
1212
1166
|
name,
|