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

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 (143) hide show
  1. package/README.md +12 -40
  2. package/dist/component/FluxActions.vue.d.ts.map +1 -1
  3. package/dist/component/FluxDataTable.vue.d.ts +49 -17
  4. package/dist/component/FluxDataTable.vue.d.ts.map +1 -1
  5. package/dist/component/FluxDatePicker.vue.d.ts.map +1 -1
  6. package/dist/component/FluxFilter.vue.d.ts.map +1 -1
  7. package/dist/component/FluxFlyout.vue.d.ts.map +1 -1
  8. package/dist/component/FluxFormDateInput.vue.d.ts.map +1 -1
  9. package/dist/component/FluxFormDateRangeInput.vue.d.ts.map +1 -1
  10. package/dist/component/FluxFormDateTimeInput.vue.d.ts.map +1 -1
  11. package/dist/component/FluxFormInput.vue.d.ts +1 -0
  12. package/dist/component/FluxFormInput.vue.d.ts.map +1 -1
  13. package/dist/component/FluxFormInputGroup.vue.d.ts +1 -0
  14. package/dist/component/FluxFormInputGroup.vue.d.ts.map +1 -1
  15. package/dist/component/FluxFormTimeZonePicker.vue.d.ts.map +1 -1
  16. package/dist/component/FluxMenuItem.vue.d.ts.map +1 -1
  17. package/dist/component/FluxOverlayProvider.vue.d.ts +3 -0
  18. package/dist/component/FluxOverlayProvider.vue.d.ts.map +1 -0
  19. package/dist/component/FluxPagination.vue.d.ts +1 -1
  20. package/dist/component/FluxPagination.vue.d.ts.map +1 -1
  21. package/dist/component/FluxPaginationBar.vue.d.ts +1 -1
  22. package/dist/component/FluxPaginationBar.vue.d.ts.map +1 -1
  23. package/dist/component/FluxPaginationButton.vue.d.ts +30 -0
  24. package/dist/component/FluxPaginationButton.vue.d.ts.map +1 -0
  25. package/dist/component/FluxPrompt.vue.d.ts +2 -0
  26. package/dist/component/FluxPrompt.vue.d.ts.map +1 -1
  27. package/dist/component/FluxRoot.vue.d.ts.map +1 -1
  28. package/dist/component/FluxStatistic.vue.d.ts +3 -1
  29. package/dist/component/FluxStatistic.vue.d.ts.map +1 -1
  30. package/dist/component/FluxTabBar.vue.d.ts.map +1 -1
  31. package/dist/component/FluxTabBarItem.vue.d.ts.map +1 -1
  32. package/dist/component/FluxTable.vue.d.ts +14 -8
  33. package/dist/component/FluxTable.vue.d.ts.map +1 -1
  34. package/dist/component/FluxTooltip.vue.d.ts.map +1 -1
  35. package/dist/component/FluxTooltipProvider.vue.d.ts.map +1 -1
  36. package/dist/component/index.d.ts +1 -0
  37. package/dist/component/index.d.ts.map +1 -1
  38. package/dist/component/primitive/AnchorPopup.vue.d.ts.map +1 -1
  39. package/dist/component/primitive/SelectBase.vue.d.ts +2 -0
  40. package/dist/component/primitive/SelectBase.vue.d.ts.map +1 -1
  41. package/dist/composable/index.d.ts +1 -0
  42. package/dist/composable/index.d.ts.map +1 -1
  43. package/dist/composable/private/useFormSelect.d.ts +2 -2
  44. package/dist/composable/private/useFormSelect.d.ts.map +1 -1
  45. package/dist/composable/useFlyoutInjection.d.ts +1 -5
  46. package/dist/composable/useFlyoutInjection.d.ts.map +1 -1
  47. package/dist/composable/useTableInjection.d.ts +1 -6
  48. package/dist/composable/useTableInjection.d.ts.map +1 -1
  49. package/dist/composable/useTooltipInjection.d.ts +2 -0
  50. package/dist/composable/useTooltipInjection.d.ts.map +1 -0
  51. package/dist/data/di.d.ts +4 -0
  52. package/dist/data/di.d.ts.map +1 -1
  53. package/dist/data/i18n.d.ts +1 -1
  54. package/dist/data/store.d.ts +2 -2
  55. package/dist/data/store.d.ts.map +1 -1
  56. package/dist/index.css +5814 -0
  57. package/dist/index.d.ts +1 -1
  58. package/dist/index.d.ts.map +1 -1
  59. package/dist/index.js +14686 -0
  60. package/dist/index.js.map +1 -0
  61. package/dist/util/createDialogRenderer.d.ts +1 -1
  62. package/dist/util/createDialogRenderer.d.ts.map +1 -1
  63. package/package.json +21 -22
  64. package/src/component/FluxDataTable.vue +68 -16
  65. package/src/component/FluxDatePicker.vue +5 -1
  66. package/src/component/FluxFlyout.vue +2 -1
  67. package/src/component/FluxFormInput.vue +3 -1
  68. package/src/component/FluxFormInputGroup.vue +2 -0
  69. package/src/component/FluxFormSelect.vue +1 -1
  70. package/src/component/FluxFormTimeZonePicker.vue +5 -0
  71. package/src/component/FluxGallery.vue +2 -2
  72. package/src/component/FluxMenuItem.vue +1 -0
  73. package/src/component/FluxOverlayProvider.vue +39 -0
  74. package/src/component/FluxPagination.vue +16 -14
  75. package/src/component/FluxPaginationBar.vue +27 -38
  76. package/src/component/FluxPaginationButton.vue +39 -0
  77. package/src/component/FluxProgressBar.vue +1 -1
  78. package/src/component/FluxRoot.vue +3 -26
  79. package/src/component/FluxStatistic.vue +13 -2
  80. package/src/component/FluxTabBar.vue +21 -16
  81. package/src/component/FluxTable.vue +25 -4
  82. package/src/component/FluxTooltip.vue +2 -0
  83. package/src/component/FluxTooltipProvider.vue +7 -3
  84. package/src/component/index.ts +1 -0
  85. package/src/component/primitive/AnchorPopup.vue +5 -3
  86. package/src/composable/index.ts +1 -0
  87. package/src/composable/private/useFormSelect.ts +2 -2
  88. package/src/composable/useTooltipInjection.ts +8 -0
  89. package/src/css/base.scss +6 -3
  90. package/src/css/component/Action.module.scss +14 -14
  91. package/src/css/component/Avatar.module.scss +14 -14
  92. package/src/css/component/Badge.module.scss +14 -14
  93. package/src/css/component/Button.module.scss +39 -54
  94. package/src/css/component/Calendar.module.scss +12 -16
  95. package/src/css/component/Chip.module.scss +9 -19
  96. package/src/css/component/Color.module.scss +4 -4
  97. package/src/css/component/Comment.module.scss +15 -14
  98. package/src/css/component/DatePicker.module.scss +12 -23
  99. package/src/css/component/Divider.module.scss +2 -2
  100. package/src/css/component/DropZone.module.scss +27 -24
  101. package/src/css/component/Expandable.module.scss +9 -11
  102. package/src/css/component/Filter.module.scss +3 -5
  103. package/src/css/component/Form.module.scss +68 -49
  104. package/src/css/component/Gallery.module.scss +14 -6
  105. package/src/css/component/Icon.module.scss +76 -79
  106. package/src/css/component/Info.module.scss +1 -1
  107. package/src/css/component/Layout.module.scss +41 -45
  108. package/src/css/component/Legend.module.scss +2 -4
  109. package/src/css/component/Menu.module.scss +28 -49
  110. package/src/css/component/Notice.module.scss +45 -47
  111. package/src/css/component/Overlay.module.scss +56 -4
  112. package/src/css/component/Pagination.module.scss +70 -33
  113. package/src/css/component/Pane.module.scss +62 -67
  114. package/src/css/component/Placeholder.module.scss +4 -4
  115. package/src/css/component/Progress.module.scss +18 -9
  116. package/src/css/component/Remove.module.scss +4 -4
  117. package/src/css/component/SegmentedControl.module.scss +6 -6
  118. package/src/css/component/Snackbar.module.scss +20 -17
  119. package/src/css/component/Spinner.module.scss +2 -2
  120. package/src/css/component/Statistic.module.scss +25 -17
  121. package/src/css/component/Stepper.module.scss +12 -14
  122. package/src/css/component/Tab.module.scss +8 -7
  123. package/src/css/component/Table.module.scss +79 -29
  124. package/src/css/component/Timeline.module.scss +14 -18
  125. package/src/css/component/Toolbar.module.scss +9 -7
  126. package/src/css/component/Tooltip.module.scss +3 -2
  127. package/src/css/component/Transition.module.scss +1 -1
  128. package/src/css/component/Visual.module.scss +3 -3
  129. package/src/css/component/base/Pane.module.scss +25 -31
  130. package/src/css/component/primitive/CoordinatePicker.module.scss +3 -5
  131. package/src/css/component/primitive/Slider.module.scss +9 -14
  132. package/src/css/mixin/focus-ring.scss +2 -2
  133. package/src/css/typography.scss +3 -3
  134. package/src/css/variables.scss +178 -183
  135. package/src/data/di.ts +5 -0
  136. package/src/data/i18n.ts +1 -1
  137. package/src/data/iconRegistry.ts +1 -1
  138. package/src/data/store.ts +6 -4
  139. package/src/index.ts +1 -0
  140. package/src/util/createDialogRenderer.ts +33 -18
  141. package/dist/flux.css +0 -1
  142. package/dist/flux.js +0 -11402
  143. package/dist/flux.js.map +0 -1
