wx-svelte-core 1.3.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.
Files changed (60) hide show
  1. package/license.txt +21 -0
  2. package/package.json +35 -0
  3. package/src/Locale.svelte +17 -0
  4. package/src/components/Area.svelte +70 -0
  5. package/src/components/Button.svelte +187 -0
  6. package/src/components/Calendar.svelte +42 -0
  7. package/src/components/Checkbox.svelte +132 -0
  8. package/src/components/CheckboxGroup.svelte +52 -0
  9. package/src/components/ColorBoard.svelte +311 -0
  10. package/src/components/ColorPicker.svelte +110 -0
  11. package/src/components/ColorSelect.svelte +204 -0
  12. package/src/components/Combo.svelte +228 -0
  13. package/src/components/Counter.svelte +178 -0
  14. package/src/components/DatePicker.svelte +115 -0
  15. package/src/components/DateRangePicker.svelte +138 -0
  16. package/src/components/Dropdown.svelte +125 -0
  17. package/src/components/Field.svelte +91 -0
  18. package/src/components/Globals.svelte +53 -0
  19. package/src/components/Icon.svelte +31 -0
  20. package/src/components/Modal.svelte +115 -0
  21. package/src/components/ModalArea.svelte +32 -0
  22. package/src/components/MultiCombo.svelte +279 -0
  23. package/src/components/Notice.svelte +145 -0
  24. package/src/components/Notices.svelte +20 -0
  25. package/src/components/Pager.svelte +131 -0
  26. package/src/components/Popup.svelte +53 -0
  27. package/src/components/Portal.svelte +42 -0
  28. package/src/components/RadioButton.svelte +129 -0
  29. package/src/components/RadioButtonGroup.svelte +50 -0
  30. package/src/components/RangeCalendar.svelte +134 -0
  31. package/src/components/RichSelect.svelte +149 -0
  32. package/src/components/Segmented.svelte +115 -0
  33. package/src/components/Select.svelte +124 -0
  34. package/src/components/SideArea.svelte +33 -0
  35. package/src/components/Slider.svelte +242 -0
  36. package/src/components/Switch.svelte +88 -0
  37. package/src/components/Tabs.svelte +163 -0
  38. package/src/components/Text.svelte +185 -0
  39. package/src/components/Timepicker.svelte +217 -0
  40. package/src/components/TwoState.svelte +60 -0
  41. package/src/components/calendar/Button.svelte +40 -0
  42. package/src/components/calendar/Duodecade.svelte +97 -0
  43. package/src/components/calendar/Header.svelte +105 -0
  44. package/src/components/calendar/Month.svelte +189 -0
  45. package/src/components/calendar/Panel.svelte +119 -0
  46. package/src/components/calendar/Year.svelte +89 -0
  47. package/src/components/calendar/helpers.js +56 -0
  48. package/src/components/helpers/SuggestDropdown.svelte +79 -0
  49. package/src/components/helpers/colorTransformator.js +146 -0
  50. package/src/components/helpers/colorValidation.js +21 -0
  51. package/src/components/helpers/listnav.js +85 -0
  52. package/src/components/helpers/sliderMove.js +42 -0
  53. package/src/components/helpers.js +6 -0
  54. package/src/index.js +50 -0
  55. package/src/themes/FontOpenSans.svelte +36 -0
  56. package/src/themes/FonttRoboto.svelte +19 -0
  57. package/src/themes/Material.svelte +321 -0
  58. package/src/themes/Willow.svelte +323 -0
  59. package/src/themes/WillowDark.svelte +320 -0
  60. package/whatsnew.md +97 -0
