@crisp-ui-kit/crisp 0.32.1 → 0.33.1
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/README.md +33 -1
- package/dist/appshell.css +1 -4
- package/dist/appshell.layered.css +1 -4
- package/dist/authshell.css +4 -19
- package/dist/authshell.layered.css +4 -19
- package/dist/avatar.css +2 -1
- package/dist/avatar.layered.css +2 -1
- package/dist/board.css +1 -4
- package/dist/board.layered.css +1 -4
- package/dist/breadcrumb.css +0 -1
- package/dist/breadcrumb.layered.css +0 -1
- package/dist/button.css +14 -6
- package/dist/button.layered.css +14 -6
- package/dist/card.css +2 -1
- package/dist/card.layered.css +2 -1
- package/dist/checkbox.css +6 -9
- package/dist/checkbox.layered.css +6 -9
- package/dist/cjs/components/avatar/avatar.recipe.js +38 -19
- package/dist/cjs/components/badge/badge.recipe.js +83 -24
- package/dist/cjs/components/button/button.recipe.js +109 -18
- package/dist/cjs/components/divider/divider.recipe.js +20 -8
- package/dist/cjs/components/progress/progress.recipe.js +50 -10
- package/dist/cjs/components/spinner/spinner.recipe.js +15 -7
- package/dist/cjs/components/switch/switch.recipe.js +48 -18
- package/dist/cjs/core/index.js +4 -1
- package/dist/cjs/core/spec.js +71 -0
- package/dist/columncalc.css +2 -6
- package/dist/columncalc.layered.css +2 -6
- package/dist/command.css +9 -11
- package/dist/command.layered.css +9 -11
- package/dist/datatable.css +9 -19
- package/dist/datatable.layered.css +9 -19
- package/dist/datepicker.css +15 -80
- package/dist/datepicker.layered.css +15 -80
- package/dist/datepickerfield.css +3 -18
- package/dist/datepickerfield.layered.css +3 -18
- package/dist/donutchart.css +1 -2
- package/dist/donutchart.layered.css +1 -2
- package/dist/entitycard.css +1 -7
- package/dist/entitycard.layered.css +1 -7
- package/dist/esm/components/avatar/avatar.recipe.js +38 -19
- package/dist/esm/components/badge/badge.recipe.js +83 -24
- package/dist/esm/components/button/button.recipe.js +109 -18
- package/dist/esm/components/divider/divider.recipe.js +20 -8
- package/dist/esm/components/progress/progress.recipe.js +50 -10
- package/dist/esm/components/spinner/spinner.recipe.js +15 -7
- package/dist/esm/components/switch/switch.recipe.js +48 -18
- package/dist/esm/core/index.js +1 -0
- package/dist/esm/core/spec.js +66 -0
- package/dist/fileupload.css +10 -60
- package/dist/fileupload.layered.css +10 -60
- package/dist/inbox.css +1 -7
- package/dist/inbox.layered.css +1 -7
- package/dist/input.css +9 -20
- package/dist/input.layered.css +9 -20
- package/dist/listpage.css +2 -12
- package/dist/listpage.layered.css +2 -12
- package/dist/menu.css +3 -19
- package/dist/menu.layered.css +3 -19
- package/dist/multiselect.css +4 -25
- package/dist/multiselect.layered.css +4 -25
- package/dist/navitem.css +5 -13
- package/dist/navitem.layered.css +5 -13
- package/dist/onboarding.css +1 -8
- package/dist/onboarding.layered.css +1 -8
- package/dist/quantitypicker.css +15 -50
- package/dist/quantitypicker.layered.css +15 -50
- package/dist/radiogroup.css +1 -6
- package/dist/radiogroup.layered.css +1 -6
- package/dist/recordpage.css +2 -10
- package/dist/recordpage.layered.css +2 -10
- package/dist/recordpanel.css +1 -13
- package/dist/recordpanel.layered.css +1 -13
- package/dist/recordstable.css +2 -11
- package/dist/recordstable.layered.css +2 -11
- package/dist/resizablepanel.css +4 -15
- package/dist/resizablepanel.layered.css +4 -15
- package/dist/richtext.css +1 -5
- package/dist/richtext.layered.css +1 -5
- package/dist/select.css +7 -30
- package/dist/select.layered.css +7 -30
- package/dist/settingsshell.css +2 -7
- package/dist/settingsshell.layered.css +2 -7
- package/dist/sidebar.css +23 -28
- package/dist/sidebar.layered.css +23 -28
- package/dist/slider.css +1 -8
- package/dist/slider.layered.css +1 -8
- package/dist/statcard.css +1 -2
- package/dist/statcard.layered.css +1 -2
- package/dist/styles.css +194 -652
- package/dist/styles.layered.css +194 -652
- package/dist/switch.css +1 -5
- package/dist/switch.layered.css +1 -5
- package/dist/table.css +2 -1
- package/dist/table.layered.css +2 -1
- package/dist/tabletoolbar.css +1 -3
- package/dist/tabletoolbar.layered.css +1 -3
- package/dist/tabs.css +1 -5
- package/dist/tabs.layered.css +1 -5
- package/dist/tasklist.css +1 -8
- package/dist/tasklist.layered.css +1 -8
- package/dist/textarea.css +2 -13
- package/dist/textarea.layered.css +2 -13
- package/dist/tooltip.css +2 -1
- package/dist/tooltip.layered.css +2 -1
- package/dist/trialbanner.css +2 -11
- package/dist/trialbanner.layered.css +2 -11
- package/dist/types/components/avatar/avatar.d.ts +30 -30
- package/dist/types/components/avatar/avatar.recipe.d.ts +136 -49
- package/dist/types/components/badge/badge.d.ts +26 -26
- package/dist/types/components/badge/badge.recipe.d.ts +169 -45
- package/dist/types/components/button/button.d.ts +30 -30
- package/dist/types/components/button/button.recipe.d.ts +193 -45
- package/dist/types/components/divider/divider.recipe.d.ts +26 -2
- package/dist/types/components/progress/progress.recipe.d.ts +49 -2
- package/dist/types/components/spinner/spinner.recipe.d.ts +17 -2
- package/dist/types/components/switch/switch.recipe.d.ts +57 -3
- package/dist/types/core/index.d.ts +1 -0
- package/dist/types/core/spec.d.ts +83 -0
- package/dist/viewtoggle.css +3 -9
- package/dist/viewtoggle.layered.css +3 -9
- package/dist/wheelpicker.css +14 -59
- package/dist/wheelpicker.layered.css +14 -59
- package/package.json +4 -1
|
@@ -7,39 +7,39 @@ export type BadgeProps = React.ComponentPropsWithoutRef<"span"> & VariantProps<t
|
|
|
7
7
|
dot?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare const Badge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & VariantProps<import("../..").RecipeFn<{
|
|
10
|
-
tone: {
|
|
11
|
-
neutral: string;
|
|
12
|
-
brand: string;
|
|
13
|
-
success: string;
|
|
14
|
-
warning: string;
|
|
15
|
-
danger: string;
|
|
10
|
+
readonly tone: {
|
|
11
|
+
readonly neutral: string;
|
|
12
|
+
readonly brand: string;
|
|
13
|
+
readonly success: string;
|
|
14
|
+
readonly warning: string;
|
|
15
|
+
readonly danger: string;
|
|
16
16
|
};
|
|
17
|
-
size: {
|
|
18
|
-
small: string;
|
|
19
|
-
medium: string;
|
|
20
|
-
large: string;
|
|
17
|
+
readonly size: {
|
|
18
|
+
readonly small: string;
|
|
19
|
+
readonly medium: string;
|
|
20
|
+
readonly large: string;
|
|
21
21
|
};
|
|
22
|
-
variant: {
|
|
23
|
-
soft: string;
|
|
24
|
-
solid: string;
|
|
22
|
+
readonly variant: {
|
|
23
|
+
readonly soft: string;
|
|
24
|
+
readonly solid: string;
|
|
25
25
|
};
|
|
26
26
|
}> & {
|
|
27
27
|
config: import("../..").RecipeConfig<{
|
|
28
|
-
tone: {
|
|
29
|
-
neutral: string;
|
|
30
|
-
brand: string;
|
|
31
|
-
success: string;
|
|
32
|
-
warning: string;
|
|
33
|
-
danger: string;
|
|
28
|
+
readonly tone: {
|
|
29
|
+
readonly neutral: string;
|
|
30
|
+
readonly brand: string;
|
|
31
|
+
readonly success: string;
|
|
32
|
+
readonly warning: string;
|
|
33
|
+
readonly danger: string;
|
|
34
34
|
};
|
|
35
|
-
size: {
|
|
36
|
-
small: string;
|
|
37
|
-
medium: string;
|
|
38
|
-
large: string;
|
|
35
|
+
readonly size: {
|
|
36
|
+
readonly small: string;
|
|
37
|
+
readonly medium: string;
|
|
38
|
+
readonly large: string;
|
|
39
39
|
};
|
|
40
|
-
variant: {
|
|
41
|
-
soft: string;
|
|
42
|
-
solid: string;
|
|
40
|
+
readonly variant: {
|
|
41
|
+
readonly soft: string;
|
|
42
|
+
readonly solid: string;
|
|
43
43
|
};
|
|
44
44
|
}>;
|
|
45
45
|
}> & {
|
|
@@ -1,56 +1,180 @@
|
|
|
1
|
+
declare const spec: {
|
|
2
|
+
readonly name: "badge";
|
|
3
|
+
readonly base: {
|
|
4
|
+
readonly display: "inline-flex";
|
|
5
|
+
readonly alignItems: "center";
|
|
6
|
+
readonly justifyContent: "center";
|
|
7
|
+
readonly gap: `var(--${string})`;
|
|
8
|
+
readonly fontFamily: `var(--${string})`;
|
|
9
|
+
readonly fontWeight: `var(--${string})`;
|
|
10
|
+
readonly letterSpacing: "-0.1px";
|
|
11
|
+
readonly whiteSpace: "nowrap";
|
|
12
|
+
};
|
|
13
|
+
readonly parts: [{
|
|
14
|
+
readonly slot: "dot";
|
|
15
|
+
readonly selector: "& .crisp-badge-dot";
|
|
16
|
+
readonly decls: {
|
|
17
|
+
readonly width: "6px";
|
|
18
|
+
readonly height: "6px";
|
|
19
|
+
readonly flexShrink: 0;
|
|
20
|
+
readonly borderRadius: `var(--${string})`;
|
|
21
|
+
readonly background: "currentColor";
|
|
22
|
+
};
|
|
23
|
+
}];
|
|
24
|
+
readonly variants: {
|
|
25
|
+
readonly tone: {
|
|
26
|
+
readonly neutral: {
|
|
27
|
+
readonly background: `var(--${string})`;
|
|
28
|
+
readonly color: `var(--${string})`;
|
|
29
|
+
readonly boxShadow: `inset 0 0 0 1px var(--${string})`;
|
|
30
|
+
};
|
|
31
|
+
readonly brand: {
|
|
32
|
+
background: string;
|
|
33
|
+
color: `var(--${string})`;
|
|
34
|
+
boxShadow: string;
|
|
35
|
+
};
|
|
36
|
+
readonly success: {
|
|
37
|
+
background: string;
|
|
38
|
+
color: `var(--${string})`;
|
|
39
|
+
boxShadow: string;
|
|
40
|
+
};
|
|
41
|
+
readonly warning: {
|
|
42
|
+
background: string;
|
|
43
|
+
color: `var(--${string})`;
|
|
44
|
+
boxShadow: string;
|
|
45
|
+
};
|
|
46
|
+
readonly danger: {
|
|
47
|
+
background: string;
|
|
48
|
+
color: `var(--${string})`;
|
|
49
|
+
boxShadow: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
readonly size: {
|
|
53
|
+
readonly small: {
|
|
54
|
+
readonly height: "16px";
|
|
55
|
+
readonly paddingInline: `var(--${string})`;
|
|
56
|
+
readonly fontSize: `var(--${string})`;
|
|
57
|
+
readonly borderRadius: `var(--${string})`;
|
|
58
|
+
};
|
|
59
|
+
readonly medium: {
|
|
60
|
+
readonly height: "20px";
|
|
61
|
+
readonly paddingInline: `var(--${string})`;
|
|
62
|
+
readonly fontSize: `var(--${string})`;
|
|
63
|
+
readonly borderRadius: `var(--${string})`;
|
|
64
|
+
};
|
|
65
|
+
readonly large: {
|
|
66
|
+
readonly height: `var(--${string})`;
|
|
67
|
+
readonly paddingInline: "9px";
|
|
68
|
+
readonly fontSize: `var(--${string})`;
|
|
69
|
+
readonly borderRadius: `var(--${string})`;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly variant: {
|
|
73
|
+
soft: {};
|
|
74
|
+
solid: {};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
readonly defaultVariants: {
|
|
78
|
+
readonly tone: "neutral";
|
|
79
|
+
readonly size: "medium";
|
|
80
|
+
readonly variant: "soft";
|
|
81
|
+
};
|
|
82
|
+
readonly compoundVariants: [{
|
|
83
|
+
readonly variant: "solid";
|
|
84
|
+
readonly tone: "brand";
|
|
85
|
+
readonly decls: {
|
|
86
|
+
readonly background: `var(--${string})`;
|
|
87
|
+
readonly color: `var(--${string})`;
|
|
88
|
+
readonly boxShadow: "none";
|
|
89
|
+
};
|
|
90
|
+
}, {
|
|
91
|
+
readonly variant: "solid";
|
|
92
|
+
readonly tone: "success";
|
|
93
|
+
readonly decls: {
|
|
94
|
+
readonly background: `var(--${string})`;
|
|
95
|
+
readonly color: `var(--${string})`;
|
|
96
|
+
readonly boxShadow: "none";
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
readonly variant: "solid";
|
|
100
|
+
readonly tone: "warning";
|
|
101
|
+
readonly decls: {
|
|
102
|
+
readonly background: `var(--${string})`;
|
|
103
|
+
readonly color: `var(--${string})`;
|
|
104
|
+
readonly boxShadow: "none";
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
readonly variant: "solid";
|
|
108
|
+
readonly tone: "danger";
|
|
109
|
+
readonly decls: {
|
|
110
|
+
readonly background: `var(--${string})`;
|
|
111
|
+
readonly color: `var(--${string})`;
|
|
112
|
+
readonly boxShadow: "none";
|
|
113
|
+
};
|
|
114
|
+
}, {
|
|
115
|
+
readonly variant: "solid";
|
|
116
|
+
readonly tone: "neutral";
|
|
117
|
+
readonly decls: {
|
|
118
|
+
readonly background: `var(--${string})`;
|
|
119
|
+
readonly color: `var(--${string})`;
|
|
120
|
+
readonly boxShadow: "none";
|
|
121
|
+
};
|
|
122
|
+
}];
|
|
123
|
+
};
|
|
1
124
|
declare const config: import("../..").RecipeConfig<{
|
|
2
|
-
tone: {
|
|
3
|
-
neutral: string;
|
|
4
|
-
brand: string;
|
|
5
|
-
success: string;
|
|
6
|
-
warning: string;
|
|
7
|
-
danger: string;
|
|
8
|
-
};
|
|
9
|
-
size: {
|
|
10
|
-
small: string;
|
|
11
|
-
medium: string;
|
|
12
|
-
large: string;
|
|
13
|
-
};
|
|
14
|
-
variant: {
|
|
15
|
-
soft: string;
|
|
16
|
-
solid: string;
|
|
125
|
+
readonly tone: {
|
|
126
|
+
readonly neutral: string;
|
|
127
|
+
readonly brand: string;
|
|
128
|
+
readonly success: string;
|
|
129
|
+
readonly warning: string;
|
|
130
|
+
readonly danger: string;
|
|
131
|
+
};
|
|
132
|
+
readonly size: {
|
|
133
|
+
readonly small: string;
|
|
134
|
+
readonly medium: string;
|
|
135
|
+
readonly large: string;
|
|
136
|
+
};
|
|
137
|
+
readonly variant: {
|
|
138
|
+
readonly soft: string;
|
|
139
|
+
readonly solid: string;
|
|
17
140
|
};
|
|
18
141
|
}>;
|
|
19
142
|
export declare const badgeRecipe: import("../..").RecipeFn<{
|
|
20
|
-
tone: {
|
|
21
|
-
neutral: string;
|
|
22
|
-
brand: string;
|
|
23
|
-
success: string;
|
|
24
|
-
warning: string;
|
|
25
|
-
danger: string;
|
|
26
|
-
};
|
|
27
|
-
size: {
|
|
28
|
-
small: string;
|
|
29
|
-
medium: string;
|
|
30
|
-
large: string;
|
|
31
|
-
};
|
|
32
|
-
variant: {
|
|
33
|
-
soft: string;
|
|
34
|
-
solid: string;
|
|
143
|
+
readonly tone: {
|
|
144
|
+
readonly neutral: string;
|
|
145
|
+
readonly brand: string;
|
|
146
|
+
readonly success: string;
|
|
147
|
+
readonly warning: string;
|
|
148
|
+
readonly danger: string;
|
|
149
|
+
};
|
|
150
|
+
readonly size: {
|
|
151
|
+
readonly small: string;
|
|
152
|
+
readonly medium: string;
|
|
153
|
+
readonly large: string;
|
|
154
|
+
};
|
|
155
|
+
readonly variant: {
|
|
156
|
+
readonly soft: string;
|
|
157
|
+
readonly solid: string;
|
|
35
158
|
};
|
|
36
159
|
}> & {
|
|
37
160
|
config: import("../..").RecipeConfig<{
|
|
38
|
-
tone: {
|
|
39
|
-
neutral: string;
|
|
40
|
-
brand: string;
|
|
41
|
-
success: string;
|
|
42
|
-
warning: string;
|
|
43
|
-
danger: string;
|
|
44
|
-
};
|
|
45
|
-
size: {
|
|
46
|
-
small: string;
|
|
47
|
-
medium: string;
|
|
48
|
-
large: string;
|
|
49
|
-
};
|
|
50
|
-
variant: {
|
|
51
|
-
soft: string;
|
|
52
|
-
solid: string;
|
|
161
|
+
readonly tone: {
|
|
162
|
+
readonly neutral: string;
|
|
163
|
+
readonly brand: string;
|
|
164
|
+
readonly success: string;
|
|
165
|
+
readonly warning: string;
|
|
166
|
+
readonly danger: string;
|
|
167
|
+
};
|
|
168
|
+
readonly size: {
|
|
169
|
+
readonly small: string;
|
|
170
|
+
readonly medium: string;
|
|
171
|
+
readonly large: string;
|
|
172
|
+
};
|
|
173
|
+
readonly variant: {
|
|
174
|
+
readonly soft: string;
|
|
175
|
+
readonly solid: string;
|
|
53
176
|
};
|
|
54
177
|
}>;
|
|
55
178
|
};
|
|
179
|
+
export { spec };
|
|
56
180
|
export default config;
|
|
@@ -7,45 +7,45 @@ export type ButtonProps = React.ComponentPropsWithoutRef<"button"> & VariantProp
|
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare const Button: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & VariantProps<import("../..").RecipeFn<{
|
|
10
|
-
intent: {
|
|
11
|
-
primary: string;
|
|
12
|
-
neutral: string;
|
|
13
|
-
danger: string;
|
|
14
|
-
ghost: string;
|
|
10
|
+
readonly intent: {
|
|
11
|
+
readonly primary: string;
|
|
12
|
+
readonly neutral: string;
|
|
13
|
+
readonly danger: string;
|
|
14
|
+
readonly ghost: string;
|
|
15
15
|
};
|
|
16
|
-
size: {
|
|
17
|
-
sm: string;
|
|
18
|
-
md: string;
|
|
19
|
-
lg: string;
|
|
16
|
+
readonly size: {
|
|
17
|
+
readonly sm: string;
|
|
18
|
+
readonly md: string;
|
|
19
|
+
readonly lg: string;
|
|
20
20
|
};
|
|
21
|
-
shape: {
|
|
22
|
-
text: string;
|
|
23
|
-
icon: string;
|
|
21
|
+
readonly shape: {
|
|
22
|
+
readonly text: string;
|
|
23
|
+
readonly icon: string;
|
|
24
24
|
};
|
|
25
|
-
touchTarget: {
|
|
26
|
-
true: string;
|
|
27
|
-
false: string;
|
|
25
|
+
readonly touchTarget: {
|
|
26
|
+
readonly true: string;
|
|
27
|
+
readonly false: string;
|
|
28
28
|
};
|
|
29
29
|
}> & {
|
|
30
30
|
config: import("../..").RecipeConfig<{
|
|
31
|
-
intent: {
|
|
32
|
-
primary: string;
|
|
33
|
-
neutral: string;
|
|
34
|
-
danger: string;
|
|
35
|
-
ghost: string;
|
|
31
|
+
readonly intent: {
|
|
32
|
+
readonly primary: string;
|
|
33
|
+
readonly neutral: string;
|
|
34
|
+
readonly danger: string;
|
|
35
|
+
readonly ghost: string;
|
|
36
36
|
};
|
|
37
|
-
size: {
|
|
38
|
-
sm: string;
|
|
39
|
-
md: string;
|
|
40
|
-
lg: string;
|
|
37
|
+
readonly size: {
|
|
38
|
+
readonly sm: string;
|
|
39
|
+
readonly md: string;
|
|
40
|
+
readonly lg: string;
|
|
41
41
|
};
|
|
42
|
-
shape: {
|
|
43
|
-
text: string;
|
|
44
|
-
icon: string;
|
|
42
|
+
readonly shape: {
|
|
43
|
+
readonly text: string;
|
|
44
|
+
readonly icon: string;
|
|
45
45
|
};
|
|
46
|
-
touchTarget: {
|
|
47
|
-
true: string;
|
|
48
|
-
false: string;
|
|
46
|
+
readonly touchTarget: {
|
|
47
|
+
readonly true: string;
|
|
48
|
+
readonly false: string;
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
51
|
}> & {
|
|
@@ -1,65 +1,213 @@
|
|
|
1
|
+
declare const spec: {
|
|
2
|
+
readonly name: "button";
|
|
3
|
+
readonly base: {
|
|
4
|
+
readonly display: "inline-flex";
|
|
5
|
+
readonly alignItems: "center";
|
|
6
|
+
readonly justifyContent: "center";
|
|
7
|
+
readonly gap: `var(--${string})`;
|
|
8
|
+
readonly fontFamily: `var(--${string})`;
|
|
9
|
+
readonly fontWeight: `var(--${string})`;
|
|
10
|
+
readonly letterSpacing: "-0.14px";
|
|
11
|
+
readonly lineHeight: "20px";
|
|
12
|
+
readonly whiteSpace: "nowrap";
|
|
13
|
+
readonly border: "none";
|
|
14
|
+
readonly cursor: "pointer";
|
|
15
|
+
readonly transition: "background-color .2s, box-shadow .2s, color .2s";
|
|
16
|
+
};
|
|
17
|
+
readonly parts: [{
|
|
18
|
+
readonly selector: "&:disabled";
|
|
19
|
+
readonly decls: {
|
|
20
|
+
readonly opacity: 0.5;
|
|
21
|
+
readonly cursor: "not-allowed";
|
|
22
|
+
};
|
|
23
|
+
}];
|
|
24
|
+
readonly variants: {
|
|
25
|
+
readonly intent: {
|
|
26
|
+
readonly primary: {
|
|
27
|
+
readonly decls: {
|
|
28
|
+
readonly background: `var(--${string})`;
|
|
29
|
+
readonly color: `var(--${string})`;
|
|
30
|
+
readonly boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.07), 0 2px 4px -2px rgba(38,109,240,0.12), 0 3px 6px -2px rgba(38,109,240,0.08)";
|
|
31
|
+
};
|
|
32
|
+
readonly parts: [{
|
|
33
|
+
readonly selector: "&:hover";
|
|
34
|
+
readonly decls: {
|
|
35
|
+
background: `var(--${string})`;
|
|
36
|
+
};
|
|
37
|
+
}, {
|
|
38
|
+
readonly selector: "&:active";
|
|
39
|
+
readonly decls: {
|
|
40
|
+
background: `var(--${string})`;
|
|
41
|
+
};
|
|
42
|
+
}];
|
|
43
|
+
};
|
|
44
|
+
readonly neutral: {
|
|
45
|
+
readonly decls: {
|
|
46
|
+
background: `var(--${string})`;
|
|
47
|
+
color: `var(--${string})`;
|
|
48
|
+
boxShadow: `inset 0 0 0 1px var(--${string}), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04)`;
|
|
49
|
+
};
|
|
50
|
+
readonly parts: [{
|
|
51
|
+
readonly selector: "&:hover";
|
|
52
|
+
readonly decls: {
|
|
53
|
+
background: `var(--${string})`;
|
|
54
|
+
};
|
|
55
|
+
}];
|
|
56
|
+
};
|
|
57
|
+
readonly danger: {
|
|
58
|
+
readonly decls: {
|
|
59
|
+
readonly background: `var(--${string})`;
|
|
60
|
+
readonly color: `var(--${string})`;
|
|
61
|
+
readonly boxShadow: "inset 0 0 0 1px rgba(255,255,255,0.07), 0 2px 4px -2px rgba(186,37,37,0.20), 0 3px 6px -2px rgba(186,37,37,0.12)";
|
|
62
|
+
};
|
|
63
|
+
readonly parts: [{
|
|
64
|
+
readonly selector: "&:hover";
|
|
65
|
+
readonly decls: {
|
|
66
|
+
readonly filter: "brightness(0.96)";
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
readonly selector: "&:active";
|
|
70
|
+
readonly decls: {
|
|
71
|
+
readonly filter: "brightness(0.92)";
|
|
72
|
+
};
|
|
73
|
+
}];
|
|
74
|
+
};
|
|
75
|
+
readonly ghost: {
|
|
76
|
+
readonly decls: {
|
|
77
|
+
readonly background: "transparent";
|
|
78
|
+
readonly color: `var(--${string})`;
|
|
79
|
+
readonly boxShadow: "none";
|
|
80
|
+
};
|
|
81
|
+
readonly parts: [{
|
|
82
|
+
readonly selector: "&:hover";
|
|
83
|
+
readonly decls: {
|
|
84
|
+
background: `var(--${string})`;
|
|
85
|
+
color: `var(--${string})`;
|
|
86
|
+
};
|
|
87
|
+
}];
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly size: {
|
|
91
|
+
readonly sm: {
|
|
92
|
+
readonly height: "24px";
|
|
93
|
+
readonly paddingInline: `var(--${string})`;
|
|
94
|
+
readonly fontSize: `var(--${string})`;
|
|
95
|
+
readonly borderRadius: `var(--${string})`;
|
|
96
|
+
};
|
|
97
|
+
readonly md: {
|
|
98
|
+
readonly height: "28px";
|
|
99
|
+
readonly paddingInline: `var(--${string})`;
|
|
100
|
+
readonly fontSize: `var(--${string})`;
|
|
101
|
+
readonly borderRadius: `var(--${string})`;
|
|
102
|
+
};
|
|
103
|
+
readonly lg: {
|
|
104
|
+
readonly height: "40px";
|
|
105
|
+
readonly paddingInline: "14px";
|
|
106
|
+
readonly fontSize: `var(--${string})`;
|
|
107
|
+
readonly borderRadius: "10px";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly shape: {
|
|
111
|
+
readonly text: {};
|
|
112
|
+
readonly icon: {
|
|
113
|
+
readonly paddingInline: 0;
|
|
114
|
+
readonly aspectRatio: "1 / 1";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly touchTarget: {
|
|
118
|
+
readonly true: {
|
|
119
|
+
readonly decls: {
|
|
120
|
+
readonly position: "relative";
|
|
121
|
+
};
|
|
122
|
+
readonly parts: [{
|
|
123
|
+
readonly slot: "hitArea";
|
|
124
|
+
readonly selector: "&::after";
|
|
125
|
+
readonly decls: {
|
|
126
|
+
readonly content: "\"\"";
|
|
127
|
+
readonly position: "absolute";
|
|
128
|
+
readonly top: "50%";
|
|
129
|
+
readonly left: "50%";
|
|
130
|
+
readonly transform: "translate(-50%, -50%)";
|
|
131
|
+
readonly width: "100%";
|
|
132
|
+
readonly height: "100%";
|
|
133
|
+
readonly minWidth: "44px";
|
|
134
|
+
readonly minHeight: "44px";
|
|
135
|
+
};
|
|
136
|
+
}];
|
|
137
|
+
};
|
|
138
|
+
readonly false: {};
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
readonly defaultVariants: {
|
|
142
|
+
readonly intent: "primary";
|
|
143
|
+
readonly size: "md";
|
|
144
|
+
readonly shape: "text";
|
|
145
|
+
readonly touchTarget: false;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
1
148
|
declare const config: import("../..").RecipeConfig<{
|
|
2
|
-
intent: {
|
|
3
|
-
primary: string;
|
|
4
|
-
neutral: string;
|
|
5
|
-
danger: string;
|
|
6
|
-
ghost: string;
|
|
149
|
+
readonly intent: {
|
|
150
|
+
readonly primary: string;
|
|
151
|
+
readonly neutral: string;
|
|
152
|
+
readonly danger: string;
|
|
153
|
+
readonly ghost: string;
|
|
7
154
|
};
|
|
8
|
-
size: {
|
|
9
|
-
sm: string;
|
|
10
|
-
md: string;
|
|
11
|
-
lg: string;
|
|
155
|
+
readonly size: {
|
|
156
|
+
readonly sm: string;
|
|
157
|
+
readonly md: string;
|
|
158
|
+
readonly lg: string;
|
|
12
159
|
};
|
|
13
|
-
shape: {
|
|
14
|
-
text: string;
|
|
15
|
-
icon: string;
|
|
160
|
+
readonly shape: {
|
|
161
|
+
readonly text: string;
|
|
162
|
+
readonly icon: string;
|
|
16
163
|
};
|
|
17
|
-
touchTarget: {
|
|
18
|
-
true: string;
|
|
19
|
-
false: string;
|
|
164
|
+
readonly touchTarget: {
|
|
165
|
+
readonly true: string;
|
|
166
|
+
readonly false: string;
|
|
20
167
|
};
|
|
21
168
|
}>;
|
|
22
169
|
export declare const buttonRecipe: import("../..").RecipeFn<{
|
|
23
|
-
intent: {
|
|
24
|
-
primary: string;
|
|
25
|
-
neutral: string;
|
|
26
|
-
danger: string;
|
|
27
|
-
ghost: string;
|
|
170
|
+
readonly intent: {
|
|
171
|
+
readonly primary: string;
|
|
172
|
+
readonly neutral: string;
|
|
173
|
+
readonly danger: string;
|
|
174
|
+
readonly ghost: string;
|
|
28
175
|
};
|
|
29
|
-
size: {
|
|
30
|
-
sm: string;
|
|
31
|
-
md: string;
|
|
32
|
-
lg: string;
|
|
176
|
+
readonly size: {
|
|
177
|
+
readonly sm: string;
|
|
178
|
+
readonly md: string;
|
|
179
|
+
readonly lg: string;
|
|
33
180
|
};
|
|
34
|
-
shape: {
|
|
35
|
-
text: string;
|
|
36
|
-
icon: string;
|
|
181
|
+
readonly shape: {
|
|
182
|
+
readonly text: string;
|
|
183
|
+
readonly icon: string;
|
|
37
184
|
};
|
|
38
|
-
touchTarget: {
|
|
39
|
-
true: string;
|
|
40
|
-
false: string;
|
|
185
|
+
readonly touchTarget: {
|
|
186
|
+
readonly true: string;
|
|
187
|
+
readonly false: string;
|
|
41
188
|
};
|
|
42
189
|
}> & {
|
|
43
190
|
config: import("../..").RecipeConfig<{
|
|
44
|
-
intent: {
|
|
45
|
-
primary: string;
|
|
46
|
-
neutral: string;
|
|
47
|
-
danger: string;
|
|
48
|
-
ghost: string;
|
|
191
|
+
readonly intent: {
|
|
192
|
+
readonly primary: string;
|
|
193
|
+
readonly neutral: string;
|
|
194
|
+
readonly danger: string;
|
|
195
|
+
readonly ghost: string;
|
|
49
196
|
};
|
|
50
|
-
size: {
|
|
51
|
-
sm: string;
|
|
52
|
-
md: string;
|
|
53
|
-
lg: string;
|
|
197
|
+
readonly size: {
|
|
198
|
+
readonly sm: string;
|
|
199
|
+
readonly md: string;
|
|
200
|
+
readonly lg: string;
|
|
54
201
|
};
|
|
55
|
-
shape: {
|
|
56
|
-
text: string;
|
|
57
|
-
icon: string;
|
|
202
|
+
readonly shape: {
|
|
203
|
+
readonly text: string;
|
|
204
|
+
readonly icon: string;
|
|
58
205
|
};
|
|
59
|
-
touchTarget: {
|
|
60
|
-
true: string;
|
|
61
|
-
false: string;
|
|
206
|
+
readonly touchTarget: {
|
|
207
|
+
readonly true: string;
|
|
208
|
+
readonly false: string;
|
|
62
209
|
};
|
|
63
210
|
}>;
|
|
64
211
|
};
|
|
212
|
+
export { spec };
|
|
65
213
|
export default config;
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
1
|
+
declare const spec: {
|
|
2
|
+
readonly name: "divider";
|
|
3
|
+
readonly base: {
|
|
4
|
+
readonly flexShrink: 0;
|
|
5
|
+
readonly border: "none";
|
|
6
|
+
readonly margin: 0;
|
|
7
|
+
readonly background: `var(--${string})`;
|
|
8
|
+
};
|
|
9
|
+
readonly parts: [{
|
|
10
|
+
readonly selector: "&[data-orientation=\"horizontal\"]";
|
|
11
|
+
readonly decls: {
|
|
12
|
+
readonly width: "100%";
|
|
13
|
+
readonly height: "1px";
|
|
14
|
+
};
|
|
15
|
+
}, {
|
|
16
|
+
readonly selector: "&[data-orientation=\"vertical\"]";
|
|
17
|
+
readonly decls: {
|
|
18
|
+
readonly width: "1px";
|
|
19
|
+
readonly alignSelf: "stretch";
|
|
20
|
+
readonly minHeight: "1em";
|
|
21
|
+
};
|
|
22
|
+
}];
|
|
23
|
+
};
|
|
24
|
+
declare const config: import("../..").RecipeConfig<Record<string, Record<string, string>>>;
|
|
25
|
+
export declare const dividerRecipe: import("../..").RecipeFn<Record<string, Record<string, string>>>;
|
|
26
|
+
export { spec };
|
|
3
27
|
export default config;
|