@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,132 +1,117 @@
1
1
  @use '$flux/css/mixin';
2
2
 
3
- @value button, buttonIcon, buttonLabel, isSmall, isMedium, isLarge, isXl from './base/Button.module.scss';
4
-
5
3
  .primaryButton {
6
- composes: button;
4
+ composes: button from './base/Button.module.scss';
7
5
 
8
- background: rgb(var(--primary-7));
9
- border-color: rgb(var(--primary-9));
10
- box-shadow: 0 1px 1px rgb(var(--primary-7) / .25);
11
- color: rgb(var(--primary-0));
6
+ background: var(--primary-7);
7
+ border-color: var(--primary-8);
8
+ box-shadow: 0 1px 1px oklch(from var(--primary-7) l c h / .25);
9
+ color: var(--primary-0);
12
10
 
13
11
  @include mixin.hover {
14
- background: rgb(var(--primary-8));
12
+ background: var(--primary-8);
13
+ border-color: var(--primary-9);
15
14
  }
16
15
 
17
16
  &:active {
18
- background: rgb(var(--primary-9));
17
+ background: var(--primary-9);
19
18
  scale: .9875;
20
19
  }
21
20
 
22
21
  .spinner {
23
- --track: rgb(var(--primary-8));
24
- --value: rgb(var(--primary-0));
22
+ --track: var(--primary-8);
23
+ --value: var(--primary-0);
25
24
  }
26
25
  }
27
26
 
28
27
  .primaryButtonIcon {
29
- composes: buttonIcon;
28
+ composes: buttonIcon from './base/Button.module.scss';
30
29
 
31
- color: rgb(var(--primary-0));
30
+ color: var(--primary-0);
32
31
  }
33
32
 
34
33
  .primaryButtonLabel {
35
- composes: buttonLabel;
34
+ composes: buttonLabel from './base/Button.module.scss';
36
35
  }
37
36
 
38
37
  .secondaryButton {
39
- composes: button;
38
+ composes: button from './base/Button.module.scss';
40
39
 
41
- background: rgb(var(--gray-0));
42
- border-color: rgb(var(--gray-3));
40
+ background: var(--gray-0);
41
+ border-color: var(--gray-2);
43
42
  color: var(--foreground);
44
43
 
45
44
  @include mixin.hover {
46
- background: rgb(var(--gray-2));
45
+ background: var(--gray-1);
47
46
  }
48
47
 
49
48
  &:active {
50
- background: rgb(var(--gray-3));
51
- border-color: rgb(var(--gray-4));
49
+ background: var(--gray-2);
50
+ border-color: var(--gray-3);
52
51
  scale: .9875;
53
52
  }
54
53
  }
55
54
 
56
55
  .secondaryButtonIcon {
57
- composes: buttonIcon;
56
+ composes: buttonIcon from './base/Button.module.scss';
58
57
 
59
58
  color: var(--foreground-prominent);
60
59
  }
61
60
 
62
61
  .secondaryButtonLabel {
63
- composes: buttonLabel;
62
+ composes: buttonLabel from './base/Button.module.scss';
64
63
  }
65
64
 
66
65
  .destructiveButton {
67
- composes: button;
66
+ composes: button from './base/Button.module.scss';
68
67
 
69
- background: rgb(var(--gray-0));
70
- border-color: rgb(var(--gray-3));
68
+ background: var(--gray-0);
69
+ border-color: var(--gray-2);
71
70
  color: var(--foreground);
72
71
 
73
72
  @include mixin.hover {
74
- background: rgb(var(--gray-2));
73
+ background: var(--gray-1);
75
74
  }
76
75
 
77
76
  &:active {
78
- background: rgb(var(--gray-3));
79
- border-color: rgb(var(--gray-4));
77
+ background: var(--gray-2);
78
+ border-color: var(--gray-3);
80
79
  scale: .9875;
81
80
  }
82
81
 
83
82
  .spinner {
84
- --value: rgb(var(--danger-7));
83
+ --value: var(--danger-7);
85
84
  }
86
85
  }
87
86
 
