srcdev-nuxt-components 4.0.5 → 5.0.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 +171 -2
- package/assets/styles/extends-layer/srcdev-components/display-prompt-core/index.css +70 -0
- package/assets/styles/extends-layer/srcdev-components/index.css +2 -0
- package/assets/styles/extends-layer/srcdev-components/themes/_error.css +15 -0
- package/assets/styles/extends-layer/srcdev-components/themes/_info.css +15 -0
- package/assets/styles/extends-layer/srcdev-components/themes/_success.css +15 -0
- package/assets/styles/extends-layer/srcdev-components/themes/_warning.css +15 -0
- package/assets/styles/main.css +2 -5
- package/assets/styles/{forms/variables/_theme.css → setup/_head.css} +0 -6
- package/assets/styles/{a11y → setup/a11y}/_variables.css +2 -0
- package/assets/styles/setup/a11y/index.css +2 -0
- package/assets/styles/setup/index.css +5 -0
- package/assets/styles/setup/typography/index.css +2 -0
- package/assets/styles/setup/typography/utility-classes/_generic-font-classes.css +192 -0
- package/assets/styles/setup/typography/utility-classes/_generic-font-variation-settings.css +29 -0
- package/assets/styles/setup/typography/utility-classes/_generic-font-weights.css +41 -0
- package/assets/styles/setup/typography/utility-classes/index.css +3 -0
- package/assets/styles/setup/typography/vars/index.css +1 -0
- package/assets/styles/setup/utility-classes/_page.css +49 -0
- package/assets/styles/setup/utility-classes/index.css +3 -0
- package/assets/styles/setup/variables/index.css +1 -0
- package/components/accordian/AccordianCore.vue +46 -0
- package/components/{presentation/container-glow → container-glow}/ContainerGlowCore.vue +80 -80
- package/components/content-grid/ContentGrid.vue +85 -0
- package/components/display-details/DisplayDetailsCore.vue +49 -60
- package/components/{functional/display-dialog → display-dialog}/DisplayDialogCore.vue +49 -38
- package/components/display-prompt/DisplayPromptCore.vue +187 -0
- package/components/expanding-panel/ExpandingPanel.vue +124 -0
- package/components/responsive-header/NavigationItems.vue +23 -18
- package/components/responsive-header/ResponsiveHeader.vue +345 -278
- package/components/{presentation/tabs → tabs}/TabsCore.vue +27 -58
- package/composables/useDialogControls.ts +22 -1
- package/package.json +1 -1
- package/assets/styles/a11y/index.css +0 -2
- package/assets/styles/forms/index.css +0 -2
- package/assets/styles/forms/themes/_error.css +0 -77
- package/assets/styles/forms/themes/_ghost.css +0 -77
- package/assets/styles/forms/themes/_input-action.css +0 -20
- package/assets/styles/forms/themes/_primary.css +0 -82
- package/assets/styles/forms/themes/_secondary.css +0 -77
- package/assets/styles/forms/themes/_success.css +0 -77
- package/assets/styles/forms/themes/_tertiary.css +0 -77
- package/assets/styles/forms/themes/_warning.css +0 -77
- package/assets/styles/forms/themes/index.css +0 -8
- package/assets/styles/forms/variables/_sizes.css +0 -82
- package/assets/styles/forms/variables/index.css +0 -2
- package/assets/styles/typography/index.css +0 -2
- package/assets/styles/typography/utils/_font-classes.css +0 -160
- package/assets/styles/typography/utils/_weights.css +0 -69
- package/assets/styles/typography/utils/index.css +0 -2
- package/assets/styles/typography/variables/_colors.css +0 -14
- package/assets/styles/typography/variables/index.css +0 -2
- package/assets/styles/utils/_animations.css +0 -42
- package/assets/styles/utils/_canvasWidths.css +0 -18
- package/assets/styles/utils/_display.css +0 -7
- package/assets/styles/utils/_page.css +0 -27
- package/assets/styles/utils/_placement.css +0 -73
- package/assets/styles/utils/index.css +0 -7
- package/assets/styles/variables/components/_accordian.css +0 -7
- package/assets/styles/variables/components/_container-glow-core.css +0 -16
- package/assets/styles/variables/components/_display-dialog-core.css +0 -35
- package/assets/styles/variables/components/_tabs.css +0 -18
- package/assets/styles/variables/components/display-prompt-core/_scaffolding.css +0 -57
- package/assets/styles/variables/components/display-prompt-core/index.css +0 -2
- package/assets/styles/variables/components/display-prompt-core/themes/_error.css +0 -39
- package/assets/styles/variables/components/display-prompt-core/themes/_info.css +0 -39
- package/assets/styles/variables/components/display-prompt-core/themes/_success.css +0 -39
- package/assets/styles/variables/components/display-prompt-core/themes/_warning.css +0 -39
- package/assets/styles/variables/components/index.css +0 -5
- package/assets/styles/variables/index.css +0 -2
- package/components/functional/accordian/AccordianCore.vue +0 -138
- package/components/presentation/display-prompt/DisplayPromptCore.vue +0 -150
- /package/assets/styles/{variables/components/display-prompt-core → extends-layer/srcdev-components}/themes/index.css +0 -0
- /package/assets/styles/{a11y → setup/a11y}/_utils.css +0 -0
- /package/assets/styles/{typography/variables/_reponsive-font-size.css → setup/typography/vars/_reponsive-font-sizes.css} +0 -0
- /package/assets/styles/{utils → setup/utility-classes}/_margin-helpers.css +0 -0
- /package/assets/styles/{utils → setup/utility-classes}/_padding-helpers.css +0 -0
- /package/assets/styles/{variables → setup/variables}/colors/_blue.css +0 -0
- /package/assets/styles/{variables → setup/variables}/colors/_gray.css +0 -0
- /package/assets/styles/{variables → setup/variables}/colors/_green.css +0 -0
- /package/assets/styles/{variables → setup/variables}/colors/_orange.css +0 -0
- /package/assets/styles/{variables → setup/variables}/colors/_red.css +0 -0
- /package/assets/styles/{variables → setup/variables}/colors/_yellow.css +0 -0
- /package/assets/styles/{variables/colors/colors.css → setup/variables/colors/index.css} +0 -0
- /package/components/{functional/display-dialog → display-dialog}/variants/DisplayDialogConfirm.vue +0 -0
- /package/components/{functional/display-dialog → display-dialog}/variants/DisplayDialogScrollableContent.vue +0 -0
- /package/components/{presentation/display-grid → display-grid}/DisplayGridCore.vue +0 -0
- /package/components/{presentation/display-prompt → display-prompt}/variants/DisplayPromptError.vue +0 -0
- /package/components/{presentation/layout-grids → layout-grids}/LayoutGridA.vue +0 -0
- /package/components/{presentation/layout-grids → layout-grids}/LayoutGridB.vue +0 -0
- /package/components/{presentation/layout-row → layout-row}/LayoutRow.vue +0 -0
- /package/components/{presentation/masonry-grid → masonry-grid}/MasonryGrid.vue +0 -0
- /package/components/{presentation/masonry-grid-sorted → masonry-grid-sorted}/MasonryGridSorted.vue +0 -0
- /package/components/{functional/pop-over → pop-over}/PopOver.vue +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tabs-core" :class="`axis-${axis}`">
|
|
3
3
|
<ul role="tablist" aria-labelledby="channel-name" ref="tabsNavRef" @mouseleave="resetHoverToActivePosition()" class="tabs-list" :class="[elementClasses]">
|
|
4
|
-
<li v-for="(index, key) in
|
|
4
|
+
<li v-for="(index, key) in itemCount" :key="key">
|
|
5
5
|
<button
|
|
6
6
|
@click.prevent="navItemClicked($event)"
|
|
7
7
|
@mouseover="navItemHovered($event)"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</li>
|
|
18
18
|
</ul>
|
|
19
19
|
<div class="tab-content-wrapper">
|
|
20
|
-
<div v-for="(item, key) in
|
|
20
|
+
<div v-for="(item, key) in itemCount" :key="key" class="tab-content" :aria-labelledby="`tab-${key}-trigger`" :id="`tab-${key}-content`" role="region" aria-hidden="true" ref="tabsContentRefs">
|
|
21
21
|
<slot :name="`tab-${key}-content`"></slot>
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script setup lang="ts">
|
|
28
|
-
import type { ITabNav } from '@/types/types.tabs';
|
|
29
|
-
|
|
30
28
|
const props = defineProps({
|
|
31
29
|
tag: {
|
|
32
30
|
type: String as PropType<string>,
|
|
@@ -40,9 +38,9 @@ const props = defineProps({
|
|
|
40
38
|
type: Number as PropType<number>,
|
|
41
39
|
default: 200,
|
|
42
40
|
},
|
|
43
|
-
|
|
44
|
-
type:
|
|
45
|
-
|
|
41
|
+
itemCount: {
|
|
42
|
+
type: Number as PropType<number>,
|
|
43
|
+
default: 0,
|
|
46
44
|
},
|
|
47
45
|
trackHover: {
|
|
48
46
|
type: Boolean as PropType<boolean>,
|
|
@@ -76,24 +74,6 @@ onMounted(() => {
|
|
|
76
74
|
|
|
77
75
|
<style lang="css">
|
|
78
76
|
.tabs-core {
|
|
79
|
-
/*
|
|
80
|
-
* CSS var within /assets/styles/components/tabs.css
|
|
81
|
-
*/
|
|
82
|
-
--_tabs-default-text: var(--tabs-default-text, light-dark(var(--gray-12), var(--gray-0)));
|
|
83
|
-
--_tabs-active-bg: var(--tabs-active-bg, light-dark(var(--gray-12), var(--gray-0)));
|
|
84
|
-
--_tabs-active-text: var(--tabs-active-text, light-dark(var(--gray-0), var(--gray-12)));
|
|
85
|
-
--_tabs-active-indicator: var(--tabs-active-indicator, light-dark(var(--gray-12), var(--gray-0)));
|
|
86
|
-
--_tabs-hovered-bg: var(--tabs-hovered-bg, light-dark(var(--gray-7), var(--gray-3)));
|
|
87
|
-
--_tabs-hovered-text: var(--tabs-hovered-text, light-dark(var(--gray-0), var(--gray-12)));
|
|
88
|
-
--_tabs-border-bottom: var(--tabs-border-bottom, 0.1rem solid var(--gray-6));
|
|
89
|
-
--_tabs-content-border: var(--tabs-content-border, 0.1rem solid var(--gray-6));
|
|
90
|
-
--_tabs-content-outline: var(--tabs-content-outline, 0.1rem solid var(--gray-6));
|
|
91
|
-
--_tabs-content-bg: var(--tabs-content-bg, light-dark(var(--gray-12), var(--gray-0)));
|
|
92
|
-
--_tabs-content-start-start-radius: var(--tabs-content-start-start-radius, 0);
|
|
93
|
-
--_tabs-content-start-end-radius: var(--tabs-content-start-end-radius, 0);
|
|
94
|
-
--_tabs-content-end-start-radius: var(--tabs-content-end-start-radius, 0);
|
|
95
|
-
--_tabs-content-end-end-radius: var(--tabs-content-end-end-radius, 0);
|
|
96
|
-
|
|
97
77
|
.tabs-list {
|
|
98
78
|
position: relative;
|
|
99
79
|
display: flex;
|
|
@@ -163,24 +143,24 @@ onMounted(() => {
|
|
|
163
143
|
border-bottom: var(--_tabs-border-bottom);
|
|
164
144
|
|
|
165
145
|
.nav__hovered {
|
|
166
|
-
background: var(--
|
|
167
|
-
color: var(--
|
|
146
|
+
background: light-dark(var(--gray-7), var(--gray-3));
|
|
147
|
+
color: light-dark(var(--gray-0), var(--gray-12));
|
|
168
148
|
}
|
|
169
149
|
|
|
170
150
|
.nav__active {
|
|
171
|
-
background: var(--
|
|
172
|
-
color: var(--
|
|
151
|
+
background: light-dark(var(--gray-12), var(--gray-0));
|
|
152
|
+
color: light-dark(var(--gray-0), var(--gray-12));
|
|
173
153
|
}
|
|
174
154
|
|
|
175
155
|
.nav__active-indicator {
|
|
176
|
-
background: var(--
|
|
156
|
+
background: light-dark(var(--gray-12), var(--gray-0));
|
|
177
157
|
height: 0.4rem;
|
|
178
158
|
}
|
|
179
159
|
|
|
180
160
|
.tabs-list-item {
|
|
181
161
|
background: transparent;
|
|
182
162
|
border: 0;
|
|
183
|
-
color: var(--
|
|
163
|
+
color: light-dark(var(--gray-12), var(--gray-0));
|
|
184
164
|
cursor: pointer;
|
|
185
165
|
font: inherit;
|
|
186
166
|
text-transform: uppercase;
|
|
@@ -189,16 +169,15 @@ onMounted(() => {
|
|
|
189
169
|
padding: 1em 2em;
|
|
190
170
|
|
|
191
171
|
&:hover {
|
|
192
|
-
|
|
193
|
-
color: var(--_tabs-hovered-text);
|
|
172
|
+
color: light-dark(var(--gray-0), var(--gray-12));
|
|
194
173
|
}
|
|
195
174
|
|
|
196
175
|
&[aria-selected='true'] {
|
|
197
|
-
color: var(--
|
|
176
|
+
color: light-dark(var(--gray-0), var(--gray-12));
|
|
198
177
|
}
|
|
199
178
|
|
|
200
179
|
&.transitioning {
|
|
201
|
-
color: var(--
|
|
180
|
+
color: light-dark(var(--gray-0), var(--gray-12));
|
|
202
181
|
}
|
|
203
182
|
}
|
|
204
183
|
}
|
|
@@ -207,29 +186,19 @@ onMounted(() => {
|
|
|
207
186
|
display: grid;
|
|
208
187
|
grid-template-areas: 'element-stack';
|
|
209
188
|
|
|
189
|
+
background-color: light-dark(var(--gray-9), var(--gray-10));
|
|
190
|
+
border: 0.1rem solid var(--gray-6);
|
|
191
|
+
border-start-start-radius: 0;
|
|
192
|
+
border-start-end-radius: 0;
|
|
193
|
+
border-end-start-radius: 0;
|
|
194
|
+
border-end-end-radius: 0;
|
|
195
|
+
outline: 0.1rem solid var(--gray-6);
|
|
196
|
+
|
|
210
197
|
.tab-content {
|
|
211
198
|
grid-area: element-stack;
|
|
212
199
|
display: none;
|
|
213
200
|
}
|
|
214
201
|
}
|
|
215
|
-
|
|
216
|
-
/*
|
|
217
|
-
* User configurable variables
|
|
218
|
-
*/
|
|
219
|
-
|
|
220
|
-
.tab-content-wrapper {
|
|
221
|
-
background: var(--_tabs-content-bg);
|
|
222
|
-
border: var(--_tabs-content-border);
|
|
223
|
-
border-start-start-radius: var(--_tabs-content-start-start-radius);
|
|
224
|
-
border-start-end-radius: var(--_tabs-content-start-end-radius);
|
|
225
|
-
border-end-start-radius: var(--_tabs-content-end-start-radius);
|
|
226
|
-
border-end-end-radius: var(--_tabs-content-end-end-radius);
|
|
227
|
-
|
|
228
|
-
outline: var(--_tabs-content-outline);
|
|
229
|
-
|
|
230
|
-
/* .tab-content {
|
|
231
|
-
} */
|
|
232
|
-
}
|
|
233
202
|
}
|
|
234
203
|
|
|
235
204
|
/*
|
|
@@ -253,17 +222,17 @@ onMounted(() => {
|
|
|
253
222
|
text-align: left;
|
|
254
223
|
width: 100%;
|
|
255
224
|
|
|
256
|
-
|
|
257
|
-
color: var(--
|
|
225
|
+
&:hover {
|
|
226
|
+
/* color: light-dark(var(--gray-0), var(--gray-12)); */
|
|
258
227
|
}
|
|
259
228
|
|
|
260
229
|
&[aria-selected='true'] {
|
|
261
|
-
color: var(--_tabs-active-text);
|
|
230
|
+
/* color: var(--_tabs-active-text); */
|
|
262
231
|
}
|
|
263
232
|
|
|
264
233
|
&.transitioning {
|
|
265
|
-
color: var(--
|
|
266
|
-
}
|
|
234
|
+
/* color: light-dark(var(--gray-0), var(--gray-12)); */
|
|
235
|
+
}
|
|
267
236
|
}
|
|
268
237
|
|
|
269
238
|
.nav__hovered {
|
|
@@ -3,7 +3,15 @@ export const useDialogControls = () => {
|
|
|
3
3
|
[key: string]: boolean;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
+
interface DialogCallbacks {
|
|
7
|
+
[key: string]: {
|
|
8
|
+
onConfirm?: () => void;
|
|
9
|
+
onCancel?: () => void;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
6
13
|
const dialogsConfig = reactive<DialogConfig>({});
|
|
14
|
+
const dialogCallbacks = reactive<DialogCallbacks>({});
|
|
7
15
|
|
|
8
16
|
function initialiseDialogs(dialogIds: string[]) {
|
|
9
17
|
dialogIds.forEach((id) => {
|
|
@@ -11,7 +19,19 @@ export const useDialogControls = () => {
|
|
|
11
19
|
});
|
|
12
20
|
}
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
function registerDialogCallbacks(dialogId: string, callbacks: { onConfirm?: () => void; onCancel?: () => void }) {
|
|
23
|
+
dialogCallbacks[dialogId] = callbacks;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const controlDialogs = (name: string, state: boolean, action?: 'confirm' | 'cancel') => {
|
|
27
|
+
if (!state && action && dialogCallbacks[name]) {
|
|
28
|
+
// Execute callback before closing dialog
|
|
29
|
+
if (action === 'confirm' && dialogCallbacks[name].onConfirm) {
|
|
30
|
+
dialogCallbacks[name].onConfirm!();
|
|
31
|
+
} else if (action === 'cancel' && dialogCallbacks[name].onCancel) {
|
|
32
|
+
dialogCallbacks[name].onCancel!();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
15
35
|
dialogsConfig[name] = state;
|
|
16
36
|
};
|
|
17
37
|
|
|
@@ -19,5 +39,6 @@ export const useDialogControls = () => {
|
|
|
19
39
|
dialogsConfig,
|
|
20
40
|
controlDialogs,
|
|
21
41
|
initialiseDialogs,
|
|
42
|
+
registerDialogCallbacks,
|
|
22
43
|
};
|
|
23
44
|
};
|
package/package.json
CHANGED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
[data-form-theme='error'] {
|
|
3
|
-
--theme-form-input-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
4
|
-
--theme-form-input-border: var(--red-8);
|
|
5
|
-
--theme-form-input-border-active: var(--red-2);
|
|
6
|
-
--theme-form-input-border-focus: var(--red-2);
|
|
7
|
-
--theme-form-input-outline: white;
|
|
8
|
-
--theme-form-input-outline-active: var(--red-6);
|
|
9
|
-
--theme-form-input-outline-focus: var(--red-6);
|
|
10
|
-
--theme-form-input-text: light-dark(var(--gray-10), var(--gray-11));
|
|
11
|
-
|
|
12
|
-
--theme-form-focus-box-shadow: light-dark(var(--red-12), var(--red-2));
|
|
13
|
-
|
|
14
|
-
--theme-form-checkbox-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
15
|
-
--theme-form-checkbox-border: light-dark(var(--red-12), var(--red-12));
|
|
16
|
-
--theme-form-checkbox-outline: light-dark(var(--red-1), var(--red-1));
|
|
17
|
-
--theme-form-checkbox-shadow: transparent;
|
|
18
|
-
--theme-form-checkbox-shadow-focus: var(--red-6);
|
|
19
|
-
--theme-form-checkbox-symbol: var(--red-12);
|
|
20
|
-
|
|
21
|
-
--theme-form-radio-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
22
|
-
--theme-form-radio-border: light-dark(var(--red-12), var(--red-12));
|
|
23
|
-
--theme-form-radio-outline: light-dark(var(--red-1), var(--red-1));
|
|
24
|
-
--theme-form-radio-shadow: transparent;
|
|
25
|
-
--theme-form-radio-shadow-focus: var(--red-6);
|
|
26
|
-
--theme-form-radio-symbol: var(--red-12);
|
|
27
|
-
|
|
28
|
-
--theme-form-range-accent-color: light-dark(var(--red-12), var(--red-3));
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* ToggleSwitch
|
|
32
|
-
**/
|
|
33
|
-
--theme-form-toggle-bg-off: light-dark(var(--gray-1), var(--gray-4));
|
|
34
|
-
--theme-form-toggle-bg-on: light-dark(var(--gray-1), var(--gray-6));
|
|
35
|
-
|
|
36
|
-
--theme-form-toggle-border: var(--form-element-border-width) solid light-dark(var(--red-12), var(--red-1));
|
|
37
|
-
|
|
38
|
-
--theme-form-toggle-outline: var(--form-element-outline-width) solid light-dark(var(--red-12), var(--red-12));
|
|
39
|
-
--theme-form-toggle-symbol-off: var(--orange-12);
|
|
40
|
-
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
41
|
-
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
42
|
-
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
43
|
-
|
|
44
|
-
/*
|
|
45
|
-
* Checkbox as button
|
|
46
|
-
**/
|
|
47
|
-
|
|
48
|
-
--theme-checkbox-radio-button-bg-default: light-dark(var(--red-1), var(--red-1));
|
|
49
|
-
|
|
50
|
-
--theme-checkbox-radio-button-border-default: light-dark(var(--red-12), var(--red-12));
|
|
51
|
-
--theme-checkbox-radio-button-border-width: 0.1rem;
|
|
52
|
-
|
|
53
|
-
--theme-checkbox-radio-button-outline-default: light-dark(var(--red-5), var(--red-5));
|
|
54
|
-
--theme-checkbox-radio-button-outline-width: 0.1rem;
|
|
55
|
-
|
|
56
|
-
--theme-checkbox-radio-button-label-default: light-dark(var(--red-12), var(--red-12));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[data-btn-theme='error'] {
|
|
60
|
-
--theme-btn-bg: var(--red-12);
|
|
61
|
-
--theme-btn-border: var(--red-0);
|
|
62
|
-
--theme-btn-outline: var(--red-12);
|
|
63
|
-
--theme-btn-text: var(--red-0);
|
|
64
|
-
|
|
65
|
-
--theme-btn-bg-hover: var(--red-0);
|
|
66
|
-
--theme-btn-border-hover: var(--red-12);
|
|
67
|
-
--theme-btn-outline-hover: var(--red-0);
|
|
68
|
-
--theme-btn-text-hover: var(--red-12);
|
|
69
|
-
|
|
70
|
-
--theme-btn-bg-focus: var(--red-0);
|
|
71
|
-
--theme-btn-border-focus: var(--red-12);
|
|
72
|
-
--theme-btn-outline-focus: var(--red-0);
|
|
73
|
-
--theme-btn-text-focus: var(--red-12);
|
|
74
|
-
|
|
75
|
-
--theme-form-focus-box-shadow: light-dark(var(--red-12), var(--red-2));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
[data-form-theme='ghost'] {
|
|
3
|
-
--theme-form-input-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
4
|
-
--theme-form-input-border: var(--gray-8);
|
|
5
|
-
--theme-form-input-border-active: var(--gray-2);
|
|
6
|
-
--theme-form-input-border-focus: var(--gray-2);
|
|
7
|
-
--theme-form-input-outline: white;
|
|
8
|
-
--theme-form-input-outline-active: var(--gray-6);
|
|
9
|
-
--theme-form-input-outline-focus: var(--gray-6);
|
|
10
|
-
--theme-form-input-text: light-dark(var(--gray-10), var(--gray-11));
|
|
11
|
-
|
|
12
|
-
--theme-form-focus-box-shadow: light-dark(var(--gray-12), var(--gray-2));
|
|
13
|
-
|
|
14
|
-
--theme-form-checkbox-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
15
|
-
--theme-form-checkbox-border: light-dark(var(--gray-12), var(--gray-12));
|
|
16
|
-
--theme-form-checkbox-outline: light-dark(var(--gray-1), var(--gray-1));
|
|
17
|
-
--theme-form-checkbox-shadow: transparent;
|
|
18
|
-
--theme-form-checkbox-shadow-focus: var(--gray-6);
|
|
19
|
-
--theme-form-checkbox-symbol: var(--gray-12);
|
|
20
|
-
|
|
21
|
-
--theme-form-radio-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
22
|
-
--theme-form-radio-border: light-dark(var(--gray-12), var(--gray-12));
|
|
23
|
-
--theme-form-radio-outline: light-dark(var(--gray-1), var(--gray-1));
|
|
24
|
-
--theme-form-radio-shadow: transparent;
|
|
25
|
-
--theme-form-radio-shadow-focus: var(--gray-6);
|
|
26
|
-
--theme-form-radio-symbol: var(--gray-12);
|
|
27
|
-
|
|
28
|
-
--theme-form-range-accent-color: light-dark(var(--gray-12), var(--gray-3));
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* ToggleSwitch
|
|
32
|
-
**/
|
|
33
|
-
--theme-form-toggle-bg-off: light-dark(var(--gray-1), var(--gray-4));
|
|
34
|
-
--theme-form-toggle-bg-on: light-dark(var(--gray-1), var(--gray-6));
|
|
35
|
-
--form-element-border-width: 0.1rem;
|
|
36
|
-
--theme-form-toggle-border: var(--form-element-border-width) solid light-dark(var(--gray-12), var(--gray-1));
|
|
37
|
-
--form-element-border-width: 0.1rem;
|
|
38
|
-
--theme-form-toggle-outline: var(--form-element-outline-width) solid light-dark(var(--gray-12), var(--gray-12));
|
|
39
|
-
--theme-form-toggle-symbol-off: var(--gray-4);
|
|
40
|
-
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
41
|
-
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
42
|
-
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
43
|
-
|
|
44
|
-
/*
|
|
45
|
-
* Checkbox as button
|
|
46
|
-
**/
|
|
47
|
-
|
|
48
|
-
--theme-checkbox-radio-button-bg-default: light-dark(var(--gray-1), var(--gray-4));
|
|
49
|
-
|
|
50
|
-
--theme-checkbox-radio-button-border-default: light-dark(var(--gray-12), var(--gray-12));
|
|
51
|
-
--theme-checkbox-radio-button-border-width: 0.1rem;
|
|
52
|
-
|
|
53
|
-
--theme-checkbox-radio-button-outline-default: light-dark(var(--gray-5), var(--gray-5));
|
|
54
|
-
--theme-checkbox-radio-button-outline-width: 0.1rem;
|
|
55
|
-
|
|
56
|
-
--theme-checkbox-radio-button-label-default: light-dark(var(--gray-12), var(--gray-12));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[data-btn-theme='ghost'] {
|
|
60
|
-
--theme-btn-bg: transparent;
|
|
61
|
-
--theme-btn-border: var(--gray-0);
|
|
62
|
-
--theme-btn-outline: var(--gray-12);
|
|
63
|
-
--theme-btn-text: light-dark(var(--gray-12), var(--gray-0));
|
|
64
|
-
|
|
65
|
-
--theme-btn-bg-hover: light-dark(var(--gray-2), var(--gray-8));
|
|
66
|
-
--theme-btn-border-hover: light-dark(var(--gray-12), var(--gray-0));
|
|
67
|
-
--theme-btn-outline-hover: light-dark(var(--gray-12), var(--gray-0));
|
|
68
|
-
--theme-btn-text-hover: light-dark(var(--gray-12), var(--gray-0));
|
|
69
|
-
|
|
70
|
-
--theme-btn-bg-focus: light-dark(var(--gray-2), var(--gray-8));
|
|
71
|
-
--theme-btn-border-focus: light-dark(var(--gray-12), var(--gray-0));
|
|
72
|
-
--theme-btn-outline-focus: light-dark(var(--gray-12), var(--gray-0));
|
|
73
|
-
--theme-btn-text-focus: light-dark(var(--gray-12), var(--gray-0));
|
|
74
|
-
|
|
75
|
-
--theme-form-focus-box-shadow: light-dark(var(--gray-12), var(--gray-2));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
[data-btn-theme='input-action'] {
|
|
3
|
-
--theme-btn-bg: transparent;
|
|
4
|
-
--theme-btn-border: transparent;
|
|
5
|
-
--theme-btn-outline: transparent;
|
|
6
|
-
--theme-btn-text: var(--theme-form-input-text);
|
|
7
|
-
|
|
8
|
-
--theme-btn-bg-hover: light-dark(var(--gray-2), var(--gray-3));
|
|
9
|
-
--theme-btn-border-hover: transparent;
|
|
10
|
-
--theme-btn-outline-hover: transparent;
|
|
11
|
-
--theme-btn-text-hover: var(--theme-form-input-text);
|
|
12
|
-
|
|
13
|
-
--theme-btn-bg-focus: transparent;
|
|
14
|
-
--theme-btn-border-focus: transparent;
|
|
15
|
-
--theme-btn-outline-focus: transparent;
|
|
16
|
-
--theme-btn-text-focus: transparent;
|
|
17
|
-
|
|
18
|
-
--theme-form-focus-box-shadow: light-dark(var(--gray-12), var(--gray-2));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
[data-form-theme='primary'] {
|
|
3
|
-
--theme-form-input-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
4
|
-
--theme-form-input-border: var(--blue-8);
|
|
5
|
-
--theme-form-input-border-active: var(--blue-2);
|
|
6
|
-
--theme-form-input-border-focus: var(--blue-2);
|
|
7
|
-
--theme-form-input-outline: white;
|
|
8
|
-
--theme-form-input-outline-active: var(--blue-6);
|
|
9
|
-
--theme-form-input-outline-focus: var(--blue-6);
|
|
10
|
-
--theme-form-input-text: light-dark(var(--gray-10), var(--gray-11));
|
|
11
|
-
|
|
12
|
-
/* --theme-form-focus-box-shadow: light-dark(var(--blue-12), var(--blue-2)); */
|
|
13
|
-
--theme-form-focus-box-shadow: light-dark(red, yellowgreen);
|
|
14
|
-
|
|
15
|
-
--theme-form-checkbox-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
16
|
-
--theme-form-checkbox-border: light-dark(var(--blue-12), var(--blue-12));
|
|
17
|
-
--theme-form-checkbox-outline: light-dark(var(--blue-1), var(--blue-1));
|
|
18
|
-
--theme-form-checkbox-shadow: transparent;
|
|
19
|
-
--theme-form-checkbox-shadow-focus: var(--blue-6);
|
|
20
|
-
--theme-form-checkbox-symbol: var(--blue-12);
|
|
21
|
-
|
|
22
|
-
--theme-form-radio-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
23
|
-
--theme-form-radio-border: light-dark(var(--blue-12), var(--blue-12));
|
|
24
|
-
--theme-form-radio-outline: light-dark(var(--blue-1), var(--blue-1));
|
|
25
|
-
--theme-form-radio-shadow: transparent;
|
|
26
|
-
--theme-form-radio-shadow-focus: var(--blue-6);
|
|
27
|
-
--theme-form-radio-symbol: var(--blue-12);
|
|
28
|
-
|
|
29
|
-
--theme-form-range-accent-color: light-dark(var(--blue-12), var(--blue-));
|
|
30
|
-
|
|
31
|
-
/*
|
|
32
|
-
* ToggleSwitch
|
|
33
|
-
**/
|
|
34
|
-
--theme-form-toggle-bg-off: light-dark(var(--gray-1), var(--gray-4));
|
|
35
|
-
--theme-form-toggle-bg-on: light-dark(var(--gray-1), var(--gray-6));
|
|
36
|
-
|
|
37
|
-
--theme-form-toggle-border: var(--form-element-border-width) solid light-dark(var(--blue-12), var(--blue-1));
|
|
38
|
-
|
|
39
|
-
--theme-form-toggle-outline: var(--form-element-outline-width) solid light-dark(var(--blue-1), var(--blue-1));
|
|
40
|
-
--theme-form-toggle-symbol-off: var(--blue-7);
|
|
41
|
-
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
42
|
-
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
43
|
-
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
44
|
-
|
|
45
|
-
/*
|
|
46
|
-
* Checkbox as button
|
|
47
|
-
**/
|
|
48
|
-
|
|
49
|
-
--theme-checkbox-radio-button-bg-default: light-dark(var(--gray-1), var(--gray-4));
|
|
50
|
-
|
|
51
|
-
--theme-checkbox-radio-button-border-default: light-dark(var(--blue-12), var(--blue-12));
|
|
52
|
-
--theme-checkbox-radio-button-border-width: 0.1rem;
|
|
53
|
-
|
|
54
|
-
--theme-checkbox-radio-button-outline-default: light-dark(var(--blue-5), var(--blue-5));
|
|
55
|
-
--theme-checkbox-radio-button-outline-focus: light-dark(var(--blue-12), var(--blue-12));
|
|
56
|
-
--theme-checkbox-radio-button-outline-width: 0.1rem;
|
|
57
|
-
|
|
58
|
-
--theme-checkbox-radio-button-shadow: transparent;
|
|
59
|
-
--theme-checkbox-radio-button-shadow-focus: light-dark(var(--blue-6), var(--blue-1));
|
|
60
|
-
|
|
61
|
-
--theme-checkbox-radio-button-label-default: light-dark(var(--blue-12), var(--blue-12));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
[data-btn-theme='primary'] {
|
|
65
|
-
--theme-btn-bg: var(--blue-12);
|
|
66
|
-
--theme-btn-border: var(--blue-0);
|
|
67
|
-
--theme-btn-outline: var(--blue-12);
|
|
68
|
-
--theme-btn-text: var(--blue-0);
|
|
69
|
-
|
|
70
|
-
--theme-btn-bg-hover: var(--blue-0);
|
|
71
|
-
--theme-btn-border-hover: var(--blue-12);
|
|
72
|
-
--theme-btn-outline-hover: var(--blue-0);
|
|
73
|
-
--theme-btn-text-hover: var(--blue-12);
|
|
74
|
-
|
|
75
|
-
--theme-btn-bg-focus: var(--blue-0);
|
|
76
|
-
--theme-btn-border-focus: var(--blue-12);
|
|
77
|
-
--theme-btn-outline-focus: var(--blue-0);
|
|
78
|
-
--theme-btn-text-focus: var(--blue-12);
|
|
79
|
-
|
|
80
|
-
--theme-form-focus-box-shadow: light-dark(var(--blue-12), var(--blue-2));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
[data-form-theme='secondary'] {
|
|
3
|
-
--theme-form-input-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
4
|
-
--theme-form-input-border: var(--gray-8);
|
|
5
|
-
--theme-form-input-border-active: var(--gray-2);
|
|
6
|
-
--theme-form-input-border-focus: var(--gray-2);
|
|
7
|
-
--theme-form-input-outline: white;
|
|
8
|
-
--theme-form-input-outline-active: var(--gray-6);
|
|
9
|
-
--theme-form-input-outline-focus: var(--gray-6);
|
|
10
|
-
--theme-form-input-text: light-dark(var(--gray-10), var(--gray-11));
|
|
11
|
-
|
|
12
|
-
--theme-form-focus-box-shadow: light-dark(var(--gray-12), var(--gray-2));
|
|
13
|
-
|
|
14
|
-
--theme-form-checkbox-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
15
|
-
--theme-form-checkbox-border: light-dark(var(--gray-12), var(--gray-12));
|
|
16
|
-
--theme-form-checkbox-outline: light-dark(var(--gray-1), var(--gray-1));
|
|
17
|
-
--theme-form-checkbox-shadow: transparent;
|
|
18
|
-
--theme-form-checkbox-shadow-focus: var(--gray-6);
|
|
19
|
-
--theme-form-checkbox-symbol: var(--gray-12);
|
|
20
|
-
|
|
21
|
-
--theme-form-radio-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
22
|
-
--theme-form-radio-border: light-dark(var(--gray-12), var(--gray-12));
|
|
23
|
-
--theme-form-radio-outline: light-dark(var(--gray-1), var(--gray-1));
|
|
24
|
-
--theme-form-radio-shadow: transparent;
|
|
25
|
-
--theme-form-radio-shadow-focus: var(--gray-6);
|
|
26
|
-
--theme-form-radio-symbol: var(--gray-12);
|
|
27
|
-
|
|
28
|
-
--theme-form-range-accent-color: light-dark(var(--gray-12), var(--gray-3));
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* ToggleSwitch
|
|
32
|
-
**/
|
|
33
|
-
--theme-form-toggle-bg-off: light-dark(var(--gray-1), var(--gray-4));
|
|
34
|
-
--theme-form-toggle-bg-on: light-dark(var(--gray-1), var(--gray-6));
|
|
35
|
-
|
|
36
|
-
--theme-form-toggle-border: var(--form-element-border-width) solid light-dark(var(--gray-12), var(--gray-1));
|
|
37
|
-
|
|
38
|
-
--theme-form-toggle-outline: var(--form-element-outline-width) solid light-dark(var(--gray-12), var(--gray-12));
|
|
39
|
-
--theme-form-toggle-symbol-off: var(--gray-4);
|
|
40
|
-
--theme-form-toggle-symbol-on: var(--gray-12);
|
|
41
|
-
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
42
|
-
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
43
|
-
|
|
44
|
-
/*
|
|
45
|
-
* Checkbox as button
|
|
46
|
-
**/
|
|
47
|
-
|
|
48
|
-
--theme-checkbox-radio-button-bg-default: light-dark(var(--gray-1), var(--gray-4));
|
|
49
|
-
|
|
50
|
-
--theme-checkbox-radio-button-border-default: light-dark(var(--gray-12), var(--gray-12));
|
|
51
|
-
--theme-checkbox-radio-button-border-width: 0.1rem;
|
|
52
|
-
|
|
53
|
-
--theme-checkbox-radio-button-outline-default: light-dark(var(--gray-5), var(--gray-5));
|
|
54
|
-
--theme-checkbox-radio-button-outline-width: 0.1rem;
|
|
55
|
-
|
|
56
|
-
--theme-checkbox-radio-button-label-default: light-dark(var(--gray-12), var(--gray-12));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[data-btn-theme='secondary'] {
|
|
60
|
-
--theme-btn-bg: var(--gray-12);
|
|
61
|
-
--theme-btn-border: var(--gray-0);
|
|
62
|
-
--theme-btn-outline: var(--gray-12);
|
|
63
|
-
--theme-btn-text: var(--gray-0);
|
|
64
|
-
|
|
65
|
-
--theme-btn-bg-hover: var(--gray-0);
|
|
66
|
-
--theme-btn-border-hover: var(--gray-12);
|
|
67
|
-
--theme-btn-outline-hover: var(--gray-0);
|
|
68
|
-
--theme-btn-text-hover: var(--gray-12);
|
|
69
|
-
|
|
70
|
-
--theme-btn-bg-focus: var(--gray-0);
|
|
71
|
-
--theme-btn-border-focus: var(--gray-12);
|
|
72
|
-
--theme-btn-outline-focus: var(--gray-0);
|
|
73
|
-
--theme-btn-text-focus: var(--gray-12);
|
|
74
|
-
|
|
75
|
-
--theme-form-focus-box-shadow: light-dark(var(--gray-12), var(--gray-2));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
[data-form-theme='success'] {
|
|
3
|
-
--theme-form-input-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
4
|
-
--theme-form-input-border: var(--green-8);
|
|
5
|
-
--theme-form-input-border-active: var(--green-2);
|
|
6
|
-
--theme-form-input-border-focus: var(--green-2);
|
|
7
|
-
--theme-form-input-outline: white;
|
|
8
|
-
--theme-form-input-outline-active: var(--green-6);
|
|
9
|
-
--theme-form-input-outline-focus: var(--green-6);
|
|
10
|
-
--theme-form-input-text: light-dark(var(--gray-10), var(--gray-11));
|
|
11
|
-
|
|
12
|
-
--theme-form-focus-box-shadow: light-dark(var(--green-12), var(--green-2));
|
|
13
|
-
|
|
14
|
-
--theme-form-checkbox-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
15
|
-
--theme-form-checkbox-border: light-dark(var(--green-12), var(--green-12));
|
|
16
|
-
--theme-form-checkbox-outline: light-dark(var(--green-1), var(--green-1));
|
|
17
|
-
--theme-form-checkbox-shadow: transparent;
|
|
18
|
-
--theme-form-checkbox-shadow-focus: var(--green-6);
|
|
19
|
-
--theme-form-checkbox-symbol: var(--green-12);
|
|
20
|
-
|
|
21
|
-
--theme-form-radio-bg: light-dark(var(--gray-1), var(--gray-4));
|
|
22
|
-
--theme-form-radio-border: light-dark(var(--green-12), var(--green-12));
|
|
23
|
-
--theme-form-radio-outline: light-dark(var(--green-1), var(--green-1));
|
|
24
|
-
--theme-form-radio-shadow: transparent;
|
|
25
|
-
--theme-form-radio-shadow-focus: var(--green-6);
|
|
26
|
-
--theme-form-radio-symbol: var(--green-12);
|
|
27
|
-
|
|
28
|
-
--theme-form-range-accent-color: light-dark(var(--green-12), var(--green-3));
|
|
29
|
-
|
|
30
|
-
/*
|
|
31
|
-
* ToggleSwitch
|
|
32
|
-
**/
|
|
33
|
-
--theme-form-toggle-bg-off: light-dark(var(--gray-1), var(--gray-4));
|
|
34
|
-
--theme-form-toggle-bg-on: light-dark(var(--gray-1), var(--gray-6));
|
|
35
|
-
|
|
36
|
-
--theme-form-toggle-border: var(--form-element-border-width) solid light-dark(var(--green-12), var(--green-1));
|
|
37
|
-
|
|
38
|
-
--theme-form-toggle-outline: var(--form-element-outline-width) solid light-dark(var(--green-12), var(--green-12));
|
|
39
|
-
--theme-form-toggle-symbol-off: var(--green-4);
|
|
40
|
-
--theme-form-toggle-symbol-on: var(--green-12);
|
|
41
|
-
--theme-form-toggle-icon-stroke-colour-off: var(--gray-1);
|
|
42
|
-
--theme-form-toggle-icon-stroke-colour-on: var(--gray-1);
|
|
43
|
-
|
|
44
|
-
/*
|
|
45
|
-
* Checkbox as button
|
|
46
|
-
**/
|
|
47
|
-
|
|
48
|
-
--theme-checkbox-radio-button-bg-default: light-dark(var(--gray-1), var(--gray-4));
|
|
49
|
-
|
|
50
|
-
--theme-checkbox-radio-button-border-default: light-dark(var(--green-12), var(--green-12));
|
|
51
|
-
--theme-checkbox-radio-button-border-width: 0.1rem;
|
|
52
|
-
|
|
53
|
-
--theme-checkbox-radio-button-outline-default: light-dark(var(--green-5), var(--green-5));
|
|
54
|
-
--theme-checkbox-radio-button-outline-width: 0.1rem;
|
|
55
|
-
|
|
56
|
-
--theme-checkbox-radio-button-label-default: light-dark(var(--green-12), var(--green-12));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
[data-btn-theme='success'] {
|
|
60
|
-
--theme-btn-bg: var(--green-12);
|
|
61
|
-
--theme-btn-border: var(--green-0);
|
|
62
|
-
--theme-btn-outline: var(--green-12);
|
|
63
|
-
--theme-btn-text: var(--green-0);
|
|
64
|
-
|
|
65
|
-
--theme-btn-bg-hover: var(--green-0);
|
|
66
|
-
--theme-btn-border-hover: var(--green-12);
|
|
67
|
-
--theme-btn-outline-hover: var(--green-0);
|
|
68
|
-
--theme-btn-text-hover: var(--green-12);
|
|
69
|
-
|
|
70
|
-
--theme-btn-bg-focus: var(--green-0);
|
|
71
|
-
--theme-btn-border-focus: var(--green-12);
|
|
72
|
-
--theme-btn-outline-focus: var(--green-0);
|
|
73
|
-
--theme-btn-text-focus: var(--green-12);
|
|
74
|
-
|
|
75
|
-
--theme-form-focus-box-shadow: light-dark(var(--green-12), var(--green-2));
|
|
76
|
-
}
|
|
77
|
-
}
|