@pontive/pontkit-core 4.0.0 → 5.0.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/catalog.json +1 -1
- package/dist/custom-elements.json +1758 -1758
- package/dist/globals.css +1 -1
- package/dist/styles.css +87 -71
- package/dist/theme-golden.json +51 -51
- package/dist/theme.mjs +14 -14
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens.json +76 -10
- package/package.json +1 -1
package/dist/globals.css
CHANGED
package/dist/styles.css
CHANGED
|
@@ -746,8 +746,16 @@
|
|
|
746
746
|
--pont-sem-color-accent-fg: var(--pont-ref-color-base-900);
|
|
747
747
|
|
|
748
748
|
--pont-sem-color-border: var(--pont-ref-color-base-200);
|
|
749
|
+
--pont-sem-color-border-focus: var(--pont-sem-color-base-border);
|
|
750
|
+
--pont-sem-color-border-invalid: var(--pont-sem-color-destructive-border);
|
|
751
|
+
|
|
752
|
+
--pont-sem-color-outline: var(--pont-ref-color-transparent);
|
|
753
|
+
|
|
754
|
+
--pont-sem-color-ring: var(--pont-ref-color-transparent);
|
|
755
|
+
--pont-sem-color-ring-focus: var(--pont-sem-color-base-ring);
|
|
756
|
+
--pont-sem-color-ring-invalid: var(--pont-sem-color-destructive-ring);
|
|
757
|
+
|
|
749
758
|
--pont-sem-color-input: var(--pont-ref-color-base-200);
|
|
750
|
-
--pont-sem-color-ring: var(--pont-ref-color-base-400);
|
|
751
759
|
|
|
752
760
|
/* Interaction roles: what shadcn writes as `dark:` utilities, as tokens, so
|
|
753
761
|
component CSS has no mode rules (docs/11-tokens.md §6).
|
|
@@ -1067,12 +1075,20 @@
|
|
|
1067
1075
|
var(--pont-ref-color-white) 10%,
|
|
1068
1076
|
var(--pont-ref-color-transparent)
|
|
1069
1077
|
);
|
|
1078
|
+
--pont-sem-color-border-focus: var(--pont-sem-color-base-border);
|
|
1079
|
+
--pont-sem-color-border-invalid: var(--pont-sem-color-destructive-border);
|
|
1080
|
+
|
|
1081
|
+
--pont-sem-color-outline: var(--pont-ref-color-transparent);
|
|
1082
|
+
|
|
1083
|
+
--pont-sem-color-ring: var(--pont-ref-color-transparent);
|
|
1084
|
+
--pont-sem-color-ring-focus: var(--pont-sem-color-base-ring);
|
|
1085
|
+
--pont-sem-color-ring-invalid: var(--pont-sem-color-destructive-ring);
|
|
1086
|
+
|
|
1070
1087
|
--pont-sem-color-input: color-mix(
|
|
1071
1088
|
in oklab,
|
|
1072
1089
|
var(--pont-ref-color-white) 15%,
|
|
1073
|
-
transparent
|
|
1090
|
+
var(--pont-ref-color-transparent)
|
|
1074
1091
|
);
|
|
1075
|
-
--pont-sem-color-ring: var(--pont-ref-color-base-500);
|
|
1076
1092
|
|
|
1077
1093
|
--pont-sem-color-control: color-mix(
|
|
1078
1094
|
in oklab,
|
|
@@ -2321,12 +2337,12 @@
|
|
|
2321
2337
|
}
|
|
2322
2338
|
|
|
2323
2339
|
[data-pont-button]:focus-visible {
|
|
2324
|
-
border-color: var(--pont-sem-color-
|
|
2325
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
2340
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
2341
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
2326
2342
|
}
|
|
2327
2343
|
[data-pont-button][aria-invalid="true"] {
|
|
2328
|
-
border-color: var(--pont-sem-color-
|
|
2329
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
2344
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
2345
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
2330
2346
|
}
|
|
2331
2347
|
[data-pont-button][data-variant="destructive"]:focus-visible {
|
|
2332
2348
|
border-color: color-mix(in oklab, var(--pont-sem-color-destructive) 40%, transparent);
|
|
@@ -2529,7 +2545,7 @@
|
|
|
2529
2545
|
*
|
|
2530
2546
|
* Tokens (docs/11-tokens.md): `--pont-input-*`, resolved into privates on the
|
|
2531
2547
|
* element. shadcn's `dark:bg-input/30` is sem-color-field; the invalid
|
|
2532
|
-
* border/ring are sem-color-
|
|
2548
|
+
* border/ring are sem-color-border-invalid / sem-color-ring-invalid.
|
|
2533
2549
|
*/
|
|
2534
2550
|
@layer pont.primitives {
|
|
2535
2551
|
[data-pont-input] {
|
|
@@ -2597,13 +2613,13 @@
|
|
|
2597
2613
|
}
|
|
2598
2614
|
|
|
2599
2615
|
[data-pont-input]:focus-visible {
|
|
2600
|
-
border-color: var(--pont-sem-color-
|
|
2601
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
2616
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
2617
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
2602
2618
|
}
|
|
2603
2619
|
|
|
2604
2620
|
[data-pont-input][aria-invalid="true"] {
|
|
2605
|
-
border-color: var(--pont-sem-color-
|
|
2606
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
2621
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
2622
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
2607
2623
|
}
|
|
2608
2624
|
|
|
2609
2625
|
[data-pont-input]:disabled {
|
|
@@ -2621,7 +2637,7 @@
|
|
|
2621
2637
|
*
|
|
2622
2638
|
* Tokens (docs/11-tokens.md): `--pont-textarea-*`, resolved into privates on
|
|
2623
2639
|
* the element. shadcn's `dark:bg-input/30` is sem-color-field; the invalid
|
|
2624
|
-
* border/ring are sem-color-
|
|
2640
|
+
* border/ring are sem-color-border-invalid / sem-color-ring-invalid.
|
|
2625
2641
|
*/
|
|
2626
2642
|
@layer pont.primitives {
|
|
2627
2643
|
[data-pont-textarea] {
|
|
@@ -2675,13 +2691,13 @@
|
|
|
2675
2691
|
}
|
|
2676
2692
|
|
|
2677
2693
|
[data-pont-textarea]:focus-visible {
|
|
2678
|
-
border-color: var(--pont-sem-color-
|
|
2679
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
2694
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
2695
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
2680
2696
|
}
|
|
2681
2697
|
|
|
2682
2698
|
[data-pont-textarea][aria-invalid="true"] {
|
|
2683
|
-
border-color: var(--pont-sem-color-
|
|
2684
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
2699
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
2700
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
2685
2701
|
}
|
|
2686
2702
|
|
|
2687
2703
|
[data-pont-textarea]:disabled {
|
|
@@ -2703,7 +2719,7 @@
|
|
|
2703
2719
|
*
|
|
2704
2720
|
* Tokens (docs/11-tokens.md): `--pont-checkbox-*`, resolved into privates on
|
|
2705
2721
|
* the element. shadcn's `dark:bg-input/30` is sem-color-field; the invalid
|
|
2706
|
-
* border/ring are sem-color-
|
|
2722
|
+
* border/ring are sem-color-border-invalid / sem-color-ring-invalid.
|
|
2707
2723
|
*/
|
|
2708
2724
|
@layer pont.primitives {
|
|
2709
2725
|
:is(pont-prim-checkbox, pont-checkbox, [data-pont-checkbox]) {
|
|
@@ -2757,13 +2773,13 @@
|
|
|
2757
2773
|
}
|
|
2758
2774
|
|
|
2759
2775
|
[data-pont-checkbox]:focus-visible {
|
|
2760
|
-
border-color: var(--pont-sem-color-
|
|
2761
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
2776
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
2777
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
2762
2778
|
}
|
|
2763
2779
|
|
|
2764
2780
|
[data-pont-checkbox][aria-invalid="true"] {
|
|
2765
|
-
border-color: var(--pont-sem-color-
|
|
2766
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
2781
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
2782
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
2767
2783
|
}
|
|
2768
2784
|
[data-pont-checkbox][aria-invalid="true"]:is([data-checked], [data-indeterminate]) {
|
|
2769
2785
|
border-color: var(--_pont-checkbox-border-color-checked);
|
|
@@ -2937,8 +2953,8 @@
|
|
|
2937
2953
|
}
|
|
2938
2954
|
|
|
2939
2955
|
[data-pont-badge]:focus-visible {
|
|
2940
|
-
border-color: var(--pont-sem-color-
|
|
2941
|
-
--pont-ring-shadow: 0 0 0 3px
|
|
2956
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
2957
|
+
--pont-ring-shadow: 0 0 0 3px var(--pont-sem-color-ring-focus);
|
|
2942
2958
|
}
|
|
2943
2959
|
[data-pont-badge][aria-invalid="true"] {
|
|
2944
2960
|
border-color: var(--pont-sem-color-destructive);
|
|
@@ -4039,8 +4055,8 @@
|
|
|
4039
4055
|
background-color: var(--_pont-field-choice-bg-hover);
|
|
4040
4056
|
}
|
|
4041
4057
|
[data-pont-field-label]:has(> [data-slot="field"]):has(:focus-visible) {
|
|
4042
|
-
border-color: var(--pont-sem-color-
|
|
4043
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
4058
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
4059
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
4044
4060
|
}
|
|
4045
4061
|
[data-pont-field-label] > [data-slot="field"] {
|
|
4046
4062
|
padding: 0.75rem;
|
|
@@ -4175,7 +4191,7 @@
|
|
|
4175
4191
|
* Tokens (docs/11-tokens.md): `--pont-input-group-*`, resolved on the group
|
|
4176
4192
|
* and inherited by its addons. The group draws the field, so its surface tokens
|
|
4177
4193
|
* fall back to the Input's. shadcn's `dark:bg-input/30` is sem-color-field;
|
|
4178
|
-
* the invalid ring is sem-color-
|
|
4194
|
+
* the invalid ring is sem-color-ring-invalid (the border stays
|
|
4179
4195
|
* destructive in both modes, as in shadcn).
|
|
4180
4196
|
*/
|
|
4181
4197
|
@layer pont.primitives {
|
|
@@ -4213,12 +4229,12 @@
|
|
|
4213
4229
|
}
|
|
4214
4230
|
|
|
4215
4231
|
:is(pont-prim-input-group, [data-pont-input-group]):has([data-slot="input-group-control"]:focus-visible) {
|
|
4216
|
-
border-color: var(--pont-sem-color-
|
|
4217
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
4232
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
4233
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
4218
4234
|
}
|
|
4219
4235
|
:is(pont-prim-input-group, [data-pont-input-group]):has([data-slot][aria-invalid="true"]) {
|
|
4220
4236
|
border-color: var(--pont-sem-color-destructive);
|
|
4221
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
4237
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
4222
4238
|
}
|
|
4223
4239
|
[data-slot="combobox-content"] :is(pont-prim-input-group, [data-pont-input-group]):focus-within {
|
|
4224
4240
|
border-color: inherit;
|
|
@@ -4491,8 +4507,8 @@
|
|
|
4491
4507
|
transition-timing-function: var(--pont-sem-motion-trans-easing);
|
|
4492
4508
|
}
|
|
4493
4509
|
[data-pont-item]:focus-visible {
|
|
4494
|
-
border-color: var(--pont-sem-color-
|
|
4495
|
-
--pont-ring-shadow: 0 0 0 3px
|
|
4510
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
4511
|
+
--pont-ring-shadow: 0 0 0 3px var(--pont-sem-color-ring-focus);
|
|
4496
4512
|
}
|
|
4497
4513
|
a[data-pont-item]:hover {
|
|
4498
4514
|
background-color: var(--_pont-item-bg-hover);
|
|
@@ -4635,7 +4651,7 @@
|
|
|
4635
4651
|
* Tokens (docs/11-tokens.md): `--pont-native-select-*`, resolved on the
|
|
4636
4652
|
* wrapper and on the select. shadcn's `dark:bg-input/30 dark:hover:bg-input/50`
|
|
4637
4653
|
* are sem-color-field / -field-hover; the invalid border/ring are
|
|
4638
|
-
* sem-color-
|
|
4654
|
+
* sem-color-border-invalid / sem-color-ring-invalid. `--pont-native-select-icon` (the chevron's
|
|
4639
4655
|
* mask image) is an author knob, not a token.
|
|
4640
4656
|
*/
|
|
4641
4657
|
@layer pont.primitives {
|
|
@@ -4716,12 +4732,12 @@
|
|
|
4716
4732
|
background-color: var(--_pont-native-select-bg-hover);
|
|
4717
4733
|
}
|
|
4718
4734
|
[data-pont-native-select]:focus-visible {
|
|
4719
|
-
border-color: var(--pont-sem-color-
|
|
4720
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
4735
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
4736
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
4721
4737
|
}
|
|
4722
4738
|
[data-pont-native-select][aria-invalid="true"] {
|
|
4723
|
-
border-color: var(--pont-sem-color-
|
|
4724
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
4739
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
4740
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
4725
4741
|
}
|
|
4726
4742
|
[data-pont-native-select]:disabled {
|
|
4727
4743
|
pointer-events: none;
|
|
@@ -4969,7 +4985,7 @@
|
|
|
4969
4985
|
*
|
|
4970
4986
|
* Tokens (docs/11-tokens.md): `--pont-input-otp-*`, resolved on the container
|
|
4971
4987
|
* and inherited by its groups and slots. shadcn's `dark:bg-input/30` is
|
|
4972
|
-
* sem-color-field; the invalid ring is sem-color-
|
|
4988
|
+
* sem-color-field; the invalid ring is sem-color-ring-invalid (the slot
|
|
4973
4989
|
* border stays destructive in both modes, as in shadcn).
|
|
4974
4990
|
*/
|
|
4975
4991
|
@keyframes pont-caret-blink {
|
|
@@ -5058,7 +5074,7 @@
|
|
|
5058
5074
|
}
|
|
5059
5075
|
:is(pont-prim-input-otp-group, [data-pont-input-otp-group]):has([aria-invalid="true"], [data-invalid]) {
|
|
5060
5076
|
border-color: var(--pont-sem-color-destructive);
|
|
5061
|
-
box-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
5077
|
+
box-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
5062
5078
|
}
|
|
5063
5079
|
|
|
5064
5080
|
:is(pont-prim-input-otp-slot, [data-pont-input-otp-slot]) {
|
|
@@ -5094,15 +5110,15 @@
|
|
|
5094
5110
|
|
|
5095
5111
|
[data-pont-input-otp-slot][data-active="true"] {
|
|
5096
5112
|
z-index: 10;
|
|
5097
|
-
border-color: var(--pont-sem-color-
|
|
5098
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
5113
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
5114
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
5099
5115
|
}
|
|
5100
5116
|
[data-pont-input-otp-slot]:is([aria-invalid="true"], [data-invalid]) {
|
|
5101
5117
|
border-color: var(--pont-sem-color-destructive);
|
|
5102
5118
|
}
|
|
5103
5119
|
[data-pont-input-otp-slot]:is([aria-invalid="true"], [data-invalid])[data-active="true"] {
|
|
5104
5120
|
border-color: var(--pont-sem-color-destructive);
|
|
5105
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
5121
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
5106
5122
|
}
|
|
5107
5123
|
|
|
5108
5124
|
[data-pont-input-otp-caret] {
|
|
@@ -5224,7 +5240,7 @@
|
|
|
5224
5240
|
* Tokens (docs/11-tokens.md): `--pont-radio-group-*`, resolved on the group
|
|
5225
5241
|
* and on each item (an item's indicator inherits them). shadcn's
|
|
5226
5242
|
* `dark:bg-input/30` is sem-color-field; the invalid border/ring are
|
|
5227
|
-
* sem-color-
|
|
5243
|
+
* sem-color-border-invalid / sem-color-ring-invalid.
|
|
5228
5244
|
*/
|
|
5229
5245
|
@layer pont.primitives {
|
|
5230
5246
|
:is(pont-prim-radio-group, [data-pont-radio-group], pont-prim-radio-group-item, [data-pont-radio-group-item]) {
|
|
@@ -5280,14 +5296,14 @@
|
|
|
5280
5296
|
}
|
|
5281
5297
|
|
|
5282
5298
|
[data-pont-radio-group-item]:focus-visible {
|
|
5283
|
-
border-color: var(--pont-sem-color-
|
|
5284
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
5299
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
5300
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
5285
5301
|
}
|
|
5286
5302
|
|
|
5287
5303
|
/* aria-invalid may sit on the item or on the group */
|
|
5288
5304
|
:is([data-pont-radio-group-item][aria-invalid="true"], [data-pont-radio-group][aria-invalid="true"] [data-pont-radio-group-item]) {
|
|
5289
|
-
border-color: var(--pont-sem-color-
|
|
5290
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
5305
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
5306
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
5291
5307
|
}
|
|
5292
5308
|
:is([data-pont-radio-group-item][aria-invalid="true"], [data-pont-radio-group][aria-invalid="true"] [data-pont-radio-group-item])[data-checked] {
|
|
5293
5309
|
border-color: var(--_pont-radio-group-item-border-color-checked);
|
|
@@ -5457,7 +5473,7 @@
|
|
|
5457
5473
|
}
|
|
5458
5474
|
[data-pont-slider-thumb]:hover,
|
|
5459
5475
|
[data-pont-slider-thumb]:focus-visible {
|
|
5460
|
-
--pont-ring-shadow: 0 0 0 4px
|
|
5476
|
+
--pont-ring-shadow: 0 0 0 4px var(--pont-sem-color-ring-focus);
|
|
5461
5477
|
}
|
|
5462
5478
|
/* `disabled:` in shadcn never matches the thumb div; the control's opacity covers it. */
|
|
5463
5479
|
[data-pont-slider-thumb][data-disabled] {
|
|
@@ -5484,7 +5500,7 @@
|
|
|
5484
5500
|
* Tokens (docs/11-tokens.md): `--pont-switch-*`, resolved on the root and
|
|
5485
5501
|
* inherited by the thumb. shadcn's `dark:` rules are sem tokens: the unchecked
|
|
5486
5502
|
* track is sem-color-track, the thumb sem-color-thumb / -thumb-checked, the
|
|
5487
|
-
* invalid border/ring sem-color-
|
|
5503
|
+
* invalid border/ring sem-color-border-invalid / sem-color-ring-invalid.
|
|
5488
5504
|
*/
|
|
5489
5505
|
@layer pont.primitives {
|
|
5490
5506
|
:is(pont-prim-switch, pont-switch, [data-pont-switch]) {
|
|
@@ -5534,13 +5550,13 @@
|
|
|
5534
5550
|
}
|
|
5535
5551
|
|
|
5536
5552
|
[data-pont-switch]:focus-visible {
|
|
5537
|
-
border-color: var(--pont-sem-color-
|
|
5538
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
5553
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
5554
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
5539
5555
|
}
|
|
5540
5556
|
|
|
5541
5557
|
[data-pont-switch][aria-invalid="true"] {
|
|
5542
|
-
border-color: var(--pont-sem-color-
|
|
5543
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
5558
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
5559
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
5544
5560
|
}
|
|
5545
5561
|
|
|
5546
5562
|
[data-pont-switch][data-disabled] {
|
|
@@ -5742,9 +5758,9 @@
|
|
|
5742
5758
|
|
|
5743
5759
|
/* After data-active, so a focused active tab shows the ring border too. */
|
|
5744
5760
|
[data-pont-tabs-trigger]:focus-visible {
|
|
5745
|
-
border-color: var(--pont-sem-color-
|
|
5746
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
5747
|
-
outline: 1px solid var(--pont-sem-color-
|
|
5761
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
5762
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
5763
|
+
outline: 1px solid var(--pont-sem-color-border-focus);
|
|
5748
5764
|
}
|
|
5749
5765
|
|
|
5750
5766
|
/* line variant (colours: the privates above) */
|
|
@@ -6197,7 +6213,7 @@
|
|
|
6197
6213
|
* Tokens (docs/11-tokens.md): `--pont-select-*`, resolved on the trigger and
|
|
6198
6214
|
* on the content (its groups, labels and items inherit them). shadcn's
|
|
6199
6215
|
* `dark:bg-input/30 dark:hover:bg-input/50` are sem-color-field / -field-hover;
|
|
6200
|
-
* the invalid border/ring are sem-color-
|
|
6216
|
+
* the invalid border/ring are sem-color-border-invalid / sem-color-ring-invalid.
|
|
6201
6217
|
*/
|
|
6202
6218
|
@layer pont.primitives {
|
|
6203
6219
|
:is([data-pont-select-trigger], pont-prim-select-content, [data-pont-select-content]) {
|
|
@@ -6274,12 +6290,12 @@
|
|
|
6274
6290
|
background-color: var(--_pont-select-trigger-bg-hover);
|
|
6275
6291
|
}
|
|
6276
6292
|
[data-pont-select-trigger]:focus-visible {
|
|
6277
|
-
border-color: var(--pont-sem-color-
|
|
6278
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
6293
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
6294
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
6279
6295
|
}
|
|
6280
6296
|
[data-pont-select-trigger][aria-invalid="true"] {
|
|
6281
|
-
border-color: var(--pont-sem-color-
|
|
6282
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
6297
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
6298
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
6283
6299
|
}
|
|
6284
6300
|
[data-pont-select-trigger]:disabled {
|
|
6285
6301
|
cursor: var(--pont-sem-cursor-disabled);
|
|
@@ -6419,7 +6435,7 @@
|
|
|
6419
6435
|
* on the content (its list, items and labels inherit them). The input is an
|
|
6420
6436
|
* InputGroup, so its tokens fall back to the input group's, then the Input's.
|
|
6421
6437
|
* shadcn's `dark:bg-input/30` is sem-color-field; the invalid border/ring are
|
|
6422
|
-
* sem-color-
|
|
6438
|
+
* sem-color-border-invalid / sem-color-ring-invalid.
|
|
6423
6439
|
*/
|
|
6424
6440
|
@layer pont.primitives {
|
|
6425
6441
|
:is(pont-prim-combobox-input, [data-pont-combobox-input], pont-prim-combobox-content, [data-pont-combobox-content]) {
|
|
@@ -6479,12 +6495,12 @@
|
|
|
6479
6495
|
transition-timing-function: var(--pont-sem-motion-trans-easing);
|
|
6480
6496
|
}
|
|
6481
6497
|
[data-pont-combobox-input]:has(> [data-slot="input-group-control"]:focus-visible) {
|
|
6482
|
-
border-color: var(--pont-sem-color-
|
|
6483
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
6498
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
6499
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
6484
6500
|
}
|
|
6485
6501
|
[data-pont-combobox-input]:has([aria-invalid="true"]) {
|
|
6486
|
-
border-color: var(--pont-sem-color-
|
|
6487
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-
|
|
6502
|
+
border-color: var(--pont-sem-color-border-invalid);
|
|
6503
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-invalid);
|
|
6488
6504
|
}
|
|
6489
6505
|
|
|
6490
6506
|
/* InputGroupInput: Input base + "flex-1 rounded-none border-0 bg-transparent shadow-none ring-0"
|
|
@@ -6706,8 +6722,8 @@
|
|
|
6706
6722
|
padding-inline: 0.375rem;
|
|
6707
6723
|
}
|
|
6708
6724
|
[data-pont-combobox-chips]:focus-within {
|
|
6709
|
-
border-color: var(--pont-sem-color-
|
|
6710
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
6725
|
+
border-color: var(--pont-sem-color-border-focus);
|
|
6726
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
6711
6727
|
}
|
|
6712
6728
|
[data-pont-combobox-chips][data-disabled],
|
|
6713
6729
|
[data-pont-combobox][data-disabled] [data-pont-combobox-chips] {
|
|
@@ -6740,7 +6756,7 @@
|
|
|
6740
6756
|
padding-right: 0;
|
|
6741
6757
|
}
|
|
6742
6758
|
[data-pont-combobox-chip]:focus-visible {
|
|
6743
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
6759
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
6744
6760
|
box-shadow: var(--pont-ring-shadow);
|
|
6745
6761
|
}
|
|
6746
6762
|
/* .cn-combobox-chip-remove "-ml-1 opacity-50 hover:opacity-100" (Button ghost icon-xs) */
|
|
@@ -7667,7 +7683,7 @@
|
|
|
7667
7683
|
transition: opacity 400ms, translate 400ms;
|
|
7668
7684
|
}
|
|
7669
7685
|
[data-pont-toast]:focus-visible {
|
|
7670
|
-
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width)
|
|
7686
|
+
--pont-ring-shadow: 0 0 0 var(--pont-sem-ring-width) var(--pont-sem-color-ring-focus);
|
|
7671
7687
|
}
|
|
7672
7688
|
[data-pont-toaster][data-y-position="top"] [data-pont-toast] {
|
|
7673
7689
|
animation-name: pont-toast-enter-top;
|
|
@@ -7741,7 +7757,7 @@
|
|
|
7741
7757
|
color: var(--_pont-toast-fg);
|
|
7742
7758
|
}
|
|
7743
7759
|
[data-pont-toast] > :is([data-button], [data-close-button]):focus-visible {
|
|
7744
|
-
box-shadow: 0 0 0 2px
|
|
7760
|
+
box-shadow: 0 0 0 2px var(--pont-sem-color-ring-focus);
|
|
7745
7761
|
}
|
|
7746
7762
|
|
|
7747
7763
|
[data-pont-toast] > [data-close-button] {
|