@robuust-digital/vue-components 1.3.2 → 2.0.0-rc.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.
- package/README.md +47 -52
- package/dist/_shared/ButtonBase-CQjlJ85F.js +87 -0
- package/dist/_shared/ChevronDownIcon-z-5U4fIb.js +55 -0
- package/dist/_shared/FormInput-abFMz_J4.js +82 -0
- package/dist/_shared/Modal-COVlUEud.js +193 -0
- package/dist/_shared/Tooltip-BKXJoJ1x.js +126 -0
- package/dist/_shared/XMarkIcon-90mcPzBs.js +19 -0
- package/dist/_shared/icon-spinner-CmxIOqaK.js +26 -0
- package/dist/combobox/combobox.css +203 -0
- package/dist/combobox/index.js +349 -0
- package/dist/combobox/styles.css +1 -0
- package/dist/core/accordion.css +47 -0
- package/dist/core/alert.css +169 -0
- package/dist/core/badge.css +121 -0
- package/dist/core/button.css +393 -0
- package/dist/core/checkbox.css +60 -0
- package/dist/core/empty-state.css +56 -0
- package/dist/core/index.js +779 -0
- package/dist/core/input.css +92 -0
- package/dist/core/pagination.css +48 -0
- package/dist/core/radio.css +61 -0
- package/dist/core/select.css +81 -0
- package/dist/core/styles.css +92 -0
- package/dist/core/table.css +87 -0
- package/dist/core/tabs.css +74 -0
- package/dist/core/textarea.css +48 -0
- package/dist/core/theme.css +11 -0
- package/dist/dialogs/drawer.css +72 -0
- package/dist/dialogs/index.js +200 -0
- package/dist/dialogs/modal.css +98 -0
- package/dist/dialogs/styles.css +2 -0
- package/dist/dropdown/dropdown.css +89 -0
- package/dist/dropdown/index.js +136 -0
- package/dist/dropdown/styles.css +1 -0
- package/dist/lightswitch/index.js +48 -0
- package/dist/lightswitch/lightswitch.css +68 -0
- package/dist/lightswitch/styles.css +1 -0
- package/dist/rich-text-editor/index.js +262 -0
- package/dist/rich-text-editor/rich-text.css +83 -0
- package/dist/rich-text-editor/styles.css +1 -0
- package/dist/toast/index.js +100 -0
- package/dist/toast/styles.css +1 -0
- package/dist/toast/toast.css +187 -0
- package/dist/tooltip/index.js +5 -0
- package/dist/tooltip/styles.css +1 -0
- package/dist/tooltip/tooltip.css +69 -0
- package/package.json +55 -52
- package/dist/nuxt-module.js +0 -27
- package/dist/style.css +0 -1
- package/dist/tailwind/base/index.js +0 -72
- package/dist/tailwind/components/accordion.js +0 -59
- package/dist/tailwind/components/alert.js +0 -166
- package/dist/tailwind/components/badge.js +0 -119
- package/dist/tailwind/components/button.js +0 -292
- package/dist/tailwind/components/checkbox.js +0 -70
- package/dist/tailwind/components/combobox.js +0 -226
- package/dist/tailwind/components/drawer.js +0 -104
- package/dist/tailwind/components/dropdown.js +0 -97
- package/dist/tailwind/components/empty-state.js +0 -69
- package/dist/tailwind/components/input.js +0 -101
- package/dist/tailwind/components/lightswitch.js +0 -79
- package/dist/tailwind/components/modal.js +0 -132
- package/dist/tailwind/components/pagination.js +0 -62
- package/dist/tailwind/components/radio.js +0 -75
- package/dist/tailwind/components/rich-text.js +0 -100
- package/dist/tailwind/components/select.js +0 -88
- package/dist/tailwind/components/table.js +0 -109
- package/dist/tailwind/components/tabs.js +0 -95
- package/dist/tailwind/components/textarea.js +0 -53
- package/dist/tailwind/components/toast.js +0 -188
- package/dist/tailwind/components/tooltip.js +0 -74
- package/dist/tailwind/index.js +0 -94
- package/dist/vue-components.es.js +0 -2401
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Base Checkbox variables */
|
|
3
|
+
--rvc-checkbox-input-box-shadow: var(--rvc-base-box-shadow);
|
|
4
|
+
--rvc-checkbox-input-border-color: var(--rvc-base-border-color);
|
|
5
|
+
--rvc-checkbox-gap: calc(var(--spacing) * 2);
|
|
6
|
+
--rvc-checkbox-font-size: var(--text-base);
|
|
7
|
+
--rvc-checkbox-font-weight: var(--font-weight-medium);
|
|
8
|
+
--rvc-checkbox-color: var(--color-slate-950);
|
|
9
|
+
--rvc-checkbox-input-size: calc(var(--spacing) * 4);
|
|
10
|
+
--rvc-checkbox-input-border-radius: var(--radius-sm);
|
|
11
|
+
--rvc-checkbox-input-border-width: 1px;
|
|
12
|
+
--rvc-checkbox-input-checked-bg-color: var(--color-indigo-600);
|
|
13
|
+
--rvc-checkbox-input-checked-border-color: var(--color-indigo-600);
|
|
14
|
+
--rvc-checkbox-input-checked-icon-color: var(--color-white);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@layer components {
|
|
18
|
+
.rvc-checkbox {
|
|
19
|
+
gap: var(--rvc-checkbox-gap);
|
|
20
|
+
position: relative;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
|
|
25
|
+
label {
|
|
26
|
+
font-size: var(--rvc-checkbox-font-size);
|
|
27
|
+
font-weight: var(--rvc-checkbox-font-weight);
|
|
28
|
+
color: var(--rvc-checkbox-color);
|
|
29
|
+
display: block;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.rvc-checkbox-input {
|
|
33
|
+
width: var(--rvc-checkbox-input-size);
|
|
34
|
+
height: var(--rvc-checkbox-input-size);
|
|
35
|
+
border-radius: var(--rvc-checkbox-input-border-radius);
|
|
36
|
+
border-width: var(--rvc-checkbox-input-border-width);
|
|
37
|
+
border-color: var(--rvc-checkbox-input-border-color);
|
|
38
|
+
box-shadow: var(--rvc-checkbox-input-box-shadow);
|
|
39
|
+
margin-top: calc(var(--spacing) * 0.5);
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
|
|
44
|
+
svg {
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
color: transparent;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
input:checked + .rvc-checkbox-input {
|
|
52
|
+
background-color: var(--rvc-checkbox-input-checked-bg-color);
|
|
53
|
+
border-color: var(--rvc-checkbox-input-checked-border-color);
|
|
54
|
+
|
|
55
|
+
svg {
|
|
56
|
+
color: var(--rvc-checkbox-input-checked-icon-color);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rvc-empty-state-border-radius: var(--rvc-base-border-radius);
|
|
3
|
+
--rvc-empty-state-color: var(--color-slate-700);
|
|
4
|
+
--rvc-empty-state-bg-color: var(--color-slate-50);
|
|
5
|
+
--rvc-empty-state-padding-x: calc(var(--spacing) * 12);
|
|
6
|
+
--rvc-empty-state-padding-y: calc(var(--spacing) * 12);
|
|
7
|
+
--rvc-empty-state-title-color: var(--color-slate-900);
|
|
8
|
+
--rvc-empty-state-title-font-weight: var(--font-weight-medium);
|
|
9
|
+
--rvc-empty-state-icon-size: calc(var(--spacing) * 10);
|
|
10
|
+
--rvc-empty-state-anchor-color: var(--color-indigo-600);
|
|
11
|
+
--rvc-empty-state-anchor-color-hover: var(--color-indigo-800);
|
|
12
|
+
--rvc-empty-state-font-size: var(--rvc-base-font-size);
|
|
13
|
+
--rvc-empty-state-anchor-decoration: underline;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@layer components {
|
|
17
|
+
.rvc-empty-state {
|
|
18
|
+
color: var(--rvc-empty-state-color);
|
|
19
|
+
font-size: var(--rvc-empty-state-font-size);
|
|
20
|
+
|
|
21
|
+
&.rvc-empty-state-bg {
|
|
22
|
+
background-color: var(--rvc-empty-state-bg-color);
|
|
23
|
+
padding: var(--rvc-empty-state-padding-y) var(--rvc-empty-state-padding-x);
|
|
24
|
+
border-radius: var(--rvc-empty-state-border-radius);
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
a {
|
|
31
|
+
text-decoration: var(--rvc-empty-state-anchor-decoration);
|
|
32
|
+
color: var(--rvc-empty-state-anchor-color);
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
color: var(--rvc-empty-state-anchor-color-hover);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.rvc-button {
|
|
40
|
+
margin-top: calc(var(--spacing) * 4);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.rvc-empty-state-title {
|
|
44
|
+
color: var(--rvc-empty-state-title-color);
|
|
45
|
+
font-weight: var(--rvc-empty-state-title-font-weight);
|
|
46
|
+
margin-bottom: calc(var(--spacing) * 2);
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.rvc-empty-state-icon {
|
|
51
|
+
width: var(--rvc-empty-state-icon-size);
|
|
52
|
+
height: var(--rvc-empty-state-icon-size);
|
|
53
|
+
margin-bottom: calc(var(--spacing) * 2);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|