srcdev-nuxt-components 4.0.6 → 5.0.1

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.
Files changed (94) hide show
  1. package/README.md +171 -2
  2. package/assets/styles/extends-layer/srcdev-components/display-prompt-core/index.css +70 -0
  3. package/assets/styles/extends-layer/srcdev-components/index.css +2 -0
  4. package/assets/styles/extends-layer/srcdev-components/themes/_error.css +15 -0
  5. package/assets/styles/extends-layer/srcdev-components/themes/_info.css +15 -0
  6. package/assets/styles/extends-layer/srcdev-components/themes/_success.css +15 -0
  7. package/assets/styles/extends-layer/srcdev-components/themes/_warning.css +15 -0
  8. package/assets/styles/main.css +2 -5
  9. package/assets/styles/{forms/variables/_theme.css → setup/_head.css} +0 -6
  10. package/assets/styles/{a11y → setup/a11y}/_variables.css +2 -0
  11. package/assets/styles/setup/a11y/index.css +2 -0
  12. package/assets/styles/setup/index.css +5 -0
  13. package/assets/styles/setup/typography/index.css +2 -0
  14. package/assets/styles/setup/typography/utility-classes/_generic-font-classes.css +192 -0
  15. package/assets/styles/setup/typography/utility-classes/_generic-font-variation-settings.css +29 -0
  16. package/assets/styles/setup/typography/utility-classes/_generic-font-weights.css +41 -0
  17. package/assets/styles/setup/typography/utility-classes/index.css +3 -0
  18. package/assets/styles/setup/typography/vars/index.css +1 -0
  19. package/assets/styles/setup/utility-classes/_page.css +50 -0
  20. package/assets/styles/setup/utility-classes/index.css +3 -0
  21. package/assets/styles/setup/variables/index.css +1 -0
  22. package/components/accordian/AccordianCore.vue +46 -0
  23. package/components/{presentation/container-glow → container-glow}/ContainerGlowCore.vue +80 -80
  24. package/components/display-details/DisplayDetailsCore.vue +49 -60
  25. package/components/{functional/display-dialog → display-dialog}/DisplayDialogCore.vue +49 -38
  26. package/components/display-prompt/DisplayPromptCore.vue +187 -0
  27. package/components/expanding-panel/ExpandingPanel.vue +124 -0
  28. package/components/{presentation/layout-row → layout-row}/LayoutRow.vue +12 -4
  29. package/components/responsive-header/NavigationItems.vue +23 -18
  30. package/components/responsive-header/ResponsiveHeader.vue +376 -276
  31. package/components/skip-links/SkipLinks.vue +85 -0
  32. package/components/{presentation/tabs → tabs}/TabsCore.vue +27 -58
  33. package/composables/useDialogControls.ts +22 -1
  34. package/package.json +1 -1
  35. package/assets/styles/a11y/index.css +0 -2
  36. package/assets/styles/forms/index.css +0 -2
  37. package/assets/styles/forms/themes/_error.css +0 -77
  38. package/assets/styles/forms/themes/_ghost.css +0 -77
  39. package/assets/styles/forms/themes/_input-action.css +0 -20
  40. package/assets/styles/forms/themes/_primary.css +0 -82
  41. package/assets/styles/forms/themes/_secondary.css +0 -77
  42. package/assets/styles/forms/themes/_success.css +0 -77
  43. package/assets/styles/forms/themes/_tertiary.css +0 -77
  44. package/assets/styles/forms/themes/_warning.css +0 -77
  45. package/assets/styles/forms/themes/index.css +0 -8
  46. package/assets/styles/forms/variables/_sizes.css +0 -82
  47. package/assets/styles/forms/variables/index.css +0 -2
  48. package/assets/styles/typography/index.css +0 -2
  49. package/assets/styles/typography/utils/_font-classes.css +0 -160
  50. package/assets/styles/typography/utils/_weights.css +0 -69
  51. package/assets/styles/typography/utils/index.css +0 -2
  52. package/assets/styles/typography/variables/_colors.css +0 -14
  53. package/assets/styles/typography/variables/index.css +0 -2
  54. package/assets/styles/utils/_animations.css +0 -42
  55. package/assets/styles/utils/_canvasWidths.css +0 -18
  56. package/assets/styles/utils/_display.css +0 -7
  57. package/assets/styles/utils/_page.css +0 -27
  58. package/assets/styles/utils/_placement.css +0 -73
  59. package/assets/styles/utils/index.css +0 -7
  60. package/assets/styles/variables/components/_accordian.css +0 -7
  61. package/assets/styles/variables/components/_container-glow-core.css +0 -16
  62. package/assets/styles/variables/components/_display-dialog-core.css +0 -35
  63. package/assets/styles/variables/components/_tabs.css +0 -18
  64. package/assets/styles/variables/components/display-prompt-core/_scaffolding.css +0 -57
  65. package/assets/styles/variables/components/display-prompt-core/index.css +0 -2
  66. package/assets/styles/variables/components/display-prompt-core/themes/_error.css +0 -39
  67. package/assets/styles/variables/components/display-prompt-core/themes/_info.css +0 -39
  68. package/assets/styles/variables/components/display-prompt-core/themes/_success.css +0 -39
  69. package/assets/styles/variables/components/display-prompt-core/themes/_warning.css +0 -39
  70. package/assets/styles/variables/components/index.css +0 -5
  71. package/assets/styles/variables/index.css +0 -2
  72. package/components/functional/accordian/AccordianCore.vue +0 -138
  73. package/components/presentation/display-prompt/DisplayPromptCore.vue +0 -150
  74. /package/assets/styles/{variables/components/display-prompt-core → extends-layer/srcdev-components}/themes/index.css +0 -0
  75. /package/assets/styles/{a11y → setup/a11y}/_utils.css +0 -0
  76. /package/assets/styles/{typography/variables/_reponsive-font-size.css → setup/typography/vars/_reponsive-font-sizes.css} +0 -0
  77. /package/assets/styles/{utils → setup/utility-classes}/_margin-helpers.css +0 -0
  78. /package/assets/styles/{utils → setup/utility-classes}/_padding-helpers.css +0 -0
  79. /package/assets/styles/{variables → setup/variables}/colors/_blue.css +0 -0
  80. /package/assets/styles/{variables → setup/variables}/colors/_gray.css +0 -0
  81. /package/assets/styles/{variables → setup/variables}/colors/_green.css +0 -0
  82. /package/assets/styles/{variables → setup/variables}/colors/_orange.css +0 -0
  83. /package/assets/styles/{variables → setup/variables}/colors/_red.css +0 -0
  84. /package/assets/styles/{variables → setup/variables}/colors/_yellow.css +0 -0
  85. /package/assets/styles/{variables/colors/colors.css → setup/variables/colors/index.css} +0 -0
  86. /package/components/{functional/display-dialog → display-dialog}/variants/DisplayDialogConfirm.vue +0 -0
  87. /package/components/{functional/display-dialog → display-dialog}/variants/DisplayDialogScrollableContent.vue +0 -0
  88. /package/components/{presentation/display-grid → display-grid}/DisplayGridCore.vue +0 -0
  89. /package/components/{presentation/display-prompt → display-prompt}/variants/DisplayPromptError.vue +0 -0
  90. /package/components/{presentation/layout-grids → layout-grids}/LayoutGridA.vue +0 -0
  91. /package/components/{presentation/layout-grids → layout-grids}/LayoutGridB.vue +0 -0
  92. /package/components/{presentation/masonry-grid → masonry-grid}/MasonryGrid.vue +0 -0
  93. /package/components/{presentation/masonry-grid-sorted → masonry-grid-sorted}/MasonryGridSorted.vue +0 -0
  94. /package/components/{functional/pop-over → pop-over}/PopOver.vue +0 -0
