lapikit 0.0.0-insiders.e877f7f → 0.0.0-insiders.ee9a471
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/bin/configuration.js +304 -0
- package/bin/helper.js +23 -0
- package/bin/index.js +41 -0
- package/bin/lapikit.js +37 -5
- package/bin/legacy.js +34 -0
- package/bin/modules/adapter.js +3 -3
- package/bin/modules/plugin.js +223 -0
- package/bin/presets.js +26 -0
- package/bin/prompts.js +100 -0
- package/dist/actions/index.d.ts +1 -0
- package/dist/actions/index.js +1 -0
- package/dist/assets/icons/arrow-down.svelte +12 -0
- package/dist/assets/icons/arrow-down.svelte.d.ts +18 -0
- package/dist/assets/icons/arrow-up.svelte +12 -0
- package/dist/assets/icons/arrow-up.svelte.d.ts +18 -0
- package/dist/assets/icons/close-fill.svelte +12 -0
- package/dist/assets/icons/close-fill.svelte.d.ts +18 -0
- package/dist/assets/icons/loading-fill.svelte +2 -0
- package/dist/assets/icons/loading-fill.svelte.d.ts +6 -14
- package/dist/colors.css +0 -0
- package/dist/components/accordion/accordion.css +113 -0
- package/dist/components/accordion/accordion.svelte +155 -0
- package/dist/components/accordion/accordion.svelte.d.ts +4 -0
- package/dist/components/accordion/accordion.svelte.js +24 -0
- package/dist/components/accordion/modules/accordion-item.svelte +94 -0
- package/dist/components/accordion/modules/accordion-item.svelte.d.ts +4 -0
- package/dist/components/accordion/types.d.ts +33 -0
- package/dist/components/accordion/types.js +1 -0
- package/dist/components/alert/alert.css +137 -0
- package/dist/components/alert/alert.svelte +211 -0
- package/dist/components/alert/alert.svelte.d.ts +4 -0
- package/dist/components/alert/types.d.ts +28 -0
- package/dist/components/alert/types.js +1 -0
- package/dist/components/app/app.css +16 -0
- package/dist/components/app/app.svelte +55 -3
- package/dist/components/appbar/appbar.css +48 -0
- package/dist/components/appbar/appbar.svelte +85 -0
- package/dist/components/appbar/appbar.svelte.d.ts +4 -0
- package/dist/components/appbar/types.d.ts +15 -0
- package/dist/components/appbar/types.js +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.css +19 -0
- package/dist/components/aspect-ratio/aspect-ratio.svelte +66 -0
- package/dist/components/aspect-ratio/aspect-ratio.svelte.d.ts +4 -0
- package/dist/components/aspect-ratio/types.d.ts +5 -0
- package/dist/components/aspect-ratio/types.js +1 -0
- package/dist/components/avatar/avatar.css +109 -0
- package/dist/components/avatar/avatar.svelte +160 -0
- package/dist/components/avatar/avatar.svelte.d.ts +4 -0
- package/dist/components/avatar/types.d.ts +22 -0
- package/dist/components/avatar/types.js +1 -0
- package/dist/components/button/button.css +165 -194
- package/dist/components/button/button.svelte +269 -31
- package/dist/components/button/button.svelte.d.ts +2 -2
- package/dist/components/button/types.d.ts +7 -5
- package/dist/components/card/card.css +115 -0
- package/dist/components/card/card.svelte +171 -0
- package/dist/components/card/card.svelte.d.ts +4 -0
- package/dist/components/card/types.d.ts +18 -0
- package/dist/components/card/types.js +1 -0
- package/dist/components/chip/chip.css +231 -0
- package/dist/components/chip/chip.svelte +342 -0
- package/dist/components/chip/chip.svelte.d.ts +4 -0
- package/dist/components/chip/types.d.ts +32 -0
- package/dist/components/chip/types.js +1 -0
- package/dist/components/dialog/dialog.css +136 -0
- package/dist/components/dialog/dialog.svelte +211 -0
- package/dist/components/dialog/dialog.svelte.d.ts +4 -0
- package/dist/components/dialog/types.d.ts +24 -0
- package/dist/components/dialog/types.js +1 -0
- package/dist/components/dropdown/dropdown.css +4 -4
- package/dist/components/dropdown/dropdown.svelte +24 -0
- package/dist/components/icon/icon.css +16 -11
- package/dist/components/icon/icon.svelte +89 -0
- package/dist/components/index.d.ts +17 -1
- package/dist/components/index.js +17 -1
- package/dist/components/list/list.css +221 -0
- package/dist/components/list/list.svelte +243 -0
- package/dist/components/list/list.svelte.d.ts +4 -0
- package/dist/components/list/modules/list-item.svelte +275 -0
- package/dist/components/list/modules/list-item.svelte.d.ts +4 -0
- package/dist/components/list/types.d.ts +33 -0
- package/dist/components/list/types.js +1 -0
- package/dist/components/modal/modal.css +145 -0
- package/dist/components/modal/modal.svelte +248 -0
- package/dist/components/modal/modal.svelte.d.ts +4 -0
- package/dist/components/modal/types.d.ts +26 -0
- package/dist/components/modal/types.js +1 -0
- package/dist/components/popover/popover.css +4 -4
- package/dist/components/popover/popover.svelte +24 -0
- package/dist/components/separator/separator.css +46 -0
- package/dist/components/separator/separator.svelte +85 -0
- package/dist/components/separator/separator.svelte.d.ts +4 -0
- package/dist/components/separator/types.d.ts +11 -0
- package/dist/components/separator/types.js +1 -0
- package/dist/components/spacer/spacer.css +3 -0
- package/dist/components/spacer/spacer.svelte +12 -0
- package/dist/components/spacer/spacer.svelte.d.ts +4 -0
- package/dist/components/spacer/types.d.ts +4 -0
- package/dist/components/spacer/types.js +1 -0
- package/dist/components/textfield/textfield.css +305 -0
- package/dist/components/textfield/textfield.svelte +463 -0
- package/dist/components/textfield/textfield.svelte.d.ts +4 -0
- package/dist/components/textfield/types.d.ts +37 -0
- package/dist/components/textfield/types.js +1 -0
- package/dist/components/toolbar/toolbar.css +129 -0
- package/dist/components/toolbar/toolbar.svelte +182 -0
- package/dist/components/toolbar/toolbar.svelte.d.ts +4 -0
- package/dist/components/toolbar/types.d.ts +27 -0
- package/dist/components/toolbar/types.js +1 -0
- package/dist/components/tooltip/tooltip.css +4 -4
- package/dist/components/tooltip/tooltip.svelte +127 -0
- package/dist/index.d.ts +27 -1
- package/dist/index.js +27 -3
- package/dist/internal/assets.svelte.d.ts +1 -0
- package/dist/internal/assets.svelte.js +13 -0
- package/dist/internal/config/presets.d.ts +136 -0
- package/dist/internal/config/presets.js +121 -0
- package/dist/internal/config/variables.d.ts +20 -0
- package/dist/internal/config/variables.js +20 -0
- package/dist/internal/core/formatter/component.d.ts +5 -0
- package/dist/internal/core/formatter/component.js +63 -0
- package/dist/internal/core/formatter/index.d.ts +6 -0
- package/dist/internal/core/formatter/index.js +30 -0
- package/dist/internal/core/formatter/styles.d.ts +4 -0
- package/dist/internal/core/formatter/styles.js +15 -0
- package/dist/internal/core/formatter/theme.d.ts +5 -0
- package/dist/internal/core/formatter/theme.js +28 -0
- package/dist/internal/core/formatter/typography.d.ts +5 -0
- package/dist/internal/core/formatter/typography.js +12 -0
- package/dist/internal/deepMerge.d.ts +44 -0
- package/dist/internal/deepMerge.js +80 -0
- package/dist/internal/helpers/parser.d.ts +10 -0
- package/dist/internal/helpers/parser.js +92 -0
- package/dist/internal/index.d.ts +1 -0
- package/dist/internal/index.js +1 -0
- package/dist/internal/plugins/vite.d.ts +8 -0
- package/dist/internal/plugins/vite.js +25 -0
- package/dist/internal/ripple.d.ts +12 -0
- package/dist/internal/ripple.js +93 -0
- package/dist/internal/scroll.d.ts +1 -0
- package/dist/internal/scroll.js +6 -0
- package/dist/internal/types/configuration.d.ts +40 -0
- package/dist/internal/types/configuration.js +1 -0
- package/dist/internal/types/index.d.ts +1 -0
- package/dist/internal/types/index.js +1 -0
- package/dist/internal/unit.d.ts +1 -0
- package/dist/internal/unit.js +11 -0
- package/dist/labs/index.d.ts +4 -0
- package/dist/labs/index.js +5 -0
- package/dist/labs/my-component-style-global.svelte +6 -0
- package/dist/labs/my-component-style-global.svelte.d.ts +18 -0
- package/dist/labs/my-component-style-import.svelte +15 -0
- package/dist/labs/my-component-style-import.svelte.d.ts +18 -0
- package/dist/labs/my-component-style-mixed.svelte +23 -0
- package/dist/labs/my-component-style-mixed.svelte.d.ts +18 -0
- package/dist/labs/my-component.svelte +16 -0
- package/dist/labs/my-component.svelte.d.ts +18 -0
- package/dist/labs/style-mixed.css +7 -0
- package/dist/labs/style.css +7 -0
- package/dist/labs.css +25 -0
- package/dist/plugin/css.d.ts +1 -0
- package/dist/plugin/css.js +73 -0
- package/dist/plugin/preset-v2.d.ts +108 -0
- package/dist/plugin/preset-v2.js +126 -0
- package/dist/plugin/vitejs.d.ts +5 -1
- package/dist/plugin/vitejs.js +32 -3
- package/dist/preset.js +2 -2
- package/dist/stores/breakpoints.d.ts +6 -0
- package/dist/stores/breakpoints.js +14 -0
- package/dist/stores/components.d.ts +8 -0
- package/dist/stores/components.js +26 -0
- package/dist/stores/devices.d.ts +6 -0
- package/dist/stores/devices.js +9 -0
- package/dist/stores/index.d.ts +4 -4
- package/dist/stores/index.js +4 -23
- package/dist/stores/themes.d.ts +8 -0
- package/dist/stores/themes.js +34 -0
- package/dist/style/animation.css +42 -0
- package/dist/style/css.js +3 -0
- package/dist/style/normalize.css +2 -0
- package/dist/style/parser/color.js +2 -2
- package/dist/style/parser/device.js +31 -19
- package/dist/style/variable.css +12 -0
- package/dist/utils/convert.d.ts +1 -0
- package/dist/utils/convert.js +17 -0
- package/package.json +21 -5
|
@@ -1,276 +1,247 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
padding-top: var(--btn-spacing-x);
|
|
11
|
-
padding-bottom: var(--btn-spacing-x);
|
|
12
|
-
padding-right: var(--btn-spacing-y);
|
|
13
|
-
padding-left: var(--btn-spacing-y);
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
|
|
16
|
-
border-width: 1px;
|
|
17
|
-
border-style: solid;
|
|
18
|
-
border-radius: var(--btn-radius);
|
|
19
|
-
|
|
20
|
-
/* theme */
|
|
21
|
-
color: var(--btn-color);
|
|
22
|
-
background-color: var(--btn-background);
|
|
23
|
-
border-color: var(--btn-background);
|
|
1
|
+
/* root */
|
|
2
|
+
.kit-button {
|
|
3
|
+
--button-color: var(--on, var(--kit-on-container));
|
|
4
|
+
--button-background: var(--base, var(--kit-container));
|
|
5
|
+
--button-radius: var(--shape, var(--kit-radius-md));
|
|
24
6
|
}
|
|
25
7
|
|
|
26
|
-
.kit-
|
|
27
|
-
|
|
8
|
+
.kit-button {
|
|
9
|
+
position: relative;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
border: none;
|
|
12
|
+
outline: none;
|
|
13
|
+
padding-top: var(--button-spacing-x);
|
|
14
|
+
padding-bottom: var(--button-spacing-x);
|
|
15
|
+
padding-right: var(--button-spacing-y);
|
|
16
|
+
padding-left: var(--button-spacing-y);
|
|
17
|
+
border-radius: var(--button-radius);
|
|
18
|
+
color: var(--button-color);
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.kit-button,
|
|
24
|
+
.kit-button .kit-button-content,
|
|
25
|
+
.kit-button .kit-button-append,
|
|
26
|
+
.kit-button .kit-button-prepend,
|
|
27
|
+
.kit-button .kit-button-loading {
|
|
28
28
|
display: inline-flex;
|
|
29
29
|
align-items: center;
|
|
30
30
|
justify-content: center;
|
|
31
31
|
white-space: nowrap;
|
|
32
|
-
gap: var(--
|
|
32
|
+
gap: calc(var(--prism-spacing) * var(--button-multiplier-gap));
|
|
33
|
+
font-size: calc(var(--prism-spacing) * var(--button-multiplier-font-size));
|
|
33
34
|
}
|
|
34
35
|
|
|
35
|
-
.kit-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
.kit-button::after {
|
|
37
|
+
content: '';
|
|
38
|
+
position: absolute;
|
|
39
|
+
inset: 0;
|
|
40
|
+
background-color: currentColor;
|
|
41
|
+
opacity: 0;
|
|
42
|
+
transition: opacity 150ms ease;
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
border-radius: inherit;
|
|
45
|
+
}
|
|
46
|
+
.kit-button:hover::after {
|
|
47
|
+
opacity: 0.08;
|
|
48
|
+
}
|
|
49
|
+
.kit-button:active::after {
|
|
50
|
+
opacity: 0.12;
|
|
51
|
+
}
|
|
52
|
+
.kit-button:focus-visible::after {
|
|
53
|
+
opacity: 0.12;
|
|
39
54
|
}
|
|
40
55
|
|
|
41
56
|
/* size */
|
|
42
|
-
.kit-
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
font-size:
|
|
47
|
-
|
|
57
|
+
.kit-button[breakpoint]kit-button--size-xs {
|
|
58
|
+
--button-multiplier-x: 12;
|
|
59
|
+
--button-multiplier-y: 2;
|
|
60
|
+
--button-multiplier-gap: 2;
|
|
61
|
+
--button-multiplier-font-size: 6;
|
|
62
|
+
}
|
|
63
|
+
.kit-button[breakpoint]kit-button--size-xs .kit-icon[class*='kit-icon--size-md'] {
|
|
64
|
+
--icon-multiplier-parent-size: 7;
|
|
48
65
|
}
|
|
49
66
|
|
|
50
|
-
.kit-
|
|
51
|
-
--
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
font-size:
|
|
55
|
-
|
|
67
|
+
.kit-button[breakpoint]kit-button--size-sm {
|
|
68
|
+
--button-multiplier-x: 16;
|
|
69
|
+
--button-multiplier-y: 3;
|
|
70
|
+
--button-multiplier-gap: 4;
|
|
71
|
+
--button-multiplier-font-size: 7;
|
|
72
|
+
}
|
|
73
|
+
.kit-button[breakpoint]kit-button--size-sm .kit-icon[class*='kit-icon--size-md'] {
|
|
74
|
+
--icon-multiplier-parent-size: 8;
|
|
56
75
|
}
|
|
57
76
|
|
|
58
|
-
.kit-
|
|
59
|
-
--
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
font-size:
|
|
63
|
-
|
|
77
|
+
.kit-button[breakpoint]kit-button--size-md {
|
|
78
|
+
--button-multiplier-x: 20;
|
|
79
|
+
--button-multiplier-y: 4;
|
|
80
|
+
--button-multiplier-gap: 4;
|
|
81
|
+
--button-multiplier-font-size: 8;
|
|
82
|
+
}
|
|
83
|
+
.kit-button[breakpoint]kit-button--size-md .kit-icon[class*='kit-icon--size-md'] {
|
|
84
|
+
--icon-multiplier-parent-size: 9;
|
|
64
85
|
}
|
|
65
86
|
|
|
66
|
-
.kit-
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
--
|
|
70
|
-
font-size:
|
|
71
|
-
|
|
87
|
+
.kit-button[breakpoint]kit-button--size-lg {
|
|
88
|
+
--button-multiplier-x: 24;
|
|
89
|
+
--button-multiplier-y: 5;
|
|
90
|
+
--button-multiplier-gap: 4;
|
|
91
|
+
--button-multiplier-font-size: 9;
|
|
92
|
+
}
|
|
93
|
+
.kit-button[breakpoint]kit-button--size-lg .kit-icon[class*='kit-icon--size-md'] {
|
|
94
|
+
--icon-multiplier-parent-size: 10;
|
|
72
95
|
}
|
|
73
96
|
|
|
74
|
-
.kit-
|
|
75
|
-
--
|
|
76
|
-
--
|
|
77
|
-
--
|
|
78
|
-
font-size:
|
|
79
|
-
|
|
97
|
+
.kit-button[breakpoint]kit-button--size-xl {
|
|
98
|
+
--button-multiplier-x: 28;
|
|
99
|
+
--button-multiplier-y: 6;
|
|
100
|
+
--button-multiplier-gap: 5;
|
|
101
|
+
--button-multiplier-font-size: 10;
|
|
102
|
+
}
|
|
103
|
+
.kit-button[breakpoint]kit-button--size-xl .kit-icon[class*='kit-icon--size-md'] {
|
|
104
|
+
--icon-multiplier-parent-size: 11;
|
|
80
105
|
}
|
|
81
106
|
|
|
82
107
|
/* density */
|
|
83
|
-
.kit-
|
|
84
|
-
height: calc(var(--
|
|
85
|
-
|
|
86
|
-
--
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
--
|
|
93
|
-
--btn-spacing-y: 0;
|
|
108
|
+
.kit-button:not(.kit-button--icon)[breakpoint]kit-button--density-default {
|
|
109
|
+
height: calc(var(--prism-spacing) * var(--button-multiplier-x));
|
|
110
|
+
--button-spacing-x: 0;
|
|
111
|
+
--button-spacing-y: calc(var(--prism-spacing) * var(--button-multiplier-y));
|
|
112
|
+
}
|
|
113
|
+
.kit-button.kit-button--icon[breakpoint]kit-button--density-default {
|
|
114
|
+
height: calc(var(--prism-spacing) * var(--button-multiplier-x));
|
|
115
|
+
width: calc(var(--prism-spacing) * var(--button-multiplier-x));
|
|
116
|
+
--button-spacing-x: 0;
|
|
117
|
+
--button-spacing-y: 0;
|
|
94
118
|
}
|
|
95
119
|
|
|
96
|
-
.kit-
|
|
97
|
-
height: calc(var(--
|
|
98
|
-
|
|
99
|
-
--
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
--
|
|
106
|
-
--btn-spacing-y: 0;
|
|
120
|
+
.kit-button:not(.kit-button--icon)[breakpoint]kit-button--density-compact {
|
|
121
|
+
height: calc(var(--prism-spacing) * var(--button-multiplier-x) - 0.25rem);
|
|
122
|
+
--button-spacing-x: 0;
|
|
123
|
+
--button-spacing-y: calc(var(--prism-spacing) * var(--button-multiplier-y) - 0.25rem);
|
|
124
|
+
}
|
|
125
|
+
.kit-button.kit-button--icon[breakpoint]kit-button--density-compact {
|
|
126
|
+
height: calc(var(--prism-spacing) * var(--button-multiplier-x) - 0.25rem);
|
|
127
|
+
width: calc(var(--prism-spacing) * var(--button-multiplier-x) - 0.25rem);
|
|
128
|
+
--button-spacing-x: 0;
|
|
129
|
+
--button-spacing-y: 0;
|
|
107
130
|
}
|
|
108
131
|
|
|
109
|
-
.kit-
|
|
110
|
-
height: calc(var(--
|
|
111
|
-
|
|
112
|
-
--
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
--
|
|
119
|
-
--btn-spacing-y: 0;
|
|
132
|
+
.kit-button:not(.kit-button--icon)[breakpoint]kit-button--density-comfortable {
|
|
133
|
+
height: calc(var(--prism-spacing) * var(--button-multiplier-x) + 0.25rem);
|
|
134
|
+
--button-spacing-x: 0;
|
|
135
|
+
--button-spacing-y: calc(var(--prism-spacing) * var(--button-multiplier-y) + 0.25rem);
|
|
136
|
+
}
|
|
137
|
+
.kit-button.kit-button--icon[breakpoint]kit-button--density-comfortable {
|
|
138
|
+
height: calc(var(--prism-spacing) * var(--button-multiplier-x) + 0.25rem);
|
|
139
|
+
width: calc(var(--prism-spacing) * var(--button-multiplier-x) + 0.25rem);
|
|
140
|
+
--button-spacing-x: 0;
|
|
141
|
+
--button-spacing-y: 0;
|
|
120
142
|
}
|
|
121
143
|
|
|
122
144
|
/* variant */
|
|
123
|
-
.kit-
|
|
124
|
-
|
|
125
|
-
background-color: transparent;
|
|
126
|
-
border: 1px solid currentColor;
|
|
145
|
+
.kit-button[breakpoint]kit-button--variant-filled {
|
|
146
|
+
background-color: var(--button-background);
|
|
127
147
|
}
|
|
128
148
|
|
|
129
|
-
.kit-
|
|
130
|
-
--
|
|
131
|
-
background-color:
|
|
132
|
-
border-color: transparent;
|
|
149
|
+
.kit-button[breakpoint]kit-button--variant-outline {
|
|
150
|
+
--button-color: var(--on, var(--kit-on-container));
|
|
151
|
+
background-color: var(--button-background);
|
|
133
152
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
border: 1px
|
|
153
|
+
.kit-button[breakpoint]kit-button--variant-outline::before {
|
|
154
|
+
content: '';
|
|
155
|
+
position: absolute;
|
|
156
|
+
inset: 0;
|
|
157
|
+
border: 1px solid currentColor;
|
|
158
|
+
pointer-events: none;
|
|
159
|
+
border-radius: inherit;
|
|
139
160
|
}
|
|
140
161
|
|
|
141
|
-
.kit-
|
|
142
|
-
--
|
|
162
|
+
.kit-button[breakpoint]kit-button--variant-text {
|
|
163
|
+
--button-color: var(--base, var(--kit-on-container));
|
|
143
164
|
background-color: transparent;
|
|
144
|
-
border
|
|
165
|
+
border: none;
|
|
145
166
|
}
|
|
146
167
|
|
|
147
168
|
/* state */
|
|
148
|
-
.kit-
|
|
169
|
+
.kit-button.kit-button--info[class*='button--variant-filled'] {
|
|
149
170
|
--on: var(--kit-on-info);
|
|
150
171
|
--base: var(--kit-info);
|
|
151
172
|
}
|
|
152
|
-
.kit-
|
|
173
|
+
.kit-button.kit-button--info[class*='button--variant-']:not([class*='variant-filled']) {
|
|
153
174
|
--base: var(--kit-info);
|
|
154
175
|
}
|
|
155
|
-
|
|
156
|
-
.kit-btn.kit-btn--success:not([class*='btn--variant-']) {
|
|
176
|
+
.kit-button.kit-button--success[class*='button--variant-filled'] {
|
|
157
177
|
--on: var(--kit-on-success);
|
|
158
178
|
--base: var(--kit-success);
|
|
159
179
|
}
|
|
160
|
-
.kit-
|
|
180
|
+
.kit-button.kit-button--success[class*='button--variant-']:not([class*='variant-filled']) {
|
|
161
181
|
--base: var(--kit-success);
|
|
162
182
|
}
|
|
163
|
-
|
|
164
|
-
.kit-btn.kit-btn--warning:not([class*='btn--variant-']) {
|
|
183
|
+
.kit-button.kit-button--warning[class*='button--variant-filled'] {
|
|
165
184
|
--on: var(--kit-on-warning);
|
|
166
185
|
--base: var(--kit-warning);
|
|
167
186
|
}
|
|
168
|
-
.kit-
|
|
187
|
+
.kit-button.kit-button--warning[class*='button--variant-']:not([class*='variant-filled']) {
|
|
169
188
|
--base: var(--kit-warning);
|
|
170
189
|
}
|
|
171
|
-
|
|
172
|
-
.kit-btn.kit-btn--error:not([class*='btn--variant-']) {
|
|
190
|
+
.kit-button.kit-button--error[class*='button--variant-filled'] {
|
|
173
191
|
--on: var(--kit-on-error);
|
|
174
192
|
--base: var(--kit-error);
|
|
175
193
|
}
|
|
176
|
-
.kit-
|
|
194
|
+
.kit-button.kit-button--error[class*='button--variant-']:not([class*='variant-filled']) {
|
|
177
195
|
--base: var(--kit-error);
|
|
178
196
|
}
|
|
179
197
|
|
|
180
|
-
/* types */
|
|
181
|
-
.kit-btn:where(.kit-btn:is(input[type='checkbox'])),
|
|
182
|
-
.kit-btn:where(.kit-btn:is(input[type='radio'])) {
|
|
183
|
-
width: auto;
|
|
184
|
-
-webkit-appearance: none;
|
|
185
|
-
-moz-appearance: none;
|
|
186
|
-
appearance: none;
|
|
187
|
-
vertical-align: inherit;
|
|
188
|
-
}
|
|
189
|
-
.kit-btn:is(input[type='checkbox']):after,
|
|
190
|
-
.kit-btn:is(input[type='radio']):after {
|
|
191
|
-
--btn-content: attr(aria-label);
|
|
192
|
-
content: var(--btn-content);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.kit-btn:is(input[type='checkbox']):focus,
|
|
196
|
-
.kit-btn:is(input[type='radio']):focus {
|
|
197
|
-
outline: none;
|
|
198
|
-
outline-offset: inherit;
|
|
199
|
-
box-shadow: none;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
.kit-btn:is(input[type='checkbox']):checked,
|
|
203
|
-
.kit-btn:is(input[type='radio']):checked {
|
|
204
|
-
background-image: initial;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
198
|
/* events */
|
|
208
|
-
.kit-
|
|
209
|
-
.kit-
|
|
210
|
-
|
|
211
|
-
background-color: color-mix(in oklab, var(--btn-background) 90%, var(--kit-scrim));
|
|
212
|
-
border-color: color-mix(in oklab, var(--btn-background) 90%, var(--kit-scrim));
|
|
213
|
-
}
|
|
214
|
-
.kit-btn.kit-btn--active[class*='btn--variant-'],
|
|
215
|
-
.kit-btn[class*='btn--variant-']:is(input[type='radio']):checked,
|
|
216
|
-
.kit-btn[class*='btn--variant-']:is(input[type='checkbox']):checked {
|
|
217
|
-
background-color: color-mix(in oklab, currentColor 15%, transparent);
|
|
218
|
-
border-color: color-mix(in oklab, currentColor 15%, transparent);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.kit-btn:hover:not([class*='btn--variant-']),
|
|
222
|
-
.kit-btn:not([class*='btn--variant-']):is(input[type='radio']):hover,
|
|
223
|
-
.kit-btn:not([class*='btn--variant-']):is(input[type='checkbox']):hover {
|
|
224
|
-
background-color: color-mix(in oklab, var(--btn-background) 85%, var(--kit-scrim));
|
|
225
|
-
border-color: color-mix(in oklab, var(--btn-background) 85%, var(--kit-scrim));
|
|
199
|
+
.kit-button[class*='button--variant-filled']:active,
|
|
200
|
+
.kit-button.kit-button--active[class*='button--variant-filled'] {
|
|
201
|
+
background-color: color-mix(in oklab, var(--button-background) 90%, var(--kit-scrim));
|
|
226
202
|
}
|
|
227
|
-
.kit-
|
|
228
|
-
.kit-
|
|
229
|
-
|
|
230
|
-
background-color: color-mix(in oklab, currentColor 25%, transparent);
|
|
203
|
+
.kit-button.kit-button--active[class*='button--variant-']:not([class*='variant-filled']):active,
|
|
204
|
+
.kit-button.kit-button--active[class*='button--variant-']:not([class*='variant-filled']) {
|
|
205
|
+
background-color: color-mix(in oklab, currentColor 15%, transparent);
|
|
231
206
|
}
|
|
232
207
|
|
|
233
208
|
/* icon */
|
|
234
|
-
.kit-
|
|
235
|
-
|
|
209
|
+
.kit-button i::before,
|
|
210
|
+
.kit-button .kit-icon {
|
|
211
|
+
--base-parent: var(--button-color);
|
|
236
212
|
}
|
|
237
213
|
|
|
238
214
|
/* disabled */
|
|
239
|
-
.kit-
|
|
240
|
-
.kit-
|
|
241
|
-
|
|
242
|
-
input.kit-btn[disabled] {
|
|
215
|
+
.kit-button.kit-button--disabled,
|
|
216
|
+
.kit-button[disabled],
|
|
217
|
+
.kit-button.kit-button--loading {
|
|
243
218
|
pointer-events: none;
|
|
244
219
|
user-select: none;
|
|
245
220
|
cursor: default;
|
|
246
221
|
}
|
|
247
|
-
.kit-
|
|
248
|
-
color: color-mix(in oklab, var(--
|
|
249
|
-
background-color: color-mix(in oklab, var(--
|
|
250
|
-
border-color: color-mix(in oklab, var(--btn-background) 70%, transparent) !important;
|
|
222
|
+
.kit-button[class*='button--variant-filled'].kit-button--disabled {
|
|
223
|
+
color: color-mix(in oklab, var(--button-color) 40%, transparent) !important;
|
|
224
|
+
background-color: color-mix(in oklab, var(--button-background) 70%, transparent) !important;
|
|
251
225
|
}
|
|
252
|
-
.kit-
|
|
253
|
-
color: color-mix(in oklab, var(--
|
|
226
|
+
.kit-button[class*='button--variant-filled'].kit-button--disabled i:before {
|
|
227
|
+
color: color-mix(in oklab, var(--button-color) 40%, transparent) !important;
|
|
254
228
|
}
|
|
255
|
-
.kit-
|
|
256
|
-
.kit-
|
|
257
|
-
|
|
229
|
+
.kit-button[class*='button--variant-']:not([class*='variant-filled']).kit-button--disabled,
|
|
230
|
+
.kit-button[class*='button--variant-']:not([class*='variant-filled']).kit-button--disabled
|
|
231
|
+
i::before {
|
|
232
|
+
color: color-mix(in oklab, var(--button-background) 40%, transparent) !important;
|
|
258
233
|
}
|
|
259
234
|
|
|
260
235
|
/* loading */
|
|
261
|
-
.kit-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
.kit-btn.kit-btn--loading > .kit-btn-content {
|
|
267
|
-
color: transparent;
|
|
268
|
-
opacity: 0;
|
|
236
|
+
.kit-button.kit-button--loading > .kit-button-content,
|
|
237
|
+
.kit-button.kit-button--loading > .kit-button-append,
|
|
238
|
+
.kit-button.kit-button--loading > .kit-button-prepend {
|
|
239
|
+
visibility: hidden;
|
|
269
240
|
}
|
|
270
|
-
.kit-
|
|
241
|
+
.kit-button.kit-button--loading > .kit-button-loading {
|
|
271
242
|
position: absolute;
|
|
272
243
|
min-width: fit-content;
|
|
273
244
|
}
|
|
274
|
-
.kit-
|
|
245
|
+
.kit-button.kit-button--loading > .kit-button-loading .kit-icon-load {
|
|
275
246
|
animation: icon-rotate 1s ease-out infinite;
|
|
276
247
|
}
|