@vev/silke 1.1.3 → 1.1.7
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/CHANGELOG.md +34 -0
- package/dist/index.js +40 -38
- package/dist/index.js.LEGAL.txt +12 -0
- package/dist/styles.css +1596 -1036
- package/dist/types/components/index.d.ts +4 -1
- package/dist/types/components/silke-autocomplete-field/autocomplete-types.d.ts +4 -0
- package/dist/types/components/silke-autocomplete-field/index.d.ts +1 -0
- package/dist/types/components/silke-autocomplete-field/silke-autocomplete-field-native.d.ts +60 -0
- package/dist/types/components/silke-autocomplete-field/silke-autocomplete-field.d.ts +3 -0
- package/dist/types/components/silke-autocomplete-field/silke-autocomplete-popup-native.d.ts +15 -0
- package/dist/types/components/silke-button/silke-dropdown-button.d.ts +8 -13
- package/dist/types/components/silke-card/silke-card-grid.d.ts +33 -1
- package/dist/types/components/silke-command-text-field/image-utils.d.ts +20 -0
- package/dist/types/components/silke-command-text-field/index.d.ts +4 -0
- package/dist/types/components/silke-command-text-field/silke-command-parser.d.ts +3 -0
- package/dist/types/components/silke-command-text-field/silke-command-parser.spec.d.ts +1 -0
- package/dist/types/components/silke-command-text-field/silke-command-text-field.d.ts +46 -0
- package/dist/types/components/silke-command-text-field/utils.d.ts +61 -0
- package/dist/types/components/silke-command-text-field/utils.spec.d.ts +1 -0
- package/dist/types/components/silke-conditions-input/utils.d.ts +1 -1
- package/dist/types/components/silke-form-schema/silke-schema-fields.d.ts +1 -0
- package/dist/types/components/silke-image/silke-image.d.ts +2 -1
- package/dist/types/components/silke-list/index.d.ts +1 -0
- package/dist/types/components/silke-list/silke-list-item.d.ts +24 -6
- package/dist/types/components/silke-list/silke-list.d.ts +9 -9
- package/dist/types/components/silke-list/types.d.ts +19 -0
- package/dist/types/components/silke-list/utils.d.ts +3 -0
- package/dist/types/components/silke-navigation-link/silke-navigation-link.d.ts +1 -0
- package/dist/types/components/silke-overflow-menu/silke-overflow-menu.d.ts +6 -1
- package/dist/types/components/silke-popover-native/index.d.ts +1 -0
- package/dist/types/components/silke-popover-native/silke-popover-native.d.ts +37 -0
- package/dist/types/components/silke-popover-native/types.d.ts +6 -0
- package/dist/types/components/silke-popover-native/use-popover-positioning.d.ts +9 -0
- package/dist/types/components/silke-select-field/index.d.ts +1 -0
- package/dist/types/components/silke-select-field/silke-select-field-native.d.ts +4 -0
- package/dist/types/components/silke-shortcut-button/index.d.ts +1 -0
- package/dist/types/components/silke-shortcut-button/silke-shortcut-button.d.ts +15 -0
- package/dist/types/components/silke-tag/silke-tag.d.ts +1 -1
- package/dist/types/icons.d.ts +32 -0
- package/jest.config.js +2 -3
- package/package.json +9 -3
- package/src/_variables.scss +125 -129
- package/src/components/index.ts +4 -1
- package/src/components/silke-action-box/silke-action-box.scss +2 -3
- package/src/components/silke-alert-banner/silke-alert-banner.scss +9 -10
- package/src/components/silke-autocomplete-field/autocomplete-item.tsx +2 -2
- package/src/components/silke-autocomplete-field/autocomplete-types.ts +4 -0
- package/src/components/silke-autocomplete-field/index.ts +1 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-field-native.tsx +346 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.mdx +39 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.scss +18 -12
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.tsx +3 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-popup-native.tsx +542 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-popup.tsx +92 -41
- package/src/components/silke-box/silke-box.mdx +321 -21
- package/src/components/silke-box/silke-box.scss +5 -5
- package/src/components/silke-breadcrumbs/silke-breadcrumb.mdx +147 -9
- package/src/components/silke-breadcrumbs/silke-breadcrumb.scss +3 -3
- package/src/components/silke-button/silke-big-button.scss +1 -1
- package/src/components/silke-button/silke-button.scss +27 -18
- package/src/components/silke-button/silke-dropdown-button.mdx +67 -0
- package/src/components/silke-button/silke-dropdown-button.tsx +40 -122
- package/src/components/silke-card/silke-card-grid.tsx +5 -3
- package/src/components/silke-card/silke-card.scss +8 -7
- package/src/components/silke-card/silke-card.tsx +7 -1
- package/src/components/silke-checkbox/silke-checkbox.mdx +139 -14
- package/src/components/silke-checkbox/silke-checkbox.scss +11 -11
- package/src/components/silke-color-picker/color-picker.scss +8 -8
- package/src/components/silke-color-swatches/silke-color-swatches.mdx +130 -0
- package/src/components/silke-command-text-field/image-utils.ts +71 -0
- package/src/components/silke-command-text-field/index.ts +12 -0
- package/src/components/silke-command-text-field/silke-command-parser.spec.ts +89 -0
- package/src/components/silke-command-text-field/silke-command-parser.ts +47 -0
- package/src/components/silke-command-text-field/silke-command-text-field.mdx +301 -0
- package/src/components/silke-command-text-field/silke-command-text-field.module.scss +119 -0
- package/src/components/silke-command-text-field/silke-command-text-field.tsx +665 -0
- package/src/components/silke-command-text-field/utils.spec.ts +366 -0
- package/src/components/silke-command-text-field/utils.ts +287 -0
- package/src/components/silke-conditions-input/silke-conditions-input.scss +4 -4
- package/src/components/silke-content-column/silke-content-column.scss +1 -1
- package/src/components/silke-context-menu/silke-context-menu.scss +3 -4
- package/src/components/silke-context-menu/silke-context-menu.tsx +1 -1
- package/src/components/silke-css-number-field/silke-css-number-field.scss +14 -12
- package/src/components/silke-divider/silke-divider.mdx +154 -32
- package/src/components/silke-divider/silke-divider.scss +3 -2
- package/src/components/silke-drawer/silke-drawer.scss +6 -2
- package/src/components/silke-form/silke-form.mdx +254 -27
- package/src/components/silke-form-schema/fields/array-field-inline.tsx +1 -0
- package/src/components/silke-form-schema/fields/array-field-modal.tsx +1 -0
- package/src/components/silke-form-schema/fields/styles.scss +34 -35
- package/src/components/silke-form-schema/silke-schema-field.tsx +1 -1
- package/src/components/silke-form-schema/silke-schema-fields.tsx +4 -3
- package/src/components/silke-gradient-picker/silke-gradient-picker.module.scss +2 -2
- package/src/components/silke-icon/silke-icon.mdx +212 -8
- package/src/components/silke-icon/silke-icon.scss +10 -2
- package/src/components/silke-icon/silke-icon.tsx +1 -0
- package/src/components/silke-icon/silke-stacked-icon.scss +42 -45
- package/src/components/silke-icon-browser/silke-icon-browser.mdx +143 -0
- package/src/components/silke-image/silke-image-color-backdrop.scss +6 -6
- package/src/components/silke-image/silke-image.mdx +189 -41
- package/src/components/silke-image/silke-image.scss +3 -3
- package/src/components/silke-image/silke-image.tsx +14 -1
- package/src/components/silke-link/silke-link.scss +3 -5
- package/src/components/silke-list/index.ts +1 -0
- package/src/components/silke-list/silke-list-item.mdx +83 -0
- package/src/components/silke-list/silke-list-item.scss +119 -0
- package/src/components/silke-list/silke-list-item.tsx +137 -12
- package/src/components/silke-list/silke-list.mdx +108 -13
- package/src/components/silke-list/silke-list.scss +8 -15
- package/src/components/silke-list/silke-list.tsx +63 -9
- package/src/components/silke-list/types.ts +22 -0
- package/src/components/silke-list/utils.ts +24 -0
- package/src/components/silke-loader/silke-loader.mdx +139 -5
- package/src/components/silke-loader/silke-loader.scss +1 -1
- package/src/components/silke-modal/silke-modal.scss +9 -9
- package/src/components/silke-navigation-link/silke-navigation-link.mdx +27 -2
- package/src/components/silke-navigation-link/silke-navigation-link.scss +34 -40
- package/src/components/silke-navigation-link/silke-navigation-link.tsx +7 -6
- package/src/components/silke-overflow-menu/silke-overflow-menu.mdx +228 -31
- package/src/components/silke-overflow-menu/silke-overflow-menu.scss +8 -8
- package/src/components/silke-overflow-menu/silke-overflow-menu.tsx +14 -8
- package/src/components/silke-popover/silke-popover.scss +5 -5
- package/src/components/silke-popover-native/index.ts +1 -0
- package/src/components/silke-popover-native/silke-popover-native.mdx +207 -0
- package/src/components/silke-popover-native/silke-popover-native.scss +127 -0
- package/src/components/silke-popover-native/silke-popover-native.tsx +176 -0
- package/src/components/silke-popover-native/types.ts +21 -0
- package/src/components/silke-popover-native/use-popover-positioning.ts +157 -0
- package/src/components/silke-progress-indicator/silke-progress-indicator.scss +1 -1
- package/src/components/silke-radio-button/silke-radio-button.scss +18 -11
- package/src/components/silke-search-field/silke-search-field.mdx +161 -7
- package/src/components/silke-select-field/index.ts +1 -0
- package/src/components/silke-select-field/silke-select-field-native.tsx +17 -0
- package/src/components/silke-select-field/silke-select-field.mdx +65 -0
- package/src/components/silke-shortcut-button/index.ts +1 -0
- package/src/components/silke-shortcut-button/silke-shortcut-button.mdx +89 -0
- package/src/components/silke-shortcut-button/silke-shortcut-button.scss +145 -0
- package/src/components/silke-shortcut-button/silke-shortcut-button.tsx +55 -0
- package/src/components/silke-skeleton/silke-skeleton.mdx +109 -0
- package/src/components/silke-skeleton/silke-skeleton.scss +1 -1
- package/src/components/silke-slider/silke-slider.module.scss +19 -19
- package/src/components/silke-sortable-list/silke-nested-sortable-list.scss +3 -3
- package/src/components/silke-sortable-list/silke-sortable-list.scss +4 -5
- package/src/components/silke-table/silke-table.scss +1 -1
- package/src/components/silke-tabs/silke-tabs.scss +3 -3
- package/src/components/silke-tag/silke-tag.mdx +179 -43
- package/src/components/silke-tag/silke-tag.scss +49 -12
- package/src/components/silke-tag/silke-tag.tsx +17 -7
- package/src/components/silke-text/silke-text.scss +6 -4
- package/src/components/silke-text/silke-title.scss +7 -14
- package/src/components/silke-text-field/silke-text-field.scss +9 -9
- package/src/components/silke-text-field/silke-text-field.tsx +3 -2
- package/src/components/silke-tile/silke-tile.scss +7 -3
- package/src/components/silke-toast-notification/silke-toast-notification.scss +4 -5
- package/src/components/silke-toggle/silke-toggle.mdx +163 -33
- package/src/components/silke-toggle/silke-toggle.scss +4 -4
- package/src/components/silke-toolbar/silke-toolbar.scss +1 -1
- package/src/components/silke-tooltip/silke-shortcuts.tsx +3 -3
- package/src/components/silke-tooltip/silke-tooltip.scss +11 -16
- package/src/components/silke-variables-wrapper/silke-variables-wrapper.scss +9 -7
- package/src/components/silke-virtual/silke-virtual.mdx +161 -0
- package/src/components/silke-virtual/silke-virtual.scss +8 -8
- package/src/icons.tsx +45 -1
- package/src/styles/core.scss +42 -45
- package/src/styles/math.scss +66 -66
- package/tsconfig.build.json +2 -6
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.json +3 -14
- package/dist/types/components/silke-list-card/index.d.ts +0 -1
- package/dist/types/components/silke-list-card/silke-list-card.d.ts +0 -14
- package/src/components/silke-list-card/index.ts +0 -1
- package/src/components/silke-list-card/silke-list-card.mdx +0 -46
- package/src/components/silke-list-card/silke-list-card.scss +0 -57
- package/src/components/silke-list-card/silke-list-card.tsx +0 -63
package/dist/types/icons.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ export declare const SilkeIconDefinitions: {
|
|
|
8
8
|
close: string;
|
|
9
9
|
delete: string;
|
|
10
10
|
edit: string;
|
|
11
|
+
'edit.line': string;
|
|
11
12
|
'edit.pen': string;
|
|
13
|
+
'pen.swirl': string;
|
|
12
14
|
error: string;
|
|
13
15
|
help: string;
|
|
14
16
|
community: string;
|
|
@@ -22,6 +24,13 @@ export declare const SilkeIconDefinitions: {
|
|
|
22
24
|
'cloud.check': string;
|
|
23
25
|
'cloud.slash': string;
|
|
24
26
|
ai: string;
|
|
27
|
+
'ai.sparkle': string;
|
|
28
|
+
'ai.page': string;
|
|
29
|
+
'ai.sparkels': string;
|
|
30
|
+
'ai.gradient': typeof AiGradientIcon;
|
|
31
|
+
'ai.image': string;
|
|
32
|
+
'ai.text': string;
|
|
33
|
+
'ai.file': string;
|
|
25
34
|
sparkles: string;
|
|
26
35
|
compare: string;
|
|
27
36
|
menuMore: string;
|
|
@@ -69,6 +78,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
69
78
|
square: string;
|
|
70
79
|
shapes: string;
|
|
71
80
|
sharedStyle: string;
|
|
81
|
+
paintbrush: string;
|
|
72
82
|
firefox: string;
|
|
73
83
|
safari: string;
|
|
74
84
|
'square.dashed': string;
|
|
@@ -83,14 +93,19 @@ export declare const SilkeIconDefinitions: {
|
|
|
83
93
|
'dots.vertical': string;
|
|
84
94
|
'dots.horizontal': string;
|
|
85
95
|
star: string;
|
|
96
|
+
'star.filled': string;
|
|
86
97
|
eyeDropper: string;
|
|
87
98
|
log: string;
|
|
88
99
|
dashboard: string;
|
|
89
100
|
test: string;
|
|
90
101
|
guest: string;
|
|
102
|
+
cartoon: string;
|
|
91
103
|
'network.on': string;
|
|
92
104
|
'network.off': string;
|
|
93
105
|
grid: string;
|
|
106
|
+
'memo.circle.check': string;
|
|
107
|
+
'bring.forward': string;
|
|
108
|
+
'bring.backward': string;
|
|
94
109
|
moon: string;
|
|
95
110
|
sun: string;
|
|
96
111
|
notification: string;
|
|
@@ -119,6 +134,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
119
134
|
'code.fork': string;
|
|
120
135
|
'code.compare': string;
|
|
121
136
|
'code.history': string;
|
|
137
|
+
'code.rectangle': string;
|
|
122
138
|
messages: string;
|
|
123
139
|
'keyboard.command': string;
|
|
124
140
|
'keyboard.option': string;
|
|
@@ -163,6 +179,8 @@ export declare const SilkeIconDefinitions: {
|
|
|
163
179
|
'arrow.up.right.and.down.left': string;
|
|
164
180
|
'arrows.left.right': string;
|
|
165
181
|
'arrows.up.down': string;
|
|
182
|
+
'arrows.from.dotted.line': string;
|
|
183
|
+
'arrows.to.dotted.line': string;
|
|
166
184
|
'padding.all': string;
|
|
167
185
|
'padding.top.bottom': string;
|
|
168
186
|
'padding.left.right': string;
|
|
@@ -191,6 +209,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
191
209
|
commentMarker: string;
|
|
192
210
|
template: string;
|
|
193
211
|
templates: string;
|
|
212
|
+
templatesLegacy: string;
|
|
194
213
|
page: string;
|
|
195
214
|
project: string;
|
|
196
215
|
projects: string;
|
|
@@ -224,6 +243,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
224
243
|
'credit-card': string;
|
|
225
244
|
money: string;
|
|
226
245
|
dynamic: string;
|
|
246
|
+
slash: string;
|
|
227
247
|
'geo.fence.disabled': string;
|
|
228
248
|
'geo.fence.enabled': string;
|
|
229
249
|
'editor.design': string;
|
|
@@ -233,6 +253,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
233
253
|
gradient: typeof GradientIcon;
|
|
234
254
|
image: string;
|
|
235
255
|
images: string;
|
|
256
|
+
camera: string;
|
|
236
257
|
video: string;
|
|
237
258
|
audio: string;
|
|
238
259
|
fill: string;
|
|
@@ -267,6 +288,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
267
288
|
diamond: string;
|
|
268
289
|
crosshair: string;
|
|
269
290
|
clone: string;
|
|
291
|
+
'clone-plus': string;
|
|
270
292
|
'globe-pointer': string;
|
|
271
293
|
globe: string;
|
|
272
294
|
'align.text.right': string;
|
|
@@ -310,6 +332,9 @@ export declare const SilkeIconDefinitions: {
|
|
|
310
332
|
'file.export': string;
|
|
311
333
|
home: string;
|
|
312
334
|
qr: string;
|
|
335
|
+
'pin.on': string;
|
|
336
|
+
'pin.off': string;
|
|
337
|
+
eraser: string;
|
|
313
338
|
list: string;
|
|
314
339
|
'list.ol': string;
|
|
315
340
|
'list.check': string;
|
|
@@ -360,6 +385,9 @@ export declare const SilkeIconDefinitions: {
|
|
|
360
385
|
sass: string;
|
|
361
386
|
typescript: typeof TypescriptIcon;
|
|
362
387
|
html5: string;
|
|
388
|
+
translate: string;
|
|
389
|
+
spell: string;
|
|
390
|
+
'tone.of.voice': string;
|
|
363
391
|
'American Express': string;
|
|
364
392
|
Amex: string;
|
|
365
393
|
'Diners Club': string;
|
|
@@ -375,6 +403,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
375
403
|
laptop: string;
|
|
376
404
|
mobile: string;
|
|
377
405
|
tablet: string;
|
|
406
|
+
devices: string;
|
|
378
407
|
'device.custom': string;
|
|
379
408
|
bar: string;
|
|
380
409
|
line: string;
|
|
@@ -399,6 +428,8 @@ export declare const SilkeIconDefinitions: {
|
|
|
399
428
|
'interaction.disabled': string;
|
|
400
429
|
'interaction.scroll-parallax': string;
|
|
401
430
|
'interaction.slider': string;
|
|
431
|
+
'interaction.movement': string;
|
|
432
|
+
'interaction.translate': string;
|
|
402
433
|
'variable.icon': string;
|
|
403
434
|
'variable.color': string;
|
|
404
435
|
'variable.text': string;
|
|
@@ -462,4 +493,5 @@ declare function ContentChildParent(): import("react/jsx-runtime").JSX.Element;
|
|
|
462
493
|
declare function AnimationFillBackwards(): import("react/jsx-runtime").JSX.Element;
|
|
463
494
|
declare function AnimationFillForwards(): import("react/jsx-runtime").JSX.Element;
|
|
464
495
|
declare function AnimationFillBoth(): import("react/jsx-runtime").JSX.Element;
|
|
496
|
+
declare function AiGradientIcon(): import("react/jsx-runtime").JSX.Element;
|
|
465
497
|
export {};
|
package/jest.config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
|
|
2
|
+
const base = require('../../jest.config.base');
|
|
3
3
|
const package = require('./package.json');
|
|
4
4
|
|
|
5
5
|
const packageName = package.name.split('@vev/').pop();
|
|
@@ -10,7 +10,7 @@ module.exports = {
|
|
|
10
10
|
rootDir: '../..',
|
|
11
11
|
roots: [`<rootDir>/packages/${packageName}`],
|
|
12
12
|
testRegex: `(packages/${packageName}/.*/__tests__/.*|\\.(spec|test))\\.tsx?$`,
|
|
13
|
-
testEnvironmentOptions: { url: 'http://localhost/'
|
|
13
|
+
testEnvironmentOptions: { url: 'http://localhost/' },
|
|
14
14
|
moduleDirectories: ['node_modules', 'src'],
|
|
15
15
|
testEnvironment: 'jsdom',
|
|
16
16
|
setupFiles: [
|
|
@@ -22,5 +22,4 @@ module.exports = {
|
|
|
22
22
|
moduleNameMapper: {
|
|
23
23
|
'^.+\\.(css|less|scss)$': '<rootDir>/jest/empty-file.js',
|
|
24
24
|
},
|
|
25
|
-
transformIgnorePatterns: ['node_modules/(?!(nanoid|nanoid\/non-secure)/)'],
|
|
26
25
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vev/silke",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/vev-design/vev.git",
|
|
8
|
+
"directory": "packages/silke"
|
|
9
|
+
},
|
|
5
10
|
"main": "dist/index.js",
|
|
6
11
|
"types": "dist/types/index.d.ts",
|
|
7
12
|
"scripts": {
|
|
@@ -19,13 +24,14 @@
|
|
|
19
24
|
"peerDependencies": {
|
|
20
25
|
"react": ">=16.0.0",
|
|
21
26
|
"react-dom": ">=16.0.0",
|
|
22
|
-
"react-router-dom": "^7.
|
|
27
|
+
"react-router-dom": "^7.12.0"
|
|
23
28
|
},
|
|
24
29
|
"dependencies": {
|
|
25
30
|
"@vev/interactions": "*",
|
|
26
31
|
"@vev/react": "*",
|
|
27
32
|
"@vev/utils": "*",
|
|
28
|
-
"classnames": ">=2.2.0"
|
|
33
|
+
"classnames": ">=2.2.0",
|
|
34
|
+
"invokers": "^1.8.0"
|
|
29
35
|
},
|
|
30
36
|
"devDependencies": {
|
|
31
37
|
"del-cli": "*",
|
package/src/_variables.scss
CHANGED
|
@@ -1,144 +1,133 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use 'sass:math';
|
|
2
2
|
|
|
3
3
|
/**********************
|
|
4
4
|
* SOME MATH
|
|
5
5
|
************************/
|
|
6
|
-
@import
|
|
6
|
+
@import './styles/math.scss';
|
|
7
7
|
|
|
8
8
|
$colors:
|
|
9
9
|
// Surface
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
'surface-0' transparent,
|
|
11
|
+
'surface-1' rgba(white, 0.04),
|
|
12
|
+
'surface-2' rgba(white, 0.06),
|
|
13
|
+
'surface-3' rgba(white, 0.08),
|
|
14
|
+
'surface-4' rgba(white, 0.12),
|
|
15
15
|
/**********
|
|
16
16
|
* Accent colors *
|
|
17
|
-
**********/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"accent-60" #CCDDFF,
|
|
25
|
-
|
|
17
|
+
**********/ // Accent
|
|
18
|
+
'accent-10' #0d2759,
|
|
19
|
+
'accent-20' #1c53bf,
|
|
20
|
+
'accent-30' #256cfa,
|
|
21
|
+
'accent-40' #4584ff,
|
|
22
|
+
'accent-50' #80abff,
|
|
23
|
+
'accent-60' #ccddff,
|
|
26
24
|
// Feedback/Error
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
'error-10' #661018,
|
|
26
|
+
'error-20' #a61b27,
|
|
27
|
+
'error-30' #e52535,
|
|
28
|
+
'error-40' #f26d78,
|
|
29
|
+
'error-50' #f29199,
|
|
30
|
+
'error-60' #f2dadc,
|
|
34
31
|
// Feedback/Warning
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
32
|
+
'warning-10' #73500b,
|
|
33
|
+
'warning-20' #996b0f,
|
|
34
|
+
'warning-30' #f2c53d,
|
|
35
|
+
'warning-40' #f2d785,
|
|
36
|
+
'warning-50' #f2e0aa,
|
|
37
|
+
'warning-60' #f2e9ce,
|
|
42
38
|
// Feedback/Success
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
'success-10' #045944,
|
|
40
|
+
'success-20' #0e8c6d,
|
|
41
|
+
'success-30' #14cc9e,
|
|
42
|
+
'success-40' #4cd9b6,
|
|
43
|
+
'success-50' #89e5ce,
|
|
44
|
+
'success-60' #daf2ec,
|
|
50
45
|
/**********
|
|
51
46
|
* Neutral colors *
|
|
52
|
-
**********/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"neutral-100" #FCFCFC,
|
|
65
|
-
|
|
47
|
+
**********/ 'neutral-0' #131313,
|
|
48
|
+
'neutral-5' #1e1e1e,
|
|
49
|
+
'neutral-10' #252525,
|
|
50
|
+
'neutral-20' #2f2f2f,
|
|
51
|
+
'neutral-30' #3e3e3e,
|
|
52
|
+
'neutral-40' #535353,
|
|
53
|
+
'neutral-50' #6c6c6c,
|
|
54
|
+
'neutral-60' #848484,
|
|
55
|
+
'neutral-70' #a9a9a9,
|
|
56
|
+
'neutral-80' #c2c2c2,
|
|
57
|
+
'neutral-90' #dadada,
|
|
58
|
+
'neutral-100' #fcfcfc,
|
|
66
59
|
/**********
|
|
67
60
|
* Support colors *
|
|
68
|
-
**********/
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"support-secondary-60" #e5f2ff,
|
|
61
|
+
**********/ // Support/Primary
|
|
62
|
+
'support-primary-10' #3c302a,
|
|
63
|
+
'support-primary-20' #6a5549,
|
|
64
|
+
'support-primary-30' #a48a7b,
|
|
65
|
+
'support-primary-40' #c1afa4,
|
|
66
|
+
'support-primary-50' #d5c9c3,
|
|
67
|
+
'support-primary-60' #eae4e1,
|
|
68
|
+
// Support/Secondary
|
|
69
|
+
'support-secondary-10' #003366,
|
|
70
|
+
'support-secondary-20' #0059b2,
|
|
71
|
+
'support-secondary-30' #0d86ff,
|
|
72
|
+
'support-secondary-40' #4ca6ff,
|
|
73
|
+
'support-secondary-50' #80bfff,
|
|
74
|
+
'support-secondary-60' #e5f2ff,
|
|
83
75
|
// Support/tertiary
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
76
|
+
'support-tertiary-10' #591b3f,
|
|
77
|
+
'support-tertiary-20' #a63275,
|
|
78
|
+
'support-tertiary-30' #cc47a0,
|
|
79
|
+
'support-tertiary-40' #e065c2,
|
|
80
|
+
'support-tertiary-50' #e087ca,
|
|
81
|
+
'support-tertiary-60' #f2cee9,
|
|
90
82
|
// Support/quaternary
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
83
|
+
'support-quaternary-10' #492b8f,
|
|
84
|
+
'support-quaternary-20' #5f38b9,
|
|
85
|
+
'support-quaternary-30' #7850d2,
|
|
86
|
+
'support-quaternary-40' #936cec,
|
|
87
|
+
'support-quaternary-50' #ae90f0,
|
|
88
|
+
'support-quaternary-60' #c8b5f3,
|
|
98
89
|
/**********
|
|
99
90
|
* Brand colors *
|
|
100
|
-
**********/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"brand-primary-60" #fae794,
|
|
91
|
+
**********/ // Brand/Primary
|
|
92
|
+
'brand-primary-bright' #ffff00,
|
|
93
|
+
'brand-primary-10' #5a2820,
|
|
94
|
+
'brand-primary-20' #aa6739,
|
|
95
|
+
'brand-primary-30' #ecb54f,
|
|
96
|
+
'brand-primary-40' #f0c665,
|
|
97
|
+
'brand-primary-50' #f5d77c,
|
|
98
|
+
'brand-primary-60' #fae794,
|
|
109
99
|
// Brand/Secondary
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
100
|
+
'brand-secondary-bright' #01dccd,
|
|
101
|
+
'brand-secondary-10' #173343,
|
|
102
|
+
'brand-secondary-20' #296d79,
|
|
103
|
+
'brand-secondary-30' #57ada1,
|
|
104
|
+
'brand-secondary-40' #7dbcac,
|
|
105
|
+
'brand-secondary-50' #9dcbba,
|
|
106
|
+
'brand-secondary-60' #bcdacb,
|
|
117
107
|
// Brand/Tertiary
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
108
|
+
'brand-tertiary-bright' #ff0000,
|
|
109
|
+
'brand-tertiary-10' #4c1726,
|
|
110
|
+
'brand-tertiary-20' #9a1e2d,
|
|
111
|
+
'brand-tertiary-30' #e6332a,
|
|
112
|
+
'brand-tertiary-40' #f86a6a,
|
|
113
|
+
'brand-tertiary-50' #f89fb4,
|
|
114
|
+
'brand-tertiary-60' #efd1de,
|
|
125
115
|
// Brand/Quaternary
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"black" #000000;
|
|
116
|
+
'brand-quaternary-10' #46372c,
|
|
117
|
+
'brand-quaternary-20' #735f52,
|
|
118
|
+
'brand-quaternary-30' #a48a7b,
|
|
119
|
+
'brand-quaternary-40' #bba08e,
|
|
120
|
+
'brand-quaternary-50' #d3b7a1,
|
|
121
|
+
'brand-quaternary-60' #eaceb4,
|
|
122
|
+
'black' #000000;
|
|
134
123
|
|
|
135
124
|
/**********************
|
|
136
125
|
* FONT
|
|
137
126
|
************************/
|
|
138
|
-
$font-family:
|
|
139
|
-
$font-family-brand:
|
|
140
|
-
$font-family-login:
|
|
141
|
-
$font-mono:
|
|
127
|
+
$font-family: 'Roboto Flex', serif;
|
|
128
|
+
$font-family-brand: 'Roboto Flex', serif;
|
|
129
|
+
$font-family-login: 'Iskry', 'Roboto Flex', sans-serif;
|
|
130
|
+
$font-mono: 'Source Code Pro', monospace;
|
|
142
131
|
$font-weight: normal;
|
|
143
132
|
$font-style: normal;
|
|
144
133
|
$font-weight: 400;
|
|
@@ -156,14 +145,23 @@ $space-none: 0px;
|
|
|
156
145
|
$space-xxs: 2px;
|
|
157
146
|
$space-xs: 4px;
|
|
158
147
|
$space-s: 8px;
|
|
159
|
-
$space-sm:12px;
|
|
148
|
+
$space-sm: 12px;
|
|
160
149
|
$space-m: 16px;
|
|
161
150
|
$space-l: 24px;
|
|
162
151
|
$space-xl: 32px;
|
|
163
152
|
$space-xxl: 48px;
|
|
164
153
|
$space-xxxl: 64px;
|
|
165
|
-
$space:
|
|
166
|
-
|
|
154
|
+
$space:
|
|
155
|
+
'xxs' $space-xxs,
|
|
156
|
+
'xs' $space-xs,
|
|
157
|
+
's' $space-s,
|
|
158
|
+
'sm' $space-sm,
|
|
159
|
+
'm' $space-m,
|
|
160
|
+
'l' $space-l,
|
|
161
|
+
'xl' $space-xl,
|
|
162
|
+
'xxl' $space-xxl,
|
|
163
|
+
'xxxl' $space-xxxl,
|
|
164
|
+
'none' $space-none;
|
|
167
165
|
|
|
168
166
|
/**********************
|
|
169
167
|
* SIZES
|
|
@@ -178,16 +176,15 @@ $size-xxl: 80px;
|
|
|
178
176
|
$size-256: 256px;
|
|
179
177
|
$size-512: 512px;
|
|
180
178
|
$sizes:
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
179
|
+
'xs' $size-xs,
|
|
180
|
+
's' $size-s,
|
|
181
|
+
'base' $size-base,
|
|
182
|
+
'm' $size-m,
|
|
183
|
+
'l' $size-l,
|
|
184
|
+
'xl' $size-xl,
|
|
185
|
+
'xxl' $size-xxl,
|
|
186
|
+
'256' $size-256,
|
|
187
|
+
'512' $size-512;
|
|
191
188
|
|
|
192
189
|
/**
|
|
193
190
|
* Get font size base on base font size
|
|
@@ -205,7 +202,7 @@ $sizes:
|
|
|
205
202
|
$e: 2.71828182846;
|
|
206
203
|
font-size: $size;
|
|
207
204
|
font-style: $font-style;
|
|
208
|
-
line-height: ceil(math.div(($size * 1.3)
|
|
205
|
+
line-height: ceil(math.div(($size * 1.3), 8)) * 8;
|
|
209
206
|
letter-spacing: #{(-0.0223 + 0.185 * pow($e, -0.1745 * $size)) * 1em};
|
|
210
207
|
@if $size > $font-base {
|
|
211
208
|
font-weight: $font-weight-header;
|
|
@@ -219,4 +216,3 @@ $sizes:
|
|
|
219
216
|
color: var(--color-neutral-100);
|
|
220
217
|
@include fontSize($size);
|
|
221
218
|
}
|
|
222
|
-
|
package/src/components/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './silke-color-palettes';
|
|
|
11
11
|
export * from './silke-color-swatches';
|
|
12
12
|
export * from './silke-content-column';
|
|
13
13
|
export * from './silke-context-menu';
|
|
14
|
+
export * from './silke-command-text-field';
|
|
14
15
|
export * from './silke-divider';
|
|
15
16
|
export * from './silke-drawer';
|
|
16
17
|
export * from './silke-form-schema';
|
|
@@ -19,7 +20,6 @@ export * from './silke-iframe-portal';
|
|
|
19
20
|
export * from './silke-image';
|
|
20
21
|
export * from './silke-link';
|
|
21
22
|
export * from './silke-list';
|
|
22
|
-
export * from './silke-list-card';
|
|
23
23
|
export * from './silke-loader';
|
|
24
24
|
export * from './silke-modal';
|
|
25
25
|
export * from './silke-navigation-link';
|
|
@@ -41,6 +41,9 @@ export * from './silke-tile';
|
|
|
41
41
|
export * from './silke-toolbar';
|
|
42
42
|
export * from './silke-tooltip';
|
|
43
43
|
export * from './silke-action-box';
|
|
44
|
+
export * from './silke-shortcut-button';
|
|
45
|
+
export * from './silke-popover-native';
|
|
46
|
+
export * from './silke-list';
|
|
44
47
|
|
|
45
48
|
// Form fields
|
|
46
49
|
export * from './silke-autocomplete-field';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@use
|
|
2
|
-
|
|
1
|
+
@use '../../variables' as *;
|
|
3
2
|
|
|
4
3
|
.notificationBox {
|
|
5
4
|
--notification-background: var(--color-support-secondary-10-rgb);
|
|
6
5
|
--notification-color: var(--color-support-secondary-40);
|
|
7
6
|
--notification-background-opacity: var(--opacity-level-medium);
|
|
8
7
|
filter: var(--shadow-level-1);
|
|
9
|
-
background:
|
|
8
|
+
background:
|
|
9
|
+
linear-gradient(
|
|
10
10
|
0deg,
|
|
11
11
|
rgba(var(--notification-background), var(--notification-background-opacity)),
|
|
12
12
|
rgba(var(--notification-background), var(--notification-background-opacity))
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
color: white;
|
|
16
16
|
max-width: 1096px;
|
|
17
17
|
--notification-background-opacity: 1;
|
|
18
|
-
|
|
19
18
|
|
|
20
19
|
// Double class to override silke button
|
|
21
20
|
.close.close.close {
|
|
@@ -36,7 +35,7 @@
|
|
|
36
35
|
justify-content: center;
|
|
37
36
|
|
|
38
37
|
&:hover {
|
|
39
|
-
color: rgba(var(--color-neutral-100-rgb), .5)
|
|
38
|
+
color: rgba(var(--color-neutral-100-rgb), 0.5);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
|
|
@@ -45,10 +44,10 @@
|
|
|
45
44
|
font-weight: bold;
|
|
46
45
|
justify-content: start;
|
|
47
46
|
align-items: flex-end;
|
|
48
|
-
padding:0;
|
|
47
|
+
padding: 0;
|
|
49
48
|
line-height: 18px;
|
|
50
|
-
height:18px;
|
|
51
|
-
min-height:18px;
|
|
49
|
+
height: 18px;
|
|
50
|
+
min-height: 18px;
|
|
52
51
|
--silke-button-background: transparent;
|
|
53
52
|
--silke-button-background-hover: transparent;
|
|
54
53
|
--silke-button-background-pressed: transparent;
|
|
@@ -97,7 +96,7 @@
|
|
|
97
96
|
|
|
98
97
|
.scale {
|
|
99
98
|
opacity: 0;
|
|
100
|
-
animation: scale 250ms 300ms cubic-bezier(.45
|
|
99
|
+
animation: scale 250ms 300ms cubic-bezier(0.45, 0.65, 0.62, 0.99) forwards;
|
|
101
100
|
transform-origin: center center;
|
|
102
101
|
}
|
|
103
102
|
|
|
@@ -113,5 +112,5 @@
|
|
|
113
112
|
100% {
|
|
114
113
|
opacity: 1;
|
|
115
114
|
transform: scale(1);
|
|
116
|
-
|
|
115
|
+
}
|
|
117
116
|
}
|
|
@@ -61,8 +61,8 @@ export default function AutocompleteItem<T, U extends Entry<T>>({
|
|
|
61
61
|
role="option"
|
|
62
62
|
height={boxSize}
|
|
63
63
|
hPad={ItemRender || item.icon || item.image ? undefined : 's'}
|
|
64
|
-
bg={highlight ? '
|
|
65
|
-
bgHover={isDisabled ? undefined : '
|
|
64
|
+
bg={highlight ? 'surface-2' : undefined}
|
|
65
|
+
bgHover={isDisabled ? undefined : 'surface-2'}
|
|
66
66
|
vAlign="center"
|
|
67
67
|
gap={item.icon || item.image ? 'xxs' : 'xs'}
|
|
68
68
|
rounded={size === 's' ? 'tiny' : 'small'}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import AutocompleteTags from './autocomplete-tags';
|
|
2
2
|
|
|
3
3
|
export * from './silke-autocomplete-field';
|
|
4
|
+
export * from './silke-autocomplete-field-native';
|
|
4
5
|
export { Entry } from './autocomplete-types';
|
|
5
6
|
export * from './autocomplete-tags';
|
|
6
7
|
export { AutocompleteTags };
|