@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,59 +1,96 @@
1
1
  @use '$flux/css/mixin';
2
2
 
3
3
  .pagination {
4
- z-index: 0;
4
+ display: flex;
5
+ gap: 1px;
6
+ }
7
+
8
+ .paginationButton {
9
+ composes: secondaryButton from './Button.module.scss';
10
+
11
+ height: 36px;
12
+ min-width: 36px;
13
+ padding: 0 6px;
14
+ background: unset;
5
15
 
6
- .button {
7
- min-width: 40px;
16
+ &:local(.secondaryButton) {
17
+ border-color: transparent;
18
+ box-shadow: none;
8
19
  }
20
+ }
9
21
 
10
- .buttonLabel {
11
- margin-left: 0;
12
- margin-right: 0;
13
- min-width: 18px;
22
+ .paginationButtonArrow {
23
+ &:local(.secondaryButton) {
24
+ border-color: var(--gray-2);
25
+ }
14
26
 
15
- &:nth-child(2) {
16
- min-width: unset;
17
- }
27
+ &:first-child {
28
+ margin-right: 6px;
18
29
  }
19
30
 
20
- .primaryButton {
21
- z-index: 1;
31
+ &:last-child {
32
+ margin-left: 6px;
22
33
  }
23
34
  }
24
35
 
25
- .paginationCurrent {
26
- gap: 3px;
27
- font-variant-numeric: tabular-nums;
36
+ .paginationButton.paginationButtonCurrent {
37
+ background: var(--primary-1);
38
+ border-color: var(--primary-3);
39
+ }
40
+
41
+ .paginationButtonSpacer {
42
+ pointer-events: none;
43
+ }
44
+
45
+ .paginationButtonIcon {
46
+ composes: secondaryButtonIcon from './Button.module.scss';
47
+
48
+ font-size: 16px;
49
+ }
50
+
51
+ .paginationButtonLabel {
52
+ composes: secondaryButtonLabel from './Button.module.scss';
53
+
54
+ margin: 0;
55
+ min-width: unset;
56
+ font-size: 12px;
28
57
  }
29
58
 
30
59
  .paginationBar {
60
+ display: flex;
31
61
  align-items: center;
32
- flex-direction: column;
62
+ flex-flow: row;
63
+ }
33
64
 
34
- .formInputGroup {
35
- max-width: max-content;
36
- }
65
+ .paginationBarLimit {
66
+ display: flex;
67
+ align-items: center;
68
+ flex-flow: row;
69
+ gap: 15px;
70
+ }
37
71
 
38
- .formSelect {
39
- width: 78px;
40
- }
72
+ .paginationBarLimitDisplayingOf {
73
+ font-size: 12px;
74
+ font-weight: 600;
75
+ }
41
76
 
42
- .pagination .button:first-child {
43
- border-radius: 0;
44
- }
77
+ .paginationBarLimitSelect {
78
+ min-height: 36px;
79
+ width: 120px;
45
80
 
46
- @include mixin.breakpoint-up(lg) {
47
- flex-direction: row;
81
+ .menuItem {
82
+ min-height: 36px;
48
83
  }
49
- }
50
84
 
51
- @include mixin.breakpoint-down(md) {
52
- .paginationBarSpacer {
53
- display: none;
85
+ .menuItemLabel {
86
+ font-size: 12px;
87
+ font-weight: 600;
54
88
  }
55
89
  }
56
90
 
57
- .paneFooter > .paginationBar {
58
- flex-grow: 1;
91
+ @include mixin.breakpoint-down(sm) {
92
+ .paginationBar {
93
+ flex-flow: column;
94
+ gap: 15px;
95
+ }
59
96
  }
@@ -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: 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: 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: var(--gray-1);
79
+ border-top: 1px solid 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 {
@@ -93,9 +88,9 @@
93
88
  top: 15px;
94
89
  right: 15px;
95
90
  padding: 6px 9px;
96
- background: rgb(var(--gray-10));
91
+ background: var(--gray-10);
97
92
  border-radius: calc(var(--radius) / 2);
98
- color: rgb(var(--gray-0));
93
+ color: var(--gray-0);
99
94
  font-size: 11px;
100
95
  font-weight: 700;
101
96
  letter-spacing: 1px;
@@ -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
 
@@ -155,7 +150,7 @@
155
150
  }
156
151
 
157
152
  .paneGroup + .paneGroup {
158
- border-top: 1px solid rgb(var(--gray-11) / .05);
153
+ border-top: 1px solid oklch(from var(--gray-11) l c h / .05);
159
154
  }
160
155
 
161
156
  .paneIllustration {
@@ -7,8 +7,8 @@
7
7
  flex: 1 0 auto;
8
8
  flex-flow: column;
9
9
  justify-content: center;
10
- background: rgb(var(--gray-1));
11
- border: 1px dashed rgb(var(--gray-3));
10
+ background: var(--gray-1);
11
+ border: 2px dashed var(--gray-3);
12
12
  border-radius: var(--radius);
13
13
  text-align: center;
14
14
  user-select: none;
@@ -17,7 +17,7 @@
17
17
  cursor: pointer;
18
18
 
19
19
  @include mixin.hover {
20
- background: rgb(var(--gray-2));
20
+ background: var(--gray-2);
21
21
  }
22
22
  }
23
23
 
@@ -67,6 +67,6 @@
67
67
  }
68
68
 
69
69
  .placeholderIcon {
70
- color: rgb(var(--primary-7));
70
+ color: var(--primary-7);
71
71
  font-size: 20px;
72
72
  }
@@ -1,5 +1,3 @@
1
- @value basePaneStructure from './base/Pane.module.scss';
2
-
3
1
  .progressBar {
4
2
  position: relative;
5
3
  }
@@ -7,9 +5,9 @@
7
5
  .progressBarTrack {
8
6
  position: relative;
9
7
  height: 9px;
10
- background: rgb(var(--gray-2));
8
+ background: var(--gray-1);
11
9
  border-radius: calc(var(--radius) / 2);
12
- box-shadow: inset 0 0 0 1px rgb(var(--gray-3));
10
+ box-shadow: inset 0 0 0 1px var(--gray-2);
13
11
  contain: paint;
14
12
  }
15
13
 
@@ -18,9 +16,20 @@
18
16
  top: 0;
19
17
  left: 0;
20
18
  height: inherit;
21
- background: linear-gradient(to right, rgb(var(--primary-8)) 20%, rgb(var(--primary-6)), rgb(var(--primary-8)) 80%);
22
- background-size: 150px 100%;
23
19
  border-radius: inherit;
20
+ }
21
+
22
+ .progressBarValueComplete {
23
+ composes: progressBarValue;
24
+
25
+ background: var(--primary-7);
26
+ }
27
+
28
+ .progressBarValueIncomplete {
29
+ composes: progressBarValue;
30
+
31
+ background: linear-gradient(to right, var(--primary-7) 20%, var(--primary-6), var(--primary-7) 80%);
32
+ background-size: 150px 100%;
24
33
  animation: progressBarValue 1s linear infinite;
25
34
  }
26
35
 
@@ -28,7 +37,7 @@
28
37
  composes: progressBarTrack;
29
38
 
30
39
  .progressBarValue {
31
- background: linear-gradient(to right, rgb(var(--primary-8)) 20%, rgb(var(--primary-6)), rgb(var(--primary-8)) 80%);
40
+ background: linear-gradient(to right, var(--primary-7) 20%, var(--primary-6), var(--primary-7) 80%);
32
41
  background-size: 90px 100%;
33
42
  animation: progressBarIndeterminate 1s linear infinite;
34
43
  }
@@ -55,11 +64,11 @@
55
64
  white-space: nowrap;
56
65
  }
57
66
 
58
- :local(.basePaneStructure) > .progressBar:first-child {
67
+ .basePaneStructure > .progressBar:first-child {
59
68
  margin: 9px 9px 0;
60
69
  }
61
70
 
62
- :local(.basePaneStructure) > .progressBar:last-child {
71
+ .basePaneStructure > .progressBar:last-child {
63
72
  margin: 0 9px 9px;
64
73
  }
65
74
 
@@ -9,16 +9,16 @@
9
9
  width: 27px;
10
10
  align-items: center;
11
11
  justify-content: center;
12
- background: rgb(var(--danger-7));
13
- border: 3px solid rgb(var(--gray-0));
12
+ background: var(--danger-7);
13
+ border: 3px solid var(--gray-0);
14
14
  border-radius: 99px;
15
- color: rgb(var(--danger-0));
15
+ color: var(--danger-0);
16
16
  cursor: pointer;
17
17
  transition: 300ms var(--swift-out);
18
18
  transition-property: background, opacity, scale;
19
19
 
20
20
  @include mixin.hover {
21
- background: rgb(var(--danger-8));
21
+ background: var(--danger-8);
22
22
  }
23
23
 
24
24
  &.isHidden {
@@ -4,8 +4,8 @@
4
4
  position: relative;
5
5
  align-items: center;
6
6
  gap: 1px;
7
- background: rgb(var(--gray-1));
8
- border: 1px solid rgb(var(--gray-2));
7
+ background: var(--gray-1);
8
+ border: 1px solid var(--gray-2);
9
9
  border-radius: var(--radius);
10
10
  }
11
11
 
@@ -26,10 +26,10 @@
26
26
  position: absolute;
27
27
  top: 0;
28
28
  bottom: 0;
29
- background: rgb(var(--gray-0));
29
+ background: var(--gray-0);
30
30
  border-radius: var(--radius);
31
31
  box-shadow: var(--shadow-sm);
32
- outline: 1px solid rgb(var(--gray-3));
32
+ outline: 1px solid var(--gray-2);
33
33
  pointer-events: none;
34
34
  transition: 300ms var(--swift-out);
35
35
  transition-property: left, width;
@@ -55,7 +55,7 @@
55
55
  transition-property: background, color;
56
56
 
57
57
  @include mixin.hover {
58
- background: rgb(var(--gray-2));
58
+ background: var(--gray-2);
59
59
  }
60
60
 
61
61
  &.isActive {
@@ -73,7 +73,7 @@
73
73
  height: 15px;
74
74
  width: 1px;
75
75
  flex-shrink: 0;
76
- background: rgb(var(--gray-3));
76
+ background: var(--gray-2);
77
77
  transition: opacity 300ms var(--swift-out);
78
78
 
79
79
  &.isActive {
@@ -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);
@@ -67,7 +65,7 @@
67
65
  align-items: center;
68
66
  justify-content: center;
69
67
  flex-grow: 1;
70
- background: rgb(var(--gray-0));
68
+ background: var(--gray-0);
71
69
  border: 0;
72
70
  border-radius: 0;
73
71
  color: var(--foreground);
@@ -80,22 +78,27 @@
80
78
  transition-property: background, color;
81
79
 
82
80
  &:hover {
83
- background: rgb(var(--gray-1));
81
+ background: var(--gray-1);
84
82
  color: var(--foreground-prominent);
85
83
  }
86
84
 
85
+ &:first-child {
86
+ font-weight: 600;
87
+ }
88
+
87
89
  &:active {
88
- background: rgb(var(--gray-2));
90
+ background: var(--gray-2);
89
91
  }
90
92
  }
91
93
 
92
94
  .snackbarActions {
93
95
  display: flex;
94
96
  padding-left: 1px;
97
+ max-width: max-content;
95
98
  flex-flow: column;
96
99
  flex-grow: 1;
97
100
  gap: 1px;
98
- background: rgb(var(--gray-2));
101
+ background: var(--gray-2);
99
102
  }
100
103
 
101
104
  .snackbarGray {
@@ -114,12 +117,12 @@
114
117
  .snackbarAction:first-child,
115
118
  .snackbarContent > .icon,
116
119
  .snackbarTitle {
117
- color: rgb(var(--primary-7));
120
+ color: var(--primary-7);
118
121
  }
119
122
 
120
123
  .spinnerEffect,
121
124
  .spinnerValue {
122
- stroke: rgb(var(--primary-8));
125
+ stroke: var(--primary-8);
123
126
  }
124
127
  }
125
128
 
@@ -129,12 +132,12 @@
129
132
  .snackbarAction:first-child,
130
133
  .snackbarContent > .icon,
131
134
  .snackbarTitle {
132
- color: rgb(var(--danger-7));
135
+ color: var(--danger-7);
133
136
  }
134
137
 
135
138
  .spinnerEffect,
136
139
  .spinnerValue {
137
- stroke: rgb(var(--danger-8));
140
+ stroke: var(--danger-8);
138
141
  }
139
142
  }
140
143
 
@@ -144,12 +147,12 @@
144
147
  .snackbarAction:first-child,
145
148
  .snackbarContent > .icon,
146
149
  .snackbarTitle {
147
- color: rgb(var(--info-7));
150
+ color: var(--info-7);
148
151
  }
149
152
 
150
153
  .spinnerEffect,
151
154
  .spinnerValue {
152
- stroke: rgb(var(--info-8));
155
+ stroke: var(--info-8);
153
156
  }
154
157
  }
155
158
 
@@ -159,12 +162,12 @@
159
162
  .snackbarAction:first-child,
160
163
  .snackbarContent > .icon,
161
164
  .snackbarTitle {
162
- color: rgb(var(--success-7));
165
+ color: var(--success-7);
163
166
  }
164
167
 
165
168
  .spinnerEffect,
166
169
  .spinnerValue {
167
- stroke: rgb(var(--success-8));
170
+ stroke: var(--success-8);
168
171
  }
169
172
  }
170
173
 
@@ -174,12 +177,12 @@
174
177
  .snackbarAction:first-child,
175
178
  .snackbarContent > .icon,
176
179
  .snackbarTitle {
177
- color: rgb(var(--warning-7));
180
+ color: var(--warning-7);
178
181
  }
179
182
 
180
183
  .spinnerEffect,
181
184
  .spinnerValue {
182
- stroke: rgb(var(--warning-8));
185
+ stroke: var(--warning-8);
183
186
  }
184
187
  }
185
188
 
@@ -1,6 +1,6 @@
1
1
  .spinner {
2
- --track: rgb(var(--gray-2));
3
- --value: rgb(var(--primary-7));
2
+ --track: var(--gray-1);
3
+ --value: var(--primary-7);
4
4
 
5
5
  display: inline-block;
6
6
  height: 1em;
@@ -1,35 +1,37 @@
1
1
  .statistic {
2
2
  padding: 21px;
3
+ flex-basis: 0;
4
+ flex-grow: 1;
3
5
  gap: 21px;
4
6
 
5
7
  &.isGray .statisticIcon {
6
- background: rgb(var(--gray-2));
7
- color: rgb(var(--gray-7));
8
+ background: var(--gray-2);
9
+ color: var(--gray-7);
8
10
  }
9
11
 
10
12
  &.isPrimary .statisticIcon {
11
- background: rgb(var(--primary-2));
12
- color: rgb(var(--primary-7));
13
+ background: var(--primary-2);
14
+ color: var(--primary-7);
13
15
  }
14
16
 
15
17
  &.isDanger .statisticIcon {
16
- background: rgb(var(--danger-2));
17
- color: rgb(var(--danger-7));
18
+ background: var(--danger-2);
19
+ color: var(--danger-7);
18
20
  }
19
21
 
20
22
  &.isInfo .statisticIcon {
21
- background: rgb(var(--info-2));
22
- color: rgb(var(--info-7));
23
+ background: var(--info-2);
24
+ color: var(--info-7);
23
25
  }
24
26
 
25
27
  &.isSuccess .statisticIcon {
26
- background: rgb(var(--success-2));
27
- color: rgb(var(--success-7));
28
+ background: var(--success-2);
29
+ color: var(--success-7);
28
30
  }
29
31
 
30
32
  &.isWarning .statisticIcon {
31
- background: rgb(var(--warning-2));
32
- color: rgb(var(--warning-7));
33
+ background: var(--warning-2);
34
+ color: var(--warning-7);
33
35
  }
34
36
  }
35
37
 
@@ -47,23 +49,23 @@
47
49
  }
48
50
 
49
51
  &.isPrimary {
50
- color: rgb(var(--primary-7));
52
+ color: var(--primary-7);
51
53
  }
52
54
 
53
55
  &.isDanger {
54
- color: rgb(var(--danger-7));
56
+ color: var(--danger-7);
55
57
  }
56
58
 
57
59
  &.isInfo {
58
- color: rgb(var(--info-7));
60
+ color: var(--info-7);
59
61
  }
60
62
 
61
63
  &.isSuccess {
62
- color: rgb(var(--success-7));
64
+ color: var(--success-7);
63
65
  }
64
66
 
65
67
  &.isWarning {
66
- color: rgb(var(--warning-7));
68
+ color: var(--warning-7);
67
69
  }
68
70
  }
69
71
 
@@ -94,6 +96,12 @@
94
96
  border-radius: var(--radius);
95
97
  }
96
98
 
99
+ .statisticImage {
100
+ height: 48px;
101
+ width: 48px;
102
+ border-radius: var(--radius);
103
+ }
104
+
97
105
  .statisticHorizontal {
98
106
  composes: statistic;
99
107