winduum 1.2.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 +15 -15
- package/plugin/index.js +73 -22
- package/plugin/utilities/common.js +4 -4
- package/plugin/utilities/dot.js +2 -3
- package/src/base/breakpoints.css +10 -10
- package/src/base/config/font.css +22 -9
- package/src/base/config/rounded.css +12 -12
- package/src/base/config/transition.css +14 -14
- package/src/base/config/z.css +5 -5
- package/src/base/config.css +0 -1
- package/src/base/defaults.css +9 -11
- package/src/base/keyframes.css +13 -1
- package/src/base/reset.css +2 -7
- package/src/base/theme/dark-rgb.css +1 -1
- package/src/base/theme/dark.css +1 -1
- package/src/base/theme/default-rgb.css +6 -6
- package/src/base/theme/default.css +6 -6
- package/src/components/badge/bordered.css +6 -0
- package/src/components/badge/circle.css +5 -0
- package/src/components/badge/default.css +42 -0
- package/src/{ui → components}/badge/index.css +1 -1
- package/src/components/badge/lg.css +3 -0
- package/src/components/badge/muted.css +4 -0
- package/src/components/badge/props/default.css +9 -0
- package/src/components/badge/readme.md +37 -0
- package/src/components/badge/sm.css +4 -0
- package/src/components/badge/square.css +4 -0
- 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 +19 -0
- package/src/components/button/circle.css +6 -0
- package/src/components/button/default.css +63 -0
- package/src/components/button/fill.css +6 -0
- package/src/components/button/ghosted.css +14 -0
- package/src/{ui/btn → components/button}/index.css +2 -7
- package/src/components/button/interactive.css +56 -0
- package/src/components/button/lg.css +4 -0
- package/src/components/button/muted.css +14 -0
- package/src/components/button/props/default.css +11 -0
- package/src/components/button/props/interactive.css +9 -0
- package/src/components/button/raised.css +6 -0
- package/src/components/button/readme.md +46 -0
- package/src/components/button/sm.css +4 -0
- package/src/components/button/square.css +5 -0
- 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 +67 -0
- package/src/{ui/switch → components/check}/index.css +1 -1
- package/src/components/check/interactive.css +56 -0
- package/src/components/check/invalid.css +9 -0
- package/src/components/check/props/default.css +13 -0
- package/src/{ui/color → components/check}/readme.md +8 -9
- package/src/components/color/default.css +36 -0
- package/src/components/color/index.css +3 -0
- package/src/components/color/interactive.css +36 -0
- package/src/components/color/props/default.css +7 -0
- package/src/{ui/title → 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 +24 -0
- package/src/components/control/default.css +74 -0
- package/src/components/control/file.css +27 -0
- package/src/components/control/floating-interactive.css +13 -0
- package/src/components/control/floating.css +36 -0
- package/src/components/control/icon.css +32 -0
- package/src/{ui → components}/control/index.css +5 -6
- package/src/components/control/interactive.css +19 -0
- package/src/components/control/invalid.css +10 -0
- 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 +43 -0
- package/src/{ui → components}/control/select-multiple.css +2 -2
- package/src/components/control/select.css +23 -0
- package/src/components/dialog/content.css +7 -7
- package/src/components/dialog/default.css +15 -13
- package/src/components/dialog/index.css +2 -2
- package/src/components/dialog/index.d.ts +3 -18
- package/src/components/dialog/index.js +21 -80
- 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 +42 -0
- package/src/{ui → components}/group/readme.md +6 -6
- package/src/{ui → components}/group/vertical.css +2 -2
- package/src/components/heading/default.css +8 -0
- package/src/{ui → components}/heading/index.css +1 -1
- package/src/components/heading/lg.css +3 -0
- package/src/components/heading/props/default.css +6 -0
- package/src/{ui/check → components/heading}/readme.md +8 -9
- package/src/components/heading/sm.css +3 -0
- package/src/{ui → components}/image/avatar.css +3 -3
- package/src/{ui → components}/image/default.css +1 -1
- package/src/{ui/notice → components/image}/readme.md +6 -6
- package/src/components/index.css +18 -0
- package/src/components/info/default.css +8 -0
- package/src/components/info/index.css +2 -0
- package/src/components/info/props/default.css +4 -0
- package/src/{ui/rating → components/info}/readme.md +6 -7
- package/src/components/label/default.css +8 -0
- package/src/components/label/index.css +2 -0
- package/src/components/label/props/default.css +4 -0
- package/src/{ui → components}/label/readme.md +6 -6
- package/src/components/link/default.css +8 -0
- package/src/components/link/index.css +3 -0
- package/src/components/link/interactive.css +9 -0
- package/src/components/link/props/default.css +4 -0
- package/src/{ui → components}/link/readme.md +7 -7
- package/src/components/notice/default.css +21 -0
- package/src/components/notice/index.css +2 -0
- package/src/components/notice/props/default.css +8 -0
- package/src/{ui/image → components/notice}/readme.md +6 -6
- package/src/components/pagination/default.css +2 -2
- package/src/components/popover/content.css +16 -17
- 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 +46 -0
- package/src/{ui → components}/progress/index.css +1 -1
- package/src/components/progress/lg.css +3 -0
- package/src/{ui → components}/progress/meter.css +7 -7
- package/src/components/progress/props/default.css +6 -0
- package/src/components/progress/readme.md +33 -0
- package/src/components/progress/sm.css +3 -0
- package/src/components/range/default.css +99 -0
- package/src/{ui → components}/range/index.css +1 -1
- package/src/{ui → components}/range/index.js +2 -2
- package/src/components/range/multi.css +22 -0
- package/src/components/range/props/default.css +9 -0
- package/src/{ui → components}/range/readme.md +8 -8
- package/src/{ui → components}/range/vertical.css +3 -3
- package/src/{ui → components}/rating/default.css +11 -11
- package/src/{ui → components}/rating/index.css +1 -1
- package/src/components/rating/invalid.css +5 -0
- package/src/components/rating/props/default.css +8 -0
- package/src/components/rating/readme.md +31 -0
- package/src/components/switch/default.css +43 -0
- package/src/{ui/check → components/switch}/index.css +1 -2
- package/src/components/switch/interactive.css +43 -0
- package/src/components/switch/invalid.css +6 -0
- package/src/components/switch/props/default.css +17 -0
- package/src/{ui/progress → components/switch}/readme.md +8 -9
- 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 +223 -0
- package/src/components/text/index.css +2 -0
- package/src/components/text/props/default.css +9 -0
- package/src/{ui/info → components/text}/readme.md +6 -6
- package/src/components/title/default.css +8 -0
- package/src/{ui → components}/title/index.css +1 -1
- package/src/components/title/lg.css +3 -0
- package/src/components/title/props/default.css +5 -0
- package/src/{ui/heading → components/title}/readme.md +9 -8
- package/src/components/title/sm.css +3 -0
- 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/main.css +0 -1
- package/src/utilities/common.css +2 -6
- package/src/utilities/container/default.css +3 -4
- package/src/utilities/container/index.css +1 -1
- package/src/utilities/divider.css +13 -4
- package/src/utilities/ripple/index.css +9 -6
- package/src/utilities/skeleton/default.css +8 -1
- package/src/utilities/skeleton/index.css +1 -1
- package/src/utilities/skeleton/props/default.css +5 -0
- package/src/utilities/swap/default.css +6 -6
- package/src/utilities/underline.css +3 -3
- package/types/index.d.ts +4 -19
- package/types/index.d.ts.map +3 -8
- package/plugin/utilities/flex.js +0 -12
- package/src/base/config/text.css +0 -15
- package/src/components/breadcrumb/default-props.css +0 -5
- package/src/components/card/default-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/popover/content-props.css +0 -8
- package/src/components/table/default-props.css +0 -8
- package/src/components/table/interactive-props.css +0 -4
- 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
- package/src/ui/badge/bordered.css +0 -16
- package/src/ui/badge/circle.css +0 -5
- package/src/ui/badge/default-props.css +0 -8
- package/src/ui/badge/default.css +0 -26
- package/src/ui/badge/lg.css +0 -3
- package/src/ui/badge/muted.css +0 -4
- package/src/ui/badge/readme.md +0 -37
- package/src/ui/badge/sm.css +0 -4
- package/src/ui/badge/square.css +0 -4
- package/src/ui/btn/bordered.css +0 -21
- package/src/ui/btn/circle.css +0 -6
- package/src/ui/btn/default-props.css +0 -10
- package/src/ui/btn/default.css +0 -49
- package/src/ui/btn/fill.css +0 -6
- package/src/ui/btn/ghosted.css +0 -9
- package/src/ui/btn/gradient-bordered.css +0 -24
- package/src/ui/btn/gradient.css +0 -10
- package/src/ui/btn/interactive-props.css +0 -9
- package/src/ui/btn/interactive.css +0 -53
- package/src/ui/btn/lg.css +0 -4
- package/src/ui/btn/loading-props.css +0 -4
- package/src/ui/btn/loading.css +0 -24
- package/src/ui/btn/muted.css +0 -9
- package/src/ui/btn/raised.css +0 -7
- package/src/ui/btn/readme.md +0 -51
- package/src/ui/btn/sm.css +0 -4
- package/src/ui/btn/square.css +0 -5
- package/src/ui/btn/wide.css +0 -3
- package/src/ui/check/default-props.css +0 -13
- package/src/ui/check/default.css +0 -74
- package/src/ui/check/interactive-props.css +0 -3
- package/src/ui/check/interactive.css +0 -50
- package/src/ui/check/invalid.css +0 -8
- package/src/ui/color/default-props.css +0 -11
- package/src/ui/color/default.css +0 -48
- package/src/ui/color/index.css +0 -4
- package/src/ui/color/interactive-props.css +0 -3
- package/src/ui/color/interactive.css +0 -30
- package/src/ui/control/color-props.css +0 -5
- package/src/ui/control/color.css +0 -24
- package/src/ui/control/default-props.css +0 -16
- package/src/ui/control/default.css +0 -77
- package/src/ui/control/file.css +0 -25
- package/src/ui/control/floating-interactive.css +0 -13
- package/src/ui/control/floating-props.css +0 -4
- package/src/ui/control/floating.css +0 -36
- package/src/ui/control/icon-props.css +0 -4
- package/src/ui/control/icon.css +0 -32
- package/src/ui/control/interactive-props.css +0 -3
- package/src/ui/control/interactive.css +0 -19
- package/src/ui/control/invalid.css +0 -10
- package/src/ui/control/readme.md +0 -44
- package/src/ui/control/select-props.css +0 -4
- package/src/ui/control/select.css +0 -23
- package/src/ui/group/default.css +0 -42
- package/src/ui/heading/default-props.css +0 -6
- package/src/ui/heading/default.css +0 -8
- package/src/ui/heading/lg.css +0 -3
- package/src/ui/heading/sm.css +0 -3
- package/src/ui/index.css +0 -18
- package/src/ui/info/default-props.css +0 -4
- package/src/ui/info/default.css +0 -8
- package/src/ui/info/index.css +0 -2
- package/src/ui/label/default-props.css +0 -4
- package/src/ui/label/default.css +0 -8
- package/src/ui/label/index.css +0 -2
- package/src/ui/link/default-props.css +0 -4
- package/src/ui/link/default.css +0 -8
- package/src/ui/link/index.css +0 -4
- package/src/ui/link/interactive-props.css +0 -5
- package/src/ui/link/interactive.css +0 -16
- package/src/ui/notice/default-props.css +0 -8
- package/src/ui/notice/default.css +0 -25
- package/src/ui/notice/index.css +0 -2
- package/src/ui/progress/default-props.css +0 -4
- package/src/ui/progress/default.css +0 -47
- package/src/ui/progress/lg.css +0 -3
- package/src/ui/progress/sm.css +0 -3
- package/src/ui/range/default-props.css +0 -10
- package/src/ui/range/default.css +0 -101
- package/src/ui/range/multi.css +0 -22
- package/src/ui/rating/default-props.css +0 -5
- package/src/ui/rating/invalid.css +0 -5
- package/src/ui/switch/default-props.css +0 -17
- package/src/ui/switch/default.css +0 -46
- package/src/ui/switch/interactive-props.css +0 -3
- package/src/ui/switch/interactive.css +0 -39
- package/src/ui/switch/invalid.css +0 -6
- package/src/ui/switch/readme.md +0 -32
- package/src/ui/text/default-props.css +0 -9
- package/src/ui/text/default.css +0 -193
- package/src/ui/text/index.css +0 -2
- package/src/ui/text/readme.md +0 -30
- package/src/ui/title/default-props.css +0 -5
- package/src/ui/title/default.css +0 -8
- package/src/ui/title/lg.css +0 -3
- package/src/ui/title/sm.css +0 -3
- package/src/utilities/skeleton/default-props.css +0 -5
- /package/src/{ui → components}/group/index.css +0 -0
- /package/src/{ui → components}/image/index.css +0 -0
- /package/src/{ui → components}/range/index.d.ts +0 -0
- /package/src/utilities/container/{default-props.css → props/default.css} +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
.ui-switch {
|
|
2
|
-
:where(input) {
|
|
3
|
-
transition-property: var(--transition);
|
|
4
|
-
transition-timing-function: var(--ease-in-out);
|
|
5
|
-
transition-duration: var(--duration);
|
|
6
|
-
|
|
7
|
-
&:where(:required) {
|
|
8
|
-
& + *::after {
|
|
9
|
-
color: var(--color-error);
|
|
10
|
-
content: " *";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&:enabled:focus {
|
|
15
|
-
--ui-switch-outline-offset: var(--ui-switch-focus-outline-offset);
|
|
16
|
-
--tw-outline-opacity: 0.4;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:disabled {
|
|
20
|
-
opacity: var(--ui-switch-disabled-opacity);
|
|
21
|
-
cursor: not-allowed;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&:checked {
|
|
25
|
-
--ui-switch-outline-color: var(--color-accent);
|
|
26
|
-
--ui-switch-bg: var(--color-accent);
|
|
27
|
-
|
|
28
|
-
&::before {
|
|
29
|
-
margin-inline-start: calc(100% - var(--ui-switch-icon-size));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:indeterminate {
|
|
34
|
-
&::before {
|
|
35
|
-
margin-inline-start: calc(50% - var(--ui-switch-icon-size) / 2);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
package/src/ui/switch/readme.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# [Switch](https://winduum.dev/docs/ui/switch.html)
|
|
2
|
-
|
|
3
|
-
## Installation
|
|
4
|
-
```shell
|
|
5
|
-
npm i winduum
|
|
6
|
-
```
|
|
7
|
-
Learn more how to set up Winduum [here](https://winduum.dev/docs/).
|
|
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
|
-
|
|
10
|
-
```css
|
|
11
|
-
@import "winduum/src/ui/switch/index.css" layer(components);
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
or modular (you can use your own props or CSS)
|
|
15
|
-
|
|
16
|
-
```css
|
|
17
|
-
@import "winduum/src/ui/switch/default-props.css" layer(components);
|
|
18
|
-
@import "winduum/src/ui/switch/default.css" layer(components);
|
|
19
|
-
@import "winduum/src/ui/switch/interactive.css" layer(components);
|
|
20
|
-
@import "winduum/src/ui/switch/invalid.css" layer(components);
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
### Local imports
|
|
24
|
-
By default, imports are directly from `npm` so you can leverage updates.
|
|
25
|
-
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
26
|
-
|
|
27
|
-
```css
|
|
28
|
-
@import "@/components/ui/switch/assets/index.css" layer(components);
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### Docs
|
|
32
|
-
Visit [docs](https://winduum.dev/docs/ui/switch.html) to learn more about usage examples.
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
:root, :host {
|
|
2
|
-
--ui-text-content-bold: var(--font-semibold);
|
|
3
|
-
--ui-text-content-my: var(--spacing-xl);
|
|
4
|
-
--ui-text-content-marker-size: 0.375em;
|
|
5
|
-
--ui-text-line-height: calc(1em + 0.75rem);
|
|
6
|
-
--ui-text-hr-my: 3em;
|
|
7
|
-
--ui-text-heading-line-height: calc(1em + 0.375rem);
|
|
8
|
-
--ui-text-heading-my: 1.5em 0.5em;
|
|
9
|
-
}
|
package/src/ui/text/default.css
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
.ui-text {
|
|
2
|
-
font-family: var(--ui-text-font-family);
|
|
3
|
-
font-weight: var(--ui-text-font-weight);
|
|
4
|
-
font-size: var(--ui-text-font-size);
|
|
5
|
-
line-height: var(--ui-text-line-height);
|
|
6
|
-
letter-spacing: var(--ui-text-letter-spacing);
|
|
7
|
-
text-wrap: pretty;
|
|
8
|
-
|
|
9
|
-
> :is(*:first-child) {
|
|
10
|
-
margin-block-start: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
> :is(*:last-child) {
|
|
14
|
-
margin-block-end: 0;
|
|
15
|
-
}
|
|
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(--space), var(--color-accent) 75%, transparent);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:focus-visible {
|
|
29
|
-
color: color-mix(in var(--space), var(--color-accent) 75%, transparent);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:where(b, strong) {
|
|
34
|
-
font-weight: var(--ui-text-content-bold);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
:where(em) {
|
|
38
|
-
font-style: italic;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:where(img) {
|
|
42
|
-
display: block;
|
|
43
|
-
height: auto;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:where(p) {
|
|
47
|
-
margin-block: var(--ui-text-content-my);
|
|
48
|
-
|
|
49
|
-
&:empty {
|
|
50
|
-
line-height: 0;
|
|
51
|
-
margin: 0;
|
|
52
|
-
|
|
53
|
-
&::after {
|
|
54
|
-
content: "\00a0";
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
:where(hr) {
|
|
60
|
-
--tw-border-opacity: 0.1;
|
|
61
|
-
|
|
62
|
-
margin-block: var(--ui-text-hr-my);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
:where(h1, h2, h3, h4, h5, h6) {
|
|
66
|
-
font-family: var(--ui-text-heading-font-family);
|
|
67
|
-
font-weight: var(--ui-text-heading-font-weight, var(--ui-text-content-bold));
|
|
68
|
-
font-size: var(--ui-text-heading-font-size);
|
|
69
|
-
line-height: var(--ui-text-heading-line-height);
|
|
70
|
-
letter-spacing: var(--ui-text-heading-letter-spacing);
|
|
71
|
-
margin-block: var(--ui-text-heading-my);
|
|
72
|
-
color: var(--ui-text-heading-color);
|
|
73
|
-
text-wrap: balance;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:where(h1) {
|
|
77
|
-
--ui-text-heading-font-size: var(--text-4xl);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:where(h2) {
|
|
81
|
-
--ui-text-heading-font-size: var(--text-3xl);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:where(h3) {
|
|
85
|
-
--ui-text-heading-font-size: var(--text-2xl);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
:where(h4) {
|
|
89
|
-
--ui-text-heading-font-size: var(--text-xl);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
:where(h5) {
|
|
93
|
-
--ui-text-heading-font-size: var(--text-lg);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
:where(table) {
|
|
97
|
-
border: 0;
|
|
98
|
-
min-width: 100%;
|
|
99
|
-
|
|
100
|
-
:where(td, th) {
|
|
101
|
-
padding: 1em 1.25em;
|
|
102
|
-
text-align: left;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
:where(thead) {
|
|
106
|
-
font-weight: var(--ui-text-content-bold);
|
|
107
|
-
border-block-end: 1px solid color-mix(in var(--space), currentColor 10%, transparent);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
:where(tbody tr) {
|
|
111
|
-
&:nth-of-type(even) {
|
|
112
|
-
background-color: color-mix(in var(--space), currentColor 5%, transparent);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
:where(ol, ul) {
|
|
118
|
-
margin-inline-start: 0.75em;
|
|
119
|
-
padding-inline-start: 1em;
|
|
120
|
-
margin-block: var(--ui-text-content-my);
|
|
121
|
-
|
|
122
|
-
:where(li) {
|
|
123
|
-
margin-block: 0.5em;
|
|
124
|
-
padding-inline-start: 1ch;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:where(ol) {
|
|
129
|
-
&:not([type]) {
|
|
130
|
-
list-style: decimal;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
& :where(li) {
|
|
134
|
-
&::marker {
|
|
135
|
-
color: var(--color-accent);
|
|
136
|
-
font-weight: var(--ui-text-content-bold);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
:where(ul) {
|
|
142
|
-
:where(li) {
|
|
143
|
-
position: relative;
|
|
144
|
-
list-style-type: "";
|
|
145
|
-
|
|
146
|
-
&::before {
|
|
147
|
-
width: var(--ui-text-content-marker-size);
|
|
148
|
-
height: var(--ui-text-content-marker-size);
|
|
149
|
-
position: absolute;
|
|
150
|
-
left: -0.75em;
|
|
151
|
-
top: 0.5lh;
|
|
152
|
-
border: 1px solid var(--color-accent);
|
|
153
|
-
background-color: var(--ui-text-content-marker-bg, var(--color-accent));
|
|
154
|
-
margin-inline-start: calc((var(--ui-text-content-marker-size) / 2) * -1);
|
|
155
|
-
margin-block-start: calc(var(--ui-text-content-marker-size) / 2 * -1);
|
|
156
|
-
border-radius: var(--ui-text-content-marker-radius, 50%);
|
|
157
|
-
mask: var(--ui-text-content-marker-mask);
|
|
158
|
-
will-change: transform;
|
|
159
|
-
content: "";
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
&[style*="square"] {
|
|
164
|
-
--ui-text-content-marker-radius: 0;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&[style*="circle"] {
|
|
168
|
-
--ui-text-content-marker-bg: transparent;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
:where(blockquote) {
|
|
173
|
-
border-left: 0.375em solid var(--color-accent);
|
|
174
|
-
padding: 0.5em 1.25em;
|
|
175
|
-
margin-block: var(--ui-text-content-my);
|
|
176
|
-
font-size: inherit;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
:where(code) {
|
|
180
|
-
font-size: 87.5%;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
:where(figure) {
|
|
184
|
-
margin-block: var(--ui-text-content-my);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
:where(figcaption) {
|
|
188
|
-
font-size: 87.5%;
|
|
189
|
-
line-height: 1.5;
|
|
190
|
-
font-weight: var(--font-semibold);
|
|
191
|
-
margin-block-start: 0.5em;
|
|
192
|
-
}
|
|
193
|
-
}
|
package/src/ui/text/index.css
DELETED
package/src/ui/text/readme.md
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# [Text](https://winduum.dev/docs/ui/text.html)
|
|
2
|
-
|
|
3
|
-
## Installation
|
|
4
|
-
```shell
|
|
5
|
-
npm i winduum
|
|
6
|
-
```
|
|
7
|
-
Learn more how to set up Winduum [here](https://winduum.dev/docs/).
|
|
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
|
-
|
|
10
|
-
```css
|
|
11
|
-
@import "winduum/src/ui/text/index.css" layer(components);
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
or modular (you can use your own props or CSS)
|
|
15
|
-
|
|
16
|
-
```css
|
|
17
|
-
@import "winduum/src/ui/text/default-props.css" layer(components);
|
|
18
|
-
@import "winduum/src/ui/text/default.css" layer(components);
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Local imports
|
|
22
|
-
By default, imports are directly from `npm` so you can leverage updates.
|
|
23
|
-
You can also copy and paste the code from this directory to your project and remap the imports to local.
|
|
24
|
-
|
|
25
|
-
```css
|
|
26
|
-
@import "@/components/ui/text/assets/index.css" layer(components);
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Docs
|
|
30
|
-
Visit [docs](https://winduum.dev/docs/ui/text.html) to learn more about usage examples.
|
package/src/ui/title/default.css
DELETED
package/src/ui/title/lg.css
DELETED
package/src/ui/title/sm.css
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|