@pontive/pontkit-core 1.47.0 → 1.49.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 +884 -884
- package/dist/styles.css +565 -115
- package/dist/theme-golden.json +70 -70
- package/dist/theme.mjs +116 -96
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens.json +661 -23
- package/package.json +1 -1
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
|
|
|
@@ -817,6 +818,8 @@
|
|
|
817
818
|
--pont-sem-color-ring-focus: var(--pont-sem-color-base-ring);
|
|
818
819
|
--pont-sem-color-ring-invalid: var(--pont-sem-color-destructive-ring);
|
|
819
820
|
|
|
821
|
+
--pont-sem-color-ring-offset: var(--pont-sem-color-bg);
|
|
822
|
+
|
|
820
823
|
--pont-sem-color-input: var(--pont-ref-color-base-200);
|
|
821
824
|
|
|
822
825
|
--pont-sem-color-control: var(--pont-sem-color-bg);
|
|
@@ -1104,6 +1107,8 @@
|
|
|
1104
1107
|
--pont-sem-color-ring-focus: var(--pont-sem-color-base-ring);
|
|
1105
1108
|
--pont-sem-color-ring-invalid: var(--pont-sem-color-destructive-ring);
|
|
1106
1109
|
|
|
1110
|
+
--pont-sem-color-ring-offset: var(--pont-sem-color-bg);
|
|
1111
|
+
|
|
1107
1112
|
--pont-sem-color-input: color-mix(
|
|
1108
1113
|
in oklab,
|
|
1109
1114
|
var(--pont-ref-color-white) 15%,
|
|
@@ -2041,7 +2046,7 @@
|
|
|
2041
2046
|
|
|
2042
2047
|
:root {
|
|
2043
2048
|
--pont-sem-shadow-ring-offset: 0 0 0
|
|
2044
|
-
var(--pont-sem-shadow-ring-offset-width) var(--pont-sem-color-
|
|
2049
|
+
var(--pont-sem-shadow-ring-offset-width) var(--pont-sem-color-ring-offset);
|
|
2045
2050
|
}
|
|
2046
2051
|
}
|
|
2047
2052
|
|
|
@@ -2156,6 +2161,18 @@
|
|
|
2156
2161
|
}
|
|
2157
2162
|
}
|
|
2158
2163
|
|
|
2164
|
+
/*
|
|
2165
|
+
* --------------------------------------------------
|
|
2166
|
+
* TYPOGRAPHY WEIGHT SEMANTIC TOKENS
|
|
2167
|
+
* --------------------------------------------------
|
|
2168
|
+
*/
|
|
2169
|
+
|
|
2170
|
+
@layer pont.tokens {
|
|
2171
|
+
:root {
|
|
2172
|
+
--pont-sem-typography-weight: var(--pont-ref-typography-weight-normal);
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
|
|
2159
2176
|
/*
|
|
2160
2177
|
* ---------------------------------------------------------------------------
|
|
2161
2178
|
* TYPOGRAPHY TRACKING TOKENS
|
|
@@ -2195,6 +2212,18 @@
|
|
|
2195
2212
|
}
|
|
2196
2213
|
}
|
|
2197
2214
|
|
|
2215
|
+
/*
|
|
2216
|
+
* --------------------------------------------------
|
|
2217
|
+
* TYPOGRAPHY TRACKING SEMANTIC TOKENS
|
|
2218
|
+
* --------------------------------------------------
|
|
2219
|
+
*/
|
|
2220
|
+
|
|
2221
|
+
@layer pont.tokens {
|
|
2222
|
+
:root {
|
|
2223
|
+
--pont-sem-typography-tracking: var(--pont-ref-typography-tracking-normal);
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2198
2227
|
/*
|
|
2199
2228
|
* ---------------------------------------------------------------------------
|
|
2200
2229
|
* TYPOGRAPHY LEADING TOKENS
|
|
@@ -2234,6 +2263,18 @@
|
|
|
2234
2263
|
}
|
|
2235
2264
|
}
|
|
2236
2265
|
|
|
2266
|
+
/*
|
|
2267
|
+
* --------------------------------------------------
|
|
2268
|
+
* TYPOGRAPHY LEADING SEMANTIC TOKENS
|
|
2269
|
+
* --------------------------------------------------
|
|
2270
|
+
*/
|
|
2271
|
+
|
|
2272
|
+
@layer pont.tokens {
|
|
2273
|
+
:root {
|
|
2274
|
+
--pont-sem-typography-leading: var(--pont-ref-typography-leading-normal);
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
|
|
2237
2278
|
/* ./sem/mode.css */
|
|
2238
2279
|
/*
|
|
2239
2280
|
* sem · mode switches: non-colour values that follow the colour scheme
|
|
@@ -2794,48 +2835,147 @@
|
|
|
2794
2835
|
|
|
2795
2836
|
/* ../primitives/label/label.css */
|
|
2796
2837
|
/*
|
|
2797
|
-
*
|
|
2798
|
-
*
|
|
2799
|
-
*
|
|
2800
|
-
*
|
|
2801
|
-
*
|
|
2838
|
+
* ===========================================================================
|
|
2839
|
+
* LABEL STYLES
|
|
2840
|
+
* ===========================================================================
|
|
2841
|
+
*
|
|
2842
|
+
* shadcn/ui Base UI x Vega:
|
|
2843
|
+
* flex items-center gap-2 text-sm leading-none font-medium select-none
|
|
2844
|
+
* group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50
|
|
2845
|
+
* peer-disabled:cursor-not-allowed peer-disabled:opacity-50
|
|
2802
2846
|
*
|
|
2803
2847
|
* Tokens (docs/11-tokens.md): `--pont-label-*`, resolved on the label. The
|
|
2804
|
-
* colour is inherited
|
|
2848
|
+
* text colour defaults to currentColor, so it is inherited. An invalid Field
|
|
2849
|
+
* re-points `--_pont-label-color-fg` at its invalid colour (field.css), so its
|
|
2850
|
+
* labels turn destructive even when a theme sets `--pont-label-color-fg`.
|
|
2805
2851
|
*/
|
|
2852
|
+
|
|
2853
|
+
/*
|
|
2854
|
+
* ---------------------------------------------------------------------------
|
|
2855
|
+
* TOKENS
|
|
2856
|
+
* ---------------------------------------------------------------------------
|
|
2857
|
+
*/
|
|
2858
|
+
|
|
2806
2859
|
@layer pont.primitives {
|
|
2807
2860
|
[data-pont-label] {
|
|
2808
|
-
/** @token
|
|
2809
|
-
--_pont-label-
|
|
2810
|
-
|
|
2811
|
-
|
|
2861
|
+
/** @token Align items */
|
|
2862
|
+
--_pont-label-items: var(
|
|
2863
|
+
--pont-label-items,
|
|
2864
|
+
var(--pont-ref-layout-items-center)
|
|
2865
|
+
);
|
|
2866
|
+
/** @token Justify content */
|
|
2867
|
+
--_pont-label-justify: var(
|
|
2868
|
+
--pont-label-justify,
|
|
2869
|
+
var(--pont-sem-layout-justify)
|
|
2870
|
+
);
|
|
2871
|
+
|
|
2872
|
+
/** @token Gap */
|
|
2873
|
+
--_pont-label-gap: var(
|
|
2874
|
+
--pont-label-gap,
|
|
2875
|
+
calc(var(--pont-ref-dimension) * 2)
|
|
2876
|
+
);
|
|
2877
|
+
/** @token Horizontal gap */
|
|
2878
|
+
--_pont-label-gap-x: var(--pont-label-gap-x, var(--_pont-label-gap));
|
|
2879
|
+
/** @token Vertical gap */
|
|
2880
|
+
--_pont-label-gap-y: var(--pont-label-gap-y, var(--_pont-label-gap));
|
|
2881
|
+
|
|
2882
|
+
/** @token Font family */
|
|
2883
|
+
--_pont-label-font-family: var(
|
|
2884
|
+
--pont-label-font-family,
|
|
2885
|
+
var(--pont-sem-typography-font-body)
|
|
2886
|
+
);
|
|
2887
|
+
/** @token Font size */
|
|
2888
|
+
--_pont-label-font-size: var(
|
|
2889
|
+
--pont-label-font-size,
|
|
2890
|
+
var(--pont-ref-typography-size-sm)
|
|
2891
|
+
);
|
|
2892
|
+
/** @token Font weight */
|
|
2893
|
+
--_pont-label-font-weight: var(
|
|
2894
|
+
--pont-label-font-weight,
|
|
2895
|
+
var(--pont-ref-typography-weight-medium)
|
|
2896
|
+
);
|
|
2897
|
+
/** @token Letter spacing */
|
|
2898
|
+
--_pont-label-letter-spacing: var(
|
|
2899
|
+
--pont-label-letter-spacing,
|
|
2900
|
+
var(--pont-sem-typography-tracking)
|
|
2901
|
+
);
|
|
2902
|
+
/** @token Line height */
|
|
2903
|
+
--_pont-label-line-height: var(
|
|
2904
|
+
--pont-label-line-height,
|
|
2905
|
+
var(--pont-ref-typography-leading-none)
|
|
2906
|
+
);
|
|
2907
|
+
|
|
2908
|
+
/** @token Text color */
|
|
2909
|
+
--_pont-label-color-fg: var(
|
|
2910
|
+
--pont-label-color-fg,
|
|
2911
|
+
var(--pont-ref-color-current)
|
|
2912
|
+
);
|
|
2913
|
+
|
|
2914
|
+
/* * -------- STATES -------- * */
|
|
2915
|
+
|
|
2916
|
+
/** @token Opacity when group/peer disabled */
|
|
2917
|
+
--_pont-label-opacity-disabled: var(
|
|
2918
|
+
--pont-label-opacity-disabled,
|
|
2919
|
+
var(--pont-sem-opacity-disabled)
|
|
2920
|
+
);
|
|
2921
|
+
|
|
2922
|
+
/** @token Cursor when peer disabled */
|
|
2923
|
+
--_pont-label-cursor-disabled: var(
|
|
2924
|
+
--pont-label-cursor-disabled,
|
|
2925
|
+
var(--pont-sem-cursor-disabled)
|
|
2926
|
+
);
|
|
2812
2927
|
}
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
/*
|
|
2931
|
+
* ---------------------------------------------------------------------------
|
|
2932
|
+
* RECIPES
|
|
2933
|
+
* ---------------------------------------------------------------------------
|
|
2934
|
+
*/
|
|
2813
2935
|
|
|
2936
|
+
@layer pont.primitives {
|
|
2814
2937
|
[data-pont-label] {
|
|
2815
|
-
box-sizing:
|
|
2816
|
-
margin: 0;
|
|
2938
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
2817
2939
|
display: flex;
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2940
|
+
|
|
2941
|
+
align-items: var(--_pont-label-items);
|
|
2942
|
+
justify-content: var(--_pont-label-justify);
|
|
2943
|
+
|
|
2944
|
+
column-gap: var(--_pont-label-gap-x);
|
|
2945
|
+
row-gap: var(--_pont-label-gap-y);
|
|
2946
|
+
|
|
2947
|
+
margin: 0;
|
|
2948
|
+
|
|
2949
|
+
font-family: var(--_pont-label-font-family);
|
|
2821
2950
|
font-size: var(--_pont-label-font-size);
|
|
2822
|
-
line-height: var(--pont-ref-typography-leading-none);
|
|
2823
2951
|
font-weight: var(--_pont-label-font-weight);
|
|
2952
|
+
letter-spacing: var(--_pont-label-letter-spacing);
|
|
2953
|
+
line-height: var(--_pont-label-line-height);
|
|
2954
|
+
|
|
2955
|
+
color: var(--_pont-label-color-fg);
|
|
2956
|
+
|
|
2957
|
+
user-select: none;
|
|
2824
2958
|
}
|
|
2825
2959
|
|
|
2826
|
-
/*
|
|
2960
|
+
/* * -------- STATES -------- * */
|
|
2961
|
+
|
|
2962
|
+
/* * DISABLED * */
|
|
2963
|
+
|
|
2964
|
+
/* Group disabled (group-data-[disabled=true]): inside a disabled group,
|
|
2965
|
+
e.g. <pont-prim-field data-disabled> */
|
|
2827
2966
|
:is([data-disabled="true"], [data-disabled=""]) [data-pont-label] {
|
|
2967
|
+
opacity: var(--_pont-label-opacity-disabled);
|
|
2828
2968
|
pointer-events: none;
|
|
2829
|
-
opacity: var(--pont-sem-opacity-disabled);
|
|
2830
2969
|
}
|
|
2831
2970
|
|
|
2832
|
-
/* peer-disabled: the label follows a disabled control
|
|
2833
|
-
The second selector sees through a Tier 3
|
|
2834
|
-
has no box, but it
|
|
2971
|
+
/* Peer disabled (peer-disabled): the label follows a disabled control
|
|
2972
|
+
(native or form-associated). The second selector sees through a Tier 3
|
|
2973
|
+
shell (<pont-prim-label, pont-label><label>): the shell has no box, but it
|
|
2974
|
+
is still the DOM sibling. */
|
|
2835
2975
|
:is(:disabled, [data-disabled]) ~ [data-pont-label],
|
|
2836
2976
|
:is(:disabled, [data-disabled]) ~ [data-pont-shell] > [data-pont-label] {
|
|
2837
|
-
|
|
2838
|
-
|
|
2977
|
+
opacity: var(--_pont-label-opacity-disabled);
|
|
2978
|
+
cursor: var(--_pont-label-cursor-disabled);
|
|
2839
2979
|
}
|
|
2840
2980
|
}
|
|
2841
2981
|
|
|
@@ -3011,10 +3151,30 @@
|
|
|
3011
3151
|
|
|
3012
3152
|
/* ../primitives/checkbox/checkbox.css */
|
|
3013
3153
|
/*
|
|
3014
|
-
*
|
|
3015
|
-
*
|
|
3016
|
-
*
|
|
3017
|
-
*
|
|
3154
|
+
* ===========================================================================
|
|
3155
|
+
* CHECKBOX STYLES
|
|
3156
|
+
* ===========================================================================
|
|
3157
|
+
*
|
|
3158
|
+
* shadcn/ui Base UI x Vega:
|
|
3159
|
+
* root:
|
|
3160
|
+
* peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none dark:bg-input/30
|
|
3161
|
+
* after:absolute after:-inset-x-3 after:-inset-y-2
|
|
3162
|
+
* focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50
|
|
3163
|
+
* group-has-disabled/field:opacity-50 disabled:cursor-not-allowed disabled:opacity-50
|
|
3164
|
+
* aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40
|
|
3165
|
+
* aria-invalid:aria-checked:border-primary
|
|
3166
|
+
* data-checked:border-primary data-checked:bg-primary dark:data-checked:bg-primary data-checked:text-primary-foreground
|
|
3167
|
+
* group-has-[:focus-visible]/field-label:ring-0 group-has-[:focus-visible]/field-label:not-data-checked:border-input group-has-[:focus-visible]/field-label:data-checked:border-primary
|
|
3168
|
+
* indicator:
|
|
3169
|
+
* grid place-content-center text-current transition-none [&>svg]:size-3.5
|
|
3170
|
+
*
|
|
3171
|
+
* Differences:
|
|
3172
|
+
* - The checkbox indicator is conditionally rendered. Instead of giving root
|
|
3173
|
+
* `data-checked:text-primary-foreground` and indicator `text-current`, we
|
|
3174
|
+
* give indicator `text-primary-foreground` via the
|
|
3175
|
+
* `--pont-checkbox-indicator-color-fg` token.
|
|
3176
|
+
* - Instead of `ring-0` when the field label is in focus, the checkbox sets
|
|
3177
|
+
* the ring shadow back to the initial/default state ring shadow.
|
|
3018
3178
|
*
|
|
3019
3179
|
* The host is form-associated, so `:disabled` and `:invalid` match it like a
|
|
3020
3180
|
* native control. `aria-checked` lives in ElementInternals (not an attribute),
|
|
@@ -3024,100 +3184,362 @@
|
|
|
3024
3184
|
* the element. shadcn's `dark:bg-input/30` is sem-color-field; the invalid
|
|
3025
3185
|
* border/ring are sem-color-border-invalid / sem-color-ring-invalid.
|
|
3026
3186
|
*/
|
|
3187
|
+
|
|
3188
|
+
/*
|
|
3189
|
+
* ---------------------------------------------------------------------------
|
|
3190
|
+
* TOKENS
|
|
3191
|
+
* ---------------------------------------------------------------------------
|
|
3192
|
+
*/
|
|
3193
|
+
|
|
3027
3194
|
@layer pont.primitives {
|
|
3028
3195
|
:is(pont-prim-checkbox, pont-checkbox, [data-pont-checkbox]) {
|
|
3029
|
-
/** @token
|
|
3030
|
-
--_pont-checkbox-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3196
|
+
/** @token Align items */
|
|
3197
|
+
--_pont-checkbox-items: var(
|
|
3198
|
+
--pont-checkbox-items,
|
|
3199
|
+
var(--pont-ref-layout-items-center)
|
|
3200
|
+
);
|
|
3201
|
+
/** @token Justify content */
|
|
3202
|
+
--_pont-checkbox-justify: var(
|
|
3203
|
+
--pont-checkbox-justify,
|
|
3204
|
+
var(--pont-ref-layout-justify-center)
|
|
3205
|
+
);
|
|
3206
|
+
|
|
3207
|
+
/** @token Size (width and height) */
|
|
3208
|
+
--_pont-checkbox-size: var(
|
|
3209
|
+
--pont-checkbox-size,
|
|
3210
|
+
calc(var(--pont-ref-dimension) * 4)
|
|
3211
|
+
);
|
|
3212
|
+
/** @token Width */
|
|
3213
|
+
--_pont-checkbox-width: var(
|
|
3214
|
+
--pont-checkbox-width,
|
|
3215
|
+
var(--_pont-checkbox-size)
|
|
3216
|
+
);
|
|
3217
|
+
/** @token Height */
|
|
3218
|
+
--_pont-checkbox-height: var(
|
|
3219
|
+
--pont-checkbox-height,
|
|
3220
|
+
var(--_pont-checkbox-size)
|
|
3221
|
+
);
|
|
3222
|
+
|
|
3223
|
+
/** @token Background color */
|
|
3224
|
+
--_pont-checkbox-color-bg: var(
|
|
3225
|
+
--pont-checkbox-color-bg,
|
|
3226
|
+
var(--pont-sem-color-field)
|
|
3227
|
+
);
|
|
3228
|
+
|
|
3229
|
+
/** @token Border radius */
|
|
3034
3230
|
--_pont-checkbox-radius: var(--pont-checkbox-radius, 4px);
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3231
|
+
|
|
3232
|
+
/** @token Border width */
|
|
3233
|
+
--_pont-checkbox-border-width: var(
|
|
3234
|
+
--pont-checkbox-border-width,
|
|
3235
|
+
var(--pont-sem-border-width)
|
|
3236
|
+
);
|
|
3237
|
+
/** @token Border style */
|
|
3238
|
+
--_pont-checkbox-border-style: var(
|
|
3239
|
+
--pont-checkbox-border-style,
|
|
3240
|
+
var(--pont-sem-border-style)
|
|
3241
|
+
);
|
|
3242
|
+
/** @token Border color */
|
|
3243
|
+
--_pont-checkbox-border-color: var(
|
|
3244
|
+
--pont-checkbox-border-color,
|
|
3245
|
+
var(--pont-sem-color-field-border)
|
|
3246
|
+
);
|
|
3247
|
+
|
|
3248
|
+
--_pont-checkbox-inset-shadow: var(--pont-ref-shadow-inset-none);
|
|
3249
|
+
--_pont-checkbox-inset-ring: var(--pont-ref-shadow-inset-none);
|
|
3250
|
+
|
|
3251
|
+
--_pont-checkbox-ring-offset-width: var(
|
|
3252
|
+
--pont-sem-shadow-ring-offset-width
|
|
3253
|
+
);
|
|
3254
|
+
--_pont-checkbox-ring-offset: 0 0 0 var(--_pont-checkbox-ring-offset-width)
|
|
3255
|
+
var(--pont-sem-color-ring-offset);
|
|
3256
|
+
|
|
3257
|
+
/** @token Ring width */
|
|
3258
|
+
--_pont-checkbox-ring-width: var(
|
|
3259
|
+
--pont-checkbox-ring-width,
|
|
3260
|
+
var(--pont-sem-shadow-ring-width)
|
|
3261
|
+
);
|
|
3262
|
+
/** @token Ring color */
|
|
3263
|
+
--_pont-checkbox-ring-color: var(
|
|
3264
|
+
--pont-checkbox-ring-color,
|
|
3265
|
+
var(--pont-sem-color-ring)
|
|
3266
|
+
);
|
|
3267
|
+
|
|
3268
|
+
--_pont-checkbox-ring: 0 0 0
|
|
3269
|
+
calc(
|
|
3270
|
+
var(--_pont-checkbox-ring-width) +
|
|
3271
|
+
var(--_pont-checkbox-ring-offset-width)
|
|
3272
|
+
)
|
|
3273
|
+
var(--_pont-checkbox-ring-color);
|
|
3274
|
+
|
|
3275
|
+
/** @token Box shadow */
|
|
3276
|
+
--_pont-checkbox-shadow: var(
|
|
3277
|
+
--pont-checkbox-shadow,
|
|
3278
|
+
var(--pont-ref-shadow-xs)
|
|
3279
|
+
);
|
|
3280
|
+
|
|
3281
|
+
--_pont-checkbox-transition-property: var(
|
|
3282
|
+
--pont-ref-motion-trans-property-shadow
|
|
3283
|
+
);
|
|
3284
|
+
/** @token Transition duration */
|
|
3285
|
+
--_pont-checkbox-transition-duration: var(
|
|
3286
|
+
--pont-checkbox-transition-duration,
|
|
3287
|
+
var(--pont-sem-motion-trans-duration)
|
|
3288
|
+
);
|
|
3289
|
+
/** @token Transition timing function */
|
|
3290
|
+
--_pont-checkbox-transition-easing: var(
|
|
3291
|
+
--pont-checkbox-transition-easing,
|
|
3292
|
+
var(--pont-sem-motion-trans-easing)
|
|
3293
|
+
);
|
|
3294
|
+
|
|
3295
|
+
/** @token Cursor */
|
|
3296
|
+
--_pont-checkbox-cursor: var(
|
|
3297
|
+
--pont-checkbox-cursor,
|
|
3298
|
+
var(--pont-sem-cursor-interactive)
|
|
3299
|
+
);
|
|
3300
|
+
|
|
3301
|
+
--_pont-checkbox-after-inset-x: calc(var(--pont-ref-dimension) * -3);
|
|
3302
|
+
--_pont-checkbox-after-inset-y: calc(var(--pont-ref-dimension) * -2);
|
|
3303
|
+
|
|
3304
|
+
/** @token Align content */
|
|
3305
|
+
--_pont-checkbox-indicator-content: var(
|
|
3306
|
+
--pont-checkbox-indicator-content,
|
|
3307
|
+
var(--pont-ref-layout-content-center)
|
|
3308
|
+
);
|
|
3309
|
+
/** @token Justify content */
|
|
3310
|
+
--_pont-checkbox-indicator-justify: var(
|
|
3311
|
+
--pont-checkbox-indicator-justify,
|
|
3312
|
+
var(--pont-ref-layout-justify-center)
|
|
3313
|
+
);
|
|
3314
|
+
|
|
3315
|
+
/** @token Color (foreground) */
|
|
3316
|
+
--_pont-checkbox-indicator-color-fg: var(
|
|
3317
|
+
--pont-checkbox-indicator-color-fg,
|
|
3318
|
+
var(--pont-sem-color-primary-fg)
|
|
3319
|
+
);
|
|
3320
|
+
|
|
3321
|
+
/** @token Icon size (width and height) */
|
|
3322
|
+
--_pont-checkbox-indicator-icon-size: var(
|
|
3323
|
+
--pont-checkbox-indicator-icon-size,
|
|
3324
|
+
calc(var(--pont-ref-dimension) * 3.5)
|
|
3325
|
+
);
|
|
3326
|
+
|
|
3327
|
+
/* * -------- STATES -------- * */
|
|
3328
|
+
|
|
3329
|
+
/** @token Opacity when disabled */
|
|
3330
|
+
--_pont-checkbox-opacity-disabled: var(
|
|
3331
|
+
--pont-checkbox-opacity-disabled,
|
|
3332
|
+
var(--pont-sem-opacity-disabled)
|
|
3333
|
+
);
|
|
3334
|
+
|
|
3335
|
+
/** @token Cursor when disabled */
|
|
3336
|
+
--_pont-checkbox-cursor-disabled: var(
|
|
3337
|
+
--pont-checkbox-cursor-disabled,
|
|
3338
|
+
var(--pont-sem-cursor-disabled)
|
|
3339
|
+
);
|
|
3340
|
+
|
|
3341
|
+
/** @token Border color on focus */
|
|
3342
|
+
--_pont-checkbox-border-color-focus: var(
|
|
3343
|
+
--pont-checkbox-border-color-focus,
|
|
3344
|
+
var(--pont-sem-color-border-focus)
|
|
3345
|
+
);
|
|
3346
|
+
|
|
3347
|
+
/** @token Ring width on focus */
|
|
3348
|
+
--_pont-checkbox-ring-width-focus: var(
|
|
3349
|
+
--pont-checkbox-ring-width-focus,
|
|
3350
|
+
var(--pont-sem-shadow-ring-width-focus)
|
|
3351
|
+
);
|
|
3352
|
+
/** @token Ring color on focus */
|
|
3353
|
+
--_pont-checkbox-ring-color-focus: var(
|
|
3354
|
+
--pont-checkbox-ring-color-focus,
|
|
3355
|
+
var(--pont-sem-color-ring-focus)
|
|
3356
|
+
);
|
|
3357
|
+
|
|
3358
|
+
--_pont-checkbox-ring-focus: 0 0 0
|
|
3359
|
+
calc(
|
|
3360
|
+
var(--_pont-checkbox-ring-width-focus) +
|
|
3361
|
+
var(--_pont-checkbox-ring-offset-width)
|
|
3362
|
+
)
|
|
3363
|
+
var(--_pont-checkbox-ring-color-focus);
|
|
3364
|
+
|
|
3365
|
+
/** @token Border color when invalid */
|
|
3366
|
+
--_pont-checkbox-border-color-invalid: var(
|
|
3367
|
+
--pont-checkbox-border-color-invalid,
|
|
3368
|
+
var(--pont-sem-color-border-invalid)
|
|
3369
|
+
);
|
|
3370
|
+
|
|
3371
|
+
/** @token Ring width when invalid */
|
|
3372
|
+
--_pont-checkbox-ring-width-invalid: var(
|
|
3373
|
+
--pont-checkbox-ring-width-invalid,
|
|
3374
|
+
var(--pont-sem-shadow-ring-width-invalid)
|
|
3375
|
+
);
|
|
3376
|
+
/** @token Ring color when invalid */
|
|
3377
|
+
--_pont-checkbox-ring-color-invalid: var(
|
|
3378
|
+
--pont-checkbox-ring-color-invalid,
|
|
3379
|
+
var(--pont-sem-color-ring-invalid)
|
|
3380
|
+
);
|
|
3381
|
+
|
|
3382
|
+
--_pont-checkbox-ring-invalid: 0 0 0
|
|
3383
|
+
calc(
|
|
3384
|
+
var(--_pont-checkbox-ring-width-invalid) +
|
|
3385
|
+
var(--_pont-checkbox-ring-offset-width)
|
|
3386
|
+
)
|
|
3387
|
+
var(--_pont-checkbox-ring-color-invalid);
|
|
3388
|
+
|
|
3389
|
+
/** @token Background color when checked */
|
|
3390
|
+
--_pont-checkbox-color-bg-checked: var(
|
|
3391
|
+
--pont-checkbox-color-bg-checked,
|
|
3392
|
+
var(--pont-sem-color-primary)
|
|
3393
|
+
);
|
|
3394
|
+
|
|
3395
|
+
/** @token Border color when checked */
|
|
3396
|
+
--_pont-checkbox-border-color-checked: var(
|
|
3397
|
+
--pont-checkbox-border-color-checked,
|
|
3398
|
+
var(--_pont-checkbox-color-bg-checked)
|
|
3399
|
+
);
|
|
3041
3400
|
}
|
|
3401
|
+
}
|
|
3042
3402
|
|
|
3403
|
+
/*
|
|
3404
|
+
* ---------------------------------------------------------------------------
|
|
3405
|
+
* RECIPES
|
|
3406
|
+
* ---------------------------------------------------------------------------
|
|
3407
|
+
*/
|
|
3408
|
+
|
|
3409
|
+
@layer pont.primitives {
|
|
3043
3410
|
:is(pont-prim-checkbox, pont-checkbox, [data-pont-checkbox]) {
|
|
3044
|
-
|
|
3045
|
-
|
|
3411
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
3412
|
+
display: flex;
|
|
3046
3413
|
position: relative;
|
|
3414
|
+
|
|
3047
3415
|
flex-shrink: 0;
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
width:
|
|
3052
|
-
height:
|
|
3053
|
-
|
|
3416
|
+
align-items: var(--_pont-checkbox-items);
|
|
3417
|
+
justify-content: var(--_pont-checkbox-justify);
|
|
3418
|
+
|
|
3419
|
+
width: var(--_pont-checkbox-width);
|
|
3420
|
+
height: var(--_pont-checkbox-height);
|
|
3421
|
+
|
|
3422
|
+
background-color: var(--_pont-checkbox-color-bg);
|
|
3423
|
+
|
|
3054
3424
|
border-radius: var(--_pont-checkbox-radius);
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3425
|
+
|
|
3426
|
+
border-width: var(--_pont-checkbox-border-width);
|
|
3427
|
+
border-style: var(--_pont-checkbox-border-style);
|
|
3428
|
+
border-color: var(--_pont-checkbox-border-color);
|
|
3429
|
+
|
|
3430
|
+
outline: var(--pont-sem-border-outline-none);
|
|
3431
|
+
|
|
3432
|
+
box-shadow:
|
|
3433
|
+
var(--_pont-checkbox-inset-shadow), var(--_pont-checkbox-inset-ring),
|
|
3434
|
+
var(--_pont-checkbox-ring-offset), var(--_pont-checkbox-ring),
|
|
3435
|
+
var(--_pont-checkbox-shadow);
|
|
3436
|
+
|
|
3437
|
+
transition-property: var(--_pont-checkbox-transition-property);
|
|
3438
|
+
transition-duration: var(--_pont-checkbox-transition-duration);
|
|
3439
|
+
transition-timing-function: var(--_pont-checkbox-transition-easing);
|
|
3440
|
+
|
|
3441
|
+
cursor: var(--_pont-checkbox-cursor);
|
|
3063
3442
|
}
|
|
3064
3443
|
|
|
3065
|
-
/*
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3444
|
+
/* * -------- STATES -------- * */
|
|
3445
|
+
|
|
3446
|
+
/* * DISABLED * */
|
|
3447
|
+
|
|
3448
|
+
[data-pont-checkbox]:is(:disabled, [data-disabled]) {
|
|
3449
|
+
opacity: var(--_pont-checkbox-opacity-disabled);
|
|
3450
|
+
cursor: var(--_pont-checkbox-cursor-disabled);
|
|
3070
3451
|
}
|
|
3071
3452
|
|
|
3453
|
+
/* Parent field has disabled */
|
|
3454
|
+
[data-slot="field"]:has(:disabled) [data-pont-checkbox] {
|
|
3455
|
+
opacity: var(--_pont-checkbox-opacity-disabled);
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
/* * CHECKED * */
|
|
3459
|
+
|
|
3072
3460
|
[data-pont-checkbox]:is([data-checked], [data-indeterminate]) {
|
|
3073
|
-
background-color: var(--_pont-checkbox-bg-checked);
|
|
3074
|
-
color: var(--_pont-checkbox-fg-checked);
|
|
3461
|
+
background-color: var(--_pont-checkbox-color-bg-checked);
|
|
3075
3462
|
border-color: var(--_pont-checkbox-border-color-checked);
|
|
3076
3463
|
}
|
|
3077
3464
|
|
|
3465
|
+
/* * FOCUS * */
|
|
3466
|
+
|
|
3078
3467
|
[data-pont-checkbox]:focus-visible {
|
|
3079
|
-
border-color: var(--
|
|
3080
|
-
|
|
3468
|
+
border-color: var(--_pont-checkbox-border-color-focus);
|
|
3469
|
+
|
|
3470
|
+
box-shadow:
|
|
3471
|
+
var(--_pont-checkbox-inset-shadow), var(--_pont-checkbox-inset-ring),
|
|
3472
|
+
var(--_pont-checkbox-ring-offset), var(--_pont-checkbox-ring-focus),
|
|
3473
|
+
var(--_pont-checkbox-shadow);
|
|
3081
3474
|
}
|
|
3082
3475
|
|
|
3476
|
+
/* * INVALID * */
|
|
3477
|
+
|
|
3083
3478
|
[data-pont-checkbox][aria-invalid="true"] {
|
|
3084
|
-
border-color: var(--
|
|
3085
|
-
|
|
3479
|
+
border-color: var(--_pont-checkbox-border-color-invalid);
|
|
3480
|
+
|
|
3481
|
+
box-shadow:
|
|
3482
|
+
var(--_pont-checkbox-inset-shadow), var(--_pont-checkbox-inset-ring),
|
|
3483
|
+
var(--_pont-checkbox-ring-offset), var(--_pont-checkbox-ring-invalid),
|
|
3484
|
+
var(--_pont-checkbox-shadow);
|
|
3086
3485
|
}
|
|
3087
|
-
|
|
3486
|
+
|
|
3487
|
+
/* * MISCELLANEOUS * */
|
|
3488
|
+
|
|
3489
|
+
/* Invalid and checked */
|
|
3490
|
+
[data-pont-checkbox][aria-invalid="true"]:is(
|
|
3491
|
+
[data-checked],
|
|
3492
|
+
[data-indeterminate]
|
|
3493
|
+
) {
|
|
3088
3494
|
border-color: var(--_pont-checkbox-border-color-checked);
|
|
3089
3495
|
}
|
|
3090
3496
|
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3497
|
+
/* When inside a field label 'choice-card', the checkbox drops its 'focus'
|
|
3498
|
+
styles and the label parent performs them instead. */
|
|
3499
|
+
[data-slot="field-label"]:has(:focus-visible)
|
|
3500
|
+
[data-pont-checkbox]:not([data-checked]) {
|
|
3501
|
+
border-color: var(--_pont-checkbox-border-color);
|
|
3094
3502
|
}
|
|
3095
3503
|
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3504
|
+
[data-slot="field-label"]:has(:focus-visible)
|
|
3505
|
+
[data-pont-checkbox][data-checked] {
|
|
3506
|
+
border-color: var(--_pont-checkbox-border-color-checked);
|
|
3099
3507
|
}
|
|
3100
3508
|
|
|
3101
|
-
/* Inside a choice-card FieldLabel the label draws the focus ring instead. */
|
|
3102
3509
|
[data-slot="field-label"]:has(:focus-visible) [data-pont-checkbox] {
|
|
3103
|
-
|
|
3510
|
+
box-shadow:
|
|
3511
|
+
var(--_pont-checkbox-inset-shadow), var(--_pont-checkbox-inset-ring),
|
|
3512
|
+
var(--_pont-checkbox-ring-offset), var(--_pont-checkbox-ring),
|
|
3513
|
+
var(--_pont-checkbox-shadow);
|
|
3104
3514
|
}
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3515
|
+
|
|
3516
|
+
/* * -------- AFTER ('hit area') -------- * */
|
|
3517
|
+
|
|
3518
|
+
:is(pont-prim-checkbox, pont-checkbox, [data-pont-checkbox])::after {
|
|
3519
|
+
content: "";
|
|
3520
|
+
|
|
3521
|
+
position: absolute;
|
|
3522
|
+
|
|
3523
|
+
inset-inline: var(--_pont-checkbox-after-inset-x);
|
|
3524
|
+
inset-block: var(--_pont-checkbox-after-inset-y);
|
|
3110
3525
|
}
|
|
3111
3526
|
|
|
3527
|
+
/* * -------- INDICATOR -------- * */
|
|
3528
|
+
|
|
3112
3529
|
[data-pont-checkbox-indicator] {
|
|
3113
3530
|
display: grid;
|
|
3114
|
-
|
|
3115
|
-
|
|
3531
|
+
|
|
3532
|
+
align-content: var(--_pont-checkbox-indicator-content);
|
|
3533
|
+
justify-content: var(--_pont-checkbox-indicator-justify);
|
|
3534
|
+
|
|
3535
|
+
color: var(--_pont-checkbox-indicator-color-fg);
|
|
3536
|
+
|
|
3116
3537
|
transition-property: var(--pont-ref-motion-trans-property-none);
|
|
3117
3538
|
}
|
|
3539
|
+
|
|
3118
3540
|
[data-pont-checkbox-indicator] > svg {
|
|
3119
|
-
width:
|
|
3120
|
-
height:
|
|
3541
|
+
width: var(--_pont-checkbox-indicator-icon-size);
|
|
3542
|
+
height: var(--_pont-checkbox-indicator-icon-size);
|
|
3121
3543
|
}
|
|
3122
3544
|
}
|
|
3123
3545
|
|
|
@@ -3561,6 +3983,14 @@
|
|
|
3561
3983
|
* Tokens (docs/11-tokens.md): `--pont-avatar-*`, resolved on the avatar (and
|
|
3562
3984
|
* on a group count, which shares the fallback's look) and inherited by the
|
|
3563
3985
|
* parts. shadcn's `dark:after:mix-blend-lighten` is sem-mode-blend.
|
|
3986
|
+
*
|
|
3987
|
+
* Sizes only switch tokens: the base block sets `--_pont-avatar-width` /
|
|
3988
|
+
* `-height` from the default-size tokens, each size block re-points the same
|
|
3989
|
+
* privates at its own size-qualified tokens (`--pont-avatar-sm-width` …), and
|
|
3990
|
+
* the recipe declares `width` / `height` once. A size token falls back to its
|
|
3991
|
+
* literal, not to the unqualified token, so resizing the default avatar
|
|
3992
|
+
* leaves sm and lg alone. The group count takes its size from the group's
|
|
3993
|
+
* avatars, so its size blocks key off the group and read the same tokens.
|
|
3564
3994
|
*/
|
|
3565
3995
|
@layer pont.primitives {
|
|
3566
3996
|
/* ------------------------------------------------------------------ */
|
|
@@ -3568,6 +3998,10 @@
|
|
|
3568
3998
|
/* ------------------------------------------------------------------ */
|
|
3569
3999
|
|
|
3570
4000
|
:is(pont-prim-avatar, [data-pont-avatar], pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
4001
|
+
/** @token Width */
|
|
4002
|
+
--_pont-avatar-width: var(--pont-avatar-width, 2rem);
|
|
4003
|
+
/** @token Height */
|
|
4004
|
+
--_pont-avatar-height: var(--pont-avatar-height, 2rem);
|
|
3571
4005
|
/** @token Corner radius */
|
|
3572
4006
|
--_pont-avatar-radius: var(--pont-avatar-radius, var(--pont-ref-radius-full));
|
|
3573
4007
|
/** @token Outline ring */
|
|
@@ -3582,6 +4016,22 @@
|
|
|
3582
4016
|
--_pont-avatar-badge-fg: var(--pont-avatar-badge-fg, var(--pont-sem-color-primary-fg));
|
|
3583
4017
|
}
|
|
3584
4018
|
|
|
4019
|
+
/* Sizes: the same privates, re-pointed at the size's tokens. */
|
|
4020
|
+
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="sm"], [size="sm"]),
|
|
4021
|
+
[data-pont-avatar-group]:has([data-size="sm"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
4022
|
+
/** @token Width */
|
|
4023
|
+
--_pont-avatar-width: var(--pont-avatar-sm-width, 1.5rem);
|
|
4024
|
+
/** @token Height */
|
|
4025
|
+
--_pont-avatar-height: var(--pont-avatar-sm-height, 1.5rem);
|
|
4026
|
+
}
|
|
4027
|
+
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="lg"], [size="lg"]),
|
|
4028
|
+
[data-pont-avatar-group]:has([data-size="lg"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
4029
|
+
/** @token Width */
|
|
4030
|
+
--_pont-avatar-width: var(--pont-avatar-lg-width, 2.5rem);
|
|
4031
|
+
/** @token Height */
|
|
4032
|
+
--_pont-avatar-height: var(--pont-avatar-lg-height, 2.5rem);
|
|
4033
|
+
}
|
|
4034
|
+
|
|
3585
4035
|
/* ------------------------------------------------------------------ */
|
|
3586
4036
|
/* Recipe (parts read the avatar's privates; fallbacks for a part used */
|
|
3587
4037
|
/* outside an avatar) */
|
|
@@ -3592,8 +4042,8 @@
|
|
|
3592
4042
|
position: relative;
|
|
3593
4043
|
display: flex;
|
|
3594
4044
|
flex-shrink: 0;
|
|
3595
|
-
width:
|
|
3596
|
-
height:
|
|
4045
|
+
width: var(--_pont-avatar-width);
|
|
4046
|
+
height: var(--_pont-avatar-height);
|
|
3597
4047
|
border-radius: var(--_pont-avatar-radius);
|
|
3598
4048
|
user-select: none;
|
|
3599
4049
|
box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
|
|
@@ -3608,14 +4058,6 @@
|
|
|
3608
4058
|
mix-blend-mode: var(--pont-sem-mode-blend);
|
|
3609
4059
|
pointer-events: none;
|
|
3610
4060
|
}
|
|
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
4061
|
|
|
3620
4062
|
/* Image: the author's native <img>, shown only once loaded. */
|
|
3621
4063
|
:is(pont-prim-avatar, [data-pont-avatar]) > img {
|
|
@@ -3704,8 +4146,8 @@
|
|
|
3704
4146
|
flex-shrink: 0;
|
|
3705
4147
|
align-items: center;
|
|
3706
4148
|
justify-content: center;
|
|
3707
|
-
width:
|
|
3708
|
-
height:
|
|
4149
|
+
width: var(--_pont-avatar-width);
|
|
4150
|
+
height: var(--_pont-avatar-height);
|
|
3709
4151
|
border-radius: var(--_pont-avatar-radius);
|
|
3710
4152
|
background-color: var(--_pont-avatar-fallback-bg);
|
|
3711
4153
|
color: var(--_pont-avatar-fallback-fg);
|
|
@@ -3717,18 +4159,10 @@
|
|
|
3717
4159
|
width: 1rem;
|
|
3718
4160
|
height: 1rem;
|
|
3719
4161
|
}
|
|
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
4162
|
[data-pont-avatar-group]:has([data-size="lg"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
3725
4163
|
width: 1.25rem;
|
|
3726
4164
|
height: 1.25rem;
|
|
3727
4165
|
}
|
|
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
4166
|
[data-pont-avatar-group]:has([data-size="sm"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
3733
4167
|
width: 0.75rem;
|
|
3734
4168
|
height: 0.75rem;
|
|
@@ -4298,6 +4732,11 @@
|
|
|
4298
4732
|
:is(pont-prim-field, [data-pont-field]):is([data-invalid]:not([data-invalid="false"])) {
|
|
4299
4733
|
color: var(--_pont-field-fg-invalid);
|
|
4300
4734
|
}
|
|
4735
|
+
/* Its labels follow through the label's text colour, so a theme's
|
|
4736
|
+
--pont-label-color-fg does not hide the invalid state. */
|
|
4737
|
+
:is(pont-prim-field, [data-pont-field]):is([data-invalid]:not([data-invalid="false"])) [data-pont-label] {
|
|
4738
|
+
--_pont-label-color-fg: var(--_pont-field-fg-invalid);
|
|
4739
|
+
}
|
|
4301
4740
|
|
|
4302
4741
|
/* vertical (default) and responsive below @md */
|
|
4303
4742
|
:is(pont-prim-field, [data-pont-field]):is(:not([data-orientation]), [data-orientation="vertical"], [data-orientation="responsive"]) > * {
|
|
@@ -4352,11 +4791,10 @@
|
|
|
4352
4791
|
line-height: var(--pont-ref-typography-leading-snug);
|
|
4353
4792
|
}
|
|
4354
4793
|
|
|
4355
|
-
/* ---------------- FieldLabel (native label; Label recipe applies too) ----------------
|
|
4794
|
+
/* ---------------- FieldLabel (native label; Label recipe applies too) ----------------
|
|
4795
|
+
flex and gap-2 come from the Label recipe, so the label tokens reach field labels. */
|
|
4356
4796
|
[data-pont-field-label] {
|
|
4357
|
-
display: flex;
|
|
4358
4797
|
width: var(--pont-ref-dimension-size-fit);
|
|
4359
|
-
gap: 0.5rem;
|
|
4360
4798
|
line-height: var(--pont-ref-typography-leading-snug);
|
|
4361
4799
|
}
|
|
4362
4800
|
[data-pont-field][data-disabled]:not([data-disabled="false"]) [data-pont-field-label],
|
|
@@ -8202,19 +8640,31 @@
|
|
|
8202
8640
|
* where composite-specific rules go when they appear.
|
|
8203
8641
|
*/
|
|
8204
8642
|
@layer pont.kit {
|
|
8205
|
-
/* Size before upgrade, so a server-rendered composite does not collapse.
|
|
8643
|
+
/* Size before upgrade, so a server-rendered composite does not collapse.
|
|
8644
|
+
The primitive's token block only applies once the host carries
|
|
8645
|
+
[data-pont-avatar], so this reads the same size tokens, with the same
|
|
8646
|
+
defaults, through the same privates: a branded avatar keeps its size
|
|
8647
|
+
when it upgrades. */
|
|
8206
8648
|
pont-avatar:not([data-pont-avatar]) {
|
|
8649
|
+
/** @token Width */
|
|
8650
|
+
--_pont-avatar-width: var(--pont-avatar-width, 2rem);
|
|
8651
|
+
/** @token Height */
|
|
8652
|
+
--_pont-avatar-height: var(--pont-avatar-height, 2rem);
|
|
8207
8653
|
display: inline-flex;
|
|
8208
|
-
width:
|
|
8209
|
-
height:
|
|
8654
|
+
width: var(--_pont-avatar-width);
|
|
8655
|
+
height: var(--_pont-avatar-height);
|
|
8210
8656
|
}
|
|
8211
8657
|
pont-avatar:not([data-pont-avatar])[size="sm"] {
|
|
8212
|
-
|
|
8213
|
-
|
|
8658
|
+
/** @token Width */
|
|
8659
|
+
--_pont-avatar-width: var(--pont-avatar-sm-width, 1.5rem);
|
|
8660
|
+
/** @token Height */
|
|
8661
|
+
--_pont-avatar-height: var(--pont-avatar-sm-height, 1.5rem);
|
|
8214
8662
|
}
|
|
8215
8663
|
pont-avatar:not([data-pont-avatar])[size="lg"] {
|
|
8216
|
-
|
|
8217
|
-
|
|
8664
|
+
/** @token Width */
|
|
8665
|
+
--_pont-avatar-width: var(--pont-avatar-lg-width, 2.5rem);
|
|
8666
|
+
/** @token Height */
|
|
8667
|
+
--_pont-avatar-height: var(--pont-avatar-lg-height, 2.5rem);
|
|
8218
8668
|
}
|
|
8219
8669
|
}
|
|
8220
8670
|
|