@rio-cloud/rio-uikit 0.16.1-beta.24 → 0.16.1

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 (95) hide show
  1. package/AutoSuggest.d.ts +6 -5
  2. package/Bar.d.ts +4 -1
  3. package/Carousel.d.ts +2 -0
  4. package/ConfirmationDialog.d.ts +8 -1
  5. package/ContentLoader.d.ts +4 -1
  6. package/ExpanderList.d.ts +5 -5
  7. package/Fade.d.ts +10 -1
  8. package/FilePicker.d.ts +5 -1
  9. package/ListMenu.d.ts +6 -5
  10. package/Map.d.ts +10 -7
  11. package/MediaDialog.d.ts +8 -4
  12. package/MenuItem.d.ts +1 -1
  13. package/Multiselect.d.ts +11 -4
  14. package/NumberControl.d.ts +4 -1
  15. package/NumberInput.d.ts +4 -1
  16. package/OnboardingTip.d.ts +26 -1
  17. package/OverlayTrigger.d.ts +25 -1
  18. package/Popover.d.ts +7 -1
  19. package/Resizer.d.ts +9 -1
  20. package/ResponsiveVideo.d.ts +4 -1
  21. package/RuleConnector.d.ts +5 -1
  22. package/SaveDialog.d.ts +8 -1
  23. package/Select.d.ts +5 -5
  24. package/Sidebar.d.ts +7 -1
  25. package/SimpleDialog.d.ts +8 -1
  26. package/SimpleTooltip.d.ts +25 -1
  27. package/SplitDialog.d.ts +8 -1
  28. package/SteppedProgressBar.d.ts +5 -1
  29. package/Switch.d.ts +4 -1
  30. package/TagManager.d.ts +5 -5
  31. package/Tooltip.d.ts +28 -1
  32. package/components/dropdown/ButtonDropdown.js +9 -3
  33. package/components/rules/RuleConnector.js +4 -1
  34. package/components/selects/BaseDropdownMenu.js +40 -26
  35. package/components/selects/Multiselect.js +5 -3
  36. package/components/selects/Select.js +7 -5
  37. package/framer-motion.d.ts +1 -0
  38. package/lib/es/AutoSuggest.d.ts +6 -5
  39. package/lib/es/Bar.d.ts +4 -1
  40. package/lib/es/Carousel.d.ts +2 -0
  41. package/lib/es/ConfirmationDialog.d.ts +8 -1
  42. package/lib/es/ContentLoader.d.ts +4 -1
  43. package/lib/es/ExpanderList.d.ts +5 -5
  44. package/lib/es/Fade.d.ts +10 -1
  45. package/lib/es/FilePicker.d.ts +5 -1
  46. package/lib/es/ListMenu.d.ts +6 -5
  47. package/lib/es/Map.d.ts +10 -7
  48. package/lib/es/MediaDialog.d.ts +8 -4
  49. package/lib/es/MenuItem.d.ts +1 -1
  50. package/lib/es/Multiselect.d.ts +11 -4
  51. package/lib/es/NumberControl.d.ts +4 -1
  52. package/lib/es/NumberInput.d.ts +4 -1
  53. package/lib/es/OnboardingTip.d.ts +26 -1
  54. package/lib/es/OverlayTrigger.d.ts +25 -1
  55. package/lib/es/Popover.d.ts +7 -1
  56. package/lib/es/Resizer.d.ts +9 -1
  57. package/lib/es/ResponsiveVideo.d.ts +4 -1
  58. package/lib/es/RuleConnector.d.ts +5 -1
  59. package/lib/es/SaveDialog.d.ts +8 -1
  60. package/lib/es/Select.d.ts +5 -5
  61. package/lib/es/Sidebar.d.ts +7 -1
  62. package/lib/es/SimpleDialog.d.ts +8 -1
  63. package/lib/es/SimpleTooltip.d.ts +25 -1
  64. package/lib/es/SplitDialog.d.ts +8 -1
  65. package/lib/es/SteppedProgressBar.d.ts +5 -1
  66. package/lib/es/Switch.d.ts +4 -1
  67. package/lib/es/TagManager.d.ts +5 -5
  68. package/lib/es/Tooltip.d.ts +28 -1
  69. package/lib/es/components/dropdown/ButtonDropdown.js +9 -3
  70. package/lib/es/components/rules/RuleConnector.js +4 -1
  71. package/lib/es/components/selects/BaseDropdownMenu.js +40 -26
  72. package/lib/es/components/selects/Multiselect.js +5 -3
  73. package/lib/es/components/selects/Select.js +7 -5
  74. package/lib/es/framer-motion.d.ts +1 -0
  75. package/lib/es/styles/components/Dropdown.less +11 -2
  76. package/lib/es/styles/components/Select.less +5 -6
  77. package/lib/es/styles/design/fonts.less +23 -23
  78. package/lib/es/styles/design/normalize.less +0 -2
  79. package/lib/es/styles/design/responsive/flexgrid.less +4 -6
  80. package/lib/es/styles/design/responsive/sizing.less +3 -0
  81. package/lib/es/types.ts +16 -16
  82. package/lib/es/version.json +1 -1
  83. package/package.json +3 -2
  84. package/styles/components/Dropdown.less +11 -2
  85. package/styles/components/Select.less +5 -6
  86. package/styles/design/fonts.less +23 -23
  87. package/styles/design/normalize.less +0 -2
  88. package/styles/design/responsive/flexgrid.less +4 -6
  89. package/styles/design/responsive/sizing.less +3 -0
  90. package/types.ts +16 -16
  91. package/version.json +1 -1
  92. package/BoxConnector.js +0 -2
  93. package/components/boxConnector/BoxConnector.js +0 -40
  94. package/lib/es/BoxConnector.js +0 -13
  95. package/lib/es/components/boxConnector/BoxConnector.js +0 -48
