@pontive/pontkit-core 1.48.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/custom-elements.json +884 -884
- package/dist/styles.css +1506 -276
- package/dist/theme-golden.json +67 -67
- package/dist/theme.mjs +207 -170
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens.json +3251 -1232
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -818,6 +818,8 @@
|
|
|
818
818
|
--pont-sem-color-ring-focus: var(--pont-sem-color-base-ring);
|
|
819
819
|
--pont-sem-color-ring-invalid: var(--pont-sem-color-destructive-ring);
|
|
820
820
|
|
|
821
|
+
--pont-sem-color-ring-offset: var(--pont-sem-color-bg);
|
|
822
|
+
|
|
821
823
|
--pont-sem-color-input: var(--pont-ref-color-base-200);
|
|
822
824
|
|
|
823
825
|
--pont-sem-color-control: var(--pont-sem-color-bg);
|
|
@@ -1105,6 +1107,8 @@
|
|
|
1105
1107
|
--pont-sem-color-ring-focus: var(--pont-sem-color-base-ring);
|
|
1106
1108
|
--pont-sem-color-ring-invalid: var(--pont-sem-color-destructive-ring);
|
|
1107
1109
|
|
|
1110
|
+
--pont-sem-color-ring-offset: var(--pont-sem-color-bg);
|
|
1111
|
+
|
|
1108
1112
|
--pont-sem-color-input: color-mix(
|
|
1109
1113
|
in oklab,
|
|
1110
1114
|
var(--pont-ref-color-white) 15%,
|
|
@@ -2042,7 +2046,7 @@
|
|
|
2042
2046
|
|
|
2043
2047
|
:root {
|
|
2044
2048
|
--pont-sem-shadow-ring-offset: 0 0 0
|
|
2045
|
-
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);
|
|
2046
2050
|
}
|
|
2047
2051
|
}
|
|
2048
2052
|
|
|
@@ -2831,141 +2835,598 @@
|
|
|
2831
2835
|
|
|
2832
2836
|
/* ../primitives/label/label.css */
|
|
2833
2837
|
/*
|
|
2834
|
-
*
|
|
2835
|
-
*
|
|
2836
|
-
*
|
|
2837
|
-
*
|
|
2838
|
-
*
|
|
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
|
|
2839
2846
|
*
|
|
2840
2847
|
* Tokens (docs/11-tokens.md): `--pont-label-*`, resolved on the label. The
|
|
2841
|
-
* 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`.
|
|
2851
|
+
*/
|
|
2852
|
+
|
|
2853
|
+
/*
|
|
2854
|
+
* ---------------------------------------------------------------------------
|
|
2855
|
+
* TOKENS
|
|
2856
|
+
* ---------------------------------------------------------------------------
|
|
2842
2857
|
*/
|
|
2858
|
+
|
|
2843
2859
|
@layer pont.primitives {
|
|
2844
2860
|
[data-pont-label] {
|
|
2845
|
-
/** @token
|
|
2846
|
-
--_pont-label-
|
|
2847
|
-
|
|
2848
|
-
|
|
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
|
+
);
|
|
2849
2927
|
}
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
/*
|
|
2931
|
+
* ---------------------------------------------------------------------------
|
|
2932
|
+
* RECIPES
|
|
2933
|
+
* ---------------------------------------------------------------------------
|
|
2934
|
+
*/
|
|
2850
2935
|
|
|
2936
|
+
@layer pont.primitives {
|
|
2851
2937
|
[data-pont-label] {
|
|
2852
|
-
box-sizing:
|
|
2853
|
-
margin: 0;
|
|
2938
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
2854
2939
|
display: flex;
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
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);
|
|
2858
2950
|
font-size: var(--_pont-label-font-size);
|
|
2859
|
-
line-height: var(--pont-ref-typography-leading-none);
|
|
2860
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;
|
|
2861
2958
|
}
|
|
2862
2959
|
|
|
2863
|
-
/*
|
|
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> */
|
|
2864
2966
|
:is([data-disabled="true"], [data-disabled=""]) [data-pont-label] {
|
|
2967
|
+
opacity: var(--_pont-label-opacity-disabled);
|
|
2865
2968
|
pointer-events: none;
|
|
2866
|
-
opacity: var(--pont-sem-opacity-disabled);
|
|
2867
2969
|
}
|
|
2868
2970
|
|
|
2869
|
-
/* peer-disabled: the label follows a disabled control
|
|
2870
|
-
The second selector sees through a Tier 3
|
|
2871
|
-
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. */
|
|
2872
2975
|
:is(:disabled, [data-disabled]) ~ [data-pont-label],
|
|
2873
2976
|
:is(:disabled, [data-disabled]) ~ [data-pont-shell] > [data-pont-label] {
|
|
2874
|
-
|
|
2875
|
-
|
|
2977
|
+
opacity: var(--_pont-label-opacity-disabled);
|
|
2978
|
+
cursor: var(--_pont-label-cursor-disabled);
|
|
2876
2979
|
}
|
|
2877
2980
|
}
|
|
2878
2981
|
|
|
2879
2982
|
/* ../primitives/input/input.css */
|
|
2880
2983
|
/*
|
|
2881
|
-
*
|
|
2882
|
-
*
|
|
2883
|
-
*
|
|
2884
|
-
* disabled:cursor-not-allowed disabled:opacity-50" + .cn-input
|
|
2984
|
+
* ===========================================================================
|
|
2985
|
+
* INPUT STYLES
|
|
2986
|
+
* ===========================================================================
|
|
2885
2987
|
*
|
|
2886
|
-
*
|
|
2887
|
-
*
|
|
2888
|
-
*
|
|
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.
|
|
2889
3003
|
*/
|
|
3004
|
+
|
|
3005
|
+
/*
|
|
3006
|
+
* ---------------------------------------------------------------------------
|
|
3007
|
+
* TOKENS
|
|
3008
|
+
* ---------------------------------------------------------------------------
|
|
3009
|
+
*/
|
|
3010
|
+
|
|
2890
3011
|
@layer pont.primitives {
|
|
2891
3012
|
[data-pont-input] {
|
|
2892
|
-
/** @token
|
|
2893
|
-
--_pont-input-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
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 */
|
|
2899
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
|
+
);
|
|
2900
3181
|
/** @token Height */
|
|
2901
|
-
--_pont-input-height: var(
|
|
2902
|
-
|
|
2903
|
-
|
|
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);
|
|
2904
3301
|
}
|
|
2905
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 {
|
|
2906
3320
|
[data-pont-input] {
|
|
2907
|
-
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
|
+
|
|
2908
3328
|
margin: 0;
|
|
2909
|
-
font-family: inherit;
|
|
2910
|
-
color: var(--_pont-input-fg);
|
|
2911
|
-
-webkit-appearance: none;
|
|
2912
|
-
appearance: none;
|
|
2913
3329
|
|
|
2914
|
-
width: var(--
|
|
2915
|
-
min-width:
|
|
3330
|
+
width: var(--_pont-input-width);
|
|
3331
|
+
min-width: var(--_pont-input-min-width);
|
|
3332
|
+
max-width: var(--_pont-input-max-width);
|
|
2916
3333
|
height: var(--_pont-input-height);
|
|
2917
|
-
|
|
2918
|
-
|
|
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
|
+
|
|
2919
3346
|
border-radius: var(--_pont-input-radius);
|
|
2920
|
-
background-color: var(--_pont-input-bg);
|
|
2921
|
-
font-size: var(--pont-ref-typography-size-base);
|
|
2922
|
-
line-height: var(--pont-ref-typography-leading-of-base);
|
|
2923
|
-
outline: none;
|
|
2924
|
-
--pont-shadow: var(--pont-ref-shadow-xs);
|
|
2925
|
-
box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
|
|
2926
|
-
transition-property: color, box-shadow;
|
|
2927
|
-
transition-duration: var(--pont-sem-motion-trans-duration);
|
|
2928
|
-
transition-timing-function: var(--pont-sem-motion-trans-easing);
|
|
2929
|
-
}
|
|
2930
3347
|
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
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;
|
|
2936
3365
|
}
|
|
2937
3366
|
|
|
3367
|
+
/* * -------- PLACEHOLDER -------- * */
|
|
3368
|
+
|
|
2938
3369
|
[data-pont-input]::placeholder {
|
|
2939
|
-
color: var(--_pont-input-placeholder-fg);
|
|
2940
|
-
opacity:
|
|
3370
|
+
color: var(--_pont-input-placeholder-color-fg);
|
|
3371
|
+
opacity: var(--pont-ref-opacity-full);
|
|
2941
3372
|
}
|
|
2942
3373
|
|
|
3374
|
+
/* * -------- FILE BUTTON -------- * */
|
|
3375
|
+
|
|
2943
3376
|
[data-pont-input]::file-selector-button {
|
|
2944
3377
|
display: inline-flex;
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
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);
|
|
2953
3397
|
}
|
|
2954
3398
|
|
|
3399
|
+
/* * -------- STATES -------- * */
|
|
3400
|
+
|
|
3401
|
+
/* * FOCUS * */
|
|
3402
|
+
|
|
2955
3403
|
[data-pont-input]:focus-visible {
|
|
2956
|
-
border-color: var(--
|
|
2957
|
-
|
|
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);
|
|
2958
3410
|
}
|
|
2959
3411
|
|
|
3412
|
+
/* * INVALID * */
|
|
3413
|
+
|
|
2960
3414
|
[data-pont-input][aria-invalid="true"] {
|
|
2961
|
-
border-color: var(--
|
|
2962
|
-
|
|
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);
|
|
2963
3421
|
}
|
|
2964
3422
|
|
|
3423
|
+
/* * DISABLED * */
|
|
3424
|
+
|
|
2965
3425
|
[data-pont-input]:disabled {
|
|
3426
|
+
opacity: var(--_pont-input-opacity-disabled);
|
|
3427
|
+
|
|
3428
|
+
cursor: var(--_pont-input-cursor-disabled);
|
|
2966
3429
|
pointer-events: none;
|
|
2967
|
-
cursor: var(--pont-sem-cursor-disabled);
|
|
2968
|
-
opacity: var(--pont-sem-opacity-disabled);
|
|
2969
3430
|
}
|
|
2970
3431
|
}
|
|
2971
3432
|
|
|
@@ -3048,10 +3509,30 @@
|
|
|
3048
3509
|
|
|
3049
3510
|
/* ../primitives/checkbox/checkbox.css */
|
|
3050
3511
|
/*
|
|
3051
|
-
*
|
|
3052
|
-
*
|
|
3053
|
-
*
|
|
3054
|
-
*
|
|
3512
|
+
* ===========================================================================
|
|
3513
|
+
* CHECKBOX STYLES
|
|
3514
|
+
* ===========================================================================
|
|
3515
|
+
*
|
|
3516
|
+
* shadcn/ui Base UI x Vega:
|
|
3517
|
+
* root:
|
|
3518
|
+
* 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
|
|
3519
|
+
* after:absolute after:-inset-x-3 after:-inset-y-2
|
|
3520
|
+
* focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50
|
|
3521
|
+
* group-has-disabled/field:opacity-50 disabled:cursor-not-allowed disabled:opacity-50
|
|
3522
|
+
* 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
|
|
3523
|
+
* aria-invalid:aria-checked:border-primary
|
|
3524
|
+
* data-checked:border-primary data-checked:bg-primary dark:data-checked:bg-primary data-checked:text-primary-foreground
|
|
3525
|
+
* 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
|
|
3526
|
+
* indicator:
|
|
3527
|
+
* grid place-content-center text-current transition-none [&>svg]:size-3.5
|
|
3528
|
+
*
|
|
3529
|
+
* Differences:
|
|
3530
|
+
* - The checkbox indicator is conditionally rendered. Instead of giving root
|
|
3531
|
+
* `data-checked:text-primary-foreground` and indicator `text-current`, we
|
|
3532
|
+
* give indicator `text-primary-foreground` via the
|
|
3533
|
+
* `--pont-checkbox-indicator-color-fg` token.
|
|
3534
|
+
* - Instead of `ring-0` when the field label is in focus, the checkbox sets
|
|
3535
|
+
* the ring shadow back to the initial/default state ring shadow.
|
|
3055
3536
|
*
|
|
3056
3537
|
* The host is form-associated, so `:disabled` and `:invalid` match it like a
|
|
3057
3538
|
* native control. `aria-checked` lives in ElementInternals (not an attribute),
|
|
@@ -3061,100 +3542,362 @@
|
|
|
3061
3542
|
* the element. shadcn's `dark:bg-input/30` is sem-color-field; the invalid
|
|
3062
3543
|
* border/ring are sem-color-border-invalid / sem-color-ring-invalid.
|
|
3063
3544
|
*/
|
|
3545
|
+
|
|
3546
|
+
/*
|
|
3547
|
+
* ---------------------------------------------------------------------------
|
|
3548
|
+
* TOKENS
|
|
3549
|
+
* ---------------------------------------------------------------------------
|
|
3550
|
+
*/
|
|
3551
|
+
|
|
3064
3552
|
@layer pont.primitives {
|
|
3065
3553
|
:is(pont-prim-checkbox, pont-checkbox, [data-pont-checkbox]) {
|
|
3066
|
-
/** @token
|
|
3067
|
-
--_pont-checkbox-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3554
|
+
/** @token Align items */
|
|
3555
|
+
--_pont-checkbox-items: var(
|
|
3556
|
+
--pont-checkbox-items,
|
|
3557
|
+
var(--pont-ref-layout-items-center)
|
|
3558
|
+
);
|
|
3559
|
+
/** @token Justify content */
|
|
3560
|
+
--_pont-checkbox-justify: var(
|
|
3561
|
+
--pont-checkbox-justify,
|
|
3562
|
+
var(--pont-ref-layout-justify-center)
|
|
3563
|
+
);
|
|
3564
|
+
|
|
3565
|
+
/** @token Size (width and height) */
|
|
3566
|
+
--_pont-checkbox-size: var(
|
|
3567
|
+
--pont-checkbox-size,
|
|
3568
|
+
calc(var(--pont-ref-dimension) * 4)
|
|
3569
|
+
);
|
|
3570
|
+
/** @token Width */
|
|
3571
|
+
--_pont-checkbox-width: var(
|
|
3572
|
+
--pont-checkbox-width,
|
|
3573
|
+
var(--_pont-checkbox-size)
|
|
3574
|
+
);
|
|
3575
|
+
/** @token Height */
|
|
3576
|
+
--_pont-checkbox-height: var(
|
|
3577
|
+
--pont-checkbox-height,
|
|
3578
|
+
var(--_pont-checkbox-size)
|
|
3579
|
+
);
|
|
3580
|
+
|
|
3581
|
+
/** @token Background color */
|
|
3582
|
+
--_pont-checkbox-color-bg: var(
|
|
3583
|
+
--pont-checkbox-color-bg,
|
|
3584
|
+
var(--pont-sem-color-field)
|
|
3585
|
+
);
|
|
3586
|
+
|
|
3587
|
+
/** @token Border radius */
|
|
3071
3588
|
--_pont-checkbox-radius: var(--pont-checkbox-radius, 4px);
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3589
|
+
|
|
3590
|
+
/** @token Border width */
|
|
3591
|
+
--_pont-checkbox-border-width: var(
|
|
3592
|
+
--pont-checkbox-border-width,
|
|
3593
|
+
var(--pont-sem-border-width)
|
|
3594
|
+
);
|
|
3595
|
+
/** @token Border style */
|
|
3596
|
+
--_pont-checkbox-border-style: var(
|
|
3597
|
+
--pont-checkbox-border-style,
|
|
3598
|
+
var(--pont-sem-border-style)
|
|
3599
|
+
);
|
|
3600
|
+
/** @token Border color */
|
|
3601
|
+
--_pont-checkbox-border-color: var(
|
|
3602
|
+
--pont-checkbox-border-color,
|
|
3603
|
+
var(--pont-sem-color-field-border)
|
|
3604
|
+
);
|
|
3605
|
+
|
|
3606
|
+
--_pont-checkbox-inset-shadow: var(--pont-ref-shadow-inset-none);
|
|
3607
|
+
--_pont-checkbox-inset-ring: var(--pont-ref-shadow-inset-none);
|
|
3608
|
+
|
|
3609
|
+
--_pont-checkbox-ring-offset-width: var(
|
|
3610
|
+
--pont-sem-shadow-ring-offset-width
|
|
3611
|
+
);
|
|
3612
|
+
--_pont-checkbox-ring-offset: 0 0 0 var(--_pont-checkbox-ring-offset-width)
|
|
3613
|
+
var(--pont-sem-color-ring-offset);
|
|
3614
|
+
|
|
3615
|
+
/** @token Ring width */
|
|
3616
|
+
--_pont-checkbox-ring-width: var(
|
|
3617
|
+
--pont-checkbox-ring-width,
|
|
3618
|
+
var(--pont-sem-shadow-ring-width)
|
|
3619
|
+
);
|
|
3620
|
+
/** @token Ring color */
|
|
3621
|
+
--_pont-checkbox-ring-color: var(
|
|
3622
|
+
--pont-checkbox-ring-color,
|
|
3623
|
+
var(--pont-sem-color-ring)
|
|
3624
|
+
);
|
|
3625
|
+
|
|
3626
|
+
--_pont-checkbox-ring: 0 0 0
|
|
3627
|
+
calc(
|
|
3628
|
+
var(--_pont-checkbox-ring-width) +
|
|
3629
|
+
var(--_pont-checkbox-ring-offset-width)
|
|
3630
|
+
)
|
|
3631
|
+
var(--_pont-checkbox-ring-color);
|
|
3632
|
+
|
|
3633
|
+
/** @token Box shadow */
|
|
3634
|
+
--_pont-checkbox-shadow: var(
|
|
3635
|
+
--pont-checkbox-shadow,
|
|
3636
|
+
var(--pont-ref-shadow-xs)
|
|
3637
|
+
);
|
|
3638
|
+
|
|
3639
|
+
--_pont-checkbox-transition-property: var(
|
|
3640
|
+
--pont-ref-motion-trans-property-shadow
|
|
3641
|
+
);
|
|
3642
|
+
/** @token Transition duration */
|
|
3643
|
+
--_pont-checkbox-transition-duration: var(
|
|
3644
|
+
--pont-checkbox-transition-duration,
|
|
3645
|
+
var(--pont-sem-motion-trans-duration)
|
|
3646
|
+
);
|
|
3647
|
+
/** @token Transition timing function */
|
|
3648
|
+
--_pont-checkbox-transition-easing: var(
|
|
3649
|
+
--pont-checkbox-transition-easing,
|
|
3650
|
+
var(--pont-sem-motion-trans-easing)
|
|
3651
|
+
);
|
|
3652
|
+
|
|
3653
|
+
/** @token Cursor */
|
|
3654
|
+
--_pont-checkbox-cursor: var(
|
|
3655
|
+
--pont-checkbox-cursor,
|
|
3656
|
+
var(--pont-sem-cursor-interactive)
|
|
3657
|
+
);
|
|
3658
|
+
|
|
3659
|
+
--_pont-checkbox-after-inset-x: calc(var(--pont-ref-dimension) * -3);
|
|
3660
|
+
--_pont-checkbox-after-inset-y: calc(var(--pont-ref-dimension) * -2);
|
|
3661
|
+
|
|
3662
|
+
/** @token Align content */
|
|
3663
|
+
--_pont-checkbox-indicator-content: var(
|
|
3664
|
+
--pont-checkbox-indicator-content,
|
|
3665
|
+
var(--pont-ref-layout-content-center)
|
|
3666
|
+
);
|
|
3667
|
+
/** @token Justify content */
|
|
3668
|
+
--_pont-checkbox-indicator-justify: var(
|
|
3669
|
+
--pont-checkbox-indicator-justify,
|
|
3670
|
+
var(--pont-ref-layout-justify-center)
|
|
3671
|
+
);
|
|
3672
|
+
|
|
3673
|
+
/** @token Color (foreground) */
|
|
3674
|
+
--_pont-checkbox-indicator-color-fg: var(
|
|
3675
|
+
--pont-checkbox-indicator-color-fg,
|
|
3676
|
+
var(--pont-sem-color-primary-fg)
|
|
3677
|
+
);
|
|
3678
|
+
|
|
3679
|
+
/** @token Icon size (width and height) */
|
|
3680
|
+
--_pont-checkbox-indicator-icon-size: var(
|
|
3681
|
+
--pont-checkbox-indicator-icon-size,
|
|
3682
|
+
calc(var(--pont-ref-dimension) * 3.5)
|
|
3683
|
+
);
|
|
3684
|
+
|
|
3685
|
+
/* * -------- STATES -------- * */
|
|
3686
|
+
|
|
3687
|
+
/** @token Opacity when disabled */
|
|
3688
|
+
--_pont-checkbox-opacity-disabled: var(
|
|
3689
|
+
--pont-checkbox-opacity-disabled,
|
|
3690
|
+
var(--pont-sem-opacity-disabled)
|
|
3691
|
+
);
|
|
3692
|
+
|
|
3693
|
+
/** @token Cursor when disabled */
|
|
3694
|
+
--_pont-checkbox-cursor-disabled: var(
|
|
3695
|
+
--pont-checkbox-cursor-disabled,
|
|
3696
|
+
var(--pont-sem-cursor-disabled)
|
|
3697
|
+
);
|
|
3698
|
+
|
|
3699
|
+
/** @token Border color on focus */
|
|
3700
|
+
--_pont-checkbox-border-color-focus: var(
|
|
3701
|
+
--pont-checkbox-border-color-focus,
|
|
3702
|
+
var(--pont-sem-color-border-focus)
|
|
3703
|
+
);
|
|
3704
|
+
|
|
3705
|
+
/** @token Ring width on focus */
|
|
3706
|
+
--_pont-checkbox-ring-width-focus: var(
|
|
3707
|
+
--pont-checkbox-ring-width-focus,
|
|
3708
|
+
var(--pont-sem-shadow-ring-width-focus)
|
|
3709
|
+
);
|
|
3710
|
+
/** @token Ring color on focus */
|
|
3711
|
+
--_pont-checkbox-ring-color-focus: var(
|
|
3712
|
+
--pont-checkbox-ring-color-focus,
|
|
3713
|
+
var(--pont-sem-color-ring-focus)
|
|
3714
|
+
);
|
|
3715
|
+
|
|
3716
|
+
--_pont-checkbox-ring-focus: 0 0 0
|
|
3717
|
+
calc(
|
|
3718
|
+
var(--_pont-checkbox-ring-width-focus) +
|
|
3719
|
+
var(--_pont-checkbox-ring-offset-width)
|
|
3720
|
+
)
|
|
3721
|
+
var(--_pont-checkbox-ring-color-focus);
|
|
3722
|
+
|
|
3723
|
+
/** @token Border color when invalid */
|
|
3724
|
+
--_pont-checkbox-border-color-invalid: var(
|
|
3725
|
+
--pont-checkbox-border-color-invalid,
|
|
3726
|
+
var(--pont-sem-color-border-invalid)
|
|
3727
|
+
);
|
|
3728
|
+
|
|
3729
|
+
/** @token Ring width when invalid */
|
|
3730
|
+
--_pont-checkbox-ring-width-invalid: var(
|
|
3731
|
+
--pont-checkbox-ring-width-invalid,
|
|
3732
|
+
var(--pont-sem-shadow-ring-width-invalid)
|
|
3733
|
+
);
|
|
3734
|
+
/** @token Ring color when invalid */
|
|
3735
|
+
--_pont-checkbox-ring-color-invalid: var(
|
|
3736
|
+
--pont-checkbox-ring-color-invalid,
|
|
3737
|
+
var(--pont-sem-color-ring-invalid)
|
|
3738
|
+
);
|
|
3739
|
+
|
|
3740
|
+
--_pont-checkbox-ring-invalid: 0 0 0
|
|
3741
|
+
calc(
|
|
3742
|
+
var(--_pont-checkbox-ring-width-invalid) +
|
|
3743
|
+
var(--_pont-checkbox-ring-offset-width)
|
|
3744
|
+
)
|
|
3745
|
+
var(--_pont-checkbox-ring-color-invalid);
|
|
3746
|
+
|
|
3747
|
+
/** @token Background color when checked */
|
|
3748
|
+
--_pont-checkbox-color-bg-checked: var(
|
|
3749
|
+
--pont-checkbox-color-bg-checked,
|
|
3750
|
+
var(--pont-sem-color-primary)
|
|
3751
|
+
);
|
|
3752
|
+
|
|
3753
|
+
/** @token Border color when checked */
|
|
3754
|
+
--_pont-checkbox-border-color-checked: var(
|
|
3755
|
+
--pont-checkbox-border-color-checked,
|
|
3756
|
+
var(--_pont-checkbox-color-bg-checked)
|
|
3757
|
+
);
|
|
3078
3758
|
}
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
/*
|
|
3762
|
+
* ---------------------------------------------------------------------------
|
|
3763
|
+
* RECIPES
|
|
3764
|
+
* ---------------------------------------------------------------------------
|
|
3765
|
+
*/
|
|
3079
3766
|
|
|
3767
|
+
@layer pont.primitives {
|
|
3080
3768
|
:is(pont-prim-checkbox, pont-checkbox, [data-pont-checkbox]) {
|
|
3081
|
-
|
|
3082
|
-
|
|
3769
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
3770
|
+
display: flex;
|
|
3083
3771
|
position: relative;
|
|
3772
|
+
|
|
3084
3773
|
flex-shrink: 0;
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
width:
|
|
3089
|
-
height:
|
|
3090
|
-
|
|
3774
|
+
align-items: var(--_pont-checkbox-items);
|
|
3775
|
+
justify-content: var(--_pont-checkbox-justify);
|
|
3776
|
+
|
|
3777
|
+
width: var(--_pont-checkbox-width);
|
|
3778
|
+
height: var(--_pont-checkbox-height);
|
|
3779
|
+
|
|
3780
|
+
background-color: var(--_pont-checkbox-color-bg);
|
|
3781
|
+
|
|
3091
3782
|
border-radius: var(--_pont-checkbox-radius);
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3783
|
+
|
|
3784
|
+
border-width: var(--_pont-checkbox-border-width);
|
|
3785
|
+
border-style: var(--_pont-checkbox-border-style);
|
|
3786
|
+
border-color: var(--_pont-checkbox-border-color);
|
|
3787
|
+
|
|
3788
|
+
outline: var(--pont-sem-border-outline-none);
|
|
3789
|
+
|
|
3790
|
+
box-shadow:
|
|
3791
|
+
var(--_pont-checkbox-inset-shadow), var(--_pont-checkbox-inset-ring),
|
|
3792
|
+
var(--_pont-checkbox-ring-offset), var(--_pont-checkbox-ring),
|
|
3793
|
+
var(--_pont-checkbox-shadow);
|
|
3794
|
+
|
|
3795
|
+
transition-property: var(--_pont-checkbox-transition-property);
|
|
3796
|
+
transition-duration: var(--_pont-checkbox-transition-duration);
|
|
3797
|
+
transition-timing-function: var(--_pont-checkbox-transition-easing);
|
|
3798
|
+
|
|
3799
|
+
cursor: var(--_pont-checkbox-cursor);
|
|
3100
3800
|
}
|
|
3101
3801
|
|
|
3102
|
-
/*
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3802
|
+
/* * -------- STATES -------- * */
|
|
3803
|
+
|
|
3804
|
+
/* * DISABLED * */
|
|
3805
|
+
|
|
3806
|
+
[data-pont-checkbox]:is(:disabled, [data-disabled]) {
|
|
3807
|
+
opacity: var(--_pont-checkbox-opacity-disabled);
|
|
3808
|
+
cursor: var(--_pont-checkbox-cursor-disabled);
|
|
3107
3809
|
}
|
|
3108
3810
|
|
|
3811
|
+
/* Parent field has disabled */
|
|
3812
|
+
[data-slot="field"]:has(:disabled) [data-pont-checkbox] {
|
|
3813
|
+
opacity: var(--_pont-checkbox-opacity-disabled);
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3816
|
+
/* * CHECKED * */
|
|
3817
|
+
|
|
3109
3818
|
[data-pont-checkbox]:is([data-checked], [data-indeterminate]) {
|
|
3110
|
-
background-color: var(--_pont-checkbox-bg-checked);
|
|
3111
|
-
color: var(--_pont-checkbox-fg-checked);
|
|
3819
|
+
background-color: var(--_pont-checkbox-color-bg-checked);
|
|
3112
3820
|
border-color: var(--_pont-checkbox-border-color-checked);
|
|
3113
3821
|
}
|
|
3114
3822
|
|
|
3823
|
+
/* * FOCUS * */
|
|
3824
|
+
|
|
3115
3825
|
[data-pont-checkbox]:focus-visible {
|
|
3116
|
-
border-color: var(--
|
|
3117
|
-
|
|
3826
|
+
border-color: var(--_pont-checkbox-border-color-focus);
|
|
3827
|
+
|
|
3828
|
+
box-shadow:
|
|
3829
|
+
var(--_pont-checkbox-inset-shadow), var(--_pont-checkbox-inset-ring),
|
|
3830
|
+
var(--_pont-checkbox-ring-offset), var(--_pont-checkbox-ring-focus),
|
|
3831
|
+
var(--_pont-checkbox-shadow);
|
|
3118
3832
|
}
|
|
3119
3833
|
|
|
3834
|
+
/* * INVALID * */
|
|
3835
|
+
|
|
3120
3836
|
[data-pont-checkbox][aria-invalid="true"] {
|
|
3121
|
-
border-color: var(--
|
|
3122
|
-
|
|
3837
|
+
border-color: var(--_pont-checkbox-border-color-invalid);
|
|
3838
|
+
|
|
3839
|
+
box-shadow:
|
|
3840
|
+
var(--_pont-checkbox-inset-shadow), var(--_pont-checkbox-inset-ring),
|
|
3841
|
+
var(--_pont-checkbox-ring-offset), var(--_pont-checkbox-ring-invalid),
|
|
3842
|
+
var(--_pont-checkbox-shadow);
|
|
3123
3843
|
}
|
|
3124
|
-
|
|
3844
|
+
|
|
3845
|
+
/* * MISCELLANEOUS * */
|
|
3846
|
+
|
|
3847
|
+
/* Invalid and checked */
|
|
3848
|
+
[data-pont-checkbox][aria-invalid="true"]:is(
|
|
3849
|
+
[data-checked],
|
|
3850
|
+
[data-indeterminate]
|
|
3851
|
+
) {
|
|
3125
3852
|
border-color: var(--_pont-checkbox-border-color-checked);
|
|
3126
3853
|
}
|
|
3127
3854
|
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3855
|
+
/* When inside a field label 'choice-card', the checkbox drops its 'focus'
|
|
3856
|
+
styles and the label parent performs them instead. */
|
|
3857
|
+
[data-slot="field-label"]:has(:focus-visible)
|
|
3858
|
+
[data-pont-checkbox]:not([data-checked]) {
|
|
3859
|
+
border-color: var(--_pont-checkbox-border-color);
|
|
3131
3860
|
}
|
|
3132
3861
|
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3862
|
+
[data-slot="field-label"]:has(:focus-visible)
|
|
3863
|
+
[data-pont-checkbox][data-checked] {
|
|
3864
|
+
border-color: var(--_pont-checkbox-border-color-checked);
|
|
3136
3865
|
}
|
|
3137
3866
|
|
|
3138
|
-
/* Inside a choice-card FieldLabel the label draws the focus ring instead. */
|
|
3139
3867
|
[data-slot="field-label"]:has(:focus-visible) [data-pont-checkbox] {
|
|
3140
|
-
|
|
3868
|
+
box-shadow:
|
|
3869
|
+
var(--_pont-checkbox-inset-shadow), var(--_pont-checkbox-inset-ring),
|
|
3870
|
+
var(--_pont-checkbox-ring-offset), var(--_pont-checkbox-ring),
|
|
3871
|
+
var(--_pont-checkbox-shadow);
|
|
3141
3872
|
}
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3873
|
+
|
|
3874
|
+
/* * -------- AFTER ('hit area') -------- * */
|
|
3875
|
+
|
|
3876
|
+
:is(pont-prim-checkbox, pont-checkbox, [data-pont-checkbox])::after {
|
|
3877
|
+
content: "";
|
|
3878
|
+
|
|
3879
|
+
position: absolute;
|
|
3880
|
+
|
|
3881
|
+
inset-inline: var(--_pont-checkbox-after-inset-x);
|
|
3882
|
+
inset-block: var(--_pont-checkbox-after-inset-y);
|
|
3147
3883
|
}
|
|
3148
3884
|
|
|
3885
|
+
/* * -------- INDICATOR -------- * */
|
|
3886
|
+
|
|
3149
3887
|
[data-pont-checkbox-indicator] {
|
|
3150
3888
|
display: grid;
|
|
3151
|
-
|
|
3152
|
-
|
|
3889
|
+
|
|
3890
|
+
align-content: var(--_pont-checkbox-indicator-content);
|
|
3891
|
+
justify-content: var(--_pont-checkbox-indicator-justify);
|
|
3892
|
+
|
|
3893
|
+
color: var(--_pont-checkbox-indicator-color-fg);
|
|
3894
|
+
|
|
3153
3895
|
transition-property: var(--pont-ref-motion-trans-property-none);
|
|
3154
3896
|
}
|
|
3897
|
+
|
|
3155
3898
|
[data-pont-checkbox-indicator] > svg {
|
|
3156
|
-
width:
|
|
3157
|
-
height:
|
|
3899
|
+
width: var(--_pont-checkbox-indicator-icon-size);
|
|
3900
|
+
height: var(--_pont-checkbox-indicator-icon-size);
|
|
3158
3901
|
}
|
|
3159
3902
|
}
|
|
3160
3903
|
|
|
@@ -3579,208 +4322,661 @@
|
|
|
3579
4322
|
|
|
3580
4323
|
/* ../primitives/avatar/avatar.css */
|
|
3581
4324
|
/*
|
|
3582
|
-
*
|
|
3583
|
-
*
|
|
3584
|
-
*
|
|
3585
|
-
*
|
|
3586
|
-
*
|
|
3587
|
-
*
|
|
3588
|
-
*
|
|
3589
|
-
*
|
|
3590
|
-
*
|
|
3591
|
-
*
|
|
3592
|
-
*
|
|
3593
|
-
*
|
|
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).
|
|
3594
4360
|
*
|
|
3595
4361
|
* Base UI mounts the <img> only once loaded and the fallback only until then.
|
|
3596
4362
|
* pont keeps both in the DOM and swaps them on `data-image-loading-status`.
|
|
3597
4363
|
*
|
|
3598
4364
|
* Tokens (docs/11-tokens.md): `--pont-avatar-*`, resolved on the avatar (and
|
|
3599
4365
|
* on a group count, which shares the fallback's look) and inherited by the
|
|
3600
|
-
* parts. shadcn's `dark:after:mix-blend-lighten` is sem-mode-blend.
|
|
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.
|
|
3601
4368
|
*
|
|
3602
|
-
* Sizes only switch tokens: the base block
|
|
3603
|
-
*
|
|
3604
|
-
*
|
|
3605
|
-
*
|
|
3606
|
-
*
|
|
3607
|
-
*
|
|
3608
|
-
*
|
|
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
|
+
* ---------------------------------------------------------------------------
|
|
3609
4386
|
*/
|
|
4387
|
+
|
|
3610
4388
|
@layer pont.primitives {
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
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
|
+
);
|
|
3614
4497
|
|
|
3615
|
-
|
|
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
|
+
);
|
|
3616
4508
|
/** @token Width */
|
|
3617
|
-
--_pont-avatar-width: var(
|
|
4509
|
+
--_pont-avatar-badge-width: var(
|
|
4510
|
+
--pont-avatar-badge-width,
|
|
4511
|
+
var(--_pont-avatar-badge-size)
|
|
4512
|
+
);
|
|
3618
4513
|
/** @token Height */
|
|
3619
|
-
--_pont-avatar-height: var(
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
/** @token
|
|
3625
|
-
--_pont-avatar-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
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
|
+
);
|
|
4607
|
+
|
|
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
|
+
);
|
|
4613
|
+
}
|
|
4614
|
+
|
|
4615
|
+
/* * -------- SIZES -------- * */
|
|
4616
|
+
|
|
4617
|
+
/* * SMALL * */
|
|
4618
|
+
|
|
3635
4619
|
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="sm"], [size="sm"]),
|
|
3636
|
-
[data-pont-avatar-group]:has([data-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
|
+
);
|
|
4627
|
+
/** @token Width */
|
|
4628
|
+
--_pont-avatar-width: var(--pont-avatar-sm-width, var(--_pont-avatar-size));
|
|
4629
|
+
/** @token Height */
|
|
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
|
+
);
|
|
3637
4661
|
/** @token Width */
|
|
3638
|
-
--_pont-avatar-width: var(
|
|
4662
|
+
--_pont-avatar-badge-width: var(
|
|
4663
|
+
--pont-avatar-badge-sm-width,
|
|
4664
|
+
var(--_pont-avatar-badge-size)
|
|
4665
|
+
);
|
|
3639
4666
|
/** @token Height */
|
|
3640
|
-
--_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
|
+
);
|
|
3641
4704
|
}
|
|
4705
|
+
|
|
4706
|
+
/* * LARGE * */
|
|
4707
|
+
|
|
3642
4708
|
:is(pont-prim-avatar, [data-pont-avatar]):is([data-size="lg"], [size="lg"]),
|
|
3643
|
-
[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
|
+
);
|
|
3644
4750
|
/** @token Width */
|
|
3645
|
-
--_pont-avatar-width: var(
|
|
4751
|
+
--_pont-avatar-badge-width: var(
|
|
4752
|
+
--pont-avatar-badge-lg-width,
|
|
4753
|
+
var(--_pont-avatar-badge-size)
|
|
4754
|
+
);
|
|
3646
4755
|
/** @token Height */
|
|
3647
|
-
--_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
|
+
);
|
|
3648
4793
|
}
|
|
4794
|
+
}
|
|
3649
4795
|
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
4796
|
+
/*
|
|
4797
|
+
* ---------------------------------------------------------------------------
|
|
4798
|
+
* RECIPES
|
|
4799
|
+
* ---------------------------------------------------------------------------
|
|
4800
|
+
*/
|
|
3654
4801
|
|
|
4802
|
+
@layer pont.primitives {
|
|
3655
4803
|
:is(pont-prim-avatar, [data-pont-avatar]) {
|
|
3656
|
-
box-sizing:
|
|
3657
|
-
position: relative;
|
|
4804
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
3658
4805
|
display: flex;
|
|
4806
|
+
position: relative;
|
|
4807
|
+
|
|
3659
4808
|
flex-shrink: 0;
|
|
4809
|
+
|
|
3660
4810
|
width: var(--_pont-avatar-width);
|
|
3661
4811
|
height: var(--_pont-avatar-height);
|
|
4812
|
+
|
|
3662
4813
|
border-radius: var(--_pont-avatar-radius);
|
|
4814
|
+
|
|
3663
4815
|
user-select: none;
|
|
3664
|
-
box-shadow: var(--pont-ring-shadow), var(--pont-shadow);
|
|
3665
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
|
+
|
|
3666
4825
|
:is(pont-prim-avatar, [data-pont-avatar])::after {
|
|
3667
4826
|
content: "";
|
|
4827
|
+
|
|
4828
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
3668
4829
|
position: absolute;
|
|
3669
4830
|
inset: 0;
|
|
3670
|
-
|
|
3671
|
-
border: var(--pont-sem-border-width) var(--pont-sem-border-style) var(--_pont-avatar-border-color);
|
|
4831
|
+
|
|
3672
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
|
+
|
|
3673
4838
|
mix-blend-mode: var(--pont-sem-mode-blend);
|
|
4839
|
+
|
|
3674
4840
|
pointer-events: none;
|
|
3675
4841
|
}
|
|
3676
4842
|
|
|
3677
|
-
/*
|
|
4843
|
+
/* * -------- IMAGE -------- * */
|
|
4844
|
+
|
|
3678
4845
|
:is(pont-prim-avatar, [data-pont-avatar]) > img {
|
|
3679
|
-
|
|
3680
|
-
box-sizing: border-box;
|
|
4846
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
3681
4847
|
aspect-ratio: var(--pont-ref-layout-aspect-square);
|
|
4848
|
+
display: none;
|
|
4849
|
+
object-fit: cover;
|
|
4850
|
+
|
|
3682
4851
|
width: var(--pont-ref-dimension-size-full);
|
|
3683
4852
|
height: var(--pont-ref-dimension-size-full);
|
|
3684
|
-
|
|
3685
|
-
object-fit: cover;
|
|
4853
|
+
|
|
3686
4854
|
border-radius: var(--_pont-avatar-radius);
|
|
3687
4855
|
}
|
|
4856
|
+
|
|
4857
|
+
/* Shown once loaded */
|
|
3688
4858
|
[data-pont-avatar][data-image-loading-status="loaded"] > img {
|
|
3689
4859
|
display: block;
|
|
3690
4860
|
}
|
|
3691
4861
|
|
|
4862
|
+
/* * -------- FALLBACK -------- * */
|
|
4863
|
+
|
|
3692
4864
|
:is(pont-prim-avatar-fallback, [data-pont-avatar-fallback]) {
|
|
3693
4865
|
display: flex;
|
|
3694
|
-
|
|
3695
|
-
|
|
4866
|
+
|
|
4867
|
+
align-items: var(--_pont-avatar-fallback-items);
|
|
4868
|
+
justify-content: var(--_pont-avatar-fallback-justify);
|
|
4869
|
+
|
|
3696
4870
|
width: var(--pont-ref-dimension-size-full);
|
|
3697
4871
|
height: var(--pont-ref-dimension-size-full);
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
font-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
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);
|
|
3707
4883
|
}
|
|
3708
|
-
|
|
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]) {
|
|
3709
4888
|
display: none;
|
|
3710
4889
|
}
|
|
3711
4890
|
|
|
4891
|
+
/* * -------- BADGE -------- * */
|
|
4892
|
+
|
|
3712
4893
|
:is(pont-prim-avatar-badge, [data-pont-avatar-badge]) {
|
|
3713
|
-
box-sizing:
|
|
4894
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
4895
|
+
display: inline-flex;
|
|
3714
4896
|
position: absolute;
|
|
3715
|
-
right: 0;
|
|
3716
|
-
bottom: 0;
|
|
3717
4897
|
z-index: 10;
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
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);
|
|
3724
4917
|
background-blend-mode: color;
|
|
3725
|
-
|
|
3726
|
-
color: var(--_pont-avatar-badge-fg, var(--pont-sem-color-primary-fg));
|
|
4918
|
+
|
|
3727
4919
|
user-select: none;
|
|
3728
|
-
box-shadow: 0 0 0 2px var(--pont-sem-color-bg);
|
|
3729
4920
|
}
|
|
4921
|
+
|
|
3730
4922
|
:is(pont-prim-avatar-badge, [data-pont-avatar-badge]) > svg {
|
|
3731
|
-
width:
|
|
3732
|
-
height:
|
|
3733
|
-
}
|
|
3734
|
-
[data-pont-avatar][data-size="sm"] :is(pont-prim-avatar-badge, [data-pont-avatar-badge]) {
|
|
3735
|
-
width: 0.5rem;
|
|
3736
|
-
height: 0.5rem;
|
|
3737
|
-
}
|
|
3738
|
-
[data-pont-avatar][data-size="sm"] :is(pont-prim-avatar-badge, [data-pont-avatar-badge]) > svg {
|
|
3739
|
-
display: none;
|
|
3740
|
-
}
|
|
3741
|
-
[data-pont-avatar][data-size="lg"] :is(pont-prim-avatar-badge, [data-pont-avatar-badge]) {
|
|
3742
|
-
width: 0.75rem;
|
|
3743
|
-
height: 0.75rem;
|
|
4923
|
+
width: var(--_pont-avatar-badge-icon-size);
|
|
4924
|
+
height: var(--_pont-avatar-badge-icon-size);
|
|
3744
4925
|
}
|
|
3745
4926
|
|
|
4927
|
+
/* * -------- GROUP -------- * */
|
|
4928
|
+
|
|
3746
4929
|
:is(pont-prim-avatar-group, [data-pont-avatar-group]) {
|
|
3747
4930
|
display: flex;
|
|
3748
4931
|
}
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
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
|
+
);
|
|
3752
4941
|
}
|
|
3753
|
-
|
|
3754
|
-
|
|
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);
|
|
3755
4946
|
}
|
|
3756
4947
|
|
|
4948
|
+
/* * -------- GROUP COUNT -------- * */
|
|
4949
|
+
|
|
3757
4950
|
:is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) {
|
|
3758
|
-
box-sizing:
|
|
3759
|
-
position: relative;
|
|
4951
|
+
box-sizing: var(--pont-ref-layout-box-border);
|
|
3760
4952
|
display: flex;
|
|
4953
|
+
position: relative;
|
|
4954
|
+
|
|
3761
4955
|
flex-shrink: 0;
|
|
3762
|
-
align-items:
|
|
3763
|
-
justify-content:
|
|
4956
|
+
align-items: var(--_pont-avatar-group-count-items);
|
|
4957
|
+
justify-content: var(--_pont-avatar-group-count-justify);
|
|
4958
|
+
|
|
3764
4959
|
width: var(--_pont-avatar-width);
|
|
3765
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
|
+
|
|
3766
4971
|
border-radius: var(--_pont-avatar-radius);
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
line-height: var(--pont-ref-typography-leading-of-sm);
|
|
3771
|
-
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);
|
|
3772
4975
|
}
|
|
4976
|
+
|
|
3773
4977
|
:is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
3774
|
-
width:
|
|
3775
|
-
height:
|
|
3776
|
-
}
|
|
3777
|
-
[data-pont-avatar-group]:has([data-size="lg"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
3778
|
-
width: 1.25rem;
|
|
3779
|
-
height: 1.25rem;
|
|
3780
|
-
}
|
|
3781
|
-
[data-pont-avatar-group]:has([data-size="sm"]) :is(pont-prim-avatar-group-count, [data-pont-avatar-group-count]) > svg {
|
|
3782
|
-
width: 0.75rem;
|
|
3783
|
-
height: 0.75rem;
|
|
4978
|
+
width: var(--_pont-avatar-group-count-icon-size);
|
|
4979
|
+
height: var(--_pont-avatar-group-count-icon-size);
|
|
3784
4980
|
}
|
|
3785
4981
|
}
|
|
3786
4982
|
|
|
@@ -4347,6 +5543,11 @@
|
|
|
4347
5543
|
:is(pont-prim-field, [data-pont-field]):is([data-invalid]:not([data-invalid="false"])) {
|
|
4348
5544
|
color: var(--_pont-field-fg-invalid);
|
|
4349
5545
|
}
|
|
5546
|
+
/* Its labels follow through the label's text colour, so a theme's
|
|
5547
|
+
--pont-label-color-fg does not hide the invalid state. */
|
|
5548
|
+
:is(pont-prim-field, [data-pont-field]):is([data-invalid]:not([data-invalid="false"])) [data-pont-label] {
|
|
5549
|
+
--_pont-label-color-fg: var(--_pont-field-fg-invalid);
|
|
5550
|
+
}
|
|
4350
5551
|
|
|
4351
5552
|
/* vertical (default) and responsive below @md */
|
|
4352
5553
|
:is(pont-prim-field, [data-pont-field]):is(:not([data-orientation]), [data-orientation="vertical"], [data-orientation="responsive"]) > * {
|
|
@@ -4401,11 +5602,10 @@
|
|
|
4401
5602
|
line-height: var(--pont-ref-typography-leading-snug);
|
|
4402
5603
|
}
|
|
4403
5604
|
|
|
4404
|
-
/* ---------------- FieldLabel (native label; Label recipe applies too) ----------------
|
|
5605
|
+
/* ---------------- FieldLabel (native label; Label recipe applies too) ----------------
|
|
5606
|
+
flex and gap-2 come from the Label recipe, so the label tokens reach field labels. */
|
|
4405
5607
|
[data-pont-field-label] {
|
|
4406
|
-
display: flex;
|
|
4407
5608
|
width: var(--pont-ref-dimension-size-fit);
|
|
4408
|
-
gap: 0.5rem;
|
|
4409
5609
|
line-height: var(--pont-ref-typography-leading-snug);
|
|
4410
5610
|
}
|
|
4411
5611
|
[data-pont-field][data-disabled]:not([data-disabled="false"]) [data-pont-field-label],
|
|
@@ -4567,13 +5767,13 @@
|
|
|
4567
5767
|
@layer pont.primitives {
|
|
4568
5768
|
:is(pont-prim-input-group, [data-pont-input-group]) {
|
|
4569
5769
|
/** @token Background */
|
|
4570
|
-
--_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)));
|
|
4571
5771
|
/** @token Border */
|
|
4572
5772
|
--_pont-input-group-border-color: var(--pont-input-group-border-color, var(--pont-input-border-color, var(--pont-sem-color-field-border)));
|
|
4573
5773
|
/** @token Corner radius */
|
|
4574
5774
|
--_pont-input-group-radius: var(--pont-input-group-radius, var(--pont-input-radius, var(--pont-ref-radius-md)));
|
|
4575
5775
|
/** @token Height */
|
|
4576
|
-
--_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)));
|
|
4577
5777
|
/** @token Addon text */
|
|
4578
5778
|
--_pont-input-group-addon-fg: var(--pont-input-group-addon-fg, var(--pont-sem-color-muted-fg));
|
|
4579
5779
|
}
|
|
@@ -4736,6 +5936,15 @@
|
|
|
4736
5936
|
--pont-shadow: var(--pont-ref-shadow-none);
|
|
4737
5937
|
--pont-ring-shadow: 0 0 #0000;
|
|
4738
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
|
+
}
|
|
4739
5948
|
:is([data-pont-input-group-input], [data-pont-input-group-textarea]):is(:focus-visible, [aria-invalid="true"]) {
|
|
4740
5949
|
--pont-ring-shadow: 0 0 #0000;
|
|
4741
5950
|
}
|
|
@@ -6826,13 +8035,13 @@
|
|
|
6826
8035
|
@layer pont.primitives {
|
|
6827
8036
|
:is(pont-prim-combobox-input, [data-pont-combobox-input], pont-prim-combobox-content, [data-pont-combobox-content]) {
|
|
6828
8037
|
/** @token Background */
|
|
6829
|
-
--_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))));
|
|
6830
8039
|
/** @token Border */
|
|
6831
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))));
|
|
6832
8041
|
/** @token Corner radius */
|
|
6833
8042
|
--_pont-combobox-input-radius: var(--pont-combobox-input-radius, var(--pont-input-group-radius, var(--pont-input-radius, var(--pont-ref-radius-md))));
|
|
6834
8043
|
/** @token Height */
|
|
6835
|
-
--_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))));
|
|
6836
8045
|
/** @token Background */
|
|
6837
8046
|
--_pont-combobox-content-bg: var(--pont-combobox-content-bg, var(--pont-sem-color-overlay));
|
|
6838
8047
|
/** @token Text */
|
|
@@ -8257,25 +9466,46 @@
|
|
|
8257
9466
|
defaults, through the same privates: a branded avatar keeps its size
|
|
8258
9467
|
when it upgrades. */
|
|
8259
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
|
+
);
|
|
8260
9474
|
/** @token Width */
|
|
8261
|
-
--_pont-avatar-width: var(--pont-avatar-width,
|
|
9475
|
+
--_pont-avatar-width: var(--pont-avatar-width, var(--_pont-avatar-size));
|
|
8262
9476
|
/** @token Height */
|
|
8263
|
-
--_pont-avatar-height: var(--pont-avatar-height,
|
|
9477
|
+
--_pont-avatar-height: var(--pont-avatar-height, var(--_pont-avatar-size));
|
|
8264
9478
|
display: inline-flex;
|
|
8265
9479
|
width: var(--_pont-avatar-width);
|
|
8266
9480
|
height: var(--_pont-avatar-height);
|
|
8267
9481
|
}
|
|
8268
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
|
+
);
|
|
8269
9488
|
/** @token Width */
|
|
8270
|
-
--_pont-avatar-width: var(--pont-avatar-sm-width,
|
|
9489
|
+
--_pont-avatar-width: var(--pont-avatar-sm-width, var(--_pont-avatar-size));
|
|
8271
9490
|
/** @token Height */
|
|
8272
|
-
--_pont-avatar-height: var(
|
|
9491
|
+
--_pont-avatar-height: var(
|
|
9492
|
+
--pont-avatar-sm-height,
|
|
9493
|
+
var(--_pont-avatar-size)
|
|
9494
|
+
);
|
|
8273
9495
|
}
|
|
8274
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
|
+
);
|
|
8275
9502
|
/** @token Width */
|
|
8276
|
-
--_pont-avatar-width: var(--pont-avatar-lg-width,
|
|
9503
|
+
--_pont-avatar-width: var(--pont-avatar-lg-width, var(--_pont-avatar-size));
|
|
8277
9504
|
/** @token Height */
|
|
8278
|
-
--_pont-avatar-height: var(
|
|
9505
|
+
--_pont-avatar-height: var(
|
|
9506
|
+
--pont-avatar-lg-height,
|
|
9507
|
+
var(--_pont-avatar-size)
|
|
9508
|
+
);
|
|
8279
9509
|
}
|
|
8280
9510
|
}
|
|
8281
9511
|
|