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