@work-rjkashyap/unified-ui 0.2.1 → 0.2.3
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/CHANGELOG.md +240 -287
- package/dist/{chunk-B3CW2WZS.cjs → chunk-3K2CXZ6H.cjs} +472 -272
- package/dist/{chunk-TESKVASH.cjs → chunk-5TP7J7T4.cjs} +57 -57
- package/dist/{chunk-CTWNFFLB.mjs → chunk-BB5WRUPU.mjs} +394 -194
- package/dist/{chunk-YFH5JPAA.mjs → chunk-EQWESXRH.mjs} +1 -1
- package/dist/{chunk-HITTFB2U.cjs → chunk-F4JJFWWU.cjs} +20 -20
- package/dist/{chunk-TVCJRD3S.mjs → chunk-IVZAB7BV.mjs} +9 -9
- package/dist/{chunk-3OZJ4JLW.mjs → chunk-PLRSH37T.mjs} +20 -20
- package/dist/{chunk-QEFOXYBO.cjs → chunk-ZBGR7MUW.cjs} +9 -9
- package/dist/components.cjs +290 -290
- package/dist/components.d.cts +9 -3
- package/dist/components.d.ts +9 -3
- package/dist/components.mjs +2 -2
- package/dist/index.cjs +397 -397
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +4 -4
- package/dist/motion.cjs +58 -58
- package/dist/motion.mjs +1 -1
- package/dist/theme.cjs +32 -32
- package/dist/theme.d.cts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/theme.mjs +2 -2
- package/dist/tokens.cjs +19 -19
- package/dist/tokens.d.cts +1 -1
- package/dist/tokens.d.ts +1 -1
- package/dist/tokens.mjs +1 -1
- package/dist/{z-index-G0PBTHL2.d.ts → z-index-Dd8IllRx.d.cts} +9 -9
- package/dist/{z-index-G0PBTHL2.d.cts → z-index-Dd8IllRx.d.ts} +9 -9
- package/package.json +190 -190
- package/styles.css +51 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZBGR7MUW_cjs = require('./chunk-ZBGR7MUW.cjs');
|
|
4
4
|
var chunkECIGDEAH_cjs = require('./chunk-ECIGDEAH.cjs');
|
|
5
5
|
var chunkXCKK6P46_cjs = require('./chunk-XCKK6P46.cjs');
|
|
6
6
|
var chunk4ON3M3OM_cjs = require('./chunk-4ON3M3OM.cjs');
|
|
@@ -138,10 +138,10 @@ function mapRecord(varNames, values) {
|
|
|
138
138
|
}
|
|
139
139
|
function buildLightThemeVars() {
|
|
140
140
|
return {
|
|
141
|
-
...mapRecord(colorVarNames,
|
|
142
|
-
...mapRecord(radiusVarNames,
|
|
143
|
-
...mapRecord(shadowVarNames,
|
|
144
|
-
...mapRecord(zIndexVarNames,
|
|
141
|
+
...mapRecord(colorVarNames, chunkZBGR7MUW_cjs.semanticLight),
|
|
142
|
+
...mapRecord(radiusVarNames, chunkZBGR7MUW_cjs.radius),
|
|
143
|
+
...mapRecord(shadowVarNames, chunkZBGR7MUW_cjs.shadow),
|
|
144
|
+
...mapRecord(zIndexVarNames, chunkZBGR7MUW_cjs.zIndex),
|
|
145
145
|
...mapRecord(durationVarNames, chunkXCKK6P46_cjs.durationCSS),
|
|
146
146
|
...mapRecord(easingVarNames, chunkXCKK6P46_cjs.easingCSS),
|
|
147
147
|
...mapRecord(fontFamilyVarNames, chunkECIGDEAH_cjs.fontFamily)
|
|
@@ -149,10 +149,10 @@ function buildLightThemeVars() {
|
|
|
149
149
|
}
|
|
150
150
|
function buildDarkThemeVars() {
|
|
151
151
|
return {
|
|
152
|
-
...mapRecord(colorVarNames,
|
|
153
|
-
...mapRecord(radiusVarNames,
|
|
154
|
-
...mapRecord(shadowVarNames,
|
|
155
|
-
...mapRecord(zIndexVarNames,
|
|
152
|
+
...mapRecord(colorVarNames, chunkZBGR7MUW_cjs.semanticDark),
|
|
153
|
+
...mapRecord(radiusVarNames, chunkZBGR7MUW_cjs.radius),
|
|
154
|
+
...mapRecord(shadowVarNames, chunkZBGR7MUW_cjs.shadowDark),
|
|
155
|
+
...mapRecord(zIndexVarNames, chunkZBGR7MUW_cjs.zIndex),
|
|
156
156
|
...mapRecord(durationVarNames, chunkXCKK6P46_cjs.durationCSS),
|
|
157
157
|
...mapRecord(easingVarNames, chunkXCKK6P46_cjs.easingCSS),
|
|
158
158
|
...mapRecord(fontFamilyVarNames, chunkECIGDEAH_cjs.fontFamily)
|
|
@@ -215,48 +215,48 @@ var cssVar = {
|
|
|
215
215
|
|
|
216
216
|
// src/theme/presets.ts
|
|
217
217
|
var STATUS_LIGHT = {
|
|
218
|
-
success:
|
|
218
|
+
success: chunkZBGR7MUW_cjs.green[600],
|
|
219
219
|
successForeground: "oklch(0.145 0 0)",
|
|
220
|
-
successMuted:
|
|
221
|
-
successMutedForeground:
|
|
222
|
-
warning:
|
|
220
|
+
successMuted: chunkZBGR7MUW_cjs.green[50],
|
|
221
|
+
successMutedForeground: chunkZBGR7MUW_cjs.green[700],
|
|
222
|
+
warning: chunkZBGR7MUW_cjs.amber[500],
|
|
223
223
|
warningForeground: "oklch(0.145 0 0)",
|
|
224
|
-
warningMuted:
|
|
225
|
-
warningMutedForeground:
|
|
226
|
-
danger:
|
|
224
|
+
warningMuted: chunkZBGR7MUW_cjs.amber[50],
|
|
225
|
+
warningMutedForeground: chunkZBGR7MUW_cjs.amber[700],
|
|
226
|
+
danger: chunkZBGR7MUW_cjs.red[600],
|
|
227
227
|
dangerForeground: "oklch(0.985 0 0)",
|
|
228
|
-
dangerHover:
|
|
229
|
-
dangerActive:
|
|
230
|
-
dangerMuted:
|
|
231
|
-
dangerMutedForeground:
|
|
232
|
-
destructive:
|
|
228
|
+
dangerHover: chunkZBGR7MUW_cjs.red[700],
|
|
229
|
+
dangerActive: chunkZBGR7MUW_cjs.red[800],
|
|
230
|
+
dangerMuted: chunkZBGR7MUW_cjs.red[50],
|
|
231
|
+
dangerMutedForeground: chunkZBGR7MUW_cjs.red[700],
|
|
232
|
+
destructive: chunkZBGR7MUW_cjs.red[600],
|
|
233
233
|
destructiveForeground: "oklch(0.985 0 0)",
|
|
234
|
-
info:
|
|
234
|
+
info: chunkZBGR7MUW_cjs.blue[600],
|
|
235
235
|
infoForeground: "oklch(0.985 0 0)",
|
|
236
|
-
infoMuted:
|
|
237
|
-
infoMutedForeground:
|
|
236
|
+
infoMuted: chunkZBGR7MUW_cjs.blue[50],
|
|
237
|
+
infoMutedForeground: chunkZBGR7MUW_cjs.blue[700]
|
|
238
238
|
};
|
|
239
239
|
var STATUS_DARK = {
|
|
240
|
-
success:
|
|
240
|
+
success: chunkZBGR7MUW_cjs.green[500],
|
|
241
241
|
successForeground: "oklch(0.145 0 0)",
|
|
242
|
-
successMuted:
|
|
243
|
-
successMutedForeground:
|
|
244
|
-
warning:
|
|
242
|
+
successMuted: chunkZBGR7MUW_cjs.green[950],
|
|
243
|
+
successMutedForeground: chunkZBGR7MUW_cjs.green[300],
|
|
244
|
+
warning: chunkZBGR7MUW_cjs.amber[400],
|
|
245
245
|
warningForeground: "oklch(0.145 0 0)",
|
|
246
|
-
warningMuted:
|
|
247
|
-
warningMutedForeground:
|
|
248
|
-
danger:
|
|
246
|
+
warningMuted: chunkZBGR7MUW_cjs.amber[950],
|
|
247
|
+
warningMutedForeground: chunkZBGR7MUW_cjs.amber[300],
|
|
248
|
+
danger: chunkZBGR7MUW_cjs.red[500],
|
|
249
249
|
dangerForeground: "oklch(0.985 0 0)",
|
|
250
|
-
dangerHover:
|
|
251
|
-
dangerActive:
|
|
252
|
-
dangerMuted:
|
|
253
|
-
dangerMutedForeground:
|
|
254
|
-
destructive:
|
|
250
|
+
dangerHover: chunkZBGR7MUW_cjs.red[400],
|
|
251
|
+
dangerActive: chunkZBGR7MUW_cjs.red[300],
|
|
252
|
+
dangerMuted: chunkZBGR7MUW_cjs.red[950],
|
|
253
|
+
dangerMutedForeground: chunkZBGR7MUW_cjs.red[300],
|
|
254
|
+
destructive: chunkZBGR7MUW_cjs.red[500],
|
|
255
255
|
destructiveForeground: "oklch(0.985 0 0)",
|
|
256
|
-
info:
|
|
256
|
+
info: chunkZBGR7MUW_cjs.blue[400],
|
|
257
257
|
infoForeground: "oklch(0.145 0 0)",
|
|
258
|
-
infoMuted:
|
|
259
|
-
infoMutedForeground:
|
|
258
|
+
infoMuted: chunkZBGR7MUW_cjs.blue[950],
|
|
259
|
+
infoMutedForeground: chunkZBGR7MUW_cjs.blue[300]
|
|
260
260
|
};
|
|
261
261
|
var CHART_LIGHT = {
|
|
262
262
|
chart1: "oklch(0.646 0.222 41.116)",
|
|
@@ -416,7 +416,7 @@ function buildNeutralPreset(name, key, palette) {
|
|
|
416
416
|
disabledForeground: palette[600],
|
|
417
417
|
sidebar: palette[900],
|
|
418
418
|
sidebarForeground: palette[50],
|
|
419
|
-
sidebarPrimary:
|
|
419
|
+
sidebarPrimary: chunkZBGR7MUW_cjs.blue[600],
|
|
420
420
|
sidebarPrimaryForeground: palette[50],
|
|
421
421
|
sidebarAccent: palette[800],
|
|
422
422
|
sidebarAccentForeground: palette[50],
|
|
@@ -425,7 +425,7 @@ function buildNeutralPreset(name, key, palette) {
|
|
|
425
425
|
}
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
|
-
function buildChromaticPreset(name, key, primary, surface =
|
|
428
|
+
function buildChromaticPreset(name, key, primary, surface = chunkZBGR7MUW_cjs.zinc) {
|
|
429
429
|
return {
|
|
430
430
|
name,
|
|
431
431
|
key,
|
|
@@ -527,16 +527,16 @@ var COLOR_PRESETS = [
|
|
|
527
527
|
// Neutral Presets (achromatic primaries)
|
|
528
528
|
// -------------------------------------------------------------------------
|
|
529
529
|
{
|
|
530
|
-
swatch:
|
|
531
|
-
...buildNeutralPreset("Zinc", "zinc",
|
|
530
|
+
swatch: chunkZBGR7MUW_cjs.zinc[900],
|
|
531
|
+
...buildNeutralPreset("Zinc", "zinc", chunkZBGR7MUW_cjs.zinc)
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
|
-
swatch:
|
|
535
|
-
...buildNeutralPreset("Slate", "slate",
|
|
534
|
+
swatch: chunkZBGR7MUW_cjs.slate[900],
|
|
535
|
+
...buildNeutralPreset("Slate", "slate", chunkZBGR7MUW_cjs.slate)
|
|
536
536
|
},
|
|
537
537
|
{
|
|
538
|
-
swatch:
|
|
539
|
-
...buildNeutralPreset("Gray", "gray",
|
|
538
|
+
swatch: chunkZBGR7MUW_cjs.gray[900],
|
|
539
|
+
...buildNeutralPreset("Gray", "gray", chunkZBGR7MUW_cjs.gray)
|
|
540
540
|
},
|
|
541
541
|
{
|
|
542
542
|
swatch: stone[900],
|
|
@@ -550,12 +550,12 @@ var COLOR_PRESETS = [
|
|
|
550
550
|
// Chromatic Presets (colored primaries)
|
|
551
551
|
// -------------------------------------------------------------------------
|
|
552
552
|
{
|
|
553
|
-
swatch:
|
|
554
|
-
...buildChromaticPreset("Blue", "blue",
|
|
553
|
+
swatch: chunkZBGR7MUW_cjs.blue[600],
|
|
554
|
+
...buildChromaticPreset("Blue", "blue", chunkZBGR7MUW_cjs.blue)
|
|
555
555
|
},
|
|
556
556
|
{
|
|
557
|
-
swatch:
|
|
558
|
-
...buildChromaticPreset("Green", "green",
|
|
557
|
+
swatch: chunkZBGR7MUW_cjs.green[600],
|
|
558
|
+
...buildChromaticPreset("Green", "green", chunkZBGR7MUW_cjs.green)
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
561
|
swatch: violet[600],
|
|
@@ -570,16 +570,16 @@ var COLOR_PRESETS = [
|
|
|
570
570
|
...buildChromaticPreset("Orange", "orange", orange)
|
|
571
571
|
},
|
|
572
572
|
{
|
|
573
|
-
swatch:
|
|
574
|
-
...buildChromaticPreset("Red", "red",
|
|
573
|
+
swatch: chunkZBGR7MUW_cjs.red[600],
|
|
574
|
+
...buildChromaticPreset("Red", "red", chunkZBGR7MUW_cjs.red)
|
|
575
575
|
},
|
|
576
576
|
{
|
|
577
|
-
swatch:
|
|
578
|
-
...buildChromaticPreset("Teal", "teal",
|
|
577
|
+
swatch: chunkZBGR7MUW_cjs.teal[600],
|
|
578
|
+
...buildChromaticPreset("Teal", "teal", chunkZBGR7MUW_cjs.teal)
|
|
579
579
|
},
|
|
580
580
|
{
|
|
581
|
-
swatch:
|
|
582
|
-
...buildChromaticPreset("Brand", "brand",
|
|
581
|
+
swatch: chunkZBGR7MUW_cjs.brand[600],
|
|
582
|
+
...buildChromaticPreset("Brand", "brand", chunkZBGR7MUW_cjs.brand)
|
|
583
583
|
}
|
|
584
584
|
];
|
|
585
585
|
function getColorPreset(key) {
|