88
87
  .destructiveButtonIcon {
89
- composes: buttonIcon;
88
+ composes: buttonIcon from './base/Button.module.scss';
90
89
 
91
- color: rgb(var(--danger-7));
90
+ color: var(--danger-7);
92
91
  }
93
92
 
94
93
  .destructiveButtonLabel {
95
- composes: buttonLabel;
94
+ composes: buttonLabel from './base/Button.module.scss';
96
95
 
97
96
  &:only-child {
98
- color: rgb(var(--danger-7));
99
- }
100
- }
101
-
102
- [dark] .secondaryButton,
103
- [dark] .destructiveButton {
104
- background: rgb(var(--gray-1));
105
- border-color: rgb(var(--gray-3));
106
-
107
- @include mixin.hover {
108
- background: rgb(var(--gray-2));
109
- }
110
-
111
- &:active {
112
- background: rgb(var(--gray-3));
97
+ color: var(--danger-7);
113
98
  }
114
99
  }
115
100
 
116
101
  .secondaryButton,
117
102
  .destructiveButton {
118
- box-shadow: var(--shadow-px), inset 0 -1px rgb(var(--gray-3) / .3);
103
+ box-shadow: var(--shadow-px), inset 0 -1px oklch(from var(--gray-3) l c h / .15);
119
104
  }
120
105
 