@@ -0,0 +1,85 @@
1
+ <template>
2
+ <ul class="home-link-navigation" aria-label="Home Navigation">
3
+ <li class="home-link"><a href="/">Logo</a></li>
4
+ <li class="skip-links">
5
+ <ul class="skip-links-nav">
6
+ <li class="skip-link-item"><a href="#main-content" class="skip-link" ref="skipLink">Skip to main content</a></li>
7
+ <li class="skip-link-item"><a href="#footer" class="skip-link">Skip to footer</a></li>
8
+ </ul>
9
+ </li>
10
+ </ul>
11
+ </template>
12
+
13
+ <script lang="ts" setup></script>
14
+
15
+ <style lang="css">
16
+ .home-link-navigation {
17
+ position: relative;
18
+ list-style: none;
19
+ padding: 0;
20
+
21
+ .skip-links {
22
+ list-style: none;
23
+ background-color: black;
24
+ padding: 0;
25
+ margin: 0;
26
+ position: absolute;
27
+ top: 40px;
28
+ left: 0;
29
+ height: 0;
30
+ overflow: hidden;
31
+ transition: height 0.3s ease-in-out;
32
+
33
+ &:focus-within {
34
+ height: auto;
35
+ z-index: 1000;
36
+ }
37
+
38
+ .skip-links-nav {
39
+ display: flex;
40
+ flex-direction: column;
41
+ gap: 0.2rem;
42
+ background-color: black;
43
+
44
+ border: 1px solid white;
45
+
46
+ list-style: none;
47
+ padding: 0.2rem;
48
+ margin: 0;
49
+
50
+ .skip-link-item {
51
+ padding: 0.2rem;
52
+
53
+ .skip-link {
54
+ display: block;
55
+ color: white;
56
+ text-decoration: none;
57
+ margin: 0.2rem;
58
+
59
+ padding: 0.8rem 1.2rem;
60
+ text-wrap: nowrap;
61
+
62
+ &:focus-visible {
63
+ outline: 2px solid white;
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+
71
+ /* .skip-link {
72
+ position: absolute;
73
+ top: -40px;
74
+ left: 0;
75
+ background: #000;
76
+ color: #fff;
77
+ padding: 8px 12px;
78
+ text-decoration: none;
79
+ transition: top 0.3s;
80
+ }
81
+
82
+ .skip-link:focus {
83
+ top: 0;
84
+ } */
85
+ </style>
@@ -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 navItems" :key="key">
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 navItems" :key="key" class="tab-content" :aria-labelledby="`tab-${key}-trigger`" :id="`tab-${key}-content`" role="region" aria-hidden="true" ref="tabsContentRefs">
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
- navItems: {
44
- type: Array as PropType<ITabNav[]>,
45
- required: true,
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(--_tabs-hovered-bg);
167
- color: var(--_tabs-hovered-text);
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(--_tabs-active-bg);
172
- color: var(--_tabs-active-text);
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(--_tabs-active-indicator);
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(--_tabs-default-text);
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
- /* background: var(--_tabs-hovered-bg); */
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(--_tabs-active-text);
176
+ color: light-dark(var(--gray-0), var(--gray-12));
198
177
  }
199
178
 
200
179
  &.transitioning {
201
- color: var(--_tabs-hovered-text);
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
- /* &:hover {
257
- color: var(--_tabs-hovered-text);
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(--_tabs-hovered-text);
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
- const controlDialogs = (name: string, state: boolean) => {
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,7 +1,7 @@
1
1
  {
2
2
  "name": "srcdev-nuxt-components",
3
3
  "type": "module",
4
- "version": "4.0.6",
4
+ "version": "5.0.1",
5
5
  "main": "nuxt.config.ts",
6
6
  "scripts": {
7
7
  "clean": "rm -rf .nuxt && rm -rf .output && rm -rf .playground/.nuxt && rm -rf .playground/.output",
@@ -1,2 +0,0 @@
1
- @import './_variables';
2
- @import './_utils';
@@ -1,2 +0,0 @@
1
- @import './variables/index.css';
2
- @import './themes/index.css';
@@ -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
- }