@@ -1,5 +1,3 @@
1
- @value sparklesContainer, sparklesContainerActive, sparklesParticles from './base/Effect.module.scss';
2
-
3
1
  .stepperStep {
4
2
  position: relative;
5
3
  }
@@ -31,18 +29,18 @@
31
29
 
32
30
  &::before {
33
31
  width: var(--max);
34
- background: rgb(var(--gray-2));
32
+ background: var(--gray-2);
35
33
  }
36
34
 
37
35
  &::after {
38
36
  width: calc(min(1, var(--progress)) * var(--max));
39
- background: rgb(var(--primary-7));
37
+ background: var(--primary-7);
40
38
  transition: width 300ms var(--swift-out);
41
39
  }
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;
@@ -50,7 +48,7 @@
50
48
  width: 33px;
51
49
  align-items: center;
52
50
  justify-content: center;
53
- background: rgb(var(--gray-3));
51
+ background: var(--gray-3);
54
52
  border: 0;
55
53
  border-radius: 99px;
56
54
  color: var(--foreground);
@@ -74,20 +72,20 @@
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
- background: rgb(var(--primary-7));
81
- border-color: rgb(var(--primary-7));
82
- color: rgb(var(--primary-0));
78
+ background: var(--primary-7);
79
+ border-color: var(--primary-7);
80
+ color: var(--primary-0);
83
81
  }
