@pontive/pontkit-core 1.14.1 → 1.16.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/styles.css CHANGED
@@ -3464,6 +3464,9 @@
3464
3464
  )
3465
3465
  var(--pont-badge-default-effect-ring-color);
3466
3466
 
3467
+ /* ICON */
3468
+ --pont-badge-default-icon-color: var(--pont-badge-default-typography-color);
3469
+
3467
3470
  /* * HOVER * */
3468
3471
  /* TYPOGRAPHY */
3469
3472
  --pont-badge-default-typography-color-hover: hsl(
@@ -3516,6 +3519,11 @@
3516
3519
 
3517
3520
  --pont-badge-default-effect-opacity-hover: 100%;
3518
3521
 
3522
+ /* ICON */
3523
+ --pont-badge-default-icon-color-hover: var(
3524
+ --pont-badge-default-typography-color-hover
3525
+ );
3526
+
3519
3527
  /* * FOCUS * */
3520
3528
  /* TYPOGRAPHY */
3521
3529
  --pont-badge-default-typography-color-focus: hsl(
@@ -3679,6 +3687,11 @@
3679
3687
  )
3680
3688
  var(--pont-badge-secondary-effect-ring-color);
3681
3689
 
3690
+ /* ICON */
3691
+ --pont-badge-secondary-icon-color: var(
3692
+ --pont-badge-secondary-typography-color
3693
+ );
3694
+
3682
3695
  /* * HOVER * */
3683
3696
  /* TYPOGRAPHY */
3684
3697
  --pont-badge-secondary-typography-color-hover: hsl(
@@ -3733,6 +3746,11 @@
3733
3746
 
3734
3747
  --pont-badge-secondary-effect-opacity-hover: 100%;
3735
3748
 
3749
+ /* ICON */
3750
+ --pont-badge-secondary-icon-color-hover: var(
3751
+ --pont-badge-secondary-typography-color-hover
3752
+ );
3753
+
3736
3754
  /* * FOCUS * */
3737
3755
  /* TYPOGRAPHY */
3738
3756
  --pont-badge-secondary-typography-color-focus: hsl(
@@ -3896,6 +3914,9 @@
3896
3914
  )
3897
3915
  var(--pont-badge-outline-effect-ring-color);
3898
3916
 
3917
+ /* ICON */
3918
+ --pont-badge-outline-icon-color: var(--pont-badge-outline-typography-color);
3919
+
3899
3920
  /* * HOVER * */
3900
3921
  /* TYPOGRAPHY */
3901
3922
  --pont-badge-outline-typography-color-hover: hsl(
@@ -3948,6 +3969,11 @@
3948
3969
 
3949
3970
  --pont-badge-outline-effect-opacity-hover: 100%;
3950
3971
 
3972
+ /* ICON */
3973
+ --pont-badge-outline-icon-color-hover: var(
3974
+ --pont-badge-outline-typography-color-hover
3975
+ );
3976
+
3951
3977
  /* * FOCUS * */
3952
3978
  /* TYPOGRAPHY */
3953
3979
  --pont-badge-outline-typography-color-focus: hsl(var(--pont-sem-color-text));
@@ -4100,6 +4126,9 @@
4100
4126
  )
4101
4127
  var(--pont-badge-ghost-effect-ring-color);
4102
4128
 
4129
+ /* ICON */
4130
+ --pont-badge-ghost-icon-color: var(--pont-badge-ghost-typography-color);
4131
+
4103
4132
  /* * HOVER * */
4104
4133
  /* TYPOGRAPHY */
4105
4134
  --pont-badge-ghost-typography-color-hover: hsl(
@@ -4152,6 +4181,11 @@
4152
4181
 
4153
4182
  --pont-badge-ghost-effect-opacity-hover: 100%;
4154
4183
 
4184
+ /* ICON */
4185
+ --pont-badge-ghost-icon-color-hover: var(
4186
+ --pont-badge-ghost-typography-color-hover
4187
+ );
4188
+
4155
4189
  /* * FOCUS * */
4156
4190
  /* TYPOGRAPHY */
4157
4191
  --pont-badge-ghost-typography-color-focus: hsl(var(--pont-sem-color-text));
@@ -4309,6 +4343,11 @@
4309
4343
  )
4310
4344
  var(--pont-badge-destructive-effect-ring-color);
4311
4345
 
4346
+ /* ICON */
4347
+ --pont-badge-destructive-icon-color: var(
4348
+ --pont-badge-destructive-typography-color
4349
+ );
4350
+
4312
4351
  /* * HOVER * */
4313
4352
  /* TYPOGRAPHY */
4314
4353
  --pont-badge-destructive-typography-color-hover: hsl(
@@ -4365,6 +4404,11 @@
4365
4404
 
4366
4405
  --pont-badge-destructive-effect-opacity-hover: 100%;
4367
4406
 
4407
+ /* ICON */
4408
+ --pont-badge-destructive-icon-color-hover: var(
4409
+ --pont-badge-destructive-typography-color-hover
4410
+ );
4411
+
4368
4412
  /* * FOCUS * */
4369
4413
  /* TYPOGRAPHY */
4370
4414
  --pont-badge-destructive-typography-color-focus: hsl(
@@ -4531,6 +4575,9 @@
4531
4575
  )
4532
4576
  var(--pont-badge-link-effect-ring-color);
4533
4577
 
4578
+ /* ICON */
4579
+ --pont-badge-link-icon-color: var(--pont-badge-link-typography-color);
4580
+
4534
4581
  /* * HOVER * */
4535
4582
  /* TYPOGRAPHY */
4536
4583
  --pont-badge-link-typography-color-hover: hsl(
@@ -4595,6 +4642,11 @@
4595
4642
 
4596
4643
  --pont-badge-link-effect-opacity-hover: 100%;
4597
4644
 
4645
+ /* ICON */
4646
+ --pont-badge-link-icon-color-hover: var(
4647
+ --pont-badge-link-typography-color-hover
4648
+ );
4649
+
4598
4650
  /* * FOCUS * */
4599
4651
  /* TYPOGRAPHY */
4600
4652
  --pont-badge-link-typography-color-focus: hsl(
@@ -5662,6 +5714,62 @@ set its border radius (all corners) to `--pont-ref-radius-lg` for all sizes. */
5662
5714
  var(--pont-button-link-effect-ring-color-invalid);
5663
5715
  }
5664
5716
 
5717
+ /* * -------- BUTTON > ICON (& SPINNER) -------- * */
5718
+
5719
+ :root {
5720
+ --pont-button-default-icon-color: var(--pont-button-default-typography-color);
5721
+ --pont-button-default-icon-color-hover: var(
5722
+ --pont-button-default-typography-color-hover
5723
+ );
5724
+ --pont-button-default-icon-color-expanded: var(
5725
+ --pont-button-default-typography-color-expanded
5726
+ );
5727
+
5728
+ --pont-button-secondary-icon-color: var(
5729
+ --pont-button-secondary-typography-color
5730
+ );
5731
+ --pont-button-secondary-icon-color-hover: var(
5732
+ --pont-button-secondary-typography-color-hover
5733
+ );
5734
+ --pont-button-secondary-icon-color-expanded: var(
5735
+ --pont-button-secondary-typography-color-expanded
5736
+ );
5737
+
5738
+ --pont-button-outline-icon-color: var(--pont-button-outline-typography-color);
5739
+ --pont-button-outline-icon-color-hover: var(
5740
+ --pont-button-outline-typography-color-hover
5741
+ );
5742
+ --pont-button-outline-icon-color-expanded: var(
5743
+ --pont-button-outline-typography-color-expanded
5744
+ );
5745
+
5746
+ --pont-button-ghost-icon-color: var(--pont-button-ghost-typography-color);
5747
+ --pont-button-ghost-icon-color-hover: var(
5748
+ --pont-button-ghost-typography-color-hover
5749
+ );
5750
+ --pont-button-ghost-icon-color-expanded: var(
5751
+ --pont-button-ghost-typography-color-expanded
5752
+ );
5753
+
5754
+ --pont-button-destructive-icon-color: var(
5755
+ --pont-button-destructive-typography-color
5756
+ );
5757
+ --pont-button-destructive-icon-color-hover: var(
5758
+ --pont-button-destructive-typography-color-hover
5759
+ );
5760
+ --pont-button-destructive-icon-color-expanded: var(
5761
+ --pont-button-destructive-typography-color-expanded
5762
+ );
5763
+
5764
+ --pont-button-link-icon-color: var(--pont-button-link-typography-color);
5765
+ --pont-button-link-icon-color-hover: var(
5766
+ --pont-button-link-typography-color-hover
5767
+ );
5768
+ --pont-button-link-icon-color-expanded: var(
5769
+ --pont-button-link-typography-color-expanded
5770
+ );
5771
+ }
5772
+
5665
5773
  /*
5666
5774
  * --------------------------------------------------
5667
5775
  * SIZES
@@ -8430,15 +8538,6 @@ them all being named `--pont-checkbox-icon-*`. */
8430
8538
  * ===========================================================================
8431
8539
  */
8432
8540
 
8433
- /* TODO(label) */
8434
- /*
8435
- group-data-[disabled=true]:pointer-events-none
8436
- group-data-[disabled=true]:opacity-50
8437
-
8438
- peer-disabled:cursor-not-allowed
8439
- peer-disabled:opacity-50
8440
- */
8441
-
8442
8541
  :root {
8443
8542
  /* LAYOUT */
8444
8543
  --pont-label-layout-gap-x: calc(var(--pont-ref-space) * 2);
@@ -8452,15 +8551,15 @@ peer-disabled:opacity-50
8452
8551
  --pont-label-typography-leading: var(--pont-ref-font-line-height-shortest);
8453
8552
  --pont-label-typography-color: hsl(var(--pont-sem-color-text));
8454
8553
 
8455
- /* EFFECT */
8456
- --pont-label-effect-opacity-disabled: var(--pont-sem-opacity-disabled);
8554
+ /* INTERACTIVITY */
8555
+ --pont-label-interactivity-select: var(--pont-ref-interactivity-select-none);
8457
8556
  }
8458
8557
 
8459
8558
  /* * -------- DISABLED -------- * */
8460
8559
 
8461
8560
  :root {
8462
- /* INTERACTIVITY */
8463
- --pont-label-interactivity-select: var(--pont-ref-interactivity-select-none);
8561
+ /* EFFECT */
8562
+ --pont-label-effect-opacity-disabled: var(--pont-sem-opacity-disabled);
8464
8563
  }
8465
8564
 
8466
8565
  /*
@@ -9280,8 +9379,8 @@ peer-disabled:opacity-50
9280
9379
 
9281
9380
  /* TRANSFORM */
9282
9381
  /* Note: shadcn applies this when `data-unchecked` */
9283
- --pont-switch-thumb-transform-translate-x: 0px;
9284
- --pont-switch-thumb-transform-translate-y: 0px;
9382
+ --pont-switch-thumb-transform-translate-x: 0;
9383
+ --pont-switch-thumb-transform-translate-y: 0;
9285
9384
  }
9286
9385
 
9287
9386
  /* * -------- STATES -------- * */
@@ -9296,9 +9395,7 @@ peer-disabled:opacity-50
9296
9395
 
9297
9396
  /* TRANSFORM */
9298
9397
  --pont-switch-thumb-transform-translate-x-checked: calc(100% - 2px);
9299
- --pont-switch-thumb-transform-translate-y-checked: var(
9300
- --pont-switch-thumb-transform-translate-y
9301
- );
9398
+ --pont-switch-thumb-transform-translate-y-checked: 0;
9302
9399
  /* table preview */
9303
9400
  --pont-table-preview-color-bg: var(--pont-sem-color-bg-surface-secondary);
9304
9401
  --pont-table-preview-space-w: var(--pont-ref-space-full);
@@ -11383,6 +11480,16 @@ a[data-pont-badge][data-variant="default"]:hover {
11383
11480
  opacity: var(--pont-badge-default-effect-opacity-hover);
11384
11481
  }
11385
11482
 
11483
+ /* * BADGE > ICON (& SPINNER) * */
11484
+
11485
+ [data-pont-badge][data-variant="default"] svg {
11486
+ color: var(--pont-badge-default-icon-color);
11487
+ }
11488
+
11489
+ a[data-pont-badge][data-variant="default"]:hover svg {
11490
+ color: var(--pont-badge-default-icon-color-hover);
11491
+ }
11492
+
11386
11493
  /* * -------- SECONDARY -------- * */
11387
11494
 
11388
11495
  [data-pont-badge][data-variant="secondary"] {
@@ -11491,6 +11598,16 @@ a[data-pont-badge][data-variant="secondary"]:hover {
11491
11598
  opacity: var(--pont-badge-secondary-effect-opacity-hover);
11492
11599
  }
11493
11600
 
11601
+ /* * BADGE > ICON (& SPINNER) * */
11602
+
11603
+ [data-pont-badge][data-variant="secondary"] svg {
11604
+ color: var(--pont-badge-secondary-icon-color);
11605
+ }
11606
+
11607
+ a[data-pont-badge][data-variant="secondary"]:hover svg {
11608
+ color: var(--pont-badge-secondary-icon-color-hover);
11609
+ }
11610
+
11494
11611
  /* * -------- OUTLINE -------- * */
11495
11612
 
11496
11613
  [data-pont-badge][data-variant="outline"] {
@@ -11599,6 +11716,16 @@ a[data-pont-badge][data-variant="outline"]:hover {
11599
11716
  opacity: var(--pont-badge-outline-effect-opacity-hover);
11600
11717
  }
11601
11718
 
11719
+ /* * BADGE > ICON (& SPINNER) * */
11720
+
11721
+ [data-pont-badge][data-variant="outline"] svg {
11722
+ color: var(--pont-badge-outline-icon-color);
11723
+ }
11724
+
11725
+ a[data-pont-badge][data-variant="outline"]:hover svg {
11726
+ color: var(--pont-badge-outline-icon-color-hover);
11727
+ }
11728
+
11602
11729
  /* * -------- GHOST -------- * */
11603
11730
 
11604
11731
  [data-pont-badge][data-variant="ghost"] {
@@ -11706,6 +11833,16 @@ a[data-pont-badge][data-variant="ghost"]:hover {
11706
11833
  opacity: var(--pont-badge-ghost-effect-opacity-hover);
11707
11834
  }
11708
11835
 
11836
+ /* * BADGE > ICON (& SPINNER) * */
11837
+
11838
+ [data-pont-badge][data-variant="ghost"] svg {
11839
+ color: var(--pont-badge-ghost-icon-color);
11840
+ }
11841
+
11842
+ a[data-pont-badge][data-variant="ghost"]:hover svg {
11843
+ color: var(--pont-badge-ghost-icon-color-hover);
11844
+ }
11845
+
11709
11846
  /* * -------- DESTRUCTIVE -------- * */
11710
11847
 
11711
11848
  [data-pont-badge][data-variant="destructive"] {
@@ -11814,6 +11951,16 @@ a[data-pont-badge][data-variant="destructive"]:hover {
11814
11951
  opacity: var(--pont-badge-destructive-effect-opacity-hover);
11815
11952
  }
11816
11953
 
11954
+ /* * BADGE > ICON (& SPINNER) * */
11955
+
11956
+ [data-pont-badge][data-variant="destructive"] svg {
11957
+ color: var(--pont-badge-destructive-icon-color);
11958
+ }
11959
+
11960
+ a[data-pont-badge][data-variant="destructive"]:hover svg {
11961
+ color: var(--pont-badge-destructive-icon-color-hover);
11962
+ }
11963
+
11817
11964
  /* * -------- LINK -------- * */
11818
11965
 
11819
11966
  [data-pont-badge][data-variant="link"] {
@@ -11937,6 +12084,16 @@ a[data-pont-badge][data-variant="link"]:hover {
11937
12084
  opacity: var(--pont-badge-link-effect-opacity-hover);
11938
12085
  }
11939
12086
 
12087
+ /* * BADGE > ICON (& SPINNER) * */
12088
+
12089
+ [data-pont-badge][data-variant="link"] svg {
12090
+ color: var(--pont-badge-link-icon-color);
12091
+ }
12092
+
12093
+ a[data-pont-badge][data-variant="link"]:hover svg {
12094
+ color: var(--pont-badge-link-icon-color-hover);
12095
+ }
12096
+
11940
12097
  /*
11941
12098
  * ===========================================================================
11942
12099
  * BUTTON COMPONENT STYLES
@@ -12094,6 +12251,20 @@ pont-button {
12094
12251
  var(--pont-button-default-effect-shadow-invalid);
12095
12252
  }
12096
12253
 
12254
+ /* BUTTON > ICON (& SPINNER) */
12255
+
12256
+ [data-pont-button][data-variant="default"] svg {
12257
+ color: var(--pont-button-default-icon-color);
12258
+ }
12259
+
12260
+ [data-pont-button][data-variant="default"]:hover svg {
12261
+ color: var(--pont-button-default-icon-color-hover);
12262
+ }
12263
+
12264
+ [data-pont-button][data-variant="default"][aria-expanded] svg {
12265
+ color: var(--pont-button-default-icon-color-expanded);
12266
+ }
12267
+
12097
12268
  /* * SECONDARY * */
12098
12269
 
12099
12270
  [data-pont-button][data-variant="secondary"] {
@@ -12179,6 +12350,20 @@ pont-button {
12179
12350
  var(--pont-button-secondary-effect-shadow-invalid);
12180
12351
  }
12181
12352
 
12353
+ /* BUTTON > ICON (& SPINNER) */
12354
+
12355
+ [data-pont-button][data-variant="secondary"] svg {
12356
+ color: var(--pont-button-secondary-icon-color);
12357
+ }
12358
+
12359
+ [data-pont-button][data-variant="secondary"]:hover svg {
12360
+ color: var(--pont-button-secondary-icon-color-hover);
12361
+ }
12362
+
12363
+ [data-pont-button][data-variant="secondary"][aria-expanded] svg {
12364
+ color: var(--pont-button-secondary-icon-color-expanded);
12365
+ }
12366
+
12182
12367
  /* * OUTLINE * */
12183
12368
 
12184
12369
  [data-pont-button][data-variant="outline"] {
@@ -12264,6 +12449,20 @@ pont-button {
12264
12449
  var(--pont-button-outline-effect-shadow-invalid);
12265
12450
  }
12266
12451
 
12452
+ /* BUTTON > ICON (& SPINNER) */
12453
+
12454
+ [data-pont-button][data-variant="outline"] svg {
12455
+ color: var(--pont-button-outline-icon-color);
12456
+ }
12457
+
12458
+ [data-pont-button][data-variant="outline"]:hover svg {
12459
+ color: var(--pont-button-outline-icon-color-hover);
12460
+ }
12461
+
12462
+ [data-pont-button][data-variant="outline"][aria-expanded] svg {
12463
+ color: var(--pont-button-outline-icon-color-expanded);
12464
+ }
12465
+
12267
12466
  /* * GHOST * */
12268
12467
 
12269
12468
  [data-pont-button][data-variant="ghost"] {
@@ -12348,6 +12547,20 @@ pont-button {
12348
12547
  var(--pont-button-ghost-effect-shadow-invalid);
12349
12548
  }
12350
12549
 
12550
+ /* BUTTON > ICON (& SPINNER) */
12551
+
12552
+ [data-pont-button][data-variant="ghost"] svg {
12553
+ color: var(--pont-button-ghost-icon-color);
12554
+ }
12555
+
12556
+ [data-pont-button][data-variant="ghost"]:hover svg {
12557
+ color: var(--pont-button-ghost-icon-color-hover);
12558
+ }
12559
+
12560
+ [data-pont-button][data-variant="ghost"][aria-expanded] svg {
12561
+ color: var(--pont-button-ghost-icon-color-expanded);
12562
+ }
12563
+
12351
12564
  /* * DESTRUCTIVE * */
12352
12565
 
12353
12566
  [data-pont-button][data-variant="destructive"] {
@@ -12433,6 +12646,20 @@ pont-button {
12433
12646
  var(--pont-button-destructive-effect-shadow-invalid);
12434
12647
  }
12435
12648
 
12649
+ /* BUTTON > ICON (& SPINNER) */
12650
+
12651
+ [data-pont-button][data-variant="destructive"] svg {
12652
+ color: var(--pont-button-destructive-icon-color);
12653
+ }
12654
+
12655
+ [data-pont-button][data-variant="destructive"]:hover svg {
12656
+ color: var(--pont-button-destructive-icon-color-hover);
12657
+ }
12658
+
12659
+ [data-pont-button][data-variant="destructive"][aria-expanded] svg {
12660
+ color: var(--pont-button-destructive-icon-color-expanded);
12661
+ }
12662
+
12436
12663
  /* * LINK * */
12437
12664
 
12438
12665
  [data-pont-button][data-variant="link"] {
@@ -12532,6 +12759,20 @@ pont-button {
12532
12759
  var(--pont-button-link-effect-shadow-invalid);
12533
12760
  }
12534
12761
 
12762
+ /* BUTTON > ICON (& SPINNER) */
12763
+
12764
+ [data-pont-button][data-variant="link"] svg {
12765
+ color: var(--pont-button-link-icon-color);
12766
+ }
12767
+
12768
+ [data-pont-button][data-variant="link"]:hover svg {
12769
+ color: var(--pont-button-link-icon-color-hover);
12770
+ }
12771
+
12772
+ [data-pont-button][data-variant="link"][aria-expanded] svg {
12773
+ color: var(--pont-button-link-icon-color-expanded);
12774
+ }
12775
+
12535
12776
  /*
12536
12777
  * --------------------------------------------------
12537
12778
  * SIZES
@@ -15495,10 +15736,10 @@ pont-separator:has([data-orientation="vertical"]) {
15495
15736
  width: var(--pont-separator-vertical-sizing-w);
15496
15737
  height: var(--pont-separator-vertical-sizing-h);
15497
15738
 
15498
- min-width: var(--pont-separator-horizontal-sizing-min-w);
15499
- max-width: var(--pont-separator-horizontal-sizing-max-w);
15500
- min-height: var(--pont-separator-horizontal-sizing-min-h);
15501
- max-height: var(--pont-separator-horizontal-sizing-max-h);
15739
+ min-width: var(--pont-separator-vertical-sizing-min-w);
15740
+ max-width: var(--pont-separator-vertical-sizing-max-w);
15741
+ min-height: var(--pont-separator-vertical-sizing-min-h);
15742
+ max-height: var(--pont-separator-vertical-sizing-max-h);
15502
15743
  }
15503
15744
 
15504
15745
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pontive/pontkit-core",
3
- "version": "1.14.1",
3
+ "version": "1.16.0",
4
4
  "license": "MIT",
5
5
  "description": "A collection of core components for Pontive",
6
6
  "main": "dist/index.js",