vunor 0.2.2 → 0.3.0
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/ButtonBase.mjs +3 -3
- package/dist/theme.mjs +89 -54
- package/package.json +1 -1
package/dist/ButtonBase.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
1
|
+
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
2
2
|
import { Primitive } from "reka-ui";
|
|
3
3
|
import VuIcon from "vunor/Icon";
|
|
4
4
|
import VuLoadingIndicator from "vunor/LoadingIndicator";
|
|
@@ -46,7 +46,7 @@ var ButtonBase_default = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
},
|
|
47
47
|
setup(__props) {
|
|
48
48
|
return (_ctx, _cache) => {
|
|
49
|
-
return openBlock(),
|
|
49
|
+
return openBlock(), createElementBlock(Fragment, null, [createCommentVNode("\n `group/btn` is no longer read by any vunor rule: since 0.3.0 the label and\n icon take their cue from inherited custom properties instead of\n `group-[.btn-square]/btn:` descendant rules. It stays because it is public\n surface that consumer-authored `group-*/btn:` rules may still key on.\n "), createVNode(unref(Primitive), {
|
|
50
50
|
class: "btn group/btn",
|
|
51
51
|
as: __props.as,
|
|
52
52
|
href: __props.href,
|
|
@@ -77,7 +77,7 @@ var ButtonBase_default = /* @__PURE__ */ defineComponent({
|
|
|
77
77
|
"data-has-icon",
|
|
78
78
|
"data-loading",
|
|
79
79
|
"disabled"
|
|
80
|
-
]);
|
|
80
|
+
])], 2112);
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
});
|
package/dist/theme.mjs
CHANGED
|
@@ -161,11 +161,8 @@ const shortcuts = [
|
|
|
161
161
|
defineShortcuts({
|
|
162
162
|
"rb-container": { "": "flex flex-col gap-$s text-body" },
|
|
163
163
|
"rb-label": { "": "text-label text-grey-400" },
|
|
164
|
-
"rb-root": {
|
|
165
|
-
|
|
166
|
-
"[&.rb-row]:": "flex-wrap",
|
|
167
|
-
"not-[.rb-row]:": "flex-col"
|
|
168
|
-
},
|
|
164
|
+
"rb-root": { "": "flex [flex-direction:var(--rb-dir,column)] gap-x-$l gap-y-$m" },
|
|
165
|
+
"rb-row": { "": "[--rb-dir:row] flex-wrap" },
|
|
169
166
|
"rb-item-wrapper": { "": "flex" },
|
|
170
167
|
"rb-item": {
|
|
171
168
|
"": "disabled-soft select-none shrink-0 current-bg-scope-color-500 bg-current/0 size-1.25em rounded-full cursor-default current-border-grey-500 border-current/40 border-[0.16em] transition-none",
|
|
@@ -232,14 +229,14 @@ const shortcuts = [
|
|
|
232
229
|
];
|
|
233
230
|
//#endregion
|
|
234
231
|
//#region src/theme/shortcuts/btn.ts
|
|
235
|
-
const
|
|
236
|
-
const
|
|
232
|
+
const btnRound = "px-fingertip-half rounded-fingertip-half [--btn-icon-pull:-0.5em]";
|
|
233
|
+
const btnSquare = "size-fingertip px-0 [--btn-label-display:none] [--btn-icon-fs:1.5em] [--btn-icon-pull:0]";
|
|
237
234
|
const btn = defineShortcuts({
|
|
238
235
|
"btn": {
|
|
239
236
|
"": "h-fingertip flex items-center justify-center px-$m gap-$xs select-none fw-bold tracking-wide relative",
|
|
240
237
|
"[&.btn-round]:": btnRound,
|
|
241
238
|
"[&.btn-square]:": btnSquare,
|
|
242
|
-
"[&.btn-round.btn-square]:": "px-0",
|
|
239
|
+
"[&.btn-round.btn-square]:": "px-0 [--btn-icon-pull:0]",
|
|
243
240
|
"disabled:": "opacity-80 cursor-not-allowed",
|
|
244
241
|
"[&>span]:data-[loading]:": "opacity-0 pointer-events-none",
|
|
245
242
|
"[&>div:not(.loading-indicator-wrapper)]:data-[loading]:": "opacity-0 pointer-events-none",
|
|
@@ -247,17 +244,10 @@ const btn = defineShortcuts({
|
|
|
247
244
|
},
|
|
248
245
|
"btn-round": { "": btnRound },
|
|
249
246
|
"btn-square": { "": btnSquare },
|
|
250
|
-
"btn-label": {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
"btn-icon": {
|
|
255
|
-
"": "size-1em font-size-1.25em",
|
|
256
|
-
"group-[.btn-round]/btn:[&.btn-icon-left]:": "ml-[-0.5em]",
|
|
257
|
-
"group-[.btn-round]/btn:[&.btn-icon-right]:": "mr-[-0.5em]",
|
|
258
|
-
"group-[.btn-square]/btn:": "font-size-1.5em m-0!",
|
|
259
|
-
"group-[.btn-round.btn-square]/btn:": "m-0!"
|
|
260
|
-
}
|
|
247
|
+
"btn-label": { "": "lh-1em ellipsis whitespace-nowrap overflow-x-clip overflow-y-visible display-[var(--btn-label-display,revert)]" },
|
|
248
|
+
"btn-icon": { "": "size-1em font-size-[var(--btn-icon-fs,1.25em)]" },
|
|
249
|
+
"btn-icon-left": { "": "ml-[var(--btn-icon-pull,0)]" },
|
|
250
|
+
"btn-icon-right": { "": "mr-[var(--btn-icon-pull,0)]" }
|
|
261
251
|
});
|
|
262
252
|
//#endregion
|
|
263
253
|
//#region src/theme/shortcuts/c8.ts
|
|
@@ -361,6 +351,13 @@ const disabledSoft = defineShortcuts({ "disabled-soft": {
|
|
|
361
351
|
"data-[disabled]:": disabledPaint
|
|
362
352
|
} });
|
|
363
353
|
//#endregion
|
|
354
|
+
//#region src/theme/shortcuts/i8.ts
|
|
355
|
+
const M = "1em";
|
|
356
|
+
const FINGERTIP_HALF = "var(--v-fingertip-half)";
|
|
357
|
+
const pad = (v) => `[--i8-pl:${v}] [--i8-pr:${v}] [--i8-hint-px:${v}]`;
|
|
358
|
+
const filledSignal = `${pad(M)} [--i8-underline-display:none]`;
|
|
359
|
+
const roundSignal = pad(FINGERTIP_HALF);
|
|
360
|
+
//#endregion
|
|
364
361
|
//#region src/theme/shortcuts/raw.ts
|
|
365
362
|
const rawVunorShortcuts = [
|
|
366
363
|
defineShortcuts({
|
|
@@ -371,18 +368,22 @@ const rawVunorShortcuts = [
|
|
|
371
368
|
"focus-within:": "icon-current-hl",
|
|
372
369
|
"[&.i8-flat]:": { "": "border-b-width-[var(--i8-border-width,1px)]" },
|
|
373
370
|
"[&.i8-filled]:": {
|
|
374
|
-
"": "i8-apply-bg current-outline-hl i8-apply-border rounded-r1
|
|
371
|
+
"": "i8-apply-bg current-outline-hl i8-apply-border rounded-r1",
|
|
375
372
|
"data-[active=true]:": "current-border-hl outline i8-apply-outline",
|
|
376
373
|
"focus-within:": "current-border-hl outline i8-apply-outline"
|
|
377
374
|
},
|
|
378
|
-
"[&.i8-transparent]:": "bg-transparent!",
|
|
379
375
|
"[&.i8-round]:": {
|
|
380
376
|
"": "i8-apply-bg current-outline-hl rounded-fingertip-half i8-apply-border",
|
|
381
377
|
"data-[active=true]:": "current-border-hl outline i8-apply-outline",
|
|
382
378
|
"focus-within:": "current-border-hl outline i8-apply-outline"
|
|
383
379
|
},
|
|
380
|
+
"[&.segmented.i8-round:not(:first-child)]:": `[--i8-pl:${M}]`,
|
|
381
|
+
"[&.segmented.i8-round:not(:last-child)]:": `[--i8-pr:${M}]`,
|
|
384
382
|
"group-[[data-error=true]]/i8:": { "": "current-border-error-500 current-outline-error-500 border-opacity-100 border-current" }
|
|
385
383
|
},
|
|
384
|
+
"i8-filled": filledSignal,
|
|
385
|
+
"i8-round": roundSignal,
|
|
386
|
+
"i8-transparent": "bg-transparent!",
|
|
386
387
|
"i8-bare": {
|
|
387
388
|
"": "i8-apply-bg i8-apply-border current-outline-hl rounded-r1 outline-none text-current placeholder:text-current/50 disabled-soft",
|
|
388
389
|
"hover:": "border-current-hover",
|
|
@@ -395,8 +396,7 @@ const rawVunorShortcuts = [
|
|
|
395
396
|
},
|
|
396
397
|
"i8-icon-wrap": "size-fingertip flex items-center justify-center",
|
|
397
398
|
"i8-underline": {
|
|
398
|
-
"
|
|
399
|
-
"": "absolute left-50% h-2px right-50% bottom-[-1px] pointer-events-none transition-all transition-duration-300 will-change-left will-change-right bg-current-hl",
|
|
399
|
+
"": "absolute left-50% h-2px right-50% bottom-[-1px] pointer-events-none transition-all transition-duration-300 will-change-left will-change-right bg-current-hl display-[var(--i8-underline-display,revert)]",
|
|
400
400
|
"group-[[data-active=true]]/i8:": "left-0 right-0"
|
|
401
401
|
},
|
|
402
402
|
"segmented": {
|
|
@@ -412,24 +412,16 @@ const rawVunorShortcuts = [
|
|
|
412
412
|
"i8-input-wrapper": { "": "relative w-full h-full" },
|
|
413
413
|
"i8-input": {
|
|
414
414
|
"": "w-full outline-none h-full bg-transparent",
|
|
415
|
-
"
|
|
416
|
-
"
|
|
415
|
+
"[&:not([data-has-prepend=true])]:": "pl-[var(--i8-pl,0)]",
|
|
416
|
+
"[&:not([data-has-append=true])]:": "pr-[var(--i8-pr,0)]",
|
|
417
417
|
"selection:": "bg-scope-color-500 text-white",
|
|
418
|
-
"group-[
|
|
419
|
-
"group-[.i8-round]/i8:[&:not([data-has-append=true])]:": "pr-fingertip-half",
|
|
420
|
-
"group-[[data-has-label]]/i8:": "pt-$m",
|
|
421
|
-
"group-[.segmented.i8-round:not(:first-child)]/i8:[&:not([data-has-prepend=true])]:": "pl-$m",
|
|
422
|
-
"group-[.segmented.i8-round:not(:last-child)]/i8:[&:not([data-has-append=true])]:": "pr-$m"
|
|
418
|
+
"group-[[data-has-label]]/i8:": "pt-$m"
|
|
423
419
|
},
|
|
424
420
|
"i8-textarea": {
|
|
425
421
|
"": "w-full outline-none h-full bg-transparent text-body",
|
|
426
|
-
"
|
|
427
|
-
"
|
|
428
|
-
"selection:": "bg-scope-color-500 text-white"
|
|
429
|
-
"group-[.i8-round]/i8:[&:not([data-has-prepend=true])]:": "pl-fingertip-half",
|
|
430
|
-
"group-[.i8-round]/i8:[&:not([data-has-append=true])]:": "pr-fingertip-half",
|
|
431
|
-
"group-[.segmented.i8-round:not(:first-child)]/i8:[&:not([data-has-prepend=true])]:": "pl-$m",
|
|
432
|
-
"group-[.segmented.i8-round:not(:last-child)]/i8:[&:not([data-has-append=true])]:": "pr-$m"
|
|
422
|
+
"[&:not([data-has-prepend=true])]:": "pl-[var(--i8-pl,0)]",
|
|
423
|
+
"[&:not([data-has-append=true])]:": "pr-[var(--i8-pr,0)]",
|
|
424
|
+
"selection:": "bg-scope-color-500 text-white"
|
|
433
425
|
},
|
|
434
426
|
"i8-ta-wrapper": {
|
|
435
427
|
"": "w-full pt-0.75em",
|
|
@@ -444,21 +436,12 @@ const rawVunorShortcuts = [
|
|
|
444
436
|
},
|
|
445
437
|
"i8-label-wrapper": {
|
|
446
438
|
"": "pointer-events-none absolute left-0 right-0 bottom-0 top-0",
|
|
447
|
-
"
|
|
448
|
-
"
|
|
449
|
-
"group-[.i8-filled]/i8:": "px-$m",
|
|
450
|
-
"group-[.i8-round]/i8:[&:not([data-has-prepend=true])]:": "pl-fingertip-half",
|
|
451
|
-
"group-[.i8-round]/i8:[&:not([data-has-append=true])]:": "pr-fingertip-half",
|
|
452
|
-
"group-[.segmented.i8-round:not(:first-child)]/i8:[&:not([data-has-prepend=true])]:": "pl-$m",
|
|
453
|
-
"group-[.segmented.i8-round:not(:last-child)]/i8:[&:not([data-has-append=true])]:": "pr-$m"
|
|
439
|
+
"[&:not([data-has-prepend=true])]:": "pl-[var(--i8-pl,0)]",
|
|
440
|
+
"[&:not([data-has-append=true])]:": "pr-[var(--i8-pr,0)]"
|
|
454
441
|
},
|
|
455
442
|
"i8-hint": { "": "text-caption pt-$xs text-grey-400 flex-1" },
|
|
456
443
|
"i8-counter": { "": "text-caption pt-$xs text-grey-400" },
|
|
457
|
-
"i8-hint-wrapper": {
|
|
458
|
-
"": "relative flex justify-between",
|
|
459
|
-
"group-[.i8-round]/i8:": "px-fingertip-half",
|
|
460
|
-
"group-[.i8-filled]/i8:": "px-$m"
|
|
461
|
-
},
|
|
444
|
+
"i8-hint-wrapper": { "": "relative flex justify-between px-[var(--i8-hint-px,0)]" },
|
|
462
445
|
"i8-hint-wrapper-stack": { "": "relative flex justify-between" },
|
|
463
446
|
"i8-stack-label": { "": "relative pb-$xxs" },
|
|
464
447
|
"i8-prepend": {
|
|
@@ -590,6 +573,8 @@ const componentClasses = {
|
|
|
590
573
|
"[grid-area:_title]",
|
|
591
574
|
"btn",
|
|
592
575
|
"btn-icon",
|
|
576
|
+
"btn-icon-left",
|
|
577
|
+
"btn-icon-right",
|
|
593
578
|
"btn-label",
|
|
594
579
|
"c8-flat",
|
|
595
580
|
"fw-$bold",
|
|
@@ -598,6 +583,7 @@ const componentClasses = {
|
|
|
598
583
|
"loading-indicator",
|
|
599
584
|
"loading-indicator-ring",
|
|
600
585
|
"mb-$s",
|
|
586
|
+
"surface",
|
|
601
587
|
"text-body-s",
|
|
602
588
|
"toast-root",
|
|
603
589
|
"toasts-viewport"
|
|
@@ -605,24 +591,32 @@ const componentClasses = {
|
|
|
605
591
|
Button: [
|
|
606
592
|
"btn",
|
|
607
593
|
"btn-icon",
|
|
594
|
+
"btn-icon-left",
|
|
595
|
+
"btn-icon-right",
|
|
608
596
|
"btn-label",
|
|
609
597
|
"icon-color",
|
|
610
598
|
"icon-size",
|
|
611
599
|
"loading-indicator",
|
|
612
|
-
"loading-indicator-ring"
|
|
600
|
+
"loading-indicator-ring",
|
|
601
|
+
"surface"
|
|
613
602
|
],
|
|
614
603
|
ButtonBase: [
|
|
615
604
|
"btn",
|
|
616
605
|
"btn-icon",
|
|
606
|
+
"btn-icon-left",
|
|
607
|
+
"btn-icon-right",
|
|
617
608
|
"btn-label",
|
|
618
609
|
"icon-color",
|
|
619
610
|
"icon-size",
|
|
620
611
|
"loading-indicator",
|
|
621
|
-
"loading-indicator-ring"
|
|
612
|
+
"loading-indicator-ring",
|
|
613
|
+
"surface"
|
|
622
614
|
],
|
|
623
615
|
Calendar: [
|
|
624
616
|
"btn",
|
|
625
617
|
"btn-icon",
|
|
618
|
+
"btn-icon-left",
|
|
619
|
+
"btn-icon-right",
|
|
626
620
|
"btn-label",
|
|
627
621
|
"btn-square",
|
|
628
622
|
"c8-flat",
|
|
@@ -648,6 +642,7 @@ const componentClasses = {
|
|
|
648
642
|
"relative",
|
|
649
643
|
"rounded",
|
|
650
644
|
"select-none",
|
|
645
|
+
"surface",
|
|
651
646
|
"text-center"
|
|
652
647
|
],
|
|
653
648
|
Card: [
|
|
@@ -717,6 +712,7 @@ const componentClasses = {
|
|
|
717
712
|
"i8-before",
|
|
718
713
|
"i8-border-none",
|
|
719
714
|
"i8-counter",
|
|
715
|
+
"i8-filled",
|
|
720
716
|
"i8-hint",
|
|
721
717
|
"i8-hint-wrapper",
|
|
722
718
|
"i8-hint-wrapper-stack",
|
|
@@ -729,6 +725,7 @@ const componentClasses = {
|
|
|
729
725
|
"i8-loading",
|
|
730
726
|
"i8-outline-none",
|
|
731
727
|
"i8-prepend",
|
|
728
|
+
"i8-round",
|
|
732
729
|
"i8-stack-label",
|
|
733
730
|
"i8-ta-wrapper",
|
|
734
731
|
"i8-textarea",
|
|
@@ -773,6 +770,8 @@ const componentClasses = {
|
|
|
773
770
|
"bottom-0",
|
|
774
771
|
"btn",
|
|
775
772
|
"btn-icon",
|
|
773
|
+
"btn-icon-left",
|
|
774
|
+
"btn-icon-right",
|
|
776
775
|
"btn-label",
|
|
777
776
|
"btn-square",
|
|
778
777
|
"c8-flat",
|
|
@@ -801,6 +800,7 @@ const componentClasses = {
|
|
|
801
800
|
"i8-append",
|
|
802
801
|
"i8-before",
|
|
803
802
|
"i8-counter",
|
|
803
|
+
"i8-filled",
|
|
804
804
|
"i8-hint",
|
|
805
805
|
"i8-hint-wrapper",
|
|
806
806
|
"i8-hint-wrapper-stack",
|
|
@@ -812,6 +812,7 @@ const componentClasses = {
|
|
|
812
812
|
"i8-label-wrapper",
|
|
813
813
|
"i8-loading",
|
|
814
814
|
"i8-prepend",
|
|
815
|
+
"i8-round",
|
|
815
816
|
"i8-stack-label",
|
|
816
817
|
"i8-ta-wrapper",
|
|
817
818
|
"i8-textarea",
|
|
@@ -833,6 +834,7 @@ const componentClasses = {
|
|
|
833
834
|
"scope-error",
|
|
834
835
|
"segmented",
|
|
835
836
|
"select-none",
|
|
837
|
+
"surface",
|
|
836
838
|
"text-body",
|
|
837
839
|
"text-center",
|
|
838
840
|
"text-ellipsis",
|
|
@@ -847,6 +849,8 @@ const componentClasses = {
|
|
|
847
849
|
"bottom-0",
|
|
848
850
|
"btn",
|
|
849
851
|
"btn-icon",
|
|
852
|
+
"btn-icon-left",
|
|
853
|
+
"btn-icon-right",
|
|
850
854
|
"btn-label",
|
|
851
855
|
"btn-square",
|
|
852
856
|
"c8-flat",
|
|
@@ -895,6 +899,7 @@ const componentClasses = {
|
|
|
895
899
|
"rounded",
|
|
896
900
|
"segmented",
|
|
897
901
|
"select-none",
|
|
902
|
+
"surface",
|
|
898
903
|
"text-center",
|
|
899
904
|
"top-0"
|
|
900
905
|
],
|
|
@@ -908,6 +913,8 @@ const componentClasses = {
|
|
|
908
913
|
DatePickerPopup: [
|
|
909
914
|
"btn",
|
|
910
915
|
"btn-icon",
|
|
916
|
+
"btn-icon-left",
|
|
917
|
+
"btn-icon-right",
|
|
911
918
|
"btn-label",
|
|
912
919
|
"btn-square",
|
|
913
920
|
"c8-flat",
|
|
@@ -932,6 +939,7 @@ const componentClasses = {
|
|
|
932
939
|
"relative",
|
|
933
940
|
"rounded",
|
|
934
941
|
"select-none",
|
|
942
|
+
"surface",
|
|
935
943
|
"text-center"
|
|
936
944
|
],
|
|
937
945
|
DelayedSwitch: ["visible"],
|
|
@@ -946,6 +954,8 @@ const componentClasses = {
|
|
|
946
954
|
"border-grey-500/50",
|
|
947
955
|
"btn",
|
|
948
956
|
"btn-icon",
|
|
957
|
+
"btn-icon-left",
|
|
958
|
+
"btn-icon-right",
|
|
949
959
|
"btn-label",
|
|
950
960
|
"btn-square",
|
|
951
961
|
"c8-flat",
|
|
@@ -1026,6 +1036,7 @@ const componentClasses = {
|
|
|
1026
1036
|
"slider-range",
|
|
1027
1037
|
"slider-thumb",
|
|
1028
1038
|
"slider-track",
|
|
1039
|
+
"surface",
|
|
1029
1040
|
"surface-500",
|
|
1030
1041
|
"tab",
|
|
1031
1042
|
"tabs-indicator",
|
|
@@ -1057,6 +1068,8 @@ const componentClasses = {
|
|
|
1057
1068
|
"b",
|
|
1058
1069
|
"btn",
|
|
1059
1070
|
"btn-icon",
|
|
1071
|
+
"btn-icon-left",
|
|
1072
|
+
"btn-icon-right",
|
|
1060
1073
|
"btn-label",
|
|
1061
1074
|
"c8-filled",
|
|
1062
1075
|
"c8-flat",
|
|
@@ -1082,6 +1095,7 @@ const componentClasses = {
|
|
|
1082
1095
|
"px-$card-spacing",
|
|
1083
1096
|
"py-$m",
|
|
1084
1097
|
"rounded",
|
|
1098
|
+
"surface",
|
|
1085
1099
|
"text-card-header",
|
|
1086
1100
|
"text-mt-0"
|
|
1087
1101
|
],
|
|
@@ -1105,6 +1119,7 @@ const componentClasses = {
|
|
|
1105
1119
|
"i8-append",
|
|
1106
1120
|
"i8-before",
|
|
1107
1121
|
"i8-counter",
|
|
1122
|
+
"i8-filled",
|
|
1108
1123
|
"i8-hint",
|
|
1109
1124
|
"i8-hint-wrapper",
|
|
1110
1125
|
"i8-hint-wrapper-stack",
|
|
@@ -1116,6 +1131,7 @@ const componentClasses = {
|
|
|
1116
1131
|
"i8-label-wrapper",
|
|
1117
1132
|
"i8-loading",
|
|
1118
1133
|
"i8-prepend",
|
|
1134
|
+
"i8-round",
|
|
1119
1135
|
"i8-stack-label",
|
|
1120
1136
|
"i8-ta-wrapper",
|
|
1121
1137
|
"i8-textarea",
|
|
@@ -1147,6 +1163,7 @@ const componentClasses = {
|
|
|
1147
1163
|
"flex-grow",
|
|
1148
1164
|
"i8",
|
|
1149
1165
|
"i8-append",
|
|
1166
|
+
"i8-filled",
|
|
1150
1167
|
"i8-icon-clickable",
|
|
1151
1168
|
"i8-icon-wrap",
|
|
1152
1169
|
"i8-input",
|
|
@@ -1155,6 +1172,7 @@ const componentClasses = {
|
|
|
1155
1172
|
"i8-label-wrapper",
|
|
1156
1173
|
"i8-loading",
|
|
1157
1174
|
"i8-prepend",
|
|
1175
|
+
"i8-round",
|
|
1158
1176
|
"i8-ta-wrapper",
|
|
1159
1177
|
"i8-textarea",
|
|
1160
1178
|
"i8-underline",
|
|
@@ -1185,6 +1203,8 @@ const componentClasses = {
|
|
|
1185
1203
|
"bottom-0",
|
|
1186
1204
|
"btn",
|
|
1187
1205
|
"btn-icon",
|
|
1206
|
+
"btn-icon-left",
|
|
1207
|
+
"btn-icon-right",
|
|
1188
1208
|
"btn-label",
|
|
1189
1209
|
"cursor-pointer",
|
|
1190
1210
|
"flex",
|
|
@@ -1197,6 +1217,7 @@ const componentClasses = {
|
|
|
1197
1217
|
"i8-append",
|
|
1198
1218
|
"i8-before",
|
|
1199
1219
|
"i8-counter",
|
|
1220
|
+
"i8-filled",
|
|
1200
1221
|
"i8-hint",
|
|
1201
1222
|
"i8-hint-wrapper",
|
|
1202
1223
|
"i8-hint-wrapper-stack",
|
|
@@ -1208,6 +1229,7 @@ const componentClasses = {
|
|
|
1208
1229
|
"i8-label-wrapper",
|
|
1209
1230
|
"i8-loading",
|
|
1210
1231
|
"i8-prepend",
|
|
1232
|
+
"i8-round",
|
|
1211
1233
|
"i8-stack-label",
|
|
1212
1234
|
"i8-ta-wrapper",
|
|
1213
1235
|
"i8-textarea",
|
|
@@ -1233,6 +1255,7 @@ const componentClasses = {
|
|
|
1233
1255
|
"scope-error",
|
|
1234
1256
|
"scope-grey",
|
|
1235
1257
|
"segmented",
|
|
1258
|
+
"surface",
|
|
1236
1259
|
"text-body",
|
|
1237
1260
|
"text-caption",
|
|
1238
1261
|
"text-center",
|
|
@@ -1247,18 +1270,22 @@ const componentClasses = {
|
|
|
1247
1270
|
MenuItem: [
|
|
1248
1271
|
"btn",
|
|
1249
1272
|
"btn-icon",
|
|
1273
|
+
"btn-icon-left",
|
|
1274
|
+
"btn-icon-right",
|
|
1250
1275
|
"btn-label",
|
|
1251
1276
|
"icon-color",
|
|
1252
1277
|
"icon-size",
|
|
1253
1278
|
"loading-indicator",
|
|
1254
1279
|
"loading-indicator-ring",
|
|
1255
1280
|
"menu-item",
|
|
1256
|
-
"scope-grey"
|
|
1281
|
+
"scope-grey",
|
|
1282
|
+
"surface"
|
|
1257
1283
|
],
|
|
1258
1284
|
OverflowContainer: ["flex", "whitespace-nowrap"],
|
|
1259
1285
|
Pagination: [
|
|
1260
1286
|
"btn",
|
|
1261
1287
|
"btn-icon",
|
|
1288
|
+
"btn-icon-left",
|
|
1262
1289
|
"btn-square",
|
|
1263
1290
|
"c8-flat",
|
|
1264
1291
|
"flex",
|
|
@@ -1274,11 +1301,14 @@ const componentClasses = {
|
|
|
1274
1301
|
Popover: [
|
|
1275
1302
|
"btn",
|
|
1276
1303
|
"btn-icon",
|
|
1304
|
+
"btn-icon-left",
|
|
1305
|
+
"btn-icon-right",
|
|
1277
1306
|
"btn-label",
|
|
1278
1307
|
"icon-color",
|
|
1279
1308
|
"icon-size",
|
|
1280
1309
|
"loading-indicator",
|
|
1281
|
-
"loading-indicator-ring"
|
|
1310
|
+
"loading-indicator-ring",
|
|
1311
|
+
"surface"
|
|
1282
1312
|
],
|
|
1283
1313
|
ProgressBar: [
|
|
1284
1314
|
"progress-bar",
|
|
@@ -1296,6 +1326,7 @@ const componentClasses = {
|
|
|
1296
1326
|
"rb-item-wrapper",
|
|
1297
1327
|
"rb-label",
|
|
1298
1328
|
"rb-root",
|
|
1329
|
+
"rb-row",
|
|
1299
1330
|
"text-caption",
|
|
1300
1331
|
"text-error-500",
|
|
1301
1332
|
"text-mt-0",
|
|
@@ -1317,6 +1348,7 @@ const componentClasses = {
|
|
|
1317
1348
|
"i8-append",
|
|
1318
1349
|
"i8-before",
|
|
1319
1350
|
"i8-counter",
|
|
1351
|
+
"i8-filled",
|
|
1320
1352
|
"i8-hint",
|
|
1321
1353
|
"i8-hint-wrapper",
|
|
1322
1354
|
"i8-hint-wrapper-stack",
|
|
@@ -1328,6 +1360,7 @@ const componentClasses = {
|
|
|
1328
1360
|
"i8-label-wrapper",
|
|
1329
1361
|
"i8-loading",
|
|
1330
1362
|
"i8-prepend",
|
|
1363
|
+
"i8-round",
|
|
1331
1364
|
"i8-stack-label",
|
|
1332
1365
|
"i8-ta-wrapper",
|
|
1333
1366
|
"i8-textarea",
|
|
@@ -2069,6 +2102,7 @@ const rules = [
|
|
|
2069
2102
|
"--card-heading-ls": props["letter-spacing"],
|
|
2070
2103
|
"--card-heading-bc": props["--font-bc"],
|
|
2071
2104
|
"--card-heading-tc": props["--font-tc"],
|
|
2105
|
+
"--card-heading-font": props["font-family"] || "inherit",
|
|
2072
2106
|
"padding": "var(--card-spacing)"
|
|
2073
2107
|
};
|
|
2074
2108
|
}
|
|
@@ -2270,7 +2304,8 @@ const themeFactory = (opts) => {
|
|
|
2270
2304
|
"--font-tc": "var(--card-heading-tc)",
|
|
2271
2305
|
"font-weight": "var(--card-heading-weight)",
|
|
2272
2306
|
"line-height": "var(--card-heading-lh)",
|
|
2273
|
-
"letter-spacing": "var(--card-heading-ls)"
|
|
2307
|
+
"letter-spacing": "var(--card-heading-ls)",
|
|
2308
|
+
"font-family": "var(--card-heading-font, inherit)"
|
|
2274
2309
|
}] };
|
|
2275
2310
|
for (const [name, val] of Object.entries(opts.typography)) {
|
|
2276
2311
|
if (!val) continue;
|