@rio-cloud/rio-uikit 0.15.0-beta-49 → 0.16.0-beta-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 (207) hide show
  1. package/README.md +231 -187
  2. package/lib/components/actionBarItem/ActionBarItem.js +4 -4
  3. package/lib/components/actionBarItem/ActionBarItemPopoverContent.js +43 -0
  4. package/lib/components/actionBarItem/ActionBarOverlay.js +8 -3
  5. package/lib/components/applicationHeader/AppMenuDropdown.js +9 -13
  6. package/lib/components/applicationLayout/ApplicationLayout.js +7 -9
  7. package/lib/components/applicationLayout/ApplicationLayoutBody.js +5 -3
  8. package/lib/components/assetTree/AssetTree.js +1 -1
  9. package/lib/components/assetTree/AssetTree.less +2 -2
  10. package/lib/components/assetTree/Tree.js +2 -2
  11. package/lib/components/assetTree/TreeLeaf.js +9 -9
  12. package/lib/components/bottomSheet/BottomSheet.js +11 -7
  13. package/lib/components/browserWarning/BrowserWarningMessageDE.js +1 -1
  14. package/lib/components/browserWarning/BrowserWarningMessageEN.js +1 -1
  15. package/lib/components/carousel/Carousel.js +7 -426
  16. package/lib/components/checkbox/Checkbox.js +4 -4
  17. package/lib/components/clearableInput/ClearableInput.less +1 -1
  18. package/lib/components/datepicker/DatePicker.js +51 -73
  19. package/lib/components/datepicker/DatePicker.less +31 -5
  20. package/lib/components/dropdown/ButtonDropdown.js +149 -181
  21. package/lib/components/listMenu/ListMenu.js +40 -23
  22. package/lib/components/numberControl/NumberControl.js +4 -0
  23. package/lib/components/numberInput/NumberInput.js +21 -20
  24. package/lib/components/onboarding/OnboardingTip.js +9 -9
  25. package/lib/components/states/NotBookedState.js +2 -2
  26. package/lib/components/table/TableSettingsDialogFooter.js +1 -1
  27. package/lib/components/teaser/Teaser.js +1 -1
  28. package/lib/components/teaser/TeaserContainer.js +8 -8
  29. package/lib/components/tooltip/Tooltip.js +4 -4
  30. package/lib/components/tooltip/Tooltip.less +0 -10
  31. package/lib/es/DeviceUtils.d.ts +4 -2
  32. package/lib/es/SortDirection.d.ts +5 -0
  33. package/lib/es/deviceUtils.js +12 -0
  34. package/lib/hooks/useClipboard.js +2 -2
  35. package/lib/style/css/_exports/man-uikit.less +7 -5
  36. package/lib/style/css/_exports/rio-buyButton.less +30 -41
  37. package/lib/style/css/_exports/rio-uikit-core.less +105 -127
  38. package/lib/style/css/_exports/rio-uikit-print-utilities.less +6 -11
  39. package/lib/style/css/_exports/rio-uikit-responsive-utilities.less +6 -11
  40. package/lib/style/css/_exports/rio-uikit.less +5 -4
  41. package/lib/style/css/_exports/rio-website.less +110 -13
  42. package/lib/style/css/_exports/vw-uikit.less +10 -8
  43. package/lib/style/css/animations/_imports.less +9 -0
  44. package/lib/style/css/animations/collapse.less +16 -0
  45. package/lib/style/css/animations/fade.less +28 -0
  46. package/lib/style/css/animations/pinging.less +7 -0
  47. package/lib/style/css/animations/rotate.less +52 -0
  48. package/lib/style/css/animations/scale.less +35 -0
  49. package/lib/style/css/animations/slide.less +39 -0
  50. package/lib/style/css/animations/spinning.less +4 -0
  51. package/lib/style/css/animations/transition.less +129 -0
  52. package/lib/style/css/animations/translate.less +28 -0
  53. package/lib/style/css/bootstrap/badges.less +0 -12
  54. package/lib/style/css/bootstrap/dropdowns.less +10 -3
  55. package/lib/style/css/bootstrap/forms.less +38 -36
  56. package/lib/style/css/bootstrap/input-groups.less +4 -0
  57. package/lib/style/css/bootstrap/mixins/forms.less +1 -1
  58. package/lib/style/css/bootstrap/type.less +11 -4
  59. package/lib/style/css/components/Activity.less +93 -0
  60. package/lib/style/css/components/ApplicationHeader.less +438 -0
  61. package/lib/style/css/components/ApplicationLayout.less +236 -0
  62. package/lib/style/css/components/AssetTree.less +443 -0
  63. package/lib/style/css/components/AutoSuggest.less +22 -0
  64. package/lib/style/css/components/BottomSheet.less +14 -0
  65. package/lib/style/css/components/Carousel.less +212 -0
  66. package/lib/style/css/components/Checkbox.less +224 -0
  67. package/lib/style/css/components/ClearableInput.less +115 -0
  68. package/lib/style/css/components/Counter.less +142 -0
  69. package/lib/style/css/components/DataTabs.less +100 -0
  70. package/lib/style/css/components/DatePicker.less +391 -0
  71. package/lib/style/css/components/Dialog.less +482 -0
  72. package/lib/style/css/components/Dropdown.less +186 -0
  73. package/lib/style/css/components/Expander.less +196 -0
  74. package/lib/style/css/components/FilePicker.less +8 -0
  75. package/lib/style/css/components/ListMenu.less +77 -0
  76. package/lib/style/css/components/MapHere.less +91 -0
  77. package/lib/style/css/components/MapMarker.less +347 -0
  78. package/lib/style/css/components/MapSettings.less +140 -0
  79. package/lib/style/css/components/NoData.less +8 -0
  80. package/lib/style/css/components/Notification.less +234 -0
  81. package/lib/style/css/components/RadioButton.less +173 -0
  82. package/lib/style/css/components/Resizer.less +43 -0
  83. package/lib/style/css/components/Select.less +274 -0
  84. package/lib/style/css/components/Sidebar.less +157 -0
  85. package/lib/style/css/components/Slider.less +278 -0
  86. package/lib/style/css/components/Spinner.less +49 -0
  87. package/lib/style/css/components/StatsWidget.less +111 -0
  88. package/lib/style/css/components/SteppedProgressBar.less +323 -0
  89. package/lib/style/css/components/SupportMarker.less +34 -0
  90. package/lib/style/css/components/Switch.less +145 -0
  91. package/lib/style/css/components/TableSettingsDialog.less +96 -0
  92. package/lib/style/css/components/TableSortArrows.less +54 -0
  93. package/lib/style/css/components/Tag.less +246 -0
  94. package/lib/style/css/components/TagManager.less +4 -0
  95. package/lib/style/css/components/Teaser.less +12 -0
  96. package/lib/style/css/components/Timeline.less +69 -0
  97. package/lib/style/css/components/Tooltip.less +230 -0
  98. package/lib/style/css/design/alerts.less +55 -0
  99. package/lib/style/css/design/aspect-ratio.less +23 -0
  100. package/lib/style/css/design/badges.less +120 -0
  101. package/lib/style/css/design/blockquote.less +49 -0
  102. package/lib/style/css/design/border.less +192 -0
  103. package/lib/style/css/design/breadcrumbs.less +20 -0
  104. package/lib/style/css/design/button-groups.less +194 -0
  105. package/lib/style/css/design/buttons.less +540 -0
  106. package/lib/style/css/design/callouts.less +27 -0
  107. package/lib/style/css/design/caret.less +28 -0
  108. package/lib/style/css/design/close.less +12 -0
  109. package/lib/style/css/design/code.less +45 -0
  110. package/lib/style/css/design/colors.less +202 -0
  111. package/lib/style/css/design/cols.less +56 -0
  112. package/lib/style/css/design/container.less +29 -0
  113. package/lib/style/css/design/cursors.less +19 -0
  114. package/lib/style/css/design/custom.less +20 -0
  115. package/lib/style/css/design/ellipsis.less +46 -0
  116. package/lib/style/css/design/flexgrid.less +7 -0
  117. package/lib/style/css/design/fonts.less +318 -0
  118. package/lib/style/css/design/form-input-groups.less +245 -0
  119. package/lib/style/css/design/form-inputs.less +655 -0
  120. package/lib/style/css/design/iframe.less +80 -0
  121. package/lib/style/css/design/images.less +47 -0
  122. package/lib/style/css/design/labels.less +66 -0
  123. package/lib/style/css/design/list-group.less +95 -0
  124. package/lib/style/css/design/navs.less +254 -0
  125. package/lib/style/css/design/normalize.less +436 -0
  126. package/lib/style/css/design/opacity.less +26 -0
  127. package/lib/style/css/design/overflow.less +1 -0
  128. package/lib/style/css/design/pagination.less +161 -0
  129. package/lib/style/css/design/panels.less +105 -0
  130. package/lib/style/css/design/popovers.less +117 -0
  131. package/lib/style/css/design/position.less +16 -0
  132. package/lib/style/css/design/progress-bars.less +131 -0
  133. package/lib/style/css/design/responsive/_imports.less +68 -0
  134. package/lib/style/css/design/responsive/backgrounds.less +32 -0
  135. package/lib/style/css/design/responsive/display.less +9 -0
  136. package/lib/style/css/design/responsive/flexgrid.less +75 -0
  137. package/lib/style/css/design/responsive/floating.less +4 -0
  138. package/lib/style/css/design/responsive/gap.less +41 -0
  139. package/lib/style/css/design/responsive/hyphens.less +14 -0
  140. package/lib/style/css/design/responsive/margin.less +127 -0
  141. package/lib/style/css/design/responsive/overflow.less +16 -0
  142. package/lib/style/css/design/responsive/padding.less +71 -0
  143. package/lib/style/css/design/responsive/position.less +102 -0
  144. package/lib/style/css/design/responsive/sizing.less +115 -0
  145. package/lib/style/css/design/responsive/text.less +71 -0
  146. package/lib/style/css/design/responsive/visibility.less +115 -0
  147. package/lib/style/css/design/responsive-embed.less +31 -0
  148. package/lib/style/css/design/responsive-video.less +22 -0
  149. package/lib/style/css/design/rioglyph.less +24 -0
  150. package/lib/style/css/design/rounded.less +44 -0
  151. package/lib/style/css/design/shadows.less +65 -0
  152. package/lib/style/css/design/tables.less +976 -0
  153. package/lib/style/css/design/text.less +201 -0
  154. package/lib/style/css/design/theme.less +200 -0
  155. package/lib/style/css/design/thumbnails.less +29 -0
  156. package/lib/style/css/design/transition.less +33 -0
  157. package/lib/style/css/design/type.less +159 -0
  158. package/lib/style/css/design/utilities.less +75 -0
  159. package/lib/style/css/design/visibilty.less +38 -0
  160. package/lib/style/css/design/wells.less +17 -0
  161. package/lib/style/css/design/z-index.less +21 -0
  162. package/lib/style/css/mapping/breakpoint-map.less +44 -0
  163. package/lib/style/css/mapping/color-map.less +200 -0
  164. package/lib/style/css/mapping/cols-map.less +15 -0
  165. package/lib/style/css/mapping/numbers-map.less +16 -0
  166. package/lib/style/css/mapping/positions-map.less +21 -0
  167. package/lib/style/css/mapping/sizes-map.less +129 -0
  168. package/lib/style/css/mapping/spacings-map.less +28 -0
  169. package/lib/style/css/mixins/_mixins.less +13 -0
  170. package/lib/style/css/mixins/alerts.less +13 -0
  171. package/lib/style/css/mixins/border-radius.less +16 -0
  172. package/lib/style/css/mixins/buttons.less +117 -0
  173. package/lib/style/css/mixins/clearfix.less +9 -0
  174. package/lib/style/css/mixins/cols.less +59 -0
  175. package/lib/style/css/mixins/forms.less +61 -0
  176. package/lib/style/css/mixins/panels.less +27 -0
  177. package/lib/style/css/mixins/placeholder.less +17 -0
  178. package/lib/style/css/mixins/reset.less +27 -0
  179. package/lib/style/css/mixins/sizings.less +21 -0
  180. package/lib/style/css/mixins/spinner.less +30 -0
  181. package/lib/style/css/mixins/table.less +26 -0
  182. package/lib/style/css/mixins/tabs.less +4 -0
  183. package/lib/style/css/mixins/text.less +5 -0
  184. package/lib/style/css/print/print.less +1 -4
  185. package/lib/style/css/rio-theme/alerts.less +23 -61
  186. package/lib/style/css/rio-theme/badges.less +47 -12
  187. package/lib/style/css/rio-theme/blockquote.less +14 -97
  188. package/lib/style/css/rio-theme/buttons.less +32 -46
  189. package/lib/style/css/rio-theme/dropdowns.less +2 -2
  190. package/lib/style/css/rio-theme/forms.less +49 -20
  191. package/lib/style/css/rio-theme/input-groups.less +44 -25
  192. package/lib/style/css/rio-theme/mixins/alerts.less +13 -1
  193. package/lib/style/css/rio-theme/navbar.less +1 -1
  194. package/lib/style/css/rio-theme/variables.less +1 -0
  195. package/lib/style/css/shared/colors.json +1 -1
  196. package/lib/style/css/shared/colors.less +11 -8
  197. package/lib/style/css/shared/text.less +6 -5
  198. package/lib/style/css/utils/responsive/grid.less +15 -6
  199. package/lib/style/css/utils/rounded.less +1 -0
  200. package/lib/style/css/variables.less +179 -0
  201. package/lib/style/fonts/rioglyph/rioglyph.less +1 -11
  202. package/lib/types.ts +45 -59
  203. package/lib/utils/buttonEffect.js +11 -4
  204. package/lib/utils/deviceUtils.js +28 -37
  205. package/lib/utils/init.js +174 -0
  206. package/lib/version.json +1 -1
  207. package/package.json +79 -50
