@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.
Files changed (164) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/index.js +34 -34
  3. package/dist/index.js.LEGAL.txt +12 -12
  4. package/dist/styles.css +4416 -4020
  5. package/dist/types/components/index.d.ts +3 -2
  6. package/dist/types/components/silke-button/silke-dropdown-button.d.ts +8 -13
  7. package/dist/types/components/silke-card/silke-card-grid.d.ts +33 -1
  8. package/dist/types/components/silke-command-text-field/image-utils.d.ts +20 -0
  9. package/dist/types/components/silke-command-text-field/index.d.ts +4 -0
  10. package/dist/types/components/silke-command-text-field/silke-command-parser.d.ts +3 -0
  11. package/dist/types/components/silke-command-text-field/silke-command-parser.spec.d.ts +1 -0
  12. package/dist/types/components/silke-command-text-field/silke-command-text-field.d.ts +46 -0
  13. package/dist/types/components/silke-command-text-field/utils.d.ts +61 -0
  14. package/dist/types/components/silke-command-text-field/utils.spec.d.ts +1 -0
  15. package/dist/types/components/silke-conditions-input/utils.d.ts +1 -1
  16. package/dist/types/components/silke-form-schema/fields/color-field.d.ts +3 -0
  17. package/dist/types/components/silke-form-schema/schema-utils.d.ts +6 -1
  18. package/dist/types/components/silke-form-schema/silke-schema-fields.d.ts +1 -0
  19. package/dist/types/components/silke-image/silke-image.d.ts +2 -1
  20. package/dist/types/components/silke-list/index.d.ts +1 -0
  21. package/dist/types/components/silke-list/silke-list-item.d.ts +24 -6
  22. package/dist/types/components/silke-list/silke-list.d.ts +9 -9
  23. package/dist/types/components/silke-list/types.d.ts +19 -0
  24. package/dist/types/components/silke-list/utils.d.ts +3 -0
  25. package/dist/types/components/silke-navigation-link/silke-navigation-link.d.ts +1 -0
  26. package/dist/types/components/silke-overflow-menu/silke-overflow-menu.d.ts +6 -1
  27. package/dist/types/components/silke-popover-native/silke-popover-native.d.ts +3 -1
  28. package/dist/types/components/silke-shortcut-button/index.d.ts +1 -0
  29. package/dist/types/components/silke-shortcut-button/silke-shortcut-button.d.ts +15 -0
  30. package/dist/types/components/silke-tag/silke-tag.d.ts +1 -1
  31. package/dist/types/icons.d.ts +32 -0
  32. package/jest.config.js +2 -3
  33. package/package.json +7 -2
  34. package/src/_variables.scss +125 -129
  35. package/src/components/index.ts +3 -2
  36. package/src/components/silke-action-box/silke-action-box.scss +2 -3
  37. package/src/components/silke-alert-banner/silke-alert-banner.scss +9 -10
  38. package/src/components/silke-autocomplete-field/autocomplete-item.tsx +2 -2
  39. package/src/components/silke-autocomplete-field/silke-autocomplete-field.scss +18 -12
  40. package/src/components/silke-autocomplete-field/silke-autocomplete-popup-native.tsx +3 -2
  41. package/src/components/silke-autocomplete-field/silke-autocomplete-popup.tsx +63 -44
  42. package/src/components/silke-box/silke-box.mdx +321 -21
  43. package/src/components/silke-box/silke-box.scss +5 -5
  44. package/src/components/silke-breadcrumbs/silke-breadcrumb.mdx +147 -9
  45. package/src/components/silke-breadcrumbs/silke-breadcrumb.scss +3 -3
  46. package/src/components/silke-button/silke-big-button.scss +1 -1
  47. package/src/components/silke-button/silke-button.scss +24 -15
  48. package/src/components/silke-button/silke-dropdown-button.mdx +67 -0
  49. package/src/components/silke-button/silke-dropdown-button.tsx +40 -122
  50. package/src/components/silke-card/silke-card-grid.tsx +5 -3
  51. package/src/components/silke-card/silke-card.scss +8 -7
  52. package/src/components/silke-card/silke-card.tsx +7 -1
  53. package/src/components/silke-checkbox/silke-checkbox.mdx +139 -14
  54. package/src/components/silke-checkbox/silke-checkbox.scss +11 -11
  55. package/src/components/silke-color-picker/color-picker.scss +8 -8
  56. package/src/components/silke-color-swatches/silke-color-swatches.mdx +130 -0
  57. package/src/components/silke-command-text-field/image-utils.ts +71 -0
  58. package/src/components/silke-command-text-field/index.ts +12 -0
  59. package/src/components/silke-command-text-field/silke-command-parser.spec.ts +89 -0
  60. package/src/components/silke-command-text-field/silke-command-parser.ts +47 -0
  61. package/src/components/silke-command-text-field/silke-command-text-field.mdx +301 -0
  62. package/src/components/silke-command-text-field/silke-command-text-field.module.scss +119 -0
  63. package/src/components/silke-command-text-field/silke-command-text-field.tsx +672 -0
  64. package/src/components/silke-command-text-field/utils.spec.ts +366 -0
  65. package/src/components/silke-command-text-field/utils.ts +287 -0
  66. package/src/components/silke-conditions-input/silke-conditions-input.scss +4 -4
  67. package/src/components/silke-content-column/silke-content-column.scss +1 -1
  68. package/src/components/silke-context-menu/silke-context-menu.scss +3 -4
  69. package/src/components/silke-context-menu/silke-context-menu.tsx +1 -1
  70. package/src/components/silke-css-number-field/silke-css-number-field.scss +14 -12
  71. package/src/components/silke-divider/silke-divider.mdx +154 -32
  72. package/src/components/silke-divider/silke-divider.scss +3 -2
  73. package/src/components/silke-drawer/silke-drawer.scss +6 -2
  74. package/src/components/silke-form/silke-form.mdx +254 -27
  75. package/src/components/silke-form-schema/fields/array-field-inline.tsx +1 -0
  76. package/src/components/silke-form-schema/fields/array-field-modal.tsx +9 -4
  77. package/src/components/silke-form-schema/fields/array-field.tsx +27 -3
  78. package/src/components/silke-form-schema/fields/color-field.tsx +36 -0
  79. package/src/components/silke-form-schema/fields/styles.scss +34 -35
  80. package/src/components/silke-form-schema/schema-utils.ts +27 -1
  81. package/src/components/silke-form-schema/silke-schema-field.tsx +2 -0
  82. package/src/components/silke-form-schema/silke-schema-fields.tsx +4 -3
  83. package/src/components/silke-gradient-picker/silke-gradient-picker.module.scss +2 -2
  84. package/src/components/silke-icon/silke-icon.mdx +212 -8
  85. package/src/components/silke-icon/silke-icon.scss +10 -2
  86. package/src/components/silke-icon/silke-icon.tsx +1 -0
  87. package/src/components/silke-icon/silke-stacked-icon.scss +42 -45
  88. package/src/components/silke-icon-browser/silke-icon-browser.mdx +143 -0
  89. package/src/components/silke-image/silke-image-color-backdrop.scss +6 -6
  90. package/src/components/silke-image/silke-image.mdx +189 -41
  91. package/src/components/silke-image/silke-image.scss +3 -3
  92. package/src/components/silke-image/silke-image.tsx +14 -1
  93. package/src/components/silke-link/silke-link.scss +3 -5
  94. package/src/components/silke-list/index.ts +1 -0
  95. package/src/components/silke-list/silke-list-item.mdx +83 -0
  96. package/src/components/silke-list/silke-list-item.scss +119 -0
  97. package/src/components/silke-list/silke-list-item.tsx +137 -12
  98. package/src/components/silke-list/silke-list.mdx +108 -13
  99. package/src/components/silke-list/silke-list.scss +8 -15
  100. package/src/components/silke-list/silke-list.tsx +63 -9
  101. package/src/components/silke-list/types.ts +22 -0
  102. package/src/components/silke-list/utils.ts +24 -0
  103. package/src/components/silke-loader/silke-loader.mdx +139 -5
  104. package/src/components/silke-loader/silke-loader.scss +1 -1
  105. package/src/components/silke-modal/silke-modal.scss +9 -9
  106. package/src/components/silke-navigation-link/silke-navigation-link.mdx +27 -2
  107. package/src/components/silke-navigation-link/silke-navigation-link.scss +34 -40
  108. package/src/components/silke-navigation-link/silke-navigation-link.tsx +7 -6
  109. package/src/components/silke-overflow-menu/silke-overflow-menu.mdx +228 -31
  110. package/src/components/silke-overflow-menu/silke-overflow-menu.scss +8 -8
  111. package/src/components/silke-overflow-menu/silke-overflow-menu.tsx +14 -8
  112. package/src/components/silke-popover/silke-popover.scss +5 -5
  113. package/src/components/silke-popover-native/silke-popover-native.scss +93 -78
  114. package/src/components/silke-popover-native/silke-popover-native.tsx +4 -0
  115. package/src/components/silke-popover-native/use-popover-positioning.ts +1 -3
  116. package/src/components/silke-progress-indicator/silke-progress-indicator.scss +1 -1
  117. package/src/components/silke-radio-button/silke-radio-button.scss +18 -11
  118. package/src/components/silke-search-field/silke-search-field.mdx +161 -7
  119. package/src/components/silke-shortcut-button/index.ts +1 -0
  120. package/src/components/silke-shortcut-button/silke-shortcut-button.mdx +89 -0
  121. package/src/components/silke-shortcut-button/silke-shortcut-button.scss +145 -0
  122. package/src/components/silke-shortcut-button/silke-shortcut-button.tsx +55 -0
  123. package/src/components/silke-skeleton/silke-skeleton.mdx +109 -0
  124. package/src/components/silke-skeleton/silke-skeleton.scss +1 -1
  125. package/src/components/silke-slider/silke-slider.module.scss +19 -19
  126. package/src/components/silke-sortable-list/silke-nested-sortable-list.scss +3 -3
  127. package/src/components/silke-sortable-list/silke-sortable-list.scss +4 -5
  128. package/src/components/silke-table/silke-table.scss +1 -1
  129. package/src/components/silke-tabs/silke-tabs.scss +3 -3
  130. package/src/components/silke-tag/silke-tag.mdx +179 -43
  131. package/src/components/silke-tag/silke-tag.scss +50 -13
  132. package/src/components/silke-tag/silke-tag.tsx +17 -7
  133. package/src/components/silke-text/silke-text.scss +6 -4
  134. package/src/components/silke-text/silke-title.scss +7 -14
  135. package/src/components/silke-text-field/silke-text-field.scss +9 -9
  136. package/src/components/silke-text-field/silke-text-field.tsx +1 -1
  137. package/src/components/silke-tile/silke-tile.scss +7 -3
  138. package/src/components/silke-toast-notification/silke-toast-notification.scss +4 -5
  139. package/src/components/silke-toggle/silke-toggle.mdx +163 -33
  140. package/src/components/silke-toggle/silke-toggle.scss +4 -4
  141. package/src/components/silke-toolbar/silke-toolbar.scss +1 -1
  142. package/src/components/silke-tooltip/silke-shortcuts.tsx +3 -3
  143. package/src/components/silke-tooltip/silke-tooltip.scss +11 -16
  144. package/src/components/silke-variables-wrapper/silke-variables-wrapper.scss +9 -7
  145. package/src/components/silke-virtual/silke-virtual.mdx +161 -0
  146. package/src/components/silke-virtual/silke-virtual.scss +8 -8
  147. package/src/icons.tsx +58 -1
  148. package/src/styles/core.scss +42 -45
  149. package/src/styles/math.scss +66 -66
  150. package/tsconfig.build.json +2 -6
  151. package/tsconfig.build.tsbuildinfo +1 -1
  152. package/tsconfig.json +3 -14
  153. package/dist/types/components/silke-action-list/index.d.ts +0 -1
  154. package/dist/types/components/silke-action-list/silke-action-list.d.ts +0 -11
  155. package/dist/types/components/silke-list-card/index.d.ts +0 -1
  156. package/dist/types/components/silke-list-card/silke-list-card.d.ts +0 -14
  157. package/src/components/silke-action-list/index.ts +0 -1
  158. package/src/components/silke-action-list/silke-action-list.mdx +0 -48
  159. package/src/components/silke-action-list/silke-action-list.scss +0 -21
  160. package/src/components/silke-action-list/silke-action-list.tsx +0 -85
  161. package/src/components/silke-list-card/index.ts +0 -1
  162. package/src/components/silke-list-card/silke-list-card.mdx +0 -46
  163. package/src/components/silke-list-card/silke-list-card.scss +0 -57
  164. 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: 'fa-solid fa-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
