daisyui 4.12.10 → 5.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/components/button/config.js +12 -0
  2. package/components/button/index.css +1 -0
  3. package/components/button/index.js +172 -0
  4. package/components/checkbox/config.js +12 -0
  5. package/components/checkbox/index.css +1 -0
  6. package/components/checkbox/index.js +125 -0
  7. package/components/input/config.js +12 -0
  8. package/components/input/index.css +1 -0
  9. package/components/input/index.js +128 -0
  10. package/components/radio/config.js +12 -0
  11. package/components/radio/index.css +1 -0
  12. package/components/radio/index.js +73 -0
  13. package/components/range/config.js +12 -0
  14. package/components/range/index.css +1 -0
  15. package/components/range/index.js +128 -0
  16. package/components/toggle/config.js +12 -0
  17. package/components/toggle/index.css +1 -0
  18. package/components/toggle/index.js +101 -0
  19. package/index.css +12 -0
  20. package/package.json +14 -26
  21. package/plugin.js +2 -0
  22. package/themes/dark/index.css +26 -0
  23. package/themes/index.css +26 -0
  24. package/themes/light/index.css +26 -0
  25. package/dist/base.js +0 -1
  26. package/dist/full.css +0 -62904
  27. package/dist/styled.css +0 -5183
  28. package/dist/styled.js +0 -1
  29. package/dist/themes.css +0 -2118
  30. package/dist/unstyled.css +0 -1324
  31. package/dist/unstyled.js +0 -1
  32. package/dist/utilities-styled.js +0 -1
  33. package/dist/utilities-unstyled.js +0 -1
  34. package/dist/utilities.js +0 -1
  35. package/src/index.d.ts +0 -122
  36. package/src/index.js +0 -149
  37. package/src/lib/addPrefix.js +0 -104
  38. package/src/lib/createPlugin.js +0 -19
  39. package/src/lib/responsiveRegex.js +0 -45
  40. package/src/lib/utility-classes.js +0 -7
  41. package/src/theming/colorNames.js +0 -30
  42. package/src/theming/functions.js +0 -262
  43. package/src/theming/index.js +0 -35
  44. package/src/theming/themeDefaults.js +0 -47
  45. package/src/theming/themes.d.ts +0 -5
  46. package/src/theming/themes.js +0 -485
