@nulogy/components 16.0.1 → 16.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +46 -59
- package/dist/main.js.map +1 -1
- package/dist/main.module.js +46 -59
- package/dist/main.module.js.map +1 -1
- package/dist/src/Alert/Alert.story.d.ts +1 -1
- package/dist/src/Alert/Alert.story.js +11 -0
- package/dist/src/AppTag/stories/AppTag.story.d.ts +2 -2
- package/dist/src/AppTag/stories/AppTag.story.js +6 -4
- package/dist/src/AppTag/stories/AppTag.usecases.story.d.ts +13 -10
- package/dist/src/AppTag/stories/AppTag.usecases.story.js +71 -51
- package/dist/src/AsyncSelect/AsyncSelect.story.d.ts +17 -13
- package/dist/src/AsyncSelect/AsyncSelect.story.js +46 -23
- package/dist/src/BottomSheet/BottomSheet.parts.d.ts +2 -2
- package/dist/src/BottomSheet/BottomSheet.styled.d.ts +10 -6
- package/dist/src/BottomSheet/stories/BottomSheet.actions.story.d.ts +8 -1
- package/dist/src/BottomSheet/stories/BottomSheet.actions.story.js +22 -3
- package/dist/src/BottomSheet/stories/BottomSheet.features.story.d.ts +9 -2
- package/dist/src/BottomSheet/stories/BottomSheet.features.story.js +27 -12
- package/dist/src/BottomSheet/stories/BottomSheet.story.d.ts +7 -1
- package/dist/src/BottomSheet/stories/BottomSheet.story.js +20 -3
- package/dist/src/Box/Box.d.ts +12 -13
- package/dist/src/Box/Box.story.d.ts +22 -44
- package/dist/src/Box/Box.story.js +30 -30
- package/dist/src/BrandedNavBar/DesktopMenu.d.ts +3 -1
- package/dist/src/BrandedNavBar/NavBar.js +2 -2
- package/dist/src/BrandedNavBar/NavBar.story.d.ts +16 -28
- package/dist/src/BrandedNavBar/NavBar.story.js +41 -35
- package/dist/src/BrandedNavBar/SmallNavBar.story.d.ts +1 -1
- package/dist/src/Breadcrumbs/Breadcrumbs.story.d.ts +4 -8
- package/dist/src/Breadcrumbs/Breadcrumbs.story.js +4 -4
- package/dist/src/Button/Button.story.d.ts +14 -28
- package/dist/src/Button/Button.story.js +14 -14
- package/dist/src/Button/ControlIcon.story.js +1 -1
- package/dist/src/Button/DangerButton.d.ts +3 -1
- package/dist/src/Button/IconicButton.story.d.ts +23 -45
- package/dist/src/Button/IconicButton.story.js +27 -25
- package/dist/src/Button/PrimaryButton.d.ts +3 -1
- package/dist/src/Button/QuietButton.d.ts +3 -1
- package/dist/src/ButtonGroup/ButtonGroup.story.d.ts +13 -23
- package/dist/src/ButtonGroup/ButtonGroup.story.js +10 -10
- package/dist/src/Card/Card.story.d.ts +3 -5
- package/dist/src/Card/Card.story.js +9 -7
- package/dist/src/Checkbox/Checkbox.story.d.ts +18 -34
- package/dist/src/Checkbox/Checkbox.story.js +28 -24
- package/dist/src/Checkbox/CheckboxGroup.story.d.ts +10 -20
- package/dist/src/Checkbox/CheckboxGroup.story.js +10 -10
- package/dist/src/DatePickers/stories/DatePicker.story.d.ts +9 -2
- package/dist/src/DatePickers/stories/DatePicker.story.js +43 -2
- package/dist/src/DatePickers/stories/MonthPicker.story.d.ts +8 -1
- package/dist/src/DatePickers/stories/MonthPicker.story.js +21 -2
- package/dist/src/DatePickers/stories/WeekPicker.story.d.ts +32 -4
- package/dist/src/DatePickers/stories/WeekPicker.story.js +57 -8
- package/dist/src/DateRange/DateRange.story.d.ts +16 -2
- package/dist/src/DateRange/DateRange.story.js +41 -3
- package/dist/src/DateRange/EndTime.d.ts +5 -7
- package/dist/src/DateRange/StartTime.d.ts +5 -7
- package/dist/src/DescriptionList/stories/DescriptionList.column.story.d.ts +1 -1
- package/dist/src/DescriptionList/stories/DescriptionList.column.story.js +10 -8
- package/dist/src/DescriptionList/stories/DescriptionList.group-min-width.story.d.ts +1 -1
- package/dist/src/DescriptionList/stories/DescriptionList.layout.story.d.ts +1 -1
- package/dist/src/DescriptionList/stories/DescriptionList.layout.story.js +12 -10
- package/dist/src/DescriptionList/stories/DescriptionList.playground.story.d.ts +1 -1
- package/dist/src/DescriptionList/stories/DescriptionList.story.d.ts +1 -0
- package/dist/src/DescriptionList/stories/DescriptionList.story.js +3 -0
- package/dist/src/DescriptionList/stories/fixtures.d.ts +2 -2
- package/dist/src/DropdownMenu/DropdownMenu.story.d.ts +32 -32
- package/dist/src/DropdownMenu/DropdownMenu.story.js +58 -16
- package/dist/src/DropdownMenu/DropdownMenuContainer.d.ts +1 -1
- package/dist/src/DropdownMenu/DropdownText.d.ts +1 -1
- package/dist/src/FieldLabel/FieldLabel.story.d.ts +2 -4
- package/dist/src/FieldLabel/FieldLabel.story.js +2 -2
- package/dist/src/FieldLabel/HelpText.d.ts +1 -1
- package/dist/src/Flex/Flex.story.d.ts +34 -68
- package/dist/src/Flex/Flex.story.js +36 -36
- package/dist/src/Form/Form.story.d.ts +8 -16
- package/dist/src/Form/Form.story.js +8 -8
- package/dist/src/Icon/Icon.d.ts +6 -2
- package/dist/src/Icon/Icon.story.d.ts +12 -24
- package/dist/src/Icon/Icon.story.js +15 -15
- package/dist/src/Input/Input.story.d.ts +16 -32
- package/dist/src/Input/Input.story.js +23 -23
- package/dist/src/Layout/Page.applicationFrame.story.d.ts +1 -1
- package/dist/src/Layout/Page.story.d.ts +1 -1
- package/dist/src/Layout/Sidebar.story.d.ts +1 -1
- package/dist/src/Link/Link.story.d.ts +16 -32
- package/dist/src/Link/Link.story.js +16 -17
- package/dist/src/List/List.story.d.ts +8 -16
- package/dist/src/List/List.story.js +8 -8
- package/dist/src/LoadingAnimation/LoadingAnimation.story.d.ts +4 -8
- package/dist/src/LoadingAnimation/LoadingAnimation.story.js +4 -4
- package/dist/src/MaybeTooltip/MaybeTooltip.story.d.ts +1 -1
- package/dist/src/Modal/Modal.d.ts +5 -3
- package/dist/src/Modal/Modal.js +2 -2
- package/dist/src/Modal/Modal.story.d.ts +2 -24
- package/dist/src/Modal/ModalCloseButton.d.ts +4 -2
- package/dist/src/Modal/ModalContent.d.ts +1 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/Item.d.ts +3 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/index.d.ts +15 -7
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.d.ts +5 -1
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.d.ts +17 -5
- package/dist/src/Navigation/components/MobileNav/parts/styled.d.ts +10 -4
- package/dist/src/Navigation/components/UserMenu/UserMenu.d.ts +5 -1
- package/dist/src/Navigation/components/UserMenu/parts/styled.d.ts +6 -2
- package/dist/src/Navigation/components/shared/NavigationMenuContent.d.ts +5 -1
- package/dist/src/Navigation/components/shared/NavigationMenuItem.d.ts +3 -1
- package/dist/src/Navigation/components/shared/components.d.ts +35 -9
- package/dist/src/Navigation/stories/Navigation.appSwitcher.story.d.ts +8 -1
- package/dist/src/Navigation/stories/Navigation.appSwitcher.story.js +19 -1
- package/dist/src/Navigation/stories/Navigation.logos.story.d.ts +2 -4
- package/dist/src/Navigation/stories/Navigation.logos.story.js +4 -4
- package/dist/src/Navigation/stories/Navigation.story.d.ts +7 -1
- package/dist/src/Navigation/stories/Navigation.story.js +145 -136
- package/dist/src/Navigation/stories/Navigation.userMenu.story.d.ts +8 -1
- package/dist/src/Navigation/stories/Navigation.userMenu.story.js +22 -1
- package/dist/src/Overlay/Overlay.story.d.ts +2 -4
- package/dist/src/Overlay/Overlay.story.js +2 -2
- package/dist/src/Pagination/Pagination.story.d.ts +14 -13
- package/dist/src/Pagination/Pagination.story.js +32 -11
- package/dist/src/Radio/Radio.story.d.ts +13 -15
- package/dist/src/Radio/Radio.story.js +44 -1
- package/dist/src/Radio/RadioGroup.story.d.ts +29 -21
- package/dist/src/Radio/RadioGroup.story.js +67 -14
- package/dist/src/RangeContainer/RangeContainer.story.d.ts +2 -4
- package/dist/src/RangeContainer/RangeContainer.story.js +2 -2
- package/dist/src/Select/Select.story.d.ts +37 -65
- package/dist/src/Select/Select.story.js +93 -49
- package/dist/src/StatusIndicator/StatusIndicator.story.d.ts +4 -8
- package/dist/src/StatusIndicator/StatusIndicator.story.js +4 -4
- package/dist/src/Summary/Summary.d.ts +1 -2
- package/dist/src/Summary/Summary.js +2 -2
- package/dist/src/Summary/SummaryContext.d.ts +3 -1
- package/dist/src/Summary/SummaryContext.js +2 -2
- package/dist/src/Summary/SummaryItem.d.ts +1 -1
- package/dist/src/Summary/SummaryItem.js +2 -2
- package/dist/src/Switcher/Switcher.d.ts +2 -2
- package/dist/src/Switcher/Switcher.js +2 -2
- package/dist/src/Switcher/Switcher.story.d.ts +8 -1
- package/dist/src/Switcher/Switcher.story.js +13 -1
- package/dist/src/Table/stories/BaseTable.story.d.ts +1 -1
- package/dist/src/Table/stories/BaseTable.story.js +1 -1
- package/dist/src/Table/stories/CustomContent.story.js +1 -1
- package/dist/src/Table/stories/Density.story.d.ts +4 -8
- package/dist/src/Table/stories/Density.story.js +4 -4
- package/dist/src/Table/stories/SortingColumnHeader.story.d.ts +1 -1
- package/dist/src/Table/stories/SortingColumnHeader.story.js +1 -1
- package/dist/src/Table/stories/Table.story.d.ts +1 -1
- package/dist/src/Table/stories/Table.story.js +37 -1
- package/dist/src/Table/stories/TableWithCustomSorting.story.d.ts +2 -4
- package/dist/src/Table/stories/TableWithCustomSorting.story.js +2 -2
- package/dist/src/Table/stories/TableWithExpandableRows.story.d.ts +4 -8
- package/dist/src/Table/stories/TableWithExpandableRows.story.js +5 -5
- package/dist/src/Table/stories/TableWithFiltering.story.d.ts +8 -8
- package/dist/src/Table/stories/TableWithFiltering.story.js +15 -4
- package/dist/src/Table/stories/TableWithSelectableRows.story.d.ts +8 -8
- package/dist/src/Table/stories/TableWithSelectableRows.story.js +22 -5
- package/dist/src/Table/stories/TableWithServerSidePagination.story.d.ts +2 -4
- package/dist/src/Table/stories/TableWithServerSidePagination.story.js +2 -2
- package/dist/src/Tabs/TabScrollIndicator.d.ts +1 -1
- package/dist/src/Tabs/TabScrollIndicator.js +2 -2
- package/dist/src/Tabs/Tabs.story.d.ts +33 -33
- package/dist/src/Tabs/Tabs.story.js +52 -16
- package/dist/src/Textarea/Textarea.story.js +1 -1
- package/dist/src/TimePicker/TimePicker.d.ts +1 -1
- package/dist/src/TimePicker/TimePicker.js +2 -0
- package/dist/src/TimePicker/TimePicker.story.d.ts +24 -40
- package/dist/src/TimePicker/TimePicker.story.js +40 -27
- package/dist/src/TimePicker/TimePickerInput.d.ts +3 -1
- package/dist/src/TimeRange/TimeRange.d.ts +3 -2
- package/dist/src/TimeRange/TimeRange.story.d.ts +14 -20
- package/dist/src/TimeRange/TimeRange.story.js +34 -20
- package/dist/src/Toast/Toast.story.d.ts +24 -25
- package/dist/src/Toast/Toast.story.js +170 -142
- package/dist/src/ToastContainer/ToastContainer.story.d.ts +8 -1
- package/dist/src/ToastContainer/ToastContainer.story.js +13 -1
- package/dist/src/ToastContainer/ToastFunction.js +2 -2
- package/dist/src/Toggle/Toggle.story.d.ts +25 -15
- package/dist/src/Toggle/Toggle.story.js +77 -43
- package/dist/src/Toggle/ToggleButton.js +2 -2
- package/dist/src/Tooltip/Tooltip.story.d.ts +1 -1
- package/dist/src/Tooltip/Tooltip.story.js +16 -0
- package/dist/src/TopBar/TopBar.styled.d.ts +16 -15
- package/dist/src/TopBar/components/BackLink.d.ts +3 -1
- package/dist/src/TopBar/components/MenuItemLink.d.ts +3 -1
- package/dist/src/TopBar/stories/TopBar.backButton.story.js +1 -1
- package/dist/src/TopBar/stories/TopBar.menu.story.js +1 -1
- package/dist/src/TopBar/stories/TopBar.story.d.ts +7 -1
- package/dist/src/TopBar/stories/TopBar.story.js +18 -1
- package/dist/src/TruncatedText/TruncatedText.story.d.ts +29 -34
- package/dist/src/TruncatedText/TruncatedText.story.js +46 -19
- package/dist/src/Type/Headings.d.ts +4 -4
- package/dist/src/Type/Text.story.d.ts +10 -20
- package/dist/src/Type/Text.story.js +10 -10
- package/dist/src/Validation/InlineValidation.story.d.ts +6 -12
- package/dist/src/Validation/InlineValidation.story.js +6 -6
- package/dist/src/VisualTests/Select.story.d.ts +12 -24
- package/dist/src/VisualTests/Select.story.js +19 -19
- package/dist/src/pages/ErrorPage.story.d.ts +3 -5
- package/dist/src/pages/ErrorPage.story.js +10 -10
- package/dist/src/pages/LoginPage.story.d.ts +8 -16
- package/dist/src/pages/LoginPage.story.js +8 -8
- package/dist/src/utils/story/dashed.d.ts +1 -3
- package/dist/src/utils/story/resizable.d.ts +4 -2
- package/dist/src/utils/ts/FocusManager.d.ts +1 -1
- package/dist/src/utils/ts/FocusManager.js +2 -2
- package/package.json +25 -34
package/dist/main.module.js
CHANGED
|
@@ -11476,7 +11476,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
11476
11476
|
const { asChild, ...primitiveProps } = props;
|
|
11477
11477
|
const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360 : node2;
|
|
11478
11478
|
useEffect(() => {
|
|
11479
|
-
window[Symbol.for("radix-ui")] = true;
|
|
11479
|
+
window[/* @__PURE__ */ Symbol.for("radix-ui")] = true;
|
|
11480
11480
|
}, []);
|
|
11481
11481
|
return /* @__PURE__ */ createElement(Comp, _extends$3({}, primitiveProps, {
|
|
11482
11482
|
ref: forwardedRef
|
|
@@ -28106,14 +28106,7 @@ const themeColorObject = {
|
|
|
28106
28106
|
textColor: "blackBlue",
|
|
28107
28107
|
logoColor: "blue"
|
|
28108
28108
|
};
|
|
28109
|
-
|
|
28110
|
-
menuData,
|
|
28111
|
-
environment,
|
|
28112
|
-
logo,
|
|
28113
|
-
showNulogyLogo,
|
|
28114
|
-
subtext,
|
|
28115
|
-
...props
|
|
28116
|
-
}) => {
|
|
28109
|
+
function MediumNavBar({ menuData, environment, logo, showNulogyLogo, subtext, ...props }) {
|
|
28117
28110
|
const { t: t3 } = useTranslation();
|
|
28118
28111
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28119
28112
|
environment && /* @__PURE__ */ jsx$1(EnvironmentBanner, { children: environment }),
|
|
@@ -28144,7 +28137,7 @@ const MediumNavBar = ({
|
|
|
28144
28137
|
] })
|
|
28145
28138
|
] }) })
|
|
28146
28139
|
] });
|
|
28147
|
-
}
|
|
28140
|
+
}
|
|
28148
28141
|
const SelectNavBarBasedOnWidth = ({
|
|
28149
28142
|
width: width2,
|
|
28150
28143
|
defaultOpen,
|
|
@@ -41392,6 +41385,7 @@ const TimePicker = forwardRef(
|
|
|
41392
41385
|
const componentVariant = useComponentVariant(variant3);
|
|
41393
41386
|
const scrollToSelection = useCallback(
|
|
41394
41387
|
debounce((currentOption, dropdown) => {
|
|
41388
|
+
if (!dropdown.current) return;
|
|
41395
41389
|
const currentIndex = Array.from(dropdown.current.children).indexOf(currentOption);
|
|
41396
41390
|
if (currentIndex > 2) {
|
|
41397
41391
|
dropdown.current.scrollTop = (currentIndex - 2) * currentOption.scrollHeight;
|
|
@@ -44514,17 +44508,15 @@ function requireLib() {
|
|
|
44514
44508
|
}
|
|
44515
44509
|
var libExports = requireLib();
|
|
44516
44510
|
const ReactModal = /* @__PURE__ */ getDefaultExportFromCjs(libExports);
|
|
44517
|
-
const ModalContent = styled.div(
|
|
44518
|
-
|
|
44519
|
-
|
|
44520
|
-
|
|
44521
|
-
|
|
44522
|
-
|
|
44523
|
-
|
|
44524
|
-
|
|
44525
|
-
|
|
44526
|
-
})
|
|
44527
|
-
);
|
|
44511
|
+
const ModalContent = styled.div(({ hasFooter, theme }) => ({
|
|
44512
|
+
marginTop: "-64px",
|
|
44513
|
+
marginBottom: hasFooter ? "-72px" : 0,
|
|
44514
|
+
overflow: "auto",
|
|
44515
|
+
paddingTop: "88px",
|
|
44516
|
+
paddingBottom: hasFooter ? "96px" : theme.space.x2,
|
|
44517
|
+
paddingLeft: theme.space.x3,
|
|
44518
|
+
paddingRight: theme.space.x3
|
|
44519
|
+
}));
|
|
44528
44520
|
const ModalFooter = styled.div(({ theme }) => ({
|
|
44529
44521
|
position: "relative",
|
|
44530
44522
|
padding: `${theme.space.x2} ${theme.space.x3}`,
|
|
@@ -44615,7 +44607,7 @@ const StyledReactModal = styled(ReactModal)(
|
|
|
44615
44607
|
MozOsxFontSmoothing: "grayscale"
|
|
44616
44608
|
})
|
|
44617
44609
|
);
|
|
44618
|
-
|
|
44610
|
+
function Modal({
|
|
44619
44611
|
isOpen = true,
|
|
44620
44612
|
shouldFocusAfterRender = true,
|
|
44621
44613
|
shouldReturnFocusAfterClose = true,
|
|
@@ -44635,7 +44627,7 @@ const Modal = ({
|
|
|
44635
44627
|
footerContent,
|
|
44636
44628
|
closeAriaLabel,
|
|
44637
44629
|
parentSelector
|
|
44638
|
-
})
|
|
44630
|
+
}) {
|
|
44639
44631
|
const modalHasHeader = Boolean(onRequestClose || title);
|
|
44640
44632
|
const themeContext = useContext(ThemeContext$1);
|
|
44641
44633
|
return /* @__PURE__ */ jsx$1(
|
|
@@ -44677,7 +44669,7 @@ const Modal = ({
|
|
|
44677
44669
|
)
|
|
44678
44670
|
}
|
|
44679
44671
|
);
|
|
44680
|
-
}
|
|
44672
|
+
}
|
|
44681
44673
|
function ModalWrapper({
|
|
44682
44674
|
modalHasHeader,
|
|
44683
44675
|
title,
|
|
@@ -51502,17 +51494,19 @@ function MenuList(props) {
|
|
|
51502
51494
|
ref: list,
|
|
51503
51495
|
outerRef: innerRef,
|
|
51504
51496
|
estimatedItemSize,
|
|
51505
|
-
innerElementType: React.forwardRef(
|
|
51506
|
-
|
|
51507
|
-
|
|
51508
|
-
|
|
51509
|
-
|
|
51510
|
-
|
|
51511
|
-
|
|
51512
|
-
|
|
51513
|
-
|
|
51514
|
-
|
|
51515
|
-
|
|
51497
|
+
innerElementType: React.forwardRef(
|
|
51498
|
+
({ style, ...rest }, ref) => /* @__PURE__ */ jsx$1(
|
|
51499
|
+
"div",
|
|
51500
|
+
{
|
|
51501
|
+
ref,
|
|
51502
|
+
style: {
|
|
51503
|
+
...style,
|
|
51504
|
+
height: `${parseFloat(style.height) + paddingBottom + paddingTop}px`
|
|
51505
|
+
},
|
|
51506
|
+
...rest
|
|
51507
|
+
}
|
|
51508
|
+
)
|
|
51509
|
+
),
|
|
51516
51510
|
height: menuHeight,
|
|
51517
51511
|
width: "100%",
|
|
51518
51512
|
itemCount,
|
|
@@ -52396,10 +52390,7 @@ function useSummaryContext() {
|
|
|
52396
52390
|
}
|
|
52397
52391
|
return context;
|
|
52398
52392
|
}
|
|
52399
|
-
|
|
52400
|
-
breakpoint,
|
|
52401
|
-
children
|
|
52402
|
-
}) => {
|
|
52393
|
+
function SummaryContextProvider({ breakpoint, children }) {
|
|
52403
52394
|
return /* @__PURE__ */ jsx$1(
|
|
52404
52395
|
SummaryContext.Provider,
|
|
52405
52396
|
{
|
|
@@ -52409,7 +52400,7 @@ const SummaryContextProvider = ({
|
|
|
52409
52400
|
children
|
|
52410
52401
|
}
|
|
52411
52402
|
);
|
|
52412
|
-
}
|
|
52403
|
+
}
|
|
52413
52404
|
const SummaryWrapper = styled(Box)(({ theme, breakpoint }) => ({
|
|
52414
52405
|
display: "flex",
|
|
52415
52406
|
background: theme.colors.white,
|
|
@@ -52428,12 +52419,12 @@ const SummaryWrapper = styled(Box)(({ theme, breakpoint }) => ({
|
|
|
52428
52419
|
rowGap: 0
|
|
52429
52420
|
}
|
|
52430
52421
|
}));
|
|
52431
|
-
|
|
52422
|
+
function Summary({ breakpoint, children, ...rest }) {
|
|
52432
52423
|
const theme = useTheme();
|
|
52433
52424
|
breakpoint || (breakpoint = theme.breakpoints.medium);
|
|
52434
52425
|
const breakpointPx = numberFromDimension(breakpoint);
|
|
52435
52426
|
return /* @__PURE__ */ jsx$1(SummaryContextProvider, { breakpoint: breakpointPx, children: /* @__PURE__ */ jsx$1(SummaryWrapper, { breakpoint: breakpointPx, ...rest, children }) });
|
|
52436
|
-
}
|
|
52427
|
+
}
|
|
52437
52428
|
const SummaryItemWrapper = styled(Flex)(({ theme, breakpoint }) => ({
|
|
52438
52429
|
gap: theme.space.half,
|
|
52439
52430
|
flexDirection: "column",
|
|
@@ -52441,7 +52432,7 @@ const SummaryItemWrapper = styled(Flex)(({ theme, breakpoint }) => ({
|
|
|
52441
52432
|
flexDirection: "row"
|
|
52442
52433
|
}
|
|
52443
52434
|
}));
|
|
52444
|
-
|
|
52435
|
+
function SummaryItem({ value, status, ...rest }) {
|
|
52445
52436
|
const { breakpoint } = useSummaryContext();
|
|
52446
52437
|
const matches = useMediaQuery(`(max-width: ${breakpoint}px)`);
|
|
52447
52438
|
delete rest["children"];
|
|
@@ -52449,7 +52440,7 @@ const SummaryItem = ({ value, status, ...rest }) => {
|
|
|
52449
52440
|
/* @__PURE__ */ jsx$1(Text, { fontWeight: "medium", fontSize: !matches ? "heading4" : void 0, children: value }),
|
|
52450
52441
|
status
|
|
52451
52442
|
] });
|
|
52452
|
-
}
|
|
52443
|
+
}
|
|
52453
52444
|
const Divider = styled(Box)(({ theme, breakpoint }) => ({
|
|
52454
52445
|
display: "block",
|
|
52455
52446
|
alignSelf: "stretch",
|
|
@@ -52465,11 +52456,7 @@ const SummaryDivider = (props) => {
|
|
|
52465
52456
|
const { breakpoint } = useSummaryContext();
|
|
52466
52457
|
return /* @__PURE__ */ jsx$1(Divider, { breakpoint: numberFromDimension(breakpoint), ...props });
|
|
52467
52458
|
};
|
|
52468
|
-
|
|
52469
|
-
children,
|
|
52470
|
-
refs = void 0,
|
|
52471
|
-
defaultFocusedIndex
|
|
52472
|
-
}) => {
|
|
52459
|
+
function FocusManager({ children, refs = void 0, defaultFocusedIndex }) {
|
|
52473
52460
|
const [focusedIndex, setFocusedIndex] = useState(defaultFocusedIndex ?? 0);
|
|
52474
52461
|
const prevFocusedIndex = useRef(focusedIndex);
|
|
52475
52462
|
const focusPrevious = () => {
|
|
@@ -52504,8 +52491,8 @@ const FocusManager = ({
|
|
|
52504
52491
|
setFocusedIndex,
|
|
52505
52492
|
handleArrowNavigation
|
|
52506
52493
|
}) });
|
|
52507
|
-
}
|
|
52508
|
-
|
|
52494
|
+
}
|
|
52495
|
+
function Switcher({ variant: variant3, selected, onChange: onChange2, ...rest }) {
|
|
52509
52496
|
const componentVariant = useComponentVariant(variant3);
|
|
52510
52497
|
const optionRefs = [];
|
|
52511
52498
|
const isSelected = (value, index2) => {
|
|
@@ -52539,7 +52526,7 @@ const Switcher = ({ variant: variant3, selected, onChange: onChange2, ...rest })
|
|
|
52539
52526
|
});
|
|
52540
52527
|
};
|
|
52541
52528
|
return /* @__PURE__ */ jsx$1(Box, { display: "inline-flex", bg: "whiteGrey", borderRadius: "9999px", ...rest, children: /* @__PURE__ */ jsx$1(FocusManager, { refs: optionRefs, defaultFocusedIndex: getSelectedIndex(), children: ({ focusedIndex, setFocusedIndex, handleArrowNavigation }) => options(focusedIndex, setFocusedIndex, handleArrowNavigation) }) });
|
|
52542
|
-
}
|
|
52529
|
+
}
|
|
52543
52530
|
const Switch$1 = React__default.forwardRef(({ children, ...rest }, ref) => {
|
|
52544
52531
|
return /* @__PURE__ */ jsx$1(SwitchButton, { ...rest, ref, children });
|
|
52545
52532
|
});
|
|
@@ -52711,14 +52698,14 @@ const TabScrollIndicatorButton = styled.button(({ side, width: width2, theme })
|
|
|
52711
52698
|
opacity: ".5"
|
|
52712
52699
|
}
|
|
52713
52700
|
}));
|
|
52714
|
-
|
|
52701
|
+
function TabScrollIndicator({
|
|
52715
52702
|
side = "left",
|
|
52716
52703
|
width: width2 = 40,
|
|
52717
52704
|
ariaLabelLeft,
|
|
52718
52705
|
ariaLabelRight,
|
|
52719
52706
|
onClick,
|
|
52720
52707
|
...props
|
|
52721
|
-
})
|
|
52708
|
+
}) {
|
|
52722
52709
|
const { t: t3 } = useTranslation();
|
|
52723
52710
|
const rightArrowLabel = ariaLabelRight || t3("next");
|
|
52724
52711
|
const leftArrowLabel = ariaLabelLeft || t3("previous");
|
|
@@ -52738,7 +52725,7 @@ const TabScrollIndicator = ({
|
|
|
52738
52725
|
children: /* @__PURE__ */ jsx$1(Icon, { icon: side === "right" ? "rightArrow" : "leftArrow" })
|
|
52739
52726
|
}
|
|
52740
52727
|
);
|
|
52741
|
-
}
|
|
52728
|
+
}
|
|
52742
52729
|
const TabScrollIndicatorContainer = styled.div(({ width: width2, theme }) => ({
|
|
52743
52730
|
position: "absolute",
|
|
52744
52731
|
width: width2,
|
|
@@ -53724,12 +53711,12 @@ const ToastContainer = ({
|
|
|
53724
53711
|
}
|
|
53725
53712
|
);
|
|
53726
53713
|
};
|
|
53727
|
-
|
|
53714
|
+
function CustomToast({ isVisible, id: id2, children, ...props }) {
|
|
53728
53715
|
const handleClose = () => {
|
|
53729
53716
|
n.dismiss(id2);
|
|
53730
53717
|
};
|
|
53731
53718
|
return /* @__PURE__ */ jsx$1(AnimatePresence, { children: isVisible && /* @__PURE__ */ jsx$1(AnimatedBox, { role: "alert", ...toastAnimationConfig, children: /* @__PURE__ */ jsx$1(Alert, { controlled: true, onClose: handleClose, ...props, children }) }, "notification") });
|
|
53732
|
-
}
|
|
53719
|
+
}
|
|
53733
53720
|
const toast = {
|
|
53734
53721
|
danger: (children, props = {}, options = {}) => n.custom(
|
|
53735
53722
|
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "danger", ...props, children }),
|
|
@@ -53779,7 +53766,7 @@ function Switch({ children, disabled, checked }) {
|
|
|
53779
53766
|
}
|
|
53780
53767
|
);
|
|
53781
53768
|
}
|
|
53782
|
-
|
|
53769
|
+
function Slider({ disabled, children }) {
|
|
53783
53770
|
const theme = useTheme();
|
|
53784
53771
|
return /* @__PURE__ */ jsx$1(
|
|
53785
53772
|
motion.div,
|
|
@@ -53808,7 +53795,7 @@ const Slider = ({ disabled, children }) => {
|
|
|
53808
53795
|
children
|
|
53809
53796
|
}
|
|
53810
53797
|
);
|
|
53811
|
-
}
|
|
53798
|
+
}
|
|
53812
53799
|
const ToggleInput = styled.input(({ disabled, theme }) => ({
|
|
53813
53800
|
width: "1px",
|
|
53814
53801
|
height: "1px",
|