@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.
- package/.eslintrc.js +80 -0
- package/.idea/.name +1 -0
- package/.idea/misc.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/CHANGELOG.md +3 -0
- package/README.md +75 -0
- package/bsr-uikit-relaunch.iml +9 -0
- package/config-overrides.js +32 -0
- package/dist/assets/Icon.js +64 -0
- package/dist/assets/IconComponents/getIconAdditionalCostsLarge.js +31 -0
- package/dist/assets/IconComponents/getIconAlertCircle.js +31 -0
- package/dist/assets/IconComponents/getIconAlertTriangle.js +27 -0
- package/dist/assets/IconComponents/getIconArchive.js +31 -0
- package/dist/assets/IconComponents/getIconArrowCornerUpLeft.js +25 -0
- package/dist/assets/IconComponents/getIconArrowDown.js +36 -0
- package/dist/assets/IconComponents/getIconArrowDownNoCircle.js +25 -0
- package/dist/assets/IconComponents/getIconArrowLeftNoCircle.js +25 -0
- package/dist/assets/IconComponents/getIconArrowRightDown.js +28 -0
- package/dist/assets/IconComponents/getIconArrowRightNoCircle.js +19 -0
- package/dist/assets/IconComponents/getIconArrowRightUp.js +28 -0
- package/dist/assets/IconComponents/getIconArrowUpNoCircle.js +25 -0
- package/dist/assets/IconComponents/getIconBarChart.js +40 -0
- package/dist/assets/IconComponents/getIconBell.js +25 -0
- package/dist/assets/IconComponents/getIconBriefCaseLarge.js +29 -0
- package/dist/assets/IconComponents/getIconCalendar.js +40 -0
- package/dist/assets/IconComponents/getIconChairman.js +19 -0
- package/dist/assets/IconComponents/getIconCheck.js +19 -0
- package/dist/assets/IconComponents/getIconCheckCircle.js +23 -0
- package/dist/assets/IconComponents/getIconCheckCircleOpen.js +31 -0
- package/dist/assets/IconComponents/getIconChevronDown.js +19 -0
- package/dist/assets/IconComponents/getIconChevronLeft.js +19 -0
- package/dist/assets/IconComponents/getIconChevronRight.js +19 -0
- package/dist/assets/IconComponents/getIconChevronUp.js +19 -0
- package/dist/assets/IconComponents/getIconCircle.js +21 -0
- package/dist/assets/IconComponents/getIconCircleMinus.js +26 -0
- package/dist/assets/IconComponents/getIconCirclePause.js +19 -0
- package/dist/assets/IconComponents/getIconCirclePlus.js +31 -0
- package/dist/assets/IconComponents/getIconCircleX.js +31 -0
- package/dist/assets/IconComponents/getIconCity.js +23 -0
- package/dist/assets/IconComponents/getIconCross.js +27 -0
- package/dist/assets/IconComponents/getIconDocumentLarge.js +28 -0
- package/dist/assets/IconComponents/getIconDoubleChevronLeft.js +21 -0
- package/dist/assets/IconComponents/getIconDoubleChevronRight.js +21 -0
- package/dist/assets/IconComponents/getIconDownload.js +37 -0
- package/dist/assets/IconComponents/getIconEdit.js +25 -0
- package/dist/assets/IconComponents/getIconEditPen.js +25 -0
- package/dist/assets/IconComponents/getIconEuro.js +21 -0
- package/dist/assets/IconComponents/getIconExclamationMark.js +21 -0
- package/dist/assets/IconComponents/getIconExternalLink.js +26 -0
- package/dist/assets/IconComponents/getIconEye.js +31 -0
- package/dist/assets/IconComponents/getIconEyeOff.js +34 -0
- package/dist/assets/IconComponents/getIconFile.js +25 -0
- package/dist/assets/IconComponents/getIconFileAddLarge.js +29 -0
- package/dist/assets/IconComponents/getIconFileReport.js +37 -0
- package/dist/assets/IconComponents/getIconFileText.js +43 -0
- package/dist/assets/IconComponents/getIconFilter.js +35 -0
- package/dist/assets/IconComponents/getIconFolder.js +37 -0
- package/dist/assets/IconComponents/getIconFolderLarge.js +32 -0
- package/dist/assets/IconComponents/getIconFunnel.js +19 -0
- package/dist/assets/IconComponents/getIconGraduateCapLarge.js +31 -0
- package/dist/assets/IconComponents/getIconInbox.js +25 -0
- package/dist/assets/IconComponents/getIconInfo.js +28 -0
- package/dist/assets/IconComponents/getIconInfoCircle.js +25 -0
- package/dist/assets/IconComponents/getIconInternshipLarge.js +49 -0
- package/dist/assets/IconComponents/getIconLeaf.js +21 -0
- package/dist/assets/IconComponents/getIconLeftChevron.js +21 -0
- package/dist/assets/IconComponents/getIconLineChart.js +24 -0
- package/dist/assets/IconComponents/getIconLineChartWithAxis.js +37 -0
- package/dist/assets/IconComponents/getIconLineDotChart.js +61 -0
- package/dist/assets/IconComponents/getIconLink.js +31 -0
- package/dist/assets/IconComponents/getIconList.js +49 -0
- package/dist/assets/IconComponents/getIconLock.js +25 -0
- package/dist/assets/IconComponents/getIconLogin.js +31 -0
- package/dist/assets/IconComponents/getIconLogout.js +19 -0
- package/dist/assets/IconComponents/getIconMail.js +25 -0
- package/dist/assets/IconComponents/getIconMan.js +36 -0
- package/dist/assets/IconComponents/getIconManagement.js +59 -0
- package/dist/assets/IconComponents/getIconMap.js +29 -0
- package/dist/assets/IconComponents/getIconMapPin.js +19 -0
- package/dist/assets/IconComponents/getIconMenu.js +31 -0
- package/dist/assets/IconComponents/getIconMessageCircle.js +25 -0
- package/dist/assets/IconComponents/getIconMessageSquare.js +39 -0
- package/dist/assets/IconComponents/getIconMinus.js +22 -0
- package/dist/assets/IconComponents/getIconMinusVertical.js +22 -0
- package/dist/assets/IconComponents/getIconMoreHorizontal.js +31 -0
- package/dist/assets/IconComponents/getIconNumbers.js +25 -0
- package/dist/assets/IconComponents/getIconPauseCircle.js +31 -0
- package/dist/assets/IconComponents/getIconPlus.js +31 -0
- package/dist/assets/IconComponents/getIconPresentation.js +36 -0
- package/dist/assets/IconComponents/getIconRect.js +24 -0
- package/dist/assets/IconComponents/getIconRefresh.js +31 -0
- package/dist/assets/IconComponents/getIconRefreshRepeatLarge.js +25 -0
- package/dist/assets/IconComponents/getIconReportAnalytics.js +31 -0
- package/dist/assets/IconComponents/getIconReportMoney.js +29 -0
- package/dist/assets/IconComponents/getIconReportOff.js +23 -0
- package/dist/assets/IconComponents/getIconReqWizAdditionalFundingLarge.js +28 -0
- package/dist/assets/IconComponents/getIconReqWizExtendFundingLarge.js +28 -0
- package/dist/assets/IconComponents/getIconReqWizJobLarge.js +32 -0
- package/dist/assets/IconComponents/getIconReqWizPauseFundingLarge.js +60 -0
- package/dist/assets/IconComponents/getIconReqWizScientificNetworkLarge.js +35 -0
- package/dist/assets/IconComponents/getIconReqWizStayAbroadLarge.js +31 -0
- package/dist/assets/IconComponents/getIconReqWizStudyDataLarge.js +31 -0
- package/dist/assets/IconComponents/getIconReqWizSubsequentFundingLarge.js +26 -0
- package/dist/assets/IconComponents/getIconReqWizWorldGraduateCapLarge copy.js +31 -0
- package/dist/assets/IconComponents/getIconReqWizWorldGraduateCapLarge.js +31 -0
- package/dist/assets/IconComponents/getIconRequestLarge.js +28 -0
- package/dist/assets/IconComponents/getIconRingChart.js +25 -0
- package/dist/assets/IconComponents/getIconRotate.js +17 -0
- package/dist/assets/IconComponents/getIconSearch.js +26 -0
- package/dist/assets/IconComponents/getIconSearchLarger.js +25 -0
- package/dist/assets/IconComponents/getIconSearchReverse.js +25 -0
- package/dist/assets/IconComponents/getIconSetting.js +33 -0
- package/dist/assets/IconComponents/getIconSortAscending.js +39 -0
- package/dist/assets/IconComponents/getIconSortDescending.js +39 -0
- package/dist/assets/IconComponents/getIconStar.js +22 -0
- package/dist/assets/IconComponents/getIconSum.js +19 -0
- package/dist/assets/IconComponents/getIconSupervisory.js +51 -0
- package/dist/assets/IconComponents/getIconThumbDown.js +19 -0
- package/dist/assets/IconComponents/getIconThumbUp.js +19 -0
- package/dist/assets/IconComponents/getIconTrash.js +37 -0
- package/dist/assets/IconComponents/getIconTriangle.js +19 -0
- package/dist/assets/IconComponents/getIconTriangleInverted.js +19 -0
- package/dist/assets/IconComponents/getIconUpload.js +31 -0
- package/dist/assets/IconComponents/getIconUploadCloud.js +37 -0
- package/dist/assets/IconComponents/getIconUploadLarge.js +26 -0
- package/dist/assets/IconComponents/getIconUser.js +19 -0
- package/dist/assets/IconComponents/getIconUserCheck.js +25 -0
- package/dist/assets/IconComponents/getIconUserCircle.js +31 -0
- package/dist/assets/IconComponents/getIconUserLarge.js +26 -0
- package/dist/assets/IconComponents/getIconUserOff.js +26 -0
- package/dist/assets/IconComponents/getIconWoman.js +33 -0
- package/dist/assets/IconComponents/getIconWriteNote.js +31 -0
- package/dist/assets/IconComponents/getIconWriteNoteLarge.js +27 -0
- package/dist/assets/IconComponents/getIconX.js +27 -0
- package/dist/assets/IconComponents/getIconZoomMoney.js +45 -0
- package/dist/assets/IconMapping.js +241 -0
- package/dist/hooks/ValidateComponents.js +31 -0
- package/dist/hooks/index.js +27 -0
- package/dist/hooks/infoPopUp.js +1 -0
- package/dist/hooks/useDebounceFunc.js +25 -0
- package/dist/hooks/useGetOptionList.js +41 -0
- package/dist/hooks/useValidationMessage.js +68 -0
- package/dist/hooks/withFieldGroup.js +206 -0
- package/dist/icons/AlertTriangle.js +42 -0
- package/dist/icons/InfoOutline.js +57 -0
- package/dist/icons/Verify.js +40 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +32 -0
- package/dist/items/ArrayFieldset/ArrayFieldset.js +178 -0
- package/dist/items/BSRAddressSelector/BSRAddressContext.js +95 -0
- package/dist/items/BSRAddressSelector/BSRAddressResetButton.js +59 -0
- package/dist/items/BSRAddressSelector/BSRAddressSelector.js +100 -0
- package/dist/items/BSRAddressSelector/BSRAutocompleteField.js +262 -0
- package/dist/items/BSRAddressSelector/BSRStreetPlzSelector.js +127 -0
- package/dist/items/BSRAddressSelector/HouseNumberSelectField.js +105 -0
- package/dist/items/Badge/Badge.js +33 -0
- package/dist/items/BootstrapInputGroupField/BootstrapInputGroupField.js +68 -0
- package/dist/items/Button/Button.js +70 -0
- package/dist/items/Button/SubmitButton.js +39 -0
- package/dist/items/DateInputField/DateInputField.js +105 -0
- package/dist/items/DropDownButton/DropDownButton.js +101 -0
- package/dist/items/DropzoneUploadField/DropzoneUploadField.js +188 -0
- package/dist/items/DropzoneUploadField/acceptedUploadTypeMapping.js +55 -0
- package/dist/items/FieldLabel/FieldLabel.js +75 -0
- package/dist/items/FieldsetWrapper/FieldsetWrapper.js +51 -0
- package/dist/items/FormFieldWrapper/FormFieldChildPropTypes.js +64 -0
- package/dist/items/FormFieldWrapper/FormFieldWrapper.js +101 -0
- package/dist/items/FormFieldWrapper/FormFieldWrapperComponent.js +6 -0
- package/dist/items/Grid/BSRGridColumn.js +34 -0
- package/dist/items/Grid/BSRGridRow.js +28 -0
- package/dist/items/Grid/BSRGridRowCols.js +36 -0
- package/dist/items/GroupInputField/GroupInputField.js +122 -0
- package/dist/items/HTMLParserSanitized/HTMLParserSanitized.js +45 -0
- package/dist/items/Icon/Icon.js +24 -0
- package/dist/items/Modal/FormModal.js +98 -0
- package/dist/items/Modal/Modal.js +109 -0
- package/dist/items/NumberInputField/NumberInputField.js +142 -0
- package/dist/items/PictureUploadRowField/PictureUploadRowField.js +280 -0
- package/dist/items/PictureUploadRowField/acceptedUploadTypeMapping.js +55 -0
- package/dist/items/SectionSpinner/SectionSpinner.js +49 -0
- package/dist/items/SelectField/SelectField.js +67 -0
- package/dist/items/StaticAlert/StaticAlert.js +39 -0
- package/dist/items/TextAreaField/TextAreaField.js +70 -0
- package/dist/items/TextBox/TextBox.js +43 -0
- package/dist/items/TextInputField/TextInputField.js +55 -0
- package/dist/items/Toast/Toast.js +55 -0
- package/dist/items/ToggleSwitchField/ToggleSwitchField.js +84 -0
- package/dist/items/index.js +196 -0
- package/dist/styles/_ariakit_combobox.scss +279 -0
- package/dist/styles/_colors.scss +165 -0
- package/dist/styles/bootstrap-customized.scss +815 -0
- package/dist/styles/fonts/hbs-fonts/hbs-fonts.css +67 -0
- package/dist/styles/fonts/hbs-fonts/simple-bold/SimpleHBSTT-Bold.eot +0 -0
- package/dist/styles/fonts/hbs-fonts/simple-bold/SimpleHBSTT-Bold.svg +264 -0
- package/dist/styles/fonts/hbs-fonts/simple-bold/SimpleHBSTT-Bold.ttf +0 -0
- package/dist/styles/fonts/hbs-fonts/simple-bold/SimpleHBSTT-Bold.woff +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449347/1f2c3faa-231e-4e71-aba4-b1adb03e0322.svg +4846 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449347/51a2e8ba-97c4-47a9-af92-e8b379eeddbd.eot +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449347/77019bfb-2faa-487f-97aa-b498678dc990.ttf +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449347/89420d17-2c68-4bb3-b4d4-373b0d0f016b.woff2 +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449347/e79b121c-bda4-4092-a565-1c29b272ef18.woff +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449355/6baa7b6e-6971-4b5f-8129-8630113d8cb7.eot +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449355/aab88c6b-6b75-42f0-aec5-74a5c4ed199d.woff2 +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449355/ac6c8f47-2d16-43de-96c6-4526ab446296.woff +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449355/cc2006cf-463d-41db-88b0-24bf58fdf832.ttf +0 -0
- package/dist/styles/fonts/hbs-fonts/univers/1449355/f6946e91-a2c4-4793-bcb2-b617d23b3b80.svg +5216 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/1df6de95-3b72-4134-8e0f-f250931b1cb1.woff +0 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/27bd8c18-1ca0-4a74-a175-108571bab2fc.eot +0 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/5667db2e-a3c3-408f-ad82-3ca721a0e2e7.svg +4807 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/8282dfe6-2f66-4a8e-bc65-669a3066eee8.ttf +0 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449383/a92a459a-dc32-498f-b2dc-b761713792f4.woff2 +0 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/14cd37b6-7bde-488e-bbba-17c5046ee4c3.svg +4666 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/308dd9a4-aea8-4532-8c6d-a415a35f0015.woff2 +0 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/4414ced7-592d-4fdc-8521-8bf095659b6e.eot +0 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/9e1c34e4-257a-478b-9d35-84e680e8d373.ttf +0 -0
- package/dist/styles/fonts/hbs-fonts/univers-condensed/1449391/9f5abf71-fdd9-408f-b075-7a8a1b7c9a6e.woff +0 -0
- package/dist/styles/form.module.scss +252 -0
- package/dist/styles/main.scss +18 -0
- package/dist/styles/module-variables.scss +13 -0
- package/dist/styles/variables/_borders.scss +26 -0
- package/dist/styles/variables/_buttons.scss +147 -0
- package/dist/styles/variables/_colors.scss +109 -0
- package/dist/styles/variables/_focus.scss +9 -0
- package/dist/styles/variables/_fonts.scss +101 -0
- package/dist/styles/variables/_gaps.scss +26 -0
- package/dist/styles/variables/_images.scss +18 -0
- package/dist/styles/variables/_responsive.scss +23 -0
- package/dist/styles/variables/_shadows.scss +5 -0
- package/dist/styles/variables/_variables.scss +14 -0
- package/dist/styles/variables.scss +75 -0
- package/dist/utils/getUikitClassNames.js +19 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/isWindowAvailable.js +9 -0
- package/dist/utils/objectHelpers.js +43 -0
- package/notes.txt +5 -0
- package/package.json +111 -0
- package/webpack.config.js +99 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// bsr-spacing-1x
|
|
2
|
+
$base-gap: 4px;
|
|
3
|
+
|
|
4
|
+
// default module gap large
|
|
5
|
+
$module-gap-lg: 10 * $base-gap;
|
|
6
|
+
|
|
7
|
+
// default module gap small
|
|
8
|
+
$module-gap-sm: 5 * $base-gap;
|
|
9
|
+
|
|
10
|
+
$grid-gutter-width: 20px;
|
|
11
|
+
|
|
12
|
+
// Text Margins
|
|
13
|
+
$default-text-margin-bottom: $base-gap * 10;
|
|
14
|
+
$default-text-margin-bottom-sm: $base-gap * 8;
|
|
15
|
+
|
|
16
|
+
$box-padding-inline-xs: $base-gap * 6;
|
|
17
|
+
$box-padding-block-xs: $base-gap * 7.5;
|
|
18
|
+
|
|
19
|
+
$box-padding-inline-s: $base-gap * 6;
|
|
20
|
+
$box-padding-block-s: $base-gap * 10;
|
|
21
|
+
|
|
22
|
+
$box-padding-inline-m: $base-gap * 10;
|
|
23
|
+
$box-padding-block-m: $base-gap * 10;
|
|
24
|
+
|
|
25
|
+
$box-padding-inline-l: $base-gap * 16;
|
|
26
|
+
$box-padding-block-l: $base-gap * 12;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
// Aspect Ratio
|
|
4
|
+
$aspect-ratio-16-9: math.div(16, 9);
|
|
5
|
+
$aspect-ratio-4-3: math.div(4, 3);
|
|
6
|
+
|
|
7
|
+
.aspect-16-9, .aspect-4-3 {
|
|
8
|
+
width: 100%;
|
|
9
|
+
object-fit: cover;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.aspect-16-9 {
|
|
13
|
+
aspect-ratio: $aspect-ratio-16-9;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.aspect-4-3 {
|
|
17
|
+
aspect-ratio: $aspect-ratio-4-3;
|
|
18
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* - BS3 variables - */
|
|
2
|
+
|
|
3
|
+
$screen-sm-min: 375px;
|
|
4
|
+
$screen-sm-max: 767px;
|
|
5
|
+
$screen-md-min: 768px;
|
|
6
|
+
$screen-md-max: 1023px;
|
|
7
|
+
$screen-lg-min: 1024px;
|
|
8
|
+
$screen-lg-max: 1439px;
|
|
9
|
+
$screen-xl-min: 1440px;
|
|
10
|
+
|
|
11
|
+
$grid-breakpoints: (
|
|
12
|
+
xs: 0,
|
|
13
|
+
sm: $screen-sm-min,
|
|
14
|
+
md: $screen-md-min,
|
|
15
|
+
lg: $screen-lg-min,
|
|
16
|
+
xl: $screen-xl-min,
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
$container-max-widths: (
|
|
20
|
+
sm: $screen-md-min,
|
|
21
|
+
md: $screen-lg-min,
|
|
22
|
+
lg: $screen-xl-min,
|
|
23
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import 'colors';
|
|
2
|
+
@import 'gaps';
|
|
3
|
+
@import 'responsive';
|
|
4
|
+
@import 'shadows';
|
|
5
|
+
@import 'borders';
|
|
6
|
+
@import 'fonts';
|
|
7
|
+
@import 'images';
|
|
8
|
+
@import 'fonts';
|
|
9
|
+
@import 'buttons';
|
|
10
|
+
@import 'focus';
|
|
11
|
+
|
|
12
|
+
$font-family-main: 'Manrope';
|
|
13
|
+
$base-transition: all 0.2s ease-in;
|
|
14
|
+
$transition-duration-base: 0.2s;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@import './_colors.scss';
|
|
2
|
+
|
|
3
|
+
// Fonts
|
|
4
|
+
$font-univers: 'Univers', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !default;
|
|
5
|
+
$font-simplebold: "Simple-Bold", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !default;
|
|
6
|
+
$font-univers-cd: 'Univers-Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !default;
|
|
7
|
+
$font-family-base: $font-univers-cd;
|
|
8
|
+
$font-family-sans-serif: $font-univers;
|
|
9
|
+
$font-family-monospace: $font-univers;
|
|
10
|
+
|
|
11
|
+
// // breakpoints
|
|
12
|
+
$screen-sm-min: 576px;
|
|
13
|
+
$screen-md-min: 768px;
|
|
14
|
+
$screen-lg-min: 992px;
|
|
15
|
+
$screen-xl-min: 1200px;
|
|
16
|
+
|
|
17
|
+
// Border Colors
|
|
18
|
+
$border-light: $hbs-schwarz-10 !default;
|
|
19
|
+
$border-medium: $hbs-schwarz-30 !default;
|
|
20
|
+
$border-dark: $hbs-schwarz !default;
|
|
21
|
+
|
|
22
|
+
// Shadows
|
|
23
|
+
$focus-shadow: 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 5px rgba($hbs-blau, 0.35) !default;
|
|
24
|
+
$focus-shadow-danger: 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 5px rgba($hbs-pink, 0.35);
|
|
25
|
+
$step-shadow: -1px -2px 1px -2px #FFFFFF, 0px 0px 0px 5px rgba($hbs-blau, 0.35);
|
|
26
|
+
|
|
27
|
+
// $box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !default;
|
|
28
|
+
|
|
29
|
+
//border-radius
|
|
30
|
+
$border-radius: 1px;
|
|
31
|
+
$border-radius-square: 3px;
|
|
32
|
+
$border-radius-badge: 5px;
|
|
33
|
+
$border-radius-rounded: 12px;
|
|
34
|
+
|
|
35
|
+
//Input
|
|
36
|
+
$input-bg: $white;
|
|
37
|
+
$input-height: 40px;
|
|
38
|
+
$input-border: 1px solid $border-dark;
|
|
39
|
+
$input-focus-border-color: $hbs-schwarz; // possibly wrong? $black was undefined
|
|
40
|
+
$input-border-radius: 1px;
|
|
41
|
+
$input-placeholder-color: $hbs-schwarz;
|
|
42
|
+
|
|
43
|
+
/////////// Aus UNT übernommen ggf. später anpassen //////////
|
|
44
|
+
|
|
45
|
+
// // Timings
|
|
46
|
+
// $timing: 0.2s cubic-bezier(0.25, 0.1, 0.25, 0.1) 0s !default;
|
|
47
|
+
|
|
48
|
+
// $custom-select-border: $input-border;
|
|
49
|
+
// $custom-select-bg: $input-bg;
|
|
50
|
+
// $custom-select-border-radius: $input-border-radius;
|
|
51
|
+
// $custom-select-focus-border-color: $input-focus-border-color;
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
// $form-validation-states: (
|
|
55
|
+
// "valid": (
|
|
56
|
+
// "color": $form-feedback-valid-color,
|
|
57
|
+
// "icon": $form-feedback-icon-valid
|
|
58
|
+
// ),
|
|
59
|
+
// "invalid": (
|
|
60
|
+
// "color": $form-feedback-invalid-color,
|
|
61
|
+
// "icon": $form-feedback-icon-invalid
|
|
62
|
+
// )
|
|
63
|
+
// );
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
// $form-feedback-margin-top: $form-text-margin-top;
|
|
67
|
+
// $form-feedback-font-size: $form-text-font-size;
|
|
68
|
+
// $form-feedback-font-style: $form-text-font-style;
|
|
69
|
+
// $form-feedback-valid-color: $success;
|
|
70
|
+
// $form-feedback-invalid-color: $hbs-pink;
|
|
71
|
+
|
|
72
|
+
// $form-feedback-icon-valid-color: $form-feedback-valid-color;
|
|
73
|
+
// $form-feedback-icon-valid: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'><path fill='#{$form-feedback-icon-valid-color}' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/></svg>");
|
|
74
|
+
// $form-feedback-icon-invalid-color: $form-feedback-invalid-color;
|
|
75
|
+
// $form-feedback-icon-invalid: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='#{$form-feedback-icon-invalid-color}'><circle cx='6' cy='6' r='4.5'/><path stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/><circle cx='6' cy='8.2' r='.6' fill='#{$form-feedback-icon-invalid-color}' stroke='none'/></svg>");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getInputClassNames = exports.getFormControlClassNames = void 0;
|
|
7
|
+
var _formBuilder = require("@pinuts/form-builder");
|
|
8
|
+
var _formModule = _interopRequireDefault(require("../styles/form.module.scss"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
const getInputClassNames = function (isInvalid, readOnly, disabled, className) {
|
|
11
|
+
let additionalClassNames = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
12
|
+
return _formBuilder.utils.getClassNames([isInvalid && _formModule.default.error, (readOnly || disabled) && 'read-only', ...additionalClassNames, className]);
|
|
13
|
+
};
|
|
14
|
+
exports.getInputClassNames = getInputClassNames;
|
|
15
|
+
const getFormControlClassNames = function (isInvalid, readOnly, disabled, className) {
|
|
16
|
+
let additionalClassNames = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
17
|
+
return getInputClassNames(isInvalid, readOnly, disabled, className, [...additionalClassNames]);
|
|
18
|
+
};
|
|
19
|
+
exports.getFormControlClassNames = getFormControlClassNames;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _getUikitClassNames = require("./getUikitClassNames.js");
|
|
7
|
+
Object.keys(_getUikitClassNames).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _getUikitClassNames[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _getUikitClassNames[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isWindowAvailable = exports.default = void 0;
|
|
7
|
+
const isWindowAvailable = () => typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
8
|
+
exports.isWindowAvailable = isWindowAvailable;
|
|
9
|
+
var _default = exports.default = isWindowAvailable;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.setByPath = exports.getByPath = exports.default = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Set a value recursive on an object by defining the path.
|
|
9
|
+
* Missing path elements will be created as Object.
|
|
10
|
+
*
|
|
11
|
+
* @param {Object} object Object the value should be set into.
|
|
12
|
+
* @param {String|Array} path Dot-separated path to the target property (or the path elements as array).
|
|
13
|
+
* @param {*} value The value to set
|
|
14
|
+
* @function Objects.set
|
|
15
|
+
*/
|
|
16
|
+
const setByPath = (object, path, value) => {
|
|
17
|
+
if (!path) return;
|
|
18
|
+
const pathAr = Array.isArray(path) ? path : path.split('.');
|
|
19
|
+
for (let key = pathAr.shift(); key; key = pathAr.shift()) {
|
|
20
|
+
object = object[key] = pathAr.length ? object[key] || {} : value;
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Read a value from an arbitrary object, following a dot-separated path through the properties.
|
|
26
|
+
*
|
|
27
|
+
* @param {Object} object the object to read
|
|
28
|
+
* @param {String|Array} path Dot-separated path to property containing the wanted value (or path elements as array).
|
|
29
|
+
* @return {*} undefined if not found
|
|
30
|
+
* @function Objects.get
|
|
31
|
+
*/
|
|
32
|
+
exports.setByPath = setByPath;
|
|
33
|
+
const getByPath = (object, path) => {
|
|
34
|
+
if (!path) return;
|
|
35
|
+
const pathAr = Array.isArray(path) ? path : path.split('.');
|
|
36
|
+
let value = object;
|
|
37
|
+
for (let i = 0; i < pathAr.length; i++) {
|
|
38
|
+
value = value ? value[pathAr[i]] : undefined;
|
|
39
|
+
}
|
|
40
|
+
return value;
|
|
41
|
+
};
|
|
42
|
+
exports.getByPath = getByPath;
|
|
43
|
+
var _default = exports.default = {};
|
package/notes.txt
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Funktioniert aktuell nur mit "@pinuts/form-builder": "0.8.3-eds-beta-9",
|
|
2
|
+
Komplettes bootstrap kommt aus dem Modal und DropzoneUploadField mit.
|
|
3
|
+
|
|
4
|
+
Fehlermeldung aus
|
|
5
|
+
Warning: Invalid argument supplied to oneOfType. Expected an array of check functions, but received undefined at index 1.
|
package/package.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@pinuts/bsr-uikit-relaunch",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "BSR UI-KIT Relaunch",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"author": "",
|
|
8
|
+
"license": "ISC",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git@git.intra.pinuts.de/bsr/bsr-uikit-relaunch"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"form",
|
|
18
|
+
"uikit",
|
|
19
|
+
"bsr"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"lint": "eslint \"src/**/*.{js,mjs,jsx,json}\" ",
|
|
23
|
+
"lint:fix": "eslint --fix \"src/**/*.{js,mjs,jsx,json}\" ",
|
|
24
|
+
"start": "DISABLE_ESLINT_PLUGIN=true react-app-rewired start",
|
|
25
|
+
"build": "./node_modules/.bin/babel src --out-dir ./dist",
|
|
26
|
+
"analyze": "webpack --profile --json > stats.json && webpack-bundle-analyzer stats.json",
|
|
27
|
+
"test": "echo \"Error: no test specified\"",
|
|
28
|
+
"preversion": "yarn test",
|
|
29
|
+
"version": "yarn install && yarn run build && git add -A",
|
|
30
|
+
"postversion": "",
|
|
31
|
+
"getSuccessorVersion": "getSuccessorVersion",
|
|
32
|
+
"unpublishVersions": "unpublishVersions",
|
|
33
|
+
"prepublishOnly": "webpack",
|
|
34
|
+
"prewatch": "node remove-peerdeps.js",
|
|
35
|
+
"watch": "NODE_ENV=development webpack --watch"
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"@pinuts/form-builder": "0.8.12",
|
|
39
|
+
"prop-types": "^15.7.2",
|
|
40
|
+
"react": "^18.2.0",
|
|
41
|
+
"react-dom": "^18.2.0",
|
|
42
|
+
"react-i18next": "^12.2.0",
|
|
43
|
+
"react-router": "^5.2.1",
|
|
44
|
+
"react-router-dom": "^6.11.0"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@ariakit/react": "^0.4.11",
|
|
48
|
+
"@pinuts/form-builder": "0.8.12",
|
|
49
|
+
"@popperjs/core": "^2.11.7",
|
|
50
|
+
"bootstrap": "^5.3.2",
|
|
51
|
+
"dayjs": "^1.11.10",
|
|
52
|
+
"html-react-parser": "^5.1.10",
|
|
53
|
+
"i18next": "^22.4.14",
|
|
54
|
+
"react-bootstrap": "^2.7.4",
|
|
55
|
+
"react-dropzone": "^14.2.3",
|
|
56
|
+
"sanitize-html": "^2.13.0",
|
|
57
|
+
"uuid": "^10.0.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@babel/cli": "^7.8.3",
|
|
61
|
+
"@babel/core": "^7.8.3",
|
|
62
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
63
|
+
"@babel/preset-env": "^7.8.3",
|
|
64
|
+
"@babel/preset-react": "^7.8.3",
|
|
65
|
+
"@pinuts/build-scripts": "^1.1.0",
|
|
66
|
+
"@pinuts/eslint-config-pinuts-react": "^2.0.1",
|
|
67
|
+
"babel-loader": "^9.1.2",
|
|
68
|
+
"copy-webpack-plugin": "^11.0.0",
|
|
69
|
+
"eslint": "^7.32.0",
|
|
70
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
71
|
+
"eslint-loader": "^4.0.2",
|
|
72
|
+
"eslint-plugin-import": "^2.25.4",
|
|
73
|
+
"eslint-plugin-json": "^3.1.0",
|
|
74
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
75
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
76
|
+
"eslint-plugin-react": "^7.28.0",
|
|
77
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
78
|
+
"i18next": "^22.4.14",
|
|
79
|
+
"npm": "^9.4.2",
|
|
80
|
+
"prop-types": "^15.7.2",
|
|
81
|
+
"react": "^18.2.0",
|
|
82
|
+
"react-app-rewired": "^2.2.1",
|
|
83
|
+
"react-dom": "^18.2.0",
|
|
84
|
+
"react-i18next": "^12.2.0",
|
|
85
|
+
"react-json-pretty": "^2.2.0",
|
|
86
|
+
"react-router": "^5.2.1",
|
|
87
|
+
"react-router-dom": "^6.11.0",
|
|
88
|
+
"react-scripts": "^5.0.1",
|
|
89
|
+
"sass": "^1.77.2",
|
|
90
|
+
"webpack": "^5.75.0",
|
|
91
|
+
"webpack-bundle-analyzer": "^4.8.0",
|
|
92
|
+
"webpack-cli": "^5.0.1"
|
|
93
|
+
},
|
|
94
|
+
"eslintConfig": {
|
|
95
|
+
"extends": [
|
|
96
|
+
"react-app"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
"browserslist": {
|
|
100
|
+
"production": [
|
|
101
|
+
">0.2%",
|
|
102
|
+
"not dead",
|
|
103
|
+
"not op_mini all"
|
|
104
|
+
],
|
|
105
|
+
"development": [
|
|
106
|
+
"last 1 chrome version",
|
|
107
|
+
"last 1 firefox version",
|
|
108
|
+
"last 1 safari version"
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const packageConfig = require('./package.json');
|
|
3
|
+
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
4
|
+
const CopyPlugin = require('copy-webpack-plugin');
|
|
5
|
+
|
|
6
|
+
// read package.json -> use peerDependencies as externals
|
|
7
|
+
const externals = Object.keys(packageConfig.peerDependencies).map((dep) => {
|
|
8
|
+
return { [dep]: dep}
|
|
9
|
+
});
|
|
10
|
+
const devMode = process.env.NODE_ENV === 'development';
|
|
11
|
+
|
|
12
|
+
const webpackCfg = {
|
|
13
|
+
mode: process.env.NODE_ENV || 'production',
|
|
14
|
+
entry: './src/index.js',
|
|
15
|
+
output: {
|
|
16
|
+
path: path.resolve('dist'),
|
|
17
|
+
filename: 'index.js',
|
|
18
|
+
libraryTarget: 'commonjs2'
|
|
19
|
+
},
|
|
20
|
+
externals,
|
|
21
|
+
plugins: [
|
|
22
|
+
new CopyPlugin({
|
|
23
|
+
patterns: [
|
|
24
|
+
{
|
|
25
|
+
from: 'src/styles',
|
|
26
|
+
to: 'styles',
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
}),
|
|
30
|
+
],
|
|
31
|
+
module: {
|
|
32
|
+
rules: [
|
|
33
|
+
{
|
|
34
|
+
test: /\.m?jsx?$/,
|
|
35
|
+
exclude: /(node_modules)/,
|
|
36
|
+
use: 'babel-loader'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
test: /\.module\.s?[ac]ss$/i,
|
|
40
|
+
use: [
|
|
41
|
+
{ loader: 'style-loader' },
|
|
42
|
+
{
|
|
43
|
+
loader: 'css-loader',
|
|
44
|
+
options: {
|
|
45
|
+
modules: {
|
|
46
|
+
localIdentName: '[local]--[hash:base64:10]',
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{ loader: 'sass-loader' }
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
test: /(?<!\.module)\.s?[ac]ss$/i,
|
|
55
|
+
use: [
|
|
56
|
+
// Creates `style` nodes from JS strings
|
|
57
|
+
'style-loader',
|
|
58
|
+
// Translates CSS into CommonJS
|
|
59
|
+
'css-loader',
|
|
60
|
+
// Compiles Sass to CSS
|
|
61
|
+
'sass-loader',
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
test: /\.(png|jpe?g|gif)$/i,
|
|
66
|
+
use: [
|
|
67
|
+
{
|
|
68
|
+
loader: 'url-loader'
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
test: /\.svg$/,
|
|
74
|
+
use: [
|
|
75
|
+
{ loader: 'babel-loader' },
|
|
76
|
+
{
|
|
77
|
+
loader: 'react-svg-loader',
|
|
78
|
+
options: {
|
|
79
|
+
jsx: true,
|
|
80
|
+
svgo: {
|
|
81
|
+
plugins: [
|
|
82
|
+
{
|
|
83
|
+
removeViewBox: false,
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
},
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (devMode) {
|
|
95
|
+
webpackCfg.devtool = 'inline-source-map';
|
|
96
|
+
webpackCfg.plugins.push(new BundleAnalyzerPlugin());
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
module.exports = webpackCfg;
|