package/README.md CHANGED
@@ -6,202 +6,246 @@ The documentation and how to integrate the UIKIT in your project can be found he
6
6
 
7
7
  ## Release
8
8
 
9
- Starting with version 0.12.8, all versions of the uikit will be available under https://uikit.developers.rio.cloud/${VERSION}.
9
+ Starting with version `0.12.8`, all versions of the uikit will be available under https://uikit.developers.rio.cloud/${VERSION}/.
10
10
 
11
- Changes made without incrementing the version number will not be published under the new version number, but the latest
12
- "in development" state will be available under https://uikit.developers.rio.cloud/latest
11
+ Starting with verion `0.14.6`, even the corresponding uikit-demo will be published under https://uikit.developers.rio.cloud/${VERSION}/.
12
+
13
+ All changes made on `master` will be deployed to https://uikit.developers.rio.cloud/latest/.
14
+
15
+ When releasing a new version:
16
+
17
+ 1. Create new `release/${VERSION}` branch and trigger pipeline with a commit
18
+ 2. After the new uikit-demo is published, update `versionsList.json` in `master` branch.
13
19
 
14
20
  ## Development
21
+
15
22
  To run the UIKIT and the UIKIT Demo locally for development, use:
16
23
 
17
24
  ```bash
18
25
  $ npm install && cd uikit-demo/ && npm i && npm start
19
26
  ```