+ }
@@ -1,9 +1,10 @@
1
- @use "../variables" as *;
1
+ @use '../variables' as *;
2
2
 
3
3
  @font-face {
4
- font-family: "Iskry";
5
- src: url('https://cdn.vev.design/font/tWK-oVG0VI/Iskry-Regular.woff2') format('woff2'),
6
- url('https://cdn.vev.design/font/tWK-oVG0VI/Iskry-Regular.woff') format('woff');
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="button"],
112
- a[rel="button"]:hover {
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="button"] {
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("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAIElEQVQ4y2P4TwDcv38fL2YYNWBYGEBIASEwasCwMAAAv7rMLvozJBUAAAAASUVORK5CYII=");
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="level1"] {
167
+ div[data-shadow='level1'] {
174
168
  filter: var(--shadow-level-1);
175
169
  }
176
170
 
177
- div[data-shadow="level2"] {
171
+ div[data-shadow='level2'] {
178
172
  filter: var(--shadow-level-2);
179
173
  }
180
174
 
181
- div[data-shadow="level3"] {
175
+ div[data-shadow='level3'] {
182
176
  filter: var(--shadow-level-3);
183
177
  }
184
- div[data-shadow="level4"] {
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}, .bg-hover-#{$name}:hover {
183
+ .bg-#{$name},
184
+ .bg-hover-#{$name}:hover {
191
185
  background-color: #{$color};
192
186
  }
193
-
194
- .color-#{$name}, .color-hover-#{$name}:hover {
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.90;
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} : #{$color};
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(0px 1px 2px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light)))
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(0px 2px 4px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light)))
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(0px 4px 8px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light)))
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(0px 4px 8px rgba(var(--color-neutral-0-rgb), var(--opacity-level-intense)))
247
- drop-shadow(0px 16px 40px rgba(var(--color-neutral-0-rgb), var(--opacity-level-light)));
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
  }
