@umbra.ui/core 0.1.18 → 0.1.19
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/dist/components/controls/Button/Button.vue +417 -0
- package/dist/components/controls/Button/README.md +348 -0
- package/dist/components/controls/Button/theme.css +200 -0
- package/dist/components/controls/Checkbox/Checkbox.vue +164 -0
- package/dist/components/controls/Checkbox/README.md +441 -0
- package/dist/components/controls/Checkbox/theme.css +36 -0
- package/dist/components/controls/Dropdown/Dropdown.vue +476 -0
- package/dist/components/controls/Dropdown/README.md +370 -0
- package/dist/components/controls/Dropdown/theme.css +50 -0
- package/dist/components/controls/Dropdown/types.ts +6 -0
- package/dist/components/controls/IconButton/IconButton.vue +267 -0
- package/dist/components/controls/IconButton/README.md +502 -0
- package/dist/components/controls/IconButton/theme.css +89 -0
- package/dist/components/controls/Radio/README.md +591 -0
- package/dist/components/controls/Radio/Radio.vue +89 -0
- package/dist/components/controls/Radio/theme.css +14 -0
- package/dist/components/controls/RangeSlider/README.md +608 -0
- package/dist/components/controls/RangeSlider/RangeSlider.vue +535 -0
- package/dist/components/controls/RangeSlider/theme.css +80 -0
- package/dist/components/controls/SegmentedControl/README.md +587 -0
- package/dist/components/controls/SegmentedControl/SegmentedControl.vue +284 -0
- package/dist/components/controls/SegmentedControl/theme.css +60 -0
- package/dist/components/controls/SegmentedControl/types.ts +5 -0
- package/dist/components/controls/Slider/README.md +627 -0
- package/dist/components/controls/Slider/Slider.vue +260 -0
- package/dist/components/controls/Slider/theme.css +74 -0
- package/dist/components/controls/Stepper/README.md +601 -0
- package/dist/components/controls/Stepper/Stepper.vue +103 -0
- package/dist/components/controls/Stepper/theme.css +53 -0
- package/dist/components/controls/Switch/README.md +667 -0
- package/dist/components/controls/Switch/Switch.vue +127 -0
- package/dist/components/controls/Switch/theme.css +42 -0
- package/dist/components/dialogs/Alert/Alert.vue +218 -0
- package/dist/components/dialogs/Alert/README.md +450 -0
- package/dist/components/dialogs/Alert/theme.css +44 -0
- package/dist/components/dialogs/Alert/types.ts +11 -0
- package/dist/components/dialogs/Toast/README.md +522 -0
- package/dist/components/dialogs/Toast/Toast.vue +296 -0
- package/dist/components/dialogs/Toast/ToastContainer.vue +330 -0
- package/dist/components/dialogs/Toast/theme.css +44 -0
- package/dist/components/dialogs/Toast/types.ts +46 -0
- package/dist/components/dialogs/Toast/useToast.ts +127 -0
- package/dist/components/indicators/ProgressBar/ProgressBar.vue +98 -0
- package/dist/components/indicators/ProgressBar/README.md +744 -0
- package/dist/components/indicators/ProgressBar/theme.css +36 -0
- package/dist/components/indicators/Tooltip/README.md +723 -0
- package/dist/components/indicators/Tooltip/TooltipProvider.vue +142 -0
- package/dist/components/indicators/Tooltip/theme.css +18 -0
- package/dist/components/indicators/Tooltip/tooltip.ts +48 -0
- package/dist/components/indicators/Tooltip/types.ts +15 -0
- package/dist/components/indicators/Tooltip/useTooltip.ts +71 -0
- package/dist/components/inputs/AutogrowTextView/AutogrowTextView.vue +110 -0
- package/dist/components/inputs/AutogrowTextView/README.md +643 -0
- package/dist/components/inputs/AutogrowTextView/theme.css +28 -0
- package/dist/components/inputs/InputCard/InputCard.vue +600 -0
- package/dist/components/inputs/InputCard/README.md +636 -0
- package/dist/components/inputs/InputEmail/InputEmail.vue +698 -0
- package/dist/components/inputs/InputEmail/README.md +764 -0
- package/dist/components/inputs/InputNumber/InputNumber.vue +300 -0
- package/dist/components/inputs/InputNumber/README.md +749 -0
- package/dist/components/inputs/InputPhone/InputPhone.vue +645 -0
- package/dist/components/inputs/InputPhone/README.md +636 -0
- package/dist/components/inputs/InputSecure/InputSecure.vue +646 -0
- package/dist/components/inputs/InputSecure/README.md +771 -0
- package/dist/components/inputs/InputText/InputText.vue +225 -0
- package/dist/components/inputs/InputText/README.md +844 -0
- package/dist/components/inputs/OTP/OTP.vue +349 -0
- package/dist/components/inputs/OTP/README.md +736 -0
- package/dist/components/inputs/OTP/theme.css +50 -0
- package/dist/components/inputs/StringCapture/README.md +718 -0
- package/dist/components/inputs/StringCapture/StringCapture.vue +315 -0
- package/dist/components/inputs/StringCapture/theme.css +86 -0
- package/dist/components/inputs/Tags/README.md +897 -0
- package/dist/components/inputs/Tags/TagBar.vue +793 -0
- package/dist/components/inputs/Tags/TagCreation.vue +219 -0
- package/dist/components/inputs/Tags/TagPicker.vue +380 -0
- package/dist/components/inputs/Tags/tag-bar-styles.ts +354 -0
- package/dist/components/inputs/Tags/theme.css +121 -0
- package/dist/components/inputs/Tags/types.ts +346 -0
- package/dist/components/inputs/search/README.md +759 -0
- package/dist/components/inputs/search/SearchBar.vue +394 -0
- package/dist/components/inputs/search/SearchResults.vue +310 -0
- package/dist/components/inputs/search/theme.css +187 -0
- package/dist/components/inputs/search/types.ts +8 -0
- package/dist/components/inputs/theme.css +102 -0
- package/dist/components/menus/ActionMenu/ActionMenu.vue +383 -0
- package/dist/components/menus/ActionMenu/README.md +825 -0
- package/dist/components/menus/ActionMenu/theme.css +93 -0
- package/dist/components/models/Popover/Popover.vue +551 -0
- package/dist/components/models/Popover/README.md +885 -0
- package/dist/components/models/Popover/theme.css +52 -0
- package/dist/components/models/Sheet/README.md +1159 -0
- package/dist/components/models/Sheet/Sheet.vue +465 -0
- package/dist/components/models/Sheet/theme.css +72 -0
- package/dist/components/models/Sidebar/README.md +1228 -0
- package/dist/components/models/Sidebar/Sidebar.vue +480 -0
- package/dist/components/models/Sidebar/theme.css +90 -0
- package/dist/components/navigation/adaptive/AdaptiveLayout.vue +779 -0
- package/dist/components/navigation/adaptive/AdaptiveLayoutBreadcrumbs.vue +192 -0
- package/dist/components/navigation/adaptive/AdaptiveLayoutMenuButton.vue +149 -0
- package/dist/components/navigation/adaptive/README.md +768 -0
- package/dist/components/navigation/adaptive/types.ts +19 -0
- package/dist/components/navigation/adaptive/useAdaptiveLayout.ts +89 -0
- package/dist/components/navigation/adaptive/useBreakpoints.ts +41 -0
- package/dist/components/navigation/adaptive/useContainerMonitor.ts +214 -0
- package/dist/components/navigation/adaptive/useViewAnimation.ts +721 -0
- package/dist/components/navigation/adaptive/useViewResize.ts +211 -0
- package/dist/components/navigation/navstack/NavigationStack.vue +180 -0
- package/dist/components/navigation/navstack/README.md +994 -0
- package/dist/components/navigation/navstack/useNavigationStack.ts +164 -0
- package/dist/components/navigation/slideover/README.md +1275 -0
- package/dist/components/navigation/slideover/SlideoverController.vue +287 -0
- package/dist/components/navigation/slideover/useSlideoverController.ts +320 -0
- package/dist/components/navigation/splitview/README.md +1115 -0
- package/dist/components/navigation/splitview/SplitViewController.vue +176 -0
- package/dist/components/navigation/splitview/useSplitViewController.ts +388 -0
- package/dist/components/navigation/tabcontroller/README.md +919 -0
- package/dist/components/navigation/tabcontroller/TabController.vue +307 -0
- package/dist/components/navigation/tabcontroller/TabItem.vue +57 -0
- package/dist/components/navigation/tabcontroller/types.ts +24 -0
- package/dist/components/navigation/tabcontroller/useTabController.ts +18 -0
- package/dist/components/navigation/theme.css +91 -0
- package/dist/components/navigation/types.ts +7 -0
- package/dist/components/pickers/CollectionPicker/CollectionPicker.vue +398 -0
- package/dist/components/pickers/CollectionPicker/README.md +1115 -0
- package/dist/components/pickers/CollectionPicker/theme.css +14 -0
- package/dist/components/pickers/CollectionPicker/types.ts +11 -0
- package/dist/components/pickers/ColorPicker/ColorPicker.vue +376 -0
- package/dist/components/pickers/ColorPicker/README.md +1439 -0
- package/dist/components/pickers/ColorPicker/colors.ts +299 -0
- package/dist/components/pickers/ColorPicker/theme.css +32 -0
- package/dist/components/pickers/DatePicker/DatePicker.vue +660 -0
- package/dist/components/pickers/DatePicker/README.md +1195 -0
- package/dist/components/pickers/DatePicker/theme.css +22 -0
- package/dist/components/pickers/FilePicker/FilePicker.vue +534 -0
- package/dist/components/pickers/FilePicker/README.md +1542 -0
- package/dist/components/pickers/FilePicker/theme.css +48 -0
- package/dist/components/pickers/FilePicker/types.ts +10 -0
- package/dist/components/pickers/IconPicker/IconPicker.vue +327 -0
- package/dist/components/pickers/IconPicker/README.md +1161 -0
- package/dist/components/pickers/IconPicker/theme.css +28 -0
- package/dist/components/pickers/theme.css +82 -0
- package/dist/components/views/MarkdownViewer/MarkdownViewer.vue +442 -0
- package/dist/components/views/MarkdownViewer/README.md +833 -0
- package/dist/components/views/MarkdownViewer/theme.css +130 -0
- package/package.json +3 -2
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { RippleAnimOutlineIcon } from "@umbra.ui/icons";
|
|
4
|
+
import type { TooltipConfig } from "../../indicators/Tooltip/types";
|
|
5
|
+
import "./theme.css";
|
|
6
|
+
|
|
7
|
+
export interface Props {
|
|
8
|
+
buttonType?: "default" | "outline" | "capsule" | "capline" | "plain";
|
|
9
|
+
buttonStyle?:
|
|
10
|
+
| "primary"
|
|
11
|
+
| "secondary"
|
|
12
|
+
| "tertiary"
|
|
13
|
+
| "quaternary"
|
|
14
|
+
| "warning"
|
|
15
|
+
| "danger"
|
|
16
|
+
| "info"
|
|
17
|
+
| "success";
|
|
18
|
+
buttonSize?: "compact" | "regular" | "large";
|
|
19
|
+
state?: "normal" | "active" | "disabled";
|
|
20
|
+
title?: string;
|
|
21
|
+
tooltip?: string | TooltipConfig;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const emit = defineEmits(["update:state", "click"]);
|
|
25
|
+
|
|
26
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
27
|
+
buttonType: "default",
|
|
28
|
+
buttonStyle: "primary",
|
|
29
|
+
buttonSize: "regular",
|
|
30
|
+
state: "normal",
|
|
31
|
+
title: "Button Title",
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const handleClick = (event: MouseEvent) => {
|
|
35
|
+
emit("click", event);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const buttonColor = computed(() => {
|
|
39
|
+
switch (props.buttonStyle) {
|
|
40
|
+
case "primary":
|
|
41
|
+
return "var(--button-primary-bg)";
|
|
42
|
+
case "secondary":
|
|
43
|
+
return "var(--button-secondary-bg)";
|
|
44
|
+
case "tertiary":
|
|
45
|
+
return "var(--button-tertiary-bg)";
|
|
46
|
+
case "quaternary":
|
|
47
|
+
return "var(--button-quaternary-bg)";
|
|
48
|
+
case "warning":
|
|
49
|
+
return "var(--button-warning-bg)";
|
|
50
|
+
case "danger":
|
|
51
|
+
return "var(--button-danger-bg)";
|
|
52
|
+
case "info":
|
|
53
|
+
return "var(--button-info-bg)";
|
|
54
|
+
case "success":
|
|
55
|
+
return "var(--button-success-bg)";
|
|
56
|
+
default:
|
|
57
|
+
return "var(--button-primary-bg)";
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
const buttonHoverColor = computed(() => {
|
|
62
|
+
switch (props.buttonStyle) {
|
|
63
|
+
case "primary":
|
|
64
|
+
return "var(--button-primary-hover-bg)";
|
|
65
|
+
case "secondary":
|
|
66
|
+
return "var(--button-secondary-hover-bg)";
|
|
67
|
+
case "tertiary":
|
|
68
|
+
return "var(--button-tertiary-hover-bg)";
|
|
69
|
+
case "quaternary":
|
|
70
|
+
return "var(--button-quaternary-hover-bg)";
|
|
71
|
+
case "warning":
|
|
72
|
+
return "var(--button-warning-hover-bg)";
|
|
73
|
+
case "danger":
|
|
74
|
+
return "var(--button-danger-hover-bg)";
|
|
75
|
+
case "info":
|
|
76
|
+
return "var(--button-info-hover-bg)";
|
|
77
|
+
case "success":
|
|
78
|
+
return "var(--button-success-hover-bg)";
|
|
79
|
+
default:
|
|
80
|
+
return "var(--button-primary-hover-bg)";
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
const buttonColorWithOpacity = computed(() => {
|
|
85
|
+
return `color-mix(in srgb, var(--button-color) 20%, transparent)`;
|
|
86
|
+
});
|
|
87
|
+
</script>
|
|
88
|
+
|
|
89
|
+
<template>
|
|
90
|
+
<div
|
|
91
|
+
v-tooltip="tooltip"
|
|
92
|
+
@click="handleClick"
|
|
93
|
+
:class="[
|
|
94
|
+
$style.container,
|
|
95
|
+
$style[buttonType!],
|
|
96
|
+
$style[buttonStyle!],
|
|
97
|
+
$style[buttonSize!],
|
|
98
|
+
$style[state!],
|
|
99
|
+
]"
|
|
100
|
+
:style="{
|
|
101
|
+
'--button-color': buttonColor,
|
|
102
|
+
'--button-hover-color': buttonHoverColor,
|
|
103
|
+
'--button-color-opacity': buttonColorWithOpacity,
|
|
104
|
+
}"
|
|
105
|
+
>
|
|
106
|
+
<div :class="$style.animated" v-if="state === 'active'">
|
|
107
|
+
<RippleAnimOutlineIcon size="20" />
|
|
108
|
+
</div>
|
|
109
|
+
<p>{{ title }}</p>
|
|
110
|
+
</div>
|
|
111
|
+
</template>
|
|
112
|
+
|
|
113
|
+
<style module>
|
|
114
|
+
.container {
|
|
115
|
+
display: flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
gap: 0.529rem;
|
|
119
|
+
font-weight: 700;
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
user-select: none;
|
|
122
|
+
transition: 0.3s ease-in-out color, 0.3s ease-in-out background-color,
|
|
123
|
+
0.3s ease-in-out transform;
|
|
124
|
+
box-shadow: 0px 1px 0px 0px var(--button-shadow-dark),
|
|
125
|
+
inset 0px 1px 0px 0px var(--button-shadow-light);
|
|
126
|
+
transform: scale(1);
|
|
127
|
+
will-change: transform;
|
|
128
|
+
/* width: fit-content; */
|
|
129
|
+
}
|
|
130
|
+
.container:hover {
|
|
131
|
+
transform: scale(1.02);
|
|
132
|
+
}
|
|
133
|
+
.container:active {
|
|
134
|
+
transform: scale(1);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Style variants */
|
|
138
|
+
.default {
|
|
139
|
+
border-radius: 0.353rem;
|
|
140
|
+
background-color: var(--button-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.default.primary {
|
|
144
|
+
color: var(--button-primary-text);
|
|
145
|
+
}
|
|
146
|
+
.default.secondary {
|
|
147
|
+
color: var(--button-secondary-text);
|
|
148
|
+
}
|
|
149
|
+
.default.tertiary {
|
|
150
|
+
color: var(--button-tertiary-text);
|
|
151
|
+
}
|
|
152
|
+
.default.quaternary {
|
|
153
|
+
color: var(--button-quaternary-text);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.default.warning {
|
|
157
|
+
color: var(--button-warning-text);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.default.danger {
|
|
161
|
+
color: var(--button-danger-text);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.default.info {
|
|
165
|
+
color: var(--button-info-text);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.default.success {
|
|
169
|
+
color: var(--button-success-text);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.default:hover {
|
|
173
|
+
background-color: var(--button-hover-color);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.outline {
|
|
177
|
+
border-radius: 0.353rem;
|
|
178
|
+
background-color: transparent;
|
|
179
|
+
border: 1px solid var(--button-color);
|
|
180
|
+
color: var(--button-color);
|
|
181
|
+
}
|
|
182
|
+
.outline:hover {
|
|
183
|
+
border-color: var(--button-hover-color);
|
|
184
|
+
color: var(--button-hover-color);
|
|
185
|
+
}
|
|
186
|
+
.outline.primary {
|
|
187
|
+
color: var(--button-outline-primary-color);
|
|
188
|
+
border-color: var(--button-outline-primary-color);
|
|
189
|
+
}
|
|
190
|
+
.outline.secondary {
|
|
191
|
+
border-color: var(--button-outline-secondary-color);
|
|
192
|
+
color: var(--button-outline-secondary-color);
|
|
193
|
+
}
|
|
194
|
+
.outline.tertiary {
|
|
195
|
+
border-color: var(--button-outline-tertiary-color);
|
|
196
|
+
color: var(--button-outline-tertiary-color);
|
|
197
|
+
}
|
|
198
|
+
.outline.quaternary {
|
|
199
|
+
border-color: var(--button-outline-quaternary-color);
|
|
200
|
+
color: var(--button-outline-quaternary-color);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.outline.warning {
|
|
204
|
+
border-color: var(--button-outline-warning-color);
|
|
205
|
+
color: var(--button-outline-warning-color);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.outline.danger {
|
|
209
|
+
border-color: var(--button-outline-danger-color);
|
|
210
|
+
color: var(--button-outline-danger-color);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.outline.info {
|
|
214
|
+
border-color: var(--button-outline-info-color);
|
|
215
|
+
color: var(--button-outline-info-color);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.outline.success {
|
|
219
|
+
border-color: var(--button-outline-success-color);
|
|
220
|
+
color: var(--button-outline-success-color);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.capsule {
|
|
224
|
+
border-radius: 999px;
|
|
225
|
+
background-color: var(--button-color);
|
|
226
|
+
}
|
|
227
|
+
.capsule:hover {
|
|
228
|
+
background-color: var(--button-hover-color);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Add text colors for capsule buttons */
|
|
232
|
+
.capsule.primary {
|
|
233
|
+
color: var(--button-primary-text);
|
|
234
|
+
}
|
|
235
|
+
.capsule.secondary {
|
|
236
|
+
color: var(--button-secondary-text);
|
|
237
|
+
}
|
|
238
|
+
.capsule.tertiary {
|
|
239
|
+
color: var(--button-tertiary-text);
|
|
240
|
+
}
|
|
241
|
+
.capsule.quaternary {
|
|
242
|
+
color: var(--button-quaternary-text);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.capsule.warning {
|
|
246
|
+
color: var(--button-warning-text);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.capsule.danger {
|
|
250
|
+
color: var(--button-danger-text);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.capsule.info {
|
|
254
|
+
color: var(--button-info-text);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.capsule.success {
|
|
258
|
+
color: var(--button-success-text);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.capline {
|
|
262
|
+
border-radius: 999px;
|
|
263
|
+
background-color: transparent;
|
|
264
|
+
border: 1px solid var(--button-color);
|
|
265
|
+
color: var(--button-color);
|
|
266
|
+
}
|
|
267
|
+
.capline.primary {
|
|
268
|
+
border-color: var(--button-capline-primary-color);
|
|
269
|
+
color: var(--button-capline-primary-color);
|
|
270
|
+
}
|
|
271
|
+
.capline.secondary {
|
|
272
|
+
border-color: var(--button-capline-secondary-color);
|
|
273
|
+
color: var(--button-capline-secondary-color);
|
|
274
|
+
}
|
|
275
|
+
.capline.tertiary {
|
|
276
|
+
border-color: var(--button-capline-tertiary-color);
|
|
277
|
+
color: var(--button-capline-tertiary-color);
|
|
278
|
+
}
|
|
279
|
+
.capline.quaternary {
|
|
280
|
+
border-color: var(--button-capline-quaternary-color);
|
|
281
|
+
color: var(--button-capline-quaternary-color);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.capline.warning {
|
|
285
|
+
border-color: var(--button-capline-warning-color);
|
|
286
|
+
color: var(--button-capline-warning-color);
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.capline.danger {
|
|
290
|
+
border-color: var(--button-capline-danger-color);
|
|
291
|
+
color: var(--button-capline-danger-color);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.capline.info {
|
|
295
|
+
border-color: var(--button-capline-info-color);
|
|
296
|
+
color: var(--button-capline-info-color);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.capline.success {
|
|
300
|
+
border-color: var(--button-capline-success-color);
|
|
301
|
+
color: var(--button-capline-success-color);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.plain {
|
|
305
|
+
border-radius: 0;
|
|
306
|
+
background-color: transparent;
|
|
307
|
+
border: none;
|
|
308
|
+
box-shadow: none;
|
|
309
|
+
color: var(--button-color);
|
|
310
|
+
padding: 0;
|
|
311
|
+
}
|
|
312
|
+
.plain.primary {
|
|
313
|
+
color: var(--button-plain-primary-color);
|
|
314
|
+
}
|
|
315
|
+
.plain.secondary {
|
|
316
|
+
color: var(--button-plain-secondary-color);
|
|
317
|
+
}
|
|
318
|
+
.plain.tertiary {
|
|
319
|
+
color: var(--button-plain-tertiary-color);
|
|
320
|
+
}
|
|
321
|
+
.plain.quaternary {
|
|
322
|
+
color: var(--button-plain-quaternary-color);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.plain.warning {
|
|
326
|
+
color: var(--button-plain-warning-color);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.plain.danger {
|
|
330
|
+
color: var(--button-plain-danger-color);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.plain.info {
|
|
334
|
+
color: var(--button-plain-info-color);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.plain.success {
|
|
338
|
+
color: var(--button-plain-success-color);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.compact {
|
|
342
|
+
padding-top: 0.471rem;
|
|
343
|
+
padding-bottom: 0.471rem;
|
|
344
|
+
padding-left: 0.706rem;
|
|
345
|
+
padding-right: 0.706rem;
|
|
346
|
+
font-size: var(--footnote);
|
|
347
|
+
}
|
|
348
|
+
.regular {
|
|
349
|
+
padding: 0.529rem;
|
|
350
|
+
min-width: 9rem;
|
|
351
|
+
font-size: var(--callout);
|
|
352
|
+
}
|
|
353
|
+
.large {
|
|
354
|
+
padding-top: 0.706rem;
|
|
355
|
+
padding-bottom: 0.706rem;
|
|
356
|
+
padding-left: 1.176rem;
|
|
357
|
+
padding-right: 1.176rem;
|
|
358
|
+
min-width: 11rem;
|
|
359
|
+
font-size: var(--headline);
|
|
360
|
+
}
|
|
361
|
+
.default.large {
|
|
362
|
+
border-radius: 0.529rem;
|
|
363
|
+
}
|
|
364
|
+
.outline.large {
|
|
365
|
+
border-radius: 0.529rem;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* State variants */
|
|
369
|
+
.normal {
|
|
370
|
+
opacity: 1;
|
|
371
|
+
cursor: pointer;
|
|
372
|
+
}
|
|
373
|
+
.active {
|
|
374
|
+
opacity: var(--button-active-opacity);
|
|
375
|
+
cursor: pointer;
|
|
376
|
+
pointer-events: none;
|
|
377
|
+
}
|
|
378
|
+
.disabled {
|
|
379
|
+
opacity: var(--button-disabled-opacity);
|
|
380
|
+
cursor: not-allowed;
|
|
381
|
+
pointer-events: none;
|
|
382
|
+
filter: grayscale(100%);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.animated {
|
|
386
|
+
position: absolute;
|
|
387
|
+
top: 0;
|
|
388
|
+
left: 0;
|
|
389
|
+
bottom: 0;
|
|
390
|
+
right: 0;
|
|
391
|
+
display: flex;
|
|
392
|
+
align-items: center;
|
|
393
|
+
justify-content: start;
|
|
394
|
+
pointer-events: none;
|
|
395
|
+
background-color: var(--button-color-opacity);
|
|
396
|
+
border-radius: inherit;
|
|
397
|
+
padding: 4px;
|
|
398
|
+
}
|
|
399
|
+
.container.large .animated {
|
|
400
|
+
padding: 8px;
|
|
401
|
+
}
|
|
402
|
+
.container.compact.active .animated {
|
|
403
|
+
justify-content: center;
|
|
404
|
+
}
|
|
405
|
+
.container.compact.active p {
|
|
406
|
+
opacity: 0.25;
|
|
407
|
+
}
|
|
408
|
+
.container.default.active .animated {
|
|
409
|
+
background-color: var(--button-active-overlay);
|
|
410
|
+
}
|
|
411
|
+
.container.capsule.active .animated {
|
|
412
|
+
background-color: var(--button-active-overlay);
|
|
413
|
+
}
|
|
414
|
+
.container.plain.active .animated {
|
|
415
|
+
background-color: transparent;
|
|
416
|
+
}
|
|
417
|
+
</style>
|