@festo-ui/react 8.2.0-dev.579 → 8.2.0-dev.584
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/index.css +1 -1
- package/index.d.ts +63 -63
- package/lib/components/accordion/Accordion.d.ts +3 -3
- package/lib/components/accordion/Accordion.js +6 -6
- package/lib/components/accordion/AccordionContext.js +1 -1
- package/lib/components/accordion/accordion-header/AccordionHeader.d.ts +1 -1
- package/lib/components/accordion/accordion-header/AccordionHeader.js +3 -3
- package/lib/components/accordion/accordion-item/AccordionItem.d.ts +3 -3
- package/lib/components/accordion/accordion-item/AccordionItem.js +6 -6
- package/lib/components/accordion/accordion-item/AccordionItemContext.js +1 -1
- package/lib/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.d.ts +1 -1
- package/lib/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.js +7 -7
- package/lib/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.d.ts +1 -1
- package/lib/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.js +5 -5
- package/lib/components/bottom-sheet/BottomSheet.d.ts +1 -1
- package/lib/components/bottom-sheet/BottomSheet.js +11 -11
- package/lib/components/bottom-sheet/BottomSheet.stories.d.ts +2 -2
- package/lib/components/bottom-sheet/BottomSheet.stories.js +3 -3
- package/lib/components/breadcrumb/Breadcrumb.d.ts +2 -2
- package/lib/components/breadcrumb/Breadcrumb.js +4 -4
- package/lib/components/buttons/button/Button.d.ts +2 -2
- package/lib/components/buttons/button/Button.js +10 -10
- package/lib/components/buttons/button/Button.stories.d.ts +2 -2
- package/lib/components/buttons/button/Button.stories.js +10 -10
- package/lib/components/card/Card.d.ts +1 -1
- package/lib/components/card/Card.js +2 -2
- package/lib/components/card/CardBody.d.ts +1 -1
- package/lib/components/card/CardBody.js +2 -2
- package/lib/components/card/CardHeader.d.ts +1 -1
- package/lib/components/card/CardHeader.js +3 -3
- package/lib/components/card/CardHeader.stories.helper.d.ts +1 -1
- package/lib/components/card/CardHeader.stories.helper.js +2 -2
- package/lib/components/card/CardNotification.d.ts +1 -1
- package/lib/components/chips/chip/Chip.d.ts +1 -1
- package/lib/components/chips/chip/Chip.js +8 -8
- package/lib/components/chips/chip-container/ChipContainer.d.ts +1 -1
- package/lib/components/chips/chip-container/ChipContainer.js +3 -3
- package/lib/components/icon-wrapper/IconWrapper.js +2 -2
- package/lib/components/link-button/LinkButton.d.ts +2 -2
- package/lib/components/link-button/LinkButton.js +5 -5
- package/lib/components/loading-indicator/LoadingIndicator.d.ts +4 -4
- package/lib/components/loading-indicator/LoadingIndicator.js +8 -8
- package/lib/components/mobile-flyout/MobileFlyout.d.ts +2 -2
- package/lib/components/mobile-flyout/MobileFlyout.js +7 -7
- package/lib/components/mobile-flyout/MobileFlyoutContext.js +1 -1
- package/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.d.ts +2 -2
- package/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +5 -5
- package/lib/components/modals/AlertModal.d.ts +3 -3
- package/lib/components/modals/AlertModal.js +10 -10
- package/lib/components/modals/ConfirmModal.d.ts +2 -2
- package/lib/components/modals/ConfirmModal.js +3 -3
- package/lib/components/modals/CustomModal.d.ts +1 -1
- package/lib/components/modals/CustomModal.js +3 -3
- package/lib/components/modals/Modal.d.ts +4 -4
- package/lib/components/modals/Modal.js +1 -1
- package/lib/components/modals/ModalBase.d.ts +2 -2
- package/lib/components/modals/ModalBase.js +9 -9
- package/lib/components/modals/ModalFooter.d.ts +1 -1
- package/lib/components/modals/ModalFooter.js +4 -4
- package/lib/components/modals/Prompt.d.ts +3 -3
- package/lib/components/modals/Prompt.js +1 -1
- package/lib/components/modals/image-gallery/ImageGallery.d.ts +5 -5
- package/lib/components/modals/image-gallery/ImageGallery.helper.d.ts +1 -1
- package/lib/components/modals/image-gallery/ImageGallery.helper.js +2 -2
- package/lib/components/modals/image-gallery/ImageGallery.js +3 -3
- package/lib/components/modals/image-gallery/ImageGallery.stories.helper.d.ts +1 -1
- package/lib/components/modals/image-gallery/ImageGallery.stories.helper.js +29 -29
- package/lib/components/modals/image-gallery/ImageGalleryContext.d.ts +1 -1
- package/lib/components/modals/image-gallery/ImageGalleryContext.js +1 -1
- package/lib/components/modals/image-gallery/ImageGallerySwiper.js +6 -6
- package/lib/components/modals/image-gallery/ImageGalleryThumbsSwiper.js +3 -3
- package/lib/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.d.ts +2 -2
- package/lib/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.js +8 -8
- package/lib/components/modals/image-gallery/internal/BaseGallery.d.ts +4 -4
- package/lib/components/modals/image-gallery/internal/BaseGallery.js +1 -1
- package/lib/components/modals/image-gallery/internal/CloseButton.js +4 -4
- package/lib/components/modals/image-gallery/internal/ScaleButton.js +1 -1
- package/lib/components/pagination/Pagination.d.ts +2 -2
- package/lib/components/pagination/Pagination.js +14 -14
- package/lib/components/popovers/legend/Legend.d.ts +3 -3
- package/lib/components/popovers/popover/Popover.d.ts +4 -4
- package/lib/components/popovers/popover/Popover.js +11 -11
- package/lib/components/popovers/popover-menu/PopoverMenu.d.ts +3 -3
- package/lib/components/popovers/popover-menu/PopoverMenu.js +3 -3
- package/lib/components/popovers/tooltip/Tooltip.d.ts +1 -1
- package/lib/components/progress/Progress.d.ts +2 -2
- package/lib/components/progress/Progress.js +7 -7
- package/lib/components/scroll-area/ScrollArea.d.ts +1 -1
- package/lib/components/scroll-area/ScrollArea.js +1 -1
- package/lib/components/search-input/ClearButton.d.ts +2 -2
- package/lib/components/search-input/SearchInput.d.ts +2 -2
- package/lib/components/search-input/SearchInput.js +2 -2
- package/lib/components/search-input/useSearchInput.d.ts +2 -2
- package/lib/components/search-input/useSearchInput.js +7 -7
- package/lib/components/snackbar/Snackbar.d.ts +4 -4
- package/lib/components/snackbar/Snackbar.js +11 -11
- package/lib/components/snackbar/SnackbarContext.d.ts +2 -2
- package/lib/components/snackbar/SnackbarContext.js +1 -1
- package/lib/components/snackbar/SnackbarProvider.d.ts +2 -2
- package/lib/components/snackbar/SnackbarProvider.js +3 -3
- package/lib/components/snackbar/useSnackbar.d.ts +1 -1
- package/lib/components/snackbar/useSnackbar.js +1 -1
- package/lib/components/stepper-horizontal/StepperHorizontal.d.ts +2 -2
- package/lib/components/stepper-horizontal/StepperHorizontal.js +7 -7
- package/lib/components/stepper-horizontal/step-horizontal/StepHorizontal.d.ts +3 -3
- package/lib/components/stepper-horizontal/step-horizontal/StepHorizontal.js +3 -3
- package/lib/components/stepper-vertical/StepperVertical.d.ts +2 -2
- package/lib/components/stepper-vertical/StepperVertical.js +3 -3
- package/lib/components/stepper-vertical/step-vertical/StepVertical.d.ts +3 -3
- package/lib/components/stepper-vertical/step-vertical/StepVertical.js +9 -9
- package/lib/components/tab/Tabs.d.ts +5 -5
- package/lib/components/tab/Tabs.js +24 -24
- package/lib/components/tab/tab-pane/TabPane.d.ts +3 -3
- package/lib/components/tab/tab-pane/TabPane.js +3 -3
- package/lib/components/tab/useTabScroll.d.ts +1 -1
- package/lib/components/tab/useTabScroll.js +11 -11
- package/lib/components/table-header-cell/TableHeaderCell.js +6 -6
- package/lib/forms/checkbox/Checkbox.d.ts +4 -4
- package/lib/forms/checkbox/Checkbox.js +11 -11
- package/lib/forms/color-indicator/ColorIndicator.d.ts +2 -2
- package/lib/forms/color-indicator/ColorIndicator.js +6 -6
- package/lib/forms/color-picker/ColorHelper.d.ts +4 -4
- package/lib/forms/radio/RadioButton.d.ts +2 -2
- package/lib/forms/radio/RadioButton.js +8 -8
- package/lib/forms/radio/RadioGroup.d.ts +3 -3
- package/lib/forms/radio/RadioGroup.js +3 -3
- package/lib/forms/radio/RadioGroupContext.d.ts +1 -1
- package/lib/forms/radio/RadioGroupContext.js +1 -1
- package/lib/forms/segment/Segment.d.ts +2 -2
- package/lib/forms/segment/Segment.js +7 -7
- package/lib/forms/segment/segment-control/SegmentControl.d.ts +2 -2
- package/lib/forms/segment/segment-control/SegmentControl.js +8 -8
- package/lib/forms/select/Select.d.ts +5 -5
- package/lib/forms/select/Select.js +3 -3
- package/lib/forms/select/internal/HiddenInput.d.ts +1 -1
- package/lib/forms/select/internal/ListItem.d.ts +3 -3
- package/lib/forms/select/internal/ListItem.js +11 -11
- package/lib/forms/select/internal/SelectButton.js +9 -9
- package/lib/forms/select/internal/SelectCheckbox.d.ts +1 -1
- package/lib/forms/select/internal/SelectLabel.js +4 -4
- package/lib/forms/select/internal/SelectScrollContainer.d.ts +1 -1
- package/lib/forms/select/internal/SelectWrapper.d.ts +2 -2
- package/lib/forms/select/internal/SelectWrapper.js +4 -4
- package/lib/forms/select/internal/index.d.ts +6 -6
- package/lib/forms/select/internal/utils.d.ts +2 -2
- package/lib/forms/select/internal/utils.js +3 -3
- package/lib/forms/select/select-option/SelectOption.d.ts +2 -2
- package/lib/forms/select/select-option/SelectOption.js +1 -1
- package/lib/forms/select/utils.d.ts +1 -1
- package/lib/forms/slider/Slider.d.ts +3 -3
- package/lib/forms/slider/Slider.js +9 -9
- package/lib/forms/switch/Switch.d.ts +2 -2
- package/lib/forms/switch/Switch.js +4 -4
- package/lib/forms/text-area/TextArea.d.ts +3 -3
- package/lib/forms/text-area/TextArea.js +12 -12
- package/lib/forms/text-editor/TextEditor.d.ts +1 -1
- package/lib/forms/text-editor/TextEditor.js +42 -38
- package/lib/forms/text-editor/TextEditorButton.d.ts +3 -2
- package/lib/forms/text-editor/TextEditorButton.js +13 -13
- package/lib/forms/text-input/TextInput.d.ts +1 -1
- package/lib/forms/text-input/TextInput.js +6 -6
- package/lib/forms/time-picker/time-picker-dropdown/TimePickerInput.d.ts +1 -1
- package/lib/forms/time-picker/time-picker-dropdown/TimePickerInput.js +2 -2
- package/lib/helper/index.js +2 -2
- package/lib/helper/setRef.js +1 -1
- package/lib/helper/types.d.ts +2 -2
- package/lib/helper/useControlled.d.ts +1 -1
- package/lib/helper/useControlled.js +2 -2
- package/lib/helper/useForkRef.d.ts +1 -1
- package/lib/helper/useForkRef.js +1 -1
- package/lib/helper/useId.js +2 -2
- package/lib/helper/useOnClickOutside.d.ts +1 -1
- package/lib/helper/useOnClickOutside.js +5 -5
- package/node/lib/components/accordion/Accordion.js +4 -4
- package/node/lib/components/accordion/accordion-header/AccordionHeader.js +1 -1
- package/node/lib/components/accordion/accordion-item/AccordionItem.js +4 -4
- package/node/lib/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.js +4 -4
- package/node/lib/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.js +3 -3
- package/node/lib/components/bottom-sheet/BottomSheet.js +9 -9
- package/node/lib/components/bottom-sheet/BottomSheet.stories.js +2 -2
- package/node/lib/components/breadcrumb/Breadcrumb.js +2 -2
- package/node/lib/components/buttons/button/Button.js +8 -8
- package/node/lib/components/buttons/button/Button.stories.js +9 -9
- package/node/lib/components/card/Card.js +1 -1
- package/node/lib/components/card/CardBody.js +1 -1
- package/node/lib/components/card/CardHeader.js +2 -2
- package/node/lib/components/card/CardHeader.stories.helper.js +2 -2
- package/node/lib/components/chips/chip/Chip.js +7 -7
- package/node/lib/components/chips/chip-container/ChipContainer.js +2 -2
- package/node/lib/components/icon-wrapper/IconWrapper.js +2 -2
- package/node/lib/components/link-button/LinkButton.js +3 -3
- package/node/lib/components/loading-indicator/LoadingIndicator.js +6 -6
- package/node/lib/components/mobile-flyout/MobileFlyout.js +5 -5
- package/node/lib/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +3 -3
- package/node/lib/components/modals/AlertModal.js +9 -9
- package/node/lib/components/modals/ConfirmModal.js +2 -2
- package/node/lib/components/modals/CustomModal.js +1 -1
- package/node/lib/components/modals/ModalBase.js +4 -4
- package/node/lib/components/modals/ModalFooter.js +2 -2
- package/node/lib/components/modals/image-gallery/ImageGallery.helper.js +1 -1
- package/node/lib/components/modals/image-gallery/ImageGallery.js +2 -2
- package/node/lib/components/modals/image-gallery/ImageGallery.stories.helper.js +29 -29
- package/node/lib/components/modals/image-gallery/ImageGallerySwiper.js +3 -3
- package/node/lib/components/modals/image-gallery/image-gallery-item/ImageGalleryItem.js +5 -5
- package/node/lib/components/modals/image-gallery/internal/CloseButton.js +3 -3
- package/node/lib/components/pagination/Pagination.js +12 -12
- package/node/lib/components/popovers/popover/Popover.js +8 -8
- package/node/lib/components/popovers/popover-menu/PopoverMenu.js +1 -1
- package/node/lib/components/progress/Progress.js +6 -6
- package/node/lib/components/search-input/SearchInput.js +1 -1
- package/node/lib/components/search-input/useSearchInput.js +6 -6
- package/node/lib/components/snackbar/Snackbar.js +8 -8
- package/node/lib/components/snackbar/SnackbarProvider.js +1 -1
- package/node/lib/components/stepper-horizontal/StepperHorizontal.js +5 -5
- package/node/lib/components/stepper-horizontal/step-horizontal/StepHorizontal.js +1 -1
- package/node/lib/components/stepper-vertical/StepperVertical.js +1 -1
- package/node/lib/components/stepper-vertical/step-vertical/StepVertical.js +7 -7
- package/node/lib/components/tab/Tabs.js +22 -22
- package/node/lib/components/tab/tab-pane/TabPane.js +2 -2
- package/node/lib/components/tab/useTabScroll.js +10 -10
- package/node/lib/components/table-header-cell/TableHeaderCell.js +4 -4
- package/node/lib/forms/checkbox/Checkbox.js +9 -9
- package/node/lib/forms/color-indicator/ColorIndicator.js +4 -4
- package/node/lib/forms/radio/RadioButton.js +6 -6
- package/node/lib/forms/radio/RadioGroup.js +1 -1
- package/node/lib/forms/segment/Segment.js +5 -5
- package/node/lib/forms/segment/segment-control/SegmentControl.js +6 -6
- package/node/lib/forms/select/Select.js +1 -1
- package/node/lib/forms/select/internal/ListItem.js +9 -9
- package/node/lib/forms/select/internal/SelectButton.js +7 -7
- package/node/lib/forms/select/internal/SelectLabel.js +3 -3
- package/node/lib/forms/select/internal/SelectWrapper.js +2 -2
- package/node/lib/forms/select/internal/utils.js +1 -1
- package/node/lib/forms/slider/Slider.js +7 -7
- package/node/lib/forms/switch/Switch.js +3 -3
- package/node/lib/forms/text-area/TextArea.js +10 -10
- package/node/lib/forms/text-editor/TextEditor.js +39 -35
- package/node/lib/forms/text-editor/TextEditorButton.js +11 -11
- package/node/lib/forms/text-input/TextInput.js +4 -4
- package/node/lib/forms/time-picker/time-picker-dropdown/TimePickerInput.js +1 -1
- package/node/lib/helper/index.js +2 -2
- package/node/lib/helper/setRef.js +1 -1
- package/node/lib/helper/useControlled.js +1 -1
- package/node/lib/helper/useId.js +1 -1
- package/node/lib/helper/useOnClickOutside.js +4 -4
- package/package.json +1 -1
|
@@ -39,17 +39,17 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
39
39
|
|
|
40
40
|
const images = [{
|
|
41
41
|
src: _gallery01Webp.default,
|
|
42
|
-
alt:
|
|
42
|
+
alt: "Asset1",
|
|
43
43
|
imageContent: {
|
|
44
|
-
title:
|
|
45
|
-
body:
|
|
44
|
+
title: "Asset 1",
|
|
45
|
+
body: "Asset 1 description"
|
|
46
46
|
}
|
|
47
47
|
}, {
|
|
48
48
|
src: _gallery02Webp.default,
|
|
49
|
-
alt:
|
|
49
|
+
alt: "Asset2",
|
|
50
50
|
containMode: true,
|
|
51
51
|
imageContent: {
|
|
52
|
-
title:
|
|
52
|
+
title: "Asset 2",
|
|
53
53
|
body: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
54
54
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
55
55
|
children: "Asset 2 description with some html inside."
|
|
@@ -64,60 +64,60 @@ const images = [{
|
|
|
64
64
|
}
|
|
65
65
|
}, {
|
|
66
66
|
src: _gallery03Webp.default,
|
|
67
|
-
alt:
|
|
67
|
+
alt: "Asset3",
|
|
68
68
|
containMode: true,
|
|
69
69
|
imageContent: {
|
|
70
|
-
title:
|
|
71
|
-
body:
|
|
70
|
+
title: "Asset 3",
|
|
71
|
+
body: "Asset 3 description"
|
|
72
72
|
}
|
|
73
73
|
}, {
|
|
74
74
|
src: _gallery04Webp.default,
|
|
75
|
-
alt:
|
|
75
|
+
alt: "Asset4",
|
|
76
76
|
imageContent: {
|
|
77
|
-
title:
|
|
78
|
-
body:
|
|
77
|
+
title: "Asset 4",
|
|
78
|
+
body: "Asset 4 description"
|
|
79
79
|
}
|
|
80
80
|
}, {
|
|
81
81
|
src: _gallery05Webp.default,
|
|
82
|
-
alt:
|
|
82
|
+
alt: "Asset5",
|
|
83
83
|
imageContent: {
|
|
84
|
-
title:
|
|
85
|
-
body:
|
|
84
|
+
title: "Asset 5",
|
|
85
|
+
body: "Asset 5 description"
|
|
86
86
|
}
|
|
87
87
|
}, {
|
|
88
88
|
src: _gallery06Webp.default,
|
|
89
|
-
alt:
|
|
89
|
+
alt: "Asset6",
|
|
90
90
|
imageContent: {
|
|
91
|
-
title:
|
|
92
|
-
body:
|
|
91
|
+
title: "Asset 6",
|
|
92
|
+
body: "Asset 6 description"
|
|
93
93
|
}
|
|
94
94
|
}, {
|
|
95
95
|
src: _gallery07Webp.default,
|
|
96
|
-
alt:
|
|
96
|
+
alt: "Asset7",
|
|
97
97
|
imageContent: {
|
|
98
|
-
title:
|
|
99
|
-
body:
|
|
98
|
+
title: "Asset 7",
|
|
99
|
+
body: "Asset 7 description"
|
|
100
100
|
}
|
|
101
101
|
}, {
|
|
102
102
|
src: _gallery08Webp.default,
|
|
103
|
-
alt:
|
|
103
|
+
alt: "Asset8",
|
|
104
104
|
imageContent: {
|
|
105
|
-
title:
|
|
106
|
-
body:
|
|
105
|
+
title: "Asset 8",
|
|
106
|
+
body: "Asset 8 description"
|
|
107
107
|
}
|
|
108
108
|
}, {
|
|
109
109
|
src: _gallery09Webp.default,
|
|
110
|
-
alt:
|
|
110
|
+
alt: "Asset9",
|
|
111
111
|
imageContent: {
|
|
112
|
-
title:
|
|
113
|
-
body:
|
|
112
|
+
title: "Asset 9",
|
|
113
|
+
body: "Asset 9 description"
|
|
114
114
|
}
|
|
115
115
|
}, {
|
|
116
116
|
src: _gallery10Webp.default,
|
|
117
|
-
alt:
|
|
117
|
+
alt: "Asset10",
|
|
118
118
|
imageContent: {
|
|
119
|
-
title:
|
|
120
|
-
body:
|
|
119
|
+
title: "Asset 10",
|
|
120
|
+
body: "Asset 1ß description"
|
|
121
121
|
}
|
|
122
122
|
}];
|
|
123
123
|
var _default = exports.default = images;
|
|
@@ -26,8 +26,8 @@ function ImageGallerySwiper(_ref) {
|
|
|
26
26
|
},
|
|
27
27
|
modules: [_swiper.Thumbs, _swiper.Navigation],
|
|
28
28
|
navigation: {
|
|
29
|
-
nextEl:
|
|
30
|
-
prevEl:
|
|
29
|
+
nextEl: ".fwe-navigate-btn-up",
|
|
30
|
+
prevEl: ".fwe-navigate-btn-down"
|
|
31
31
|
},
|
|
32
32
|
zoom: true,
|
|
33
33
|
className: "gallery-swiper fwe-image-gallery",
|
|
@@ -36,4 +36,4 @@ function ImageGallerySwiper(_ref) {
|
|
|
36
36
|
children: children
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
ImageGallerySwiper.displayName =
|
|
39
|
+
ImageGallerySwiper.displayName = "Swiper";
|
|
@@ -18,18 +18,18 @@ function ImageGalleryItem(_ref) {
|
|
|
18
18
|
...props
|
|
19
19
|
} = _ref;
|
|
20
20
|
const swiperType = (0, _react2.useContext)(_ImageGalleryContext.SwiperContext);
|
|
21
|
-
const isThumbsSwiper = swiperType ===
|
|
21
|
+
const isThumbsSwiper = swiperType === "thumbs";
|
|
22
22
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.SwiperSlide, {
|
|
23
23
|
...props,
|
|
24
24
|
className: (0, _classnames.default)(className, {
|
|
25
|
-
|
|
25
|
+
"fr-image-gallery-item--contain": containMode && isThumbsSwiper
|
|
26
26
|
}),
|
|
27
27
|
children: isThumbsSwiper ? children : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
28
|
-
className: (0, _classnames.default)(
|
|
29
|
-
|
|
28
|
+
className: (0, _classnames.default)("swiper-zoom-container", {
|
|
29
|
+
"fr-image-gallery-item--contain": containMode
|
|
30
30
|
}),
|
|
31
31
|
children: children
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
ImageGalleryItem.displayName =
|
|
35
|
+
ImageGalleryItem.displayName = "SwiperSlide";
|
|
@@ -15,9 +15,9 @@ function CloseButton(_ref) {
|
|
|
15
15
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
16
16
|
type: "button",
|
|
17
17
|
"aria-label": "close",
|
|
18
|
-
className: (0, _classnames.default)(
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
className: (0, _classnames.default)("fwe-image-gallery-close-btn", {
|
|
19
|
+
"fwe-ml-auto": !showScaleButton,
|
|
20
|
+
"fwe-ml-3": showScaleButton
|
|
21
21
|
}),
|
|
22
22
|
onClick: onClose
|
|
23
23
|
});
|
|
@@ -58,18 +58,18 @@ function Pagination(props) {
|
|
|
58
58
|
handleChange(newPageCurrent);
|
|
59
59
|
}
|
|
60
60
|
function handleKeyPress(event, index) {
|
|
61
|
-
if (event.key ===
|
|
61
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
62
62
|
onDotClick(index);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
66
66
|
children: [type !== PaginationType.Dots && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
67
|
-
className: (0, _classnames.default)(
|
|
68
|
-
|
|
67
|
+
className: (0, _classnames.default)("fwe-pagination fwe-p-m", {
|
|
68
|
+
"fwe-d-none": pageMax < 2
|
|
69
69
|
}, className),
|
|
70
70
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
71
|
-
className: (0, _classnames.default)(
|
|
72
|
-
|
|
71
|
+
className: (0, _classnames.default)("fwe-navigate-btn-down", {
|
|
72
|
+
"fwe-disabled": innerPageCurrent <= 1
|
|
73
73
|
}),
|
|
74
74
|
onClick: onBtnDown,
|
|
75
75
|
type: "button",
|
|
@@ -83,25 +83,25 @@ function Pagination(props) {
|
|
|
83
83
|
children: pageMax
|
|
84
84
|
})]
|
|
85
85
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
86
|
-
className: (0, _classnames.default)(
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
className: (0, _classnames.default)("fwe-navigate-btn-up", {
|
|
87
|
+
"fwe-disabled": innerPageCurrent >= pageMax,
|
|
88
|
+
"fwe-ml-4": type === PaginationType.Simple
|
|
89
89
|
}),
|
|
90
90
|
onClick: onBtnUp,
|
|
91
91
|
type: "button",
|
|
92
92
|
"aria-label": "navigate-btn-up"
|
|
93
93
|
})]
|
|
94
94
|
}), type === PaginationType.Dots && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
95
|
-
className: (0, _classnames.default)(
|
|
96
|
-
|
|
95
|
+
className: (0, _classnames.default)("fwe-p-m", {
|
|
96
|
+
"fwe-d-none": pageMax < 2
|
|
97
97
|
}, className),
|
|
98
98
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
99
99
|
className: "fwe-pagination",
|
|
100
100
|
children: dotArray.map(index => /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
101
101
|
tabIndex: 0,
|
|
102
102
|
role: "button",
|
|
103
|
-
className: (0, _classnames.default)(
|
|
104
|
-
|
|
103
|
+
className: (0, _classnames.default)("fwe-page-dot", {
|
|
104
|
+
"fwe-selected": index + 1 === innerPageCurrent
|
|
105
105
|
}),
|
|
106
106
|
onClick: () => onDotClick(index),
|
|
107
107
|
"aria-label": "page-dot",
|
|
@@ -44,19 +44,19 @@ function Popover(_ref) {
|
|
|
44
44
|
} = (0, _reactPopper.usePopper)(referenceElement.current, popperElement, {
|
|
45
45
|
placement: position,
|
|
46
46
|
modifiers: [{
|
|
47
|
-
name:
|
|
47
|
+
name: "arrow",
|
|
48
48
|
options: {
|
|
49
49
|
element: arrowElement
|
|
50
50
|
}
|
|
51
51
|
}, {
|
|
52
|
-
name:
|
|
52
|
+
name: "offset",
|
|
53
53
|
options: {
|
|
54
54
|
offset: [0, 24]
|
|
55
55
|
}
|
|
56
56
|
}, {
|
|
57
|
-
name:
|
|
57
|
+
name: "flip",
|
|
58
58
|
options: {
|
|
59
|
-
fallbackPlacements: flip ? fallbackPositions : [position ||
|
|
59
|
+
fallbackPlacements: flip ? fallbackPositions : [position || "auto"]
|
|
60
60
|
}
|
|
61
61
|
}]
|
|
62
62
|
});
|
|
@@ -75,15 +75,15 @@ function Popover(_ref) {
|
|
|
75
75
|
}
|
|
76
76
|
(0, _useOnClickOutside.default)(popperElRef, closePopover, referenceElement);
|
|
77
77
|
function handleKeyDown(event) {
|
|
78
|
-
if (event.key ===
|
|
78
|
+
if (event.key === "Enter") {
|
|
79
79
|
handleChange(undefined, true);
|
|
80
80
|
}
|
|
81
|
-
if (event.key ===
|
|
81
|
+
if (event.key === "Escape") {
|
|
82
82
|
handleChange(undefined, false);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
function handleKeyUp(event) {
|
|
86
|
-
if (event.key ===
|
|
86
|
+
if (event.key === " ") {
|
|
87
87
|
handleChange(undefined, true);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -99,7 +99,7 @@ function Popover(_ref) {
|
|
|
99
99
|
});
|
|
100
100
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
101
101
|
children: [wrapper ? wrapper(childrenWrapper) : childrenWrapper, showPopper && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
102
|
-
className: (0, _classnames.default)(
|
|
102
|
+
className: (0, _classnames.default)("fwe-popover-container", containerClassName),
|
|
103
103
|
ref: combinedRef,
|
|
104
104
|
style: styles.popper,
|
|
105
105
|
...attributes.popper,
|
|
@@ -45,7 +45,7 @@ function PopoverMenu(_ref) {
|
|
|
45
45
|
}, item.icon + item.text))
|
|
46
46
|
});
|
|
47
47
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
48
|
-
className: (0, _classnames.default)(
|
|
48
|
+
className: (0, _classnames.default)("fwe-popover-menu", className),
|
|
49
49
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Popover.default, {
|
|
50
50
|
popoverContent: content,
|
|
51
51
|
position: "right",
|
|
@@ -9,20 +9,20 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
function Progress(_ref) {
|
|
11
11
|
let {
|
|
12
|
-
background =
|
|
12
|
+
background = "white",
|
|
13
13
|
error = false,
|
|
14
14
|
progress,
|
|
15
15
|
className
|
|
16
16
|
} = _ref;
|
|
17
|
-
const classes = (0, _classnames.default)(
|
|
18
|
-
|
|
17
|
+
const classes = (0, _classnames.default)("fwe-progress-bar", {
|
|
18
|
+
"fwe-bg-red": error
|
|
19
19
|
}, {
|
|
20
|
-
|
|
20
|
+
"fwe-progress-bar-black": background === "black"
|
|
21
21
|
}, {
|
|
22
|
-
|
|
22
|
+
"fwe-progress-bar-background": background === "background"
|
|
23
23
|
});
|
|
24
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
25
|
-
className: (0, _classnames.default)(
|
|
25
|
+
className: (0, _classnames.default)("fwe-progress", className),
|
|
26
26
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
27
27
|
className: classes,
|
|
28
28
|
role: "progressbar",
|
|
@@ -65,7 +65,7 @@ function SearchInput(_ref) {
|
|
|
65
65
|
"aria-label": suggestion.value,
|
|
66
66
|
"aria-selected": selectedSuggestionIndex === i,
|
|
67
67
|
onClick: () => handleSuggestionClick(suggestion),
|
|
68
|
-
className: `fwe-search-suggestion ${selectedSuggestionIndex === i ?
|
|
68
|
+
className: `fwe-search-suggestion ${selectedSuggestionIndex === i ? "fwe-selected" : ""}`,
|
|
69
69
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
70
70
|
// eslint-disable-next-line react/no-danger
|
|
71
71
|
dangerouslySetInnerHTML: {
|
|
@@ -8,7 +8,7 @@ var _react = require("react");
|
|
|
8
8
|
var _useControlled = _interopRequireDefault(require("../../helper/useControlled.js"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
function useSearchInput(inputRef, cappedSuggestions, value) {
|
|
11
|
-
let defaultValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] :
|
|
11
|
+
let defaultValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "";
|
|
12
12
|
let onChange = arguments.length > 4 ? arguments[4] : undefined;
|
|
13
13
|
let onSearch = arguments.length > 5 ? arguments[5] : undefined;
|
|
14
14
|
let onKeyboardNavigate = arguments.length > 6 ? arguments[6] : undefined;
|
|
@@ -41,7 +41,7 @@ function useSearchInput(inputRef, cappedSuggestions, value) {
|
|
|
41
41
|
}
|
|
42
42
|
function handleClearQuery() {
|
|
43
43
|
reset();
|
|
44
|
-
updateValue(
|
|
44
|
+
updateValue("");
|
|
45
45
|
}
|
|
46
46
|
function handleArrowKey(newSuggestionIndex) {
|
|
47
47
|
if (!cappedSuggestions || !cappedSuggestions.length) {
|
|
@@ -60,16 +60,16 @@ function useSearchInput(inputRef, cappedSuggestions, value) {
|
|
|
60
60
|
}
|
|
61
61
|
function handleKeyDown(event) {
|
|
62
62
|
switch (event.key) {
|
|
63
|
-
case
|
|
63
|
+
case "Enter":
|
|
64
64
|
handleSearch();
|
|
65
65
|
break;
|
|
66
|
-
case
|
|
66
|
+
case "Escape":
|
|
67
67
|
handleClearQuery();
|
|
68
68
|
break;
|
|
69
|
-
case
|
|
69
|
+
case "ArrowUp":
|
|
70
70
|
handleUpArrowKey();
|
|
71
71
|
break;
|
|
72
|
-
case
|
|
72
|
+
case "ArrowDown":
|
|
73
73
|
handleDownArrowKey();
|
|
74
74
|
break;
|
|
75
75
|
default:
|
|
@@ -34,7 +34,7 @@ function Snackbar(props) {
|
|
|
34
34
|
function handleClose() {
|
|
35
35
|
setShow(false);
|
|
36
36
|
}
|
|
37
|
-
const classes = first ?
|
|
37
|
+
const classes = first ? "fr-snackbar-wrapper--first" : "fr-snackbar-wrapper";
|
|
38
38
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
|
|
39
39
|
nodeRef: nodeRef,
|
|
40
40
|
onExited: () => onClose ? onClose() : undefined,
|
|
@@ -50,13 +50,13 @@ function Snackbar(props) {
|
|
|
50
50
|
className: classes,
|
|
51
51
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
52
52
|
className: (0, _classnames.default)({
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
"fwe-snackbar": true,
|
|
54
|
+
"fwe-snackbar-b": data?.variant === "b",
|
|
55
|
+
"fwe-snackbar-c": data?.variant === "c",
|
|
56
|
+
"fwe-snackbar-info": data?.type === "info",
|
|
57
|
+
"fwe-snackbar-warning": data?.type === "warning",
|
|
58
|
+
"fwe-snackbar-error": data?.type === "error",
|
|
59
|
+
"fwe-snackbar-shadow": data?.darkBackground
|
|
60
60
|
}, data?.className),
|
|
61
61
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
62
62
|
children: data?.text
|
|
@@ -51,7 +51,7 @@ function SnackbarProvider(props) {
|
|
|
51
51
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_SnackbarContext.default.Provider, {
|
|
52
52
|
value: contextValue,
|
|
53
53
|
children: [children, /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
54
|
-
className: (0, _classnames.default)(
|
|
54
|
+
className: (0, _classnames.default)("fwe-snackbar-container", className),
|
|
55
55
|
children: snacks.map(snack => /*#__PURE__*/(0, _jsxRuntime.jsx)(_Snackbar.default, {
|
|
56
56
|
data: snack.data,
|
|
57
57
|
onAction: () => snack.onAction ? snack.onAction() : undefined,
|
|
@@ -28,12 +28,12 @@ const StepperHorizontal = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
const handleKeyDown = i => event => {
|
|
31
|
-
if (event.key ===
|
|
31
|
+
if (event.key === "Enter") {
|
|
32
32
|
handleStepClick(i);
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
const handleKeyUp = i => event => {
|
|
36
|
-
if (event.key ===
|
|
36
|
+
if (event.key === " ") {
|
|
37
37
|
handleStepClick(i);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
@@ -46,9 +46,9 @@ const StepperHorizontal = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
46
46
|
ref: ref,
|
|
47
47
|
onKeyDown: handleKeyDown(i),
|
|
48
48
|
onKeyUp: handleKeyUp(i),
|
|
49
|
-
className: (0, _classnames.default)(
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
className: (0, _classnames.default)("fwe-step-container", {
|
|
50
|
+
"fwe-step-done": stepIndex > i,
|
|
51
|
+
"fwe-step-active": i === stepIndex
|
|
52
52
|
}),
|
|
53
53
|
onClick: () => handleStepClick(i),
|
|
54
54
|
...props,
|
|
@@ -17,7 +17,7 @@ const StepHorizontal = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
17
17
|
} = _ref;
|
|
18
18
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
19
19
|
ref: ref,
|
|
20
|
-
className: (0, _classnames.default)(
|
|
20
|
+
className: (0, _classnames.default)("overflow-hidden", {
|
|
21
21
|
hidden: !isActive
|
|
22
22
|
}),
|
|
23
23
|
...props,
|
|
@@ -38,7 +38,7 @@ const StepperVertical = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
38
38
|
});
|
|
39
39
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
40
40
|
ref: ref,
|
|
41
|
-
className: (0, _classnames.default)(
|
|
41
|
+
className: (0, _classnames.default)("fwe-stepper-vertical", className),
|
|
42
42
|
...props,
|
|
43
43
|
children: stepComponents
|
|
44
44
|
});
|
|
@@ -28,7 +28,7 @@ const StepVertical = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
28
28
|
const itemHeight = contentRef.current?.offsetHeight;
|
|
29
29
|
containerRef.current.style.height = `${itemHeight}px`;
|
|
30
30
|
} else {
|
|
31
|
-
containerRef.current.style.height =
|
|
31
|
+
containerRef.current.style.height = "20px";
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}, [isActive]);
|
|
@@ -38,21 +38,21 @@ const StepVertical = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
const handleKeyDown = event => {
|
|
41
|
-
if (event.key ===
|
|
41
|
+
if (event.key === "Enter") {
|
|
42
42
|
handleClick();
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
const handleKeyUp = event => {
|
|
46
|
-
if (event.key ===
|
|
46
|
+
if (event.key === " ") {
|
|
47
47
|
handleClick();
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
51
51
|
ref: ref,
|
|
52
|
-
className: (0, _classnames.default)(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
className: (0, _classnames.default)("fwe-step-container", {
|
|
53
|
+
"fwe-last-element": isLastElement,
|
|
54
|
+
"fwe-step-active": isActive,
|
|
55
|
+
"fwe-step-done": isDone
|
|
56
56
|
}),
|
|
57
57
|
...props,
|
|
58
58
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -23,7 +23,7 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
23
23
|
children,
|
|
24
24
|
className,
|
|
25
25
|
onChange,
|
|
26
|
-
viewType =
|
|
26
|
+
viewType = "responsive",
|
|
27
27
|
showDivider = false,
|
|
28
28
|
...props
|
|
29
29
|
} = _ref;
|
|
@@ -34,10 +34,10 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
34
34
|
const scrollContent = (0, _react.useRef)(null);
|
|
35
35
|
const scrollArea = (0, _react.useRef)(null);
|
|
36
36
|
const observer = (0, _react.useRef)(null);
|
|
37
|
-
let activeId =
|
|
37
|
+
let activeId = "";
|
|
38
38
|
_react.default.Children.forEach(children, (element, i) => {
|
|
39
39
|
if (/*#__PURE__*/_react.default.isValidElement(element)) {
|
|
40
|
-
if (activeId ===
|
|
40
|
+
if (activeId === "") {
|
|
41
41
|
activeId = `${componentId.current}-tab-panel-${i}`;
|
|
42
42
|
} else if (element.props.active) {
|
|
43
43
|
activeId = `${componentId.current}-tab-panel-${i}`;
|
|
@@ -112,16 +112,16 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
112
112
|
/*#__PURE__*/
|
|
113
113
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
114
114
|
(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
115
|
-
children: viewType ===
|
|
116
|
-
className: (0, _classnames.default)(
|
|
115
|
+
children: viewType === "legacy" ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
116
|
+
className: (0, _classnames.default)("fwe-legacy-tabs", className),
|
|
117
117
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
118
118
|
role: "tablist",
|
|
119
|
-
className: (0, _classnames.default)(
|
|
120
|
-
|
|
119
|
+
className: (0, _classnames.default)("fwe-legacy-tab-bar", {
|
|
120
|
+
"fwe-legacy-tab-bar-full-width": config?.tabBar?.fullWidth
|
|
121
121
|
}, {
|
|
122
|
-
|
|
122
|
+
"fwe-legacy-tab-items-equal-width": config?.tabItems?.appearance === "equal"
|
|
123
123
|
}, {
|
|
124
|
-
|
|
124
|
+
"fwe-legacy-tab-items-fill": config?.tabItems?.appearance === "fill"
|
|
125
125
|
}),
|
|
126
126
|
children: innerChildren && innerChildren.map((child, i) => {
|
|
127
127
|
const {
|
|
@@ -135,8 +135,8 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
135
135
|
/*#__PURE__*/
|
|
136
136
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
|
|
137
137
|
(0, _jsxRuntime.jsx)("li", {
|
|
138
|
-
className: (0, _classnames.default)(
|
|
139
|
-
|
|
138
|
+
className: (0, _classnames.default)("fwe-legacy-tab-item", {
|
|
139
|
+
"fwe-active": active
|
|
140
140
|
}),
|
|
141
141
|
onClick: () => showTabPane(id),
|
|
142
142
|
children: icon ?
|
|
@@ -144,8 +144,8 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
144
144
|
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|
|
145
145
|
(0, _jsxRuntime.jsxs)("a", {
|
|
146
146
|
id: tabId,
|
|
147
|
-
className: (0, _classnames.default)(
|
|
148
|
-
|
|
147
|
+
className: (0, _classnames.default)("fwe-legacy-tab-link", {
|
|
148
|
+
"fwe-can-swap-icon": innerChildren.length === 2 && i === 1
|
|
149
149
|
}),
|
|
150
150
|
role: "tab",
|
|
151
151
|
"aria-controls": id,
|
|
@@ -179,15 +179,15 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
179
179
|
ref: combinedRef,
|
|
180
180
|
...props,
|
|
181
181
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
182
|
-
className: (0, _classnames.default)(
|
|
182
|
+
className: (0, _classnames.default)("fr-tab-scroller", classes),
|
|
183
183
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
184
|
-
className: (0, _classnames.default)(
|
|
185
|
-
|
|
184
|
+
className: (0, _classnames.default)("fr-tab-scroller-scroll-area fr-tab-scroller-scroll-area--scroll", {
|
|
185
|
+
"fr-tab-scroller-scroll-area--compact": useCompactDensity
|
|
186
186
|
}),
|
|
187
187
|
ref: scrollArea,
|
|
188
188
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
189
|
-
className: (0, _classnames.default)(
|
|
190
|
-
|
|
189
|
+
className: (0, _classnames.default)("fr-tab-scroller-scroll-content", {
|
|
190
|
+
"fr-tab-scroller-scroll-content--with-divider": showDivider
|
|
191
191
|
}),
|
|
192
192
|
ref: scrollContent,
|
|
193
193
|
style: style,
|
|
@@ -201,8 +201,8 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
201
201
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
202
202
|
type: "button",
|
|
203
203
|
role: "tab",
|
|
204
|
-
className: (0, _classnames.default)(
|
|
205
|
-
|
|
204
|
+
className: (0, _classnames.default)("fr-tab", {
|
|
205
|
+
"fr-tab--active": active
|
|
206
206
|
}),
|
|
207
207
|
id: tabId,
|
|
208
208
|
"aria-controls": id,
|
|
@@ -216,8 +216,8 @@ const Tabs = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
216
216
|
children: name
|
|
217
217
|
})
|
|
218
218
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
219
|
-
className: (0, _classnames.default)(
|
|
220
|
-
|
|
219
|
+
className: (0, _classnames.default)("fr-tab-indicator", {
|
|
220
|
+
"fr-tab-indicator--active": active
|
|
221
221
|
}),
|
|
222
222
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
223
223
|
className: "fr-tab-indicator-content fr-tab-indicator-content--underline"
|
|
@@ -16,9 +16,9 @@ function TabPane(_ref) {
|
|
|
16
16
|
id
|
|
17
17
|
} = _ref;
|
|
18
18
|
const tabPaneClasses = (0, _classnames.default)({
|
|
19
|
-
|
|
19
|
+
"fr-show": isVisible
|
|
20
20
|
}, {
|
|
21
|
-
|
|
21
|
+
"fr-hide": !isVisible
|
|
22
22
|
}, className);
|
|
23
23
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
24
24
|
id: id,
|