@nd-storybook/storybook 0.3.2 → 0.3.4
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/dist/css/tailwind.css +0 -4
- package/dist/css/tokens.css +57 -274
- package/dist/index.cjs.js +32 -32
- package/dist/index.d.ts +20 -26
- package/dist/index.es.js +3306 -3040
- package/dist/tailwind.config.js +1 -11
- package/dist/tailwind.tokens.js +9 -206
- package/dist/tokens.utilities.js +211 -383
- package/package.json +1 -1
- package/dist/css/badge.css +0 -20
- package/dist/css/button.css +0 -0
- package/dist/css/components/.DS_Store +0 -0
- package/dist/css/components/portal/tabs.css +0 -220
- package/dist/css/experimental/collapsed-card.css +0 -16
package/package.json
CHANGED
package/dist/css/badge.css
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
|
|
3
|
-
.badge-premium {
|
|
4
|
-
@apply
|
|
5
|
-
inline-flex
|
|
6
|
-
items-center
|
|
7
|
-
gap-x-xs
|
|
8
|
-
p-s
|
|
9
|
-
bg-background-accent-pink-subtlest
|
|
10
|
-
text-meta-regular
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.badge-premium-small {
|
|
14
|
-
@apply
|
|
15
|
-
p-xs
|
|
16
|
-
gap-x-xs
|
|
17
|
-
text-meta-regular
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
}
|
package/dist/css/button.css
DELETED
|
File without changes
|
|
Binary file
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
/* Tabs Component Styles - Using Design System Tokens */
|
|
2
|
-
|
|
3
|
-
/* Tab Container */
|
|
4
|
-
.tabs {
|
|
5
|
-
display: flex;
|
|
6
|
-
position: relative;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.tabs--desktop {
|
|
10
|
-
flex-direction: row;
|
|
11
|
-
align-items: center;
|
|
12
|
-
gap: var(--spacing-0);
|
|
13
|
-
margin-bottom: var(--spacing-m);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.tabs--mobile {
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
width: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/* Tab Item Base */
|
|
22
|
-
.tab-item {
|
|
23
|
-
background: var(--color-background-default);
|
|
24
|
-
border: var(--border-width-0);
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
text-decoration: none;
|
|
27
|
-
position: relative;
|
|
28
|
-
display: flex;
|
|
29
|
-
align-items: center;
|
|
30
|
-
outline: none;
|
|
31
|
-
-webkit-appearance: none;
|
|
32
|
-
-moz-appearance: none;
|
|
33
|
-
appearance: none;
|
|
34
|
-
transition: all 200ms ease-in-out;
|
|
35
|
-
color: var(--color-text-default);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* Desktop Tab Item */
|
|
39
|
-
.tab-item--desktop {
|
|
40
|
-
padding: var(--spacing-s) var(--spacing-m);
|
|
41
|
-
justify-content: center;
|
|
42
|
-
position: relative;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Mobile Tab Item */
|
|
46
|
-
.tab-item--mobile {
|
|
47
|
-
padding: var(--spacing-s) var(--spacing-0);
|
|
48
|
-
width: 100%;
|
|
49
|
-
justify-content: space-between;
|
|
50
|
-
flex-direction: row;
|
|
51
|
-
border-bottom: var(--border-width-s) solid var(--color-border-accent-gray-subtle);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.tab-item__content {
|
|
55
|
-
display: flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
gap: var(--spacing-xs);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Tab Text */
|
|
61
|
-
.tab-item__text {
|
|
62
|
-
display: inline-block;
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
text-align: center;
|
|
65
|
-
color: var(--color-text-default);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* =========================
|
|
69
|
-
DESKTOP STYLES
|
|
70
|
-
========================= */
|
|
71
|
-
|
|
72
|
-
/* Desktop Default State */
|
|
73
|
-
.tab-item--desktop:not(.active) .tab-item__text {
|
|
74
|
-
font-family: var(--menu-menu-tab-item-fontFamily); /* ← Use the correct variable */
|
|
75
|
-
font-size: var(--menu-menu-tab-item-fontSize);
|
|
76
|
-
font-weight: var(--menu-menu-tab-item-fontWeight);
|
|
77
|
-
line-height: var(--menu-menu-tab-item-lineHeight);
|
|
78
|
-
letter-spacing: var(--menu-menu-tab-item-letterSpacing);
|
|
79
|
-
text-decoration: none;
|
|
80
|
-
color: var(--color-text-default);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
/* Desktop Hover State */
|
|
85
|
-
.tab-item--desktop:not(.active):hover {
|
|
86
|
-
background: var(--color-background-default);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.tab-item--desktop:not(.active):hover .tab-item__text {
|
|
90
|
-
color: var(--color-text-default);
|
|
91
|
-
text-decoration: underline;
|
|
92
|
-
text-decoration-color: var(--color-border-accent-gray);
|
|
93
|
-
text-underline-offset: 8px;
|
|
94
|
-
text-decoration-thickness: 2px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/* Desktop Active State - Matching Figma exactly */
|
|
98
|
-
.tab-item--desktop.active,
|
|
99
|
-
.tab-item--desktop[data-active="true"] {
|
|
100
|
-
background: var(--color-background-default);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.tab-item--desktop.active .tab-item__text,
|
|
104
|
-
.tab-item--desktop[data-active="true"] .tab-item__text {
|
|
105
|
-
font-family: var(--menu-menu-tab-item-active-fontFamily); /* ← Use the correct variable */
|
|
106
|
-
font-size: var(--menu-menu-tab-item-active-fontSize);
|
|
107
|
-
font-weight: var(--menu-menu-tab-item-active-fontWeight);
|
|
108
|
-
line-height: var(--menu-menu-tab-item-active-lineHeight);
|
|
109
|
-
letter-spacing: var(--menu-menu-tab-item-active-letterSpacing);
|
|
110
|
-
text-decoration: underline;
|
|
111
|
-
text-decoration-color: var(--color-border-brand);
|
|
112
|
-
text-underline-offset: 25%;
|
|
113
|
-
color: var(--color-text-default);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* =========================
|
|
117
|
-
MOBILE STYLES
|
|
118
|
-
========================= */
|
|
119
|
-
|
|
120
|
-
/* Mobile Default State */
|
|
121
|
-
.tab-item--mobile:not(.active) {
|
|
122
|
-
background: var(--color-background-default);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.tab-item--mobile:not(.active) .tab-item__text {
|
|
126
|
-
font-family: var(--menu-menu-tab-item-fontFamily);
|
|
127
|
-
font-size: var(--font-size-body-m);
|
|
128
|
-
font-weight: var(--menu-menu-tab-item-fontWeight);
|
|
129
|
-
line-height: var(--menu-menu-tab-item-lineHeight);
|
|
130
|
-
letter-spacing: var(--menu-menu-tab-item-letterSpacing);
|
|
131
|
-
text-decoration: none;
|
|
132
|
-
color: var(--color-text-default);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/* Mobile Hover State */
|
|
136
|
-
.tab-item--mobile:not(.active):hover {
|
|
137
|
-
background: var(--color-background-accent-gray-subtle);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/* Mobile Active State */
|
|
141
|
-
.tab-item--mobile.active,
|
|
142
|
-
.tab-item--mobile[data-active="true"] {
|
|
143
|
-
background: var(--color-background-default);
|
|
144
|
-
border-bottom-width: 2px;
|
|
145
|
-
border-bottom-color: var(--color-border-brand);
|
|
146
|
-
padding-bottom: calc(var(--spacing-s) - 1px); /* Adjust for thicker border */
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.tab-item--mobile.active .tab-item__text,
|
|
150
|
-
.tab-item--mobile[data-active="true"] .tab-item__text {
|
|
151
|
-
font-family: var(--menu-menu-tab-item-active-fontFamily);
|
|
152
|
-
font-size: var(--font-size-body-m);
|
|
153
|
-
font-weight: var(--menu-menu-tab-item-active-fontWeight);
|
|
154
|
-
line-height: var(--menu-menu-tab-item-active-lineHeight);
|
|
155
|
-
letter-spacing: var(--menu-menu-tab-item-active-letterSpacing);
|
|
156
|
-
text-decoration: none;
|
|
157
|
-
color: var(--color-text-default);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/* Mobile chevron icons */
|
|
161
|
-
.tab-item__icon {
|
|
162
|
-
width: 7px;
|
|
163
|
-
height: 12px;
|
|
164
|
-
color: var(--color-icons-default);
|
|
165
|
-
flex-shrink: 0;
|
|
166
|
-
display: flex;
|
|
167
|
-
align-items: center;
|
|
168
|
-
justify-content: left;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.tab-item__icon svg {
|
|
172
|
-
width: 100%;
|
|
173
|
-
height: 100%;
|
|
174
|
-
stroke: currentColor;
|
|
175
|
-
stroke-width: var(--border-width-s);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/* Hide icons based on state */
|
|
179
|
-
.tab-item--mobile:not(.active) .tab-item__icon--left {
|
|
180
|
-
display: none;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.tab-item--mobile.active .tab-item__icon--right,
|
|
184
|
-
.tab-item--mobile[data-active="true"] .tab-item__icon--right {
|
|
185
|
-
display: none;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/* Focus styles for accessibility */
|
|
189
|
-
.tab-item:focus-visible {
|
|
190
|
-
outline: 2px solid var(--color-border-brand);
|
|
191
|
-
outline-offset: 2px;
|
|
192
|
-
border-radius: var(--border-radius-0);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
/* Remove focus outline when clicking (mouse users) */
|
|
196
|
-
.tab-item:focus:not(:focus-visible) {
|
|
197
|
-
outline: none;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/* Responsive adjustments */
|
|
201
|
-
@media (min-width: 768px) {
|
|
202
|
-
.tabs--desktop {
|
|
203
|
-
/* REMOVED: border-bottom line that was causing the gray border */
|
|
204
|
-
margin-bottom: var(--spacing-l);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.tab-item--desktop {
|
|
208
|
-
padding: var(--spacing-s) var(--spacing-l);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
@media (max-width: 767px) {
|
|
213
|
-
.tabs--mobile {
|
|
214
|
-
margin-top: var(--spacing-s);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.tab-item--mobile {
|
|
218
|
-
padding: var(--spacing-s) var(--spacing-0);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
|
|
3
|
-
/* Collapsed Card Component */
|
|
4
|
-
.collapsed-card {
|
|
5
|
-
@apply bg-white;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.collapsed-card-header {
|
|
9
|
-
@apply bg-gray-50 hover:bg-gray-100 transition-colors;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.collapsed-card-content {
|
|
13
|
-
@apply bg-white;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
}
|