@cashub/ui 0.46.1 → 0.48.0
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/Tab/TabList.js +38 -26
- package/Tab/TabPanel.js +13 -20
- package/Tab/TabTab.js +36 -24
- package/Tab/index.js +15 -1
- package/Tab/subComponent/TabListV2.js +25 -0
- package/Tab/subComponent/TabPanelV2.js +52 -0
- package/Tab/subComponent/TabTabV2.js +63 -0
- package/VerticalTab/TabList.js +13 -18
- package/VerticalTab/TabPanel.js +16 -20
- package/VerticalTab/TabTab.js +40 -21
- package/VerticalTab/VerticalTab.js +8 -4
- package/alert/Alert.js +12 -5
- package/animate/Collapse.js +5 -7
- package/animate/Loader.js +18 -7
- package/animate/PulseRing.js +18 -5
- package/animate/Spinner.js +8 -3
- package/backdrop/BaseBackdrop.js +9 -3
- package/backdrop/LoadingBackdrop.js +7 -3
- package/backdrop/ModalBackdrop.js +5 -3
- package/badge/Badge.js +15 -3
- package/badge/BadgeDot.js +8 -3
- package/badge/BadgeFill.js +24 -6
- package/badge/BadgeWithText.js +13 -3
- package/billing/BarChart.js +1 -1
- package/breadcrumb/Breadcrumb.js +42 -3
- package/button/Button.js +88 -20
- package/button/ButtonGroup.js +33 -9
- package/button/IconButton.js +37 -10
- package/button/ScrollToTopButton.js +12 -4
- package/callout/Callout.js +37 -8
- package/chart/BarChart.js +10 -17
- package/chart/DoughnutChart.js +34 -20
- package/chart/LineChart.js +14 -20
- package/chart/SingleBarChart.js +22 -5
- package/chart/utils/centerTextPlugin.js +2 -2
- package/chart/utils/customTooltip.js +7 -7
- package/chart/utils/htmlLegendPlugin.js +1 -1
- package/container/FlexContainer.js +15 -7
- package/cropper/Cropper.js +1 -2
- package/datetimePicker/DatePicker.js +80 -26
- package/datetimePicker/DatePickerV2.js +95 -36
- package/datetimePicker/DatetimePicker.js +174 -11
- package/datetimePicker/DatetimePickerV2.js +87 -33
- package/datetimePicker/DatetimePickerV3.js +174 -11
- package/datetimePicker/TimeInput.js +35 -10
- package/datetimePicker/TimePicker.js +77 -22
- package/datetimePicker/TimePickerStyle.js +53 -3
- package/datetimePicker/TimePickerV2.js +54 -21
- package/datetimePicker/accordion/Month.js +93 -16
- package/datetimePicker/accordion/Year.js +96 -18
- package/datetimePicker/hooks/useChangeNumber.js +3 -6
- package/datetimePicker/hooks/useDecrease.js +3 -6
- package/datetimePicker/hooks/useIncrease.js +3 -6
- package/datetimePicker/subComponent/Accordion.js +101 -20
- package/descriptionList/DescriptionDetail.js +15 -4
- package/descriptionList/DescriptionList.js +12 -4
- package/descriptionList/DescriptionTerm.js +5 -3
- package/divider/Divider.js +15 -6
- package/dropdown/DropdownButtonOption.js +22 -6
- package/dropdown/DropdownContent.js +29 -15
- package/dropdown/DropdownDivOption.js +17 -3
- package/dropdown/DropdownLinkOption.js +14 -3
- package/dropdown/DropdownToggle.js +7 -15
- package/dropzone/FileDropzone.js +121 -22
- package/dropzone/ImageDropzone.js +83 -14
- package/dropzone/subComponent/Message.js +11 -4
- package/figure/IconFigure.js +16 -7
- package/figure/ImageFigure.js +19 -6
- package/file/HiddenFileInput.js +3 -3
- package/form/Checkbox.js +74 -13
- package/form/Fieldset.js +9 -3
- package/form/FormItem.js +10 -5
- package/form/Input.js +40 -7
- package/form/Label.js +34 -10
- package/form/MutedText.js +8 -4
- package/form/PasswordInput.js +20 -13
- package/form/RadioButton.js +55 -8
- package/form/SearchSelect.js +64 -12
- package/form/Searchbox.js +45 -19
- package/form/Slider.js +28 -10
- package/form/SwitchButton.js +48 -14
- package/form/Textarea.js +30 -3
- package/form/TreeView.js +13 -6
- package/grid/Column.js +23 -10
- package/grid/Grid.js +14 -6
- package/heading/Heading1.js +8 -4
- package/heading/Heading2.js +11 -5
- package/heading/Heading3.js +20 -8
- package/iconbox/ApplicationIconBox.js +48 -12
- package/iconbox/IconBox.js +31 -7
- package/iconbox/IconBoxV2.js +33 -8
- package/iconbox/subComponent/IconBoxFigure.js +17 -9
- package/iconbox/subComponent/IconBoxImage.js +21 -8
- package/image/ImageFluid.js +7 -3
- package/image/UploadImage.js +66 -18
- package/index.js +8 -1
- package/jsoneditor/JsonEditor.js +121 -15
- package/keyframe/Pulse.js +13 -3
- package/keyframe/Spin.js +5 -3
- package/layout/Aside.js +30 -5
- package/layout/Backdrop.js +8 -4
- package/layout/Container.js +21 -5
- package/layout/Footer.js +26 -7
- package/layout/Sidebar.jsx +33 -3
- package/link/LinkSpan.js +37 -19
- package/map/GoogleMap.js +3 -7
- package/map/GoogleReverseGeolocation.js +6 -3
- package/map/LeafletMap.js +2 -2
- package/map/subComponent/GoogleMapContainer.js +16 -4
- package/map/subComponent/GoogleMapPopup.js +7 -10
- package/map/subComponent/GoogleMapWrapper.js +8 -15
- package/map/subComponent/LeafletDrawControl.js +9 -7
- package/map/subComponent/LeafletMapContainer.js +159 -4
- package/modal/StateModal.js +49 -28
- package/modal/TitleModal.js +70 -29
- package/package.json +1 -1
- package/page/Disclaimer.js +119 -3
- package/paginate/Paginate.js +54 -12
- package/popover/Popover.js +30 -25
- package/qrcode/QRCode.js +20 -6
- package/qrcode/QRCodeContainter.js +12 -4
- package/ribbon/Ribbon.js +29 -4
- package/section/Section.js +68 -20
- package/section/SectionBody.js +29 -8
- package/section/SectionHeader.js +36 -11
- package/section/SectionToolbar.js +9 -3
- package/section/SectionToolbarItem.js +8 -3
- package/select/InputSelect.js +16 -23
- package/select/Select.js +112 -43
- package/select/subComponent/Checkbox.js +24 -5
- package/select/subComponent/Footer.js +4 -3
- package/select/subComponent/ListBox.js +12 -5
- package/select/subComponent/Option.js +27 -7
- package/select/subComponent/OptionGroup.js +13 -3
- package/select/subComponent/Options.js +18 -5
- package/select/subComponent/SearchBox.js +34 -12
- package/select/subComponent/SelectedMultipleTags.js +21 -3
- package/select/subComponent/SelectedMultipleText.js +19 -4
- package/select/subComponent/SelectedSingle.js +7 -3
- package/styles/GlobalStyle.js +156 -45
- package/styles/mixin/backgroundColor.js +16 -8
- package/styles/mixin/borderColor.js +13 -7
- package/styles/mixin/color.js +13 -7
- package/styles/mixin/colorOnBackground.js +13 -7
- package/styles/mixin/inputPlaceholder.js +20 -3
- package/styles/mixin/media.js +5 -3
- package/styles/mixin/rounded.js +10 -6
- package/styles/mixin/scrollbar.js +13 -3
- package/styles/theme/dark.theme.js +15 -14
- package/styles/theme/light.theme.js +15 -14
- package/styles/theme/white.theme.js +15 -14
- package/table/GridTable.js +71 -33
- package/table/ImageBox.js +15 -5
- package/table/InfiniteGridTable.js +92 -46
- package/table/PermissionTable.js +32 -10
- package/table/SimpleGridTable.js +143 -0
- package/table/Table.js +198 -48
- package/table/__mock__/columns.js +1 -1
- package/table/index.js +7 -0
- package/table/subComponent/BaseTableHeadCell.js +37 -8
- package/table/subComponent/GridTableFooter.js +10 -4
- package/table/subComponent/GridTableHeadCell.js +6 -4
- package/table/subComponent/Resizer.js +19 -4
- package/table/subComponent/TableFooter.js +15 -6
- package/table/subComponent/TableFooterInfo.js +4 -3
- package/table/subComponent/TableFooterPager.js +19 -6
- package/table/subComponent/TableHeadCell.js +9 -3
- package/table/subComponent/TableSort.js +17 -7
- package/tagify/TagifyStyle.js +49 -3
- package/tagify/Tags.js +37 -21
- package/tagify/templates/getCreateButtonTemplate.js +5 -2
- package/text/Paragraph.js +50 -12
- package/timeline/Timeline.js +94 -17
- package/toast/CustomToastContainer.js +35 -3
- package/toast/MessageContainer.js +22 -4
- package/tooltip/Tooltip.js +47 -19
- package/treeView/TreeViewV2.js +1 -1
- package/treeView/TreeflexStyle.js +38 -3
- package/wizard/Wizard.js +115 -6
package/styles/GlobalStyle.js
CHANGED
|
@@ -7,217 +7,328 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
require("normalize.css");
|
|
9
9
|
require("../assets/css/global.css");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
const GlobalStyle = (0, _styledComponents.createGlobalStyle)`
|
|
11
|
+
body {
|
|
12
|
+
--color-white: ${_ref => {
|
|
13
13
|
let {
|
|
14
14
|
theme
|
|
15
15
|
} = _ref;
|
|
16
16
|
return theme.colorWhite;
|
|
17
|
-
}
|
|
17
|
+
}};
|
|
18
|
+
--color-dark: ${_ref2 => {
|
|
18
19
|
let {
|
|
19
20
|
theme
|
|
20
21
|
} = _ref2;
|
|
21
22
|
return theme.colorDark;
|
|
22
|
-
}
|
|
23
|
+
}};
|
|
24
|
+
--color-grey: ${_ref3 => {
|
|
23
25
|
let {
|
|
24
26
|
theme
|
|
25
27
|
} = _ref3;
|
|
26
28
|
return theme.colorGrey;
|
|
27
|
-
}
|
|
29
|
+
}};
|
|
30
|
+
--color-primary: ${_ref4 => {
|
|
28
31
|
let {
|
|
29
32
|
theme
|
|
30
33
|
} = _ref4;
|
|
31
34
|
return theme.colorPrimary;
|
|
32
|
-
}
|
|
35
|
+
}};
|
|
36
|
+
--color-success: ${_ref5 => {
|
|
33
37
|
let {
|
|
34
38
|
theme
|
|
35
39
|
} = _ref5;
|
|
36
40
|
return theme.colorSuccess;
|
|
37
|
-
}
|
|
41
|
+
}};
|
|
42
|
+
--color-warning: ${_ref6 => {
|
|
38
43
|
let {
|
|
39
44
|
theme
|
|
40
45
|
} = _ref6;
|
|
41
46
|
return theme.colorWarning;
|
|
42
|
-
}
|
|
47
|
+
}};
|
|
48
|
+
--color-danger: ${_ref7 => {
|
|
43
49
|
let {
|
|
44
50
|
theme
|
|
45
51
|
} = _ref7;
|
|
46
52
|
return theme.colorDanger;
|
|
47
|
-
}
|
|
53
|
+
}};
|
|
54
|
+
--color-hover: ${_ref8 => {
|
|
48
55
|
let {
|
|
49
56
|
theme
|
|
50
57
|
} = _ref8;
|
|
51
58
|
return theme.colorHover;
|
|
52
|
-
}
|
|
59
|
+
}};
|
|
60
|
+
--color-active: ${_ref9 => {
|
|
53
61
|
let {
|
|
54
62
|
theme
|
|
55
63
|
} = _ref9;
|
|
56
64
|
return theme.colorActive;
|
|
57
|
-
}
|
|
65
|
+
}};
|
|
66
|
+
--color-scroll-bar: ${_ref10 => {
|
|
58
67
|
let {
|
|
59
68
|
theme
|
|
60
69
|
} = _ref10;
|
|
61
70
|
return theme.scrollBarColor;
|
|
62
|
-
}
|
|
71
|
+
}};
|
|
72
|
+
--color-background1: ${_ref11 => {
|
|
63
73
|
let {
|
|
64
74
|
theme
|
|
65
75
|
} = _ref11;
|
|
66
76
|
return theme.bgColor1;
|
|
67
|
-
}
|
|
77
|
+
}};
|
|
78
|
+
--color-background2: ${_ref12 => {
|
|
68
79
|
let {
|
|
69
80
|
theme
|
|
70
81
|
} = _ref12;
|
|
71
82
|
return theme.bgColor2;
|
|
72
|
-
}
|
|
83
|
+
}};
|
|
84
|
+
--color-background3: ${_ref13 => {
|
|
73
85
|
let {
|
|
74
86
|
theme
|
|
75
87
|
} = _ref13;
|
|
76
88
|
return theme.bgColor3;
|
|
77
|
-
}
|
|
89
|
+
}};
|
|
90
|
+
--color-backdrop: ${_ref14 => {
|
|
78
91
|
let {
|
|
79
92
|
theme
|
|
80
93
|
} = _ref14;
|
|
81
94
|
return theme.backdropBg;
|
|
82
|
-
}
|
|
95
|
+
}};
|
|
96
|
+
|
|
97
|
+
--font-h1: ${_ref15 => {
|
|
83
98
|
let {
|
|
84
99
|
theme
|
|
85
100
|
} = _ref15;
|
|
86
101
|
return theme.fontH1;
|
|
87
|
-
}
|
|
102
|
+
}};
|
|
103
|
+
--font-h2: ${_ref16 => {
|
|
88
104
|
let {
|
|
89
105
|
theme
|
|
90
106
|
} = _ref16;
|
|
91
107
|
return theme.fontH2;
|
|
92
|
-
}
|
|
108
|
+
}};
|
|
109
|
+
--font-h3: ${_ref17 => {
|
|
93
110
|
let {
|
|
94
111
|
theme
|
|
95
112
|
} = _ref17;
|
|
96
113
|
return theme.fontH3;
|
|
97
|
-
}
|
|
114
|
+
}};
|
|
115
|
+
--font-body1: ${_ref18 => {
|
|
98
116
|
let {
|
|
99
117
|
theme
|
|
100
118
|
} = _ref18;
|
|
101
119
|
return theme.fontBody1;
|
|
102
|
-
}
|
|
120
|
+
}};
|
|
121
|
+
--font-body2: ${_ref19 => {
|
|
103
122
|
let {
|
|
104
123
|
theme
|
|
105
124
|
} = _ref19;
|
|
106
125
|
return theme.fontBody2;
|
|
107
|
-
}
|
|
126
|
+
}};
|
|
127
|
+
--font-button: ${_ref20 => {
|
|
108
128
|
let {
|
|
109
129
|
theme
|
|
110
130
|
} = _ref20;
|
|
111
131
|
return theme.fontButton;
|
|
112
|
-
}
|
|
132
|
+
}};
|
|
133
|
+
--font-caption: ${_ref21 => {
|
|
113
134
|
let {
|
|
114
135
|
theme
|
|
115
136
|
} = _ref21;
|
|
116
137
|
return theme.fontCaption;
|
|
117
|
-
}
|
|
138
|
+
}};
|
|
139
|
+
--font-family: ${_ref22 => {
|
|
118
140
|
let {
|
|
119
141
|
theme
|
|
120
142
|
} = _ref22;
|
|
121
143
|
return theme.fontFamily;
|
|
122
|
-
}
|
|
144
|
+
}};
|
|
145
|
+
--font-normal: ${_ref23 => {
|
|
123
146
|
let {
|
|
124
147
|
theme
|
|
125
148
|
} = _ref23;
|
|
126
149
|
return theme.fontWeightNormal;
|
|
127
|
-
}
|
|
150
|
+
}};
|
|
151
|
+
--font-bold: ${_ref24 => {
|
|
128
152
|
let {
|
|
129
153
|
theme
|
|
130
154
|
} = _ref24;
|
|
131
155
|
return theme.fontWeightBold;
|
|
132
|
-
}
|
|
156
|
+
}};
|
|
157
|
+
--font-on-primary: ${_ref25 => {
|
|
133
158
|
let {
|
|
134
159
|
theme
|
|
135
160
|
} = _ref25;
|
|
136
161
|
return theme.fontOnPrimary;
|
|
137
|
-
}
|
|
162
|
+
}};
|
|
163
|
+
--font-on-success: ${_ref26 => {
|
|
138
164
|
let {
|
|
139
165
|
theme
|
|
140
166
|
} = _ref26;
|
|
141
167
|
return theme.fontOnSuccess;
|
|
142
|
-
}
|
|
168
|
+
}};
|
|
169
|
+
--font-on-warning: ${_ref27 => {
|
|
143
170
|
let {
|
|
144
171
|
theme
|
|
145
172
|
} = _ref27;
|
|
146
173
|
return theme.fontOnWarning;
|
|
147
|
-
}
|
|
174
|
+
}};
|
|
175
|
+
--font-on-danger: ${_ref28 => {
|
|
148
176
|
let {
|
|
149
177
|
theme
|
|
150
178
|
} = _ref28;
|
|
151
179
|
return theme.fontOnDanger;
|
|
152
|
-
}
|
|
180
|
+
}};
|
|
181
|
+
--font-on-background: ${_ref29 => {
|
|
153
182
|
let {
|
|
154
183
|
theme
|
|
155
184
|
} = _ref29;
|
|
156
185
|
return theme.fontOnBg;
|
|
157
|
-
}
|
|
186
|
+
}};
|
|
187
|
+
--font-on-mute: ${_ref30 => {
|
|
158
188
|
let {
|
|
159
189
|
theme
|
|
160
190
|
} = _ref30;
|
|
161
191
|
return theme.fontMutedColor;
|
|
162
|
-
}
|
|
192
|
+
}};
|
|
193
|
+
|
|
194
|
+
--box-shadow: ${_ref31 => {
|
|
163
195
|
let {
|
|
164
196
|
theme
|
|
165
197
|
} = _ref31;
|
|
166
198
|
return theme.boxShadow;
|
|
167
|
-
}
|
|
199
|
+
}};
|
|
200
|
+
--border-color: ${_ref32 => {
|
|
168
201
|
let {
|
|
169
202
|
theme
|
|
170
203
|
} = _ref32;
|
|
171
204
|
return theme.borderColor;
|
|
172
|
-
}
|
|
205
|
+
}};
|
|
206
|
+
--border-color-transparent: ${_ref33 => {
|
|
173
207
|
let {
|
|
174
208
|
theme
|
|
175
209
|
} = _ref33;
|
|
176
210
|
return theme.borderColorTransparent;
|
|
177
|
-
}
|
|
211
|
+
}};
|
|
212
|
+
--border-width: ${_ref34 => {
|
|
178
213
|
let {
|
|
179
214
|
theme
|
|
180
215
|
} = _ref34;
|
|
181
216
|
return theme.borderWidth;
|
|
182
|
-
}
|
|
217
|
+
}};
|
|
218
|
+
--border-radius-s: ${_ref35 => {
|
|
183
219
|
let {
|
|
184
220
|
theme
|
|
185
221
|
} = _ref35;
|
|
186
222
|
return theme.borderRadiusS;
|
|
187
|
-
}
|
|
223
|
+
}};
|
|
224
|
+
--border-radius: ${_ref36 => {
|
|
188
225
|
let {
|
|
189
226
|
theme
|
|
190
227
|
} = _ref36;
|
|
191
228
|
return theme.borderRadius;
|
|
192
|
-
}
|
|
229
|
+
}};
|
|
230
|
+
--border-radius-l: ${_ref37 => {
|
|
193
231
|
let {
|
|
194
232
|
theme
|
|
195
233
|
} = _ref37;
|
|
196
234
|
return theme.borderRadiusL;
|
|
197
|
-
}
|
|
235
|
+
}};
|
|
236
|
+
--border-radius-round: ${_ref38 => {
|
|
198
237
|
let {
|
|
199
238
|
theme
|
|
200
239
|
} = _ref38;
|
|
201
240
|
return theme.borderRadiusRound;
|
|
202
|
-
}
|
|
241
|
+
}};
|
|
242
|
+
|
|
243
|
+
--spacing-xs: ${_ref39 => {
|
|
203
244
|
let {
|
|
204
245
|
theme
|
|
205
246
|
} = _ref39;
|
|
206
247
|
return theme.spacerXS;
|
|
207
|
-
}
|
|
248
|
+
}};
|
|
249
|
+
--spacing-s: ${_ref40 => {
|
|
208
250
|
let {
|
|
209
251
|
theme
|
|
210
252
|
} = _ref40;
|
|
211
253
|
return theme.spacerS;
|
|
212
|
-
}
|
|
254
|
+
}};
|
|
255
|
+
--spacing: ${_ref41 => {
|
|
213
256
|
let {
|
|
214
257
|
theme
|
|
215
258
|
} = _ref41;
|
|
216
259
|
return theme.spacer;
|
|
217
|
-
}
|
|
260
|
+
}};
|
|
261
|
+
--spacing-l: ${_ref42 => {
|
|
218
262
|
let {
|
|
219
263
|
theme
|
|
220
264
|
} = _ref42;
|
|
221
265
|
return theme.spacerL;
|
|
222
|
-
}
|
|
266
|
+
}};
|
|
267
|
+
|
|
268
|
+
/* Global style */
|
|
269
|
+
font-size: 16px;
|
|
270
|
+
font-family: Helvetica;
|
|
271
|
+
overflow-x: hidden;
|
|
272
|
+
background: var(--color-background1);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Custom normalize */
|
|
276
|
+
*,
|
|
277
|
+
*::before,
|
|
278
|
+
*::after {
|
|
279
|
+
box-sizing: border-box;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
html {
|
|
283
|
+
line-height: 1;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
h1,
|
|
287
|
+
h2,
|
|
288
|
+
h3,
|
|
289
|
+
h4,
|
|
290
|
+
h5,
|
|
291
|
+
h6 {
|
|
292
|
+
margin: 0;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
a {
|
|
296
|
+
text-decoration: none;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
button,
|
|
300
|
+
input,
|
|
301
|
+
optgroup,
|
|
302
|
+
select,
|
|
303
|
+
textarea {
|
|
304
|
+
line-height: 1;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
ul {
|
|
308
|
+
padding: 0;
|
|
309
|
+
margin: 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
li {
|
|
313
|
+
list-style: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
figure {
|
|
317
|
+
margin: 0;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
p {
|
|
321
|
+
margin: 0;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
dl,
|
|
325
|
+
dt,
|
|
326
|
+
dd {
|
|
327
|
+
margin: 0;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.margin-bottom-s {
|
|
331
|
+
margin-bottom: var(--spacing-s);
|
|
332
|
+
}
|
|
333
|
+
`;
|
|
223
334
|
var _default = exports.default = GlobalStyle;
|
|
@@ -5,32 +5,40 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const backgroundColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
8
|
+
const backgroundColor = (0, _styledComponents.css)`
|
|
9
|
+
${_ref => {
|
|
11
10
|
let {
|
|
12
11
|
primary
|
|
13
12
|
} = _ref;
|
|
14
13
|
return primary && 'background-color: var(--color-primary);';
|
|
15
|
-
}
|
|
14
|
+
}}
|
|
15
|
+
|
|
16
|
+
${_ref2 => {
|
|
16
17
|
let {
|
|
17
18
|
success
|
|
18
19
|
} = _ref2;
|
|
19
20
|
return success && 'background-color: var(--color-success);';
|
|
20
|
-
}
|
|
21
|
+
}}
|
|
22
|
+
|
|
23
|
+
${_ref3 => {
|
|
21
24
|
let {
|
|
22
25
|
warning
|
|
23
26
|
} = _ref3;
|
|
24
27
|
return warning && 'background-color: var(--color-warning);';
|
|
25
|
-
}
|
|
28
|
+
}}
|
|
29
|
+
|
|
30
|
+
${_ref4 => {
|
|
26
31
|
let {
|
|
27
32
|
danger
|
|
28
33
|
} = _ref4;
|
|
29
34
|
return danger && 'background-color: var(--color-danger);';
|
|
30
|
-
}
|
|
35
|
+
}}
|
|
36
|
+
|
|
37
|
+
${_ref5 => {
|
|
31
38
|
let {
|
|
32
39
|
grey
|
|
33
40
|
} = _ref5;
|
|
34
41
|
return grey && 'background-color: var(--color-grey);';
|
|
35
|
-
}
|
|
42
|
+
}}
|
|
43
|
+
`;
|
|
36
44
|
var _default = exports.default = backgroundColor;
|
|
@@ -5,27 +5,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const borderColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
8
|
+
const borderColor = (0, _styledComponents.css)`
|
|
9
|
+
${_ref => {
|
|
11
10
|
let {
|
|
12
11
|
primary
|
|
13
12
|
} = _ref;
|
|
14
13
|
return primary && 'border-color: var(--color-primary);';
|
|
15
|
-
}
|
|
14
|
+
}}
|
|
15
|
+
|
|
16
|
+
${_ref2 => {
|
|
16
17
|
let {
|
|
17
18
|
success
|
|
18
19
|
} = _ref2;
|
|
19
20
|
return success && 'border-color: var(--color-success);';
|
|
20
|
-
}
|
|
21
|
+
}}
|
|
22
|
+
|
|
23
|
+
${_ref3 => {
|
|
21
24
|
let {
|
|
22
25
|
warning
|
|
23
26
|
} = _ref3;
|
|
24
27
|
return warning && 'border-color: var(--color-warning);';
|
|
25
|
-
}
|
|
28
|
+
}}
|
|
29
|
+
|
|
30
|
+
${_ref4 => {
|
|
26
31
|
let {
|
|
27
32
|
danger
|
|
28
33
|
} = _ref4;
|
|
29
34
|
return danger && 'border-color: var(--color-danger);';
|
|
30
|
-
}
|
|
35
|
+
}}
|
|
36
|
+
`;
|
|
31
37
|
var _default = exports.default = borderColor;
|
package/styles/mixin/color.js
CHANGED
|
@@ -5,27 +5,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const color = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
8
|
+
const color = (0, _styledComponents.css)`
|
|
9
|
+
${_ref => {
|
|
11
10
|
let {
|
|
12
11
|
primary
|
|
13
12
|
} = _ref;
|
|
14
13
|
return primary && 'color: var(--color-primary);';
|
|
15
|
-
}
|
|
14
|
+
}}
|
|
15
|
+
|
|
16
|
+
${_ref2 => {
|
|
16
17
|
let {
|
|
17
18
|
success
|
|
18
19
|
} = _ref2;
|
|
19
20
|
return success && 'color: var(--color-success);';
|
|
20
|
-
}
|
|
21
|
+
}}
|
|
22
|
+
|
|
23
|
+
${_ref3 => {
|
|
21
24
|
let {
|
|
22
25
|
warning
|
|
23
26
|
} = _ref3;
|
|
24
27
|
return warning && 'color: var(--color-warning);';
|
|
25
|
-
}
|
|
28
|
+
}}
|
|
29
|
+
|
|
30
|
+
${_ref4 => {
|
|
26
31
|
let {
|
|
27
32
|
danger
|
|
28
33
|
} = _ref4;
|
|
29
34
|
return danger && 'color: var(--color-danger);';
|
|
30
|
-
}
|
|
35
|
+
}}
|
|
36
|
+
`;
|
|
31
37
|
var _default = exports.default = color;
|
|
@@ -5,27 +5,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const colorOnBackground = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
8
|
+
const colorOnBackground = (0, _styledComponents.css)`
|
|
9
|
+
${_ref => {
|
|
11
10
|
let {
|
|
12
11
|
primary
|
|
13
12
|
} = _ref;
|
|
14
13
|
return primary && 'color: var(--font-on-primary);';
|
|
15
|
-
}
|
|
14
|
+
}}
|
|
15
|
+
|
|
16
|
+
${_ref2 => {
|
|
16
17
|
let {
|
|
17
18
|
success
|
|
18
19
|
} = _ref2;
|
|
19
20
|
return success && 'color: var(--font-on-success);';
|
|
20
|
-
}
|
|
21
|
+
}}
|
|
22
|
+
|
|
23
|
+
${_ref3 => {
|
|
21
24
|
let {
|
|
22
25
|
warning
|
|
23
26
|
} = _ref3;
|
|
24
27
|
return warning && 'color: var(--font-on-warning);';
|
|
25
|
-
}
|
|
28
|
+
}}
|
|
29
|
+
|
|
30
|
+
${_ref4 => {
|
|
26
31
|
let {
|
|
27
32
|
danger
|
|
28
33
|
} = _ref4;
|
|
29
34
|
return danger && 'color: var(--font-on-danger);';
|
|
30
|
-
}
|
|
35
|
+
}}
|
|
36
|
+
`;
|
|
31
37
|
var _default = exports.default = colorOnBackground;
|
|
@@ -5,9 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
var _templateObject;
|
|
9
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
8
|
const inputPlaceholder = function () {
|
|
11
|
-
return (0, _styledComponents.css)
|
|
9
|
+
return (0, _styledComponents.css)`
|
|
10
|
+
::placeholder {
|
|
11
|
+
${(0, _styledComponents.css)(...arguments)}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
::-moz-placeholder {
|
|
15
|
+
${(0, _styledComponents.css)(...arguments)}
|
|
16
|
+
opacity: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Internet Explorer 10+
|
|
20
|
+
:-ms-input-placeholder {
|
|
21
|
+
${(0, _styledComponents.css)(...arguments)}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Safari and Chrome
|
|
25
|
+
::-webkit-input-placeholder {
|
|
26
|
+
${(0, _styledComponents.css)(...arguments)}
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
12
29
|
};
|
|
13
30
|
var _default = exports.default = inputPlaceholder;
|
package/styles/mixin/media.js
CHANGED
|
@@ -6,13 +6,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _breakpoint = _interopRequireDefault(require("../config/breakpoint.style"));
|
|
9
|
-
var _templateObject;
|
|
10
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
12
10
|
// Iterate through the breakpoint and create a media template
|
|
13
11
|
const media = Object.keys(_breakpoint.default).reduce((func, label) => {
|
|
14
12
|
func[label] = function () {
|
|
15
|
-
return (0, _styledComponents.css)
|
|
13
|
+
return (0, _styledComponents.css)`
|
|
14
|
+
@media (max-width: ${_breakpoint.default[label]}px) {
|
|
15
|
+
${(0, _styledComponents.css)(...arguments)}
|
|
16
|
+
}
|
|
17
|
+
`;
|
|
16
18
|
};
|
|
17
19
|
return func;
|
|
18
20
|
}, {});
|
package/styles/mixin/rounded.js
CHANGED
|
@@ -5,22 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const rounded = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
8
|
+
const rounded = (0, _styledComponents.css)`
|
|
9
|
+
${_ref => {
|
|
11
10
|
let {
|
|
12
11
|
roundedS
|
|
13
12
|
} = _ref;
|
|
14
13
|
return roundedS && 'border-radius: var(--border-radius-s);';
|
|
15
|
-
}
|
|
14
|
+
}}
|
|
15
|
+
|
|
16
|
+
${_ref2 => {
|
|
16
17
|
let {
|
|
17
18
|
rounded
|
|
18
19
|
} = _ref2;
|
|
19
20
|
return rounded && 'border-radius: var(--border-radius);';
|
|
20
|
-
}
|
|
21
|
+
}}
|
|
22
|
+
|
|
23
|
+
${_ref3 => {
|
|
21
24
|
let {
|
|
22
25
|
roundedCircle
|
|
23
26
|
} = _ref3;
|
|
24
27
|
return roundedCircle && 'border-radius: var(--border-radius-round);';
|
|
25
|
-
}
|
|
28
|
+
}}
|
|
29
|
+
`;
|
|
26
30
|
var _default = exports.default = rounded;
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
|
-
var _templateObject;
|
|
9
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
8
|
const scrollbar = _ref => {
|
|
11
9
|
let {
|
|
12
10
|
size
|
|
@@ -17,6 +15,18 @@ const scrollbar = _ref => {
|
|
|
17
15
|
scrollbarWidth = '24px';
|
|
18
16
|
thumbWidth = '8px';
|
|
19
17
|
}
|
|
20
|
-
return (0, _styledComponents.css)
|
|
18
|
+
return (0, _styledComponents.css)`
|
|
19
|
+
&::-webkit-scrollbar {
|
|
20
|
+
width: ${scrollbarWidth};
|
|
21
|
+
height: ${scrollbarWidth};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::-webkit-scrollbar-thumb {
|
|
25
|
+
background-color: var(--color-scroll-bar);
|
|
26
|
+
background-clip: padding-box;
|
|
27
|
+
border: ${thumbWidth} solid transparent;
|
|
28
|
+
border-radius: var(--border-radius);
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
21
31
|
};
|
|
22
32
|
var _default = exports.default = scrollbar;
|