84
82
 
85
83
  .stepperStepsItemCurrent {
86
84
  composes: stepperStepsItem;
87
85
 
88
- background: rgb(var(--gray-1));
86
+ background: var(--gray-1);
89
87
  color: var(--foreground-prominent);
90
- outline-color: rgb(var(--primary-7));
88
+ outline-color: var(--primary-7);
91
89
  outline-width: 2px;
92
90
  transition-delay: 75ms;
93
91
  }
@@ -95,9 +93,9 @@
95
93
  .stepperStepsItemIdle {
96
94
  composes: stepperStepsItem;
97
95
 
98
- outline-color: rgb(var(--gray-0));
96
+ outline-color: var(--gray-0);
99
97
  }
100
98
 
101
99
  .stepperStepsItemParticles {
102
- composes: sparklesParticles;
100
+ composes: sparklesParticles from './base/Effect.module.scss';
103
101
  }
@@ -8,7 +8,7 @@
8
8
  --tab-padding: 12px;
9
9
 
10
10
  position: relative;
11
- box-shadow: inset 0 -2px rgb(var(--gray-2));
11
+ box-shadow: inset 0 -2px var(--gray-2);
12
12
  z-index: 0;
13
13
  }
14
14
 
@@ -31,7 +31,7 @@
31
31
 
