@pontive/pontkit-core 1.47.0 → 1.48.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/styles.css +89 -28
- package/dist/theme-golden.json +70 -70
- package/dist/theme.mjs +84 -84
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens.json +110 -1
- package/package.json +1 -1
package/catalog.json
CHANGED
package/dist/styles.css
CHANGED
|
@@ -53,7 +53,8 @@
|
|
|
53
53
|
* radius.css the radius knob (--pont-ref-radius) and the ref scale derived from it
|
|
54
54
|
* shadow.css the shadow and inset shadow scales (ref), coloured by the sem shadow colours;
|
|
55
55
|
* the ring widths and ring shadows (focus, invalid, offset; sem)
|
|
56
|
-
* typography.css font stacks (ref) and roles (sem), size, weight, tracking and leading scales (ref)
|
|
56
|
+
* typography.css font stacks (ref) and roles (sem), size, weight, tracking and leading scales (ref),
|
|
57
|
+
* the default weight, tracking and leading (sem)
|
|
57
58
|
* sem/ mode switches (mode.css)
|
|
58
59
|
*/
|
|
59
60
|
|
|
@@ -2156,6 +2157,18 @@
|
|
|
2156
2157
|
}
|
|
2157
2158
|
}
|
|
2158
2159
|
|
|
2160
|
+
/*
|
|
2161
|
+
* --------------------------------------------------
|
|
2162
|
+
* TYPOGRAPHY WEIGHT SEMANTIC TOKENS
|
|
2163
|
+
* --------------------------------------------------
|
|
2164
|
+
*/
|
|
2165
|
+
|
|
2166
|
+
@layer pont.tokens {
|
|
2167
|
+
:root {
|
|
2168
|
+
--pont-sem-typography-weight: var(--pont-ref-typography-weight-normal);
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2159
2172
|
/*
|
|
2160
2173
|
* ---------------------------------------------------------------------------
|
|
2161
2174
|
* TYPOGRAPHY TRACKING TOKENS
|
|
@@ -2195,6 +2208,18 @@
|
|
|
2195
2208
|
}
|
|
2196
2209
|
}
|
|
2197
2210
|
|
|
2211
|
+
/*
|
|
2212
|
+
* --------------------------------------------------
|
|
2213
|
+
* TYPOGRAPHY TRACKING SEMANTIC TOKENS
|
|
2214
|
+
* --------------------------------------------------
|
|
2215
|
+
*/
|
|
2216
|
+
|
|
2217
|
+
@layer pont.tokens {
|
|
2218
|
+
:root {
|
|
2219
|
+
--pont-sem-typography-tracking: var(--pont-ref-typography-tracking-normal);
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2198
2223
|
/*
|
|
2199
2224
|
* ---------------------------------------------------------------------------
|
|
2200
2225
|
* TYPOGRAPHY LEADING TOKENS
|
|
@@ -2234,6 +2259,18 @@
|
|
|
2234
2259
|
}
|
|
2235
2260
|
}
|
|
2236
2261
|
|
|
2262
|
+
/*
|
|
2263
|
+
* --------------------------------------------------
|
|
2264
|
+
* TYPOGRAPHY LEADING SEMANTIC TOKENS
|
|
2265
|
+
* --------------------------------------------------
|
|
2266
|
+
*/
|
|
2267
|
+
|
|
2268
|
+
@layer pont.tokens {
|
|
2269
|
+
:root {
|
|
2270
|
+
--pont-sem-typography-leading: var(--pont-ref-typography-leading-normal);
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2237
2274
|
/* ./sem/mode.css */
|
|
2238
2275
|
/*
|
|
2239
2276
|
* sem · mode switches: non-colour values that follow the colour scheme
|
|
@@ -3561,6 +3598,14 @@
|
|
|
3561
3598
|
* Tokens (docs/11-tokens.md): `--pont-avatar-*`, resolved on the avatar (and
|
|
3562
3599
|
* on a group count, which shares the fallback's look) and inherited by the
|
|
3563
3600
|
* parts. shadcn's `dark:after:mix-blend-lighten` is sem-mode-blend.
|
|
3601
|
+
*
|
|
3602
|
+
* Sizes only switch tokens: the base block sets `--_pont-avatar-width` /
|
|
3603
|
+
* `-height` from the default-size tokens, each size block re-points the same
|
|
3604
|
+
* privates at its own size-qualified tokens (`--pont-avatar-sm-width` …), and
|
|
3605
|
+
* the recipe declares `width` / `height` once. A size token falls back to its
|
|
3606
|
+
* literal, not to the unqualified token, so resizing the default avatar
|
|
3607
|
+
* leaves sm and lg alone. The group count takes its size from the group's
|
|
3608
|
+
* avatars, so its size blocks key off the group and read the same tokens.
|
|
3564
3609
|
*/
|
|
3565
3610
|
@layer pont.primitives {
|
|
3566
3611
|
/* ------------------------------------------------------------------ */
|
|
@@ -3568,6 +3613,10 @@
|
|
|
3568
3613
|
/* ------------------------------------------------------------------ */
|
|
3569
3614
|
|
|
3570
3615
|
:is(pont-prim-avatar, [data-pont-avatar], pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
3616
|
+
/** @token Width */
|
|
3617
|
+
--_pont-avatar-width: var(--pont-avatar-width, 2rem);
|
|
3618
|
+
/** @token Height */
|
|
3619
|
+
--_pont-avatar-height: var(--pont-avatar-height, 2rem);
|
|
3571
3620
|
/** @token Corner radius */
|
|
3572
3621
|
--_pont-avatar-radius: var(--pont-avatar-radius, var(--pont-ref-radius-full));
|
|
3573
3622
|
/** @token Outline ring */
|
|
@@ -3582,6 +3631,22 @@
|
|
|
3582
3631
|
--_pont-avatar-badge-fg: var(--pont-avatar-badge-fg, var(--pont-sem-color-primary-fg));
|
|
3583
3632
|
}
|
|
3584
3633
|
|
|
3634
|
+
/* Sizes: the same privates, re-pointed at the size's tokens. */
|
|
3635
|
+
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="sm"], [size="sm"]),
|
|
3636
|
+
[data-pont-avatar-group]:has([data-size="sm"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
3637
|
+
/** @token Width */
|
|
3638
|
+
--_pont-avatar-width: var(--pont-avatar-sm-width, 1.5rem);
|
|
3639
|
+
/** @token Height */
|
|
3640
|
+
--_pont-avatar-height: var(--pont-avatar-sm-height, 1.5rem);
|
|
3641
|
+
}
|
|
3642
|
+
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="lg"], [size="lg"]),
|
|
3643
|
+
[data-pont-avatar-group]:has([data-size="lg"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
3644
|
+
/** @token Width */
|
|
3645
|
+
--_pont-avatar-width: var(--pont-avatar-lg-width, 2.5rem);
|
|
3646
|
+
/** @token Height */
|
|
3647
|
+
--_pont-avatar-height: var(--pont-avatar-lg-height, 2.5rem);
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3585
3650
|
/* ------------------------------------------------------------------ */
|
|
3586
3651
|
/* Recipe (parts read the avatar's privates; fallbacks for a part used */
|
|
3587
3652
|
/* outside an avatar) */
|
|
@@ -3592,8 +3657,8 @@
|
|
|
3592
3657
|
position: relative;
|
|
3593
3658
|
display: flex;
|
|
3594
3659
|
flex-shrink: 0;
|
|
3595
|
-
width:
|
|
3596
|
-
height:
|
|
3660
|
+
width: var(--_pont-avatar-width);
|
|
3661
|
+
height: var(--_pont-avatar-height);
|
|
3597
3662
|
border-radius: var(--_pont-avatar-radius);
|
|
3598
3663
|
user-select: none;
|
|
3599
3664
|
box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
|
|
@@ -3608,14 +3673,6 @@
|
|
|
3608
3673
|
mix-blend-mode: var(--pont-sem-mode-blend);
|
|
3609
3674
|
pointer-events: none;
|
|
3610
3675
|
}
|
|
3611
|
-
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="lg"], [size="lg"]) {
|
|
3612
|
-
width: 2.5rem;
|
|
3613
|
-
height: 2.5rem;
|
|
3614
|
-
}
|
|
3615
|
-
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="sm"], [size="sm"]) {
|
|
3616
|
-
width: 1.5rem;
|
|
3617
|
-
height: 1.5rem;
|
|
3618
|
-
}
|
|
3619
3676
|
|
|
3620
3677
|
/* Image: the author's native <img>, shown only once loaded. */
|
|
3621
3678
|
:is(pont-prim-avatar, [data-pont-avatar]) > img {
|
|
@@ -3704,8 +3761,8 @@
|
|
|
3704
3761
|
flex-shrink: 0;
|
|
3705
3762
|
align-items: center;
|
|
3706
3763
|
justify-content: center;
|
|
3707
|
-
width:
|
|
3708
|
-
height:
|
|
3764
|
+
width: var(--_pont-avatar-width);
|
|
3765
|
+
height: var(--_pont-avatar-height);
|
|
3709
3766
|
border-radius: var(--_pont-avatar-radius);
|
|
3710
3767
|
background-color: var(--_pont-avatar-fallback-bg);
|
|
3711
3768
|
color: var(--_pont-avatar-fallback-fg);
|
|
@@ -3717,18 +3774,10 @@
|
|
|
3717
3774
|
width: 1rem;
|
|
3718
3775
|
height: 1rem;
|
|
3719
3776
|
}
|
|
3720
|
-
[data-pont-avatar-group]:has([data-size="lg"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
3721
|
-
width: 2.5rem;
|
|
3722
|
-
height: 2.5rem;
|
|
3723
|
-
}
|
|
3724
3777
|
[data-pont-avatar-group]:has([data-size="lg"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
3725
3778
|
width: 1.25rem;
|
|
3726
3779
|
height: 1.25rem;
|
|
3727
3780
|
}
|
|
3728
|
-
[data-pont-avatar-group]:has([data-size="sm"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
3729
|
-
width: 1.5rem;
|
|
3730
|
-
height: 1.5rem;
|
|
3731
|
-
}
|
|
3732
3781
|
[data-pont-avatar-group]:has([data-size="sm"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
3733
3782
|
width: 0.75rem;
|
|
3734
3783
|
height: 0.75rem;
|
|
@@ -8202,19 +8251,31 @@
|
|
|
8202
8251
|
* where composite-specific rules go when they appear.
|
|
8203
8252
|
*/
|
|
8204
8253
|
@layer pont.kit {
|
|
8205
|
-
/* Size before upgrade, so a server-rendered composite does not collapse.
|
|
8254
|
+
/* Size before upgrade, so a server-rendered composite does not collapse.
|
|
8255
|
+
The primitive's token block only applies once the host carries
|
|
8256
|
+
[data-pont-avatar], so this reads the same size tokens, with the same
|
|
8257
|
+
defaults, through the same privates: a branded avatar keeps its size
|
|
8258
|
+
when it upgrades. */
|
|
8206
8259
|
pont-avatar:not([data-pont-avatar]) {
|
|
8260
|
+
/** @token Width */
|
|
8261
|
+
--_pont-avatar-width: var(--pont-avatar-width, 2rem);
|
|
8262
|
+
/** @token Height */
|
|
8263
|
+
--_pont-avatar-height: var(--pont-avatar-height, 2rem);
|
|
8207
8264
|
display: inline-flex;
|
|
8208
|
-
width:
|
|
8209
|
-
height:
|
|
8265
|
+
width: var(--_pont-avatar-width);
|
|
8266
|
+
height: var(--_pont-avatar-height);
|
|
8210
8267
|
}
|
|
8211
8268
|
pont-avatar:not([data-pont-avatar])[size="sm"] {
|
|
8212
|
-
|
|
8213
|
-
|
|
8269
|
+
/** @token Width */
|
|
8270
|
+
--_pont-avatar-width: var(--pont-avatar-sm-width, 1.5rem);
|
|
8271
|
+
/** @token Height */
|
|
8272
|
+
--_pont-avatar-height: var(--pont-avatar-sm-height, 1.5rem);
|
|
8214
8273
|
}
|
|
8215
8274
|
pont-avatar:not([data-pont-avatar])[size="lg"] {
|
|
8216
|
-
|
|
8217
|
-
|
|
8275
|
+
/** @token Width */
|
|
8276
|
+
--_pont-avatar-width: var(--pont-avatar-lg-width, 2.5rem);
|
|
8277
|
+
/** @token Height */
|
|
8278
|
+
--_pont-avatar-height: var(--pont-avatar-lg-height, 2.5rem);
|
|
8218
8279
|
}
|
|
8219
8280
|
}
|
|
8220
8281
|
|