@vev/silke 1.1.6 → 1.1.8
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 +14 -0
- package/dist/index.js +34 -34
- 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-conditions-input/utils.d.ts +1 -1
- package/dist/types/components/silke-form-schema/fields/color-field.d.ts +3 -0
- package/dist/types/components/silke-form-schema/schema-utils.d.ts +6 -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/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 +32 -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 +672 -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 +9 -4
- package/src/components/silke-form-schema/fields/array-field.tsx +27 -3
- package/src/components/silke-form-schema/fields/color-field.tsx +36 -0
- package/src/components/silke-form-schema/fields/styles.scss +34 -35
- package/src/components/silke-form-schema/schema-utils.ts +27 -1
- package/src/components/silke-form-schema/silke-schema-field.tsx +2 -0
- 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 +50 -13
- 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 +58 -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/icons.tsx
CHANGED
|
@@ -11,7 +11,9 @@ export const SilkeIconDefinitions = {
|
|
|
11
11
|
close: 'fal fa-times',
|
|
12
12
|
delete: 'fal fa-trash',
|
|
13
13
|
edit: 'fal fa-edit',
|
|
14
|
+
'edit.line': 'fal fa-pencil-line',
|
|
14
15
|
'edit.pen': 'fal fa-pen',
|
|
16
|
+
'pen.swirl': 'fal fa-pen-swirl',
|
|
15
17
|
error: 'fas fa-exclamation',
|
|
16
18
|
help: 'fal fa-question-circle',
|
|
17
19
|
community: 'fal fa-user-group-simple',
|
|
@@ -25,6 +27,14 @@ export const SilkeIconDefinitions = {
|
|
|
25
27
|
'cloud.check': 'fal fa-cloud-check',
|
|
26
28
|
'cloud.slash': 'fal fa-cloud-slash',
|
|
27
29
|
ai: 'fa-light fa-sparkles',
|
|
30
|
+
'ai.sparkle': 'fa-solid fa-sparkle',
|
|
31
|
+
'ai.page': 'fa-light fa-file-lines',
|
|
32
|
+
'ai.sparkels': 'fal fa-sparkles',
|
|
33
|
+
'ai.gradient': AiGradientIcon,
|
|
34
|
+
'ai.image': 'fa-kit fa-light-image-sparkle-tr',
|
|
35
|
+
'ai.component': AiGradientComponent,
|
|
36
|
+
'ai.text': 'fa-kit fa-light-text-sparkle-tr',
|
|
37
|
+
'ai.file': 'fa-kit fa-light-file-lines-sparkle',
|
|
28
38
|
sparkles: 'fa-solid fa-sparkles',
|
|
29
39
|
compare: 'fal fa-shuffle',
|
|
30
40
|
menuMore: 'fal fa-ellipsis-v',
|
|
@@ -72,6 +82,7 @@ export const SilkeIconDefinitions = {
|
|
|
72
82
|
square: 'fal fa-square',
|
|
73
83
|
shapes: 'fal fa-shapes',
|
|
74
84
|
sharedStyle: 'fal fa-pencil-paintbrush',
|
|
85
|
+
paintbrush: 'fal fa-paintbrush',
|
|
75
86
|
firefox: 'fab fa-firefox',
|
|
76
87
|
safari: 'fa-brands fa-safari',
|
|
77
88
|
'square.dashed': 'fal fa-square-dashed',
|
|
@@ -85,15 +96,20 @@ export const SilkeIconDefinitions = {
|
|
|
85
96
|
dot: 'fas fa-circle-small',
|
|
86
97
|
'dots.vertical': 'fal fa-ellipsis-stroke-vertical',
|
|
87
98
|
'dots.horizontal': 'fal fa-ellipsis-stroke-vertical fa-rotate-90',
|
|
88
|
-
star: '
|
|
99
|
+
star: 'fal fa-star',
|
|
100
|
+
'star.filled': 'fa-solid fa-star',
|
|
89
101
|
eyeDropper: 'fal fa-eye-dropper',
|
|
90
102
|
log: 'fal fa-binary',
|
|
91
103
|
dashboard: 'fal fa-grid-2',
|
|
92
104
|
test: 'fal fa-flask-vial',
|
|
93
105
|
guest: 'fal fa-user-astronaut',
|
|
106
|
+
cartoon: 'fal fa-face-awesome',
|
|
94
107
|
'network.on': 'fal fa-wifi',
|
|
95
108
|
'network.off': 'fal fa-wifi-slash',
|
|
96
109
|
grid: 'fal fa-grid',
|
|
110
|
+
'memo.circle.check': 'fal fa-memo-circle-check',
|
|
111
|
+
'bring.forward': 'fal fa-bring-forward',
|
|
112
|
+
'bring.backward': 'fal fa-send-backward',
|
|
97
113
|
|
|
98
114
|
moon: 'fal fa-moon',
|
|
99
115
|
sun: 'fal fa-sun-bright',
|
|
@@ -129,6 +145,7 @@ export const SilkeIconDefinitions = {
|
|
|
129
145
|
'code.fork': 'fal fa-code-fork',
|
|
130
146
|
'code.compare': 'fal fa-code-compare',
|
|
131
147
|
'code.history': 'fal fa-clock-rotate-left',
|
|
148
|
+
'code.rectangle': 'fal fa-rectangle-code',
|
|
132
149
|
messages: 'fal fa-comments-alt',
|
|
133
150
|
|
|
134
151
|
// KEYBOARD SYMBOLS
|
|
@@ -178,6 +195,8 @@ export const SilkeIconDefinitions = {
|
|
|
178
195
|
'arrow.up.right.and.down.left': 'fal fa-arrow-up-right-and-arrow-down-left-from-center',
|
|
179
196
|
'arrows.left.right': 'fa-light fa-arrows-left-right-to-line',
|
|
180
197
|
'arrows.up.down': 'fa-light fa-arrows-left-right-to-line fa-rotate-90',
|
|
198
|
+
'arrows.from.dotted.line': 'fal fa-arrows-from-dotted-line',
|
|
199
|
+
'arrows.to.dotted.line': 'fal fa-arrows-to-dotted-line',
|
|
181
200
|
|
|
182
201
|
'padding.all': 'fa-kit fa-padding-all',
|
|
183
202
|
'padding.top.bottom': 'fa-kit fa-padding-horizontal fa-rotate-90',
|
|
@@ -213,6 +232,7 @@ export const SilkeIconDefinitions = {
|
|
|
213
232
|
// PLATFORM ICONS
|
|
214
233
|
template: 'fal fa-copy',
|
|
215
234
|
templates: 'fal fa-copy',
|
|
235
|
+
templatesLegacy: 'fal fa-table-layout',
|
|
216
236
|
page: 'fal fa-page',
|
|
217
237
|
project: 'fal fa-browser',
|
|
218
238
|
projects: 'fal fa-browsers',
|
|
@@ -246,6 +266,7 @@ export const SilkeIconDefinitions = {
|
|
|
246
266
|
'credit-card': 'fal fa-credit-card',
|
|
247
267
|
money: 'fal fa-money-bill',
|
|
248
268
|
dynamic: 'fa-light fa-bolt-lightning',
|
|
269
|
+
slash: 'fal fa-slash-forward',
|
|
249
270
|
'geo.fence.disabled': 'fa-light fa-globe',
|
|
250
271
|
'geo.fence.enabled': 'fa-light fa-location-pin',
|
|
251
272
|
// EDITOR ICONS
|
|
@@ -256,6 +277,7 @@ export const SilkeIconDefinitions = {
|
|
|
256
277
|
gradient: GradientIcon,
|
|
257
278
|
image: 'fal fa-image',
|
|
258
279
|
images: 'fal fa-images',
|
|
280
|
+
camera: 'fal fa-camera',
|
|
259
281
|
video: 'fal fa-video',
|
|
260
282
|
audio: 'fal fa-music',
|
|
261
283
|
fill: 'fal fa-fill-drip',
|
|
@@ -291,6 +313,7 @@ export const SilkeIconDefinitions = {
|
|
|
291
313
|
diamond: 'fa-light fa-gem',
|
|
292
314
|
crosshair: 'fa-light fa-crosshairs',
|
|
293
315
|
clone: 'fa-light fa-clone',
|
|
316
|
+
'clone-plus': 'fa-light fa-clone-plus',
|
|
294
317
|
'globe-pointer': 'fa-light fa-globe-pointer',
|
|
295
318
|
globe: 'fa-light fa-globe',
|
|
296
319
|
|
|
@@ -340,6 +363,9 @@ export const SilkeIconDefinitions = {
|
|
|
340
363
|
'file.export': 'fal fa-file-export',
|
|
341
364
|
home: 'fal fa-house',
|
|
342
365
|
qr: 'fal fa-qrcode',
|
|
366
|
+
'pin.on': 'fa-light fa-thumbtack-angle',
|
|
367
|
+
'pin.off': 'fa-light fa-thumbtack-angle-slash',
|
|
368
|
+
eraser: 'fal fa-eraser',
|
|
343
369
|
|
|
344
370
|
list: 'fal fa-list',
|
|
345
371
|
'list.ol': 'fal fa-list-ol',
|
|
@@ -393,6 +419,9 @@ export const SilkeIconDefinitions = {
|
|
|
393
419
|
sass: 'fab fa-sass',
|
|
394
420
|
typescript: TypescriptIcon,
|
|
395
421
|
html5: 'fab fa-html5',
|
|
422
|
+
translate: 'fal fa-language',
|
|
423
|
+
spell: 'fal fa-spell-check',
|
|
424
|
+
'tone.of.voice': 'fal fa-head-side-speak',
|
|
396
425
|
|
|
397
426
|
// Card icons
|
|
398
427
|
'American Express': 'fab fa-cc-amex',
|
|
@@ -412,6 +441,7 @@ export const SilkeIconDefinitions = {
|
|
|
412
441
|
laptop: 'fal fa-laptop',
|
|
413
442
|
mobile: 'fal fa-mobile-alt',
|
|
414
443
|
tablet: 'fal fa-tablet-alt',
|
|
444
|
+
devices: 'fal fa-laptop-mobile',
|
|
415
445
|
'device.custom': 'fal fa-rectangle-landscape',
|
|
416
446
|
|
|
417
447
|
// Graphs
|
|
@@ -828,3 +858,30 @@ function AnimationFillBoth() {
|
|
|
828
858
|
</svg>
|
|
829
859
|
);
|
|
830
860
|
}
|
|
861
|
+
|
|
862
|
+
function AiGradientIcon() {
|
|
863
|
+
return (
|
|
864
|
+
<i
|
|
865
|
+
className="fa-solid fa-sparkle"
|
|
866
|
+
style={{
|
|
867
|
+
background: 'linear-gradient(208deg, #B38FFF 31.76%, #2AEEE1 123.33%)',
|
|
868
|
+
backgroundClip: 'text',
|
|
869
|
+
WebkitTextFillColor: 'transparent',
|
|
870
|
+
}}
|
|
871
|
+
/>
|
|
872
|
+
);
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
function AiGradientComponent() {
|
|
876
|
+
return (
|
|
877
|
+
<i
|
|
878
|
+
className="fa-kit fa-light-cube-sparkle-tr"
|
|
879
|
+
style={{
|
|
880
|
+
background: 'linear-gradient(208deg, #B38FFF 31.76%, #2AEEE1 123.33%)',
|
|
881
|
+
backgroundClip: 'text',
|
|
882
|
+
WebkitTextFillColor: 'transparent',
|
|
883
|
+
lineHeight: 'inherit',
|
|
884
|
+
}}
|
|
885
|
+
/>
|
|
886
|
+
);
|
|
887
|
+
}
|
package/src/styles/core.scss
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use '../variables' as *;
|
|
2
2
|
|
|
3
3
|
@font-face {
|
|
4
|
-
font-family:
|
|
5
|
-
src:
|
|
6
|
-
|
|
4
|
+
font-family: 'Iskry';
|
|
5
|
+
src:
|
|
6
|
+
url('https://cdn.vev.design/font/tWK-oVG0VI/Iskry-Regular.woff2') format('woff2'),
|
|
7
|
+
url('https://cdn.vev.design/font/tWK-oVG0VI/Iskry-Regular.woff') format('woff');
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
:global {
|
|
@@ -17,16 +18,16 @@
|
|
|
17
18
|
|
|
18
19
|
::-webkit-scrollbar-thumb {
|
|
19
20
|
border-radius: 7px;
|
|
20
|
-
border-right: 2px solid rgba(0, 0, 0, 0);
|
|
21
|
+
border-right: 2px solid rgba(0, 0, 0, 0);
|
|
21
22
|
background-clip: padding-box;
|
|
22
23
|
background-color: transparent;
|
|
23
24
|
}
|
|
24
|
-
*:hover::-webkit-scrollbar-thumb{
|
|
25
|
+
*:hover::-webkit-scrollbar-thumb {
|
|
25
26
|
background-color: rgba(255, 255, 255, 0.1);
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
@media (hover: none) {
|
|
29
|
-
::-webkit-scrollbar-thumb{
|
|
30
|
+
::-webkit-scrollbar-thumb {
|
|
30
31
|
background-color: rgba(255, 255, 255, 0.1);
|
|
31
32
|
}
|
|
32
33
|
}
|
|
@@ -36,10 +37,7 @@
|
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
::-webkit-inner-spin-button {
|
|
39
|
-
background-color: rgba(
|
|
40
|
-
var(--color-neutral-100-rgb),
|
|
41
|
-
var(--opacity-level-light)
|
|
42
|
-
);
|
|
40
|
+
background-color: rgba(var(--color-neutral-100-rgb), var(--opacity-level-light));
|
|
43
41
|
color: var(--color-neutral-100);
|
|
44
42
|
display: none;
|
|
45
43
|
}
|
|
@@ -76,7 +74,6 @@
|
|
|
76
74
|
|
|
77
75
|
svg {
|
|
78
76
|
fill: var(--color-neutral-100);
|
|
79
|
-
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
*,
|
|
@@ -94,10 +91,7 @@
|
|
|
94
91
|
}
|
|
95
92
|
|
|
96
93
|
hr {
|
|
97
|
-
background-color: rgba(
|
|
98
|
-
var(--color-neutral-100-rgb),
|
|
99
|
-
var(--opacity-level-light)
|
|
100
|
-
);
|
|
94
|
+
background-color: rgba(var(--color-neutral-100-rgb), var(--opacity-level-light));
|
|
101
95
|
border-width: 0;
|
|
102
96
|
height: 1px;
|
|
103
97
|
margin: $space-m 0;
|
|
@@ -108,12 +102,12 @@
|
|
|
108
102
|
cursor: pointer;
|
|
109
103
|
}
|
|
110
104
|
|
|
111
|
-
a[rel=
|
|
112
|
-
a[rel=
|
|
105
|
+
a[rel='button'],
|
|
106
|
+
a[rel='button']:hover {
|
|
113
107
|
color: var(--color-neutral-100);
|
|
114
108
|
}
|
|
115
109
|
|
|
116
|
-
body{
|
|
110
|
+
body {
|
|
117
111
|
--font-family-mono: #{$font-mono};
|
|
118
112
|
}
|
|
119
113
|
pre {
|
|
@@ -131,7 +125,7 @@
|
|
|
131
125
|
-webkit-text-fill-color: var(--color-neutral-100) !important;
|
|
132
126
|
}
|
|
133
127
|
|
|
134
|
-
html span[type=
|
|
128
|
+
html span[type='button'] {
|
|
135
129
|
-webkit-appearance: none;
|
|
136
130
|
}
|
|
137
131
|
|
|
@@ -160,7 +154,7 @@
|
|
|
160
154
|
}
|
|
161
155
|
|
|
162
156
|
.transparent-bg {
|
|
163
|
-
background-image: url(
|
|
157
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAIElEQVQ4y2P4TwDcv38fL2YYNWBYGEBIASEwasCwMAAAv7rMLvozJBUAAAAASUVORK5CYII=');
|
|
164
158
|
background-position: 50% 50%;
|
|
165
159
|
}
|
|
166
160
|
|
|
@@ -170,62 +164,57 @@
|
|
|
170
164
|
letter-spacing: 0.0001em;
|
|
171
165
|
}
|
|
172
166
|
|
|
173
|
-
div[data-shadow=
|
|
167
|
+
div[data-shadow='level1'] {
|
|
174
168
|
filter: var(--shadow-level-1);
|
|
175
169
|
}
|
|
176
170
|
|
|
177
|
-
div[data-shadow=
|
|
171
|
+
div[data-shadow='level2'] {
|
|
178
172
|
filter: var(--shadow-level-2);
|
|
179
173
|
}
|
|
180
174
|
|
|
181
|
-
div[data-shadow=
|
|
175
|
+
div[data-shadow='level3'] {
|
|
182
176
|
filter: var(--shadow-level-3);
|
|
183
177
|
}
|
|
184
|
-
div[data-shadow=
|
|
178
|
+
div[data-shadow='level4'] {
|
|
185
179
|
filter: var(--shadow-level-4);
|
|
186
180
|
}
|
|
187
181
|
|
|
188
|
-
|
|
189
182
|
@each $name, $color in $colors {
|
|
190
|
-
.bg-#{$name},
|
|
183
|
+
.bg-#{$name},
|
|
184
|
+
.bg-hover-#{$name}:hover {
|
|
191
185
|
background-color: #{$color};
|
|
192
186
|
}
|
|
193
|
-
|
|
194
|
-
.color-#{$name},
|
|
187
|
+
|
|
188
|
+
.color-#{$name},
|
|
189
|
+
.color-hover-#{$name}:hover {
|
|
195
190
|
color: #{$color};
|
|
196
191
|
}
|
|
197
192
|
}
|
|
198
|
-
|
|
199
|
-
.bg-blur{
|
|
193
|
+
|
|
194
|
+
.bg-blur {
|
|
200
195
|
background: var(--color-neutral-5);
|
|
201
196
|
}
|
|
202
197
|
}
|
|
203
198
|
|
|
204
|
-
|
|
205
199
|
:root {
|
|
206
|
-
|
|
207
|
-
|
|
208
200
|
// opacity
|
|
209
|
-
--opacity-level-10: 0.
|
|
201
|
+
--opacity-level-10: 0.9;
|
|
210
202
|
--opacity-level-semiopaque: 0.72;
|
|
211
203
|
--opacity-level-intense: 0.64;
|
|
212
204
|
--opacity-level-medium: 0.32;
|
|
213
205
|
--opacity-level-light: 0.16;
|
|
214
206
|
--opacity-level-semitransparent: 0.08;
|
|
215
207
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
208
|
/** Creating all the css variables and the rgb variables **/
|
|
220
209
|
@each $name, $color in $colors {
|
|
221
|
-
--color-#{$name}
|
|
210
|
+
--color-#{$name}: #{$color};
|
|
222
211
|
--color-#{$name}-rgb: #{red($color)}, #{green($color)}, #{blue($color)};
|
|
223
212
|
}
|
|
224
213
|
|
|
225
214
|
// Font font-variation-settings
|
|
226
215
|
--font-variation-settings: #{unquote($font-variation-settings)};
|
|
227
216
|
--font-variation-settings-brand: #{unquote($font-variation-settings-brand)};
|
|
228
|
-
|
|
217
|
+
|
|
229
218
|
--color-dynamic: var(--color-brand-primary-30);
|
|
230
219
|
|
|
231
220
|
--border-radius-tiny: 4px;
|
|
@@ -237,12 +226,20 @@
|
|
|
237
226
|
--space-m: 16px;
|
|
238
227
|
--space-l: 24px;
|
|
239
228
|
|
|
240
|
-
--shadow-level-1: drop-shadow(
|
|
229
|
+
--shadow-level-1: drop-shadow(
|
|
230
|
+
0px 1px 2px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light))
|
|
231
|
+
)
|
|
241
232
|
drop-shadow(0px 2px 6px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light)));
|
|
242
|
-
--shadow-level-2: drop-shadow(
|
|
233
|
+
--shadow-level-2: drop-shadow(
|
|
234
|
+
0px 2px 4px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light))
|
|
235
|
+
)
|
|
243
236
|
drop-shadow(0px 4px 12px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light)));
|
|
244
|
-
--shadow-level-3: drop-shadow(
|
|
237
|
+
--shadow-level-3: drop-shadow(
|
|
238
|
+
0px 4px 8px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light))
|
|
239
|
+
)
|
|
245
240
|
drop-shadow(0px 8px 20px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light)));
|
|
246
|
-
--shadow-level-4: drop-shadow(
|
|
247
|
-
|
|
241
|
+
--shadow-level-4: drop-shadow(
|
|
242
|
+
0px 4px 8px rgba(var(--color-neutral-0-rgb), var(--opacity-level-intense))
|
|
243
|
+
)
|
|
244
|
+
drop-shadow(0px 16px 40px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light)));
|
|
248
245
|
}
|
package/src/styles/math.scss
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
@use "sass:math";
|
|
1
|
+
@use 'sass:math';
|
|
3
2
|
|
|
4
3
|
@function pow($number, $exponent) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
$value: 1;
|
|
10
|
-
|
|
11
|
-
@if $exponent > 0 {
|
|
12
|
-
@for $i from 1 through $exponent {
|
|
13
|
-
$value: $value * $number;
|
|
14
|
-
}
|
|
15
|
-
} @else if $exponent < 0 {
|
|
16
|
-
@for $i from 1 through -$exponent {
|
|
17
|
-
$value: math.div($value, $number);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@return $value;
|
|
4
|
+
@if (round($exponent) != $exponent) {
|
|
5
|
+
@return exp(strip-unit($exponent) * ln(strip-unit($number)));
|
|
22
6
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
@
|
|
28
|
-
|
|
7
|
+
|
|
8
|
+
$value: 1;
|
|
9
|
+
|
|
10
|
+
@if $exponent > 0 {
|
|
11
|
+
@for $i from 1 through $exponent {
|
|
12
|
+
$value: $value * $number;
|
|
29
13
|
}
|
|
30
|
-
|
|
31
|
-
@for $
|
|
32
|
-
$
|
|
14
|
+
} @else if $exponent < 0 {
|
|
15
|
+
@for $i from 1 through -$exponent {
|
|
16
|
+
$value: math.div($value, $number);
|
|
33
17
|
}
|
|
34
|
-
|
|
35
|
-
@return $result;
|
|
36
18
|
}
|
|
37
|
-
|
|
38
|
-
@
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
@return $
|
|
19
|
+
|
|
20
|
+
@return $value;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@function factorial($value) {
|
|
24
|
+
$result: 1;
|
|
25
|
+
|
|
26
|
+
@if $value == 0 {
|
|
27
|
+
@return $result;
|
|
46
28
|
}
|
|
47
|
-
|
|
48
|
-
@
|
|
49
|
-
|
|
29
|
+
|
|
30
|
+
@for $index from 1 through $value {
|
|
31
|
+
$result: $result * $index;
|
|
50
32
|
}
|
|
51
|
-
|
|
52
|
-
@
|
|
53
|
-
|
|
33
|
+
|
|
34
|
+
@return $result;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@function summation($iteratee, $input, $initial: 0, $limit: 100) {
|
|
38
|
+
$sum: 0;
|
|
39
|
+
|
|
40
|
+
@for $index from $initial to $limit {
|
|
41
|
+
$sum: $sum + call($iteratee, $input, $index);
|
|
54
42
|
}
|
|
55
|
-
|
|
56
|
-
@
|
|
57
|
-
|
|
43
|
+
|
|
44
|
+
@return $sum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@function exp-maclaurin($x, $n) {
|
|
48
|
+
@return math.div(pow($x, $n), factorial($n));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@function exp($value) {
|
|
52
|
+
@return summation(get-function('exp-maclaurin'), $value, 0, 100);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@function ln-maclaurin($x, $n) {
|
|
56
|
+
@return math.div(pow(-1, $n + 1), $n) * (pow($x - 1, $n));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@function ln($value) {
|
|
60
|
+
$ten-exp: 1;
|
|
61
|
+
$ln-ten: 2.30258509;
|
|
62
|
+
|
|
63
|
+
@while ($value > pow(10, $ten-exp)) {
|
|
64
|
+
$ten-exp: $ten-exp + 1;
|
|
58
65
|
}
|
|
59
|
-
|
|
60
|
-
@function
|
|
61
|
-
$ten-exp
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
@return summation(get-function("ln-maclaurin"), math.div($value, pow(10, $ten-exp)), 1, 100) + $ten-exp * $ln-ten;
|
|
66
|
+
|
|
67
|
+
@return summation(get-function('ln-maclaurin'), math.div($value, pow(10, $ten-exp)), 1, 100) +
|
|
68
|
+
$ten-exp * $ln-ten;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@function strip-unit($number) {
|
|
72
|
+
@if type-of($number) == 'number' and not unitless($number) {
|
|
73
|
+
@return math.div($number, ($number * 0 + 1));
|
|
69
74
|
}
|
|
70
|
-
|
|
71
|
-
@
|
|
72
|
-
|
|
73
|
-
@return math.div($number , ($number * 0 + 1));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@return $number;
|
|
77
|
-
}
|
|
75
|
+
|
|
76
|
+
@return $number;
|
|
77
|
+
}
|
package/tsconfig.build.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"skipLibCheck": true,
|
|
12
12
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
13
13
|
"jsx": "react-jsx",
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
/* Bundler mode */
|
|
16
16
|
"module": "ESNext",
|
|
17
17
|
"moduleResolution": "Bundler",
|
|
@@ -24,9 +24,5 @@
|
|
|
24
24
|
"composite": true
|
|
25
25
|
},
|
|
26
26
|
"include": ["src/**/*"],
|
|
27
|
-
"references": [
|
|
28
|
-
{ "path": "../utils" },
|
|
29
|
-
{ "path": "../interactions" },
|
|
30
|
-
{ "path": "../react-pkg" }
|
|
31
|
-
]
|
|
27
|
+
"references": [{ "path": "../utils" }, { "path": "../interactions" }, { "path": "../react-pkg" }]
|
|
32
28
|
}
|