@festo-ui/react 10.0.1-dev.850 → 10.0.1-dev.852

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 (209) hide show
  1. package/package.json +1 -1
  2. package/dist/components/accordion/Accordion.css +0 -4
  3. package/dist/components/accordion/Accordion.d.ts +0 -10
  4. package/dist/components/accordion/Accordion.js +0 -42
  5. package/dist/components/accordion/AccordionContext.d.ts +0 -11
  6. package/dist/components/accordion/AccordionContext.js +0 -3
  7. package/dist/components/accordion/accordion-header/AccordionHeader.css +0 -11
  8. package/dist/components/accordion/accordion-header/AccordionHeader.d.ts +0 -2
  9. package/dist/components/accordion/accordion-header/AccordionHeader.js +0 -12
  10. package/dist/components/accordion/accordion-item/AccordionItem.css +0 -64
  11. package/dist/components/accordion/accordion-item/AccordionItem.d.ts +0 -8
  12. package/dist/components/accordion/accordion-item/AccordionItem.js +0 -61
  13. package/dist/components/accordion/accordion-item/AccordionItemContext.d.ts +0 -7
  14. package/dist/components/accordion/accordion-item/AccordionItemContext.js +0 -3
  15. package/dist/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.css +0 -76
  16. package/dist/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.d.ts +0 -2
  17. package/dist/components/accordion/accordion-item/accordion-item-body/AccordionItemBody.js +0 -56
  18. package/dist/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.css +0 -11
  19. package/dist/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.d.ts +0 -2
  20. package/dist/components/accordion/accordion-item/accordion-item-header/AccordionItemHeader.js +0 -21
  21. package/dist/components/bottom-sheet/BottomSheet.css +0 -18
  22. package/dist/components/bottom-sheet/BottomSheet.d.ts +0 -10
  23. package/dist/components/bottom-sheet/BottomSheet.js +0 -104
  24. package/dist/components/breadcrumb/Breadcrumb.d.ts +0 -13
  25. package/dist/components/breadcrumb/Breadcrumb.js +0 -61
  26. package/dist/components/button/Button.d.ts +0 -11
  27. package/dist/components/button/Button.js +0 -37
  28. package/dist/components/card/Card.d.ts +0 -3
  29. package/dist/components/card/Card.js +0 -11
  30. package/dist/components/card/CardBody.d.ts +0 -5
  31. package/dist/components/card/CardBody.js +0 -17
  32. package/dist/components/card/CardHeader.d.ts +0 -8
  33. package/dist/components/card/CardHeader.js +0 -33
  34. package/dist/components/card/CardHeader.stories.helper.js +0 -7
  35. package/dist/components/card/CardNotification.d.ts +0 -5
  36. package/dist/components/card/CardNotification.js +0 -30
  37. package/dist/components/chips/chip/Chip.d.ts +0 -16
  38. package/dist/components/chips/chip/Chip.js +0 -45
  39. package/dist/components/chips/chip-container/ChipContainer.d.ts +0 -5
  40. package/dist/components/chips/chip-container/ChipContainer.js +0 -16
  41. package/dist/components/icon-wrapper/IconWrapper.d.ts +0 -7
  42. package/dist/components/icon-wrapper/IconWrapper.js +0 -13
  43. package/dist/components/loading-indicator/LoadingIndicator.d.ts +0 -5
  44. package/dist/components/loading-indicator/LoadingIndicator.js +0 -42
  45. package/dist/components/mobile-flyout/MobileFlyout.d.ts +0 -11
  46. package/dist/components/mobile-flyout/MobileFlyout.js +0 -89
  47. package/dist/components/mobile-flyout/MobileFlyoutContext.d.ts +0 -8
  48. package/dist/components/mobile-flyout/MobileFlyoutContext.js +0 -3
  49. package/dist/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.d.ts +0 -18
  50. package/dist/components/mobile-flyout/mobile-flyout-item/MobileFlyoutItem.js +0 -37
  51. package/dist/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.css +0 -5
  52. package/dist/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.d.ts +0 -8
  53. package/dist/components/mobile-flyout/mobile-flyout-page/MobileFlyoutPage.js +0 -36
  54. package/dist/components/modals/AlertModal.d.ts +0 -12
  55. package/dist/components/modals/AlertModal.js +0 -54
  56. package/dist/components/modals/ConfirmModal.d.ts +0 -11
  57. package/dist/components/modals/ConfirmModal.js +0 -47
  58. package/dist/components/modals/CustomModal.d.ts +0 -8
  59. package/dist/components/modals/CustomModal.js +0 -39
  60. package/dist/components/modals/Modal.css +0 -39
  61. package/dist/components/modals/Modal.d.ts +0 -8
  62. package/dist/components/modals/Modal.js +0 -32
  63. package/dist/components/modals/ModalBase.d.ts +0 -10
  64. package/dist/components/modals/ModalBase.js +0 -125
  65. package/dist/components/modals/ModalFooter.d.ts +0 -2
  66. package/dist/components/modals/ModalFooter.js +0 -14
  67. package/dist/components/modals/Prompt.d.ts +0 -15
  68. package/dist/components/modals/Prompt.js +0 -61
  69. package/dist/components/modals/image-gallery/ImageGallery.css +0 -833
  70. package/dist/components/modals/image-gallery/ImageGallery.d.ts +0 -21
  71. package/dist/components/modals/image-gallery/ImageGallery.helper.d.ts +0 -2
  72. package/dist/components/modals/image-gallery/ImageGallery.helper.js +0 -13
  73. package/dist/components/modals/image-gallery/ImageGallery.js +0 -104
  74. package/dist/components/modals/image-gallery/ImageGallery.stories.helper.js +0 -112
  75. package/dist/components/modals/image-gallery/ImageGalleryContent.d.ts +0 -8
  76. package/dist/components/modals/image-gallery/ImageGalleryContent.js +0 -15
  77. package/dist/components/modals/image-gallery/ImageGalleryScale.d.ts +0 -6
  78. package/dist/components/modals/image-gallery/ImageGalleryScale.js +0 -15
  79. package/dist/components/modals/image-gallery/ImageGallerySwiper.d.ts +0 -12
  80. package/dist/components/modals/image-gallery/ImageGallerySwiper.js +0 -40
  81. package/dist/components/modals/image-gallery/ImageGalleryThumbsSwiper.d.ts +0 -7
  82. package/dist/components/modals/image-gallery/ImageGalleryThumbsSwiper.js +0 -27
  83. package/dist/components/modals/image-gallery/internal/CloseButton.d.ts +0 -6
  84. package/dist/components/modals/image-gallery/internal/CloseButton.js +0 -14
  85. package/dist/components/modals/image-gallery/internal/ImageGalleryContainer.d.ts +0 -5
  86. package/dist/components/modals/image-gallery/internal/ImageGalleryContainer.js +0 -8
  87. package/dist/components/modals/image-gallery/internal/ImageGalleryPagination.d.ts +0 -5
  88. package/dist/components/modals/image-gallery/internal/ImageGalleryPagination.js +0 -29
  89. package/dist/components/pagination/Pagination.css +0 -10
  90. package/dist/components/pagination/Pagination.d.ts +0 -14
  91. package/dist/components/pagination/Pagination.js +0 -104
  92. package/dist/components/popovers/legend/Legend.d.ts +0 -11
  93. package/dist/components/popovers/legend/Legend.js +0 -25
  94. package/dist/components/popovers/popover/Popover.css +0 -9
  95. package/dist/components/popovers/popover/Popover.d.ts +0 -19
  96. package/dist/components/popovers/popover/Popover.js +0 -96
  97. package/dist/components/popovers/popover-menu/PopoverMenu.d.ts +0 -9
  98. package/dist/components/popovers/popover-menu/PopoverMenu.js +0 -33
  99. package/dist/components/popovers/popover-menu/PopoverMenuContext.d.ts +0 -4
  100. package/dist/components/popovers/popover-menu/PopoverMenuContext.js +0 -5
  101. package/dist/components/popovers/popover-menu/popover-menu-item/PopoverMenuItem.d.ts +0 -9
  102. package/dist/components/popovers/popover-menu/popover-menu-item/PopoverMenuItem.js +0 -31
  103. package/dist/components/popovers/tooltip/Tooltip.d.ts +0 -6
  104. package/dist/components/popovers/tooltip/Tooltip.js +0 -13
  105. package/dist/components/progress/Progress.d.ts +0 -6
  106. package/dist/components/progress/Progress.js +0 -30
  107. package/dist/components/search-input/ClearButton.d.ts +0 -1
  108. package/dist/components/search-input/ClearButton.js +0 -11
  109. package/dist/components/search-input/SearchInput.css +0 -13
  110. package/dist/components/search-input/SearchInput.d.ts +0 -13
  111. package/dist/components/search-input/SearchInput.js +0 -65
  112. package/dist/components/search-input/SearchSuggestion.d.ts +0 -17
  113. package/dist/components/search-input/SearchSuggestion.js +0 -21
  114. package/dist/components/search-input/useSearchInput.d.ts +0 -13
  115. package/dist/components/search-input/useSearchInput.js +0 -85
  116. package/dist/components/snackbar/Snackbar.css +0 -55
  117. package/dist/components/snackbar/Snackbar.d.ts +0 -21
  118. package/dist/components/snackbar/Snackbar.js +0 -82
  119. package/dist/components/snackbar/SnackbarContext.d.ts +0 -7
  120. package/dist/components/snackbar/SnackbarContext.js +0 -3
  121. package/dist/components/snackbar/SnackbarProvider.d.ts +0 -7
  122. package/dist/components/snackbar/SnackbarProvider.js +0 -69
  123. package/dist/components/snackbar/useSnackbar.d.ts +0 -2
  124. package/dist/components/snackbar/useSnackbar.js +0 -4
  125. package/dist/components/stepper-horizontal/StepperHorizontal.css +0 -6
  126. package/dist/components/stepper-horizontal/StepperHorizontal.d.ts +0 -7
  127. package/dist/components/stepper-horizontal/StepperHorizontal.js +0 -49
  128. package/dist/components/stepper-horizontal/step-horizontal/StepHorizontal.css +0 -24
  129. package/dist/components/stepper-horizontal/step-horizontal/StepHorizontal.d.ts +0 -6
  130. package/dist/components/stepper-horizontal/step-horizontal/StepHorizontal.js +0 -17
  131. package/dist/components/stepper-vertical/StepperVertical.d.ts +0 -6
  132. package/dist/components/stepper-vertical/StepperVertical.js +0 -26
  133. package/dist/components/stepper-vertical/step-vertical/StepVertical.css +0 -10
  134. package/dist/components/stepper-vertical/step-vertical/StepVertical.d.ts +0 -11
  135. package/dist/components/stepper-vertical/step-vertical/StepVertical.js +0 -59
  136. package/dist/components/tab/Tabs.css +0 -285
  137. package/dist/components/tab/Tabs.d.ts +0 -22
  138. package/dist/components/tab/Tabs.js +0 -194
  139. package/dist/components/tab/interfaces.d.ts +0 -5
  140. package/dist/components/tab/interfaces.js +0 -0
  141. package/dist/components/tab/tab-pane/TabPane.css +0 -8
  142. package/dist/components/tab/tab-pane/TabPane.d.ts +0 -8
  143. package/dist/components/tab/tab-pane/TabPane.js +0 -22
  144. package/dist/components/tab/useTabScroll.d.ts +0 -25
  145. package/dist/components/tab/useTabScroll.js +0 -151
  146. package/dist/components/table-header-cell/TableHeaderCell.d.ts +0 -6
  147. package/dist/components/table-header-cell/TableHeaderCell.js +0 -22
  148. package/dist/forms/checkbox/Checkbox.css +0 -134
  149. package/dist/forms/checkbox/Checkbox.d.ts +0 -12
  150. package/dist/forms/checkbox/Checkbox.js +0 -83
  151. package/dist/forms/combobox/ComboBox.css +0 -124
  152. package/dist/forms/combobox/ComboBox.d.ts +0 -27
  153. package/dist/forms/combobox/ComboBox.js +0 -174
  154. package/dist/forms/multi-select/MultiSelect.css +0 -13
  155. package/dist/forms/multi-select/MultiSelect.d.ts +0 -20
  156. package/dist/forms/multi-select/MultiSelect.js +0 -192
  157. package/dist/forms/radio/RadioButton.d.ts +0 -14
  158. package/dist/forms/radio/RadioButton.js +0 -57
  159. package/dist/forms/radio/RadioGroup.d.ts +0 -12
  160. package/dist/forms/radio/RadioGroup.js +0 -51
  161. package/dist/forms/radio/RadioGroupContext.d.ts +0 -12
  162. package/dist/forms/radio/RadioGroupContext.js +0 -3
  163. package/dist/forms/segment/Segment.d.ts +0 -12
  164. package/dist/forms/segment/Segment.js +0 -60
  165. package/dist/forms/segment/segment-control/SegmentControl.d.ts +0 -10
  166. package/dist/forms/segment/segment-control/SegmentControl.js +0 -59
  167. package/dist/forms/select/Select.d.ts +0 -25
  168. package/dist/forms/select/Select.js +0 -93
  169. package/dist/forms/select/internal/SelectButton.d.ts +0 -0
  170. package/dist/forms/select/internal/SelectButton.js +0 -0
  171. package/dist/forms/select/internal/SelectButtonContent.d.ts +0 -0
  172. package/dist/forms/select/internal/SelectButtonContent.js +0 -0
  173. package/dist/forms/select/internal/SelectOptionsContainer.d.ts +0 -0
  174. package/dist/forms/select/internal/SelectOptionsContainer.js +0 -0
  175. package/dist/forms/slider/Slider.css +0 -50
  176. package/dist/forms/slider/Slider.d.ts +0 -14
  177. package/dist/forms/slider/Slider.js +0 -98
  178. package/dist/forms/switch/Switch.d.ts +0 -10
  179. package/dist/forms/switch/Switch.js +0 -48
  180. package/dist/forms/text-area/TextArea.css +0 -14
  181. package/dist/forms/text-area/TextArea.d.ts +0 -13
  182. package/dist/forms/text-area/TextArea.js +0 -116
  183. package/dist/forms/text-input/TextInput.css +0 -31
  184. package/dist/forms/text-input/TextInput.d.ts +0 -13
  185. package/dist/forms/text-input/TextInput.js +0 -65
  186. package/dist/forms/time-picker/TimePicker.css +0 -10
  187. package/dist/forms/time-picker/TimePicker.d.ts +0 -25
  188. package/dist/forms/time-picker/TimePicker.js +0 -125
  189. package/dist/forms/time-picker/time-picker-dropdown/TimePickerDropdown.css +0 -4
  190. package/dist/forms/time-picker/time-picker-dropdown/TimePickerDropdown.d.ts +0 -19
  191. package/dist/forms/time-picker/time-picker-dropdown/TimePickerDropdown.js +0 -209
  192. package/dist/forms/time-picker/time-picker-dropdown/TimePickerInput.d.ts +0 -9
  193. package/dist/forms/time-picker/time-picker-dropdown/TimePickerInput.js +0 -15
  194. package/dist/index.d.ts +0 -60
  195. package/dist/index.js +0 -60
  196. package/dist/utils/index.d.ts +0 -1
  197. package/dist/utils/index.js +0 -7
  198. package/dist/utils/setRef.d.ts +0 -1
  199. package/dist/utils/setRef.js +0 -5
  200. package/dist/utils/types.d.ts +0 -23
  201. package/dist/utils/types.js +0 -0
  202. package/dist/utils/useControlled.d.ts +0 -7
  203. package/dist/utils/useControlled.js +0 -20
  204. package/dist/utils/useForkRef.d.ts +0 -2
  205. package/dist/utils/useForkRef.js +0 -15
  206. package/dist/utils/useId.d.ts +0 -1
  207. package/dist/utils/useId.js +0 -20
  208. package/dist/utils/useOnClickOutside.d.ts +0 -2
  209. package/dist/utils/useOnClickOutside.js +0 -20
