@pontive/pontkit-core 1.49.0 → 1.50.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 +1074 -233
- package/dist/theme-golden.json +67 -67
- package/dist/theme.mjs +184 -167
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens.json +2821 -1331
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -2981,94 +2981,452 @@
|
|
|
2981
2981
|
|
|
2982
2982
|
/* ../primitives/input/input.css */
|
|
2983
2983
|
/*
|
|
2984
|
-
*
|
|
2985
|
-
*
|
|
2986
|
-
*
|
|
2987
|
-
* disabled:cursor-not-allowed disabled:opacity-50" + .cn-input
|
|
2984
|
+
* ===========================================================================
|
|
2985
|
+
* INPUT STYLES
|
|
2986
|
+
* ===========================================================================
|
|
2988
2987
|
*
|
|
2989
|
-
*
|
|
2990
|
-
*
|
|
2991
|
-
*
|
|
2988
|
+
* shadcn/ui Base UI x Vega:
|
|
2989
|
+
* h-9 w-full min-w-0 rounded-md border border-input bg-transparent dark:bg-input/30 px-2.5 py-1 text-base md:text-sm shadow-xs transition-[color,box-shadow] outline-none
|
|
2990
|
+
* file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground
|
|
2991
|
+
* placeholder:text-muted-foreground
|
|
2992
|
+
* focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50
|
|
2993
|
+
* disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50
|
|
2994
|
+
* 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
|
|
2995
|
+
*
|
|
2996
|
+
* Differences:
|
|
2997
|
+
* - The shadcn input uses `text-base md:text-sm` and the same style is applied
|
|
2998
|
+
* by default here. However, the public tokens available for typography
|
|
2999
|
+
* (including font size and line height) do not allow override 'by
|
|
3000
|
+
* breakpoint' - it is a single override which applies to all breakpoints.
|
|
3001
|
+
* - A `margin-inline-end` added to the file selector button so the button
|
|
3002
|
+
* label text and the file name text do not stick together.
|
|
2992
3003
|
*/
|
|
3004
|
+
|
|
3005
|
+
/*
|
|
3006
|
+
* ---------------------------------------------------------------------------
|
|
3007
|
+
* TOKENS
|
|
3008
|
+
* ---------------------------------------------------------------------------
|
|
3009
|
+
*/
|
|
3010
|
+
|
|
2993
3011
|
@layer pont.primitives {
|
|
2994
3012
|
[data-pont-input] {
|
|
2995
|
-
/** @token
|
|
2996
|
-
--_pont-input-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3013
|
+
/** @token Horizontal padding */
|
|
3014
|
+
--_pont-input-padding-x: var(
|
|
3015
|
+
--pont-input-padding-x,
|
|
3016
|
+
calc(var(--pont-ref-dimension) * 2.5)
|
|
3017
|
+
);
|
|
3018
|
+
/** @token Vertical padding */
|
|
3019
|
+
--_pont-input-padding-y: var(
|
|
3020
|
+
--pont-input-padding-y,
|
|
3021
|
+
calc(var(--pont-ref-dimension) * 1)
|
|
3022
|
+
);
|
|
3023
|
+
/** @token Top padding */
|
|
3024
|
+
--_pont-input-padding-top: var(
|
|
3025
|
+
--pont-input-padding-top,
|
|
3026
|
+
var(--_pont-input-padding-y)
|
|
3027
|
+
);
|
|
3028
|
+
/** @token Right padding */
|
|
3029
|
+
--_pont-input-padding-right: var(
|
|
3030
|
+
--pont-input-padding-right,
|
|
3031
|
+
var(--_pont-input-padding-x)
|
|
3032
|
+
);
|
|
3033
|
+
/** @token Bottom padding */
|
|
3034
|
+
--_pont-input-padding-bottom: var(
|
|
3035
|
+
--pont-input-padding-bottom,
|
|
3036
|
+
var(--_pont-input-padding-y)
|
|
3037
|
+
);
|
|
3038
|
+
/** @token Left padding */
|
|
3039
|
+
--_pont-input-padding-left: var(
|
|
3040
|
+
--pont-input-padding-left,
|
|
3041
|
+
var(--_pont-input-padding-x)
|
|
3042
|
+
);
|
|
3043
|
+
|
|
3044
|
+
/** @token Width */
|
|
3045
|
+
--_pont-input-width: var(
|
|
3046
|
+
--pont-input-width,
|
|
3047
|
+
var(--pont-ref-dimension-size-full)
|
|
3048
|
+
);
|
|
3049
|
+
/** @token Min width */
|
|
3050
|
+
--_pont-input-min-width: var(--pont-input-min-width, 0);
|
|
3051
|
+
/** @token Max width */
|
|
3052
|
+
--_pont-input-max-width: var(
|
|
3053
|
+
--pont-input-max-width,
|
|
3054
|
+
var(--pont-sem-dimension-size-max)
|
|
3055
|
+
);
|
|
3056
|
+
/** @token Height */
|
|
3057
|
+
--_pont-input-height: var(
|
|
3058
|
+
--pont-input-height,
|
|
3059
|
+
calc(var(--pont-ref-dimension) * 9)
|
|
3060
|
+
);
|
|
3061
|
+
/** @token Min height */
|
|
3062
|
+
--_pont-input-min-height: var(
|
|
3063
|
+
--pont-input-min-height,
|
|
3064
|
+
var(--pont-sem-dimension-size-min)
|
|
3065
|
+
);
|
|
3066
|
+
/** @token Max height */
|
|
3067
|
+
--_pont-input-max-height: var(
|
|
3068
|
+
--pont-input-max-height,
|
|
3069
|
+
var(--pont-sem-dimension-size-max)
|
|
3070
|
+
);
|
|
3071
|
+
|
|
3072
|
+
--_pont-input-font-size-default: var(--pont-ref-typography-size-base);
|
|
3073
|
+
--_pont-input-line-height-default: var(
|
|
3074
|
+
--pont-ref-typography-leading-of-base
|
|
3075
|
+
);
|
|
3076
|
+
|
|
3077
|
+
/** @token Font family */
|
|
3078
|
+
--_pont-input-font-family: var(
|
|
3079
|
+
--pont-input-font-family,
|
|
3080
|
+
var(--pont-sem-typography-font-body)
|
|
3081
|
+
);
|
|
3082
|
+
/** @token Font size */
|
|
3083
|
+
--_pont-input-font-size: var(
|
|
3084
|
+
--pont-input-font-size,
|
|
3085
|
+
var(--_pont-input-font-size-default)
|
|
3086
|
+
);
|
|
3087
|
+
/** @token Font weight */
|
|
3088
|
+
--_pont-input-font-weight: var(
|
|
3089
|
+
--pont-input-font-weight,
|
|
3090
|
+
var(--pont-sem-typography-weight)
|
|
3091
|
+
);
|
|
3092
|
+
/** @token Letter spacing */
|
|
3093
|
+
--_pont-input-letter-spacing: var(
|
|
3094
|
+
--pont-input-letter-spacing,
|
|
3095
|
+
var(--pont-sem-typography-tracking)
|
|
3096
|
+
);
|
|
3097
|
+
/** @token Line height */
|
|
3098
|
+
--_pont-input-line-height: var(
|
|
3099
|
+
--pont-input-line-height,
|
|
3100
|
+
var(--_pont-input-line-height-default)
|
|
3101
|
+
);
|
|
3102
|
+
|
|
3103
|
+
/** @token Background color */
|
|
3104
|
+
--_pont-input-color-bg: var(
|
|
3105
|
+
--pont-input-color-bg,
|
|
3106
|
+
var(--pont-sem-color-field)
|
|
3107
|
+
);
|
|
3108
|
+
/** @token Foreground color */
|
|
3109
|
+
--_pont-input-color-fg: var(
|
|
3110
|
+
--pont-input-color-fg,
|
|
3111
|
+
var(--pont-ref-color-current)
|
|
3112
|
+
);
|
|
3113
|
+
|
|
3114
|
+
/** @token Border radius */
|
|
3002
3115
|
--_pont-input-radius: var(--pont-input-radius, var(--pont-ref-radius-md));
|
|
3116
|
+
|
|
3117
|
+
/** @token Border width */
|
|
3118
|
+
--_pont-input-border-width: var(
|
|
3119
|
+
--pont-input-border-width,
|
|
3120
|
+
var(--pont-sem-border-width)
|
|
3121
|
+
);
|
|
3122
|
+
/** @token Border style */
|
|
3123
|
+
--_pont-input-border-style: var(
|
|
3124
|
+
--pont-input-border-style,
|
|
3125
|
+
var(--pont-sem-border-style)
|
|
3126
|
+
);
|
|
3127
|
+
/** @token Border color */
|
|
3128
|
+
--_pont-input-border-color: var(
|
|
3129
|
+
--pont-input-border-color,
|
|
3130
|
+
var(--pont-sem-color-field-border)
|
|
3131
|
+
);
|
|
3132
|
+
|
|
3133
|
+
--_pont-input-inset-shadow: var(--pont-ref-shadow-inset-none);
|
|
3134
|
+
--_pont-input-inset-ring: var(--pont-ref-shadow-inset-none);
|
|
3135
|
+
|
|
3136
|
+
--_pont-input-ring-offset-width: var(--pont-sem-shadow-ring-offset-width);
|
|
3137
|
+
--_pont-input-ring-offset: 0 0 0 var(--_pont-input-ring-offset-width)
|
|
3138
|
+
var(--pont-sem-color-ring-offset);
|
|
3139
|
+
|
|
3140
|
+
/** @token Ring width */
|
|
3141
|
+
--_pont-input-ring-width: var(
|
|
3142
|
+
--pont-input-ring-width,
|
|
3143
|
+
var(--pont-sem-shadow-ring-width)
|
|
3144
|
+
);
|
|
3145
|
+
/** @token Ring color */
|
|
3146
|
+
--_pont-input-ring-color: var(
|
|
3147
|
+
--pont-input-ring-color,
|
|
3148
|
+
var(--pont-sem-color-ring)
|
|
3149
|
+
);
|
|
3150
|
+
|
|
3151
|
+
--_pont-input-ring: 0 0 0
|
|
3152
|
+
calc(var(--_pont-input-ring-width) + var(--_pont-input-ring-offset-width))
|
|
3153
|
+
var(--_pont-input-ring-color);
|
|
3154
|
+
|
|
3155
|
+
/** @token Box shadow */
|
|
3156
|
+
--_pont-input-shadow: var(--pont-input-shadow, var(--pont-ref-shadow-xs));
|
|
3157
|
+
|
|
3158
|
+
--_pont-input-transition-property: color, box-shadow;
|
|
3159
|
+
/** @token Transition duration */
|
|
3160
|
+
--_pont-input-transition-duration: var(
|
|
3161
|
+
--pont-input-transition-duration,
|
|
3162
|
+
var(--pont-sem-motion-trans-duration)
|
|
3163
|
+
);
|
|
3164
|
+
/** @token Transition timing function */
|
|
3165
|
+
--_pont-input-transition-easing: var(
|
|
3166
|
+
--pont-input-transition-easing,
|
|
3167
|
+
var(--pont-sem-motion-trans-easing)
|
|
3168
|
+
);
|
|
3169
|
+
|
|
3170
|
+
/** @token Foreground color */
|
|
3171
|
+
--_pont-input-placeholder-color-fg: var(
|
|
3172
|
+
--pont-input-placeholder-color-fg,
|
|
3173
|
+
var(--pont-sem-color-muted-fg)
|
|
3174
|
+
);
|
|
3175
|
+
|
|
3176
|
+
/** @token Width */
|
|
3177
|
+
--_pont-input-file-button-width: var(
|
|
3178
|
+
--pont-input-file-button-width,
|
|
3179
|
+
var(--pont-sem-dimension-size)
|
|
3180
|
+
);
|
|
3003
3181
|
/** @token Height */
|
|
3004
|
-
--_pont-input-height: var(
|
|
3005
|
-
|
|
3006
|
-
|
|
3182
|
+
--_pont-input-file-button-height: var(
|
|
3183
|
+
--pont-input-file-button-height,
|
|
3184
|
+
calc(var(--pont-ref-dimension) * 7)
|
|
3185
|
+
);
|
|
3186
|
+
|
|
3187
|
+
/** @token Font family */
|
|
3188
|
+
--_pont-input-file-button-font-family: var(
|
|
3189
|
+
--pont-input-file-button-font-family,
|
|
3190
|
+
var(--_pont-input-font-family)
|
|
3191
|
+
);
|
|
3192
|
+
/** @token Font size */
|
|
3193
|
+
--_pont-input-file-button-font-size: var(
|
|
3194
|
+
--pont-input-file-button-font-size,
|
|
3195
|
+
var(--pont-ref-typography-size-sm)
|
|
3196
|
+
);
|
|
3197
|
+
/** @token Font weight */
|
|
3198
|
+
--_pont-input-file-button-font-weight: var(
|
|
3199
|
+
--pont-input-file-button-font-weight,
|
|
3200
|
+
var(--pont-ref-typography-weight-medium)
|
|
3201
|
+
);
|
|
3202
|
+
/** @token Letter spacing */
|
|
3203
|
+
--_pont-input-file-button-letter-spacing: var(
|
|
3204
|
+
--pont-input-file-button-letter-spacing,
|
|
3205
|
+
var(--pont-sem-typography-tracking)
|
|
3206
|
+
);
|
|
3207
|
+
/** @token Line height */
|
|
3208
|
+
--_pont-input-file-button-line-height: var(
|
|
3209
|
+
--pont-input-file-button-line-height,
|
|
3210
|
+
var(--pont-ref-typography-leading-of-sm)
|
|
3211
|
+
);
|
|
3212
|
+
|
|
3213
|
+
/** @token Background color */
|
|
3214
|
+
--_pont-input-file-button-color-bg: var(
|
|
3215
|
+
--pont-input-file-button-color-bg,
|
|
3216
|
+
var(--pont-ref-color-transparent)
|
|
3217
|
+
);
|
|
3218
|
+
/** @token Foreground color */
|
|
3219
|
+
--_pont-input-file-button-color-fg: var(
|
|
3220
|
+
--pont-input-file-button-color-fg,
|
|
3221
|
+
var(--pont-sem-color-fg)
|
|
3222
|
+
);
|
|
3223
|
+
|
|
3224
|
+
/** @token Border width */
|
|
3225
|
+
--_pont-input-file-button-border-width: var(
|
|
3226
|
+
--pont-input-file-button-border-width,
|
|
3227
|
+
0
|
|
3228
|
+
);
|
|
3229
|
+
/** @token Border style */
|
|
3230
|
+
--_pont-input-file-button-border-style: var(
|
|
3231
|
+
--pont-input-file-button-border-style,
|
|
3232
|
+
var(--pont-ref-border-style-none)
|
|
3233
|
+
);
|
|
3234
|
+
/** @token Border color */
|
|
3235
|
+
--_pont-input-file-button-border-color: var(
|
|
3236
|
+
--pont-input-file-button-border-color,
|
|
3237
|
+
var(--pont-ref-color-transparent)
|
|
3238
|
+
);
|
|
3239
|
+
|
|
3240
|
+
/* * -------- STATES -------- * */
|
|
3241
|
+
|
|
3242
|
+
/** @token Opacity when disabled */
|
|
3243
|
+
--_pont-input-opacity-disabled: var(
|
|
3244
|
+
--pont-input-opacity-disabled,
|
|
3245
|
+
var(--pont-sem-opacity-disabled)
|
|
3246
|
+
);
|
|
3247
|
+
|
|
3248
|
+
/** @token Cursor when disabled */
|
|
3249
|
+
--_pont-input-cursor-disabled: var(
|
|
3250
|
+
--pont-input-cursor-disabled,
|
|
3251
|
+
var(--pont-sem-cursor-disabled)
|
|
3252
|
+
);
|
|
3253
|
+
|
|
3254
|
+
/** @token Border color on focus */
|
|
3255
|
+
--_pont-input-border-color-focus: var(
|
|
3256
|
+
--pont-input-border-color-focus,
|
|
3257
|
+
var(--pont-sem-color-border-focus)
|
|
3258
|
+
);
|
|
3259
|
+
|
|
3260
|
+
/** @token Ring width on focus */
|
|
3261
|
+
--_pont-input-ring-width-focus: var(
|
|
3262
|
+
--pont-input-ring-width-focus,
|
|
3263
|
+
var(--pont-sem-shadow-ring-width-focus)
|
|
3264
|
+
);
|
|
3265
|
+
/** @token Ring color on focus */
|
|
3266
|
+
--_pont-input-ring-color-focus: var(
|
|
3267
|
+
--pont-input-ring-color-focus,
|
|
3268
|
+
var(--pont-sem-color-ring-focus)
|
|
3269
|
+
);
|
|
3270
|
+
|
|
3271
|
+
--_pont-input-ring-focus: 0 0 0
|
|
3272
|
+
calc(
|
|
3273
|
+
var(--_pont-input-ring-width-focus) +
|
|
3274
|
+
var(--_pont-input-ring-offset-width)
|
|
3275
|
+
)
|
|
3276
|
+
var(--_pont-input-ring-color-focus);
|
|
3277
|
+
|
|
3278
|
+
/** @token Border color when invalid */
|
|
3279
|
+
--_pont-input-border-color-invalid: var(
|
|
3280
|
+
--pont-input-border-color-invalid,
|
|
3281
|
+
var(--pont-sem-color-border-invalid)
|
|
3282
|
+
);
|
|
3283
|
+
|
|
3284
|
+
/** @token Ring width when invalid */
|
|
3285
|
+
--_pont-input-ring-width-invalid: var(
|
|
3286
|
+
--pont-input-ring-width-invalid,
|
|
3287
|
+
var(--pont-sem-shadow-ring-width-invalid)
|
|
3288
|
+
);
|
|
3289
|
+
/** @token Ring color when invalid */
|
|
3290
|
+
--_pont-input-ring-color-invalid: var(
|
|
3291
|
+
--pont-input-ring-color-invalid,
|
|
3292
|
+
var(--pont-sem-color-ring-invalid)
|
|
3293
|
+
);
|
|
3294
|
+
|
|
3295
|
+
--_pont-input-ring-invalid: 0 0 0
|
|
3296
|
+
calc(
|
|
3297
|
+
var(--_pont-input-ring-width-invalid) +
|
|
3298
|
+
var(--_pont-input-ring-offset-width)
|
|
3299
|
+
)
|
|
3300
|
+
var(--_pont-input-ring-color-invalid);
|
|
3007
3301
|
}
|
|
3008
3302
|
|
|
3303
|
+
@media (width >= 48rem) {
|
|
3304
|
+
[data-pont-input] {
|
|
3305
|
+
--_pont-input-font-size-default: var(--pont-ref-typography-size-sm);
|
|
3306
|
+
--_pont-input-line-height-default: var(
|
|
3307
|
+
--pont-ref-typography-leading-of-sm
|
|
3308
|
+
);
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3311
|
+
}
|
|
3312
|
+
|
|
3313
|
+
/*
|
|
3314
|
+
* ---------------------------------------------------------------------------
|
|
3315
|
+
* RECIPES
|
|
3316
|
+
* ---------------------------------------------------------------------------
|
|
3317
|
+
*/
|
|
3318
|
+
|
|
3319
|
+
@layer pont.primitives {
|
|
3009
3320
|
[data-pont-input] {
|
|
3010
|
-
box-sizing:
|
|
3321
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
3322
|
+
|
|
3323
|
+
padding-top: var(--_pont-input-padding-top);
|
|
3324
|
+
padding-right: var(--_pont-input-padding-right);
|
|
3325
|
+
padding-bottom: var(--_pont-input-padding-bottom);
|
|
3326
|
+
padding-left: var(--_pont-input-padding-left);
|
|
3327
|
+
|
|
3011
3328
|
margin: 0;
|
|
3012
|
-
font-family: inherit;
|
|
3013
|
-
color: var(--_pont-input-fg);
|
|
3014
|
-
-webkit-appearance: none;
|
|
3015
|
-
appearance: none;
|
|
3016
3329
|
|
|
3017
|
-
width: var(--
|
|
3018
|
-
min-width:
|
|
3330
|
+
width: var(--_pont-input-width);
|
|
3331
|
+
min-width: var(--_pont-input-min-width);
|
|
3332
|
+
max-width: var(--_pont-input-max-width);
|
|
3019
3333
|
height: var(--_pont-input-height);
|
|
3020
|
-
|
|
3021
|
-
|
|
3334
|
+
min-height: var(--_pont-input-min-height);
|
|
3335
|
+
max-height: var(--_pont-input-max-height);
|
|
3336
|
+
|
|
3337
|
+
font-family: var(--_pont-input-font-family);
|
|
3338
|
+
font-size: var(--_pont-input-font-size);
|
|
3339
|
+
font-weight: var(--_pont-input-font-weight);
|
|
3340
|
+
letter-spacing: var(--_pont-input-letter-spacing);
|
|
3341
|
+
line-height: var(--_pont-input-line-height);
|
|
3342
|
+
|
|
3343
|
+
background-color: var(--_pont-input-color-bg);
|
|
3344
|
+
color: var(--_pont-input-color-fg);
|
|
3345
|
+
|
|
3022
3346
|
border-radius: var(--_pont-input-radius);
|
|
3023
|
-
background-color: var(--_pont-input-bg);
|
|
3024
|
-
font-size: var(--pont-ref-typography-size-base);
|
|
3025
|
-
line-height: var(--pont-ref-typography-leading-of-base);
|
|
3026
|
-
outline: none;
|
|
3027
|
-
--pont-shadow: var(--pont-ref-shadow-xs);
|
|
3028
|
-
box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
|
|
3029
|
-
transition-property: color, box-shadow;
|
|
3030
|
-
transition-duration: var(--pont-sem-motion-trans-duration);
|
|
3031
|
-
transition-timing-function: var(--pont-sem-motion-trans-easing);
|
|
3032
|
-
}
|
|
3033
3347
|
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3348
|
+
border-width: var(--_pont-input-border-width);
|
|
3349
|
+
border-style: var(--_pont-input-border-style);
|
|
3350
|
+
border-color: var(--_pont-input-border-color);
|
|
3351
|
+
|
|
3352
|
+
outline: var(--pont-sem-border-outline-none);
|
|
3353
|
+
|
|
3354
|
+
box-shadow:
|
|
3355
|
+
var(--_pont-input-inset-shadow), var(--_pont-input-inset-ring),
|
|
3356
|
+
var(--_pont-input-ring-offset), var(--_pont-input-ring),
|
|
3357
|
+
var(--_pont-input-shadow);
|
|
3358
|
+
|
|
3359
|
+
transition-property: var(--_pont-input-transition-property);
|
|
3360
|
+
transition-duration: var(--_pont-input-transition-duration);
|
|
3361
|
+
transition-timing-function: var(--_pont-input-transition-easing);
|
|
3362
|
+
|
|
3363
|
+
appearance: none;
|
|
3364
|
+
-webkit-appearance: none;
|
|
3039
3365
|
}
|
|
3040
3366
|
|
|
3367
|
+
/* * -------- PLACEHOLDER -------- * */
|
|
3368
|
+
|
|
3041
3369
|
[data-pont-input]::placeholder {
|
|
3042
|
-
color: var(--_pont-input-placeholder-fg);
|
|
3043
|
-
opacity:
|
|
3370
|
+
color: var(--_pont-input-placeholder-color-fg);
|
|
3371
|
+
opacity: var(--pont-ref-opacity-full);
|
|
3044
3372
|
}
|
|
3045
3373
|
|
|
3374
|
+
/* * -------- FILE BUTTON -------- * */
|
|
3375
|
+
|
|
3046
3376
|
[data-pont-input]::file-selector-button {
|
|
3047
3377
|
display: inline-flex;
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
font-
|
|
3378
|
+
|
|
3379
|
+
padding: 0;
|
|
3380
|
+
margin-inline-end: calc(var(--pont-ref-dimension) * 1);
|
|
3381
|
+
|
|
3382
|
+
width: var(--_pont-input-file-button-width);
|
|
3383
|
+
height: var(--_pont-input-file-button-height);
|
|
3384
|
+
|
|
3385
|
+
font-family: var(--_pont-input-file-button-font-family);
|
|
3386
|
+
font-size: var(--_pont-input-file-button-font-size);
|
|
3387
|
+
font-weight: var(--_pont-input-file-button-font-weight);
|
|
3388
|
+
letter-spacing: var(--_pont-input-file-button-letter-spacing);
|
|
3389
|
+
line-height: var(--_pont-input-file-button-line-height);
|
|
3390
|
+
|
|
3391
|
+
background-color: var(--_pont-input-file-button-color-bg);
|
|
3392
|
+
color: var(--_pont-input-file-button-color-fg);
|
|
3393
|
+
|
|
3394
|
+
border-width: var(--_pont-input-file-button-border-width);
|
|
3395
|
+
border-style: var(--_pont-input-file-button-border-style);
|
|
3396
|
+
border-color: var(--_pont-input-file-button-border-color);
|
|
3056
3397
|
}
|
|
3057
3398
|
|
|
3399
|
+
/* * -------- STATES -------- * */
|
|
3400
|
+
|
|
3401
|
+
/* * FOCUS * */
|
|
3402
|
+
|
|
3058
3403
|
[data-pont-input]:focus-visible {
|
|
3059
|
-
border-color: var(--
|
|
3060
|
-
|
|
3404
|
+
border-color: var(--_pont-input-border-color-focus);
|
|
3405
|
+
|
|
3406
|
+
box-shadow:
|
|
3407
|
+
var(--_pont-input-inset-shadow), var(--_pont-input-inset-ring),
|
|
3408
|
+
var(--_pont-input-ring-offset), var(--_pont-input-ring-focus),
|
|
3409
|
+
var(--_pont-input-shadow);
|
|
3061
3410
|
}
|
|
3062
3411
|
|
|
3412
|
+
/* * INVALID * */
|
|
3413
|
+
|
|
3063
3414
|
[data-pont-input][aria-invalid="true"] {
|
|
3064
|
-
border-color: var(--
|
|
3065
|
-
|
|
3415
|
+
border-color: var(--_pont-input-border-color-invalid);
|
|
3416
|
+
|
|
3417
|
+
box-shadow:
|
|
3418
|
+
var(--_pont-input-inset-shadow), var(--_pont-input-inset-ring),
|
|
3419
|
+
var(--_pont-input-ring-offset), var(--_pont-input-ring-invalid),
|
|
3420
|
+
var(--_pont-input-shadow);
|
|
3066
3421
|
}
|
|
3067
3422
|
|
|
3423
|
+
/* * DISABLED * */
|
|
3424
|
+
|
|
3068
3425
|
[data-pont-input]:disabled {
|
|
3426
|
+
opacity: var(--_pont-input-opacity-disabled);
|
|
3427
|
+
|
|
3428
|
+
cursor: var(--_pont-input-cursor-disabled);
|
|
3069
3429
|
pointer-events: none;
|
|
3070
|
-
cursor: var(--pont-sem-cursor-disabled);
|
|
3071
|
-
opacity: var(--pont-sem-opacity-disabled);
|
|
3072
3430
|
}
|
|
3073
3431
|
}
|
|
3074
3432
|
|
|
@@ -3926,246 +4284,699 @@
|
|
|
3926
4284
|
grid-column-start: 2;
|
|
3927
4285
|
}
|
|
3928
4286
|
|
|
3929
|
-
:is(pont-prim-alert-description, [data-pont-alert-description]) {
|
|
3930
|
-
display: block;
|
|
3931
|
-
color: var(--_pont-alert-description-fg, var(--pont-sem-color-muted-fg));
|
|
3932
|
-
font-size: var(--pont-ref-typography-size-sm);
|
|
3933
|
-
line-height: var(--pont-ref-typography-leading-of-sm);
|
|
3934
|
-
text-wrap: balance;
|
|
3935
|
-
}
|
|
3936
|
-
@media (width >= 48rem) {
|
|
3937
|
-
:is(pont-prim-alert-description, [data-pont-alert-description]) {
|
|
3938
|
-
text-wrap: pretty;
|
|
3939
|
-
}
|
|
3940
|
-
}
|
|
3941
|
-
:is(pont-prim-alert-description, [data-pont-alert-description]) p {
|
|
3942
|
-
margin: 0;
|
|
3943
|
-
}
|
|
3944
|
-
:is(pont-prim-alert-description, [data-pont-alert-description]) p:not(:last-child) {
|
|
3945
|
-
margin-bottom: 1rem;
|
|
3946
|
-
}
|
|
4287
|
+
:is(pont-prim-alert-description, [data-pont-alert-description]) {
|
|
4288
|
+
display: block;
|
|
4289
|
+
color: var(--_pont-alert-description-fg, var(--pont-sem-color-muted-fg));
|
|
4290
|
+
font-size: var(--pont-ref-typography-size-sm);
|
|
4291
|
+
line-height: var(--pont-ref-typography-leading-of-sm);
|
|
4292
|
+
text-wrap: balance;
|
|
4293
|
+
}
|
|
4294
|
+
@media (width >= 48rem) {
|
|
4295
|
+
:is(pont-prim-alert-description, [data-pont-alert-description]) {
|
|
4296
|
+
text-wrap: pretty;
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
4299
|
+
:is(pont-prim-alert-description, [data-pont-alert-description]) p {
|
|
4300
|
+
margin: 0;
|
|
4301
|
+
}
|
|
4302
|
+
:is(pont-prim-alert-description, [data-pont-alert-description]) p:not(:last-child) {
|
|
4303
|
+
margin-bottom: 1rem;
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4306
|
+
:is(pont-prim-alert-title, [data-pont-alert-title], pont-prim-alert-description, [data-pont-alert-description]) a {
|
|
4307
|
+
color: inherit;
|
|
4308
|
+
text-decoration-line: underline;
|
|
4309
|
+
text-underline-offset: 3px;
|
|
4310
|
+
}
|
|
4311
|
+
:is(pont-prim-alert-title, [data-pont-alert-title], pont-prim-alert-description, [data-pont-alert-description]) a:hover {
|
|
4312
|
+
color: var(--pont-sem-color-fg);
|
|
4313
|
+
}
|
|
4314
|
+
|
|
4315
|
+
:is(pont-prim-alert-action, [data-pont-alert-action]) {
|
|
4316
|
+
display: block;
|
|
4317
|
+
position: absolute;
|
|
4318
|
+
top: 0.625rem;
|
|
4319
|
+
right: 0.75rem;
|
|
4320
|
+
}
|
|
4321
|
+
}
|
|
4322
|
+
|
|
4323
|
+
/* ../primitives/avatar/avatar.css */
|
|
4324
|
+
/*
|
|
4325
|
+
* ===========================================================================
|
|
4326
|
+
* AVATAR STYLES
|
|
4327
|
+
* ===========================================================================
|
|
4328
|
+
*
|
|
4329
|
+
* shadcn/ui Base UI x Vega:
|
|
4330
|
+
* root:
|
|
4331
|
+
* group/avatar relative flex size-8 shrink-0 rounded-full select-none
|
|
4332
|
+
* after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken dark:after:mix-blend-lighten
|
|
4333
|
+
* data-[size=lg]:size-10 data-[size=sm]:size-6
|
|
4334
|
+
* image:
|
|
4335
|
+
* aspect-square size-full rounded-full object-cover
|
|
4336
|
+
* fallback:
|
|
4337
|
+
* flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground
|
|
4338
|
+
* group-data-[size=sm]/avatar:text-xs
|
|
4339
|
+
* badge:
|
|
4340
|
+
* absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground bg-blend-color ring-2 ring-background select-none
|
|
4341
|
+
* group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden
|
|
4342
|
+
* group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2
|
|
4343
|
+
* group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2
|
|
4344
|
+
* group:
|
|
4345
|
+
* group/avatar-group flex -space-x-2
|
|
4346
|
+
* *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background
|
|
4347
|
+
* group count:
|
|
4348
|
+
* relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background
|
|
4349
|
+
* [&>svg]:size-4
|
|
4350
|
+
* group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5
|
|
4351
|
+
* group-has-data-[size=sm]/avatar-group:size-6 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3
|
|
4352
|
+
*
|
|
4353
|
+
* Differences:
|
|
4354
|
+
* - Instead of hiding (`hidden`) the avatar badge icon for small avatars, they
|
|
4355
|
+
* are styled as a very small icon (`--pont-avatar-badge-sm-icon-size`).
|
|
4356
|
+
* - The fallback font size (and line height) are set to `text-xs` for small
|
|
4357
|
+
* avatars. Everything except for this is consistent between the fallback and
|
|
4358
|
+
* group count. Accordingly, we have modified group count to fully mirror the
|
|
4359
|
+
* typography styles of fallback (by default).
|
|
4360
|
+
*
|
|
4361
|
+
* Base UI mounts the <img> only once loaded and the fallback only until then.
|
|
4362
|
+
* pont keeps both in the DOM and swaps them on `data-image-loading-status`.
|
|
4363
|
+
*
|
|
4364
|
+
* Tokens (docs/11-tokens.md): `--pont-avatar-*`, resolved on the avatar (and
|
|
4365
|
+
* on a group count, which shares the fallback's look) and inherited by the
|
|
4366
|
+
* parts. shadcn's `dark:after:mix-blend-lighten` is sem-mode-blend. The
|
|
4367
|
+
* group's space is resolved on the group too, so any child overlaps.
|
|
4368
|
+
*
|
|
4369
|
+
* Sizes only switch tokens: the base block points the privates at the
|
|
4370
|
+
* default-size tokens, each size block re-points the same privates at its
|
|
4371
|
+
* own size-qualified tokens (`--pont-avatar-sm-size`,
|
|
4372
|
+
* `--pont-avatar-fallback-sm-font-weight` …), and the recipe declares each
|
|
4373
|
+
* property once. A size token falls back to its literal, not to the
|
|
4374
|
+
* unqualified token, so restyling the default avatar leaves sm and lg alone.
|
|
4375
|
+
* The group count takes its size from the group's avatars, so its size blocks
|
|
4376
|
+
* key off the group; its sm / lg typography falls back to the fallback's.
|
|
4377
|
+
*
|
|
4378
|
+
* The badge sits in the bottom-right corner; its position is fixed (privates,
|
|
4379
|
+
* no tokens).
|
|
4380
|
+
*/
|
|
4381
|
+
|
|
4382
|
+
/*
|
|
4383
|
+
* ---------------------------------------------------------------------------
|
|
4384
|
+
* TOKENS
|
|
4385
|
+
* ---------------------------------------------------------------------------
|
|
4386
|
+
*/
|
|
4387
|
+
|
|
4388
|
+
@layer pont.primitives {
|
|
4389
|
+
:is(
|
|
4390
|
+
pont-prim-avatar,
|
|
4391
|
+
[data-pont-avatar],
|
|
4392
|
+
pont-prim-avatar-group-count,
|
|
4393
|
+
[data-pont-avatar-group-count]
|
|
4394
|
+
) {
|
|
4395
|
+
/** @token Size (width and height) */
|
|
4396
|
+
--_pont-avatar-size: var(
|
|
4397
|
+
--pont-avatar-size,
|
|
4398
|
+
calc(var(--pont-ref-dimension) * 8)
|
|
4399
|
+
);
|
|
4400
|
+
/** @token Width */
|
|
4401
|
+
--_pont-avatar-width: var(--pont-avatar-width, var(--_pont-avatar-size));
|
|
4402
|
+
/** @token Height */
|
|
4403
|
+
--_pont-avatar-height: var(--pont-avatar-height, var(--_pont-avatar-size));
|
|
4404
|
+
|
|
4405
|
+
/** @token Border radius */
|
|
4406
|
+
--_pont-avatar-radius: var(
|
|
4407
|
+
--pont-avatar-radius,
|
|
4408
|
+
var(--pont-ref-radius-full)
|
|
4409
|
+
);
|
|
4410
|
+
|
|
4411
|
+
/** @token Border width */
|
|
4412
|
+
--_pont-avatar-border-width: var(
|
|
4413
|
+
--pont-avatar-border-width,
|
|
4414
|
+
var(--pont-sem-border-width)
|
|
4415
|
+
);
|
|
4416
|
+
/** @token Border style */
|
|
4417
|
+
--_pont-avatar-border-style: var(
|
|
4418
|
+
--pont-avatar-border-style,
|
|
4419
|
+
var(--pont-sem-border-style)
|
|
4420
|
+
);
|
|
4421
|
+
/** @token Border color */
|
|
4422
|
+
--_pont-avatar-border-color: var(
|
|
4423
|
+
--pont-avatar-border-color,
|
|
4424
|
+
var(--pont-sem-color-border)
|
|
4425
|
+
);
|
|
4426
|
+
|
|
4427
|
+
/** @token Ring width */
|
|
4428
|
+
--_pont-avatar-group-ring-width: var(--pont-avatar-group-ring-width, 2px);
|
|
4429
|
+
/** @token Ring color */
|
|
4430
|
+
--_pont-avatar-group-ring-color: var(
|
|
4431
|
+
--pont-avatar-group-ring-color,
|
|
4432
|
+
var(--pont-sem-color-bg)
|
|
4433
|
+
);
|
|
4434
|
+
|
|
4435
|
+
/* * -------- FALLBACK -------- * */
|
|
4436
|
+
|
|
4437
|
+
/** @token Align items */
|
|
4438
|
+
--_pont-avatar-fallback-items: var(
|
|
4439
|
+
--pont-avatar-fallback-items,
|
|
4440
|
+
var(--pont-ref-layout-items-center)
|
|
4441
|
+
);
|
|
4442
|
+
/** @token Justify content */
|
|
4443
|
+
--_pont-avatar-fallback-justify: var(
|
|
4444
|
+
--pont-avatar-fallback-justify,
|
|
4445
|
+
var(--pont-ref-layout-justify-center)
|
|
4446
|
+
);
|
|
4447
|
+
|
|
4448
|
+
/** @token Font family */
|
|
4449
|
+
--_pont-avatar-fallback-font-family: var(
|
|
4450
|
+
--pont-avatar-fallback-font-family,
|
|
4451
|
+
var(--pont-sem-typography-font-body)
|
|
4452
|
+
);
|
|
4453
|
+
/** @token Font size */
|
|
4454
|
+
--_pont-avatar-fallback-font-size: var(
|
|
4455
|
+
--pont-avatar-fallback-font-size,
|
|
4456
|
+
var(--pont-ref-typography-size-sm)
|
|
4457
|
+
);
|
|
4458
|
+
/** @token Font weight */
|
|
4459
|
+
--_pont-avatar-fallback-font-weight: var(
|
|
4460
|
+
--pont-avatar-fallback-font-weight,
|
|
4461
|
+
var(--pont-sem-typography-weight)
|
|
4462
|
+
);
|
|
4463
|
+
/** @token Letter spacing */
|
|
4464
|
+
--_pont-avatar-fallback-letter-spacing: var(
|
|
4465
|
+
--pont-avatar-fallback-letter-spacing,
|
|
4466
|
+
var(--pont-sem-typography-tracking)
|
|
4467
|
+
);
|
|
4468
|
+
/** @token Line height */
|
|
4469
|
+
--_pont-avatar-fallback-line-height: var(
|
|
4470
|
+
--pont-avatar-fallback-line-height,
|
|
4471
|
+
var(--pont-ref-typography-leading-of-sm)
|
|
4472
|
+
);
|
|
4473
|
+
|
|
4474
|
+
/** @token Background color */
|
|
4475
|
+
--_pont-avatar-fallback-color-bg: var(
|
|
4476
|
+
--pont-avatar-fallback-color-bg,
|
|
4477
|
+
var(--pont-sem-color-muted)
|
|
4478
|
+
);
|
|
4479
|
+
/** @token Foreground color */
|
|
4480
|
+
--_pont-avatar-fallback-color-fg: var(
|
|
4481
|
+
--pont-avatar-fallback-color-fg,
|
|
4482
|
+
var(--pont-sem-color-muted-fg)
|
|
4483
|
+
);
|
|
4484
|
+
|
|
4485
|
+
/* * -------- BADGE -------- * */
|
|
4486
|
+
|
|
4487
|
+
/** @token Align items */
|
|
4488
|
+
--_pont-avatar-badge-items: var(
|
|
4489
|
+
--pont-avatar-badge-items,
|
|
4490
|
+
var(--pont-ref-layout-items-center)
|
|
4491
|
+
);
|
|
4492
|
+
/** @token Justify content */
|
|
4493
|
+
--_pont-avatar-badge-justify: var(
|
|
4494
|
+
--pont-avatar-badge-justify,
|
|
4495
|
+
var(--pont-ref-layout-justify-center)
|
|
4496
|
+
);
|
|
4497
|
+
|
|
4498
|
+
--_pont-avatar-badge-top: var(--pont-sem-dimension-space-inset);
|
|
4499
|
+
--_pont-avatar-badge-right: 0;
|
|
4500
|
+
--_pont-avatar-badge-bottom: 0;
|
|
4501
|
+
--_pont-avatar-badge-left: var(--pont-sem-dimension-space-inset);
|
|
4502
|
+
|
|
4503
|
+
/** @token Size (width and height) */
|
|
4504
|
+
--_pont-avatar-badge-size: var(
|
|
4505
|
+
--pont-avatar-badge-size,
|
|
4506
|
+
calc(var(--pont-ref-dimension) * 2.5)
|
|
4507
|
+
);
|
|
4508
|
+
/** @token Width */
|
|
4509
|
+
--_pont-avatar-badge-width: var(
|
|
4510
|
+
--pont-avatar-badge-width,
|
|
4511
|
+
var(--_pont-avatar-badge-size)
|
|
4512
|
+
);
|
|
4513
|
+
/** @token Height */
|
|
4514
|
+
--_pont-avatar-badge-height: var(
|
|
4515
|
+
--pont-avatar-badge-height,
|
|
4516
|
+
var(--_pont-avatar-badge-size)
|
|
4517
|
+
);
|
|
4518
|
+
|
|
4519
|
+
/** @token Background color */
|
|
4520
|
+
--_pont-avatar-badge-color-bg: var(
|
|
4521
|
+
--pont-avatar-badge-color-bg,
|
|
4522
|
+
var(--pont-sem-color-primary)
|
|
4523
|
+
);
|
|
4524
|
+
/** @token Foreground color */
|
|
4525
|
+
--_pont-avatar-badge-color-fg: var(
|
|
4526
|
+
--pont-avatar-badge-color-fg,
|
|
4527
|
+
var(--pont-sem-color-primary-fg)
|
|
4528
|
+
);
|
|
4529
|
+
|
|
4530
|
+
/** @token Border radius */
|
|
4531
|
+
--_pont-avatar-badge-radius: var(
|
|
4532
|
+
--pont-avatar-badge-radius,
|
|
4533
|
+
var(--pont-ref-radius-full)
|
|
4534
|
+
);
|
|
4535
|
+
|
|
4536
|
+
/** @token Ring width */
|
|
4537
|
+
--_pont-avatar-badge-ring-width: var(--pont-avatar-badge-ring-width, 2px);
|
|
4538
|
+
/** @token Ring color */
|
|
4539
|
+
--_pont-avatar-badge-ring-color: var(
|
|
4540
|
+
--pont-avatar-badge-ring-color,
|
|
4541
|
+
var(--pont-sem-color-bg)
|
|
4542
|
+
);
|
|
4543
|
+
|
|
4544
|
+
/** @token Icon size (width and height) */
|
|
4545
|
+
--_pont-avatar-badge-icon-size: var(
|
|
4546
|
+
--pont-avatar-badge-icon-size,
|
|
4547
|
+
calc(var(--pont-ref-dimension) * 2)
|
|
4548
|
+
);
|
|
4549
|
+
|
|
4550
|
+
/* * -------- GROUP -------- * */
|
|
4551
|
+
|
|
4552
|
+
/** @token Horizontal space */
|
|
4553
|
+
--_pont-avatar-group-space-x: var(
|
|
4554
|
+
--pont-avatar-group-space-x,
|
|
4555
|
+
calc(var(--pont-ref-dimension) * -2)
|
|
4556
|
+
);
|
|
4557
|
+
|
|
4558
|
+
/* * -------- GROUP COUNT -------- * */
|
|
4559
|
+
|
|
4560
|
+
/** @token Align items */
|
|
4561
|
+
--_pont-avatar-group-count-items: var(
|
|
4562
|
+
--pont-avatar-group-count-items,
|
|
4563
|
+
var(--_pont-avatar-fallback-items)
|
|
4564
|
+
);
|
|
4565
|
+
/** @token Justify content */
|
|
4566
|
+
--_pont-avatar-group-count-justify: var(
|
|
4567
|
+
--pont-avatar-group-count-justify,
|
|
4568
|
+
var(--_pont-avatar-fallback-justify)
|
|
4569
|
+
);
|
|
4570
|
+
|
|
4571
|
+
/** @token Font family */
|
|
4572
|
+
--_pont-avatar-group-count-font-family: var(
|
|
4573
|
+
--pont-avatar-group-count-font-family,
|
|
4574
|
+
var(--_pont-avatar-fallback-font-family)
|
|
4575
|
+
);
|
|
4576
|
+
/** @token Font size */
|
|
4577
|
+
--_pont-avatar-group-count-font-size: var(
|
|
4578
|
+
--pont-avatar-group-count-font-size,
|
|
4579
|
+
var(--_pont-avatar-fallback-font-size)
|
|
4580
|
+
);
|
|
4581
|
+
/** @token Font weight */
|
|
4582
|
+
--_pont-avatar-group-count-font-weight: var(
|
|
4583
|
+
--pont-avatar-group-count-font-weight,
|
|
4584
|
+
var(--_pont-avatar-fallback-font-weight)
|
|
4585
|
+
);
|
|
4586
|
+
/** @token Letter spacing */
|
|
4587
|
+
--_pont-avatar-group-count-letter-spacing: var(
|
|
4588
|
+
--pont-avatar-group-count-letter-spacing,
|
|
4589
|
+
var(--_pont-avatar-fallback-letter-spacing)
|
|
4590
|
+
);
|
|
4591
|
+
/** @token Line height */
|
|
4592
|
+
--_pont-avatar-group-count-line-height: var(
|
|
4593
|
+
--pont-avatar-group-count-line-height,
|
|
4594
|
+
var(--_pont-avatar-fallback-line-height)
|
|
4595
|
+
);
|
|
4596
|
+
|
|
4597
|
+
/** @token Background color */
|
|
4598
|
+
--_pont-avatar-group-count-color-bg: var(
|
|
4599
|
+
--pont-avatar-group-count-color-bg,
|
|
4600
|
+
var(--_pont-avatar-fallback-color-bg)
|
|
4601
|
+
);
|
|
4602
|
+
/** @token Foreground color */
|
|
4603
|
+
--_pont-avatar-group-count-color-fg: var(
|
|
4604
|
+
--pont-avatar-group-count-color-fg,
|
|
4605
|
+
var(--_pont-avatar-fallback-color-fg)
|
|
4606
|
+
);
|
|
3947
4607
|
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
:is(pont-prim-alert-title, [data-pont-alert-title], pont-prim-alert-description, [data-pont-alert-description]) a:hover {
|
|
3954
|
-
color: var(--pont-sem-color-fg);
|
|
4608
|
+
/** @token Icon size (width and height) */
|
|
4609
|
+
--_pont-avatar-group-count-icon-size: var(
|
|
4610
|
+
--pont-avatar-group-count-icon-size,
|
|
4611
|
+
calc(var(--pont-ref-dimension) * 4)
|
|
4612
|
+
);
|
|
3955
4613
|
}
|
|
3956
4614
|
|
|
3957
|
-
|
|
3958
|
-
display: block;
|
|
3959
|
-
position: absolute;
|
|
3960
|
-
top: 0.625rem;
|
|
3961
|
-
right: 0.75rem;
|
|
3962
|
-
}
|
|
3963
|
-
}
|
|
4615
|
+
/* * -------- SIZES -------- * */
|
|
3964
4616
|
|
|
3965
|
-
/*
|
|
3966
|
-
/*
|
|
3967
|
-
* Avatar. shadcn (Base UI, Vega):
|
|
3968
|
-
* root: "group/avatar relative flex shrink-0 select-none after:absolute after:inset-0 after:border
|
|
3969
|
-
* after:border-border after:mix-blend-darken dark:after:mix-blend-lighten"
|
|
3970
|
-
* + "size-8 rounded-full after:rounded-full data-[size=lg]:size-10 data-[size=sm]:size-6"
|
|
3971
|
-
* image: "aspect-square size-full object-cover" + "rounded-full"
|
|
3972
|
-
* fallback: "flex size-full items-center justify-center text-sm group-data-[size=sm]/avatar:text-xs"
|
|
3973
|
-
* + "bg-muted text-muted-foreground rounded-full"
|
|
3974
|
-
* badge: "absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full
|
|
3975
|
-
* bg-blend-color ring-2 select-none" + per-size sizes + "bg-primary text-primary-foreground ring-background"
|
|
3976
|
-
* group: "group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background"
|
|
3977
|
-
* count: "relative flex shrink-0 items-center justify-center ring-2 ring-background"
|
|
3978
|
-
* + "bg-muted text-muted-foreground size-8 rounded-full text-sm" + group size variants
|
|
3979
|
-
*
|
|
3980
|
-
* Base UI mounts the <img> only once loaded and the fallback only until then.
|
|
3981
|
-
* pont keeps both in the DOM and swaps them on `data-image-loading-status`.
|
|
3982
|
-
*
|
|
3983
|
-
* Tokens (docs/11-tokens.md): `--pont-avatar-*`, resolved on the avatar (and
|
|
3984
|
-
* on a group count, which shares the fallback's look) and inherited by the
|
|
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.
|
|
3994
|
-
*/
|
|
3995
|
-
@layer pont.primitives {
|
|
3996
|
-
/* ------------------------------------------------------------------ */
|
|
3997
|
-
/* Tokens */
|
|
3998
|
-
/* ------------------------------------------------------------------ */
|
|
4617
|
+
/* * SMALL * */
|
|
3999
4618
|
|
|
4000
|
-
:is(pont-prim-avatar, [data-pont-avatar]
|
|
4619
|
+
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="sm"], [size="sm"]),
|
|
4620
|
+
[data-pont-avatar-group]:has([data-size="sm"])
|
|
4621
|
+
:is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
4622
|
+
/** @token Size (width and height) */
|
|
4623
|
+
--_pont-avatar-size: var(
|
|
4624
|
+
--pont-avatar-sm-size,
|
|
4625
|
+
calc(var(--pont-ref-dimension) * 6)
|
|
4626
|
+
);
|
|
4001
4627
|
/** @token Width */
|
|
4002
|
-
--_pont-avatar-width: var(--pont-avatar-width,
|
|
4628
|
+
--_pont-avatar-width: var(--pont-avatar-sm-width, var(--_pont-avatar-size));
|
|
4003
4629
|
/** @token Height */
|
|
4004
|
-
--_pont-avatar-height: var(
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
/** @token
|
|
4010
|
-
--_pont-avatar-fallback-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4630
|
+
--_pont-avatar-height: var(
|
|
4631
|
+
--pont-avatar-sm-height,
|
|
4632
|
+
var(--_pont-avatar-size)
|
|
4633
|
+
);
|
|
4634
|
+
|
|
4635
|
+
/** @token Font size */
|
|
4636
|
+
--_pont-avatar-fallback-font-size: var(
|
|
4637
|
+
--pont-avatar-fallback-sm-font-size,
|
|
4638
|
+
var(--pont-ref-typography-size-xs)
|
|
4639
|
+
);
|
|
4640
|
+
/** @token Font weight */
|
|
4641
|
+
--_pont-avatar-fallback-font-weight: var(
|
|
4642
|
+
--pont-avatar-fallback-sm-font-weight,
|
|
4643
|
+
var(--pont-sem-typography-weight)
|
|
4644
|
+
);
|
|
4645
|
+
/** @token Letter spacing */
|
|
4646
|
+
--_pont-avatar-fallback-letter-spacing: var(
|
|
4647
|
+
--pont-avatar-fallback-sm-letter-spacing,
|
|
4648
|
+
var(--pont-sem-typography-tracking)
|
|
4649
|
+
);
|
|
4650
|
+
/** @token Line height */
|
|
4651
|
+
--_pont-avatar-fallback-line-height: var(
|
|
4652
|
+
--pont-avatar-fallback-sm-line-height,
|
|
4653
|
+
var(--pont-ref-typography-leading-of-xs)
|
|
4654
|
+
);
|
|
4655
|
+
|
|
4656
|
+
/** @token Size (width and height) */
|
|
4657
|
+
--_pont-avatar-badge-size: var(
|
|
4658
|
+
--pont-avatar-badge-sm-size,
|
|
4659
|
+
calc(var(--pont-ref-dimension) * 2)
|
|
4660
|
+
);
|
|
4022
4661
|
/** @token Width */
|
|
4023
|
-
--_pont-avatar-width: var(
|
|
4662
|
+
--_pont-avatar-badge-width: var(
|
|
4663
|
+
--pont-avatar-badge-sm-width,
|
|
4664
|
+
var(--_pont-avatar-badge-size)
|
|
4665
|
+
);
|
|
4024
4666
|
/** @token Height */
|
|
4025
|
-
--_pont-avatar-height: var(
|
|
4667
|
+
--_pont-avatar-badge-height: var(
|
|
4668
|
+
--pont-avatar-badge-sm-height,
|
|
4669
|
+
var(--_pont-avatar-badge-size)
|
|
4670
|
+
);
|
|
4671
|
+
|
|
4672
|
+
/** @token Icon size (width and height) */
|
|
4673
|
+
--_pont-avatar-badge-icon-size: var(
|
|
4674
|
+
--pont-avatar-badge-sm-icon-size,
|
|
4675
|
+
calc(var(--pont-ref-dimension) * 1.5)
|
|
4676
|
+
);
|
|
4677
|
+
|
|
4678
|
+
/** @token Font size */
|
|
4679
|
+
--_pont-avatar-group-count-font-size: var(
|
|
4680
|
+
--pont-avatar-group-count-sm-font-size,
|
|
4681
|
+
var(--_pont-avatar-fallback-font-size)
|
|
4682
|
+
);
|
|
4683
|
+
/** @token Font weight */
|
|
4684
|
+
--_pont-avatar-group-count-font-weight: var(
|
|
4685
|
+
--pont-avatar-group-count-sm-font-weight,
|
|
4686
|
+
var(--_pont-avatar-fallback-font-weight)
|
|
4687
|
+
);
|
|
4688
|
+
/** @token Letter spacing */
|
|
4689
|
+
--_pont-avatar-group-count-letter-spacing: var(
|
|
4690
|
+
--pont-avatar-group-count-sm-letter-spacing,
|
|
4691
|
+
var(--_pont-avatar-fallback-letter-spacing)
|
|
4692
|
+
);
|
|
4693
|
+
/** @token Line height */
|
|
4694
|
+
--_pont-avatar-group-count-line-height: var(
|
|
4695
|
+
--pont-avatar-group-count-sm-line-height,
|
|
4696
|
+
var(--_pont-avatar-fallback-line-height)
|
|
4697
|
+
);
|
|
4698
|
+
|
|
4699
|
+
/** @token Icon size (width and height) */
|
|
4700
|
+
--_pont-avatar-group-count-icon-size: var(
|
|
4701
|
+
--pont-avatar-group-count-sm-icon-size,
|
|
4702
|
+
calc(var(--pont-ref-dimension) * 3)
|
|
4703
|
+
);
|
|
4026
4704
|
}
|
|
4705
|
+
|
|
4706
|
+
/* * LARGE * */
|
|
4707
|
+
|
|
4027
4708
|
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="lg"], [size="lg"]),
|
|
4028
|
-
[data-pont-avatar-group]:has([data-size="lg"])
|
|
4709
|
+
[data-pont-avatar-group]:has([data-size="lg"])
|
|
4710
|
+
:is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
4711
|
+
/** @token Size (width and height) */
|
|
4712
|
+
--_pont-avatar-size: var(
|
|
4713
|
+
--pont-avatar-lg-size,
|
|
4714
|
+
calc(var(--pont-ref-dimension) * 10)
|
|
4715
|
+
);
|
|
4716
|
+
/** @token Width */
|
|
4717
|
+
--_pont-avatar-width: var(--pont-avatar-lg-width, var(--_pont-avatar-size));
|
|
4718
|
+
/** @token Height */
|
|
4719
|
+
--_pont-avatar-height: var(
|
|
4720
|
+
--pont-avatar-lg-height,
|
|
4721
|
+
var(--_pont-avatar-size)
|
|
4722
|
+
);
|
|
4723
|
+
|
|
4724
|
+
/** @token Font size */
|
|
4725
|
+
--_pont-avatar-fallback-font-size: var(
|
|
4726
|
+
--pont-avatar-fallback-lg-font-size,
|
|
4727
|
+
var(--pont-ref-typography-size-sm)
|
|
4728
|
+
);
|
|
4729
|
+
/** @token Font weight */
|
|
4730
|
+
--_pont-avatar-fallback-font-weight: var(
|
|
4731
|
+
--pont-avatar-fallback-lg-font-weight,
|
|
4732
|
+
var(--pont-sem-typography-weight)
|
|
4733
|
+
);
|
|
4734
|
+
/** @token Letter spacing */
|
|
4735
|
+
--_pont-avatar-fallback-letter-spacing: var(
|
|
4736
|
+
--pont-avatar-fallback-lg-letter-spacing,
|
|
4737
|
+
var(--pont-sem-typography-tracking)
|
|
4738
|
+
);
|
|
4739
|
+
/** @token Line height */
|
|
4740
|
+
--_pont-avatar-fallback-line-height: var(
|
|
4741
|
+
--pont-avatar-fallback-lg-line-height,
|
|
4742
|
+
var(--pont-ref-typography-leading-of-sm)
|
|
4743
|
+
);
|
|
4744
|
+
|
|
4745
|
+
/** @token Size (width and height) */
|
|
4746
|
+
--_pont-avatar-badge-size: var(
|
|
4747
|
+
--pont-avatar-badge-lg-size,
|
|
4748
|
+
calc(var(--pont-ref-dimension) * 3)
|
|
4749
|
+
);
|
|
4029
4750
|
/** @token Width */
|
|
4030
|
-
--_pont-avatar-width: var(
|
|
4751
|
+
--_pont-avatar-badge-width: var(
|
|
4752
|
+
--pont-avatar-badge-lg-width,
|
|
4753
|
+
var(--_pont-avatar-badge-size)
|
|
4754
|
+
);
|
|
4031
4755
|
/** @token Height */
|
|
4032
|
-
--_pont-avatar-height: var(
|
|
4756
|
+
--_pont-avatar-badge-height: var(
|
|
4757
|
+
--pont-avatar-badge-lg-height,
|
|
4758
|
+
var(--_pont-avatar-badge-size)
|
|
4759
|
+
);
|
|
4760
|
+
|
|
4761
|
+
/** @token Icon size (width and height) */
|
|
4762
|
+
--_pont-avatar-badge-icon-size: var(
|
|
4763
|
+
--pont-avatar-badge-lg-icon-size,
|
|
4764
|
+
calc(var(--pont-ref-dimension) * 2)
|
|
4765
|
+
);
|
|
4766
|
+
|
|
4767
|
+
/** @token Font size */
|
|
4768
|
+
--_pont-avatar-group-count-font-size: var(
|
|
4769
|
+
--pont-avatar-group-count-lg-font-size,
|
|
4770
|
+
var(--_pont-avatar-fallback-font-size)
|
|
4771
|
+
);
|
|
4772
|
+
/** @token Font weight */
|
|
4773
|
+
--_pont-avatar-group-count-font-weight: var(
|
|
4774
|
+
--pont-avatar-group-count-lg-font-weight,
|
|
4775
|
+
var(--_pont-avatar-fallback-font-weight)
|
|
4776
|
+
);
|
|
4777
|
+
/** @token Letter spacing */
|
|
4778
|
+
--_pont-avatar-group-count-letter-spacing: var(
|
|
4779
|
+
--pont-avatar-group-count-lg-letter-spacing,
|
|
4780
|
+
var(--_pont-avatar-fallback-letter-spacing)
|
|
4781
|
+
);
|
|
4782
|
+
/** @token Line height */
|
|
4783
|
+
--_pont-avatar-group-count-line-height: var(
|
|
4784
|
+
--pont-avatar-group-count-lg-line-height,
|
|
4785
|
+
var(--_pont-avatar-fallback-line-height)
|
|
4786
|
+
);
|
|
4787
|
+
|
|
4788
|
+
/** @token Icon size (width and height) */
|
|
4789
|
+
--_pont-avatar-group-count-icon-size: var(
|
|
4790
|
+
--pont-avatar-group-count-lg-icon-size,
|
|
4791
|
+
calc(var(--pont-ref-dimension) * 5)
|
|
4792
|
+
);
|
|
4033
4793
|
}
|
|
4794
|
+
}
|
|
4034
4795
|
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4796
|
+
/*
|
|
4797
|
+
* ---------------------------------------------------------------------------
|
|
4798
|
+
* RECIPES
|
|
4799
|
+
* ---------------------------------------------------------------------------
|
|
4800
|
+
*/
|
|
4039
4801
|
|
|
4802
|
+
@layer pont.primitives {
|
|
4040
4803
|
:is(pont-prim-avatar, [data-pont-avatar]) {
|
|
4041
|
-
box-sizing:
|
|
4042
|
-
position: relative;
|
|
4804
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
4043
4805
|
display: flex;
|
|
4806
|
+
position: relative;
|
|
4807
|
+
|
|
4044
4808
|
flex-shrink: 0;
|
|
4809
|
+
|
|
4045
4810
|
width: var(--_pont-avatar-width);
|
|
4046
4811
|
height: var(--_pont-avatar-height);
|
|
4812
|
+
|
|
4047
4813
|
border-radius: var(--_pont-avatar-radius);
|
|
4814
|
+
|
|
4048
4815
|
user-select: none;
|
|
4049
|
-
box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
|
|
4050
4816
|
}
|
|
4817
|
+
|
|
4818
|
+
:is(pont-prim-avatar-group, [data-pont-avatar-group]) > [data-slot="avatar"] {
|
|
4819
|
+
box-shadow: 0 0 0 var(--_pont-avatar-group-ring-width)
|
|
4820
|
+
var(--_pont-avatar-group-ring-color);
|
|
4821
|
+
}
|
|
4822
|
+
|
|
4823
|
+
/* * -------- AFTER ('border') -------- * */
|
|
4824
|
+
|
|
4051
4825
|
:is(pont-prim-avatar, [data-pont-avatar])::after {
|
|
4052
4826
|
content: "";
|
|
4827
|
+
|
|
4828
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
4053
4829
|
position: absolute;
|
|
4054
4830
|
inset: 0;
|
|
4055
|
-
|
|
4056
|
-
border: var(--pont-sem-border-width) var(--pont-sem-border-style) var(--_pont-avatar-border-color);
|
|
4831
|
+
|
|
4057
4832
|
border-radius: var(--_pont-avatar-radius);
|
|
4833
|
+
|
|
4834
|
+
border-width: var(--_pont-avatar-border-width);
|
|
4835
|
+
border-style: var(--_pont-avatar-border-style);
|
|
4836
|
+
border-color: var(--_pont-avatar-border-color);
|
|
4837
|
+
|
|
4058
4838
|
mix-blend-mode: var(--pont-sem-mode-blend);
|
|
4839
|
+
|
|
4059
4840
|
pointer-events: none;
|
|
4060
4841
|
}
|
|
4061
4842
|
|
|
4062
|
-
/*
|
|
4843
|
+
/* * -------- IMAGE -------- * */
|
|
4844
|
+
|
|
4063
4845
|
:is(pont-prim-avatar, [data-pont-avatar]) > img {
|
|
4064
|
-
|
|
4065
|
-
box-sizing: border-box;
|
|
4846
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
4066
4847
|
aspect-ratio: var(--pont-ref-layout-aspect-square);
|
|
4848
|
+
display: none;
|
|
4849
|
+
object-fit: cover;
|
|
4850
|
+
|
|
4067
4851
|
width: var(--pont-ref-dimension-size-full);
|
|
4068
4852
|
height: var(--pont-ref-dimension-size-full);
|
|
4069
|
-
|
|
4070
|
-
object-fit: cover;
|
|
4853
|
+
|
|
4071
4854
|
border-radius: var(--_pont-avatar-radius);
|
|
4072
4855
|
}
|
|
4856
|
+
|
|
4857
|
+
/* Shown once loaded */
|
|
4073
4858
|
[data-pont-avatar][data-image-loading-status="loaded"] > img {
|
|
4074
4859
|
display: block;
|
|
4075
4860
|
}
|
|
4076
4861
|
|
|
4862
|
+
/* * -------- FALLBACK -------- * */
|
|
4863
|
+
|
|
4077
4864
|
:is(pont-prim-avatar-fallback, [data-pont-avatar-fallback]) {
|
|
4078
4865
|
display: flex;
|
|
4079
|
-
|
|
4080
|
-
|
|
4866
|
+
|
|
4867
|
+
align-items: var(--_pont-avatar-fallback-items);
|
|
4868
|
+
justify-content: var(--_pont-avatar-fallback-justify);
|
|
4869
|
+
|
|
4081
4870
|
width: var(--pont-ref-dimension-size-full);
|
|
4082
4871
|
height: var(--pont-ref-dimension-size-full);
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
font-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4872
|
+
|
|
4873
|
+
font-family: var(--_pont-avatar-fallback-font-family);
|
|
4874
|
+
font-size: var(--_pont-avatar-fallback-font-size);
|
|
4875
|
+
font-weight: var(--_pont-avatar-fallback-font-weight);
|
|
4876
|
+
letter-spacing: var(--_pont-avatar-fallback-letter-spacing);
|
|
4877
|
+
line-height: var(--_pont-avatar-fallback-line-height);
|
|
4878
|
+
|
|
4879
|
+
background-color: var(--_pont-avatar-fallback-color-bg);
|
|
4880
|
+
color: var(--_pont-avatar-fallback-color-fg);
|
|
4881
|
+
|
|
4882
|
+
border-radius: var(--_pont-avatar-radius);
|
|
4092
4883
|
}
|
|
4093
|
-
|
|
4884
|
+
|
|
4885
|
+
/* Hidden once image loaded */
|
|
4886
|
+
[data-pont-avatar][data-image-loading-status="loaded"]
|
|
4887
|
+
:is(pont-prim-avatar-fallback, [data-pont-avatar-fallback]) {
|
|
4094
4888
|
display: none;
|
|
4095
4889
|
}
|
|
4096
4890
|
|
|
4891
|
+
/* * -------- BADGE -------- * */
|
|
4892
|
+
|
|
4097
4893
|
:is(pont-prim-avatar-badge, [data-pont-avatar-badge]) {
|
|
4098
|
-
box-sizing:
|
|
4894
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
4895
|
+
display: inline-flex;
|
|
4099
4896
|
position: absolute;
|
|
4100
|
-
right: 0;
|
|
4101
|
-
bottom: 0;
|
|
4102
4897
|
z-index: 10;
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4898
|
+
|
|
4899
|
+
top: var(--_pont-avatar-badge-top);
|
|
4900
|
+
right: var(--_pont-avatar-badge-right);
|
|
4901
|
+
bottom: var(--_pont-avatar-badge-bottom);
|
|
4902
|
+
left: var(--_pont-avatar-badge-left);
|
|
4903
|
+
|
|
4904
|
+
align-items: var(--_pont-avatar-badge-items);
|
|
4905
|
+
justify-content: var(--_pont-avatar-badge-justify);
|
|
4906
|
+
|
|
4907
|
+
width: var(--_pont-avatar-badge-width);
|
|
4908
|
+
height: var(--_pont-avatar-badge-height);
|
|
4909
|
+
|
|
4910
|
+
background-color: var(--_pont-avatar-badge-color-bg);
|
|
4911
|
+
color: var(--_pont-avatar-badge-color-fg);
|
|
4912
|
+
|
|
4913
|
+
border-radius: var(--_pont-avatar-badge-radius);
|
|
4914
|
+
|
|
4915
|
+
box-shadow: 0 0 0 var(--_pont-avatar-badge-ring-width)
|
|
4916
|
+
var(--_pont-avatar-badge-ring-color);
|
|
4109
4917
|
background-blend-mode: color;
|
|
4110
|
-
|
|
4111
|
-
color: var(--_pont-avatar-badge-fg, var(--pont-sem-color-primary-fg));
|
|
4918
|
+
|
|
4112
4919
|
user-select: none;
|
|
4113
|
-
box-shadow: 0 0 0 2px var(--pont-sem-color-bg);
|
|
4114
4920
|
}
|
|
4921
|
+
|
|
4115
4922
|
:is(pont-prim-avatar-badge, [data-pont-avatar-badge]) > svg {
|
|
4116
|
-
width:
|
|
4117
|
-
height:
|
|
4118
|
-
}
|
|
4119
|
-
[data-pont-avatar][data-size="sm"] :is(pont-prim-avatar-badge, [data-pont-avatar-badge]) {
|
|
4120
|
-
width: 0.5rem;
|
|
4121
|
-
height: 0.5rem;
|
|
4122
|
-
}
|
|
4123
|
-
[data-pont-avatar][data-size="sm"] :is(pont-prim-avatar-badge, [data-pont-avatar-badge]) > svg {
|
|
4124
|
-
display: none;
|
|
4125
|
-
}
|
|
4126
|
-
[data-pont-avatar][data-size="lg"] :is(pont-prim-avatar-badge, [data-pont-avatar-badge]) {
|
|
4127
|
-
width: 0.75rem;
|
|
4128
|
-
height: 0.75rem;
|
|
4923
|
+
width: var(--_pont-avatar-badge-icon-size);
|
|
4924
|
+
height: var(--_pont-avatar-badge-icon-size);
|
|
4129
4925
|
}
|
|
4130
4926
|
|
|
4927
|
+
/* * -------- GROUP -------- * */
|
|
4928
|
+
|
|
4131
4929
|
:is(pont-prim-avatar-group, [data-pont-avatar-group]) {
|
|
4132
4930
|
display: flex;
|
|
4133
4931
|
}
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4932
|
+
|
|
4933
|
+
/* Declared on the group too, so a child that is not an avatar or count
|
|
4934
|
+
(e.g. a wrapper) still resolves it. */
|
|
4935
|
+
:is(pont-prim-avatar-group, [data-pont-avatar-group]) {
|
|
4936
|
+
/** @token Horizontal space */
|
|
4937
|
+
--_pont-avatar-group-space-x: var(
|
|
4938
|
+
--pont-avatar-group-space-x,
|
|
4939
|
+
calc(var(--pont-ref-dimension) * -2)
|
|
4940
|
+
);
|
|
4137
4941
|
}
|
|
4138
|
-
|
|
4139
|
-
|
|
4942
|
+
|
|
4943
|
+
/* Space between group children (inline-end margin on all but last child) */
|
|
4944
|
+
:is(pont-prim-avatar-group, [data-pont-avatar-group]) > :not(:last-child) {
|
|
4945
|
+
margin-inline-end: var(--_pont-avatar-group-space-x);
|
|
4140
4946
|
}
|
|
4141
4947
|
|
|
4948
|
+
/* * -------- GROUP COUNT -------- * */
|
|
4949
|
+
|
|
4142
4950
|
:is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
4143
|
-
box-sizing:
|
|
4144
|
-
position: relative;
|
|
4951
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
4145
4952
|
display: flex;
|
|
4953
|
+
position: relative;
|
|
4954
|
+
|
|
4146
4955
|
flex-shrink: 0;
|
|
4147
|
-
align-items:
|
|
4148
|
-
justify-content:
|
|
4956
|
+
align-items: var(--_pont-avatar-group-count-items);
|
|
4957
|
+
justify-content: var(--_pont-avatar-group-count-justify);
|
|
4958
|
+
|
|
4149
4959
|
width: var(--_pont-avatar-width);
|
|
4150
4960
|
height: var(--_pont-avatar-height);
|
|
4961
|
+
|
|
4962
|
+
font-family: var(--_pont-avatar-group-count-font-family);
|
|
4963
|
+
font-size: var(--_pont-avatar-group-count-font-size);
|
|
4964
|
+
font-weight: var(--_pont-avatar-group-count-font-weight);
|
|
4965
|
+
letter-spacing: var(--_pont-avatar-group-count-letter-spacing);
|
|
4966
|
+
line-height: var(--_pont-avatar-group-count-line-height);
|
|
4967
|
+
|
|
4968
|
+
background-color: var(--_pont-avatar-group-count-color-bg);
|
|
4969
|
+
color: var(--_pont-avatar-group-count-color-fg);
|
|
4970
|
+
|
|
4151
4971
|
border-radius: var(--_pont-avatar-radius);
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
line-height: var(--pont-ref-typography-leading-of-sm);
|
|
4156
|
-
box-shadow: 0 0 0 2px var(--pont-sem-color-bg);
|
|
4972
|
+
|
|
4973
|
+
box-shadow: 0 0 0 var(--_pont-avatar-group-ring-width)
|
|
4974
|
+
var(--_pont-avatar-group-ring-color);
|
|
4157
4975
|
}
|
|
4976
|
+
|
|
4158
4977
|
:is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
4159
|
-
width:
|
|
4160
|
-
height:
|
|
4161
|
-
}
|
|
4162
|
-
[data-pont-avatar-group]:has([data-size="lg"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
4163
|
-
width: 1.25rem;
|
|
4164
|
-
height: 1.25rem;
|
|
4165
|
-
}
|
|
4166
|
-
[data-pont-avatar-group]:has([data-size="sm"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
4167
|
-
width: 0.75rem;
|
|
4168
|
-
height: 0.75rem;
|
|
4978
|
+
width: var(--_pont-avatar-group-count-icon-size);
|
|
4979
|
+
height: var(--_pont-avatar-group-count-icon-size);
|
|
4169
4980
|
}
|
|
4170
4981
|
}
|
|
4171
4982
|
|
|
@@ -4956,13 +5767,13 @@
|
|
|
4956
5767
|
@layer pont.primitives {
|
|
4957
5768
|
:is(pont-prim-input-group, [data-pont-input-group]) {
|
|
4958
5769
|
/** @token Background */
|
|
4959
|
-
--_pont-input-group-bg: var(--pont-input-group-bg, var(--pont-input-bg, var(--pont-sem-color-field)));
|
|
5770
|
+
--_pont-input-group-bg: var(--pont-input-group-bg, var(--pont-input-color-bg, var(--pont-sem-color-field)));
|
|
4960
5771
|
/** @token Border */
|
|
4961
5772
|
--_pont-input-group-border-color: var(--pont-input-group-border-color, var(--pont-input-border-color, var(--pont-sem-color-field-border)));
|
|
4962
5773
|
/** @token Corner radius */
|
|
4963
5774
|
--_pont-input-group-radius: var(--pont-input-group-radius, var(--pont-input-radius, var(--pont-ref-radius-md)));
|
|
4964
5775
|
/** @token Height */
|
|
4965
|
-
--_pont-input-group-height: var(--pont-input-group-height, var(--pont-input-height,
|
|
5776
|
+
--_pont-input-group-height: var(--pont-input-group-height, var(--pont-input-height, calc(var(--pont-ref-dimension) * 9)));
|
|
4966
5777
|
/** @token Addon text */
|
|
4967
5778
|
--_pont-input-group-addon-fg: var(--pont-input-group-addon-fg, var(--pont-sem-color-muted-fg));
|
|
4968
5779
|
}
|
|
@@ -5125,6 +5936,15 @@
|
|
|
5125
5936
|
--pont-shadow: var(--pont-ref-shadow-none);
|
|
5126
5937
|
--pont-ring-shadow: 0 0 #0000;
|
|
5127
5938
|
}
|
|
5939
|
+
/* The Input composes its box-shadow from its own privates: the group draws
|
|
5940
|
+
the shadow and the rings, so the control's are none in every state. */
|
|
5941
|
+
[data-pont-input-group-input] {
|
|
5942
|
+
--_pont-input-shadow: var(--pont-ref-shadow-none);
|
|
5943
|
+
--_pont-input-ring-offset: var(--pont-ref-shadow-none);
|
|
5944
|
+
--_pont-input-ring: var(--pont-ref-shadow-none);
|
|
5945
|
+
--_pont-input-ring-focus: var(--pont-ref-shadow-none);
|
|
5946
|
+
--_pont-input-ring-invalid: var(--pont-ref-shadow-none);
|
|
5947
|
+
}
|
|
5128
5948
|
:is([data-pont-input-group-input], [data-pont-input-group-textarea]):is(:focus-visible, [aria-invalid="true"]) {
|
|
5129
5949
|
--pont-ring-shadow: 0 0 #0000;
|
|
5130
5950
|
}
|
|
@@ -7215,13 +8035,13 @@
|
|
|
7215
8035
|
@layer pont.primitives {
|
|
7216
8036
|
:is(pont-prim-combobox-input, [data-pont-combobox-input], pont-prim-combobox-content, [data-pont-combobox-content]) {
|
|
7217
8037
|
/** @token Background */
|
|
7218
|
-
--_pont-combobox-input-bg: var(--pont-combobox-input-bg, var(--pont-input-group-bg, var(--pont-input-bg, var(--pont-sem-color-field))));
|
|
8038
|
+
--_pont-combobox-input-bg: var(--pont-combobox-input-bg, var(--pont-input-group-bg, var(--pont-input-color-bg, var(--pont-sem-color-field))));
|
|
7219
8039
|
/** @token Border */
|
|
7220
8040
|
--_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))));
|
|
7221
8041
|
/** @token Corner radius */
|
|
7222
8042
|
--_pont-combobox-input-radius: var(--pont-combobox-input-radius, var(--pont-input-group-radius, var(--pont-input-radius, var(--pont-ref-radius-md))));
|
|
7223
8043
|
/** @token Height */
|
|
7224
|
-
--_pont-combobox-input-height: var(--pont-combobox-input-height, var(--pont-input-group-height, var(--pont-input-height,
|
|
8044
|
+
--_pont-combobox-input-height: var(--pont-combobox-input-height, var(--pont-input-group-height, var(--pont-input-height, calc(var(--pont-ref-dimension) * 9))));
|
|
7225
8045
|
/** @token Background */
|
|
7226
8046
|
--_pont-combobox-content-bg: var(--pont-combobox-content-bg, var(--pont-sem-color-overlay));
|
|
7227
8047
|
/** @token Text */
|
|
@@ -8646,25 +9466,46 @@
|
|
|
8646
9466
|
defaults, through the same privates: a branded avatar keeps its size
|
|
8647
9467
|
when it upgrades. */
|
|
8648
9468
|
pont-avatar:not([data-pont-avatar]) {
|
|
9469
|
+
/** @token Size (width and height) */
|
|
9470
|
+
--_pont-avatar-size: var(
|
|
9471
|
+
--pont-avatar-size,
|
|
9472
|
+
calc(var(--pont-ref-dimension) * 8)
|
|
9473
|
+
);
|
|
8649
9474
|
/** @token Width */
|
|
8650
|
-
--_pont-avatar-width: var(--pont-avatar-width,
|
|
9475
|
+
--_pont-avatar-width: var(--pont-avatar-width, var(--_pont-avatar-size));
|
|
8651
9476
|
/** @token Height */
|
|
8652
|
-
--_pont-avatar-height: var(--pont-avatar-height,
|
|
9477
|
+
--_pont-avatar-height: var(--pont-avatar-height, var(--_pont-avatar-size));
|
|
8653
9478
|
display: inline-flex;
|
|
8654
9479
|
width: var(--_pont-avatar-width);
|
|
8655
9480
|
height: var(--_pont-avatar-height);
|
|
8656
9481
|
}
|
|
8657
9482
|
pont-avatar:not([data-pont-avatar])[size="sm"] {
|
|
9483
|
+
/** @token Size (width and height) */
|
|
9484
|
+
--_pont-avatar-size: var(
|
|
9485
|
+
--pont-avatar-sm-size,
|
|
9486
|
+
calc(var(--pont-ref-dimension) * 6)
|
|
9487
|
+
);
|
|
8658
9488
|
/** @token Width */
|
|
8659
|
-
--_pont-avatar-width: var(--pont-avatar-sm-width,
|
|
9489
|
+
--_pont-avatar-width: var(--pont-avatar-sm-width, var(--_pont-avatar-size));
|
|
8660
9490
|
/** @token Height */
|
|
8661
|
-
--_pont-avatar-height: var(
|
|
9491
|
+
--_pont-avatar-height: var(
|
|
9492
|
+
--pont-avatar-sm-height,
|
|
9493
|
+
var(--_pont-avatar-size)
|
|
9494
|
+
);
|
|
8662
9495
|
}
|
|
8663
9496
|
pont-avatar:not([data-pont-avatar])[size="lg"] {
|
|
9497
|
+
/** @token Size (width and height) */
|
|
9498
|
+
--_pont-avatar-size: var(
|
|
9499
|
+
--pont-avatar-lg-size,
|
|
9500
|
+
calc(var(--pont-ref-dimension) * 10)
|
|
9501
|
+
);
|
|
8664
9502
|
/** @token Width */
|
|
8665
|
-
--_pont-avatar-width: var(--pont-avatar-lg-width,
|
|
9503
|
+
--_pont-avatar-width: var(--pont-avatar-lg-width, var(--_pont-avatar-size));
|
|
8666
9504
|
/** @token Height */
|
|
8667
|
-
--_pont-avatar-height: var(
|
|
9505
|
+
--_pont-avatar-height: var(
|
|
9506
|
+
--pont-avatar-lg-height,
|
|
9507
|
+
var(--_pont-avatar-size)
|
|
9508
|
+
);
|
|
8668
9509
|
}
|
|
8669
9510
|
}
|
|
8670
9511
|
|