@atscript/ui-styles 0.1.65 → 0.1.66
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 +2 -2
- package/dist/css/form.css +1 -1
- package/dist/css/table.css +1 -1
- package/dist/css/wf.css +2 -2
- package/dist/index.cjs +62 -29
- package/dist/index.d.cts +16 -5
- package/dist/index.d.mts +16 -5
- package/dist/index.mjs +62 -29
- package/package.json +4 -4
package/dist/css/all.css
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
.i-as-warning{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 256 256'%3E%3Cpath 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'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
|
|
32
32
|
/* layer: preflights */
|
|
33
33
|
@keyframes as-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
|
|
34
|
-
@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }
|
|
34
|
+
@keyframes as-progress-fill { from { width: 0%; } to { width: 100%; } }
|
|
35
35
|
*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}
|
|
36
36
|
body { font-size: 1em; --font-bold: 600; --font-size: 1em; --font-corrected: 1em; --font-bc: -0.1973em; --font-tc: -0.2373em; font-weight: 400; line-height: 1.4346101129141227em; letter-spacing: -0.011em; }
|
|
37
37
|
figcaption { font-size: 0.7861596349150974em; --font-bold: 600; --font-size: 0.7861596349150974em; --font-corrected: 0.7861596349150974em; --font-bc: -0.1203em; --font-tc: -0.1517em; font-weight: 400; line-height: 1.2720062892926278em; letter-spacing: -0.007em; }
|
|
@@ -273,7 +273,7 @@ __vunor_palette_options {background-image: url("data:image/gif;base64,eyJjb2xvcn
|
|
|
273
273
|
.as-wf-finish-option{position:relative;height:var(--v-fingertip);height:32px;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;gap:0.382em;border-radius:4px;padding-left:1em;padding-right:1em;font-weight:700;letter-spacing:0.025em;--current-bg:var(--scope-color-500);--current-text:0 0 0;--current-icon:0 0 0;--un-bg-opacity:0;background-color:rgb(var(--current-bg) / 0);--un-text-opacity:0.8;color:rgb(var(--current-text) / 0.8);--un-icon-opacity:0.5;}
|
|
274
274
|
.as-wf-finish-primary{position:relative;height:var(--v-fingertip);height:32px;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;gap:0.382em;border-radius:4px;padding-left:1em;padding-right:1em;font-weight:700;letter-spacing:0.025em;--current-bg:var(--scope-color-500);--current-text:255 255 255;--current-icon:255 255 255;--un-icon-opacity:1;--un-bg-opacity:1;background-color:rgb(var(--current-bg) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--current-text) / var(--un-text-opacity));--scope-color:37 99 235;--scope-color-50:241 246 252;--scope-color-100:208 223 246;--scope-color-200:175 200 242;--scope-color-300:144 178 239;--scope-color-400:110 154 237;--scope-color-500:76 129 236;--scope-color-600:37 99 235;--scope-color-700:24 77 199;--scope-color-800:25 62 150;--scope-color-900:23 46 103;--scope-light-0:255 255 255;--scope-dark-0:27 27 27;--scope-light-1:247 248 249;--scope-dark-1:29 31 35;--scope-light-2:240 242 244;--scope-dark-2:32 36 45;--scope-light-3:234 235 238;--scope-dark-3:38 41 47;--scope-light-4:228 228 228;--scope-dark-4:46 46 46;--current-hl:76 129 236;--current-text-muted:120 136 158;--current-icon-muted:120 136 158;--current-text-hover:27 27 27;--current-bg-hover:247 248 249;--current-border-hover:234 235 238;}
|
|
275
275
|
.as-wf-finish-skip{position:relative;height:var(--v-fingertip);height:32px;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;gap:0.382em;overflow:hidden;border-radius:4px;padding-left:1em;padding-right:1em;font-weight:700;letter-spacing:0.025em;--current-bg:var(--scope-color-500);--current-text:255 255 255;--current-icon:255 255 255;--un-icon-opacity:1;--un-bg-opacity:1;background-color:rgb(var(--current-bg) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--current-text) / var(--un-text-opacity));--scope-color:37 99 235;--scope-color-50:241 246 252;--scope-color-100:208 223 246;--scope-color-200:175 200 242;--scope-color-300:144 178 239;--scope-color-400:110 154 237;--scope-color-500:76 129 236;--scope-color-600:37 99 235;--scope-color-700:24 77 199;--scope-color-800:25 62 150;--scope-color-900:23 46 103;--scope-light-0:255 255 255;--scope-dark-0:27 27 27;--scope-light-1:247 248 249;--scope-dark-1:29 31 35;--scope-light-2:240 242 244;--scope-dark-2:32 36 45;--scope-light-3:234 235 238;--scope-dark-3:38 41 47;--scope-light-4:228 228 228;--scope-dark-4:46 46 46;--current-hl:76 129 236;--current-text-muted:120 136 158;--current-icon-muted:120 136 158;--current-text-hover:27 27 27;--current-bg-hover:247 248 249;--current-border-hover:234 235 238;}
|
|
276
|
-
.as-wf-finish-skip-fill{position:absolute;top:0;bottom:0;left:0;width:0;animation:progress-fill var(--progress-duration,4s) linear forwards;background-color:rgb(0 0 0 / 0.2);}
|
|
276
|
+
.as-wf-finish-skip-fill{position:absolute;top:0;bottom:0;left:0;width:0;animation:as-progress-fill var(--progress-duration,4s) linear forwards;background-color:rgb(0 0 0 / 0.2);}
|
|
277
277
|
.as-wf-form-loading{position:relative;min-height:100px;}
|
|
278
278
|
.as-window-scrollbar{position:relative;width:10px;flex-shrink:0;-webkit-user-select:none;user-select:none;}
|
|
279
279
|
.as-window-scrollbar-thumb{position:absolute;left:0;right:0;border-width:2px;border-color:transparent;border-radius:5px;--un-bg-opacity:0.2;background-color:rgba(0, 0, 0, var(--un-bg-opacity));-webkit-background-clip:padding-box;background-clip:padding-box;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition-duration:100ms;}
|
package/dist/css/form.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.i-as-field-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.7542 4.23998L14.3287 3.63522C14.7022 3.24205 14.6943 2.62283 14.3108 2.23936L13.7606 1.68921C13.3772 1.30574 12.7579 1.29781 12.3648 1.67132L11.7857 2.22143M13.7542 4.23998L10.104 8.132C9.96644 8.27868 9.78785 8.38048 9.59154 8.4241L7.3835 8.91478C7.20488 8.95447 7.04553 8.79512 7.08522 8.6165L7.5759 6.40844C7.61952 6.21215 7.72131 6.03356 7.86798 5.89599L11.7857 2.22143M13.7542 4.23998L11.7857 2.22143' stroke='currentColor' stroke-miterlimit='1.7013'/%3E%3Cpath d='M14 10V11L11 14H10V12C10 10.8954 10.8954 10 12 10H14ZM11 12.793L12.793 11H12C11.4477 11 11 11.4477 11 12V12.793Z' fill='currentColor'/%3E%3Cpath d='M4 13V14H11V13H4Z' fill='currentColor'/%3E%3Cpath d='M14 11H13V7L14 6V11Z' fill='currentColor'/%3E%3Cpath d='M4 14V13C3.44772 13 3 12.5523 3 12V4C3 3.44772 3.44772 3 4 3H9L10 2H4C2.89543 2 2 2.89543 2 4V12L2.01074 12.2041C2.113 13.2128 2.96435 14 4 14Z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
|
|
6
6
|
/* layer: preflights */
|
|
7
7
|
@keyframes as-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
|
|
8
|
-
@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }
|
|
8
|
+
@keyframes as-progress-fill { from { width: 0%; } to { width: 100%; } }
|
|
9
9
|
*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}
|
|
10
10
|
body { font-size: 1em; --font-bold: 600; --font-size: 1em; --font-corrected: 1em; --font-bc: -0.1973em; --font-tc: -0.2373em; font-weight: 400; line-height: 1.4346101129141227em; letter-spacing: -0.011em; }
|
|
11
11
|
figcaption { font-size: 0.7861596349150974em; --font-bold: 600; --font-size: 0.7861596349150974em; --font-corrected: 0.7861596349150974em; --font-bc: -0.1203em; --font-tc: -0.1517em; font-weight: 400; line-height: 1.2720062892926278em; letter-spacing: -0.007em; }
|
package/dist/css/table.css
CHANGED
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
.i-as-warning{--un-icon:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1em' height='1em' viewBox='0 0 256 256'%3E%3Cpath 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'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
|
|
32
32
|
/* layer: preflights */
|
|
33
33
|
@keyframes as-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
|
|
34
|
-
@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }
|
|
34
|
+
@keyframes as-progress-fill { from { width: 0%; } to { width: 100%; } }
|
|
35
35
|
*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}
|
|
36
36
|
body { font-size: 1em; --font-bold: 600; --font-size: 1em; --font-corrected: 1em; --font-bc: -0.1973em; --font-tc: -0.2373em; font-weight: 400; line-height: 1.4346101129141227em; letter-spacing: -0.011em; }
|
|
37
37
|
figcaption { font-size: 0.7861596349150974em; --font-bold: 600; --font-size: 0.7861596349150974em; --font-corrected: 0.7861596349150974em; --font-bc: -0.1203em; --font-tc: -0.1517em; font-weight: 400; line-height: 1.2720062892926278em; letter-spacing: -0.007em; }
|
package/dist/css/wf.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
.i-as-field-fill{--un-icon:url("data:image/svg+xml;utf8,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.7542 4.23998L14.3287 3.63522C14.7022 3.24205 14.6943 2.62283 14.3108 2.23936L13.7606 1.68921C13.3772 1.30574 12.7579 1.29781 12.3648 1.67132L11.7857 2.22143M13.7542 4.23998L10.104 8.132C9.96644 8.27868 9.78785 8.38048 9.59154 8.4241L7.3835 8.91478C7.20488 8.95447 7.04553 8.79512 7.08522 8.6165L7.5759 6.40844C7.61952 6.21215 7.72131 6.03356 7.86798 5.89599L11.7857 2.22143M13.7542 4.23998L11.7857 2.22143' stroke='currentColor' stroke-miterlimit='1.7013'/%3E%3Cpath d='M14 10V11L11 14H10V12C10 10.8954 10.8954 10 12 10H14ZM11 12.793L12.793 11H12C11.4477 11 11 11.4477 11 12V12.793Z' fill='currentColor'/%3E%3Cpath d='M4 13V14H11V13H4Z' fill='currentColor'/%3E%3Cpath d='M14 11H13V7L14 6V11Z' fill='currentColor'/%3E%3Cpath d='M4 14V13C3.44772 13 3 12.5523 3 12V4C3 3.44772 3.44772 3 4 3H9L10 2H4C2.89543 2 2 2.89543 2 4V12L2.01074 12.2041C2.113 13.2128 2.96435 14 4 14Z' fill='currentColor'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;width:1em;height:1em;}
|
|
6
6
|
/* layer: preflights */
|
|
7
7
|
@keyframes as-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
|
|
8
|
-
@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }
|
|
8
|
+
@keyframes as-progress-fill { from { width: 0%; } to { width: 100%; } }
|
|
9
9
|
*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}
|
|
10
10
|
body { font-size: 1em; --font-bold: 600; --font-size: 1em; --font-corrected: 1em; --font-bc: -0.1973em; --font-tc: -0.2373em; font-weight: 400; line-height: 1.4346101129141227em; letter-spacing: -0.011em; }
|
|
11
11
|
figcaption { font-size: 0.7861596349150974em; --font-bold: 600; --font-size: 0.7861596349150974em; --font-corrected: 0.7861596349150974em; --font-bc: -0.1203em; --font-tc: -0.1517em; font-weight: 400; line-height: 1.2720062892926278em; letter-spacing: -0.007em; }
|
|
@@ -135,7 +135,7 @@ __vunor_palette_options {background-image: url("data:image/gif;base64,eyJjb2xvcn
|
|
|
135
135
|
.as-wf-finish-option{position:relative;height:var(--v-fingertip);height:32px;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;gap:0.382em;border-radius:4px;padding-left:1em;padding-right:1em;font-weight:700;letter-spacing:0.025em;--current-bg:var(--scope-color-500);--current-text:0 0 0;--current-icon:0 0 0;--un-bg-opacity:0;background-color:rgb(var(--current-bg) / 0);--un-text-opacity:0.8;color:rgb(var(--current-text) / 0.8);--un-icon-opacity:0.5;}
|
|
136
136
|
.as-wf-finish-primary{position:relative;height:var(--v-fingertip);height:32px;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;gap:0.382em;border-radius:4px;padding-left:1em;padding-right:1em;font-weight:700;letter-spacing:0.025em;--current-bg:var(--scope-color-500);--current-text:255 255 255;--current-icon:255 255 255;--un-icon-opacity:1;--un-bg-opacity:1;background-color:rgb(var(--current-bg) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--current-text) / var(--un-text-opacity));--scope-color:37 99 235;--scope-color-50:241 246 252;--scope-color-100:208 223 246;--scope-color-200:175 200 242;--scope-color-300:144 178 239;--scope-color-400:110 154 237;--scope-color-500:76 129 236;--scope-color-600:37 99 235;--scope-color-700:24 77 199;--scope-color-800:25 62 150;--scope-color-900:23 46 103;--scope-light-0:255 255 255;--scope-dark-0:27 27 27;--scope-light-1:247 248 249;--scope-dark-1:29 31 35;--scope-light-2:240 242 244;--scope-dark-2:32 36 45;--scope-light-3:234 235 238;--scope-dark-3:38 41 47;--scope-light-4:228 228 228;--scope-dark-4:46 46 46;--current-hl:76 129 236;--current-text-muted:120 136 158;--current-icon-muted:120 136 158;--current-text-hover:27 27 27;--current-bg-hover:247 248 249;--current-border-hover:234 235 238;}
|
|
137
137
|
.as-wf-finish-skip{position:relative;height:var(--v-fingertip);height:32px;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;gap:0.382em;overflow:hidden;border-radius:4px;padding-left:1em;padding-right:1em;font-weight:700;letter-spacing:0.025em;--current-bg:var(--scope-color-500);--current-text:255 255 255;--current-icon:255 255 255;--un-icon-opacity:1;--un-bg-opacity:1;background-color:rgb(var(--current-bg) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--current-text) / var(--un-text-opacity));--scope-color:37 99 235;--scope-color-50:241 246 252;--scope-color-100:208 223 246;--scope-color-200:175 200 242;--scope-color-300:144 178 239;--scope-color-400:110 154 237;--scope-color-500:76 129 236;--scope-color-600:37 99 235;--scope-color-700:24 77 199;--scope-color-800:25 62 150;--scope-color-900:23 46 103;--scope-light-0:255 255 255;--scope-dark-0:27 27 27;--scope-light-1:247 248 249;--scope-dark-1:29 31 35;--scope-light-2:240 242 244;--scope-dark-2:32 36 45;--scope-light-3:234 235 238;--scope-dark-3:38 41 47;--scope-light-4:228 228 228;--scope-dark-4:46 46 46;--current-hl:76 129 236;--current-text-muted:120 136 158;--current-icon-muted:120 136 158;--current-text-hover:27 27 27;--current-bg-hover:247 248 249;--current-border-hover:234 235 238;}
|
|
138
|
-
.as-wf-finish-skip-fill{position:absolute;top:0;bottom:0;left:0;width:0;animation:progress-fill var(--progress-duration,4s) linear forwards;background-color:rgb(0 0 0 / 0.2);}
|
|
138
|
+
.as-wf-finish-skip-fill{position:absolute;top:0;bottom:0;left:0;width:0;animation:as-progress-fill var(--progress-duration,4s) linear forwards;background-color:rgb(0 0 0 / 0.2);}
|
|
139
139
|
.as-wf-finish-skip-label{position:relative;}
|
|
140
140
|
.as-wf-form-loading{position:relative;min-height:100px;}
|
|
141
141
|
.as-multi-select-content{z-index:100;z-index:50;width:var(--reka-combobox-trigger-width);display:flex;flex-direction:column;overflow:hidden;border-width:1px;border-radius:6px;--un-shadow:0 0 10px rgba(0,0,0,0.1),0 4px 20px rgba(0,0,0,0.15);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow);--current-bg:var(--scope-light-0);--current-text:var(--scope-dark-1);--current-icon:var(--scope-dark-1);--current-border:var(--scope-color-100);--current-border:143 157 175;--current-bg:var(--scope-light-1);--current-text:var(--scope-dark-0);--current-icon:var(--scope-dark-0);--current-text-muted:var(--scope-dark-2);--current-icon-muted:var(--scope-dark-2);--current-bg-hover:var(--scope-light-2);--current-border-hover:var(--scope-light-3);--current-text-hover:var(--scope-dark-0);--current-border:120 136 158;--un-bg-opacity:1;background-color:rgb(var(--current-bg) / var(--un-bg-opacity));--un-text-opacity:1;color:rgb(var(--current-text) / var(--un-text-opacity));--un-border-opacity:1;border-color:rgb(var(--current-border) / var(--un-border-opacity));--un-icon-opacity:1;--un-border-opacity:0.2;border-color:rgb(var(--current-border) / 0.2);--scope-color:37 99 235;--scope-color-50:241 246 252;--scope-color-100:208 223 246;--scope-color-200:175 200 242;--scope-color-300:144 178 239;--scope-color-400:110 154 237;--scope-color-500:76 129 236;--scope-color-600:37 99 235;--scope-color-700:24 77 199;--scope-color-800:25 62 150;--scope-color-900:23 46 103;--scope-light-0:255 255 255;--scope-dark-0:27 27 27;--scope-light-1:247 248 249;--scope-dark-1:29 31 35;--scope-light-2:240 242 244;--scope-dark-2:32 36 45;--scope-light-3:234 235 238;--scope-dark-3:38 41 47;--scope-light-4:228 228 228;--scope-dark-4:46 46 46;--current-hl:76 129 236;--current-text-muted:120 136 158;--current-icon-muted:120 136 158;--current-text-hover:27 27 27;--current-bg-hover:247 248 249;--current-border-hover:234 235 238;}
|
package/dist/index.cjs
CHANGED
|
@@ -102,7 +102,7 @@ const bakedIcons = {
|
|
|
102
102
|
//#region src/shortcuts/common/c8-progress.ts
|
|
103
103
|
const c8ProgressShortcuts = (0, vunor_theme.defineShortcuts)({
|
|
104
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]",
|
|
105
|
+
"c8-progress-fill": "absolute inset-y-0 left-0 w-0 bg-black/20 animate-[as-progress-fill_var(--progress-duration,4s)_linear_forwards]",
|
|
106
106
|
"c8-progress-label": "relative"
|
|
107
107
|
});
|
|
108
108
|
//#endregion
|
|
@@ -1288,6 +1288,33 @@ function bakedIconsPreset(overrides) {
|
|
|
1288
1288
|
return (0, _unocss_preset_icons.default)({ collections: { as: (name) => collection[name] } });
|
|
1289
1289
|
}
|
|
1290
1290
|
/**
|
|
1291
|
+
* Baked-in vunor theme defaults atscript-ui has shipped since day one.
|
|
1292
|
+
* Any field a consumer omits from `asPresetVunor({ vunor: ... })` falls
|
|
1293
|
+
* back to the value here. Exported so consumers can read the defaults
|
|
1294
|
+
* if they want to extend (rather than replace) a nested map.
|
|
1295
|
+
*/
|
|
1296
|
+
const defaultAsVunorOptions = {
|
|
1297
|
+
baseRadius: "4px",
|
|
1298
|
+
fingertip: {
|
|
1299
|
+
xs: "20px",
|
|
1300
|
+
s: "28px",
|
|
1301
|
+
m: "32px",
|
|
1302
|
+
l: "36px",
|
|
1303
|
+
xl: "40px"
|
|
1304
|
+
},
|
|
1305
|
+
palette: {
|
|
1306
|
+
colors: {
|
|
1307
|
+
primary: "#2563eb",
|
|
1308
|
+
grey: "#64748b",
|
|
1309
|
+
neutral: "#475569",
|
|
1310
|
+
error: "#dc2626"
|
|
1311
|
+
},
|
|
1312
|
+
lightest: .97,
|
|
1313
|
+
darkest: .22,
|
|
1314
|
+
layersDepth: .08
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
/**
|
|
1291
1318
|
* Preset entry that injects the `@keyframes as-shimmer` definition used by
|
|
1292
1319
|
* `<AsWindowSkeletonRow>`'s gradient animation. Lives at preset level so the
|
|
1293
1320
|
* keyframes are emitted exactly once into the consumer's UnoCSS output (not
|
|
@@ -1298,15 +1325,15 @@ const shimmerKeyframesPreset = {
|
|
|
1298
1325
|
preflights: [{ getCSS: () => "@keyframes as-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }" }]
|
|
1299
1326
|
};
|
|
1300
1327
|
/**
|
|
1301
|
-
* Preset entry that injects the `@keyframes progress-fill` definition
|
|
1302
|
-
* the `c8-progress-fill` shortcut (and any other consumer that wants
|
|
1303
|
-
* left-to-right width fill). Duration is supplied per-instance via
|
|
1304
|
-
* `--progress-duration` CSS custom property on the host element, so the
|
|
1305
|
-
* keyframes serve every timed-fill UI — no per-duration class explosion.
|
|
1328
|
+
* Preset entry that injects the `@keyframes as-progress-fill` definition
|
|
1329
|
+
* driving the `c8-progress-fill` shortcut (and any other consumer that wants
|
|
1330
|
+
* a 0→100% left-to-right width fill). Duration is supplied per-instance via
|
|
1331
|
+
* the `--progress-duration` CSS custom property on the host element, so the
|
|
1332
|
+
* same keyframes serve every timed-fill UI — no per-duration class explosion.
|
|
1306
1333
|
*/
|
|
1307
1334
|
const progressKeyframesPreset = {
|
|
1308
1335
|
name: "atscript-ui-progress-keyframes",
|
|
1309
|
-
preflights: [{ getCSS: () => "@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }" }]
|
|
1336
|
+
preflights: [{ getCSS: () => "@keyframes as-progress-fill { from { width: 0%; } to { width: 100%; } }" }]
|
|
1310
1337
|
};
|
|
1311
1338
|
/**
|
|
1312
1339
|
* No-op marker classes referenced by other shortcuts. UnoCSS warns
|
|
@@ -1375,35 +1402,41 @@ const formGridSafelistPreset = {
|
|
|
1375
1402
|
return list;
|
|
1376
1403
|
})()
|
|
1377
1404
|
};
|
|
1405
|
+
/**
|
|
1406
|
+
* Merges consumer-supplied vunor options on top of `defaultAsVunorOptions`.
|
|
1407
|
+
* `palette.colors` and `fingertip` shallow-merge per-key so a consumer can
|
|
1408
|
+
* override one entry without redeclaring the whole map; every other field
|
|
1409
|
+
* replaces the default outright.
|
|
1410
|
+
*/
|
|
1411
|
+
function mergeVunorOptions(user) {
|
|
1412
|
+
if (!user) return defaultAsVunorOptions;
|
|
1413
|
+
const { fingertip, palette, ...rest } = user;
|
|
1414
|
+
return {
|
|
1415
|
+
...defaultAsVunorOptions,
|
|
1416
|
+
...rest,
|
|
1417
|
+
fingertip: {
|
|
1418
|
+
...defaultAsVunorOptions.fingertip,
|
|
1419
|
+
...fingertip
|
|
1420
|
+
},
|
|
1421
|
+
palette: palette ? {
|
|
1422
|
+
...defaultAsVunorOptions.palette,
|
|
1423
|
+
...palette,
|
|
1424
|
+
colors: {
|
|
1425
|
+
...defaultAsVunorOptions.palette.colors,
|
|
1426
|
+
...palette.colors
|
|
1427
|
+
}
|
|
1428
|
+
} : defaultAsVunorOptions.palette
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1378
1431
|
function buildBasePresets(options) {
|
|
1379
|
-
const {
|
|
1432
|
+
const { iconOverrides, excludeComponents: _exc, ...vunorOpts } = options;
|
|
1380
1433
|
return [
|
|
1381
1434
|
bakedIconsPreset(iconOverrides),
|
|
1382
1435
|
shimmerKeyframesPreset,
|
|
1383
1436
|
progressKeyframesPreset,
|
|
1384
1437
|
markerRulesPreset,
|
|
1385
1438
|
formGridSafelistPreset,
|
|
1386
|
-
(0, vunor_theme.presetVunor)(
|
|
1387
|
-
baseRadius,
|
|
1388
|
-
fingertip: {
|
|
1389
|
-
xs: "20px",
|
|
1390
|
-
s: "28px",
|
|
1391
|
-
m: "32px",
|
|
1392
|
-
l: "36px",
|
|
1393
|
-
xl: "40px"
|
|
1394
|
-
},
|
|
1395
|
-
palette: {
|
|
1396
|
-
colors: {
|
|
1397
|
-
primary: "#2563eb",
|
|
1398
|
-
grey: "#64748b",
|
|
1399
|
-
neutral: "#475569",
|
|
1400
|
-
error: "#dc2626"
|
|
1401
|
-
},
|
|
1402
|
-
lightest: .97,
|
|
1403
|
-
darkest: .22,
|
|
1404
|
-
layersDepth: .08
|
|
1405
|
-
}
|
|
1406
|
-
})
|
|
1439
|
+
(0, vunor_theme.presetVunor)(mergeVunorOptions(vunorOpts))
|
|
1407
1440
|
];
|
|
1408
1441
|
}
|
|
1409
1442
|
function asPresetVunor(options = {}) {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Extractor, Preset } from "unocss";
|
|
2
2
|
import * as vunor_theme0 from "vunor/theme";
|
|
3
|
-
import { TVunorShortcut, defineShortcuts, mergeVunorShortcuts, toUnoShortcut } from "vunor/theme";
|
|
3
|
+
import { TVunorShortcut, defineShortcuts, mergeVunorShortcuts, presetVunor, toUnoShortcut } from "vunor/theme";
|
|
4
4
|
|
|
5
5
|
//#region src/extractor.d.ts
|
|
6
6
|
interface AsExtractorOptions {
|
|
@@ -14,10 +14,21 @@ interface AsExtractorOptions {
|
|
|
14
14
|
declare function createAsExtractor(opts?: AsExtractorOptions): Extractor;
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/preset.d.ts
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Full `presetVunor()` options object. Re-exported so consumers can type
|
|
19
|
+
* their own theme overrides without reaching into `vunor/theme` themselves.
|
|
20
|
+
*/
|
|
21
|
+
type AsVunorPresetOptions = NonNullable<Parameters<typeof presetVunor>[0]>;
|
|
22
|
+
/**
|
|
23
|
+
* Full `presetVunor()` theme options. Every field is optional and merged on
|
|
24
|
+
* top of the baked atscript-ui defaults (`defaultAsVunorOptions`):
|
|
25
|
+
* - `palette.colors` is shallow-merged so consumers can override one colour
|
|
26
|
+
* without losing the others.
|
|
27
|
+
* - `fingertip` is shallow-merged the same way.
|
|
28
|
+
* - All other fields (`baseRadius`, `typography`, `animation`, …) replace
|
|
29
|
+
* the default wholesale — provide a complete shape if you set them.
|
|
30
|
+
*/
|
|
31
|
+
interface AsBaseUnoConfigOptions extends AsVunorPresetOptions {}
|
|
21
32
|
interface AsPresetVunorOptions extends AsBaseUnoConfigOptions {
|
|
22
33
|
/**
|
|
23
34
|
* Kebab-case component names whose classes the extractor should drop from
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vunor_theme0 from "vunor/theme";
|
|
2
|
-
import { TVunorShortcut, defineShortcuts, mergeVunorShortcuts, toUnoShortcut } from "vunor/theme";
|
|
2
|
+
import { TVunorShortcut, defineShortcuts, mergeVunorShortcuts, presetVunor, toUnoShortcut } from "vunor/theme";
|
|
3
3
|
import { Extractor, Preset } from "unocss";
|
|
4
4
|
|
|
5
5
|
//#region src/extractor.d.ts
|
|
@@ -14,10 +14,21 @@ interface AsExtractorOptions {
|
|
|
14
14
|
declare function createAsExtractor(opts?: AsExtractorOptions): Extractor;
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/preset.d.ts
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Full `presetVunor()` options object. Re-exported so consumers can type
|
|
19
|
+
* their own theme overrides without reaching into `vunor/theme` themselves.
|
|
20
|
+
*/
|
|
21
|
+
type AsVunorPresetOptions = NonNullable<Parameters<typeof presetVunor>[0]>;
|
|
22
|
+
/**
|
|
23
|
+
* Full `presetVunor()` theme options. Every field is optional and merged on
|
|
24
|
+
* top of the baked atscript-ui defaults (`defaultAsVunorOptions`):
|
|
25
|
+
* - `palette.colors` is shallow-merged so consumers can override one colour
|
|
26
|
+
* without losing the others.
|
|
27
|
+
* - `fingertip` is shallow-merged the same way.
|
|
28
|
+
* - All other fields (`baseRadius`, `typography`, `animation`, …) replace
|
|
29
|
+
* the default wholesale — provide a complete shape if you set them.
|
|
30
|
+
*/
|
|
31
|
+
interface AsBaseUnoConfigOptions extends AsVunorPresetOptions {}
|
|
21
32
|
interface AsPresetVunorOptions extends AsBaseUnoConfigOptions {
|
|
22
33
|
/**
|
|
23
34
|
* Kebab-case component names whose classes the extractor should drop from
|
package/dist/index.mjs
CHANGED
|
@@ -78,7 +78,7 @@ const bakedIcons = {
|
|
|
78
78
|
//#region src/shortcuts/common/c8-progress.ts
|
|
79
79
|
const c8ProgressShortcuts = defineShortcuts$1({
|
|
80
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]",
|
|
81
|
+
"c8-progress-fill": "absolute inset-y-0 left-0 w-0 bg-black/20 animate-[as-progress-fill_var(--progress-duration,4s)_linear_forwards]",
|
|
82
82
|
"c8-progress-label": "relative"
|
|
83
83
|
});
|
|
84
84
|
const commonShortcuts = mergeVunorShortcuts$1([defineShortcuts$1({
|
|
@@ -1261,6 +1261,33 @@ function bakedIconsPreset(overrides) {
|
|
|
1261
1261
|
return presetIcons({ collections: { as: (name) => collection[name] } });
|
|
1262
1262
|
}
|
|
1263
1263
|
/**
|
|
1264
|
+
* Baked-in vunor theme defaults atscript-ui has shipped since day one.
|
|
1265
|
+
* Any field a consumer omits from `asPresetVunor({ vunor: ... })` falls
|
|
1266
|
+
* back to the value here. Exported so consumers can read the defaults
|
|
1267
|
+
* if they want to extend (rather than replace) a nested map.
|
|
1268
|
+
*/
|
|
1269
|
+
const defaultAsVunorOptions = {
|
|
1270
|
+
baseRadius: "4px",
|
|
1271
|
+
fingertip: {
|
|
1272
|
+
xs: "20px",
|
|
1273
|
+
s: "28px",
|
|
1274
|
+
m: "32px",
|
|
1275
|
+
l: "36px",
|
|
1276
|
+
xl: "40px"
|
|
1277
|
+
},
|
|
1278
|
+
palette: {
|
|
1279
|
+
colors: {
|
|
1280
|
+
primary: "#2563eb",
|
|
1281
|
+
grey: "#64748b",
|
|
1282
|
+
neutral: "#475569",
|
|
1283
|
+
error: "#dc2626"
|
|
1284
|
+
},
|
|
1285
|
+
lightest: .97,
|
|
1286
|
+
darkest: .22,
|
|
1287
|
+
layersDepth: .08
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
/**
|
|
1264
1291
|
* Preset entry that injects the `@keyframes as-shimmer` definition used by
|
|
1265
1292
|
* `<AsWindowSkeletonRow>`'s gradient animation. Lives at preset level so the
|
|
1266
1293
|
* keyframes are emitted exactly once into the consumer's UnoCSS output (not
|
|
@@ -1271,15 +1298,15 @@ const shimmerKeyframesPreset = {
|
|
|
1271
1298
|
preflights: [{ getCSS: () => "@keyframes as-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }" }]
|
|
1272
1299
|
};
|
|
1273
1300
|
/**
|
|
1274
|
-
* Preset entry that injects the `@keyframes progress-fill` definition
|
|
1275
|
-
* the `c8-progress-fill` shortcut (and any other consumer that wants
|
|
1276
|
-
* left-to-right width fill). Duration is supplied per-instance via
|
|
1277
|
-
* `--progress-duration` CSS custom property on the host element, so the
|
|
1278
|
-
* keyframes serve every timed-fill UI — no per-duration class explosion.
|
|
1301
|
+
* Preset entry that injects the `@keyframes as-progress-fill` definition
|
|
1302
|
+
* driving the `c8-progress-fill` shortcut (and any other consumer that wants
|
|
1303
|
+
* a 0→100% left-to-right width fill). Duration is supplied per-instance via
|
|
1304
|
+
* the `--progress-duration` CSS custom property on the host element, so the
|
|
1305
|
+
* same keyframes serve every timed-fill UI — no per-duration class explosion.
|
|
1279
1306
|
*/
|
|
1280
1307
|
const progressKeyframesPreset = {
|
|
1281
1308
|
name: "atscript-ui-progress-keyframes",
|
|
1282
|
-
preflights: [{ getCSS: () => "@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }" }]
|
|
1309
|
+
preflights: [{ getCSS: () => "@keyframes as-progress-fill { from { width: 0%; } to { width: 100%; } }" }]
|
|
1283
1310
|
};
|
|
1284
1311
|
/**
|
|
1285
1312
|
* No-op marker classes referenced by other shortcuts. UnoCSS warns
|
|
@@ -1348,35 +1375,41 @@ const formGridSafelistPreset = {
|
|
|
1348
1375
|
return list;
|
|
1349
1376
|
})()
|
|
1350
1377
|
};
|
|
1378
|
+
/**
|
|
1379
|
+
* Merges consumer-supplied vunor options on top of `defaultAsVunorOptions`.
|
|
1380
|
+
* `palette.colors` and `fingertip` shallow-merge per-key so a consumer can
|
|
1381
|
+
* override one entry without redeclaring the whole map; every other field
|
|
1382
|
+
* replaces the default outright.
|
|
1383
|
+
*/
|
|
1384
|
+
function mergeVunorOptions(user) {
|
|
1385
|
+
if (!user) return defaultAsVunorOptions;
|
|
1386
|
+
const { fingertip, palette, ...rest } = user;
|
|
1387
|
+
return {
|
|
1388
|
+
...defaultAsVunorOptions,
|
|
1389
|
+
...rest,
|
|
1390
|
+
fingertip: {
|
|
1391
|
+
...defaultAsVunorOptions.fingertip,
|
|
1392
|
+
...fingertip
|
|
1393
|
+
},
|
|
1394
|
+
palette: palette ? {
|
|
1395
|
+
...defaultAsVunorOptions.palette,
|
|
1396
|
+
...palette,
|
|
1397
|
+
colors: {
|
|
1398
|
+
...defaultAsVunorOptions.palette.colors,
|
|
1399
|
+
...palette.colors
|
|
1400
|
+
}
|
|
1401
|
+
} : defaultAsVunorOptions.palette
|
|
1402
|
+
};
|
|
1403
|
+
}
|
|
1351
1404
|
function buildBasePresets(options) {
|
|
1352
|
-
const {
|
|
1405
|
+
const { iconOverrides, excludeComponents: _exc, ...vunorOpts } = options;
|
|
1353
1406
|
return [
|
|
1354
1407
|
bakedIconsPreset(iconOverrides),
|
|
1355
1408
|
shimmerKeyframesPreset,
|
|
1356
1409
|
progressKeyframesPreset,
|
|
1357
1410
|
markerRulesPreset,
|
|
1358
1411
|
formGridSafelistPreset,
|
|
1359
|
-
presetVunor(
|
|
1360
|
-
baseRadius,
|
|
1361
|
-
fingertip: {
|
|
1362
|
-
xs: "20px",
|
|
1363
|
-
s: "28px",
|
|
1364
|
-
m: "32px",
|
|
1365
|
-
l: "36px",
|
|
1366
|
-
xl: "40px"
|
|
1367
|
-
},
|
|
1368
|
-
palette: {
|
|
1369
|
-
colors: {
|
|
1370
|
-
primary: "#2563eb",
|
|
1371
|
-
grey: "#64748b",
|
|
1372
|
-
neutral: "#475569",
|
|
1373
|
-
error: "#dc2626"
|
|
1374
|
-
},
|
|
1375
|
-
lightest: .97,
|
|
1376
|
-
darkest: .22,
|
|
1377
|
-
layersDepth: .08
|
|
1378
|
-
}
|
|
1379
|
-
})
|
|
1412
|
+
presetVunor(mergeVunorOptions(vunorOpts))
|
|
1380
1413
|
];
|
|
1381
1414
|
}
|
|
1382
1415
|
function asPresetVunor(options = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atscript/ui-styles",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"description": "Shared UnoCSS shortcuts, presets, and icon loader for atscript-ui (vue-form, vue-table, vue-wf)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"atscript",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"unplugin-vue-components": "^32.0.0",
|
|
61
61
|
"vitest": "npm:@voidzero-dev/vite-plus-test@latest",
|
|
62
62
|
"vunor": "^0.2",
|
|
63
|
-
"@atscript/vue-
|
|
64
|
-
"@atscript/vue-
|
|
65
|
-
"@atscript/vue-
|
|
63
|
+
"@atscript/vue-wf": "^0.1.66",
|
|
64
|
+
"@atscript/vue-table": "^0.1.66",
|
|
65
|
+
"@atscript/vue-form": "^0.1.66"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@unocss/preset-icons": "^66.6.0",
|