daisyui 4.12.10 → 5.0.0-alpha.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/components/badge/config.js +12 -0
- package/components/badge/index.css +1 -0
- package/components/badge/index.js +74 -0
- package/components/badge.css +109 -0
- package/components/button/config.js +12 -0
- package/components/button/index.css +1 -0
- package/components/button/index.js +170 -0
- package/components/button.css +293 -0
- package/components/checkbox/config.js +12 -0
- package/components/checkbox/index.css +1 -0
- package/components/checkbox/index.js +108 -0
- package/components/checkbox.css +144 -0
- package/components/input/config.js +12 -0
- package/components/input/index.css +1 -0
- package/components/input/index.js +128 -0
- package/components/input.css +204 -0
- package/components/kbd/config.js +12 -0
- package/components/kbd/index.css +1 -0
- package/components/kbd/index.js +27 -0
- package/components/kbd.css +49 -0
- package/components/mask/config.js +12 -0
- package/components/mask/index.css +1 -0
- package/components/mask/index.js +74 -0
- package/components/mask.css +78 -0
- package/components/radio/config.js +12 -0
- package/components/radio/index.css +1 -0
- package/components/radio/index.js +73 -0
- package/components/radio.css +102 -0
- package/components/range/config.js +12 -0
- package/components/range/index.css +1 -0
- package/components/range/index.js +132 -0
- package/components/range.css +164 -0
- package/components/rating/config.js +12 -0
- package/components/rating/index.css +1 -0
- package/components/rating/index.js +82 -0
- package/components/rating.css +104 -0
- package/components/select/config.js +12 -0
- package/components/select/index.css +1 -0
- package/components/select/index.js +99 -0
- package/components/select.css +166 -0
- package/components/toggle/config.js +12 -0
- package/components/toggle/index.css +1 -0
- package/components/toggle/index.js +102 -0
- package/components/toggle.css +143 -0
- package/functions/plugin.js +10 -0
- package/index.css +14 -0
- package/package.json +74 -83
- package/themes/dark/index.css +26 -0
- package/themes/default/index.css +26 -0
- package/themes/index.css +26 -0
- package/themes/light/index.css +26 -0
- package/dist/base.js +0 -1
- package/dist/full.css +0 -62904
- package/dist/styled.css +0 -5183
- package/dist/styled.js +0 -1
- package/dist/themes.css +0 -2118
- package/dist/unstyled.css +0 -1324
- package/dist/unstyled.js +0 -1
- package/dist/utilities-styled.js +0 -1
- package/dist/utilities-unstyled.js +0 -1
- package/dist/utilities.js +0 -1
- package/src/index.d.ts +0 -122
- package/src/index.js +0 -149
- package/src/lib/addPrefix.js +0 -104
- package/src/lib/createPlugin.js +0 -19
- package/src/lib/responsiveRegex.js +0 -45
- package/src/lib/utility-classes.js +0 -7
- package/src/theming/colorNames.js +0 -30
- package/src/theming/functions.js +0 -262
- package/src/theming/index.js +0 -35
- package/src/theming/themeDefaults.js +0 -47
- package/src/theming/themes.d.ts +0 -5
- package/src/theming/themes.js +0 -485
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
".checkbox": {
|
|
3
|
+
"@apply border-base-content/20 text-base-content relative shrink-0 size-6 cursor-pointer appearance-none rounded-[var(--radius-btn)] border p-1 align-middle": {},
|
|
4
|
+
"boxShadow": "0 1px oklch(0% 0 0 / 0.1) inset",
|
|
5
|
+
"transition": "background-color 0.2s,\n box-shadow 0.2s",
|
|
6
|
+
"&:before": {
|
|
7
|
+
"@apply block size-full rotate-45 bg-current opacity-0 content-['']": {},
|
|
8
|
+
"transition": "clip-path 0.3s,\n opacity 0.1s,\n rotate 0.3s,\n translate 0.3s",
|
|
9
|
+
"transitionDelay": "0.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,\n 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 translate-y-[-35%] rotate-0 opacity-100": {},
|
|
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 size-4 p-0.5": {}
|
|
98
|
+
},
|
|
99
|
+
".checkbox-sm": {
|
|
100
|
+
"@apply size-5": {}
|
|
101
|
+
},
|
|
102
|
+
".checkbox-md": {
|
|
103
|
+
"@apply size-6": {}
|
|
104
|
+
},
|
|
105
|
+
".checkbox-lg": {
|
|
106
|
+
"@apply size-8": {}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
.checkbox {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: var(--spacing-6, 1.5rem);
|
|
4
|
+
height: var(--spacing-6, 1.5rem);
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
appearance: none;
|
|
8
|
+
border-radius: var(--radius-btn);
|
|
9
|
+
border-style: var(--tw-border-style);
|
|
10
|
+
border-width: 1px;
|
|
11
|
+
border-color: color-mix(in srgb, var(--color-base-content, oklch(27.8078% 0.029596 256.84795)) 20%, transparent);
|
|
12
|
+
padding: var(--spacing-1, 0.25rem);
|
|
13
|
+
vertical-align: middle;
|
|
14
|
+
color: var(--color-base-content, oklch(27.8078% 0.029596 256.84795));
|
|
15
|
+
box-shadow: 0 1px oklch(0% 0 0 / 0.1) inset;
|
|
16
|
+
transition: background-color 0.2s, box-shadow 0.2s;
|
|
17
|
+
&:before {
|
|
18
|
+
display: block;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
rotate: 45deg;
|
|
22
|
+
background-color: currentColor;
|
|
23
|
+
opacity: 0%;
|
|
24
|
+
--tw-content: '';
|
|
25
|
+
content: var(--tw-content);
|
|
26
|
+
transition: clip-path 0.3s, opacity 0.1s, rotate 0.3s, translate 0.3s;
|
|
27
|
+
transition-delay: 0.1s;
|
|
28
|
+
clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 80%, 70% 80%, 70% 100%);
|
|
29
|
+
box-shadow: 0px 3px 0 0px oklch(100% 0 0 / 0.1) inset;
|
|
30
|
+
}
|
|
31
|
+
&:focus-visible {
|
|
32
|
+
outline-style: var(--tw-outline-style);
|
|
33
|
+
outline-width: 2px;
|
|
34
|
+
outline-offset: 2px;
|
|
35
|
+
outline-color: currentColor;
|
|
36
|
+
}
|
|
37
|
+
&:checked, &[aria-checked="true"] {
|
|
38
|
+
box-shadow: 0 8px 0 -4px oklch(100% 0 0 / 0.1) inset, 0 1px oklch(0% 0 0 / 0.1);
|
|
39
|
+
&:before {
|
|
40
|
+
opacity: 100%;
|
|
41
|
+
clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 0%, 70% 0%, 70% 100%);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&:indeterminate {
|
|
45
|
+
&:before {
|
|
46
|
+
--tw-translate-y: -35%;
|
|
47
|
+
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
48
|
+
rotate: 0deg;
|
|
49
|
+
opacity: 100%;
|
|
50
|
+
clip-path: polygon(20% 100%, 20% 80%, 50% 80%, 50% 80%, 80% 80%, 80% 100%);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.checkbox-primary {
|
|
55
|
+
border-color: var(--color-primary, oklch(49.12% 0.3096 275.75));
|
|
56
|
+
color: var(--color-primary-content, oklch(89.824% 0.06192 275.75));
|
|
57
|
+
&:focus-visible {
|
|
58
|
+
outline-color: var(--color-primary, oklch(49.12% 0.3096 275.75));
|
|
59
|
+
}
|
|
60
|
+
&:checked {
|
|
61
|
+
background-color: var(--color-primary, oklch(49.12% 0.3096 275.75));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
.checkbox-secondary {
|
|
65
|
+
border-color: var(--color-secondary, oklch(69.71% 0.329 342.55));
|
|
66
|
+
color: var(--color-secondary-content, oklch(98.71% 0.0106 342.55));
|
|
67
|
+
&:focus-visible {
|
|
68
|
+
outline-color: var(--color-secondary, oklch(69.71% 0.329 342.55));
|
|
69
|
+
}
|
|
70
|
+
&:checked {
|
|
71
|
+
background-color: var(--color-secondary, oklch(69.71% 0.329 342.55));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.checkbox-accent {
|
|
75
|
+
border-color: var(--color-accent, oklch(76.76% 0.184 183.61));
|
|
76
|
+
color: var(--color-accent-content, oklch(15.352% 0.0368 183.61));
|
|
77
|
+
&:focus-visible {
|
|
78
|
+
outline-color: var(--color-accent, oklch(76.76% 0.184 183.61));
|
|
79
|
+
}
|
|
80
|
+
&:checked {
|
|
81
|
+
background-color: var(--color-accent, oklch(76.76% 0.184 183.61));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
.checkbox-success {
|
|
85
|
+
border-color: var(--color-success, oklch(64.8% 0.15 160));
|
|
86
|
+
color: var(--color-success-content, oklch(0% 0 0));
|
|
87
|
+
&:focus-visible {
|
|
88
|
+
outline-color: var(--color-success, oklch(64.8% 0.15 160));
|
|
89
|
+
}
|
|
90
|
+
&:checked {
|
|
91
|
+
background-color: var(--color-success, oklch(64.8% 0.15 160));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
.checkbox-warning {
|
|
95
|
+
border-color: var(--color-warning, oklch(84.71% 0.199 83.87));
|
|
96
|
+
color: var(--color-warning-content, oklch(0% 0 0));
|
|
97
|
+
&:focus-visible {
|
|
98
|
+
outline-color: var(--color-warning, oklch(84.71% 0.199 83.87));
|
|
99
|
+
}
|
|
100
|
+
&:checked {
|
|
101
|
+
background-color: var(--color-warning, oklch(84.71% 0.199 83.87));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.checkbox-info {
|
|
105
|
+
border-color: var(--color-info, oklch(72.06% 0.191 231.6));
|
|
106
|
+
color: var(--color-info-content, oklch(0% 0 0));
|
|
107
|
+
&:focus-visible {
|
|
108
|
+
outline-color: var(--color-info, oklch(72.06% 0.191 231.6));
|
|
109
|
+
}
|
|
110
|
+
&:checked {
|
|
111
|
+
background-color: var(--color-info, oklch(72.06% 0.191 231.6));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.checkbox-error {
|
|
115
|
+
border-color: var(--color-error, oklch(71.76% 0.221 22.18));
|
|
116
|
+
color: var(--color-error-content, oklch(0% 0 0));
|
|
117
|
+
&:focus-visible {
|
|
118
|
+
outline-color: var(--color-error, oklch(71.76% 0.221 22.18));
|
|
119
|
+
}
|
|
120
|
+
&:checked {
|
|
121
|
+
background-color: var(--color-error, oklch(71.76% 0.221 22.18));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
.checkbox:disabled {
|
|
125
|
+
cursor: not-allowed;
|
|
126
|
+
opacity: 20%;
|
|
127
|
+
}
|
|
128
|
+
.checkbox-xs {
|
|
129
|
+
width: var(--spacing-4, 1rem);
|
|
130
|
+
height: var(--spacing-4, 1rem);
|
|
131
|
+
padding: var(--spacing-0_5, 0.125rem);
|
|
132
|
+
}
|
|
133
|
+
.checkbox-sm {
|
|
134
|
+
width: var(--spacing-5, 1.25rem);
|
|
135
|
+
height: var(--spacing-5, 1.25rem);
|
|
136
|
+
}
|
|
137
|
+
.checkbox-md {
|
|
138
|
+
width: var(--spacing-6, 1.5rem);
|
|
139
|
+
height: var(--spacing-6, 1.5rem);
|
|
140
|
+
}
|
|
141
|
+
.checkbox-lg {
|
|
142
|
+
width: var(--spacing-8, 2rem);
|
|
143
|
+
height: var(--spacing-8, 2rem);
|
|
144
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@config "./config.js";
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
".input": {
|
|
3
|
+
"@apply bg-base-100 rounded-btn h-10 shrink appearance-none border border-transparent px-4 text-base text-sm leading-loose align-middle": {},
|
|
4
|
+
"input": {
|
|
5
|
+
"@apply border-none bg-transparent": {},
|
|
6
|
+
"&:focus": {
|
|
7
|
+
"@apply outline-none": {}
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"&:focus,\n &:focus-within": {
|
|
11
|
+
"@apply border-base-content/20 outline-base-content/20 outline outline-2 outline-offset-2": {}
|
|
12
|
+
},
|
|
13
|
+
"&:has(> input[disabled]),\n &:is(:disabled, [disabled])": {
|
|
14
|
+
"@apply border-base-200 bg-base-200 placeholder-base-content text-base-content/40 placeholder-base-content/20 cursor-not-allowed": {}
|
|
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,\n 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 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 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 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 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 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 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 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-10 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-14 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,204 @@
|
|
|
1
|
+
.input {
|
|
2
|
+
height: var(--spacing-10, 2.5rem);
|
|
3
|
+
flex-shrink: 1;
|
|
4
|
+
appearance: none;
|
|
5
|
+
border-radius: var(--radius-btn, 0.5rem);
|
|
6
|
+
border-style: var(--tw-border-style);
|
|
7
|
+
border-width: 1px;
|
|
8
|
+
border-color: transparent;
|
|
9
|
+
background-color: var(--color-base-100, oklch(100% 0 0));
|
|
10
|
+
padding-left: var(--spacing-4, 1rem);
|
|
11
|
+
padding-right: var(--spacing-4, 1rem);
|
|
12
|
+
vertical-align: middle;
|
|
13
|
+
font-size: var(--font-size-base, 1rem);
|
|
14
|
+
line-height: var(--tw-leading, var(--font-size-base--line-height, 1.5rem));
|
|
15
|
+
font-size: var(--font-size-sm, 0.875rem);
|
|
16
|
+
line-height: var(--tw-leading, var(--font-size-sm--line-height, 1.25rem));
|
|
17
|
+
--tw-leading: var(--line-height-loose, 2);
|
|
18
|
+
line-height: var(--line-height-loose, 2);
|
|
19
|
+
input {
|
|
20
|
+
--tw-border-style: none;
|
|
21
|
+
border-style: none;
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
&:focus {
|
|
24
|
+
outline: 2px solid transparent;
|
|
25
|
+
outline-offset: 2px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&:focus, &:focus-within {
|
|
29
|
+
border-color: color-mix(in srgb, var(--color-base-content, oklch(27.8078% 0.029596 256.84795)) 20%, transparent);
|
|
30
|
+
outline-style: var(--tw-outline-style);
|
|
31
|
+
outline-width: 1px;
|
|
32
|
+
outline-style: var(--tw-outline-style);
|
|
33
|
+
outline-width: 2px;
|
|
34
|
+
outline-offset: 2px;
|
|
35
|
+
outline-color: color-mix(in srgb, var(--color-base-content, oklch(27.8078% 0.029596 256.84795)) 20%, transparent);
|
|
36
|
+
}
|
|
37
|
+
&:has(> input[disabled]), &:is(:disabled, [disabled]) {
|
|
38
|
+
cursor: not-allowed;
|
|
39
|
+
border-color: var(--color-base-200, oklch(96.1151% 0 0));
|
|
40
|
+
background-color: var(--color-base-200, oklch(96.1151% 0 0));
|
|
41
|
+
color: color-mix(in srgb, var(--color-base-content, oklch(27.8078% 0.029596 256.84795)) 40%, transparent);
|
|
42
|
+
&::placeholder {
|
|
43
|
+
color: var(--color-base-content, oklch(27.8078% 0.029596 256.84795));
|
|
44
|
+
}
|
|
45
|
+
&::placeholder {
|
|
46
|
+
color: color-mix(in srgb, var(--color-base-content, oklch(27.8078% 0.029596 256.84795)) 20%, transparent);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
&:has(> input[disabled])>input[disabled] {
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
&::-webkit-date-and-time-value {
|
|
53
|
+
text-align: inherit;
|
|
54
|
+
}
|
|
55
|
+
&[type="number"] {
|
|
56
|
+
&::-webkit-inner-spin-button {
|
|
57
|
+
margin-top: calc(var(--spacing-4, 1rem) * -1);
|
|
58
|
+
margin-bottom: calc(var(--spacing-4, 1rem) * -1);
|
|
59
|
+
margin-inline-end: calc(var(--spacing-4, 1rem) * -1);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
&[list] {
|
|
63
|
+
&::-webkit-calendar-picker-indicator {
|
|
64
|
+
line-height: 1em;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&.input-bordered {
|
|
68
|
+
border-color: color-mix(in srgb, var(--color-base-content, oklch(27.8078% 0.029596 256.84795)) 20%, transparent);
|
|
69
|
+
box-shadow: 0 1px oklch(0% 0 0 / 0.1) inset, 0 -1px oklch(100% 0 0 / 0.1) inset;
|
|
70
|
+
&:focus {
|
|
71
|
+
box-shadow: 0 1px oklch(0% 0 0 / 0.1);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&.input-ghost {
|
|
75
|
+
background-color: color-mix(in srgb, var(--color-base-100, oklch(100% 0 0)) 5%, transparent);
|
|
76
|
+
--tw-shadow: 0 0 #0000;
|
|
77
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
78
|
+
&:focus, &:focus-within {
|
|
79
|
+
background-color: var(--color-base-100, oklch(100% 0 0));
|
|
80
|
+
color: var(--color-base-content, oklch(27.8078% 0.029596 256.84795));
|
|
81
|
+
box-shadow: none;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
&.input-primary {
|
|
85
|
+
border-color: var(--color-primary, oklch(49.12% 0.3096 275.75));
|
|
86
|
+
background-color: color-mix(in oklab, var(--color-primary) 2%, transparent);
|
|
87
|
+
&:focus, &:focus-within {
|
|
88
|
+
border-color: var(--color-primary, oklch(49.12% 0.3096 275.75));
|
|
89
|
+
outline-color: var(--color-primary, oklch(49.12% 0.3096 275.75));
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
&.input-secondary {
|
|
93
|
+
border-color: var(--color-secondary, oklch(69.71% 0.329 342.55));
|
|
94
|
+
background-color: color-mix(in oklab, var(--color-secondary) 2%, transparent);
|
|
95
|
+
&:focus, &:focus-within {
|
|
96
|
+
border-color: var(--color-secondary, oklch(69.71% 0.329 342.55));
|
|
97
|
+
outline-color: var(--color-secondary, oklch(69.71% 0.329 342.55));
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
&.input-accent {
|
|
101
|
+
border-color: var(--color-accent, oklch(76.76% 0.184 183.61));
|
|
102
|
+
background-color: color-mix(in oklab, var(--color-accent) 2%, transparent);
|
|
103
|
+
&:focus, &:focus-within {
|
|
104
|
+
border-color: var(--color-accent, oklch(76.76% 0.184 183.61));
|
|
105
|
+
outline-color: var(--color-accent, oklch(76.76% 0.184 183.61));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
&.input-info {
|
|
109
|
+
border-color: var(--color-info, oklch(72.06% 0.191 231.6));
|
|
110
|
+
background-color: color-mix(in oklab, var(--color-info) 2%, transparent);
|
|
111
|
+
&:focus, &:focus-within {
|
|
112
|
+
border-color: var(--color-info, oklch(72.06% 0.191 231.6));
|
|
113
|
+
outline-color: var(--color-info, oklch(72.06% 0.191 231.6));
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
&.input-success {
|
|
117
|
+
border-color: var(--color-success, oklch(64.8% 0.15 160));
|
|
118
|
+
background-color: color-mix(in oklab, var(--color-success) 2%, transparent);
|
|
119
|
+
&:focus, &:focus-within {
|
|
120
|
+
border-color: var(--color-success, oklch(64.8% 0.15 160));
|
|
121
|
+
outline-color: var(--color-success, oklch(64.8% 0.15 160));
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
&.input-warning {
|
|
125
|
+
border-color: var(--color-warning, oklch(84.71% 0.199 83.87));
|
|
126
|
+
background-color: color-mix(in oklab, var(--color-warning) 2%, transparent);
|
|
127
|
+
&:focus, &:focus-within {
|
|
128
|
+
border-color: var(--color-warning, oklch(84.71% 0.199 83.87));
|
|
129
|
+
outline-color: var(--color-warning, oklch(84.71% 0.199 83.87));
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
&.input-error {
|
|
133
|
+
border-color: var(--color-error, oklch(71.76% 0.221 22.18));
|
|
134
|
+
background-color: color-mix(in oklab, var(--color-error) 2%, transparent);
|
|
135
|
+
&:focus, &:focus-within {
|
|
136
|
+
border-color: var(--color-error, oklch(71.76% 0.221 22.18));
|
|
137
|
+
outline-color: var(--color-error, oklch(71.76% 0.221 22.18));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
&.input-xs {
|
|
141
|
+
height: var(--spacing-6, 1.5rem);
|
|
142
|
+
padding-left: var(--spacing-2, 0.5rem);
|
|
143
|
+
padding-right: var(--spacing-2, 0.5rem);
|
|
144
|
+
font-size: var(--font-size-xs, 0.75rem);
|
|
145
|
+
line-height: var(--tw-leading, var(--font-size-xs--line-height, 1rem));
|
|
146
|
+
--tw-leading: var(--line-height-relaxed, 1.625);
|
|
147
|
+
line-height: var(--line-height-relaxed, 1.625);
|
|
148
|
+
&[type="number"] {
|
|
149
|
+
&::-webkit-inner-spin-button {
|
|
150
|
+
margin-top: calc(var(--spacing-1, 0.25rem) * -1);
|
|
151
|
+
margin-bottom: calc(var(--spacing-1, 0.25rem) * -1);
|
|
152
|
+
margin-inline-end: calc(var(--spacing-0, 0px) * -1);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
&.input-sm {
|
|
157
|
+
height: var(--spacing-8, 2rem);
|
|
158
|
+
padding-left: var(--spacing-3, 0.75rem);
|
|
159
|
+
padding-right: var(--spacing-3, 0.75rem);
|
|
160
|
+
font-size: var(--font-size-sm, 0.875rem);
|
|
161
|
+
line-height: var(--tw-leading, var(--font-size-sm--line-height, 1.25rem));
|
|
162
|
+
--tw-leading: var(--line-height-8, 2rem);
|
|
163
|
+
line-height: var(--line-height-8, 2rem);
|
|
164
|
+
&[type="number"] {
|
|
165
|
+
&::-webkit-inner-spin-button {
|
|
166
|
+
margin-top: var(--spacing-0, 0px);
|
|
167
|
+
margin-bottom: var(--spacing-0, 0px);
|
|
168
|
+
margin-inline-end: calc(var(--spacing-0, 0px) * -1);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
&.input-md {
|
|
173
|
+
height: var(--spacing-10, 2.5rem);
|
|
174
|
+
padding-left: var(--spacing-4, 1rem);
|
|
175
|
+
padding-right: var(--spacing-4, 1rem);
|
|
176
|
+
font-size: var(--font-size-sm, 0.875rem);
|
|
177
|
+
line-height: var(--tw-leading, var(--font-size-sm--line-height, 1.25rem));
|
|
178
|
+
--tw-leading: var(--line-height-loose, 2);
|
|
179
|
+
line-height: var(--line-height-loose, 2);
|
|
180
|
+
&[type="number"] {
|
|
181
|
+
&::-webkit-inner-spin-button {
|
|
182
|
+
margin-top: calc(var(--spacing-4, 1rem) * -1);
|
|
183
|
+
margin-bottom: calc(var(--spacing-4, 1rem) * -1);
|
|
184
|
+
margin-inline-end: calc(var(--spacing-4, 1rem) * -1);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
&.input-lg {
|
|
189
|
+
height: var(--spacing-14, 3.5rem);
|
|
190
|
+
padding-left: var(--spacing-6, 1.5rem);
|
|
191
|
+
padding-right: var(--spacing-6, 1.5rem);
|
|
192
|
+
font-size: var(--font-size-lg, 1.125rem);
|
|
193
|
+
line-height: var(--tw-leading, var(--font-size-lg--line-height, 1.75rem));
|
|
194
|
+
--tw-leading: var(--line-height-loose, 2);
|
|
195
|
+
line-height: var(--line-height-loose, 2);
|
|
196
|
+
&[type="number"] {
|
|
197
|
+
&::-webkit-inner-spin-button {
|
|
198
|
+
margin-top: calc(var(--spacing-6, 1.5rem) * -1);
|
|
199
|
+
margin-bottom: calc(var(--spacing-6, 1.5rem) * -1);
|
|
200
|
+
margin-inline-end: calc(var(--spacing-6, 1.5rem) * -1);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@config "./config.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
".kbd": {
|
|
3
|
+
"@apply inline-flex items-center justify-center border-base-content/20 bg-base-200 rounded-btn border px-2 border-b-2 align-middle": {},
|
|
4
|
+
"minHeight": "2.2em",
|
|
5
|
+
"minWidth": "2.2em"
|
|
6
|
+
},
|
|
7
|
+
".kbd-xs": {
|
|
8
|
+
"@apply px-1 text-xs": {},
|
|
9
|
+
"minHeight": "1.2em",
|
|
10
|
+
"minWidth": "1.2em"
|
|
11
|
+
},
|
|
12
|
+
".kbd-sm": {
|
|
13
|
+
"@apply px-1 text-sm": {},
|
|
14
|
+
"minHeight": "1.6em",
|
|
15
|
+
"minWidth": "1.6em"
|
|
16
|
+
},
|
|
17
|
+
".kbd-md": {
|
|
18
|
+
"@apply px-2 text-base": {},
|
|
19
|
+
"minHeight": "2.2em",
|
|
20
|
+
"minWidth": "2.2em"
|
|
21
|
+
},
|
|
22
|
+
".kbd-lg": {
|
|
23
|
+
"@apply px-4 text-lg": {},
|
|
24
|
+
"minHeight": "2.5em",
|
|
25
|
+
"minWidth": "2.5em"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.kbd {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
border-radius: var(--radius-btn, 0.5rem);
|
|
6
|
+
border-style: var(--tw-border-style);
|
|
7
|
+
border-width: 1px;
|
|
8
|
+
border-bottom-style: var(--tw-border-style);
|
|
9
|
+
border-bottom-width: 2px;
|
|
10
|
+
border-color: color-mix(in srgb, var(--color-base-content, oklch(27.8078% 0.029596 256.84795)) 20%, transparent);
|
|
11
|
+
background-color: var(--color-base-200, oklch(96.1151% 0 0));
|
|
12
|
+
padding-left: var(--spacing-2, 0.5rem);
|
|
13
|
+
padding-right: var(--spacing-2, 0.5rem);
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
min-height: 2.2em;
|
|
16
|
+
min-width: 2.2em;
|
|
17
|
+
}
|
|
18
|
+
.kbd-xs {
|
|
19
|
+
padding-left: var(--spacing-1, 0.25rem);
|
|
20
|
+
padding-right: var(--spacing-1, 0.25rem);
|
|
21
|
+
font-size: var(--font-size-xs, 0.75rem);
|
|
22
|
+
line-height: var(--tw-leading, var(--font-size-xs--line-height, 1rem));
|
|
23
|
+
min-height: 1.2em;
|
|
24
|
+
min-width: 1.2em;
|
|
25
|
+
}
|
|
26
|
+
.kbd-sm {
|
|
27
|
+
padding-left: var(--spacing-1, 0.25rem);
|
|
28
|
+
padding-right: var(--spacing-1, 0.25rem);
|
|
29
|
+
font-size: var(--font-size-sm, 0.875rem);
|
|
30
|
+
line-height: var(--tw-leading, var(--font-size-sm--line-height, 1.25rem));
|
|
31
|
+
min-height: 1.6em;
|
|
32
|
+
min-width: 1.6em;
|
|
33
|
+
}
|
|
34
|
+
.kbd-md {
|
|
35
|
+
padding-left: var(--spacing-2, 0.5rem);
|
|
36
|
+
padding-right: var(--spacing-2, 0.5rem);
|
|
37
|
+
font-size: var(--font-size-base, 1rem);
|
|
38
|
+
line-height: var(--tw-leading, var(--font-size-base--line-height, 1.5rem));
|
|
39
|
+
min-height: 2.2em;
|
|
40
|
+
min-width: 2.2em;
|
|
41
|
+
}
|
|
42
|
+
.kbd-lg {
|
|
43
|
+
padding-left: var(--spacing-4, 1rem);
|
|
44
|
+
padding-right: var(--spacing-4, 1rem);
|
|
45
|
+
font-size: var(--font-size-lg, 1.125rem);
|
|
46
|
+
line-height: var(--tw-leading, var(--font-size-lg--line-height, 1.75rem));
|
|
47
|
+
min-height: 2.5em;
|
|
48
|
+
min-width: 2.5em;
|
|
49
|
+
}
|