@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.
Files changed (157) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/index.js +35 -35
  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-form-schema/silke-schema-fields.d.ts +1 -0
  16. package/dist/types/components/silke-image/silke-image.d.ts +2 -1
  17. package/dist/types/components/silke-list/index.d.ts +1 -0
  18. package/dist/types/components/silke-list/silke-list-item.d.ts +24 -6
  19. package/dist/types/components/silke-list/silke-list.d.ts +9 -9
  20. package/dist/types/components/silke-list/types.d.ts +19 -0
  21. package/dist/types/components/silke-list/utils.d.ts +3 -0
  22. package/dist/types/components/silke-navigation-link/silke-navigation-link.d.ts +1 -0
  23. package/dist/types/components/silke-overflow-menu/silke-overflow-menu.d.ts +6 -1
  24. package/dist/types/components/silke-popover-native/silke-popover-native.d.ts +3 -1
  25. package/dist/types/components/silke-shortcut-button/index.d.ts +1 -0
  26. package/dist/types/components/silke-shortcut-button/silke-shortcut-button.d.ts +15 -0
  27. package/dist/types/components/silke-tag/silke-tag.d.ts +1 -1
  28. package/dist/types/icons.d.ts +30 -0
  29. package/jest.config.js +2 -3
  30. package/package.json +7 -2
  31. package/src/_variables.scss +125 -129
  32. package/src/components/index.ts +3 -2
  33. package/src/components/silke-action-box/silke-action-box.scss +2 -3
  34. package/src/components/silke-alert-banner/silke-alert-banner.scss +9 -10
  35. package/src/components/silke-autocomplete-field/autocomplete-item.tsx +2 -2
  36. package/src/components/silke-autocomplete-field/silke-autocomplete-field.scss +18 -12
  37. package/src/components/silke-autocomplete-field/silke-autocomplete-popup-native.tsx +3 -2
  38. package/src/components/silke-autocomplete-field/silke-autocomplete-popup.tsx +63 -44
  39. package/src/components/silke-box/silke-box.mdx +321 -21
  40. package/src/components/silke-box/silke-box.scss +5 -5
  41. package/src/components/silke-breadcrumbs/silke-breadcrumb.mdx +147 -9
  42. package/src/components/silke-breadcrumbs/silke-breadcrumb.scss +3 -3
  43. package/src/components/silke-button/silke-big-button.scss +1 -1
  44. package/src/components/silke-button/silke-button.scss +24 -15
  45. package/src/components/silke-button/silke-dropdown-button.mdx +67 -0
  46. package/src/components/silke-button/silke-dropdown-button.tsx +40 -122
  47. package/src/components/silke-card/silke-card-grid.tsx +5 -3
  48. package/src/components/silke-card/silke-card.scss +8 -7
  49. package/src/components/silke-card/silke-card.tsx +7 -1
  50. package/src/components/silke-checkbox/silke-checkbox.mdx +139 -14
  51. package/src/components/silke-checkbox/silke-checkbox.scss +11 -11
  52. package/src/components/silke-color-picker/color-picker.scss +8 -8
  53. package/src/components/silke-color-swatches/silke-color-swatches.mdx +130 -0
  54. package/src/components/silke-command-text-field/image-utils.ts +71 -0
  55. package/src/components/silke-command-text-field/index.ts +12 -0
  56. package/src/components/silke-command-text-field/silke-command-parser.spec.ts +89 -0
  57. package/src/components/silke-command-text-field/silke-command-parser.ts +47 -0
  58. package/src/components/silke-command-text-field/silke-command-text-field.mdx +301 -0
  59. package/src/components/silke-command-text-field/silke-command-text-field.module.scss +119 -0
  60. package/src/components/silke-command-text-field/silke-command-text-field.tsx +665 -0
  61. package/src/components/silke-command-text-field/utils.spec.ts +366 -0
  62. package/src/components/silke-command-text-field/utils.ts +287 -0
  63. package/src/components/silke-conditions-input/silke-conditions-input.scss +4 -4
  64. package/src/components/silke-content-column/silke-content-column.scss +1 -1
  65. package/src/components/silke-context-menu/silke-context-menu.scss +3 -4
  66. package/src/components/silke-context-menu/silke-context-menu.tsx +1 -1
  67. package/src/components/silke-css-number-field/silke-css-number-field.scss +14 -12
  68. package/src/components/silke-divider/silke-divider.mdx +154 -32
  69. package/src/components/silke-divider/silke-divider.scss +3 -2
  70. package/src/components/silke-drawer/silke-drawer.scss +6 -2
  71. package/src/components/silke-form/silke-form.mdx +254 -27
  72. package/src/components/silke-form-schema/fields/array-field-inline.tsx +1 -0
  73. package/src/components/silke-form-schema/fields/array-field-modal.tsx +1 -0
  74. package/src/components/silke-form-schema/fields/styles.scss +34 -35
  75. package/src/components/silke-form-schema/silke-schema-fields.tsx +4 -3
  76. package/src/components/silke-gradient-picker/silke-gradient-picker.module.scss +2 -2
  77. package/src/components/silke-icon/silke-icon.mdx +212 -8
  78. package/src/components/silke-icon/silke-icon.scss +10 -2
  79. package/src/components/silke-icon/silke-icon.tsx +1 -0
  80. package/src/components/silke-icon/silke-stacked-icon.scss +42 -45
  81. package/src/components/silke-icon-browser/silke-icon-browser.mdx +143 -0
  82. package/src/components/silke-image/silke-image-color-backdrop.scss +6 -6
  83. package/src/components/silke-image/silke-image.mdx +189 -41
  84. package/src/components/silke-image/silke-image.scss +3 -3
  85. package/src/components/silke-image/silke-image.tsx +14 -1
  86. package/src/components/silke-link/silke-link.scss +3 -5
  87. package/src/components/silke-list/index.ts +1 -0
  88. package/src/components/silke-list/silke-list-item.mdx +83 -0
  89. package/src/components/silke-list/silke-list-item.scss +119 -0
  90. package/src/components/silke-list/silke-list-item.tsx +137 -12
  91. package/src/components/silke-list/silke-list.mdx +108 -13
  92. package/src/components/silke-list/silke-list.scss +8 -15
  93. package/src/components/silke-list/silke-list.tsx +63 -9
  94. package/src/components/silke-list/types.ts +22 -0
  95. package/src/components/silke-list/utils.ts +24 -0
  96. package/src/components/silke-loader/silke-loader.mdx +139 -5
  97. package/src/components/silke-loader/silke-loader.scss +1 -1
  98. package/src/components/silke-modal/silke-modal.scss +9 -9
  99. package/src/components/silke-navigation-link/silke-navigation-link.mdx +27 -2
  100. package/src/components/silke-navigation-link/silke-navigation-link.scss +34 -40
  101. package/src/components/silke-navigation-link/silke-navigation-link.tsx +7 -6
  102. package/src/components/silke-overflow-menu/silke-overflow-menu.mdx +228 -31
  103. package/src/components/silke-overflow-menu/silke-overflow-menu.scss +8 -8
  104. package/src/components/silke-overflow-menu/silke-overflow-menu.tsx +14 -8
  105. package/src/components/silke-popover/silke-popover.scss +5 -5
  106. package/src/components/silke-popover-native/silke-popover-native.scss +93 -78
  107. package/src/components/silke-popover-native/silke-popover-native.tsx +4 -0
  108. package/src/components/silke-popover-native/use-popover-positioning.ts +1 -3
  109. package/src/components/silke-progress-indicator/silke-progress-indicator.scss +1 -1
  110. package/src/components/silke-radio-button/silke-radio-button.scss +18 -11
  111. package/src/components/silke-search-field/silke-search-field.mdx +161 -7
  112. package/src/components/silke-shortcut-button/index.ts +1 -0
  113. package/src/components/silke-shortcut-button/silke-shortcut-button.mdx +89 -0
  114. package/src/components/silke-shortcut-button/silke-shortcut-button.scss +145 -0
  115. package/src/components/silke-shortcut-button/silke-shortcut-button.tsx +55 -0
  116. package/src/components/silke-skeleton/silke-skeleton.mdx +109 -0
  117. package/src/components/silke-skeleton/silke-skeleton.scss +1 -1
  118. package/src/components/silke-slider/silke-slider.module.scss +19 -19
  119. package/src/components/silke-sortable-list/silke-nested-sortable-list.scss +3 -3
  120. package/src/components/silke-sortable-list/silke-sortable-list.scss +4 -5
  121. package/src/components/silke-table/silke-table.scss +1 -1
  122. package/src/components/silke-tabs/silke-tabs.scss +3 -3
  123. package/src/components/silke-tag/silke-tag.mdx +179 -43
  124. package/src/components/silke-tag/silke-tag.scss +49 -12
  125. package/src/components/silke-tag/silke-tag.tsx +17 -7
  126. package/src/components/silke-text/silke-text.scss +6 -4
  127. package/src/components/silke-text/silke-title.scss +7 -14
  128. package/src/components/silke-text-field/silke-text-field.scss +9 -9
  129. package/src/components/silke-text-field/silke-text-field.tsx +1 -1
  130. package/src/components/silke-tile/silke-tile.scss +7 -3
  131. package/src/components/silke-toast-notification/silke-toast-notification.scss +4 -5
  132. package/src/components/silke-toggle/silke-toggle.mdx +163 -33
  133. package/src/components/silke-toggle/silke-toggle.scss +4 -4
  134. package/src/components/silke-toolbar/silke-toolbar.scss +1 -1
  135. package/src/components/silke-tooltip/silke-shortcuts.tsx +3 -3
  136. package/src/components/silke-tooltip/silke-tooltip.scss +11 -16
  137. package/src/components/silke-variables-wrapper/silke-variables-wrapper.scss +9 -7
  138. package/src/components/silke-virtual/silke-virtual.mdx +161 -0
  139. package/src/components/silke-virtual/silke-virtual.scss +8 -8
  140. package/src/icons.tsx +43 -1
  141. package/src/styles/core.scss +42 -45
  142. package/src/styles/math.scss +66 -66
  143. package/tsconfig.build.json +2 -6
  144. package/tsconfig.build.tsbuildinfo +1 -1
  145. package/tsconfig.json +3 -14
  146. package/dist/types/components/silke-action-list/index.d.ts +0 -1
  147. package/dist/types/components/silke-action-list/silke-action-list.d.ts +0 -11
  148. package/dist/types/components/silke-list-card/index.d.ts +0 -1
  149. package/dist/types/components/silke-list-card/silke-list-card.d.ts +0 -14
  150. package/src/components/silke-action-list/index.ts +0 -1
  151. package/src/components/silke-action-list/silke-action-list.mdx +0 -48
  152. package/src/components/silke-action-list/silke-action-list.scss +0 -21
  153. package/src/components/silke-action-list/silke-action-list.tsx +0 -85
  154. package/src/components/silke-list-card/index.ts +0 -1
  155. package/src/components/silke-list-card/silke-list-card.mdx +0 -46
  156. package/src/components/silke-list-card/silke-list-card.scss +0 -57
  157. 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,13 @@ 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.text': 'fa-kit fa-light-text-sparkle-tr',
