fulldev-ui 0.1.64 → 0.2.10
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 +1 -1
- package/package.json +5 -2
- package/src/components/_Children.astro +0 -7
- package/src/components/_Tag.astro +35 -14
- package/src/components/base/Badge.astro +21 -23
- package/src/components/base/Button.astro +22 -36
- package/src/components/base/Checkbox.astro +9 -6
- package/src/components/base/Icon.astro +23 -14
- package/src/components/base/Image.astro +47 -47
- package/src/components/base/Input.astro +18 -16
- package/src/components/base/Logo.astro +6 -4
- package/src/components/base/Radio.astro +8 -6
- package/src/components/base/Rating.astro +10 -7
- package/src/components/base/Select.astro +17 -13
- package/src/components/base/SelectOption.astro +5 -5
- package/src/components/base/Switch.astro +11 -12
- package/src/components/base/Textarea.astro +9 -7
- package/src/components/base/Video.astro +4 -4
- package/src/components/base/todo.md +1 -2
- package/src/components/{wrapper → segment}/Body.astro +13 -10
- package/src/components/segment/Card.astro +94 -0
- package/src/components/segment/Deck.astro +36 -0
- package/src/components/{wrapper → segment}/Footer.astro +2 -2
- package/src/components/segment/Form.astro +30 -0
- package/src/components/{wrapper → segment}/Header.astro +16 -34
- package/src/components/segment/Main.astro +28 -0
- package/src/components/segment/Nav.astro +30 -0
- package/src/components/{wrapper → segment}/Prose.astro +15 -15
- package/src/components/segment/Section.astro +66 -0
- package/src/components/{wrapper → segment}/Writeup.astro +8 -7
- package/src/components/segment/todo.md +8 -0
- package/src/components/structure/Bento.astro +35 -0
- package/src/components/structure/Carousel.astro +43 -0
- package/src/components/structure/Grid.astro +30 -0
- package/src/components/structure/Group.astro +28 -0
- package/src/components/structure/Masonry.astro +39 -0
- package/src/components/structure/Split.astro +41 -0
- package/src/components/structure/Spread.astro +48 -0
- package/src/components/structure/Stack.astro +90 -0
- package/src/components/structure/todo.md +5 -0
- package/src/components/typography/Heading.astro +37 -19
- package/src/components/typography/Label.astro +13 -14
- package/src/components/typography/Link.astro +15 -10
- package/src/components/typography/List.astro +16 -13
- package/src/components/typography/ListItem.astro +16 -11
- package/src/components/typography/Paragraph.astro +17 -20
- package/src/components/typography/Tagline.astro +17 -22
- package/src/components/typography/todo.md +1 -13
- package/src/css/colors.css +142 -275
- package/src/css/main.css +1 -2
- package/src/css/sizes.css +136 -198
- package/src/css/styles.css +15 -0
- package/src/css/utils.scss +16 -0
- package/src/index.ts +22 -15
- package/src/integration/integration.ts +39 -57
- package/src/layouts/Layout.astro +7 -3
- package/src/types/Structuremorphic.ts +18 -0
- package/src/components/typography/Links.astro +0 -15
- package/src/components/typography/_Typography.astro +0 -28
- package/src/components/utility/DecorativeBox.astro +0 -22
- package/src/components/wrapper/Card.astro +0 -144
- package/src/components/wrapper/Cards.astro +0 -15
- package/src/components/wrapper/Deck.astro +0 -133
- package/src/components/wrapper/Form.astro +0 -26
- package/src/components/wrapper/Group.astro +0 -26
- package/src/components/wrapper/Main.astro +0 -25
- package/src/components/wrapper/Nav.astro +0 -32
- package/src/components/wrapper/Section.astro +0 -110
- package/src/components/wrapper/Sections.astro +0 -15
- package/src/components/wrapper/_Wrapper.astro +0 -333
- package/src/components/wrapper/todo.md +0 -20
- package/src/css/border.css +0 -23
- package/src/css/font.css +0 -15
- package/src/css/reset.css +0 -388
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
import type { ComponentProps } from 'astro/types'
|
|
3
|
-
import Children from '../_Children.astro'
|
|
4
|
-
import Tag from '../_Tag.astro'
|
|
5
|
-
|
|
6
|
-
interface Props extends ComponentProps<typeof Tag> {
|
|
7
|
-
html?: string
|
|
8
|
-
x?: 'start' | 'center' | 'end' | 'between' | 'stretch' | 'fraction'
|
|
9
|
-
y?: 'start' | 'center' | 'end' | 'between' | 'stretch' | 'fraction'
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const {
|
|
13
|
-
direction = 'vertical',
|
|
14
|
-
x = 'left',
|
|
15
|
-
y = 'top',
|
|
16
|
-
layout,
|
|
17
|
-
...rest
|
|
18
|
-
} = Astro.props
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
<Tag
|
|
22
|
-
class:list={[
|
|
23
|
-
'full-wrapper',
|
|
24
|
-
{
|
|
25
|
-
[`full-direction-${direction}`]: direction,
|
|
26
|
-
[`full-layout-${layout}`]: layout,
|
|
27
|
-
[`full-x-${x}`]: x,
|
|
28
|
-
[`full-y-${y}`]: y,
|
|
29
|
-
},
|
|
30
|
-
]}
|
|
31
|
-
{...rest}
|
|
32
|
-
>
|
|
33
|
-
<slot name="before" />
|
|
34
|
-
<Children {...rest} />
|
|
35
|
-
<slot />
|
|
36
|
-
</Tag>
|
|
37
|
-
|
|
38
|
-
<style is:global lang="scss">
|
|
39
|
-
.full-wrapper {
|
|
40
|
-
* {
|
|
41
|
-
margin: 0;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.full-direction-horizontal:not(.full-x-fill) {
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: row;
|
|
48
|
-
|
|
49
|
-
> {
|
|
50
|
-
.full-tag {
|
|
51
|
-
+ .full-deck,
|
|
52
|
-
+ .full-image:not(.full-position-background),
|
|
53
|
-
+ .full-icon {
|
|
54
|
-
margin-left: var(--space-5);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.full-deck,
|
|
59
|
-
.full-image:not(.full-position-background),
|
|
60
|
-
.full-icon {
|
|
61
|
-
+ .full-tag {
|
|
62
|
-
margin-left: var(--space-5);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.full-tag {
|
|
67
|
-
+ .full-group,
|
|
68
|
-
+ .full-form {
|
|
69
|
-
margin-left: var(--space-4);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.full-tag {
|
|
74
|
-
+ .full-paragraph,
|
|
75
|
-
+ .full-link,
|
|
76
|
-
+ .full-heading,
|
|
77
|
-
+ .full-switch {
|
|
78
|
-
margin-left: var(--space-3);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.full-tag {
|
|
83
|
-
+ .full-link {
|
|
84
|
-
margin-left: var(--space-4);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.full-tag {
|
|
89
|
-
+ .full-button {
|
|
90
|
-
margin-left: var(--space-5);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.full-position-background + .full-tag {
|
|
95
|
-
margin-left: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.full-button {
|
|
99
|
-
+ .full-button {
|
|
100
|
-
margin-left: var(--space-2);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.full-placeholder + .full-placeholder {
|
|
105
|
-
margin-left: var(--space-4);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.full-position-background + .full-tag {
|
|
109
|
-
margin-left: 0;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.full-direction-vertical {
|
|
115
|
-
display: flex;
|
|
116
|
-
flex-direction: column;
|
|
117
|
-
|
|
118
|
-
> {
|
|
119
|
-
.full-tag {
|
|
120
|
-
+ .full-deck,
|
|
121
|
-
+ .full-image:not(.full-position-background),
|
|
122
|
-
+ .full-icon {
|
|
123
|
-
margin-top: var(--space-5);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.full-placeholder + .full-placeholder {
|
|
128
|
-
margin-top: var(--space-4);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.full-tag {
|
|
132
|
-
+ .full-group,
|
|
133
|
-
+ .full-card,
|
|
134
|
-
+ .full-form,
|
|
135
|
-
+ .full-button,
|
|
136
|
-
+ .full-list {
|
|
137
|
-
margin-top: var(--space-4);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.full-list {
|
|
142
|
-
+ .full-tag {
|
|
143
|
-
margin-top: var(--space-4);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.full-tag {
|
|
148
|
-
+ .full-heading {
|
|
149
|
-
margin-top: var(--space-3);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.full-rating {
|
|
154
|
-
+ .full-tag {
|
|
155
|
-
margin-top: var(--space-4);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.full-deck,
|
|
160
|
-
.full-image:not(.full-position-background),
|
|
161
|
-
.full-icon {
|
|
162
|
-
+ .full-tag {
|
|
163
|
-
margin-top: var(--space-5);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.full-button {
|
|
168
|
-
+ .full-button {
|
|
169
|
-
margin-top: var(--space-2);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
.full-paragraph {
|
|
174
|
-
+ .full-paragraph,
|
|
175
|
-
+ .full-label,
|
|
176
|
-
+ .full-input {
|
|
177
|
-
margin-top: var(--space-2);
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.full-tagline {
|
|
182
|
-
+ .full-paragraph,
|
|
183
|
-
+ .full-heading,
|
|
184
|
-
+ .full-label,
|
|
185
|
-
+ .full-input {
|
|
186
|
-
margin-top: var(--space-3);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.full-heading {
|
|
191
|
-
+ .full-paragraph {
|
|
192
|
-
margin-top: var(--space-3);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.full-paragraph {
|
|
197
|
-
+ .full-heading {
|
|
198
|
-
margin-top: var(--space-3);
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.full-label {
|
|
203
|
-
+ .full-input,
|
|
204
|
-
+ .full-textarea,
|
|
205
|
-
+ .full-select {
|
|
206
|
-
margin-top: var(--space-1);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.full-input {
|
|
211
|
-
+ .full-input,
|
|
212
|
-
+ .full-button,
|
|
213
|
-
+ .full-label {
|
|
214
|
-
margin-top: var(--space-3);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.full-direction-vertical {
|
|
221
|
-
display: flex;
|
|
222
|
-
flex-direction: column;
|
|
223
|
-
|
|
224
|
-
// & > .full-tag:not(:first-child) {
|
|
225
|
-
// margin-top: var(--my-spacer);
|
|
226
|
-
// }
|
|
227
|
-
|
|
228
|
-
&.full-x-left {
|
|
229
|
-
align-items: flex-start;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
&.full-x-center {
|
|
233
|
-
align-items: center;
|
|
234
|
-
text-align: center;
|
|
235
|
-
|
|
236
|
-
> .full-tag > .full-tag {
|
|
237
|
-
text-align: left;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
&.full-x-right {
|
|
242
|
-
align-items: flex-end;
|
|
243
|
-
text-align: right;
|
|
244
|
-
|
|
245
|
-
> .full-tag > .full-tag {
|
|
246
|
-
text-align: left;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
&.full-x-fill {
|
|
251
|
-
align-items: stretch;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
&.full-y-top {
|
|
255
|
-
justify-content: flex-start;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
&.full-y-center {
|
|
259
|
-
justify-content: center;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
&.full-y-bottom {
|
|
263
|
-
justify-content: flex-end;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
&.full-y-spread {
|
|
267
|
-
justify-content: space-between;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
&.full-y-fill {
|
|
271
|
-
justify-content: stretch;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.full-direction-horizontal {
|
|
276
|
-
display: flex;
|
|
277
|
-
flex-direction: row;
|
|
278
|
-
|
|
279
|
-
// & > .full-tag:not(:first-child) {
|
|
280
|
-
// margin-left: var(--my-spacer);
|
|
281
|
-
// }
|
|
282
|
-
|
|
283
|
-
&.full-x-left {
|
|
284
|
-
justify-content: flex-start;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
&.full-x-center {
|
|
288
|
-
justify-content: center;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
&.full-x-right {
|
|
292
|
-
justify-content: flex-end;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
&.full-x-spread {
|
|
296
|
-
justify-content: space-between;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
&.full-x-fill {
|
|
300
|
-
display: grid;
|
|
301
|
-
row-gap: var(--space-5);
|
|
302
|
-
|
|
303
|
-
@media (min-width: 1024px) {
|
|
304
|
-
grid-auto-columns: 1fr;
|
|
305
|
-
grid-auto-flow: column;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
& > .full-tag {
|
|
309
|
-
margin-left: 0;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
&.full-y-top {
|
|
314
|
-
align-items: flex-start;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
&.full-y-center {
|
|
318
|
-
align-items: center;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
&.full-y-bottom {
|
|
322
|
-
align-items: flex-end;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
&.full-y-stretch {
|
|
326
|
-
align-items: stretch;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
&.full-y-fill {
|
|
330
|
-
align-items: stretch;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
</style>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Chores
|
|
2
|
-
- Apply props gutter, which controls the outer padding/margin. Now is frame: panel/fill/viewport
|
|
3
|
-
- Apply props spacer, which controls the margin between children. Now is always enabled, but should be optional: none, components, prose (probably not needed with prose and writeup component. This whole prop might be skipped)
|
|
4
|
-
- Should be renamed to 'containers', because 'layouts' are used used for collections. Or maybe 'structures'. Or we should use template for the content collections. We need a name that also fits 'Divider'.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
# New components
|
|
8
|
-
- Prose (for articles etc. Should apply styling to non-component html elements)
|
|
9
|
-
- Writeup (for small content areas, like in a section. Should apply styling to non-component html elements)
|
|
10
|
-
- Field (for form fields with label etc. Should adapt based on the element, like horizontal for checkboxes)
|
|
11
|
-
- Divider (for separating with a light border)
|
|
12
|
-
|
|
13
|
-
## Low priority
|
|
14
|
-
- Toast
|
|
15
|
-
- Modal
|
|
16
|
-
- Drawer
|
|
17
|
-
- Alert
|
|
18
|
-
- Tooltip
|
|
19
|
-
- Legal
|
|
20
|
-
- Banner
|
package/src/css/border.css
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--border-radius: 1;
|
|
3
|
-
--full-border-width: 1px;
|
|
4
|
-
--full-transition: cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:root,
|
|
8
|
-
.full-compact,
|
|
9
|
-
.full-size-xs,
|
|
10
|
-
.full-size-sm,
|
|
11
|
-
.full-size-md,
|
|
12
|
-
.full-size-lg,
|
|
13
|
-
.full-size-xl {
|
|
14
|
-
--full-border-radius-1: calc(
|
|
15
|
-
var(--border-radius) * var(--space-element-2) * 0.25
|
|
16
|
-
);
|
|
17
|
-
--full-border-radius-2: calc(
|
|
18
|
-
var(--border-radius) * var(--space-element-2) * 0.5
|
|
19
|
-
);
|
|
20
|
-
--full-border-radius-3: calc(
|
|
21
|
-
var(--border-radius) * var(--space-element-2) * 1
|
|
22
|
-
);
|
|
23
|
-
}
|
package/src/css/font.css
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--full-font-family: 'IBM Plex Sans', sans-serif;
|
|
3
|
-
--full-font-weight: 400;
|
|
4
|
-
|
|
5
|
-
--full-heading-font-family: var(--full-font-family);
|
|
6
|
-
--full-heading-font-weight: 700;
|
|
7
|
-
|
|
8
|
-
--full-button-font-family: var(--full-font-family);
|
|
9
|
-
--full-button-font-weight: 500;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.full-density-compact {
|
|
13
|
-
--full-heading-font-family: var(--full-font-family);
|
|
14
|
-
--full-heading-font-weight: 600;
|
|
15
|
-
}
|