@pinuts/bsr-uikit-relaunch 0.0.3

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 (238) hide show
  1. package/.eslintrc.js +80 -0
  2. package/.idea/.name +1 -0
  3. package/.idea/misc.xml +6 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/vcs.xml +6 -0
  6. package/CHANGELOG.md +3 -0
  7. package/README.md +75 -0
  8. package/bsr-uikit-relaunch.iml +9 -0
  9. package/config-overrides.js +32 -0
  10. package/dist/assets/Icon.js +64 -0
  11. package/dist/assets/IconComponents/getIconAdditionalCostsLarge.js +31 -0
  12. package/dist/assets/IconComponents/getIconAlertCircle.js +31 -0
  13. package/dist/assets/IconComponents/getIconAlertTriangle.js +27 -0
  14. package/dist/assets/IconComponents/getIconArchive.js +31 -0
  15. package/dist/assets/IconComponents/getIconArrowCornerUpLeft.js +25 -0
  16. package/dist/assets/IconComponents/getIconArrowDown.js +36 -0
  17. package/dist/assets/IconComponents/getIconArrowDownNoCircle.js +25 -0
  18. package/dist/assets/IconComponents/getIconArrowLeftNoCircle.js +25 -0
  19. package/dist/assets/IconComponents/getIconArrowRightDown.js +28 -0
  20. package/dist/assets/IconComponents/getIconArrowRightNoCircle.js +19 -0
  21. package/dist/assets/IconComponents/getIconArrowRightUp.js +28 -0
  22. package/dist/assets/IconComponents/getIconArrowUpNoCircle.js +25 -0
  23. package/dist/assets/IconComponents/getIconBarChart.js +40 -0
  24. package/dist/assets/IconComponents/getIconBell.js +25 -0
  25. package/dist/assets/IconComponents/getIconBriefCaseLarge.js +29 -0
  26. package/dist/assets/IconComponents/getIconCalendar.js +40 -0
  27. package/dist/assets/IconComponents/getIconChairman.js +19 -0
  28. package/dist/assets/IconComponents/getIconCheck.js +19 -0
  29. package/dist/assets/IconComponents/getIconCheckCircle.js +23 -0
  30. package/dist/assets/IconComponents/getIconCheckCircleOpen.js +31 -0
  31. package/dist/assets/IconComponents/getIconChevronDown.js +19 -0
  32. package/dist/assets/IconComponents/getIconChevronLeft.js +19 -0
  33. package/dist/assets/IconComponents/getIconChevronRight.js +19 -0
  34. package/dist/assets/IconComponents/getIconChevronUp.js +19 -0
  35. package/dist/assets/IconComponents/getIconCircle.js +21 -0
  36. package/dist/assets/IconComponents/getIconCircleMinus.js +26 -0
  37. package/dist/assets/IconComponents/getIconCirclePause.js +19 -0
  38. package/dist/assets/IconComponents/getIconCirclePlus.js +31 -0
  39. package/dist/assets/IconComponents/getIconCircleX.js +31 -0
  40. package/dist/assets/IconComponents/getIconCity.js +23 -0
  41. package/dist/assets/IconComponents/getIconCross.js +27 -0
  42. package/dist/assets/IconComponents/getIconDocumentLarge.js +28 -0
  43. package/dist/assets/IconComponents/getIconDoubleChevronLeft.js +21 -0
  44. package/dist/assets/IconComponents/getIconDoubleChevronRight.js +21 -0
  45. package/dist/assets/IconComponents/getIconDownload.js +37 -0
  46. package/dist/assets/IconComponents/getIconEdit.js +25 -0
  47. package/dist/assets/IconComponents/getIconEditPen.js +25 -0
  48. package/dist/assets/IconComponents/getIconEuro.js +21 -0
  49. package/dist/assets/IconComponents/getIconExclamationMark.js +21 -0
  50. package/dist/assets/IconComponents/getIconExternalLink.js +26 -0
  51. package/dist/assets/IconComponents/getIconEye.js +31 -0
  52. package/dist/assets/IconComponents/getIconEyeOff.js +34 -0
  53. package/dist/assets/IconComponents/getIconFile.js +25 -0
  54. package/dist/assets/IconComponents/getIconFileAddLarge.js +29 -0
  55. package/dist/assets/IconComponents/getIconFileReport.js +37 -0
  56. package/dist/assets/IconComponents/getIconFileText.js +43 -0
  57. package/dist/assets/IconComponents/getIconFilter.js +35 -0
  58. package/dist/assets/IconComponents/getIconFolder.js +37 -0
  59. package/dist/assets/IconComponents/getIconFolderLarge.js +32 -0
  60. package/dist/assets/IconComponents/getIconFunnel.js +19 -0
  61. package/dist/assets/IconComponents/getIconGraduateCapLarge.js +31 -0
  62. package/dist/assets/IconComponents/getIconInbox.js +25 -0
  63. package/dist/assets/IconComponents/getIconInfo.js +28 -0
  64. package/dist/assets/IconComponents/getIconInfoCircle.js +25 -0
  65. package/dist/assets/IconComponents/getIconInternshipLarge.js +49 -0
  66. package/dist/assets/IconComponents/getIconLeaf.js +21 -0
  67. package/dist/assets/IconComponents/getIconLeftChevron.js +21 -0
  68. package/dist/assets/IconComponents/getIconLineChart.js +24 -0
  69. package/dist/assets/IconComponents/getIconLineChartWithAxis.js +37 -0
  70. package/dist/assets/IconComponents/getIconLineDotChart.js +61 -0
  71. package/dist/assets/IconComponents/getIconLink.js +31 -0
  72. package/dist/assets/IconComponents/getIconList.js +49 -0
  73. package/dist/assets/IconComponents/getIconLock.js +25 -0
  74. package/dist/assets/IconComponents/getIconLogin.js +31 -0
  75. package/dist/assets/IconComponents/getIconLogout.js +19 -0
  76. package/dist/assets/IconComponents/getIconMail.js +25 -0
  77. package/dist/assets/IconComponents/getIconMan.js +36 -0
  78. package/dist/assets/IconComponents/getIconManagement.js +59 -0
  79. package/dist/assets/IconComponents/getIconMap.js +29 -0
  80. package/dist/assets/IconComponents/getIconMapPin.js +19 -0
  81. package/dist/assets/IconComponents/getIconMenu.js +31 -0
  82. package/dist/assets/IconComponents/getIconMessageCircle.js +25 -0
  83. package/dist/assets/IconComponents/getIconMessageSquare.js +39 -0
  84. package/dist/assets/IconComponents/getIconMinus.js +22 -0
  85. package/dist/assets/IconComponents/getIconMinusVertical.js +22 -0
  86. package/dist/assets/IconComponents/getIconMoreHorizontal.js +31 -0
  87. package/dist/assets/IconComponents/getIconNumbers.js +25 -0
  88. package/dist/assets/IconComponents/getIconPauseCircle.js +31 -0
  89. package/dist/assets/IconComponents/getIconPlus.js +31 -0
  90. package/dist/assets/IconComponents/getIconPresentation.js +36 -0
  91. package/dist/assets/IconComponents/getIconRect.js +24 -0
  92. package/dist/assets/IconComponents/getIconRefresh.js +31 -0
  93. package/dist/assets/IconComponents/getIconRefreshRepeatLarge.js +25 -0
  94. package/dist/assets/IconComponents/getIconReportAnalytics.js +31 -0
  95. package/dist/assets/IconComponents/getIconReportMoney.js +29 -0
  96. package/dist/assets/IconComponents/getIconReportOff.js +23 -0
  97. package/dist/assets/IconComponents/getIconReqWizAdditionalFundingLarge.js +28 -0
  98. package/dist/assets/IconComponents/getIconReqWizExtendFundingLarge.js +28 -0
  99. package/dist/assets/IconComponents/getIconReqWizJobLarge.js +32 -0
  100. package/dist/assets/IconComponents/getIconReqWizPauseFundingLarge.js +60 -0
  101. package/dist/assets/IconComponents/getIconReqWizScientificNetworkLarge.js +35 -0
  102. package/dist/assets/IconComponents/getIconReqWizStayAbroadLarge.js +31 -0
  103. package/dist/assets/IconComponents/getIconReqWizStudyDataLarge.js +31 -0
  104. package/dist/assets/IconComponents/getIconReqWizSubsequentFundingLarge.js +26 -0
  105. package/dist/assets/IconComponents/getIconReqWizWorldGraduateCapLarge copy.js +31 -0
  106. package/dist/assets/IconComponents/getIconReqWizWorldGraduateCapLarge.js +31 -0
  107. package/dist/assets/IconComponents/getIconRequestLarge.js +28 -0
  108. package/dist/assets/IconComponents/getIconRingChart.js +25 -0
  109. package/dist/assets/IconComponents/getIconRotate.js +17 -0
  110. package/dist/assets/IconComponents/getIconSearch.js +26 -0
  111. package/dist/assets/IconComponents/getIconSearchLarger.js +25 -0
  112. package/dist/assets/IconComponents/getIconSearchReverse.js +25 -0
  113. package/dist/assets/IconComponents/getIconSetting.js +33 -0
  114. package/dist/assets/IconComponents/getIconSortAscending.js +39 -0
  115. package/dist/assets/IconComponents/getIconSortDescending.js +39 -0
  116. package/dist/assets/IconComponents/getIconStar.js +22 -0
  117. package/dist/assets/IconComponents/getIconSum.js +19 -0
  118. package/dist/assets/IconComponents/getIconSupervisory.js +51 -0
  119. package/dist/assets/IconComponents/getIconThumbDown.js +19 -0
  120. package/dist/assets/IconComponents/getIconThumbUp.js +19 -0
  121. package/dist/assets/IconComponents/getIconTrash.js +37 -0
  122. package/dist/assets/IconComponents/getIconTriangle.js +19 -0
  123. package/dist/assets/IconComponents/getIconTriangleInverted.js +19 -0
  124. package/dist/assets/IconComponents/getIconUpload.js +31 -0
  125. package/dist/assets/IconComponents/getIconUploadCloud.js +37 -0
  126. package/dist/assets/IconComponents/getIconUploadLarge.js +26 -0
  127. package/dist/assets/IconComponents/getIconUser.js +19 -0
  128. package/dist/assets/IconComponents/getIconUserCheck.js +25 -0
  129. package/dist/assets/IconComponents/getIconUserCircle.js +31 -0
  130. package/dist/assets/IconComponents/getIconUserLarge.js +26 -0
  131. package/dist/assets/IconComponents/getIconUserOff.js +26 -0
  132. package/dist/assets/IconComponents/getIconWoman.js +33 -0
  133. package/dist/assets/IconComponents/getIconWriteNote.js +31 -0
  134. package/dist/assets/IconComponents/getIconWriteNoteLarge.js +27 -0
  135. package/dist/assets/IconComponents/getIconX.js +27 -0
  136. package/dist/assets/IconComponents/getIconZoomMoney.js +45 -0
  137. package/dist/assets/IconMapping.js +241 -0
  138. package/dist/hooks/ValidateComponents.js +31 -0
  139. package/dist/hooks/index.js +27 -0
  140. package/dist/hooks/infoPopUp.js +1 -0
  141. package/dist/hooks/useDebounceFunc.js +25 -0
  142. package/dist/hooks/useGetOptionList.js +41 -0
  143. package/dist/hooks/useValidationMessage.js +68 -0
  144. package/dist/hooks/withFieldGroup.js +206 -0
  145. package/dist/icons/AlertTriangle.js +42 -0
  146. package/dist/icons/InfoOutline.js +57 -0
  147. package/dist/icons/Verify.js +40 -0
  148. package/dist/index.js +2 -0
  149. package/dist/index.js.LICENSE.txt +32 -0
  150. package/dist/items/ArrayFieldset/ArrayFieldset.js +178 -0
  151. package/dist/items/BSRAddressSelector/BSRAddressContext.js +95 -0
  152. package/dist/items/BSRAddressSelector/BSRAddressResetButton.js +59 -0
  153. package/dist/items/BSRAddressSelector/BSRAddressSelector.js +100 -0
  154. package/dist/items/BSRAddressSelector/BSRAutocompleteField.js +262 -0
  155. package/dist/items/BSRAddressSelector/BSRStreetPlzSelector.js +127 -0
  156. package/dist/items/BSRAddressSelector/HouseNumberSelectField.js +105 -0
  157. package/dist/items/Badge/Badge.js +33 -0
  158. package/dist/items/BootstrapInputGroupField/BootstrapInputGroupField.js +68 -0
  159. package/dist/items/Button/Button.js +70 -0
  160. package/dist/items/Button/SubmitButton.js +39 -0
  161. package/dist/items/DateInputField/DateInputField.js +105 -0
  162. package/dist/items/DropDownButton/DropDownButton.js +101 -0
  163. package/dist/items/DropzoneUploadField/DropzoneUploadField.js +188 -0
  164. package/dist/items/DropzoneUploadField/acceptedUploadTypeMapping.js +55 -0
  165. package/dist/items/FieldLabel/FieldLabel.js +75 -0
  166. package/dist/items/FieldsetWrapper/FieldsetWrapper.js +51 -0
  167. package/dist/items/FormFieldWrapper/FormFieldChildPropTypes.js +64 -0
  168. package/dist/items/FormFieldWrapper/FormFieldWrapper.js +101 -0
  169. package/dist/items/FormFieldWrapper/FormFieldWrapperComponent.js +6 -0
  170. package/dist/items/Grid/BSRGridColumn.js +34 -0
  171. package/dist/items/Grid/BSRGridRow.js +28 -0
  172. package/dist/items/Grid/BSRGridRowCols.js +36 -0
  173. package/dist/items/GroupInputField/GroupInputField.js +122 -0
  174. package/dist/items/HTMLParserSanitized/HTMLParserSanitized.js +45 -0
  175. package/dist/items/Icon/Icon.js +24 -0
  176. package/dist/items/Modal/FormModal.js +98 -0
  177. package/dist/items/Modal/Modal.js +109 -0
  178. package/dist/items/NumberInputField/NumberInputField.js +142 -0
  179. package/dist/items/PictureUploadRowField/PictureUploadRowField.js +280 -0
  180. package/dist/items/PictureUploadRowField/acceptedUploadTypeMapping.js +55 -0
  181. package/dist/items/SectionSpinner/SectionSpinner.js +49 -0
  182. package/dist/items/SelectField/SelectField.js +67 -0
  183. package/dist/items/StaticAlert/StaticAlert.js +39 -0
  184. package/dist/items/TextAreaField/TextAreaField.js +70 -0
  185. package/dist/items/TextBox/TextBox.js +43 -0
  186. package/dist/items/TextInputField/TextInputField.js +55 -0
  187. package/dist/items/Toast/Toast.js +55 -0
  188. package/dist/items/ToggleSwitchField/ToggleSwitchField.js +84 -0
  189. package/dist/items/index.js +196 -0
  190. package/dist/styles/_ariakit_combobox.scss +279 -0
  191. package/dist/styles/_colors.scss +165 -0
  192. package/dist/styles/bootstrap-customized.scss +815 -0
  193. package/dist/styles/fonts/hbs-fonts/hbs-fonts.css +67 -0
  194. package/dist/styles/fonts/hbs-fonts/simple-bold/SimpleHBSTT-Bold.eot +0 -0
  195. package/dist/styles/fonts/hbs-fonts/simple-bold/SimpleHBSTT-Bold.svg +264 -0
  196. package/dist/styles/fonts/hbs-fonts/simple-bold/SimpleHBSTT-Bold.ttf +0 -0
  197. package/dist/styles/fonts/hbs-fonts/simple-bold/SimpleHBSTT-Bold.woff +0 -0
  198. package/dist/styles/fonts/hbs-fonts/univers/1449347/1f2c3faa-231e-4e71-aba4-b1adb03e0322.svg +4846 -0
  199. package/dist/styles/fonts/hbs-fonts/univers/1449347/51a2e8ba-97c4-47a9-af92-e8b379eeddbd.eot +0 -0
  200. package/dist/styles/fonts/hbs-fonts/univers/1449347/77019bfb-2faa-487f-97aa-b498678dc990.ttf +0 -0
  201. package/dist/styles/fonts/hbs-fonts/univers/1449347/89420d17-2c68-4bb3-b4d4-373b0d0f016b.woff2 +0 -0
  202. package/dist/styles/fonts/hbs-fonts/univers/1449347/e79b121c-bda4-4092-a565-1c29b272ef18.woff +0 -0
  203. package/dist/styles/fonts/hbs-fonts/univers/1449355/6baa7b6e-6971-4b5f-8129-8630113d8cb7.eot +0 -0
  204. package/dist/styles/fonts/hbs-fonts/univers/1449355/aab88c6b-6b75-42f0-aec5-74a5c4ed199d.woff2 +0 -0
  205. package/dist/styles/fonts/hbs-fonts/univers/1449355/ac6c8f47-2d16-43de-96c6-4526ab446296.woff +0 -0
  206. package/dist/styles/fonts/hbs-fonts/univers/1449355/cc2006cf-463d-41db-88b0-24bf58fdf832.ttf +0 -0
  207. package/dist/styles/fonts/hbs-fonts/univers/1449355/f6946e91-a2c4-4793-bcb2-b617d23b3b80.svg +5216 -0
  208. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/1df6de95-3b72-4134-8e0f-f250931b1cb1.woff +0 -0
  209. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/27bd8c18-1ca0-4a74-a175-108571bab2fc.eot +0 -0
  210. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/5667db2e-a3c3-408f-ad82-3ca721a0e2e7.svg +4807 -0
  211. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/8282dfe6-2f66-4a8e-bc65-669a3066eee8.ttf +0 -0
  212. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/a92a459a-dc32-498f-b2dc-b761713792f4.woff2 +0 -0
  213. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/14cd37b6-7bde-488e-bbba-17c5046ee4c3.svg +4666 -0
  214. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/308dd9a4-aea8-4532-8c6d-a415a35f0015.woff2 +0 -0
  215. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/4414ced7-592d-4fdc-8521-8bf095659b6e.eot +0 -0
  216. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/9e1c34e4-257a-478b-9d35-84e680e8d373.ttf +0 -0
  217. package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/9f5abf71-fdd9-408f-b075-7a8a1b7c9a6e.woff +0 -0
  218. package/dist/styles/form.module.scss +252 -0
  219. package/dist/styles/main.scss +18 -0
  220. package/dist/styles/module-variables.scss +13 -0
  221. package/dist/styles/variables/_borders.scss +26 -0
  222. package/dist/styles/variables/_buttons.scss +147 -0
  223. package/dist/styles/variables/_colors.scss +109 -0
  224. package/dist/styles/variables/_focus.scss +9 -0
  225. package/dist/styles/variables/_fonts.scss +101 -0
  226. package/dist/styles/variables/_gaps.scss +26 -0
  227. package/dist/styles/variables/_images.scss +18 -0
  228. package/dist/styles/variables/_responsive.scss +23 -0
  229. package/dist/styles/variables/_shadows.scss +5 -0
  230. package/dist/styles/variables/_variables.scss +14 -0
  231. package/dist/styles/variables.scss +75 -0
  232. package/dist/utils/getUikitClassNames.js +19 -0
  233. package/dist/utils/index.js +16 -0
  234. package/dist/utils/isWindowAvailable.js +9 -0
  235. package/dist/utils/objectHelpers.js +43 -0
  236. package/notes.txt +5 -0
  237. package/package.json +111 -0
  238. package/webpack.config.js +99 -0
