@canlooks/can-ui 0.0.98 → 0.0.100
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.
- package/dist/cjs/components/accordion/accordion.style.js +88 -86
- package/dist/cjs/components/actionSheet/actionSheet.style.js +35 -33
- package/dist/cjs/components/alert/alert.style.js +44 -42
- package/dist/cjs/components/anchorList/anchorList.style.js +40 -38
- package/dist/cjs/components/app/app.style.js +24 -17
- package/dist/cjs/components/avatar/avatar.style.js +22 -20
- package/dist/cjs/components/avatar/avatarGroup.style.js +24 -22
- package/dist/cjs/components/backdrop/backdrop.style.js +11 -9
- package/dist/cjs/components/badge/badge.style.js +42 -40
- package/dist/cjs/components/bottomNavigation/bottomNavigation.style.js +61 -59
- package/dist/cjs/components/boundary/errorBoundary.style.js +11 -9
- package/dist/cjs/components/breadcrumb/breadcrumb.style.js +8 -6
- package/dist/cjs/components/bubble/bubble.style.js +10 -8
- package/dist/cjs/components/bubbleConfirm/bubbleConfirm.style.js +37 -35
- package/dist/cjs/components/button/button.style.js +219 -197
- package/dist/cjs/components/calendar/calendar.style.js +93 -91
- package/dist/cjs/components/card/card.style.js +47 -44
- package/dist/cjs/components/cascade/cascade.style.js +58 -54
- package/dist/cjs/components/checkboxBase/checkboxBase.style.js +122 -120
- package/dist/cjs/components/colorPicker/colorPicker.style.js +68 -64
- package/dist/cjs/components/counter/counter.style.js +19 -17
- package/dist/cjs/components/curd/curd.style.js +70 -66
- package/dist/cjs/components/curd/curdColumnConfig.style.js +17 -15
- package/dist/cjs/components/dataGrid/dataGrid.style.js +113 -111
- package/dist/cjs/components/dateTimePicker/dateTimePicker.style.js +31 -27
- package/dist/cjs/components/dateTimePicker/timer.style.js +29 -27
- package/dist/cjs/components/dateTimeRangePicker/dateTimeRangePicker.style.js +7 -5
- package/dist/cjs/components/descriptions/descriptions.style.js +99 -95
- package/dist/cjs/components/dialog/dialog.style.js +98 -96
- package/dist/cjs/components/divider/divider.style.js +17 -15
- package/dist/cjs/components/drawer/drawer.style.js +78 -77
- package/dist/cjs/components/dropdown/dropdown.style.js +10 -8
- package/dist/cjs/components/form/form.style.js +27 -25
- package/dist/cjs/components/gallery/gallery.style.js +82 -80
- package/dist/cjs/components/image/image.style.js +35 -33
- package/dist/cjs/components/input/input.style.js +27 -26
- package/dist/cjs/components/inputBase/inputBase.style.js +164 -162
- package/dist/cjs/components/loading/loading.style.js +17 -15
- package/dist/cjs/components/loadingIndicator/loadingIndicator.style.js +10 -8
- package/dist/cjs/components/loadingMask/loadingMask.style.js +19 -17
- package/dist/cjs/components/menu/menu.style.js +3 -1
- package/dist/cjs/components/menuItem/menuItem.style.js +94 -90
- package/dist/cjs/components/modal/modal.style.js +11 -9
- package/dist/cjs/components/optionsBase/optionsBase.style.js +10 -8
- package/dist/cjs/components/overlayBase/overlayBase.style.js +15 -13
- package/dist/cjs/components/pagination/pagination.style.js +31 -29
- package/dist/cjs/components/palette/palette.style.d.ts +1 -1
- package/dist/cjs/components/palette/palette.style.js +115 -113
- package/dist/cjs/components/pickerDialog/pickerDialog.style.js +25 -23
- package/dist/cjs/components/pinchable/pinchable.style.js +10 -8
- package/dist/cjs/components/placeholder/placeholder.style.js +28 -26
- package/dist/cjs/components/popper/popper.style.js +43 -39
- package/dist/cjs/components/progress/progress.style.js +111 -111
- package/dist/cjs/components/rating/rating.style.js +52 -50
- package/dist/cjs/components/resizable/resizable.style.js +229 -223
- package/dist/cjs/components/scrollbar/scrollbar.style.js +71 -69
- package/dist/cjs/components/segmented/segmented.style.js +79 -77
- package/dist/cjs/components/select/select.style.js +36 -34
- package/dist/cjs/components/selectedList/selectedList.style.js +9 -7
- package/dist/cjs/components/serialInput/serialInput.style.js +4 -2
- package/dist/cjs/components/skeleton/skeleton.style.js +53 -47
- package/dist/cjs/components/slidableActions/slidableActions.style.js +45 -43
- package/dist/cjs/components/slider/slider.style.js +129 -127
- package/dist/cjs/components/snackbarBase/snackbarBase.style.js +96 -94
- package/dist/cjs/components/status/status.style.js +13 -11
- package/dist/cjs/components/stepper/step.style.js +217 -216
- package/dist/cjs/components/stepper/stepper.style.js +5 -3
- package/dist/cjs/components/switch/switch.style.js +73 -71
- package/dist/cjs/components/table/table.style.js +83 -81
- package/dist/cjs/components/table/tableSticky.style.js +33 -31
- package/dist/cjs/components/tabs/tabs.style.js +161 -159
- package/dist/cjs/components/tabs/tabsEllipsis.style.js +5 -3
- package/dist/cjs/components/tag/tag.style.js +96 -94
- package/dist/cjs/components/textarea/textarea.style.js +27 -25
- package/dist/cjs/components/theme/themeVariables.d.ts +1 -0
- package/dist/cjs/components/theme/themeVariables.js +3 -1
- package/dist/cjs/components/timeline/timeline.style.js +112 -108
- package/dist/cjs/components/toggleButton/toggleButton.style.js +7 -5
- package/dist/cjs/components/tooltip/tooltip.style.js +13 -11
- package/dist/cjs/components/touchRipple/touchRipple.style.js +19 -17
- package/dist/cjs/components/transfer/transfer.style.js +42 -40
- package/dist/cjs/components/transitionBase/transitionBase.style.js +101 -94
- package/dist/cjs/components/transportStyle/transportStyle.style.d.ts +1 -0
- package/dist/cjs/components/transportStyle/transportStyle.style.js +57 -0
- package/dist/cjs/components/tree/tree.style.js +83 -79
- package/dist/cjs/components/tree/treeDnd.style.js +131 -129
- package/dist/cjs/components/treeSelect/treeSelect.style.js +35 -33
- package/dist/cjs/components/typography/typography.style.js +98 -96
- package/dist/cjs/components/upload/dropArea.style.js +31 -29
- package/dist/cjs/components/upload/upload.style.js +106 -104
- package/dist/cjs/components/waterfall/waterfall.style.js +7 -5
- package/dist/cjs/extensions/documentViewer/documentViewer.style.js +43 -41
- package/dist/esm/components/accordion/accordion.style.js +88 -86
- package/dist/esm/components/actionSheet/actionSheet.style.js +35 -33
- package/dist/esm/components/alert/alert.style.js +44 -42
- package/dist/esm/components/anchorList/anchorList.style.js +40 -38
- package/dist/esm/components/app/app.style.js +24 -17
- package/dist/esm/components/avatar/avatar.style.js +22 -20
- package/dist/esm/components/avatar/avatarGroup.style.js +24 -22
- package/dist/esm/components/backdrop/backdrop.style.js +11 -9
- package/dist/esm/components/badge/badge.style.js +42 -40
- package/dist/esm/components/bottomNavigation/bottomNavigation.style.js +61 -59
- package/dist/esm/components/boundary/errorBoundary.style.js +11 -9
- package/dist/esm/components/breadcrumb/breadcrumb.style.js +8 -6
- package/dist/esm/components/bubble/bubble.style.js +10 -8
- package/dist/esm/components/bubbleConfirm/bubbleConfirm.style.js +37 -35
- package/dist/esm/components/button/button.style.js +219 -197
- package/dist/esm/components/calendar/calendar.style.js +93 -91
- package/dist/esm/components/card/card.style.js +58 -55
- package/dist/esm/components/cascade/cascade.style.js +58 -54
- package/dist/esm/components/checkboxBase/checkboxBase.style.js +122 -120
- package/dist/esm/components/colorPicker/colorPicker.style.js +69 -65
- package/dist/esm/components/counter/counter.style.js +19 -17
- package/dist/esm/components/curd/curd.style.js +70 -66
- package/dist/esm/components/curd/curdColumnConfig.style.js +17 -15
- package/dist/esm/components/dataGrid/dataGrid.style.js +113 -111
- package/dist/esm/components/dateTimePicker/dateTimePicker.style.js +31 -27
- package/dist/esm/components/dateTimePicker/timer.style.js +29 -27
- package/dist/esm/components/dateTimeRangePicker/dateTimeRangePicker.style.js +7 -5
- package/dist/esm/components/descriptions/descriptions.style.js +99 -95
- package/dist/esm/components/dialog/dialog.style.js +98 -96
- package/dist/esm/components/divider/divider.style.js +17 -15
- package/dist/esm/components/drawer/drawer.style.js +78 -77
- package/dist/esm/components/dropdown/dropdown.style.js +10 -8
- package/dist/esm/components/form/form.style.js +27 -25
- package/dist/esm/components/gallery/gallery.style.js +82 -80
- package/dist/esm/components/image/image.style.js +35 -33
- package/dist/esm/components/input/input.style.js +27 -26
- package/dist/esm/components/inputBase/inputBase.style.js +164 -162
- package/dist/esm/components/loading/loading.style.js +17 -15
- package/dist/esm/components/loadingIndicator/loadingIndicator.style.js +10 -8
- package/dist/esm/components/loadingMask/loadingMask.style.js +19 -17
- package/dist/esm/components/menu/menu.style.js +3 -1
- package/dist/esm/components/menuItem/menuItem.style.js +94 -90
- package/dist/esm/components/modal/modal.style.js +11 -9
- package/dist/esm/components/optionsBase/optionsBase.style.js +10 -8
- package/dist/esm/components/overlayBase/overlayBase.style.js +15 -13
- package/dist/esm/components/pagination/pagination.style.js +31 -29
- package/dist/esm/components/palette/palette.style.d.ts +1 -1
- package/dist/esm/components/palette/palette.style.js +113 -111
- package/dist/esm/components/pickerDialog/pickerDialog.style.js +25 -23
- package/dist/esm/components/pinchable/pinchable.style.js +10 -8
- package/dist/esm/components/placeholder/placeholder.style.js +28 -26
- package/dist/esm/components/popper/popper.style.js +43 -39
- package/dist/esm/components/progress/progress.style.js +111 -111
- package/dist/esm/components/rating/rating.style.js +52 -50
- package/dist/esm/components/resizable/resizable.style.js +229 -223
- package/dist/esm/components/scrollbar/scrollbar.style.js +71 -69
- package/dist/esm/components/segmented/segmented.style.js +79 -77
- package/dist/esm/components/select/select.style.js +36 -34
- package/dist/esm/components/selectedList/selectedList.style.js +9 -7
- package/dist/esm/components/serialInput/serialInput.style.js +4 -2
- package/dist/esm/components/skeleton/skeleton.style.js +53 -47
- package/dist/esm/components/slidableActions/slidableActions.style.js +45 -43
- package/dist/esm/components/slider/slider.style.js +129 -127
- package/dist/esm/components/snackbarBase/snackbarBase.style.js +96 -94
- package/dist/esm/components/status/status.style.js +13 -11
- package/dist/esm/components/stepper/step.style.js +217 -216
- package/dist/esm/components/stepper/stepper.style.js +5 -3
- package/dist/esm/components/switch/switch.style.js +73 -71
- package/dist/esm/components/table/table.style.js +83 -81
- package/dist/esm/components/table/tableSticky.style.js +33 -31
- package/dist/esm/components/tabs/tabs.style.js +161 -159
- package/dist/esm/components/tabs/tabsEllipsis.style.js +5 -3
- package/dist/esm/components/tag/tag.style.js +96 -94
- package/dist/esm/components/textarea/textarea.style.js +27 -25
- package/dist/esm/components/theme/themeVariables.d.ts +1 -0
- package/dist/esm/components/theme/themeVariables.js +2 -0
- package/dist/esm/components/timeline/timeline.style.js +112 -108
- package/dist/esm/components/toggleButton/toggleButton.style.js +7 -5
- package/dist/esm/components/tooltip/tooltip.style.js +13 -11
- package/dist/esm/components/touchRipple/touchRipple.style.js +19 -17
- package/dist/esm/components/transfer/transfer.style.js +42 -40
- package/dist/esm/components/transitionBase/transitionBase.style.js +101 -94
- package/dist/esm/components/transportStyle/transportStyle.style.d.ts +1 -0
- package/dist/esm/components/transportStyle/transportStyle.style.js +54 -0
- package/dist/esm/components/tree/tree.style.js +83 -79
- package/dist/esm/components/tree/treeDnd.style.js +131 -129
- package/dist/esm/components/treeSelect/treeSelect.style.js +35 -33
- package/dist/esm/components/typography/typography.style.js +98 -96
- package/dist/esm/components/upload/dropArea.style.js +31 -29
- package/dist/esm/components/upload/upload.style.js +106 -104
- package/dist/esm/components/waterfall/waterfall.style.js +7 -5
- package/dist/esm/extensions/documentViewer/documentViewer.style.js +43 -41
- package/package.json +1 -1
|
@@ -27,119 +27,121 @@ export function useStyle({ color }) {
|
|
|
27
27
|
const focusedBg = gray(mode === 'light' ? .05 : .23);
|
|
28
28
|
const disabledOrActive = gray(mode === 'light' ? .1 : .17);
|
|
29
29
|
return css `
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
&[data-size=small] {
|
|
41
|
-
gap: ${spacing[2]}px;
|
|
42
|
-
padding: ${paddingHorizontal.small}px 6px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&[data-size=large] {
|
|
46
|
-
gap: ${spacing[4]}px;
|
|
47
|
-
padding: ${paddingHorizontal.large}px 15px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
transition: background-color .25s ${easing.easeOut};
|
|
51
|
-
|
|
52
|
-
&:hover, &[data-focused=true] {
|
|
53
|
-
background-color: ${focusedBg};
|
|
54
|
-
}
|
|
30
|
+
@layer reset {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: ${spacing[3]}px;
|
|
34
|
+
border-radius: ${borderRadius}px;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
color: ${text.primary};
|
|
37
|
+
padding: ${paddingHorizontal.medium}px 12px;
|
|
38
|
+
position: relative;
|
|
39
|
+
-webkit-tap-highlight-color: transparent;
|
|
55
40
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
background-color
|
|
41
|
+
&[data-size=small] {
|
|
42
|
+
gap: ${spacing[2]}px;
|
|
43
|
+
padding: ${paddingHorizontal.small}px 6px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-size=large] {
|
|
47
|
+
gap: ${spacing[4]}px;
|
|
48
|
+
padding: ${paddingHorizontal.large}px 15px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
transition: background-color .25s ${easing.easeOut};
|
|
67
52
|
|
|
68
53
|
&:hover, &[data-focused=true] {
|
|
69
|
-
background-color: ${
|
|
54
|
+
background-color: ${focusedBg};
|
|
70
55
|
}
|
|
71
56
|
|
|
72
|
-
|
|
73
|
-
font-weight: bold;
|
|
57
|
+
&[data-emphasized=true] {
|
|
74
58
|
color: ${colorValue};
|
|
75
59
|
}
|
|
76
|
-
|
|
60
|
+
|
|
77
61
|
&:active {
|
|
78
|
-
background-color
|
|
62
|
+
transition: background-color 0s;
|
|
63
|
+
background-color: ${disabledOrActive};
|
|
79
64
|
}
|
|
80
|
-
}
|
|
81
65
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
color: ${text.disabled};
|
|
85
|
-
background-color: ${disabledOrActive};
|
|
86
|
-
}
|
|
66
|
+
&[data-selected=true] {
|
|
67
|
+
background-color: ${selectedBg};
|
|
87
68
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
69
|
+
&:hover, &[data-focused=true] {
|
|
70
|
+
background-color: ${selectedAndFocused};
|
|
71
|
+
}
|
|
91
72
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
73
|
+
.${classes.content} {
|
|
74
|
+
font-weight: bold;
|
|
75
|
+
color: ${colorValue};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&:active {
|
|
79
|
+
background-color: ${selectedActive};
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&[data-disabled=true] {
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
color: ${text.disabled};
|
|
86
|
+
background-color: ${disabledOrActive};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.${classes.checkbox} {
|
|
90
|
+
display: flex;
|
|
91
|
+
}
|
|
95
92
|
|
|
96
|
-
&[data-ellipsis=true] {
|
|
97
93
|
.${classes.content} {
|
|
94
|
+
flex: 1;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&[data-ellipsis=true] {
|
|
98
|
+
.${classes.content} {
|
|
99
|
+
white-space: nowrap;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.${classes.suffix} {
|
|
106
|
+
max-width: 70%;
|
|
98
107
|
white-space: nowrap;
|
|
99
|
-
overflow: hidden;
|
|
100
108
|
text-overflow: ellipsis;
|
|
109
|
+
overflow: hidden;
|
|
101
110
|
}
|
|
102
|
-
}
|
|
103
111
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
text-overflow: ellipsis;
|
|
108
|
-
overflow: hidden;
|
|
109
|
-
}
|
|
112
|
+
.${classes.prefix} {
|
|
113
|
+
color: ${text.secondary};
|
|
114
|
+
}
|
|
110
115
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
116
|
+
&[data-emphasized=true],
|
|
117
|
+
&[data-selected=true] {
|
|
118
|
+
.${classes.prefix} {
|
|
119
|
+
color: ${colorValue};
|
|
120
|
+
}
|
|
121
|
+
}
|
|
114
122
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
123
|
+
&:has(+ .${classes.children} .${classes.root}[data-selected=true]) {
|
|
124
|
+
.${classes.content} {
|
|
125
|
+
color: ${colorValue};
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.${classes.prefix},
|
|
129
|
+
.${classes.arrow} {
|
|
130
|
+
color: ${colorValue};
|
|
131
|
+
}
|
|
119
132
|
}
|
|
120
|
-
}
|
|
121
133
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
color: ${colorValue};
|
|
134
|
+
.${classes.suffix} {
|
|
135
|
+
color: ${text.disabled};
|
|
125
136
|
}
|
|
126
137
|
|
|
127
|
-
.${classes.prefix},
|
|
128
138
|
.${classes.arrow} {
|
|
129
|
-
color: ${
|
|
130
|
-
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.${classes.suffix} {
|
|
134
|
-
color: ${text.disabled};
|
|
135
|
-
}
|
|
139
|
+
color: ${text.placeholder};
|
|
140
|
+
transition: transform .25s ${easing.easeOut};
|
|
136
141
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
&[data-open=true] {
|
|
142
|
-
transform: rotate(180deg);
|
|
142
|
+
&[data-open=true] {
|
|
143
|
+
transform: rotate(180deg);
|
|
144
|
+
}
|
|
143
145
|
}
|
|
144
146
|
}
|
|
145
147
|
`;
|
|
@@ -147,8 +149,10 @@ export function useStyle({ color }) {
|
|
|
147
149
|
}
|
|
148
150
|
export const menuListPadding = 4;
|
|
149
151
|
export const childrenStyle = defineCss(({ background }) => css `
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
@layer reset {
|
|
153
|
+
.${classes.childrenWrap} {
|
|
154
|
+
padding: ${menuListPadding}px;
|
|
155
|
+
background-color: ${background.fixed};
|
|
156
|
+
}
|
|
153
157
|
}
|
|
154
158
|
`);
|
|
@@ -4,16 +4,18 @@ export const classes = defineInnerClasses('modal', [
|
|
|
4
4
|
'modal',
|
|
5
5
|
]);
|
|
6
6
|
export const style = css `
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
@layer reset {
|
|
8
|
+
.${classes.modal} {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
pointer-events: none;
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
> * {
|
|
17
|
+
pointer-events: all;
|
|
18
|
+
}
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
`;
|
|
@@ -4,15 +4,17 @@ export const classes = defineInnerClasses('options-base', [
|
|
|
4
4
|
'optionsList'
|
|
5
5
|
]);
|
|
6
6
|
export const style = css `
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
@layer reset {
|
|
8
|
+
.${classes.optionsList} {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
flex: 1;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
max-height: ${32 * 8}px;
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
&:hover {
|
|
16
|
+
overflow: hidden auto;
|
|
17
|
+
}
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
`;
|
|
@@ -9,22 +9,24 @@ export const style = defineCss(theme => {
|
|
|
9
9
|
return [
|
|
10
10
|
appStyleCallback(theme),
|
|
11
11
|
css `
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
@layer reset {
|
|
13
|
+
position: fixed;
|
|
14
|
+
inset: 0;
|
|
15
|
+
z-index: ${zIndex.overlay};
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
&[data-custom-container=true] {
|
|
18
|
+
position: absolute;
|
|
19
|
+
}
|
|
19
20
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
.${classes.mask} {
|
|
22
|
+
background-color: rgba(0, 0, 0, .5);
|
|
23
|
+
position: absolute;
|
|
24
|
+
inset: 0;
|
|
25
|
+
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
&:not([data-open=true]) {
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
28
30
|
}
|
|
29
31
|
`
|
|
30
32
|
];
|
|
@@ -10,43 +10,45 @@ export const classes = defineInnerClasses('pagination', [
|
|
|
10
10
|
'counter'
|
|
11
11
|
]);
|
|
12
12
|
export const style = defineCss(({ spacing }) => css `
|
|
13
|
-
|
|
14
|
-
flex-wrap: wrap;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: flex-end;
|
|
17
|
-
gap: ${spacing[3]}px;
|
|
18
|
-
|
|
19
|
-
.${classes.pager} {
|
|
13
|
+
@layer reset {
|
|
20
14
|
display: flex;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
padding-right: 3px;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: flex-end;
|
|
18
|
+
gap: ${spacing[3]}px;
|
|
26
19
|
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
.${classes.pager} {
|
|
21
|
+
display: flex;
|
|
29
22
|
}
|
|
30
23
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
.${classes.button} {
|
|
25
|
+
padding-left: 3px;
|
|
26
|
+
padding-right: 3px;
|
|
27
|
+
|
|
28
|
+
&[data-size=small] {
|
|
29
|
+
min-width: 24px;
|
|
30
|
+
}
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
&[data-size=medium] {
|
|
33
|
+
min-width: 32px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-size=large] {
|
|
37
|
+
min-width: 40px;
|
|
38
|
+
}
|
|
37
39
|
}
|
|
38
|
-
}
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
.${classes.jumper} {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: ${spacing[3]}px;
|
|
45
|
+
|
|
46
|
+
.${classes.input} {
|
|
47
|
+
width: 45px;
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
.${inputClasses.input} {
|
|
50
|
+
text-align: center;
|
|
51
|
+
}
|
|
50
52
|
}
|
|
51
53
|
}
|
|
52
54
|
}
|
|
@@ -17,5 +17,5 @@ export declare const classes: {
|
|
|
17
17
|
} & {
|
|
18
18
|
root: string;
|
|
19
19
|
};
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const getTransparentBackground: (a: string, b: string) => string;
|
|
21
21
|
export declare const style: () => import("@emotion/react").SerializedStyles;
|
|
@@ -18,144 +18,146 @@ export const classes = defineInnerClasses('palette', [
|
|
|
18
18
|
'input',
|
|
19
19
|
'inputItemLabel'
|
|
20
20
|
]);
|
|
21
|
-
export const
|
|
21
|
+
export const getTransparentBackground = (a, b) => `background-image: conic-gradient(${a} 0 25%, ${b} 25% 50%, ${a} 50% 75%, ${b} 75% 100%);`;
|
|
22
22
|
export const style = defineCss(({ spacing, borderRadius, background, divider, text }) => css `
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
gap: ${spacing[3]}px;
|
|
27
|
-
user-select: none;
|
|
28
|
-
|
|
29
|
-
.${classes.main} {
|
|
30
|
-
aspect-ratio: 3 / 2;
|
|
31
|
-
border-radius: ${borderRadius}px;
|
|
32
|
-
/* overflow: hidden; */
|
|
33
|
-
position: relative;
|
|
34
|
-
touch-action: none;
|
|
35
|
-
|
|
36
|
-
.${classes.mask} {
|
|
37
|
-
background-image: linear-gradient(0deg, #000, transparent);
|
|
38
|
-
border-radius: inherit;
|
|
39
|
-
position: absolute;
|
|
40
|
-
inset: 0;
|
|
41
|
-
pointer-events: none;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.${classes.handle} {
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
width: 12px;
|
|
47
|
-
height: 12px;
|
|
48
|
-
border: 2px solid #ffffff;
|
|
49
|
-
border-radius: 50%;
|
|
50
|
-
box-shadow: 0 0 2px ${text.primary}, inset 0 0 1px ${text.primary};
|
|
51
|
-
position: absolute;
|
|
52
|
-
transform: translate(-50%, -50%);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.${classes.slidersRow} {
|
|
23
|
+
@layer reset {
|
|
24
|
+
width: 240px;
|
|
57
25
|
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
58
27
|
gap: ${spacing[3]}px;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
28
|
+
user-select: none;
|
|
29
|
+
|
|
30
|
+
.${classes.main} {
|
|
31
|
+
aspect-ratio: 3 / 2;
|
|
32
|
+
border-radius: ${borderRadius}px;
|
|
33
|
+
/* overflow: hidden; */
|
|
34
|
+
position: relative;
|
|
35
|
+
touch-action: none;
|
|
36
|
+
|
|
37
|
+
.${classes.mask} {
|
|
38
|
+
background-image: linear-gradient(0deg, #000, transparent);
|
|
39
|
+
border-radius: inherit;
|
|
40
|
+
position: absolute;
|
|
41
|
+
inset: 0;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.${classes.handle} {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
width: 12px;
|
|
48
|
+
height: 12px;
|
|
49
|
+
border: 2px solid #ffffff;
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
box-shadow: 0 0 2px ${text.primary}, inset 0 0 1px ${text.primary};
|
|
52
|
+
position: absolute;
|
|
53
|
+
transform: translate(-50%, -50%);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.${classes.slidersRow} {
|
|
62
58
|
display: flex;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
59
|
+
gap: ${spacing[3]}px;
|
|
60
|
+
|
|
61
|
+
.${classes.sliders} {
|
|
62
|
+
flex: 1;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
|
|
67
|
+
.${sliderClasses.root} {
|
|
68
|
+
min-height: 0;
|
|
69
|
+
|
|
70
|
+
.${sliderClasses.handle} {
|
|
71
|
+
background-color: transparent;
|
|
72
|
+
border-color: #ffffff;
|
|
73
|
+
box-shadow: 0 0 2px #000000, inset 0 0 1px #000000;
|
|
74
|
+
}
|
|
73
75
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
background-image: linear-gradient(90deg,
|
|
76
|
+
|
|
77
|
+
.${classes.hue} {
|
|
78
|
+
.${sliderClasses.rail} {
|
|
79
|
+
background-image: linear-gradient(90deg,
|
|
79
80
|
#f00 0%,
|
|
80
81
|
#ff0 ${100 / 6}%,
|
|
81
82
|
#0f0 ${100 / 6 * 2}%,
|
|
82
83
|
#0ff 50%, #00f ${100 / 6 * 4}%,
|
|
83
84
|
#f0f ${100 / 6 * 5}%,
|
|
84
85
|
#f00 100%
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.${classes.alpha} {
|
|
90
|
-
.${sliderClasses.rail} {
|
|
91
|
-
position: relative;
|
|
92
|
-
background-color: transparent;
|
|
93
|
-
|
|
94
|
-
&:before,
|
|
95
|
-
.${classes.alphaMask} {
|
|
96
|
-
border-radius: inherit;
|
|
97
|
-
position: absolute;
|
|
98
|
-
inset: 0;
|
|
86
|
+
);
|
|
99
87
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.${classes.alpha} {
|
|
91
|
+
.${sliderClasses.rail} {
|
|
92
|
+
position: relative;
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
|
|
95
|
+
&::before,
|
|
96
|
+
.${classes.alphaMask} {
|
|
97
|
+
border-radius: inherit;
|
|
98
|
+
position: absolute;
|
|
99
|
+
inset: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&::before {
|
|
103
|
+
content: '';
|
|
104
|
+
${getTransparentBackground(background.body, background.content)}
|
|
105
|
+
background-size: 9px;
|
|
106
|
+
}
|
|
105
107
|
}
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
110
|
+
|
|
111
|
+
.${classes.preview} {
|
|
112
|
+
width: 30px;
|
|
113
|
+
height: 30px;
|
|
114
|
+
border-radius: ${borderRadius}px;
|
|
115
|
+
border: 1px solid ${divider};
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
${getTransparentBackground(background.body, background.content)}
|
|
118
|
+
background-size: 50% 50%;
|
|
119
|
+
position: relative;
|
|
120
|
+
|
|
121
|
+
.${classes.previewColor} {
|
|
122
|
+
position: absolute;
|
|
123
|
+
inset: 0;
|
|
124
|
+
}
|
|
123
125
|
}
|
|
124
126
|
}
|
|
125
|
-
}
|
|
126
127
|
|
|
127
|
-
|
|
128
|
-
display: flex;
|
|
129
|
-
gap: 12px;
|
|
130
|
-
font-size: ${13 / 14}em;
|
|
131
|
-
|
|
132
|
-
.${classes.inputsWrap} {
|
|
133
|
-
flex: 1;
|
|
128
|
+
.${classes.inputRow} {
|
|
134
129
|
display: flex;
|
|
135
|
-
gap:
|
|
130
|
+
gap: 12px;
|
|
131
|
+
font-size: ${13 / 14}em;
|
|
136
132
|
|
|
137
|
-
.${classes.
|
|
133
|
+
.${classes.inputsWrap} {
|
|
138
134
|
flex: 1;
|
|
139
135
|
display: flex;
|
|
140
|
-
|
|
136
|
+
gap: ${spacing[1]}px;
|
|
141
137
|
|
|
142
|
-
|
|
143
|
-
flex:
|
|
144
|
-
|
|
138
|
+
.${classes.inputItem} {
|
|
139
|
+
flex: 1;
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-direction: column;
|
|
145
142
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
143
|
+
&[data-wide=true] {
|
|
144
|
+
flex: 3;
|
|
145
|
+
}
|
|
149
146
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
.${classes.input} {
|
|
148
|
+
padding: 0 ${spacing[1]}px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&:not([data-wide=true]) {
|
|
152
|
+
.${classes.input} input {
|
|
153
|
+
text-align: center;
|
|
154
|
+
}
|
|
153
155
|
}
|
|
154
|
-
}
|
|
155
156
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
.${classes.inputItemLabel} {
|
|
158
|
+
text-align: center;
|
|
159
|
+
color: ${text.placeholder};
|
|
160
|
+
}
|
|
159
161
|
}
|
|
160
162
|
}
|
|
161
163
|
}
|