@seed-design/css 2.8.3 → 3.0.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/README.md +2 -2
- package/all.css +853 -1409
- package/all.layered.css +853 -1409
- package/all.layered.min.css +1 -1
- package/all.min.css +1 -1
- package/base.css +51 -4
- package/base.layered.css +51 -4
- package/base.layered.min.css +1 -1
- package/base.min.css +1 -1
- package/package.json +8 -11
- package/recipes/accordion.css +3 -0
- package/recipes/accordion.layered.css +4 -0
- package/recipes/action-button.css +19 -19
- package/recipes/action-button.layered.css +19 -19
- package/recipes/alert-dialog.css +101 -0
- package/recipes/alert-dialog.d.ts +24 -0
- package/recipes/alert-dialog.layered.css +114 -0
- package/recipes/alert-dialog.layered.mjs +66 -0
- package/recipes/alert-dialog.mjs +66 -0
- package/recipes/app-bar-main.css +2 -1
- package/recipes/app-bar-main.layered.css +2 -1
- package/recipes/app-bar.css +5 -3
- package/recipes/app-bar.layered.css +5 -3
- package/recipes/app-screen.css +5 -1
- package/recipes/app-screen.layered.css +6 -6
- package/recipes/badge.css +83 -27
- package/recipes/badge.d.ts +1 -1
- package/recipes/badge.layered.css +63 -8
- package/recipes/badge.layered.mjs +8 -0
- package/recipes/badge.mjs +8 -0
- package/recipes/checkmark.css +5 -5
- package/recipes/checkmark.layered.css +5 -5
- package/recipes/chip-tabs.css +8 -8
- package/recipes/chip-tabs.layered.css +8 -8
- package/recipes/chip.css +10 -10
- package/recipes/chip.layered.css +10 -10
- package/recipes/contextual-floating-button.css +8 -8
- package/recipes/contextual-floating-button.layered.css +8 -8
- package/recipes/date-picker.css +29 -16
- package/recipes/date-picker.d.ts +1 -1
- package/recipes/date-picker.layered.css +34 -15
- package/recipes/date-picker.layered.mjs +6 -14
- package/recipes/date-picker.mjs +6 -14
- package/recipes/dialog.css +206 -46
- package/recipes/dialog.d.ts +3 -3
- package/recipes/dialog.layered.css +228 -46
- package/recipes/dialog.layered.mjs +12 -7
- package/recipes/dialog.mjs +12 -7
- package/recipes/floating-action-button.css +2 -2
- package/recipes/floating-action-button.layered.css +2 -2
- package/recipes/help-bubble.css +9 -6
- package/recipes/help-bubble.layered.css +10 -6
- package/recipes/menu-item.css +3 -0
- package/recipes/menu-item.layered.css +4 -0
- package/recipes/menu-sheet-item.css +3 -0
- package/recipes/menu-sheet-item.layered.css +4 -0
- package/recipes/notification-badge.css +1 -1
- package/recipes/notification-badge.layered.css +1 -1
- package/recipes/page-banner.css +32 -29
- package/recipes/page-banner.layered.css +23 -19
- package/recipes/pagination-page-item.css +4 -4
- package/recipes/pagination-page-item.layered.css +4 -4
- package/recipes/{content-dialog.css → popover.css} +77 -104
- package/recipes/popover.d.ts +21 -0
- package/recipes/{content-dialog.layered.css → popover.layered.css} +80 -111
- package/recipes/popover.layered.mjs +60 -0
- package/recipes/popover.mjs +60 -0
- package/recipes/radiomark.css +5 -5
- package/recipes/radiomark.layered.css +5 -5
- package/recipes/segmented-control.css +3 -0
- package/recipes/segmented-control.layered.css +4 -0
- package/recipes/select-box.css +4 -0
- package/recipes/select-box.layered.css +5 -0
- package/recipes/select-item.css +3 -0
- package/recipes/select-item.layered.css +4 -0
- package/recipes/select-trigger.css +3 -0
- package/recipes/select-trigger.layered.css +4 -0
- package/recipes/side-panel.css +0 -33
- package/recipes/side-panel.layered.css +0 -33
- package/recipes/slider-tick.css +1 -1
- package/recipes/slider-tick.layered.css +1 -1
- package/recipes/slider.css +4 -4
- package/recipes/slider.layered.css +4 -4
- package/recipes/snackbar.css +2 -2
- package/recipes/snackbar.layered.css +2 -2
- package/recipes/switchmark.css +2 -2
- package/recipes/switchmark.layered.css +2 -2
- package/recipes/time-picker.css +2 -5
- package/recipes/time-picker.d.ts +1 -1
- package/recipes/time-picker.layered.css +2 -3
- package/recipes/time-picker.layered.mjs +0 -12
- package/recipes/time-picker.mjs +0 -12
- package/recipes/toggle-button.css +4 -4
- package/recipes/toggle-button.layered.css +4 -4
- package/recipes/wheel-picker.css +42 -3
- package/recipes/wheel-picker.d.ts +5 -2
- package/recipes/wheel-picker.layered.css +47 -3
- package/recipes/wheel-picker.layered.mjs +13 -2
- package/recipes/wheel-picker.mjs +13 -2
- package/vars/color/bg.d.ts +8 -4
- package/vars/color/bg.mjs +3 -1
- package/vars/color/fg.d.ts +13 -1
- package/vars/color/fg.mjs +6 -0
- package/vars/component/index.d.ts +1 -104
- package/vars/component/index.mjs +1 -104
- package/recipes/action-chip.css +0 -75
- package/recipes/action-chip.d.ts +0 -26
- package/recipes/action-chip.layered.css +0 -84
- package/recipes/action-chip.layered.mjs +0 -51
- package/recipes/action-chip.mjs +0 -51
- package/recipes/action-sheet-item.css +0 -32
- package/recipes/action-sheet-item.d.ts +0 -22
- package/recipes/action-sheet-item.layered.css +0 -38
- package/recipes/action-sheet-item.layered.mjs +0 -29
- package/recipes/action-sheet-item.mjs +0 -29
- package/recipes/action-sheet.css +0 -125
- package/recipes/action-sheet.d.ts +0 -21
- package/recipes/action-sheet.layered.css +0 -134
- package/recipes/action-sheet.layered.mjs +0 -60
- package/recipes/action-sheet.mjs +0 -60
- package/recipes/content-dialog.d.ts +0 -24
- package/recipes/content-dialog.layered.mjs +0 -71
- package/recipes/content-dialog.mjs +0 -71
- package/recipes/control-chip.css +0 -88
- package/recipes/control-chip.d.ts +0 -26
- package/recipes/control-chip.layered.css +0 -99
- package/recipes/control-chip.layered.mjs +0 -51
- package/recipes/control-chip.mjs +0 -51
- package/recipes/extended-action-sheet-item.css +0 -31
- package/recipes/extended-action-sheet-item.d.ts +0 -22
- package/recipes/extended-action-sheet-item.layered.css +0 -38
- package/recipes/extended-action-sheet-item.layered.mjs +0 -29
- package/recipes/extended-action-sheet-item.mjs +0 -29
- package/recipes/extended-action-sheet.css +0 -123
- package/recipes/extended-action-sheet.d.ts +0 -21
- package/recipes/extended-action-sheet.layered.css +0 -132
- package/recipes/extended-action-sheet.layered.mjs +0 -64
- package/recipes/extended-action-sheet.mjs +0 -64
- package/recipes/extended-fab.css +0 -66
- package/recipes/extended-fab.d.ts +0 -26
- package/recipes/extended-fab.layered.css +0 -79
- package/recipes/extended-fab.layered.mjs +0 -34
- package/recipes/extended-fab.mjs +0 -34
- package/recipes/fab.css +0 -31
- package/recipes/fab.d.ts +0 -19
- package/recipes/fab.layered.css +0 -37
- package/recipes/fab.layered.mjs +0 -22
- package/recipes/fab.mjs +0 -22
- package/recipes/inline-banner.css +0 -180
- package/recipes/inline-banner.d.ts +0 -24
- package/recipes/inline-banner.layered.css +0 -161
- package/recipes/inline-banner.layered.mjs +0 -64
- package/recipes/inline-banner.mjs +0 -64
- package/recipes/link-content.css +0 -41
- package/recipes/link-content.d.ts +0 -26
- package/recipes/link-content.layered.css +0 -48
- package/recipes/link-content.layered.mjs +0 -35
- package/recipes/link-content.mjs +0 -35
- package/recipes/wheel-picker-public.css +0 -124
- package/recipes/wheel-picker-public.d.ts +0 -24
- package/recipes/wheel-picker-public.layered.css +0 -144
- package/recipes/wheel-picker-public.layered.mjs +0 -63
- package/recipes/wheel-picker-public.mjs +0 -63
- package/vars/component/accordion-item.d.ts +0 -132
- package/vars/component/accordion-item.mjs +0 -126
- package/vars/component/accordion.d.ts +0 -22
- package/vars/component/accordion.mjs +0 -16
- package/vars/component/action-button.d.ts +0 -660
- package/vars/component/action-button.mjs +0 -541
- package/vars/component/action-chip.d.ts +0 -132
- package/vars/component/action-chip.mjs +0 -132
- package/vars/component/action-sheet-close-button.d.ts +0 -23
- package/vars/component/action-sheet-close-button.mjs +0 -23
- package/vars/component/action-sheet-item.d.ts +0 -36
- package/vars/component/action-sheet-item.mjs +0 -36
- package/vars/component/action-sheet.d.ts +0 -46
- package/vars/component/action-sheet.mjs +0 -46
- package/vars/component/alert-dialog.d.ts +0 -52
- package/vars/component/alert-dialog.mjs +0 -52
- package/vars/component/attachment-input-dropzone.d.ts +0 -32
- package/vars/component/attachment-input-dropzone.mjs +0 -30
- package/vars/component/attachment-input-item-action-button.d.ts +0 -37
- package/vars/component/attachment-input-item-action-button.mjs +0 -37
- package/vars/component/attachment-input-item-remove-button.d.ts +0 -28
- package/vars/component/attachment-input-item-remove-button.mjs +0 -28
- package/vars/component/attachment-input-item.d.ts +0 -103
- package/vars/component/attachment-input-item.mjs +0 -102
- package/vars/component/attachment-input-trigger.d.ts +0 -46
- package/vars/component/attachment-input-trigger.mjs +0 -46
- package/vars/component/attachment-input.d.ts +0 -14
- package/vars/component/attachment-input.mjs +0 -12
- package/vars/component/avatar-stack.d.ts +0 -110
- package/vars/component/avatar-stack.mjs +0 -110
- package/vars/component/avatar.d.ts +0 -204
- package/vars/component/avatar.mjs +0 -162
- package/vars/component/badge.d.ts +0 -316
- package/vars/component/badge.mjs +0 -236
- package/vars/component/bottom-sheet-close-button.d.ts +0 -21
- package/vars/component/bottom-sheet-close-button.mjs +0 -21
- package/vars/component/bottom-sheet-handle.d.ts +0 -24
- package/vars/component/bottom-sheet-handle.mjs +0 -24
- package/vars/component/bottom-sheet.d.ts +0 -86
- package/vars/component/bottom-sheet.mjs +0 -86
- package/vars/component/callout-close-button.d.ts +0 -81
- package/vars/component/callout-close-button.mjs +0 -63
- package/vars/component/callout.d.ts +0 -232
- package/vars/component/callout.mjs +0 -200
- package/vars/component/checkbox-group.d.ts +0 -9
- package/vars/component/checkbox-group.mjs +0 -9
- package/vars/component/checkbox.d.ts +0 -56
- package/vars/component/checkbox.mjs +0 -53
- package/vars/component/checkmark.d.ts +0 -195
- package/vars/component/checkmark.mjs +0 -165
- package/vars/component/chip-tablist.d.ts +0 -24
- package/vars/component/chip-tablist.mjs +0 -24
- package/vars/component/chip.d.ts +0 -321
- package/vars/component/chip.mjs +0 -303
- package/vars/component/content-placeholder.d.ts +0 -28
- package/vars/component/content-placeholder.mjs +0 -27
- package/vars/component/contextual-floating-button.d.ts +0 -144
- package/vars/component/contextual-floating-button.mjs +0 -132
- package/vars/component/control-chip.d.ts +0 -158
- package/vars/component/control-chip.mjs +0 -158
- package/vars/component/date-picker.d.ts +0 -103
- package/vars/component/date-picker.mjs +0 -103
- package/vars/component/dialog-close-button.d.ts +0 -24
- package/vars/component/dialog-close-button.mjs +0 -24
- package/vars/component/dialog.d.ts +0 -91
- package/vars/component/dialog.mjs +0 -83
- package/vars/component/divider.d.ts +0 -9
- package/vars/component/divider.mjs +0 -9
- package/vars/component/extended-action-sheet-close-button.d.ts +0 -24
- package/vars/component/extended-action-sheet-close-button.mjs +0 -24
- package/vars/component/extended-action-sheet-item.d.ts +0 -46
- package/vars/component/extended-action-sheet-item.mjs +0 -46
- package/vars/component/extended-action-sheet.d.ts +0 -55
- package/vars/component/extended-action-sheet.mjs +0 -55
- package/vars/component/extended-fab.d.ts +0 -88
- package/vars/component/extended-fab.mjs +0 -82
- package/vars/component/fab.d.ts +0 -21
- package/vars/component/fab.mjs +0 -21
- package/vars/component/field-label.d.ts +0 -25
- package/vars/component/field-label.mjs +0 -25
- package/vars/component/field.d.ts +0 -78
- package/vars/component/field.mjs +0 -72
- package/vars/component/floating-action-button.d.ts +0 -60
- package/vars/component/floating-action-button.mjs +0 -54
- package/vars/component/help-bubble.d.ts +0 -55
- package/vars/component/help-bubble.mjs +0 -52
- package/vars/component/identity-placeholder.d.ts +0 -12
- package/vars/component/identity-placeholder.mjs +0 -12
- package/vars/component/image-frame-floater.d.ts +0 -10
- package/vars/component/image-frame-floater.mjs +0 -9
- package/vars/component/image-frame-indicator.d.ts +0 -20
- package/vars/component/image-frame-indicator.mjs +0 -18
- package/vars/component/image-frame-reaction-button.d.ts +0 -60
- package/vars/component/image-frame-reaction-button.mjs +0 -51
- package/vars/component/image-frame.d.ts +0 -27
- package/vars/component/image-frame.mjs +0 -18
- package/vars/component/inline-banner.d.ts +0 -191
- package/vars/component/inline-banner.mjs +0 -191
- package/vars/component/input-button.d.ts +0 -162
- package/vars/component/input-button.mjs +0 -155
- package/vars/component/link-content.d.ts +0 -58
- package/vars/component/link-content.mjs +0 -58
- package/vars/component/list-header.d.ts +0 -29
- package/vars/component/list-header.mjs +0 -29
- package/vars/component/list-item.d.ts +0 -85
- package/vars/component/list-item.mjs +0 -84
- package/vars/component/manner-temp-badge.d.ts +0 -117
- package/vars/component/manner-temp-badge.mjs +0 -117
- package/vars/component/manner-temp.d.ts +0 -88
- package/vars/component/manner-temp.mjs +0 -88
- package/vars/component/menu-item.d.ts +0 -129
- package/vars/component/menu-item.mjs +0 -117
- package/vars/component/menu-sheet-close-button.d.ts +0 -24
- package/vars/component/menu-sheet-close-button.mjs +0 -24
- package/vars/component/menu-sheet-item.d.ts +0 -69
- package/vars/component/menu-sheet-item.mjs +0 -57
- package/vars/component/menu-sheet.d.ts +0 -56
- package/vars/component/menu-sheet.mjs +0 -56
- package/vars/component/menu.d.ts +0 -68
- package/vars/component/menu.mjs +0 -60
- package/vars/component/notification-badge.d.ts +0 -48
- package/vars/component/notification-badge.mjs +0 -42
- package/vars/component/page-banner-close-button.d.ts +0 -133
- package/vars/component/page-banner-close-button.mjs +0 -99
- package/vars/component/page-banner.d.ts +0 -385
- package/vars/component/page-banner.mjs +0 -339
- package/vars/component/pagination-button.d.ts +0 -33
- package/vars/component/pagination-button.mjs +0 -33
- package/vars/component/pagination-page-item.d.ts +0 -54
- package/vars/component/pagination-page-item.mjs +0 -54
- package/vars/component/progress-circle.d.ts +0 -88
- package/vars/component/progress-circle.mjs +0 -67
- package/vars/component/quantity-picker-button.d.ts +0 -78
- package/vars/component/quantity-picker-button.mjs +0 -78
- package/vars/component/quantity-picker.d.ts +0 -80
- package/vars/component/quantity-picker.mjs +0 -80
- package/vars/component/radio-group.d.ts +0 -9
- package/vars/component/radio-group.mjs +0 -9
- package/vars/component/radio.d.ts +0 -56
- package/vars/component/radio.mjs +0 -53
- package/vars/component/radiomark.d.ts +0 -117
- package/vars/component/radiomark.mjs +0 -117
- package/vars/component/reaction-button.d.ts +0 -136
- package/vars/component/reaction-button.mjs +0 -136
- package/vars/component/scroll-fog.d.ts +0 -78
- package/vars/component/scroll-fog.mjs +0 -78
- package/vars/component/segmented-control-indicator.d.ts +0 -24
- package/vars/component/segmented-control-indicator.mjs +0 -24
- package/vars/component/segmented-control-item.d.ts +0 -41
- package/vars/component/segmented-control-item.mjs +0 -41
- package/vars/component/segmented-control.d.ts +0 -11
- package/vars/component/segmented-control.mjs +0 -11
- package/vars/component/select-box-checkmark.d.ts +0 -40
- package/vars/component/select-box-checkmark.mjs +0 -40
- package/vars/component/select-box-group.d.ts +0 -10
- package/vars/component/select-box-group.mjs +0 -10
- package/vars/component/select-box.d.ts +0 -107
- package/vars/component/select-box.mjs +0 -102
- package/vars/component/select-item.d.ts +0 -101
- package/vars/component/select-item.mjs +0 -95
- package/vars/component/select-trigger.d.ts +0 -127
- package/vars/component/select-trigger.mjs +0 -120
- package/vars/component/select.d.ts +0 -62
- package/vars/component/select.mjs +0 -54
- package/vars/component/side-panel-close-button.d.ts +0 -24
- package/vars/component/side-panel-close-button.mjs +0 -24
- package/vars/component/side-panel.d.ts +0 -97
- package/vars/component/side-panel.mjs +0 -85
- package/vars/component/skeleton.d.ts +0 -80
- package/vars/component/skeleton.mjs +0 -62
- package/vars/component/slider-thumb.d.ts +0 -25
- package/vars/component/slider-thumb.mjs +0 -25
- package/vars/component/slider-tick.d.ts +0 -23
- package/vars/component/slider-tick.mjs +0 -23
- package/vars/component/slider.d.ts +0 -81
- package/vars/component/slider.mjs +0 -78
- package/vars/component/snackbar.d.ts +0 -65
- package/vars/component/snackbar.mjs +0 -65
- package/vars/component/switch.d.ts +0 -56
- package/vars/component/switch.mjs +0 -53
- package/vars/component/switchmark.d.ts +0 -114
- package/vars/component/switchmark.mjs +0 -112
- package/vars/component/tab.d.ts +0 -47
- package/vars/component/tab.mjs +0 -47
- package/vars/component/tablist.d.ts +0 -51
- package/vars/component/tablist.mjs +0 -51
- package/vars/component/tag-group-item.d.ts +0 -122
- package/vars/component/tag-group-item.mjs +0 -122
- package/vars/component/tag-group.d.ts +0 -34
- package/vars/component/tag-group.mjs +0 -34
- package/vars/component/text-button.d.ts +0 -23
- package/vars/component/text-button.mjs +0 -23
- package/vars/component/text-input.d.ts +0 -292
- package/vars/component/text-input.mjs +0 -263
- package/vars/component/time-picker.d.ts +0 -27
- package/vars/component/time-picker.mjs +0 -27
- package/vars/component/toggle-button.d.ts +0 -213
- package/vars/component/toggle-button.mjs +0 -207
- package/vars/component/top-navigation-icon-button.d.ts +0 -45
- package/vars/component/top-navigation-icon-button.mjs +0 -45
- package/vars/component/top-navigation-text-button.d.ts +0 -61
- package/vars/component/top-navigation-text-button.mjs +0 -60
- package/vars/component/top-navigation.d.ts +0 -121
- package/vars/component/top-navigation.mjs +0 -112
- package/vars/component/wheel-picker.d.ts +0 -72
- package/vars/component/wheel-picker.mjs +0 -72
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare interface AlertDialogVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default false
|
|
4
|
+
*/
|
|
5
|
+
skipAnimation: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare type AlertDialogVariantMap = {
|
|
9
|
+
[key in keyof AlertDialogVariant]: Array<AlertDialogVariant[key]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare type AlertDialogVariantProps = Partial<AlertDialogVariant>;
|
|
13
|
+
|
|
14
|
+
export declare type AlertDialogSlotName = "positioner" | "backdrop" | "content" | "header" | "footer" | "action" | "title" | "description";
|
|
15
|
+
|
|
16
|
+
export declare const alertDialogVariantMap: AlertDialogVariantMap;
|
|
17
|
+
|
|
18
|
+
export declare const alertDialog: ((
|
|
19
|
+
props?: AlertDialogVariantProps,
|
|
20
|
+
) => Record<AlertDialogSlotName, string>) & {
|
|
21
|
+
splitVariantProps: <T extends AlertDialogVariantProps>(
|
|
22
|
+
props: T,
|
|
23
|
+
) => [AlertDialogVariantProps, Omit<T, keyof AlertDialogVariantProps>];
|
|
24
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-alert-dialog__positioner {
|
|
3
|
+
overscroll-behavior-y: none;
|
|
4
|
+
--dialog-z-index: 2;
|
|
5
|
+
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
display: flex;
|
|
9
|
+
position: fixed;
|
|
10
|
+
inset: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.seed-alert-dialog__backdrop {
|
|
14
|
+
background: var(--seed-color-bg-overlay);
|
|
15
|
+
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
16
|
+
position: fixed;
|
|
17
|
+
inset: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.seed-alert-dialog__content {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
word-break: break-all;
|
|
23
|
+
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
24
|
+
background: var(--seed-color-bg-layer-floating);
|
|
25
|
+
max-width: 272px;
|
|
26
|
+
margin: auto var(--seed-dimension-x8);
|
|
27
|
+
border-radius: var(--seed-radius-r5);
|
|
28
|
+
outline: none;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
flex: 1;
|
|
31
|
+
display: flex;
|
|
32
|
+
position: relative;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.seed-alert-dialog__content:is(:focus, [data-focus]) {
|
|
36
|
+
outline: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.seed-alert-dialog__header {
|
|
40
|
+
padding-inline: var(--seed-dimension-x5);
|
|
41
|
+
padding-top: var(--seed-dimension-x5);
|
|
42
|
+
gap: var(--seed-dimension-x1_5);
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
display: flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.seed-alert-dialog__title {
|
|
48
|
+
color: var(--seed-color-fg-neutral);
|
|
49
|
+
font-size: var(--seed-font-size-t7);
|
|
50
|
+
line-height: var(--seed-line-height-t7);
|
|
51
|
+
font-weight: var(--seed-font-weight-bold);
|
|
52
|
+
margin: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.seed-alert-dialog__description {
|
|
56
|
+
color: var(--seed-color-fg-neutral);
|
|
57
|
+
font-size: var(--seed-font-size-t5);
|
|
58
|
+
line-height: var(--seed-line-height-t5);
|
|
59
|
+
font-weight: var(--seed-font-weight-regular);
|
|
60
|
+
white-space: pre-wrap;
|
|
61
|
+
margin: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.seed-alert-dialog__footer {
|
|
65
|
+
padding-inline: var(--seed-dimension-x5);
|
|
66
|
+
padding-top: var(--seed-dimension-x4);
|
|
67
|
+
padding-bottom: var(--seed-dimension-x5);
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
align-items: stretch;
|
|
70
|
+
display: flex;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.seed-alert-dialog__backdrop--skipAnimation_false:is([data-state="open"], [data-open]) {
|
|
74
|
+
animation: seed-enter;
|
|
75
|
+
animation-timing-function: var(--seed-timing-function-enter);
|
|
76
|
+
animation-duration: var(--seed-duration-d2);
|
|
77
|
+
--seed-enter-translate-x: 0;
|
|
78
|
+
--seed-enter-translate-y: 0;
|
|
79
|
+
--seed-enter-opacity: 0;
|
|
80
|
+
--seed-enter-scale: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.seed-alert-dialog__backdrop--skipAnimation_false:not(:is([data-state="open"], [data-open])) {
|
|
84
|
+
animation: seed-exit;
|
|
85
|
+
animation-timing-function: var(--seed-timing-function-exit);
|
|
86
|
+
animation-duration: var(--seed-duration-d2);
|
|
87
|
+
--seed-exit-translate-x: 0;
|
|
88
|
+
--seed-exit-translate-y: 0;
|
|
89
|
+
--seed-exit-opacity: 0;
|
|
90
|
+
--seed-exit-scale: 1;
|
|
91
|
+
animation-fill-mode: forwards;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.seed-alert-dialog__content--skipAnimation_false:is([data-state="open"], [data-open]) {
|
|
95
|
+
animation: seed-enter;
|
|
96
|
+
animation-timing-function: var(--seed-timing-function-enter-expressive);
|
|
97
|
+
animation-duration: var(--seed-duration-d4);
|
|
98
|
+
--seed-enter-translate-x: 0;
|
|
99
|
+
--seed-enter-translate-y: 0;
|
|
100
|
+
--seed-enter-opacity: 0;
|
|
101
|
+
--seed-enter-scale: 1.3;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.seed-alert-dialog__content--skipAnimation_false:not(:is([data-state="open"], [data-open])) {
|
|
105
|
+
animation: seed-exit;
|
|
106
|
+
animation-timing-function: var(--seed-timing-function-exit);
|
|
107
|
+
animation-duration: var(--seed-duration-d2);
|
|
108
|
+
--seed-exit-translate-x: 0;
|
|
109
|
+
--seed-exit-translate-y: 0;
|
|
110
|
+
--seed-exit-opacity: 0;
|
|
111
|
+
--seed-exit-scale: 1;
|
|
112
|
+
animation-fill-mode: forwards;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import './alert-dialog.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const alertDialogSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"positioner",
|
|
7
|
+
"seed-alert-dialog__positioner"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"backdrop",
|
|
11
|
+
"seed-alert-dialog__backdrop"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"content",
|
|
15
|
+
"seed-alert-dialog__content"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"header",
|
|
19
|
+
"seed-alert-dialog__header"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"footer",
|
|
23
|
+
"seed-alert-dialog__footer"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"action",
|
|
27
|
+
"seed-alert-dialog__action"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"title",
|
|
31
|
+
"seed-alert-dialog__title"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"description",
|
|
35
|
+
"seed-alert-dialog__description"
|
|
36
|
+
]
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
const defaultVariant = {
|
|
40
|
+
"skipAnimation": false
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const compoundVariants = [];
|
|
44
|
+
|
|
45
|
+
export const alertDialogVariantMap = {
|
|
46
|
+
"skipAnimation": [
|
|
47
|
+
false
|
|
48
|
+
]
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const alertDialogVariantKeys = Object.keys(alertDialogVariantMap);
|
|
52
|
+
|
|
53
|
+
export function alertDialog(props) {
|
|
54
|
+
return Object.fromEntries(
|
|
55
|
+
alertDialogSlotNames.map(([slot, className]) => {
|
|
56
|
+
return [
|
|
57
|
+
slot,
|
|
58
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
59
|
+
];
|
|
60
|
+
}),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Object.assign(alertDialog, { splitVariantProps: (props) => splitVariantProps(props, alertDialogVariantMap) });
|
|
65
|
+
|
|
66
|
+
// @recipe(seed): alert-dialog
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import './alert-dialog.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const alertDialogSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"positioner",
|
|
7
|
+
"seed-alert-dialog__positioner"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"backdrop",
|
|
11
|
+
"seed-alert-dialog__backdrop"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"content",
|
|
15
|
+
"seed-alert-dialog__content"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"header",
|
|
19
|
+
"seed-alert-dialog__header"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"footer",
|
|
23
|
+
"seed-alert-dialog__footer"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"action",
|
|
27
|
+
"seed-alert-dialog__action"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"title",
|
|
31
|
+
"seed-alert-dialog__title"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"description",
|
|
35
|
+
"seed-alert-dialog__description"
|
|
36
|
+
]
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
const defaultVariant = {
|
|
40
|
+
"skipAnimation": false
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
const compoundVariants = [];
|
|
44
|
+
|
|
45
|
+
export const alertDialogVariantMap = {
|
|
46
|
+
"skipAnimation": [
|
|
47
|
+
false
|
|
48
|
+
]
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const alertDialogVariantKeys = Object.keys(alertDialogVariantMap);
|
|
52
|
+
|
|
53
|
+
export function alertDialog(props) {
|
|
54
|
+
return Object.fromEntries(
|
|
55
|
+
alertDialogSlotNames.map(([slot, className]) => {
|
|
56
|
+
return [
|
|
57
|
+
slot,
|
|
58
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
59
|
+
];
|
|
60
|
+
}),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
Object.assign(alertDialog, { splitVariantProps: (props) => splitVariantProps(props, alertDialogVariantMap) });
|
|
65
|
+
|
|
66
|
+
// @recipe(seed): alert-dialog
|
package/recipes/app-bar-main.css
CHANGED
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
top: var(--seed-safe-area-top);
|
|
36
36
|
bottom: 0;
|
|
37
37
|
inset-inline: 0;
|
|
38
|
-
padding-
|
|
38
|
+
padding-left: calc(var(--seed-safe-area-left) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-left) - var(--seed-dimension-x4)))), 0px));
|
|
39
|
+
padding-right: calc(var(--seed-safe-area-right) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-right) - var(--seed-dimension-x4)))), 0px));
|
|
39
40
|
pointer-events: none
|
|
40
41
|
}
|
|
41
42
|
.seed-app-bar-main__root--theme_android {
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
text-align: center;
|
|
32
32
|
top: var(--seed-safe-area-top);
|
|
33
33
|
bottom: 0;
|
|
34
|
-
padding-
|
|
34
|
+
padding-left: calc(var(--seed-safe-area-left) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-left) - var(--seed-dimension-x4)))), 0px));
|
|
35
|
+
padding-right: calc(var(--seed-safe-area-right) + max(calc(var(--seed-dimension-x4) + var(--app-bar-area-extent, calc(var(--centered-title-padding-x, 0px) - var(--seed-safe-area-right) - var(--seed-dimension-x4)))), 0px));
|
|
35
36
|
pointer-events: none;
|
|
36
37
|
justify-content: center;
|
|
37
38
|
align-items: center;
|
package/recipes/app-bar.css
CHANGED
|
@@ -46,8 +46,9 @@
|
|
|
46
46
|
flex-shrink: 0;
|
|
47
47
|
}
|
|
48
48
|
.seed-app-bar__root--theme_cupertino {
|
|
49
|
-
height: calc(
|
|
50
|
-
padding-
|
|
49
|
+
height: calc(56px + var(--seed-safe-area-top));
|
|
50
|
+
padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
|
|
51
|
+
padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
|
|
51
52
|
padding-top: var(--seed-safe-area-top);
|
|
52
53
|
}
|
|
53
54
|
.seed-app-bar__iconButton--theme_cupertino {
|
|
@@ -66,7 +67,8 @@
|
|
|
66
67
|
}
|
|
67
68
|
.seed-app-bar__root--theme_android {
|
|
68
69
|
height: calc(56px + var(--seed-safe-area-top));
|
|
69
|
-
padding-
|
|
70
|
+
padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
|
|
71
|
+
padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
|
|
70
72
|
padding-top: var(--seed-safe-area-top);
|
|
71
73
|
}
|
|
72
74
|
.seed-app-bar__iconButton--theme_android {
|
|
@@ -54,8 +54,9 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.seed-app-bar__root--theme_cupertino {
|
|
57
|
-
height: calc(
|
|
58
|
-
padding-
|
|
57
|
+
height: calc(56px + var(--seed-safe-area-top));
|
|
58
|
+
padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
|
|
59
|
+
padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
|
|
59
60
|
padding-top: var(--seed-safe-area-top);
|
|
60
61
|
}
|
|
61
62
|
|
|
@@ -79,7 +80,8 @@
|
|
|
79
80
|
|
|
80
81
|
.seed-app-bar__root--theme_android {
|
|
81
82
|
height: calc(56px + var(--seed-safe-area-top));
|
|
82
|
-
padding-
|
|
83
|
+
padding-left: calc(var(--seed-dimension-x4) + var(--seed-safe-area-left));
|
|
84
|
+
padding-right: calc(var(--seed-dimension-x4) + var(--seed-safe-area-right));
|
|
83
85
|
padding-top: var(--seed-safe-area-top);
|
|
84
86
|
}
|
|
85
87
|
|
package/recipes/app-screen.css
CHANGED
|
@@ -20,6 +20,8 @@
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 100%;
|
|
22
22
|
inset-inline: 0;
|
|
23
|
+
padding-left: var(--seed-safe-area-left);
|
|
24
|
+
padding-right: var(--seed-safe-area-right);
|
|
23
25
|
overflow-y: scroll;
|
|
24
26
|
-webkit-overflow-scrolling: touch;
|
|
25
27
|
}
|
|
@@ -40,7 +42,7 @@
|
|
|
40
42
|
inset-inline: 0;
|
|
41
43
|
}
|
|
42
44
|
.seed-app-screen__root--theme_cupertino {
|
|
43
|
-
--app-bar-height:
|
|
45
|
+
--app-bar-height: 56px;
|
|
44
46
|
}
|
|
45
47
|
.seed-app-screen__root--theme_android {
|
|
46
48
|
--app-bar-height: 56px;
|
|
@@ -99,6 +101,8 @@
|
|
|
99
101
|
inset-inline: 0;
|
|
100
102
|
top: 0;
|
|
101
103
|
margin-bottom: calc(-1 * (66px + 400px + var(--seed-safe-area-top)));
|
|
104
|
+
margin-left: calc(-1 * var(--seed-safe-area-left));
|
|
105
|
+
margin-right: calc(-1 * var(--seed-safe-area-right));
|
|
102
106
|
height: calc(66px + 400px + var(--seed-safe-area-top));
|
|
103
107
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.35) 400px, rgba(0, 0, 0, 0.00) 100%);
|
|
104
108
|
pointer-events: none;
|
|
@@ -19,9 +19,11 @@
|
|
|
19
19
|
.seed-app-screen__layer {
|
|
20
20
|
z-index: var(--z-index-layer);
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
-webkit-overflow-scrolling: touch;
|
|
23
22
|
width: 100%;
|
|
24
23
|
height: 100%;
|
|
24
|
+
padding-left: var(--seed-safe-area-left);
|
|
25
|
+
padding-right: var(--seed-safe-area-right);
|
|
26
|
+
-webkit-overflow-scrolling: touch;
|
|
25
27
|
position: absolute;
|
|
26
28
|
inset-inline: 0;
|
|
27
29
|
overflow-y: scroll;
|
|
@@ -47,11 +49,7 @@
|
|
|
47
49
|
inset-inline: 0;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
|
-
.seed-app-screen__root--theme_cupertino {
|
|
51
|
-
--app-bar-height: 44px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.seed-app-screen__root--theme_android {
|
|
52
|
+
.seed-app-screen__root--theme_cupertino, .seed-app-screen__root--theme_android {
|
|
55
53
|
--app-bar-height: 56px;
|
|
56
54
|
}
|
|
57
55
|
|
|
@@ -118,6 +116,8 @@
|
|
|
118
116
|
content: "";
|
|
119
117
|
inset-inline: 0;
|
|
120
118
|
margin-bottom: calc(-1 * (66px + 400px + var(--seed-safe-area-top)));
|
|
119
|
+
margin-left: calc(-1 * var(--seed-safe-area-left));
|
|
120
|
+
margin-right: calc(-1 * var(--seed-safe-area-right));
|
|
121
121
|
height: calc(66px + 400px + var(--seed-safe-area-top));
|
|
122
122
|
pointer-events: none;
|
|
123
123
|
z-index: 1;
|
package/recipes/badge.css
CHANGED
|
@@ -2,113 +2,169 @@
|
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
align-items: center;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
overflow: hidden;
|
|
5
7
|
text-transform: none;
|
|
6
8
|
text-align: start;
|
|
7
9
|
-webkit-font-smoothing: antialiased;
|
|
8
10
|
-moz-osx-font-smoothing: grayscale;
|
|
9
|
-
text-decoration: none
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
}
|
|
13
|
+
.seed-badge__prefix {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
color: inherit;
|
|
19
|
+
--seed-icon-size: 100%;
|
|
20
|
+
--seed-icon-color: currentColor;
|
|
10
21
|
}
|
|
11
22
|
.seed-badge__label {
|
|
23
|
+
min-width: 0;
|
|
24
|
+
flex-shrink: 1;
|
|
12
25
|
overflow: hidden;
|
|
13
26
|
text-overflow: ellipsis;
|
|
14
|
-
white-space: nowrap
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
.seed-badge__action {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
padding: 0;
|
|
35
|
+
font-family: inherit;
|
|
36
|
+
border: none;
|
|
37
|
+
border-radius: inherit;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
color: inherit;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
--seed-icon-size: 100%;
|
|
42
|
+
--seed-icon-color: currentColor;
|
|
43
|
+
}
|
|
44
|
+
.seed-badge__action:is(:active, [data-active]) {
|
|
45
|
+
scale: var(--seed-feedback-scale);
|
|
46
|
+
}
|
|
47
|
+
.seed-badge__action {
|
|
48
|
+
transition: scale var(--seed-duration-pressed-scale) var(--seed-timing-function-pressed-scale), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
49
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
50
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
51
|
+
}
|
|
52
|
+
.seed-badge__action:is(:focus-visible, [data-focus-visible]) {
|
|
53
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
54
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
15
55
|
}
|
|
16
56
|
.seed-badge__root--size_medium {
|
|
17
|
-
max-width: clamp(calc(108px * var(--seed-font-size-limit-min)), 7.5rem, calc(108px * var(--seed-font-size-limit-max)));
|
|
18
57
|
min-height: var(--seed-dimension-x5);
|
|
19
58
|
padding-inline: var(--seed-dimension-x1_5);
|
|
20
59
|
padding-block: var(--seed-dimension-x0_5);
|
|
21
60
|
border-radius: var(--seed-radius-r1);
|
|
61
|
+
gap: var(--seed-dimension-x0_5);
|
|
22
62
|
font-size: var(--seed-font-size-t1);
|
|
23
|
-
line-height: var(--seed-line-height-t1)
|
|
63
|
+
line-height: var(--seed-line-height-t1);
|
|
64
|
+
}
|
|
65
|
+
.seed-badge__prefix--size_medium {
|
|
66
|
+
width: var(--seed-dimension-x3);
|
|
67
|
+
height: var(--seed-dimension-x3);
|
|
68
|
+
}
|
|
69
|
+
.seed-badge__action--size_medium {
|
|
70
|
+
width: var(--seed-dimension-x3);
|
|
71
|
+
height: var(--seed-dimension-x3);
|
|
24
72
|
}
|
|
25
73
|
.seed-badge__root--size_large {
|
|
26
|
-
max-width: clamp(calc(120px * var(--seed-font-size-limit-min)), 6.75rem, calc(120px * var(--seed-font-size-limit-max)));
|
|
27
74
|
min-height: var(--seed-dimension-x6);
|
|
28
75
|
padding-inline: var(--seed-dimension-x2);
|
|
29
76
|
padding-block: var(--seed-dimension-x1);
|
|
30
77
|
border-radius: var(--seed-radius-r1_5);
|
|
78
|
+
gap: var(--seed-dimension-x0_5);
|
|
31
79
|
font-size: var(--seed-font-size-t2);
|
|
32
|
-
line-height: var(--seed-line-height-t2)
|
|
80
|
+
line-height: var(--seed-line-height-t2);
|
|
81
|
+
}
|
|
82
|
+
.seed-badge__prefix--size_large {
|
|
83
|
+
width: var(--seed-dimension-x3_5);
|
|
84
|
+
height: var(--seed-dimension-x3_5);
|
|
85
|
+
}
|
|
86
|
+
.seed-badge__action--size_large {
|
|
87
|
+
width: var(--seed-dimension-x3_5);
|
|
88
|
+
height: var(--seed-dimension-x3_5);
|
|
33
89
|
}
|
|
34
90
|
.seed-badge__root--variant_weak {
|
|
35
|
-
font-weight: var(--seed-font-weight-medium)
|
|
91
|
+
font-weight: var(--seed-font-weight-medium);
|
|
36
92
|
}
|
|
37
93
|
.seed-badge__root--variant_solid {
|
|
38
|
-
font-weight: var(--seed-font-weight-bold)
|
|
94
|
+
font-weight: var(--seed-font-weight-bold);
|
|
39
95
|
}
|
|
40
96
|
.seed-badge__root--variant_outline {
|
|
41
|
-
font-weight: var(--seed-font-weight-bold)
|
|
97
|
+
font-weight: var(--seed-font-weight-bold);
|
|
42
98
|
}
|
|
43
99
|
.seed-badge__root--tone_neutral-variant_weak {
|
|
44
100
|
background-color: var(--seed-color-bg-neutral-weak);
|
|
45
|
-
color: var(--seed-color-fg-neutral-muted)
|
|
101
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
46
102
|
}
|
|
47
103
|
.seed-badge__root--tone_neutral-variant_solid {
|
|
48
104
|
background-color: var(--seed-color-palette-gray-800);
|
|
49
|
-
color: var(--seed-color-fg-neutral-
|
|
105
|
+
color: var(--seed-color-fg-on-neutral-solid);
|
|
50
106
|
}
|
|
51
107
|
.seed-badge__root--tone_neutral-variant_outline {
|
|
52
108
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-muted);
|
|
53
|
-
color: var(--seed-color-fg-neutral-muted)
|
|
109
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
54
110
|
}
|
|
55
111
|
.seed-badge__root--tone_brand-variant_weak {
|
|
56
112
|
background-color: var(--seed-color-bg-brand-weak);
|
|
57
|
-
color: var(--seed-color-fg-brand-contrast)
|
|
113
|
+
color: var(--seed-color-fg-brand-contrast);
|
|
58
114
|
}
|
|
59
115
|
.seed-badge__root--tone_brand-variant_solid {
|
|
60
116
|
background-color: var(--seed-color-bg-brand-solid);
|
|
61
|
-
color: var(--seed-color-
|
|
117
|
+
color: var(--seed-color-fg-on-brand-solid);
|
|
62
118
|
}
|
|
63
119
|
.seed-badge__root--tone_brand-variant_outline {
|
|
64
120
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-brand-weak);
|
|
65
|
-
color: var(--seed-color-fg-brand)
|
|
121
|
+
color: var(--seed-color-fg-brand);
|
|
66
122
|
}
|
|
67
123
|
.seed-badge__root--tone_informative-variant_weak {
|
|
68
124
|
background-color: var(--seed-color-bg-informative-weak);
|
|
69
|
-
color: var(--seed-color-fg-informative-contrast)
|
|
125
|
+
color: var(--seed-color-fg-informative-contrast);
|
|
70
126
|
}
|
|
71
127
|
.seed-badge__root--tone_informative-variant_solid {
|
|
72
128
|
background-color: var(--seed-color-bg-informative-solid);
|
|
73
|
-
color: var(--seed-color-
|
|
129
|
+
color: var(--seed-color-fg-on-informative-solid);
|
|
74
130
|
}
|
|
75
131
|
.seed-badge__root--tone_informative-variant_outline {
|
|
76
132
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-informative-weak);
|
|
77
|
-
color: var(--seed-color-fg-informative)
|
|
133
|
+
color: var(--seed-color-fg-informative);
|
|
78
134
|
}
|
|
79
135
|
.seed-badge__root--tone_positive-variant_weak {
|
|
80
136
|
background-color: var(--seed-color-bg-positive-weak);
|
|
81
|
-
color: var(--seed-color-fg-positive-contrast)
|
|
137
|
+
color: var(--seed-color-fg-positive-contrast);
|
|
82
138
|
}
|
|
83
139
|
.seed-badge__root--tone_positive-variant_solid {
|
|
84
140
|
background-color: var(--seed-color-bg-positive-solid);
|
|
85
|
-
color: var(--seed-color-
|
|
141
|
+
color: var(--seed-color-fg-on-positive-solid);
|
|
86
142
|
}
|
|
87
143
|
.seed-badge__root--tone_positive-variant_outline {
|
|
88
144
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-positive-weak);
|
|
89
|
-
color: var(--seed-color-fg-positive)
|
|
145
|
+
color: var(--seed-color-fg-positive);
|
|
90
146
|
}
|
|
91
147
|
.seed-badge__root--tone_warning-variant_weak {
|
|
92
148
|
background-color: var(--seed-color-bg-warning-weak);
|
|
93
|
-
color: var(--seed-color-fg-warning-contrast)
|
|
149
|
+
color: var(--seed-color-fg-warning-contrast);
|
|
94
150
|
}
|
|
95
151
|
.seed-badge__root--tone_warning-variant_solid {
|
|
96
152
|
background-color: var(--seed-color-bg-warning-solid);
|
|
97
|
-
color: var(--seed-color-
|
|
153
|
+
color: var(--seed-color-fg-on-warning-solid);
|
|
98
154
|
}
|
|
99
155
|
.seed-badge__root--tone_warning-variant_outline {
|
|
100
156
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-warning-weak);
|
|
101
|
-
color: var(--seed-color-fg-warning)
|
|
157
|
+
color: var(--seed-color-fg-warning);
|
|
102
158
|
}
|
|
103
159
|
.seed-badge__root--tone_critical-variant_weak {
|
|
104
160
|
background-color: var(--seed-color-bg-critical-weak);
|
|
105
|
-
color: var(--seed-color-fg-critical-contrast)
|
|
161
|
+
color: var(--seed-color-fg-critical-contrast);
|
|
106
162
|
}
|
|
107
163
|
.seed-badge__root--tone_critical-variant_solid {
|
|
108
164
|
background-color: var(--seed-color-bg-critical-solid);
|
|
109
|
-
color: var(--seed-color-
|
|
165
|
+
color: var(--seed-color-fg-on-critical-solid);
|
|
110
166
|
}
|
|
111
167
|
.seed-badge__root--tone_critical-variant_outline {
|
|
112
168
|
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-critical-weak);
|
|
113
|
-
color: var(--seed-color-fg-critical)
|
|
169
|
+
color: var(--seed-color-fg-critical);
|
|
114
170
|
}
|
package/recipes/badge.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare type BadgeVariantMap = {
|
|
|
29
29
|
|
|
30
30
|
export declare type BadgeVariantProps = Partial<BadgeVariant>;
|
|
31
31
|
|
|
32
|
-
export declare type BadgeSlotName = "root" | "label";
|
|
32
|
+
export declare type BadgeSlotName = "root" | "prefix" | "label" | "action";
|
|
33
33
|
|
|
34
34
|
export declare const badgeVariantMap: BadgeVariantMap;
|
|
35
35
|
|