27
+
20
28
  The UIKIT demo is accessable at http://localhost:8090.
21
29
 
30
+ ## Versions List
31
+
32
+ We introduced a versions list containing all the versions for which a uikit-demo exists. It looks as follows.
33
+
34
+ ```json
35
+ {
36
+ "latest_release": "0.15.1",
37
+ "versions": [
38
+ {
39
+ "id": "0.16.0",
40
+ "label": "v0.16.0",
41
+ "path": "latest/",
42
+ "url": "https://uikit.developers.rio.cloud/latest/",
43
+ "tag": "Beta"
44
+ },
45
+ {
46
+ "id": "0.15.1",
47
+ "label": "v0.15.1",
48
+ "path": "0.15.1/",
49
+ "url": "https://uikit.developers.rio.cloud/0.15.1/"
50
+ },
51
+ {
52
+ "id": "0.15.0",
53
+ "label": "v0.15.0",
54
+ "path": "0.15.0/",
55
+ "url": "https://uikit.developers.rio.cloud/0.15.0/"
56
+ },
57
+ {
58
+ "id": "0.14.6",
59
+ "label": "v0.14.6",
60
+ "path": "0.14.6/",
61
+ "url": "https://uikit.developers.rio.cloud/0.14.6/"
62
+ }
63
+ ]
64
+ }
65
+ ```
66
+
22
67
  ## License
