fulldev-ui 0.4.10 → 0.4.11

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.
Files changed (49) hide show
  1. package/package.json +3 -2
  2. package/pnpm-lock.yaml +3640 -2909
  3. package/public/images/og-image.png +0 -0
  4. package/src/blocks/Contact.astro +6 -4
  5. package/src/blocks/Intro.astro +5 -3
  6. package/src/blocks/Prices.astro +6 -4
  7. package/src/components/Avatar.astro +18 -16
  8. package/src/components/Badge.astro +33 -31
  9. package/src/components/Bento.astro +16 -14
  10. package/src/components/Button.astro +77 -75
  11. package/src/components/Card.astro +47 -45
  12. package/src/components/Carousel.astro +27 -25
  13. package/src/components/Checkbox.astro +12 -10
  14. package/src/components/Column.astro +35 -33
  15. package/src/components/Dialog.astro +19 -17
  16. package/src/components/Drawer.astro +39 -37
  17. package/src/components/Footer.astro +39 -37
  18. package/src/components/Grid.astro +9 -7
  19. package/src/components/Header.astro +58 -52
  20. package/src/components/Heading.astro +30 -28
  21. package/src/components/Icon.astro +15 -13
  22. package/src/components/Image.astro +93 -91
  23. package/src/components/Input.astro +51 -49
  24. package/src/components/Label.astro +11 -9
  25. package/src/components/Link.astro +34 -32
  26. package/src/components/List.astro +14 -12
  27. package/src/components/Masonry.astro +17 -15
  28. package/src/components/Rating.astro +15 -13
  29. package/src/components/Root.astro +8 -3
  30. package/src/components/Row.astro +17 -15
  31. package/src/components/Section.astro +62 -60
  32. package/src/components/Select.astro +59 -57
  33. package/src/components/Sidebar.astro +16 -13
  34. package/src/components/Split.astro +26 -24
  35. package/src/components/Spread.astro +18 -16
  36. package/src/components/Switch.astro +50 -48
  37. package/src/components/Table.astro +50 -48
  38. package/src/components/Tagline.astro +8 -6
  39. package/src/components/Text.astro +11 -9
  40. package/src/components/Textarea.astro +44 -42
  41. package/src/components/Toc.astro +16 -13
  42. package/src/components/Wrap.astro +16 -14
  43. package/src/components/experimental/Price.astro +11 -9
  44. package/src/components/experimental/Prose.astro +114 -112
  45. package/src/components/experimental/Window.astro +58 -56
  46. package/src/content/pages/index.mdx +1 -1
  47. package/src/content/pages/overview/frameworks.mdx +8 -17
  48. package/src/content/pages/overview/introduction.mdx +1 -1
  49. package/src/css/custom.css +0 -5
@@ -71,89 +71,73 @@ const {
71
71
  }
72
72
 
73
73
  <style is:global lang="scss">
