@seed-design/css 0.0.4 → 0.0.5
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 +2 -0
- package/all.css +227 -200
- package/all.min.css +1 -1
- package/package.json +1 -1
- package/recipes/action-button.css +42 -40
- package/recipes/action-button.d.ts +1 -3
- package/recipes/action-button.mjs +4 -14
- package/recipes/action-chip.css +12 -10
- package/recipes/action-chip.d.ts +1 -3
- package/recipes/action-chip.mjs +4 -14
- package/recipes/action-sheet-item.css +5 -5
- package/recipes/action-sheet-item.d.ts +1 -3
- package/recipes/action-sheet-item.mjs +4 -14
- package/recipes/badge.css +26 -21
- package/recipes/badge.d.ts +1 -3
- package/recipes/badge.mjs +4 -14
- package/recipes/control-chip.css +14 -12
- package/recipes/control-chip.d.ts +1 -3
- package/recipes/control-chip.mjs +4 -14
- package/recipes/extended-action-sheet-item.css +6 -6
- package/recipes/extended-action-sheet-item.d.ts +1 -3
- package/recipes/extended-action-sheet-item.mjs +4 -14
- package/recipes/extended-fab.css +12 -12
- package/recipes/extended-fab.d.ts +1 -3
- package/recipes/extended-fab.mjs +4 -14
- package/recipes/fab.css +5 -5
- package/recipes/fab.d.ts +1 -3
- package/recipes/fab.mjs +4 -14
- package/recipes/help-bubble.css +2 -2
- package/recipes/link-content.css +9 -6
- package/recipes/link-content.d.ts +1 -3
- package/recipes/link-content.mjs +4 -14
- package/recipes/manner-temp-badge.css +7 -7
- package/recipes/manner-temp-badge.d.ts +1 -3
- package/recipes/manner-temp-badge.mjs +4 -14
- package/recipes/reaction-button.css +17 -17
- package/recipes/reaction-button.d.ts +1 -3
- package/recipes/reaction-button.mjs +4 -14
- package/recipes/select-box-group.css +1 -1
- package/recipes/select-box-group.d.ts +1 -3
- package/recipes/select-box-group.mjs +4 -14
- package/recipes/skeleton.css +6 -6
- package/recipes/skeleton.d.ts +1 -3
- package/recipes/skeleton.mjs +4 -14
- package/recipes/snackbar-region.css +1 -1
- package/recipes/snackbar-region.d.ts +1 -3
- package/recipes/snackbar-region.mjs +4 -14
- package/recipes/text.css +46 -26
- package/recipes/text.d.ts +2 -4
- package/recipes/text.mjs +8 -14
- package/recipes/toggle-button.css +24 -24
- package/recipes/toggle-button.d.ts +1 -3
- package/recipes/toggle-button.mjs +4 -14
- package/recipes/visually-hidden.css +1 -1
- package/recipes/visually-hidden.d.ts +1 -3
- package/recipes/visually-hidden.mjs +4 -14
- package/vars/component/help-bubble.d.ts +4 -1
- package/vars/component/help-bubble.mjs +4 -1
- package/vars/component/typography.d.ts +36 -0
- package/vars/component/typography.mjs +36 -0
|
@@ -8,13 +8,11 @@ declare type VisuallyHiddenVariantMap = {
|
|
|
8
8
|
|
|
9
9
|
export declare type VisuallyHiddenVariantProps = Partial<VisuallyHiddenVariant>;
|
|
10
10
|
|
|
11
|
-
export declare type VisuallyHiddenSlotName = "root";
|
|
12
|
-
|
|
13
11
|
export declare const visuallyHiddenVariantMap: VisuallyHiddenVariantMap;
|
|
14
12
|
|
|
15
13
|
export declare const visuallyHidden: ((
|
|
16
14
|
props?: VisuallyHiddenVariantProps,
|
|
17
|
-
) =>
|
|
15
|
+
) => string) & {
|
|
18
16
|
splitVariantProps: <T extends VisuallyHiddenVariantProps>(
|
|
19
17
|
props: T,
|
|
20
18
|
) => [VisuallyHiddenVariantProps, Omit<T, keyof VisuallyHiddenVariantProps>];
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
2
2
|
|
|
3
|
-
const visuallyHiddenSlotNames = [
|
|
4
|
-
[
|
|
5
|
-
"root",
|
|
6
|
-
"seed-visually-hidden__root"
|
|
7
|
-
]
|
|
8
|
-
];
|
|
9
|
-
|
|
10
3
|
const defaultVariant = {};
|
|
11
4
|
|
|
12
5
|
const compoundVariants = [];
|
|
@@ -16,13 +9,10 @@ export const visuallyHiddenVariantMap = {};
|
|
|
16
9
|
export const visuallyHiddenVariantKeys = Object.keys(visuallyHiddenVariantMap);
|
|
17
10
|
|
|
18
11
|
export function visuallyHidden(props) {
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
24
|
-
];
|
|
25
|
-
}),
|
|
12
|
+
return createClassName(
|
|
13
|
+
"seed-visually-hidden",
|
|
14
|
+
mergeVariants(defaultVariant, props),
|
|
15
|
+
compoundVariants,
|
|
26
16
|
);
|
|
27
17
|
}
|
|
28
18
|
|
|
@@ -9,7 +9,10 @@ export declare const vars: {
|
|
|
9
9
|
},
|
|
10
10
|
"arrow": {
|
|
11
11
|
"color": "var(--seed-color-bg-neutral-solid)",
|
|
12
|
-
"
|
|
12
|
+
"width": "12px",
|
|
13
|
+
"height": "8px",
|
|
14
|
+
"cornerRadius": "2px",
|
|
15
|
+
"gutter": "4px"
|
|
13
16
|
},
|
|
14
17
|
"title": {
|
|
15
18
|
"color": "var(--seed-color-palette-static-white)",
|
|
@@ -9,7 +9,10 @@ export const vars = {
|
|
|
9
9
|
},
|
|
10
10
|
"arrow": {
|
|
11
11
|
"color": "var(--seed-color-bg-neutral-solid)",
|
|
12
|
-
"
|
|
12
|
+
"width": "12px",
|
|
13
|
+
"height": "8px",
|
|
14
|
+
"cornerRadius": "2px",
|
|
15
|
+
"gutter": "4px"
|
|
13
16
|
},
|
|
14
17
|
"title": {
|
|
15
18
|
"color": "var(--seed-color-palette-static-white)",
|
|
@@ -152,6 +152,24 @@ export declare const vars: {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
+
"textStyleT6Regular": {
|
|
156
|
+
"enabled": {
|
|
157
|
+
"root": {
|
|
158
|
+
"fontSize": "var(--seed-font-size-t6)",
|
|
159
|
+
"lineHeight": "var(--seed-line-height-t6)",
|
|
160
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"textStyleT6Medium": {
|
|
165
|
+
"enabled": {
|
|
166
|
+
"root": {
|
|
167
|
+
"fontSize": "var(--seed-font-size-t6)",
|
|
168
|
+
"lineHeight": "var(--seed-line-height-t6)",
|
|
169
|
+
"fontWeight": "var(--seed-font-weight-medium)"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
155
173
|
"textStyleT6Bold": {
|
|
156
174
|
"enabled": {
|
|
157
175
|
"root": {
|
|
@@ -161,6 +179,24 @@ export declare const vars: {
|
|
|
161
179
|
}
|
|
162
180
|
}
|
|
163
181
|
},
|
|
182
|
+
"textStyleT7Regular": {
|
|
183
|
+
"enabled": {
|
|
184
|
+
"root": {
|
|
185
|
+
"fontSize": "var(--seed-font-size-t7)",
|
|
186
|
+
"lineHeight": "var(--seed-line-height-t7)",
|
|
187
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"textStyleT7Medium": {
|
|
192
|
+
"enabled": {
|
|
193
|
+
"root": {
|
|
194
|
+
"fontSize": "var(--seed-font-size-t7)",
|
|
195
|
+
"lineHeight": "var(--seed-line-height-t7)",
|
|
196
|
+
"fontWeight": "var(--seed-font-weight-medium)"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
164
200
|
"textStyleT7Bold": {
|
|
165
201
|
"enabled": {
|
|
166
202
|
"root": {
|
|
@@ -152,6 +152,24 @@ export const vars = {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
|
+
"textStyleT6Regular": {
|
|
156
|
+
"enabled": {
|
|
157
|
+
"root": {
|
|
158
|
+
"fontSize": "var(--seed-font-size-t6)",
|
|
159
|
+
"lineHeight": "var(--seed-line-height-t6)",
|
|
160
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"textStyleT6Medium": {
|
|
165
|
+
"enabled": {
|
|
166
|
+
"root": {
|
|
167
|
+
"fontSize": "var(--seed-font-size-t6)",
|
|
168
|
+
"lineHeight": "var(--seed-line-height-t6)",
|
|
169
|
+
"fontWeight": "var(--seed-font-weight-medium)"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
},
|
|
155
173
|
"textStyleT6Bold": {
|
|
156
174
|
"enabled": {
|
|
157
175
|
"root": {
|
|
@@ -161,6 +179,24 @@ export const vars = {
|
|
|
161
179
|
}
|
|
162
180
|
}
|
|
163
181
|
},
|
|
182
|
+
"textStyleT7Regular": {
|
|
183
|
+
"enabled": {
|
|
184
|
+
"root": {
|
|
185
|
+
"fontSize": "var(--seed-font-size-t7)",
|
|
186
|
+
"lineHeight": "var(--seed-line-height-t7)",
|
|
187
|
+
"fontWeight": "var(--seed-font-weight-regular)"
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"textStyleT7Medium": {
|
|
192
|
+
"enabled": {
|
|
193
|
+
"root": {
|
|
194
|
+
"fontSize": "var(--seed-font-size-t7)",
|
|
195
|
+
"lineHeight": "var(--seed-line-height-t7)",
|
|
196
|
+
"fontWeight": "var(--seed-font-weight-medium)"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
164
200
|
"textStyleT7Bold": {
|
|
165
201
|
"enabled": {
|
|
166
202
|
"root": {
|