@@ -0,0 +1,12 @@
1
+ import { plugin } from '../../plugin.js';
2
+ import index from './index.js';
3
+
4
+ export default {
5
+ plugins: [
6
+ plugin(function ({ addComponents }) {
7
+ addComponents({
8
+ ...index
9
+ });
10
+ })
11
+ ],
12
+ };
@@ -0,0 +1 @@
1
+ @config "./config.js";
@@ -0,0 +1,172 @@
1
+ export default {
2
+ ".btn": {
3
+ "@apply rounded-[--radius-btn] inline-flex h-12 min-h-[3rem] shrink-0 cursor-pointer select-none flex-wrap items-center justify-center px-4 text-center gap-2 font-semibold duration-200 ease-out [border-width:var(--spacing-button-border)] text-base-content outline-base-content no-underline shadow-sm bg-[var(--btn-color,var(--color-base-200))] border-[var(--btn-color,var(--color-base-200))] outline-offset-2 text-sm/none [transition-property:color,background-color,border-color,opacity,box-shadow,transform]": {},
4
+ "borderTopColor": "color-mix(in oklab, var(--btn-color,var(--color-base-200)) 93%, white)",
5
+ "borderBottomColor": "color-mix(in oklab, var(--btn-color,var(--color-base-200)) 98%, black)",
6
+ "@media (hover:hover)": [
7
+ {
8
+ "@apply hover:bg-[color-mix(in_oklab,var(--btn-color,var(--color-base-200))_90%,black)]": {}
9
+ },
10
+ {
11
+ "@apply hover:border-[color-mix(in_oklab,var(--btn-color,var(--color-base-200))_90%,black)]": {}
12
+ }
13
+ ],
14
+ "&:focus-visible": {
15
+ "@apply outline outline-2": {}
16
+ },
17
+ "&:active": {
18
+ "&:focus": {
19
+ "@apply [transform:scale(var(--btn-focus-scale,0.97))] animate-[button-pop_0s_ease-out]": {}
20
+ },
21
+ "&:hover": {
22
+ "@apply animate-[button-pop_0s_ease-out] [transform:scale(var(--btn-focus-scale,0.97))]": {}
23
+ }
24
+ },
25
+ "&:is(:disabled, [disabled], .btn-disabled)": {
26
+ "@apply pointer-events-none bg-neutral/20 text-base-content/20 border-transparent [@media(hover:hover)]:pointer-events-none [@media(hover:hover)]:bg-neutral/20 [@media(hover:hover)]:text-base-content/20 [@media(hover:hover)]:border-transparent": {}
27
+ },
28
+ "&:is(input[type=\"checkbox\"]),\n &:is(input[type=\"radio\"])": {
29
+ "@apply w-auto appearance-none": {}
30
+ }
31
+ },
32
+ ".btn-square": {
33
+ "@apply size-12 p-0": {},
34
+ "@apply p-0": {},
35
+ "&:where(.btn-xs)": {
36
+ "@apply size-6": {}
37
+ },
38
+ "&:where(.btn-sm)": {
39
+ "@apply size-8": {}
40
+ },
41
+ "&:where(.btn-md)": {
42
+ "@apply size-12": {}
43
+ },
44
+ "&:where(.btn-lg)": {
45
+ "@apply size-16": {}
46
+ }
47
+ },
48
+ ".btn-circle": {
49
+ "@apply size-12 rounded-full p-0": {},
50
+ "@apply rounded-full p-0": {},
51
+ "&:where(.btn-xs)": {
52
+ "@apply size-6": {}
53
+ },
54
+ "&:where(.btn-sm)": {
55
+ "@apply size-8": {}
56
+ },
57
+ "&:where(.btn-md)": {
58
+ "@apply size-12": {}
59
+ },
60
+ "&:where(.btn-lg)": {
61
+ "@apply size-16": {}
62
+ }
63
+ },
64
+ ".btn-primary": {
65
+ "@apply [--btn-color:var(--color-primary)] text-primary-content outline-primary": {}
66
+ },
67
+ ".btn-secondary": {
68
+ "@apply [--btn-color:var(--color-secondary)] text-secondary-content outline-secondary": {}
69
+ },
70
+ ".btn-accent": {
71
+ "@apply [--btn-color:var(--color-accent)] text-accent-content outline-accent": {}
72
+ },
73
+ ".btn-neutral": {
74
+ "@apply [--btn-color:var(--color-neutral)] text-neutral-content outline-neutral": {}
75
+ },
76
+ ".btn-info": {
77
+ "@apply [--btn-color:var(--color-info)] text-info-content outline-info": {}
78
+ },
79
+ ".btn-success": {
80
+ "@apply [--btn-color:var(--color-success)] text-success-content outline-success": {}
81
+ },
82
+ ".btn-warning": {
83
+ "@apply [--btn-color:var(--color-warning)] text-warning-content outline-warning": {}
84
+ },
85
+ ".btn-error": {
86
+ "@apply [--btn-color:var(--color-error)] text-error-content outline-error": {}
87
+ },
88
+ ".btn.glass": {
89
+ "@apply shadow-none outline-current [@media(hover:hover)]:hover:[--glass-opacity:25%] [@media(hover:hover)]:hover:[--glass-border-opacity:15%] [&.btn-active]:[--glass-opacity:25%] [&.btn-active]:[--glass-border-opacity:15%]": {}
90
+ },
91
+ ".btn-ghost": {
92
+ "@apply border border-transparent bg-transparent text-current shadow-none outline-current [@media(hover:hover)]:hover:bg-base-content/20 [@media(hover:hover)]:hover:border-transparent [&.btn-active]:bg-base-content/20 [&.btn-active]:border-transparent": {}
93
+ },
94
+ ".btn-link": {
95
+ "@apply text-primary border-transparent bg-transparent underline shadow-none outline-current [@media(hover:hover)]:hover:border-transparent [@media(hover:hover)]:hover:bg-transparent [@media(hover:hover)]:hover:underline [&.btn-active]:border-transparent [&.btn-active]:bg-transparent [&.btn-active]:underline": {}
96
+ },
97
+ ".btn-outline": {
98
+ "@apply text-[var(--btn-color)] bg-transparent shadow-none [&.btn-active]:text-base-content [&.btn-active]:bg-[color-mix(in_oklab,var(--btn-color,var(--color-base-200))_90%,black)] [&.btn-active]:border-[color-mix(in_oklab,var(--btn-color,var(--color-base-200))_90%,black)]": {},
99
+ "&.btn-primary": {
100
+ "@apply [@media(hover:hover)]:hover:text-primary-content text-primary [&.btn-active]:text-primary-content": {}
101
+ },
102
+ "&.btn-secondary": {
103
+ "@apply [@media(hover:hover)]:hover:text-secondary-content text-secondary [&.btn-active]:text-secondary-content": {}
104
+ },
105
+ "&.btn-accent": {
106
+ "@apply [@media(hover:hover)]:hover:text-accent-content text-accent [&.btn-active]:text-accent-content": {}
107
+ },
108
+ "&.btn-neutral": {
109
+ "@apply [@media(hover:hover)]:hover:text-neutral-content text-neutral [&.btn-active]:text-neutral-content": {}
110
+ },
111
+ "&.btn-success": {
112
+ "@apply [@media(hover:hover)]:hover:text-success-content text-success [&.btn-active]:text-success-content": {}
113
+ },
114
+ "&.btn-info": {
115
+ "@apply [@media(hover:hover)]:hover:text-info-content text-info [&.btn-active]:text-info-content": {}
116
+ },
117
+ "&.btn-warning": {
118
+ "@apply [@media(hover:hover)]:hover:text-warning-content text-warning [&.btn-active]:text-warning-content": {}
119
+ },
120
+ "&.btn-error": {
121
+ "@apply [@media(hover:hover)]:hover:text-error-content text-error [&.btn-active]:text-error-content": {}
122
+ }
123
+ },
124
+ ".btn:is(input[type=\"checkbox\"]):after,\n.btn:is(input[type=\"radio\"]):after": {
125
+ "@apply content-[attr(aria-label)]": {}
126
+ },
127
+ ".btn:is(input[type=\"checkbox\"]:checked),\n.btn:is(input[type=\"radio\"]:checked)": {
128
+ "@apply border-primary bg-primary text-primary-content": {},
129
+ "@media (hover: hover)": {
130
+ "&:hover": {
131
+ "backgroundColor": "color-mix(in oklab, var(--color-primary) 90%, black)",
132
+ "borderColor": "color-mix(in oklab, var(--color-primary) 90%, black)"
133
+ }
134
+ },
135
+ "&:focus-visible": {
136
+ "@apply outline-primary": {}
137
+ }
138
+ },
139
+ "@keyframes button-pop": {
140
+ "0%": {
141
+ "transform": "scale(var(--btn-focus-scale, 0.98))"
142
+ },
143
+ "40%": {
144
+ "transform": "scale(1.02)"
145
+ },
146
+ "100%": {
147
+ "transform": "scale(1)"
148
+ }
149
+ },
150
+ ".btn-xs": {
151
+ "@apply h-6 min-h-[1.5rem] px-2": {},
152
+ "fontSize": "0.75rem"
153
+ },
154
+ ".btn-sm": {
155
+ "@apply h-8 min-h-[2rem] px-3": {},
156
+ "fontSize": "0.875rem"
157
+ },
158
+ ".btn-md": {
159
+ "@apply h-12 min-h-[3rem] px-4": {},
160
+ "fontSize": "0.875rem"
161
+ },
162
+ ".btn-lg": {
163
+ "@apply h-16 min-h-[4rem] px-6": {},
164
+ "fontSize": "1.125rem"
165
+ },
166
+ ".btn-wide": {
167
+ "@apply w-64": {}
168
+ },
169
+ ".btn-block": {
170
+ "@apply w-full": {}
171
+ }
172
+ };
@@ -0,0 +1,12 @@
1
+ import { plugin } from '../../plugin.js';
2
+ import index from './index.js';
3
+
4
+ export default {
5
+ plugins: [
6
+ plugin(function ({ addComponents }) {
7
+ addComponents({
8
+ ...index
9
+ });
10
+ })
11
+ ],
12
+ };
@@ -0,0 +1 @@
1
+ @config "./config.js";
@@ -0,0 +1,125 @@
1
+ export default {
2
+ ".checkbox": {
3
+ "@apply border-base-content/20 rounded-[--radius-btn] size-6 cursor-pointer appearance-none border shrink-0 text-base-content relative p-1": {},
4
+ "boxShadow": "0 1px oklch(0% 0 0 / 0.1) inset",
5
+ "transition": "background-color .2s, box-shadow .2s",
6
+ "&:before": {
7
+ "@apply size-full block content-[''] bg-current opacity-0 rotate-45": {},
8
+ "transition": "clip-path .3s, opacity .1s, rotate .3s, translate .3s",
9
+ "transitionDelay": ".1s",
10
+ "clipPath": "polygon(20% 100%, 20% 80%, 50% 80%, 50% 80%, 70% 80%, 70% 100%)",
11
+ "boxShadow": "0px 3px 0 0px oklch(100% 0 0 / 0.1) inset"
12
+ },
13
+ "&:focus-visible": {
14
+ "@apply outline-2 outline-offset-2 outline-current": {}
15
+ },
16
+ "&:checked,\n &[aria-checked=\"true\"]": {
17
+ "boxShadow": "0 8px 0 -4px oklch(100% 0 0 / 0.1) inset, 0 1px oklch(0% 0 0 / 0.1)",
18
+ "&:before": {
19
+ "@apply opacity-100": {},
20
+ "clipPath": "polygon(20% 100%, 20% 80%, 50% 80%, 50% 0%, 70% 0%, 70% 100%)"
21
+ }
22
+ },
23
+ "&:indeterminate": {
24
+ "&:before": {
25
+ "@apply rotate-0 opacity-100 translate-y-[-35%]": {},
26
+ "clipPath": "polygon(20% 100%, 20% 80%, 50% 80%, 50% 80%, 80% 80%, 80% 100%)"
27
+ }
28
+ }
29
+ },
30
+ ".checkbox-primary": {
31
+ "@apply border-primary text-primary-content": {},
32
+ "&:focus-visible": {
33
+ "@apply outline-primary": {}
34
+ },
35
+ "&:checked": {
36
+ "@apply bg-primary": {}
37
+ }
38
+ },
39
+ ".checkbox-secondary": {
40
+ "@apply border-secondary text-secondary-content": {},
41
+ "&:focus-visible": {
42
+ "@apply outline-secondary": {}
43
+ },
44
+ "&:checked": {
45
+ "@apply bg-secondary": {}
46
+ }
47
+ },
48
+ ".checkbox-accent": {
49
+ "@apply border-accent text-accent-content": {},
50
+ "&:focus-visible": {
51
+ "@apply outline-accent": {}
52
+ },
53
+ "&:checked": {
54
+ "@apply bg-accent": {}
55
+ }
56
+ },
57
+ ".checkbox-success": {
58
+ "@apply border-success text-success-content": {},
59
+ "&:focus-visible": {
60
+ "@apply outline-success": {}
61
+ },
62
+ "&:checked": {
63
+ "@apply bg-success": {}
64
+ }
65
+ },
66
+ ".checkbox-warning": {
67
+ "@apply border-warning text-warning-content": {},
68
+ "&:focus-visible": {
69
+ "@apply outline-warning": {}
70
+ },
71
+ "&:checked": {
72
+ "@apply bg-warning": {}
73
+ }
74
+ },
75
+ ".checkbox-info": {
76
+ "@apply border-info text-info-content": {},
77
+ "&:focus-visible": {
78
+ "@apply outline-info": {}
79
+ },
80
+ "&:checked": {
81
+ "@apply bg-info": {}
82
+ }
83
+ },
84
+ ".checkbox-error": {
85
+ "@apply border-error text-error-content": {},
86
+ "&:focus-visible": {
87
+ "@apply outline-error": {}
88
+ },
89
+ "&:checked": {
90
+ "@apply bg-error": {}
91
+ }
92
+ },
93
+ ".checkbox:disabled": {
94
+ "@apply cursor-not-allowed opacity-20": {}
95
+ },
96
+ ".checkbox-xs": {
97
+ "@apply p-[.1875rem]": {},
98
+ "&[type=\"checkbox\"]": {
99
+ "@apply size-4": {},
100
+ "&:not(:indeterminate):before": {
101
+ "clipPath": "polygon(10% 100%, 10% 70%, 40% 70%, 40% 70%, 70% 70%, 70% 100%)"
102
+ },
103
+ "&:checked,\n &[aria-checked=\"true\"]": {
104
+ "&:before": {
105
+ "clipPath": "polygon(10% 100%, 10% 70%, 40% 70%, 40% 0%, 70% 0%, 70% 100%)"
106
+ }
107
+ }
108
+ }
109
+ },
110
+ ".checkbox-sm": {
111
+ "&[type=\"checkbox\"]": {
112
+ "@apply size-5": {}
113
+ }
114
+ },
115
+ ".checkbox-md": {
116
+ "&[type=\"checkbox\"]": {
117
+ "@apply size-6": {}
118
+ }
119
+ },
120
+ ".checkbox-lg": {
121
+ "&[type=\"checkbox\"]": {
122
+ "@apply size-8": {}
123
+ }
124
+ }
125
+ };
@@ -0,0 +1,12 @@
1
+ import { plugin } from '../../plugin.js';
2
+ import index from './index.js';
3
+
4
+ export default {
5
+ plugins: [
6
+ plugin(function ({ addComponents }) {
7
+ addComponents({
8
+ ...index
9
+ });
10
+ })
11
+ ],
12
+ };
@@ -0,0 +1 @@
1
+ @config "./config.js";
@@ -0,0 +1,128 @@
1
+ export default {
2
+ ".input": {
3
+ "@apply shrink appearance-none h-12 px-4 text-sm leading-loose bg-base-100 rounded-btn border border-transparent text-base": {},
4
+ "input": {
5
+ "@apply bg-transparent border-none": {},
6
+ "&:focus": {
7
+ "@apply outline-none": {}
8
+ }
9
+ },
10
+ "&:focus": {
11
+ "@apply border-base-content/20 outline-base-content/10 outline outline-4": {}
12
+ },
13
+ "&:has(> input[disabled]),\n &:is(:disabled, [disabled], .btn-disabled)": {
14
+ "@apply border-base-200 bg-base-200 placeholder-base-content text-base-content/40 cursor-not-allowed placeholder-base-content/20": {}
15
+ },
16
+ "&:has(> input[disabled])>input[disabled]": {
17
+ "@apply cursor-not-allowed": {}
18
+ },
19
+ "&::-webkit-date-and-time-value": {
20
+ "textAlign": "inherit"
21
+ },
22
+ "&[type=\"number\"]": {
23
+ "&::-webkit-inner-spin-button": {
24
+ "@apply -my-4 -me-4": {}
25
+ }
26
+ },
27
+ "&[list]": {
28
+ "&::-webkit-calendar-picker-indicator": {
29
+ "lineHeight": "1em"
30
+ }
31
+ },
32
+ "&.input-bordered": {
33
+ "@apply border-base-content/20": {},
34
+ "boxShadow": "0 1px oklch(0% 0 0 / 0.1) inset, 0 -1px oklch(100% 0 0 / 0.1) inset",
35
+ "&:focus": {
36
+ "boxShadow": "0 1px oklch(0% 0 0 / 0.1)"
37
+ }
38
+ },
39
+ "&.input-ghost": {
40
+ "@apply bg-base-100/5 shadow-none": {},
41
+ "&:focus,\n &:focus-within": {
42
+ "@apply text-base-content bg-base-100": {},
43
+ "boxShadow": "none"
44
+ }
45
+ },
46
+ "&.input-primary": {
47
+ "@apply border-primary": {},
48
+ "backgroundColor": "color-mix(in oklab, var(--color-primary) 2%, transparent)",
49
+ "&:focus,\n &:focus-within": {
50
+ "@apply outline-primary/30 border-primary": {}
51
+ }
52
+ },
53
+ "&.input-secondary": {
54
+ "@apply border-secondary": {},
55
+ "backgroundColor": "color-mix(in oklab, var(--color-secondary) 2%, transparent)",
56
+ "&:focus,\n &:focus-within": {
57
+ "@apply outline-secondary/30 border-secondary": {}
58
+ }
59
+ },
60
+ "&.input-accent": {
61
+ "@apply border-accent": {},
62
+ "backgroundColor": "color-mix(in oklab, var(--color-accent) 2%, transparent)",
63
+ "&:focus,\n &:focus-within": {
64
+ "@apply outline-accent/30 border-accent": {}
65
+ }
66
+ },
67
+ "&.input-info": {
68
+ "@apply border-info": {},
69
+ "backgroundColor": "color-mix(in oklab, var(--color-info) 2%, transparent)",
70
+ "&:focus,\n &:focus-within": {
71
+ "@apply outline-info/30 border-info": {}
72
+ }
73
+ },
74
+ "&.input-success": {
75
+ "@apply border-success": {},
76
+ "backgroundColor": "color-mix(in oklab, var(--color-success) 2%, transparent)",
77
+ "&:focus,\n &:focus-within": {
78
+ "@apply outline-success/30 border-success": {}
79
+ }
80
+ },
81
+ "&.input-warning": {
82
+ "@apply border-warning": {},
83
+ "backgroundColor": "color-mix(in oklab, var(--color-warning) 2%, transparent)",
84
+ "&:focus,\n &:focus-within": {
85
+ "@apply outline-warning/30 border-warning": {}
86
+ }
87
+ },
88
+ "&.input-error": {
89
+ "@apply border-error": {},
90
+ "backgroundColor": "color-mix(in oklab, var(--color-error) 2%, transparent)",
91
+ "&:focus,\n &:focus-within": {
92
+ "@apply outline-error/30 border-error": {}
93
+ }
94
+ },
95
+ "&.input-xs": {
96
+ "@apply h-6 px-2 text-xs leading-relaxed": {},
97
+ "&[type=\"number\"]": {
98
+ "&::-webkit-inner-spin-button": {
99
+ "@apply -my-1 -me-0": {}
100
+ }
101
+ }
102
+ },
103
+ "&.input-sm": {
104
+ "@apply h-8 px-3 text-sm leading-8": {},
105
+ "&[type=\"number\"]": {
106
+ "&::-webkit-inner-spin-button": {
107
+ "@apply my-0 -me-0": {}
108
+ }
109
+ }
110
+ },
111
+ "&.input-md": {
112
+ "@apply h-12 px-4 text-sm leading-loose": {},
113
+ "&[type=\"number\"]": {
114
+ "&::-webkit-inner-spin-button": {
115
+ "@apply -my-4 -me-4": {}
116
+ }
117
+ }
118
+ },
119
+ "&.input-lg": {
120
+ "@apply h-16 px-6 text-lg leading-loose": {},
121
+ "&[type=\"number\"]": {
122
+ "&::-webkit-inner-spin-button": {
123
+ "@apply -my-6 -me-6": {}
124
+ }
125
+ }
126
+ }
127
+ }
128
+ };
@@ -0,0 +1,12 @@
1
+ import { plugin } from '../../plugin.js';
2
+ import index from './index.js';
3
+
4
+ export default {
5
+ plugins: [
6
+ plugin(function ({ addComponents }) {
7
+ addComponents({
8
+ ...index
9
+ });
10
+ })
11
+ ],
12
+ };
@@ -0,0 +1 @@
1
+ @config "./config.js";
@@ -0,0 +1,73 @@
1
+ export default {
2
+ ".radio": {
3
+ "@apply border-base-content/20 size-6 cursor-pointer appearance-none rounded-full border shrink-0 text-base-content relative p-1": {},
4
+ "boxShadow": "0 1px oklch(0% 0 0 / 0.1) inset",
5
+ "&:before": {
6
+ "@apply rounded-full size-full block": {},
7
+ "content": "\"\""
8
+ },
9
+ "&:focus-visible": {
10
+ "@apply outline-2 outline-offset-2 outline-current": {}
11
+ },
12
+ "&:checked,\n &[aria-checked=\"true\"]": {
13
+ "animation": "radiomark var(--animation-input, 0.2s) ease-out",
14
+ "@apply bg-base-100 border-current": {},
15
+ "&:before": {
16
+ "@apply bg-current": {},
17
+ "boxShadow": "0 -1px oklch(0% 0 0 / 0.1) inset,\n 0 8px 0 -4px oklch(100% 0 0 / 0.1) inset, 0 1px oklch(0% 0 0 / 0.1)"
18
+ }
19
+ }
20
+ },
21
+ ".radio-primary": {
22
+ "@apply border-current text-primary": {}
23
+ },
24
+ ".radio-secondary": {
25
+ "@apply border-current text-secondary": {}
26
+ },
27
+ ".radio-accent": {
28
+ "@apply border-current text-accent": {}
29
+ },
30
+ ".radio-success": {
31
+ "@apply border-current text-success": {}
32
+ },
33
+ ".radio-warning": {
34
+ "@apply border-current text-warning": {}
35
+ },
36
+ ".radio-info": {
37
+ "@apply border-current text-info": {}
38
+ },
39
+ ".radio-error": {
40
+ "@apply border-current text-error": {}
41
+ },
42
+ ".radio:disabled": {
43
+ "@apply cursor-not-allowed opacity-20": {}
44
+ },
45
+ "@keyframes radiomark": {
46
+ "0%": {
47
+ "padding": "5px"
48
+ },
49
+ "50%": {
50
+ "padding": "3px"
51
+ }
52
+ },
53
+ ".radio-xs": {
54
+ "&:is([type=\"radio\"])": {
55
+ "@apply size-4": {}
56
+ }
57
+ },
58
+ ".radio-sm": {
59
+ "&:is([type=\"radio\"])": {
60
+ "@apply size-5": {}
61
+ }
62
+ },
63
+ ".radio-md": {
64
+ "&:is([type=\"radio\"])": {
65
+ "@apply size-6": {}
66
+ }
67
+ },
68
+ ".radio-lg": {
69
+ "&:is([type=\"radio\"])": {
70
+ "@apply size-8": {}
71
+ }
72
+ }
73
+ };
@@ -0,0 +1,12 @@
1
+ import { plugin } from '../../plugin.js';
2
+ import index from './index.js';
3
+
4
+ export default {
5
+ plugins: [
6
+ plugin(function ({ addComponents }) {
7
+ addComponents({
8
+ ...index
9
+ });
10
+ })
11
+ ],
12
+ };
@@ -0,0 +1 @@
1
+ @config "./config.js";