@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
@@ -0,0 +1,145 @@
1
+ @use '../../variables' as *;
2
+
3
+ $transition: all 0.2s ease-out;
4
+
5
+ .wrapper {
6
+ position: relative;
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ gap: $space-s;
11
+ width: 100%;
12
+ height: 32px;
13
+ padding: 0;
14
+ color: var(--color-neutral-20);
15
+ background: transparent;
16
+ border: none;
17
+ outline: none;
18
+ transition: $transition;
19
+
20
+ view-transition-name: match-element;
21
+
22
+ cursor: pointer;
23
+
24
+ &:focus {
25
+ outline: none;
26
+ }
27
+
28
+ &:focus-visible,
29
+ &:hover {
30
+ color: var(--color-accent-30);
31
+
32
+ .background {
33
+ background: rgba(var(--color-accent-30-rgb), 0.08);
34
+ border-color: var(--color-accent-50);
35
+ }
36
+
37
+ .key {
38
+ background: rgba(var(--color-accent-30-rgb), 0.16);
39
+ border-color: transparent;
40
+ }
41
+ }
42
+ }
43
+
44
+ .wrapper[data-compressed='true'] {
45
+ width: 32px;
46
+ height: 32px;
47
+ }
48
+
49
+ .wrapper[data-centered='true'] {
50
+ justify-content: center;
51
+ align-items: center;
52
+ text-align: center;
53
+ }
54
+
55
+ .wrapper[data-centered='true'] .label {
56
+ flex: 0;
57
+ }
58
+
59
+ .wrapper[data-centered='true'] .icon {
60
+ width: auto;
61
+ }
62
+
63
+ // Animations
64
+ .wrapper:not([data-compressed='true']) {
65
+ &:hover .background {
66
+ transform: scaleY(1.1) scaleX(1.02);
67
+ }
68
+
69
+ // Shrink the next sibling when this button is hovered
70
+ &:hover + & .background {
71
+ transform: scaleY(0.9) translateY(1px);
72
+ }
73
+
74
+ // Shrink the previous sibling when this button is hovered
75
+ &:has(+ &:hover) .background {
76
+ transform: scaleY(0.9) translateY(-1px);
77
+ }
78
+ }
79
+
80
+ .wrapper[data-compressed='true'] {
81
+ &:hover .background {
82
+ transform: scale(1.1);
83
+ }
84
+
85
+ &:hover + & .background {
86
+ transform: scaleX(0.9) translateX(1px);
87
+ }
88
+
89
+ &:has(+ &:hover) .background {
90
+ transform: scaleX(0.9) translateX(-1px);
91
+ }
92
+ }
93
+
94
+ .background {
95
+ position: absolute;
96
+ top: 0;
97
+ left: 0;
98
+ width: 100%;
99
+ height: 100%;
100
+ background: rgba(0, 0, 0, 0.04);
101
+ border-radius: var(--border-radius-small);
102
+ border: 1px solid transparent;
103
+ pointer-events: none;
104
+ transition: $transition;
105
+ }
106
+
107
+ .icon {
108
+ width: 30px;
109
+ height: 30px;
110
+ display: flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+
114
+ i {
115
+ color: var(--color-accent-30);
116
+ }
117
+ }
118
+
119
+ .label {
120
+ flex: 1;
121
+ text-align: left;
122
+ font-weight: 400;
123
+ white-space: nowrap;
124
+ }
125
+
126
+ .shortcut {
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ gap: $space-xs;
131
+ padding: 0 6px;
132
+ }
133
+
134
+ .key {
135
+ width: 20px;
136
+ height: 20px;
137
+ display: flex;
138
+ align-items: center;
139
+ justify-content: center;
140
+ background: rgba(0, 0, 0, 0.04);
141
+ border-radius: var(--border-radius-tiny);
142
+ border: 1px solid rgba(0, 0, 0, 0.12);
143
+ font-family: var(--font-family-mono);
144
+ transition: $transition;
145
+ }
@@ -0,0 +1,55 @@
1
+ import { Keyboard, KeyboardEventCode } from '@vev/utils';
2
+ import React from 'react';
3
+ import { SilkeIcon, SilkeIcons } from '../silke-icon';
4
+
5
+ import styles from './silke-shortcut-button.scss';
6
+
7
+ export type SilkeShortcutButtonProps = {
8
+ label: string;
9
+ icon: SilkeIcons;
10
+ shortcut?: KeyboardEventCode[];
11
+ compressed?: boolean;
12
+ centered?: boolean;
13
+ onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
14
+ };
15
+
16
+ export function SilkeShortcutButton({
17
+ label,
18
+ icon,
19
+ shortcut,
20
+ compressed,
21
+ centered,
22
+ onClick,
23
+ }: SilkeShortcutButtonProps) {
24
+ const hasShortcut = shortcut && shortcut.length > 0;
25
+
26
+ return (
27
+ <button
28
+ type="button"
29
+ className={styles.wrapper}
30
+ data-compressed={compressed}
31
+ data-centered={centered}
32
+ onClick={onClick}
33
+ >
34
+ <div className={styles.background} />
35
+
36
+ <span className={styles.icon}>
37
+ <SilkeIcon icon={icon} />
38
+ </span>
39
+
40
+ {!compressed && <span className={styles.label}>{label}</span>}
41
+
42
+ {!compressed && hasShortcut && (
43
+ <div className={styles.shortcut}>
44
+ {shortcut.map((s) => (
45
+ <span key={s} className={styles.key}>
46
+ {Keyboard.getFormatted(s).join(' + ')}
47
+ </span>
48
+ ))}
49
+ </div>
50
+ )}
51
+ </button>
52
+ );
53
+ }
54
+
55
+ SilkeShortcutButton.displayName = 'SilkeShortcutButton';
@@ -0,0 +1,109 @@
1
+ # SilkeSkeleton
2
+
3
+ A loading placeholder component that displays animated skeleton screens while content is loading. Use skeletons to reduce perceived loading time and provide visual feedback that content is being loaded.
4
+
5
+ ## Features
6
+
7
+ - **Animated shimmer**: Smooth left-to-right shimmer animation
8
+ - **Multiple variants**: Single line or multiline paragraph skeletons
9
+ - **Customizable**: Apply custom styles and classes
10
+ - **Accessible**: Provides visual loading feedback
11
+
12
+ ## Basic Usage
13
+
14
+ ```js
15
+ <SilkeSkeleton />
16
+ ```
17
+
18
+ ## Multiline Skeleton
19
+
20
+ Use the `multiline` variant for paragraph-style loading placeholders:
21
+
22
+ ```js
23
+ <SilkeSkeleton kind="multiline" />
24
+ ```
25
+
26
+ ## Custom Dimensions
27
+
28
+ Apply custom width and height via the `style` prop:
29
+
30
+ ```js
31
+ <SilkeBox column gap="s">
32
+ <SilkeSkeleton style={{ width: '100%', height: 24 }} />
33
+ <SilkeSkeleton style={{ width: '80%', height: 16 }} />
34
+ <SilkeSkeleton style={{ width: '60%', height: 16 }} />
35
+ </SilkeBox>
36
+ ```
37
+
38
+ ## Card Loading State
39
+
40
+ Use skeletons to create loading states for cards or complex layouts:
41
+
42
+ ```js
43
+ <SilkeBox column gap="m" style={{ width: 300 }}>
44
+ <SilkeSkeleton style={{ width: '100%', height: 150 }} />
45
+ <SilkeBox column gap="xs">
46
+ <SilkeSkeleton style={{ width: '70%', height: 20 }} />
47
+ <SilkeSkeleton kind="multiline" />
48
+ </SilkeBox>
49
+ </SilkeBox>
50
+ ```
51
+
52
+ ## List Loading State
53
+
54
+ Create loading placeholders for lists:
55
+
56
+ ```js
57
+ <SilkeBox column gap="s">
58
+ {[1, 2, 3].map((i) => (
59
+ <SilkeBox key={i} gap="s" vAlign="center">
60
+ <SilkeSkeleton style={{ width: 40, height: 40, borderRadius: '50%' }} />
61
+ <SilkeBox column gap="xs" fill>
62
+ <SilkeSkeleton style={{ width: '60%', height: 14 }} />
63
+ <SilkeSkeleton style={{ width: '40%', height: 12 }} />
64
+ </SilkeBox>
65
+ </SilkeBox>
66
+ ))}
67
+ </SilkeBox>
68
+ ```
69
+
70
+ ## Conditional Loading
71
+
72
+ Show skeleton while data is loading:
73
+
74
+ ```js
75
+ const [loading, setLoading] = React.useState(true);
76
+
77
+ <SilkeBox column gap="s">
78
+ <SilkeButton label={loading ? 'Stop Loading' : 'Start Loading'} onClick={() => setLoading(!loading)} />
79
+ {loading ? (
80
+ <SilkeBox column gap="xs">
81
+ <SilkeSkeleton style={{ width: '50%', height: 24 }} />
82
+ <SilkeSkeleton kind="multiline" />
83
+ </SilkeBox>
84
+ ) : (
85
+ <SilkeBox column gap="xs">
86
+ <SilkeText kind="title">Content Loaded</SilkeText>
87
+ <SilkeText>This is the actual content that appears after loading.</SilkeText>
88
+ </SilkeBox>
89
+ )}
90
+ </SilkeBox>;
91
+ ```
92
+
93
+ ## Props
94
+
95
+ | Prop | Type | Default | Description |
96
+ | ----------- | ------------------------------------------- | ------- | ------------------------------------ |
97
+ | `kind` | `'multiline' \| 'header' \| 'header-text'` | - | Skeleton variant |
98
+ | `className` | `string` | - | Additional CSS class names |
99
+ | `style` | `React.CSSProperties` | - | Inline styles for custom dimensions |
100
+
101
+ The component also accepts all standard HTML `div` attributes.
102
+
103
+ ## Animation Details
104
+
105
+ The skeleton uses a 3-second infinite shimmer animation that:
106
+ - Sweeps from left to right
107
+ - Fades opacity from 0.3 to 1.0
108
+ - Reverses direction and sweeps back
109
+ - Creates a smooth loading effect
@@ -13,7 +13,7 @@
13
13
  width: 0;
