@seed-design/lynx-css 0.0.0-alpha-20260622094810
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/all.css +2137 -0
- package/all.min.css +1 -0
- package/base.css +643 -0
- package/base.min.css +1 -0
- package/package.json +60 -0
- package/recipes/action-button.css +489 -0
- package/recipes/action-button.d.ts +44 -0
- package/recipes/action-button.mjs +212 -0
- package/recipes/app-bar-main.css +67 -0
- package/recipes/app-bar-main.d.ts +36 -0
- package/recipes/app-bar-main.mjs +63 -0
- package/recipes/app-bar.css +101 -0
- package/recipes/app-bar.d.ts +32 -0
- package/recipes/app-bar.mjs +74 -0
- package/recipes/badge.css +157 -0
- package/recipes/badge.d.ts +32 -0
- package/recipes/badge.mjs +131 -0
- package/recipes/bottom-sheet-handle.css +19 -0
- package/recipes/bottom-sheet-handle.d.ts +21 -0
- package/recipes/bottom-sheet-handle.mjs +36 -0
- package/recipes/bottom-sheet.css +93 -0
- package/recipes/bottom-sheet.d.ts +28 -0
- package/recipes/bottom-sheet.mjs +76 -0
- package/recipes/checkbox-group.css +5 -0
- package/recipes/checkbox-group.d.ts +21 -0
- package/recipes/checkbox-group.mjs +36 -0
- package/recipes/checkbox.css +34 -0
- package/recipes/checkbox.d.ts +32 -0
- package/recipes/checkbox.mjs +53 -0
- package/recipes/checkmark.css +131 -0
- package/recipes/checkmark.d.ts +48 -0
- package/recipes/checkmark.mjs +220 -0
- package/recipes/progress-circle.css +80 -0
- package/recipes/progress-circle.d.ts +30 -0
- package/recipes/progress-circle.mjs +40 -0
- package/recipes/radio-group.css +5 -0
- package/recipes/radio-group.d.ts +21 -0
- package/recipes/radio-group.mjs +36 -0
- package/recipes/radio.css +34 -0
- package/recipes/radio.d.ts +32 -0
- package/recipes/radio.mjs +53 -0
- package/recipes/radiomark.css +94 -0
- package/recipes/radiomark.d.ts +40 -0
- package/recipes/radiomark.mjs +121 -0
- package/recipes/shared.mjs +48 -0
- package/recipes/switch.css +40 -0
- package/recipes/switch.d.ts +28 -0
- package/recipes/switch.mjs +49 -0
- package/recipes/switchmark.css +75 -0
- package/recipes/switchmark.d.ts +36 -0
- package/recipes/switchmark.mjs +90 -0
- package/recipes/tag-group-item.css +34 -0
- package/recipes/tag-group-item.d.ts +32 -0
- package/recipes/tag-group-item.mjs +55 -0
- package/recipes/tag-group.css +32 -0
- package/recipes/tag-group.d.ts +24 -0
- package/recipes/tag-group.mjs +48 -0
- package/vars/color/banner.d.ts +10 -0
- package/vars/color/banner.mjs +10 -0
- package/vars/color/bg.d.ts +76 -0
- package/vars/color/bg.mjs +42 -0
- package/vars/color/fg.d.ts +30 -0
- package/vars/color/fg.mjs +16 -0
- package/vars/color/index.d.ts +6 -0
- package/vars/color/index.mjs +6 -0
- package/vars/color/manner-temp/index.d.ts +10 -0
- package/vars/color/manner-temp/index.mjs +10 -0
- package/vars/color/manner-temp/l1.d.ts +2 -0
- package/vars/color/manner-temp/l1.mjs +2 -0
- package/vars/color/manner-temp/l10.d.ts +2 -0
- package/vars/color/manner-temp/l10.mjs +2 -0
- package/vars/color/manner-temp/l2.d.ts +2 -0
- package/vars/color/manner-temp/l2.mjs +2 -0
- package/vars/color/manner-temp/l3.d.ts +2 -0
- package/vars/color/manner-temp/l3.mjs +2 -0
- package/vars/color/manner-temp/l4.d.ts +2 -0
- package/vars/color/manner-temp/l4.mjs +2 -0
- package/vars/color/manner-temp/l5.d.ts +2 -0
- package/vars/color/manner-temp/l5.mjs +2 -0
- package/vars/color/manner-temp/l6.d.ts +2 -0
- package/vars/color/manner-temp/l6.mjs +2 -0
- package/vars/color/manner-temp/l7.d.ts +2 -0
- package/vars/color/manner-temp/l7.mjs +2 -0
- package/vars/color/manner-temp/l8.d.ts +2 -0
- package/vars/color/manner-temp/l8.mjs +2 -0
- package/vars/color/manner-temp/l9.d.ts +2 -0
- package/vars/color/manner-temp/l9.mjs +2 -0
- package/vars/color/palette.d.ts +94 -0
- package/vars/color/palette.mjs +94 -0
- package/vars/color/stroke.d.ts +31 -0
- package/vars/color/stroke.mjs +16 -0
- package/vars/component/accordion-item.d.ts +132 -0
- package/vars/component/accordion-item.mjs +126 -0
- package/vars/component/accordion.d.ts +22 -0
- package/vars/component/accordion.mjs +16 -0
- package/vars/component/action-button.d.ts +660 -0
- package/vars/component/action-button.mjs +541 -0
- package/vars/component/action-chip.d.ts +132 -0
- package/vars/component/action-chip.mjs +132 -0
- package/vars/component/action-sheet-close-button.d.ts +23 -0
- package/vars/component/action-sheet-close-button.mjs +23 -0
- package/vars/component/action-sheet-item.d.ts +36 -0
- package/vars/component/action-sheet-item.mjs +36 -0
- package/vars/component/action-sheet.d.ts +46 -0
- package/vars/component/action-sheet.mjs +46 -0
- package/vars/component/attachment-input-dropzone.d.ts +32 -0
- package/vars/component/attachment-input-dropzone.mjs +30 -0
- package/vars/component/attachment-input-item-action-button.d.ts +37 -0
- package/vars/component/attachment-input-item-action-button.mjs +37 -0
- package/vars/component/attachment-input-item-remove-button.d.ts +28 -0
- package/vars/component/attachment-input-item-remove-button.mjs +28 -0
- package/vars/component/attachment-input-item.d.ts +103 -0
- package/vars/component/attachment-input-item.mjs +102 -0
- package/vars/component/attachment-input-trigger.d.ts +46 -0
- package/vars/component/attachment-input-trigger.mjs +46 -0
- package/vars/component/attachment-input.d.ts +14 -0
- package/vars/component/attachment-input.mjs +12 -0
- package/vars/component/avatar-stack.d.ts +110 -0
- package/vars/component/avatar-stack.mjs +110 -0
- package/vars/component/avatar.d.ts +204 -0
- package/vars/component/avatar.mjs +162 -0
- package/vars/component/badge.d.ts +316 -0
- package/vars/component/badge.mjs +236 -0
- package/vars/component/bottom-sheet-close-button.d.ts +21 -0
- package/vars/component/bottom-sheet-close-button.mjs +21 -0
- package/vars/component/bottom-sheet-handle.d.ts +24 -0
- package/vars/component/bottom-sheet-handle.mjs +24 -0
- package/vars/component/bottom-sheet.d.ts +86 -0
- package/vars/component/bottom-sheet.mjs +86 -0
- package/vars/component/callout.d.ts +229 -0
- package/vars/component/callout.mjs +197 -0
- package/vars/component/checkbox-group.d.ts +9 -0
- package/vars/component/checkbox-group.mjs +9 -0
- package/vars/component/checkbox.d.ts +53 -0
- package/vars/component/checkbox.mjs +53 -0
- package/vars/component/checkmark.d.ts +195 -0
- package/vars/component/checkmark.mjs +165 -0
- package/vars/component/chip-tab.d.ts +121 -0
- package/vars/component/chip-tab.mjs +121 -0
- package/vars/component/chip-tablist.d.ts +24 -0
- package/vars/component/chip-tablist.mjs +24 -0
- package/vars/component/chip.d.ts +321 -0
- package/vars/component/chip.mjs +303 -0
- package/vars/component/content-placeholder.d.ts +28 -0
- package/vars/component/content-placeholder.mjs +27 -0
- package/vars/component/contextual-floating-button.d.ts +144 -0
- package/vars/component/contextual-floating-button.mjs +132 -0
- package/vars/component/control-chip.d.ts +158 -0
- package/vars/component/control-chip.mjs +158 -0
- package/vars/component/dialog.d.ts +52 -0
- package/vars/component/dialog.mjs +52 -0
- package/vars/component/divider.d.ts +9 -0
- package/vars/component/divider.mjs +9 -0
- package/vars/component/extended-action-sheet-close-button.d.ts +24 -0
- package/vars/component/extended-action-sheet-close-button.mjs +24 -0
- package/vars/component/extended-action-sheet-item.d.ts +46 -0
- package/vars/component/extended-action-sheet-item.mjs +46 -0
- package/vars/component/extended-action-sheet.d.ts +55 -0
- package/vars/component/extended-action-sheet.mjs +55 -0
- package/vars/component/extended-fab.d.ts +88 -0
- package/vars/component/extended-fab.mjs +82 -0
- package/vars/component/fab.d.ts +21 -0
- package/vars/component/fab.mjs +21 -0
- package/vars/component/field-label.d.ts +25 -0
- package/vars/component/field-label.mjs +25 -0
- package/vars/component/field.d.ts +78 -0
- package/vars/component/field.mjs +72 -0
- package/vars/component/floating-action-button.d.ts +60 -0
- package/vars/component/floating-action-button.mjs +54 -0
- package/vars/component/help-bubble.d.ts +52 -0
- package/vars/component/help-bubble.mjs +50 -0
- package/vars/component/identity-placeholder.d.ts +12 -0
- package/vars/component/identity-placeholder.mjs +12 -0
- package/vars/component/image-frame-floater.d.ts +10 -0
- package/vars/component/image-frame-floater.mjs +9 -0
- package/vars/component/image-frame-indicator.d.ts +20 -0
- package/vars/component/image-frame-indicator.mjs +18 -0
- package/vars/component/image-frame-reaction-button.d.ts +35 -0
- package/vars/component/image-frame-reaction-button.mjs +26 -0
- package/vars/component/image-frame.d.ts +27 -0
- package/vars/component/image-frame.mjs +18 -0
- package/vars/component/index.d.ts +90 -0
- package/vars/component/index.mjs +90 -0
- package/vars/component/inline-banner.d.ts +191 -0
- package/vars/component/inline-banner.mjs +191 -0
- package/vars/component/input-button.d.ts +162 -0
- package/vars/component/input-button.mjs +155 -0
- package/vars/component/link-content.d.ts +58 -0
- package/vars/component/link-content.mjs +58 -0
- package/vars/component/list-header.d.ts +29 -0
- package/vars/component/list-header.mjs +29 -0
- package/vars/component/list-item.d.ts +89 -0
- package/vars/component/list-item.mjs +87 -0
- package/vars/component/manner-temp-badge.d.ts +117 -0
- package/vars/component/manner-temp-badge.mjs +117 -0
- package/vars/component/manner-temp.d.ts +88 -0
- package/vars/component/manner-temp.mjs +88 -0
- package/vars/component/menu-item.d.ts +129 -0
- package/vars/component/menu-item.mjs +117 -0
- package/vars/component/menu-sheet-close-button.d.ts +24 -0
- package/vars/component/menu-sheet-close-button.mjs +24 -0
- package/vars/component/menu-sheet-item.d.ts +73 -0
- package/vars/component/menu-sheet-item.mjs +61 -0
- package/vars/component/menu-sheet.d.ts +56 -0
- package/vars/component/menu-sheet.mjs +56 -0
- package/vars/component/menu.d.ts +68 -0
- package/vars/component/menu.mjs +60 -0
- package/vars/component/notification-badge.d.ts +48 -0
- package/vars/component/notification-badge.mjs +42 -0
- package/vars/component/page-banner.d.ts +382 -0
- package/vars/component/page-banner.mjs +336 -0
- package/vars/component/progress-circle.d.ts +88 -0
- package/vars/component/progress-circle.mjs +67 -0
- package/vars/component/radio-group.d.ts +9 -0
- package/vars/component/radio-group.mjs +9 -0
- package/vars/component/radio.d.ts +53 -0
- package/vars/component/radio.mjs +53 -0
- package/vars/component/radiomark.d.ts +117 -0
- package/vars/component/radiomark.mjs +117 -0
- package/vars/component/reaction-button.d.ts +136 -0
- package/vars/component/reaction-button.mjs +136 -0
- package/vars/component/scroll-fog.d.ts +11 -0
- package/vars/component/scroll-fog.mjs +11 -0
- package/vars/component/segmented-control-indicator.d.ts +24 -0
- package/vars/component/segmented-control-indicator.mjs +24 -0
- package/vars/component/segmented-control-item.d.ts +41 -0
- package/vars/component/segmented-control-item.mjs +41 -0
- package/vars/component/segmented-control.d.ts +11 -0
- package/vars/component/segmented-control.mjs +11 -0
- package/vars/component/select-box-checkmark.d.ts +40 -0
- package/vars/component/select-box-checkmark.mjs +40 -0
- package/vars/component/select-box-group.d.ts +10 -0
- package/vars/component/select-box-group.mjs +10 -0
- package/vars/component/select-box.d.ts +107 -0
- package/vars/component/select-box.mjs +102 -0
- package/vars/component/side-panel-close-button.d.ts +23 -0
- package/vars/component/side-panel-close-button.mjs +23 -0
- package/vars/component/side-panel.d.ts +94 -0
- package/vars/component/side-panel.mjs +83 -0
- package/vars/component/skeleton.d.ts +76 -0
- package/vars/component/skeleton.mjs +58 -0
- package/vars/component/slider-thumb.d.ts +25 -0
- package/vars/component/slider-thumb.mjs +25 -0
- package/vars/component/slider-tick.d.ts +23 -0
- package/vars/component/slider-tick.mjs +23 -0
- package/vars/component/slider.d.ts +78 -0
- package/vars/component/slider.mjs +75 -0
- package/vars/component/snackbar.d.ts +65 -0
- package/vars/component/snackbar.mjs +65 -0
- package/vars/component/switch.d.ts +53 -0
- package/vars/component/switch.mjs +53 -0
- package/vars/component/switchmark.d.ts +112 -0
- package/vars/component/switchmark.mjs +112 -0
- package/vars/component/tab.d.ts +47 -0
- package/vars/component/tab.mjs +47 -0
- package/vars/component/tablist.d.ts +51 -0
- package/vars/component/tablist.mjs +51 -0
- package/vars/component/tag-group-item.d.ts +122 -0
- package/vars/component/tag-group-item.mjs +122 -0
- package/vars/component/tag-group.d.ts +34 -0
- package/vars/component/tag-group.mjs +34 -0
- package/vars/component/text-button.d.ts +23 -0
- package/vars/component/text-button.mjs +23 -0
- package/vars/component/text-input.d.ts +292 -0
- package/vars/component/text-input.mjs +263 -0
- package/vars/component/toggle-button.d.ts +213 -0
- package/vars/component/toggle-button.mjs +207 -0
- package/vars/component/top-navigation-icon-button.d.ts +36 -0
- package/vars/component/top-navigation-icon-button.mjs +36 -0
- package/vars/component/top-navigation-text-button.d.ts +52 -0
- package/vars/component/top-navigation-text-button.mjs +51 -0
- package/vars/component/top-navigation.d.ts +102 -0
- package/vars/component/top-navigation.mjs +94 -0
- package/vars/component/typography.d.ts +956 -0
- package/vars/component/typography.mjs +785 -0
- package/vars/dimension/index.d.ts +22 -0
- package/vars/dimension/index.mjs +22 -0
- package/vars/dimension/spacing-x.d.ts +4 -0
- package/vars/dimension/spacing-x.mjs +2 -0
- package/vars/dimension/spacing-y.d.ts +8 -0
- package/vars/dimension/spacing-y.mjs +4 -0
- package/vars/duration.d.ts +8 -0
- package/vars/duration.mjs +8 -0
- package/vars/font-size.d.ts +46 -0
- package/vars/font-size.mjs +28 -0
- package/vars/font-weight.d.ts +3 -0
- package/vars/font-weight.mjs +3 -0
- package/vars/gradient.d.ts +11 -0
- package/vars/gradient.mjs +6 -0
- package/vars/index.d.ts +51 -0
- package/vars/index.mjs +1 -0
- package/vars/line-height.d.ts +46 -0
- package/vars/line-height.mjs +28 -0
- package/vars/radius.d.ts +11 -0
- package/vars/radius.mjs +11 -0
- package/vars/shadow.d.ts +4 -0
- package/vars/shadow.mjs +3 -0
- package/vars/timing-function.d.ts +7 -0
- package/vars/timing-function.mjs +7 -0
- package/vars/vars.d.ts +10 -0
- package/vars/vars.mjs +10 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
.seed-badge__root {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
align-items: center;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
text-align: start
|
|
7
|
+
}
|
|
8
|
+
.seed-badge__label {
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
text-overflow: ellipsis;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
flex-shrink: 1;
|
|
13
|
+
max-width: 100%
|
|
14
|
+
}
|
|
15
|
+
.seed-badge__root--size_medium {
|
|
16
|
+
max-width: 7.5rem;
|
|
17
|
+
min-height: var(--seed-dimension-x5);
|
|
18
|
+
padding-left: var(--seed-dimension-x1_5);
|
|
19
|
+
padding-right: var(--seed-dimension-x1_5);
|
|
20
|
+
padding-top: var(--seed-dimension-x0_5);
|
|
21
|
+
padding-bottom: var(--seed-dimension-x0_5);
|
|
22
|
+
border-radius: var(--seed-radius-r1)
|
|
23
|
+
}
|
|
24
|
+
.seed-badge__label--size_medium {
|
|
25
|
+
font-size: var(--seed-font-size-t1);
|
|
26
|
+
line-height: var(--seed-line-height-t1)
|
|
27
|
+
}
|
|
28
|
+
.seed-badge__root--size_large {
|
|
29
|
+
max-width: 6.75rem;
|
|
30
|
+
min-height: var(--seed-dimension-x6);
|
|
31
|
+
padding-left: var(--seed-dimension-x2);
|
|
32
|
+
padding-right: var(--seed-dimension-x2);
|
|
33
|
+
padding-top: var(--seed-dimension-x1);
|
|
34
|
+
padding-bottom: var(--seed-dimension-x1);
|
|
35
|
+
border-radius: var(--seed-radius-r1_5)
|
|
36
|
+
}
|
|
37
|
+
.seed-badge__label--size_large {
|
|
38
|
+
font-size: var(--seed-font-size-t2);
|
|
39
|
+
line-height: var(--seed-line-height-t2)
|
|
40
|
+
}
|
|
41
|
+
.seed-badge__label--variant_weak {
|
|
42
|
+
font-weight: var(--seed-font-weight-medium)
|
|
43
|
+
}
|
|
44
|
+
.seed-badge__label--variant_solid {
|
|
45
|
+
font-weight: var(--seed-font-weight-bold)
|
|
46
|
+
}
|
|
47
|
+
.seed-badge__label--variant_outline {
|
|
48
|
+
font-weight: var(--seed-font-weight-bold)
|
|
49
|
+
}
|
|
50
|
+
.seed-badge__root--tone_neutral-variant_weak {
|
|
51
|
+
background-color: var(--seed-color-bg-neutral-weak)
|
|
52
|
+
}
|
|
53
|
+
.seed-badge__label--tone_neutral-variant_weak {
|
|
54
|
+
color: var(--seed-color-fg-neutral-muted)
|
|
55
|
+
}
|
|
56
|
+
.seed-badge__root--tone_neutral-variant_solid {
|
|
57
|
+
background-color: var(--seed-color-palette-gray-800)
|
|
58
|
+
}
|
|
59
|
+
.seed-badge__label--tone_neutral-variant_solid {
|
|
60
|
+
color: var(--seed-color-fg-neutral-inverted)
|
|
61
|
+
}
|
|
62
|
+
.seed-badge__root--tone_neutral-variant_outline {
|
|
63
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-neutral-muted)
|
|
64
|
+
}
|
|
65
|
+
.seed-badge__label--tone_neutral-variant_outline {
|
|
66
|
+
color: var(--seed-color-fg-neutral-muted)
|
|
67
|
+
}
|
|
68
|
+
.seed-badge__root--tone_brand-variant_weak {
|
|
69
|
+
background-color: var(--seed-color-bg-brand-weak)
|
|
70
|
+
}
|
|
71
|
+
.seed-badge__label--tone_brand-variant_weak {
|
|
72
|
+
color: var(--seed-color-fg-brand-contrast)
|
|
73
|
+
}
|
|
74
|
+
.seed-badge__root--tone_brand-variant_solid {
|
|
75
|
+
background-color: var(--seed-color-bg-brand-solid)
|
|
76
|
+
}
|
|
77
|
+
.seed-badge__label--tone_brand-variant_solid {
|
|
78
|
+
color: var(--seed-color-palette-static-white)
|
|
79
|
+
}
|
|
80
|
+
.seed-badge__root--tone_brand-variant_outline {
|
|
81
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-brand-weak)
|
|
82
|
+
}
|
|
83
|
+
.seed-badge__label--tone_brand-variant_outline {
|
|
84
|
+
color: var(--seed-color-fg-brand)
|
|
85
|
+
}
|
|
86
|
+
.seed-badge__root--tone_informative-variant_weak {
|
|
87
|
+
background-color: var(--seed-color-bg-informative-weak)
|
|
88
|
+
}
|
|
89
|
+
.seed-badge__label--tone_informative-variant_weak {
|
|
90
|
+
color: var(--seed-color-fg-informative-contrast)
|
|
91
|
+
}
|
|
92
|
+
.seed-badge__root--tone_informative-variant_solid {
|
|
93
|
+
background-color: var(--seed-color-bg-informative-solid)
|
|
94
|
+
}
|
|
95
|
+
.seed-badge__label--tone_informative-variant_solid {
|
|
96
|
+
color: var(--seed-color-palette-static-white)
|
|
97
|
+
}
|
|
98
|
+
.seed-badge__root--tone_informative-variant_outline {
|
|
99
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-informative-weak)
|
|
100
|
+
}
|
|
101
|
+
.seed-badge__label--tone_informative-variant_outline {
|
|
102
|
+
color: var(--seed-color-fg-informative)
|
|
103
|
+
}
|
|
104
|
+
.seed-badge__root--tone_positive-variant_weak {
|
|
105
|
+
background-color: var(--seed-color-bg-positive-weak)
|
|
106
|
+
}
|
|
107
|
+
.seed-badge__label--tone_positive-variant_weak {
|
|
108
|
+
color: var(--seed-color-fg-positive-contrast)
|
|
109
|
+
}
|
|
110
|
+
.seed-badge__root--tone_positive-variant_solid {
|
|
111
|
+
background-color: var(--seed-color-bg-positive-solid)
|
|
112
|
+
}
|
|
113
|
+
.seed-badge__label--tone_positive-variant_solid {
|
|
114
|
+
color: var(--seed-color-palette-static-white)
|
|
115
|
+
}
|
|
116
|
+
.seed-badge__root--tone_positive-variant_outline {
|
|
117
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-positive-weak)
|
|
118
|
+
}
|
|
119
|
+
.seed-badge__label--tone_positive-variant_outline {
|
|
120
|
+
color: var(--seed-color-fg-positive)
|
|
121
|
+
}
|
|
122
|
+
.seed-badge__root--tone_warning-variant_weak {
|
|
123
|
+
background-color: var(--seed-color-bg-warning-weak)
|
|
124
|
+
}
|
|
125
|
+
.seed-badge__label--tone_warning-variant_weak {
|
|
126
|
+
color: var(--seed-color-fg-warning-contrast)
|
|
127
|
+
}
|
|
128
|
+
.seed-badge__root--tone_warning-variant_solid {
|
|
129
|
+
background-color: var(--seed-color-bg-warning-solid)
|
|
130
|
+
}
|
|
131
|
+
.seed-badge__label--tone_warning-variant_solid {
|
|
132
|
+
color: var(--seed-color-palette-static-black-alpha-900)
|
|
133
|
+
}
|
|
134
|
+
.seed-badge__root--tone_warning-variant_outline {
|
|
135
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-warning-weak)
|
|
136
|
+
}
|
|
137
|
+
.seed-badge__label--tone_warning-variant_outline {
|
|
138
|
+
color: var(--seed-color-fg-warning)
|
|
139
|
+
}
|
|
140
|
+
.seed-badge__root--tone_critical-variant_weak {
|
|
141
|
+
background-color: var(--seed-color-bg-critical-weak)
|
|
142
|
+
}
|
|
143
|
+
.seed-badge__label--tone_critical-variant_weak {
|
|
144
|
+
color: var(--seed-color-fg-critical-contrast)
|
|
145
|
+
}
|
|
146
|
+
.seed-badge__root--tone_critical-variant_solid {
|
|
147
|
+
background-color: var(--seed-color-bg-critical-solid)
|
|
148
|
+
}
|
|
149
|
+
.seed-badge__label--tone_critical-variant_solid {
|
|
150
|
+
color: var(--seed-color-palette-static-white)
|
|
151
|
+
}
|
|
152
|
+
.seed-badge__root--tone_critical-variant_outline {
|
|
153
|
+
box-shadow: inset 0 0 0 1px var(--seed-color-stroke-critical-weak)
|
|
154
|
+
}
|
|
155
|
+
.seed-badge__label--tone_critical-variant_outline {
|
|
156
|
+
color: var(--seed-color-fg-critical)
|
|
157
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare interface BadgeVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default "medium"
|
|
4
|
+
*/
|
|
5
|
+
size: "medium" | "large";
|
|
6
|
+
/**
|
|
7
|
+
* @default "solid"
|
|
8
|
+
*/
|
|
9
|
+
variant: "weak" | "solid" | "outline";
|
|
10
|
+
/**
|
|
11
|
+
* @default "neutral"
|
|
12
|
+
*/
|
|
13
|
+
tone: "neutral" | "brand" | "informative" | "positive" | "warning" | "critical";
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare type BadgeVariantMap = {
|
|
17
|
+
[key in keyof BadgeVariant]: Array<BadgeVariant[key]>;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export declare type BadgeVariantProps = Partial<BadgeVariant>;
|
|
21
|
+
|
|
22
|
+
export declare type BadgeSlotName = "root" | "label";
|
|
23
|
+
|
|
24
|
+
export declare const badgeVariantMap: BadgeVariantMap;
|
|
25
|
+
|
|
26
|
+
export declare const badge: ((
|
|
27
|
+
props?: BadgeVariantProps,
|
|
28
|
+
) => Record<BadgeSlotName, string>) & {
|
|
29
|
+
splitVariantProps: <T extends BadgeVariantProps>(
|
|
30
|
+
props: T,
|
|
31
|
+
) => [BadgeVariantProps, Omit<T, keyof BadgeVariantProps>];
|
|
32
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import './badge.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const badgeSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-badge__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"label",
|
|
11
|
+
"seed-badge__label"
|
|
12
|
+
]
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const defaultVariant = {
|
|
16
|
+
"size": "medium",
|
|
17
|
+
"variant": "solid",
|
|
18
|
+
"tone": "neutral"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const compoundVariants = [
|
|
22
|
+
{
|
|
23
|
+
"tone": "neutral",
|
|
24
|
+
"variant": "weak"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"tone": "neutral",
|
|
28
|
+
"variant": "solid"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"tone": "neutral",
|
|
32
|
+
"variant": "outline"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"tone": "brand",
|
|
36
|
+
"variant": "weak"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"tone": "brand",
|
|
40
|
+
"variant": "solid"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"tone": "brand",
|
|
44
|
+
"variant": "outline"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"tone": "informative",
|
|
48
|
+
"variant": "weak"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"tone": "informative",
|
|
52
|
+
"variant": "solid"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"tone": "informative",
|
|
56
|
+
"variant": "outline"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"tone": "positive",
|
|
60
|
+
"variant": "weak"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"tone": "positive",
|
|
64
|
+
"variant": "solid"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"tone": "positive",
|
|
68
|
+
"variant": "outline"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"tone": "warning",
|
|
72
|
+
"variant": "weak"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"tone": "warning",
|
|
76
|
+
"variant": "solid"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"tone": "warning",
|
|
80
|
+
"variant": "outline"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"tone": "critical",
|
|
84
|
+
"variant": "weak"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"tone": "critical",
|
|
88
|
+
"variant": "solid"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"tone": "critical",
|
|
92
|
+
"variant": "outline"
|
|
93
|
+
}
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
export const badgeVariantMap = {
|
|
97
|
+
"size": [
|
|
98
|
+
"medium",
|
|
99
|
+
"large"
|
|
100
|
+
],
|
|
101
|
+
"variant": [
|
|
102
|
+
"weak",
|
|
103
|
+
"solid",
|
|
104
|
+
"outline"
|
|
105
|
+
],
|
|
106
|
+
"tone": [
|
|
107
|
+
"neutral",
|
|
108
|
+
"brand",
|
|
109
|
+
"informative",
|
|
110
|
+
"positive",
|
|
111
|
+
"warning",
|
|
112
|
+
"critical"
|
|
113
|
+
]
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export const badgeVariantKeys = Object.keys(badgeVariantMap);
|
|
117
|
+
|
|
118
|
+
export function badge(props) {
|
|
119
|
+
return Object.fromEntries(
|
|
120
|
+
badgeSlotNames.map(([slot, className]) => {
|
|
121
|
+
return [
|
|
122
|
+
slot,
|
|
123
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
124
|
+
];
|
|
125
|
+
}),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
Object.assign(badge, { splitVariantProps: (props) => splitVariantProps(props, badgeVariantMap) });
|
|
130
|
+
|
|
131
|
+
// @recipe(seed): badge
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
.seed-bottom-sheet-handle__root {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: 50%;
|
|
4
|
+
left: 50%;
|
|
5
|
+
transform: translate(-50%, -50%);
|
|
6
|
+
width: 36px;
|
|
7
|
+
height: 4px;
|
|
8
|
+
background-color: var(--seed-color-palette-gray-400);
|
|
9
|
+
border-radius: 9999px
|
|
10
|
+
}
|
|
11
|
+
.seed-bottom-sheet-handle__touchArea {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: calc(6px + 4px / 2 - 44px / 2);
|
|
14
|
+
left: 50%;
|
|
15
|
+
transform: translateX(-50%);
|
|
16
|
+
z-index: 1;
|
|
17
|
+
width: 44px;
|
|
18
|
+
height: 44px
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare interface BottomSheetHandleVariant {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare type BottomSheetHandleVariantMap = {
|
|
6
|
+
[key in keyof BottomSheetHandleVariant]: Array<BottomSheetHandleVariant[key]>;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare type BottomSheetHandleVariantProps = Partial<BottomSheetHandleVariant>;
|
|
10
|
+
|
|
11
|
+
export declare type BottomSheetHandleSlotName = "root" | "touchArea";
|
|
12
|
+
|
|
13
|
+
export declare const bottomSheetHandleVariantMap: BottomSheetHandleVariantMap;
|
|
14
|
+
|
|
15
|
+
export declare const bottomSheetHandle: ((
|
|
16
|
+
props?: BottomSheetHandleVariantProps,
|
|
17
|
+
) => Record<BottomSheetHandleSlotName, string>) & {
|
|
18
|
+
splitVariantProps: <T extends BottomSheetHandleVariantProps>(
|
|
19
|
+
props: T,
|
|
20
|
+
) => [BottomSheetHandleVariantProps, Omit<T, keyof BottomSheetHandleVariantProps>];
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import './bottom-sheet-handle.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const bottomSheetHandleSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-bottom-sheet-handle__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"touchArea",
|
|
11
|
+
"seed-bottom-sheet-handle__touchArea"
|
|
12
|
+
]
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const defaultVariant = {};
|
|
16
|
+
|
|
17
|
+
const compoundVariants = [];
|
|
18
|
+
|
|
19
|
+
export const bottomSheetHandleVariantMap = {};
|
|
20
|
+
|
|
21
|
+
export const bottomSheetHandleVariantKeys = Object.keys(bottomSheetHandleVariantMap);
|
|
22
|
+
|
|
23
|
+
export function bottomSheetHandle(props) {
|
|
24
|
+
return Object.fromEntries(
|
|
25
|
+
bottomSheetHandleSlotNames.map(([slot, className]) => {
|
|
26
|
+
return [
|
|
27
|
+
slot,
|
|
28
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
29
|
+
];
|
|
30
|
+
}),
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
Object.assign(bottomSheetHandle, { splitVariantProps: (props) => splitVariantProps(props, bottomSheetHandleVariantMap) });
|
|
35
|
+
|
|
36
|
+
// @recipe(seed): bottom-sheet-handle
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.seed-bottom-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
|
+
--sheet-z-index: 20;
|
|
11
|
+
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0))
|
|
12
|
+
}
|
|
13
|
+
.seed-bottom-sheet__backdrop {
|
|
14
|
+
position: fixed;
|
|
15
|
+
top: 0;
|
|
16
|
+
right: 0;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
background: var(--seed-color-bg-overlay);
|
|
21
|
+
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0))
|
|
22
|
+
}
|
|
23
|
+
.seed-bottom-sheet__content {
|
|
24
|
+
position: relative;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex: 1;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
z-index: calc(var(--sheet-z-index) + var(--layer-index, 0));
|
|
29
|
+
background: var(--seed-color-bg-layer-floating);
|
|
30
|
+
border-top-left-radius: var(--seed-radius-r6);
|
|
31
|
+
border-top-right-radius: var(--seed-radius-r6);
|
|
32
|
+
transform: translate3d(0, 100%, 0)
|
|
33
|
+
}
|
|
34
|
+
.seed-bottom-sheet__header {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: var(--seed-dimension-x2);
|
|
38
|
+
padding-top: var(--seed-dimension-x6);
|
|
39
|
+
padding-bottom: var(--seed-dimension-x4)
|
|
40
|
+
}
|
|
41
|
+
.seed-bottom-sheet__title {
|
|
42
|
+
color: var(--seed-color-fg-neutral);
|
|
43
|
+
font-size: var(--seed-font-size-t8);
|
|
44
|
+
line-height: var(--seed-line-height-t8);
|
|
45
|
+
font-weight: var(--seed-font-weight-bold);
|
|
46
|
+
margin: 0
|
|
47
|
+
}
|
|
48
|
+
.seed-bottom-sheet__description {
|
|
49
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
50
|
+
font-size: var(--seed-font-size-t5);
|
|
51
|
+
line-height: var(--seed-line-height-t5);
|
|
52
|
+
font-weight: var(--seed-font-weight-regular);
|
|
53
|
+
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
54
|
+
padding-right: var(--seed-dimension-spacing-x-global-gutter);
|
|
55
|
+
margin: 0
|
|
56
|
+
}
|
|
57
|
+
.seed-bottom-sheet__body {
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
flex: 1;
|
|
61
|
+
min-height: 0;
|
|
62
|
+
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
63
|
+
padding-right: var(--seed-dimension-spacing-x-global-gutter)
|
|
64
|
+
}
|
|
65
|
+
.seed-bottom-sheet__footer {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
69
|
+
padding-right: var(--seed-dimension-spacing-x-global-gutter);
|
|
70
|
+
padding-top: var(--seed-dimension-x3);
|
|
71
|
+
padding-bottom: var(--seed-dimension-x4)
|
|
72
|
+
}
|
|
73
|
+
.seed-bottom-sheet__closeButton {
|
|
74
|
+
position: absolute;
|
|
75
|
+
display: flex;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center
|
|
78
|
+
}
|
|
79
|
+
.seed-bottom-sheet__header--headerAlign_left {
|
|
80
|
+
justify-content: flex-start
|
|
81
|
+
}
|
|
82
|
+
.seed-bottom-sheet__title--headerAlign_left {
|
|
83
|
+
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
84
|
+
padding-right: var(--seed-dimension-spacing-x-global-gutter)
|
|
85
|
+
}
|
|
86
|
+
.seed-bottom-sheet__header--headerAlign_center {
|
|
87
|
+
justify-content: center;
|
|
88
|
+
text-align: center
|
|
89
|
+
}
|
|
90
|
+
.seed-bottom-sheet__title--headerAlign_center {
|
|
91
|
+
padding-left: var(--seed-dimension-spacing-x-global-gutter);
|
|
92
|
+
padding-right: var(--seed-dimension-spacing-x-global-gutter)
|
|
93
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare interface BottomSheetVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default "left"
|
|
4
|
+
*/
|
|
5
|
+
headerAlign: "left" | "center";
|
|
6
|
+
/**
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
skipAnimation: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare type BottomSheetVariantMap = {
|
|
13
|
+
[key in keyof BottomSheetVariant]: Array<BottomSheetVariant[key]>;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export declare type BottomSheetVariantProps = Partial<BottomSheetVariant>;
|
|
17
|
+
|
|
18
|
+
export declare type BottomSheetSlotName = "positioner" | "backdrop" | "content" | "header" | "body" | "footer" | "title" | "description" | "closeButton";
|
|
19
|
+
|
|
20
|
+
export declare const bottomSheetVariantMap: BottomSheetVariantMap;
|
|
21
|
+
|
|
22
|
+
export declare const bottomSheet: ((
|
|
23
|
+
props?: BottomSheetVariantProps,
|
|
24
|
+
) => Record<BottomSheetSlotName, string>) & {
|
|
25
|
+
splitVariantProps: <T extends BottomSheetVariantProps>(
|
|
26
|
+
props: T,
|
|
27
|
+
) => [BottomSheetVariantProps, Omit<T, keyof BottomSheetVariantProps>];
|
|
28
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import './bottom-sheet.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const bottomSheetSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"positioner",
|
|
7
|
+
"seed-bottom-sheet__positioner"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"backdrop",
|
|
11
|
+
"seed-bottom-sheet__backdrop"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"content",
|
|
15
|
+
"seed-bottom-sheet__content"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"header",
|
|
19
|
+
"seed-bottom-sheet__header"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"body",
|
|
23
|
+
"seed-bottom-sheet__body"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"footer",
|
|
27
|
+
"seed-bottom-sheet__footer"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"title",
|
|
31
|
+
"seed-bottom-sheet__title"
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
"description",
|
|
35
|
+
"seed-bottom-sheet__description"
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
"closeButton",
|
|
39
|
+
"seed-bottom-sheet__closeButton"
|
|
40
|
+
]
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
const defaultVariant = {
|
|
44
|
+
"headerAlign": "left",
|
|
45
|
+
"skipAnimation": false
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const compoundVariants = [];
|
|
49
|
+
|
|
50
|
+
export const bottomSheetVariantMap = {
|
|
51
|
+
"headerAlign": [
|
|
52
|
+
"left",
|
|
53
|
+
"center"
|
|
54
|
+
],
|
|
55
|
+
"skipAnimation": [
|
|
56
|
+
true,
|
|
57
|
+
false
|
|
58
|
+
]
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export const bottomSheetVariantKeys = Object.keys(bottomSheetVariantMap);
|
|
62
|
+
|
|
63
|
+
export function bottomSheet(props) {
|
|
64
|
+
return Object.fromEntries(
|
|
65
|
+
bottomSheetSlotNames.map(([slot, className]) => {
|
|
66
|
+
return [
|
|
67
|
+
slot,
|
|
68
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
69
|
+
];
|
|
70
|
+
}),
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
Object.assign(bottomSheet, { splitVariantProps: (props) => splitVariantProps(props, bottomSheetVariantMap) });
|
|
75
|
+
|
|
76
|
+
// @recipe(seed): bottom-sheet
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare interface CheckboxGroupVariant {
|
|
2
|
+
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
declare type CheckboxGroupVariantMap = {
|
|
6
|
+
[key in keyof CheckboxGroupVariant]: Array<CheckboxGroupVariant[key]>;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare type CheckboxGroupVariantProps = Partial<CheckboxGroupVariant>;
|
|
10
|
+
|
|
11
|
+
export declare type CheckboxGroupSlotName = "root" | "text";
|
|
12
|
+
|
|
13
|
+
export declare const checkboxGroupVariantMap: CheckboxGroupVariantMap;
|
|
14
|
+
|
|
15
|
+
export declare const checkboxGroup: ((
|
|
16
|
+
props?: CheckboxGroupVariantProps,
|
|
17
|
+
) => Record<CheckboxGroupSlotName, string>) & {
|
|
18
|
+
splitVariantProps: <T extends CheckboxGroupVariantProps>(
|
|
19
|
+
props: T,
|
|
20
|
+
) => [CheckboxGroupVariantProps, Omit<T, keyof CheckboxGroupVariantProps>];
|
|
21
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import './checkbox-group.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const checkboxGroupSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-checkbox-group__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"text",
|
|
11
|
+
"seed-checkbox-group__text"
|
|
12
|
+
]
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
const defaultVariant = {};
|
|
16
|
+
|
|
17
|
+
const compoundVariants = [];
|
|
18
|
+
|
|
19
|
+
export const checkboxGroupVariantMap = {};
|
|
20
|
+
|
|
21
|
+
export const checkboxGroupVariantKeys = Object.keys(checkboxGroupVariantMap);
|
|
22
|
+
|
|
23
|
+
export function checkboxGroup(props) {
|
|
24
|
+
return Object.fromEntries(
|
|
25
|
+
checkboxGroupSlotNames.map(([slot, className]) => {
|
|
26
|
+
return [
|
|
27
|
+
slot,
|
|
28
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
29
|
+
];
|
|
30
|
+
}),
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
Object.assign(checkboxGroup, { splitVariantProps: (props) => splitVariantProps(props, checkboxGroupVariantMap) });
|
|
35
|
+
|
|
36
|
+
// @recipe(seed): checkbox-group
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
.seed-checkbox__root {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
position: relative;
|
|
5
|
+
gap: var(--seed-dimension-x2)
|
|
6
|
+
}
|
|
7
|
+
.seed-checkbox__label {
|
|
8
|
+
color: var(--seed-color-fg-neutral)
|
|
9
|
+
}
|
|
10
|
+
.seed-checkbox__label--weight_regular {
|
|
11
|
+
font-weight: var(--seed-font-weight-regular)
|
|
12
|
+
}
|
|
13
|
+
.seed-checkbox__label--weight_bold {
|
|
14
|
+
font-weight: var(--seed-font-weight-bold)
|
|
15
|
+
}
|
|
16
|
+
.seed-checkbox__root--size_medium {
|
|
17
|
+
min-height: var(--seed-dimension-x8);
|
|
18
|
+
--checkmark-margin-top: calc((var(--seed-dimension-x8) - var(--seed-dimension-x5)) / 2)
|
|
19
|
+
}
|
|
20
|
+
.seed-checkbox__label--size_medium {
|
|
21
|
+
font-size: var(--seed-font-size-t4);
|
|
22
|
+
line-height: var(--seed-line-height-t4)
|
|
23
|
+
}
|
|
24
|
+
.seed-checkbox__root--size_large {
|
|
25
|
+
min-height: var(--seed-dimension-x9);
|
|
26
|
+
--checkmark-margin-top: calc((var(--seed-dimension-x9) - var(--seed-dimension-x6)) / 2)
|
|
27
|
+
}
|
|
28
|
+
.seed-checkbox__label--size_large {
|
|
29
|
+
font-size: var(--seed-font-size-t5);
|
|
30
|
+
line-height: var(--seed-line-height-t5)
|
|
31
|
+
}
|
|
32
|
+
.seed-checkbox__label--disabled_true {
|
|
33
|
+
color: var(--seed-color-fg-disabled)
|
|
34
|
+
}
|