@teseor/css 1.3.0 → 1.5.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/dist/compiled.css +1 -1
- package/dist/index.css +28 -9
- package/package.json +1 -1
- package/src/03-layout/app-shell/app-shell.api.json +18 -0
- package/src/03-layout/app-shell/app-shell.docs.json +18 -0
- package/src/03-layout/content/content-visual.png +0 -0
- package/src/03-layout/content/content.api.json +26 -0
- package/src/03-layout/content/content.docs.json +82 -0
- package/src/03-layout/content/content.visual.spec.ts +14 -0
- package/src/03-layout/content/index.scss +25 -0
- package/src/03-layout/footer/footer-visual.png +0 -0
- package/src/03-layout/footer/footer.api.json +45 -0
- package/src/03-layout/footer/footer.docs.json +110 -0
- package/src/03-layout/footer/footer.visual.spec.ts +14 -0
- package/src/03-layout/footer/index.scss +62 -0
- package/src/03-layout/index.scss +11 -6
- package/src/03-layout/main/index.scss +1 -0
- package/src/03-layout/nav-rail/index.scss +50 -0
- package/src/03-layout/nav-rail/nav-rail-visual.png +0 -0
- package/src/03-layout/nav-rail/nav-rail.api.json +35 -0
- package/src/03-layout/nav-rail/nav-rail.docs.json +76 -0
- package/src/03-layout/nav-rail/nav-rail.visual.spec.ts +14 -0
- package/src/03-layout/page-header/index.scss +52 -0
- package/src/03-layout/page-header/page-header-visual.png +0 -0
- package/src/03-layout/page-header/page-header.api.json +35 -0
- package/src/03-layout/page-header/page-header.docs.json +124 -0
- package/src/03-layout/page-header/page-header.visual.spec.ts +14 -0
- package/src/03-layout/sidebar/index.scss +2 -2
- package/src/03-layout/topbar/index.scss +62 -0
- package/src/03-layout/topbar/topbar-visual.png +0 -0
- package/src/03-layout/topbar/topbar.api.json +45 -0
- package/src/03-layout/topbar/topbar.docs.json +110 -0
- package/src/03-layout/topbar/topbar.visual.spec.ts +14 -0
- package/src/04-components/actions/close-button/close-button-visual.png +0 -0
- package/src/04-components/actions/close-button/close-button.api.json +71 -0
- package/src/04-components/actions/close-button/close-button.docs.json +264 -0
- package/src/04-components/actions/close-button/close-button.visual.spec.ts +14 -0
- package/src/04-components/actions/close-button/index.scss +101 -0
- package/src/04-components/data-display/avatar/avatar-visual.png +0 -0
- package/src/04-components/data-display/image/image-visual.png +0 -0
- package/src/04-components/data-display/image/image.api.json +76 -0
- package/src/04-components/data-display/image/image.docs.json +337 -0
- package/src/04-components/data-display/image/image.visual.spec.ts +14 -0
- package/src/04-components/data-display/image/index.scss +103 -0
- package/src/04-components/disclosure/accordion/accordion-visual.png +0 -0
- package/src/04-components/disclosure/disclosure/disclosure-visual.png +0 -0
- package/src/04-components/feedback/progress-circle/index.scss +92 -0
- package/src/04-components/feedback/progress-circle/progress-circle-visual.png +0 -0
- package/src/04-components/feedback/progress-circle/progress-circle.api.json +53 -0
- package/src/04-components/feedback/progress-circle/progress-circle.docs.json +377 -0
- package/src/04-components/feedback/progress-circle/progress-circle.visual.spec.ts +14 -0
- package/src/04-components/forms/field/field-visual.png +0 -0
- package/src/04-components/forms/fieldset/fieldset-visual.png +0 -0
- package/src/04-components/forms/fieldset/fieldset.api.json +49 -0
- package/src/04-components/forms/fieldset/fieldset.docs.json +520 -0
- package/src/04-components/forms/fieldset/fieldset.visual.spec.ts +14 -0
- package/src/04-components/forms/fieldset/index.scss +69 -0
- package/src/04-components/forms/form/form-visual.png +0 -0
- package/src/04-components/forms/form/form.api.json +38 -0
- package/src/04-components/forms/form/form.docs.json +482 -0
- package/src/04-components/forms/form/form.visual.spec.ts +14 -0
- package/src/04-components/forms/form/index.scss +62 -0
- package/src/04-components/forms/input/input-visual.png +0 -0
- package/src/04-components/index.scss +8 -1
- package/src/04-components/typography/code-block/code-block-visual.png +0 -0
- package/src/04-components/typography/code-block/code-block.api.json +56 -0
- package/src/04-components/typography/code-block/code-block.docs.json +289 -0
- package/src/04-components/typography/code-block/code-block.visual.spec.ts +14 -0
- package/src/04-components/typography/code-block/index.scss +87 -0
- package/src/04-components/typography/list/index.scss +65 -0
- package/src/04-components/typography/list/list-visual.png +0 -0
- package/src/04-components/typography/list/list.api.json +33 -0
- package/src/04-components/typography/list/list.docs.json +293 -0
- package/src/04-components/typography/list/list.visual.spec.ts +14 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "list",
|
|
3
|
+
"type": "component",
|
|
4
|
+
"title": "List",
|
|
5
|
+
"description": "Ordered and unordered lists with spacing control, inline layout, and marker customization.",
|
|
6
|
+
"api": "./list.api.json",
|
|
7
|
+
"sections": [
|
|
8
|
+
{
|
|
9
|
+
"title": "Default",
|
|
10
|
+
"description": "Unordered list with default bullet markers.",
|
|
11
|
+
"examples": [
|
|
12
|
+
{
|
|
13
|
+
"items": [
|
|
14
|
+
{
|
|
15
|
+
"tag": "ul",
|
|
16
|
+
"class": "ui-list",
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"tag": "li",
|
|
20
|
+
"text": "First item in the list"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"tag": "li",
|
|
24
|
+
"text": "Second item in the list"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"tag": "li",
|
|
28
|
+
"text": "Third item in the list"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"code": "<ul class=\"ui-list\">\n <li>First item</li>\n <li>Second item</li>\n <li>Third item</li>\n</ul>"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"title": "Ordered",
|
|
39
|
+
"description": "Use on ol for numbered markers.",
|
|
40
|
+
"examples": [
|
|
41
|
+
{
|
|
42
|
+
"items": [
|
|
43
|
+
{
|
|
44
|
+
"tag": "ol",
|
|
45
|
+
"class": "ui-list",
|
|
46
|
+
"children": [
|
|
47
|
+
{
|
|
48
|
+
"tag": "li",
|
|
49
|
+
"text": "Create the branch"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"tag": "li",
|
|
53
|
+
"text": "Implement the feature"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"tag": "li",
|
|
57
|
+
"text": "Open a pull request"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"tag": "li",
|
|
61
|
+
"text": "Merge after review"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"code": "<ol class=\"ui-list\">\n <li>Create the branch</li>\n <li>Implement the feature</li>\n <li>Open a pull request</li>\n <li>Merge after review</li>\n</ol>"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"title": "Unstyled",
|
|
72
|
+
"description": "Removes markers and indent for nav or custom lists.",
|
|
73
|
+
"examples": [
|
|
74
|
+
{
|
|
75
|
+
"items": [
|
|
76
|
+
{
|
|
77
|
+
"tag": "ul",
|
|
78
|
+
"class": "ui-list ui-list--unstyled",
|
|
79
|
+
"children": [
|
|
80
|
+
{
|
|
81
|
+
"tag": "li",
|
|
82
|
+
"text": "No bullet markers"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"tag": "li",
|
|
86
|
+
"text": "No inline padding"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"tag": "li",
|
|
90
|
+
"text": "Clean vertical stack"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"code": "<ul class=\"ui-list ui-list--unstyled\">\n <li>No bullet markers</li>\n <li>No inline padding</li>\n</ul>"
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"title": "Inline",
|
|
101
|
+
"description": "Horizontal flow with wrapping. Markers removed.",
|
|
102
|
+
"examples": [
|
|
103
|
+
{
|
|
104
|
+
"items": [
|
|
105
|
+
{
|
|
106
|
+
"tag": "ul",
|
|
107
|
+
"class": "ui-list ui-list--inline",
|
|
108
|
+
"children": [
|
|
109
|
+
{
|
|
110
|
+
"tag": "li",
|
|
111
|
+
"text": "HTML"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"tag": "li",
|
|
115
|
+
"text": "CSS"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"tag": "li",
|
|
119
|
+
"text": "JavaScript"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"tag": "li",
|
|
123
|
+
"text": "TypeScript"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"tag": "li",
|
|
127
|
+
"text": "React"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"code": "<ul class=\"ui-list ui-list--inline\">\n <li>HTML</li>\n <li>CSS</li>\n <li>JavaScript</li>\n</ul>"
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"title": "Spacing",
|
|
138
|
+
"description": "Control gap between items with compact or loose variants.",
|
|
139
|
+
"examples": [
|
|
140
|
+
{
|
|
141
|
+
"items": [
|
|
142
|
+
{
|
|
143
|
+
"tag": "div",
|
|
144
|
+
"class": "ui-stack",
|
|
145
|
+
"style": {
|
|
146
|
+
"gap": "var(--ui-space-2)"
|
|
147
|
+
},
|
|
148
|
+
"children": [
|
|
149
|
+
{
|
|
150
|
+
"tag": "p",
|
|
151
|
+
"text": "Compact"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"tag": "ul",
|
|
155
|
+
"class": "ui-list ui-list--compact",
|
|
156
|
+
"children": [
|
|
157
|
+
{
|
|
158
|
+
"tag": "li",
|
|
159
|
+
"text": "Tight spacing"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"tag": "li",
|
|
163
|
+
"text": "No gap between items"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"tag": "li",
|
|
167
|
+
"text": "Dense content"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"tag": "p",
|
|
173
|
+
"text": "Default"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"tag": "ul",
|
|
177
|
+
"class": "ui-list",
|
|
178
|
+
"children": [
|
|
179
|
+
{
|
|
180
|
+
"tag": "li",
|
|
181
|
+
"text": "Standard spacing"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"tag": "li",
|
|
185
|
+
"text": "One grid unit gap"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"tag": "li",
|
|
189
|
+
"text": "Balanced readability"
|
|
190
|
+
}
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"tag": "p",
|
|
195
|
+
"text": "Loose"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"tag": "ul",
|
|
199
|
+
"class": "ui-list ui-list--loose",
|
|
200
|
+
"children": [
|
|
201
|
+
{
|
|
202
|
+
"tag": "li",
|
|
203
|
+
"text": "Extra breathing room"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"tag": "li",
|
|
207
|
+
"text": "Two grid units gap"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"tag": "li",
|
|
211
|
+
"text": "Prominent separation"
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"code": "<ul class=\"ui-list ui-list--compact\">...</ul>\n<ul class=\"ui-list\">...</ul>\n<ul class=\"ui-list ui-list--loose\">...</ul>"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"title": "Nested",
|
|
224
|
+
"description": "Lists inside lists inherit spacing and show sub-level markers.",
|
|
225
|
+
"examples": [
|
|
226
|
+
{
|
|
227
|
+
"items": [
|
|
228
|
+
{
|
|
229
|
+
"tag": "ul",
|
|
230
|
+
"class": "ui-list",
|
|
231
|
+
"children": [
|
|
232
|
+
{
|
|
233
|
+
"tag": "li",
|
|
234
|
+
"text": "Top-level item"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"tag": "li",
|
|
238
|
+
"children": [
|
|
239
|
+
{
|
|
240
|
+
"tag": "span",
|
|
241
|
+
"text": "Parent with children"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"tag": "ul",
|
|
245
|
+
"class": "ui-list",
|
|
246
|
+
"children": [
|
|
247
|
+
{
|
|
248
|
+
"tag": "li",
|
|
249
|
+
"text": "Nested child"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"tag": "li",
|
|
253
|
+
"text": "Another nested child"
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"tag": "li",
|
|
261
|
+
"text": "Back to top level"
|
|
262
|
+
}
|
|
263
|
+
]
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
"code": "<ul class=\"ui-list\">\n <li>Top-level item</li>\n <li>\n Parent with children\n <ul class=\"ui-list\">\n <li>Nested child</li>\n </ul>\n </li>\n</ul>"
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
],
|
|
271
|
+
"customization": [
|
|
272
|
+
{
|
|
273
|
+
"token": "--ui-list-spacing",
|
|
274
|
+
"default": "var(--unit)",
|
|
275
|
+
"description": "Gap between items"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"token": "--ui-list-marker-color",
|
|
279
|
+
"default": "var(--ui-color-text-muted)",
|
|
280
|
+
"description": "Bullet or number color"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"token": "--ui-list-indent",
|
|
284
|
+
"default": "var(--ui-space-3)",
|
|
285
|
+
"description": "Inline-start padding for markers"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"token": "--ui-list-line-height",
|
|
289
|
+
"default": "var(--ui-leading-md)",
|
|
290
|
+
"description": "Item line height"
|
|
291
|
+
}
|
|
292
|
+
]
|
|
293
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { expect, test } from '@playwright/test';
|
|
3
|
+
import { saveForLostPixel, setupVisualTestFromDocs, validateGridRhythm } from '../../../testing';
|
|
4
|
+
|
|
5
|
+
const DOCS_PATH = resolve(__dirname, 'list.docs.json');
|
|
6
|
+
|
|
7
|
+
test.describe('list visual regression', () => {
|
|
8
|
+
test('all variations', async ({ page }) => {
|
|
9
|
+
await setupVisualTestFromDocs(page, DOCS_PATH);
|
|
10
|
+
await validateGridRhythm(page, 'list');
|
|
11
|
+
await saveForLostPixel(page, 'list');
|
|
12
|
+
await expect(page.locator('body')).toHaveScreenshot('list.visual.png');
|
|
13
|
+
});
|
|
14
|
+
});
|