23
68
 
24
69
  RIO UIKIT is licensed under the Apache 2.0 license.
25
70
 
26
-
27
71
  Apache License
28
72
  Version 2.0, January 2004
29
73
  http://www.apache.org/licenses/
30
74
 
31
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
32
-
33
- 1. Definitions.
34
-
35
- "License" shall mean the terms and conditions for use, reproduction,
36
- and distribution as defined by Sections 1 through 9 of this document.
37
-
38
- "Licensor" shall mean the copyright owner or entity authorized by
39
- the copyright owner that is granting the License.
40
-
41
- "Legal Entity" shall mean the union of the acting entity and all
42
- other entities that control, are controlled by, or are under common
43
- control with that entity. For the purposes of this definition,
44
- "control" means (i) the power, direct or indirect, to cause the
45
- direction or management of such entity, whether by contract or
46
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
47
- outstanding shares, or (iii) beneficial ownership of such entity.
48
-
49
- "You" (or "Your") shall mean an individual or Legal Entity
50
- exercising permissions granted by this License.
51
-
52
- "Source" form shall mean the preferred form for making modifications,
53
- including but not limited to software source code, documentation
54
- source, and configuration files.
55
-
56
- "Object" form shall mean any form resulting from mechanical
57
- transformation or translation of a Source form, including but
58
- not limited to compiled object code, generated documentation,
59
- and conversions to other media types.
60
-
61
- "Work" shall mean the work of authorship, whether in Source or
62
- Object form, made available under the License, as indicated by a
63
- copyright notice that is included in or attached to the work
64
- (an example is provided in the Appendix below).
65
-
66
- "Derivative Works" shall mean any work, whether in Source or Object
67
- form, that is based on (or derived from) the Work and for which the
68
- editorial revisions, annotations, elaborations, or other modifications
69
- represent, as a whole, an original work of authorship. For the purposes
70
- of this License, Derivative Works shall not include works that remain
71
- separable from, or merely link (or bind by name) to the interfaces of,
72
- the Work and Derivative Works thereof.
73
-
74
- "Contribution" shall mean any work of authorship, including
75
- the original version of the Work and any modifications or additions
76
- to that Work or Derivative Works thereof, that is intentionally
77
- submitted to Licensor for inclusion in the Work by the copyright owner
78
- or by an individual or Legal Entity authorized to submit on behalf of
79
- the copyright owner. For the purposes of this definition, "submitted"
80
- means any form of electronic, verbal, or written communication sent
81
- to the Licensor or its representatives, including but not limited to
82
- communication on electronic mailing lists, source code control systems,
83
- and issue tracking systems that are managed by, or on behalf of, the
84
- Licensor for the purpose of discussing and improving the Work, but
85
- excluding communication that is conspicuously marked or otherwise
86
- designated in writing by the copyright owner as "Not a Contribution."
87
-
88
- "Contributor" shall mean Licensor and any individual or Legal Entity
89
- on behalf of whom a Contribution has been received by Licensor and
90
- subsequently incorporated within the Work.
91
-
92
- 2. Grant of Copyright License. Subject to the terms and conditions of
93
- this License, each Contributor hereby grants to You a perpetual,
94
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
95
- copyright license to reproduce, prepare Derivative Works of,
96
- publicly display, publicly perform, sublicense, and distribute the
97
- Work and such Derivative Works in Source or Object form.
98
-
99
- 3. Grant of Patent License. Subject to the terms and conditions of
100
- this License, each Contributor hereby grants to You a perpetual,
101
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
102
- (except as stated in this section) patent license to make, have made,
103
- use, offer to sell, sell, import, and otherwise transfer the Work,
104
- where such license applies only to those patent claims licensable
105
- by such Contributor that are necessarily infringed by their
106
- Contribution(s) alone or by combination of their Contribution(s)
107
- with the Work to which such Contribution(s) was submitted. If You
108
- institute patent litigation against any entity (including a
109
- cross-claim or counterclaim in a lawsuit) alleging that the Work
110
- or a Contribution incorporated within the Work constitutes direct
111
- or contributory patent infringement, then any patent licenses
112
- granted to You under this License for that Work shall terminate
113
- as of the date such litigation is filed.
114
-
115
- 4. Redistribution. You may reproduce and distribute copies of the
116
- Work or Derivative Works thereof in any medium, with or without
117
- modifications, and in Source or Object form, provided that You
118
- meet the following conditions:
119
-
120
- (a) You must give any other recipients of the Work or
121
- Derivative Works a copy of this License; and
122
-
123
- (b) You must cause any modified files to carry prominent notices
124
- stating that You changed the files; and
125
-
126
- (c) You must retain, in the Source form of any Derivative Works
127
- that You distribute, all copyright, patent, trademark, and
128
- attribution notices from the Source form of the Work,
129
- excluding those notices that do not pertain to any part of
130
- the Derivative Works; and
131
-
132
- (d) If the Work includes a "NOTICE" text file as part of its
133
- distribution, then any Derivative Works that You distribute must
134
- include a readable copy of the attribution notices contained
135
- within such NOTICE file, excluding those notices that do not
136
- pertain to any part of the Derivative Works, in at least one
137
- of the following places: within a NOTICE text file distributed
138
- as part of the Derivative Works; within the Source form or
139
- documentation, if provided along with the Derivative Works; or,
140
- within a display generated by the Derivative Works, if and
141
- wherever such third-party notices normally appear. The contents
142
- of the NOTICE file are for informational purposes only and
143
- do not modify the License. You may add Your own attribution
144
- notices within Derivative Works that You distribute, alongside
145
- or as an addendum to the NOTICE text from the Work, provided
146
- that such additional attribution notices cannot be construed
147
- as modifying the License.
148
-
149
- You may add Your own copyright statement to Your modifications and
150
- may provide additional or different license terms and conditions
151
- for use, reproduction, or distribution of Your modifications, or
152
- for any such Derivative Works as a whole, provided Your use,
153
- reproduction, and distribution of the Work otherwise complies with
154
- the conditions stated in this License.
155
-
156
- 5. Submission of Contributions. Unless You explicitly state otherwise,
157
- any Contribution intentionally submitted for inclusion in the Work
158
- by You to the Licensor shall be under the terms and conditions of
159
- this License, without any additional terms or conditions.
160
- Notwithstanding the above, nothing herein shall supersede or modify
161
- the terms of any separate license agreement you may have executed
162
- with Licensor regarding such Contributions.
163
-
164
- 6. Trademarks. This License does not grant permission to use the trade
165
- names, trademarks, service marks, or product names of the Licensor,
166
- except as required for reasonable and customary use in describing the
167
- origin of the Work and reproducing the content of the NOTICE file.
168
-
169
- 7. Disclaimer of Warranty. Unless required by applicable law or
170
- agreed to in writing, Licensor provides the Work (and each
171
- Contributor provides its Contributions) on an "AS IS" BASIS,
172
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
173
- implied, including, without limitation, any warranties or conditions
174
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
175
- PARTICULAR PURPOSE. You are solely responsible for determining the
176
- appropriateness of using or redistributing the Work and assume any
177
- risks associated with Your exercise of permissions under this License.
178
-
179
- 8. Limitation of Liability. In no event and under no legal theory,
180
- whether in tort (including negligence), contract, or otherwise,
181
- unless required by applicable law (such as deliberate and grossly
182
- negligent acts) or agreed to in writing, shall any Contributor be
183
- liable to You for damages, including any direct, indirect, special,
184
- incidental, or consequential damages of any character arising as a
185
- result of this License or out of the use or inability to use the
186
- Work (including but not limited to damages for loss of goodwill,
187
- work stoppage, computer failure or malfunction, or any and all
188
- other commercial damages or losses), even if such Contributor
189
- has been advised of the possibility of such damages.
190
-
191
- 9. Accepting Warranty or Additional Liability. While redistributing
192
- the Work or Derivative Works thereof, You may choose to offer,
193
- and charge a fee for, acceptance of support, warranty, indemnity,
194
- or other liability obligations and/or rights consistent with this
195
- License. However, in accepting such obligations, You may act only
196
- on Your own behalf and on Your sole responsibility, not on behalf
197
- of any other Contributor, and only if You agree to indemnify,
198
- defend, and hold each Contributor harmless for any liability
199
- incurred by, or claims asserted against, such Contributor by reason
200
- of your accepting any such warranty or additional liability.
201
-
202
- END OF TERMS AND CONDITIONS
203
-
204
- APPENDIX: How to apply the Apache License to your work.
75
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
76
+
77
+ 1. Definitions.
78
+
79
+ "License" shall mean the terms and conditions for use, reproduction,
80
+ and distribution as defined by Sections 1 through 9 of this document.
81
+
82
+ "Licensor" shall mean the copyright owner or entity authorized by
83
+ the copyright owner that is granting the License.
84
+
85
+ "Legal Entity" shall mean the union of the acting entity and all
86
+ other entities that control, are controlled by, or are under common
87
+ control with that entity. For the purposes of this definition,
88
+ "control" means (i) the power, direct or indirect, to cause the
89
+ direction or management of such entity, whether by contract or
90
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
91
+ outstanding shares, or (iii) beneficial ownership of such entity.
92
+
93
+ "You" (or "Your") shall mean an individual or Legal Entity
94
+ exercising permissions granted by this License.
95
+
96
+ "Source" form shall mean the preferred form for making modifications,
97
+ including but not limited to software source code, documentation
98
+ source, and configuration files.
99
+
100
+ "Object" form shall mean any form resulting from mechanical
101
+ transformation or translation of a Source form, including but
102
+ not limited to compiled object code, generated documentation,
103
+ and conversions to other media types.
104
+
105
+ "Work" shall mean the work of authorship, whether in Source or
106
+ Object form, made available under the License, as indicated by a
107
+ copyright notice that is included in or attached to the work
108
+ (an example is provided in the Appendix below).
109
+
110
+ "Derivative Works" shall mean any work, whether in Source or Object
111
+ form, that is based on (or derived from) the Work and for which the
112
+ editorial revisions, annotations, elaborations, or other modifications
113
+ represent, as a whole, an original work of authorship. For the purposes
114
+ of this License, Derivative Works shall not include works that remain
115
+ separable from, or merely link (or bind by name) to the interfaces of,
116
+ the Work and Derivative Works thereof.
117
+
118
+ "Contribution" shall mean any work of authorship, including
119
+ the original version of the Work and any modifications or additions
120
+ to that Work or Derivative Works thereof, that is intentionally
121
+ submitted to Licensor for inclusion in the Work by the copyright owner
122
+ or by an individual or Legal Entity authorized to submit on behalf of
123
+ the copyright owner. For the purposes of this definition, "submitted"
124
+ means any form of electronic, verbal, or written communication sent
125
+ to the Licensor or its representatives, including but not limited to
126
+ communication on electronic mailing lists, source code control systems,
127
+ and issue tracking systems that are managed by, or on behalf of, the
128
+ Licensor for the purpose of discussing and improving the Work, but
129
+ excluding communication that is conspicuously marked or otherwise
130
+ designated in writing by the copyright owner as "Not a Contribution."
131
+
132
+ "Contributor" shall mean Licensor and any individual or Legal Entity
133
+ on behalf of whom a Contribution has been received by Licensor and
134
+ subsequently incorporated within the Work.
135
+
136
+ 2. Grant of Copyright License. Subject to the terms and conditions of
137
+ this License, each Contributor hereby grants to You a perpetual,
138
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
139
+ copyright license to reproduce, prepare Derivative Works of,
140
+ publicly display, publicly perform, sublicense, and distribute the
141
+ Work and such Derivative Works in Source or Object form.
142
+
143
+ 3. Grant of Patent License. Subject to the terms and conditions of
144
+ this License, each Contributor hereby grants to You a perpetual,
145
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
146
+ (except as stated in this section) patent license to make, have made,
147
+ use, offer to sell, sell, import, and otherwise transfer the Work,
148
+ where such license applies only to those patent claims licensable
149
+ by such Contributor that are necessarily infringed by their
150
+ Contribution(s) alone or by combination of their Contribution(s)
151
+ with the Work to which such Contribution(s) was submitted. If You
152
+ institute patent litigation against any entity (including a
153
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
154
+ or a Contribution incorporated within the Work constitutes direct
155
+ or contributory patent infringement, then any patent licenses
156
+ granted to You under this License for that Work shall terminate
157
+ as of the date such litigation is filed.
158
+
159
+ 4. Redistribution. You may reproduce and distribute copies of the
160
+ Work or Derivative Works thereof in any medium, with or without
161
+ modifications, and in Source or Object form, provided that You
162
+ meet the following conditions:
163
+
164
+ (a) You must give any other recipients of the Work or
165
+ Derivative Works a copy of this License; and
166
+
167
+ (b) You must cause any modified files to carry prominent notices
168
+ stating that You changed the files; and
169
+
170
+ (c) You must retain, in the Source form of any Derivative Works
171
+ that You distribute, all copyright, patent, trademark, and
172
+ attribution notices from the Source form of the Work,
173
+ excluding those notices that do not pertain to any part of
174
+ the Derivative Works; and
175
+
176
+ (d) If the Work includes a "NOTICE" text file as part of its
177
+ distribution, then any Derivative Works that You distribute must
178
+ include a readable copy of the attribution notices contained
179
+ within such NOTICE file, excluding those notices that do not
180
+ pertain to any part of the Derivative Works, in at least one
181
+ of the following places: within a NOTICE text file distributed
182
+ as part of the Derivative Works; within the Source form or
183
+ documentation, if provided along with the Derivative Works; or,
184
+ within a display generated by the Derivative Works, if and
185
+ wherever such third-party notices normally appear. The contents
186
+ of the NOTICE file are for informational purposes only and
187
+ do not modify the License. You may add Your own attribution
188
+ notices within Derivative Works that You distribute, alongside
189
+ or as an addendum to the NOTICE text from the Work, provided
190
+ that such additional attribution notices cannot be construed
191
+ as modifying the License.
192
+
193
+ You may add Your own copyright statement to Your modifications and
194
+ may provide additional or different license terms and conditions
195
+ for use, reproduction, or distribution of Your modifications, or
196
+ for any such Derivative Works as a whole, provided Your use,
197
+ reproduction, and distribution of the Work otherwise complies with
198
+ the conditions stated in this License.
199
+
200
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
201
+ any Contribution intentionally submitted for inclusion in the Work
202
+ by You to the Licensor shall be under the terms and conditions of
203
+ this License, without any additional terms or conditions.
204
+ Notwithstanding the above, nothing herein shall supersede or modify
205
+ the terms of any separate license agreement you may have executed
206
+ with Licensor regarding such Contributions.
207
+
208
+ 6. Trademarks. This License does not grant permission to use the trade
209
+ names, trademarks, service marks, or product names of the Licensor,
210
+ except as required for reasonable and customary use in describing the
211
+ origin of the Work and reproducing the content of the NOTICE file.
212
+
213
+ 7. Disclaimer of Warranty. Unless required by applicable law or
214
+ agreed to in writing, Licensor provides the Work (and each
215
+ Contributor provides its Contributions) on an "AS IS" BASIS,
216
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
217
+ implied, including, without limitation, any warranties or conditions
218
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
219
+ PARTICULAR PURPOSE. You are solely responsible for determining the
220
+ appropriateness of using or redistributing the Work and assume any
221
+ risks associated with Your exercise of permissions under this License.
222
+
223
+ 8. Limitation of Liability. In no event and under no legal theory,
224
+ whether in tort (including negligence), contract, or otherwise,
225
+ unless required by applicable law (such as deliberate and grossly
226
+ negligent acts) or agreed to in writing, shall any Contributor be
227
+ liable to You for damages, including any direct, indirect, special,
228
+ incidental, or consequential damages of any character arising as a
229
+ result of this License or out of the use or inability to use the
230
+ Work (including but not limited to damages for loss of goodwill,
231
+ work stoppage, computer failure or malfunction, or any and all
232
+ other commercial damages or losses), even if such Contributor
233
+ has been advised of the possibility of such damages.
234
+
235
+ 9. Accepting Warranty or Additional Liability. While redistributing
236
+ the Work or Derivative Works thereof, You may choose to offer,
237
+ and charge a fee for, acceptance of support, warranty, indemnity,
238
+ or other liability obligations and/or rights consistent with this
239
+ License. However, in accepting such obligations, You may act only
240
+ on Your own behalf and on Your sole responsibility, not on behalf
241
+ of any other Contributor, and only if You agree to indemnify,
242
+ defend, and hold each Contributor harmless for any liability
243
+ incurred by, or claims asserted against, such Contributor by reason
244
+ of your accepting any such warranty or additional liability.
245
+
246
+ END OF TERMS AND CONDITIONS
247
+
248
+ APPENDIX: How to apply the Apache License to your work.
205
249
 
206
250
  To apply the Apache License to your work, attach the following
207
251
  boilerplate notice, with the fields enclosed by brackets "[]"
@@ -212,16 +256,16 @@ RIO UIKIT is licensed under the Apache 2.0 license.
212
256
  same "printed page" as the copyright notice for easier
213
257
  identification within third-party archives.
214
258
 
215
- Copyright 2021 TB Digital Services GmbH
259
+ Copyright 2021 TB Digital Services GmbH
216
260
 
217
- Licensed under the Apache License, Version 2.0 (the "License");
218
- you may not use this file except in compliance with the License.
219
- You may obtain a copy of the License at
261
+ Licensed under the Apache License, Version 2.0 (the "License");
262
+ you may not use this file except in compliance with the License.
263
+ You may obtain a copy of the License at
220
264
 
221
265
  http://www.apache.org/licenses/LICENSE-2.0
222
266
 
223
- Unless required by applicable law or agreed to in writing, software
224
- distributed under the License is distributed on an "AS IS" BASIS,
225
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
226
- See the License for the specific language governing permissions and
227
- limitations under the License.
267
+ Unless required by applicable law or agreed to in writing, software
268
+ distributed under the License is distributed on an "AS IS" BASIS,
269
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
270
+ See the License for the specific language governing permissions and
271
+ limitations under the License.
@@ -25,7 +25,7 @@ var _delay = _interopRequireDefault(require("lodash/fp/delay"));
25
25
 
26
26
  var _ActionBarOverlay = require("./ActionBarOverlay");
27
27
 
28
- var _ActionBarItemPopover = require("./ActionBarItemPopover");
28
+ var _ActionBarItemPopoverContent = require("./ActionBarItemPopoverContent");
29
29
 
30
30
  var _ActionBarItemIcon = require("./ActionBarItemIcon");
31
31
 
@@ -78,7 +78,7 @@ var checkIfSmallResolution = function checkIfSmallResolution() {
78
78
  var isActionBarItemPopover = function isActionBarItemPopover(child) {
79
79
  var _child$type;
80
80
 
81
- return ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === _ActionBarItemPopover.ActionBarItemPopover.displayName;
81
+ return ((_child$type = child.type) === null || _child$type === void 0 ? void 0 : _child$type.displayName) === _ActionBarItemPopoverContent.ActionBarItemPopoverContent.displayName;
82
82
  };
83
83
 
84
84
  var isActionBarItemIcon = function isActionBarItemIcon(child) {
@@ -215,7 +215,7 @@ var ActionBarItem = /*#__PURE__*/_react.default.memo(function (props) {
215
215
  show: isShown || useOffscreen,
216
216
  placement: _OverlayTrigger.default.BOTTOM_END,
217
217
  overlay: overlay,
218
- trigger: 'click',
218
+ trigger: "click",
219
219
  rootClose: false,
220
220
  popperConfig: {
221
221
  modifiers: [{
@@ -230,7 +230,7 @@ var ActionBarItem = /*#__PURE__*/_react.default.memo(function (props) {
230
230
 
231
231
  exports.ActionBarItem = ActionBarItem;
232
232
  ActionBarItem.Icon = _ActionBarItemIcon.ActionBarItemIcon;
233
- ActionBarItem.Popover = _ActionBarItemPopover.ActionBarItemPopover;
233
+ ActionBarItem.Popover = _ActionBarItemPopoverContent.ActionBarItemPopoverContent;
234
234
  ActionBarItem.List = _ActionBarItemList.ActionBarItemList;
235
235
  ActionBarItem.ListItem = _ActionBarItemListItem.ActionBarItemListItem;
236
236
  ActionBarItem.ListSeparator = _ActionBarItemListSeparator.ActionBarItemListSeparator;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = exports.ActionBarItemPopoverContent = void 0;
9
+
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+
12
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
+
14
+ var _react = _interopRequireDefault(require("react"));
15
+
16
+ var _propTypes = _interopRequireDefault(require("prop-types"));
17
+
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
20
+ var _omit = _interopRequireDefault(require("lodash/fp/omit"));
21
+
22
+ var _excluded = ["className", "children"];
23
+
24
+ var ActionBarItemPopoverContent = function ActionBarItemPopoverContent(_ref) {
25
+ var className = _ref.className,
26
+ children = _ref.children,
27
+ remainingProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
28
+ var classes = (0, _classnames.default)('ActionBarItemPopoverContent', className);
29
+ var filterProps = (0, _omit.default)(['title', 'useOffscreen']);
30
+ return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, filterProps(remainingProps), {
31
+ className: classes
32
+ }), children);
33
+ };
34
+
35
+ exports.ActionBarItemPopoverContent = ActionBarItemPopoverContent;
36
+ ActionBarItemPopoverContent.displayName = 'ActionBarItemPopoverContent';
37
+ ActionBarItemPopoverContent.propTypes = {
38
+ title: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.string]),
39
+ className: _propTypes.default.string,
40
+ useOffscreen: _propTypes.default.bool
41
+ };
42
+ var _default = ActionBarItemPopoverContent;
43
+ exports.default = _default;
@@ -44,6 +44,8 @@ var ActionBarOverlay = /*#__PURE__*/_react.default.forwardRef(function (props, r
44
44
  });
45
45
 
46
46
  var adjustedClassName = preRender && !show ? (0, _classnames.default)(className, 'position-offscreen') : className;
47
+ var popoverTitleClasses = (0, _classnames.default)('ActionBarItemPopover popover-title text-color-dark', className);
48
+ var popoverContentClasses = (0, _classnames.default)('ActionBarItemPopover popover-content', className);
47
49
  return /*#__PURE__*/_react.default.createElement(_Popover.default, (0, _extends2.default)({
48
50
  ref: ref,
49
51
  id: id,
@@ -52,9 +54,9 @@ var ActionBarOverlay = /*#__PURE__*/_react.default.forwardRef(function (props, r
52
54
  style: adjustedStyles,
53
55
  className: adjustedClassName
54
56
  }), title && /*#__PURE__*/_react.default.createElement(_Popover.default.Title, {
55
- className: "popover-title text-color-dark"
57
+ className: popoverTitleClasses
56
58
  }, title), /*#__PURE__*/_react.default.createElement(_Popover.default.Content, {
57
- className: "popover-content"
59
+ className: popoverContentClasses
58
60
  }, children));
59
61
  });
60
62
 
@@ -68,7 +70,10 @@ ActionBarOverlay.propTypes = {
68
70
  title: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.string]),
69
71
  preRender: _propTypes.default.bool,
70
72
  show: _propTypes.default.bool,
71
- width: _propTypes.default.oneOf([100, 150, 200, 250, 300, 350, 400, 450, 500])
73
+ width: _propTypes.default.oneOf([100, 150, 200, 250, 300, 350, 400, 450, 500]),
74
+ onClick: _propTypes.default.func,
75
+ style: _propTypes.default.object,
76
+ className: _propTypes.default.string
72
77
  };
73
78
  var _default = ActionBarOverlay;
74
79
  exports.default = _default;
@@ -15,10 +15,10 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
15
15
 
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
 
18
- var _reactOnclickoutside = _interopRequireDefault(require("react-onclickoutside"));
19
-
20
18
  var _classnames = _interopRequireDefault(require("classnames"));
21
19
 
20
+ var _useClickOutside = _interopRequireDefault(require("../../hooks/useClickOutside"));
21
+
22
22
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
23
 
24
24
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -49,17 +49,13 @@ var DropdownMenu = function DropdownMenu(props) {
49
49
  className: "dropdown-menu"
50
50
  }, children);
51
51
  };
52
- /*
53
- * The onClickOutside HOC cannot be on the top level anymore as we have to provide
54
- * handleClickOutside as prop.
55
- */
56
-
57
52
 
58
- var AppMenuDropdownOpener = (0, _reactOnclickoutside.default)(function (props) {
53
+ var AppMenuDropdownOpener = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
59
54
  var showAsOpen = props.showAsOpen,
60
55
  children = props.children,
61
56
  onDropdownClick = props.onDropdownClick;
62
57
  return /*#__PURE__*/_react.default.createElement("li", {
58
+ ref: ref,
63
59
  className: (0, _classnames.default)('dropdown', {
64
60
  open: showAsOpen
65
61
  }),
@@ -77,19 +73,19 @@ var AppMenuDropdown = function AppMenuDropdown(props) {
77
73
  isOpen = _useState2[0],
78
74
  setIsOpen = _useState2[1];
79
75
 
76
+ var wrapperRef = (0, _useClickOutside.default)(function () {
77
+ return setIsOpen(false);
78
+ });
79
+
80
80
  var handleDropdownClick = function handleDropdownClick() {
81
81
  return setIsOpen(!isOpen);
82
82
  };
83
83
 
84
- var handleClickOutside = function handleClickOutside() {
85
- setIsOpen(false);
86
- };
87
-
88
84
  var openWithChildren = children && children.length && isOpen;
89
85
  return /*#__PURE__*/_react.default.createElement(AppMenuDropdownOpener, {
90
86
  showAsOpen: openWithChildren,
91
87
  onDropdownClick: handleDropdownClick,
92
- handleClickOutside: handleClickOutside
88
+ ref: wrapperRef
93
89
  }, /*#__PURE__*/_react.default.createElement(ToggleButton, {
94
90
  title: title,
95
91
  caret: caret