@nd-storybook/storybook 0.3.0 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nd-storybook/storybook",
3
- "version": "0.3.0",
3
+ "version": "0.3.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -21,7 +21,7 @@ export default {
21
21
  "./src/**/*.{vue,js,ts,jsx,tsx,stories.js}",
22
22
  "./storybook/**/*.{mdx,vue,js,ts,jsx,tsx,stories.js}",
23
23
  ],
24
- darkMode: 'class',
24
+ darkMode: 'media',
25
25
  theme: {
26
26
  extend: {
27
27
  colors: {
@@ -1,5 +1,5 @@
1
1
  // Generated from design tokens - DO NOT EDIT DIRECTLY
2
- // Last generated: 2025-11-24T13:43:30.556Z
2
+ // Last generated: 2025-12-08T13:56:43.110Z
3
3
 
4
4
  export const primitiveColors = {
5
5
  "blue-400": "var(--color-blue-400)",
@@ -10,6 +10,7 @@ export const primitiveColors = {
10
10
  "pink-400": "var(--color-pink-400)",
11
11
  "pink-600": "var(--color-pink-600)",
12
12
  "pink-700": "var(--color-pink-700)",
13
+ "pink-800": "var(--color-pink-800)",
13
14
  "brown-500": "var(--color-brown-500)",
14
15
  "brown-800": "var(--color-brown-800)",
15
16
  "brown-900": "var(--color-brown-900)",
@@ -63,7 +64,9 @@ export const semanticColors = {
63
64
  "icons-brand": "var(--color-icons-brand)",
64
65
  "icons-warning": "var(--color-icons-warning)",
65
66
  "icons-inverse": "var(--color-icons-inverse)",
66
- "shadow-default": "var(--color-shadow-default)"
67
+ "shadow-default": "var(--color-shadow-default)",
68
+ "dnk-brand": "var(--color-dnk-brand)",
69
+ "dnk-background": "var(--color-dnk-background)"
67
70
  };
68
71
  export const componentColors = {
69
72
  "form-background-input-field": "var(--color-form-background-input-field-default)",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Tailwind CSS Utilities Plugin
3
3
  * Generated from design tokens - DO NOT EDIT DIRECTLY
4
- * Last generated: 2025-11-24T13:43:30.558Z
4
+ * Last generated: 2025-12-08T13:56:43.112Z
5
5
  */
6
6
 
7
7
  export default function ({ addUtilities }) {
@@ -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
- }
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
- }