@alma-oss/spirit-web-react 4.1.0 → 4.2.0
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/bundles/web-react.umd.js +318 -145
- package/bundles/web-react.umd.js.map +1 -1
- package/bundles/web-react.umd.min.js +1 -1
- package/bundles/web-react.umd.min.js.map +1 -1
- package/components/Accordion/Accordion.cjs +22 -6
- package/components/Accordion/Accordion.cjs.map +1 -1
- package/components/Accordion/Accordion.d.ts +5 -3
- package/components/Accordion/Accordion.js +2 -0
- package/components/Accordion/Accordion.js.map +1 -1
- package/components/Accordion/AccordionHeader.d.ts +5 -3
- package/components/Accordion/AccordionHeader.js +14 -4
- package/components/Accordion/AccordionHeader.js.map +1 -1
- package/components/Accordion/AccordionItem.d.ts +5 -3
- package/components/Accordion/AccordionItem.js +2 -0
- package/components/Accordion/AccordionItem.js.map +1 -1
- package/components/Accordion/UncontrolledAccordion.d.ts +5 -3
- package/components/Accordion/UncontrolledAccordion.js +3 -1
- package/components/Accordion/UncontrolledAccordion.js.map +1 -1
- package/components/Accordion/useAccordion.d.ts +2 -2
- package/components/Accordion/useAccordion.js.map +1 -1
- package/components/ActionGroup/ActionGroup.cjs +2 -0
- package/components/ActionGroup/ActionGroup.cjs.map +1 -1
- package/components/Card/CardLink.d.ts +1 -1
- package/components/FileUploader/FileUploader.cjs +6 -4
- package/components/FileUploader/FileUploader.cjs.map +1 -1
- package/components/FileUploader/FileUploaderAttachment.js +3 -3
- package/components/FileUploader/FileUploaderAttachment.js.map +1 -1
- package/components/FileUploader/FileUploaderList.js +2 -1
- package/components/FileUploader/FileUploaderList.js.map +1 -1
- package/components/FileUploader/constants.d.ts +1 -0
- package/components/FileUploader/constants.js +1 -0
- package/components/FileUploader/constants.js.map +1 -1
- package/components/Flex/Flex.cjs +2 -0
- package/components/Flex/Flex.cjs.map +1 -1
- package/components/Flex/Flex.d.ts +2 -0
- package/components/Flex/Flex.js +2 -0
- package/components/Flex/Flex.js.map +1 -1
- package/components/Flex/useFlexStyleProps.d.ts +2 -2
- package/components/Footer/Footer.cjs +40 -3
- package/components/Footer/Footer.cjs.map +1 -1
- package/components/Footer/Footer.d.ts +2 -2
- package/components/Footer/Footer.js +5 -3
- package/components/Footer/Footer.js.map +1 -1
- package/components/Footer/useFooterStyleProps.d.ts +2 -2
- package/components/Footer/useFooterStyleProps.js.map +1 -1
- package/components/Grid/Grid.cjs +4 -0
- package/components/Grid/Grid.cjs.map +1 -1
- package/components/Grid/Grid.d.ts +2 -0
- package/components/Grid/Grid.js +2 -0
- package/components/Grid/Grid.js.map +1 -1
- package/components/Grid/GridItem.d.ts +2 -0
- package/components/Grid/GridItem.js +2 -0
- package/components/Grid/GridItem.js.map +1 -1
- package/components/Grid/useGridItemStyleProps.d.ts +2 -2
- package/components/Grid/useGridStyleProps.d.ts +2 -2
- package/components/Icon/useIconStyleProps.d.ts +10 -10
- package/components/Modal/Modal.cjs +4 -2
- package/components/Modal/Modal.cjs.map +1 -1
- package/components/Modal/ModalCloseButton.js +2 -1
- package/components/Modal/ModalCloseButton.js.map +1 -1
- package/components/Modal/ModalHeader.js +2 -1
- package/components/Modal/ModalHeader.js.map +1 -1
- package/components/Modal/constants.d.ts +1 -0
- package/components/Modal/constants.js +2 -0
- package/components/Modal/constants.js.map +1 -0
- package/components/Pagination/Pagination.cjs +11 -6
- package/components/Pagination/Pagination.cjs.map +1 -1
- package/components/Pagination/PaginationButtonLink.js +4 -1
- package/components/Pagination/PaginationButtonLink.js.map +1 -1
- package/components/Pagination/PaginationLink.js +3 -1
- package/components/Pagination/PaginationLink.js.map +1 -1
- package/components/Pagination/UncontrolledPagination.js +2 -1
- package/components/Pagination/UncontrolledPagination.js.map +1 -1
- package/components/Pagination/constants.d.ts +1 -0
- package/components/Pagination/constants.js +1 -0
- package/components/Pagination/constants.js.map +1 -1
- package/components/PricingPlan/PricingPlan.cjs +4 -2
- package/components/PricingPlan/PricingPlan.cjs.map +1 -1
- package/components/ScrollView/ScrollView.cjs +41 -8
- package/components/ScrollView/ScrollView.cjs.map +1 -1
- package/components/ScrollView/ScrollViewArrows.js +3 -8
- package/components/ScrollView/ScrollViewArrows.js.map +1 -1
- package/components/ScrollView/constants.d.ts +1 -0
- package/components/ScrollView/constants.js +1 -0
- package/components/ScrollView/constants.js.map +1 -1
- package/components/ScrollView/index.d.ts +1 -0
- package/components/ScrollView/index.js +1 -0
- package/components/ScrollView/index.js.map +1 -1
- package/components/ScrollView/useScrollCallback.d.ts +10 -0
- package/components/ScrollView/useScrollCallback.js +41 -0
- package/components/ScrollView/useScrollCallback.js.map +1 -0
- package/components/Skeleton/useSkeletonShapeStyleProps.d.ts +10 -10
- package/components/SplitButton/SplitButton.cjs +3 -0
- package/components/SplitButton/SplitButton.cjs.map +1 -1
- package/components/SplitButton/UncontrolledSplitButton.js +2 -0
- package/components/SplitButton/UncontrolledSplitButton.js.map +1 -1
- package/components/SplitButton/constants.d.ts +1 -0
- package/components/SplitButton/constants.js +2 -0
- package/components/SplitButton/constants.js.map +1 -0
- package/components/TextArea/TextArea.cjs +7 -1
- package/components/TextArea/TextArea.cjs.map +1 -1
- package/components/TextField/TextField.cjs +7 -1
- package/components/TextField/TextField.cjs.map +1 -1
- package/components/TextFieldBase/TextFieldBase.cjs +7 -1
- package/components/TextFieldBase/TextFieldBase.cjs.map +1 -1
- package/components/TextFieldBase/TextFieldBase.d.ts +2 -2
- package/components/TextFieldBase/TextFieldBasePasswordToggle.js +5 -1
- package/components/TextFieldBase/TextFieldBasePasswordToggle.js.map +1 -1
- package/components/TextFieldBase/constants.d.ts +2 -0
- package/components/TextFieldBase/constants.js +3 -0
- package/components/TextFieldBase/constants.js.map +1 -0
- package/components/Toast/Toast.cjs +1 -1
- package/components/Toast/Toast.cjs.map +1 -1
- package/components/Toast/UncontrolledToast.js +2 -1
- package/components/Toast/UncontrolledToast.js.map +1 -1
- package/components/Toast/useToastBarStyleProps.d.ts +10 -10
- package/components/components.cjs +105 -30
- package/components/components.cjs.map +1 -1
- package/index.cjs +105 -30
- package/index.cjs.map +1 -1
- package/package.json +8 -6
- package/spirit-web-react.cjs +105 -30
- package/spirit-web-react.cjs.map +1 -1
- package/spirit-web-react.min.cjs +1 -1
- package/types/accordion.d.ts +14 -7
- package/types/box.d.ts +2 -2
- package/types/flex.d.ts +2 -3
- package/types/footer.d.ts +7 -2
- package/types/grid.d.ts +3 -5
package/bundles/web-react.umd.js
CHANGED
|
@@ -6806,6 +6806,8 @@ const Accordion = (props) => {
|
|
|
6806
6806
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_AccordionContext__WEBPACK_IMPORTED_MODULE_4__.AccordionProvider, { value: contextValue }, children)));
|
|
6807
6807
|
};
|
|
6808
6808
|
Accordion.spiritComponent = 'Accordion';
|
|
6809
|
+
Accordion.spiritDefaultElement = 'section';
|
|
6810
|
+
Accordion.spiritDefaultProps = null;
|
|
6809
6811
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Accordion);
|
|
6810
6812
|
|
|
6811
6813
|
|
|
@@ -6911,17 +6913,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6911
6913
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6912
6914
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
6913
6915
|
/* harmony export */ });
|
|
6914
|
-
/* harmony import */ var
|
|
6915
|
-
/* harmony import */ var
|
|
6916
|
-
/* harmony import */ var
|
|
6917
|
-
/* harmony import */ var
|
|
6918
|
-
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/styleProps.ts");
|
|
6916
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
6917
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
6918
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/styleProps.ts");
|
|
6919
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../utils */ "./src/utils/mergeStyleProps.ts");
|
|
6919
6920
|
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/Icon.tsx");
|
|
6920
|
-
/* harmony import */ var
|
|
6921
|
-
/* harmony import */ var
|
|
6922
|
-
/* harmony import */ var
|
|
6923
|
-
/* harmony import */ var
|
|
6924
|
-
/* harmony import */ var
|
|
6921
|
+
/* harmony import */ var _AccordionContext__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AccordionContext */ "./src/components/Accordion/AccordionContext.ts");
|
|
6922
|
+
/* harmony import */ var _AccordionItemContext__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./AccordionItemContext */ "./src/components/Accordion/AccordionItemContext.ts");
|
|
6923
|
+
/* harmony import */ var _useAccordionAriaProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useAccordionAriaProps */ "./src/components/Accordion/useAccordionAriaProps.ts");
|
|
6924
|
+
/* harmony import */ var _useAccordionStyleProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useAccordionStyleProps */ "./src/components/Accordion/useAccordionStyleProps.ts");
|
|
6925
|
+
/* harmony import */ var _useOpenItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useOpenItem */ "./src/components/Accordion/useOpenItem.ts");
|
|
6925
6926
|
'use client';
|
|
6926
6927
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
6927
6928
|
var t = {};
|
|
@@ -6943,27 +6944,37 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
6943
6944
|
|
|
6944
6945
|
|
|
6945
6946
|
|
|
6946
|
-
const
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
const
|
|
6951
|
-
const {
|
|
6952
|
-
const {
|
|
6953
|
-
const {
|
|
6947
|
+
const defaultProps = {
|
|
6948
|
+
elementType: 'h3',
|
|
6949
|
+
};
|
|
6950
|
+
const AccordionHeader = (props) => {
|
|
6951
|
+
const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);
|
|
6952
|
+
const { elementType: ElementTag = 'h3', children, slot } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["elementType", "children", "slot"]);
|
|
6953
|
+
const { classProps } = (0,_useAccordionStyleProps__WEBPACK_IMPORTED_MODULE_1__.useAccordionStyleProps)();
|
|
6954
|
+
const { toggle } = (0,_AccordionContext__WEBPACK_IMPORTED_MODULE_2__.useAccordionContext)();
|
|
6955
|
+
const { id } = (0,_AccordionItemContext__WEBPACK_IMPORTED_MODULE_3__.useAccordionItemContext)();
|
|
6956
|
+
const { styleProps, props: transferProps } = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useStyleProps)(restProps);
|
|
6957
|
+
const { isOpen } = (0,_useOpenItem__WEBPACK_IMPORTED_MODULE_5__.useOpenItem)(id);
|
|
6958
|
+
const { triggerProps, headerProps } = (0,_useAccordionAriaProps__WEBPACK_IMPORTED_MODULE_6__.useAccordionAriaProps)({ id, isOpen });
|
|
6959
|
+
const mergedStyleProps = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.mergeStyleProps)(ElementTag, {
|
|
6960
|
+
classProps: classProps.header,
|
|
6961
|
+
styleProps,
|
|
6962
|
+
});
|
|
6954
6963
|
const itemToggle = () => {
|
|
6955
6964
|
if (toggle && id) {
|
|
6956
6965
|
toggle(id);
|
|
6957
6966
|
}
|
|
6958
6967
|
};
|
|
6959
|
-
return (
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
slot &&
|
|
6963
|
-
|
|
6964
|
-
|
|
6968
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ElementTag, Object.assign({}, transferProps, mergedStyleProps, headerProps),
|
|
6969
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", Object.assign({ type: "button", className: classProps.toggle, onClick: itemToggle }, triggerProps), children),
|
|
6970
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: classProps.side },
|
|
6971
|
+
slot && react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: classProps.slot }, slot),
|
|
6972
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: classProps.icon },
|
|
6973
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_8__["default"], { name: "chevron-down" })))));
|
|
6965
6974
|
};
|
|
6966
6975
|
AccordionHeader.spiritComponent = 'AccordionHeader';
|
|
6976
|
+
AccordionHeader.spiritDefaultElement = 'h3';
|
|
6977
|
+
AccordionHeader.spiritDefaultProps = null;
|
|
6967
6978
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AccordionHeader);
|
|
6968
6979
|
|
|
6969
6980
|
|
|
@@ -7013,6 +7024,8 @@ const AccordionItem = (props) => {
|
|
|
7013
7024
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_AccordionItemContext__WEBPACK_IMPORTED_MODULE_4__.AccordionItemProvider, { value: contextValue }, children)));
|
|
7014
7025
|
};
|
|
7015
7026
|
AccordionItem.spiritComponent = 'AccordionItem';
|
|
7027
|
+
AccordionItem.spiritDefaultElement = 'article';
|
|
7028
|
+
AccordionItem.spiritDefaultProps = null;
|
|
7016
7029
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (AccordionItem);
|
|
7017
7030
|
|
|
7018
7031
|
|
|
@@ -7082,9 +7095,11 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
7082
7095
|
const UncontrolledAccordion = (props) => {
|
|
7083
7096
|
const { defaultOpen, stayOpen } = props, restProps = __rest(props, ["defaultOpen", "stayOpen"]);
|
|
7084
7097
|
const { open, toggle } = (0,_useAccordion__WEBPACK_IMPORTED_MODULE_1__.useAccordion)({ defaultOpen, stayOpen });
|
|
7085
|
-
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Accordion__WEBPACK_IMPORTED_MODULE_2__["default"], Object.assign({ open: open, toggle: toggle }
|
|
7098
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Accordion__WEBPACK_IMPORTED_MODULE_2__["default"], Object.assign({}, restProps, { open: open, toggle: toggle }));
|
|
7086
7099
|
};
|
|
7087
7100
|
UncontrolledAccordion.spiritComponent = 'UncontrolledAccordion';
|
|
7101
|
+
UncontrolledAccordion.spiritDefaultElement = 'section';
|
|
7102
|
+
UncontrolledAccordion.spiritDefaultProps = null;
|
|
7088
7103
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UncontrolledAccordion);
|
|
7089
7104
|
|
|
7090
7105
|
|
|
@@ -11482,7 +11497,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
11482
11497
|
|
|
11483
11498
|
|
|
11484
11499
|
const FileUploaderAttachment = (props) => {
|
|
11485
|
-
const { editText, file, hasImagePreview, iconName = _constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ICON_NAME, id, imageObjectFit, label, meta, name, onDismiss, onEdit, onError, removeText } = props, restProps = __rest(props, ["editText", "file", "hasImagePreview", "iconName", "id", "imageObjectFit", "label", "meta", "name", "onDismiss", "onEdit", "onError", "removeText"]);
|
|
11500
|
+
const { editText = _constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_EDIT_BUTTON_LABEL, file, hasImagePreview, iconName = _constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ICON_NAME, id, imageObjectFit, label, meta, name, onDismiss, onEdit, onError, removeText = _constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_BUTTON_LABEL } = props, restProps = __rest(props, ["editText", "file", "hasImagePreview", "iconName", "id", "imageObjectFit", "label", "meta", "name", "onDismiss", "onEdit", "onError", "removeText"]);
|
|
11486
11501
|
const [imagePreview, setImagePreview] = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)('');
|
|
11487
11502
|
const { classProps } = (0,_useFileUploaderStyleProps__WEBPACK_IMPORTED_MODULE_3__.useFileUploaderStyleProps)();
|
|
11488
11503
|
const { styleProps, props: transferProps } = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useStyleProps)(restProps);
|
|
@@ -11503,8 +11518,8 @@ const FileUploaderAttachment = (props) => {
|
|
|
11503
11518
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { className: classProps.attachment.name },
|
|
11504
11519
|
react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { className: (0,_hooks__WEBPACK_IMPORTED_MODULE_9__.useClassNamePrefix)('text-truncate') }, label)),
|
|
11505
11520
|
onEdit && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement("span", { className: classProps.attachment.slot },
|
|
11506
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_AttachmentActionButton__WEBPACK_IMPORTED_MODULE_10__["default"], { onClick: onEditHandler }, editText
|
|
11507
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_AttachmentDismissButton__WEBPACK_IMPORTED_MODULE_11__["default"], { onClick: dismissHandler }, removeText
|
|
11521
|
+
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_AttachmentActionButton__WEBPACK_IMPORTED_MODULE_10__["default"], { onClick: onEditHandler }, editText))),
|
|
11522
|
+
react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_AttachmentDismissButton__WEBPACK_IMPORTED_MODULE_11__["default"], { onClick: dismissHandler }, removeText)));
|
|
11508
11523
|
};
|
|
11509
11524
|
FileUploaderAttachment.spiritComponent = 'FileUploaderAttachment';
|
|
11510
11525
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FileUploaderAttachment);
|
|
@@ -11667,9 +11682,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11667
11682
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
|
11668
11683
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
11669
11684
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
11670
|
-
/* harmony import */ var
|
|
11671
|
-
/* harmony import */ var
|
|
11672
|
-
/* harmony import */ var
|
|
11685
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/styleProps.ts");
|
|
11686
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "./src/components/FileUploader/constants.ts");
|
|
11687
|
+
/* harmony import */ var _FileUploaderContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./FileUploaderContext */ "./src/components/FileUploader/FileUploaderContext.ts");
|
|
11688
|
+
/* harmony import */ var _useFileUploaderStyleProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useFileUploaderStyleProps */ "./src/components/FileUploader/useFileUploaderStyleProps.ts");
|
|
11673
11689
|
'use client';
|
|
11674
11690
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
11675
11691
|
var t = {};
|
|
@@ -11687,11 +11703,12 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
11687
11703
|
|
|
11688
11704
|
|
|
11689
11705
|
|
|
11706
|
+
|
|
11690
11707
|
const FileUploaderList = (props) => {
|
|
11691
|
-
const { label, id, attachmentComponent, inputName, hasImagePreview } = props, restProps = __rest(props, ["label", "id", "attachmentComponent", "inputName", "hasImagePreview"]);
|
|
11692
|
-
const { classProps } = (0,
|
|
11693
|
-
const { styleProps, props: transferProps } = (0,
|
|
11694
|
-
const { fileQueue, onDismiss } = (0,
|
|
11708
|
+
const { label = _constants__WEBPACK_IMPORTED_MODULE_2__.DEFAULT_ATTACHMENT_LIST_LABEL, id, attachmentComponent, inputName, hasImagePreview } = props, restProps = __rest(props, ["label", "id", "attachmentComponent", "inputName", "hasImagePreview"]);
|
|
11709
|
+
const { classProps } = (0,_useFileUploaderStyleProps__WEBPACK_IMPORTED_MODULE_3__.useFileUploaderStyleProps)();
|
|
11710
|
+
const { styleProps, props: transferProps } = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useStyleProps)(restProps);
|
|
11711
|
+
const { fileQueue, onDismiss } = (0,_FileUploaderContext__WEBPACK_IMPORTED_MODULE_5__.useFileUploaderContext)();
|
|
11695
11712
|
const renderAttachments = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(() => {
|
|
11696
11713
|
const fileArray = Array.from(fileQueue, (entry) => ({ key: entry[0], file: entry[1].file, meta: entry[1].meta }));
|
|
11697
11714
|
return fileArray.map(({ key, file, meta }) => attachmentComponent &&
|
|
@@ -11776,6 +11793,7 @@ UncontrolledFileUploader.spiritComponent = 'UncontrolledFileUploader';
|
|
|
11776
11793
|
"use strict";
|
|
11777
11794
|
__webpack_require__.r(__webpack_exports__);
|
|
11778
11795
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11796
|
+
/* harmony export */ DEFAULT_ATTACHMENT_LIST_LABEL: () => (/* binding */ DEFAULT_ATTACHMENT_LIST_LABEL),
|
|
11779
11797
|
/* harmony export */ DEFAULT_BUTTON_LABEL: () => (/* binding */ DEFAULT_BUTTON_LABEL),
|
|
11780
11798
|
/* harmony export */ DEFAULT_EDIT_BUTTON_LABEL: () => (/* binding */ DEFAULT_EDIT_BUTTON_LABEL),
|
|
11781
11799
|
/* harmony export */ DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE: () => (/* binding */ DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE),
|
|
@@ -11800,6 +11818,7 @@ const DEFAULT_ERROR_MESSAGE_UNSUPPORTED_FILE = 'This file type is not supported'
|
|
|
11800
11818
|
const DEFAULT_ICON_NAME = 'file';
|
|
11801
11819
|
const DEFAULT_BUTTON_LABEL = 'Remove';
|
|
11802
11820
|
const DEFAULT_EDIT_BUTTON_LABEL = 'Edit';
|
|
11821
|
+
const DEFAULT_ATTACHMENT_LIST_LABEL = 'Attachments';
|
|
11803
11822
|
const FileUploaderCropCSS = {
|
|
11804
11823
|
TOP: '--file-uploader-attachment-image-top',
|
|
11805
11824
|
LEFT: '--file-uploader-attachment-image-left',
|
|
@@ -11821,6 +11840,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11821
11840
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11822
11841
|
/* harmony export */ AttachmentActionButton: () => (/* reexport safe */ _AttachmentActionButton__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
11823
11842
|
/* harmony export */ AttachmentDismissButton: () => (/* reexport safe */ _AttachmentDismissButton__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
11843
|
+
/* harmony export */ DEFAULT_ATTACHMENT_LIST_LABEL: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_11__.DEFAULT_ATTACHMENT_LIST_LABEL),
|
|
11824
11844
|
/* harmony export */ DEFAULT_BUTTON_LABEL: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_11__.DEFAULT_BUTTON_LABEL),
|
|
11825
11845
|
/* harmony export */ DEFAULT_EDIT_BUTTON_LABEL: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_11__.DEFAULT_EDIT_BUTTON_LABEL),
|
|
11826
11846
|
/* harmony export */ DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_11__.DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE),
|
|
@@ -12398,6 +12418,8 @@ const Flex = (props) => {
|
|
|
12398
12418
|
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps), children));
|
|
12399
12419
|
};
|
|
12400
12420
|
Flex.spiritComponent = 'Flex';
|
|
12421
|
+
Flex.spiritDefaultElement = 'div';
|
|
12422
|
+
Flex.spiritDefaultProps = null;
|
|
12401
12423
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Flex);
|
|
12402
12424
|
|
|
12403
12425
|
|
|
@@ -12496,15 +12518,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12496
12518
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12497
12519
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
12498
12520
|
/* harmony export */ });
|
|
12499
|
-
/* harmony import */ var
|
|
12500
|
-
/* harmony import */ var
|
|
12501
|
-
/* harmony import */ var
|
|
12502
|
-
/* harmony import */ var
|
|
12503
|
-
/* harmony import */ var
|
|
12504
|
-
/* harmony import */ var
|
|
12505
|
-
/* harmony import */ var
|
|
12506
|
-
/* harmony import */ var
|
|
12507
|
-
/* harmony import */ var _useFooterStyleProps__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useFooterStyleProps */ "./src/components/Footer/useFooterStyleProps.ts");
|
|
12521
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12522
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12523
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../constants */ "./src/constants/dictionaries.ts");
|
|
12524
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../constants */ "./src/constants/style.ts");
|
|
12525
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/styleProps.ts");
|
|
12526
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils */ "./src/utils/mergeStyleProps.ts");
|
|
12527
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "./src/components/Footer/constants.ts");
|
|
12528
|
+
/* harmony import */ var _useFooterStyleProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useFooterStyleProps */ "./src/components/Footer/useFooterStyleProps.ts");
|
|
12508
12529
|
'use client';
|
|
12509
12530
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
12510
12531
|
var t = {};
|
|
@@ -12524,20 +12545,22 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
12524
12545
|
|
|
12525
12546
|
|
|
12526
12547
|
const defaultStyleProps = {
|
|
12527
|
-
backgroundColor:
|
|
12528
|
-
|
|
12529
|
-
|
|
12548
|
+
backgroundColor: _constants__WEBPACK_IMPORTED_MODULE_1__.BackgroundColors.SECONDARY,
|
|
12549
|
+
elementType: 'footer',
|
|
12550
|
+
paddingBottom: _constants__WEBPACK_IMPORTED_MODULE_2__.PADDING_BOTTOM,
|
|
12551
|
+
paddingTop: _constants__WEBPACK_IMPORTED_MODULE_2__.PADDING_TOP,
|
|
12530
12552
|
};
|
|
12531
12553
|
const Footer = (props) => {
|
|
12532
12554
|
const propsWithDefaults = Object.assign(Object.assign({}, defaultStyleProps), props);
|
|
12533
|
-
const { children, backgroundColor } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["children", "backgroundColor"]);
|
|
12534
|
-
const { classProps } = (0,
|
|
12535
|
-
const { styleProps, props: otherProps } = (0,
|
|
12536
|
-
paddingBottom:
|
|
12537
|
-
paddingTop:
|
|
12538
|
-
textAlignment:
|
|
12555
|
+
const { elementType: ElementTag = defaultStyleProps.elementType, children, backgroundColor } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["elementType", "children", "backgroundColor"]);
|
|
12556
|
+
const { classProps } = (0,_useFooterStyleProps__WEBPACK_IMPORTED_MODULE_3__.useFooterStyleProps)({ backgroundColor });
|
|
12557
|
+
const { styleProps, props: otherProps } = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useStyleProps)(restProps, {
|
|
12558
|
+
paddingBottom: _constants__WEBPACK_IMPORTED_MODULE_5__.PaddingStyleProps.paddingBottom,
|
|
12559
|
+
paddingTop: _constants__WEBPACK_IMPORTED_MODULE_5__.PaddingStyleProps.paddingTop,
|
|
12560
|
+
textAlignment: _constants__WEBPACK_IMPORTED_MODULE_5__.TextStyleProps.textAlignment,
|
|
12539
12561
|
});
|
|
12540
|
-
|
|
12562
|
+
const mergedStyleProps = (0,_utils__WEBPACK_IMPORTED_MODULE_6__.mergeStyleProps)(ElementTag, { classProps, styleProps, otherProps });
|
|
12563
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps), children));
|
|
12541
12564
|
};
|
|
12542
12565
|
Footer.spiritComponent = 'Footer';
|
|
12543
12566
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Footer);
|
|
@@ -12659,6 +12682,8 @@ const Grid = (props) => {
|
|
|
12659
12682
|
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps), children));
|
|
12660
12683
|
};
|
|
12661
12684
|
Grid.spiritComponent = 'Grid';
|
|
12685
|
+
Grid.spiritDefaultElement = 'div';
|
|
12686
|
+
Grid.spiritDefaultProps = null;
|
|
12662
12687
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Grid);
|
|
12663
12688
|
|
|
12664
12689
|
|
|
@@ -12704,6 +12729,8 @@ const GridItem = (props) => {
|
|
|
12704
12729
|
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps), children));
|
|
12705
12730
|
};
|
|
12706
12731
|
GridItem.spiritComponent = 'GridItem';
|
|
12732
|
+
GridItem.spiritDefaultElement = 'div';
|
|
12733
|
+
GridItem.spiritDefaultProps = null;
|
|
12707
12734
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GridItem);
|
|
12708
12735
|
|
|
12709
12736
|
|
|
@@ -14781,9 +14808,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14781
14808
|
/* harmony export */ });
|
|
14782
14809
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14783
14810
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14784
|
-
/* harmony import */ var
|
|
14785
|
-
/* harmony import */ var
|
|
14786
|
-
/* harmony import */ var
|
|
14811
|
+
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./src/components/Button/Button.tsx");
|
|
14812
|
+
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/Icon.tsx");
|
|
14813
|
+
/* harmony import */ var _VisuallyHidden__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../VisuallyHidden */ "./src/components/VisuallyHidden/VisuallyHidden.tsx");
|
|
14814
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/components/Modal/constants.ts");
|
|
14787
14815
|
'use client';
|
|
14788
14816
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
14789
14817
|
var t = {};
|
|
@@ -14800,11 +14828,12 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
14800
14828
|
|
|
14801
14829
|
|
|
14802
14830
|
|
|
14831
|
+
|
|
14803
14832
|
const ModalCloseButton = (_a) => {
|
|
14804
|
-
var { label =
|
|
14805
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
14806
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
14807
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
14833
|
+
var { label = _constants__WEBPACK_IMPORTED_MODULE_1__.MODAL_CLOSE_BUTTON_LABEL_DEFAULT, onClose, id, isOpen } = _a, restProps = __rest(_a, ["label", "onClose", "id", "isOpen"]);
|
|
14834
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_2__["default"], Object.assign({}, restProps, { isSymmetrical: true, color: "tertiary", onClick: onClose, "aria-expanded": isOpen, "aria-controls": id }),
|
|
14835
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], { name: "close" }),
|
|
14836
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_VisuallyHidden__WEBPACK_IMPORTED_MODULE_4__["default"], null, label)));
|
|
14808
14837
|
};
|
|
14809
14838
|
ModalCloseButton.spiritComponent = 'ModalCloseButton';
|
|
14810
14839
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ModalCloseButton);
|
|
@@ -14962,10 +14991,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14962
14991
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
|
14963
14992
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
14964
14993
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
14965
|
-
/* harmony import */ var
|
|
14966
|
-
/* harmony import */ var
|
|
14967
|
-
/* harmony import */ var
|
|
14968
|
-
/* harmony import */ var
|
|
14994
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/styleProps.ts");
|
|
14995
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "./src/components/Modal/constants.ts");
|
|
14996
|
+
/* harmony import */ var _ModalCloseButton__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ModalCloseButton */ "./src/components/Modal/ModalCloseButton.tsx");
|
|
14997
|
+
/* harmony import */ var _ModalContext__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ModalContext */ "./src/components/Modal/ModalContext.ts");
|
|
14998
|
+
/* harmony import */ var _useModalStyleProps__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useModalStyleProps */ "./src/components/Modal/useModalStyleProps.ts");
|
|
14969
14999
|
'use client';
|
|
14970
15000
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
14971
15001
|
var t = {};
|
|
@@ -14984,23 +15014,40 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
14984
15014
|
|
|
14985
15015
|
|
|
14986
15016
|
|
|
15017
|
+
|
|
14987
15018
|
const defaultProps = {
|
|
14988
15019
|
hasCloseButton: true,
|
|
14989
15020
|
};
|
|
14990
15021
|
const ModalHeader = (props) => {
|
|
14991
15022
|
const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);
|
|
14992
|
-
const { children, closeLabel, hasCloseButton } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["children", "closeLabel", "hasCloseButton"]);
|
|
14993
|
-
const { classProps } = (0,
|
|
14994
|
-
const { styleProps, props: otherProps } = (0,
|
|
14995
|
-
const { id, isOpen, onClose } = (0,
|
|
15023
|
+
const { children, closeLabel = _constants__WEBPACK_IMPORTED_MODULE_2__.MODAL_CLOSE_BUTTON_LABEL_DEFAULT, hasCloseButton } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["children", "closeLabel", "hasCloseButton"]);
|
|
15024
|
+
const { classProps } = (0,_useModalStyleProps__WEBPACK_IMPORTED_MODULE_3__.useModalStyleProps)();
|
|
15025
|
+
const { styleProps, props: otherProps } = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useStyleProps)(restProps);
|
|
15026
|
+
const { id, isOpen, onClose } = (0,_ModalContext__WEBPACK_IMPORTED_MODULE_5__.useModalContext)();
|
|
14996
15027
|
return (react__WEBPACK_IMPORTED_MODULE_1___default().createElement("header", Object.assign({}, otherProps, styleProps, { className: classnames__WEBPACK_IMPORTED_MODULE_0___default()(classProps.header, styleProps.className) }),
|
|
14997
15028
|
children && (react__WEBPACK_IMPORTED_MODULE_1___default().createElement("h2", { id: `${id}__title`, className: classProps.title }, children)),
|
|
14998
|
-
hasCloseButton && react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
15029
|
+
hasCloseButton && react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_ModalCloseButton__WEBPACK_IMPORTED_MODULE_6__["default"], { id: id, isOpen: isOpen, label: closeLabel, onClose: onClose })));
|
|
14999
15030
|
};
|
|
15000
15031
|
ModalHeader.spiritComponent = 'ModalHeader';
|
|
15001
15032
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ModalHeader);
|
|
15002
15033
|
|
|
15003
15034
|
|
|
15035
|
+
/***/ }),
|
|
15036
|
+
|
|
15037
|
+
/***/ "./src/components/Modal/constants.ts":
|
|
15038
|
+
/*!*******************************************!*\
|
|
15039
|
+
!*** ./src/components/Modal/constants.ts ***!
|
|
15040
|
+
\*******************************************/
|
|
15041
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15042
|
+
|
|
15043
|
+
"use strict";
|
|
15044
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15045
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15046
|
+
/* harmony export */ MODAL_CLOSE_BUTTON_LABEL_DEFAULT: () => (/* binding */ MODAL_CLOSE_BUTTON_LABEL_DEFAULT)
|
|
15047
|
+
/* harmony export */ });
|
|
15048
|
+
const MODAL_CLOSE_BUTTON_LABEL_DEFAULT = 'Close';
|
|
15049
|
+
|
|
15050
|
+
|
|
15004
15051
|
/***/ }),
|
|
15005
15052
|
|
|
15006
15053
|
/***/ "./src/components/Modal/index.ts":
|
|
@@ -15605,9 +15652,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15605
15652
|
/* harmony export */ });
|
|
15606
15653
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15607
15654
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15608
|
-
/* harmony import */ var
|
|
15609
|
-
/* harmony import */ var
|
|
15610
|
-
/* harmony import */ var
|
|
15655
|
+
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Button */ "./src/components/ButtonLink/ButtonLink.tsx");
|
|
15656
|
+
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/Icon.tsx");
|
|
15657
|
+
/* harmony import */ var _VisuallyHidden__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../VisuallyHidden */ "./src/components/VisuallyHidden/VisuallyHidden.tsx");
|
|
15658
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/components/Pagination/constants.ts");
|
|
15611
15659
|
'use client';
|
|
15612
15660
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
15613
15661
|
var t = {};
|
|
@@ -15624,15 +15672,18 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
15624
15672
|
|
|
15625
15673
|
|
|
15626
15674
|
|
|
15675
|
+
|
|
15627
15676
|
const _PaginationButtonLink = (props, ref) => {
|
|
15628
|
-
const _a = props, { direction, accessibilityLabel
|
|
15677
|
+
const _a = props, { direction, accessibilityLabel = direction === 'previous'
|
|
15678
|
+
? _constants__WEBPACK_IMPORTED_MODULE_1__.PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL
|
|
15679
|
+
: _constants__WEBPACK_IMPORTED_MODULE_1__.PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL } = _a, restProps = __rest(_a, ["direction", "accessibilityLabel"]);
|
|
15629
15680
|
const iconType = {
|
|
15630
15681
|
previous: 'chevron-left',
|
|
15631
15682
|
next: 'chevron-right',
|
|
15632
15683
|
};
|
|
15633
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15634
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15635
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15684
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_2__["default"], Object.assign({ color: "secondary", isSymmetrical: true }, restProps, { ref: ref }),
|
|
15685
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], { name: iconType[direction] }),
|
|
15686
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_VisuallyHidden__WEBPACK_IMPORTED_MODULE_4__["default"], null, accessibilityLabel)));
|
|
15636
15687
|
};
|
|
15637
15688
|
const PaginationButtonLink = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(_PaginationButtonLink);
|
|
15638
15689
|
PaginationButtonLink.spiritComponent = 'PaginationButtonLink';
|
|
@@ -15699,10 +15750,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15699
15750
|
/* harmony export */ });
|
|
15700
15751
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15701
15752
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15702
|
-
/* harmony import */ var
|
|
15703
|
-
/* harmony import */ var
|
|
15704
|
-
/* harmony import */ var
|
|
15705
|
-
/* harmony import */ var
|
|
15753
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/styleProps.ts");
|
|
15754
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils */ "./src/utils/mergeStyleProps.ts");
|
|
15755
|
+
/* harmony import */ var _VisuallyHidden__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../VisuallyHidden */ "./src/components/VisuallyHidden/VisuallyHidden.tsx");
|
|
15756
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/components/Pagination/constants.ts");
|
|
15757
|
+
/* harmony import */ var _usePaginationStyleProps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./usePaginationStyleProps */ "./src/components/Pagination/usePaginationStyleProps.ts");
|
|
15706
15758
|
'use client';
|
|
15707
15759
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
15708
15760
|
var t = {};
|
|
@@ -15720,13 +15772,15 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
15720
15772
|
|
|
15721
15773
|
|
|
15722
15774
|
|
|
15775
|
+
|
|
15723
15776
|
const _PaginationLink = (props, ref) => {
|
|
15724
15777
|
const { elementType: ElementTag = 'a', accessibilityLabel, isCurrent, pageNumber } = props, restProps = __rest(props, ["elementType", "accessibilityLabel", "isCurrent", "pageNumber"]);
|
|
15725
|
-
const
|
|
15726
|
-
const {
|
|
15727
|
-
const
|
|
15778
|
+
const visuallyHiddenLabel = accessibilityLabel || `${_constants__WEBPACK_IMPORTED_MODULE_1__.PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX} ${pageNumber}`;
|
|
15779
|
+
const { classProps } = (0,_usePaginationStyleProps__WEBPACK_IMPORTED_MODULE_2__.usePaginationStyleProps)({ isCurrent });
|
|
15780
|
+
const { styleProps, props: otherProps } = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useStyleProps)(restProps);
|
|
15781
|
+
const mergedStyleProps = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.mergeStyleProps)(ElementTag, { classProps: classProps.link, styleProps, otherProps });
|
|
15728
15782
|
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps, { ref: ref }),
|
|
15729
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15783
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_VisuallyHidden__WEBPACK_IMPORTED_MODULE_5__["default"], null, visuallyHiddenLabel),
|
|
15730
15784
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { "aria-hidden": "true" }, pageNumber)));
|
|
15731
15785
|
};
|
|
15732
15786
|
const PaginationLink = (0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(_PaginationLink);
|
|
@@ -15831,12 +15885,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15831
15885
|
/* harmony export */ });
|
|
15832
15886
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15833
15887
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15834
|
-
/* harmony import */ var
|
|
15835
|
-
/* harmony import */ var
|
|
15836
|
-
/* harmony import */ var
|
|
15837
|
-
/* harmony import */ var
|
|
15838
|
-
/* harmony import */ var
|
|
15839
|
-
/* harmony import */ var
|
|
15888
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/components/Pagination/constants.ts");
|
|
15889
|
+
/* harmony import */ var _Pagination__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Pagination */ "./src/components/Pagination/Pagination.tsx");
|
|
15890
|
+
/* harmony import */ var _PaginationItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./PaginationItem */ "./src/components/Pagination/PaginationItem.tsx");
|
|
15891
|
+
/* harmony import */ var _PaginationLink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./PaginationLink */ "./src/components/Pagination/PaginationLink.tsx");
|
|
15892
|
+
/* harmony import */ var _PaginationLinkNext__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./PaginationLinkNext */ "./src/components/Pagination/PaginationLinkNext.tsx");
|
|
15893
|
+
/* harmony import */ var _PaginationLinkPrevious__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PaginationLinkPrevious */ "./src/components/Pagination/PaginationLinkPrevious.tsx");
|
|
15894
|
+
/* harmony import */ var _usePagination__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./usePagination */ "./src/components/Pagination/usePagination.tsx");
|
|
15840
15895
|
'use client';
|
|
15841
15896
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
15842
15897
|
var t = {};
|
|
@@ -15856,25 +15911,26 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
15856
15911
|
|
|
15857
15912
|
|
|
15858
15913
|
|
|
15914
|
+
|
|
15859
15915
|
const UncontrolledPagination = (props) => {
|
|
15860
|
-
const { accessibilityLabel, accessibilityLabelPrevious =
|
|
15861
|
-
const { currentPage, pages, handlePageChange } = (0,
|
|
15916
|
+
const { accessibilityLabel = _constants__WEBPACK_IMPORTED_MODULE_1__.PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX, accessibilityLabelPrevious = _constants__WEBPACK_IMPORTED_MODULE_1__.PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL, accessibilityLabelNext = _constants__WEBPACK_IMPORTED_MODULE_1__.PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL, defaultPage = 1, onChange, totalPages = 0, visiblePages = 5 } = props, rest = __rest(props, ["accessibilityLabel", "accessibilityLabelPrevious", "accessibilityLabelNext", "defaultPage", "onChange", "totalPages", "visiblePages"]);
|
|
15917
|
+
const { currentPage, pages, handlePageChange } = (0,_usePagination__WEBPACK_IMPORTED_MODULE_2__.usePagination)({
|
|
15862
15918
|
defaultPage,
|
|
15863
15919
|
onChange,
|
|
15864
15920
|
totalPages,
|
|
15865
15921
|
visiblePages,
|
|
15866
15922
|
});
|
|
15867
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15868
|
-
currentPage !== 1 && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15923
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Pagination__WEBPACK_IMPORTED_MODULE_3__["default"], Object.assign({}, rest),
|
|
15924
|
+
currentPage !== 1 && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_PaginationLinkPrevious__WEBPACK_IMPORTED_MODULE_4__["default"], { accessibilityLabel: accessibilityLabelPrevious, onClick: (event) => {
|
|
15869
15925
|
event.preventDefault();
|
|
15870
15926
|
handlePageChange(currentPage - 1);
|
|
15871
15927
|
} })), pages === null || pages === void 0 ? void 0 :
|
|
15872
|
-
pages.map((pageNumber) => (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15873
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15928
|
+
pages.map((pageNumber) => (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_PaginationItem__WEBPACK_IMPORTED_MODULE_5__["default"], { key: pageNumber },
|
|
15929
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_PaginationLink__WEBPACK_IMPORTED_MODULE_6__["default"], { accessibilityLabel: `${accessibilityLabel} ${pageNumber}`, href: "#", isCurrent: currentPage === pageNumber, pageNumber: pageNumber, onClick: (event) => {
|
|
15874
15930
|
event.preventDefault();
|
|
15875
15931
|
handlePageChange(pageNumber);
|
|
15876
15932
|
} })))),
|
|
15877
|
-
currentPage !== totalPages && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
15933
|
+
currentPage !== totalPages && (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_PaginationLinkNext__WEBPACK_IMPORTED_MODULE_7__["default"], { accessibilityLabel: accessibilityLabelNext, onClick: (event) => {
|
|
15878
15934
|
event.preventDefault();
|
|
15879
15935
|
handlePageChange(currentPage + 1);
|
|
15880
15936
|
} }))));
|
|
@@ -15894,11 +15950,13 @@ UncontrolledPagination.spiritComponent = 'UncontrolledPagination';
|
|
|
15894
15950
|
"use strict";
|
|
15895
15951
|
__webpack_require__.r(__webpack_exports__);
|
|
15896
15952
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15953
|
+
/* harmony export */ PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX: () => (/* binding */ PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX),
|
|
15897
15954
|
/* harmony export */ PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL: () => (/* binding */ PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL),
|
|
15898
15955
|
/* harmony export */ PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL: () => (/* binding */ PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL)
|
|
15899
15956
|
/* harmony export */ });
|
|
15900
15957
|
const PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL = 'Previous';
|
|
15901
15958
|
const PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL = 'Next';
|
|
15959
|
+
const PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX = 'Go to page';
|
|
15902
15960
|
|
|
15903
15961
|
|
|
15904
15962
|
/***/ }),
|
|
@@ -15912,6 +15970,7 @@ const PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL = 'Next';
|
|
|
15912
15970
|
"use strict";
|
|
15913
15971
|
__webpack_require__.r(__webpack_exports__);
|
|
15914
15972
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15973
|
+
/* harmony export */ PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_7__.PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX),
|
|
15915
15974
|
/* harmony export */ PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_7__.PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL),
|
|
15916
15975
|
/* harmony export */ PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_7__.PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL),
|
|
15917
15976
|
/* harmony export */ Pagination: () => (/* reexport safe */ _Pagination__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
@@ -17021,10 +17080,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17021
17080
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../constants */ "./src/constants/direction.ts");
|
|
17022
17081
|
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/styleProps.ts");
|
|
17023
17082
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ "./src/utils/mergeStyleProps.ts");
|
|
17024
|
-
/* harmony import */ var
|
|
17025
|
-
/* harmony import */ var
|
|
17083
|
+
/* harmony import */ var _ControlButton__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../ControlButton */ "./src/components/ControlButton/ControlButton.tsx");
|
|
17084
|
+
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/Icon.tsx");
|
|
17085
|
+
/* harmony import */ var _useScrollCallback__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useScrollCallback */ "./src/components/ScrollView/useScrollCallback.ts");
|
|
17026
17086
|
/* harmony import */ var _useScrollViewArrows__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useScrollViewArrows */ "./src/components/ScrollView/useScrollViewArrows.ts");
|
|
17027
17087
|
/* harmony import */ var _useScrollViewStyleProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useScrollViewStyleProps */ "./src/components/ScrollView/useScrollViewStyleProps.ts");
|
|
17088
|
+
'use client';
|
|
17028
17089
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
17029
17090
|
var t = {};
|
|
17030
17091
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -17044,6 +17105,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
17044
17105
|
|
|
17045
17106
|
|
|
17046
17107
|
|
|
17108
|
+
|
|
17047
17109
|
const ScrollViewArrows = (props) => {
|
|
17048
17110
|
const { ariaLabelArrows, direction, scrollStep, viewportRef } = props, restProps = __rest(props, ["ariaLabelArrows", "direction", "scrollStep", "viewportRef"]);
|
|
17049
17111
|
const { classProps } = (0,_useScrollViewStyleProps__WEBPACK_IMPORTED_MODULE_1__.useScrollViewStyleProps)({
|
|
@@ -17053,16 +17115,9 @@ const ScrollViewArrows = (props) => {
|
|
|
17053
17115
|
const mergedStyleProps = (0,_utils__WEBPACK_IMPORTED_MODULE_3__.mergeStyleProps)('button', { classProps: classProps.arrows, styleProps });
|
|
17054
17116
|
const isHorizontal = (0,_constants__WEBPACK_IMPORTED_MODULE_4__.isDirectionHorizontal)(direction);
|
|
17055
17117
|
const { arrows } = (0,_useScrollViewArrows__WEBPACK_IMPORTED_MODULE_5__.useScrollViewArrows)(isHorizontal, ariaLabelArrows, scrollStep);
|
|
17056
|
-
const handleScroll = (
|
|
17057
|
-
|
|
17058
|
-
|
|
17059
|
-
(_a = viewportRef.current) === null || _a === void 0 ? void 0 : _a.scrollBy({
|
|
17060
|
-
[scrollToDirection]: step,
|
|
17061
|
-
behavior: 'smooth',
|
|
17062
|
-
});
|
|
17063
|
-
};
|
|
17064
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", Object.assign({}, otherProps, mergedStyleProps), arrows.map(({ icon, label, step }) => (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ControlButton__WEBPACK_IMPORTED_MODULE_6__["default"], { key: icon, "aria-label": label, onClick: () => handleScroll(step), size: "small", isSymmetrical: true },
|
|
17065
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_7__["default"], { name: icon }))))));
|
|
17118
|
+
const { handleScroll } = (0,_useScrollCallback__WEBPACK_IMPORTED_MODULE_6__.useScrollCallback)({ viewportRef, direction });
|
|
17119
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", Object.assign({}, otherProps, mergedStyleProps), arrows.map(({ icon, label, step }) => (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ControlButton__WEBPACK_IMPORTED_MODULE_7__["default"], { key: icon, "aria-label": label, onClick: () => handleScroll(step), size: "small", isSymmetrical: true },
|
|
17120
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_8__["default"], { name: icon }))))));
|
|
17066
17121
|
};
|
|
17067
17122
|
ScrollViewArrows.spiritComponent = 'ScrollViewArrows';
|
|
17068
17123
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScrollViewArrows);
|
|
@@ -17081,6 +17136,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17081
17136
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17082
17137
|
/* harmony export */ DEBOUNCE_DELAY: () => (/* binding */ DEBOUNCE_DELAY),
|
|
17083
17138
|
/* harmony export */ EDGE_DETECTION_INACCURACY_PX: () => (/* binding */ EDGE_DETECTION_INACCURACY_PX),
|
|
17139
|
+
/* harmony export */ SCROLL_CANCEL_DELAY: () => (/* binding */ SCROLL_CANCEL_DELAY),
|
|
17084
17140
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END: () => (/* binding */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END),
|
|
17085
17141
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START: () => (/* binding */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START),
|
|
17086
17142
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END: () => (/* binding */ SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END),
|
|
@@ -17092,6 +17148,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17092
17148
|
|
|
17093
17149
|
const DEBOUNCE_DELAY = 50;
|
|
17094
17150
|
const EDGE_DETECTION_INACCURACY_PX = 1;
|
|
17151
|
+
const SCROLL_CANCEL_DELAY = 10;
|
|
17095
17152
|
const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END = 'Scroll right';
|
|
17096
17153
|
const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START = 'Scroll left';
|
|
17097
17154
|
const SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END = 'Scroll down';
|
|
@@ -17113,6 +17170,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17113
17170
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17114
17171
|
/* harmony export */ DEBOUNCE_DELAY: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_2__.DEBOUNCE_DELAY),
|
|
17115
17172
|
/* harmony export */ EDGE_DETECTION_INACCURACY_PX: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_2__.EDGE_DETECTION_INACCURACY_PX),
|
|
17173
|
+
/* harmony export */ SCROLL_CANCEL_DELAY: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_2__.SCROLL_CANCEL_DELAY),
|
|
17116
17174
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_2__.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END),
|
|
17117
17175
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_2__.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START),
|
|
17118
17176
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_2__.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END),
|
|
@@ -17121,16 +17179,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17121
17179
|
/* harmony export */ SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_2__.SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR),
|
|
17122
17180
|
/* harmony export */ ScrollView: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
17123
17181
|
/* harmony export */ ScrollViewArrows: () => (/* reexport safe */ _ScrollViewArrows__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
17182
|
+
/* harmony export */ useScrollCallback: () => (/* reexport safe */ _useScrollCallback__WEBPACK_IMPORTED_MODULE_4__.useScrollCallback),
|
|
17124
17183
|
/* harmony export */ useScrollPosition: () => (/* reexport safe */ _useScrollPosition__WEBPACK_IMPORTED_MODULE_3__.useScrollPosition),
|
|
17125
|
-
/* harmony export */ useScrollViewArrows: () => (/* reexport safe */
|
|
17126
|
-
/* harmony export */ useScrollViewStyleProps: () => (/* reexport safe */
|
|
17184
|
+
/* harmony export */ useScrollViewArrows: () => (/* reexport safe */ _useScrollViewArrows__WEBPACK_IMPORTED_MODULE_5__.useScrollViewArrows),
|
|
17185
|
+
/* harmony export */ useScrollViewStyleProps: () => (/* reexport safe */ _useScrollViewStyleProps__WEBPACK_IMPORTED_MODULE_6__.useScrollViewStyleProps)
|
|
17127
17186
|
/* harmony export */ });
|
|
17128
17187
|
/* harmony import */ var _ScrollView__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ScrollView */ "./src/components/ScrollView/ScrollView.tsx");
|
|
17129
17188
|
/* harmony import */ var _ScrollViewArrows__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ScrollViewArrows */ "./src/components/ScrollView/ScrollViewArrows.tsx");
|
|
17130
17189
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "./src/components/ScrollView/constants.ts");
|
|
17131
17190
|
/* harmony import */ var _useScrollPosition__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./useScrollPosition */ "./src/components/ScrollView/useScrollPosition.ts");
|
|
17132
|
-
/* harmony import */ var
|
|
17133
|
-
/* harmony import */ var
|
|
17191
|
+
/* harmony import */ var _useScrollCallback__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./useScrollCallback */ "./src/components/ScrollView/useScrollCallback.ts");
|
|
17192
|
+
/* harmony import */ var _useScrollViewArrows__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./useScrollViewArrows */ "./src/components/ScrollView/useScrollViewArrows.ts");
|
|
17193
|
+
/* harmony import */ var _useScrollViewStyleProps__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useScrollViewStyleProps */ "./src/components/ScrollView/useScrollViewStyleProps.ts");
|
|
17194
|
+
|
|
17195
|
+
|
|
17134
17196
|
|
|
17135
17197
|
|
|
17136
17198
|
|
|
@@ -17138,6 +17200,65 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17138
17200
|
|
|
17139
17201
|
|
|
17140
17202
|
|
|
17203
|
+
/***/ }),
|
|
17204
|
+
|
|
17205
|
+
/***/ "./src/components/ScrollView/useScrollCallback.ts":
|
|
17206
|
+
/*!********************************************************!*\
|
|
17207
|
+
!*** ./src/components/ScrollView/useScrollCallback.ts ***!
|
|
17208
|
+
\********************************************************/
|
|
17209
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17210
|
+
|
|
17211
|
+
"use strict";
|
|
17212
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17213
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17214
|
+
/* harmony export */ useScrollCallback: () => (/* binding */ useScrollCallback)
|
|
17215
|
+
/* harmony export */ });
|
|
17216
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
17217
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
17218
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../constants */ "./src/constants/direction.ts");
|
|
17219
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../constants */ "./src/constants/position.ts");
|
|
17220
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ "./src/components/ScrollView/constants.ts");
|
|
17221
|
+
'use client';
|
|
17222
|
+
|
|
17223
|
+
|
|
17224
|
+
|
|
17225
|
+
const useScrollCallback = ({ viewportRef, direction }) => {
|
|
17226
|
+
const scrollTimeoutRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
17227
|
+
(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => () => {
|
|
17228
|
+
if (scrollTimeoutRef.current) {
|
|
17229
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
17230
|
+
}
|
|
17231
|
+
}, []);
|
|
17232
|
+
const handleScroll = (0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((step) => {
|
|
17233
|
+
if (!viewportRef.current) {
|
|
17234
|
+
return;
|
|
17235
|
+
}
|
|
17236
|
+
const isHorizontal = (0,_constants__WEBPACK_IMPORTED_MODULE_1__.isDirectionHorizontal)(direction);
|
|
17237
|
+
const scrollToDirection = isHorizontal ? _constants__WEBPACK_IMPORTED_MODULE_2__.Position.LEFT : _constants__WEBPACK_IMPORTED_MODULE_2__.Position.TOP;
|
|
17238
|
+
const currentScrollPosition = isHorizontal ? viewportRef.current.scrollLeft : viewportRef.current.scrollTop;
|
|
17239
|
+
const maxScroll = isHorizontal
|
|
17240
|
+
? viewportRef.current.scrollWidth - viewportRef.current.clientWidth
|
|
17241
|
+
: viewportRef.current.scrollHeight - viewportRef.current.clientHeight;
|
|
17242
|
+
viewportRef.current.scrollTo({
|
|
17243
|
+
[scrollToDirection]: currentScrollPosition,
|
|
17244
|
+
behavior: 'auto',
|
|
17245
|
+
});
|
|
17246
|
+
if (scrollTimeoutRef.current) {
|
|
17247
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
17248
|
+
}
|
|
17249
|
+
const targetPosition = Math.max(0, Math.min(currentScrollPosition + step, maxScroll));
|
|
17250
|
+
scrollTimeoutRef.current = setTimeout(() => {
|
|
17251
|
+
if (viewportRef.current) {
|
|
17252
|
+
viewportRef.current.scrollTo({
|
|
17253
|
+
[scrollToDirection]: targetPosition,
|
|
17254
|
+
behavior: 'smooth',
|
|
17255
|
+
});
|
|
17256
|
+
}
|
|
17257
|
+
}, _constants__WEBPACK_IMPORTED_MODULE_3__.SCROLL_CANCEL_DELAY);
|
|
17258
|
+
}, [viewportRef, direction]);
|
|
17259
|
+
return { handleScroll };
|
|
17260
|
+
};
|
|
17261
|
+
|
|
17141
17262
|
|
|
17142
17263
|
/***/ }),
|
|
17143
17264
|
|
|
@@ -18731,13 +18852,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18731
18852
|
/* harmony export */ });
|
|
18732
18853
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
18733
18854
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
18734
|
-
/* harmony import */ var
|
|
18735
|
-
/* harmony import */ var
|
|
18736
|
-
/* harmony import */ var
|
|
18737
|
-
/* harmony import */ var
|
|
18738
|
-
/* harmony import */ var
|
|
18739
|
-
/* harmony import */ var
|
|
18740
|
-
/* harmony import */ var
|
|
18855
|
+
/* harmony import */ var _Button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Button */ "./src/components/Button/Button.tsx");
|
|
18856
|
+
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../Dropdown */ "./src/components/Dropdown/Dropdown.tsx");
|
|
18857
|
+
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../Dropdown */ "./src/components/Dropdown/DropdownTrigger.tsx");
|
|
18858
|
+
/* harmony import */ var _Dropdown__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../Dropdown */ "./src/components/Dropdown/DropdownPopover.tsx");
|
|
18859
|
+
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/Icon.tsx");
|
|
18860
|
+
/* harmony import */ var _VisuallyHidden__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../VisuallyHidden */ "./src/components/VisuallyHidden/VisuallyHidden.tsx");
|
|
18861
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/components/SplitButton/constants.ts");
|
|
18862
|
+
/* harmony import */ var _SplitButton__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SplitButton */ "./src/components/SplitButton/SplitButton.tsx");
|
|
18741
18863
|
'use client';
|
|
18742
18864
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
18743
18865
|
var t = {};
|
|
@@ -18756,27 +18878,45 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
18756
18878
|
|
|
18757
18879
|
|
|
18758
18880
|
|
|
18881
|
+
|
|
18759
18882
|
const defaultProps = {
|
|
18760
18883
|
dropdownPlacement: 'bottom-end',
|
|
18761
18884
|
dropdownTriggerIconName: 'chevron-down',
|
|
18885
|
+
dropdownTriggerLabel: _constants__WEBPACK_IMPORTED_MODULE_1__.UNCONTROLLED_SPLIT_BUTTON_DROPDOWN_TRIGGER_LABEL_DEFAULT,
|
|
18762
18886
|
};
|
|
18763
18887
|
const UncontrolledSplitButton = (props) => {
|
|
18764
18888
|
const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);
|
|
18765
18889
|
const { buttonIconName, buttonLabel, buttonOnClick, children, dropdownTriggerIconName, dropdownTriggerLabel, dropdownPlacement, id, isButtonLabelHidden, isDisabled, isDropdownTriggerLabelHidden } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["buttonIconName", "buttonLabel", "buttonOnClick", "children", "dropdownTriggerIconName", "dropdownTriggerLabel", "dropdownPlacement", "id", "isButtonLabelHidden", "isDisabled", "isDropdownTriggerLabelHidden"]);
|
|
18766
18890
|
const [openDropdownState, setOpenDropdownState] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
|
|
18767
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18768
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18769
|
-
buttonIconName && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18770
|
-
isButtonLabelHidden ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18771
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18772
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18773
|
-
isDropdownTriggerLabelHidden ? (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18774
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18775
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
18891
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_SplitButton__WEBPACK_IMPORTED_MODULE_2__["default"], Object.assign({}, restProps, { id: id, isDisabled: isDisabled }),
|
|
18892
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Button__WEBPACK_IMPORTED_MODULE_3__["default"], { onClick: buttonOnClick },
|
|
18893
|
+
buttonIconName && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["default"], { name: buttonIconName, marginRight: !isButtonLabelHidden && 'space-400' }),
|
|
18894
|
+
isButtonLabelHidden ? react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_VisuallyHidden__WEBPACK_IMPORTED_MODULE_5__["default"], null, buttonLabel) : buttonLabel),
|
|
18895
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_6__["default"], { id: `${id}-dropdown`, isOpen: openDropdownState, onToggle: () => setOpenDropdownState(!openDropdownState), placement: dropdownPlacement },
|
|
18896
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_7__["default"], { elementType: _Button__WEBPACK_IMPORTED_MODULE_3__["default"] },
|
|
18897
|
+
isDropdownTriggerLabelHidden ? (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_VisuallyHidden__WEBPACK_IMPORTED_MODULE_5__["default"], null, dropdownTriggerLabel)) : (dropdownTriggerLabel),
|
|
18898
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_4__["default"], { name: dropdownTriggerIconName, marginLeft: !isDropdownTriggerLabelHidden && 'space-400' })),
|
|
18899
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Dropdown__WEBPACK_IMPORTED_MODULE_8__["default"], null, children))));
|
|
18776
18900
|
};
|
|
18777
18901
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (UncontrolledSplitButton);
|
|
18778
18902
|
|
|
18779
18903
|
|
|
18904
|
+
/***/ }),
|
|
18905
|
+
|
|
18906
|
+
/***/ "./src/components/SplitButton/constants.ts":
|
|
18907
|
+
/*!*************************************************!*\
|
|
18908
|
+
!*** ./src/components/SplitButton/constants.ts ***!
|
|
18909
|
+
\*************************************************/
|
|
18910
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
18911
|
+
|
|
18912
|
+
"use strict";
|
|
18913
|
+
__webpack_require__.r(__webpack_exports__);
|
|
18914
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18915
|
+
/* harmony export */ UNCONTROLLED_SPLIT_BUTTON_DROPDOWN_TRIGGER_LABEL_DEFAULT: () => (/* binding */ UNCONTROLLED_SPLIT_BUTTON_DROPDOWN_TRIGGER_LABEL_DEFAULT)
|
|
18916
|
+
/* harmony export */ });
|
|
18917
|
+
const UNCONTROLLED_SPLIT_BUTTON_DROPDOWN_TRIGGER_LABEL_DEFAULT = 'More';
|
|
18918
|
+
|
|
18919
|
+
|
|
18780
18920
|
/***/ }),
|
|
18781
18921
|
|
|
18782
18922
|
/***/ "./src/components/SplitButton/index.ts":
|
|
@@ -20031,27 +20171,50 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20031
20171
|
/* harmony export */ });
|
|
20032
20172
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
20033
20173
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
20034
|
-
/* harmony import */ var
|
|
20035
|
-
/* harmony import */ var
|
|
20174
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../constants */ "./src/constants/dictionaries.ts");
|
|
20175
|
+
/* harmony import */ var _Icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Icon */ "./src/components/Icon/Icon.tsx");
|
|
20176
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constants */ "./src/components/TextFieldBase/constants.ts");
|
|
20036
20177
|
/* harmony import */ var _useTextFieldBasePasswordToggleStyleProps__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./useTextFieldBasePasswordToggleStyleProps */ "./src/components/TextFieldBase/useTextFieldBasePasswordToggleStyleProps.ts");
|
|
20037
20178
|
'use client';
|
|
20038
20179
|
|
|
20039
20180
|
|
|
20040
20181
|
|
|
20041
20182
|
|
|
20183
|
+
|
|
20042
20184
|
const TextFieldBasePasswordToggle = (props) => {
|
|
20043
20185
|
const { children, isPasswordShown, onToggleClick, isDisabled, size } = props;
|
|
20044
20186
|
const { classProps } = (0,_useTextFieldBasePasswordToggleStyleProps__WEBPACK_IMPORTED_MODULE_1__.useTextFieldBasePasswordToggleStyleProps)();
|
|
20187
|
+
const ariaLabel = isPasswordShown
|
|
20188
|
+
? _constants__WEBPACK_IMPORTED_MODULE_2__.TEXT_FIELD_BASE_PASSWORD_TOGGLE_HIDE_LABEL_DEFAULT
|
|
20189
|
+
: _constants__WEBPACK_IMPORTED_MODULE_2__.TEXT_FIELD_BASE_PASSWORD_TOGGLE_SHOW_LABEL_DEFAULT;
|
|
20045
20190
|
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", { className: classProps.passwordToggle },
|
|
20046
20191
|
children,
|
|
20047
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", { className: classProps.passwordToggleButton, type: "button", role: "switch", "aria-checked": !!isPasswordShown, "aria-label":
|
|
20192
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("button", { className: classProps.passwordToggleButton, type: "button", role: "switch", "aria-checked": !!isPasswordShown, "aria-label": ariaLabel, onClick: () => onToggleClick(), disabled: isDisabled },
|
|
20048
20193
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("span", { className: classProps.passwordToggleIcon },
|
|
20049
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
20194
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Icon__WEBPACK_IMPORTED_MODULE_3__["default"], { name: `visibility-${isPasswordShown ? 'off' : 'on'}`, boxSize: size === _constants__WEBPACK_IMPORTED_MODULE_4__.Sizes.SMALL ? 16 : 20 })))));
|
|
20050
20195
|
};
|
|
20051
20196
|
TextFieldBasePasswordToggle.spiritComponent = 'TextFieldBasePasswordToggle';
|
|
20052
20197
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TextFieldBasePasswordToggle);
|
|
20053
20198
|
|
|
20054
20199
|
|
|
20200
|
+
/***/ }),
|
|
20201
|
+
|
|
20202
|
+
/***/ "./src/components/TextFieldBase/constants.ts":
|
|
20203
|
+
/*!***************************************************!*\
|
|
20204
|
+
!*** ./src/components/TextFieldBase/constants.ts ***!
|
|
20205
|
+
\***************************************************/
|
|
20206
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
20207
|
+
|
|
20208
|
+
"use strict";
|
|
20209
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20210
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20211
|
+
/* harmony export */ TEXT_FIELD_BASE_PASSWORD_TOGGLE_HIDE_LABEL_DEFAULT: () => (/* binding */ TEXT_FIELD_BASE_PASSWORD_TOGGLE_HIDE_LABEL_DEFAULT),
|
|
20212
|
+
/* harmony export */ TEXT_FIELD_BASE_PASSWORD_TOGGLE_SHOW_LABEL_DEFAULT: () => (/* binding */ TEXT_FIELD_BASE_PASSWORD_TOGGLE_SHOW_LABEL_DEFAULT)
|
|
20213
|
+
/* harmony export */ });
|
|
20214
|
+
const TEXT_FIELD_BASE_PASSWORD_TOGGLE_SHOW_LABEL_DEFAULT = 'Show password';
|
|
20215
|
+
const TEXT_FIELD_BASE_PASSWORD_TOGGLE_HIDE_LABEL_DEFAULT = 'Hide password';
|
|
20216
|
+
|
|
20217
|
+
|
|
20055
20218
|
/***/ }),
|
|
20056
20219
|
|
|
20057
20220
|
/***/ "./src/components/TextFieldBase/index.ts":
|
|
@@ -21056,11 +21219,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21056
21219
|
/* harmony export */ });
|
|
21057
21220
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
21058
21221
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
21059
|
-
/* harmony import */ var
|
|
21060
|
-
/* harmony import */ var
|
|
21061
|
-
/* harmony import */ var
|
|
21062
|
-
/* harmony import */ var
|
|
21063
|
-
/* harmony import */ var
|
|
21222
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/components/Toast/constants.ts");
|
|
21223
|
+
/* harmony import */ var _Toast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Toast */ "./src/components/Toast/Toast.tsx");
|
|
21224
|
+
/* harmony import */ var _ToastBar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ToastBar */ "./src/components/Toast/ToastBar.tsx");
|
|
21225
|
+
/* harmony import */ var _ToastBarLink__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ToastBarLink */ "./src/components/Toast/ToastBarLink.tsx");
|
|
21226
|
+
/* harmony import */ var _ToastBarMessage__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ToastBarMessage */ "./src/components/Toast/ToastBarMessage.tsx");
|
|
21227
|
+
/* harmony import */ var _useToast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./useToast */ "./src/components/Toast/useToast.ts");
|
|
21064
21228
|
'use client';
|
|
21065
21229
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
21066
21230
|
var t = {};
|
|
@@ -21079,14 +21243,15 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
21079
21243
|
|
|
21080
21244
|
|
|
21081
21245
|
|
|
21246
|
+
|
|
21082
21247
|
const UncontrolledToast = (props) => {
|
|
21083
|
-
const { alignmentX, alignmentY, isCollapsible, closeLabel } = props, restProps = __rest(props, ["alignmentX", "alignmentY", "isCollapsible", "closeLabel"]);
|
|
21084
|
-
const { hide, queue } = (0,
|
|
21085
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
21248
|
+
const { alignmentX, alignmentY, isCollapsible, closeLabel = _constants__WEBPACK_IMPORTED_MODULE_1__.TOAST_BAR_CLOSE_BUTTON_LABEL_DEFAULT } = props, restProps = __rest(props, ["alignmentX", "alignmentY", "isCollapsible", "closeLabel"]);
|
|
21249
|
+
const { hide, queue } = (0,_useToast__WEBPACK_IMPORTED_MODULE_2__.useToast)();
|
|
21250
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_Toast__WEBPACK_IMPORTED_MODULE_3__["default"], { alignmentX: alignmentX, alignmentY: alignmentY, isCollapsible: isCollapsible }, queue.map((item) => {
|
|
21086
21251
|
const { color, iconName, id, isOpen, content, hasIcon, isDismissible, linkProps } = item;
|
|
21087
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
21088
|
-
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
21089
|
-
content.link && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(
|
|
21252
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ToastBar__WEBPACK_IMPORTED_MODULE_4__["default"], Object.assign({}, restProps, { key: id, id: id, closeLabel: closeLabel, color: color, hasIcon: hasIcon, iconName: iconName, isDismissible: isDismissible, onClose: () => hide(id), isOpen: isOpen && !!content }),
|
|
21253
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ToastBarMessage__WEBPACK_IMPORTED_MODULE_5__["default"], null, content.message),
|
|
21254
|
+
content.link && react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_ToastBarLink__WEBPACK_IMPORTED_MODULE_6__["default"], Object.assign({}, linkProps), content.link)));
|
|
21090
21255
|
})));
|
|
21091
21256
|
};
|
|
21092
21257
|
UncontrolledToast.spiritComponent = 'UncontrolledToast';
|
|
@@ -22639,6 +22804,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22639
22804
|
/* harmony export */ Container: () => (/* reexport safe */ _Container__WEBPACK_IMPORTED_MODULE_10__.Container),
|
|
22640
22805
|
/* harmony export */ ControlButton: () => (/* reexport safe */ _ControlButton__WEBPACK_IMPORTED_MODULE_11__.ControlButton),
|
|
22641
22806
|
/* harmony export */ DEBOUNCE_DELAY: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.DEBOUNCE_DELAY),
|
|
22807
|
+
/* harmony export */ DEFAULT_ATTACHMENT_LIST_LABEL: () => (/* reexport safe */ _FileUploader__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_ATTACHMENT_LIST_LABEL),
|
|
22642
22808
|
/* harmony export */ DEFAULT_BUTTON_LABEL: () => (/* reexport safe */ _FileUploader__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_BUTTON_LABEL),
|
|
22643
22809
|
/* harmony export */ DEFAULT_EDIT_BUTTON_LABEL: () => (/* reexport safe */ _FileUploader__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_EDIT_BUTTON_LABEL),
|
|
22644
22810
|
/* harmony export */ DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE: () => (/* reexport safe */ _FileUploader__WEBPACK_IMPORTED_MODULE_19__.DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE),
|
|
@@ -22719,6 +22885,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22719
22885
|
/* harmony export */ NavigationAvatar: () => (/* reexport safe */ _Navigation__WEBPACK_IMPORTED_MODULE_31__.NavigationAvatar),
|
|
22720
22886
|
/* harmony export */ NavigationItem: () => (/* reexport safe */ _Navigation__WEBPACK_IMPORTED_MODULE_31__.NavigationItem),
|
|
22721
22887
|
/* harmony export */ NoSsr: () => (/* reexport safe */ _NoSsr__WEBPACK_IMPORTED_MODULE_32__.NoSsr),
|
|
22888
|
+
/* harmony export */ PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX: () => (/* reexport safe */ _Pagination__WEBPACK_IMPORTED_MODULE_33__.PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX),
|
|
22722
22889
|
/* harmony export */ PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL: () => (/* reexport safe */ _Pagination__WEBPACK_IMPORTED_MODULE_33__.PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL),
|
|
22723
22890
|
/* harmony export */ PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL: () => (/* reexport safe */ _Pagination__WEBPACK_IMPORTED_MODULE_33__.PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL),
|
|
22724
22891
|
/* harmony export */ Pagination: () => (/* reexport safe */ _Pagination__WEBPACK_IMPORTED_MODULE_33__.Pagination),
|
|
@@ -22736,6 +22903,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22736
22903
|
/* harmony export */ PricingPlanHeader: () => (/* reexport safe */ _PricingPlan__WEBPACK_IMPORTED_MODULE_36__.PricingPlanHeader),
|
|
22737
22904
|
/* harmony export */ ProductLogo: () => (/* reexport safe */ _ProductLogo__WEBPACK_IMPORTED_MODULE_37__.ProductLogo),
|
|
22738
22905
|
/* harmony export */ Radio: () => (/* reexport safe */ _Radio__WEBPACK_IMPORTED_MODULE_38__.Radio),
|
|
22906
|
+
/* harmony export */ SCROLL_CANCEL_DELAY: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.SCROLL_CANCEL_DELAY),
|
|
22739
22907
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END),
|
|
22740
22908
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START),
|
|
22741
22909
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END),
|
|
@@ -22867,6 +23035,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22867
23035
|
/* harmony export */ usePillStyleProps: () => (/* reexport safe */ _Pill__WEBPACK_IMPORTED_MODULE_35__.usePillStyleProps),
|
|
22868
23036
|
/* harmony export */ usePricingPlanStyleProps: () => (/* reexport safe */ _PricingPlan__WEBPACK_IMPORTED_MODULE_36__.usePricingPlanStyleProps),
|
|
22869
23037
|
/* harmony export */ useRadioStyleProps: () => (/* reexport safe */ _Radio__WEBPACK_IMPORTED_MODULE_38__.useRadioStyleProps),
|
|
23038
|
+
/* harmony export */ useScrollCallback: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.useScrollCallback),
|
|
22870
23039
|
/* harmony export */ useScrollPosition: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.useScrollPosition),
|
|
22871
23040
|
/* harmony export */ useScrollViewArrows: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.useScrollViewArrows),
|
|
22872
23041
|
/* harmony export */ useScrollViewStyleProps: () => (/* reexport safe */ _ScrollView__WEBPACK_IMPORTED_MODULE_39__.useScrollViewStyleProps),
|
|
@@ -34949,6 +35118,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34949
35118
|
/* harmony export */ ContainerTokenSizes: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_1__.ContainerTokenSizes),
|
|
34950
35119
|
/* harmony export */ ControlButton: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.ControlButton),
|
|
34951
35120
|
/* harmony export */ DEBOUNCE_DELAY: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.DEBOUNCE_DELAY),
|
|
35121
|
+
/* harmony export */ DEFAULT_ATTACHMENT_LIST_LABEL: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_ATTACHMENT_LIST_LABEL),
|
|
34952
35122
|
/* harmony export */ DEFAULT_BUTTON_LABEL: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_BUTTON_LABEL),
|
|
34953
35123
|
/* harmony export */ DEFAULT_EDIT_BUTTON_LABEL: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_EDIT_BUTTON_LABEL),
|
|
34954
35124
|
/* harmony export */ DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.DEFAULT_ERROR_MESSAGE_MAX_FILE_SIZE),
|
|
@@ -35043,6 +35213,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35043
35213
|
/* harmony export */ NavigationItem: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.NavigationItem),
|
|
35044
35214
|
/* harmony export */ NoSsr: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.NoSsr),
|
|
35045
35215
|
/* harmony export */ ObjectFit: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_1__.ObjectFit),
|
|
35216
|
+
/* harmony export */ PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PAGINATION_LINK_DEFAULT_ACCESSIBILITY_LABEL_PREFIX),
|
|
35046
35217
|
/* harmony export */ PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PAGINATION_NEXT_LINK_DEFAULT_ACCESSIBILITY_LABEL),
|
|
35047
35218
|
/* harmony export */ PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.PAGINATION_PREVIOUS_LINK_DEFAULT_ACCESSIBILITY_LABEL),
|
|
35048
35219
|
/* harmony export */ PaddingStyleProps: () => (/* reexport safe */ _constants__WEBPACK_IMPORTED_MODULE_1__.PaddingStyleProps),
|
|
@@ -35065,6 +35236,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35065
35236
|
/* harmony export */ PropsConsumer: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_2__.PropsConsumer),
|
|
35066
35237
|
/* harmony export */ PropsProvider: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_2__.PropsProvider),
|
|
35067
35238
|
/* harmony export */ Radio: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.Radio),
|
|
35239
|
+
/* harmony export */ SCROLL_CANCEL_DELAY: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SCROLL_CANCEL_DELAY),
|
|
35068
35240
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END),
|
|
35069
35241
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START),
|
|
35070
35242
|
/* harmony export */ SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END),
|
|
@@ -35267,6 +35439,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35267
35439
|
/* harmony export */ usePropsContext: () => (/* reexport safe */ _context__WEBPACK_IMPORTED_MODULE_2__.usePropsContext),
|
|
35268
35440
|
/* harmony export */ useRadioStyleProps: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.useRadioStyleProps),
|
|
35269
35441
|
/* harmony export */ useResizeObserver: () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_3__.useResizeObserver),
|
|
35442
|
+
/* harmony export */ useScrollCallback: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.useScrollCallback),
|
|
35270
35443
|
/* harmony export */ useScrollControl: () => (/* reexport safe */ _hooks__WEBPACK_IMPORTED_MODULE_3__.useScrollControl),
|
|
35271
35444
|
/* harmony export */ useScrollPosition: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.useScrollPosition),
|
|
35272
35445
|
/* harmony export */ useScrollViewArrows: () => (/* reexport safe */ _components__WEBPACK_IMPORTED_MODULE_0__.useScrollViewArrows),
|