@pontive/pontkit-core 5.0.0 → 5.1.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.0.0",
2
+ "version": "5.1.0",
3
3
  "elements": [
4
4
  {
5
5
  "tag": "pont-otp-resend",
package/dist/styles.css CHANGED
@@ -757,27 +757,25 @@
757
757
 
758
758
  --pont-sem-color-input: var(--pont-ref-color-base-200);
759
759
 
760
- /* Interaction roles: what shadcn writes as `dark:` utilities, as tokens, so
761
- component CSS has no mode rules (docs/11-tokens.md §6).
762
- control an outline control's surface (outline button)
763
- control-hover …hovered
764
- control-border …its border
765
- field a text field's surface (input)
766
- surface-hover hovering a transparent surface (ghost button, menu items) */
767
760
  --pont-sem-color-control: var(--pont-sem-color-bg);
768
761
  --pont-sem-color-control-hover: var(--pont-sem-color-muted);
769
- --pont-sem-color-control-border: var(--pont-sem-color-border);
770
- --pont-sem-color-field: transparent;
771
- --pont-sem-color-surface-hover: var(--pont-sem-color-muted);
772
- /* …and more roles from shadcn's `dark:` utilities:
773
- field-hover a select trigger hovered (no change in light)
762
+ --pont-sem-color-control-border: var(--pont-sem-color-input);
763
+
764
+ --pont-sem-color-field: var(--pont-ref-color-transparent);
765
+ --pont-sem-color-field-hover: var(--pont-sem-color-field);
766
+ --pont-sem-color-field-border: var(--pont-sem-color-input);
767
+
768
+ --pont-sem-color-ghost: var(--pont-ref-color-transparent);
769
+ --pont-sem-color-ghost-hover: var(--pont-sem-color-muted);
770
+
771
+ /* Interaction roles: what shadcn writes as `dark:` utilities, as tokens, so
772
+ component CSS has no mode rules (docs/11-tokens.md §6).
774
773
  track a switch's unchecked track
775
774
  thumb / -checked a switch's thumb, off / on
776
775
  segment-fg an inactive segment (tabs trigger)
777
776
  segment-active the active segment's fill / -border its border
778
777
  primary-subtle a checked choice card's fill / -border its border
779
778
  inverse-subtle a chip on an inverted surface (kbd in a tooltip) */
780
- --pont-sem-color-field-hover: var(--pont-sem-color-field);
781
779
  --pont-sem-color-track: var(--pont-sem-color-input);
782
780
  --pont-sem-color-thumb: var(--pont-sem-color-bg);
783
781
  --pont-sem-color-thumb-checked: var(--pont-sem-color-bg);
@@ -1093,29 +1091,34 @@
1093
1091
  --pont-sem-color-control: color-mix(
1094
1092
  in oklab,
1095
1093
  var(--pont-sem-color-input) 30%,
1096
- transparent
1094
+ var(--pont-ref-color-transparent)
1097
1095
  );
1098
1096
  --pont-sem-color-control-hover: color-mix(
1099
1097
  in oklab,
1100
1098
  var(--pont-sem-color-input) 50%,
1101
- transparent
1099
+ var(--pont-ref-color-transparent)
1102
1100
  );
1103
1101
  --pont-sem-color-control-border: var(--pont-sem-color-input);
1102
+
1104
1103
  --pont-sem-color-field: color-mix(
1105
1104
  in oklab,
1106
1105
  var(--pont-sem-color-input) 30%,
1107
- transparent
1108
- );
1109
- --pont-sem-color-surface-hover: color-mix(
1110
- in oklab,
1111
- var(--pont-sem-color-muted) 50%,
1112
- transparent
1106
+ var(--pont-ref-color-transparent)
1113
1107
  );
1114
1108
  --pont-sem-color-field-hover: color-mix(
1115
1109
  in oklab,
1116
1110
  var(--pont-sem-color-input) 50%,
1117
- transparent
1111
+ var(--pont-ref-color-transparent)
1118
1112
  );
1113
+ --pont-sem-color-field-border: var(--pont-sem-color-input);
1114
+
1115
+ --pont-sem-color-ghost: var(--pont-ref-color-transparent);
1116
+ --pont-sem-color-ghost-hover: color-mix(
1117
+ in oklab,
1118
+ var(--pont-sem-color-muted) 50%,
1119
+ var(--pont-ref-color-transparent)
1120
+ );
1121
+
1119
1122
  --pont-sem-color-track: color-mix(
1120
1123
  in oklab,
1121
1124
  var(--pont-sem-color-input) 80%,
@@ -2203,7 +2206,7 @@
2203
2206
  * `--pont-button-*` token (or its default) into a private `--_pont-button-*`
2204
2207
  * on the element. Variants only switch privates; the recipe reads privates
2205
2208
  * and sem tokens. shadcn's `dark:` rules live in sem tokens
2206
- * (sem-color-control, -surface-hover, -destructive-*).
2209
+ * (sem-color-control, -ghost, -ghost-hover, -destructive-*).
2207
2210
  */
2208
2211
  @layer pont.primitives {
2209
2212
  /* ------------------------------------------------------------------ */
@@ -2255,10 +2258,11 @@
2255
2258
  }
2256
2259
 
2257
2260
  [data-pont-button][data-variant="ghost"] {
2261
+ --_pont-button-bg: var(--pont-sem-color-ghost);
2258
2262
  /** @token Text */
2259
2263
  --_pont-button-fg: var(--pont-button-ghost-fg, currentcolor);
2260
2264
  /** @token Background on hover */
2261
- --_pont-button-bg-hover: var(--pont-button-ghost-bg-hover, var(--pont-sem-color-surface-hover));
2265
+ --_pont-button-bg-hover: var(--pont-button-ghost-bg-hover, var(--pont-sem-color-ghost-hover));
2262
2266
  --_pont-button-fg-hover: var(--pont-sem-color-fg);
2263
2267
  }
2264
2268
 
@@ -2554,7 +2558,7 @@
2554
2558
  /** @token Text */
2555
2559
  --_pont-input-fg: var(--pont-input-fg, currentcolor);
2556
2560
  /** @token Border */
2557
- --_pont-input-border-color: var(--pont-input-border-color, var(--pont-sem-color-input));
2561
+ --_pont-input-border-color: var(--pont-input-border-color, var(--pont-sem-color-field-border));
2558
2562
  /** @token Corner radius */
2559
2563
  --_pont-input-radius: var(--pont-input-radius, var(--pont-ref-radius-md));
2560
2564
  /** @token Height */
@@ -2646,7 +2650,7 @@
2646
2650
  /** @token Text */
2647
2651
  --_pont-textarea-fg: var(--pont-textarea-fg, currentcolor);
2648
2652
  /** @token Border */
2649
- --_pont-textarea-border-color: var(--pont-textarea-border-color, var(--pont-sem-color-input));
2653
+ --_pont-textarea-border-color: var(--pont-textarea-border-color, var(--pont-sem-color-field-border));
2650
2654
  /** @token Corner radius */
2651
2655
  --_pont-textarea-radius: var(--pont-textarea-radius, var(--pont-ref-radius-md));
2652
2656
  /** @token Placeholder text */
@@ -2726,7 +2730,7 @@
2726
2730
  /** @token Background */
2727
2731
  --_pont-checkbox-bg: var(--pont-checkbox-bg, var(--pont-sem-color-field));
2728
2732
  /** @token Border */
2729
- --_pont-checkbox-border-color: var(--pont-checkbox-border-color, var(--pont-sem-color-input));
2733
+ --_pont-checkbox-border-color: var(--pont-checkbox-border-color, var(--pont-sem-color-field-border));
2730
2734
  /** @token Corner radius */
2731
2735
  --_pont-checkbox-radius: var(--pont-checkbox-radius, 4px);
2732
2736
  /** @token Background when checked */
@@ -2829,7 +2833,7 @@
2829
2833
  * Tokens (docs/11-tokens.md): `--pont-badge-*`, resolved into privates on the
2830
2834
  * element. Variants only switch privates. shadcn's `dark:` rules are sem
2831
2835
  * tokens: destructive fill sem-color-destructive-subtle, its focus ring
2832
- * sem-color-destructive-ring, ghost hover sem-color-surface-hover.
2836
+ * sem-color-destructive-ring, ghost fill / hover sem-color-ghost / -ghost-hover.
2833
2837
  */
2834
2838
  @layer pont.primitives {
2835
2839
  /* ------------------------------------------------------------------ */
@@ -2884,10 +2888,10 @@
2884
2888
  }
2885
2889
 
2886
2890
  [data-pont-badge][data-variant="ghost"] {
2887
- --_pont-badge-bg: transparent;
2891
+ --_pont-badge-bg: var(--pont-sem-color-ghost);
2888
2892
  --_pont-badge-fg: currentcolor;
2889
2893
  /** @token Background on hover */
2890
- --_pont-badge-bg-hover: var(--pont-badge-ghost-bg-hover, var(--pont-sem-color-surface-hover));
2894
+ --_pont-badge-bg-hover: var(--pont-badge-ghost-bg-hover, var(--pont-sem-color-ghost-hover));
2891
2895
  --_pont-badge-fg-hover: var(--pont-sem-color-muted-fg);
2892
2896
  }
2893
2897
 
@@ -3462,7 +3466,7 @@
3462
3466
  /** @token Text cell weight */
3463
3467
  --_pont-button-group-text-font-weight: var(--pont-button-group-text-font-weight, var(--pont-ref-typography-weight-medium));
3464
3468
  /** @token Separator colour */
3465
- --_pont-button-group-separator-bg: var(--pont-button-group-separator-bg, var(--pont-sem-color-input));
3469
+ --_pont-button-group-separator-bg: var(--pont-button-group-separator-bg, var(--pont-sem-color-control-border));
3466
3470
  }
3467
3471
 
3468
3472
  /* ------------------------------------------------------------------ */
@@ -3532,7 +3536,7 @@
3532
3536
  :is(pont-prim-button-group-separator, [data-pont-button-group-separator]) {
3533
3537
  position: relative;
3534
3538
  align-self: stretch;
3535
- background-color: var(--_pont-button-group-separator-bg, var(--pont-sem-color-input));
3539
+ background-color: var(--_pont-button-group-separator-bg, var(--pont-sem-color-control-border));
3536
3540
  }
3537
3541
  [data-pont-button-group-separator][data-orientation="vertical"] {
3538
3542
  height: var(--pont-sem-dimension-size);
@@ -4199,7 +4203,7 @@
4199
4203
  /** @token Background */
4200
4204
  --_pont-input-group-bg: var(--pont-input-group-bg, var(--pont-input-bg, var(--pont-sem-color-field)));
4201
4205
  /** @token Border */
4202
- --_pont-input-group-border-color: var(--pont-input-group-border-color, var(--pont-input-border-color, var(--pont-sem-color-input)));
4206
+ --_pont-input-group-border-color: var(--pont-input-group-border-color, var(--pont-input-border-color, var(--pont-sem-color-field-border)));
4203
4207
  /** @token Corner radius */
4204
4208
  --_pont-input-group-radius: var(--pont-input-group-radius, var(--pont-input-radius, var(--pont-ref-radius-md)));
4205
4209
  /** @token Height */
@@ -4661,7 +4665,7 @@
4661
4665
  /** @token Background on hover */
4662
4666
  --_pont-native-select-bg-hover: var(--pont-native-select-bg-hover, var(--pont-native-select-bg, var(--pont-sem-color-field-hover)));
4663
4667
  /** @token Border */
4664
- --_pont-native-select-border-color: var(--pont-native-select-border-color, var(--pont-sem-color-input));
4668
+ --_pont-native-select-border-color: var(--pont-native-select-border-color, var(--pont-sem-color-field-border));
4665
4669
  /** @token Corner radius */
4666
4670
  --_pont-native-select-radius: var(--pont-native-select-radius, var(--pont-ref-radius-md));
4667
4671
  /** @token Height */
@@ -5009,7 +5013,7 @@
5009
5013
  /** @token Background */
5010
5014
  --_pont-input-otp-slot-bg: var(--pont-input-otp-slot-bg, var(--pont-sem-color-field));
5011
5015
  /** @token Border */
5012
- --_pont-input-otp-slot-border-color: var(--pont-input-otp-slot-border-color, var(--pont-sem-color-input));
5016
+ --_pont-input-otp-slot-border-color: var(--pont-input-otp-slot-border-color, var(--pont-sem-color-field-border));
5013
5017
  /** @token Width */
5014
5018
  --_pont-input-otp-slot-width: var(--pont-input-otp-slot-width, 2.25rem);
5015
5019
  /** @token Height */
@@ -5249,7 +5253,7 @@
5249
5253
  /** @token Background */
5250
5254
  --_pont-radio-group-item-bg: var(--pont-radio-group-item-bg, var(--pont-sem-color-field));
5251
5255
  /** @token Border */
5252
- --_pont-radio-group-item-border-color: var(--pont-radio-group-item-border-color, var(--pont-sem-color-input));
5256
+ --_pont-radio-group-item-border-color: var(--pont-radio-group-item-border-color, var(--pont-sem-color-field-border));
5253
5257
  /** @token Background when checked */
5254
5258
  --_pont-radio-group-item-bg-checked: var(--pont-radio-group-item-bg-checked, var(--pont-sem-color-primary));
5255
5259
  /** @token Border when checked */
@@ -6222,7 +6226,7 @@
6222
6226
  /** @token Background on hover */
6223
6227
  --_pont-select-trigger-bg-hover: var(--pont-select-trigger-bg-hover, var(--pont-select-trigger-bg, var(--pont-sem-color-field-hover)));
6224
6228
  /** @token Border */
6225
- --_pont-select-trigger-border-color: var(--pont-select-trigger-border-color, var(--pont-sem-color-input));
6229
+ --_pont-select-trigger-border-color: var(--pont-select-trigger-border-color, var(--pont-sem-color-field-border));
6226
6230
  /** @token Corner radius */
6227
6231
  --_pont-select-trigger-radius: var(--pont-select-trigger-radius, var(--pont-ref-radius-md));
6228
6232
  /** @token Height */
@@ -6442,7 +6446,7 @@
6442
6446
  /** @token Background */
6443
6447
  --_pont-combobox-input-bg: var(--pont-combobox-input-bg, var(--pont-input-group-bg, var(--pont-input-bg, var(--pont-sem-color-field))));
6444
6448
  /** @token Border */
6445
- --_pont-combobox-input-border-color: var(--pont-combobox-input-border-color, var(--pont-input-group-border-color, var(--pont-input-border-color, var(--pont-sem-color-input))));
6449
+ --_pont-combobox-input-border-color: var(--pont-combobox-input-border-color, var(--pont-input-group-border-color, var(--pont-input-border-color, var(--pont-sem-color-field-border))));
6446
6450
  /** @token Corner radius */
6447
6451
  --_pont-combobox-input-radius: var(--pont-combobox-input-radius, var(--pont-input-group-radius, var(--pont-input-radius, var(--pont-ref-radius-md))));
6448
6452
  /** @token Height */