@atscript/ui-styles 0.1.63 → 0.1.64
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/css/all.css +180 -21
- package/dist/css/form.css +88 -3
- package/dist/css/table.css +89 -5
- package/dist/css/wf.css +172 -12
- package/dist/index.cjs +130 -7
- package/dist/index.d.cts +28 -1
- package/dist/index.d.mts +28 -1
- package/dist/index.mjs +122 -8
- package/dist/{kebab-CAodBEsa.mjs → kebab-BXlUt7sB.mjs} +147 -0
- package/dist/{kebab-_amgjqa2.cjs → kebab-D3pYnQML.cjs} +147 -0
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const require_kebab = require("./kebab-
|
|
24
|
+
const require_kebab = require("./kebab-D3pYnQML.cjs");
|
|
25
25
|
let _unocss_preset_icons = require("@unocss/preset-icons");
|
|
26
26
|
_unocss_preset_icons = __toESM(_unocss_preset_icons);
|
|
27
27
|
let vunor_theme = require("vunor/theme");
|
|
@@ -99,6 +99,13 @@ const bakedIcons = {
|
|
|
99
99
|
warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 256 256\"><path fill=\"currentColor\" d=\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m-8-80V80a8 8 0 0 1 16 0v56a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12\"/></svg>"
|
|
100
100
|
};
|
|
101
101
|
//#endregion
|
|
102
|
+
//#region src/shortcuts/common/c8-progress.ts
|
|
103
|
+
const c8ProgressShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
104
|
+
"c8-progress": "relative overflow-hidden",
|
|
105
|
+
"c8-progress-fill": "absolute inset-y-0 left-0 w-0 bg-black/20 animate-[progress-fill_var(--progress-duration,4s)_linear_forwards]",
|
|
106
|
+
"c8-progress-label": "relative"
|
|
107
|
+
});
|
|
108
|
+
//#endregion
|
|
102
109
|
//#region src/shortcuts/common/index.ts
|
|
103
110
|
const baseCommon = (0, vunor_theme.defineShortcuts)({
|
|
104
111
|
"as-kbd": "inline-flex items-center justify-center min-w-[1.5em] h-[1.5em] px-$xs rounded-r0 layer-2 text-callout font-mono font-600 text-current/70 leading-none shrink-0",
|
|
@@ -111,7 +118,7 @@ const baseCommon = (0, vunor_theme.defineShortcuts)({
|
|
|
111
118
|
},
|
|
112
119
|
"as-dialog-close": "as-close-btn ml-auto"
|
|
113
120
|
});
|
|
114
|
-
const commonShortcuts = (0, vunor_theme.mergeVunorShortcuts)([baseCommon]);
|
|
121
|
+
const commonShortcuts = (0, vunor_theme.mergeVunorShortcuts)([baseCommon, c8ProgressShortcuts]);
|
|
115
122
|
//#endregion
|
|
116
123
|
//#region src/shortcuts/form/as-action.ts
|
|
117
124
|
const asActionShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
@@ -194,7 +201,7 @@ const inputBase = "scope-primary layer-0 i8-bare h-fingertip-m px-$s w-full box-
|
|
|
194
201
|
* `as-suffix`) and the `as-input-shell` merged chrome when at least
|
|
195
202
|
* one adornment is present.
|
|
196
203
|
*/
|
|
197
|
-
const innerInputReset = "!w-auto !bg-transparent !border-0 !outline-0 !ring-0 !shadow-none !h-full !px-0 !layer-0 font-mono text-scope-dark-0 dark:text-scope-light-0";
|
|
204
|
+
const innerInputReset$1 = "!w-auto !bg-transparent !border-0 !outline-0 !ring-0 !shadow-none !h-full !px-0 !layer-0 font-mono text-scope-dark-0 dark:text-scope-light-0";
|
|
198
205
|
const shellBase = `flex w-full min-w-0 items-center gap-0 ${inputBase} px-$xs py-0`;
|
|
199
206
|
const adornmentBase = "text-current/60 select-none whitespace-nowrap";
|
|
200
207
|
const asDecimalNumberShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
@@ -213,9 +220,9 @@ const asDecimalNumberShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
|
213
220
|
"[&:has(:is(.as-suffix,.as-suffix-icon))_.as-decimal-decimal]:": "!pr-$xs",
|
|
214
221
|
"[&:has(:is(.as-suffix,.as-suffix-icon)):not(:has(.as-decimal-decimal))_.as-decimal-integer]:": "!pr-$xs"
|
|
215
222
|
},
|
|
216
|
-
"as-decimal-integer": `${innerInputReset} flex-1 min-w-0 text-right disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
223
|
+
"as-decimal-integer": `${innerInputReset$1} flex-1 min-w-0 text-right disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
217
224
|
"as-decimal-sep": "text-current/60 select-none px-0",
|
|
218
|
-
"as-decimal-decimal": `${innerInputReset} flex-none min-w-0 text-left disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
225
|
+
"as-decimal-decimal": `${innerInputReset$1} flex-none min-w-0 text-left disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
219
226
|
"as-number": {
|
|
220
227
|
"": shellBase,
|
|
221
228
|
"hover:": "border-current/30",
|
|
@@ -225,7 +232,7 @@ const asDecimalNumberShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
|
225
232
|
"[&:has(:is(.as-prefix,.as-prefix-icon))_.as-number-input]:": "!pl-$xs",
|
|
226
233
|
"[&:has(:is(.as-suffix,.as-suffix-icon))_.as-number-input]:": "!pr-$xs"
|
|
227
234
|
},
|
|
228
|
-
"as-number-input": `${innerInputReset} flex-1 min-w-0 text-right disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
235
|
+
"as-number-input": `${innerInputReset$1} flex-1 min-w-0 text-right disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
229
236
|
"as-input-shell": {
|
|
230
237
|
"": shellBase,
|
|
231
238
|
"hover:": "border-current/30",
|
|
@@ -336,6 +343,56 @@ const asFormGridShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
|
336
343
|
"as-grid-item": "col-span-full row-span-1"
|
|
337
344
|
});
|
|
338
345
|
//#endregion
|
|
346
|
+
//#region src/shortcuts/form/as-multi-select.ts
|
|
347
|
+
/**
|
|
348
|
+
* Multi-select default renderer — combobox popup with chip-style selected
|
|
349
|
+
* values inside the anchor. Mirrors `as-ref`'s reka-ui Combobox structure
|
|
350
|
+
* (single popup, `data-[highlighted]` keyboard focus, `data-[state=checked]`
|
|
351
|
+
* selection) with `:multiple="true"` so the value model is `T[]` and the
|
|
352
|
+
* popup stays open across clicks.
|
|
353
|
+
*
|
|
354
|
+
* The anchor carries `inputBase` chrome (border, layer, height). The inner
|
|
355
|
+
* `<input>` is a seamless leaf: the descendant rules in `as-default-field`
|
|
356
|
+
* paint `inputBase` on every nested `<input>`, so the input itself must
|
|
357
|
+
* neutralize that with `!important` resets (same pattern as the merged
|
|
358
|
+
* AsDecimal/AsNumber shell).
|
|
359
|
+
*/
|
|
360
|
+
const innerInputReset = "!w-auto !bg-transparent !border-0 !outline-0 !ring-0 !shadow-none !h-auto !px-0 !layer-0";
|
|
361
|
+
const asMultiSelectShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
362
|
+
"as-multi-select-root": "block w-full",
|
|
363
|
+
"as-multi-select-anchor": {
|
|
364
|
+
"": `${inputBase} !h-auto min-h-fingertip-m flex flex-wrap items-center gap-$xs py-$xs cursor-text relative`,
|
|
365
|
+
"focus-within:": "current-border-hl outline i8-apply-outline"
|
|
366
|
+
},
|
|
367
|
+
"as-multi-select-chip": "inline-flex items-center gap-$xs c8-chrome rounded-base pl-$s pr-$xs h-[1.5em] text-callout",
|
|
368
|
+
"as-multi-select-chip-label": "leading-none",
|
|
369
|
+
"as-multi-select-chip-remove": {
|
|
370
|
+
"": "inline-flex items-center justify-center w-[1.25em] h-[1.25em] rounded-full p-0 border-0 bg-transparent text-current/60 cursor-pointer leading-none",
|
|
371
|
+
"hover:not-disabled:": "scope-error text-current-hl bg-current-hl/10",
|
|
372
|
+
"disabled:": "cursor-not-allowed opacity-40"
|
|
373
|
+
},
|
|
374
|
+
"as-multi-select-input": `${innerInputReset} flex-1 min-w-[4em] text-scope-dark-0 dark:text-scope-light-0`,
|
|
375
|
+
"as-multi-select-clear": {
|
|
376
|
+
"": "inline-flex items-center justify-center w-[1.4em] h-[1.4em] rounded-full p-0 border-0 bg-transparent text-current/50 cursor-pointer leading-none shrink-0",
|
|
377
|
+
"hover:": "scope-error text-current-hl bg-current-hl/10"
|
|
378
|
+
},
|
|
379
|
+
"as-multi-select-caret": "text-current/50 text-[1.1em] pointer-events-none flex-shrink-0",
|
|
380
|
+
"as-multi-select-content": "scope-primary popup-card layer-1 z-[50] w-[var(--reka-combobox-trigger-width)] flex flex-col",
|
|
381
|
+
"as-multi-select-viewport": "max-h-[15em] overflow-y-auto py-$xs",
|
|
382
|
+
"as-multi-select-footer": "flex items-center justify-end gap-$xs border-t-1 px-$s py-$xs",
|
|
383
|
+
"as-multi-select-footer-action": {
|
|
384
|
+
"": "c8-flat btn px-$s py-$xxs text-callout disabled-soft",
|
|
385
|
+
"disabled:": "cursor-not-allowed"
|
|
386
|
+
},
|
|
387
|
+
"as-multi-select-item": {
|
|
388
|
+
"": "flex items-center gap-$s px-$m py-$s cursor-pointer text-current",
|
|
389
|
+
"data-[highlighted]:": "layer-3 outline-none",
|
|
390
|
+
"data-[state=checked]:": "bg-current-hl/10 text-current-hl font-semibold"
|
|
391
|
+
},
|
|
392
|
+
"as-multi-select-item-label": "flex-1",
|
|
393
|
+
"as-multi-select-empty": "flex items-center justify-center px-$m py-$m text-current/50"
|
|
394
|
+
});
|
|
395
|
+
//#endregion
|
|
339
396
|
//#region src/shortcuts/form/as-no-data.ts
|
|
340
397
|
const asNoDataShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
341
398
|
"as-no-data": {
|
|
@@ -393,6 +450,7 @@ const formShortcuts = (0, vunor_theme.mergeVunorShortcuts)([
|
|
|
393
450
|
asArrayShortcuts,
|
|
394
451
|
asNoDataShortcuts,
|
|
395
452
|
asDropdownShortcuts,
|
|
453
|
+
asMultiSelectShortcuts,
|
|
396
454
|
asRefShortcuts,
|
|
397
455
|
asActionShortcuts
|
|
398
456
|
]);
|
|
@@ -1161,8 +1219,52 @@ const tableShortcuts = (0, vunor_theme.mergeVunorShortcuts)([
|
|
|
1161
1219
|
//#region src/shortcuts/wf/as-wf-form.ts
|
|
1162
1220
|
const asWfFormShortcuts = (0, vunor_theme.defineShortcuts)({ "as-wf-form-error": "scope-error surface-600 border-1 rounded-base px-$m py-$s mb-$m text-body" });
|
|
1163
1221
|
//#endregion
|
|
1222
|
+
//#region src/shortcuts/wf/as-wf-form-loading.ts
|
|
1223
|
+
const asWfFormLoadingShortcuts = (0, vunor_theme.defineShortcuts)({ "as-wf-form-loading": "relative min-h-[100px]" });
|
|
1224
|
+
//#endregion
|
|
1225
|
+
//#region src/shortcuts/wf/as-wf-finish.ts
|
|
1226
|
+
const asWfFinishShortcuts = (0, vunor_theme.defineShortcuts)({ "as-wf-finish": "flex flex-col items-stretch gap-$m text-body" });
|
|
1227
|
+
//#endregion
|
|
1228
|
+
//#region src/shortcuts/wf/as-wf-finish-message.ts
|
|
1229
|
+
const asWfFinishMessageShortcuts = (0, vunor_theme.defineShortcuts)({ "as-wf-finish-message": {
|
|
1230
|
+
"": "surface-100 border-1 rounded-base px-$m py-$s text-body",
|
|
1231
|
+
"[&[data-level=\"info\"]]:": "scope-primary",
|
|
1232
|
+
"[&[data-level=\"success\"]]:": "scope-good",
|
|
1233
|
+
"[&[data-level=\"warn\"]]:": "scope-warn",
|
|
1234
|
+
"[&[data-level=\"error\"]]:": "scope-error"
|
|
1235
|
+
} });
|
|
1236
|
+
//#endregion
|
|
1237
|
+
//#region src/shortcuts/wf/as-wf-finish-countdown.ts
|
|
1238
|
+
const asWfFinishCountdownShortcuts = (0, vunor_theme.defineShortcuts)({ "as-wf-finish-countdown": "text-callout text-current-muted text-center" });
|
|
1239
|
+
//#endregion
|
|
1240
|
+
//#region src/shortcuts/wf/as-wf-finish-actions.ts
|
|
1241
|
+
const asWfFinishActionsShortcuts = (0, vunor_theme.defineShortcuts)({ "as-wf-finish-actions": "flex flex-wrap items-center justify-center gap-$s" });
|
|
1242
|
+
//#endregion
|
|
1243
|
+
//#region src/shortcuts/wf/as-wf-finish-primary.ts
|
|
1244
|
+
const asWfFinishPrimaryShortcuts = (0, vunor_theme.defineShortcuts)({ "as-wf-finish-primary": "scope-primary c8-filled btn h-fingertip-m px-$m cursor-pointer" });
|
|
1245
|
+
//#endregion
|
|
1246
|
+
//#region src/shortcuts/wf/as-wf-finish-option.ts
|
|
1247
|
+
const asWfFinishOptionShortcuts = (0, vunor_theme.defineShortcuts)({ "as-wf-finish-option": "c8-flat btn h-fingertip-m px-$m cursor-pointer" });
|
|
1248
|
+
//#endregion
|
|
1249
|
+
//#region src/shortcuts/wf/as-wf-finish-skip.ts
|
|
1250
|
+
const asWfFinishSkipShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
1251
|
+
"as-wf-finish-skip": "c8-filled scope-primary c8-progress btn h-fingertip-m px-$m cursor-pointer",
|
|
1252
|
+
"as-wf-finish-skip-fill": "c8-progress-fill",
|
|
1253
|
+
"as-wf-finish-skip-label": "c8-progress-label"
|
|
1254
|
+
});
|
|
1255
|
+
//#endregion
|
|
1164
1256
|
//#region src/shortcuts/wf/index.ts
|
|
1165
|
-
const wfShortcuts = (0, vunor_theme.mergeVunorShortcuts)([
|
|
1257
|
+
const wfShortcuts = (0, vunor_theme.mergeVunorShortcuts)([
|
|
1258
|
+
asWfFormShortcuts,
|
|
1259
|
+
asWfFormLoadingShortcuts,
|
|
1260
|
+
asWfFinishShortcuts,
|
|
1261
|
+
asWfFinishMessageShortcuts,
|
|
1262
|
+
asWfFinishCountdownShortcuts,
|
|
1263
|
+
asWfFinishActionsShortcuts,
|
|
1264
|
+
asWfFinishPrimaryShortcuts,
|
|
1265
|
+
asWfFinishOptionShortcuts,
|
|
1266
|
+
asWfFinishSkipShortcuts
|
|
1267
|
+
]);
|
|
1166
1268
|
//#endregion
|
|
1167
1269
|
//#region src/shortcuts/index.ts
|
|
1168
1270
|
const allShortcuts = (0, vunor_theme.mergeVunorShortcuts)([
|
|
@@ -1196,6 +1298,17 @@ const shimmerKeyframesPreset = {
|
|
|
1196
1298
|
preflights: [{ getCSS: () => "@keyframes as-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }" }]
|
|
1197
1299
|
};
|
|
1198
1300
|
/**
|
|
1301
|
+
* Preset entry that injects the `@keyframes progress-fill` definition driving
|
|
1302
|
+
* the `c8-progress-fill` shortcut (and any other consumer that wants a 0→100%
|
|
1303
|
+
* left-to-right width fill). Duration is supplied per-instance via the
|
|
1304
|
+
* `--progress-duration` CSS custom property on the host element, so the same
|
|
1305
|
+
* keyframes serve every timed-fill UI — no per-duration class explosion.
|
|
1306
|
+
*/
|
|
1307
|
+
const progressKeyframesPreset = {
|
|
1308
|
+
name: "atscript-ui-progress-keyframes",
|
|
1309
|
+
preflights: [{ getCSS: () => "@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }" }]
|
|
1310
|
+
};
|
|
1311
|
+
/**
|
|
1199
1312
|
* No-op marker classes referenced by other shortcuts. UnoCSS warns
|
|
1200
1313
|
* `unmatched utility "X" in shortcut "Y"` when a shortcut body references
|
|
1201
1314
|
* a utility that doesn't resolve to any rule:
|
|
@@ -1267,6 +1380,7 @@ function buildBasePresets(options) {
|
|
|
1267
1380
|
return [
|
|
1268
1381
|
bakedIconsPreset(iconOverrides),
|
|
1269
1382
|
shimmerKeyframesPreset,
|
|
1383
|
+
progressKeyframesPreset,
|
|
1270
1384
|
markerRulesPreset,
|
|
1271
1385
|
formGridSafelistPreset,
|
|
1272
1386
|
(0, vunor_theme.presetVunor)({
|
|
@@ -1332,6 +1446,7 @@ exports.asFilterFieldShortcuts = asFilterFieldShortcuts;
|
|
|
1332
1446
|
exports.asFormGridShortcuts = asFormGridShortcuts;
|
|
1333
1447
|
exports.asFormShortcuts = asFormShortcuts;
|
|
1334
1448
|
exports.asFpillShortcuts = asFpillShortcuts;
|
|
1449
|
+
exports.asMultiSelectShortcuts = asMultiSelectShortcuts;
|
|
1335
1450
|
exports.asNoDataShortcuts = asNoDataShortcuts;
|
|
1336
1451
|
exports.asObjectShortcuts = asObjectShortcuts;
|
|
1337
1452
|
exports.asOrderableListShortcuts = asOrderableListShortcuts;
|
|
@@ -1344,6 +1459,14 @@ exports.asRowActionsShortcuts = asRowActionsShortcuts;
|
|
|
1344
1459
|
exports.asSorterShortcuts = asSorterShortcuts;
|
|
1345
1460
|
exports.asTableActionsShortcuts = asTableActionsShortcuts;
|
|
1346
1461
|
exports.asTableShortcuts = asTableShortcuts;
|
|
1462
|
+
exports.asWfFinishActionsShortcuts = asWfFinishActionsShortcuts;
|
|
1463
|
+
exports.asWfFinishCountdownShortcuts = asWfFinishCountdownShortcuts;
|
|
1464
|
+
exports.asWfFinishMessageShortcuts = asWfFinishMessageShortcuts;
|
|
1465
|
+
exports.asWfFinishOptionShortcuts = asWfFinishOptionShortcuts;
|
|
1466
|
+
exports.asWfFinishPrimaryShortcuts = asWfFinishPrimaryShortcuts;
|
|
1467
|
+
exports.asWfFinishShortcuts = asWfFinishShortcuts;
|
|
1468
|
+
exports.asWfFinishSkipShortcuts = asWfFinishSkipShortcuts;
|
|
1469
|
+
exports.asWfFormLoadingShortcuts = asWfFormLoadingShortcuts;
|
|
1347
1470
|
exports.asWfFormShortcuts = asWfFormShortcuts;
|
|
1348
1471
|
exports.asWindowScrollbarShortcuts = asWindowScrollbarShortcuts;
|
|
1349
1472
|
exports.asWindowSkeletonShortcuts = asWindowSkeletonShortcuts;
|
package/dist/index.d.cts
CHANGED
|
@@ -96,6 +96,9 @@ declare const asFormShortcuts: vunor_theme0.TVunorShortcut;
|
|
|
96
96
|
*/
|
|
97
97
|
declare const asFormGridShortcuts: vunor_theme0.TVunorShortcut;
|
|
98
98
|
//#endregion
|
|
99
|
+
//#region src/shortcuts/form/as-multi-select.d.ts
|
|
100
|
+
declare const asMultiSelectShortcuts: vunor_theme0.TVunorShortcut;
|
|
101
|
+
//#endregion
|
|
99
102
|
//#region src/shortcuts/form/as-no-data.d.ts
|
|
100
103
|
declare const asNoDataShortcuts: vunor_theme0.TVunorShortcut;
|
|
101
104
|
//#endregion
|
|
@@ -219,6 +222,30 @@ declare const tableShortcuts: vunor_theme0.TVunorShortcut;
|
|
|
219
222
|
//#region src/shortcuts/wf/as-wf-form.d.ts
|
|
220
223
|
declare const asWfFormShortcuts: vunor_theme0.TVunorShortcut;
|
|
221
224
|
//#endregion
|
|
225
|
+
//#region src/shortcuts/wf/as-wf-form-loading.d.ts
|
|
226
|
+
declare const asWfFormLoadingShortcuts: vunor_theme0.TVunorShortcut;
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/shortcuts/wf/as-wf-finish.d.ts
|
|
229
|
+
declare const asWfFinishShortcuts: vunor_theme0.TVunorShortcut;
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/shortcuts/wf/as-wf-finish-message.d.ts
|
|
232
|
+
declare const asWfFinishMessageShortcuts: vunor_theme0.TVunorShortcut;
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region src/shortcuts/wf/as-wf-finish-countdown.d.ts
|
|
235
|
+
declare const asWfFinishCountdownShortcuts: vunor_theme0.TVunorShortcut;
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/shortcuts/wf/as-wf-finish-actions.d.ts
|
|
238
|
+
declare const asWfFinishActionsShortcuts: vunor_theme0.TVunorShortcut;
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region src/shortcuts/wf/as-wf-finish-primary.d.ts
|
|
241
|
+
declare const asWfFinishPrimaryShortcuts: vunor_theme0.TVunorShortcut;
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/shortcuts/wf/as-wf-finish-option.d.ts
|
|
244
|
+
declare const asWfFinishOptionShortcuts: vunor_theme0.TVunorShortcut;
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/shortcuts/wf/as-wf-finish-skip.d.ts
|
|
247
|
+
declare const asWfFinishSkipShortcuts: vunor_theme0.TVunorShortcut;
|
|
248
|
+
//#endregion
|
|
222
249
|
//#region src/shortcuts/wf/index.d.ts
|
|
223
250
|
declare const wfShortcuts: vunor_theme0.TVunorShortcut;
|
|
224
251
|
//#endregion
|
|
@@ -235,4 +262,4 @@ declare function getHelperClasses(...helpers: string[]): string[];
|
|
|
235
262
|
//#region src/generated/baked-icons.d.ts
|
|
236
263
|
declare const bakedIcons: Record<string, string>;
|
|
237
264
|
//#endregion
|
|
238
|
-
export { type AsBaseUnoConfigOptions, type AsExtractorOptions, type AsPresetVunorOptions, type TVunorShortcut, allShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
|
|
265
|
+
export { type AsBaseUnoConfigOptions, type AsExtractorOptions, type AsPresetVunorOptions, type TVunorShortcut, allShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
|
package/dist/index.d.mts
CHANGED
|
@@ -96,6 +96,9 @@ declare const asFormShortcuts: vunor_theme0.TVunorShortcut;
|
|
|
96
96
|
*/
|
|
97
97
|
declare const asFormGridShortcuts: vunor_theme0.TVunorShortcut;
|
|
98
98
|
//#endregion
|
|
99
|
+
//#region src/shortcuts/form/as-multi-select.d.ts
|
|
100
|
+
declare const asMultiSelectShortcuts: vunor_theme0.TVunorShortcut;
|
|
101
|
+
//#endregion
|
|
99
102
|
//#region src/shortcuts/form/as-no-data.d.ts
|
|
100
103
|
declare const asNoDataShortcuts: vunor_theme0.TVunorShortcut;
|
|
101
104
|
//#endregion
|
|
@@ -219,6 +222,30 @@ declare const tableShortcuts: vunor_theme0.TVunorShortcut;
|
|
|
219
222
|
//#region src/shortcuts/wf/as-wf-form.d.ts
|
|
220
223
|
declare const asWfFormShortcuts: vunor_theme0.TVunorShortcut;
|
|
221
224
|
//#endregion
|
|
225
|
+
//#region src/shortcuts/wf/as-wf-form-loading.d.ts
|
|
226
|
+
declare const asWfFormLoadingShortcuts: vunor_theme0.TVunorShortcut;
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/shortcuts/wf/as-wf-finish.d.ts
|
|
229
|
+
declare const asWfFinishShortcuts: vunor_theme0.TVunorShortcut;
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/shortcuts/wf/as-wf-finish-message.d.ts
|
|
232
|
+
declare const asWfFinishMessageShortcuts: vunor_theme0.TVunorShortcut;
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region src/shortcuts/wf/as-wf-finish-countdown.d.ts
|
|
235
|
+
declare const asWfFinishCountdownShortcuts: vunor_theme0.TVunorShortcut;
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/shortcuts/wf/as-wf-finish-actions.d.ts
|
|
238
|
+
declare const asWfFinishActionsShortcuts: vunor_theme0.TVunorShortcut;
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region src/shortcuts/wf/as-wf-finish-primary.d.ts
|
|
241
|
+
declare const asWfFinishPrimaryShortcuts: vunor_theme0.TVunorShortcut;
|
|
242
|
+
//#endregion
|
|
243
|
+
//#region src/shortcuts/wf/as-wf-finish-option.d.ts
|
|
244
|
+
declare const asWfFinishOptionShortcuts: vunor_theme0.TVunorShortcut;
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/shortcuts/wf/as-wf-finish-skip.d.ts
|
|
247
|
+
declare const asWfFinishSkipShortcuts: vunor_theme0.TVunorShortcut;
|
|
248
|
+
//#endregion
|
|
222
249
|
//#region src/shortcuts/wf/index.d.ts
|
|
223
250
|
declare const wfShortcuts: vunor_theme0.TVunorShortcut;
|
|
224
251
|
//#endregion
|
|
@@ -235,4 +262,4 @@ declare function getHelperClasses(...helpers: string[]): string[];
|
|
|
235
262
|
//#region src/generated/baked-icons.d.ts
|
|
236
263
|
declare const bakedIcons: Record<string, string>;
|
|
237
264
|
//#endregion
|
|
238
|
-
export { type AsBaseUnoConfigOptions, type AsExtractorOptions, type AsPresetVunorOptions, type TVunorShortcut, allShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
|
|
265
|
+
export { type AsBaseUnoConfigOptions, type AsExtractorOptions, type AsPresetVunorOptions, type TVunorShortcut, allShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as getHelperClasses, i as getComponentClasses, n as componentClasses, o as helperAliases, r as componentPackages, t as kebabize } from "./kebab-
|
|
1
|
+
import { a as getHelperClasses, i as getComponentClasses, n as componentClasses, o as helperAliases, r as componentPackages, t as kebabize } from "./kebab-BXlUt7sB.mjs";
|
|
2
2
|
import presetIcons from "@unocss/preset-icons";
|
|
3
3
|
import { defineShortcuts, defineShortcuts as defineShortcuts$1, mergeVunorShortcuts, mergeVunorShortcuts as mergeVunorShortcuts$1, presetVunor, toUnoShortcut, vunorShortcuts } from "vunor/theme";
|
|
4
4
|
//#region src/extractor.ts
|
|
@@ -74,6 +74,13 @@ const bakedIcons = {
|
|
|
74
74
|
"value-help": "<svg width=\"1em\" height=\"1em\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M13 11V12H6V11H13ZM14 10V3C14 2.44772 13.5523 2 13 2H6C5.44772 2 5 2.44772 5 3V10C5 10.5523 5.44772 11 6 11V12C4.96435 12 4.113 11.2128 4.01074 10.2041L4 10V3C4 1.89543 4.89543 1 6 1H13L13.2041 1.01074C14.2128 1.113 15 1.96435 15 3V10L14.9893 10.2041C14.8938 11.1457 14.1457 11.8938 13.2041 11.9893L13 12V11C13.5523 11 14 10.5523 14 10Z\" fill=\"currentColor\"/>\n<path d=\"M11 13V14H4V13H11Z\" fill=\"currentColor\"/>\n<path d=\"M11 13V14L11.2041 13.9893C11.8579 13.923 12.4185 13.542 12.732 13H11Z\" fill=\"currentColor\"/>\n<path d=\"M4 14V13C3.44772 13 3 12.5523 3 12V5V3.26756C2.4022 3.61337 2 4.25972 2 5V12L2.01074 12.2041C2.113 13.2128 2.96435 14 4 14Z\" fill=\"currentColor\"/>\n<path d=\"M14 4V5H4V4H14Z\" fill=\"currentColor\"/>\n</svg>\n",
|
|
75
75
|
warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 256 256\"><path fill=\"currentColor\" d=\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m-8-80V80a8 8 0 0 1 16 0v56a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12\"/></svg>"
|
|
76
76
|
};
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/shortcuts/common/c8-progress.ts
|
|
79
|
+
const c8ProgressShortcuts = defineShortcuts$1({
|
|
80
|
+
"c8-progress": "relative overflow-hidden",
|
|
81
|
+
"c8-progress-fill": "absolute inset-y-0 left-0 w-0 bg-black/20 animate-[progress-fill_var(--progress-duration,4s)_linear_forwards]",
|
|
82
|
+
"c8-progress-label": "relative"
|
|
83
|
+
});
|
|
77
84
|
const commonShortcuts = mergeVunorShortcuts$1([defineShortcuts$1({
|
|
78
85
|
"as-kbd": "inline-flex items-center justify-center min-w-[1.5em] h-[1.5em] px-$xs rounded-r0 layer-2 text-callout font-mono font-600 text-current/70 leading-none shrink-0",
|
|
79
86
|
"as-description": "text-callout text-current/60 m-0",
|
|
@@ -84,7 +91,7 @@ const commonShortcuts = mergeVunorShortcuts$1([defineShortcuts$1({
|
|
|
84
91
|
"hover:": "layer-2 text-current"
|
|
85
92
|
},
|
|
86
93
|
"as-dialog-close": "as-close-btn ml-auto"
|
|
87
|
-
})]);
|
|
94
|
+
}), c8ProgressShortcuts]);
|
|
88
95
|
//#endregion
|
|
89
96
|
//#region src/shortcuts/form/as-action.ts
|
|
90
97
|
const asActionShortcuts = defineShortcuts$1({
|
|
@@ -167,7 +174,7 @@ const inputBase = "scope-primary layer-0 i8-bare h-fingertip-m px-$s w-full box-
|
|
|
167
174
|
* `as-suffix`) and the `as-input-shell` merged chrome when at least
|
|
168
175
|
* one adornment is present.
|
|
169
176
|
*/
|
|
170
|
-
const innerInputReset = "!w-auto !bg-transparent !border-0 !outline-0 !ring-0 !shadow-none !h-full !px-0 !layer-0 font-mono text-scope-dark-0 dark:text-scope-light-0";
|
|
177
|
+
const innerInputReset$1 = "!w-auto !bg-transparent !border-0 !outline-0 !ring-0 !shadow-none !h-full !px-0 !layer-0 font-mono text-scope-dark-0 dark:text-scope-light-0";
|
|
171
178
|
const shellBase = `flex w-full min-w-0 items-center gap-0 ${inputBase} px-$xs py-0`;
|
|
172
179
|
const adornmentBase = "text-current/60 select-none whitespace-nowrap";
|
|
173
180
|
const asDecimalNumberShortcuts = defineShortcuts$1({
|
|
@@ -186,9 +193,9 @@ const asDecimalNumberShortcuts = defineShortcuts$1({
|
|
|
186
193
|
"[&:has(:is(.as-suffix,.as-suffix-icon))_.as-decimal-decimal]:": "!pr-$xs",
|
|
187
194
|
"[&:has(:is(.as-suffix,.as-suffix-icon)):not(:has(.as-decimal-decimal))_.as-decimal-integer]:": "!pr-$xs"
|
|
188
195
|
},
|
|
189
|
-
"as-decimal-integer": `${innerInputReset} flex-1 min-w-0 text-right disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
196
|
+
"as-decimal-integer": `${innerInputReset$1} flex-1 min-w-0 text-right disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
190
197
|
"as-decimal-sep": "text-current/60 select-none px-0",
|
|
191
|
-
"as-decimal-decimal": `${innerInputReset} flex-none min-w-0 text-left disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
198
|
+
"as-decimal-decimal": `${innerInputReset$1} flex-none min-w-0 text-left disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
192
199
|
"as-number": {
|
|
193
200
|
"": shellBase,
|
|
194
201
|
"hover:": "border-current/30",
|
|
@@ -198,7 +205,7 @@ const asDecimalNumberShortcuts = defineShortcuts$1({
|
|
|
198
205
|
"[&:has(:is(.as-prefix,.as-prefix-icon))_.as-number-input]:": "!pl-$xs",
|
|
199
206
|
"[&:has(:is(.as-suffix,.as-suffix-icon))_.as-number-input]:": "!pr-$xs"
|
|
200
207
|
},
|
|
201
|
-
"as-number-input": `${innerInputReset} flex-1 min-w-0 text-right disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
208
|
+
"as-number-input": `${innerInputReset$1} flex-1 min-w-0 text-right disabled:!text-current/40 disabled:!cursor-not-allowed`,
|
|
202
209
|
"as-input-shell": {
|
|
203
210
|
"": shellBase,
|
|
204
211
|
"hover:": "border-current/30",
|
|
@@ -309,6 +316,56 @@ const asFormGridShortcuts = defineShortcuts$1({
|
|
|
309
316
|
"as-grid-item": "col-span-full row-span-1"
|
|
310
317
|
});
|
|
311
318
|
//#endregion
|
|
319
|
+
//#region src/shortcuts/form/as-multi-select.ts
|
|
320
|
+
/**
|
|
321
|
+
* Multi-select default renderer — combobox popup with chip-style selected
|
|
322
|
+
* values inside the anchor. Mirrors `as-ref`'s reka-ui Combobox structure
|
|
323
|
+
* (single popup, `data-[highlighted]` keyboard focus, `data-[state=checked]`
|
|
324
|
+
* selection) with `:multiple="true"` so the value model is `T[]` and the
|
|
325
|
+
* popup stays open across clicks.
|
|
326
|
+
*
|
|
327
|
+
* The anchor carries `inputBase` chrome (border, layer, height). The inner
|
|
328
|
+
* `<input>` is a seamless leaf: the descendant rules in `as-default-field`
|
|
329
|
+
* paint `inputBase` on every nested `<input>`, so the input itself must
|
|
330
|
+
* neutralize that with `!important` resets (same pattern as the merged
|
|
331
|
+
* AsDecimal/AsNumber shell).
|
|
332
|
+
*/
|
|
333
|
+
const innerInputReset = "!w-auto !bg-transparent !border-0 !outline-0 !ring-0 !shadow-none !h-auto !px-0 !layer-0";
|
|
334
|
+
const asMultiSelectShortcuts = defineShortcuts$1({
|
|
335
|
+
"as-multi-select-root": "block w-full",
|
|
336
|
+
"as-multi-select-anchor": {
|
|
337
|
+
"": `${inputBase} !h-auto min-h-fingertip-m flex flex-wrap items-center gap-$xs py-$xs cursor-text relative`,
|
|
338
|
+
"focus-within:": "current-border-hl outline i8-apply-outline"
|
|
339
|
+
},
|
|
340
|
+
"as-multi-select-chip": "inline-flex items-center gap-$xs c8-chrome rounded-base pl-$s pr-$xs h-[1.5em] text-callout",
|
|
341
|
+
"as-multi-select-chip-label": "leading-none",
|
|
342
|
+
"as-multi-select-chip-remove": {
|
|
343
|
+
"": "inline-flex items-center justify-center w-[1.25em] h-[1.25em] rounded-full p-0 border-0 bg-transparent text-current/60 cursor-pointer leading-none",
|
|
344
|
+
"hover:not-disabled:": "scope-error text-current-hl bg-current-hl/10",
|
|
345
|
+
"disabled:": "cursor-not-allowed opacity-40"
|
|
346
|
+
},
|
|
347
|
+
"as-multi-select-input": `${innerInputReset} flex-1 min-w-[4em] text-scope-dark-0 dark:text-scope-light-0`,
|
|
348
|
+
"as-multi-select-clear": {
|
|
349
|
+
"": "inline-flex items-center justify-center w-[1.4em] h-[1.4em] rounded-full p-0 border-0 bg-transparent text-current/50 cursor-pointer leading-none shrink-0",
|
|
350
|
+
"hover:": "scope-error text-current-hl bg-current-hl/10"
|
|
351
|
+
},
|
|
352
|
+
"as-multi-select-caret": "text-current/50 text-[1.1em] pointer-events-none flex-shrink-0",
|
|
353
|
+
"as-multi-select-content": "scope-primary popup-card layer-1 z-[50] w-[var(--reka-combobox-trigger-width)] flex flex-col",
|
|
354
|
+
"as-multi-select-viewport": "max-h-[15em] overflow-y-auto py-$xs",
|
|
355
|
+
"as-multi-select-footer": "flex items-center justify-end gap-$xs border-t-1 px-$s py-$xs",
|
|
356
|
+
"as-multi-select-footer-action": {
|
|
357
|
+
"": "c8-flat btn px-$s py-$xxs text-callout disabled-soft",
|
|
358
|
+
"disabled:": "cursor-not-allowed"
|
|
359
|
+
},
|
|
360
|
+
"as-multi-select-item": {
|
|
361
|
+
"": "flex items-center gap-$s px-$m py-$s cursor-pointer text-current",
|
|
362
|
+
"data-[highlighted]:": "layer-3 outline-none",
|
|
363
|
+
"data-[state=checked]:": "bg-current-hl/10 text-current-hl font-semibold"
|
|
364
|
+
},
|
|
365
|
+
"as-multi-select-item-label": "flex-1",
|
|
366
|
+
"as-multi-select-empty": "flex items-center justify-center px-$m py-$m text-current/50"
|
|
367
|
+
});
|
|
368
|
+
//#endregion
|
|
312
369
|
//#region src/shortcuts/form/as-no-data.ts
|
|
313
370
|
const asNoDataShortcuts = defineShortcuts$1({
|
|
314
371
|
"as-no-data": {
|
|
@@ -366,6 +423,7 @@ const formShortcuts = mergeVunorShortcuts$1([
|
|
|
366
423
|
asArrayShortcuts,
|
|
367
424
|
asNoDataShortcuts,
|
|
368
425
|
asDropdownShortcuts,
|
|
426
|
+
asMultiSelectShortcuts,
|
|
369
427
|
asRefShortcuts,
|
|
370
428
|
asActionShortcuts
|
|
371
429
|
]);
|
|
@@ -1134,8 +1192,52 @@ const tableShortcuts = mergeVunorShortcuts$1([
|
|
|
1134
1192
|
//#region src/shortcuts/wf/as-wf-form.ts
|
|
1135
1193
|
const asWfFormShortcuts = defineShortcuts$1({ "as-wf-form-error": "scope-error surface-600 border-1 rounded-base px-$m py-$s mb-$m text-body" });
|
|
1136
1194
|
//#endregion
|
|
1195
|
+
//#region src/shortcuts/wf/as-wf-form-loading.ts
|
|
1196
|
+
const asWfFormLoadingShortcuts = defineShortcuts$1({ "as-wf-form-loading": "relative min-h-[100px]" });
|
|
1197
|
+
//#endregion
|
|
1198
|
+
//#region src/shortcuts/wf/as-wf-finish.ts
|
|
1199
|
+
const asWfFinishShortcuts = defineShortcuts$1({ "as-wf-finish": "flex flex-col items-stretch gap-$m text-body" });
|
|
1200
|
+
//#endregion
|
|
1201
|
+
//#region src/shortcuts/wf/as-wf-finish-message.ts
|
|
1202
|
+
const asWfFinishMessageShortcuts = defineShortcuts$1({ "as-wf-finish-message": {
|
|
1203
|
+
"": "surface-100 border-1 rounded-base px-$m py-$s text-body",
|
|
1204
|
+
"[&[data-level=\"info\"]]:": "scope-primary",
|
|
1205
|
+
"[&[data-level=\"success\"]]:": "scope-good",
|
|
1206
|
+
"[&[data-level=\"warn\"]]:": "scope-warn",
|
|
1207
|
+
"[&[data-level=\"error\"]]:": "scope-error"
|
|
1208
|
+
} });
|
|
1209
|
+
//#endregion
|
|
1210
|
+
//#region src/shortcuts/wf/as-wf-finish-countdown.ts
|
|
1211
|
+
const asWfFinishCountdownShortcuts = defineShortcuts$1({ "as-wf-finish-countdown": "text-callout text-current-muted text-center" });
|
|
1212
|
+
//#endregion
|
|
1213
|
+
//#region src/shortcuts/wf/as-wf-finish-actions.ts
|
|
1214
|
+
const asWfFinishActionsShortcuts = defineShortcuts$1({ "as-wf-finish-actions": "flex flex-wrap items-center justify-center gap-$s" });
|
|
1215
|
+
//#endregion
|
|
1216
|
+
//#region src/shortcuts/wf/as-wf-finish-primary.ts
|
|
1217
|
+
const asWfFinishPrimaryShortcuts = defineShortcuts$1({ "as-wf-finish-primary": "scope-primary c8-filled btn h-fingertip-m px-$m cursor-pointer" });
|
|
1218
|
+
//#endregion
|
|
1219
|
+
//#region src/shortcuts/wf/as-wf-finish-option.ts
|
|
1220
|
+
const asWfFinishOptionShortcuts = defineShortcuts$1({ "as-wf-finish-option": "c8-flat btn h-fingertip-m px-$m cursor-pointer" });
|
|
1221
|
+
//#endregion
|
|
1222
|
+
//#region src/shortcuts/wf/as-wf-finish-skip.ts
|
|
1223
|
+
const asWfFinishSkipShortcuts = defineShortcuts$1({
|
|
1224
|
+
"as-wf-finish-skip": "c8-filled scope-primary c8-progress btn h-fingertip-m px-$m cursor-pointer",
|
|
1225
|
+
"as-wf-finish-skip-fill": "c8-progress-fill",
|
|
1226
|
+
"as-wf-finish-skip-label": "c8-progress-label"
|
|
1227
|
+
});
|
|
1228
|
+
//#endregion
|
|
1137
1229
|
//#region src/shortcuts/wf/index.ts
|
|
1138
|
-
const wfShortcuts = mergeVunorShortcuts$1([
|
|
1230
|
+
const wfShortcuts = mergeVunorShortcuts$1([
|
|
1231
|
+
asWfFormShortcuts,
|
|
1232
|
+
asWfFormLoadingShortcuts,
|
|
1233
|
+
asWfFinishShortcuts,
|
|
1234
|
+
asWfFinishMessageShortcuts,
|
|
1235
|
+
asWfFinishCountdownShortcuts,
|
|
1236
|
+
asWfFinishActionsShortcuts,
|
|
1237
|
+
asWfFinishPrimaryShortcuts,
|
|
1238
|
+
asWfFinishOptionShortcuts,
|
|
1239
|
+
asWfFinishSkipShortcuts
|
|
1240
|
+
]);
|
|
1139
1241
|
//#endregion
|
|
1140
1242
|
//#region src/shortcuts/index.ts
|
|
1141
1243
|
const allShortcuts = mergeVunorShortcuts$1([
|
|
@@ -1169,6 +1271,17 @@ const shimmerKeyframesPreset = {
|
|
|
1169
1271
|
preflights: [{ getCSS: () => "@keyframes as-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }" }]
|
|
1170
1272
|
};
|
|
1171
1273
|
/**
|
|
1274
|
+
* Preset entry that injects the `@keyframes progress-fill` definition driving
|
|
1275
|
+
* the `c8-progress-fill` shortcut (and any other consumer that wants a 0→100%
|
|
1276
|
+
* left-to-right width fill). Duration is supplied per-instance via the
|
|
1277
|
+
* `--progress-duration` CSS custom property on the host element, so the same
|
|
1278
|
+
* keyframes serve every timed-fill UI — no per-duration class explosion.
|
|
1279
|
+
*/
|
|
1280
|
+
const progressKeyframesPreset = {
|
|
1281
|
+
name: "atscript-ui-progress-keyframes",
|
|
1282
|
+
preflights: [{ getCSS: () => "@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }" }]
|
|
1283
|
+
};
|
|
1284
|
+
/**
|
|
1172
1285
|
* No-op marker classes referenced by other shortcuts. UnoCSS warns
|
|
1173
1286
|
* `unmatched utility "X" in shortcut "Y"` when a shortcut body references
|
|
1174
1287
|
* a utility that doesn't resolve to any rule:
|
|
@@ -1240,6 +1353,7 @@ function buildBasePresets(options) {
|
|
|
1240
1353
|
return [
|
|
1241
1354
|
bakedIconsPreset(iconOverrides),
|
|
1242
1355
|
shimmerKeyframesPreset,
|
|
1356
|
+
progressKeyframesPreset,
|
|
1243
1357
|
markerRulesPreset,
|
|
1244
1358
|
formGridSafelistPreset,
|
|
1245
1359
|
presetVunor({
|
|
@@ -1286,4 +1400,4 @@ function createAsBaseUnoConfig(options = {}) {
|
|
|
1286
1400
|
};
|
|
1287
1401
|
}
|
|
1288
1402
|
//#endregion
|
|
1289
|
-
export { allShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
|
|
1403
|
+
export { allShortcuts, asActionFormShortcuts, asActionShortcuts, asArrayShortcuts, asCellShortcuts, asCheckboxRadioShortcuts, asCollapsibleShortcuts, asColumnMenuShortcuts, asConfigDialogShortcuts, asConfigTabShortcuts, asConfirmDialogShortcuts, asDecimalNumberShortcuts, asDropdownShortcuts, asFieldShortcuts, asFilterDialogShortcuts, asFilterFieldShortcuts, asFormGridShortcuts, asFormShortcuts, asFpillShortcuts, asMultiSelectShortcuts, asNoDataShortcuts, asObjectShortcuts, asOrderableListShortcuts, asPageShortcuts, asPresetDialogShortcuts, asPresetPickerShortcuts, asPresetVunor, asRefShortcuts, asRowActionsShortcuts, asSorterShortcuts, asTableActionsShortcuts, asTableShortcuts, asWfFinishActionsShortcuts, asWfFinishCountdownShortcuts, asWfFinishMessageShortcuts, asWfFinishOptionShortcuts, asWfFinishPrimaryShortcuts, asWfFinishShortcuts, asWfFinishSkipShortcuts, asWfFormLoadingShortcuts, asWfFormShortcuts, asWindowScrollbarShortcuts, asWindowSkeletonShortcuts, asWindowTableShortcuts, bakedIcons, commonShortcuts, componentClasses, componentPackages, createAsBaseUnoConfig, createAsExtractor, defineShortcuts, formShortcuts, getComponentClasses, getHelperClasses, helperAliases, mergeVunorShortcuts, tableShortcuts, toUnoShortcut, wfShortcuts };
|