@@ -1,21 +0,0 @@
1
- import './ImageGallery.scss';
2
- import { type ComponentPropsWithoutRef } from 'react';
3
- import { type ModalBaseProps } from '../ModalBase';
4
- import { type ImageDescriptiveContent } from './ImageGalleryContent';
5
- export type ImageGalleryItemData = {
6
- imageContent?: ImageDescriptiveContent;
7
- containMode?: boolean;
8
- } & ComponentPropsWithoutRef<'img'> & Record<string, unknown>;
9
- export interface ImageGalleryProps extends ComponentPropsWithoutRef<'div'>, ModalBaseProps {
10
- /** Index number of initial slide. */
11
- startIndex: number;
12
- images?: ImageGalleryItemData[];
13
- thumbnailImages?: ImageGalleryItemData[];
14
- /** Whether to show pagination controls. Can also accept a number in case images are passed as children */
15
- pagination?: boolean | number;
16
- showScaleButton?: boolean;
17
- /** Whether to show descriptive content). Can also be used as a render prop called with the index of the current image */
18
- descriptiveContent?: boolean | ((index: number) => React.ReactNode);
19
- onSlideChanged?: (index: number) => void;
20
- }
21
- export declare const ImageGallery: (props: ImageGalleryProps & import("react").RefAttributes<HTMLDivElement>) => React.ReactElement | null;
@@ -1,2 +0,0 @@
1
- import { type Argument } from 'classnames';
2
- export declare const getClasses: (thumbnailImages: Argument, descriptiveContent: Argument, className: Argument) => string;
@@ -1,13 +0,0 @@
1
- import classnames from "classnames";
2
- const getClasses = (thumbnailImages, descriptiveContent, className)=>{
3
- const base = 'fwe-modal-image-gallery';
4
- const thumbnail = `${base}--with-thumbnails`;
5
- const container = `${base}--with-container`;
6
- return classnames(base, {
7
- [thumbnail]: [
8
- thumbnailImages
9
- ],
10
- [container]: descriptiveContent
11
- }, className);
12
- };
13
- export { getClasses };
@@ -1,104 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import "./ImageGallery.css";
3
- import { forwardRef, useState } from "react";
4
- import { ModalBase } from "../ModalBase.js";
5
- import { getClasses } from "./ImageGallery.helper.js";
6
- import { ImageGalleryContent } from "./ImageGalleryContent.js";
7
- import { ImageGalleryScale } from "./ImageGalleryScale.js";
8
- import { ImageGallerySwiper } from "./ImageGallerySwiper.js";
9
- import { ImageGalleryThumbsSwiper } from "./ImageGalleryThumbsSwiper.js";
10
- import { CloseButton } from "./internal/CloseButton.js";
11
- import { ImageGalleryContainer } from "./internal/ImageGalleryContainer.js";
12
- import { ImageGalleryPagination } from "./internal/ImageGalleryPagination.js";
13
- function getLength(pagination, images) {
14
- let length = 0;
15
- if ('number' == typeof pagination) length = pagination;
16
- else if (true === pagination && images?.length) length = images.length;
17
- return length;
18
- }
19
- const ImageGallery = /*#__PURE__*/ forwardRef(({ isOpen, startIndex, images, thumbnailImages, descriptiveContent, children, className, pagination, showScaleButton, onClose, onSlideChanged, ...props }, ref)=>{
20
- const [currentIndex, setCurrentIndex] = useState(startIndex + 1);
21
- const [thumbsSwiper, setThumbsSwiper] = useState(null);
22
- const [scaleMode, setScaleMode] = useState(false);
23
- function handleChange(index) {
24
- setCurrentIndex(index + 1);
25
- onSlideChanged?.(index);
26
- }
27
- function handleClose() {
28
- if (scaleMode) return void setScaleMode(false);
29
- setCurrentIndex(startIndex + 1);
30
- setThumbsSwiper(null);
31
- onClose?.();
32
- }
33
- function handleScale() {
34
- setScaleMode(!scaleMode);
35
- }
36
- const hasDescriptiveContent = Boolean(descriptiveContent);
37
- const classes = getClasses(thumbnailImages, hasDescriptiveContent, className);
38
- const length = getLength(pagination, images);
39
- return /*#__PURE__*/ jsxs(ModalBase, {
40
- onClose: handleClose,
41
- className: classes,
42
- ...props,
43
- isOpen: isOpen,
44
- ref: ref,
45
- children: [
46
- isOpen && scaleMode && images && /*#__PURE__*/ jsx(ImageGalleryScale, {
47
- images: images,
48
- currentIndex: currentIndex,
49
- onClose: handleScale
50
- }),
51
- isOpen && /*#__PURE__*/ jsxs(Fragment, {
52
- children: [
53
- /*#__PURE__*/ jsxs("div", {
54
- className: "fwe-image-gallery-header",
55
- children: [
56
- /*#__PURE__*/ jsx(ImageGalleryPagination, {
57
- currentIndex: currentIndex,
58
- length: length
59
- }),
60
- showScaleButton ? /*#__PURE__*/ jsx("button", {
61
- type: "button",
62
- "aria-label": "scale up",
63
- className: "fwe-image-gallery-scale-btn fwe-ml-auto",
64
- onClick: handleScale
65
- }) : null,
66
- /*#__PURE__*/ jsx(CloseButton, {
67
- showScaleButton: showScaleButton,
68
- onClose: handleClose
69
- })
70
- ]
71
- }),
72
- /*#__PURE__*/ jsxs(ImageGalleryContainer, {
73
- descriptiveContent: hasDescriptiveContent,
74
- children: [
75
- /*#__PURE__*/ jsx("div", {
76
- className: "fwe-image-gallery-wrapper",
77
- children: children || /*#__PURE__*/ jsxs(Fragment, {
78
- children: [
79
- /*#__PURE__*/ jsx(ImageGallerySwiper, {
80
- images: images,
81
- onSlideChanged: handleChange,
82
- thumbsSwiper: thumbsSwiper,
83
- startIndex: startIndex
84
- }),
85
- thumbnailImages && /*#__PURE__*/ jsx(ImageGalleryThumbsSwiper, {
86
- images: thumbnailImages,
87
- setThumbsSwiper: setThumbsSwiper
88
- })
89
- ]
90
- })
91
- }),
92
- images && hasDescriptiveContent && /*#__PURE__*/ jsx(ImageGalleryContent, {
93
- imageContent: images?.[currentIndex - 1]?.imageContent
94
- }),
95
- 'function' == typeof descriptiveContent ? descriptiveContent?.(currentIndex - 1) : null
96
- ]
97
- })
98
- ]
99
- })
100
- ]
101
- });
102
- });
103
- ImageGallery.displayName = 'ImageGallery';
104
- export { ImageGallery };
@@ -1,112 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import gallery_01 from "../../../../../web-essentials/stories/assets/gallery-01.webp";
3
- import gallery_02 from "../../../../../web-essentials/stories/assets/gallery-02.webp";
4
- import gallery_03 from "../../../../../web-essentials/stories/assets/gallery-03.webp";
5
- import gallery_04 from "../../../../../web-essentials/stories/assets/gallery-04.webp";
6
- import gallery_05 from "../../../../../web-essentials/stories/assets/gallery-05.webp";
7
- import gallery_06 from "../../../../../web-essentials/stories/assets/gallery-06.webp";
8
- import gallery_07 from "../../../../../web-essentials/stories/assets/gallery-07.webp";
9
- import gallery_08 from "../../../../../web-essentials/stories/assets/gallery-08.webp";
10
- import gallery_09 from "../../../../../web-essentials/stories/assets/gallery-09.webp";
11
- import gallery_10 from "../../../../../web-essentials/stories/assets/gallery-10.webp";
12
- const ImageGallery_stories_helper_images = [
13
- {
14
- src: gallery_01,
15
- alt: 'Asset1',
16
- imageContent: {
17
- title: 'Asset 1',
18
- body: "Asset 1 description"
19
- }
20
- },
21
- {
22
- src: gallery_02,
23
- alt: 'Asset2',
24
- containMode: true,
25
- imageContent: {
26
- title: 'Asset 2',
27
- body: /*#__PURE__*/ jsxs(Fragment, {
28
- children: [
29
- /*#__PURE__*/ jsx("p", {
30
- children: "Asset 2 description with some html inside."
31
- }),
32
- /*#__PURE__*/ jsxs("ul", {
33
- children: [
34
- /*#__PURE__*/ jsx("li", {
35
- children: "bullet point 1"
36
- }),
37
- /*#__PURE__*/ jsx("li", {
38
- children: "bullet point 2"
39
- })
40
- ]
41
- })
42
- ]
43
- })
44
- }
45
- },
46
- {
47
- src: gallery_03,
48
- alt: 'Asset3',
49
- containMode: true,
50
- imageContent: {
51
- title: 'Asset 3',
52
- body: "Asset 3 description"
53
- }
54
- },
55
- {
56
- src: gallery_04,
57
- alt: 'Asset4',
58
- imageContent: {
59
- title: 'Asset 4',
60
- body: "Asset 4 description"
61
- }
62
- },
63
- {
64
- src: gallery_05,
65
- alt: 'Asset5',
66
- imageContent: {
67
- title: 'Asset 5',
68
- body: "Asset 5 description"
69
- }
70
- },
71
- {
72
- src: gallery_06,
73
- alt: 'Asset6',
74
- imageContent: {
75
- title: 'Asset 6',
76
- body: "Asset 6 description"
77
- }
78
- },
79
- {
80
- src: gallery_07,
81
- alt: 'Asset7',
82
- imageContent: {
83
- title: 'Asset 7',
84
- body: "Asset 7 description"
85
- }
86
- },
87
- {
88
- src: gallery_08,
89
- alt: 'Asset8',
90
- imageContent: {
91
- title: 'Asset 8',
92
- body: "Asset 8 description"
93
- }
94
- },
95
- {
96
- src: gallery_09,
97
- alt: 'Asset9',
98
- imageContent: {
99
- title: 'Asset 9',
100
- body: "Asset 9 description"
101
- }
102
- },
103
- {
104
- src: gallery_10,
105
- alt: 'Asset10',
106
- imageContent: {
107
- title: 'Asset 10',
108
- body: "Asset 10 description"
109
- }
110
- }
111
- ];
112
- export { ImageGallery_stories_helper_images as images };
@@ -1,8 +0,0 @@
1
- export interface ImageDescriptiveContent {
2
- title: string;
3
- body: React.ReactNode;
4
- }
5
- export interface ImageGalleryContentProps {
6
- readonly imageContent?: ImageDescriptiveContent;
7
- }
8
- export declare function ImageGalleryContent({ imageContent, }: ImageGalleryContentProps): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- function ImageGalleryContent({ imageContent }) {
3
- return /*#__PURE__*/ jsx(Fragment, {
4
- children: imageContent && /*#__PURE__*/ jsxs("div", {
5
- className: "fwe-image-gallery-content",
6
- children: [
7
- /*#__PURE__*/ jsx("h3", {
8
- children: imageContent.title
9
- }),
10
- imageContent.body
11
- ]
12
- })
13
- });
14
- }
15
- export { ImageGalleryContent };
@@ -1,6 +0,0 @@
1
- import type { ImageGalleryItemData } from './ImageGallery';
2
- export declare function ImageGalleryScale({ images, currentIndex, onClose, }: {
3
- readonly images?: ImageGalleryItemData[];
4
- readonly currentIndex: number;
5
- readonly onClose?: () => void;
6
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,15 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- function ImageGalleryScale({ images, currentIndex, onClose }) {
3
- if (!images || 0 === images.length) return null;
4
- return /*#__PURE__*/ jsx("button", {
5
- className: "fr-image-gallery-scale-container",
6
- type: "button",
7
- "aria-label": "close",
8
- onClick: onClose,
9
- children: /*#__PURE__*/ jsx("img", {
10
- ...images[currentIndex - 1],
11
- alt: images[currentIndex - 1].alt
12
- })
13
- });
14
- }
15
- export { ImageGalleryScale };
@@ -1,12 +0,0 @@
1
- import { type SwiperClass } from 'swiper/react';
2
- import type { ImageGalleryItemData } from './ImageGallery';
3
- export interface ImageGallerySwiperProps {
4
- readonly images?: ImageGalleryItemData[];
5
- readonly onSlideChanged?: (value: number) => void;
6
- readonly thumbsSwiper: SwiperClass | null;
7
- readonly startIndex?: number;
8
- }
9
- export declare function ImageGallerySwiper({ images, onSlideChanged, thumbsSwiper, startIndex, }: ImageGallerySwiperProps): import("react/jsx-runtime").JSX.Element;
10
- export declare namespace ImageGallerySwiper {
11
- var displayName: string;
12
- }
@@ -1,40 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import classnames from "classnames";
3
- import { Navigation, Thumbs, Zoom } from "swiper/modules";
4
- import { Swiper, SwiperSlide } from "swiper/react";
5
- function ImageGallerySwiper({ images, onSlideChanged, thumbsSwiper, startIndex }) {
6
- return /*#__PURE__*/ jsx(Swiper, {
7
- initialSlide: startIndex,
8
- thumbs: {
9
- swiper: thumbsSwiper
10
- },
11
- modules: [
12
- Zoom,
13
- Thumbs,
14
- Navigation
15
- ],
16
- navigation: {
17
- nextEl: '.fwe-navigate-btn-up',
18
- prevEl: '.fwe-navigate-btn-down'
19
- },
20
- zoom: true,
21
- className: "gallery-swiper fwe-image-gallery",
22
- spaceBetween: 0,
23
- onSlideChange: (slider)=>onSlideChanged?.(slider.activeIndex),
24
- children: images?.map(({ containMode, alt, imageContent, ...image })=>/*#__PURE__*/ jsx(SwiperSlide, {
25
- zoom: containMode,
26
- children: /*#__PURE__*/ jsx("div", {
27
- className: "swiper-zoom-container",
28
- children: /*#__PURE__*/ jsx("img", {
29
- ...image,
30
- className: classnames(image.className, {
31
- 'fr-image-gallery-item-contain': containMode
32
- }),
33
- alt: alt
34
- })
35
- })
36
- }, image.src))
37
- });
38
- }
39
- ImageGallerySwiper.displayName = 'ImageGallerySwiper';
40
- export { ImageGallerySwiper };
@@ -1,7 +0,0 @@
1
- import { type SwiperClass } from 'swiper/react';
2
- import type { ImageGalleryItemData } from './ImageGallery';
3
- export interface ImageGalleryThumbsSwiperProps {
4
- readonly images?: ImageGalleryItemData[];
5
- readonly setThumbsSwiper: React.Dispatch<React.SetStateAction<SwiperClass | null>>;
6
- }
7
- export declare function ImageGalleryThumbsSwiper({ images, setThumbsSwiper, }: ImageGalleryThumbsSwiperProps): import("react/jsx-runtime").JSX.Element;
@@ -1,27 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import classnames from "classnames";
3
- import { Thumbs } from "swiper/modules";
4
- import { Swiper, SwiperSlide } from "swiper/react";
5
- function ImageGalleryThumbsSwiper({ images, setThumbsSwiper }) {
6
- return /*#__PURE__*/ jsx(Swiper, {
7
- freeMode: true,
8
- slidesPerView: "auto",
9
- className: "thumbs-swiper fwe-image-gallery-thumbs",
10
- modules: [
11
- Thumbs
12
- ],
13
- watchSlidesProgress: true,
14
- onSwiper: setThumbsSwiper,
15
- children: images?.map(({ containMode, alt, imageContent, ...image })=>/*#__PURE__*/ jsx(SwiperSlide, {
16
- zoom: containMode,
17
- children: /*#__PURE__*/ jsx("img", {
18
- ...image,
19
- className: classnames(image.className, {
20
- 'fr-image-gallery-item-thumb-contain': containMode
21
- }),
22
- alt: alt
23
- })
24
- }, image.src))
25
- });
26
- }
27
- export { ImageGalleryThumbsSwiper };
@@ -1,6 +0,0 @@
1
- interface CloseButtonProps {
2
- readonly onClose?: () => void;
3
- readonly showScaleButton?: boolean;
4
- }
5
- export declare function CloseButton({ onClose, showScaleButton }: CloseButtonProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,14 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import classnames from "classnames";
3
- function CloseButton({ onClose, showScaleButton }) {
4
- return /*#__PURE__*/ jsx("button", {
5
- type: "button",
6
- "aria-label": "close",
7
- className: classnames('fwe-image-gallery-close-btn', {
8
- 'fwe-ml-auto': !showScaleButton,
9
- 'fwe-ml-3': showScaleButton
10
- }),
11
- onClick: onClose
12
- });
13
- }
14
- export { CloseButton };
@@ -1,5 +0,0 @@
1
- export interface ImageGalleryContainerProps {
2
- children: React.ReactNode;
3
- descriptiveContent?: boolean;
4
- }
5
- export declare function ImageGalleryContainer({ children, descriptiveContent, }: ImageGalleryContainerProps): string | number | bigint | boolean | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
@@ -1,8 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- function ImageGalleryContainer({ children, descriptiveContent }) {
3
- return descriptiveContent ? /*#__PURE__*/ jsx("div", {
4
- className: "fwe-image-gallery-container",
5
- children: children
6
- }) : children;
7
- }
8
- export { ImageGalleryContainer };
@@ -1,5 +0,0 @@
1
- export interface ImageGalleryPaginationProps {
2
- readonly currentIndex: number;
3
- readonly length?: number;
4
- }
5
- export declare function ImageGalleryPagination({ currentIndex, length, }: ImageGalleryPaginationProps): import("react/jsx-runtime").JSX.Element;
@@ -1,29 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- function ImageGalleryPagination({ currentIndex, length }) {
3
- return /*#__PURE__*/ jsx(Fragment, {
4
- children: length && /*#__PURE__*/ jsxs("div", {
5
- className: "fwe-pagination fwe-pagination--on-dark-bg",
6
- children: [
7
- /*#__PURE__*/ jsx("button", {
8
- "aria-label": "previous",
9
- type: "button",
10
- className: "fwe-navigate-btn-down"
11
- }),
12
- /*#__PURE__*/ jsx("span", {
13
- className: "fwe-page-current",
14
- children: currentIndex
15
- }),
16
- /*#__PURE__*/ jsx("span", {
17
- className: "fwe-page-max",
18
- children: length
19
- }),
20
- /*#__PURE__*/ jsx("button", {
21
- "aria-label": "next",
22
- type: "button",
23
- className: "fwe-navigate-btn-up"
24
- })
25
- ]
26
- })
27
- });
28
- }
29
- export { ImageGalleryPagination };
@@ -1,10 +0,0 @@
1
- .fwe-page-dot {
2
- border: none;
3
- padding: 0;
4
- }
5
-
6
- .fwe-page-dot:focus {
7
- background: var(--fwe-control-border-hover);
8
- outline: 0;
9
- }
10
-
@@ -1,14 +0,0 @@
1
- import './Pagination.scss';
2
- export declare enum PaginationType {
3
- Simple = "SIMPLE",
4
- Numeric = "NUMERIC",
5
- Dots = "DOTS"
6
- }
7
- export interface PaginationProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'onChange'> {
8
- readonly type?: PaginationType;
9
- readonly onChange?: (page: number, event: React.MouseEvent<HTMLButtonElement>) => void;
10
- readonly pageCurrent?: number;
11
- readonly defaultPageCurrent?: number;
12
- readonly pageMax: number;
13
- }
14
- export declare const Pagination: (props: PaginationProps & import("react").RefAttributes<HTMLDivElement>) => React.ReactElement | null;
@@ -1,104 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import "./Pagination.css";
3
- import classnames from "classnames";
4
- import { forwardRef, useEffect, useState } from "react";
5
- var Pagination_PaginationType = /*#__PURE__*/ function(PaginationType) {
6
- PaginationType["Simple"] = "SIMPLE";
7
- PaginationType["Numeric"] = "NUMERIC";
8
- PaginationType["Dots"] = "DOTS";
9
- return PaginationType;
10
- }({});
11
- const Pagination = /*#__PURE__*/ forwardRef(({ pageMax, onChange, pageCurrent, defaultPageCurrent = 1, type = "NUMERIC", className, ...props }, ref)=>{
12
- const controlled = void 0 !== pageCurrent;
13
- const dotArray = Array.from(new Array(pageMax).keys());
14
- const [innerPageCurrent, setInnerPageCurrent] = useState(controlled ? pageCurrent : defaultPageCurrent);
15
- useEffect(()=>{
16
- if (controlled) setInnerPageCurrent(pageCurrent);
17
- }, [
18
- pageCurrent,
19
- controlled
20
- ]);
21
- function handleChange(newPage, event) {
22
- if (!controlled) setInnerPageCurrent(newPage);
23
- if (onChange) onChange(newPage, event);
24
- }
25
- function onBtnDown(event) {
26
- if (innerPageCurrent > 1) {
27
- const newPageCurrent = innerPageCurrent - 1;
28
- handleChange(newPageCurrent, event);
29
- }
30
- }
31
- function onBtnUp(event) {
32
- if (innerPageCurrent < pageMax) {
33
- const newPageCurrent = innerPageCurrent + 1;
34
- handleChange(newPageCurrent, event);
35
- }
36
- }
37
- function onDotClick(index, event) {
38
- const newPageCurrent = index + 1;
39
- handleChange(newPageCurrent, event);
40
- }
41
- return /*#__PURE__*/ jsxs(Fragment, {
42
- children: [
43
- "DOTS" !== type && /*#__PURE__*/ jsxs("div", {
44
- ...props,
45
- className: classnames('fwe-pagination', {
46
- 'fwe-d-none': pageMax < 2
47
- }, className),
48
- ref: ref,
49
- children: [
50
- /*#__PURE__*/ jsx("button", {
51
- className: classnames('fwe-navigate-btn-down', {
52
- 'fwe-disabled': innerPageCurrent <= 1
53
- }),
54
- onClick: onBtnDown,
55
- type: "button",
56
- "aria-label": "navigate-btn-down"
57
- }),
58
- "NUMERIC" === type && /*#__PURE__*/ jsxs(Fragment, {
59
- children: [
60
- /*#__PURE__*/ jsx("span", {
61
- className: "fwe-page-current",
62
- children: innerPageCurrent
63
- }),
64
- /*#__PURE__*/ jsx("span", {
65
- className: "fwe-page-max",
66
- children: pageMax
67
- })
68
- ]
69
- }),
70
- /*#__PURE__*/ jsx("button", {
71
- className: classnames('fwe-navigate-btn-up', {
72
- 'fwe-disabled': innerPageCurrent >= pageMax,
73
- 'fwe-ml-4': "SIMPLE" === type
74
- }),
75
- onClick: onBtnUp,
76
- type: "button",
77
- "aria-label": "navigate-btn-up"
78
- })
79
- ]
80
- }),
81
- "DOTS" === type && /*#__PURE__*/ jsx("div", {
82
- ...props,
83
- className: classnames({
84
- 'fwe-d-none': pageMax < 2
85
- }, className),
86
- ref: ref,
87
- children: /*#__PURE__*/ jsx("div", {
88
- className: "fwe-pagination",
89
- children: dotArray.map((index)=>/*#__PURE__*/ jsx("button", {
90
- type: "button",
91
- className: classnames('fwe-page-dot', {
92
- 'fwe-selected': index + 1 === innerPageCurrent
93
- }),
94
- onClick: (e)=>onDotClick(index, e),
95
- "aria-label": `Go to page ${index + 1}`,
96
- "aria-current": index + 1 === innerPageCurrent ? 'page' : void 0
97
- }, index))
98
- })
99
- })
100
- ]
101
- });
102
- });
103
- Pagination.displayName = 'Pagination';
104
- export { Pagination, Pagination_PaginationType as PaginationType };
@@ -1,11 +0,0 @@
1
- import { type PopoverProps } from '../popover/Popover';
2
- export interface LegendItem {
3
- readonly name: string;
4
- readonly text: string;
5
- }
6
- export interface LegendProps extends Omit<PopoverProps, 'content'> {
7
- readonly items: LegendItem[];
8
- }
9
- export declare const Legend: (props: LegendProps & {
10
- children?: import("react").ReactNode | undefined;
11
- } & import("react").RefAttributes<HTMLDivElement>) => React.ReactElement | null;
@@ -1,25 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import classnames from "classnames";
3
- import { forwardRef } from "react";
4
- import { Popover } from "../popover/Popover.js";
5
- const Legend = /*#__PURE__*/ forwardRef(({ items, containerClassName, ...props }, ref)=>{
6
- const content = items.map((item)=>/*#__PURE__*/ jsxs("dl", {
7
- className: "fwe-popover-legend-content",
8
- children: [
9
- /*#__PURE__*/ jsx("dt", {
10
- children: item.name
11
- }),
12
- /*#__PURE__*/ jsx("dd", {
13
- children: item.text
14
- })
15
- ]
16
- }, item.name));
17
- return /*#__PURE__*/ jsx(Popover, {
18
- content: content,
19
- containerClassName: classnames('fwe-popover--legend', containerClassName),
20
- ref: ref,
21
- ...props
22
- });
23
- });
24
- Legend.displayName = 'Legend';
25
- export { Legend };
@@ -1,9 +0,0 @@
1
- .fwe-popover-container {
2
- z-index: var(--fwe-z-index-popover);
3
- filter: drop-shadow(0 1px 3px #3336);
4
- }
5
-
6
- .fwe-popover-container .fwe-popover {
7
- box-shadow: none;
8
- }
9
-