@flux-ui/components 3.0.0-next.2 → 3.0.0-next.4

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,63 +1,59 @@
1
1
  @use '$flux/css/mixin';
2
2
 
3
- @value baseAutoGrid from './base/Grid.module.scss';
3
+ .aspectRatio {
4
+ position: relative;
5
+ flex-shrink: 0;
4
6
 
5
- @layer flux-base {
6
- .aspectRatio {
7
- position: relative;
8
- flex-shrink: 0;
9
-
10
- > * {
11
- height: 100%;
12
- width: 100%;
13
- }
7
+ > * {
8
+ height: 100%;
9
+ width: 100%;
14
10
  }
11
+ }
15
12
 
16
- .autoGrid {
17
- composes: baseAutoGrid;
18
- }
13
+ .autoGrid {
14
+ composes: baseAutoGrid from './base/Grid.module.scss';
15
+ }
19
16
 
20
- .container {
21
- margin-left: auto;
22
- margin-right: auto;
23
- padding-left: var(--gutter);
24
- padding-right: var(--gutter);
25
- width: 100%;
17
+ .container {
18
+ margin-left: auto;
19
+ margin-right: auto;
20
+ padding-left: var(--gutter);
21
+ padding-right: var(--gutter);
22
+ width: 100%;
26
23
 
27
- @include mixin.breakpoint-max-widths;
28
- }
24
+ @include mixin.breakpoint-max-widths;
25
+ }
29
26
 
30
- .spacer {
31
- flex-grow: 1;
32
- }
27
+ .spacer {
28
+ flex-grow: 1;
29
+ }
33
30
 
34
- .stack {
35
- gap: var(--gap, 0);
31
+ .stack {
32
+ gap: var(--gap, 0);
36
33
 
37
- &.isCentered {
38
- place-content: center;
39
- place-items: center;
40
- }
34
+ &.isCentered {
35
+ place-content: center;
36
+ place-items: center;
37
+ }
41
38
 
42
- &.isFill {
43
- width: 100%;
44
- }
39
+ &.isFill {
40
+ width: 100%;
41
+ }
45
42
 
46
- &.isWrapping {
47
- flex-wrap: wrap;
48
- }
43
+ &.isWrapping {
44
+ flex-wrap: wrap;
49
45
  }
46
+ }
50
47
 
51
- .stackHorizontal {
52
- composes: stack;
48
+ .stackHorizontal {
49
+ composes: stack;
53
50
 
54
- display: flex;
55
- }
51
+ display: flex;
52
+ }
56
53
 
57
- .stackVertical {
58
- composes: stack;
54
+ .stackVertical {
55
+ composes: stack;
59
56
 
60
- display: flex;
61
- flex-flow: column;
62
- }
57
+ display: flex;
58
+ flex-flow: column;
63
59
  }
@@ -1,13 +1,11 @@
1
- @value stackHorizontal, stackVertical from './Layout.module.scss';
2
-
3
1
  .legendHorizontal {
4
- composes: stackHorizontal;
2
+ composes: stackHorizontal from './Layout.module.scss';
5
3
 
6
4
  gap: 12px 21px;
7
5
  }
8
6
 
9
7
  .legendVertical {
10
- composes: stackVertical;
8
+ composes: stackVertical from './Layout.module.scss';
11
9
 
12
10
  gap: 12px;
13
11
  }
@@ -1,8 +1,5 @@
1
1
  @use '$flux/css/mixin';
2
2
 
3
- @value button, buttonIcon, buttonLabel from './base/Button.module.scss';
4
- @value basePane from './base/Pane.module.scss';
5
-
6
3
  .menu {
7
4
  display: flex;
8
5
  flex-flow: column;
@@ -40,7 +37,7 @@
40
37
  }
41
38
 
42
39
  .menuItem {
43
- composes: button;
40
+ composes: button from './base/Button.module.scss';
44
41
 
45
42
  height: unset;
46
43
  min-height: 42px;
@@ -62,13 +59,13 @@
62
59
  }
63
60
 
64
61
  .menuItemIcon {
65
- composes: buttonIcon;
62
+ composes: buttonIcon from './base/Button.module.scss';
66
63
 
67
64
  color: var(--foreground-prominent);
68
65
  }
69
66
 
70
67
  .menuItemLabel {
71
- composes: buttonLabel;
68
+ composes: buttonLabel from './base/Button.module.scss';
72
69
 
73
70
  flex-grow: 1;
74
71
  font-weight: 400;
@@ -89,10 +86,8 @@
89
86
  color: rgb(var(--primary-0));
90
87
  }
91
88
 
92
- @media (hover: hover) {
93
- &:hover {
94
- background: rgb(var(--primary-7));
95
- }
89
+ @include mixin.hover {
90
+ background: rgb(var(--primary-7));
96
91
  }
97
92
 
98
93
  &:active {
@@ -118,10 +113,8 @@
118
113
  color: rgb(var(--primary-8));
119
114
  }
120
115
 
121
- @media (hover: hover) {
122
- &:hover {
123
- background: rgb(var(--primary-2));
124
- }
116
+ @include mixin.hover {
117
+ background: rgb(var(--primary-2));
125
118
  }
126
119
 
127
120
  &:active {
@@ -132,10 +125,8 @@
132
125
  [dark] .menuItemHighlighted {
133
126
  background: rgb(var(--primary-11) / .5);
134
127
 
135
- @media (hover: hover) {
136
- &:hover {
137
- background: rgb(var(--primary-11) / .5);
138
- }
128
+ @include mixin.hover {
129
+ background: rgb(var(--primary-11) / .5);
139
130
  }
140
131
 
141
132
  &:active {
@@ -148,7 +139,7 @@
148
139
  }
149
140
 
150
141
  .menuItemSelectableIcon {
151
- composes: buttonIcon;
142
+ composes: buttonIcon from './base/Button.module.scss';
152
143
  }
153
144
 
154
145
  .menuItemSelected .menuItemSelectableIcon {
@@ -282,7 +273,7 @@
282
273
  }
283
274
  }
284
275
 
285
- :local(.basePane) > .menu {
276
+ .basePane > .menu {
286
277
  margin-left: 9px;
287
278
  margin-right: 9px;
288
279
 
@@ -299,7 +290,7 @@
299
290
  }
300
291
  }
301
292
 
302
- :local(.expandableBody) > .menu {
293
+ .expandableBody > .menu {
303
294
  margin-left: 9px;
304
295
  margin-right: 9px;
305
296
 
@@ -1,9 +1,7 @@
1
1
  @use '$flux/css/mixin';
2
2
 
3
- @value basePane, basePaneElement from './base/Pane.module.scss';
4
-
5
3
  .notice {
6
- composes: basePaneElement;
4
+ composes: basePaneElement from './base/Pane.module.scss';
7
5
 
8
6
  display: flex;
9
7
  padding: 12px 15px;
@@ -274,7 +272,7 @@
274
272
  }
275
273
  }
276
274
 
277
- :local(.basePane) > .notice {
275
+ .basePane > .notice {
278
276
  padding-left: 21px;
279
277
  padding-right: 21px;
280
278
  }
@@ -4,7 +4,7 @@
4
4
  inset: 0;
5
5
  height: 100dvh;
6
6
  width: 100dvw;
7
- background: rgb(var(--gray-3) / .5);
7
+ background: rgb(var(--gray-8) / .5);
8
8
  backdrop-filter: blur(3px) saturate(180%);
9
9
  z-index: 10000;
10
10
 
@@ -25,6 +25,10 @@
25
25
  }
26
26
  }
27
27
 
28
+ [dark] .overlay {
29
+ background: rgb(0 0 0 / .5);
30
+ }
31
+
28
32
  .overlaySmall {
29
33
  composes: overlay;
30
34
 
@@ -1,91 +1,86 @@
1
- @value baseAutoGrid from './base/Grid.module.scss';
2
- @value basePaneElement, basePaneLoader, basePaneStructure from './base/Pane.module.scss';
3
-
4
- @layer flux-base {
5
- .pane {
6
- composes: basePaneStructure;
7
- }
1
+ .pane {
2
+ composes: basePaneStructure from './base/Pane.module.scss';
3
+ }
8
4
 
9
- .paneDefault {
10
- composes: pane;
5
+ .paneDefault {
6
+ composes: pane;
11
7
 
12
- box-shadow: var(--shadow-sm);
13
- }
8
+ box-shadow: var(--shadow-sm);
9
+ }
14
10
 
15
- .paneFlat {
16
- composes: pane;
17
- }
11
+ .paneFlat {
12
+ composes: pane;
13
+ }
18
14
 
19
- .paneWell {
20
- composes: pane;
15
+ .paneWell {
16
+ composes: pane;
21
17
 
22
- background: rgb(var(--gray-1));
23
- }
24
-
25
- .paneHeader {
26
- composes: basePaneElement;
18
+ background: rgb(var(--gray-1));
19
+ }
27
20
 
28
- display: flex;
29
- padding: 21px 21px 0;
30
- gap: 15px;
21
+ .paneHeader {
22
+ composes: basePaneElement from './base/Pane.module.scss';
31
23
 
32
- &:only-child {
33
- padding: 21px;
34
- }
24
+ display: flex;
25
+ padding: 21px 21px 0;
26
+ gap: 15px;
35
27
 
36
- &:has(+ :local(.basePaneElement):not(.paneBody)) {
37
- padding: 21px;
38
- }
28
+ &:only-child {
29
+ padding: 21px;
39
30
  }
40
31
 
41
- .paneHeaderCaption {
42
- display: flex;
43
- flex-flow: column;
44
- flex-grow: 1;
45
- line-height: 24px;
32
+ &:has(+ .basePaneElement:not(.paneBody)) {
33
+ padding: 21px;
34
+ }
35
+ }
46
36
 
47
- :is(strong) {
48
- color: var(--foreground-prominent);
49
- font-weight: 600;
37
+ .paneHeaderCaption {
38
+ display: flex;
39
+ flex-flow: column;
40
+ flex-grow: 1;
41
+ line-height: 24px;
50
42
 
51
- &:has(+ :is(span)) {
52
- font-size: 16px;
53
- }
54
- }
43
+ :is(strong) {
44
+ color: var(--foreground-prominent);
45
+ font-weight: 600;
55
46
 
56
- :is(span) {
57
- font-size: 14px;
47
+ &:has(+ :is(span)) {
48
+ font-size: 16px;
58
49
  }
59
50
  }
60
51
 
61
- .paneHeaderIcon {
62
- margin-top: 2px;
63
- color: rgb(var(--primary-7));
52
+ :is(span) {
53
+ font-size: 14px;
64
54
  }
55
+ }
65
56
 
66
- .paneBody {
67
- composes: basePaneElement;
57
+ .paneHeaderIcon {
58
+ margin-top: 2px;
59
+ color: rgb(var(--primary-7));
60
+ }
68
61
 
69
- padding: 21px;
70
- }
62
+ .paneBody {
63
+ composes: basePaneElement from './base/Pane.module.scss';
71
64
 
72
- .paneBody + .paneBody {
73
- padding-top: 0;
74
- }
65
+ padding: 21px;
66
+ }
75
67
 
76
- .paneFooter {
77
- composes: basePaneElement;
68
+ .paneBody + .paneBody {
69
+ padding-top: 0;
70
+ }
78
71
 
79
- display: flex;
80
- padding: 21px;
81
- gap: 9px;
82
- background: rgb(var(--gray-1));
83
- border-top: 1px solid rgb(var(--gray-2));
84
- }
72
+ .paneFooter {
73
+ composes: basePaneElement from './base/Pane.module.scss';
74
+
75
+ display: flex;
76
+ padding: 21px;
77
+ gap: 9px;
78
+ background: rgb(var(--gray-1));
79
+ border-top: 1px solid rgb(var(--gray-2));
85
80
  }
86
81
 
87
82
  .paneLoader {
88
- composes: basePaneLoader;
83
+ composes: basePaneLoader from './base/Pane.module.scss';
89
84
  }
90
85
 
91
86
  .paneTag {
@@ -138,7 +133,7 @@
138
133
 
139
134
  overflow: hidden;
140
135
 
141
- > :local(.baseAutoGrid) {
136
+ > .baseAutoGrid {
142
137
  margin-right: -1px;
143
138
  margin-bottom: -1px;
144
139
 
@@ -1,5 +1,3 @@
1
- @value basePaneStructure from './base/Pane.module.scss';
2
-
3
1
  .progressBar {
4
2
  position: relative;
5
3
  }
@@ -55,11 +53,11 @@
55
53
  white-space: nowrap;
56
54
  }
57
55
 
58
- :local(.basePaneStructure) > .progressBar:first-child {
56
+ .basePaneStructure > .progressBar:first-child {
59
57
  margin: 9px 9px 0;
60
58
  }
61
59
 
62
- :local(.basePaneStructure) > .progressBar:last-child {
60
+ .basePaneStructure > .progressBar:last-child {
63
61
  margin: 0 9px 9px;
64
62
  }
65
63
 
@@ -1,9 +1,7 @@
1
1
  @use '$flux/css/mixin';
2
2
 
3
- @value basePane from './base/Pane.module.scss';
4
-
5
3
  .snackbar {
6
- composes: basePane;
4
+ composes: basePane from './base/Pane.module.scss';
7
5
 
8
6
  display: flex;
9
7
  box-shadow: var(--shadow-xl), var(--shadow-2xl);
@@ -1,5 +1,3 @@
1
- @value sparklesContainer, sparklesContainerActive, sparklesParticles from './base/Effect.module.scss';
2
-
3
1
  .stepperStep {
4
2
  position: relative;
5
3
  }
@@ -42,7 +40,7 @@
42
40
  }
43
41
 
44
42
  .stepperStepsItem {
45
- composes: sparklesContainer;
43
+ composes: sparklesContainer from './base/Effect.module.scss';
46
44
 
47
45
  position: relative;
48
46
  display: flex;
@@ -74,7 +72,7 @@
74
72
  }
75
73
 
76
74
  .stepperStepsItemComplete {
77
- composes: sparklesContainerActive;
75
+ composes: sparklesContainerActive from './base/Effect.module.scss';
78
76
  composes: stepperStepsItem;
79
77
 
80
78
  background: rgb(var(--primary-7));
@@ -99,5 +97,5 @@
99
97
  }
100
98
 
101
99
  .stepperStepsItemParticles {
102
- composes: sparklesParticles;
100
+ composes: sparklesParticles from './base/Effect.module.scss';
103
101
  }
@@ -1,7 +1,5 @@
1
- @value basePaneElement, basePaneLoader, basePaneStructure from './base/Pane.module.scss';
2
-
3
1
  .table {
4
- composes: basePaneElement;
2
+ composes: basePaneElement from './base/Pane.module.scss';
5
3
 
6
4
  position: relative;
7
5
  overflow: auto;
@@ -21,7 +19,7 @@
21
19
  }
22
20
 
23
21
  .tableLoader {
24
- composes: basePaneLoader;
22
+ composes: basePaneLoader from './base/Pane.module.scss';
25
23
  }
26
24
 
27
25
  .tableRow {
@@ -134,31 +132,31 @@ tfoot .tableCell {
134
132
  }
135
133
  }
136
134
 
137
- :local(.basePaneStructure) > .table .tableCell:first-child .tableCellContent {
135
+ .basePaneStructure > .table .tableCell:first-child .tableCellContent {
138
136
  padding-left: 21px;
139
137
  }
140
138
 
141
- :local(.basePaneStructure) > .table .tableCell:last-child .tableCellContent {
139
+ .basePaneStructure > .table .tableCell:last-child .tableCellContent {
142
140
  padding-right: 21px;
143
141
  }
144
142
 
145
- :local(.basePaneStructure) > .table .tableActions {
143
+ .basePaneStructure > .table .tableActions {
146
144
  margin-right: -3px;
147
145
  }
148
146
 
149
- :local(.basePaneStructure) > .table :is(caption) {
147
+ .basePaneStructure > .table :is(caption) {
150
148
  padding: 12px 21px;
151
149
  border-top: 1px solid rgb(var(--gray-3));
152
150
  }
153
151
 
154
- :local(.basePaneStructure) > .table .tableLoader {
152
+ .basePaneStructure > .table .tableLoader {
155
153
  border-radius: var(--radius);
156
154
  }
157
155
 
158
- :not(:local(.basePaneStructure)) > .table .tableCell:not(.isBordered):first-child .tableCellContent {
156
+ :not(.basePaneStructure) > .table .tableCell:not(.isBordered):first-child .tableCellContent {
159
157
  padding-left: 0;
160
158
  }
161
159
 
162
- :not(:local(.basePaneStructure)) > .table .tableCell:not(.isBordered):last-child .tableCellContent {
160
+ :not(.basePaneStructure) > .table .tableCell:not(.isBordered):last-child .tableCellContent {
163
161
  padding-right: 0;
164
162
  }
@@ -1,5 +1,3 @@
1
- @value basePane, basePaneStructure from './base/Pane.module.scss';
2
-
3
1
  .toolbar {
4
2
  padding: 6px;
5
3
  contain: paint;
@@ -12,7 +10,7 @@
12
10
  }
13
11
 
14
12
  .toolbarFlat {
15
- composes: basePane;
13
+ composes: basePane from './base/Pane.module.scss';
16
14
  composes: toolbar;
17
15
 
18
16
  position: relative;
@@ -21,7 +19,7 @@
21
19
  }
22
20
 
23
21
  .toolbarFloating {
24
- composes: basePane;
22
+ composes: basePane from './base/Pane.module.scss';
25
23
  composes: toolbar;
26
24
 
27
25
  position: absolute;
@@ -55,7 +53,7 @@
55
53
  }
56
54
  }
57
55
 
58
- :local(.basePaneStructure) > .toolbarFlat {
56
+ .basePaneStructure > .toolbarFlat {
59
57
  padding: 12px 15px;
60
58
  background: rgb(var(--gray-1));
61
59
  border: 1px solid rgb(var(--gray-11) / .05);
@@ -1,38 +1,36 @@
1
- @layer flux-base {
2
- .basePane {
3
- background: rgb(var(--gray-0));
4
- background-clip: padding-box;
5
- border: 1px solid rgb(var(--gray-11) / .05);
6
- border-radius: var(--radius);
7
- }
1
+ .basePane {
2
+ background: rgb(var(--gray-0));
3
+ background-clip: padding-box;
4
+ border: 1px solid rgb(var(--gray-11) / .05);
5
+ border-radius: var(--radius);
6
+ }
8
7
 
9
- [dark] .basePane {
10
- border-color: rgb(var(--gray-3));
11
- }
8
+ [dark] .basePane {
9
+ border-color: rgb(var(--gray-3));
10
+ }
12
11
 
13
- .basePaneLoader {
14
- position: absolute;
15
- display: flex;
16
- inset: 0;
17
- align-items: center;
18
- justify-content: center;
19
- backdrop-filter: blur(2px) saturate(180%);
20
- background: rgb(var(--gray-0) / .75);
21
- border-radius: inherit;
22
- z-index: 100;
23
- }
12
+ .basePaneLoader {
13
+ position: absolute;
14
+ display: flex;
15
+ inset: 0;
16
+ align-items: center;
17
+ justify-content: center;
18
+ backdrop-filter: blur(2px) saturate(180%);
19
+ background: rgb(var(--gray-0) / .75);
20
+ border-radius: inherit;
21
+ z-index: 100;
22
+ }
24
23
 
25
- .basePaneStructure {
26
- composes: basePane;
24
+ .basePaneStructure {
25
+ composes: basePane;
27
26
 
28
- position: relative;
29
- }
27
+ position: relative;
28
+ }
30
29
 
31
- .basePaneStructure > .basePaneStructure {
32
- background: unset;
33
- border: 0;
34
- box-shadow: none;
35
- }
30
+ .basePaneStructure > .basePaneStructure {
31
+ background: unset;
32
+ border: 0;
33
+ box-shadow: none;
36
34
  }
37
35
 
38
36
  .basePane > .basePaneElement,
@@ -1,5 +1,3 @@
1
- @value sliderThumb from './Slider.module.scss';
2
-
3
1
  .coordinatePicker {
4
2
  position: relative;
5
3
  aspect-ratio: 5 / 3;
@@ -10,7 +8,7 @@
10
8
  }
11
9
 
12
10
  .coordinatePickerThumb {
13
- composes: sliderThumb;
11
+ composes: sliderThumb from './Slider.module.scss';
14
12
 
15
13
  z-index: 1;
16
14