32
32
  @media (hover: hover) {
33
33
  &:hover {
34
- background: rgb(var(--gray-2));
34
+ background: var(--gray-2);
35
35
  }
36
36
  }
37
37
  }
@@ -60,7 +60,8 @@
60
60
  padding-right: 3px;
61
61
  align-items: flex-end;
62
62
  gap: 30px;
63
- overflow: hidden;
63
+ overflow: auto;
64
+ scrollbar-width: none;
64
65
 
65
66
  -webkit-mask-image: var(--mask);
66
67
  mask-image: var(--mask);
@@ -112,7 +113,7 @@
112
113
  .tabBarItemActive {
113
114
  composes: tabBarItem;
114
115
 
115
- border-color: rgb(var(--primary-7));
116
+ border-color: var(--primary-7);
116
117
  color: var(--foreground-prominent);
117
118
  }
118
119
 
@@ -132,14 +133,14 @@
132
133
 
133
134
  padding-left: 21px;
134
135
  padding-right: 21px;
135
- background: rgb(var(--gray-1));
136
+ background: var(--gray-1);
136
137
 
137
138
  &:first-child {
138
139
  border-radius: var(--radius) var(--radius) 0 0;
139
140
  }
140
141
 
141
142
  &:not(:first-child) {
142
- border-top: 1px solid rgb(var(--gray-2));
143
+ border-top: 1px solid var(--gray-2);
143
144
  }
144
145
  }
145
146
 
@@ -154,7 +155,7 @@
154
155
 
155
156
  .paneHeader:has(+ .tabBar),
156
157
  .paneHeader:has(+ .tabs > .tabBar) {
157
- background: rgb(var(--gray-1));
158
+ background: var(--gray-1);
158
159
  }
159
160
 
