@vev/silke 1.1.6 → 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 +8 -0
- package/dist/index.js +35 -35
- package/dist/index.js.LEGAL.txt +12 -12
- package/dist/styles.css +4416 -4020
- package/dist/types/components/index.d.ts +3 -2
- 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-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/silke-popover-native.d.ts +3 -1
- 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 +30 -0
- package/jest.config.js +2 -3
- package/package.json +7 -2
- package/src/_variables.scss +125 -129
- package/src/components/index.ts +3 -2
- 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/silke-autocomplete-field.scss +18 -12
- package/src/components/silke-autocomplete-field/silke-autocomplete-popup-native.tsx +3 -2
- package/src/components/silke-autocomplete-field/silke-autocomplete-popup.tsx +63 -44
- 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 +24 -15
- 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-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/silke-popover-native.scss +93 -78
- package/src/components/silke-popover-native/silke-popover-native.tsx +4 -0
- package/src/components/silke-popover-native/use-popover-positioning.ts +1 -3
- 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-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 +1 -1
- 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 +43 -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-action-list/index.d.ts +0 -1
- package/dist/types/components/silke-action-list/silke-action-list.d.ts +0 -11
- 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-action-list/index.ts +0 -1
- package/src/components/silke-action-list/silke-action-list.mdx +0 -48
- package/src/components/silke-action-list/silke-action-list.scss +0 -21
- package/src/components/silke-action-list/silke-action-list.tsx +0 -85
- 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/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,8 +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';
|
|
44
45
|
export * from './silke-popover-native';
|
|
45
|
-
export * from './silke-
|
|
46
|
+
export * from './silke-list';
|
|
46
47
|
|
|
47
48
|
// Form fields
|
|
48
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,31 +1,32 @@
|
|
|
1
1
|
.root {
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
user-select: none;
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
&:not(.disabled):hover,
|
|
6
6
|
&.open {
|
|
7
|
-
.downIcon{
|
|
7
|
+
.downIcon {
|
|
8
8
|
color: var(--color-neutral-100);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
&:not(.disabled):hover:not(.open){
|
|
12
|
-
.arrow{
|
|
11
|
+
&:not(.disabled):hover:not(.open) {
|
|
12
|
+
.arrow {
|
|
13
13
|
padding-top: 4px;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
&.open:not(.ghost){
|
|
17
|
+
&.open:not(.ghost) {
|
|
18
18
|
--text-field-bg: var(--color-neutral-20);
|
|
19
19
|
--text-field-hover-bg: var(--color-neutral-20);
|
|
20
20
|
--text-field-focus-border-color: transparent;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.placeholder,
|
|
23
|
+
.placeholder,
|
|
24
|
+
&.disabled [data-input] {
|
|
24
25
|
color: var(--text-field-disabled-placeholder-color);
|
|
25
26
|
font-size: var(--text-field-font-size);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
&.disabled *{
|
|
29
|
+
&.disabled * {
|
|
29
30
|
cursor: not-allowed;
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -53,20 +54,25 @@
|
|
|
53
54
|
// opacity: 0;
|
|
54
55
|
transform: translateY(0);
|
|
55
56
|
// color: var(--text-field-placeholder-color);
|
|
56
|
-
transition:
|
|
57
|
+
transition:
|
|
58
|
+
opacity 0.5s ease-in-out,
|
|
59
|
+
transform 0.3s ease-out;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
.hiddenSearch{
|
|
60
|
-
width:0;
|
|
62
|
+
.hiddenSearch {
|
|
63
|
+
width: 0;
|
|
64
|
+
height: 0;
|
|
61
65
|
overflow: hidden;
|
|
62
66
|
opacity: 0;
|
|
63
67
|
}
|
|
64
68
|
|
|
65
69
|
.arrow {
|
|
66
|
-
transition:
|
|
70
|
+
transition:
|
|
71
|
+
padding-top 0.2s ease-out,
|
|
72
|
+
color 0.2s ease-out;
|
|
67
73
|
height: 100%;
|
|
68
74
|
width: 16px;
|
|
69
75
|
i {
|
|
70
76
|
font-size: 10px !important;
|
|
71
77
|
}
|
|
72
|
-
}
|
|
78
|
+
}
|
|
@@ -394,12 +394,13 @@ export function SilkeAutocompletePopupNative<T>(props: SilkeAutocompletePopupNat
|
|
|
394
394
|
rounded={size === 's' ? 'tiny' : 'small'}
|
|
395
395
|
shadow="level3"
|
|
396
396
|
data-cy={dataCy ? dataCy + '-dropdown' : undefined}
|
|
397
|
-
bg="neutral-
|
|
397
|
+
bg="neutral-10"
|
|
398
398
|
column
|
|
399
399
|
style={{
|
|
400
400
|
maxHeight: 300,
|
|
401
401
|
minWidth: dropDownMinWidth,
|
|
402
402
|
maxWidth: dropDownMaxWidth,
|
|
403
|
+
border: '1px solid var(--color-surface-2)',
|
|
403
404
|
}}
|
|
404
405
|
gap={disableSearch ? undefined : 'xs'}
|
|
405
406
|
vPad="xs"
|
|
@@ -450,7 +451,7 @@ export function SilkeAutocompletePopupNative<T>(props: SilkeAutocompletePopupNat
|
|
|
450
451
|
{buttonRight && <div onClick={() => onRequestClose?.()}>{buttonRight}</div>}
|
|
451
452
|
</SilkeTextField>
|
|
452
453
|
</SilkeBox>
|
|
453
|
-
{!disableSearch && <SilkeDivider />}
|
|
454
|
+
{!disableSearch && <SilkeDivider dark />}
|
|
454
455
|
<SilkeBox column scroll flex hPad="xs">
|
|
455
456
|
{displayedItems.length === 0 && (
|
|
456
457
|
<SilkeBox hPad="s" height={size} vAlign="center">
|