@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
package/recipes/dialog.css
CHANGED
|
@@ -14,39 +14,150 @@
|
|
|
14
14
|
background: var(--seed-color-bg-overlay);
|
|
15
15
|
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
16
16
|
}
|
|
17
|
+
.seed-dialog__backdrop:is([data-state="open"], [data-open]) {
|
|
18
|
+
animation: seed-enter;
|
|
19
|
+
animation-timing-function: var(--seed-timing-function-enter);
|
|
20
|
+
animation-duration: var(--seed-duration-d2);
|
|
21
|
+
--seed-enter-translate-x: 0;
|
|
22
|
+
--seed-enter-translate-y: 0;
|
|
23
|
+
--seed-enter-opacity: 0;
|
|
24
|
+
--seed-enter-scale: 1;
|
|
25
|
+
}
|
|
26
|
+
.seed-dialog__backdrop:not(:is([data-state="open"], [data-open])) {
|
|
27
|
+
animation: seed-exit;
|
|
28
|
+
animation-timing-function: var(--seed-timing-function-exit);
|
|
29
|
+
animation-duration: var(--seed-duration-d2);
|
|
30
|
+
animation-fill-mode: forwards;
|
|
31
|
+
--seed-exit-translate-x: 0;
|
|
32
|
+
--seed-exit-translate-y: 0;
|
|
33
|
+
--seed-exit-opacity: 0;
|
|
34
|
+
--seed-exit-scale: 1;
|
|
35
|
+
}
|
|
17
36
|
.seed-dialog__content {
|
|
18
37
|
position: relative;
|
|
19
38
|
outline: none;
|
|
20
39
|
display: flex;
|
|
21
|
-
flex:
|
|
40
|
+
flex: 0 0 auto;
|
|
22
41
|
flex-direction: column;
|
|
23
42
|
box-sizing: border-box;
|
|
24
43
|
word-break: break-all;
|
|
25
44
|
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
26
45
|
background: var(--seed-color-bg-layer-floating);
|
|
27
|
-
max-width: 272px;
|
|
28
|
-
margin: auto var(--seed-dimension-x8);
|
|
29
46
|
border-radius: var(--seed-radius-r5);
|
|
47
|
+
--dialog-default-width: calc(0.9 * 100vw);
|
|
48
|
+
--dialog-default-max-width: calc(0.9 * 100%);
|
|
49
|
+
--seed-box-width-base: var(--dialog-default-width);
|
|
50
|
+
--seed-box-width-sm: var(--seed-box-width-base, initial);
|
|
51
|
+
--seed-box-width-md: var(--seed-box-width-sm, initial);
|
|
52
|
+
--seed-box-width-lg: var(--seed-box-width-md, initial);
|
|
53
|
+
--seed-box-width-xl: var(--seed-box-width-lg, initial);
|
|
54
|
+
--seed-box-width: var(--seed-box-width-base, initial);
|
|
55
|
+
--seed-box-max-width-base: var(--dialog-default-max-width);
|
|
56
|
+
--seed-box-max-width-sm: var(--seed-box-max-width-base, initial);
|
|
57
|
+
--seed-box-max-width-md: var(--seed-box-max-width-sm, initial);
|
|
58
|
+
--seed-box-max-width-lg: var(--seed-box-max-width-md, initial);
|
|
59
|
+
--seed-box-max-width-xl: var(--seed-box-max-width-lg, initial);
|
|
60
|
+
--seed-box-max-width: var(--seed-box-max-width-base, initial);
|
|
61
|
+
width: var(--seed-box-width);
|
|
62
|
+
max-width: var(--seed-box-max-width);
|
|
63
|
+
max-height: calc(0.8 * 100vh);
|
|
64
|
+
max-height: calc(0.8 * 100dvh);
|
|
30
65
|
}
|
|
31
|
-
|
|
32
|
-
|
|
66
|
+
@media (min-width: 768px) {
|
|
67
|
+
.seed-dialog__content {
|
|
68
|
+
--dialog-default-width: var(--dialog-size-width);
|
|
69
|
+
--dialog-default-max-width: calc(100vw - 2 * var(--seed-dimension-x5));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
.seed-dialog__content:is([data-state="open"], [data-open]) {
|
|
73
|
+
animation: seed-enter;
|
|
74
|
+
animation-timing-function: var(--seed-timing-function-enter-expressive);
|
|
75
|
+
animation-duration: var(--seed-duration-d4);
|
|
76
|
+
--seed-enter-translate-x: 0;
|
|
77
|
+
--seed-enter-translate-y: 0;
|
|
78
|
+
--seed-enter-opacity: 0;
|
|
79
|
+
--seed-enter-scale: 1.3;
|
|
80
|
+
}
|
|
81
|
+
.seed-dialog__content:not(:is([data-state="open"], [data-open])) {
|
|
82
|
+
animation: seed-exit;
|
|
83
|
+
animation-timing-function: var(--seed-timing-function-exit);
|
|
84
|
+
animation-duration: var(--seed-duration-d2);
|
|
85
|
+
animation-fill-mode: forwards;
|
|
86
|
+
--seed-exit-translate-x: 0;
|
|
87
|
+
--seed-exit-translate-y: 0;
|
|
88
|
+
--seed-exit-opacity: 0;
|
|
89
|
+
--seed-exit-scale: 1;
|
|
33
90
|
}
|
|
34
91
|
.seed-dialog__header {
|
|
35
92
|
display: flex;
|
|
36
93
|
flex-direction: column;
|
|
37
|
-
|
|
38
|
-
padding-top: var(--seed-dimension-x5);
|
|
94
|
+
flex-shrink: 0;
|
|
39
95
|
gap: var(--seed-dimension-x1_5);
|
|
96
|
+
padding-inline: var(--seed-dimension-x6);
|
|
97
|
+
padding-top: var(--seed-dimension-x6);
|
|
98
|
+
padding-bottom: var(--seed-dimension-x4);
|
|
99
|
+
}
|
|
100
|
+
.seed-dialog__header[data-show-close-button] {
|
|
101
|
+
padding-right: calc(var(--seed-dimension-x6) + 22px + var(--seed-dimension-x1_5));
|
|
102
|
+
}
|
|
103
|
+
.seed-dialog__body {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
flex: 1;
|
|
108
|
+
overflow-y: auto;
|
|
109
|
+
--seed-box-padding-x-base: var(--seed-dimension-x6);
|
|
110
|
+
--seed-box-padding-x-sm: var(--seed-box-padding-x-base, initial);
|
|
111
|
+
--seed-box-padding-x-md: var(--seed-box-padding-x-sm, initial);
|
|
112
|
+
--seed-box-padding-x-lg: var(--seed-box-padding-x-md, initial);
|
|
113
|
+
--seed-box-padding-x-xl: var(--seed-box-padding-x-lg, initial);
|
|
114
|
+
--seed-box-padding-x: var(--seed-box-padding-x-base, initial);
|
|
115
|
+
--seed-box-min-height-base: 0;
|
|
116
|
+
--seed-box-min-height-sm: var(--seed-box-min-height-base, initial);
|
|
117
|
+
--seed-box-min-height-md: var(--seed-box-min-height-sm, initial);
|
|
118
|
+
--seed-box-min-height-lg: var(--seed-box-min-height-md, initial);
|
|
119
|
+
--seed-box-min-height-xl: var(--seed-box-min-height-lg, initial);
|
|
120
|
+
--seed-box-min-height: var(--seed-box-min-height-base, initial);
|
|
121
|
+
--seed-box-max-height-base: none;
|
|
122
|
+
--seed-box-max-height-sm: var(--seed-box-max-height-base, initial);
|
|
123
|
+
--seed-box-max-height-md: var(--seed-box-max-height-sm, initial);
|
|
124
|
+
--seed-box-max-height-lg: var(--seed-box-max-height-md, initial);
|
|
125
|
+
--seed-box-max-height-xl: var(--seed-box-max-height-lg, initial);
|
|
126
|
+
--seed-box-max-height: var(--seed-box-max-height-base, initial);
|
|
127
|
+
--seed-box-justify-content: initial;
|
|
128
|
+
--seed-box-align-items: initial;
|
|
129
|
+
padding-inline: var(--seed-box-padding-x);
|
|
130
|
+
min-height: var(--seed-box-min-height);
|
|
131
|
+
max-height: var(--seed-box-max-height);
|
|
132
|
+
justify-content: var(--seed-box-justify-content);
|
|
133
|
+
align-items: var(--seed-box-align-items);
|
|
134
|
+
transition: box-shadow var(--seed-duration-color-transition) var(--seed-timing-function-easing);
|
|
135
|
+
}
|
|
136
|
+
.seed-dialog__body[data-scrolled]:not(:first-child) {
|
|
137
|
+
box-shadow: inset 0 1px 0 0 var(--seed-color-stroke-neutral-muted);
|
|
138
|
+
}
|
|
139
|
+
.seed-dialog__body[data-overflow] {
|
|
140
|
+
padding-bottom: var(--seed-dimension-x12);
|
|
141
|
+
mask-image: linear-gradient(to top, transparent 0, black var(--seed-dimension-x12));
|
|
142
|
+
-webkit-mask-image: linear-gradient(to top, transparent 0, black var(--seed-dimension-x12));
|
|
143
|
+
}
|
|
144
|
+
.seed-dialog__body {
|
|
145
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
146
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
147
|
+
}
|
|
148
|
+
.seed-dialog__body:is(:focus-visible, [data-focus-visible]) {
|
|
149
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
150
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
40
151
|
}
|
|
41
152
|
.seed-dialog__title {
|
|
42
153
|
color: var(--seed-color-fg-neutral);
|
|
43
|
-
font-size: var(--seed-font-size-
|
|
44
|
-
line-height: var(--seed-line-height-
|
|
154
|
+
font-size: var(--seed-font-size-t8);
|
|
155
|
+
line-height: var(--seed-line-height-t8);
|
|
45
156
|
font-weight: var(--seed-font-weight-bold);
|
|
46
157
|
margin: 0;
|
|
47
158
|
}
|
|
48
159
|
.seed-dialog__description {
|
|
49
|
-
color: var(--seed-color-fg-neutral);
|
|
160
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
50
161
|
font-size: var(--seed-font-size-t5);
|
|
51
162
|
line-height: var(--seed-line-height-t5);
|
|
52
163
|
font-weight: var(--seed-font-weight-regular);
|
|
@@ -57,45 +168,94 @@
|
|
|
57
168
|
display: flex;
|
|
58
169
|
flex-direction: column;
|
|
59
170
|
align-items: stretch;
|
|
60
|
-
|
|
171
|
+
flex-shrink: 0;
|
|
172
|
+
padding-inline: var(--seed-dimension-x6);
|
|
61
173
|
padding-top: var(--seed-dimension-x4);
|
|
62
|
-
padding-bottom: var(--seed-dimension-
|
|
174
|
+
padding-bottom: var(--seed-dimension-x6);
|
|
63
175
|
}
|
|
64
|
-
.seed-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
176
|
+
.seed-dialog__closeButton {
|
|
177
|
+
position: absolute;
|
|
178
|
+
top: var(--seed-dimension-x7);
|
|
179
|
+
right: var(--seed-dimension-x6);
|
|
180
|
+
display: flex;
|
|
181
|
+
justify-content: center;
|
|
182
|
+
align-items: center;
|
|
183
|
+
border: none;
|
|
184
|
+
background: var(--seed-color-bg-transparent);
|
|
185
|
+
border-radius: var(--seed-radius-r3);
|
|
186
|
+
padding: calc((52px - 22px) / 2);
|
|
187
|
+
margin: calc((22px - 52px) / 2);
|
|
188
|
+
cursor: pointer;
|
|
189
|
+
transition: background var(--seed-duration-color-transition) var(--seed-timing-function-easing), scale var(--seed-duration-pressed-scale) var(--seed-timing-function-pressed-scale), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
190
|
+
--seed-icon-size: 22px;
|
|
191
|
+
--seed-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
192
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
193
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
72
194
|
}
|
|
73
|
-
.seed-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
animation-duration: var(--seed-duration-d2);
|
|
77
|
-
animation-fill-mode: forwards;
|
|
78
|
-
--seed-exit-translate-x: 0;
|
|
79
|
-
--seed-exit-translate-y: 0;
|
|
80
|
-
--seed-exit-opacity: 0;
|
|
81
|
-
--seed-exit-scale: 1;
|
|
195
|
+
.seed-dialog__closeButton:is(:focus-visible, [data-focus-visible]) {
|
|
196
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
197
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
82
198
|
}
|
|
83
|
-
.seed-
|
|
84
|
-
|
|
85
|
-
animation-timing-function: var(--seed-timing-function-enter-expressive);
|
|
86
|
-
animation-duration: var(--seed-duration-d4);
|
|
87
|
-
--seed-enter-translate-x: 0;
|
|
88
|
-
--seed-enter-translate-y: 0;
|
|
89
|
-
--seed-enter-opacity: 0;
|
|
90
|
-
--seed-enter-scale: 1.3;
|
|
199
|
+
.seed-dialog__closeButton:is(:active, [data-active]) {
|
|
200
|
+
scale: var(--seed-feedback-scale);
|
|
91
201
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
202
|
+
@media (hover: hover) and (pointer: fine) {
|
|
203
|
+
.seed-dialog__closeButton:is(:hover, [data-hover]) {
|
|
204
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
@media not all and (hover: hover) and (pointer: fine) {
|
|
208
|
+
.seed-dialog__closeButton:is(:active, [data-active]) {
|
|
209
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
.seed-dialog__content--size_medium {
|
|
213
|
+
--dialog-size-width: 480px;
|
|
214
|
+
}
|
|
215
|
+
.seed-dialog__content--size_large {
|
|
216
|
+
--dialog-size-width: 800px;
|
|
217
|
+
}
|
|
218
|
+
@media (min-width: 480px) {
|
|
219
|
+
.seed-dialog__content {
|
|
220
|
+
--seed-box-width: var(--seed-box-width-sm, initial);
|
|
221
|
+
--seed-box-max-width: var(--seed-box-max-width-sm, initial);
|
|
222
|
+
}
|
|
223
|
+
.seed-dialog__body {
|
|
224
|
+
--seed-box-padding-x: var(--seed-box-padding-x-sm, initial);
|
|
225
|
+
--seed-box-min-height: var(--seed-box-min-height-sm, initial);
|
|
226
|
+
--seed-box-max-height: var(--seed-box-max-height-sm, initial);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
@media (min-width: 768px) {
|
|
230
|
+
.seed-dialog__content {
|
|
231
|
+
--seed-box-width: var(--seed-box-width-md, initial);
|
|
232
|
+
--seed-box-max-width: var(--seed-box-max-width-md, initial);
|
|
233
|
+
}
|
|
234
|
+
.seed-dialog__body {
|
|
235
|
+
--seed-box-padding-x: var(--seed-box-padding-x-md, initial);
|
|
236
|
+
--seed-box-min-height: var(--seed-box-min-height-md, initial);
|
|
237
|
+
--seed-box-max-height: var(--seed-box-max-height-md, initial);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
@media (min-width: 1280px) {
|
|
241
|
+
.seed-dialog__content {
|
|
242
|
+
--seed-box-width: var(--seed-box-width-lg, initial);
|
|
243
|
+
--seed-box-max-width: var(--seed-box-max-width-lg, initial);
|
|
244
|
+
}
|
|
245
|
+
.seed-dialog__body {
|
|
246
|
+
--seed-box-padding-x: var(--seed-box-padding-x-lg, initial);
|
|
247
|
+
--seed-box-min-height: var(--seed-box-min-height-lg, initial);
|
|
248
|
+
--seed-box-max-height: var(--seed-box-max-height-lg, initial);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
@media (min-width: 1440px) {
|
|
252
|
+
.seed-dialog__content {
|
|
253
|
+
--seed-box-width: var(--seed-box-width-xl, initial);
|
|
254
|
+
--seed-box-max-width: var(--seed-box-max-width-xl, initial);
|
|
255
|
+
}
|
|
256
|
+
.seed-dialog__body {
|
|
257
|
+
--seed-box-padding-x: var(--seed-box-padding-x-xl, initial);
|
|
258
|
+
--seed-box-min-height: var(--seed-box-min-height-xl, initial);
|
|
259
|
+
--seed-box-max-height: var(--seed-box-max-height-xl, initial);
|
|
260
|
+
}
|
|
101
261
|
}
|
package/recipes/dialog.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare interface DialogVariant {
|
|
2
2
|
/**
|
|
3
|
-
* @default
|
|
3
|
+
* @default "medium"
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
size: "medium" | "large";
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
declare type DialogVariantMap = {
|
|
@@ -11,7 +11,7 @@ declare type DialogVariantMap = {
|
|
|
11
11
|
|
|
12
12
|
export declare type DialogVariantProps = Partial<DialogVariant>;
|
|
13
13
|
|
|
14
|
-
export declare type DialogSlotName = "positioner" | "backdrop" | "content" | "header" | "
|
|
14
|
+
export declare type DialogSlotName = "positioner" | "backdrop" | "content" | "header" | "body" | "footer" | "title" | "description" | "closeButton";
|
|
15
15
|
|
|
16
16
|
export declare const dialogVariantMap: DialogVariantMap;
|
|
17
17
|
|
|
@@ -17,43 +17,165 @@
|
|
|
17
17
|
inset: 0;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
.seed-dialog__backdrop:is([data-state="open"], [data-open]) {
|
|
21
|
+
animation: seed-enter;
|
|
22
|
+
animation-timing-function: var(--seed-timing-function-enter);
|
|
23
|
+
animation-duration: var(--seed-duration-d2);
|
|
24
|
+
--seed-enter-translate-x: 0;
|
|
25
|
+
--seed-enter-translate-y: 0;
|
|
26
|
+
--seed-enter-opacity: 0;
|
|
27
|
+
--seed-enter-scale: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.seed-dialog__backdrop:not(:is([data-state="open"], [data-open])) {
|
|
31
|
+
animation: seed-exit;
|
|
32
|
+
animation-timing-function: var(--seed-timing-function-exit);
|
|
33
|
+
animation-duration: var(--seed-duration-d2);
|
|
34
|
+
--seed-exit-translate-x: 0;
|
|
35
|
+
--seed-exit-translate-y: 0;
|
|
36
|
+
--seed-exit-opacity: 0;
|
|
37
|
+
--seed-exit-scale: 1;
|
|
38
|
+
animation-fill-mode: forwards;
|
|
39
|
+
}
|
|
40
|
+
|
|
20
41
|
.seed-dialog__content {
|
|
21
42
|
box-sizing: border-box;
|
|
22
43
|
word-break: break-all;
|
|
23
44
|
z-index: calc(var(--dialog-z-index) + var(--layer-index, 0));
|
|
24
45
|
background: var(--seed-color-bg-layer-floating);
|
|
25
|
-
max-width: 272px;
|
|
26
|
-
margin: auto var(--seed-dimension-x8);
|
|
27
46
|
border-radius: var(--seed-radius-r5);
|
|
47
|
+
--dialog-default-width: calc(.9 * 100vw);
|
|
48
|
+
--dialog-default-max-width: calc(.9 * 100%);
|
|
49
|
+
--seed-box-width-base: var(--dialog-default-width);
|
|
50
|
+
--seed-box-width-sm: var(--seed-box-width-base, initial);
|
|
51
|
+
--seed-box-width-md: var(--seed-box-width-sm, initial);
|
|
52
|
+
--seed-box-width-lg: var(--seed-box-width-md, initial);
|
|
53
|
+
--seed-box-width-xl: var(--seed-box-width-lg, initial);
|
|
54
|
+
--seed-box-width: var(--seed-box-width-base, initial);
|
|
55
|
+
--seed-box-max-width-base: var(--dialog-default-max-width);
|
|
56
|
+
--seed-box-max-width-sm: var(--seed-box-max-width-base, initial);
|
|
57
|
+
--seed-box-max-width-md: var(--seed-box-max-width-sm, initial);
|
|
58
|
+
--seed-box-max-width-lg: var(--seed-box-max-width-md, initial);
|
|
59
|
+
--seed-box-max-width-xl: var(--seed-box-max-width-lg, initial);
|
|
60
|
+
--seed-box-max-width: var(--seed-box-max-width-base, initial);
|
|
61
|
+
width: var(--seed-box-width);
|
|
62
|
+
max-width: var(--seed-box-max-width);
|
|
63
|
+
max-height: 80vh;
|
|
28
64
|
outline: none;
|
|
29
65
|
flex-direction: column;
|
|
30
|
-
flex:
|
|
66
|
+
flex: none;
|
|
67
|
+
max-height: 80dvh;
|
|
31
68
|
display: flex;
|
|
32
69
|
position: relative;
|
|
33
70
|
}
|
|
34
71
|
|
|
35
|
-
|
|
36
|
-
|
|
72
|
+
@media (min-width: 768px) {
|
|
73
|
+
.seed-dialog__content {
|
|
74
|
+
--dialog-default-width: var(--dialog-size-width);
|
|
75
|
+
--dialog-default-max-width: calc(100vw - 2 * var(--seed-dimension-x5));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.seed-dialog__content:is([data-state="open"], [data-open]) {
|
|
80
|
+
animation: seed-enter;
|
|
81
|
+
animation-timing-function: var(--seed-timing-function-enter-expressive);
|
|
82
|
+
animation-duration: var(--seed-duration-d4);
|
|
83
|
+
--seed-enter-translate-x: 0;
|
|
84
|
+
--seed-enter-translate-y: 0;
|
|
85
|
+
--seed-enter-opacity: 0;
|
|
86
|
+
--seed-enter-scale: 1.3;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.seed-dialog__content:not(:is([data-state="open"], [data-open])) {
|
|
90
|
+
animation: seed-exit;
|
|
91
|
+
animation-timing-function: var(--seed-timing-function-exit);
|
|
92
|
+
animation-duration: var(--seed-duration-d2);
|
|
93
|
+
--seed-exit-translate-x: 0;
|
|
94
|
+
--seed-exit-translate-y: 0;
|
|
95
|
+
--seed-exit-opacity: 0;
|
|
96
|
+
--seed-exit-scale: 1;
|
|
97
|
+
animation-fill-mode: forwards;
|
|
37
98
|
}
|
|
38
99
|
|
|
39
100
|
.seed-dialog__header {
|
|
40
|
-
padding-inline: var(--seed-dimension-x5);
|
|
41
|
-
padding-top: var(--seed-dimension-x5);
|
|
42
101
|
gap: var(--seed-dimension-x1_5);
|
|
102
|
+
padding-inline: var(--seed-dimension-x6);
|
|
103
|
+
padding-top: var(--seed-dimension-x6);
|
|
104
|
+
padding-bottom: var(--seed-dimension-x4);
|
|
43
105
|
flex-direction: column;
|
|
106
|
+
flex-shrink: 0;
|
|
44
107
|
display: flex;
|
|
45
108
|
}
|
|
46
109
|
|
|
110
|
+
.seed-dialog__header[data-show-close-button] {
|
|
111
|
+
padding-right: calc(var(--seed-dimension-x6) + 22px + var(--seed-dimension-x1_5));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.seed-dialog__body {
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
--seed-box-padding-x-base: var(--seed-dimension-x6);
|
|
117
|
+
--seed-box-padding-x-sm: var(--seed-box-padding-x-base, initial);
|
|
118
|
+
--seed-box-padding-x-md: var(--seed-box-padding-x-sm, initial);
|
|
119
|
+
--seed-box-padding-x-lg: var(--seed-box-padding-x-md, initial);
|
|
120
|
+
--seed-box-padding-x-xl: var(--seed-box-padding-x-lg, initial);
|
|
121
|
+
--seed-box-padding-x: var(--seed-box-padding-x-base, initial);
|
|
122
|
+
--seed-box-min-height-base: 0;
|
|
123
|
+
--seed-box-min-height-sm: var(--seed-box-min-height-base, initial);
|
|
124
|
+
--seed-box-min-height-md: var(--seed-box-min-height-sm, initial);
|
|
125
|
+
--seed-box-min-height-lg: var(--seed-box-min-height-md, initial);
|
|
126
|
+
--seed-box-min-height-xl: var(--seed-box-min-height-lg, initial);
|
|
127
|
+
--seed-box-min-height: var(--seed-box-min-height-base, initial);
|
|
128
|
+
--seed-box-max-height-base: none;
|
|
129
|
+
--seed-box-max-height-sm: var(--seed-box-max-height-base, initial);
|
|
130
|
+
--seed-box-max-height-md: var(--seed-box-max-height-sm, initial);
|
|
131
|
+
--seed-box-max-height-lg: var(--seed-box-max-height-md, initial);
|
|
132
|
+
--seed-box-max-height-xl: var(--seed-box-max-height-lg, initial);
|
|
133
|
+
--seed-box-max-height: var(--seed-box-max-height-base, initial);
|
|
134
|
+
--seed-box-justify-content: initial;
|
|
135
|
+
--seed-box-align-items: initial;
|
|
136
|
+
padding-inline: var(--seed-box-padding-x);
|
|
137
|
+
min-height: var(--seed-box-min-height);
|
|
138
|
+
max-height: var(--seed-box-max-height);
|
|
139
|
+
justify-content: var(--seed-box-justify-content);
|
|
140
|
+
align-items: var(--seed-box-align-items);
|
|
141
|
+
transition: box-shadow var(--seed-duration-color-transition) var(--seed-timing-function-easing);
|
|
142
|
+
flex-direction: column;
|
|
143
|
+
flex: 1;
|
|
144
|
+
display: flex;
|
|
145
|
+
overflow-y: auto;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.seed-dialog__body[data-scrolled]:not(:first-child) {
|
|
149
|
+
box-shadow: inset 0 1px 0 0 var(--seed-color-stroke-neutral-muted);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.seed-dialog__body[data-overflow] {
|
|
153
|
+
padding-bottom: var(--seed-dimension-x12);
|
|
154
|
+
-webkit-mask-image: linear-gradient(to top, transparent 0, black var(--seed-dimension-x12));
|
|
155
|
+
mask-image: linear-gradient(to top, transparent 0, black var(--seed-dimension-x12));
|
|
156
|
+
-webkit-mask-image: linear-gradient(to top, transparent 0, black var(--seed-dimension-x12));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.seed-dialog__body {
|
|
160
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
161
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.seed-dialog__body:is(:focus-visible, [data-focus-visible]) {
|
|
165
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
166
|
+
outline-offset: calc(var(--seed-dimension-x0_5) * -1);
|
|
167
|
+
}
|
|
168
|
+
|
|
47
169
|
.seed-dialog__title {
|
|
48
170
|
color: var(--seed-color-fg-neutral);
|
|
49
|
-
font-size: var(--seed-font-size-
|
|
50
|
-
line-height: var(--seed-line-height-
|
|
171
|
+
font-size: var(--seed-font-size-t8);
|
|
172
|
+
line-height: var(--seed-line-height-t8);
|
|
51
173
|
font-weight: var(--seed-font-weight-bold);
|
|
52
174
|
margin: 0;
|
|
53
175
|
}
|
|
54
176
|
|
|
55
177
|
.seed-dialog__description {
|
|
56
|
-
color: var(--seed-color-fg-neutral);
|
|
178
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
57
179
|
font-size: var(--seed-font-size-t5);
|
|
58
180
|
line-height: var(--seed-line-height-t5);
|
|
59
181
|
font-weight: var(--seed-font-weight-regular);
|
|
@@ -62,53 +184,113 @@
|
|
|
62
184
|
}
|
|
63
185
|
|
|
64
186
|
.seed-dialog__footer {
|
|
65
|
-
padding-inline: var(--seed-dimension-
|
|
187
|
+
padding-inline: var(--seed-dimension-x6);
|
|
66
188
|
padding-top: var(--seed-dimension-x4);
|
|
67
|
-
padding-bottom: var(--seed-dimension-
|
|
189
|
+
padding-bottom: var(--seed-dimension-x6);
|
|
68
190
|
flex-direction: column;
|
|
191
|
+
flex-shrink: 0;
|
|
69
192
|
align-items: stretch;
|
|
70
193
|
display: flex;
|
|
71
194
|
}
|
|
72
195
|
|
|
73
|
-
.seed-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
--seed-
|
|
78
|
-
|
|
79
|
-
--seed-
|
|
80
|
-
--seed-
|
|
196
|
+
.seed-dialog__closeButton {
|
|
197
|
+
top: var(--seed-dimension-x7);
|
|
198
|
+
right: var(--seed-dimension-x6);
|
|
199
|
+
background: var(--seed-color-bg-transparent);
|
|
200
|
+
border-radius: var(--seed-radius-r3);
|
|
201
|
+
cursor: pointer;
|
|
202
|
+
transition: background var(--seed-duration-color-transition) var(--seed-timing-function-easing), scale var(--seed-duration-pressed-scale) var(--seed-timing-function-pressed-scale), outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
203
|
+
--seed-icon-size: 22px;
|
|
204
|
+
--seed-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
205
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
206
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
207
|
+
border: none;
|
|
208
|
+
justify-content: center;
|
|
209
|
+
align-items: center;
|
|
210
|
+
margin: -15px;
|
|
211
|
+
padding: 15px;
|
|
212
|
+
display: flex;
|
|
213
|
+
position: absolute;
|
|
81
214
|
}
|
|
82
215
|
|
|
83
|
-
.seed-
|
|
84
|
-
|
|
85
|
-
|
|
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;
|
|
216
|
+
.seed-dialog__closeButton:is(:focus-visible, [data-focus-visible]) {
|
|
217
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
218
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
92
219
|
}
|
|
93
220
|
|
|
94
|
-
.seed-
|
|
95
|
-
|
|
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;
|
|
221
|
+
.seed-dialog__closeButton:is(:active, [data-active]) {
|
|
222
|
+
scale: var(--seed-feedback-scale);
|
|
102
223
|
}
|
|
103
224
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
225
|
+
@media (hover: hover) and (pointer: fine) {
|
|
226
|
+
.seed-dialog__closeButton:is(:hover, [data-hover]) {
|
|
227
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@media not all and (hover: hover) and (pointer: fine) {
|
|
232
|
+
.seed-dialog__closeButton:is(:active, [data-active]) {
|
|
233
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.seed-dialog__content--size_medium {
|
|
238
|
+
--dialog-size-width: 480px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.seed-dialog__content--size_large {
|
|
242
|
+
--dialog-size-width: 800px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
@media (min-width: 480px) {
|
|
246
|
+
.seed-dialog__content {
|
|
247
|
+
--seed-box-width: var(--seed-box-width-sm, initial);
|
|
248
|
+
--seed-box-max-width: var(--seed-box-max-width-sm, initial);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.seed-dialog__body {
|
|
252
|
+
--seed-box-padding-x: var(--seed-box-padding-x-sm, initial);
|
|
253
|
+
--seed-box-min-height: var(--seed-box-min-height-sm, initial);
|
|
254
|
+
--seed-box-max-height: var(--seed-box-max-height-sm, initial);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@media (min-width: 768px) {
|
|
259
|
+
.seed-dialog__content {
|
|
260
|
+
--seed-box-width: var(--seed-box-width-md, initial);
|
|
261
|
+
--seed-box-max-width: var(--seed-box-max-width-md, initial);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.seed-dialog__body {
|
|
265
|
+
--seed-box-padding-x: var(--seed-box-padding-x-md, initial);
|
|
266
|
+
--seed-box-min-height: var(--seed-box-min-height-md, initial);
|
|
267
|
+
--seed-box-max-height: var(--seed-box-max-height-md, initial);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@media (min-width: 1280px) {
|
|
272
|
+
.seed-dialog__content {
|
|
273
|
+
--seed-box-width: var(--seed-box-width-lg, initial);
|
|
274
|
+
--seed-box-max-width: var(--seed-box-max-width-lg, initial);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.seed-dialog__body {
|
|
278
|
+
--seed-box-padding-x: var(--seed-box-padding-x-lg, initial);
|
|
279
|
+
--seed-box-min-height: var(--seed-box-min-height-lg, initial);
|
|
280
|
+
--seed-box-max-height: var(--seed-box-max-height-lg, initial);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@media (min-width: 1440px) {
|
|
285
|
+
.seed-dialog__content {
|
|
286
|
+
--seed-box-width: var(--seed-box-width-xl, initial);
|
|
287
|
+
--seed-box-max-width: var(--seed-box-max-width-xl, initial);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.seed-dialog__body {
|
|
291
|
+
--seed-box-padding-x: var(--seed-box-padding-x-xl, initial);
|
|
292
|
+
--seed-box-min-height: var(--seed-box-min-height-xl, initial);
|
|
293
|
+
--seed-box-max-height: var(--seed-box-max-height-xl, initial);
|
|
294
|
+
}
|
|
113
295
|
}
|
|
114
296
|
}
|
|
@@ -19,12 +19,12 @@ const dialogSlotNames = [
|
|
|
19
19
|
"seed-dialog__header"
|
|
20
20
|
],
|
|
21
21
|
[
|
|
22
|
-
"
|
|
23
|
-
"seed-
|
|
22
|
+
"body",
|
|
23
|
+
"seed-dialog__body"
|
|
24
24
|
],
|
|
25
25
|
[
|
|
26
|
-
"
|
|
27
|
-
"seed-
|
|
26
|
+
"footer",
|
|
27
|
+
"seed-dialog__footer"
|
|
28
28
|
],
|
|
29
29
|
[
|
|
30
30
|
"title",
|
|
@@ -33,18 +33,23 @@ const dialogSlotNames = [
|
|
|
33
33
|
[
|
|
34
34
|
"description",
|
|
35
35
|
"seed-dialog__description"
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"closeButton",
|
|
39
|
+
"seed-dialog__closeButton"
|
|
36
40
|
]
|
|
37
41
|
];
|
|
38
42
|
|
|
39
43
|
const defaultVariant = {
|
|
40
|
-
"
|
|
44
|
+
"size": "medium"
|
|
41
45
|
};
|
|
42
46
|
|
|
43
47
|
const compoundVariants = [];
|
|
44
48
|
|
|
45
49
|
export const dialogVariantMap = {
|
|
46
|
-
"
|
|
47
|
-
|
|
50
|
+
"size": [
|
|
51
|
+
"medium",
|
|
52
|
+
"large"
|
|
48
53
|
]
|
|
49
54
|
};
|
|
50
55
|
|