121
106
  .linkButton {
122
- composes: button;
107
+ composes: button from './base/Button.module.scss';
123
108
 
124
109
  display: inline-flex;
125
110
  height: unset;
126
111
  padding: 0;
127
112
  border: 0;
128
113
  box-shadow: unset;
129
- color: rgb(var(--primary-7));
114
+ color: var(--primary-7);
130
115
  text-decoration: underline;
131
116
  text-decoration-thickness: 1px;
132
117
  text-underline-offset: 4px;
@@ -134,7 +119,7 @@
134
119
  @include mixin.focus-ring(6px);
135
120
 
136
121
  @include mixin.hover {
137
- color: rgb(var(--primary-10));
122
+ color: var(--primary-10);
138
123
 
139
124
  .linkButtonIcon {
140
125
  transform: translate3d(6px, 0, 0);
@@ -143,9 +128,9 @@
143
128
  }
144
129
 
145
130
  .linkButtonIcon {
146
- composes: buttonIcon;
131
+ composes: buttonIcon from './base/Button.module.scss';
147
132
 
148
- color: rgb(var(--primary-7));
133
+ color: var(--primary-7);
149
134
  transition: inherit;
150
135
  transition-property: transform;
151
136
 
@@ -155,7 +140,7 @@
155
140
  }
156
141
 
157
142
  .linkButtonLabel {
158
- composes: buttonLabel;
143
+ composes: buttonLabel from './base/Button.module.scss';
159
144
  }
160
145
 
161
146
  .publishButton {
@@ -1,7 +1,7 @@
1
- @value basePaneStructure, basePaneLoader from './base/Pane.module.scss';
1
+ @use '$flux/css/mixin';
2
2
 
3
3
  .calendar {
4
- composes: basePaneStructure;
4
+ composes: basePaneStructure from './base/Pane.module.scss';
5
5
 
6
6
  display: flex;
7
7
  flex-flow: column;
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  .calendarLoader {
17
- composes: basePaneLoader;
17
+ composes: basePaneLoader from './base/Pane.module.scss';
18
18
  }
19
19
 
20
20
  .calendarCurrent {
@@ -32,10 +32,8 @@
32
32
  line-height: 1.5em;
33
33
  text-transform: capitalize;
34
34
 
35
- @media (hover: hover) {
36
- &:hover {
37
- color: rgb(var(--primary-7));
38
- }
35
+ @include mixin.hover {
36
+ color: var(--primary-7);
39
37
  }
40
38
  }
41
39
 
@@ -58,12 +56,12 @@
58
56
  gap: 1px;
59
57
  grid-template-columns: repeat(7, 1fr);
60
58
  grid-template-rows: min-content repeat(6, auto);
61
- background: rgb(var(--gray-2));
59
+ background: var(--gray-1);
62
60
  }
63
61
 
64
62
  .calendarCell {
65
63
  padding: 12px 21px;
66
- background: rgb(var(--gray-0));
64
+ background: var(--gray-0);
67
65
  }
68
66
 
69
67
  .calendarDay {
@@ -87,7 +85,7 @@
87
85
  padding-bottom: 39px;
88
86
 
89
87
  &.isDisabled {
90
- background: rgb(var(--gray-1));
88
+ background: oklch(from var(--gray-0) l c h / .5);
91
89
  color: var(--foreground-secondary);
92
90
  pointer-events: none;
93
91
 
@@ -122,9 +120,9 @@
122
120
  margin-left: -9px;
123
121
  margin-right: -9px;
124
122
  padding: 6px 9px;
125
- background: rgb(var(--primary-2));
123
+ background: var(--primary-2);
126
124
  border: 0;
127
- color: rgb(var(--primary-9));
125
+ color: var(--primary-9);
128
126
  cursor: pointer;
129
127
  font-size: 14px;
130
128
  line-height: 1.3em;
@@ -163,9 +161,7 @@
163
161
  }
164
162
  }
165
163
 
166
- @media (hover: hover) {
167
- &:hover {
168
- background: rgb(var(--primary-3));
169
- }
164
+ @include mixin.hover {
165
+ background: var(--primary-3);
170
166
  }
171
167
  }
@@ -7,8 +7,8 @@
7
7
  align-items: center;
8
8
  flex-grow: 0;
9
9
  gap: 9px;
10
- background: rgb(var(--gray-1));
11
- border: 1px solid rgb(var(--gray-3));
10
+ background: var(--gray-1);
11
+ border: 1px solid var(--gray-2);
12
12
  border-radius: 99px;
13
13
  color: var(--foreground);
14
14
  transition: 180ms var(--swift-out);
@@ -21,19 +21,21 @@
21
21
 
22
22
  @media (hover: hover) {
23
23
  &:hover {
24
- background: rgb(var(--gray-2));
24
+ background: var(--gray-2);
25
+ border-color: var(--gray-3);
25
26
  }
26
27
  }
27
28
  }
28
29
 
29
30
  &.isSelected {
30
- background: rgb(var(--primary-2));
31
- border-color: rgb(var(--primary-4));
32
- color: rgb(var(--primary-7));
31
+ background: var(--primary-2);
32
+ border-color: var(--primary-3);
33
+ color: var(--primary-7);
33
34
 
34
35
  @media (hover: hover) {
35
36
  &:hover {
36
- background: rgb(var(--primary-3));
37
+ background: var(--primary-3);
38
+ border-color: var(--primary-4);
37
39
  }
38
40
  }
39
41
  }
@@ -44,15 +46,3 @@
44
46
  white-space: nowrap;
45
47
  }
46
48
  }
47
-
48
- [dark] .chip.isSelected {
49
- background: rgb(var(--primary-11) / .5);
50
- border-color: rgb(var(--primary-11));
51
- color: rgb(var(--primary-5));
52
-
53
- @media (hover: hover) {
54
- &:hover {
55
- background: rgb(var(--primary-10) / .5);
56
- }
57
- }
58
- }
@@ -30,7 +30,7 @@
30
30
 
31
31
  &::after {
32
32
  background: var(--color);
33
- box-shadow: inset 0 0 0 1px rgb(var(--gray-11) / .05);
33
+ box-shadow: inset 0 0 0 1px oklch(from var(--gray-11) l c h / .05);
34
34
  }
35
35
  }
36
36
 
@@ -52,7 +52,7 @@
52
52
 
53
53
  &::after {
54
54
  background: linear-gradient(to top, black, transparent);
55
- box-shadow: inset 0 0 0 1px rgb(var(--gray-11) / .05);
55
+ box-shadow: inset 0 0 0 1px oklch(from var(--gray-11) l c h / .05);
56
56
  }
57
57
  }
58
58
 
@@ -156,8 +156,8 @@
156
156
  .colorSelectCustom {
157
157
  composes: colorSelectItem;
158
158
 
159
- background: rgb(var(--gray-1));
160
- border: 1px solid rgb(var(--gray-3));
159
+ background: var(--gray-1);
160
+ border: 1px solid var(--gray-2);
161
161
  }
162
162
 