@@ -0,0 +1,36 @@
1
+ <!-- prettier-ignore -->
2
+ {@html `<style>
3
+ @font-face {
4
+ font-family: 'Open Sans';
5
+ font-style: normal;
6
+ font-weight: 500;
7
+ src: local(''),
8
+ url('https://cdn.svar.dev/fonts/open-sans/500.woff2') format('woff2'),
9
+ url('https://cdn.svar.dev/fonts/open-sans/500.woff') format('woff');
10
+ }
11
+ @font-face {
12
+ font-family: 'Open Sans';
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ src: local(''),
16
+ url('https://cdn.svar.dev/fonts/open-sans/regular.woff2') format('woff2'),
17
+ url('https://cdn.svar.dev/fonts/open-sans/regular.woff') format('woff');
18
+ }
19
+ @font-face {
20
+ font-family: 'Open Sans';
21
+ font-style: normal;
22
+ font-weight: 600;
23
+ src: local(''),
24
+ url('https://cdn.svar.dev/fonts/open-sans/600.woff2') format('woff2'),
25
+ url('https://cdn.svar.dev/fonts/open-sans/600.woff') format('woff');
26
+ }
27
+ @font-face {
28
+ font-family: 'Open Sans';
29
+ font-style: normal;
30
+ font-weight: 700;
31
+ src: local(''),
32
+ url('https://cdn.svar.dev/fonts/open-sans/700.woff2') format('woff2'),
33
+ url('https://cdn.svar.dev/fonts/open-sans/700.woff') format('woff');
34
+ }
35
+ </style>`}
36
+
@@ -0,0 +1,19 @@
1
+ <!-- prettier-ignore -->
2
+ {@html `<style>
3
+ @font-face {
4
+ font-family: 'Roboto';
5
+ font-style: normal;
6
+ font-weight: 400;
7
+ src: local(''),
8
+ url('https://cdn.svar.dev/fonts/roboto/regular.woff2') format('woff2'),
9
+ url('https://cdn.svar.dev/fonts/roboto/regular.woff') format('woff');
10
+ }
11
+ @font-face {
12
+ font-family: 'Roboto';
13
+ font-style: normal;
14
+ font-weight: 500;
15
+ src: local(''),
16
+ url('https://cdn.svar.dev/fonts/roboto/500.woff2') format('woff2'),
17
+ url('https://cdn.svar.dev/fonts/roboto/500.woff') format('woff');
18
+ }
19
+ </style>`}
@@ -0,0 +1,321 @@
1
+ <script>
2
+ import { setContext } from "svelte";
3
+ import RobotoFont from "./FonttRoboto.svelte";
4
+
5
+ export let fonts = true;
6
+ const SLOTS = $$props.$$slots;
7
+ setContext("wx-theme", "material");
8
+ </script>
9
+
10
+ {#if SLOTS && SLOTS.default}
11
+ <div class="wx-material-theme" style="height:100%">
12
+ <slot />
13
+ </div>
14
+ {/if}
15
+
16
+ <svelte:head>
17
+ {#if fonts}
18
+ <link rel="preconnect" href="https://cdn.svar.dev" crossorigin />
19
+ <RobotoFont />
20
+ <link
21
+ rel="stylesheet"
22
+ href="https://cdn.svar.dev/fonts/wxi/wx-icons.css"
23
+ />
24
+ {/if}
25
+ </svelte:head>
26
+
27
+ <style>
28
+ :global(.wx-material-theme) {
29
+ /* base colors */
30
+ --wx-color-primary: #2f77e3;
31
+ --wx-color-primary-selected: #d5e6ff;
32
+ --wx-color-primary-font: #fff;
33
+ --wx-color-secondary: rgba(0, 0, 0, 0.04);
34
+ --wx-color-secondary-hover: rgba(0, 0, 0, 0.1);
35
+ --wx-color-secondary-font: rgba(0, 0, 0, 0.7);
36
+ --wx-color-secondary-font-hover: rgba(0, 0, 0, 0.7);
37
+ --wx-color-secondary-border: transparent;
38
+ --wx-color-secondary-border-disabled: transparent;
39
+
40
+ --wx-color-success: #00d19a;
41
+ --wx-color-warning: #ffc975;
42
+ --wx-color-info: #37a9ef;
43
+ --wx-color-danger: #ff5252;
44
+ --wx-color-disabled: #ededed;
45
+ --wx-color-disabled-alt: #e9e9e9;
46
+
47
+ --wx-color-font: rgba(0, 0, 0, 0.7);
48
+ --wx-color-font-alt: rgba(0, 0, 0, 0.5);
49
+ --wx-color-font-disabled: rgba(0, 0, 0, 0.3);
50
+ --wx-color-link: var(--wx-color-primary);
51
+
52
+ --wx-background: #fff;
53
+ --wx-background-alt: #f7f7f7;
54
+ --wx-background-hover: linear-gradient(
55
+ rgba(0, 0, 0, 0.15) 0%,
56
+ rgba(0, 0, 0, 0.15) 100%
57
+ );
58
+ /* end base colors */
59
+
60
+ /* font */
61
+ --wx-font-family: Roboto, Arial, Helvetica, sans-serif;
62
+ --wx-font-size: 14px;
63
+ --wx-line-height: 20px;
64
+ --wx-font-size-md: 16px;
65
+ --wx-line-height-md: 24px;
66
+ --wx-font-size-hd: 16px;
67
+ --wx-line-height-hd: 30px;
68
+ --wx-font-size-sm: 12px;
69
+ --wx-line-height-sm: 16px;
70
+ --wx-font-weight: 400;
71
+ --wx-font-weight-md: 500;
72
+ --wx-font-weight-b: 700;
73
+ /* end font */
74
+
75
+ /* icons */
76
+ --wx-icon-color: var(--wx-color-font-alt);
77
+ --wx-icon-size: var(--wx-line-height);
78
+ /* end icons */
79
+
80
+ /* other */
81
+ --wx-border: 1px solid #dfdfdf;
82
+ --wx-border-radius: 2px;
83
+ --wx-radius-medium: var(--wx-border-radius);
84
+
85
+ --wx-border-light: none;
86
+ --wx-border-medium: 1px solid #eaedf5;
87
+
88
+ --wx-shadow-light: 0px 4px 20px rgba(44, 47, 60, 0.12);
89
+ --wx-shadow-medium: 0px 2px 4px rgba(0, 0, 0, 0.15);
90
+ --wx-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
91
+ --wx-box-shadow-strong: 0px 2px 5px rgba(0, 0, 0, 0.3);
92
+
93
+ --wx-padding: 8px;
94
+ /* end other */
95
+
96
+ /* field */
97
+ --wx-field-gutter: 16px;
98
+ --wx-field-width: 400px;
99
+ /* end field */
100
+
101
+ /* input */
102
+ --wx-input-font-family: var(--wx-font-family);
103
+ --wx-input-font-size: var(--wx-font-size);
104
+ --wx-input-line-height: var(--wx-line-height);
105
+ --wx-input-font-weight: var(--wx-font-weight);
106
+ --wx-input-text-align: left;
107
+ --wx-input-font-color: var(--wx-color-font);
108
+ --wx-input-background: var(--wx-background);
109
+ --wx-input-background-disabled: var(--wx-background);
110
+ --wx-input-placeholder-color: var(--wx-color-font-alt);
111
+ --wx-input-border: var(--wx-border);
112
+ --wx-input-border-focus: 1px solid rgba(0, 0, 0, 0.5);
113
+ --wx-input-border-disabled: 1px solid var(--wx-color-disabled);
114
+ --wx-input-border-radius: var(--wx-border-radius);
115
+ --wx-input-height: 32px;
116
+ --wx-input-width: 100%;
117
+ --wx-input-padding: 5px 8px;
118
+ --wx-input-icon-indent: 6px;
119
+ --wx-input-icon-color: var(--wx-icon-color);
120
+ --wx-input-icon-size: var(--wx-icon-size);
121
+ /* end input */
122
+
123
+ /* multi combo */
124
+ --wx-multicombo-tag-gap: 4px;
125
+ --wx-multicombo-tag-border: none;
126
+ --wx-multicombo-tag-border-radius: var(--wx-input-border-radius);
127
+ --wx-multicombo-tag-pading: 2px 8px;
128
+ --wx-multicombo-tag-background: var(--wx-background-alt);
129
+ /* end multi combo */
130
+
131
+ /* checkbox and radio */
132
+ --wx-checkbox-height: var(--wx-line-height);
133
+ --wx-checkbox-size: 18px;
134
+ --wx-checkbox-border-width: 2px;
135
+ --wx-checkbox-border-color: var(--wx-color-font-alt);
136
+ --wx-checkbox-border-color-disabled: var(--wx-color-font-disabled);
137
+ --wx-checkbox-border-radius: var(--wx-input-border-radius);
138
+ --wx-checkbox-font-family: var(--wx-font-family);
139
+ --wx-checkbox-font-size: var(--wx-font-size);
140
+ --wx-checkbox-line-height: var(--wx-line-height);
141
+ --wx-checkbox-font-weight: var(--wx-font-weight);
142
+ --wx-checkbox-font-color: var(--wx-color-font);
143
+ /* end checkbox and radio */
144
+
145
+ /* label */
146
+ --wx-label-width: 80px;
147
+ --wx-label-margin: 0 0 8px;
148
+ --wx-label-padding: 0;
149
+ --wx-label-font-family: var(--wx-font-family);
150
+ --wx-label-font-size: var(--wx-font-size);
151
+ --wx-label-line-height: var(--wx-line-height);
152
+ --wx-label-font-weight: var(--wx-font-weight-md);
153
+ --wx-label-font-color: var(--wx-color-font);
154
+ /* end label */
155
+
156
+ /* button */
157
+ --wx-button-font-family: var(--wx-font-family);
158
+ --wx-button-font-size: var(--wx-font-size);
159
+ --wx-button-line-height: var(--wx-line-height);
160
+ --wx-button-font-weight: var(--wx-font-weight-md);
161
+ --wx-button-text-transform: none;
162
+ --wx-button-font-color: var(--wx-color-font);
163
+ --wx-button-danger-font-color: #fff;
164
+ --wx-button-background: var(--wx-background-alt);
165
+ --wx-button-border: 1px solid transparent;
166
+ --wx-button-border-radius: var(--wx-border-radius);
167
+ --wx-button-height: 32px;
168
+ --wx-button-padding: 5px 20px;
169
+ --wx-button-icon-indent: 7px;
170
+ --wx-button-icon-size: 16px;
171
+ /* end button */
172
+
173
+ /* segmented */
174
+ --wx-segmented-background: var(--wx-background-alt);
175
+ --wx-segmented-background-hover: var(--wx-background-hover);
176
+ --wx-segmented-border: var(--wx-border);
177
+ --wx-segmented-border-radius: var(--wx-border-radius);
178
+ --wx-segmented-padding: 3px;
179
+ /* end segmented */
180
+
181
+ /* tabs */
182
+ --wx-tabs-background: var(--wx-background-alt);
183
+ --wx-tabs-background-hover: var(--wx-background-hover);
184
+ --wx-tabs-hover-border: transparent;
185
+ --wx-tabs-border-width: 1px;
186
+ --wx-tabs-border-radius: var(--wx-border-radius);
187
+ --wx-tabs-divider-width: 1px;
188
+ --wx-tabs-divider-height: 100%;
189
+ --wx-tabs-divider-color: #dfdfdf;
190
+ --wx-tabs-cell-min-width: 100px;
191
+ --wx-tabs-active-background: var(--wx-color-primary);
192
+ --wx-tabs-active-color: var(--wx-color-primary-font);
193
+ --wx-tabs-active-border: transparent;
194
+ /* end tabs */
195
+
196
+ /* slider */
197
+ --wx-slider-height: 16px;
198
+ --wx-slider-primary: var(--wx-color-primary);
199
+ --wx-slider-background: #dfdfdf;
200
+ --wx-slider-track-height: 4px;
201
+ --wx-slider-track-border-radius: 2px;
202
+ --wx-slider-thumb-size: var(--wx-slider-height);
203
+ --wx-slider-thumb-border: 2px solid var(--wx-background);
204
+ --wx-slider-thumb-border-disabled: none;
205
+ --wx-slider-thumb-shadow: var(--wx-box-shadow-strong);
206
+ --wx-slider-label-margin: 0 0 5px;
207
+ --wx-slider-label-font-family: var(--wx-font-family);
208
+ --wx-slider-label-font-size: var(--wx-font-size);
209
+ --wx-slider-label-line-height: var(--wx-line-height);
210
+ --wx-slider-label-font-weight: var(--wx-font-weight-md);
211
+ --wx-slider-label-font-color: var(--wx-color-font);
212
+ /* end slider */
213
+
214
+ /* switch */
215
+ --wx-switch-primary: var(--wx-color-primary);
216
+ --wx-switch-background: rgba(0, 0, 0, 0.3);
217
+ --wx-switch-width: 44px;
218
+ --wx-switch-height: 22px;
219
+ --wx-switch-border-width: 1px;
220
+ --wx-switch-border-color: transparent;
221
+ --wx-switch-border-color-disabled: #dfdfdf;
222
+ --wx-switch-thumb-offset: 1px;
223
+ --wx-switch-thumb-border: none;
224
+ --wx-switch-thumb-border-disabled: none;
225
+ --wx-switch-thumb-background: var(--wx-background);
226
+ --wx-switch-thumb-background-disabled: var(--wx-background);
227
+ --wx-switch-thumb-shadow: var(--wx-box-shadow-strong);
228
+ /* end switch */
229
+
230
+ /* popup and dropdown */
231
+ --wx-popup-z-index: 100;
232
+ --wx-popup-background: var(--wx-background);
233
+ --wx-popup-shadow: var(--wx-shadow-light);
234
+ --wx-popup-border: none;
235
+ --wx-popup-border-radius: var(--wx-border-radius);
236
+ /* end popup and dropdown */
237
+
238
+ /* modal */
239
+ --wx-modal-z-index: 1000;
240
+ --wx-modal-background: var(--wx-background);
241
+ --wx-modal-shadow: var(--wx-shadow-medium);
242
+ --wx-modal-border: none;
243
+ --wx-modal-border-radius: var(--wx-border-radius);
244
+ --wx-modal-width: 280px;
245
+ --wx-modal-padding: 16px 20px;
246
+ --wx-modal-gutter: 14px;
247
+ --wx-modal-backdrop: rgba(0, 0, 0, 0.5);
248
+ --wx-modal-header-font-family: var(--wx-font-family);
249
+ --wx-modal-header-font-size: var(--wx-font-size-hd);
250
+ --wx-modal-header-line-height: var(--wx-line-height-hd);
251
+ --wx-modal-header-font-weight: var(--wx-font-weight);
252
+ --wx-modal-header-font-color: #000;
253
+ /* end modal */
254
+
255
+ /* notice */
256
+ --wx-notice-z-index: 1010;
257
+ --wx-notice-background: var(--wx-background);
258
+ --wx-notice-shadow: var(--wx-shadow-medium);
259
+ --wx-notice-border: none;
260
+ --wx-notice-border-radius: var(--wx-border-radius);
261
+ --wx-notice-margin: 6px 12px;
262
+ --wx-notice-font-family: var(--wx-font-family);
263
+ --wx-notice-font-size: var(--wx-font-size);
264
+ --wx-notice-line-height: var(--wx-line-height);
265
+ --wx-notice-font-weight: var(--wx-font-weight);
266
+ --wx-notice-font-color: var(--wx-color-font);
267
+ --wx-notice-padding: var(--wx-padding);
268
+ --wx-notice-width: 240px;
269
+ --wx-notice-icon-size: var(--wx-icon-size);
270
+ --wx-notice-icon-color: var(--wx-icon-color);
271
+ --wx-notice-type-border-width: 0px;
272
+ --wx-notice-type-border-color: transparent;
273
+ --wx-notice-type-font-color: #fff;
274
+ --wx-notice-type-icon-color: rgba(255, 255, 255, 0.8);
275
+ --wx-notice-type-background-opacity: 1;
276
+ --wx-notice-type-close-hover-opacity: 0.3;
277
+ /* end notice */
278
+
279
+ /* calendar */
280
+ --wx-calendar-padding: 16px;
281
+ --wx-calendar-cell-size: 32px;
282
+ --wx-calendar-gap: 4px;
283
+ --wx-calendar-line-gap: 0px;
284
+ --wx-calendar-border-radius: var(--wx-calendar-cell-size);
285
+ --wx-calendar-font-family: var(--wx-font-family);
286
+ --wx-calendar-font-size: var(--wx-font-size);
287
+ --wx-calendar-line-height: var(--wx-line-height);
288
+ --wx-calendar-font-weight: var(--wx-font-weight);
289
+ --wx-calendar-font-color: var(--wx-color-font);
290
+ --wx-calendar-icon-color: var(--wx-icon-color);
291
+ --wx-calendar-icon-size: var(--wx-icon-size);
292
+ --wx-calendar-header-font-size: var(--wx-font-size);
293
+ --wx-calendar-header-line-height: var(--wx-line-height);
294
+ --wx-calendar-header-font-weight: var(--wx-font-weight-md);
295
+ --wx-calendar-controls-font-family: var(--wx-button-font-family);
296
+ --wx-calendar-controls-font-size: var(--wx-button-font-size);
297
+ --wx-calendar-controls-line-height: var(--wx-button-line-height);
298
+ --wx-calendar-controls-font-weight: var(--wx-button-font-weight);
299
+ --wx-calendar-controls-font-color: var(--wx-color-link);
300
+ /* end calendar */
301
+ }
302
+
303
+ :global(.wx-material-theme) {
304
+ font-family: var(--wx-font-family);
305
+ font-size: var(--wx-font-size);
306
+ line-height: var(--wx-line-height);
307
+ font-weight: var(--wx-font-weight);
308
+ font-style: normal;
309
+ letter-spacing: normal;
310
+ text-align: left;
311
+ color: var(--wx-color-font);
312
+ background: var(--wx-background);
313
+ }
314
+ :global(
315
+ .wx-material-theme *,
316
+ .wx-material-theme *:before,
317
+ .wx-material-theme *:after
318
+ ) {
319
+ box-sizing: border-box;
320
+ }
321
+ </style>
@@ -0,0 +1,323 @@
1
+ <script>
2
+ import { setContext } from "svelte";
3
+ import FontOpenSans from "./FontOpenSans.svelte";
4
+
5
+ export let fonts = true;
6
+ const SLOTS = $$props.$$slots;
7
+ setContext("wx-theme", "willow");
8
+ </script>
9
+
10
+ {#if SLOTS && SLOTS.default}
11
+ <div class="wx-willow-theme" style="height:100%">
12
+ <slot />
13
+ </div>
14
+ {/if}
15
+
16
+ <svelte:head>
17
+ {#if fonts}
18
+ <link rel="preconnect" href="https://cdn.svar.dev" crossorigin />
19
+ <FontOpenSans />
20
+ <link
21
+ rel="stylesheet"
22
+ href="https://cdn.svar.dev/fonts/wxi/wx-icons.css"
23
+ />
24
+ {/if}
25
+ </svelte:head>
26
+
27
+ <style>
28
+ :global(.wx-willow-theme) {
29
+ /* base colors */
30
+ --wx-color-primary: #37a9ef;
31
+ --wx-color-primary-selected: #d5eaf7;
32
+ --wx-color-primary-font: #fff;
33
+ --wx-color-secondary: transparent;
34
+ --wx-color-secondary-hover: rgba(55, 169, 239, 0.12);
35
+ --wx-color-secondary-font: var(--wx-color-primary);
36
+ --wx-color-secondary-font-hover: var(--wx-color-primary);
37
+ --wx-color-secondary-border: var(--wx-color-primary);
38
+ --wx-color-secondary-border-disabled: #c0c3ce;
39
+
40
+ --wx-color-success: #77d257;
41
+ --wx-color-warning: #fcba2e;
42
+ --wx-color-info: #37a9ef;
43
+ --wx-color-danger: #fe6158;
44
+ --wx-color-disabled: #f2f3f7;
45
+ --wx-color-disabled-alt: #e9e9e9;
46
+
47
+ --wx-color-font: #2c2f3c;
48
+ --wx-color-font-alt: #9fa1ae;
49
+ --wx-color-font-disabled: #c0c3ce;
50
+ --wx-color-link: var(--wx-color-primary);
51
+
52
+ --wx-background: #ffffff;
53
+ --wx-background-alt: #f2f3f7;
54
+ --wx-background-hover: #eaedf5;
55
+ /* end base colors */
56
+
57
+ /* font */
58
+ --wx-font-family: "Open Sans", Arial, Helvetica, sans-serif;
59
+ --wx-font-size: 14px;
60
+ --wx-line-height: 20px;
61
+ --wx-font-size-md: 14px;
62
+ --wx-line-height-md: 24px;
63
+ --wx-font-size-hd: 16px;
64
+ --wx-line-height-hd: 30px;
65
+ --wx-font-size-sm: 12px;
66
+ --wx-line-height-sm: 16px;
67
+ --wx-font-weight: 400;
68
+ --wx-font-weight-md: 600;
69
+ --wx-font-weight-b: 700;
70
+ /* end font */
71
+
72
+ /* icons */
73
+ --wx-icon-color: #9fa1ae;
74
+ --wx-icon-size: var(--wx-line-height);
75
+ /* end icons */
76
+
77
+ /* other */
78
+ --wx-border: 1px solid #e6e6e6;
79
+ --wx-border-radius: 3px;
80
+ --wx-radius-major: 6px;
81
+
82
+ --wx-border-light: none;
83
+ --wx-border-medium: 1px solid #eaedf5;
84
+
85
+ --wx-shadow-light: 0px 3px 10px 0px rgba(44, 47, 60, 0.12),
86
+ 0px 1px 2px 0px rgba(44, 47, 60, 0.06);
87
+ --wx-shadow-medium: 0px 4px 20px 0px rgba(44, 47, 60, 0.12);
88
+ /* LEGACY start */
89
+ --wx-box-shadow: 0px 1px 2px rgba(44, 47, 60, 0.06),
90
+ 0px 3px 10px rgba(44, 47, 60, 0.12);
91
+ --wx-box-shadow-strong: 0px 4px 20px rgba(44, 47, 60, 0.16);
92
+ /* LEGACY END */
93
+
94
+ --wx-padding: 8px;
95
+ /* end other */
96
+
97
+ /* field */
98
+ --wx-field-gutter: 16px;
99
+ --wx-field-width: 400px;
100
+ /* end field */
101
+
102
+ /* input */
103
+ --wx-input-font-family: var(--wx-font-family);
104
+ --wx-input-font-size: var(--wx-font-size);
105
+ --wx-input-line-height: var(--wx-line-height);
106
+ --wx-input-font-weight: var(--wx-font-weight);
107
+ --wx-input-text-align: left;
108
+ --wx-input-font-color: var(--wx-color-font);
109
+ --wx-input-background: var(--wx-background);
110
+ --wx-input-background-disabled: var(--wx-color-disabled);
111
+ --wx-input-placeholder-color: var(--wx-color-font-alt);
112
+ --wx-input-border: var(--wx-border);
113
+ --wx-input-border-focus: 1px solid var(--wx-color-primary);
114
+ --wx-input-border-disabled: var(--wx-border);
115
+ --wx-input-border-radius: 3px;
116
+ --wx-input-height: 32px;
117
+ --wx-input-width: 100%;
118
+ --wx-input-padding: 5px 8px;
119
+ --wx-input-icon-indent: 6px;
120
+ --wx-input-icon-color: var(--wx-icon-color);
121
+ --wx-input-icon-size: var(--wx-icon-size);
122
+ /* end input */
123
+
124
+ /* multi combo */
125
+ --wx-multicombo-tag-gap: 3px;
126
+ --wx-multicombo-tag-border: none;
127
+ --wx-multicombo-tag-border-radius: var(--wx-input-border-radius);
128
+ --wx-multicombo-tag-pading: 2px 8px;
129
+ --wx-multicombo-tag-background: var(--wx-background-alt);
130
+ /* end multi combo */
131
+
132
+ /* checkbox and radio */
133
+ --wx-checkbox-height: var(--wx-line-height);
134
+ --wx-checkbox-size: var(--wx-checkbox-height);
135
+ --wx-checkbox-border-width: 2px;
136
+ --wx-checkbox-border-color: var(--wx-color-font-alt);
137
+ --wx-checkbox-border-color-disabled: var(--wx-color-disabled);
138
+ --wx-checkbox-border-radius: var(--wx-input-border-radius);
139
+ --wx-checkbox-font-family: var(--wx-font-family);
140
+ --wx-checkbox-font-size: var(--wx-font-size);
141
+ --wx-checkbox-line-height: var(--wx-line-height);
142
+ --wx-checkbox-font-weight: var(--wx-font-weight);
143
+ --wx-checkbox-font-color: var(--wx-color-font);
144
+ /* end checkbox and radio */
145
+
146
+ /* label */
147
+ --wx-label-width: 100px;
148
+ --wx-label-margin: 0 0 4px;
149
+ --wx-label-padding: 0;
150
+ --wx-label-font-family: var(--wx-font-family);
151
+ --wx-label-font-size: var(--wx-font-size);
152
+ --wx-label-line-height: var(--wx-line-height);
153
+ --wx-label-font-weight: var(--wx-font-weight-md);
154
+ --wx-label-font-color: var(--wx-color-font);
155
+ /* end label */
156
+
157
+ /* button */
158
+ --wx-button-font-family: var(--wx-font-family);
159
+ --wx-button-font-size: var(--wx-font-size-md);
160
+ --wx-button-line-height: var(--wx-line-height);
161
+ --wx-button-font-weight: var(--wx-font-weight-md);
162
+ --wx-button-text-transform: none;
163
+ --wx-button-font-color: var(--wx-color-font);
164
+ --wx-button-danger-font-color: #fff;
165
+ --wx-button-background: var(--wx-background-alt);
166
+ --wx-button-border: 1px solid transparent;
167
+ --wx-button-border-radius: var(--wx-border-radius);
168
+ --wx-button-height: 32px;
169
+ --wx-button-padding: 5px 16px;
170
+ --wx-button-icon-indent: 5px;
171
+ --wx-button-icon-size: 20px;
172
+ /* end button */
173
+
174
+ /* segmented */
175
+ --wx-segmented-background: var(--wx-background-alt);
176
+ --wx-segmented-background-hover: var(--wx-background-hover);
177
+ --wx-segmented-border: none;
178
+ --wx-segmented-border-radius: 6px;
179
+ --wx-segmented-padding: 0px;
180
+ /* end segmented */
181
+
182
+ /* tabs */
183
+ --wx-tabs-background: var(--wx-background);
184
+ --wx-tabs-background-hover: transparent;
185
+ --wx-tabs-hover-border: #9fa1ae;
186
+ --wx-tabs-border-width: 1px;
187
+ --wx-tabs-border-radius: var(--wx-border-radius);
188
+ --wx-tabs-divider-width: 1px;
189
+ --wx-tabs-divider-height: 60%;
190
+ --wx-tabs-divider-color: transparent;
191
+ --wx-tabs-cell-min-width: 100px;
192
+ --wx-tabs-active-background: transparent;
193
+ --wx-tabs-active-color: var(--wx-color-primary);
194
+ --wx-tabs-active-border: var(--wx-tabs-active-color);
195
+ /* end tabs */
196
+
197
+ /* slider */
198
+ --wx-slider-height: 14px;
199
+ --wx-slider-primary: var(--wx-color-primary);
200
+ --wx-slider-background: var(--wx-background-alt);
201
+ --wx-slider-track-height: 4px;
202
+ --wx-slider-track-border-radius: 2px;
203
+ --wx-slider-thumb-size: var(--wx-slider-height);
204
+ --wx-slider-thumb-border: none;
205
+ --wx-slider-thumb-border-disabled: none;
206
+ --wx-slider-thumb-shadow: var(--wx-box-shadow-strong);
207
+ --wx-slider-label-margin: 0 0 5px;
208
+ --wx-slider-label-font-family: var(--wx-font-family);
209
+ --wx-slider-label-font-size: var(--wx-font-size);
210
+ --wx-slider-label-line-height: var(--wx-line-height);
211
+ --wx-slider-label-font-weight: var(--wx-font-weight-md);
212
+ --wx-slider-label-font-color: var(--wx-color-font);
213
+ /* end slider */
214
+
215
+ /* switch */
216
+ --wx-switch-primary: var(--wx-color-primary);
217
+ --wx-switch-background: #9fa1ae;
218
+ --wx-switch-width: 48px;
219
+ --wx-switch-height: 24px;
220
+ --wx-switch-border-width: 0px;
221
+ --wx-switch-border-color: transparent;
222
+ --wx-switch-border-color-disabled: transparent;
223
+ --wx-switch-thumb-offset: 1px;
224
+ --wx-switch-thumb-border: none;
225
+ --wx-switch-thumb-border-disabled: 1px solid #c0c3ce;
226
+ --wx-switch-thumb-background: var(--wx-background);
227
+ --wx-switch-thumb-background-disabled: var(--wx-color-disabled);
228
+ --wx-switch-thumb-shadow: none;
229
+ /* end switch */
230
+
231
+ /* popup and dropdown */
232
+ --wx-popup-z-index: 100;
233
+ --wx-popup-background: var(--wx-background);
234
+ --wx-popup-shadow: var(--wx-shadow-light);
235
+ --wx-popup-border: 1px solid transparent;
236
+ --wx-popup-border-radius: var(--wx-border-radius);
237
+ /* end popup and dropdown */
238
+
239
+ /* modal */
240
+ --wx-modal-z-index: 1000;
241
+ --wx-modal-background: var(--wx-background);
242
+ --wx-modal-shadow: var(--wx-shadow-medium);
243
+ --wx-modal-border: none;
244
+ --wx-modal-border-radius: var(--wx-border-radius);
245
+ --wx-modal-width: 280px;
246
+ --wx-modal-padding: 16px 20px;
247
+ --wx-modal-gutter: 14px;
248
+ --wx-modal-backdrop: rgba(108, 114, 131, 0.2);
249
+ --wx-modal-header-font-family: var(--wx-font-family);
250
+ --wx-modal-header-font-size: var(--wx-font-size-hd);
251
+ --wx-modal-header-line-height: var(--wx-line-height-hd);
252
+ --wx-modal-header-font-weight: var(--wx-font-weight-b);
253
+ --wx-modal-header-font-color: #000;
254
+ /* end modal */
255
+
256
+ /* notice */
257
+ --wx-notice-z-index: 1010;
258
+ --wx-notice-background: var(--wx-background);
259
+ --wx-notice-shadow: var(--wx-shadow-medium);
260
+ --wx-notice-border: none;
261
+ --wx-notice-border-radius: 0 var(--wx-border-radius)
262
+ var(--wx-border-radius) 0;
263
+ --wx-notice-margin: 6px 12px;
264
+ --wx-notice-font-family: var(--wx-font-family);
265
+ --wx-notice-font-size: var(--wx-font-size);
266
+ --wx-notice-line-height: var(--wx-line-height);
267
+ --wx-notice-font-weight: var(--wx-font-weight);
268
+ --wx-notice-font-color: var(--wx-color-font);
269
+ --wx-notice-padding: 14px;
270
+ --wx-notice-width: 240px;
271
+ --wx-notice-icon-size: var(--wx-icon-size);
272
+ --wx-notice-icon-color: var(--wx-icon-color);
273
+ --wx-notice-type-border-width: 4px;
274
+ --wx-notice-type-border-color: var(--wx-icon-color);
275
+ --wx-notice-type-font-color: var(--wx-color-font);
276
+ --wx-notice-type-icon-color: var(--wx-icon-color);
277
+ --wx-notice-type-background-opacity: 0;
278
+ --wx-notice-type-close-hover-opacity: 1;
279
+ /* end notice */
280
+
281
+ /* calendar */
282
+ --wx-calendar-padding: 16px;
283
+ --wx-calendar-cell-size: 32px;
284
+ --wx-calendar-gap: 4px;
285
+ --wx-calendar-line-gap: 4px;
286
+ --wx-calendar-border-radius: var(--wx-border-radius);
287
+ --wx-calendar-font-family: var(--wx-font-family);
288
+ --wx-calendar-font-size: var(--wx-font-size);
289
+ --wx-calendar-line-height: var(--wx-line-height);
290
+ --wx-calendar-font-weight: var(--wx-font-weight);
291
+ --wx-calendar-font-color: var(--wx-color-font);
292
+ --wx-calendar-icon-color: var(--wx-icon-color);
293
+ --wx-calendar-icon-size: var(--wx-icon-size);
294
+ --wx-calendar-header-font-size: var(--wx-font-size);
295
+ --wx-calendar-header-line-height: var(--wx-line-height);
296
+ --wx-calendar-header-font-weight: var(--wx-font-weight-md);
297
+ --wx-calendar-controls-font-family: var(--wx-button-font-family);
298
+ --wx-calendar-controls-font-size: var(--wx-font-size);
299
+ --wx-calendar-controls-line-height: var(--wx-line-height);
300
+ --wx-calendar-controls-font-weight: var(--wx-font-weight);
301
+ --wx-calendar-controls-font-color: var(--wx-color-font);
302
+ /* end calendar */
303
+ }
304
+
305
+ :global(.wx-willow-theme) {
306
+ font-family: var(--wx-font-family);
307
+ font-size: var(--wx-font-size);
308
+ line-height: var(--wx-line-height);
309
+ font-weight: var(--wx-font-weight);
310
+ font-style: normal;
311
+ letter-spacing: normal;
312
+ text-align: left;
313
+ color: var(--wx-color-font);
314
+ background: var(--wx-background);
315
+ }
316
+ :global(
317
+ .wx-willow-theme *,
318
+ .wx-willow-theme *:before,
319
+ .wx-willow-theme *:after
320
+ ) {
321
+ box-sizing: border-box;
322
+ }
323
+ </style>