@seed-design/css 2.9.0 → 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 +928 -1493
- package/all.layered.css +928 -1493
- package/all.layered.min.css +1 -1
- package/all.min.css +1 -1
- package/base.css +45 -4
- package/base.layered.css +45 -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/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 -118
- package/vars/component/top-navigation.mjs +0 -109
- package/vars/component/wheel-picker.d.ts +0 -72
- package/vars/component/wheel-picker.mjs +0 -72
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import './content-dialog.css';
|
|
2
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
-
|
|
4
|
-
const contentDialogSlotNames = [
|
|
5
|
-
[
|
|
6
|
-
"positioner",
|
|
7
|
-
"seed-content-dialog__positioner"
|
|
8
|
-
],
|
|
9
|
-
[
|
|
10
|
-
"backdrop",
|
|
11
|
-
"seed-content-dialog__backdrop"
|
|
12
|
-
],
|
|
13
|
-
[
|
|
14
|
-
"content",
|
|
15
|
-
"seed-content-dialog__content"
|
|
16
|
-
],
|
|
17
|
-
[
|
|
18
|
-
"header",
|
|
19
|
-
"seed-content-dialog__header"
|
|
20
|
-
],
|
|
21
|
-
[
|
|
22
|
-
"body",
|
|
23
|
-
"seed-content-dialog__body"
|
|
24
|
-
],
|
|
25
|
-
[
|
|
26
|
-
"footer",
|
|
27
|
-
"seed-content-dialog__footer"
|
|
28
|
-
],
|
|
29
|
-
[
|
|
30
|
-
"title",
|
|
31
|
-
"seed-content-dialog__title"
|
|
32
|
-
],
|
|
33
|
-
[
|
|
34
|
-
"description",
|
|
35
|
-
"seed-content-dialog__description"
|
|
36
|
-
],
|
|
37
|
-
[
|
|
38
|
-
"closeButton",
|
|
39
|
-
"seed-content-dialog__closeButton"
|
|
40
|
-
]
|
|
41
|
-
];
|
|
42
|
-
|
|
43
|
-
const defaultVariant = {
|
|
44
|
-
"size": "medium"
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
const compoundVariants = [];
|
|
48
|
-
|
|
49
|
-
export const contentDialogVariantMap = {
|
|
50
|
-
"size": [
|
|
51
|
-
"medium",
|
|
52
|
-
"large"
|
|
53
|
-
]
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const contentDialogVariantKeys = Object.keys(contentDialogVariantMap);
|
|
57
|
-
|
|
58
|
-
export function contentDialog(props) {
|
|
59
|
-
return Object.fromEntries(
|
|
60
|
-
contentDialogSlotNames.map(([slot, className]) => {
|
|
61
|
-
return [
|
|
62
|
-
slot,
|
|
63
|
-
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
64
|
-
];
|
|
65
|
-
}),
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
Object.assign(contentDialog, { splitVariantProps: (props) => splitVariantProps(props, contentDialogVariantMap) });
|
|
70
|
-
|
|
71
|
-
// @recipe(seed): content-dialog
|
package/recipes/control-chip.css
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
.seed-control-chip {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
align-items: center;
|
|
6
|
-
box-sizing: border-box;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
border: none;
|
|
9
|
-
text-transform: none;
|
|
10
|
-
text-align: start;
|
|
11
|
-
white-space: nowrap;
|
|
12
|
-
-webkit-font-smoothing: antialiased;
|
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
line-height: 1;
|
|
16
|
-
border-radius: var(--seed-radius-full);
|
|
17
|
-
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-muted);
|
|
18
|
-
color: var(--seed-color-fg-neutral);
|
|
19
|
-
font-weight: var(--seed-font-weight-medium);
|
|
20
|
-
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
21
|
-
--seed-suffix-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
22
|
-
--seed-icon-color: var(--seed-color-fg-neutral);
|
|
23
|
-
--seed-count-font-weight: var(--seed-font-weight-medium);
|
|
24
|
-
--seed-count-color: var(--seed-color-fg-neutral-muted);
|
|
25
|
-
}
|
|
26
|
-
.seed-control-chip:is(:focus, [data-focus]) {
|
|
27
|
-
outline: none;
|
|
28
|
-
}
|
|
29
|
-
.seed-control-chip:is(:active, [data-active]) {
|
|
30
|
-
background: var(--seed-color-bg-layer-default-pressed);
|
|
31
|
-
}
|
|
32
|
-
.seed-control-chip:is(:checked, [data-checked]) {
|
|
33
|
-
box-shadow: none;
|
|
34
|
-
background: var(--seed-color-bg-neutral-solid-muted);
|
|
35
|
-
color: var(--seed-color-palette-static-white);
|
|
36
|
-
font-weight: var(--seed-font-weight-bold);
|
|
37
|
-
--seed-prefix-icon-color: var(--seed-color-palette-static-white);
|
|
38
|
-
--seed-suffix-icon-color: var(--seed-color-palette-static-white);
|
|
39
|
-
--seed-icon-color: var(--seed-color-palette-static-white);
|
|
40
|
-
--seed-count-color: var(--seed-color-palette-static-white-alpha-800);
|
|
41
|
-
}
|
|
42
|
-
.seed-control-chip:is(:checked, [data-checked]):is(:active, [data-active]) {
|
|
43
|
-
background: var(--seed-color-bg-neutral-solid-muted-pressed);
|
|
44
|
-
}
|
|
45
|
-
.seed-control-chip:is(:disabled, [disabled], [data-disabled]) {
|
|
46
|
-
cursor: not-allowed;
|
|
47
|
-
background: var(--seed-color-bg-disabled);
|
|
48
|
-
color: var(--seed-color-fg-disabled);
|
|
49
|
-
--seed-prefix-icon-color: var(--seed-color-fg-disabled);
|
|
50
|
-
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
51
|
-
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
52
|
-
}
|
|
53
|
-
.seed-control-chip--size_medium {
|
|
54
|
-
min-height: var(--seed-dimension-x9);
|
|
55
|
-
padding-block: var(--seed-dimension-x2);
|
|
56
|
-
gap: var(--seed-dimension-x1);
|
|
57
|
-
font-size: var(--seed-font-size-t4);
|
|
58
|
-
line-height: var(--seed-line-height-t4);
|
|
59
|
-
--seed-prefix-icon-size: var(--seed-dimension-x4);
|
|
60
|
-
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
61
|
-
--seed-icon-size: var(--seed-dimension-x4);
|
|
62
|
-
--seed-count-font-size: var(--seed-font-size-t4);
|
|
63
|
-
}
|
|
64
|
-
.seed-control-chip--size_small {
|
|
65
|
-
min-height: var(--seed-dimension-x8);
|
|
66
|
-
padding-block: var(--seed-dimension-x1_5);
|
|
67
|
-
gap: var(--seed-dimension-x1);
|
|
68
|
-
font-size: var(--seed-font-size-t4);
|
|
69
|
-
line-height: var(--seed-line-height-t4);
|
|
70
|
-
--seed-prefix-icon-size: var(--seed-dimension-x4);
|
|
71
|
-
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
72
|
-
--seed-icon-size: var(--seed-dimension-x4);
|
|
73
|
-
--seed-count-font-size: var(--seed-font-size-t4);
|
|
74
|
-
}
|
|
75
|
-
.seed-control-chip--layout_withText {}
|
|
76
|
-
.seed-control-chip--layout_iconOnly {}
|
|
77
|
-
.seed-control-chip--size_medium-layout_withText {
|
|
78
|
-
padding-inline: var(--seed-dimension-x3_5);
|
|
79
|
-
}
|
|
80
|
-
.seed-control-chip--size_medium-layout_iconOnly {
|
|
81
|
-
min-width: var(--seed-dimension-x9);
|
|
82
|
-
}
|
|
83
|
-
.seed-control-chip--size_small-layout_withText {
|
|
84
|
-
padding-inline: var(--seed-dimension-x3);
|
|
85
|
-
}
|
|
86
|
-
.seed-control-chip--size_small-layout_iconOnly {
|
|
87
|
-
min-width: var(--seed-dimension-x8);
|
|
88
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare interface ControlChipVariant {
|
|
2
|
-
/**
|
|
3
|
-
* @default "medium"
|
|
4
|
-
*/
|
|
5
|
-
size: "medium" | "small";
|
|
6
|
-
/**
|
|
7
|
-
* @default "withText"
|
|
8
|
-
*/
|
|
9
|
-
layout: "withText" | "iconOnly";
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare type ControlChipVariantMap = {
|
|
13
|
-
[key in keyof ControlChipVariant]: Array<ControlChipVariant[key]>;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export declare type ControlChipVariantProps = Partial<ControlChipVariant>;
|
|
17
|
-
|
|
18
|
-
export declare const controlChipVariantMap: ControlChipVariantMap;
|
|
19
|
-
|
|
20
|
-
export declare const controlChip: ((
|
|
21
|
-
props?: ControlChipVariantProps,
|
|
22
|
-
) => string) & {
|
|
23
|
-
splitVariantProps: <T extends ControlChipVariantProps>(
|
|
24
|
-
props: T,
|
|
25
|
-
) => [ControlChipVariantProps, Omit<T, keyof ControlChipVariantProps>];
|
|
26
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
@layer seed-components {
|
|
2
|
-
.seed-control-chip {
|
|
3
|
-
box-sizing: border-box;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
text-transform: none;
|
|
6
|
-
text-align: start;
|
|
7
|
-
white-space: nowrap;
|
|
8
|
-
-webkit-font-smoothing: antialiased;
|
|
9
|
-
-moz-osx-font-smoothing: grayscale;
|
|
10
|
-
border-radius: var(--seed-radius-full);
|
|
11
|
-
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-muted);
|
|
12
|
-
color: var(--seed-color-fg-neutral);
|
|
13
|
-
line-height: 1;
|
|
14
|
-
font-weight: var(--seed-font-weight-medium);
|
|
15
|
-
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
16
|
-
--seed-suffix-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
17
|
-
--seed-icon-color: var(--seed-color-fg-neutral);
|
|
18
|
-
--seed-count-font-weight: var(--seed-font-weight-medium);
|
|
19
|
-
--seed-count-color: var(--seed-color-fg-neutral-muted);
|
|
20
|
-
border: none;
|
|
21
|
-
flex-shrink: 0;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
align-items: center;
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
position: relative;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.seed-control-chip:is(:focus, [data-focus]) {
|
|
29
|
-
outline: none;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.seed-control-chip:is(:active, [data-active]) {
|
|
33
|
-
background: var(--seed-color-bg-layer-default-pressed);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.seed-control-chip:is(:checked, [data-checked]) {
|
|
37
|
-
box-shadow: none;
|
|
38
|
-
background: var(--seed-color-bg-neutral-solid-muted);
|
|
39
|
-
color: var(--seed-color-palette-static-white);
|
|
40
|
-
font-weight: var(--seed-font-weight-bold);
|
|
41
|
-
--seed-prefix-icon-color: var(--seed-color-palette-static-white);
|
|
42
|
-
--seed-suffix-icon-color: var(--seed-color-palette-static-white);
|
|
43
|
-
--seed-icon-color: var(--seed-color-palette-static-white);
|
|
44
|
-
--seed-count-color: var(--seed-color-palette-static-white-alpha-800);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.seed-control-chip:is(:checked, [data-checked]):is(:active, [data-active]) {
|
|
48
|
-
background: var(--seed-color-bg-neutral-solid-muted-pressed);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.seed-control-chip:is(:disabled, [disabled], [data-disabled]) {
|
|
52
|
-
cursor: not-allowed;
|
|
53
|
-
background: var(--seed-color-bg-disabled);
|
|
54
|
-
color: var(--seed-color-fg-disabled);
|
|
55
|
-
--seed-prefix-icon-color: var(--seed-color-fg-disabled);
|
|
56
|
-
--seed-suffix-icon-color: var(--seed-color-fg-disabled);
|
|
57
|
-
--seed-icon-color: var(--seed-color-fg-disabled);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.seed-control-chip--size_medium {
|
|
61
|
-
min-height: var(--seed-dimension-x9);
|
|
62
|
-
padding-block: var(--seed-dimension-x2);
|
|
63
|
-
gap: var(--seed-dimension-x1);
|
|
64
|
-
font-size: var(--seed-font-size-t4);
|
|
65
|
-
line-height: var(--seed-line-height-t4);
|
|
66
|
-
--seed-prefix-icon-size: var(--seed-dimension-x4);
|
|
67
|
-
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
68
|
-
--seed-icon-size: var(--seed-dimension-x4);
|
|
69
|
-
--seed-count-font-size: var(--seed-font-size-t4);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.seed-control-chip--size_small {
|
|
73
|
-
min-height: var(--seed-dimension-x8);
|
|
74
|
-
padding-block: var(--seed-dimension-x1_5);
|
|
75
|
-
gap: var(--seed-dimension-x1);
|
|
76
|
-
font-size: var(--seed-font-size-t4);
|
|
77
|
-
line-height: var(--seed-line-height-t4);
|
|
78
|
-
--seed-prefix-icon-size: var(--seed-dimension-x4);
|
|
79
|
-
--seed-suffix-icon-size: var(--seed-dimension-x3_5);
|
|
80
|
-
--seed-icon-size: var(--seed-dimension-x4);
|
|
81
|
-
--seed-count-font-size: var(--seed-font-size-t4);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.seed-control-chip--size_medium-layout_withText {
|
|
85
|
-
padding-inline: var(--seed-dimension-x3_5);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.seed-control-chip--size_medium-layout_iconOnly {
|
|
89
|
-
min-width: var(--seed-dimension-x9);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.seed-control-chip--size_small-layout_withText {
|
|
93
|
-
padding-inline: var(--seed-dimension-x3);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.seed-control-chip--size_small-layout_iconOnly {
|
|
97
|
-
min-width: var(--seed-dimension-x8);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import './control-chip.layered.css';
|
|
2
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
-
|
|
4
|
-
const defaultVariant = {
|
|
5
|
-
"size": "medium",
|
|
6
|
-
"layout": "withText"
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const compoundVariants = [
|
|
10
|
-
{
|
|
11
|
-
"size": "medium",
|
|
12
|
-
"layout": "withText"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"size": "medium",
|
|
16
|
-
"layout": "iconOnly"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"size": "small",
|
|
20
|
-
"layout": "withText"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"size": "small",
|
|
24
|
-
"layout": "iconOnly"
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
export const controlChipVariantMap = {
|
|
29
|
-
"size": [
|
|
30
|
-
"medium",
|
|
31
|
-
"small"
|
|
32
|
-
],
|
|
33
|
-
"layout": [
|
|
34
|
-
"withText",
|
|
35
|
-
"iconOnly"
|
|
36
|
-
]
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const controlChipVariantKeys = Object.keys(controlChipVariantMap);
|
|
40
|
-
|
|
41
|
-
export function controlChip(props) {
|
|
42
|
-
return createClassName(
|
|
43
|
-
"seed-control-chip",
|
|
44
|
-
mergeVariants(defaultVariant, props),
|
|
45
|
-
compoundVariants,
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
Object.assign(controlChip, { splitVariantProps: (props) => splitVariantProps(props, controlChipVariantMap) });
|
|
50
|
-
|
|
51
|
-
// @recipe(seed): control-chip
|
package/recipes/control-chip.mjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import './control-chip.css';
|
|
2
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
-
|
|
4
|
-
const defaultVariant = {
|
|
5
|
-
"size": "medium",
|
|
6
|
-
"layout": "withText"
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const compoundVariants = [
|
|
10
|
-
{
|
|
11
|
-
"size": "medium",
|
|
12
|
-
"layout": "withText"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"size": "medium",
|
|
16
|
-
"layout": "iconOnly"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"size": "small",
|
|
20
|
-
"layout": "withText"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"size": "small",
|
|
24
|
-
"layout": "iconOnly"
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
export const controlChipVariantMap = {
|
|
29
|
-
"size": [
|
|
30
|
-
"medium",
|
|
31
|
-
"small"
|
|
32
|
-
],
|
|
33
|
-
"layout": [
|
|
34
|
-
"withText",
|
|
35
|
-
"iconOnly"
|
|
36
|
-
]
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const controlChipVariantKeys = Object.keys(controlChipVariantMap);
|
|
40
|
-
|
|
41
|
-
export function controlChip(props) {
|
|
42
|
-
return createClassName(
|
|
43
|
-
"seed-control-chip",
|
|
44
|
-
mergeVariants(defaultVariant, props),
|
|
45
|
-
compoundVariants,
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
Object.assign(controlChip, { splitVariantProps: (props) => splitVariantProps(props, controlChipVariantMap) });
|
|
50
|
-
|
|
51
|
-
// @recipe(seed): control-chip
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
.seed-extended-action-sheet-item {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
justify-content: flex-start;
|
|
5
|
-
background-color: var(--seed-color-bg-neutral-weak);
|
|
6
|
-
min-height: 52px;
|
|
7
|
-
padding-inline: var(--seed-dimension-x4);
|
|
8
|
-
padding-block: var(--seed-dimension-x3_5);
|
|
9
|
-
gap: var(--seed-dimension-x3_5);
|
|
10
|
-
box-shadow: inset 0 calc(-1 * 1px) 0 var(--seed-color-stroke-neutral-muted);
|
|
11
|
-
font-size: var(--seed-font-size-t5);
|
|
12
|
-
line-height: var(--seed-line-height-t5);
|
|
13
|
-
font-weight: var(--seed-font-weight-regular);
|
|
14
|
-
}
|
|
15
|
-
.seed-extended-action-sheet-item:is(:active, [data-active]) {
|
|
16
|
-
background-color: var(--seed-color-bg-neutral-weak-pressed);
|
|
17
|
-
}
|
|
18
|
-
.seed-extended-action-sheet-item:last-child {
|
|
19
|
-
box-shadow: none;
|
|
20
|
-
}
|
|
21
|
-
.seed-extended-action-sheet-item {
|
|
22
|
-
--seed-prefix-icon-size: 22px;
|
|
23
|
-
}
|
|
24
|
-
.seed-extended-action-sheet-item--tone_neutral {
|
|
25
|
-
color: var(--seed-color-fg-neutral);
|
|
26
|
-
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
27
|
-
}
|
|
28
|
-
.seed-extended-action-sheet-item--tone_critical {
|
|
29
|
-
color: var(--seed-color-fg-critical);
|
|
30
|
-
--seed-prefix-icon-color: var(--seed-color-fg-critical);
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare interface ExtendedActionSheetItemVariant {
|
|
2
|
-
/**
|
|
3
|
-
* @default "neutral"
|
|
4
|
-
*/
|
|
5
|
-
tone: "neutral" | "critical";
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
declare type ExtendedActionSheetItemVariantMap = {
|
|
9
|
-
[key in keyof ExtendedActionSheetItemVariant]: Array<ExtendedActionSheetItemVariant[key]>;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export declare type ExtendedActionSheetItemVariantProps = Partial<ExtendedActionSheetItemVariant>;
|
|
13
|
-
|
|
14
|
-
export declare const extendedActionSheetItemVariantMap: ExtendedActionSheetItemVariantMap;
|
|
15
|
-
|
|
16
|
-
export declare const extendedActionSheetItem: ((
|
|
17
|
-
props?: ExtendedActionSheetItemVariantProps,
|
|
18
|
-
) => string) & {
|
|
19
|
-
splitVariantProps: <T extends ExtendedActionSheetItemVariantProps>(
|
|
20
|
-
props: T,
|
|
21
|
-
) => [ExtendedActionSheetItemVariantProps, Omit<T, keyof ExtendedActionSheetItemVariantProps>];
|
|
22
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
@layer seed-components {
|
|
2
|
-
.seed-extended-action-sheet-item {
|
|
3
|
-
background-color: var(--seed-color-bg-neutral-weak);
|
|
4
|
-
min-height: 52px;
|
|
5
|
-
padding-inline: var(--seed-dimension-x4);
|
|
6
|
-
padding-block: var(--seed-dimension-x3_5);
|
|
7
|
-
justify-content: flex-start;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: var(--seed-dimension-x3_5);
|
|
10
|
-
box-shadow: inset 0 calc(-1 * 1px) 0 var(--seed-color-stroke-neutral-muted);
|
|
11
|
-
font-size: var(--seed-font-size-t5);
|
|
12
|
-
line-height: var(--seed-line-height-t5);
|
|
13
|
-
font-weight: var(--seed-font-weight-regular);
|
|
14
|
-
display: flex;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.seed-extended-action-sheet-item:is(:active, [data-active]) {
|
|
18
|
-
background-color: var(--seed-color-bg-neutral-weak-pressed);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.seed-extended-action-sheet-item:last-child {
|
|
22
|
-
box-shadow: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.seed-extended-action-sheet-item {
|
|
26
|
-
--seed-prefix-icon-size: 22px;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.seed-extended-action-sheet-item--tone_neutral {
|
|
30
|
-
color: var(--seed-color-fg-neutral);
|
|
31
|
-
--seed-prefix-icon-color: var(--seed-color-fg-neutral);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.seed-extended-action-sheet-item--tone_critical {
|
|
35
|
-
color: var(--seed-color-fg-critical);
|
|
36
|
-
--seed-prefix-icon-color: var(--seed-color-fg-critical);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import './extended-action-sheet-item.layered.css';
|
|
2
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
-
|
|
4
|
-
const defaultVariant = {
|
|
5
|
-
"tone": "neutral"
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const compoundVariants = [];
|
|
9
|
-
|
|
10
|
-
export const extendedActionSheetItemVariantMap = {
|
|
11
|
-
"tone": [
|
|
12
|
-
"neutral",
|
|
13
|
-
"critical"
|
|
14
|
-
]
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const extendedActionSheetItemVariantKeys = Object.keys(extendedActionSheetItemVariantMap);
|
|
18
|
-
|
|
19
|
-
export function extendedActionSheetItem(props) {
|
|
20
|
-
return createClassName(
|
|
21
|
-
"seed-extended-action-sheet-item",
|
|
22
|
-
mergeVariants(defaultVariant, props),
|
|
23
|
-
compoundVariants,
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
Object.assign(extendedActionSheetItem, { splitVariantProps: (props) => splitVariantProps(props, extendedActionSheetItemVariantMap) });
|
|
28
|
-
|
|
29
|
-
// @recipe(seed): extended-action-sheet-item
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import './extended-action-sheet-item.css';
|
|
2
|
-
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
-
|
|
4
|
-
const defaultVariant = {
|
|
5
|
-
"tone": "neutral"
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
const compoundVariants = [];
|
|
9
|
-
|
|
10
|
-
export const extendedActionSheetItemVariantMap = {
|
|
11
|
-
"tone": [
|
|
12
|
-
"neutral",
|
|
13
|
-
"critical"
|
|
14
|
-
]
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export const extendedActionSheetItemVariantKeys = Object.keys(extendedActionSheetItemVariantMap);
|
|
18
|
-
|
|
19
|
-
export function extendedActionSheetItem(props) {
|
|
20
|
-
return createClassName(
|
|
21
|
-
"seed-extended-action-sheet-item",
|
|
22
|
-
mergeVariants(defaultVariant, props),
|
|
23
|
-
compoundVariants,
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
Object.assign(extendedActionSheetItem, { splitVariantProps: (props) => splitVariantProps(props, extendedActionSheetItemVariantMap) });
|
|
28
|
-
|
|
29
|
-
// @recipe(seed): extended-action-sheet-item
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
.seed-extended-action-sheet__positioner {
|
|
2
|
-
position: fixed;
|
|
3
|
-
display: flex;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
align-items: flex-end;
|
|
6
|
-
top: 0;
|
|
7
|
-
right: 0;
|
|
8
|
-
bottom: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
overscroll-behavior-y: none;
|
|
11
|
-
--sheet-z-index: 2;
|
|
12
|
-
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
13
|
-
}
|
|
14
|
-
.seed-extended-action-sheet__backdrop {
|
|
15
|
-
position: fixed;
|
|
16
|
-
top: 0;
|
|
17
|
-
right: 0;
|
|
18
|
-
bottom: 0;
|
|
19
|
-
left: 0;
|
|
20
|
-
background: var(--seed-color-bg-overlay);
|
|
21
|
-
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
22
|
-
}
|
|
23
|
-
.seed-extended-action-sheet__backdrop:not(:is([data-state="open"], [data-open])) {
|
|
24
|
-
animation: seed-exit;
|
|
25
|
-
animation-timing-function: var(--seed-timing-function-exit);
|
|
26
|
-
animation-duration: var(--seed-duration-d2);
|
|
27
|
-
animation-fill-mode: forwards;
|
|
28
|
-
--seed-exit-translate-x: 0;
|
|
29
|
-
--seed-exit-translate-y: 0;
|
|
30
|
-
--seed-exit-opacity: 0;
|
|
31
|
-
--seed-exit-scale: 1;
|
|
32
|
-
}
|
|
33
|
-
.seed-extended-action-sheet__backdrop:is([data-state="open"], [data-open]) {
|
|
34
|
-
animation: seed-enter;
|
|
35
|
-
animation-timing-function: var(--seed-timing-function-enter);
|
|
36
|
-
animation-duration: var(--seed-duration-d2);
|
|
37
|
-
--seed-enter-translate-x: 0;
|
|
38
|
-
--seed-enter-translate-y: 0;
|
|
39
|
-
--seed-enter-opacity: 0;
|
|
40
|
-
--seed-enter-scale: 1;
|
|
41
|
-
}
|
|
42
|
-
.seed-extended-action-sheet__content {
|
|
43
|
-
position: relative;
|
|
44
|
-
display: flex;
|
|
45
|
-
flex: 1;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
box-sizing: border-box;
|
|
48
|
-
word-break: break-all;
|
|
49
|
-
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
50
|
-
background: var(--seed-color-bg-layer-floating);
|
|
51
|
-
padding-inline: var(--seed-dimension-spacing-x-global-gutter);
|
|
52
|
-
padding-block: var(--seed-dimension-x4);
|
|
53
|
-
border-top-left-radius: var(--seed-radius-r5);
|
|
54
|
-
border-top-right-radius: var(--seed-radius-r5);
|
|
55
|
-
}
|
|
56
|
-
.seed-extended-action-sheet__content:not(:is([data-state="open"], [data-open])) {
|
|
57
|
-
animation: seed-exit;
|
|
58
|
-
animation-timing-function: var(--seed-timing-function-exit);
|
|
59
|
-
animation-duration: var(--seed-duration-d4);
|
|
60
|
-
animation-fill-mode: forwards;
|
|
61
|
-
--seed-exit-translate-x: 0;
|
|
62
|
-
--seed-exit-translate-y: 100%;
|
|
63
|
-
--seed-exit-opacity: 1;
|
|
64
|
-
--seed-exit-scale: 1;
|
|
65
|
-
}
|
|
66
|
-
.seed-extended-action-sheet__content:is([data-state="open"], [data-open]) {
|
|
67
|
-
animation: seed-enter;
|
|
68
|
-
animation-timing-function: var(--seed-timing-function-enter-expressive);
|
|
69
|
-
animation-duration: var(--seed-duration-d6);
|
|
70
|
-
--seed-enter-translate-x: 0;
|
|
71
|
-
--seed-enter-translate-y: 100%;
|
|
72
|
-
--seed-enter-opacity: 1;
|
|
73
|
-
--seed-enter-scale: 1;
|
|
74
|
-
}
|
|
75
|
-
.seed-extended-action-sheet__header {
|
|
76
|
-
display: flex;
|
|
77
|
-
flex-direction: column;
|
|
78
|
-
align-items: center;
|
|
79
|
-
gap: var(--seed-dimension-x1);
|
|
80
|
-
padding-bottom: var(--seed-dimension-x4);
|
|
81
|
-
}
|
|
82
|
-
.seed-extended-action-sheet__title {
|
|
83
|
-
color: var(--seed-color-fg-neutral);
|
|
84
|
-
font-size: var(--seed-font-size-t6);
|
|
85
|
-
line-height: var(--seed-line-height-t6);
|
|
86
|
-
font-weight: var(--seed-font-weight-bold);
|
|
87
|
-
}
|
|
88
|
-
.seed-extended-action-sheet__list {
|
|
89
|
-
display: flex;
|
|
90
|
-
flex-direction: column;
|
|
91
|
-
align-items: stretch;
|
|
92
|
-
gap: var(--seed-dimension-x2_5);
|
|
93
|
-
}
|
|
94
|
-
.seed-extended-action-sheet__group {
|
|
95
|
-
display: flex;
|
|
96
|
-
flex-direction: column;
|
|
97
|
-
align-items: stretch;
|
|
98
|
-
overflow: hidden;
|
|
99
|
-
border-radius: var(--seed-radius-r4);
|
|
100
|
-
}
|
|
101
|
-
.seed-extended-action-sheet__footer {
|
|
102
|
-
display: flex;
|
|
103
|
-
flex-direction: column;
|
|
104
|
-
align-items: stretch;
|
|
105
|
-
padding-top: var(--seed-dimension-x2_5);
|
|
106
|
-
}
|
|
107
|
-
.seed-extended-action-sheet__closeButton {
|
|
108
|
-
display: flex;
|
|
109
|
-
align-items: center;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
background-color: var(--seed-color-bg-neutral-weak);
|
|
112
|
-
min-height: 52px;
|
|
113
|
-
padding-inline: var(--seed-dimension-x5);
|
|
114
|
-
padding-block: var(--seed-dimension-x3_5);
|
|
115
|
-
border-radius: var(--seed-radius-r3);
|
|
116
|
-
color: var(--seed-color-fg-neutral);
|
|
117
|
-
font-size: var(--seed-font-size-t5);
|
|
118
|
-
line-height: var(--seed-line-height-t5);
|
|
119
|
-
font-weight: var(--seed-font-weight-medium);
|
|
120
|
-
}
|
|
121
|
-
.seed-extended-action-sheet__closeButton:is(:active, [data-active]) {
|
|
122
|
-
background-color: var(--seed-color-bg-neutral-weak-pressed);
|
|
123
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
declare interface ExtendedActionSheetVariant {
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
declare type ExtendedActionSheetVariantMap = {
|
|
6
|
-
[key in keyof ExtendedActionSheetVariant]: Array<ExtendedActionSheetVariant[key]>;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export declare type ExtendedActionSheetVariantProps = Partial<ExtendedActionSheetVariant>;
|
|
10
|
-
|
|
11
|
-
export declare type ExtendedActionSheetSlotName = "backdrop" | "positioner" | "content" | "header" | "title" | "list" | "group" | "footer" | "closeButton";
|
|
12
|
-
|
|
13
|
-
export declare const extendedActionSheetVariantMap: ExtendedActionSheetVariantMap;
|
|
14
|
-
|
|
15
|
-
export declare const extendedActionSheet: ((
|
|
16
|
-
props?: ExtendedActionSheetVariantProps,
|
|
17
|
-
) => Record<ExtendedActionSheetSlotName, string>) & {
|
|
18
|
-
splitVariantProps: <T extends ExtendedActionSheetVariantProps>(
|
|
19
|
-
props: T,
|
|
20
|
-
) => [ExtendedActionSheetVariantProps, Omit<T, keyof ExtendedActionSheetVariantProps>];
|
|
21
|
-
}
|