163
163
  .colorSelectCustomPicker {
@@ -41,8 +41,8 @@
41
41
  .commentContent {
42
42
  min-width: 0;
43
43
  padding: 12px 18px;
44
- background: linear-gradient(to bottom, rgb(var(--gray-0)), rgb(var(--gray-1)));
45
- border: 1px solid rgb(var(--gray-3));
44
+ background: linear-gradient(to bottom, var(--gray-0), var(--gray-1));
45
+ border: 1px solid var(--gray-2);
46
46
  border-radius: calc(var(--radius) * 2);
47
47
  box-shadow: var(--shadow-xs);
48
48
  }
@@ -52,7 +52,8 @@
52
52
  }
53
53
 
54
54
  .comment.isReceived .commentContent {
55
- background: linear-gradient(to bottom, rgb(var(--gray-1)), rgb(var(--gray-2)));
55
+ background: linear-gradient(to bottom, var(--gray-1), var(--gray-2));
56
+ border-color: var(--gray-3);
56
57
  border-bottom-left-radius: var(--radius);
57
58
  }
58
59
 
@@ -87,37 +88,37 @@
87
88
  }
88
89
 
89
90
  [dark] .commentContent {
90
- background: linear-gradient(to bottom, rgb(var(--gray-1)), rgb(var(--gray-0)));
91
+ background: linear-gradient(to bottom, var(--gray-1), var(--gray-0));
91
92
  }
92
93
 
93
94
  [dark] .comment.isReceived .commentContent {
94
- background: linear-gradient(to bottom, rgb(var(--gray-2)), rgb(var(--gray-1)));
95
+ background: linear-gradient(to bottom, var(--gray-2), var(--gray-1));
95
96
  }
96
97
 
97
98
  @keyframes commentTyping {
98
99
  0%,
99
100
  80%,
100
101
  100% {
101
- background: rgb(var(--gray-3));
102
- box-shadow: -9px 0 rgb(var(--gray-3)), 9px 0 rgb(var(--gray-3));
102
+ background: var(--gray-3);
103
+ box-shadow: -9px 0 var(--gray-3), 9px 0 var(--gray-3);
103
104
  translate: 0 0;
104
105
  }
105
106
 
106
107
  20% {
107
- background: rgb(var(--gray-3));
108
- box-shadow: -9px -3px rgb(var(--gray-5)), 9px 0 rgb(var(--gray-3));
108
+ background: var(--gray-3);
109
+ box-shadow: -9px -4px var(--gray-5), 9px 0 var(--gray-3);
109
110
  translate: 0 0;
110
111
  }
111
112
 
112
113
  40% {
113
- background: rgb(var(--gray-5));
114
- box-shadow: -9px 3px rgb(var(--gray-3)), 9px 3px rgb(var(--gray-3));
115
- translate: 0 -3px;
114
+ background: var(--gray-5);
115
+ box-shadow: -9px 4px var(--gray-3), 9px 4px var(--gray-3);
116
+ translate: 0 -4px;
116
117
  }
117
118
 
118
119
  60% {
119
- background: rgb(var(--gray-3));
120
- box-shadow: -9px 0 rgb(var(--gray-3)), 9px -3px rgb(var(--gray-5));
120
+ background: var(--gray-3);
121
+ box-shadow: -9px 0 var(--gray-3), 9px -4px var(--gray-5);
121
122
  translate: 0 0;
122
123
  }
123
124
  }
@@ -22,8 +22,8 @@
22
22
  display: flex;
23
23
  top: 0;
24
24
  align-items: center;
25
- background: rgb(var(--gray-1));
26
- border-bottom: 1px solid rgb(var(--gray-2));
25
+ background: var(--gray-1);
26
+ border-bottom: 1px solid var(--gray-2);
27
27
  z-index: 1;
28
28
  }
29
29
 
@@ -54,7 +54,7 @@
54
54
  }
55
55
 
56
56
  @include mixin.hover {
57
- color: rgb(var(--primary-7));
57
+ color: var(--primary-7);
58
58
  }
59
59
  }
60
60
 
@@ -75,7 +75,7 @@
75
75
  transition-property: background, border-radius, color, opacity;
76
76
 
