winduum 2.0.0-next.1 → 2.0.0-next.2
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 +12 -12
- package/plugin/index.js +10 -10
- package/plugin/utilities/dot.js +2 -2
- package/src/base/breakpoints.css +10 -10
- package/src/base/keyframes.css +3 -3
- package/src/components/badge/bordered.css +5 -15
- package/src/components/badge/circle.css +4 -4
- package/src/components/badge/default.css +34 -18
- package/src/components/badge/index.css +1 -1
- package/src/components/badge/lg.css +2 -2
- package/src/components/badge/muted.css +3 -3
- package/src/components/badge/props/default.css +9 -0
- package/src/components/badge/readme.md +12 -12
- package/src/components/badge/sm.css +3 -3
- package/src/components/badge/square.css +3 -3
- package/src/components/breadcrumb/default.css +7 -7
- package/src/components/breadcrumb/index.css +1 -1
- package/src/components/breadcrumb/props/default.css +5 -0
- package/src/components/breadcrumb/readme.md +1 -1
- package/src/components/button/bordered.css +18 -18
- package/src/components/button/circle.css +5 -5
- package/src/components/button/default.css +29 -29
- package/src/components/button/fill.css +5 -5
- package/src/components/button/ghosted.css +13 -13
- package/src/components/button/interactive.css +32 -32
- package/src/components/button/lg.css +3 -3
- package/src/components/button/muted.css +13 -13
- package/src/components/button/props/default.css +9 -9
- package/src/components/button/props/interactive.css +7 -7
- package/src/components/button/raised.css +5 -5
- package/src/components/button/readme.md +2 -2
- package/src/components/button/sm.css +3 -3
- package/src/components/button/square.css +4 -4
- package/src/components/card/default.css +4 -6
- package/src/components/card/index.css +1 -1
- package/src/components/card/props/default.css +6 -0
- package/src/components/card/readme.md +1 -1
- package/src/components/carousel/content.css +2 -2
- package/src/components/carousel/default.css +1 -1
- package/src/components/check/default.css +34 -41
- package/src/components/check/index.css +1 -2
- package/src/components/check/interactive.css +31 -25
- package/src/components/check/invalid.css +7 -6
- package/src/components/check/props/default.css +13 -0
- package/src/components/check/readme.md +8 -9
- package/src/components/color/default.css +13 -25
- package/src/components/color/index.css +1 -2
- package/src/components/color/interactive.css +18 -12
- package/src/components/color/props/default.css +7 -0
- package/src/components/color/readme.md +7 -8
- package/src/components/compare/default.css +17 -18
- package/src/components/compare/index.js +2 -2
- package/src/components/control/color.css +8 -8
- package/src/components/control/default.css +36 -39
- package/src/components/control/file.css +14 -12
- package/src/components/control/floating-interactive.css +5 -5
- package/src/components/control/floating.css +7 -7
- package/src/components/control/icon.css +8 -8
- package/src/components/control/index.css +5 -6
- package/src/components/control/interactive.css +9 -9
- package/src/components/control/invalid.css +7 -7
- package/src/components/control/props/color.css +5 -0
- package/src/components/control/props/default.css +16 -0
- package/src/components/control/props/floating.css +4 -0
- package/src/components/control/props/icon.css +4 -0
- package/src/components/control/props/select.css +4 -0
- package/src/components/control/readme.md +19 -20
- package/src/components/control/select-multiple.css +2 -2
- package/src/components/control/select.css +8 -8
- package/src/components/dialog/content.css +6 -6
- package/src/components/dialog/default.css +11 -8
- package/src/components/dialog/index.css +2 -2
- package/src/components/dialog/index.js +3 -3
- package/src/components/dialog/props/content.css +5 -0
- package/src/components/dialog/props/default.css +6 -0
- package/src/components/dialog/readme.md +2 -2
- package/src/components/drawer/content.css +4 -4
- package/src/components/drawer/default.css +8 -5
- package/src/components/drawer/index.css +2 -2
- package/src/components/drawer/index.js +3 -3
- package/src/components/drawer/props/content.css +7 -0
- package/src/components/drawer/props/default.css +3 -0
- package/src/components/drawer/readme.md +2 -2
- package/src/components/field/default.css +6 -6
- package/src/components/form/index.js +5 -5
- package/src/components/group/default.css +11 -11
- package/src/components/group/readme.md +6 -6
- package/src/components/group/vertical.css +2 -2
- package/src/components/heading/default.css +6 -6
- package/src/components/heading/index.css +1 -1
- package/src/components/heading/lg.css +2 -2
- package/src/components/heading/props/default.css +6 -0
- package/src/components/heading/readme.md +8 -8
- package/src/components/heading/sm.css +2 -2
- package/src/components/image/avatar.css +1 -1
- package/src/components/image/default.css +1 -1
- package/src/components/image/readme.md +6 -6
- package/src/components/index.css +0 -2
- package/src/components/info/default.css +6 -6
- package/src/components/info/index.css +1 -1
- package/src/components/info/props/default.css +4 -0
- package/src/components/info/readme.md +6 -6
- package/src/components/label/default.css +6 -6
- package/src/components/label/index.css +1 -1
- package/src/components/label/props/default.css +4 -0
- package/src/components/label/readme.md +6 -6
- package/src/components/link/default.css +6 -6
- package/src/components/link/index.css +1 -2
- package/src/components/link/interactive.css +3 -10
- package/src/components/link/props/default.css +4 -0
- package/src/components/link/readme.md +7 -7
- package/src/components/notice/default.css +16 -20
- package/src/components/notice/index.css +1 -1
- package/src/components/notice/props/default.css +8 -0
- package/src/components/notice/readme.md +6 -6
- package/src/components/pagination/default.css +2 -2
- package/src/components/popover/content.css +14 -15
- package/src/components/popover/default.css +1 -1
- package/src/components/popover/index.css +1 -1
- package/src/components/popover/props/content.css +8 -0
- package/src/components/popover/readme.md +1 -1
- package/src/components/progress/default.css +15 -16
- package/src/components/progress/index.css +1 -1
- package/src/components/progress/lg.css +2 -2
- package/src/components/progress/meter.css +7 -7
- package/src/components/progress/props/default.css +6 -0
- package/src/components/progress/readme.md +9 -9
- package/src/components/progress/sm.css +2 -2
- package/src/components/range/default.css +47 -49
- package/src/components/range/index.css +1 -1
- package/src/components/range/index.js +2 -2
- package/src/components/range/multi.css +6 -6
- package/src/components/range/props/default.css +9 -0
- package/src/components/range/readme.md +8 -8
- package/src/components/range/vertical.css +3 -3
- package/src/components/rating/default.css +11 -11
- package/src/components/rating/index.css +1 -1
- package/src/components/rating/invalid.css +3 -3
- package/src/components/rating/props/default.css +8 -0
- package/src/components/rating/readme.md +7 -7
- package/src/components/switch/default.css +23 -26
- package/src/components/switch/index.css +1 -1
- package/src/components/switch/interactive.css +13 -9
- package/src/components/switch/invalid.css +4 -4
- package/src/components/switch/props/default.css +17 -0
- package/src/components/switch/readme.md +8 -8
- package/src/components/table/default.css +11 -11
- package/src/components/table/index.css +1 -2
- package/src/components/table/interactive.css +14 -14
- package/src/components/table/props/default.css +8 -0
- package/src/components/table/readme.md +1 -2
- package/src/components/tabs/default.css +6 -6
- package/src/components/text/default.css +102 -72
- package/src/components/text/index.css +1 -1
- package/src/components/text/props/default.css +9 -0
- package/src/components/text/readme.md +6 -6
- package/src/components/title/default.css +6 -6
- package/src/components/title/index.css +1 -1
- package/src/components/title/lg.css +2 -2
- package/src/components/title/props/default.css +5 -0
- package/src/components/title/readme.md +8 -8
- package/src/components/title/sm.css +2 -2
- package/src/components/toast/content.css +16 -15
- package/src/components/toast/default.css +8 -8
- package/src/components/toast/index.css +2 -2
- package/src/components/toast/props/content.css +7 -0
- package/src/components/toast/props/default.css +4 -0
- package/src/components/toast/readme.md +2 -2
- package/src/components/toaster/default.css +4 -4
- package/src/components/toaster/index.css +1 -1
- package/src/components/toaster/index.js +8 -8
- package/src/components/toaster/props/default.css +4 -0
- package/src/components/toaster/readme.md +1 -1
- package/src/components/tooltip/default.css +15 -15
- package/src/components/tooltip/index.css +1 -1
- package/src/components/tooltip/props/default.css +12 -0
- package/src/components/tooltip/readme.md +2 -2
- package/src/utilities/divider.css +13 -3
- package/src/utilities/ripple/index.css +9 -4
- package/src/utilities/skeleton/default.css +8 -1
- package/src/utilities/skeleton/props/default.css +3 -3
- package/src/utilities/swap/default.css +3 -3
- package/src/components/badge/default-props.css +0 -8
- package/src/components/breadcrumb/default-props.css +0 -5
- package/src/components/card/default-props.css +0 -4
- package/src/components/check/default-props.css +0 -13
- package/src/components/check/interactive-props.css +0 -3
- package/src/components/color/default-props.css +0 -11
- package/src/components/color/interactive-props.css +0 -3
- package/src/components/control/color-props.css +0 -5
- package/src/components/control/default-props.css +0 -16
- package/src/components/control/floating-props.css +0 -4
- package/src/components/control/icon-props.css +0 -4
- package/src/components/control/interactive-props.css +0 -3
- package/src/components/control/select-props.css +0 -4
- package/src/components/dialog/content-props.css +0 -5
- package/src/components/dialog/default-props.css +0 -6
- package/src/components/drawer/content-props.css +0 -6
- package/src/components/drawer/default-props.css +0 -3
- package/src/components/heading/default-props.css +0 -6
- package/src/components/info/default-props.css +0 -4
- package/src/components/label/default-props.css +0 -4
- package/src/components/link/default-props.css +0 -4
- package/src/components/link/interactive-props.css +0 -5
- package/src/components/notice/default-props.css +0 -8
- package/src/components/popover/content-props.css +0 -8
- package/src/components/progress/default-props.css +0 -4
- package/src/components/range/default-props.css +0 -10
- package/src/components/rating/default-props.css +0 -5
- package/src/components/switch/default-props.css +0 -17
- package/src/components/switch/interactive-props.css +0 -3
- package/src/components/table/default-props.css +0 -8
- package/src/components/table/interactive-props.css +0 -4
- package/src/components/text/default-props.css +0 -9
- package/src/components/title/default-props.css +0 -5
- package/src/components/toast/content-props.css +0 -7
- package/src/components/toast/default-props.css +0 -4
- package/src/components/toaster/default-props.css +0 -4
- package/src/components/tooltip/default-props.css +0 -12
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
.text {
|
|
2
|
-
font-family: var(--text-font-family);
|
|
3
|
-
font-weight: var(--text-font-weight);
|
|
4
|
-
font-size: var(--text-font-size);
|
|
5
|
-
line-height: var(--text-line-height);
|
|
6
|
-
letter-spacing: var(--text-letter-spacing);
|
|
1
|
+
.x-text {
|
|
2
|
+
font-family: var(--x-text-font-family);
|
|
3
|
+
font-weight: var(--x-text-font-weight);
|
|
4
|
+
font-size: var(--x-text-font-size);
|
|
5
|
+
line-height: var(--x-text-line-height);
|
|
6
|
+
letter-spacing: var(--x-text-letter-spacing);
|
|
7
7
|
text-wrap: pretty;
|
|
8
8
|
|
|
9
9
|
> :is(*:first-child) {
|
|
@@ -14,24 +14,8 @@
|
|
|
14
14
|
margin-block-end: 0;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
:where(a) {
|
|
18
|
-
transition: var(--transition-color);
|
|
19
|
-
color: var(--color-accent);
|
|
20
|
-
text-decoration: underline;
|
|
21
|
-
|
|
22
|
-
&:hover {
|
|
23
|
-
@media (hover: hover) and (pointer: fine) {
|
|
24
|
-
color: color-mix(in var(--default-color-space), var(--color-accent) 75%, transparent);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:focus-visible {
|
|
29
|
-
color: color-mix(in var(--default-color-space), var(--color-accent) 75%, transparent);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
17
|
:where(b, strong) {
|
|
34
|
-
font-weight: var(--text-content-bold);
|
|
18
|
+
font-weight: var(--x-text-content-bold);
|
|
35
19
|
}
|
|
36
20
|
|
|
37
21
|
:where(em) {
|
|
@@ -44,7 +28,7 @@
|
|
|
44
28
|
}
|
|
45
29
|
|
|
46
30
|
:where(p) {
|
|
47
|
-
margin-block: var(--text-content-
|
|
31
|
+
margin-block: var(--x-text-p-margin-block, var(--x-text-content-margin-block));
|
|
48
32
|
|
|
49
33
|
&:empty {
|
|
50
34
|
line-height: 0;
|
|
@@ -57,71 +41,113 @@
|
|
|
57
41
|
}
|
|
58
42
|
|
|
59
43
|
:where(hr) {
|
|
60
|
-
--
|
|
44
|
+
margin-block: var(--x-text-hr-margin-block);
|
|
45
|
+
background-color:
|
|
46
|
+
color-mix(
|
|
47
|
+
in var(--x-text-hr-background-color-space, srgb),
|
|
48
|
+
var(--x-text-hr-background-color, currentColor) var(--x-text-hr-background-color-opacity, 10%),
|
|
49
|
+
var(--x-text-hr-background-color-mix, transparent)
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:where(a) {
|
|
54
|
+
color: var(--x-text-link-color, var(--color-accent));
|
|
55
|
+
text-decoration: var(--x-text-link-text-decoration, underline);
|
|
56
|
+
transition: var(--transition-color);
|
|
61
57
|
|
|
62
|
-
|
|
58
|
+
&:hover {
|
|
59
|
+
color:
|
|
60
|
+
color-mix(
|
|
61
|
+
in var(--x-text-link-hover-color-space, srgb),
|
|
62
|
+
var(--x-text-link-hover-color, var(--color-accent)) var(--x-text-link-hover-color-opacity, 75%),
|
|
63
|
+
var(--x-text-link-hover-color-mix, transparent)
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus-visible {
|
|
68
|
+
color:
|
|
69
|
+
color-mix(
|
|
70
|
+
in var(--x-text-link-focus-color-space, srgb),
|
|
71
|
+
var(--x-text-link-focus-color, var(--color-accent)) var(--x-text-link-focus-color-opacity, 75%),
|
|
72
|
+
var(--x-text-link-focus-color-mix, transparent)
|
|
73
|
+
);
|
|
74
|
+
}
|
|
63
75
|
}
|
|
64
76
|
|
|
65
77
|
:where(h1, h2, h3, h4, h5, h6) {
|
|
66
|
-
font-family: var(--text-heading-font-family);
|
|
67
|
-
font-weight: var(--text-heading-font-weight, var(--text-content-bold));
|
|
68
|
-
font-size: var(--text-heading-font-size);
|
|
69
|
-
line-height: var(--text-heading-line-height);
|
|
70
|
-
letter-spacing: var(--text-heading-letter-spacing);
|
|
71
|
-
margin-block: var(--text-heading-
|
|
72
|
-
color: var(--text-heading-color);
|
|
78
|
+
font-family: var(--x-text-heading-font-family);
|
|
79
|
+
font-weight: var(--x-text-heading-font-weight, var(--x-text-content-bold));
|
|
80
|
+
font-size: var(--x-text-heading-font-size);
|
|
81
|
+
line-height: var(--x-text-heading-line-height);
|
|
82
|
+
letter-spacing: var(--x-text-heading-letter-spacing);
|
|
83
|
+
margin-block: var(--x-text-heading-margin-block);
|
|
84
|
+
color: var(--x-text-heading-color);
|
|
73
85
|
text-wrap: balance;
|
|
74
86
|
}
|
|
75
87
|
|
|
76
88
|
:where(h1) {
|
|
77
|
-
--text-heading-font-size: var(--font-size-4xl);
|
|
89
|
+
--x-text-heading-font-size: var(--x-text-heading-1-font-size, var(--font-size-4xl));
|
|
78
90
|
}
|
|
79
91
|
|
|
80
92
|
:where(h2) {
|
|
81
|
-
--text-heading-font-size: var(--font-size-3xl);
|
|
93
|
+
--x-text-heading-font-size: var(--x-text-heading-2-font-size, var(--font-size-3xl));
|
|
82
94
|
}
|
|
83
95
|
|
|
84
96
|
:where(h3) {
|
|
85
|
-
--text-heading-font-size: var(--font-size-2xl);
|
|
97
|
+
--x-text-heading-font-size: var(--x-text-heading-3-font-size, var(--font-size-2xl));
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
:where(h4) {
|
|
89
|
-
--text-heading-font-size: var(--font-size-xl);
|
|
101
|
+
--x-text-heading-font-size: var(--x-text-heading-4-font-size, var(--font-size-xl));
|
|
90
102
|
}
|
|
91
103
|
|
|
92
104
|
:where(h5) {
|
|
93
|
-
--text-heading-font-size: var(--font-size-lg);
|
|
105
|
+
--x-text-heading-font-size: var(--x-text-heading-5-font-size, var(--font-size-lg));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
:where(h6) {
|
|
109
|
+
--x-text-heading-font-size: var(--x-text-heading-6-font-size);
|
|
94
110
|
}
|
|
95
111
|
|
|
96
112
|
:where(table) {
|
|
97
113
|
border: 0;
|
|
98
|
-
min-
|
|
114
|
+
min-inline-size: 100%;
|
|
99
115
|
|
|
100
116
|
:where(td, th) {
|
|
101
|
-
padding: 1em 1.25em;
|
|
117
|
+
padding: var(--x-text-table-cell-padding-block, 1em) var(--x-text-table-cell-padding-inline, 1.25em);
|
|
102
118
|
text-align: left;
|
|
103
119
|
}
|
|
104
120
|
|
|
105
121
|
:where(thead) {
|
|
106
|
-
font-weight: var(--text-content-bold);
|
|
107
|
-
border-block-end:
|
|
122
|
+
font-weight: var(--x-text-table-thead-font-weight, var(--x-text-content-bold));
|
|
123
|
+
border-block-end:
|
|
124
|
+
1px solid color-mix(
|
|
125
|
+
in var(--x-text-table-thead-border-color-space, srgb),
|
|
126
|
+
var(--x-text-table-thead-border-color, currentColor) var(--x-text-table-thead-border-color-opacity, 10%),
|
|
127
|
+
var(--x-text-table-thead-border-color-mix, transparent)
|
|
128
|
+
);
|
|
108
129
|
}
|
|
109
130
|
|
|
110
131
|
:where(tbody tr) {
|
|
111
132
|
&:nth-of-type(even) {
|
|
112
|
-
background-color:
|
|
133
|
+
background-color:
|
|
134
|
+
color-mix(
|
|
135
|
+
in var(--x-text-table-row-even-background-color-space, srgb),
|
|
136
|
+
var(--x-text-table-row-even-background-color, currentColor) var(--x-text-table-row-even-background-color-opacity, 5%),
|
|
137
|
+
var(--x-text-table-row-even-background-color-mix, transparent)
|
|
138
|
+
);
|
|
113
139
|
}
|
|
114
140
|
}
|
|
115
141
|
}
|
|
116
142
|
|
|
117
143
|
:where(ol, ul) {
|
|
118
|
-
margin-inline-start: 0.75em;
|
|
119
|
-
padding-inline-start: 1em;
|
|
120
|
-
margin-block: var(--text-content-
|
|
144
|
+
margin-inline-start: var(--x-text-list-margin-inline-start, 0.75em);
|
|
145
|
+
padding-inline-start: var(--x-text-list-padding-inline-start, 1em);
|
|
146
|
+
margin-block: var(--x-text-list-margin-block, var(--x-text-content-margin-block));
|
|
121
147
|
|
|
122
148
|
:where(li) {
|
|
123
|
-
margin-block: 0.5em;
|
|
124
|
-
padding-inline-start: 1ch;
|
|
149
|
+
margin-block: var(--x-text-list-item-margin-block, 0.5em);
|
|
150
|
+
padding-inline-start: var(--x-text-list-item-padding-inline-start, 1ch);
|
|
125
151
|
}
|
|
126
152
|
}
|
|
127
153
|
|
|
@@ -132,8 +158,8 @@
|
|
|
132
158
|
|
|
133
159
|
& :where(li) {
|
|
134
160
|
&::marker {
|
|
135
|
-
color: var(--color-accent);
|
|
136
|
-
font-weight: var(--text-content-bold);
|
|
161
|
+
color: var(--x-text-list-marker-color, var(--color-accent));
|
|
162
|
+
font-weight: var(--x-text-list-marker-font-weight, var(--x-text-content-bold));
|
|
137
163
|
}
|
|
138
164
|
}
|
|
139
165
|
}
|
|
@@ -144,50 +170,54 @@
|
|
|
144
170
|
list-style-type: "";
|
|
145
171
|
|
|
146
172
|
&::before {
|
|
147
|
-
width: var(--text-
|
|
148
|
-
height: var(--text-
|
|
173
|
+
width: var(--x-text-list-marker-size);
|
|
174
|
+
height: var(--x-text-list-marker-size);
|
|
175
|
+
inset-inline-start: var(--x-text-list-marker-inset-inline-start, -0.75em);
|
|
176
|
+
inset-block-start: var(--x-text-list-marker-inset-block-start, 0.5lh);
|
|
177
|
+
border:
|
|
178
|
+
var(--x-text-list-marker-border-width, 1px) solid
|
|
179
|
+
var(--x-text-list-marker-border-color, var(--color-accent));
|
|
180
|
+
background-color: var(--x-text-list-marker-background-color, var(--color-accent));
|
|
181
|
+
margin-inline-start: calc((var(--x-text-list-marker-size) / 2) * -1);
|
|
182
|
+
margin-block-start: calc(var(--x-text-list-marker-size) / 2 * -1);
|
|
183
|
+
border-radius: var(--x-text-list-marker-border-radius, 50%);
|
|
184
|
+
mask: var(--x-text-list-marker-mask);
|
|
149
185
|
position: absolute;
|
|
150
|
-
left: -0.75em;
|
|
151
|
-
top: 0.5lh;
|
|
152
|
-
border: 1px solid var(--color-accent);
|
|
153
|
-
background-color: var(--text-content-marker-bg, var(--color-accent));
|
|
154
|
-
margin-inline-start: calc((var(--text-content-marker-size) / 2) * -1);
|
|
155
|
-
margin-block-start: calc(var(--text-content-marker-size) / 2 * -1);
|
|
156
|
-
border-radius: var(--text-content-marker-radius, 50%);
|
|
157
|
-
mask: var(--text-content-marker-mask);
|
|
158
186
|
will-change: transform;
|
|
159
187
|
content: "";
|
|
160
188
|
}
|
|
161
189
|
}
|
|
162
190
|
|
|
163
191
|
&[style*="square"] {
|
|
164
|
-
--text-
|
|
192
|
+
--x-text-list-marker-border-radius: 0;
|
|
165
193
|
}
|
|
166
194
|
|
|
167
195
|
&[style*="circle"] {
|
|
168
|
-
--text-
|
|
196
|
+
--x-text-list-marker-background-color: transparent;
|
|
169
197
|
}
|
|
170
198
|
}
|
|
171
199
|
|
|
172
200
|
:where(blockquote) {
|
|
173
|
-
border-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
201
|
+
border-inline-start:
|
|
202
|
+
var(--x-text-blockquote-border-inline-start-width, 0.375em) solid
|
|
203
|
+
var(--x-text-blockquote-border-inline-start-color, var(--color-accent));
|
|
204
|
+
margin-block: var(--x-text-blockquote-margin-block, var(--x-text-content-margin-block));
|
|
205
|
+
padding: var(--x-text-blockquote-padding-block, 0.5em) var(--x-text-blockquote-padding-inline, 1.25em);
|
|
206
|
+
font-size: var(--x-text-blockquote-font-size, inherit);
|
|
177
207
|
}
|
|
178
208
|
|
|
179
209
|
:where(code) {
|
|
180
|
-
font-size: 87.5
|
|
210
|
+
font-size: var(--x-text-code-font-size, 87.5%);
|
|
181
211
|
}
|
|
182
212
|
|
|
183
213
|
:where(figure) {
|
|
184
|
-
margin-block: var(--text-content-
|
|
214
|
+
margin-block: var(--x-text-figure-margin-block, var(--x-text-content-margin-block));
|
|
185
215
|
}
|
|
186
216
|
|
|
187
217
|
:where(figcaption) {
|
|
188
|
-
font-size: 87.5
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
margin-block-start: 0.5em;
|
|
218
|
+
font-size: var(--x-text-figcaption-font-size, 87.5%);
|
|
219
|
+
font-weight: var(--x-text-figcaption-font-weight, var(--font-weight-semibold));
|
|
220
|
+
line-height: var(--x-text-figcaption-line-height, 1.5);
|
|
221
|
+
margin-block-start: var(--x-text-figcaption-margin-block-start, 0.5em);
|
|
192
222
|
}
|
|
193
223
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
:root, :host {
|
|
2
|
+
--x-text-content-bold: var(--font-weight-semibold);
|
|
3
|
+
--x-text-content-margin-block: var(--spacing-xl);
|
|
4
|
+
--x-text-list-marker-size: 0.375em;
|
|
5
|
+
--x-text-line-height: calc(1em + 0.75rem);
|
|
6
|
+
--x-text-hr-margin-block: 3em;
|
|
7
|
+
--x-text-heading-line-height: calc(1em + 0.375rem);
|
|
8
|
+
--x-text-heading-margin-block: 1.5em 0.5em;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Text](https://winduum.dev/docs/
|
|
1
|
+
# [Text](https://winduum.dev/docs/components/text.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,14 +8,14 @@ Learn more how to set up Winduum [here](https://winduum.dev/docs/).
|
|
|
8
8
|
Include CSS either globally or to your component _([you can't use TailwindCSS layers in per-component CSS](https://tailwindcss.com/docs/adding-custom-styles#layers-and-per-component-css))_
|
|
9
9
|
|
|
10
10
|
```css
|
|
11
|
-
@import "winduum/src/
|
|
11
|
+
@import "winduum/src/components/text/index.css" layer(components);
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
or modular (you can use your own props or CSS)
|
|
15
15
|
|
|
16
16
|
```css
|
|
17
|
-
@import "winduum/src/
|
|
18
|
-
@import "winduum/src/
|
|
17
|
+
@import "winduum/src/components/text/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/text/default.css" layer(components);
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### Local imports
|
|
@@ -23,8 +23,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
23
23
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
24
24
|
|
|
25
25
|
```css
|
|
26
|
-
@import "@/components/
|
|
26
|
+
@import "@/components/text/assets/index.css" layer(components);
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
### Docs
|
|
30
|
-
Visit [docs](https://winduum.dev/docs/
|
|
30
|
+
Visit [docs](https://winduum.dev/docs/components/text.html) to learn more about usage examples.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.title {
|
|
2
|
-
font-family: var(--title-font-family);
|
|
3
|
-
font-weight: var(--title-font-weight);
|
|
4
|
-
font-size: var(--title-font-size);
|
|
5
|
-
line-height: var(--title-line-height);
|
|
6
|
-
letter-spacing: var(--title-letter-spacing);
|
|
1
|
+
.x-title {
|
|
2
|
+
font-family: var(--x-title-font-family);
|
|
3
|
+
font-weight: var(--x-title-font-weight);
|
|
4
|
+
font-size: var(--x-title-font-size);
|
|
5
|
+
line-height: var(--x-title-line-height);
|
|
6
|
+
letter-spacing: var(--x-title-letter-spacing);
|
|
7
7
|
text-wrap: pretty;
|
|
8
8
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.title:is(.lg) {
|
|
2
|
-
--title-font-size: var(--font-size-base);
|
|
1
|
+
.x-title:is(.lg) {
|
|
2
|
+
--x-title-font-size: var(--font-size-base);
|
|
3
3
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [Title](https://winduum.dev/docs/
|
|
1
|
+
# [Title](https://winduum.dev/docs/components/title.html)
|
|
2
2
|
|
|
3
3
|
## Installation
|
|
4
4
|
```shell
|
|
@@ -8,16 +8,16 @@ Learn more how to set up Winduum [here](https://winduum.dev/docs/).
|
|
|
8
8
|
Include CSS either globally or to your component _([you can't use TailwindCSS layers in per-component CSS](https://tailwindcss.com/docs/adding-custom-styles#layers-and-per-component-css))_
|
|
9
9
|
|
|
10
10
|
```css
|
|
11
|
-
@import "winduum/src/
|
|
11
|
+
@import "winduum/src/components/title/index.css" layer(components);
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
or modular (you can use your own props or CSS)
|
|
15
15
|
|
|
16
16
|
```css
|
|
17
|
-
@import "winduum/src/
|
|
18
|
-
@import "winduum/src/
|
|
19
|
-
@import "winduum/src/
|
|
20
|
-
@import "winduum/src/
|
|
17
|
+
@import "winduum/src/components/title/props/default.css" layer(components);
|
|
18
|
+
@import "winduum/src/components/title/default.css" layer(components);
|
|
19
|
+
@import "winduum/src/components/title/sm.css" layer(components);
|
|
20
|
+
@import "winduum/src/components/title/lg.css" layer(components);
|
|
21
21
|
|
|
22
22
|
```
|
|
23
23
|
|
|
@@ -26,8 +26,8 @@ By default, imports are directly from `npm` so you can leverage updates.
|
|
|
26
26
|
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
27
27
|
|
|
28
28
|
```css
|
|
29
|
-
@import "@/components/
|
|
29
|
+
@import "@/components/title/assets/index.css" layer(components);
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
### Docs
|
|
33
|
-
Visit [docs](https://winduum.dev/docs/
|
|
33
|
+
Visit [docs](https://winduum.dev/docs/components/title.html) to learn more about usage examples.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.title:is(.sm) {
|
|
2
|
-
--title-font-size: var(--font-size-xs);
|
|
1
|
+
.x-title:is(.sm) {
|
|
2
|
+
--x-title-font-size: var(--font-size-xs);
|
|
3
3
|
}
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
.toast-content {
|
|
2
|
-
|
|
3
|
-
--toast-
|
|
4
|
-
|
|
5
|
-
--
|
|
6
|
-
|
|
7
|
-
border
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
.x-toast-content {
|
|
2
|
+
border-radius: var(--x-toast-content-border-radius);
|
|
3
|
+
padding: var(--x-toast-content-padding-block) var(--x-toast-content-padding-inline);
|
|
4
|
+
gap: var(--x-toast-content-gap);
|
|
5
|
+
background-color: var(--x-toast-content-background-color);
|
|
6
|
+
color: var(--x-toast-content-color, var(--color-accent));
|
|
7
|
+
border:
|
|
8
|
+
var(--x-toast-content-border-width, 1px) solid
|
|
9
|
+
color-mix(
|
|
10
|
+
in var(--x-toast-content-border-color-space, srgb),
|
|
11
|
+
var(--x-toast-content-border-color, var(--color-accent)) var(--x-toast-content-border-color-opacity, 15%),
|
|
12
|
+
var(--x-toast-content-border-color-mix, var(--color-body-primary))
|
|
13
|
+
);
|
|
13
14
|
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 10%), 0 1px 2px -1px rgb(0 0 0 / 10%);
|
|
14
15
|
align-items: center;
|
|
15
16
|
display: flex;
|
|
16
17
|
height: fit-content;
|
|
17
18
|
|
|
18
|
-
.text {
|
|
19
|
-
--text-font-size: var(--font-size-sm);
|
|
20
|
-
--text-line-height: calc(1em + 0.375rem);
|
|
19
|
+
.x-text {
|
|
20
|
+
--x-text-font-size: var(--font-size-sm);
|
|
21
|
+
--x-text-line-height: calc(1em + 0.375rem);
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
.toast {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
transition: all var(--toast-duration) var(--transition-timing-function-in-out);
|
|
1
|
+
.x-toast {
|
|
2
|
+
inline-size: min(100%, var(--x-toast-inline-size));
|
|
3
|
+
block-size: var(--x-toast-block-size);
|
|
4
|
+
transition: all var(--x-toast-transition-duration) var(--x-toast-transition-timing-function, var(--transition-timing-function-in-out));
|
|
5
5
|
position: relative;
|
|
6
6
|
pointer-events: auto;
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
visibility: hidden;
|
|
10
|
-
opacity: 0
|
|
10
|
+
opacity: 0%;
|
|
11
11
|
|
|
12
12
|
.flex-col-reverse & {
|
|
13
13
|
justify-content: flex-end;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&.in {
|
|
17
|
-
margin-block: var(--toaster-
|
|
17
|
+
margin-block: var(--x-toaster-margin-block);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&.in:where(:nth-last-child(-n+3)) {
|
|
21
21
|
visibility: visible;
|
|
22
|
-
opacity:
|
|
22
|
+
opacity: 100%;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&.out {
|
|
26
26
|
visibility: hidden;
|
|
27
|
-
opacity: 0
|
|
27
|
+
opacity: 0%;
|
|
28
28
|
height: 0;
|
|
29
29
|
margin-block: 0;
|
|
30
30
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
:root, :host {
|
|
2
|
+
--x-toast-content-border-radius: var(--radius-2xl);
|
|
3
|
+
--x-toast-content-padding-block: var(--spacing-md);
|
|
4
|
+
--x-toast-content-padding-inline: var(--spacing-lg);
|
|
5
|
+
--x-toast-content-gap: var(--spacing-xl);
|
|
6
|
+
--x-toast-content-background-color: var(--color-body-primary);
|
|
7
|
+
}
|
|
@@ -17,9 +17,9 @@ Include CSS either globally or to your component _([you can't use TailwindCSS la
|
|
|
17
17
|
or modular (you can use your own props or CSS)
|
|
18
18
|
|
|
19
19
|
```css
|
|
20
|
-
@import "winduum/src/components/toast/default
|
|
20
|
+
@import "winduum/src/components/toast/props/default.css" layer(components);
|
|
21
|
+
@import "winduum/src/components/toast/props/content.css" layer(components);
|
|
21
22
|
@import "winduum/src/components/toast/default.css" layer(components);
|
|
22
|
-
@import "winduum/src/components/toast/content-props.css" layer(components);
|
|
23
23
|
@import "winduum/src/components/toast/content.css" layer(components);
|
|
24
24
|
```
|
|
25
25
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
.toaster {
|
|
2
|
-
z-index: var(--z-index-50);
|
|
3
|
-
padding: var(--toaster-
|
|
4
|
-
margin-block: calc(var(--toaster-
|
|
1
|
+
.x-toaster {
|
|
2
|
+
z-index: var(--x-toaster-z-index, var(--z-index-50));
|
|
3
|
+
padding: var(--x-toaster-padding);
|
|
4
|
+
margin-block: calc(var(--x-toaster-margin-block) * -1);
|
|
5
5
|
position: fixed;
|
|
6
6
|
inset: 0;
|
|
7
7
|
pointer-events: none;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@import "default
|
|
1
|
+
@import "props/default.css";
|
|
2
2
|
@import "default.css";
|
|
@@ -8,7 +8,7 @@ import { animationsFinished, nextRepaint } from '../../common.js'
|
|
|
8
8
|
export const closeToast = async (element, options = {}) => {
|
|
9
9
|
options = {
|
|
10
10
|
hiddenClass: 'out',
|
|
11
|
-
heightProperty: '--toast-
|
|
11
|
+
heightProperty: '--x-toast-block-size',
|
|
12
12
|
...options
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -36,7 +36,7 @@ export const showToast = async (element, options = {}) => {
|
|
|
36
36
|
options = {
|
|
37
37
|
visibleClass: 'in',
|
|
38
38
|
autoHide: null,
|
|
39
|
-
heightProperty: '--toast-
|
|
39
|
+
heightProperty: '--x-toast-block-size',
|
|
40
40
|
close: {},
|
|
41
41
|
...options
|
|
42
42
|
}
|
|
@@ -65,8 +65,8 @@ export const insertToaster = async (element, options = {}) => {
|
|
|
65
65
|
...options
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
if (!document.querySelector('.toaster')) {
|
|
69
|
-
element.insertAdjacentHTML('beforeend', `<ol class="toaster ${options.classes}"></ol>`)
|
|
68
|
+
if (!document.querySelector('.x-toaster')) {
|
|
69
|
+
element.insertAdjacentHTML('beforeend', `<ol class="x-toaster ${options.classes}"></ol>`)
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
|
|
@@ -87,12 +87,12 @@ export const insertToast = async (element, options = {}) => {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
element.insertAdjacentHTML('beforeend', `
|
|
90
|
-
<li class="toast ${options.classes}" role="status" aria-live="assertive" aria-atomic="true">
|
|
91
|
-
<div class="toast-content">
|
|
90
|
+
<li class="x-toast ${options.classes}" role="status" aria-live="assertive" aria-atomic="true">
|
|
91
|
+
<div class="x-toast-content">
|
|
92
92
|
${options.start}
|
|
93
93
|
<div class="flex-col">
|
|
94
|
-
<div class="
|
|
95
|
-
<div class="
|
|
94
|
+
<div class="x-title">${options.title}</div>
|
|
95
|
+
<div class="x-text">${options.text}</div>
|
|
96
96
|
</div>
|
|
97
97
|
${options.end}
|
|
98
98
|
</div>
|
|
@@ -14,7 +14,7 @@ Include CSS either globally or to your component _([you can't use TailwindCSS la
|
|
|
14
14
|
or modular (you can use your own props or CSS)
|
|
15
15
|
|
|
16
16
|
```css
|
|
17
|
-
@import "winduum/src/components/toaster/default
|
|
17
|
+
@import "winduum/src/components/toaster/props/default.css" layer(components);
|
|
18
18
|
@import "winduum/src/components/toaster/default.css" layer(components);
|
|
19
19
|
```
|
|
20
20
|
|