14
14
  height: 100%;
15
15
  background: rgba(var(--color-neutral-100-rgb), var(--opacity-level-light));
16
- content: "";
16
+ content: '';
17
17
  }
18
18
  }
19
19
 
@@ -1,16 +1,16 @@
1
1
  .root {
2
2
  --point-size: 14px;
3
- --track-height:8px;
3
+ --track-height: 8px;
4
4
  --track-bg: rgba(var(--color-neutral-100-rgb), var(--opacity-level-light));
5
5
  --slider-color: var(--color-accent-30);
6
6
  cursor: pointer;
7
7
  width: 100%;
8
- padding: calc(var(--point-size) / 2) 0;
8
+ padding: calc(var(--point-size) / 2) 0;
9
9
  border-radius: var(--border-radius-tiny);
10
- &.disabled{
11
- --slider-color : var(--color-neutral-60);
10
+ &.disabled {
11
+ --slider-color: var(--color-neutral-60);
12
12
  cursor: not-allowed;
13
- .track{
13
+ .track {
14
14
  pointer-events: none;
15
15
  }
16
16
  }
@@ -21,16 +21,15 @@
21
21
  background: var(--track-bg);
22
22
  position: relative;
23
23
  width: 100%;
24
- border-radius: calc( var(--track-height) / 2);
25
-
24
+ border-radius: calc(var(--track-height) / 2);
26
25
  }
27
26
 
28
- .pointHolder{
27
+ .pointHolder {
29
28
  position: absolute;
30
- top:0;
29
+ top: 0;
31
30
  left: 0;
32
31
  width: calc(100% - var(--point-size));
33
- height:100%;
32
+ height: 100%;
34
33
  }
35
34
 
36
35
  .handle {
@@ -41,27 +40,28 @@
41
40
  height: var(--point-size);
42
41
  top: calc(50% - var(--point-size) / 2);
43
42
  border-radius: 50%;
44
- background:var(--slider-color);
45
- border:2px solid var(--color-neutral-100);
46
- &.selected, &:focus-visible{
47
- outline:2px solid var(--color-accent-30);
43
+ background: var(--slider-color);
44
+ border: 2px solid var(--color-neutral-100);
45
+ &.selected,
46
+ &:focus-visible {
47
+ outline: 2px solid var(--color-accent-30);
48
48
  }
49
- &:after{
49
+ &:after {
50
50
  content: '';
51
51
  position: absolute;
52
- width:24px;
53
- height:24px;
52
+ width: 24px;
53
+ height: 24px;
54
54
  top: calc(50% - 12px);
55
55
  left: calc(50% - 12px);
56
56
  }
57
-
58
57
  }
59
58
 
60
59
  .range {
61
60
  position: absolute;
62
61
  background: var(--slider-color);
63
62
  height: 100%;
64
- top: 0;left:0;
63
+ top: 0;
64
+ left: 0;
65
65
  // transition: all 0.4s ease-out;
66
66
  pointer-events: none;
67
67
  }
@@ -16,11 +16,11 @@ $border-radius: var(--border-radius-small);
16
16
  .item {
17
17
  &:not(.disabled) {
18
18
  &:focus-visible {
19
- box-shadow:0 0 0 1px solid var(--item-hover-color);
19
+ box-shadow: 0 0 0 1px solid var(--item-hover-color);
20
20
  }
21
21
  &:hover:not(.selected) {
22
22
  // background-color: var(--item-hover-color);
23
- box-shadow:inset 0 0 0 1px var(--item-hover-color);
23
+ box-shadow: inset 0 0 0 1px var(--item-hover-color);
24
24
  }
25
25
  }
26
26
  }
@@ -73,7 +73,7 @@ $border-radius: var(--border-radius-small);
73
73
  position: absolute;
74
74
  inset: -1px 0 -1px calc(var(--indent-size) + 8px);
75
75
  display: block;
76
- content: "";
76
+ content: '';
77
77
  pointer-events: none;
78
78
  transition: all 0.1s ease-out;
79
79
  border: 0px solid white;
@@ -1,4 +1,4 @@
1
- @use "../../variables" as *;
1
+ @use '../../variables' as *;
2
2
  .item {
3
3
  [data-drag-handle] {
4
4
  cursor: grab;
@@ -15,7 +15,7 @@
15
15
  &.over {
16
16
  position: relative;
17
17
  &::before {
18
- content: "";
18
+ content: '';
19
19
  display: block;
20
20
  pointer-events: none;
21
21
  width: 100%;
@@ -34,10 +34,9 @@
34
34
  &.sortAsBox {
35
35
  &.over::before {
36
36
  height: 100%;
37
- border:1px solid var(--color-neutral-100);
38
- background:transparent;
37
+ border: 1px solid var(--color-neutral-100);
38
+ background: transparent;
39
39
  border-radius: var(--border-radius-small);
40
40
  }
41
41
  }
42
42
  }
43
-
@@ -1,4 +1,4 @@
1
- @use "../../variables" as *;
1
+ @use '../../variables' as *;
2
2
  $row-height: $size-l;
3
3
 
4
4
  .root {
@@ -10,10 +10,10 @@
10
10
  }
11
11
  }
12
12
 
13
- &.s{
13
+ &.s {
14
14
  .tab {
15
15
  height: 24px;
16
- font-size:12px;
16
+ font-size: 12px;
17
17
  border-radius: 4px;
18
18
  gap: 4px;
19
19
  }
@@ -21,7 +21,7 @@
21
21
  }
22
22
  .tab {
23
23
  background-color: transparent;
24
- height:32px;
24
+ height: 32px;
25
25
  border: none;
26
26
  outline: none;
27
27
  color: var(--color-neutral-70);