77
77
  @include mixin.hover {
78
- background: rgb(var(--gray-2));
78
+ background: var(--gray-2);
79
79
  color: var(--foreground-prominent);
80
80
  }
81
81
 
@@ -89,35 +89,24 @@
89
89
  }
90
90
 
91
91
  &.isSelected {
92
- background: rgb(var(--primary-7));
93
- color: rgb(var(--primary-1));
92
+ background: var(--primary-7);
93
+ color: var(--primary-1);
94
94
  font-weight: 700;
95
95
  }
96
96
 
97
97
  &.isRangeEntry {
98
- background: rgb(var(--primary-3));
98
+ background: var(--primary-3);
99
99
  border-radius: 0;
100
- color: rgb(var(--primary-11));
100
+ color: var(--primary-11);
101
101
  }
102
102
 
103
103
  &.isRangeEnd,
104
104
  &.isRangeStart {
105
- background: rgb(var(--primary-7));
106
- color: rgb(var(--primary-1));
105
+ background: var(--primary-7);
106
+ color: var(--primary-1);
107
107
  font-weight: 700;
108
108
  }
109
109
 
110
- [dark] &.isRangeEntry {
111
- background: rgb(var(--primary-7) / .75);
112
- color: rgb(0 0 0 / .975);
113
- }
114
-
115
- [dark] &.isRangeStart,
116
- [dark] &.isRangeEnd {
117
- background: rgb(var(--primary-7));
118
- color: rgb(0 0 0 / .975);
119
- }
120
-
121
110
  &.isRangeEntry:nth-child(7n + 8),
122
111
  &.isRangeStart {
123
112
  border-top-left-radius: var(--radius);
@@ -131,14 +120,14 @@
131
120
  }
132
121
 
133
122
  &.isSelectionEntry {
134
- background: rgb(var(--gray-2));
123
+ background: var(--gray-2);
135
124
  border-radius: 0;
136
125
  color: var(--foreground-prominent);
137
126
  }
138
127
 
139
128
  &.isSelectionEnd,
140
129
  &.isSelectionStart {
141
- background: rgb(var(--gray-3));
130
+ background: var(--gray-3);
142
131
  font-weight: 700;
143
132
  }
144
133
 
@@ -59,11 +59,11 @@
59
59
  .dividerLine {
60
60
  height: 1px;
61
61
  content: '';
62
- background: rgb(var(--gray-2));
62
+ background: var(--gray-2);
63
63
  }
64
64
 
65
65
  .separator {
66
- background: rgb(var(--gray-2));
66
+ background: var(--gray-2);
67
67
  }
68
68
 
