@sk-web-gui/core 0.1.64 → 0.1.66

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sk-web-gui/core",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "license": "MIT",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -31,5 +31,5 @@
31
31
  "postcss-import": "^14.0.2",
32
32
  "tailwindcss": "^2.2.4"
33
33
  },
34
- "gitHead": "a01443074ea6b641df29b9c8289cd14697417f4c"
34
+ "gitHead": "41f489446f57e29402fdd710cd7203ea35f59b3e"
35
35
  }
@@ -22,4 +22,9 @@ module.exports = Modal = () => ({
22
22
  '@apply p-4 -m-4 flex flex-col': {},
23
23
  },
24
24
  },
25
+
26
+ '.tab': {
27
+ '@apply mr-[10px] bg-white pt-4 pb-3 px-4 rounded-b-3xl shadow-[rgba(0,_0,_0,_0.24)_0px_1.5px_4px]': {},
28
+ },
29
+
25
30
  });
@@ -6,6 +6,10 @@ function buttonSolid(colors) {
6
6
  '@apply text-body bg-white': {},
7
7
  /* hover */
8
8
  '@apply hover:text-white hover:bg-hover hover:border-primary-active': {},
9
+ /* keyboard active */
10
+ '&.active': {
11
+ '@apply text-white bg-hover border-primary-active': {},
12
+ },
9
13
  /* focus */
10
14
  '@apply focus-visible:z-base': {},
11
15
  '@apply focus-visible:border-primary': {},
@@ -18,6 +22,10 @@ function buttonSolid(colors) {
18
22
  '@apply dark:text-neutral-100 dark:bg-neutral-700': {},
19
23
  /* dark hover */
20
24
  '@apply dark:hover:border-hover dark:hover:bg-neutral-600': {},
25
+ /* dark keyboard active */
26
+ '&.active': {
27
+ '@apply dark:border-hover dark:bg-neutral-600': {},
28
+ },
21
29
  /* dark focus */
22
30
  '@apply dark:focus-visible:border-primary-500': {},
23
31
  /* dark active */
@@ -31,6 +39,10 @@ function buttonSolid(colors) {
31
39
  [`@apply text-white bg-${color}`]: {},
32
40
  // hover
33
41
  [`@apply hover:text-white hover:bg-${color}-active`]: {},
42
+ // keyboard active
43
+ '&.active': {
44
+ [`@apply text-white bg-${color}-active`]: {},
45
+ },
34
46
 
35
47
  [`@apply active:text-white active:bg-${color}-active`]: {},
36
48
  [`@apply focus-visible:ring-4 focus-visible:ring-black`]: {},
@@ -58,11 +70,17 @@ function buttonSolid(colors) {
58
70
 
59
71
  "&[data-color='primary']": {
60
72
  '@apply border-primary hover:border-primary-active': {},
73
+ '&.active': {
74
+ '@apply border-primary-active': {},
75
+ },
61
76
  },
62
77
 
63
78
  '&.btn': {
64
79
  '&-disabled': {
65
80
  '@apply disabled:border-gray-stroke hover:border-gray-stroke': {},
81
+ '&.active': {
82
+ '@apply border-gray-stroke': {},
83
+ },
66
84
  },
67
85
  },
68
86
  },
@@ -76,6 +94,10 @@ function buttonOutline(colors) {
76
94
  '@apply text-body bg-transparent': {},
77
95
  /* hover */
78
96
  '@apply hover:text-white hover:bg-primary-active hover:border-primary-active': {},
97
+ /* keyboard active */
98
+ '&.active': {
99
+ '@apply text-white bg-primary-active border-primary-active': {},
100
+ },
79
101
  /* focus */
80
102
  '@apply focus-visible:z-base': {},
81
103
  '@apply focus-visible:border-primary-500': {},
@@ -87,6 +109,10 @@ function buttonOutline(colors) {
87
109
  '@apply dark:text-neutral-100 dark:bg-transparent': {},
88
110
  /* dark hover */
89
111
  '@apply dark:hover:border-neutral-300 dark:hover:bg-neutral-700': {},
112
+ /* dark keyboard active */
113
+ '&.active': {
114
+ '@apply dark:border-neutral-300 dark:bg-neutral-700': {},
115
+ },
90
116
  /* dark focus */
91
117
  '@apply dark:focus-visible:border-primary-500': {},
92
118
  /* dark active */
@@ -100,6 +126,10 @@ function buttonOutline(colors) {
100
126
  [`@apply text-${color}-600 bg-transparent`]: {},
101
127
  /* hover */
102
128
  [`@apply hover:text-white hover:bg-${color}-active hover:border-${color}-active`]: {},
129
+ /* keyboard active */
130
+ '&.active': {
131
+ [`@apply text-white bg-${color}-active border-${color}-active`]: {},
132
+ },
103
133
  /* focus */
104
134
  [`@apply focus-visible:border-${color}-500`]: {},
105
135
  [`@apply focus-visible:ring-${color}-500`]: {},
@@ -112,6 +142,11 @@ function buttonOutline(colors) {
112
142
  /* dark hover */
113
143
  [`@apply dark:hover:bg-${color}-200`]: {},
114
144
  [`@apply dark:hover:bg-opacity-15`]: {},
145
+ /* dark keyboard active */
146
+ '&.active': {
147
+ [`@apply dark:bg-${color}-200`]: {},
148
+ [`@apply dark:bg-opacity-15`]: {},
149
+ },
115
150
  /* dark focus */
116
151
  [`@apply dark:focus-visible:border-${color}-500`]: {},
117
152
  [`@apply dark:focus-visible:ring-${color}-500`]: {},
@@ -126,6 +161,9 @@ function buttonOutline(colors) {
126
161
  '&.btn': {
127
162
  '&-disabled': {
128
163
  '@apply disabled:border-gray-stroke hover:border-gray-stroke': {},
164
+ '&.active': {
165
+ '@apply border-gray-stroke': {},
166
+ },
129
167
  },
130
168
  },
131
169
  },
@@ -232,6 +270,9 @@ function buttonLink(colors) {
232
270
  return {
233
271
  '&-link': {
234
272
  '@apply h-auto p-0 leading-normal text-neutral-600 hover:underline active:text-neutral-700': {},
273
+ '&.active': {
274
+ '@apply underline': {},
275
+ },
235
276
  '@apply focus-visible:z-base focus-visible:ring-4 focus-visible:ring-primary-500': {},
236
277
  // dark colors
237
278
  '@apply dark:text-neutral-200': {},
@@ -258,15 +299,15 @@ module.exports = Button = (colors) => ({
258
299
  '.btn': {
259
300
  '@apply relative': {},
260
301
  '@apply m-0': {},
261
- '@apply rounded-lg inline-flex items-center justify-center flex-shrink-0 align-middle': {},
302
+ '@apply px-[3.2rem]': {},
303
+ '@apply py-0': {},
304
+ '@apply rounded-[0.4rem] inline-flex items-center justify-center flex-shrink-0 align-middle': {},
262
305
  '@apply font-medium leading-tight': {},
263
306
  transitionProperty: 'background-color, border-color, color, fill, stroke, box-shadow',
264
307
  '@apply duration-75 ease-out': {},
265
308
  '@apply outline-none appearance-none cursor-base select-none whitespace-nowrap': {},
266
309
  '@apply focus-visible:outline-none': {},
267
310
 
268
- padding: '1.2rem 3.2rem',
269
-
270
311
  "&[data-rounded='true']": {
271
312
  borderRadius: '3.2rem',
272
313
  },
@@ -274,17 +315,20 @@ module.exports = Button = (colors) => ({
274
315
  // sizing
275
316
  '&-sm': {
276
317
  '@apply text-xs': {},
277
- // minWidth: "1.75rem",
318
+ minHeight: '4rem',
319
+ maxHeight: '4rem',
278
320
  },
279
321
 
280
322
  '&-md': {
281
323
  '@apply text-sm': {},
282
- // minWidth: "2rem",
324
+ minHeight: '4.4rem',
325
+ maxHeight: '4.4rem',
283
326
  },
284
327
 
285
328
  '&-lg': {
286
329
  '@apply text-base': {},
287
- // minWidth: "2.5rem",
330
+ minHeight: '4.8rem',
331
+ maxHeight: '4.8rem',
288
332
  },
289
333
 
290
334
  // State
@@ -293,6 +337,11 @@ module.exports = Button = (colors) => ({
293
337
  '@apply disabled:shadow-none disabled:cursor-not-allowed': {},
294
338
  '@apply disabled:text-gray disabled:bg-gray-light !important': {},
295
339
  },
340
+ '.MuiSvgIcon-root': {
341
+ fontSize: '1.5em',
342
+ width: '1em',
343
+ height: '1em',
344
+ },
296
345
 
297
346
  // variants
298
347
  ...buttonSolid(colors),
@@ -301,4 +350,12 @@ module.exports = Button = (colors) => ({
301
350
  //...buttonLight(colors),
302
351
  ...buttonLink(colors),
303
352
  },
353
+ '.btn-has-icon': {
354
+ '&-left .MuiSvgIcon-root': {
355
+ '@apply mr-sm': {},
356
+ },
357
+ '&-right .MuiSvgIcon-root': {
358
+ '@apply ml-sm': {},
359
+ },
360
+ },
304
361
  });
@@ -0,0 +1,11 @@
1
+ module.exports = ContextMenu = () => ({
2
+ '.context-menu-wrapper': {
3
+ '.context-menu-items': {
4
+ '@apply absolute bg-white border border-body z-10 drop-shadow-md mt-sm flex flex-col space-y-4 justify-start items-start p-sm':
5
+ {},
6
+ '.context-menu-item': {
7
+ '@apply px-sm': {},
8
+ },
9
+ },
10
+ },
11
+ });
@@ -0,0 +1,12 @@
1
+ module.exports = Dialog = () => ({
2
+ '.dialog': {
3
+ '@apply w-fit max-w-prose': {},
4
+ '&-buttons': {
5
+ '@apply grid grid-flow-col gap-lg place-content-stretch': {},
6
+ gridAutoColumns: 'minmax(0, 1fr)',
7
+ },
8
+ '&-content': {
9
+ '@apply text-center mb-lg': {},
10
+ },
11
+ },
12
+ });
@@ -1,5 +1,5 @@
1
1
  module.exports = DropdownFilter = () => ({
2
- '.DropdownFilter': {
2
+ '.dropdown-filter': {
3
3
  position: 'relative',
4
4
  height: 50,
5
5
  border: '1px solid #939393',
@@ -8,11 +8,10 @@ module.exports = DropdownFilter = () => ({
8
8
  borderRadius: 2,
9
9
 
10
10
  '.dropdown-button': {
11
- justifyContent: 'space-between',
12
- display: 'flex',
13
- flexGrow: 1,
14
- alignItems: 'center',
15
- padding: '0 1rem',
11
+ '@apply flex justify-between items-center py-0 px-[1rem] grow': {},
12
+ '.dropdown-button-icon': {
13
+ '@apply justify-self-end grow-0': {},
14
+ },
16
15
  },
17
16
 
18
17
  '.filter-container': {
@@ -38,7 +37,7 @@ module.exports = DropdownFilter = () => ({
38
37
  },
39
38
  },
40
39
 
41
- '.FilterItem': {
40
+ '.filter-item': {
42
41
  height: 48,
43
42
  display: 'flex',
44
43
  justifyContent: 'space-between',
@@ -218,7 +218,7 @@ module.exports = Forms = (colors) => ({
218
218
  //"@apply disabled:border-neutral-200 disabled:bg-neutral-200": {},
219
219
  //"@apply dark:disabled:border-transparent dark:disabled:bg-white/20": {},
220
220
  },
221
-
221
+
222
222
  "&[data-rounded='true']": {
223
223
  borderRadius: '3.2rem',
224
224
  },
@@ -229,7 +229,7 @@ module.exports = Forms = (colors) => ({
229
229
  },
230
230
 
231
231
  '.form-close-button': {
232
- '@apply p-sm border-0 rounded-[50%] ml-auto': {},
232
+ '@apply border-0 ml-auto': {},
233
233
 
234
234
  '&-icon': {
235
235
  '@apply inline-flex': {},
@@ -250,9 +250,15 @@ module.exports = Forms = (colors) => ({
250
250
  },
251
251
 
252
252
  '.form-select': {
253
- '@apply min-h-[50px] text-body bg-white caret-transparent select-none cursor-pointer border-gray-stroke': {},
253
+ '@apply min-h-[50px] justify-between grow text-body bg-white caret-transparent select-none cursor-pointer border-gray-stroke':
254
+ {},
254
255
  'background-image': 'none',
255
-
256
+ '&-wrapper': {
257
+ '@apply block w-full relative': {},
258
+ },
259
+ '&-icon': {
260
+ '@apply grow-0': {},
261
+ },
256
262
  '&-list': {
257
263
  '@apply z-10 absolute overflow-y-auto w-full bg-white mt-0 border border-gray-stroke border-t-0': {},
258
264
  },
@@ -261,9 +267,15 @@ module.exports = Forms = (colors) => ({
261
267
  '@apply rounded-none cursor-default hover:text-white focus-visible:text-white hover:bg-primary focus-visible:bg-primary':
262
268
  {},
263
269
 
270
+ '&.multiple.selected': {
271
+ '@apply bg-background-one': {},
272
+ },
264
273
  '&.active': {
265
274
  '@apply bg-primary text-white': {},
266
275
  },
276
+ '&.active.selected': {
277
+ '@apply bg-primary text-white': {},
278
+ },
267
279
  },
268
280
  },
269
281
 
@@ -1,5 +1,30 @@
1
1
  module.exports = IconButton = () => ({
2
- '.btn-icon': {
2
+ '.btn-icon, [data-icon="true"]': {
3
3
  '@apply p-0': {},
4
+ "&[data-rounded='true']": {
5
+ '@apply rounded-full': {},
6
+ },
7
+ '&.btn-sm': {
8
+ minWidth: '4rem',
9
+ maxWidth: '4rem',
10
+ },
11
+
12
+ '&.btn-md': {
13
+ minWidth: '4.4rem',
14
+ maxWidth: '4.4rem',
15
+ },
16
+
17
+ '&.btn-lg': {
18
+ minWidth: '4.8rem',
19
+ maxWidth: '4.8rem',
20
+ },
21
+ '.btn-has-icon': {
22
+ '&-left .MuiSvgIcon-root': {
23
+ '@apply mr-0': {},
24
+ },
25
+ '&-right .MuiSvgIcon-root': {
26
+ '@apply ml-0': {},
27
+ },
28
+ },
4
29
  },
5
30
  });
@@ -6,6 +6,9 @@ module.exports = Link = () => ({
6
6
 
7
7
  '@apply hover:text-primary-active': {},
8
8
 
9
+ '&.active': {
10
+ '@apply underline text-primary-active': {},
11
+ },
9
12
  '&-external-icon': {
10
13
  fontSize: '0.875em !important',
11
14
  lineHeight: '1',
@@ -1,5 +1,5 @@
1
1
  module.exports = Menu = () => ({
2
- '.SideMenu': {
2
+ '.side-menu': {
3
3
  '@apply w-[440px]': {},
4
4
 
5
5
  '.menu-header': {
@@ -29,37 +29,36 @@ module.exports = Menu = () => ({
29
29
  },
30
30
  },
31
31
  },
32
-
33
32
 
34
- '.menu-body': {
35
- '@apply border border-gray-stroke': {},
36
- '>.MenuItem:first-child': {
37
- '@apply border-t-0': {},
38
- },
39
- },
40
-
41
- '.MenuItem': {
42
- '@apply bg-white h-full border-t border-gray-stroke': {},
33
+ '.menu-item': {
34
+ '@apply bg-white h-full': {},
43
35
 
44
36
  '.items': {
45
37
  '@apply block': {},
46
38
  },
47
39
 
40
+ '&-label': {
41
+ '@apply flex-grow select-none': {},
42
+ },
43
+
48
44
  '&.active': {
49
45
  '> .wrapper': {
50
46
  boxShadow: 'inset 6px 0 0 0 #005595',
51
-
52
- '> .MenuItem-link': {
47
+ '.menu-item-label': {
53
48
  '@apply underline': {},
54
49
  },
55
50
  },
56
51
  },
57
52
 
58
- '.wrapper': {
59
- '@apply flex items-center': {},
53
+ '.expand path': {
54
+ '@apply fill-primary': {},
55
+ },
56
+
57
+ '& .wrapper': {
58
+ '@apply min-h-[48px] max-h-[48px] relative flex flex-wrap items-center': {},
60
59
 
61
- '.MenuItem-link': {
62
- '@apply flex-grow text-left justify-start py-sm pr-[15px] h-full': {},
60
+ '.menu-item-link': {
61
+ '@apply flex-grow flex items-center text-base text-left justify-start py-sm pr-sm h-full': {},
63
62
  },
64
63
 
65
64
  '.expand': {
@@ -71,98 +70,309 @@ module.exports = Menu = () => ({
71
70
  },
72
71
  },
73
72
 
74
- /*'&.lvl-1, &.lvl-2, &.lvl-3, &.lvl-4, &.lvl-5, &.lvl-6, &.lvl-7, &.lvl-8, &.lvl-9, &.lvl-10': {
75
- '.MenuItem-link ': {
76
- '@apply py-sm': {},
73
+ '&.open': {
74
+ '&:not(.moved-away) + .menu-item:not(.new-item) > .wrapper': {
75
+ '@apply border-t': {},
77
76
  },
78
- '@apply py-sm': {},
79
77
  },
80
- */
81
78
 
82
- '&.isSubNode': {
83
- '@apply bg-gray-lighter': {},
84
- '> .wrapper ': {
85
- '@apply min-h-[56px]': {},
79
+ '&.draggable': {
80
+ '&.dragenter': {
81
+ '> .wrapper': {
82
+ '@apply h-full max-h-full': {},
83
+ },
84
+ "> .wrapper > *:not([draggable='true'])": {
85
+ '@apply pointer-events-none': {},
86
+ },
87
+
88
+ '& > .wrapper::after': {
89
+ '@apply bg-info-light block relative w-full h-[44px]': {},
90
+ content: "''",
91
+ },
92
+ },
93
+
94
+ '&.moving': {
95
+ '@apply hidden': {},
86
96
  },
87
- },
88
97
 
89
- '&.isLeafNode': {
90
- '@apply bg-gray-middle': {},
91
- '> .wrapper ': {
92
- '@apply min-h-[48px]': {},
98
+ '& .menu-item-move-button': {
99
+ '@apply -translate-x-full text-gray-stroke absolute py-sm inset-y-0 my-auto': {},
100
+
101
+ svg: {
102
+ '@apply h-full': {},
103
+ },
104
+ '&-label': {
105
+ '@apply text-[#B65A06]': {},
106
+ },
107
+ },
108
+
109
+ '.menu-item-error': {
110
+ '@apply text-error -ml-[5px] absolute -translate-x-full': {},
111
+ },
112
+
113
+ '&.moved-away': {
114
+ '@apply text-gray pointer-events-none': {},
115
+
116
+ '.menu-item-link': {
117
+ '@apply opacity-[78%] relative': {},
118
+
119
+ '&::before': {
120
+ '@apply absolute -translate-x-full -ml-sm block w-[10px] h-[10px] rounded-full bg-warning': {},
121
+ content: '""',
122
+ },
123
+ },
124
+
125
+ '.menu-item-error, .menu-item-changes, .items': {
126
+ '@apply hidden': {},
127
+ },
128
+
129
+ '.menu-item-changes': {
130
+ '@apply bg-gray': {},
131
+ },
132
+
133
+ '.menu-item-move-button': {
134
+ '@apply hidden': {},
135
+ },
136
+
137
+ '.expand': {
138
+ '@apply opacity-[78%]': {},
139
+ path: {
140
+ '@apply fill-gray-stroke': {},
141
+ },
142
+ },
143
+ },
144
+
145
+ '&.movedHere': {
146
+ "[draggable='true']": {
147
+ '@apply text-warning': {},
148
+ },
149
+ },
150
+
151
+ '&.separator': {
152
+ '@apply bg-transparent relative': {},
153
+
154
+ '> div.wrapper, > .menu-item-link': {
155
+ '@apply h-[44px]': {},
156
+ },
157
+ },
158
+
159
+ '&.new-item': {
160
+ '.wrapper': {
161
+ '@apply border-[3px] border-dashed border-[rgba(0,0,0,0.3)]': {},
162
+ boxSizing: 'border-box',
163
+
164
+ '.menu-item-move-button': {
165
+ '@apply -ml-[3px]': {},
166
+ },
167
+ },
168
+ },
169
+
170
+ '& .menu-item-changes': {
171
+ '@apply bg-warning rounded-full w-[24px] h-[24px] text-center text-sm font-bold text-white': {},
93
172
  },
94
173
  },
95
174
 
175
+ '&-separator': {
176
+ '@apply text-svartvik-200': {},
177
+ height: '1px',
178
+ width: '100%',
179
+ backgroundImage: `repeating-linear-gradient(0deg, currentColor, currentColor 19px, transparent 19px, transparent 38px, currentColor 38px), repeating-linear-gradient(90deg, currentColor, currentColor 19px, transparent 19px, transparent 38px, currentColor 38px), repeating-linear-gradient(180deg, currentColor, currentColor 19px, transparent 19px, transparent 38px, currentColor 38px), repeating-linear-gradient(270deg, currentColor, currentColor 19px, transparent 19px, transparent 38px, currentColor 38px)`,
180
+ backgroundSize: '2px 100%, 100% 2px, 2px 100% , 100% 2px',
181
+ backgroundPosition: '0 0, 0 0, 100% 0, 0 100%',
182
+ backgroundRepeat: 'no-repeat',
183
+ },
184
+
96
185
  '&.lvl-0': {
97
- '> .wrapper ': {
98
- '@apply min-h-[64px]': {},
186
+ '&:first-child > .wrapper': {
187
+ '@apply border-t-0': {},
188
+ },
189
+ '> .wrapper': {
190
+ '@apply h-[64px] max-h-[64px] border border-svartvik-200': {},
99
191
 
100
- '> .MenuItem-link': {
101
- '@apply py-md': {},
192
+ '> .menu-item-link': {
193
+ '@apply py-md': {},
102
194
  paddingLeft: '3.2rem',
103
195
  },
104
196
  },
197
+
198
+ '.menu-item-link': {
199
+ '@apply h-[64px] max-h-[64px]': {},
200
+ },
201
+
202
+ '& + .menu-item > .wrapper': {
203
+ '@apply border-t-0': {},
204
+ },
205
+
206
+ '> .items': {
207
+ '@apply border-l border-r border-svartvik-200': {},
208
+ },
209
+
210
+ '&:last-child.open > .items': {
211
+ '@apply border-b border-svartvik-200': {},
212
+ },
213
+
214
+ '&.separator > .wrapper': {
215
+ '@apply border-l-0 border-r-0': {},
216
+ },
105
217
  },
106
218
 
107
219
  '&.lvl-1': {
108
- '> .wrapper > .MenuItem-link': {
220
+ '@apply bg-gray-lighter': {},
221
+
222
+ '> .wrapper, .menu-item-link': {
223
+ '@apply h-[56px] max-h-[56px]': {},
224
+ },
225
+
226
+ '&.new-item': {
227
+ '> .wrapper .menu-item-link': {
228
+ '@apply h-[50px] max-h-[50px]': {},
229
+ },
230
+ },
231
+
232
+ '&.open:not(.new-item) > .wrapper': {
233
+ '@apply border-b border-svartvik-200': {},
234
+ },
235
+
236
+ '> .wrapper > .menu-item-link': {
109
237
  paddingLeft: '4.8rem',
110
238
  },
111
239
  },
112
240
 
113
241
  '&.lvl-2': {
114
- '> .wrapper > .MenuItem-link': {
242
+ '.wrapper': {
243
+ '@apply bg-gray-middle h-[48px] max-h-[48px]': {},
244
+
245
+ '> .menu-item-link': {
246
+ '@apply h-[48px] max-h-[48px]': {},
247
+ },
248
+ },
249
+
250
+ '&.new-item, .new-item': {
251
+ '> .wrapper .menu-item-link': {
252
+ '@apply h-[42px] max-h-[42px]': {},
253
+ },
254
+ },
255
+
256
+ '> .wrapper > .menu-item-link': {
115
257
  paddingLeft: '6.4rem',
116
258
  },
117
259
  },
118
260
 
119
261
  '&.lvl-3': {
120
- '> .wrapper > .MenuItem-link': {
262
+ '> .wrapper > .menu-item-link': {
121
263
  paddingLeft: '8rem',
122
264
  },
123
265
  },
124
266
 
125
267
  '&.lvl-4': {
126
- '> .wrapper > .MenuItem-link': {
268
+ '.wrapper': {
269
+ '@apply bg-[#d4d4d4]': {},
270
+ },
271
+ '> .wrapper > .menu-item-link': {
127
272
  paddingLeft: '9.6rem',
128
273
  },
129
274
  },
130
275
 
131
276
  '&.lvl-5': {
132
- '> .wrapper > .MenuItem-link': {
277
+ '> .wrapper > .menu-item-link': {
133
278
  paddingLeft: '11.2rem',
134
279
  },
135
280
  },
136
281
 
137
282
  '&.lvl-6': {
138
- '> .wrapper > .MenuItem-link': {
283
+ '> .wrapper > .menu-item-link': {
139
284
  paddingLeft: '12.8rem',
140
285
  },
141
286
  },
142
287
 
143
288
  '&.lvl-7': {
144
- '> .wrapper > .MenuItem-link': {
289
+ '> .wrapper > .menu-item-link': {
145
290
  paddingLeft: '14.4rem',
146
291
  },
147
292
  },
148
293
 
149
294
  '&.lvl-8': {
150
- '> .wrapper > .MenuItem-link': {
295
+ '> .wrapper > .menu-item-link': {
151
296
  paddingLeft: '16rem',
152
297
  },
153
298
  },
154
299
 
155
300
  '&.lvl-9': {
156
- '> .wrapper > .MenuItem-link': {
301
+ '> .wrapper > .menu-item-link': {
157
302
  paddingLeft: '17.6rem',
158
303
  },
159
304
  },
160
305
 
161
306
  '&.lvl-10': {
162
- '> .wrapper > .MenuItem-link': {
307
+ '> .wrapper > .menu-item-link': {
163
308
  paddingLeft: '19.2rem',
164
309
  },
165
310
  },
166
311
  },
167
312
  },
313
+
314
+ // Sparkle icon scss
315
+ '.sparkle-icon': {
316
+ '@apply inline-flex w-[25px] h-[18px] ml-md gap-[6px]': {},
317
+ },
318
+ '.sparkle-vert-lg': {
319
+ '@apply relative w-0 h-0 border-b-[10px] border-b-primary border-x-[4px] border-x-transparent border-t-[4px] border-t-transparent top-[-4px]':
320
+ {},
321
+ '&::after': {
322
+ '@apply content-[""] absolute left-[-4px] top-[12px] w-0 h-0 border-x-[4px] border-b-[4px] border-x-transparent border-b-transparent border-t-[10px] border-t-primary':
323
+ {},
324
+ },
325
+ },
326
+ '.sparkle-horizontal-lg': {
327
+ '@apply relative w-0 h-0 border-b-[10px] border-b-primary border-x-[4px] border-x-transparent border-t-[4px] border-t-transparent right-[-7px] top-[-10px] rotate-[90deg]':
328
+ {},
329
+ '&::after': {
330
+ '@apply content-[""] absolute left-[-4px] top-[10px] w-0 h-0 border-x-[4px] border-b-[4px] border-x-transparent border-b-transparent border-t-[10px] border-t-primary':
331
+ {},
332
+ },
333
+ },
334
+ '.sparkle-vert-sm': {
335
+ '@apply relative w-0 h-0 border-b-[6px] border-b-primary border-x-[2px] border-x-transparent border-t-[2px] border-t-transparent top-[-2px]':
336
+ {},
337
+ '&::after': {
338
+ '@apply content-[""] absolute left-[-1.8px] top-[6px] w-0 h-0 border-x-[2px] border-b-[2px] border-x-transparent border-b-transparent border-t-[6px] border-t-primary':
339
+ {},
340
+ },
341
+ },
342
+ '.sparkle-horizontal-sm': {
343
+ '@apply relative w-0 h-0 border-b-[6px] border-b-primary border-x-[2px] border-x-transparent border-t-[6px] border-t-transparent right-[-5.5px] top-[-8px] rotate-[90deg]':
344
+ {},
345
+ '&::after': {
346
+ '@apply content-[""] absolute left-[-2.2px] top-[5px] w-0 h-0 border-x-[2px] border-b-[6px] border-x-transparent border-b-transparent border-t-[6px] border-t-primary':
347
+ {},
348
+ },
349
+ },
350
+ '.twinkling-1': {
351
+ '@apply animate-pulse delay-75': {},
352
+ },
353
+ '.twinkling-2': {
354
+ '@apply animate-fast-pulse delay-75': {},
355
+ },
356
+ '.twinkling-3': {
357
+ '@apply animate-slow-pulse delay-1000': {},
358
+ },
359
+
360
+ '@keyframes slow-pulse': {
361
+ '75%': {
362
+ opacity: 0,
363
+ },
364
+ },
365
+ '@keyframes fast-pulse': {
366
+ '65%': {
367
+ opacity: 0,
368
+ },
369
+ },
370
+
371
+ '.animate-slow-pulse': {
372
+ animation: 'slow-pulse 2s cubic-bezier(0.1, 0.8, 0.2, 0.8) infinite',
373
+ },
374
+
375
+ '.animate-fast-pulse': {
376
+ animation: 'fast-pulse 1.5s cubic-bezier(0.4, 0.8, 0.8, 1) infinite',
377
+ },
168
378
  });
package/src/index.js CHANGED
@@ -10,6 +10,8 @@ const Breadcrumb = require('./components/breadcrumb');
10
10
  const ButtonGroup = require('./components/button-group');
11
11
 
12
12
  const Checkbox = require('./components/checkbox');
13
+ const ContextMenu = require('./components/context-menu');
14
+ const Dialog = require('./components/dialog');
13
15
  const Dot = require('./components/dot');
14
16
  const Forms = require('./components/forms');
15
17
  const Calendar = require('./components/calendar');
@@ -51,6 +53,8 @@ const components = [
51
53
  ButtonGroup,
52
54
  Button,
53
55
  Checkbox,
56
+ ContextMenu,
57
+ Dialog,
54
58
  Dot,
55
59
  Forms,
56
60
  Calendar,