@seed-design/css 1.2.16 → 2.1.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/all.css +4956 -1923
- package/all.layered.css +5922 -2881
- package/all.layered.min.css +1 -1
- package/all.min.css +1 -1
- package/base.css +348 -33
- package/base.layered.css +348 -33
- package/base.layered.min.css +1 -1
- package/base.min.css +1 -1
- package/breakpoints/index.d.ts +7 -0
- package/breakpoints/index.mjs +17 -0
- package/package.json +6 -1
- package/recipes/accordion.css +268 -0
- package/recipes/accordion.d.ts +33 -0
- package/recipes/accordion.layered.css +308 -0
- package/recipes/accordion.layered.mjs +94 -0
- package/recipes/accordion.mjs +94 -0
- package/recipes/action-button.css +56 -4
- package/recipes/action-button.d.ts +16 -0
- package/recipes/action-button.layered.css +60 -4
- package/recipes/app-bar.css +0 -3
- package/recipes/app-bar.d.ts +0 -4
- package/recipes/app-bar.layered.css +0 -4
- package/recipes/app-bar.layered.mjs +1 -5
- package/recipes/app-bar.mjs +1 -5
- package/recipes/app-screen.css +3 -0
- package/recipes/app-screen.layered.css +4 -0
- package/recipes/attachment-input-item.css +275 -0
- package/recipes/attachment-input-item.d.ts +24 -0
- package/recipes/attachment-input-item.layered.css +288 -0
- package/recipes/attachment-input-item.layered.mjs +79 -0
- package/recipes/attachment-input-item.mjs +79 -0
- package/recipes/attachment-input-trigger.css +71 -0
- package/recipes/attachment-input-trigger.d.ts +21 -0
- package/recipes/attachment-input-trigger.layered.css +85 -0
- package/recipes/attachment-input-trigger.layered.mjs +48 -0
- package/recipes/attachment-input-trigger.mjs +48 -0
- package/recipes/attachment-input.css +55 -0
- package/recipes/attachment-input.d.ts +21 -0
- package/recipes/attachment-input.layered.css +64 -0
- package/recipes/attachment-input.layered.mjs +48 -0
- package/recipes/attachment-input.mjs +48 -0
- package/recipes/avatar.d.ts +9 -0
- package/recipes/badge.d.ts +10 -0
- package/recipes/bottom-sheet.css +62 -5
- package/recipes/bottom-sheet.layered.css +67 -5
- package/recipes/callout.d.ts +7 -0
- package/recipes/checkmark.d.ts +3 -0
- package/recipes/chip-tabs.css +8 -52
- package/recipes/chip-tabs.d.ts +1 -1
- package/recipes/chip-tabs.layered.css +8 -62
- package/recipes/chip-tabs.layered.mjs +1 -2
- package/recipes/chip-tabs.mjs +1 -2
- package/recipes/chip.d.ts +4 -0
- package/recipes/contextual-floating-button.d.ts +6 -0
- package/recipes/dialog.css +14 -11
- package/recipes/dialog.layered.css +4 -0
- package/recipes/footer.css +44 -0
- package/recipes/footer.d.ts +24 -0
- package/recipes/footer.layered.css +52 -0
- package/recipes/footer.layered.mjs +39 -0
- package/recipes/footer.mjs +39 -0
- package/recipes/help-bubble.css +29 -1
- package/recipes/help-bubble.layered.css +34 -1
- package/recipes/image-frame.css +0 -3
- package/recipes/image-frame.d.ts +0 -4
- package/recipes/image-frame.layered.css +0 -4
- package/recipes/image-frame.layered.mjs +1 -6
- package/recipes/image-frame.mjs +1 -6
- package/recipes/input-button.css +176 -20
- package/recipes/input-button.d.ts +8 -1
- package/recipes/input-button.layered.css +197 -21
- package/recipes/input-button.layered.mjs +10 -2
- package/recipes/input-button.mjs +10 -2
- package/recipes/layout.css +25 -0
- package/recipes/layout.d.ts +24 -0
- package/recipes/layout.layered.css +25 -0
- package/recipes/layout.layered.mjs +44 -0
- package/recipes/layout.mjs +44 -0
- package/recipes/list-item.css +72 -4
- package/recipes/list-item.layered.css +84 -4
- package/recipes/menu-item.css +174 -0
- package/recipes/menu-item.d.ts +35 -0
- package/recipes/menu-item.layered.css +200 -0
- package/recipes/menu-item.layered.mjs +57 -0
- package/recipes/menu-item.mjs +57 -0
- package/recipes/menu-sheet-item.d.ts +6 -0
- package/recipes/menu-sheet.css +19 -1
- package/recipes/menu-sheet.layered.css +22 -1
- package/recipes/menu.css +119 -0
- package/recipes/menu.d.ts +28 -0
- package/recipes/menu.layered.css +139 -0
- package/recipes/menu.layered.mjs +56 -0
- package/recipes/menu.mjs +56 -0
- package/recipes/notification-badge.d.ts +3 -0
- package/recipes/page-banner.d.ts +5 -0
- package/recipes/progress-circle.d.ts +7 -0
- package/recipes/{selectBoxCheckmark.css → select-box-checkmark.css} +6 -6
- package/recipes/{selectBoxCheckmark.layered.css → select-box-checkmark.layered.css} +6 -6
- package/recipes/{selectBoxCheckmark.layered.mjs → select-box-checkmark.layered.mjs} +4 -4
- package/recipes/{selectBoxCheckmark.mjs → select-box-checkmark.mjs} +4 -4
- package/recipes/side-navigation-inset.css +4 -0
- package/recipes/side-navigation-inset.d.ts +19 -0
- package/recipes/side-navigation-inset.layered.css +6 -0
- package/recipes/side-navigation-inset.layered.mjs +22 -0
- package/recipes/side-navigation-inset.mjs +22 -0
- package/recipes/side-navigation-menu-item.css +135 -0
- package/recipes/side-navigation-menu-item.d.ts +21 -0
- package/recipes/side-navigation-menu-item.layered.css +156 -0
- package/recipes/side-navigation-menu-item.layered.mjs +48 -0
- package/recipes/side-navigation-menu-item.mjs +48 -0
- package/recipes/side-navigation.css +115 -0
- package/recipes/side-navigation.d.ts +24 -0
- package/recipes/side-navigation.layered.css +132 -0
- package/recipes/side-navigation.layered.mjs +63 -0
- package/recipes/side-navigation.mjs +63 -0
- package/recipes/side-panel.css +327 -0
- package/recipes/side-panel.d.ts +24 -0
- package/recipes/side-panel.layered.css +361 -0
- package/recipes/side-panel.layered.mjs +72 -0
- package/recipes/side-panel.mjs +72 -0
- package/recipes/skeleton.css +36 -2
- package/recipes/skeleton.d.ts +8 -0
- package/recipes/skeleton.layered.css +40 -2
- package/recipes/text-input.css +323 -52
- package/recipes/text-input.d.ts +8 -1
- package/recipes/text-input.layered.css +385 -51
- package/recipes/text-input.layered.mjs +18 -1
- package/recipes/text-input.mjs +18 -1
- package/recipes/text.css +180 -0
- package/recipes/text.d.ts +59 -1
- package/recipes/text.layered.css +216 -0
- package/recipes/text.layered.mjs +37 -1
- package/recipes/text.mjs +37 -1
- package/recipes/toggle-button.d.ts +3 -0
- package/vars/color/bg.d.ts +3 -1
- package/vars/color/bg.mjs +2 -0
- package/vars/color/stroke.d.ts +2 -2
- package/vars/color/stroke.mjs +2 -2
- 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/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/chip-tablist.d.ts +0 -7
- package/vars/component/chip-tablist.mjs +0 -7
- package/vars/component/image-frame.d.ts +1 -22
- package/vars/component/image-frame.mjs +1 -9
- package/vars/component/index.d.ts +12 -1
- package/vars/component/index.mjs +12 -1
- package/vars/component/input-button.d.ts +90 -17
- package/vars/component/input-button.mjs +84 -17
- package/vars/component/menu-item.d.ts +129 -0
- package/vars/component/menu-item.mjs +117 -0
- package/vars/component/menu.d.ts +68 -0
- package/vars/component/menu.mjs +60 -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/text-input.d.ts +92 -24
- package/vars/component/text-input.mjs +76 -24
- package/vars/component/typography.d.ts +414 -0
- package/vars/component/typography.mjs +324 -0
- package/vars/font-size.d.ts +17 -1
- package/vars/font-size.mjs +9 -1
- package/vars/gradient.d.ts +0 -8
- package/vars/gradient.mjs +0 -2
- package/vars/line-height.d.ts +17 -1
- package/vars/line-height.mjs +9 -1
- package/vars/component/chip-tab.d.ts +0 -162
- package/vars/component/chip-tab.mjs +0 -162
- /package/recipes/{selectBoxCheckmark.d.ts → select-box-checkmark.d.ts} +0 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
.seed-side-navigation__root {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
position: relative;
|
|
5
|
+
overflow-x: hidden;
|
|
6
|
+
width: 240px;
|
|
7
|
+
height: 100%;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
transition: width 200ms;
|
|
10
|
+
}
|
|
11
|
+
.seed-side-navigation__root[data-side-navigation-state=collapsed] {
|
|
12
|
+
width: 56px;
|
|
13
|
+
}
|
|
14
|
+
.seed-side-navigation__header {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 8px;
|
|
17
|
+
min-height: 64px;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
}
|
|
20
|
+
.seed-side-navigation__content {
|
|
21
|
+
padding-top: 8px;
|
|
22
|
+
padding-left: 8px;
|
|
23
|
+
padding-right: 8px;
|
|
24
|
+
padding-bottom: 24px;
|
|
25
|
+
flex: 1;
|
|
26
|
+
overflow-y: auto;
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
gap: 8px;
|
|
30
|
+
}
|
|
31
|
+
.seed-side-navigation__content[data-scrolled] {
|
|
32
|
+
box-shadow: inset 0 1px 0 0 var(--seed-color-stroke-neutral-muted);
|
|
33
|
+
}
|
|
34
|
+
.seed-side-navigation__content {
|
|
35
|
+
mask-image: linear-gradient(to top, transparent 0, black 24px);
|
|
36
|
+
-webkit-mask-image: linear-gradient(to top, transparent 0, black 24px);
|
|
37
|
+
transition: gap 200ms, box-shadow var(--seed-duration-color-transition) var(--seed-timing-function-easing);
|
|
38
|
+
scrollbar-width: thin;
|
|
39
|
+
scrollbar-color: var(--seed-color-bg-neutral-weak-alpha) transparent;
|
|
40
|
+
}
|
|
41
|
+
.seed-side-navigation__content[data-side-navigation-state=collapsed] {
|
|
42
|
+
gap: 0;
|
|
43
|
+
scrollbar-width: none;
|
|
44
|
+
}
|
|
45
|
+
.seed-side-navigation__footer {
|
|
46
|
+
padding: 8px;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
}
|
|
49
|
+
.seed-side-navigation__footer:empty {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
.seed-side-navigation__group {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
}
|
|
56
|
+
.seed-side-navigation__groupLabel {
|
|
57
|
+
padding: 6px;
|
|
58
|
+
font-size: var(--seed-font-size-t4);
|
|
59
|
+
line-height: var(--seed-line-height-t4);
|
|
60
|
+
font-weight: var(--seed-font-weight-bold);
|
|
61
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
opacity: 1;
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
transition: margin 200ms, opacity 200ms;
|
|
68
|
+
}
|
|
69
|
+
.seed-side-navigation__groupLabel[data-side-navigation-state=collapsed] {
|
|
70
|
+
margin-top: calc(-1 * (1lh + 6px * 2));
|
|
71
|
+
opacity: 0;
|
|
72
|
+
}
|
|
73
|
+
.seed-side-navigation__trigger {
|
|
74
|
+
min-width: 40px;
|
|
75
|
+
min-height: 40px;
|
|
76
|
+
padding: 10px;
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
border: none;
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
background: transparent;
|
|
84
|
+
position: absolute;
|
|
85
|
+
top: 12px;
|
|
86
|
+
right: 12px;
|
|
87
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
88
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
89
|
+
transition: right 200ms, background-color 200ms, outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
90
|
+
}
|
|
91
|
+
.seed-side-navigation__trigger:is(:focus-visible, [data-focus-visible]) {
|
|
92
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
93
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
94
|
+
}
|
|
95
|
+
.seed-side-navigation__trigger {
|
|
96
|
+
--seed-icon-size: 18px;
|
|
97
|
+
--seed-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
98
|
+
}
|
|
99
|
+
@media (hover: hover) and (pointer: fine) {
|
|
100
|
+
.seed-side-navigation__trigger:is(:hover, [data-hover]) {
|
|
101
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
@media not all and (hover: hover) and (pointer: fine) {
|
|
105
|
+
.seed-side-navigation__trigger:is(:active, [data-active]) {
|
|
106
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
.seed-side-navigation__trigger[data-side-navigation-state=collapsed] {
|
|
110
|
+
right: 8px;
|
|
111
|
+
}
|
|
112
|
+
.seed-side-navigation__root--tone_neutral {
|
|
113
|
+
background-color: var(--seed-color-palette-gray-100);
|
|
114
|
+
box-shadow: inset -1px 0 0 0 var(--seed-color-stroke-neutral-muted);
|
|
115
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare interface SideNavigationVariant {
|
|
2
|
+
/**
|
|
3
|
+
* @default "neutral"
|
|
4
|
+
*/
|
|
5
|
+
tone: "neutral" | "transparent";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare type SideNavigationVariantMap = {
|
|
9
|
+
[key in keyof SideNavigationVariant]: Array<SideNavigationVariant[key]>;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export declare type SideNavigationVariantProps = Partial<SideNavigationVariant>;
|
|
13
|
+
|
|
14
|
+
export declare type SideNavigationSlotName = "root" | "header" | "content" | "footer" | "group" | "groupLabel" | "trigger";
|
|
15
|
+
|
|
16
|
+
export declare const sideNavigationVariantMap: SideNavigationVariantMap;
|
|
17
|
+
|
|
18
|
+
export declare const sideNavigation: ((
|
|
19
|
+
props?: SideNavigationVariantProps,
|
|
20
|
+
) => Record<SideNavigationSlotName, string>) & {
|
|
21
|
+
splitVariantProps: <T extends SideNavigationVariantProps>(
|
|
22
|
+
props: T,
|
|
23
|
+
) => [SideNavigationVariantProps, Omit<T, keyof SideNavigationVariantProps>];
|
|
24
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
@layer seed-components {
|
|
2
|
+
.seed-side-navigation__root {
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
width: 240px;
|
|
6
|
+
height: 100%;
|
|
7
|
+
transition: width .2s;
|
|
8
|
+
display: flex;
|
|
9
|
+
position: relative;
|
|
10
|
+
overflow-x: hidden;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.seed-side-navigation__root[data-side-navigation-state="collapsed"] {
|
|
14
|
+
width: 56px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.seed-side-navigation__header {
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
min-height: 64px;
|
|
21
|
+
padding: 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.seed-side-navigation__content {
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
flex: 1;
|
|
27
|
+
gap: 8px;
|
|
28
|
+
padding: 8px 8px 24px;
|
|
29
|
+
display: flex;
|
|
30
|
+
overflow-y: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.seed-side-navigation__content[data-scrolled] {
|
|
34
|
+
box-shadow: inset 0 1px 0 0 var(--seed-color-stroke-neutral-muted);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.seed-side-navigation__content {
|
|
38
|
+
transition: gap .2s, box-shadow var(--seed-duration-color-transition) var(--seed-timing-function-easing);
|
|
39
|
+
scrollbar-width: thin;
|
|
40
|
+
scrollbar-color: var(--seed-color-bg-neutral-weak-alpha) transparent;
|
|
41
|
+
-webkit-mask-image: linear-gradient(to top, #0000 0, #000 24px);
|
|
42
|
+
mask-image: linear-gradient(to top, #0000 0, #000 24px);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.seed-side-navigation__content[data-side-navigation-state="collapsed"] {
|
|
46
|
+
scrollbar-width: none;
|
|
47
|
+
gap: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.seed-side-navigation__footer {
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
padding: 8px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.seed-side-navigation__footer:empty {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.seed-side-navigation__group {
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
display: flex;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.seed-side-navigation__groupLabel {
|
|
65
|
+
font-size: var(--seed-font-size-t4);
|
|
66
|
+
line-height: var(--seed-line-height-t4);
|
|
67
|
+
font-weight: var(--seed-font-weight-bold);
|
|
68
|
+
color: var(--seed-color-fg-neutral-muted);
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
text-overflow: ellipsis;
|
|
71
|
+
opacity: 1;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
padding: 6px;
|
|
74
|
+
transition: margin .2s, opacity .2s;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.seed-side-navigation__groupLabel[data-side-navigation-state="collapsed"] {
|
|
79
|
+
opacity: 0;
|
|
80
|
+
margin-top: calc(-1lh - 12px);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.seed-side-navigation__trigger {
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
outline: var(--seed-dimension-x0_5) solid transparent;
|
|
86
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
87
|
+
min-width: 40px;
|
|
88
|
+
min-height: 40px;
|
|
89
|
+
transition: right .2s, background-color .2s, outline-color var(--seed-duration-d3) var(--seed-timing-function-easing);
|
|
90
|
+
background: none;
|
|
91
|
+
border: none;
|
|
92
|
+
border-radius: 8px;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
align-items: center;
|
|
95
|
+
padding: 10px;
|
|
96
|
+
display: inline-flex;
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 12px;
|
|
99
|
+
right: 12px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.seed-side-navigation__trigger:is(:focus-visible, [data-focus-visible]) {
|
|
103
|
+
outline: var(--seed-dimension-x0_5) solid var(--seed-color-stroke-focus-ring);
|
|
104
|
+
outline-offset: var(--seed-dimension-x0_5);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.seed-side-navigation__trigger {
|
|
108
|
+
--seed-icon-size: 18px;
|
|
109
|
+
--seed-icon-color: var(--seed-color-fg-neutral-subtle);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media (hover: hover) and (pointer: fine) {
|
|
113
|
+
.seed-side-navigation__trigger:is(:hover, [data-hover]) {
|
|
114
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@media not all and (hover: hover) and (pointer: fine) {
|
|
119
|
+
.seed-side-navigation__trigger:is(:active, [data-active]) {
|
|
120
|
+
background: var(--seed-color-bg-transparent-pressed);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.seed-side-navigation__trigger[data-side-navigation-state="collapsed"] {
|
|
125
|
+
right: 8px;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.seed-side-navigation__root--tone_neutral {
|
|
129
|
+
background-color: var(--seed-color-palette-gray-100);
|
|
130
|
+
box-shadow: inset -1px 0 0 0 var(--seed-color-stroke-neutral-muted);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import './side-navigation.layered.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const sideNavigationSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-side-navigation__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"header",
|
|
11
|
+
"seed-side-navigation__header"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"content",
|
|
15
|
+
"seed-side-navigation__content"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"footer",
|
|
19
|
+
"seed-side-navigation__footer"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"group",
|
|
23
|
+
"seed-side-navigation__group"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"groupLabel",
|
|
27
|
+
"seed-side-navigation__groupLabel"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"trigger",
|
|
31
|
+
"seed-side-navigation__trigger"
|
|
32
|
+
]
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
const defaultVariant = {
|
|
36
|
+
"tone": "neutral"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const compoundVariants = [];
|
|
40
|
+
|
|
41
|
+
export const sideNavigationVariantMap = {
|
|
42
|
+
"tone": [
|
|
43
|
+
"neutral",
|
|
44
|
+
"transparent"
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const sideNavigationVariantKeys = Object.keys(sideNavigationVariantMap);
|
|
49
|
+
|
|
50
|
+
export function sideNavigation(props) {
|
|
51
|
+
return Object.fromEntries(
|
|
52
|
+
sideNavigationSlotNames.map(([slot, className]) => {
|
|
53
|
+
return [
|
|
54
|
+
slot,
|
|
55
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
56
|
+
];
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
Object.assign(sideNavigation, { splitVariantProps: (props) => splitVariantProps(props, sideNavigationVariantMap) });
|
|
62
|
+
|
|
63
|
+
// @recipe(seed): side-navigation
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import './side-navigation.css';
|
|
2
|
+
import { createClassName, mergeVariants, splitVariantProps } from "./shared.mjs";
|
|
3
|
+
|
|
4
|
+
const sideNavigationSlotNames = [
|
|
5
|
+
[
|
|
6
|
+
"root",
|
|
7
|
+
"seed-side-navigation__root"
|
|
8
|
+
],
|
|
9
|
+
[
|
|
10
|
+
"header",
|
|
11
|
+
"seed-side-navigation__header"
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"content",
|
|
15
|
+
"seed-side-navigation__content"
|
|
16
|
+
],
|
|
17
|
+
[
|
|
18
|
+
"footer",
|
|
19
|
+
"seed-side-navigation__footer"
|
|
20
|
+
],
|
|
21
|
+
[
|
|
22
|
+
"group",
|
|
23
|
+
"seed-side-navigation__group"
|
|
24
|
+
],
|
|
25
|
+
[
|
|
26
|
+
"groupLabel",
|
|
27
|
+
"seed-side-navigation__groupLabel"
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
"trigger",
|
|
31
|
+
"seed-side-navigation__trigger"
|
|
32
|
+
]
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
const defaultVariant = {
|
|
36
|
+
"tone": "neutral"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const compoundVariants = [];
|
|
40
|
+
|
|
41
|
+
export const sideNavigationVariantMap = {
|
|
42
|
+
"tone": [
|
|
43
|
+
"neutral",
|
|
44
|
+
"transparent"
|
|
45
|
+
]
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export const sideNavigationVariantKeys = Object.keys(sideNavigationVariantMap);
|
|
49
|
+
|
|
50
|
+
export function sideNavigation(props) {
|
|
51
|
+
return Object.fromEntries(
|
|
52
|
+
sideNavigationSlotNames.map(([slot, className]) => {
|
|
53
|
+
return [
|
|
54
|
+
slot,
|
|
55
|
+
createClassName(className, mergeVariants(defaultVariant, props), compoundVariants),
|
|
56
|
+
];
|
|
57
|
+
}),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
Object.assign(sideNavigation, { splitVariantProps: (props) => splitVariantProps(props, sideNavigationVariantMap) });
|
|
62
|
+
|
|
63
|
+
// @recipe(seed): side-navigation
|