69
69
  .separatorHorizontal {
@@ -1,4 +1,26 @@
1
1
  .dropZone {
2
+ --dz-fill: transparent;
3
+ --dz-stroke: transparent;
4
+ --dz-inset: -1px;
5
+ --dz-radius: var(--radius);
6
+ --dz-height: calc(100% + 2px);
7
+ --dz-width: calc(100% + 2px);
8
+
9
+ &:has(.dropZoneContent > .avatar) {
10
+ --dz-inset: -3px;
11
+ --dz-radius: 999px;
12
+ --dz-height: calc(100% + 6px);
13
+ --dz-width: calc(100% + 6px);
14
+ }
15
+
16
+ &:has(.dropZoneContent > .placeholder) {
17
+ --dz-fill: var(--gray-1);
18
+ --dz-stroke: var(--gray-3);
19
+ }
20
+ }
21
+
22
+ .dropZone {
23
+ position: relative;
2
24
  display: grid;
3
25
  align-items: center;
4
26
  gap: 15px 30px;
@@ -36,44 +58,25 @@
36
58
  }
37
59
 
38
60
  .dropZoneContent {
39
- --dz-fill: transparent;
40
- --dz-stroke: transparent;
41
- --dz-inset: -1px;
42
- --dz-radius: var(--radius);
43
- --dz-height: calc(100% + 2px);
44
- --dz-width: calc(100% + 2px);
45
-
46
61
  position: relative;
47
62
 
48
- &:has(.avatar) {
49
- --dz-inset: -3px;
50
- --dz-radius: 999px;
51
- --dz-height: calc(100% + 6px);
52
- --dz-width: calc(100% + 6px);
53
- }
54
-
55
- &:has(.placeholder) {
56
- --dz-fill: rgb(var(--gray-1));
57
- --dz-stroke: rgb(var(--gray-3));
58
- }
59
-
60
- :local(.avatar) {
63
+ > :local(.avatar) {
61
64
  display: block;
62
65
  }
63
66
 
64
- :local(.placeholder) {
67
+ > :local(.placeholder) {
65
68
  background: transparent;
66
69
  border: 0;
67
70
  }
68
71
  }
69
72
 
70
73
  .isDragging .dropZoneContent {
71
- --dz-stroke: rgb(var(--primary-7));
74
+ --dz-stroke: var(--primary-7);
72
75
  }
73
76
 
74
77
  .isDraggingOver .dropZoneContent {
75
78
  &:has(.placeholder) {
76
- --dz-fill: rgb(var(--primary-2));
79
+ --dz-fill: var(--primary-2);
77
80
  }
78
81
 
79
82
  .dropZoneBorder rect {
@@ -87,7 +90,7 @@
87
90
  inset: var(--dz-inset);
88
91
  align-items: center;
89
92
  justify-content: center;
90
- background: rgb(var(--gray-1) / .84);
93
+ background: oklch(from var(--gray-1) l c h / .84);
91
94
  backdrop-filter: blur(3px) saturate(180%);
92
95
  border-radius: var(--dz-radius);
93
96
  z-index: 100;
@@ -1,7 +1,5 @@
1
1
  @use '$flux/css/mixin';
2
2
 
3
- @value basePane from './base/Pane.module.scss';
4
-
5
3
  .expandable {
6
4
  display: flex;
7
5
  flex-flow: column;
@@ -30,7 +28,7 @@
30
28
  @include mixin.focus-ring();
31
29
 
32
30
  @include mixin.hover {
33
- background: rgb(var(--gray-1));
31
+ background: var(--gray-1);
34
32
  }
35
33
 
36
34
  :is(span) {
@@ -71,15 +69,15 @@
71
69
  padding: 0 21px 21px;
72
70
  }
73
71
 
74
- :local(.basePane) > .expandable {
72
+ .basePane > .expandable {
75
73
  border-radius: inherit;
76
74
  }
77
75
 
78
- :local(.basePane) > .expandable .expandableHeader {
76
+ .basePane > .expandable .expandableHeader {
79
77
  border-radius: inherit;
80
78
  }
81
79
 
82
- :local(.basePane) > .expandableOpened .expandableHeader {
80
+ .basePane > .expandableOpened .expandableHeader {
83
81
  border-bottom-left-radius: 0;
84
82
  border-bottom-right-radius: 0;
85
83
  }
@@ -89,24 +87,24 @@
89
87
  flex-flow: column;
90
88
 
91
89
  .expandable + .expandable {
92
- border-top: 1px solid rgb(var(--gray-2));
90
+ border-top: 1px solid var(--gray-2);
93
91
  }
94
92
 
95
93
  &:not(:first-child) {
96
- border-top: 1px solid rgb(var(--gray-2));
94
+ border-top: 1px solid var(--gray-2);
97
95
  }
98
96
 
99
97
  &:not(:last-child) {
100
- border-bottom: 1px solid rgb(var(--gray-2));
98
+ border-bottom: 1px solid var(--gray-2);
101
99
  }
102
100
  }
103
101
 
104
- :local(.basePane) > .expandableGroup:first-child .expandable:first-child .expandableHeader {
102
+ .basePane > .expandableGroup:first-child .expandable:first-child .expandableHeader {
105
103
  border-top-left-radius: var(--radius);
106
104
  border-top-right-radius: var(--radius);
107
105
  }
108
106
 
109
- :local(.basePane) > .expandableGroup:last-child .expandable:not(.expandableOpened):last-child .expandableHeader {
107
+ .basePane > .expandableGroup:last-child .expandable:not(.expandableOpened):last-child .expandableHeader {
110
108
  border-bottom-left-radius: var(--radius);
111
109
  border-bottom-right-radius: var(--radius);
112
110
  }