package/.eslintrc.js ADDED
@@ -0,0 +1,80 @@
1
+ module.exports = {
2
+ settings: {
3
+ 'import/extensions': ['.js', '.jsx'],
4
+ },
5
+ extends: [
6
+ 'plugin:react/recommended',
7
+ 'airbnb',
8
+ '@pinuts/eslint-config-pinuts-react',
9
+ 'plugin:json/recommended',
10
+ 'plugin:react-hooks/recommended',
11
+ 'plugin:import/errors',
12
+ 'plugin:import/warnings',
13
+ ],
14
+ plugins: ['prettier', 'react', 'react-hooks', 'import'],
15
+ ignorePatterns: ['/dist/**', 'webpack.config.js', 'config-overrides.js', 'src/assets/IconComponents/**'],
16
+ rules: {
17
+ 'quote-props': 'off',
18
+ 'no-multiple-empty-lines': ['error', { 'max': 2, 'maxBOF': 1 }],
19
+ 'react/jsx-indent': 'off',
20
+ 'no-useless-catch': 'off',
21
+ 'consistent-return': 'off',
22
+ 'no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
23
+ 'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
24
+ 'react/jsx-indent-props': [0, 4],
25
+ 'no-shadow': 'off',
26
+ 'react/display-name': 'off',
27
+ 'no-console': ['warn', { allow: ['warn', 'error'] }],
28
+ 'react/jsx-props-no-spreading': 'off',
29
+ 'react/require-default-props': 'off',
30
+ 'no-param-reassign': 'off',
31
+ 'no-return-assign': 'off',
32
+ 'class-methods-use-this': 'off',
33
+ 'no-underscore-dangle': 'off',
34
+ 'no-case-declarations': 'off',
35
+ 'no-multi-assign': 'off',
36
+ 'jsx-a11y/no-noninteractive-tabindex': 'off',
37
+ 'react/no-danger': 'off',
38
+ 'react/destructuring-assignment': 'off',
39
+ 'no-prototype-builtins': 'off',
40
+ 'react/no-array-index-key': 'off',
41
+ 'jsx-a11y/label-has-associated-control': 'off',
42
+ 'arrow-parens': 'off',
43
+ 'newline-before-return': ['error'],
44
+ 'object-curly-newline': ['error', { 'multiline': true, 'consistent': true }],
45
+ 'spaced-comment': 'off',
46
+ 'prefer-template': 'off',
47
+ 'padded-blocks': 'off',
48
+ 'prefer-destructuring': 'off',
49
+ 'arrow-body-style': 'off',
50
+ 'max-len': ['error', { 'code': 450, 'ignoreComments': true }],
51
+ 'no-restricted-syntax': 'off',
52
+ 'react/jsx-boolean-value': 'off',
53
+ 'react/jsx-curly-brace-presence': 'off',
54
+ 'import/no-cycle': 'off',
55
+ 'jsx-a11y/no-onchange': 'off',
56
+ 'no-plusplus': 'off',
57
+ 'object-shorthand': 'off',
58
+ 'react/function-component-definition': 'off',
59
+ 'react/jsx-no-useless-fragment': 'off', /* das soll rein, sobald Zeit ist */
60
+ 'function-paren-newline': 'off',
61
+ 'default-param-last': 'off', /* das soll rein, sobald Zeit ist => reducer checken */
62
+ 'prefer-regex-literals': 'off',
63
+ 'no-restricted-exports': 'off',
64
+ 'react/forbid-prop-types': 'off',
65
+ 'camelcase': 'off',
66
+ 'jsx-a11y/anchor-is-valid': 'warn',
67
+ 'react/prop-types': 'warn',
68
+ 'react-hooks/rules-of-hooks': 'warn', // Checks rules of Hooks
69
+ 'react-hooks/exhaustive-deps': 'warn', // Checks effect dependencies
70
+ 'no-use-before-define': 'off',
71
+ 'import/extensions': [
72
+ 'error',
73
+ 'ignorePackages',
74
+ {
75
+ 'js': 'always',
76
+ 'jsx': 'always',
77
+ },
78
+ ],
79
+ },
80
+ };
package/.idea/.name ADDED
@@ -0,0 +1 @@
1
+ BSR UI-KIT Relaunch
package/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/bsr-uikit-relaunch.iml" filepath="$PROJECT_DIR$/bsr-uikit-relaunch.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
package/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # _hbs_uikit_ changelog
2
+
3
+ ## 1.0.0
package/README.md ADDED
@@ -0,0 +1,75 @@
1
+ # HBS UIKIT
2
+ Builds general ui- and form elements in hbs design
3
+
4
+ # Start Demo Mode locally
5
+
6
+ ```bash
7
+ $ npm start
8
+ ```
9
+ or
10
+
11
+ ```bash
12
+ $ yarn start
13
+ ```
14
+
15
+ # Build locally
16
+
17
+ ```bash
18
+ $ npm run build
19
+ ```
20
+
21
+ # Release to production.
22
+
23
+ ```bash
24
+ $ npm version [major | minor | patch | ... ]
25
+ ```
26
+
27
+ This will increase the package version number in `package.json`, refresh the dist files and tags the resulting state with a commit tag.
28
+ For more arguments see [npm version](https://docs.npmjs.com/cli/version).
29
+
30
+ E.g.:
31
+
32
+ ```bash
33
+ $ npm version patch
34
+ $ git push && git push --tags
35
+ ```
36
+
37
+ # Publish a local state to npm registry.
38
+
39
+ Generate a valid version string with a string tag of your choice.
40
+
41
+ ```bash
42
+ npm run --silent getSuccessorVersion <yourChoice>
43
+ > 0.1.11-<yourChoice>.0
44
+ ```
45
+ The returned string e.g.: `0.1.11-<yourChoice>.0` is a valid never published version string.
46
+ Now you can update and publish your package with the returned version string:
47
+
48
+ ```bash
49
+ npm version 0.1.11-<yourChoice>.0
50
+ npm publish --tag=dev
51
+ ```
52
+
53
+ Afterwards the package can be referenced by the version string `0.1.11-<yourChoice>.0` in your consuming
54
+ node package.
55
+
56
+ # Release feature branch to branch.
57
+
58
+ For release of your branch. Just push your git branch to the remote repository.
59
+ If your branch `<branch>` has the version `1.2.3`,
60
+ the resulting package version will be `1.2.4-<branch>.0`.
61
+ Which can be referenced in your consumer package like:
62
+
63
+ ```json
64
+ ...
65
+ "dependencies": {
66
+ ...
67
+ "@pinuts/hbs-uikit": "1.2.4-<branch>.0",
68
+ ...
69
+ },
70
+ ...
71
+ ```
72
+
73
+ **Pay Attention the patch part of the version is increased by one.**
74
+
75
+ (see also [puppetmaster](https://npm-registry.intra.pinuts.de/-/web/detail/@pinuts/hbs-uikit)
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
@@ -0,0 +1,32 @@
1
+ const path = require('path');
2
+
3
+ module.exports = {
4
+ paths: function(paths) {
5
+ paths.appBuild = path.resolve(__dirname, 'demo/build');
6
+ paths.appPublic = path.resolve(__dirname, 'demo/public');
7
+ paths.appHtml = path.resolve(__dirname, 'demo/public/index.html');
8
+ paths.appIndexJs = path.resolve(__dirname, 'demo/src/index.js');
9
+ paths.appSrc = path.resolve(__dirname, '.');
10
+
11
+ return paths;
12
+ },
13
+ };
14
+
15
+ /* Defaults:
16
+ dotenv: resolveApp('.env'),
17
+ appPath: resolveApp('.'),
18
+ appBuild: resolveApp('build'),
19
+ appPublic: resolveApp('public'),
20
+ appHtml: resolveApp('public/index.html'),
21
+ appIndexJs: resolveApp('src/index.js'),
22
+ appPackageJson: resolveApp('package.json'),
23
+ appSrc: resolveApp('src'),
24
+ yarnLockFile: resolveApp('yarn.lock'),
25
+ testsSetup: resolveApp('src/setupTests.js'),
26
+ appNodeModules: resolveApp('node_modules'),
27
+ publicUrl: getPublicUrl(resolveApp('package.json')),
28
+ servedPath: getServedPath(resolveApp('package.json')),
29
+ // These properties only exist before ejecting:
30
+ ownPath: resolveOwn('.'),
31
+ ownNodeModules: resolveOwn('node_modules'), // This is empty on npm 3
32
+ */
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _propTypes = _interopRequireDefault(require("prop-types"));
9
+ var _IconMapping = _interopRequireDefault(require("./IconMapping.js"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
+ const Icon = _ref => {
12
+ let {
13
+ icon,
14
+ ...otherProps
15
+ } = _ref;
16
+ const getUsedIconProps = _IconMapping.default[icon];
17
+ if (!getUsedIconProps) {
18
+ return null;
19
+ }
20
+ const usedIconProps = getUsedIconProps(otherProps);
21
+ return /*#__PURE__*/_react.default.createElement("svg", {
22
+ viewBox: otherProps.viewBox || usedIconProps.viewBox,
23
+ strokeWidth: otherProps.strokeWidth,
24
+ height: otherProps.height,
25
+ width: otherProps.width,
26
+ className: otherProps.className,
27
+ fill: otherProps.fill,
28
+ stroke: otherProps.stroke,
29
+ xmlns: otherProps.xmlns,
30
+ strokeLinecap: otherProps.strokeLinecap,
31
+ strokeLinejoin: otherProps.strokeLinejoin,
32
+ "aria-hidden": otherProps['aria-hidden'] || 'false',
33
+ focusable: otherProps.focusable || 'false',
34
+ style: otherProps.style
35
+ }, usedIconProps.content);
36
+ };
37
+ Icon.propTypes = {
38
+ strokeWidth: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
39
+ height: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
40
+ width: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
41
+ className: _propTypes.default.string,
42
+ fill: _propTypes.default.string,
43
+ stroke: _propTypes.default.string,
44
+ xmlns: _propTypes.default.string,
45
+ strokeLinecap: _propTypes.default.string,
46
+ strokeLinejoin: _propTypes.default.string,
47
+ 'aria-hidden': _propTypes.default.string,
48
+ focusable: _propTypes.default.string,
49
+ icon: _propTypes.default.string,
50
+ style: _propTypes.default.object
51
+ };
52
+ Icon.defaultProps = {
53
+ strokeWidth: '2',
54
+ height: '24',
55
+ width: '24',
56
+ fill: 'none',
57
+ stroke: 'currentColor',
58
+ xmlns: 'http://www.w3.org/2000/svg',
59
+ strokeLinecap: 'round',
60
+ strokeLinejoin: 'round',
61
+ 'aria-hidden': 'true',
62
+ focusable: 'false'
63
+ };
64
+ var _default = exports.default = Icon;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconAdditionalCostsLarge = _ref => {
10
+ let {
11
+ stroke = 'currentColor',
12
+ strokeWidth = '2'
13
+ } = _ref;
14
+ return {
15
+ viewBox: '0 0 64 64',
16
+ content: /*#__PURE__*/_react.default.createElement("g", {
17
+ stroke: stroke,
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round",
20
+ strokeWidth: strokeWidth,
21
+ filter: "url(#filter0_d_1653_9658)"
22
+ }, /*#__PURE__*/_react.default.createElement("path", {
23
+ d: "M18.928 24.095l9.171-6.122a5.166 5.166 0 012.868-.879h9.713a5.166 5.166 0 014.443 2.583c1.757 2.92 2.584 3.72.285 8.19a5.166 5.166 0 01-5.658 2.66l-8.37-1.653c-1.55-.31-4.52 2.584-3.28 6.304l15.112 5.812a5.167 5.167 0 003.41 0l15.086-4.598"
24
+ }), /*#__PURE__*/_react.default.createElement("path", {
25
+ d: "M61.708 16.01L50.083 8.904a5.373 5.373 0 00-3.022-.75L28.538 9.242a5.296 5.296 0 00-3.125 1.292l-9.171 8.24a5.424 5.424 0 00-1.473 2.222l-1.24 3.797M33.782 42.928a15.836 15.836 0 11-8.24-17.05"
26
+ }), /*#__PURE__*/_react.default.createElement("path", {
27
+ d: "M22.2 35c-.844-.965-1.913-1.617-3.074-1.876a5.211 5.211 0 00-3.45.423c-1.089.534-2.018 1.43-2.672 2.579A7.856 7.856 0 0012 40c0 1.378.349 2.726 1.003 3.874.654 1.148 1.583 2.045 2.673 2.58 1.089.533 2.289.68 3.45.422 1.16-.259 2.23-.911 3.073-1.876M18 38h-8m0 4h8"
28
+ }))
29
+ };
30
+ };
31
+ var _default = exports.default = getIconAdditionalCostsLarge;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconAlertCircle = () => ({
10
+ viewBox: '0 0 24 24',
11
+ content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
12
+ stroke: "none",
13
+ d: "M0 0h24v24H0z",
14
+ fill: "none"
15
+ }), /*#__PURE__*/_react.default.createElement("circle", {
16
+ cx: 12,
17
+ cy: 12,
18
+ r: 9
19
+ }), /*#__PURE__*/_react.default.createElement("line", {
20
+ x1: 12,
21
+ y1: 8,
22
+ x2: 12,
23
+ y2: 12
24
+ }), /*#__PURE__*/_react.default.createElement("line", {
25
+ x1: 12,
26
+ y1: 16,
27
+ x2: "12.01",
28
+ y2: 16
29
+ }))
30
+ });
31
+ var _default = exports.default = getIconAlertCircle;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconAlertTriangle = _ref => {
10
+ let {
11
+ stroke = 'currentColor',
12
+ strokeWidth = '1.5'
13
+ } = _ref;
14
+ return {
15
+ viewBox: '0 0 24 24',
16
+ content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
17
+ d: "M10.29 3.86001L1.82002 18C1.64539 18.3024 1.55299 18.6453 1.55201 18.9945C1.55103 19.3437 1.64151 19.6871 1.81445 19.9905C1.98738 20.2939 2.23675 20.5468 2.53773 20.7239C2.83871 20.901 3.18082 20.9962 3.53002 21H20.47C20.8192 20.9962 21.1613 20.901 21.4623 20.7239C21.7633 20.5468 22.0127 20.2939 22.1856 19.9905C22.3585 19.6871 22.449 19.3437 22.448 18.9945C22.4471 18.6453 22.3547 18.3024 22.18 18L13.71 3.86001C13.5318 3.56611 13.2807 3.32313 12.9812 3.15449C12.6817 2.98585 12.3438 2.89726 12 2.89726C11.6563 2.89726 11.3184 2.98585 11.0188 3.15449C10.7193 3.32313 10.4683 3.56611 10.29 3.86001V3.86001Z",
18
+ strokeWidth: strokeWidth,
19
+ stroke: stroke
20
+ }), /*#__PURE__*/_react.default.createElement("path", {
21
+ d: "M12 9V13"
22
+ }), /*#__PURE__*/_react.default.createElement("path", {
23
+ d: "M12 17H12.01"
24
+ }))
25
+ };
26
+ };
27
+ var _default = exports.default = getIconAlertTriangle;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArchive = (stroke, strokeWidth) => ({
10
+ viewBox: '0 0 24 24',
11
+ content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
12
+ d: "M21 8V21H3V8",
13
+ stroke: stroke,
14
+ strokeWidth: strokeWidth,
15
+ strokeLinecap: "round",
16
+ strokeLinejoin: "round"
17
+ }), /*#__PURE__*/_react.default.createElement("path", {
18
+ d: "M23 3H1V8H23V3Z",
19
+ stroke: stroke,
20
+ strokeWidth: strokeWidth,
21
+ strokeLinecap: "round",
22
+ strokeLinejoin: "round"
23
+ }), /*#__PURE__*/_react.default.createElement("path", {
24
+ d: "M10 12H14",
25
+ stroke: stroke,
26
+ strokeWidth: strokeWidth,
27
+ strokeLinecap: "round",
28
+ strokeLinejoin: "round"
29
+ }))
30
+ });
31
+ var _default = exports.default = getIconArchive;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArrowCornerUpLeft = (stroke, strokeWidth) => ({
10
+ viewBox: '0 0 24 24',
11
+ content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
12
+ stroke: stroke,
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ strokeWidth: strokeWidth,
16
+ d: "M9 14L4 9l5-5"
17
+ }), /*#__PURE__*/_react.default.createElement("path", {
18
+ stroke: stroke,
19
+ strokeLinecap: "round",
20
+ strokeLinejoin: "round",
21
+ strokeWidth: strokeWidth,
22
+ d: "M20 20v-7a4 4 0 00-4-4H4"
23
+ }))
24
+ });
25
+ var _default = exports.default = getIconArrowCornerUpLeft;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArrowDown = () => ({
10
+ viewBox: '0 0 24 24',
11
+ content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
12
+ stroke: "none",
13
+ d: "M0 0h24v24H0z",
14
+ fill: "none"
15
+ }), /*#__PURE__*/_react.default.createElement("circle", {
16
+ cx: 12,
17
+ cy: 12,
18
+ r: 9
19
+ }), /*#__PURE__*/_react.default.createElement("line", {
20
+ x1: 8,
21
+ y1: 12,
22
+ x2: 12,
23
+ y2: 16
24
+ }), /*#__PURE__*/_react.default.createElement("line", {
25
+ x1: 12,
26
+ y1: 8,
27
+ x2: 12,
28
+ y2: 16
29
+ }), /*#__PURE__*/_react.default.createElement("line", {
30
+ x1: 16,
31
+ y1: 12,
32
+ x2: 12,
33
+ y2: 16
34
+ }))
35
+ });
36
+ var _default = exports.default = getIconArrowDown;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArrowDownNoCircle = _ref => {
10
+ let {
11
+ stroke = 'currentColor',
12
+ strokeWidth = '2'
13
+ } = _ref;
14
+ return {
15
+ viewBox: '0 0 24 24',
16
+ content: /*#__PURE__*/_react.default.createElement("path", {
17
+ stroke: stroke,
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round",
20
+ strokeWidth: strokeWidth,
21
+ d: "M12 5v14M19 12l-7 7-7-7"
22
+ })
23
+ };
24
+ };
25
+ var _default = exports.default = getIconArrowDownNoCircle;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArrowLeftNoCircle = _ref => {
10
+ let {
11
+ stroke = 'currentColor',
12
+ strokeWidth = '2'
13
+ } = _ref;
14
+ return {
15
+ viewBox: '0 0 24 24',
16
+ content: /*#__PURE__*/_react.default.createElement("path", {
17
+ stroke: stroke,
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round",
20
+ strokeWidth: strokeWidth,
21
+ d: "M19 12H5M12 19l-7-7 7-7"
22
+ })
23
+ };
24
+ };
25
+ var _default = exports.default = getIconArrowLeftNoCircle;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArrowRightDown = stroke => ({
10
+ viewBox: '0 0 24 24',
11
+ content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
12
+ stroke: stroke,
13
+ d: "M0 0h24v24H0z",
14
+ fill: "none"
15
+ }), /*#__PURE__*/_react.default.createElement("circle", {
16
+ cx: 12,
17
+ cy: 12,
18
+ r: 9
19
+ }), /*#__PURE__*/_react.default.createElement("line", {
20
+ x1: 15,
21
+ y1: 15,
22
+ x2: 9,
23
+ y2: 15
24
+ }), /*#__PURE__*/_react.default.createElement("polyline", {
25
+ points: "15 9 15 15 9 9"
26
+ }))
27
+ });
28
+ var _default = exports.default = getIconArrowRightDown;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArrowRightNoCircle = (stroke, strokeWidth) => ({
10
+ viewBox: '0 0 24 24',
11
+ content: /*#__PURE__*/_react.default.createElement("path", {
12
+ stroke: stroke,
13
+ strokeLinecap: "round",
14
+ strokeLinejoin: "round",
15
+ strokeWidth: strokeWidth,
16
+ d: "M5 12h14M12 5l7 7-7 7"
17
+ })
18
+ });
19
+ var _default = exports.default = getIconArrowRightNoCircle;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArrowRightUp = () => ({
10
+ viewBox: '0 0 24 24',
11
+ content: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("path", {
12
+ stroke: "none",
13
+ d: "M0 0h24v24H0z",
14
+ fill: "none"
15
+ }), /*#__PURE__*/_react.default.createElement("circle", {
16
+ cx: 12,
17
+ cy: 12,
18
+ r: 9
19
+ }), /*#__PURE__*/_react.default.createElement("line", {
20
+ x1: 15,
21
+ y1: 9,
22
+ x2: 9,
23
+ y2: 15
24
+ }), /*#__PURE__*/_react.default.createElement("polyline", {
25
+ points: "15 15 15 9 9 9"
26
+ }))
27
+ });
28
+ var _default = exports.default = getIconArrowRightUp;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
9
+ const getIconArrowUpNoCircle = _ref => {
10
+ let {
11
+ stroke = 'currentColor',
12
+ strokeWidth = '2'
13
+ } = _ref;
14
+ return {
15
+ viewBox: '0 0 24 24',
16
+ content: /*#__PURE__*/_react.default.createElement("path", {
17
+ stroke: stroke,
18
+ strokeLinecap: "round",
19
+ strokeLinejoin: "round",
20
+ strokeWidth: strokeWidth,
21
+ d: "M12 19V5M5 12l7-7 7 7"
22
+ })
23
+ };
24
+ };
25
+ var _default = exports.default = getIconArrowUpNoCircle;