160
161
  .basePaneStructure > .tabs > .tabsBar {
@@ -1,9 +1,10 @@
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;
5
+ display: flex;
6
+ container: table / inline-size;
7
+ flex-flow: column;
7
8
  overflow: auto;
8
9
 
9
10
  :is(caption) {
@@ -14,14 +15,22 @@
14
15
  }
15
16
 
16
17
  .tableBase {
17
- min-width: 100%;
18
+ min-width: 100cqw;
18
19
  bottom: 0;
19
20
  border-spacing: 0;
20
21
  text-align: left;
22
+
23
+ &:has(.tableFill) {
24
+ flex-grow: 1;
25
+ }
26
+
27
+ &:has(.tableFill):has(.tablePagination) {
28
+ margin-bottom: -1px;
29
+ }
21
30
  }
22
31
 
23
32
  .tableLoader {
24
- composes: basePaneLoader;
33
+ composes: basePaneLoader from './base/Pane.module.scss';
25
34
  }
26
35
 
27
36
  .tableRow {
@@ -33,7 +42,7 @@
33
42
  .tableCell {
34
43
  height: 0;
35
44
  padding: 0;
36
- border: 0 solid rgb(var(--gray-2));
45
+ border: 0 solid var(--gray-2);
37
46
 
38
47
  @-moz-document url-prefix() {
39
48
  height: 100%;
@@ -50,7 +59,7 @@
50
59
  .tableHeader {
51
60
  composes: tableCell;
52
61
 
53
- border-bottom: 2px solid rgb(var(--gray-2));
62
+ border-bottom: 2px solid var(--gray-2);
54
63
  color: var(--foreground-prominent);
55
64
 
56
65
  &.isShrinking {
@@ -61,7 +70,8 @@
61
70
  &.isSticky {
62
71
  position: sticky;
63
72
  top: 0;
64
- background: rgb(var(--gray-1));
73
+ background: var(--gray-1);
74
+ z-index: 1;
65
75
  }
66
76
  }
67
77
 
@@ -73,18 +83,18 @@
73
83
  }
74
84
 
75
85
  tbody .tableRow:nth-child(even) .tableCell.isStriped {
76
- background: rgb(var(--gray-2));
86
+ background: oklch(from var(--gray-1) l c h / .5);
77
87
  }
78
88
 
79
89
  @media (hover: hover) {
80
90
  tbody .tableRow:hover .tableCell.isHoverable,
81
91
  tbody .tableRow:has(:focus-visible) .tableCell.isHoverable {
82
- background: rgb(var(--gray-1));
92
+ background: var(--gray-1);
83
93
  }
84
94
  }
85
95
 
86
96
  tfoot .tableCell {
87
- border-top: 1px solid rgb(var(--gray-2));
97
+ border-top: 1px solid var(--gray-2);
88
98
  }
89
99
 
90
100
  .tableCell + .tableCell.isBordered {
@@ -97,20 +107,60 @@ tfoot .tableCell {
97
107
 
98
108
  .tableActions {
99
109
  margin: -3px 0 -3px -3px;
110
+ }
100
111
 
101
- .action {
102
- @media (hover: hover) {
103
- &:hover {
104
- background: rgb(var(--gray-3));
105
- }
106
- }
112
+ .tableFill {
113
+ pointer-events: none;
107
114
 
108
- &:active {
109
- background: rgb(var(--gray-4));
110
- }
115
+ .tableCell {
116
+ height: 100%;
117
+ }
118
+
119
+ .tableCellContent {
120
+ padding: 0;
121
+ }
122
+ }
123
+
124
+ .tableBar {
125
+ composes: tableCell;
126
+
127
+ position: relative;
128
+ background: var(--gray-1);
129
+ box-shadow: 0 0 24px var(--gray-1),
130
+ 0 0 18px var(--gray-1),
131
+ 0 0 12px var(--gray-1),
132
+ 0 0 9px var(--gray-1),
133
+ 0 0 6px var(--gray-1),
134
+ 0 0 3px var(--gray-1);
135
+ z-index: 2;
136
+ }
137
+
138
+ .tableBarContent {
139
+ composes: tableCellContent;
140
+
141
+ position: sticky;
142
+ left: 0;
143
+ max-width: 100cqw;
144
+ flex-flow: row nowrap;
145
+ gap: 15px;
146
+
147
+ > :local(.formInput) {
148
+ max-width: 300px;
149
+ min-width: 210px;
111
150
  }
112
151
  }
113
152
 
153
+ .tablePagination {
154
+ position: sticky;
155
+ bottom: 0;
156
+ margin-top: auto;
157
+ margin-bottom: -1px;
158
+ background: var(--gray-0);
159
+ border-top: 1px solid var(--gray-2);
160
+ translate: 0 -1px;
161
+ z-index: 100;
162
+ }
163
+
114
164
  .tableSort {
115
165
  display: flex;
116
166
  height: 24px;
@@ -128,37 +178,37 @@ tfoot .tableCell {
128
178
 
129
179
  @media (hover: hover) {
130
180
  &:hover {
131
- background: rgb(var(--gray-2));
181
+ background: var(--gray-2);
132
182
  color: var(--foreground);
133
183
  }
134
184
  }
135
185
  }
136
186
 
137
- :local(.basePaneStructure) > .table .tableCell:first-child .tableCellContent {
187
+ .basePaneStructure > .table .tableCell:first-child .tableCellContent {
138
188
  padding-left: 21px;
139
189
  }
140
190
 
141
- :local(.basePaneStructure) > .table .tableCell:last-child .tableCellContent {
191
+ .basePaneStructure > .table .tableCell:last-child .tableCellContent {
142
192
  padding-right: 21px;
143
193
  }
144
194
 
145
- :local(.basePaneStructure) > .table .tableActions {
195
+ .basePaneStructure > .table .tableActions {
146
196
  margin-right: -3px;
147
197
  }
148
198
 
149
- :local(.basePaneStructure) > .table :is(caption) {
199
+ .basePaneStructure > .table :is(caption) {
150
200
  padding: 12px 21px;
151
- border-top: 1px solid rgb(var(--gray-3));
201
+ border-top: 1px solid var(--gray-3);
152
202
  }
153
203
 
154
- :local(.basePaneStructure) > .table .tableLoader {
204
+ .basePaneStructure > .table .tableLoader {
155
205
  border-radius: var(--radius);
156
206
  }
157
207
 
158
- :not(:local(.basePaneStructure)) > .table .tableCell:not(.isBordered):first-child .tableCellContent {
208
+ :not(.basePaneStructure) > .table .tableCell:not(.isBordered):first-child .tableCellContent {
159
209
  padding-left: 0;
160
210
  }
161
211
 
162
- :not(:local(.basePaneStructure)) > .table .tableCell:not(.isBordered):last-child .tableCellContent {
212
+ :not(.basePaneStructure) > .table .tableCell:not(.isBordered):last-child .tableCellContent {
163
213
  padding-right: 0;
164
214
  }
@@ -18,7 +18,7 @@
18
18
  align-items: center;
19
19
  justify-content: center;
20
20
  border-radius: 99px;
21
- outline: 6px solid rgb(var(--gray-0));
21
+ outline: 6px solid var(--gray-0);
22
22
  }
23
23
 
24
24
  .timelineItemIcon {
@@ -41,7 +41,7 @@
41
41
  width: 30px;
42
42
  align-items: center;
43
43
  justify-content: center;
44
- background: rgb(var(--gray-0));
44
+ background: var(--gray-0);
45
45
  border-radius: 99px;
46
46
  }
47
47
 
@@ -83,7 +83,7 @@
83
83
  left: 20px;
84
84
  height: 100%;
85
85
  width: 2px;
86
- background: rgb(var(--gray-2));
86
+ background: var(--gray-2);
87
87
  }
88
88
 
89
89
  .timeline .timelineItem:last-of-type .timelineItemLine {
@@ -99,7 +99,7 @@
99
99
  }
100
100
 
101
101
  .timelineItemIcon {
102
- background: rgb(var(--gray-2));
102
+ background: var(--gray-2);
103
103
  }
104
104
  }
105
105
 
@@ -108,11 +108,11 @@
108
108
 
109
109
  .timelineItemIcon,
110
110
  .timelineItemPhotoIcon {
111
- color: rgb(var(--primary-7));
111
+ color: var(--primary-7);
112
112
  }
113
113
 
114
114
  .timelineItemIcon {
115
- background: rgb(var(--primary-2));
115
+ background: var(--primary-2);
116
116
  }
117
117
  }
118
118
 
@@ -121,11 +121,11 @@
121
121
 
122
122
  .timelineItemIcon,
123
123
  .timelineItemPhotoIcon {
124
- color: rgb(var(--danger-7));
124
+ color: var(--danger-7);
125
125
  }
126
126
 
127
127
  .timelineItemIcon {
128
- background: rgb(var(--danger-2));
128
+ background: var(--danger-2);
129
129
  }
130
130
  }
131
131
 
@@ -134,11 +134,11 @@
134
134
 
135
135
  .timelineItemIcon,
136
136
  .timelineItemPhotoIcon {
137
- color: rgb(var(--info-7));
137
+ color: var(--info-7);
138
138
  }
139
139
 
140
140
  .timelineItemIcon {
141
- background: rgb(var(--info-2));
141
+ background: var(--info-2);
142
142
  }
143
143
  }
144
144
 
@@ -147,11 +147,11 @@
147
147
 
148
148
  .timelineItemIcon,
149
149
  .timelineItemPhotoIcon {
150
- color: rgb(var(--success-7));
150
+ color: var(--success-7);
151
151
  }
152
152
 
153
153
  .timelineItemIcon {
154
- background: rgb(var(--success-2));
154
+ background: var(--success-2);
155
155
  }
156
156
  }
157
157
 
@@ -160,14 +160,10 @@
160
160
 
161
161
  .timelineItemIcon,
162
162
  .timelineItemPhotoIcon {
163
- color: rgb(var(--warning-7));
163
+ color: var(--warning-7);
164
164
  }
165
165
 
166
166
  .timelineItemIcon {
167
- background: rgb(var(--warning-2));
167
+ background: var(--warning-2);
168
168
  }
169
169
  }
170
-
171
- [dark] .timelineItemIcon {
172
- background: rgb(var(--gray-2));
173
- }
@@ -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,10 +53,10 @@
55
53
  }
56
54
  }
57
55
 
58
- :local(.basePaneStructure) > .toolbarFlat {
56
+ .basePaneStructure > .toolbarFlat {
59
57
  padding: 12px 15px;
60
- background: rgb(var(--gray-1));
61
- border: 1px solid rgb(var(--gray-11) / .05);
58
+ background: var(--gray-1);
59
+ border: 1px solid var(--gray-2);
62
60
  border-left: 0;
63
61
  border-right: 0;
64
62
  border-radius: 0;
@@ -75,6 +73,10 @@
75
73
  border-bottom-left-radius: var(--radius);
76
74
  border-bottom-right-radius: var(--radius);
77
75
  }
76
+
77
+ :local(.separator) {
78
+ background: var(--gray-2);
79
+ }
78
80
  }
79
81
 
80
82
  .paneHeader + .toolbarFlat {
@@ -6,10 +6,11 @@
6
6
  max-width: 360px;
7
7
  padding: 9px 15px;
8
8
  flex-flow: column;
9
- background: rgb(var(--gray-11) / .9);
9
+ background: oklch(from var(--gray-11) l c h / .9);
10
10
  backdrop-filter: blur(6px) saturate(180%);
11
11
  border-radius: var(--radius);
12
- color: rgb(var(--gray-0));
12
+ color: var(--gray-0);
13
+ font-size: 14px;
13
14
  font-variant-numeric: tabular-nums;
14
15
  pointer-events: none;
15
16
  translate: calc(var(--x) * 1px) calc(var(--y) * 1px);
@@ -32,7 +32,7 @@
32
32
 
33
33
  .fadeTransitionEnterActive,
34
34
  .fadeTransitionLeaveActive {
35
- transition: opacity 150ms var(--swift-out) !important;
35
+ transition: opacity 180ms var(--swift-out) !important;
36
36
  }
37
37
 
38
38
  .fadeTransitionEnterFrom,
@@ -20,7 +20,7 @@
20
20
  .dotPattern {
21
21
  composes: fillVisual;
22
22
 
23
- fill: rgb(var(--gray-4));
23
+ fill: var(--gray-4);
24
24
  pointer-events: none;
25
25
  }
26
26
 
@@ -33,8 +33,8 @@
33
33
  .gridPattern {
34
34
  composes: fillVisual;
35
35
 
36
- fill: rgb(var(--gray-2));
37
- stroke: rgb(var(--gray-4));
36
+ fill: var(--gray-2);
37
+ stroke: var(--gray-4);
38
38
  pointer-events: none;
39
39
  }
40
40
 
@@ -1,38 +1,32 @@
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
- }
8
-
9
- [dark] .basePane {
10
- border-color: rgb(var(--gray-3));
11
- }
1
+ .basePane {
2
+ background: var(--gray-0);
3
+ background-clip: padding-box;
4
+ border: 1px solid oklch(from var(--gray-11) l c h / .05);
5
+ border-radius: var(--radius);
6
+ }
12
7
 
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
- }
8
+ .basePaneLoader {
9
+ position: absolute;
10
+ display: flex;
11
+ inset: 0;
12
+ align-items: center;
13
+ justify-content: center;
14
+ backdrop-filter: blur(2px) saturate(180%);
15
+ background: oklch(from var(--gray-0) l c h / .75);
16
+ border-radius: inherit;
17
+ z-index: 100;
18
+ }
24
19
 
25
- .basePaneStructure {
26
- composes: basePane;
20
+ .basePaneStructure {
21
+ composes: basePane;
27
22
 
28
- position: relative;
29
- }
23
+ position: relative;
24
+ }
30
25
 
31
- .basePaneStructure > .basePaneStructure {
32
- background: unset;
33
- border: 0;
34
- box-shadow: none;
35
- }
26
+ .basePaneStructure > .basePaneStructure {
27
+ background: unset;
28
+ border: 0;
29
+ box-shadow: none;
36
30
  }
37
31
 
38
32
  .basePane > .basePaneElement,
@@ -1,16 +1,14 @@
1
- @value sliderThumb from './Slider.module.scss';
2
-
3
1
  .coordinatePicker {
4
2
  position: relative;
5
3
  aspect-ratio: 5 / 3;
6
- background: rgb(var(--gray-1));
7
- border: 1px solid rgb(var(--gray-11) / .05);
4
+ background: var(--gray-1);
5
+ border: 1px solid oklch(from var(--gray-11) l c h / .05);
8
6
  border-radius: calc(var(--radius) / 2);
9
7
  z-index: 0;
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
 
@@ -23,9 +23,9 @@
23
23
  height: 24px;
24
24
  width: 24px;
25
25
  padding: 0;
26
- background: rgb(var(--gray-0));
26
+ background: var(--gray-0);
27
27
  background-clip: padding-box;
28
- border: 1px solid rgb(var(--gray-11) / .05);
28
+ border: 1px solid oklch(from var(--gray-11) l c h / .05);
29
29
  border-radius: 99px;
30
30
  box-shadow: var(--shadow-sm);
31
31
  cursor: grab;
@@ -36,12 +36,12 @@
36
36
 
37
37
  @media (hover: hover) {
38
38
  &:hover {
39
- background-color: rgb(var(--gray-2));
39
+ background-color: var(--gray-1);
40
40
  }
41
41
  }
42
42
 
43
43
  &.isDisabled {
44
- background-color: rgb(var(--gray-1));
44
+ background-color: var(--gray-1);
45
45
  box-shadow: none;
46
46
  pointer-events: none;
47
47
  }
@@ -52,17 +52,12 @@
52
52
  }
53
53
  }
54
54
 
55
- [dark] .sliderThumb {
56
- background-color: rgb(var(--gray-1));
57
- border-color: rgb(var(--gray-11) / .4);
58
- }
59
-
60
55
  .sliderTrack {
61
56
  position: relative;
62
57
  height: 12px;
63
- background: rgb(var(--gray-2));
58
+ background: var(--gray-2);
64
59
  border-radius: calc(var(--radius) / 2);
65
- box-shadow: inset 0 0 0 1px rgb(var(--gray-3));
60
+ box-shadow: inset 0 0 0 1px var(--gray-3);
66
61
  }
67
62
 
68
63
  .sliderTrackValue {
@@ -70,12 +65,12 @@
70
65
  display: block;
71
66
  top: 0;
72
67
  height: inherit;
73
- background: rgb(var(--primary-7));
68
+ background: var(--primary-7);
74
69
  border-radius: inherit;
75
70
  }
76
71
 
77
72
  .slider.isDisabled .sliderTrackValue {
78
- background: rgb(var(--gray-4));
73
+ background: var(--gray-4);
79
74
  }
80
75
 
81
76
  .tick {
@@ -84,7 +79,7 @@
84
79
  bottom: 0;
85
80
  height: 9px;
86
81
  width: 2px;
87
- background: rgb(var(--gray-4));
82
+ background: var(--gray-4);
88
83
  border-radius: 99px;
89
84
  color: var(--foreground-prominent);
90
85
  font-size: 10px;