@@ -1,77 +1,77 @@
1
-
2
- @use "sass:math";
1
+ @use 'sass:math';
3
2
 
4
3
  @function pow($number, $exponent) {
5
- @if (round($exponent) != $exponent) {
6
- @return exp(strip-unit($exponent) * ln(strip-unit($number)));
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
- @function factorial($value) {
25
- $result: 1;
26
-
27
- @if $value == 0 {
28
- @return $result;
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 $index from 1 through $value {
32
- $result: $result * $index;
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
- @function summation($iteratee, $input, $initial: 0, $limit: 100) {
39
- $sum: 0;
40
-
41
- @for $index from $initial to $limit {
42
- $sum: $sum + call($iteratee, $input, $index);
43
- }
44
-
45
- @return $sum;
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
- @function exp-maclaurin($x, $n) {
49
- @return math.div(pow($x, $n) , factorial($n));
29
+
30
+ @for $index from 1 through $value {
31
+ $result: $result * $index;
50
32
  }
51
-
52
- @function exp($value) {
53
- @return summation(get-function('exp-maclaurin'), $value, 0, 100);
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
- @function ln-maclaurin($x, $n) {
57
- @return math.div(pow(-1, $n + 1) , $n) * (pow($x - 1, $n));
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 ln($value) {
61
- $ten-exp: 1;
62
- $ln-ten: 2.30258509;
63
-
64
- @while ($value > pow(10, $ten-exp)) {
65
- $ten-exp: $ten-exp + 1;
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
- @function strip-unit($number) {
72
- @if type-of($number) == 'number' and not unitless($number) {
73
- @return math.div($number , ($number * 0 + 1));
74
- }
75
-
76
- @return $number;
77
- }
75
+
76
+ @return $number;
77
+ }
@@ -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
  }