@krumio/trailhand-ui 1.5.0 → 1.7.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 +102 -11
- package/dist/components/button/button.d.ts +20 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +189 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +2 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/icon/icon.d.ts +18 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +44 -0
- package/dist/components/icon/icon.js.map +1 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/icon/index.js +2 -0
- package/dist/components/icon/index.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/colors.css +132 -0
- package/package.json +25 -28
- package/dist/Button.d.ts +0 -15
- package/dist/Button.d.ts.map +0 -1
- package/dist/Button.js +0 -18
- package/dist/Button.js.map +0 -1
- package/dist/Header.d.ts +0 -15
- package/dist/Header.d.ts.map +0 -1
- package/dist/Header.js +0 -44
- package/dist/Header.js.map +0 -1
- package/dist/Page.d.ts +0 -9
- package/dist/Page.d.ts.map +0 -1
- package/dist/Page.js +0 -61
- package/dist/Page.js.map +0 -1
- package/dist/action-menu.d.ts +0 -79
- package/dist/action-menu.d.ts.map +0 -1
- package/dist/action-menu.js +0 -321
- package/dist/action-menu.js.map +0 -1
- package/dist/assets/index-B7q5L5KS.js +0 -91
- package/dist/components/action-menu/action-menu.stories.d.ts +0 -261
- package/dist/components/action-menu/action-menu.stories.d.ts.map +0 -1
- package/dist/components/action-menu/action-menu.stories.js +0 -363
- package/dist/components/action-menu/action-menu.stories.js.map +0 -1
- package/dist/components/data-table/data-table.stories.d.ts +0 -507
- package/dist/components/data-table/data-table.stories.d.ts.map +0 -1
- package/dist/components/data-table/data-table.stories.js +0 -601
- package/dist/components/data-table/data-table.stories.js.map +0 -1
- package/dist/components/th-card/index.d.ts +0 -3
- package/dist/components/th-card/index.d.ts.map +0 -1
- package/dist/components/th-card/index.js +0 -2
- package/dist/components/th-card/index.js.map +0 -1
- package/dist/components/th-card/th-card.d.ts +0 -78
- package/dist/components/th-card/th-card.d.ts.map +0 -1
- package/dist/components/th-card/th-card.js +0 -449
- package/dist/components/th-card/th-card.js.map +0 -1
- package/dist/components/th-card/th-card.stories.d.ts +0 -232
- package/dist/components/th-card/th-card.stories.d.ts.map +0 -1
- package/dist/components/th-card/th-card.stories.js +0 -385
- package/dist/components/th-card/th-card.stories.js.map +0 -1
- package/dist/components/th-tag/index.d.ts +0 -3
- package/dist/components/th-tag/index.d.ts.map +0 -1
- package/dist/components/th-tag/index.js +0 -2
- package/dist/components/th-tag/index.js.map +0 -1
- package/dist/components/th-tag/th-tag.d.ts +0 -65
- package/dist/components/th-tag/th-tag.d.ts.map +0 -1
- package/dist/components/th-tag/th-tag.js +0 -307
- package/dist/components/th-tag/th-tag.js.map +0 -1
- package/dist/components/th-tag/th-tag.stories.d.ts +0 -277
- package/dist/components/th-tag/th-tag.stories.d.ts.map +0 -1
- package/dist/components/th-tag/th-tag.stories.js +0 -415
- package/dist/components/th-tag/th-tag.stories.js.map +0 -1
- package/dist/components/toggle-switch/toggle-switch.stories.d.ts +0 -239
- package/dist/components/toggle-switch/toggle-switch.stories.d.ts.map +0 -1
- package/dist/components/toggle-switch/toggle-switch.stories.js +0 -408
- package/dist/components/toggle-switch/toggle-switch.stories.js.map +0 -1
- package/dist/data-table.d.ts +0 -191
- package/dist/data-table.d.ts.map +0 -1
- package/dist/data-table.js +0 -796
- package/dist/data-table.js.map +0 -1
- package/dist/design-system/color-palette.stories.d.ts +0 -24
- package/dist/design-system/color-palette.stories.d.ts.map +0 -1
- package/dist/design-system/color-palette.stories.js +0 -361
- package/dist/design-system/color-palette.stories.js.map +0 -1
- package/dist/index.html +0 -102
- package/dist/toggle-switch.d.ts +0 -38
- package/dist/toggle-switch.d.ts.map +0 -1
- package/dist/toggle-switch.js +0 -175
- package/dist/toggle-switch.js.map +0 -1
|
@@ -1,415 +0,0 @@
|
|
|
1
|
-
import './th-tag.ts';
|
|
2
|
-
/**
|
|
3
|
-
* The ThTag component is a versatile tag/badge component for displaying
|
|
4
|
-
* labels, statuses, categories, or chips.
|
|
5
|
-
*/
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/ThTag',
|
|
8
|
-
tags: ['autodocs'],
|
|
9
|
-
render: (args) => {
|
|
10
|
-
const tag = document.createElement('th-tag');
|
|
11
|
-
if (args.label)
|
|
12
|
-
tag.label = args.label;
|
|
13
|
-
if (args.variant)
|
|
14
|
-
tag.variant = args.variant;
|
|
15
|
-
if (args.size)
|
|
16
|
-
tag.size = args.size;
|
|
17
|
-
if (args.dismissible !== undefined)
|
|
18
|
-
tag.dismissible = args.dismissible;
|
|
19
|
-
if (args.disabled !== undefined)
|
|
20
|
-
tag.disabled = args.disabled;
|
|
21
|
-
if (args.icon)
|
|
22
|
-
tag.icon = args.icon;
|
|
23
|
-
if (args.value)
|
|
24
|
-
tag.value = args.value;
|
|
25
|
-
if (args.outlined !== undefined)
|
|
26
|
-
tag.outlined = args.outlined;
|
|
27
|
-
tag.addEventListener('tag-dismiss', (e) => {
|
|
28
|
-
console.log('Tag dismissed:', e.detail);
|
|
29
|
-
});
|
|
30
|
-
return tag;
|
|
31
|
-
},
|
|
32
|
-
argTypes: {
|
|
33
|
-
label: {
|
|
34
|
-
control: 'text',
|
|
35
|
-
description: 'The text content of the tag',
|
|
36
|
-
defaultValue: 'Tag',
|
|
37
|
-
},
|
|
38
|
-
variant: {
|
|
39
|
-
control: 'select',
|
|
40
|
-
options: ['default', 'primary', 'success', 'warning', 'error', 'info'],
|
|
41
|
-
description: 'Visual style variant',
|
|
42
|
-
defaultValue: 'default',
|
|
43
|
-
},
|
|
44
|
-
size: {
|
|
45
|
-
control: 'select',
|
|
46
|
-
options: ['sm', 'md', 'lg'],
|
|
47
|
-
description: 'Size of the tag',
|
|
48
|
-
defaultValue: 'md',
|
|
49
|
-
},
|
|
50
|
-
dismissible: {
|
|
51
|
-
control: 'boolean',
|
|
52
|
-
description: 'Whether the tag can be dismissed',
|
|
53
|
-
defaultValue: false,
|
|
54
|
-
},
|
|
55
|
-
disabled: {
|
|
56
|
-
control: 'boolean',
|
|
57
|
-
description: 'Whether the tag is disabled',
|
|
58
|
-
defaultValue: false,
|
|
59
|
-
},
|
|
60
|
-
outlined: {
|
|
61
|
-
control: 'boolean',
|
|
62
|
-
description: 'Use outlined style instead of filled',
|
|
63
|
-
defaultValue: false,
|
|
64
|
-
},
|
|
65
|
-
icon: {
|
|
66
|
-
control: 'text',
|
|
67
|
-
description: 'Iconify icon name to display before label',
|
|
68
|
-
},
|
|
69
|
-
value: {
|
|
70
|
-
control: 'text',
|
|
71
|
-
description: 'Value passed in dismiss event',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
parameters: {
|
|
75
|
-
docs: {
|
|
76
|
-
description: {
|
|
77
|
-
component: `
|
|
78
|
-
A tag/badge component for displaying labels, statuses, or categories.
|
|
79
|
-
|
|
80
|
-
**Features:**
|
|
81
|
-
- Multiple color variants (default, primary, success, warning, error, info)
|
|
82
|
-
- Three size options (sm, md, lg)
|
|
83
|
-
- Optional dismiss button with \`tag-dismiss\` event
|
|
84
|
-
- Optional icon support via Iconify
|
|
85
|
-
- CSS custom properties for theming
|
|
86
|
-
- Accessible with proper ARIA attributes
|
|
87
|
-
`.trim(),
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Default tag with basic styling
|
|
94
|
-
*/
|
|
95
|
-
export const Default = {
|
|
96
|
-
args: {
|
|
97
|
-
label: 'Tag',
|
|
98
|
-
variant: 'default',
|
|
99
|
-
size: 'md',
|
|
100
|
-
},
|
|
101
|
-
parameters: {
|
|
102
|
-
docs: {
|
|
103
|
-
source: {
|
|
104
|
-
code: '<th-tag label="Tag"></th-tag>',
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
};
|
|
109
|
-
/**
|
|
110
|
-
* All color variants
|
|
111
|
-
*/
|
|
112
|
-
export const Variants = {
|
|
113
|
-
render: () => {
|
|
114
|
-
const container = document.createElement('div');
|
|
115
|
-
container.style.cssText = 'display: flex; gap: 8px; flex-wrap: wrap;';
|
|
116
|
-
const variants = ['default', 'primary', 'success', 'warning', 'error', 'info'];
|
|
117
|
-
variants.forEach((variant) => {
|
|
118
|
-
const tag = document.createElement('th-tag');
|
|
119
|
-
tag.label = variant;
|
|
120
|
-
tag.variant = variant;
|
|
121
|
-
container.appendChild(tag);
|
|
122
|
-
});
|
|
123
|
-
return container;
|
|
124
|
-
},
|
|
125
|
-
parameters: {
|
|
126
|
-
docs: {
|
|
127
|
-
description: {
|
|
128
|
-
story: 'All available color variants for different use cases.',
|
|
129
|
-
},
|
|
130
|
-
source: {
|
|
131
|
-
code: `<th-tag label="default" variant="default"></th-tag>
|
|
132
|
-
<th-tag label="primary" variant="primary"></th-tag>
|
|
133
|
-
<th-tag label="success" variant="success"></th-tag>
|
|
134
|
-
<th-tag label="warning" variant="warning"></th-tag>
|
|
135
|
-
<th-tag label="error" variant="error"></th-tag>
|
|
136
|
-
<th-tag label="info" variant="info"></th-tag>`,
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
};
|
|
141
|
-
/**
|
|
142
|
-
* Outlined variants
|
|
143
|
-
*/
|
|
144
|
-
export const Outlined = {
|
|
145
|
-
render: () => {
|
|
146
|
-
const container = document.createElement('div');
|
|
147
|
-
container.style.cssText = 'display: flex; gap: 8px; flex-wrap: wrap;';
|
|
148
|
-
const variants = ['default', 'primary', 'success', 'warning', 'error', 'info'];
|
|
149
|
-
variants.forEach((variant) => {
|
|
150
|
-
const tag = document.createElement('th-tag');
|
|
151
|
-
tag.label = variant;
|
|
152
|
-
tag.variant = variant;
|
|
153
|
-
tag.outlined = true;
|
|
154
|
-
container.appendChild(tag);
|
|
155
|
-
});
|
|
156
|
-
return container;
|
|
157
|
-
},
|
|
158
|
-
parameters: {
|
|
159
|
-
docs: {
|
|
160
|
-
description: {
|
|
161
|
-
story: 'Outlined style for a lighter, border-only appearance.',
|
|
162
|
-
},
|
|
163
|
-
source: {
|
|
164
|
-
code: `<th-tag label="default" variant="default" outlined></th-tag>
|
|
165
|
-
<th-tag label="primary" variant="primary" outlined></th-tag>
|
|
166
|
-
<th-tag label="success" variant="success" outlined></th-tag>
|
|
167
|
-
<th-tag label="warning" variant="warning" outlined></th-tag>
|
|
168
|
-
<th-tag label="error" variant="error" outlined></th-tag>
|
|
169
|
-
<th-tag label="info" variant="info" outlined></th-tag>`,
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
};
|
|
174
|
-
/**
|
|
175
|
-
* Size variations
|
|
176
|
-
*/
|
|
177
|
-
export const Sizes = {
|
|
178
|
-
render: () => {
|
|
179
|
-
const container = document.createElement('div');
|
|
180
|
-
container.style.cssText = 'display: flex; gap: 8px; align-items: center;';
|
|
181
|
-
const sizes = ['sm', 'md', 'lg'];
|
|
182
|
-
sizes.forEach((size) => {
|
|
183
|
-
const tag = document.createElement('th-tag');
|
|
184
|
-
tag.label = size;
|
|
185
|
-
tag.variant = 'primary';
|
|
186
|
-
tag.size = size;
|
|
187
|
-
container.appendChild(tag);
|
|
188
|
-
});
|
|
189
|
-
return container;
|
|
190
|
-
},
|
|
191
|
-
parameters: {
|
|
192
|
-
docs: {
|
|
193
|
-
description: {
|
|
194
|
-
story: 'Tags come in three sizes to fit different contexts.',
|
|
195
|
-
},
|
|
196
|
-
source: {
|
|
197
|
-
code: `<th-tag label="sm" size="sm" variant="primary"></th-tag>
|
|
198
|
-
<th-tag label="md" size="md" variant="primary"></th-tag>
|
|
199
|
-
<th-tag label="lg" size="lg" variant="primary"></th-tag>`,
|
|
200
|
-
},
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
};
|
|
204
|
-
/**
|
|
205
|
-
* Dismissible tags
|
|
206
|
-
*/
|
|
207
|
-
export const Dismissible = {
|
|
208
|
-
render: () => {
|
|
209
|
-
const container = document.createElement('div');
|
|
210
|
-
container.style.cssText = 'display: flex; gap: 8px; flex-wrap: wrap;';
|
|
211
|
-
const tags = ['React', 'Vue', 'Angular', 'Svelte', 'Lit'];
|
|
212
|
-
tags.forEach((name) => {
|
|
213
|
-
const tag = document.createElement('th-tag');
|
|
214
|
-
tag.label = name;
|
|
215
|
-
tag.variant = 'primary';
|
|
216
|
-
tag.dismissible = true;
|
|
217
|
-
tag.value = name.toLowerCase();
|
|
218
|
-
tag.addEventListener('tag-dismiss', (e) => {
|
|
219
|
-
console.log('Dismissed:', e.detail.value);
|
|
220
|
-
tag.remove();
|
|
221
|
-
});
|
|
222
|
-
container.appendChild(tag);
|
|
223
|
-
});
|
|
224
|
-
return container;
|
|
225
|
-
},
|
|
226
|
-
parameters: {
|
|
227
|
-
docs: {
|
|
228
|
-
description: {
|
|
229
|
-
story: 'Tags can be dismissible, useful for filter chips or selected items.',
|
|
230
|
-
},
|
|
231
|
-
source: {
|
|
232
|
-
code: `<th-tag label="React" variant="primary" dismissible value="react"></th-tag>
|
|
233
|
-
|
|
234
|
-
<script>
|
|
235
|
-
const tag = document.querySelector('th-tag');
|
|
236
|
-
tag.addEventListener('tag-dismiss', (e) => {
|
|
237
|
-
console.log('Dismissed:', e.detail.value);
|
|
238
|
-
tag.remove();
|
|
239
|
-
});
|
|
240
|
-
</script>`,
|
|
241
|
-
},
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* Tags with icons
|
|
247
|
-
*/
|
|
248
|
-
export const WithIcons = {
|
|
249
|
-
render: () => {
|
|
250
|
-
const container = document.createElement('div');
|
|
251
|
-
container.style.cssText = 'display: flex; gap: 8px; flex-wrap: wrap;';
|
|
252
|
-
const items = [
|
|
253
|
-
{ label: 'Running', icon: 'heroicons:play-circle', variant: 'success' },
|
|
254
|
-
{ label: 'Stopped', icon: 'heroicons:stop-circle', variant: 'error' },
|
|
255
|
-
{ label: 'Pending', icon: 'heroicons:clock', variant: 'warning' },
|
|
256
|
-
{ label: 'Info', icon: 'heroicons:information-circle', variant: 'info' },
|
|
257
|
-
];
|
|
258
|
-
items.forEach(({ label, icon, variant }) => {
|
|
259
|
-
const tag = document.createElement('th-tag');
|
|
260
|
-
tag.label = label;
|
|
261
|
-
tag.icon = icon;
|
|
262
|
-
tag.variant = variant;
|
|
263
|
-
container.appendChild(tag);
|
|
264
|
-
});
|
|
265
|
-
return container;
|
|
266
|
-
},
|
|
267
|
-
parameters: {
|
|
268
|
-
docs: {
|
|
269
|
-
description: {
|
|
270
|
-
story: 'Tags can include icons from Iconify for visual context.',
|
|
271
|
-
},
|
|
272
|
-
source: {
|
|
273
|
-
code: `<th-tag label="Running" icon="heroicons:play-circle" variant="success"></th-tag>
|
|
274
|
-
<th-tag label="Stopped" icon="heroicons:stop-circle" variant="error"></th-tag>
|
|
275
|
-
<th-tag label="Pending" icon="heroicons:clock" variant="warning"></th-tag>`,
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
};
|
|
280
|
-
/**
|
|
281
|
-
* Status indicators
|
|
282
|
-
*/
|
|
283
|
-
export const StatusIndicators = {
|
|
284
|
-
render: () => {
|
|
285
|
-
const container = document.createElement('div');
|
|
286
|
-
container.style.cssText = 'display: flex; flex-direction: column; gap: 12px;';
|
|
287
|
-
const statuses = [
|
|
288
|
-
{ label: 'Active', variant: 'success' },
|
|
289
|
-
{ label: 'Inactive', variant: 'default' },
|
|
290
|
-
{ label: 'Pending', variant: 'warning' },
|
|
291
|
-
{ label: 'Error', variant: 'error' },
|
|
292
|
-
{ label: 'Processing', variant: 'info' },
|
|
293
|
-
];
|
|
294
|
-
statuses.forEach(({ label, variant }) => {
|
|
295
|
-
const row = document.createElement('div');
|
|
296
|
-
row.style.cssText = 'display: flex; align-items: center; gap: 12px;';
|
|
297
|
-
const text = document.createElement('span');
|
|
298
|
-
text.textContent = `User Status: `;
|
|
299
|
-
text.style.minWidth = '120px';
|
|
300
|
-
const tag = document.createElement('th-tag');
|
|
301
|
-
tag.label = label;
|
|
302
|
-
tag.variant = variant;
|
|
303
|
-
tag.size = 'sm';
|
|
304
|
-
row.appendChild(text);
|
|
305
|
-
row.appendChild(tag);
|
|
306
|
-
container.appendChild(row);
|
|
307
|
-
});
|
|
308
|
-
return container;
|
|
309
|
-
},
|
|
310
|
-
parameters: {
|
|
311
|
-
docs: {
|
|
312
|
-
description: {
|
|
313
|
-
story: 'Common pattern: using tags as status indicators.',
|
|
314
|
-
},
|
|
315
|
-
source: {
|
|
316
|
-
code: `<th-tag label="Active" variant="success" size="sm"></th-tag>
|
|
317
|
-
<th-tag label="Inactive" variant="default" size="sm"></th-tag>
|
|
318
|
-
<th-tag label="Pending" variant="warning" size="sm"></th-tag>
|
|
319
|
-
<th-tag label="Error" variant="error" size="sm"></th-tag>`,
|
|
320
|
-
},
|
|
321
|
-
},
|
|
322
|
-
},
|
|
323
|
-
};
|
|
324
|
-
/**
|
|
325
|
-
* Version badge (like in the mockup)
|
|
326
|
-
*/
|
|
327
|
-
export const VersionBadge = {
|
|
328
|
-
args: {
|
|
329
|
-
label: 'v2.0.0',
|
|
330
|
-
variant: 'primary',
|
|
331
|
-
size: 'md',
|
|
332
|
-
},
|
|
333
|
-
parameters: {
|
|
334
|
-
docs: {
|
|
335
|
-
description: {
|
|
336
|
-
story: 'Used as a version badge next to titles.',
|
|
337
|
-
},
|
|
338
|
-
source: {
|
|
339
|
-
code: '<th-tag label="v2.0.0" variant="primary"></th-tag>',
|
|
340
|
-
},
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
};
|
|
344
|
-
/**
|
|
345
|
-
* Disabled state
|
|
346
|
-
*/
|
|
347
|
-
export const Disabled = {
|
|
348
|
-
render: () => {
|
|
349
|
-
const container = document.createElement('div');
|
|
350
|
-
container.style.cssText = 'display: flex; gap: 8px;';
|
|
351
|
-
const tag1 = document.createElement('th-tag');
|
|
352
|
-
tag1.label = 'Enabled';
|
|
353
|
-
tag1.variant = 'primary';
|
|
354
|
-
const tag2 = document.createElement('th-tag');
|
|
355
|
-
tag2.label = 'Disabled';
|
|
356
|
-
tag2.variant = 'primary';
|
|
357
|
-
tag2.disabled = true;
|
|
358
|
-
container.appendChild(tag1);
|
|
359
|
-
container.appendChild(tag2);
|
|
360
|
-
return container;
|
|
361
|
-
},
|
|
362
|
-
parameters: {
|
|
363
|
-
docs: {
|
|
364
|
-
description: {
|
|
365
|
-
story: 'Tags can be disabled for visual reference without interaction.',
|
|
366
|
-
},
|
|
367
|
-
source: {
|
|
368
|
-
code: `<th-tag label="Enabled" variant="primary"></th-tag>
|
|
369
|
-
<th-tag label="Disabled" variant="primary" disabled></th-tag>`,
|
|
370
|
-
},
|
|
371
|
-
},
|
|
372
|
-
},
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* Filter chips example
|
|
376
|
-
*/
|
|
377
|
-
export const FilterChips = {
|
|
378
|
-
render: () => {
|
|
379
|
-
const container = document.createElement('div');
|
|
380
|
-
container.style.cssText = 'display: flex; flex-direction: column; gap: 12px;';
|
|
381
|
-
const header = document.createElement('div');
|
|
382
|
-
header.textContent = 'Active Filters:';
|
|
383
|
-
header.style.fontWeight = '500';
|
|
384
|
-
const chipsContainer = document.createElement('div');
|
|
385
|
-
chipsContainer.style.cssText = 'display: flex; gap: 8px; flex-wrap: wrap;';
|
|
386
|
-
const filters = ['Status: Running', 'Namespace: production', 'Type: Service'];
|
|
387
|
-
filters.forEach((filter) => {
|
|
388
|
-
const tag = document.createElement('th-tag');
|
|
389
|
-
tag.label = filter;
|
|
390
|
-
tag.variant = 'default';
|
|
391
|
-
tag.dismissible = true;
|
|
392
|
-
tag.addEventListener('tag-dismiss', () => {
|
|
393
|
-
tag.remove();
|
|
394
|
-
if (chipsContainer.children.length === 0) {
|
|
395
|
-
const empty = document.createElement('span');
|
|
396
|
-
empty.textContent = 'No filters active';
|
|
397
|
-
empty.style.color = '#666';
|
|
398
|
-
chipsContainer.appendChild(empty);
|
|
399
|
-
}
|
|
400
|
-
});
|
|
401
|
-
chipsContainer.appendChild(tag);
|
|
402
|
-
});
|
|
403
|
-
container.appendChild(header);
|
|
404
|
-
container.appendChild(chipsContainer);
|
|
405
|
-
return container;
|
|
406
|
-
},
|
|
407
|
-
parameters: {
|
|
408
|
-
docs: {
|
|
409
|
-
description: {
|
|
410
|
-
story: 'Dismissible tags work great as filter chips.',
|
|
411
|
-
},
|
|
412
|
-
},
|
|
413
|
-
},
|
|
414
|
-
};
|
|
415
|
-
//# sourceMappingURL=th-tag.stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"th-tag.stories.js","sourceRoot":"","sources":["../../../src/components/th-tag/th-tag.stories.js"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB;;;GAGG;AACH,eAAe;IACb,KAAK,EAAE,kBAAkB;IACzB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACf,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAE7C,IAAI,IAAI,CAAC,KAAK;YAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACvC,IAAI,IAAI,CAAC,OAAO;YAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7C,IAAI,IAAI,CAAC,IAAI;YAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACpC,IAAI,IAAI,CAAC,WAAW,KAAK,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,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAC7C,GAAG,CAAC,KAAK,GAAG,MAAM,CAAC;YACnB,GAAG,CAAC,OAAO,GAAG,SAAS,CAAC;YACxB,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;YAEvB,GAAG,CAAC,gBAAgB,CAAC,aAAa,EAAE,GAAG,EAAE;gBACvC,GAAG,CAAC,MAAM,EAAE,CAAC;gBACb,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBACzC,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;oBAC7C,KAAK,CAAC,WAAW,GAAG,mBAAmB,CAAC;oBACxC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;oBAC3B,cAAc,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;gBACpC,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,cAAc,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QAClC,CAAC,CAAC,CAAC;QAEH,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC9B,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QAEtC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,KAAK,EAAE,8CAA8C;aACtD;SACF;KACF;CACF,CAAC"}
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
let title: string;
|
|
3
|
-
let tags: string[];
|
|
4
|
-
function render(args: any): HTMLElement;
|
|
5
|
-
namespace argTypes {
|
|
6
|
-
namespace checked {
|
|
7
|
-
let control: string;
|
|
8
|
-
let description: string;
|
|
9
|
-
let defaultValue: boolean;
|
|
10
|
-
}
|
|
11
|
-
namespace onLabel {
|
|
12
|
-
let control_1: string;
|
|
13
|
-
export { control_1 as control };
|
|
14
|
-
let description_1: string;
|
|
15
|
-
export { description_1 as description };
|
|
16
|
-
let defaultValue_1: string;
|
|
17
|
-
export { defaultValue_1 as defaultValue };
|
|
18
|
-
}
|
|
19
|
-
namespace offLabel {
|
|
20
|
-
let control_2: string;
|
|
21
|
-
export { control_2 as control };
|
|
22
|
-
let description_2: string;
|
|
23
|
-
export { description_2 as description };
|
|
24
|
-
let defaultValue_2: string;
|
|
25
|
-
export { defaultValue_2 as defaultValue };
|
|
26
|
-
}
|
|
27
|
-
namespace storageKey {
|
|
28
|
-
let control_3: string;
|
|
29
|
-
export { control_3 as control };
|
|
30
|
-
let description_3: string;
|
|
31
|
-
export { description_3 as description };
|
|
32
|
-
}
|
|
33
|
-
namespace name {
|
|
34
|
-
let control_4: string;
|
|
35
|
-
export { control_4 as control };
|
|
36
|
-
let description_4: string;
|
|
37
|
-
export { description_4 as description };
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
namespace parameters {
|
|
41
|
-
namespace docs {
|
|
42
|
-
export namespace description_5 {
|
|
43
|
-
let component: string;
|
|
44
|
-
}
|
|
45
|
-
export { description_5 as description };
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
export default _default;
|
|
50
|
-
export namespace Default {
|
|
51
|
-
export namespace args {
|
|
52
|
-
let checked_1: boolean;
|
|
53
|
-
export { checked_1 as checked };
|
|
54
|
-
let onLabel_1: string;
|
|
55
|
-
export { onLabel_1 as onLabel };
|
|
56
|
-
let offLabel_1: string;
|
|
57
|
-
export { offLabel_1 as offLabel };
|
|
58
|
-
}
|
|
59
|
-
export namespace parameters_1 {
|
|
60
|
-
export namespace docs_1 {
|
|
61
|
-
namespace source {
|
|
62
|
-
let code: string;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
export { docs_1 as docs };
|
|
66
|
-
}
|
|
67
|
-
export { parameters_1 as parameters };
|
|
68
|
-
}
|
|
69
|
-
export namespace CustomLabels {
|
|
70
|
-
export namespace args_1 {
|
|
71
|
-
let checked_2: boolean;
|
|
72
|
-
export { checked_2 as checked };
|
|
73
|
-
let onLabel_2: string;
|
|
74
|
-
export { onLabel_2 as onLabel };
|
|
75
|
-
let offLabel_2: string;
|
|
76
|
-
export { offLabel_2 as offLabel };
|
|
77
|
-
}
|
|
78
|
-
export { args_1 as args };
|
|
79
|
-
export namespace parameters_2 {
|
|
80
|
-
export namespace docs_2 {
|
|
81
|
-
export namespace description_6 {
|
|
82
|
-
let story: string;
|
|
83
|
-
}
|
|
84
|
-
export { description_6 as description };
|
|
85
|
-
export namespace source_1 {
|
|
86
|
-
let code_1: string;
|
|
87
|
-
export { code_1 as code };
|
|
88
|
-
}
|
|
89
|
-
export { source_1 as source };
|
|
90
|
-
}
|
|
91
|
-
export { docs_2 as docs };
|
|
92
|
-
}
|
|
93
|
-
export { parameters_2 as parameters };
|
|
94
|
-
}
|
|
95
|
-
export namespace IconLabels {
|
|
96
|
-
export namespace args_2 {
|
|
97
|
-
let checked_3: boolean;
|
|
98
|
-
export { checked_3 as checked };
|
|
99
|
-
let onLabel_3: string;
|
|
100
|
-
export { onLabel_3 as onLabel };
|
|
101
|
-
let offLabel_3: string;
|
|
102
|
-
export { offLabel_3 as offLabel };
|
|
103
|
-
}
|
|
104
|
-
export { args_2 as args };
|
|
105
|
-
export namespace parameters_3 {
|
|
106
|
-
export namespace docs_3 {
|
|
107
|
-
export namespace description_7 {
|
|
108
|
-
let story_1: string;
|
|
109
|
-
export { story_1 as story };
|
|
110
|
-
}
|
|
111
|
-
export { description_7 as description };
|
|
112
|
-
export namespace source_2 {
|
|
113
|
-
let code_2: string;
|
|
114
|
-
export { code_2 as code };
|
|
115
|
-
}
|
|
116
|
-
export { source_2 as source };
|
|
117
|
-
}
|
|
118
|
-
export { docs_3 as docs };
|
|
119
|
-
}
|
|
120
|
-
export { parameters_3 as parameters };
|
|
121
|
-
}
|
|
122
|
-
export namespace InitiallyChecked {
|
|
123
|
-
export namespace args_3 {
|
|
124
|
-
let checked_4: boolean;
|
|
125
|
-
export { checked_4 as checked };
|
|
126
|
-
let onLabel_4: string;
|
|
127
|
-
export { onLabel_4 as onLabel };
|
|
128
|
-
let offLabel_4: string;
|
|
129
|
-
export { offLabel_4 as offLabel };
|
|
130
|
-
}
|
|
131
|
-
export { args_3 as args };
|
|
132
|
-
export namespace parameters_4 {
|
|
133
|
-
export namespace docs_4 {
|
|
134
|
-
export namespace description_8 {
|
|
135
|
-
let story_2: string;
|
|
136
|
-
export { story_2 as story };
|
|
137
|
-
}
|
|
138
|
-
export { description_8 as description };
|
|
139
|
-
export namespace source_3 {
|
|
140
|
-
let code_3: string;
|
|
141
|
-
export { code_3 as code };
|
|
142
|
-
}
|
|
143
|
-
export { source_3 as source };
|
|
144
|
-
}
|
|
145
|
-
export { docs_4 as docs };
|
|
146
|
-
}
|
|
147
|
-
export { parameters_4 as parameters };
|
|
148
|
-
}
|
|
149
|
-
export namespace WithPersistence {
|
|
150
|
-
export namespace args_4 {
|
|
151
|
-
let checked_5: boolean;
|
|
152
|
-
export { checked_5 as checked };
|
|
153
|
-
let onLabel_5: string;
|
|
154
|
-
export { onLabel_5 as onLabel };
|
|
155
|
-
let offLabel_5: string;
|
|
156
|
-
export { offLabel_5 as offLabel };
|
|
157
|
-
let storageKey_1: string;
|
|
158
|
-
export { storageKey_1 as storageKey };
|
|
159
|
-
}
|
|
160
|
-
export { args_4 as args };
|
|
161
|
-
export namespace parameters_5 {
|
|
162
|
-
export namespace docs_5 {
|
|
163
|
-
export namespace description_9 {
|
|
164
|
-
let story_3: string;
|
|
165
|
-
export { story_3 as story };
|
|
166
|
-
}
|
|
167
|
-
export { description_9 as description };
|
|
168
|
-
export namespace source_4 {
|
|
169
|
-
let code_4: string;
|
|
170
|
-
export { code_4 as code };
|
|
171
|
-
}
|
|
172
|
-
export { source_4 as source };
|
|
173
|
-
}
|
|
174
|
-
export { docs_5 as docs };
|
|
175
|
-
}
|
|
176
|
-
export { parameters_5 as parameters };
|
|
177
|
-
}
|
|
178
|
-
export namespace SyncedToggles {
|
|
179
|
-
export function render_1(): HTMLDivElement;
|
|
180
|
-
export { render_1 as render };
|
|
181
|
-
export namespace parameters_6 {
|
|
182
|
-
export namespace docs_6 {
|
|
183
|
-
export namespace description_10 {
|
|
184
|
-
let story_4: string;
|
|
185
|
-
export { story_4 as story };
|
|
186
|
-
}
|
|
187
|
-
export { description_10 as description };
|
|
188
|
-
export namespace source_5 {
|
|
189
|
-
let code_5: string;
|
|
190
|
-
export { code_5 as code };
|
|
191
|
-
}
|
|
192
|
-
export { source_5 as source };
|
|
193
|
-
}
|
|
194
|
-
export { docs_6 as docs };
|
|
195
|
-
}
|
|
196
|
-
export { parameters_6 as parameters };
|
|
197
|
-
}
|
|
198
|
-
export namespace ThemeSwitching {
|
|
199
|
-
export function render_2(): HTMLDivElement;
|
|
200
|
-
export { render_2 as render };
|
|
201
|
-
export let decorators: ((story: any) => HTMLDivElement)[];
|
|
202
|
-
export namespace parameters_7 {
|
|
203
|
-
export namespace docs_7 {
|
|
204
|
-
export namespace description_11 {
|
|
205
|
-
let story_5: string;
|
|
206
|
-
export { story_5 as story };
|
|
207
|
-
}
|
|
208
|
-
export { description_11 as description };
|
|
209
|
-
export namespace source_6 {
|
|
210
|
-
let code_6: string;
|
|
211
|
-
export { code_6 as code };
|
|
212
|
-
}
|
|
213
|
-
export { source_6 as source };
|
|
214
|
-
}
|
|
215
|
-
export { docs_7 as docs };
|
|
216
|
-
}
|
|
217
|
-
export { parameters_7 as parameters };
|
|
218
|
-
}
|
|
219
|
-
export namespace UseCaseExamples {
|
|
220
|
-
export function render_3(): HTMLDivElement;
|
|
221
|
-
export { render_3 as render };
|
|
222
|
-
export namespace parameters_8 {
|
|
223
|
-
export namespace docs_8 {
|
|
224
|
-
export namespace description_12 {
|
|
225
|
-
let story_6: string;
|
|
226
|
-
export { story_6 as story };
|
|
227
|
-
}
|
|
228
|
-
export { description_12 as description };
|
|
229
|
-
export namespace source_7 {
|
|
230
|
-
let code_7: string;
|
|
231
|
-
export { code_7 as code };
|
|
232
|
-
}
|
|
233
|
-
export { source_7 as source };
|
|
234
|
-
}
|
|
235
|
-
export { docs_8 as docs };
|
|
236
|
-
}
|
|
237
|
-
export { parameters_8 as parameters };
|
|
238
|
-
}
|
|
239
|
-
//# sourceMappingURL=toggle-switch.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-switch.stories.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-switch/toggle-switch.stories.js"],"names":[],"mappings":";;;IASU,wCAcP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwJO,2CA8BP;;;;;;;;;;;;;;;;;;;;IAoBO,2CAwEP;;;;;;;;;;;;;;;;;;;;;IAiGO,2CA+BP"}
|