@@ -1,7 +1,9 @@
1
1
  @dropdown-max-height: 211px; // Used for Select and AutoSuggest components
2
2
 
3
- .btn-group.open .dropdown-toggle {
4
- box-shadow: none !important;
3
+ .btn-group {
4
+ &.open .dropdown-toggle {
5
+ box-shadow: none !important;
6
+ }
5
7
  }
6
8
 
7
9
  .dropdown {
@@ -18,6 +20,7 @@
18
20
  padding: 0;
19
21
  position: absolute;
20
22
  text-align: left;
23
+ //width: 100%;
21
24
  z-index: @zindex-dropdown;
22
25
 
23
26
  // closed by default
@@ -28,6 +31,12 @@
28
31
  display: block;
29
32
  }
30
33
 
34
+ .AutoSuggest &,
35
+ .select &,
36
+ .multiselect & {
37
+ width: 100%;
38
+ }
39
+
31
40
  // portal style
32
41
  #uikit-root > & {
33
42
  display: block;
@@ -162,13 +162,17 @@
162
162
  .dropdown-menu {
163
163
  max-height: @dropdown-max-height;
164
164
  overflow-x: hidden;
165
- width: 100%; // not on dropdowns, only on selects
166
165
 
167
166
  svg {
168
167
  margin-right: 0.5em;
169
168
  vertical-align: middle;
170
169
  }
171
170
 
171
+ &.pull-right {
172
+ left: auto !important;
173
+ right: 0 !important;
174
+ }
175
+
172
176
  > li {
173
177
  > a.focus {
174
178
  text-decoration: none;
@@ -189,11 +193,6 @@
189
193
  }
190
194
  }
191
195
 
192
- &.pull-right {
193
- left: auto !important;
194
- right: 0 !important;
195
- }
196
-
197
196
  &.dropup.open .dropdown-menu {
198
197
  bottom: 0;
199
198
  left: 0;
@@ -164,141 +164,141 @@
164
164
 
165
165
  // SCANIA FONT
166
166
  & when (@font-scania = true) {
167
- @fontSCANIA: 'https://cdn.digitaldesign.scania.com/fonts/scania-sans/1.0.0';
167
+ @fontSCANIA: 'cdn.digitaldesign.scania.com/fonts/scania-sans/1.0.0';
168
168
 
169
169
  @font-face {
170
170
  font-family: 'Scania Sans';
171
171
  font-weight: bold;
172
172
  unicode-range: U+0400-04FF;
173
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCY-Bold.woff') format('woff')
173
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCY-Bold.woff') format('woff')
174
174
  }
175
175
 
176
176
  @font-face {
177
177
  font-family: 'Scania Sans';
178
178
  font-style: italic;
179
179
  unicode-range: U+0400-04FF;
180
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCY-Italic.woff') format('woff')
180
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCY-Italic.woff') format('woff')
181
181
  }
182
182
 
183
183
  @font-face {
184
184
  font-family: 'Scania Sans';
185
185
  unicode-range: U+0400-04FF;
186
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCY-Regular.woff') format('woff')
186
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCY-Regular.woff') format('woff')
187
187
  }
188
188
 
189
189
  @font-face {
190
190
  font-family: 'Scania Sans Condensed';
191
191
  font-weight: bold;
192
192
  unicode-range: U+0400-04FF;
193
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Bold.woff') format('woff')
193
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Bold.woff') format('woff')
194
194
  }
195
195
 
196
196
  @font-face {
197
197
  font-family: 'Scania Sans Condensed';
198
198
  font-style: italic;
199
199
  unicode-range: U+0400-04FF;
200
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Italic.woff') format('woff')
200
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Italic.woff') format('woff')
201
201
  }
202
202
 
203
203
  @font-face {
204
204
  font-family: 'Scania Sans Condensed';
205
205
  unicode-range: U+0400-04FF;
206
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Regular.woff') format('woff')
206
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYCondensed-Regular.woff') format('woff')
207
207
  }
208
208
 
209
209
  @font-face {
210
210
  font-family: 'Scania Sans Headline';
211
211
  font-weight: bold;
212
212
  unicode-range: U+0400-04FF;
213
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCYHeadline-Bold.woff') format('woff')
213
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYHeadline-Bold.woff') format('woff')
214
214
  }
215
215
 
216
216
  @font-face {
217
217
  font-family: 'Scania Sans Headline';
218
218
  unicode-range: U+0400-04FF;
219
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCYHeadline-Regular.woff') format('woff')
219
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYHeadline-Regular.woff') format('woff')
220
220
  }
221
221
 
222
222
  @font-face {
223
223
  font-family: 'Scania Sans Semi Condensed';
224
224
  font-weight: bold;
225
225
  unicode-range: U+0400-04FF;
226
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Bold.woff') format('woff')
226
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Bold.woff') format('woff')
227
227
  }
228
228
 
229
229
  @font-face {
230
230
  font-family: 'Scania Sans Semi Condensed';
231
231
  font-style: italic;
232
232
  unicode-range: U+0400-04FF;
233
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Italic.woff') format('woff')
233
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Italic.woff') format('woff')
234
234
  }
235
235
 
236
236
  @font-face {
237
237
  font-family: 'Scania Sans Semi Condensed';
238
238
  unicode-range: U+0400-04FF;
239
- src: url('@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Regular.woff') format('woff')
239
+ src: url('https://@{fontSCANIA}/cyrillic/ScaniaSansCYSemiCondensed-Regular.woff') format('woff')
240
240
  }
241
241
 
242
242
  @font-face {
243
243
  font-family: 'Scania Sans';
244
244
  font-weight: bold;
245
- src: url('@{fontSCANIA}/latin/ScaniaSans-Bold.woff') format('woff')
245
+ src: url('https://@{fontSCANIA}/latin/ScaniaSans-Bold.woff') format('woff')
246
246
  }
247
247
 
248
248
  @font-face {
249
249
  font-family: 'Scania Sans';
250
250
  font-style: italic;
251
- src: url('@{fontSCANIA}/latin/ScaniaSans-Italic.woff') format('woff')
251
+ src: url('https://@{fontSCANIA}/latin/ScaniaSans-Italic.woff') format('woff')
252
252
  }
253
253
 
254
254
  @font-face {
255
255
  font-family: 'Scania Sans';
256
- src: url('@{fontSCANIA}/latin/ScaniaSans-Regular.woff') format('woff')
256
+ src: url('https://@{fontSCANIA}/latin/ScaniaSans-Regular.woff') format('woff')
257
257
  }
258
258
 
259
259
  @font-face {
260
260
  font-family: 'Scania Sans Condensed';
261
261
  font-weight: bold;
262
- src: url('@{fontSCANIA}/latin/ScaniaSansCondensed-Bold.woff') format('woff')
262
+ src: url('https://@{fontSCANIA}/latin/ScaniaSansCondensed-Bold.woff') format('woff')
263
263
  }
264
264
 
265
265
  @font-face {
266
266
  font-family: 'Scania Sans Condensed';
267
267
  font-style: italic;
268
- src: url('@{fontSCANIA}/latin/ScaniaSansCondensed-Italic.woff') format('woff')
268
+ src: url('https://@{fontSCANIA}/latin/ScaniaSansCondensed-Italic.woff') format('woff')
269
269
  }
270
270
 
271
271
  @font-face {
272
272
  font-family: 'Scania Sans Condensed';
273
- src: url('@{fontSCANIA}/latin/ScaniaSansCondensed-Regular.woff') format('woff')
273
+ src: url('https://@{fontSCANIA}/latin/ScaniaSansCondensed-Regular.woff') format('woff')
274
274
  }
275
275
 
276
276
  @font-face {
277
277
  font-family: 'Scania Sans Headline';
278
278
  font-weight: bold;
279
- src: url('@{fontSCANIA}/latin/ScaniaSansHeadline-Bold.woff') format('woff')
279
+ src: url('https://@{fontSCANIA}/latin/ScaniaSansHeadline-Bold.woff') format('woff')
280
280
  }
281
281
 
282
282
  @font-face {
283
283
  font-family: 'Scania Sans Headline';
284
- src: url('@{fontSCANIA}/latin/ScaniaSansHeadline-Regular.woff') format('woff')
284
+ src: url('https://@{fontSCANIA}/latin/ScaniaSansHeadline-Regular.woff') format('woff')
285
285
  }
286
286
 
287
287
  @font-face {
288
288
  font-family: 'Scania Sans Semi Condensed';
289
289
  font-weight: bold;
290
- src: url('@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Bold.woff') format('woff')
290
+ src: url('https://@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Bold.woff') format('woff')
291
291
  }
292
292
 
293
293
  @font-face {
294
294
  font-family: 'Scania Sans Semi Condensed';
295
295
  font-style: italic;
296
- src: url('@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Italic.woff') format('woff')
296
+ src: url('https://@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Italic.woff') format('woff')
297
297
  }
298
298
 
299
299
  @font-face {
300
300
  font-family: 'Scania Sans Semi Condensed';
301
- src: url('@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Regular.woff') format('woff')
301
+ src: url('https://@{fontSCANIA}/latin/ScaniaSansSemiCondensed-Regular.woff') format('woff')
302
302
  }
303
303
  }
304
304
 
@@ -7,8 +7,6 @@
7
7
  }
8
8
  }
9
9
 
10
- /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
11
-
12
10
  //
13
11
  // 1. Set default font family to sans-serif.
14
12
  // 2. Prevent iOS and IE text size adjust after device orientation change,
@@ -34,6 +34,9 @@
34
34
  .align-self-start@{suffix} { align-self: flex-start !important }
35
35
  .align-self-stretch@{suffix} { align-self: stretch !important }
36
36
 
37
+ .place-items-center@{suffix} { place-items: center !important }
38
+ .place-self-center@{suffix} { place-self: center !important }
39
+
37
40
  /* Flexbox - Helper */
38
41
  .flex-0-1@{suffix} { flex: 0 1 auto !important }
39
42
  .flex-1-0@{suffix} { flex: 1 0 auto !important }
@@ -70,9 +73,4 @@ each(@gridColumns, {
70
73
  .grid-colspan-auto@{suffix} { grid-column: auto !important }
71
74
 
72
75
  // AutoRows
73
- .grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
74
-
75
- // Placement
76
- .place-items-center@{suffix} {
77
- place-items: center !important;
78
- }
76
+ .grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
@@ -10,6 +10,9 @@
10
10
  .max-height-0@{suffix} { max-height: 0 !important }
11
11
  .max-width-0@{suffix} { max-width: 0 !important }
12
12
 
13
+ .max-width-none@{suffix} { max-width: none !important }
14
+ .max-height-none@{suffix} { max-height: none !important }
15
+
13
16
  // width/height px
14
17
  each(@sizes-px, {
15
18
  // width
package/types.ts CHANGED
@@ -588,7 +588,7 @@ export interface DomMarkerProps {
588
588
 
589
589
  export interface DropdownSubmenuProps {
590
590
  title?: string | React.ReactNode;
591
- items?: MenuItemProps[];
591
+ items?: MenuItem[];
592
592
  disabled?: boolean;
593
593
  className?: string;
594
594
  }
@@ -769,15 +769,15 @@ export interface LineChartProps {
769
769
  tooltip?: ChartTooltip | boolean;
770
770
  }
771
771
 
772
- export interface ListMenuItems {
772
+ export interface ListMenuItem {
773
773
  group?: string | React.ReactNode;
774
774
  groupNavItem?: React.ReactNode;
775
- navItems: NavItems[];
775
+ navItems: NavItem[];
776
776
  isSubItem?: boolean;
777
777
  }
778
778
 
779
779
  export interface ListMenuProps {
780
- menuItems: ListMenuItems[];
780
+ menuItems: ListMenuItem[];
781
781
  enableFilter?: boolean;
782
782
  focusFilter?: boolean;
783
783
  filterKey?: string;
@@ -808,7 +808,7 @@ export type markerColor =
808
808
  | 'bg-map-marker-geofence'
809
809
  | 'bg-map-marker-route';
810
810
 
811
- export interface MediaDialogMediaProps {
811
+ export interface MediaDialogMedia {
812
812
  type: 'image' | 'video';
813
813
  src: string;
814
814
  title: string | React.ReactNode;
@@ -818,7 +818,7 @@ export interface MediaDialogMediaProps {
818
818
  }
819
819
 
820
820
  export interface MediaDialogProps extends BaseDialogProps {
821
- media: MediaDialogMediaProps[];
821
+ media: MediaDialogMedia[];
822
822
  previousButtonText: string | React.ReactNode;
823
823
  previousButtonCallback?: Function;
824
824
  nextButtonText: string | React.ReactNode;
@@ -984,7 +984,7 @@ export interface MarkerLayerProps {
984
984
  clusterDissolvable?: boolean;
985
985
  }
986
986
 
987
- export interface MenuItemProps {
987
+ export interface MenuItem {
988
988
  value?: string | React.ReactNode;
989
989
  disabled?: boolean;
990
990
  divider?: boolean;
@@ -1005,7 +1005,7 @@ interface MultiselectCounterMessage {
1005
1005
  many: string | React.ReactNode;
1006
1006
  }
1007
1007
 
1008
- interface MultiselectOption {
1008
+ export interface MultiselectOption {
1009
1009
  id: string;
1010
1010
  label: string | React.ReactNode;
1011
1011
  selected?: boolean;
@@ -1023,7 +1023,7 @@ export interface MultiselectProps {
1023
1023
  pullRight?: boolean;
1024
1024
  autoDropDirection?: boolean;
1025
1025
  value?: [];
1026
- bsSize?: 'sm' | 'lg' | 'small' | 'large';
1026
+ bsSize?: 'sm' | 'lg';
1027
1027
  disabled?: boolean;
1028
1028
  className?: string;
1029
1029
  tabIndex?: number;
@@ -1038,7 +1038,7 @@ export interface MultiselectProps {
1038
1038
 
1039
1039
  // N --------------------------------------------------------------------------------------------------
1040
1040
 
1041
- export interface NavItems {
1041
+ export interface NavItem {
1042
1042
  key: string;
1043
1043
  item: React.ReactNode;
1044
1044
  disabled?: boolean;
@@ -1083,7 +1083,7 @@ export interface NumberControlProps {
1083
1083
  step?: number;
1084
1084
  disabled?: boolean;
1085
1085
  onValueChanged?: (value: number) => void;
1086
- bsSize?: 'sm' | 'lg' | 'small' | 'large';
1086
+ bsSize?: 'sm' | 'lg';
1087
1087
  className?: string;
1088
1088
  unit?: string | React.ReactNode;
1089
1089
  inputAddon?: string;
@@ -1097,7 +1097,7 @@ export interface NumberInputProps {
1097
1097
  type?: string;
1098
1098
  disabled?: boolean;
1099
1099
  onValueChanged?: (value: number) => void;
1100
- bsSize?: 'sm' | 'lg' | 'small' | 'large';
1100
+ bsSize?: 'sm' | 'lg';
1101
1101
  className?: string;
1102
1102
  unit?: string | React.ReactNode;
1103
1103
  inputAddon?: string;
@@ -1557,7 +1557,7 @@ export interface SimpleButtonDropdownProps {
1557
1557
  noCaret?: boolean;
1558
1558
  splitButton?: boolean;
1559
1559
  usePortal?: boolean;
1560
- items: MenuItemProps[];
1560
+ items: MenuItem[];
1561
1561
  className?: string;
1562
1562
  dropdownClassName?: string;
1563
1563
  disabled?: boolean;
@@ -1891,15 +1891,15 @@ export interface TagListProps {
1891
1891
  className?: string;
1892
1892
  }
1893
1893
 
1894
- export interface TagManagerTagProp {
1894
+ export interface TagManagerTag {
1895
1895
  label?: string;
1896
1896
  toAdd?: boolean;
1897
1897
  toRemove?: boolean;
1898
1898
  }
1899
1899
 
1900
1900
  export interface TagManagerProps {
1901
- tagList: TagManagerTagProp[];
1902
- tagSuggestions: TagManagerTagProp[];
1901
+ tagList: TagManagerTag[];
1902
+ tagSuggestions: TagManagerTag[];
1903
1903
  onTagListChange?: Function;
1904
1904
  placeholder?: string;
1905
1905
  customTagPlaceholder?: string;
package/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.1-beta.24"
2
+ "version": "0.16.1"
3
3
  }
package/BoxConnector.js DELETED
@@ -1,2 +0,0 @@
1
- import { default as _BoxConnector } from './components/boxConnector/BoxConnector';
2
- export { _BoxConnector as default };
@@ -1,40 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["pageBackground", "boxBackground", "icon", "contentClassName", "className", "hasBorder", "borderColor", "children"];
4
- var getBorderColorFromBg = function getBorderColorFromBg(bg) {
5
- return bg.replace('bg', 'border-color');
6
- };
7
- var BoxConnector = function BoxConnector(props) {
8
- var pageBackground = props.pageBackground,
9
- boxBackground = props.boxBackground,
10
- icon = props.icon,
11
- contentClassName = props.contentClassName,
12
- className = props.className,
13
- hasBorder = props.hasBorder,
14
- borderColor = props.borderColor,
15
- children = props.children,
16
- remainingProps = _objectWithoutProperties(props, _excluded);
17
- return /*#__PURE__*/React.createElement("div", _extends({}, remainingProps, {
18
- className: "height-20 display-flex justify-content-center align-items-center position-relative ".concat(className)
19
- }), /*#__PURE__*/React.createElement("span", {
20
- className: "width-20 height-20 rounded-circle ".concat(pageBackground, " position-relative z-index-1 margin-right--10 ").concat(hasBorder ? "border border-right-only ".concat(borderColor) : '')
21
- }), /*#__PURE__*/React.createElement("span", {
22
- className: "".concat(boxBackground, " ").concat(hasBorder ? "border ".concat(getBorderColorFromBg(boxBackground)) : '', " padding-left-20 padding-right-20")
23
- }, /*#__PURE__*/React.createElement("span", {
24
- className: contentClassName
25
- }, children ? children : /*#__PURE__*/React.createElement("span", {
26
- className: "rioglyph ".concat(icon)
27
- }))), /*#__PURE__*/React.createElement("span", {
28
- className: "width-20 height-20 rounded-circle ".concat(pageBackground, " position-relative z-index-1 margin-left--10 ").concat(hasBorder ? "border border-left-only ".concat(borderColor) : '')
29
- }));
30
- };
31
- BoxConnector.defaultProps = {
32
- pageBackground: 'bg-white',
33
- boxBackground: 'bg-lightest',
34
- icon: 'rioglyph-plus',
35
- contentClassName: 'text-color-light',
36
- hasBorder: false,
37
- borderColor: '',
38
- className: ''
39
- };
40
- export default BoxConnector;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "default", {
8
- enumerable: true,
9
- get: function get() {
10
- return _BoxConnector2["default"];
11
- }
12
- });
13
- var _BoxConnector2 = _interopRequireDefault(require("./components/boxConnector/BoxConnector"));
@@ -1,48 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports["default"] = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
- var _excluded = ["pageBackground", "boxBackground", "icon", "contentClassName", "className", "hasBorder", "borderColor", "children"];
11
- var getBorderColorFromBg = function getBorderColorFromBg(bg) {
12
- return bg.replace('bg', 'border-color');
13
- };
14
- var BoxConnector = function BoxConnector(props) {
15
- var pageBackground = props.pageBackground,
16
- boxBackground = props.boxBackground,
17
- icon = props.icon,
18
- contentClassName = props.contentClassName,
19
- className = props.className,
20
- hasBorder = props.hasBorder,
21
- borderColor = props.borderColor,
22
- children = props.children,
23
- remainingProps = (0, _objectWithoutProperties2["default"])(props, _excluded);
24
- return /*#__PURE__*/React.createElement("div", (0, _extends2["default"])({}, remainingProps, {
25
- className: "height-20 display-flex justify-content-center align-items-center position-relative ".concat(className)
26
- }), /*#__PURE__*/React.createElement("span", {
27
- className: "width-20 height-20 rounded-circle ".concat(pageBackground, " position-relative z-index-1 margin-right--10 ").concat(hasBorder ? "border border-right-only ".concat(borderColor) : '')
28
- }), /*#__PURE__*/React.createElement("span", {
29
- className: "".concat(boxBackground, " ").concat(hasBorder ? "border ".concat(getBorderColorFromBg(boxBackground)) : '', " padding-left-20 padding-right-20")
30
- }, /*#__PURE__*/React.createElement("span", {
31
- className: contentClassName
32
- }, children ? children : /*#__PURE__*/React.createElement("span", {
33
- className: "rioglyph ".concat(icon)
34
- }))), /*#__PURE__*/React.createElement("span", {
35
- className: "width-20 height-20 rounded-circle ".concat(pageBackground, " position-relative z-index-1 margin-left--10 ").concat(hasBorder ? "border border-left-only ".concat(borderColor) : '')
36
- }));
37
- };
38
- BoxConnector.defaultProps = {
39
- pageBackground: 'bg-white',
40
- boxBackground: 'bg-lightest',
41
- icon: 'rioglyph-plus',
42
- contentClassName: 'text-color-light',
43
- hasBorder: false,
44
- borderColor: '',
45
- className: ''
46
- };
47
- var _default = BoxConnector;
48
- exports["default"] = _default;