74
- .image {
75
- display: block;
76
- width: 100%;
77
- height: auto;
78
-
79
- &.mask-sm {
80
- -webkit-mask-image: linear-gradient(to top, transparent 0%, black 30%);
81
- mask-image: linear-gradient(to top, transparent 0%, black 30%);
82
- }
83
-
84
- &.mask-md {
85
- -webkit-mask-image: linear-gradient(to top, transparent 0%, black 65%);
86
- mask-image: linear-gradient(to top, transparent 0%, black 65%);
87
- }
88
-
89
- &.mask-lg {
90
- -webkit-mask-image: linear-gradient(to top, transparent 0%, black 100%);
91
- mask-image: linear-gradient(to top, transparent 0%, black 100%);
92
- }
93
-
94
- &.radius-none {
95
- border-radius: 0;
96
- }
74
+ @layer fulldev {
75
+ .image {
76
+ display: block;
77
+ width: 100%;
78
+ height: auto;
97
79
 
98
- &.radius-auto {
99
- border-radius: var(--radius-1);
100
- }
80
+ &.mask-sm {
81
+ -webkit-mask-image: linear-gradient(to top, transparent 0%, black 30%);
82
+ mask-image: linear-gradient(to top, transparent 0%, black 30%);
83
+ }
101
84
 
102
- &.radius-full {
103
- border-radius: 9999px;
104
- }
85
+ &.mask-md {
86
+ -webkit-mask-image: linear-gradient(to top, transparent 0%, black 65%);
87
+ mask-image: linear-gradient(to top, transparent 0%, black 65%);
88
+ }
105
89
 
106
- &.position-background {
107
- position: absolute;
108
- top: 0;
109
- right: 0;
110
- bottom: 0;
111
- left: 0;
112
- z-index: -1;
113
- margin: 0 !important;
114
- border-radius: 0;
115
- width: 100%;
116
- max-width: none;
117
- height: 100%;
118
- max-height: 100%;
119
- object-fit: cover;
120
- }
90
+ &.mask-lg {
91
+ -webkit-mask-image: linear-gradient(to top, transparent 0%, black 100%);
92
+ mask-image: linear-gradient(to top, transparent 0%, black 100%);
93
+ }
121
94
 
122
- &.position-cover {
123
- width: 100%;
124
- height: 100%;
125
- object-fit: cover;
126
- }
95
+ &.radius-none {
96
+ border-radius: 0;
97
+ }
127
98
 
128
- &.position-container {
129
- width: 100%;
130
- height: 100%;
131
- object-fit: contain;
132
- object-position: center;
133
- }
99
+ &.radius-auto {
100
+ border-radius: var(--radius-1);
101
+ }
134
102
 
135
- &.position-inset {
136
- max-width: none;
137
- object-fit: cover;
103
+ &.radius-full {
104
+ border-radius: 9999px;
105
+ }
138
106
 
139
- &:is(.structure-column > &) {
140
- margin-right: calc(var(--inset-right) * -1);
141
- margin-left: calc(var(--inset-left) * -1);
142
- width: calc(100% + var(--inset-left) + var(--inset-right));
107
+ &.position-background {
108
+ position: absolute;
109
+ top: 0;
110
+ right: 0;
111
+ bottom: 0;
112
+ left: 0;
113
+ z-index: -1;
114
+ margin: 0 !important;
115
+ border-radius: 0;
116
+ width: 100%;
117
+ max-width: none;
118
+ height: 100%;
119
+ max-height: 100%;
120
+ object-fit: cover;
121
+ }
143
122
 
144
- &.image:first-child {
145
- margin-top: calc(var(--inset-top) * -1);
146
- height: calc(100% + var(--inset-top) * 1);
147
- }
123
+ &.position-cover {
124
+ width: 100%;
125
+ height: 100%;
126
+ object-fit: cover;
127
+ }
148
128
 
149
- &.image:last-child {
150
- margin-bottom: calc(var(--inset-bottom) * -1);
151
- height: calc(100% + var(--inset-bottom) * 1);
152
- }
129
+ &.position-container {
130
+ width: 100%;
131
+ height: 100%;
132
+ object-fit: contain;
133
+ object-position: center;
153
134
  }
154
135
 
155
- &:is(.structure-split > &) {
156
- @media (max-width: 1023.999px) {
136
+ &.position-inset {
137
+ max-width: none;
138
+ object-fit: cover;
139
+
140
+ &:is(.structure-column > &) {
157
141
  margin-right: calc(var(--inset-right) * -1);
158
142
  margin-left: calc(var(--inset-left) * -1);
159
143
  width: calc(100% + var(--inset-left) + var(--inset-right));
@@ -169,34 +153,52 @@ const {
169
153
  }
170
154
  }
171
155
 
172
- @media (min-width: 1024px) {
173
- margin-top: calc(var(--inset-top) * -1);
174
- margin-bottom: calc(var(--inset-bottom) * -1);
175
- height: calc(100% + var(--inset-top) * 1 + var(--inset-bottom) * 1);
176
-
177
- &.image:first-child {
156
+ &:is(.structure-split > &) {
157
+ @media (max-width: 1023.999px) {
158
+ margin-right: calc(var(--inset-right) * -1);
178
159
  margin-left: calc(var(--inset-left) * -1);
179
- width: calc(100% + var(--inset-left) * 1);
160
+ width: calc(100% + var(--inset-left) + var(--inset-right));
161
+
162
+ &.image:first-child {
163
+ margin-top: calc(var(--inset-top) * -1);
164
+ height: calc(100% + var(--inset-top) * 1);
165
+ }
166
+
167
+ &.image:last-child {
168
+ margin-bottom: calc(var(--inset-bottom) * -1);
169
+ height: calc(100% + var(--inset-bottom) * 1);
170
+ }
180
171
  }
181
172
 
182
- &.image:last-child {
183
- margin-right: calc(var(--inset-right) * -1);
184
- width: calc(100% + var(--inset-right) * 1);
173
+ @media (min-width: 1024px) {
174
+ margin-top: calc(var(--inset-top) * -1);
175
+ margin-bottom: calc(var(--inset-bottom) * -1);
176
+ height: calc(100% + var(--inset-top) * 1 + var(--inset-bottom) * 1);
177
+
178
+ &.image:first-child {
179
+ margin-left: calc(var(--inset-left) * -1);
180
+ width: calc(100% + var(--inset-left) * 1);
181
+ }
182
+
183
+ &.image:last-child {
184
+ margin-right: calc(var(--inset-right) * -1);
185
+ width: calc(100% + var(--inset-right) * 1);
186
+ }
185
187
  }
186
188
  }
187
189
  }
188
- }
189
190
 
190
- &.ratio-landscape {
191
- aspect-ratio: 4/3;
192
- }
191
+ &.ratio-landscape {
192
+ aspect-ratio: 4/3;
193
+ }
193
194
 
194
- &.ratio-square {
195
- aspect-ratio: 1/1;
196
- }
195
+ &.ratio-square {
196
+ aspect-ratio: 1/1;
197
+ }
197
198
 
198
- &.ratio-portrait {
199
- aspect-ratio: 3/4;
199
+ &.ratio-portrait {
200
+ aspect-ratio: 3/4;
201
+ }
200
202
  }
201
203
  }
202
204
  </style>
@@ -52,67 +52,69 @@ const {
52
52
  </Root>
53
53
 
54
54
  <style is:global lang="scss">
55
- .input {
56
- display: flex;
57
- position: relative;
58
- flex-direction: column;
59
- gap: var(--space-1);
60
- width: 100%;
61
-
62
- .icon {
63
- position: absolute;
64
- right: var(--space-4);
65
- bottom: var(--space-4);
66
- pointer-events: none;
67
- }
68
-
69
- input {
55
+ @layer fulldev {
56
+ .input {
70
57
  display: flex;
71
58
  position: relative;
72
- align-items: center;
73
- outline: none;
74
- border: 1px solid var(--color-6);
75
- border-radius: var(--radius-1);
76
- background-color: transparent;
77
- padding: var(--space-4);
78
- padding-right: calc(var(--text-2) + 2 * var(--space-4));
59
+ flex-direction: column;
60
+ gap: var(--space-1);
79
61
  width: 100%;
80
- min-width: var(--space-4);
81
- height: calc(var(--text-2) + 2 * var(--space-4));
82
- color: var(--text);
83
- font-size: var(--text-2);
84
- line-height: 1.25;
85
62
 
86
- &.radius-none {
87
- border-radius: 0;
63
+ .icon {
64
+ position: absolute;
65
+ right: var(--space-4);
66
+ bottom: var(--space-4);
67
+ pointer-events: none;
88
68
  }
89
69
 
90
- &.radius-auto {
70
+ input {
71
+ display: flex;
72
+ position: relative;
73
+ align-items: center;
74
+ outline: none;
75
+ border: 1px solid var(--color-6);
91
76
  border-radius: var(--radius-1);
92
- }
77
+ background-color: transparent;
78
+ padding: var(--space-4);
79
+ padding-right: calc(var(--text-2) + 2 * var(--space-4));
80
+ width: 100%;
81
+ min-width: var(--space-4);
82
+ height: calc(var(--text-2) + 2 * var(--space-4));
83
+ color: var(--text);
84
+ font-size: var(--text-2);
85
+ line-height: 1.25;
93
86
 
94
- &.radius-full {
95
- border-radius: 9999px;
96
- }
87
+ &.radius-none {
88
+ border-radius: 0;
89
+ }
97
90
 
98
- &::placeholder {
99
- color: var(--color-11);
100
- }
91
+ &.radius-auto {
92
+ border-radius: var(--radius-1);
93
+ }
101
94
 
102
- &:hover {
103
- outline: none;
104
- }
95
+ &.radius-full {
96
+ border-radius: 9999px;
97
+ }
105
98
 
106
- &:focus {
107
- outline: none;
108
- box-shadow: inset 0 0 0 2px var(--color-7);
109
- border-color: var(--color-7);
110
- }
99
+ &::placeholder {
100
+ color: var(--color-11);
101
+ }
111
102
 
112
- &:disabled {
113
- opacity: 50%;
114
- cursor: not-allowed;
115
- pointer-events: none;
103
+ &:hover {
104
+ outline: none;
105
+ }
106
+
107
+ &:focus {
108
+ outline: none;
109
+ box-shadow: inset 0 0 0 2px var(--color-7);
110
+ border-color: var(--color-7);
111
+ }
112
+
113
+ &:disabled {
114
+ opacity: 50%;
115
+ cursor: not-allowed;
116
+ pointer-events: none;
117
+ }
116
118
  }
117
119
  }
118
120
  }
@@ -25,14 +25,16 @@ const { as = 'label', html, text, ...rest } = Astro.props
25
25
  </Root>
26
26
 
27
27
  <style is:global lang="scss">
28
- .label {
29
- display: flex;
30
- flex-direction: column;
31
- color: var(--color-11);
32
- font-size: var(--text-2);
33
- line-height: 1;
34
- font-family: var(--font-family);
35
- text-align: left;
36
- white-space: nowrap;
28
+ @layer fulldev {
29
+ .label {
30
+ display: flex;
31
+ flex-direction: column;
32
+ color: var(--color-11);
33
+ font-size: var(--text-2);
34
+ line-height: 1;
35
+ font-family: var(--font-family);
36
+ text-align: left;
37
+ white-space: nowrap;
38
+ }
37
39
  }
38
40
  </style>
@@ -27,47 +27,49 @@ const { html, text, as = 'a', underline = 'auto', ...rest } = Astro.props
27
27
  </Root>
28
28
 
29
29
  <style is:global lang="scss">
30
- .link {
31
- display: inline-flex;
32
- flex-wrap: wrap;
33
- align-items: center;
34
- gap: var(--space-2);
35
- cursor: pointer;
36
- border: none;
37
- background: none;
38
- color: var(--color-11);
39
- font-weight: var(--font-weight);
40
- font-size: var(--text-3);
41
- font-family: var(--font-family);
42
- text-decoration-color: var(--border); // FIXME, werkt niet
43
- white-space: nowrap;
30
+ @layer fulldev {
31
+ .link {
32
+ display: inline-flex;
33
+ flex-wrap: wrap;
34
+ align-items: center;
35
+ gap: var(--space-2);
36
+ cursor: pointer;
37
+ border: none;
38
+ background: none;
39
+ color: var(--color-11);
40
+ font-weight: var(--font-weight);
41
+ font-size: var(--text-3);
42
+ font-family: var(--font-family);
43
+ text-decoration-color: var(--border); // FIXME, werkt niet
44
+ white-space: nowrap;
44
45
 
45
- &:hover {
46
- color: var(--color-12);
47
- }
46
+ &:hover {
47
+ color: var(--color-12);
48
+ }
48
49
 
49
- &.underline-auto {
50
- text-decoration: none;
50
+ &.underline-auto {
51
+ text-decoration: none;
51
52
 
52
- &:is(p > &) {
53
- text-decoration: underline;
53
+ &:is(p > &) {
54
+ text-decoration: underline;
55
+ }
54
56
  }
55
- }
56
57
 
57
- &.underline-always {
58
- text-decoration: underline;
59
- }
58
+ &.underline-always {
59
+ text-decoration: underline;
60
+ }
60
61
 
61
- &.underline-hover {
62
- text-decoration: none;
62
+ &.underline-hover {
63
+ text-decoration: none;
63
64
 
64
- &:hover {
65
- text-decoration: underline;
65
+ &:hover {
66
+ text-decoration: underline;
67
+ }
66
68
  }
67
- }
68
69
 
69
- &.underline-none {
70
- text-decoration: none;
70
+ &.underline-none {
71
+ text-decoration: none;
72
+ }
71
73
  }
72
74
  }
73
75
  </style>
@@ -21,21 +21,23 @@ const { as = 'ul', items, ...rest } = Astro.props
21
21
  </Root>
22
22
 
23
23
  <style is:global lang="scss">
24
- .list {
25
- display: flex;
26
- flex-direction: column;
27
- padding-left: var(--space-5);
28
- color: var(--color-11);
29
- font-size: var(--text-2);
30
- line-height: 1.625;
31
- list-style-type: disc;
32
-
33
- li {
34
- align-items: center;
35
- max-width: calc(var(--space-4) * 44);
24
+ @layer fulldev {
25
+ .list {
26
+ display: flex;
27
+ flex-direction: column;
28
+ padding-left: var(--space-5);
36
29
  color: var(--color-11);
37
30
  font-size: var(--text-2);
38
31
  line-height: 1.625;
32
+ list-style-type: disc;
33
+
34
+ li {
35
+ align-items: center;
36
+ max-width: calc(var(--space-4) * 44);
37
+ color: var(--color-11);
38
+ font-size: var(--text-2);
39
+ line-height: 1.625;
40
+ }
39
41
  }
40
42
  }
41
43
  </style>
@@ -18,23 +18,25 @@ const { ...rest } = Astro.props
18
18
  </Root>
19
19
 
20
20
  <style is:global lang="scss">
21
- .masonry {
22
- --column-width: calc(21 * var(--space-4));
23
- --gap: var(--space-4);
21
+ @layer fulldev {
22
+ .masonry {
23
+ --column-width: calc(21 * var(--space-4));
24
+ --gap: var(--space-4);
24
25
 
25
- position: relative;
26
- column-gap: var(--gap);
27
- column-fill: balance;
28
- column-width: var(--column-width);
29
- column-count: 6;
30
- break-inside: avoid;
31
- width: 100%;
32
-
33
- & > .root + .root,
34
- & > * + * {
26
+ position: relative;
27
+ column-gap: var(--gap);
28
+ column-fill: balance;
29
+ column-width: var(--column-width);
30
+ column-count: 6;
35
31
  break-inside: avoid;
36
- margin-top: var(--gap);
37
- margin-bottom: var(--gap);
32
+ width: 100%;
33
+
34
+ & > .root + .root,
35
+ & > * + * {
36
+ break-inside: avoid;
37
+ margin-top: var(--gap);
38
+ margin-bottom: var(--gap);
39
+ }
38
40
  }
39
41
  }
40
42
  </style>
@@ -61,22 +61,24 @@ const getIcon = (count: number) => {
61
61
  </Root>
62
62
 
63
63
  <style is:global lang="scss">
64
- .rating {
65
- display: flex;
66
- gap: var(--space-4);
64
+ @layer fulldev {
65
+ .rating {
66
+ display: flex;
67
+ gap: var(--space-4);
67
68
 
68
- .avatar + .avatar {
69
- margin-left: calc(var(--space-4) * -2.5);
70
- }
69
+ .avatar + .avatar {
70
+ margin-left: calc(var(--space-4) * -2.5);
71
+ }
71
72
 
72
- .label {
73
- margin-top: var(--space-2) !important;
74
- }
73
+ .label {
74
+ margin-top: var(--space-2) !important;
75
+ }
75
76
 
76
- .stars {
77
- display: flex;
78
- align-items: center;
79
- gap: var(--space-2);
77
+ .stars {
78
+ display: flex;
79
+ align-items: center;
80
+ gap: var(--space-2);
81
+ }
80
82
  }
81
83
  }
82
84
  </style>
@@ -79,13 +79,18 @@ const render =
79
79
  }
80
80
 
81
81
  <style is:global lang="scss">
82
+ @import '@unocss/reset/tailwind.css' layer(base);
82
83
  @import '../css/color.css';
83
84
  @import '../css/styles.css';
84
85
  @import '../css/size.css';
85
86
  @import '../css/space.css';
86
87
 
87
- .root {
88
- z-index: 1;
89
- box-sizing: border-box;
88
+ @layer base, fulldev;
89
+
90
+ @layer fulldev {
91
+ .root {
92
+ z-index: 1;
93
+ box-sizing: border-box;
94
+ }
90
95
  }
91
96
  </style>
@@ -22,25 +22,27 @@ const { space = 'auto', align = 'center', ...rest } = Astro.props
22
22
  </Root>
23
23
 
24
24
  <style is:global lang="scss">
25
- .row {
26
- display: flex;
25
+ @layer fulldev {
26
+ .row {
27
+ display: flex;
27
28
 
28
- &.align-start {
29
- align-items: flex-start;
30
- text-align: left;
31
- }
29
+ &.align-start {
30
+ align-items: flex-start;
31
+ text-align: left;
32
+ }
32
33
 
33
- &.align-center {
34
- align-items: center;
35
- }
34
+ &.align-center {
35
+ align-items: center;
36
+ }
36
37
 
37
- &.align-end {
38
- align-items: flex-end;
39
- }
38
+ &.align-end {
39
+ align-items: flex-end;
40
+ }
40
41
 
41
- &.space-auto {
42
- > * + * {
43
- margin-left: var(--space-auto);
42
+ &.space-auto {
43
+ > * + * {
44
+ margin-left: var(--space-auto);
45
+ }
44
46
  }
45
47
  }
46
48
  }