36
+ 'ai.file': 'fa-kit fa-light-file-lines-sparkle',
28
37
  sparkles: 'fa-solid fa-sparkles',
29
38
  compare: 'fal fa-shuffle',
30
39
  menuMore: 'fal fa-ellipsis-v',
@@ -72,6 +81,7 @@ export const SilkeIconDefinitions = {
72
81
  square: 'fal fa-square',
73
82
  shapes: 'fal fa-shapes',
74
83
  sharedStyle: 'fal fa-pencil-paintbrush',
84
+ paintbrush: 'fal fa-paintbrush',
75
85
  firefox: 'fab fa-firefox',
76
86
  safari: 'fa-brands fa-safari',
77
87
  'square.dashed': 'fal fa-square-dashed',
@@ -85,15 +95,20 @@ export const SilkeIconDefinitions = {
85
95
  dot: 'fas fa-circle-small',
86
96
  'dots.vertical': 'fal fa-ellipsis-stroke-vertical',
87
97
  'dots.horizontal': 'fal fa-ellipsis-stroke-vertical fa-rotate-90',
88
- star: 'fa-solid fa-star',
98
+ star: 'fal fa-star',
99
+ 'star.filled': 'fa-solid fa-star',
89
100
  eyeDropper: 'fal fa-eye-dropper',
90
101
  log: 'fal fa-binary',
91
102
  dashboard: 'fal fa-grid-2',
92
103
  test: 'fal fa-flask-vial',
93
104
  guest: 'fal fa-user-astronaut',
105
+ cartoon: 'fal fa-face-awesome',
94
106
  'network.on': 'fal fa-wifi',
95
107
  'network.off': 'fal fa-wifi-slash',
96
108
  grid: 'fal fa-grid',
109
+ 'memo.circle.check': 'fal fa-memo-circle-check',
110
+ 'bring.forward': 'fal fa-bring-forward',
111
+ 'bring.backward': 'fal fa-send-backward',
97
112
 
98
113
  moon: 'fal fa-moon',
99
114
  sun: 'fal fa-sun-bright',
@@ -129,6 +144,7 @@ export const SilkeIconDefinitions = {
129
144
  'code.fork': 'fal fa-code-fork',
130
145
  'code.compare': 'fal fa-code-compare',
131
146
  'code.history': 'fal fa-clock-rotate-left',
147
+ 'code.rectangle': 'fal fa-rectangle-code',
132
148
  messages: 'fal fa-comments-alt',
133
149
 
134
150
  // KEYBOARD SYMBOLS
@@ -178,6 +194,8 @@ export const SilkeIconDefinitions = {
178
194
  'arrow.up.right.and.down.left': 'fal fa-arrow-up-right-and-arrow-down-left-from-center',
179
195
  'arrows.left.right': 'fa-light fa-arrows-left-right-to-line',
180
196
  'arrows.up.down': 'fa-light fa-arrows-left-right-to-line fa-rotate-90',
197
+ 'arrows.from.dotted.line': 'fal fa-arrows-from-dotted-line',
198
+ 'arrows.to.dotted.line': 'fal fa-arrows-to-dotted-line',
181
199
 
182
200
  'padding.all': 'fa-kit fa-padding-all',
183
201
  'padding.top.bottom': 'fa-kit fa-padding-horizontal fa-rotate-90',
@@ -213,6 +231,7 @@ export const SilkeIconDefinitions = {
213
231
  // PLATFORM ICONS
214
232
  template: 'fal fa-copy',
215
233
  templates: 'fal fa-copy',
234
+ templatesLegacy: 'fal fa-table-layout',
216
235
  page: 'fal fa-page',
217
236
  project: 'fal fa-browser',
218
237
  projects: 'fal fa-browsers',
@@ -246,6 +265,7 @@ export const SilkeIconDefinitions = {
246
265
  'credit-card': 'fal fa-credit-card',
247
266
  money: 'fal fa-money-bill',
248
267
  dynamic: 'fa-light fa-bolt-lightning',
268
+ slash: 'fal fa-slash-forward',
249
269
  'geo.fence.disabled': 'fa-light fa-globe',
250
270
  'geo.fence.enabled': 'fa-light fa-location-pin',
251
271
  // EDITOR ICONS
@@ -256,6 +276,7 @@ export const SilkeIconDefinitions = {
256
276
  gradient: GradientIcon,
257
277
  image: 'fal fa-image',
258
278
  images: 'fal fa-images',
279
+ camera: 'fal fa-camera',
259
280
  video: 'fal fa-video',
260
281
  audio: 'fal fa-music',
261
282
  fill: 'fal fa-fill-drip',
@@ -291,6 +312,7 @@ export const SilkeIconDefinitions = {
291
312
  diamond: 'fa-light fa-gem',
292
313
  crosshair: 'fa-light fa-crosshairs',
293
314
  clone: 'fa-light fa-clone',
315
+ 'clone-plus': 'fa-light fa-clone-plus',
294
316
  'globe-pointer': 'fa-light fa-globe-pointer',
295
317
  globe: 'fa-light fa-globe',
296
318
 
@@ -340,6 +362,9 @@ export const SilkeIconDefinitions = {
340
362
  'file.export': 'fal fa-file-export',
341
363
  home: 'fal fa-house',
342
364
  qr: 'fal fa-qrcode',
365
+ 'pin.on': 'fa-light fa-thumbtack-angle',
366
+ 'pin.off': 'fa-light fa-thumbtack-angle-slash',
367
+ eraser: 'fal fa-eraser',
343
368
 
344
369
  list: 'fal fa-list',
345
370
  'list.ol': 'fal fa-list-ol',
@@ -393,6 +418,9 @@ export const SilkeIconDefinitions = {
393
418
  sass: 'fab fa-sass',
394
419
  typescript: TypescriptIcon,
395
420
  html5: 'fab fa-html5',
421
+ translate: 'fal fa-language',
422
+ spell: 'fal fa-spell-check',
423
+ 'tone.of.voice': 'fal fa-head-side-speak',
396
424
 
397
425
  // Card icons
398
426
  'American Express': 'fab fa-cc-amex',
@@ -412,6 +440,7 @@ export const SilkeIconDefinitions = {
412
440
  laptop: 'fal fa-laptop',
413
441
  mobile: 'fal fa-mobile-alt',
414
442
  tablet: 'fal fa-tablet-alt',
443
+ devices: 'fal fa-laptop-mobile',
415
444
  'device.custom': 'fal fa-rectangle-landscape',
416
445
 
417
446
  // Graphs
@@ -828,3 +857,16 @@ function AnimationFillBoth() {
828
857
  </svg>
829
858
  );
830
859
  }
860
+
861
+ function AiGradientIcon() {
862
+ return (
863
+ <i
864
+ className="fa-solid fa-sparkle"
865
+ style={{
866
+ background: 'linear-gradient(208deg, #B38FFF 31.76%, #2AEEE1 123.33%)',
867
+ backgroundClip: 'text',
868
+ WebkitTextFillColor: 'transparent',
869
+ }}
870
+ />
871
+ );
872
+ }
@@ -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
  }