@skeletonlabs/skeleton-common 5.0.1 → 5.0.3

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.
@@ -1,32 +1,32 @@
1
- [data-scope='steps'] {
2
- &[data-part='root'] {
3
- &[data-orientation='horizontal'] {
1
+ [data-scope="steps"] {
2
+ &[data-part="root"] {
3
+ &[data-orientation="horizontal"] {
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  gap: --spacing(4);
7
7
  }
8
8
 
9
- &[data-orientation='vertical'] {
9
+ &[data-orientation="vertical"] {
10
10
  display: flex;
11
11
  gap: --spacing(4);
12
12
  }
13
13
  }
14
14
 
15
- &[data-part='list'] {
15
+ &[data-part="list"] {
16
16
  display: flex;
17
17
  gap: --spacing(2);
18
18
 
19
- &[data-orientation='horizontal'] {
19
+ &[data-orientation="horizontal"] {
20
20
  align-items: center;
21
21
  }
22
22
 
23
- &[data-orientation='vertical'] {
23
+ &[data-orientation="vertical"] {
24
24
  flex-direction: column;
25
25
  align-items: flex-start;
26
26
  }
27
27
  }
28
28
 
29
- &[data-part='item'] {
29
+ &[data-part="item"] {
30
30
  display: flex;
31
31
  gap: --spacing(2);
32
32
  flex-grow: 1;
@@ -35,23 +35,23 @@
35
35
  flex-grow: 0;
36
36
  }
37
37
 
38
- &[data-orientation='horizontal'] {
38
+ &[data-orientation="horizontal"] {
39
39
  align-items: center;
40
40
  }
41
41
 
42
- &[data-orientation='vertical'] {
42
+ &[data-orientation="vertical"] {
43
43
  flex-direction: column;
44
44
  align-items: flex-start;
45
45
  }
46
46
  }
47
47
 
48
- &[data-part='trigger'] {
48
+ &[data-part="trigger"] {
49
49
  display: flex;
50
50
  align-items: center;
51
51
  gap: --spacing(1);
52
52
  }
53
53
 
54
- &[data-part='indicator'] {
54
+ &[data-part="indicator"] {
55
55
  width: --spacing(8);
56
56
  height: --spacing(8);
57
57
  border-radius: calc(infinity * 1px);
@@ -71,7 +71,7 @@
71
71
  }
72
72
  }
73
73
 
74
- &[data-part='separator'] {
74
+ &[data-part="separator"] {
75
75
  height: 0;
76
76
  border-color: var(--color-surface-200-800);
77
77
  flex-grow: 1;
@@ -80,11 +80,11 @@
80
80
  border-color: light-dark(var(--color-brand-light), var(--color-brand-dark));
81
81
  }
82
82
 
83
- &[data-orientation='horizontal'] {
83
+ &[data-orientation="horizontal"] {
84
84
  border-top-width: 1px;
85
85
  }
86
86
 
87
- &[data-orientation='vertical'] {
87
+ &[data-orientation="vertical"] {
88
88
  border-inline-start-width: 1px;
89
89
  margin-inline-start: --spacing(4);
90
90
  min-height: --spacing(4);
@@ -1,5 +1,5 @@
1
- [data-scope='switch'] {
2
- &[data-part='root'] {
1
+ [data-scope="switch"] {
2
+ &[data-part="root"] {
3
3
  display: inline-flex;
4
4
  gap: --spacing(2);
5
5
  align-items: center;
@@ -16,7 +16,7 @@
16
16
  }
17
17
  }
18
18
 
19
- &[data-part='control'] {
19
+ &[data-part="control"] {
20
20
  height: --spacing(6);
21
21
  width: --spacing(10);
22
22
  padding: --spacing(0.5);
@@ -26,12 +26,12 @@
26
26
 
27
27
  @apply preset-filled-surface-200-800;
28
28
 
29
- &[data-state='checked'] {
29
+ &[data-state="checked"] {
30
30
  @apply preset-filled-brand;
31
31
  }
32
32
  }
33
33
 
34
- &[data-part='thumb'] {
34
+ &[data-part="thumb"] {
35
35
  display: grid;
36
36
  justify-content: center;
37
37
  align-items: center;
@@ -43,16 +43,16 @@
43
43
  fill: var(--color-surface-contrast-50);
44
44
  transition: transform 100ms;
45
45
 
46
- &[data-state='checked'] {
46
+ &[data-state="checked"] {
47
47
  transform: translateX(--spacing(4));
48
48
  }
49
49
 
50
- [dir='rtl'] &[data-state='checked'] {
50
+ [dir="rtl"] &[data-state="checked"] {
51
51
  transform: translateX(calc(-1 * --spacing(4)));
52
52
  }
53
53
  }
54
54
 
55
- &[data-part='label'] {
55
+ &[data-part="label"] {
56
56
  @apply label-text;
57
57
  }
58
58
  }
@@ -1,31 +1,31 @@
1
- [data-scope='tabs'] {
2
- &[data-part='root'] {
1
+ [data-scope="tabs"] {
2
+ &[data-part="root"] {
3
3
  width: 100%;
4
4
  display: flex;
5
5
 
6
- &[data-orientation='horizontal'] {
6
+ &[data-orientation="horizontal"] {
7
7
  flex-direction: column;
8
8
  }
9
9
 
10
- &[data-orientation='vertical'] {
10
+ &[data-orientation="vertical"] {
11
11
  flex-direction: row;
12
12
  }
13
13
  }
14
14
 
15
- &[data-part='list'] {
15
+ &[data-part="list"] {
16
16
  position: relative;
17
17
  display: flex;
18
18
  gap: --spacing(2);
19
19
  border-color: var(--color-surface-200-800);
20
20
 
21
- &[data-orientation='horizontal'] {
21
+ &[data-orientation="horizontal"] {
22
22
  padding-bottom: --spacing(2);
23
23
  margin-bottom: --spacing(4);
24
24
  flex-direction: row;
25
25
  border-bottom-width: 1px;
26
26
  }
27
27
 
28
- &[data-orientation='vertical'] {
28
+ &[data-orientation="vertical"] {
29
29
  padding-inline-end: --spacing(2);
30
30
  margin-inline-end: --spacing(4);
31
31
  flex-direction: column;
@@ -33,7 +33,7 @@
33
33
  }
34
34
  }
35
35
 
36
- &[data-part='trigger'] {
36
+ &[data-part="trigger"] {
37
37
  @apply btn;
38
38
 
39
39
  @variant hover {
@@ -45,16 +45,16 @@
45
45
  }
46
46
  }
47
47
 
48
- &[data-part='indicator'] {
48
+ &[data-part="indicator"] {
49
49
  background: var(--color-surface-950-50);
50
50
 
51
- &[data-orientation='horizontal'] {
51
+ &[data-orientation="horizontal"] {
52
52
  width: var(--width);
53
53
  height: --spacing(0.5);
54
54
  bottom: 0;
55
55
  }
56
56
 
57
- &[data-orientation='vertical'] {
57
+ &[data-orientation="vertical"] {
58
58
  width: --spacing(0.5);
59
59
  height: var(--height);
60
60
  inset-inline-end: 0;
@@ -1,16 +1,16 @@
1
- [data-scope='tags-input'] {
2
- &[data-part='root'] {
1
+ [data-scope="tags-input"] {
2
+ &[data-part="root"] {
3
3
  width: 100%;
4
4
  display: flex;
5
5
  flex-direction: column;
6
6
  gap: --spacing(2);
7
7
  }
8
8
 
9
- &[data-part='label'] {
9
+ &[data-part="label"] {
10
10
  @apply label-text;
11
11
  }
12
12
 
13
- &[data-part='control'] {
13
+ &[data-part="control"] {
14
14
  @apply input;
15
15
 
16
16
  display: flex;
@@ -18,7 +18,7 @@
18
18
  gap: --spacing(1.5);
19
19
  }
20
20
 
21
- &[data-part='item-preview'] {
21
+ &[data-part="item-preview"] {
22
22
  @apply btn btn-sm preset-filled;
23
23
 
24
24
  &[data-highlighted] {
@@ -27,11 +27,11 @@
27
27
  }
28
28
  }
29
29
 
30
- &[data-part='item-text'] {
30
+ &[data-part="item-text"] {
31
31
  line-height: 1;
32
32
  }
33
33
 
34
- &[data-part='item-delete-trigger'] {
34
+ &[data-part="item-delete-trigger"] {
35
35
  width: var(--text-xs);
36
36
  height: var(--text-xs);
37
37
  display: flex;
@@ -45,16 +45,16 @@
45
45
  }
46
46
  }
47
47
 
48
- &[data-part='item-input'] {
48
+ &[data-part="item-input"] {
49
49
  @apply input;
50
50
  }
51
51
 
52
- &[data-part='input'] {
52
+ &[data-part="input"] {
53
53
  @apply input-ghost!;
54
54
  width: auto !important;
55
55
  }
56
56
 
57
- &[data-part='clear-trigger'] {
57
+ &[data-part="clear-trigger"] {
58
58
  @apply btn btn-sm preset-tonal;
59
59
 
60
60
  width: fit-content;
@@ -1,5 +1,5 @@
1
- [data-scope='toast'] {
2
- &[data-part='root'] {
1
+ [data-scope="toast"] {
2
+ &[data-part="root"] {
3
3
  translate: var(--x) var(--y);
4
4
  scale: var(--scale);
5
5
  z-index: var(--z-index);
@@ -22,7 +22,7 @@
22
22
 
23
23
  @apply card preset-filled-surface-50-950;
24
24
 
25
- &[data-state='closed'] {
25
+ &[data-state="closed"] {
26
26
  transition:
27
27
  translate 400ms,
28
28
  scale 400ms,
@@ -30,41 +30,41 @@
30
30
  transition-timing-function: cubic-bezier(0.06, 0.71, 0.55, 1);
31
31
  }
32
32
 
33
- &[data-type='success'] {
33
+ &[data-type="success"] {
34
34
  @apply preset-filled-success-500;
35
35
  }
36
36
 
37
- &[data-type='warning'] {
37
+ &[data-type="warning"] {
38
38
  @apply preset-filled-warning-500;
39
39
  }
40
40
 
41
- &[data-type='error'] {
41
+ &[data-type="error"] {
42
42
  @apply preset-filled-error-500;
43
43
  }
44
44
  }
45
45
 
46
- &[data-part='group'] {
46
+ &[data-part="group"] {
47
47
  width: calc(100% - (var(--viewport-offset-left) + var(--viewport-offset-right)));
48
48
  }
49
49
 
50
- &[data-part='message'] {
50
+ &[data-part="message"] {
51
51
  flex: 1;
52
52
  }
53
53
 
54
- &[data-part='title'] {
54
+ &[data-part="title"] {
55
55
  font-weight: 500;
56
56
  font-size: var(--text-sm);
57
57
  }
58
58
 
59
- &[data-part='description'] {
59
+ &[data-part="description"] {
60
60
  font-size: var(--text-sm);
61
61
  }
62
62
 
63
- &[data-part='action-trigger'] {
63
+ &[data-part="action-trigger"] {
64
64
  @apply btn preset-filled;
65
65
  }
66
66
 
67
- &[data-part='close-trigger'] {
67
+ &[data-part="close-trigger"] {
68
68
  @apply btn-icon;
69
69
 
70
70
  @variant hover {
@@ -1,12 +1,12 @@
1
- [data-scope='toggle-group'] {
2
- &[data-part='root'] {
1
+ [data-scope="toggle-group"] {
2
+ &[data-part="root"] {
3
3
  display: inline-flex;
4
4
  overflow: hidden;
5
5
  border-radius: var(--radius-base);
6
6
 
7
7
  @apply preset-outlined-surface-200-800;
8
8
 
9
- &[data-orientation='horizontal'] {
9
+ &[data-orientation="horizontal"] {
10
10
  flex-direction: row;
11
11
 
12
12
  & > *:not(:last-child) {
@@ -14,7 +14,7 @@
14
14
  }
15
15
  }
16
16
 
17
- &[data-orientation='vertical'] {
17
+ &[data-orientation="vertical"] {
18
18
  flex-direction: column;
19
19
 
20
20
  & > *:not(:last-child) {
@@ -23,7 +23,7 @@
23
23
  }
24
24
  }
25
25
 
26
- &[data-part='item'] {
26
+ &[data-part="item"] {
27
27
  --tg-size: var(--text-base);
28
28
 
29
29
  display: inline-flex;
@@ -44,7 +44,7 @@
44
44
  @apply preset-tonal;
45
45
  }
46
46
 
47
- &[data-state='on'] {
47
+ &[data-state="on"] {
48
48
  @apply preset-filled;
49
49
  }
50
50
 
@@ -1,5 +1,5 @@
1
- [data-scope='tree-view'] {
2
- &[data-part='root'] {
1
+ [data-scope="tree-view"] {
2
+ &[data-part="root"] {
3
3
  width: 100%;
4
4
  display: flex;
5
5
  flex-direction: column;
@@ -8,17 +8,17 @@
8
8
  user-select: none;
9
9
  }
10
10
 
11
- &[data-part='tree'] {
11
+ &[data-part="tree"] {
12
12
  display: flex;
13
13
  flex-direction: column;
14
14
  gap: --spacing(1);
15
15
  }
16
16
 
17
- &[data-part='label'] {
17
+ &[data-part="label"] {
18
18
  @apply label-text;
19
19
  }
20
20
 
21
- &[data-part='item'] {
21
+ &[data-part="item"] {
22
22
  display: flex;
23
23
  align-items: center;
24
24
  gap: --spacing(2);
@@ -36,13 +36,13 @@
36
36
  }
37
37
  }
38
38
 
39
- &[data-part='branch'] {
39
+ &[data-part="branch"] {
40
40
  display: flex;
41
41
  flex-direction: column;
42
42
  gap: --spacing(1);
43
43
  }
44
44
 
45
- &[data-part='branch-control'] {
45
+ &[data-part="branch-control"] {
46
46
  display: flex;
47
47
  align-items: center;
48
48
  gap: --spacing(2);
@@ -60,26 +60,26 @@
60
60
  }
61
61
  }
62
62
 
63
- &[data-part='branch-indicator'] {
64
- &[data-state='open'] {
63
+ &[data-part="branch-indicator"] {
64
+ &[data-state="open"] {
65
65
  transform: rotate(90deg);
66
66
  }
67
67
  }
68
68
 
69
- &[data-part='branch-text'] {
69
+ &[data-part="branch-text"] {
70
70
  display: flex;
71
71
  align-items: center;
72
72
  gap: --spacing(2);
73
73
  }
74
74
 
75
- &[data-part='branch-content'] {
75
+ &[data-part="branch-content"] {
76
76
  display: flex;
77
77
  flex-direction: column;
78
78
  gap: --spacing(1);
79
79
  position: relative;
80
80
  }
81
81
 
82
- &[data-part='branch-indent-guide'] {
82
+ &[data-part="branch-indent-guide"] {
83
83
  position: absolute;
84
84
  background: color-mix(in oklab, var(--color-surface-500) 50%, transparent);
85
85
  width: --spacing(0.5);
package/src/index.css CHANGED
@@ -1,26 +1,26 @@
1
- @import './components/accordion.css';
2
- @import './components/app-bar.css';
3
- @import './components/avatar.css';
4
- @import './components/carousel.css';
5
- @import './components/marquee.css';
6
- @import './components/collapsible.css';
7
- @import './components/combobox.css';
8
- @import './components/date-picker.css';
9
- @import './components/file-upload.css';
10
- @import './components/floating-panel.css';
11
- @import './components/listbox.css';
12
- @import './components/menu.css';
13
- @import './components/navigation.css';
14
- @import './components/pagination.css';
15
- @import './components/progress.css';
16
- @import './components/qr-code.css';
17
- @import './components/rating-group.css';
18
- @import './components/segmented-control.css';
19
- @import './components/slider.css';
20
- @import './components/steps.css';
21
- @import './components/switch.css';
22
- @import './components/tabs.css';
23
- @import './components/tags-input.css';
24
- @import './components/toast.css';
25
- @import './components/toggle-group.css';
26
- @import './components/tree-view.css';
1
+ @import "./components/accordion.css";
2
+ @import "./components/app-bar.css";
3
+ @import "./components/avatar.css";
4
+ @import "./components/carousel.css";
5
+ @import "./components/marquee.css";
6
+ @import "./components/collapsible.css";
7
+ @import "./components/combobox.css";
8
+ @import "./components/date-picker.css";
9
+ @import "./components/file-upload.css";
10
+ @import "./components/floating-panel.css";
11
+ @import "./components/listbox.css";
12
+ @import "./components/menu.css";
13
+ @import "./components/navigation.css";
14
+ @import "./components/pagination.css";
15
+ @import "./components/progress.css";
16
+ @import "./components/qr-code.css";
17
+ @import "./components/rating-group.css";
18
+ @import "./components/segmented-control.css";
19
+ @import "./components/slider.css";
20
+ @import "./components/steps.css";
21
+ @import "./components/switch.css";
22
+ @import "./components/tabs.css";
23
+ @import "./components/tags-input.css";
24
+ @import "./components/toast.css";
25
+ @import "./components/toggle-group.css";
26
+ @import "./components/tree-view.css";