@aivenio/aquarium 1.9.0 → 1.11.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/dist/_variables.scss +1 -1
- package/dist/_variables_timescale.scss +1 -1
- package/dist/atoms.cjs +50 -53
- package/dist/atoms.mjs +46 -49
- package/dist/src/{common → atoms}/Alert/Alert.d.ts +2 -2
- package/dist/src/atoms/Alert/Alert.js +74 -0
- package/dist/src/{common → atoms}/Banner/Banner.d.ts +2 -2
- package/dist/src/atoms/Banner/Banner.js +57 -0
- package/dist/src/atoms/Card/Card.js +54 -0
- package/dist/src/{common → atoms}/Checkbox/Checkbox.js +2 -2
- package/dist/src/{common → atoms}/Chip/Chip.js +1 -1
- package/dist/src/{common → atoms}/DataList/DataList.js +3 -3
- package/dist/src/{common → atoms}/Dialog/Dialog.d.ts +1 -1
- package/dist/src/{common → atoms}/Dialog/Dialog.js +1 -1
- package/dist/src/atoms/DropdownMenu/DropdownMenu.js +62 -0
- package/dist/src/{common → atoms}/InputGroup/InputGroup.d.ts +1 -1
- package/dist/src/{common → atoms}/InputGroup/InputGroup.js +2 -2
- package/dist/src/atoms/LineClamp/LineClamp.d.ts +11 -0
- package/dist/src/atoms/LineClamp/LineClamp.js +20 -0
- package/dist/src/{common → atoms}/Link/Link.js +1 -1
- package/dist/src/{common → atoms}/Modal/Modal.d.ts +1 -1
- package/dist/src/atoms/Modal/Modal.js +68 -0
- package/dist/src/{common → atoms}/Popover/Popover.js +2 -2
- package/dist/src/{common → atoms}/PopoverDialog/PopoverDialog.js +2 -2
- package/dist/src/{common → atoms}/ProgressBar/ProgressBar.js +1 -1
- package/dist/src/{common → atoms}/RadioButton/RadioButton.js +1 -1
- package/dist/src/{common → atoms}/Section/Section.d.ts +2 -2
- package/dist/src/atoms/Section/Section.js +46 -0
- package/dist/src/{common → atoms}/Select/Select.js +2 -2
- package/dist/src/{common → atoms}/Stepper/Stepper.js +2 -2
- package/dist/src/{common → atoms}/Switch/Switch.js +1 -1
- package/dist/src/{common → atoms}/Table/Table.d.ts +2 -2
- package/dist/src/atoms/Table/Table.js +91 -0
- package/dist/src/{common → atoms}/Timeline/Timeline.js +1 -1
- package/dist/src/{common → atoms}/Typography/Typography.js +1 -1
- package/dist/src/{common → atoms}/index.js +1 -1
- package/dist/src/{components → molecules}/Alert/Alert.d.ts +1 -1
- package/dist/src/molecules/Alert/Alert.js +12 -0
- package/dist/src/molecules/Avatar/Avatar.js +10 -0
- package/dist/src/{components → molecules}/Badge/Badge.js +1 -1
- package/dist/src/{components → molecules}/Banner/Banner.d.ts +1 -1
- package/dist/src/molecules/Banner/Banner.js +44 -0
- package/dist/src/{components → molecules}/Box/Box.d.ts +2 -2
- package/dist/src/{components → molecules}/Box/Box.js +2 -2
- package/dist/src/{components → molecules}/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/src/molecules/Button/Button.js +105 -0
- package/dist/src/{components → molecules}/Card/Card.d.ts +1 -1
- package/dist/src/molecules/Card/Card.js +48 -0
- package/dist/src/{components → molecules}/Card/Compact.d.ts +1 -1
- package/dist/src/molecules/Card/Compact.js +43 -0
- package/dist/src/{components → molecules}/Card/types.js +1 -1
- package/dist/src/{components → molecules}/Carousel/Carousel.js +4 -4
- package/dist/src/{components → molecules}/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/molecules/Checkbox/Checkbox.js +29 -0
- package/dist/src/{components → molecules}/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/dist/src/molecules/CheckboxGroup/CheckboxGroup.js +61 -0
- package/dist/src/{components → molecules}/Chip/Chip.d.ts +1 -1
- package/dist/src/molecules/Chip/Chip.js +64 -0
- package/dist/src/{components → molecules}/ChoiceChip/ChoiceChip.js +1 -1
- package/dist/src/molecules/Combobox/Combobox.js +109 -0
- package/dist/src/molecules/Container/Container.js +18 -0
- package/dist/src/molecules/Context/Context.js +18 -0
- package/dist/src/{components → molecules}/ControlLabel/ControlLabel.d.ts +1 -1
- package/dist/src/{components → molecules}/ControlLabel/ControlLabel.js +2 -2
- package/dist/src/molecules/DataList/DataList.js +24 -0
- package/dist/src/{components → molecules}/DataTable/DataTable.d.ts +1 -1
- package/dist/src/molecules/DataTable/DataTable.js +42 -0
- package/dist/src/{components → molecules}/Dialog/Dialog.d.ts +2 -2
- package/dist/src/molecules/Dialog/Dialog.js +41 -0
- package/dist/src/{components → molecules}/Divider/Divider.js +1 -1
- package/dist/src/{components → molecules}/Dropdown/Dropdown.d.ts +2 -2
- package/dist/src/molecules/Dropdown/Dropdown.js +87 -0
- package/dist/src/{components → molecules}/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +148 -0
- package/dist/src/molecules/DropdownMenu/utils.js +20 -0
- package/dist/src/{components → molecules}/Element/Element.js +1 -1
- package/dist/src/molecules/EmptyState/EmptyState.js +74 -0
- package/dist/src/{components → molecules}/Flexbox/Flexbox.d.ts +1 -1
- package/dist/src/molecules/Flexbox/Flexbox.js +19 -0
- package/dist/src/{components → molecules}/Flexbox/FlexboxItem.d.ts +1 -1
- package/dist/src/molecules/Flexbox/FlexboxItem.js +16 -0
- package/dist/src/{components → molecules}/Grid/Grid.d.ts +1 -1
- package/dist/src/molecules/Grid/Grid.js +31 -0
- package/dist/src/{components → molecules}/Grid/GridItem.d.ts +1 -1
- package/dist/src/molecules/Grid/GridItem.js +20 -0
- package/dist/src/{components → molecules}/Icon/Icon.js +1 -1
- package/dist/src/{components → molecules}/Input/Input.js +2 -2
- package/dist/src/{components → molecules}/LineClamp/LineClamp.d.ts +9 -1
- package/dist/src/molecules/LineClamp/LineClamp.js +21 -0
- package/dist/src/{components → molecules}/Link/Link.d.ts +1 -1
- package/dist/src/molecules/Link/Link.js +4 -0
- package/dist/src/molecules/List/List.js +6 -0
- package/dist/src/molecules/ListItem/ListItem.js +10 -0
- package/dist/src/{components → molecules}/Modal/Modal.d.ts +2 -2
- package/dist/src/{components → molecules}/Modal/Modal.js +4 -4
- package/dist/src/{components → molecules}/MultiInput/InputChip.js +3 -3
- package/dist/src/molecules/MultiInput/MultiInput.js +153 -0
- package/dist/src/{components → molecules}/MultiSelect/MultiSelect.d.ts +1 -1
- package/dist/src/molecules/MultiSelect/MultiSelect.js +149 -0
- package/dist/src/{components → molecules}/NativeSelect/NativeSelect.js +3 -3
- package/dist/src/{components → molecules}/PageHeader/PageHeader.d.ts +1 -1
- package/dist/src/molecules/PageHeader/PageHeader.js +40 -0
- package/dist/src/molecules/Pagination/Pagination.js +52 -0
- package/dist/src/molecules/Pagination/usePagination.js +36 -0
- package/dist/src/{components → molecules}/Popover/Popover.d.ts +1 -1
- package/dist/src/molecules/Popover/Popover.js +79 -0
- package/dist/src/molecules/Popover/PopoverContext.js +10 -0
- package/dist/src/molecules/Popover/PopoverWrapper.js +34 -0
- package/dist/src/{components → molecules}/PopoverDialog/PopoverDialog.d.ts +2 -2
- package/dist/src/molecules/PopoverDialog/PopoverDialog.js +28 -0
- package/dist/src/molecules/Portal/Portal.js +3 -0
- package/dist/src/molecules/ProgressBar/ProgressBar.js +23 -0
- package/dist/src/{components → molecules}/RadioButton/RadioButton.d.ts +1 -1
- package/dist/src/molecules/RadioButton/RadioButton.js +29 -0
- package/dist/src/{components → molecules}/RadioButtonGroup/RadioButtonGroup.d.ts +2 -2
- package/dist/src/molecules/RadioButtonGroup/RadioButtonGroup.js +65 -0
- package/dist/src/{components → molecules}/Section/Section.js +4 -4
- package/dist/src/{components → molecules}/SegmentedControl/SegmentedControl.js +1 -1
- package/dist/src/molecules/Select/Select.js +144 -0
- package/dist/src/molecules/Skeleton/Skeleton.js +18 -0
- package/dist/src/molecules/Spacing/Spacing.d.ts +14 -0
- package/dist/src/molecules/Spacing/Spacing.js +18 -0
- package/dist/src/molecules/Stepper/Stepper.js +25 -0
- package/dist/src/{components → molecules}/Switch/Switch.d.ts +1 -1
- package/dist/src/molecules/Switch/Switch.js +29 -0
- package/dist/src/{components → molecules}/SwitchGroup/SwitchGroup.d.ts +2 -2
- package/dist/src/molecules/SwitchGroup/SwitchGroup.js +59 -0
- package/dist/src/{components → molecules}/Table/Table.d.ts +1 -1
- package/dist/src/{components → molecules}/Table/Table.js +2 -2
- package/dist/src/molecules/Tabs/Tabs.js +220 -0
- package/dist/src/{components → molecules}/TagLabel/TagLabel.js +1 -1
- package/dist/src/{components → molecules}/Tailwindify/Tailwindify.js +1 -1
- package/dist/src/molecules/Template/Template.js +23 -0
- package/dist/src/molecules/Textarea/Textarea.js +46 -0
- package/dist/src/molecules/Timeline/Timeline.js +42 -0
- package/dist/src/{components → molecules}/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/molecules/Tooltip/Tooltip.js +110 -0
- package/dist/src/{components → molecules}/Tooltip/useTooltipTriggerState.js +1 -1
- package/dist/src/{components → molecules}/Typography/Typography.d.ts +1 -1
- package/dist/src/molecules/Typography/Typography.js +89 -0
- package/dist/src/{components → molecules}/index.d.ts +1 -0
- package/dist/src/{components → molecules}/index.js +3 -2
- package/dist/src/system.d.ts +3 -3
- package/dist/src/system.js +4 -4
- package/dist/src/utils/constants.js +2 -2
- package/dist/src/utils/form/FormControl/FormControl.js +2 -2
- package/dist/src/utils/form/HelperText/HelperText.js +2 -2
- package/dist/src/utils/form/InputAdornment/InputAdornment.d.ts +1 -1
- package/dist/src/utils/form/InputAdornment/InputAdornment.js +2 -2
- package/dist/src/utils/form/Label/Label.d.ts +1 -1
- package/dist/src/utils/form/Label/Label.js +3 -3
- package/dist/src/utils/table/types.d.ts +2 -2
- package/dist/src/utils/useStyle.js +2 -2
- package/dist/styles.css +832 -809
- package/dist/styles_timescaledb.css +832 -809
- package/dist/system.cjs +261 -240
- package/dist/system.mjs +254 -234
- package/dist/tailwind.config.js +0 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/ActionType.d.ts +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +4 -4
- package/dist/src/common/Alert/Alert.js +0 -74
- package/dist/src/common/Banner/Banner.js +0 -57
- package/dist/src/common/Card/Card.js +0 -54
- package/dist/src/common/DropdownMenu/DropdownMenu.js +0 -62
- package/dist/src/common/LineClamp/LineClamp.d.ts +0 -9
- package/dist/src/common/LineClamp/LineClamp.js +0 -18
- package/dist/src/common/Modal/Modal.js +0 -68
- package/dist/src/common/Section/Section.js +0 -46
- package/dist/src/common/Table/Table.js +0 -91
- package/dist/src/components/Alert/Alert.js +0 -12
- package/dist/src/components/Avatar/Avatar.js +0 -10
- package/dist/src/components/Banner/Banner.js +0 -44
- package/dist/src/components/Button/Button.js +0 -105
- package/dist/src/components/Card/Card.js +0 -48
- package/dist/src/components/Card/Compact.js +0 -43
- package/dist/src/components/Checkbox/Checkbox.js +0 -29
- package/dist/src/components/CheckboxGroup/CheckboxGroup.js +0 -61
- package/dist/src/components/Chip/Chip.js +0 -64
- package/dist/src/components/Combobox/Combobox.js +0 -109
- package/dist/src/components/Container/Container.js +0 -18
- package/dist/src/components/Context/Context.js +0 -18
- package/dist/src/components/DataList/DataList.js +0 -24
- package/dist/src/components/DataTable/DataTable.js +0 -42
- package/dist/src/components/Dialog/Dialog.js +0 -41
- package/dist/src/components/Dropdown/Dropdown.js +0 -87
- package/dist/src/components/DropdownMenu/DropdownMenu.js +0 -148
- package/dist/src/components/DropdownMenu/utils.js +0 -20
- package/dist/src/components/EmptyState/EmptyState.js +0 -74
- package/dist/src/components/Flexbox/Flexbox.js +0 -19
- package/dist/src/components/Flexbox/FlexboxItem.js +0 -16
- package/dist/src/components/Grid/Grid.js +0 -31
- package/dist/src/components/Grid/GridItem.js +0 -20
- package/dist/src/components/LineClamp/LineClamp.js +0 -17
- package/dist/src/components/Link/Link.js +0 -4
- package/dist/src/components/List/List.js +0 -6
- package/dist/src/components/ListItem/ListItem.js +0 -10
- package/dist/src/components/MultiInput/MultiInput.js +0 -153
- package/dist/src/components/MultiSelect/MultiSelect.js +0 -149
- package/dist/src/components/PageHeader/PageHeader.js +0 -40
- package/dist/src/components/Pagination/Pagination.js +0 -52
- package/dist/src/components/Pagination/usePagination.js +0 -36
- package/dist/src/components/Popover/Popover.js +0 -79
- package/dist/src/components/Popover/PopoverContext.js +0 -10
- package/dist/src/components/Popover/PopoverWrapper.js +0 -36
- package/dist/src/components/PopoverDialog/PopoverDialog.js +0 -28
- package/dist/src/components/Portal/Portal.js +0 -3
- package/dist/src/components/ProgressBar/ProgressBar.js +0 -23
- package/dist/src/components/RadioButton/RadioButton.js +0 -29
- package/dist/src/components/RadioButtonGroup/RadioButtonGroup.js +0 -65
- package/dist/src/components/Select/Select.js +0 -144
- package/dist/src/components/Skeleton/Skeleton.js +0 -18
- package/dist/src/components/Stepper/Stepper.js +0 -25
- package/dist/src/components/Switch/Switch.js +0 -29
- package/dist/src/components/SwitchGroup/SwitchGroup.js +0 -59
- package/dist/src/components/Tabs/Tabs.js +0 -220
- package/dist/src/components/Template/Template.js +0 -23
- package/dist/src/components/Textarea/Textarea.js +0 -46
- package/dist/src/components/Timeline/Timeline.js +0 -42
- package/dist/src/components/Tooltip/Tooltip.js +0 -110
- package/dist/src/components/Typography/Typography.js +0 -89
- /package/dist/src/{common → atoms}/Card/Card.d.ts +0 -0
- /package/dist/src/{common → atoms}/Checkbox/Checkbox.d.ts +0 -0
- /package/dist/src/{common → atoms}/Chip/Chip.d.ts +0 -0
- /package/dist/src/{common → atoms}/DataList/DataList.d.ts +0 -0
- /package/dist/src/{common → atoms}/DropdownMenu/DropdownMenu.d.ts +0 -0
- /package/dist/src/{common → atoms}/Link/Link.d.ts +0 -0
- /package/dist/src/{common → atoms}/Popover/Popover.d.ts +0 -0
- /package/dist/src/{common → atoms}/PopoverDialog/PopoverDialog.d.ts +0 -0
- /package/dist/src/{common → atoms}/ProgressBar/ProgressBar.d.ts +0 -0
- /package/dist/src/{common → atoms}/RadioButton/RadioButton.d.ts +0 -0
- /package/dist/src/{common → atoms}/Select/Select.d.ts +0 -0
- /package/dist/src/{common → atoms}/Stepper/Stepper.d.ts +0 -0
- /package/dist/src/{common → atoms}/Switch/Switch.d.ts +0 -0
- /package/dist/src/{common → atoms}/Timeline/Timeline.d.ts +0 -0
- /package/dist/src/{common → atoms}/Typography/Typography.d.ts +0 -0
- /package/dist/src/{common → atoms}/index.d.ts +0 -0
- /package/dist/src/{components → molecules}/Avatar/Avatar.d.ts +0 -0
- /package/dist/src/{components → molecules}/Badge/Badge.d.ts +0 -0
- /package/dist/src/{components → molecules}/Breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/src/{components → molecules}/Button/Button.d.ts +0 -0
- /package/dist/src/{components → molecules}/Card/types.d.ts +0 -0
- /package/dist/src/{components → molecules}/Carousel/Carousel.d.ts +0 -0
- /package/dist/src/{components → molecules}/ChoiceChip/ChoiceChip.d.ts +0 -0
- /package/dist/src/{components → molecules}/Combobox/Combobox.d.ts +0 -0
- /package/dist/src/{components → molecules}/Container/Container.d.ts +0 -0
- /package/dist/src/{components → molecules}/Context/Context.d.ts +0 -0
- /package/dist/src/{components → molecules}/DataList/DataList.d.ts +0 -0
- /package/dist/src/{components → molecules}/Divider/Divider.d.ts +0 -0
- /package/dist/src/{components → molecules}/DropdownMenu/utils.d.ts +0 -0
- /package/dist/src/{components → molecules}/Element/Element.d.ts +0 -0
- /package/dist/src/{components → molecules}/EmptyState/EmptyState.d.ts +0 -0
- /package/dist/src/{components → molecules}/Icon/Icon.d.ts +0 -0
- /package/dist/src/{components → molecules}/Input/Input.d.ts +0 -0
- /package/dist/src/{components → molecules}/List/List.d.ts +0 -0
- /package/dist/src/{components → molecules}/ListItem/ListItem.d.ts +0 -0
- /package/dist/src/{components → molecules}/MultiInput/InputChip.d.ts +0 -0
- /package/dist/src/{components → molecules}/MultiInput/MultiInput.d.ts +0 -0
- /package/dist/src/{components → molecules}/NativeSelect/NativeSelect.d.ts +0 -0
- /package/dist/src/{components → molecules}/Pagination/Pagination.d.ts +0 -0
- /package/dist/src/{components → molecules}/Pagination/usePagination.d.ts +0 -0
- /package/dist/src/{components → molecules}/Popover/PopoverContext.d.ts +0 -0
- /package/dist/src/{components → molecules}/Popover/PopoverWrapper.d.ts +0 -0
- /package/dist/src/{components → molecules}/Portal/Portal.d.ts +0 -0
- /package/dist/src/{components → molecules}/ProgressBar/ProgressBar.d.ts +0 -0
- /package/dist/src/{components → molecules}/Section/Section.d.ts +0 -0
- /package/dist/src/{components → molecules}/SegmentedControl/SegmentedControl.d.ts +0 -0
- /package/dist/src/{components → molecules}/Select/Select.d.ts +0 -0
- /package/dist/src/{components → molecules}/Skeleton/Skeleton.d.ts +0 -0
- /package/dist/src/{components → molecules}/Stepper/Stepper.d.ts +0 -0
- /package/dist/src/{components → molecules}/Tabs/Tabs.d.ts +0 -0
- /package/dist/src/{components → molecules}/TagLabel/TagLabel.d.ts +0 -0
- /package/dist/src/{components → molecules}/Tailwindify/Tailwindify.d.ts +0 -0
- /package/dist/src/{components → molecules}/Template/Template.d.ts +0 -0
- /package/dist/src/{components → molecules}/Textarea/Textarea.d.ts +0 -0
- /package/dist/src/{components → molecules}/Timeline/Timeline.d.ts +0 -0
- /package/dist/src/{components → molecules}/Tooltip/useTooltipTriggerState.d.ts +0 -0
package/dist/system.mjs
CHANGED
@@ -1539,9 +1539,9 @@ var require_time = __commonJS({
|
|
1539
1539
|
// src/system.ts
|
1540
1540
|
var import_resolveTheme2 = __toESM(require_resolveTheme());
|
1541
1541
|
|
1542
|
-
// src/
|
1543
|
-
var
|
1544
|
-
__export(
|
1542
|
+
// src/molecules/index.ts
|
1543
|
+
var molecules_exports = {};
|
1544
|
+
__export(molecules_exports, {
|
1545
1545
|
Alert: () => Alert2,
|
1546
1546
|
Avatar: () => Avatar,
|
1547
1547
|
AvatarStack: () => AvatarStack,
|
@@ -1623,6 +1623,7 @@ __export(components_exports, {
|
|
1623
1623
|
SelectBase: () => SelectBase,
|
1624
1624
|
SelectItem: () => SelectItem,
|
1625
1625
|
Skeleton: () => Skeleton,
|
1626
|
+
Spacing: () => Spacing,
|
1626
1627
|
StatusChip: () => StatusChip,
|
1627
1628
|
Stepper: () => Stepper2,
|
1628
1629
|
Switch: () => Switch2,
|
@@ -1653,10 +1654,10 @@ __export(components_exports, {
|
|
1653
1654
|
useTableSort: () => useTableSort
|
1654
1655
|
});
|
1655
1656
|
|
1656
|
-
// src/
|
1657
|
+
// src/atoms/Select/Select.tsx
|
1657
1658
|
import React2 from "react";
|
1658
1659
|
|
1659
|
-
// src/
|
1660
|
+
// src/molecules/Icon/Icon.tsx
|
1660
1661
|
import React from "react";
|
1661
1662
|
import {
|
1662
1663
|
Icon as IconifyIconComponent,
|
@@ -1689,7 +1690,7 @@ var classNames = (...args) => {
|
|
1689
1690
|
return cleanClassNames(result);
|
1690
1691
|
};
|
1691
1692
|
|
1692
|
-
// src/
|
1693
|
+
// src/molecules/Icon/Icon.tsx
|
1693
1694
|
var Icon = React.forwardRef((_a, ref) => {
|
1694
1695
|
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
1695
1696
|
const classes2 = classNames(className, color && `text-${color}`);
|
@@ -1709,7 +1710,7 @@ var InlineIcon = React.forwardRef((_a, ref) => {
|
|
1709
1710
|
}, rest)));
|
1710
1711
|
});
|
1711
1712
|
|
1712
|
-
// src/
|
1713
|
+
// src/atoms/Select/Select.tsx
|
1713
1714
|
var import_chevronDown = __toESM(require_chevronDown());
|
1714
1715
|
var import_chevronUp = __toESM(require_chevronUp());
|
1715
1716
|
var import_search = __toESM(require_search());
|
@@ -1872,20 +1873,20 @@ var Select = {
|
|
1872
1873
|
Toggle
|
1873
1874
|
};
|
1874
1875
|
|
1875
|
-
// src/
|
1876
|
+
// src/molecules/Alert/Alert.tsx
|
1876
1877
|
import React10 from "react";
|
1877
1878
|
import omit from "lodash/omit";
|
1878
1879
|
|
1879
|
-
// src/
|
1880
|
+
// src/atoms/Alert/Alert.tsx
|
1880
1881
|
import React9 from "react";
|
1881
1882
|
|
1882
|
-
// src/
|
1883
|
+
// src/molecules/Button/Button.tsx
|
1883
1884
|
import React7 from "react";
|
1884
1885
|
|
1885
|
-
// src/
|
1886
|
+
// src/molecules/Flexbox/Flexbox.tsx
|
1886
1887
|
import React5 from "react";
|
1887
1888
|
|
1888
|
-
// src/
|
1889
|
+
// src/molecules/Tailwindify/Tailwindify.tsx
|
1889
1890
|
import React4 from "react";
|
1890
1891
|
import get2 from "lodash/get";
|
1891
1892
|
import isUndefined4 from "lodash/isUndefined";
|
@@ -2419,7 +2420,7 @@ var tailwind_theme_default = {
|
|
2419
2420
|
}
|
2420
2421
|
};
|
2421
2422
|
|
2422
|
-
// src/
|
2423
|
+
// src/molecules/Context/Context.tsx
|
2423
2424
|
import React3 from "react";
|
2424
2425
|
import { ModalProvider } from "@react-aria/overlays";
|
2425
2426
|
|
@@ -2498,7 +2499,7 @@ function useWindowSize() {
|
|
2498
2499
|
return size;
|
2499
2500
|
}
|
2500
2501
|
|
2501
|
-
// src/
|
2502
|
+
// src/molecules/Context/Context.tsx
|
2502
2503
|
var Context = ({ children }) => {
|
2503
2504
|
const windowSize = useWindowSize();
|
2504
2505
|
const [breakpointMatches, setBreakpointMatches] = React3.useState(getMatches(windowSize));
|
@@ -2553,7 +2554,7 @@ function useStyle(styles) {
|
|
2553
2554
|
}, {});
|
2554
2555
|
}
|
2555
2556
|
|
2556
|
-
// src/
|
2557
|
+
// src/molecules/Tailwindify/Tailwindify.tsx
|
2557
2558
|
function Tailwindify(Component) {
|
2558
2559
|
return (_a) => {
|
2559
2560
|
var _b = _a, {
|
@@ -2667,7 +2668,7 @@ function Tailwindify(Component) {
|
|
2667
2668
|
};
|
2668
2669
|
}
|
2669
2670
|
|
2670
|
-
// src/
|
2671
|
+
// src/molecules/Flexbox/Flexbox.tsx
|
2671
2672
|
var Flexbox = Tailwindify(
|
2672
2673
|
({
|
2673
2674
|
htmlTag = "div",
|
@@ -2703,13 +2704,13 @@ var Flexbox = Tailwindify(
|
|
2703
2704
|
}
|
2704
2705
|
);
|
2705
2706
|
|
2706
|
-
// src/
|
2707
|
+
// src/molecules/Tooltip/Tooltip.tsx
|
2707
2708
|
import React6 from "react";
|
2708
2709
|
import { OverlayContainer, useOverlayPosition } from "@react-aria/overlays";
|
2709
2710
|
import { useTooltip, useTooltipTrigger } from "@react-aria/tooltip";
|
2710
2711
|
import { mergeProps } from "@react-aria/utils";
|
2711
2712
|
|
2712
|
-
// src/
|
2713
|
+
// src/molecules/Tooltip/useTooltipTriggerState.ts
|
2713
2714
|
import { useEffect as useEffect2, useMemo, useRef } from "react";
|
2714
2715
|
import { useOverlayTriggerState } from "@react-stately/overlays";
|
2715
2716
|
var TOOLTIP_DELAY = 1500;
|
@@ -2826,7 +2827,7 @@ function useTooltipTriggerState(props = {}) {
|
|
2826
2827
|
};
|
2827
2828
|
}
|
2828
2829
|
|
2829
|
-
// src/
|
2830
|
+
// src/molecules/Tooltip/Tooltip.tsx
|
2830
2831
|
var Tooltip = (_a) => {
|
2831
2832
|
var _b = _a, { inline = true, delay = 200 } = _b, props = __objRest(_b, ["inline", "delay"]);
|
2832
2833
|
const { placement: _placement = "top", content, disabled: isDisabled, shouldFlip = true } = props;
|
@@ -2949,9 +2950,9 @@ var getCommonInputStyles = ({ readOnly, valid }) => tw(
|
|
2949
2950
|
var ghostButtonStyle = tw(
|
2950
2951
|
"text-primary-80 active:text-primary-70 focus-visible:text-grey-90 hover:text-primary-70 disabled:text-primary-40"
|
2951
2952
|
);
|
2952
|
-
var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80"));
|
2953
|
+
var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80 focusable"));
|
2953
2954
|
|
2954
|
-
// src/
|
2955
|
+
// src/molecules/Button/Button.tsx
|
2955
2956
|
var import_chevronDown2 = __toESM(require_chevronDown());
|
2956
2957
|
var import_loading = __toESM(require_loading());
|
2957
2958
|
var COLOR_CLASSNAMES = {
|
@@ -3063,8 +3064,8 @@ var asButton = (Component, isDropdownButton) => {
|
|
3063
3064
|
!isIconOnlyButton && COLOR_CLASSNAMES[kind],
|
3064
3065
|
tw("inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative", {
|
3065
3066
|
"text-grey-70 p-2 active:text-grey-70 active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-grey-20 disabled:bg-transparent": isIconOnlyButton,
|
3066
|
-
"typography-default": !dense && !isIconOnlyButton,
|
3067
|
-
"typography-small": dense && !isIconOnlyButton,
|
3067
|
+
"typography-default-strong": !dense && !isIconOnlyButton,
|
3068
|
+
"typography-small-strong": dense && !isIconOnlyButton,
|
3068
3069
|
"py-3 px-4": !dense && isButton,
|
3069
3070
|
"py-2 px-3": dense && isButton,
|
3070
3071
|
"py-3": !dense && isGhost,
|
@@ -3148,7 +3149,7 @@ var SecondaryDropdownButton = React7.forwardRef((props, ref) => /* @__PURE__ */
|
|
3148
3149
|
})));
|
3149
3150
|
SecondaryDropdownButton.displayName = "SecondaryDropdownButton";
|
3150
3151
|
|
3151
|
-
// src/
|
3152
|
+
// src/atoms/Typography/Typography.tsx
|
3152
3153
|
var import_resolveTheme = __toESM(require_resolveTheme());
|
3153
3154
|
import React8 from "react";
|
3154
3155
|
import isUndefined5 from "lodash/isUndefined";
|
@@ -3181,7 +3182,7 @@ var Typography = (_a) => {
|
|
3181
3182
|
}, rest), children);
|
3182
3183
|
};
|
3183
3184
|
|
3184
|
-
// src/
|
3185
|
+
// src/atoms/Alert/Alert.tsx
|
3185
3186
|
var import_confirm = __toESM(require_confirm());
|
3186
3187
|
var import_cross = __toESM(require_cross());
|
3187
3188
|
var import_error = __toESM(require_error());
|
@@ -3274,7 +3275,7 @@ Alert.Dismiss = (_a) => {
|
|
3274
3275
|
})));
|
3275
3276
|
};
|
3276
3277
|
|
3277
|
-
// src/
|
3278
|
+
// src/molecules/Alert/Alert.tsx
|
3278
3279
|
var Alert2 = ({ description, type, title, action, onDismiss, children }) => /* @__PURE__ */ React10.createElement(Alert, {
|
3279
3280
|
type,
|
3280
3281
|
dense: Boolean(title)
|
@@ -3287,14 +3288,14 @@ var Alert2 = ({ description, type, title, action, onDismiss, children }) => /* @
|
|
3287
3288
|
onClick: onDismiss
|
3288
3289
|
}));
|
3289
3290
|
|
3290
|
-
// src/
|
3291
|
+
// src/molecules/Avatar/Avatar.tsx
|
3291
3292
|
import React15 from "react";
|
3292
3293
|
|
3293
|
-
// src/
|
3294
|
+
// src/molecules/Box/Box.tsx
|
3294
3295
|
import React13 from "react";
|
3295
3296
|
import isUndefined6 from "lodash/isUndefined";
|
3296
3297
|
|
3297
|
-
// src/
|
3298
|
+
// src/molecules/Element/Element.tsx
|
3298
3299
|
import React11 from "react";
|
3299
3300
|
var Element = (_a) => {
|
3300
3301
|
var _b = _a, { component } = _b, rest = __objRest(_b, ["component"]);
|
@@ -3333,7 +3334,7 @@ var createSimpleComponent = (Component, defaultProps, displayName) => {
|
|
3333
3334
|
return Curried;
|
3334
3335
|
};
|
3335
3336
|
|
3336
|
-
// src/
|
3337
|
+
// src/molecules/Box/Box.tsx
|
3337
3338
|
var Box = (_a) => {
|
3338
3339
|
var _b = _a, {
|
3339
3340
|
style,
|
@@ -3462,7 +3463,7 @@ var BorderBox = createSimpleComponent(
|
|
3462
3463
|
"BorderBox"
|
3463
3464
|
);
|
3464
3465
|
|
3465
|
-
// src/
|
3466
|
+
// src/molecules/Skeleton/Skeleton.tsx
|
3466
3467
|
import React14 from "react";
|
3467
3468
|
import isNumber from "lodash/isNumber";
|
3468
3469
|
import isUndefined7 from "lodash/isUndefined";
|
@@ -3493,7 +3494,7 @@ var Skeleton = ({
|
|
3493
3494
|
});
|
3494
3495
|
};
|
3495
3496
|
|
3496
|
-
// src/
|
3497
|
+
// src/molecules/Avatar/Avatar.tsx
|
3497
3498
|
var AvatarStack = ({ images }) => /* @__PURE__ */ React15.createElement(Box, {
|
3498
3499
|
display: "flex",
|
3499
3500
|
className: tw("[&>*:not(:first-child)]:-ml-3")
|
@@ -3517,7 +3518,7 @@ var AvatarSkeleton = () => /* @__PURE__ */ React15.createElement(Skeleton, {
|
|
3517
3518
|
Avatar.Skeleton = AvatarSkeleton;
|
3518
3519
|
Avatar.Skeleton.displayName = "Avatar.Skeleton";
|
3519
3520
|
|
3520
|
-
// src/
|
3521
|
+
// src/molecules/Badge/Badge.tsx
|
3521
3522
|
import React16 from "react";
|
3522
3523
|
import omit2 from "lodash/omit";
|
3523
3524
|
var isChipBadgeProps = (props) => "dense" in props;
|
@@ -3563,11 +3564,11 @@ var Badge = createBadge("default", "Badge");
|
|
3563
3564
|
var TabBadge = createBadge("tab", "TabBadge");
|
3564
3565
|
var ChipBadge = createBadge("chip", "ChipBadge");
|
3565
3566
|
|
3566
|
-
// src/
|
3567
|
+
// src/molecules/Banner/Banner.tsx
|
3567
3568
|
import React18 from "react";
|
3568
3569
|
import omit3 from "lodash/omit";
|
3569
3570
|
|
3570
|
-
// src/
|
3571
|
+
// src/atoms/Banner/Banner.tsx
|
3571
3572
|
import React17 from "react";
|
3572
3573
|
var spacing = {
|
3573
3574
|
spacingAroundBanner: "p-6",
|
@@ -3654,7 +3655,7 @@ Banner.DismissContainer = (_a) => {
|
|
3654
3655
|
}), children);
|
3655
3656
|
};
|
3656
3657
|
|
3657
|
-
// src/
|
3658
|
+
// src/molecules/Banner/Banner.tsx
|
3658
3659
|
var import_cross2 = __toESM(require_cross());
|
3659
3660
|
var BannerImageSkeleton = () => /* @__PURE__ */ React18.createElement(Skeleton, {
|
3660
3661
|
width: 225,
|
@@ -3702,7 +3703,7 @@ var OneLineBannerBase = createBanner("OneLineBanner", {
|
|
3702
3703
|
});
|
3703
3704
|
var OneLineBanner = OneLineBannerBase;
|
3704
3705
|
|
3705
|
-
// src/
|
3706
|
+
// src/molecules/Breadcrumbs/Breadcrumbs.tsx
|
3706
3707
|
import React19 from "react";
|
3707
3708
|
import classNames2 from "classnames";
|
3708
3709
|
var import_slash = __toESM(require_slash());
|
@@ -3757,16 +3758,16 @@ var Crumb = asCrumb("a", "Crumb");
|
|
3757
3758
|
var ActiveCrumb = asCrumb("span", "ActiveCrumb", { isActive: true });
|
3758
3759
|
Breadcrumbs.Crumb = Crumb;
|
3759
3760
|
|
3760
|
-
// src/
|
3761
|
+
// src/molecules/Card/Card.tsx
|
3761
3762
|
import React26, { useRef as useRef3 } from "react";
|
3762
3763
|
import { useButton as useButton2 } from "@react-aria/button";
|
3763
3764
|
import omit5 from "lodash/omit";
|
3764
3765
|
|
3765
|
-
// src/
|
3766
|
+
// src/molecules/Chip/Chip.tsx
|
3766
3767
|
import React21 from "react";
|
3767
3768
|
import isNumber2 from "lodash/isNumber";
|
3768
3769
|
|
3769
|
-
// src/
|
3770
|
+
// src/atoms/Chip/Chip.tsx
|
3770
3771
|
import React20 from "react";
|
3771
3772
|
var Container = React20.forwardRef(
|
3772
3773
|
(_a, ref) => {
|
@@ -3791,7 +3792,7 @@ var Chip = {
|
|
3791
3792
|
import { isValidElement } from "react";
|
3792
3793
|
var isComponentType = (c, type) => isValidElement(c) && c.type === type;
|
3793
3794
|
|
3794
|
-
// src/
|
3795
|
+
// src/molecules/Chip/Chip.tsx
|
3795
3796
|
var import_cross3 = __toESM(require_cross());
|
3796
3797
|
var import_lock = __toESM(require_lock());
|
3797
3798
|
var getStatusClassNames = (status = "neutral") => {
|
@@ -3876,7 +3877,7 @@ var ChipContainer = ({ dense, children }) => /* @__PURE__ */ React21.createEleme
|
|
3876
3877
|
(child) => isComponentType(child, Chip2) || isComponentType(child, StatusChip) || isComponentType(child, ChipSkeleton) ? React21.cloneElement(child, { dense }) : void 0
|
3877
3878
|
));
|
3878
3879
|
|
3879
|
-
// src/
|
3880
|
+
// src/molecules/Typography/Typography.tsx
|
3880
3881
|
import React22 from "react";
|
3881
3882
|
var Typography2 = (props) => /* @__PURE__ */ React22.createElement(Typography, __spreadValues({}, props));
|
3882
3883
|
Typography2.LargeHeading = (_a) => {
|
@@ -3992,7 +3993,7 @@ Typography2.SmallTextBold = (_a) => {
|
|
3992
3993
|
}));
|
3993
3994
|
};
|
3994
3995
|
|
3995
|
-
// src/
|
3996
|
+
// src/atoms/Card/Card.tsx
|
3996
3997
|
import React23 from "react";
|
3997
3998
|
import isNumber3 from "lodash/isNumber";
|
3998
3999
|
var Card = React23.forwardRef(
|
@@ -4006,7 +4007,7 @@ var Card = React23.forwardRef(
|
|
4006
4007
|
"w-[280px]": !fullWidth,
|
4007
4008
|
"w-full": Boolean(fullWidth),
|
4008
4009
|
"min-w-[280px]": Boolean(fullWidth) && Boolean(enableMinWidth),
|
4009
|
-
"active:bg-grey-5 cursor-pointer hover:border-grey-50
|
4010
|
+
"active:bg-grey-5 cursor-pointer hover:border-grey-50 focusable": Boolean(clickable && !disabled),
|
4010
4011
|
"bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
|
4011
4012
|
}),
|
4012
4013
|
className
|
@@ -4060,19 +4061,21 @@ Card.ImageContainer = ImageContainer;
|
|
4060
4061
|
Card.Image = Image;
|
4061
4062
|
Card.ColorHiglight = ColorHighlight;
|
4062
4063
|
|
4063
|
-
// src/
|
4064
|
+
// src/atoms/LineClamp/LineClamp.tsx
|
4064
4065
|
import React24 from "react";
|
4065
4066
|
var LineClamp = React24.forwardRef(
|
4066
4067
|
(_a, ref) => {
|
4067
|
-
var _b = _a, { lines = 1, clamped = true, children, className } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className"]);
|
4068
|
+
var _b = _a, { lines = 1, clamped = true, children, className, wordBreak = "break-words" } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className", "wordBreak"]);
|
4068
4069
|
return /* @__PURE__ */ React24.createElement("div", __spreadValues({
|
4069
4070
|
ref,
|
4070
|
-
className: classNames(className, "break-
|
4071
|
+
className: classNames(className, wordBreak === "break-words" ? "break-words" : "break-all", {
|
4072
|
+
[`line-clamp-${lines}`]: clamped
|
4073
|
+
})
|
4071
4074
|
}, props), children);
|
4072
4075
|
}
|
4073
4076
|
);
|
4074
4077
|
|
4075
|
-
// src/
|
4078
|
+
// src/molecules/Card/Compact.tsx
|
4076
4079
|
import React25, { useRef as useRef2 } from "react";
|
4077
4080
|
import { useButton } from "@react-aria/button";
|
4078
4081
|
import { omit as omit4 } from "lodash";
|
@@ -4163,7 +4166,7 @@ var CompactSkeleton = ({
|
|
4163
4166
|
})));
|
4164
4167
|
CompactCard.Skeleton = CompactSkeleton;
|
4165
4168
|
|
4166
|
-
// src/
|
4169
|
+
// src/molecules/Card/Card.tsx
|
4167
4170
|
var Card2 = ({
|
4168
4171
|
title,
|
4169
4172
|
clampTitle,
|
@@ -4211,7 +4214,8 @@ var Card2 = ({
|
|
4211
4214
|
imageAlt,
|
4212
4215
|
fullSize: chips.length === 0
|
4213
4216
|
})), /* @__PURE__ */ React26.createElement(Card.Content, null, clampTitle ? /* @__PURE__ */ React26.createElement(LineClamp, {
|
4214
|
-
lines: clampTitle
|
4217
|
+
lines: clampTitle,
|
4218
|
+
wordBreak: "break-all"
|
4215
4219
|
}, titleContent) : titleContent, /* @__PURE__ */ React26.createElement(Typography2.Caption, {
|
4216
4220
|
color: "grey-70"
|
4217
4221
|
}, children || description)), (action || link) && /* @__PURE__ */ React26.createElement(Card.Actions, null, action && /* @__PURE__ */ React26.createElement(SecondaryButton, __spreadValues({
|
@@ -4280,7 +4284,7 @@ var CardImageSkeleton = ({ imageHeight, fullSize }) => imageHeight ? /* @__PURE_
|
|
4280
4284
|
});
|
4281
4285
|
CardImage.Skeleton = CardImageSkeleton;
|
4282
4286
|
|
4283
|
-
// src/
|
4287
|
+
// src/molecules/Carousel/Carousel.tsx
|
4284
4288
|
import React27, { useEffect as useEffect3, useLayoutEffect, useRef as useRef4, useState as useState2 } from "react";
|
4285
4289
|
var import_chevronLeft = __toESM(require_chevronLeft());
|
4286
4290
|
var import_chevronRight = __toESM(require_chevronRight());
|
@@ -4380,10 +4384,10 @@ var CarouselItem = ({ width, children, ariaHidden }) => {
|
|
4380
4384
|
}, children);
|
4381
4385
|
};
|
4382
4386
|
|
4383
|
-
// src/
|
4387
|
+
// src/molecules/Checkbox/Checkbox.tsx
|
4384
4388
|
import React30 from "react";
|
4385
4389
|
|
4386
|
-
// src/
|
4390
|
+
// src/molecules/ControlLabel/ControlLabel.tsx
|
4387
4391
|
import React28 from "react";
|
4388
4392
|
var ControlLabel = (_a) => {
|
4389
4393
|
var _b = _a, {
|
@@ -4421,7 +4425,7 @@ var ControlLabel = (_a) => {
|
|
4421
4425
|
}, caption));
|
4422
4426
|
};
|
4423
4427
|
|
4424
|
-
// src/
|
4428
|
+
// src/atoms/Checkbox/Checkbox.tsx
|
4425
4429
|
import React29 from "react";
|
4426
4430
|
var import_minus = __toESM(require_minus());
|
4427
4431
|
var import_tick2 = __toESM(require_tick());
|
@@ -4465,7 +4469,7 @@ var Checkbox = React29.forwardRef(
|
|
4465
4469
|
}
|
4466
4470
|
);
|
4467
4471
|
|
4468
|
-
// src/
|
4472
|
+
// src/molecules/Checkbox/Checkbox.tsx
|
4469
4473
|
var Checkbox2 = React30.forwardRef(
|
4470
4474
|
(_a, ref) => {
|
4471
4475
|
var _b = _a, { id, name, caption, readOnly = false, disabled = false, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["id", "name", "caption", "readOnly", "disabled", "children", "aria-label"]);
|
@@ -4502,14 +4506,14 @@ var CheckboxSkeleton = () => /* @__PURE__ */ React30.createElement("div", {
|
|
4502
4506
|
Checkbox2.Skeleton = CheckboxSkeleton;
|
4503
4507
|
Checkbox2.Skeleton.displayName = "Checkbox.Skeleton";
|
4504
4508
|
|
4505
|
-
// src/
|
4509
|
+
// src/molecules/CheckboxGroup/CheckboxGroup.tsx
|
4506
4510
|
import React37, { useState as useState3 } from "react";
|
4507
4511
|
import uniqueId from "lodash/uniqueId";
|
4508
4512
|
|
4509
|
-
// src/
|
4513
|
+
// src/atoms/InputGroup/InputGroup.tsx
|
4510
4514
|
import React32 from "react";
|
4511
4515
|
|
4512
|
-
// src/
|
4516
|
+
// src/molecules/Grid/Grid.tsx
|
4513
4517
|
import React31 from "react";
|
4514
4518
|
var Grid = Tailwindify(
|
4515
4519
|
({
|
@@ -4570,7 +4574,7 @@ var Grid = Tailwindify(
|
|
4570
4574
|
}
|
4571
4575
|
);
|
4572
4576
|
|
4573
|
-
// src/
|
4577
|
+
// src/atoms/InputGroup/InputGroup.tsx
|
4574
4578
|
var gridColumnStyles = {
|
4575
4579
|
"1": "grid-cols-1",
|
4576
4580
|
"2": "grid-cols-2",
|
@@ -4785,7 +4789,7 @@ var getLabelControlProps = (_a) => {
|
|
4785
4789
|
};
|
4786
4790
|
};
|
4787
4791
|
|
4788
|
-
// src/
|
4792
|
+
// src/molecules/CheckboxGroup/CheckboxGroup.tsx
|
4789
4793
|
var isCheckbox = (c) => {
|
4790
4794
|
return React37.isValidElement(c) && c.type === Checkbox2;
|
4791
4795
|
};
|
@@ -4850,7 +4854,7 @@ var CheckboxGroupSkeleton = ({ options = 2 }) => {
|
|
4850
4854
|
CheckboxGroup.Skeleton = CheckboxGroupSkeleton;
|
4851
4855
|
CheckboxGroup.Skeleton.displayName = "CheckboxGroup.Skeleton";
|
4852
4856
|
|
4853
|
-
// src/
|
4857
|
+
// src/molecules/ChoiceChip/ChoiceChip.tsx
|
4854
4858
|
import React38, { useState as useState4 } from "react";
|
4855
4859
|
var ChoiceChip = (_a) => {
|
4856
4860
|
var _b = _a, { text, dense, defaultValue, value, onChange } = _b, rest = __objRest(_b, ["text", "dense", "defaultValue", "value", "onChange"]);
|
@@ -4879,7 +4883,7 @@ var ChoiceChip = (_a) => {
|
|
4879
4883
|
}), text);
|
4880
4884
|
};
|
4881
4885
|
|
4882
|
-
// src/
|
4886
|
+
// src/molecules/Combobox/Combobox.tsx
|
4883
4887
|
import React41, { useEffect as useEffect4, useRef as useRef5, useState as useState5 } from "react";
|
4884
4888
|
import { useOverlayPosition as useOverlayPosition2 } from "@react-aria/overlays";
|
4885
4889
|
import { useCombobox } from "downshift";
|
@@ -4887,13 +4891,13 @@ import omit6 from "lodash/omit";
|
|
4887
4891
|
import uniqueId2 from "lodash/uniqueId";
|
4888
4892
|
import { matchSorter } from "match-sorter";
|
4889
4893
|
|
4890
|
-
// src/
|
4894
|
+
// src/molecules/Popover/PopoverWrapper.tsx
|
4891
4895
|
import React40 from "react";
|
4892
4896
|
import { FocusScope } from "@react-aria/focus";
|
4893
|
-
import {
|
4897
|
+
import { OverlayContainer as OverlayContainer2, useModal, useOverlay } from "@react-aria/overlays";
|
4894
4898
|
import { mergeProps as mergeProps2 } from "@react-aria/utils";
|
4895
4899
|
|
4896
|
-
// src/
|
4900
|
+
// src/atoms/Popover/Popover.tsx
|
4897
4901
|
import React39 from "react";
|
4898
4902
|
var PopoverPanel = React39.forwardRef((_a, ref) => {
|
4899
4903
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
@@ -4902,7 +4906,7 @@ var PopoverPanel = React39.forwardRef((_a, ref) => {
|
|
4902
4906
|
className: classNames(
|
4903
4907
|
className,
|
4904
4908
|
tw(
|
4905
|
-
"rounded-sm shadow-16dp bg-white mt-1 focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20"
|
4909
|
+
"rounded-sm shadow-16dp bg-white mt-1 overflow-y-auto flex flex-col focus-visible:outline-0 focus-visible:border-info-70 border border-grey-20"
|
4906
4910
|
)
|
4907
4911
|
)
|
4908
4912
|
}, props), children);
|
@@ -4911,7 +4915,7 @@ var Popover = {
|
|
4911
4915
|
Panel: PopoverPanel
|
4912
4916
|
};
|
4913
4917
|
|
4914
|
-
// src/
|
4918
|
+
// src/molecules/Popover/PopoverWrapper.tsx
|
4915
4919
|
var PopoverWrapper = React40.forwardRef((props, ref) => {
|
4916
4920
|
const _a = props, {
|
4917
4921
|
id,
|
@@ -4962,12 +4966,10 @@ var PopoverWrapper = React40.forwardRef((props, ref) => {
|
|
4962
4966
|
}, mergeProps2(otherProps, modalProps, overlayProps)), {
|
4963
4967
|
id: id != null ? id : overlayProps.id,
|
4964
4968
|
className
|
4965
|
-
}), children
|
4966
|
-
onDismiss: props.onClose
|
4967
|
-
}))));
|
4969
|
+
}), children)));
|
4968
4970
|
});
|
4969
4971
|
|
4970
|
-
// src/
|
4972
|
+
// src/molecules/Combobox/Combobox.tsx
|
4971
4973
|
var ComboboxBase = (_a) => {
|
4972
4974
|
var _b = _a, {
|
4973
4975
|
id,
|
@@ -5098,8 +5100,7 @@ var ComboboxBase = (_a) => {
|
|
5098
5100
|
autoFocus: true
|
5099
5101
|
}, getMenuProps({ ref: overlayRef })), {
|
5100
5102
|
style,
|
5101
|
-
onClose: closeMenu
|
5102
|
-
className: tw("overflow-y-auto")
|
5103
|
+
onClose: closeMenu
|
5103
5104
|
}), /* @__PURE__ */ React41.createElement(Select.Menu, {
|
5104
5105
|
maxHeight
|
5105
5106
|
}, isOpen && hasNoResults && /* @__PURE__ */ React41.createElement(Select.NoResults, null, noResults), isOpen && inputItems.map((item, index) => /* @__PURE__ */ React41.createElement(Select.Item, __spreadValues({
|
@@ -5142,7 +5143,7 @@ var ComboboxSkeleton = () => /* @__PURE__ */ React41.createElement(LabelControl.
|
|
5142
5143
|
Combobox.Skeleton = ComboboxSkeleton;
|
5143
5144
|
Combobox.Skeleton.displayName = "Combobox.Skeleton";
|
5144
5145
|
|
5145
|
-
// src/
|
5146
|
+
// src/molecules/Container/Container.tsx
|
5146
5147
|
import React42 from "react";
|
5147
5148
|
var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React42.createElement(Box, {
|
5148
5149
|
marginLeft: "auto",
|
@@ -5157,11 +5158,11 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React42.crea
|
|
5157
5158
|
})
|
5158
5159
|
}, children);
|
5159
5160
|
|
5160
|
-
// src/
|
5161
|
+
// src/molecules/DataList/DataList.tsx
|
5161
5162
|
import React48 from "react";
|
5162
5163
|
import orderBy2 from "lodash/orderBy";
|
5163
5164
|
|
5164
|
-
// src/
|
5165
|
+
// src/molecules/Template/Template.tsx
|
5165
5166
|
import React43 from "react";
|
5166
5167
|
var Template = ({
|
5167
5168
|
children,
|
@@ -5193,13 +5194,13 @@ var Template = ({
|
|
5193
5194
|
}, children);
|
5194
5195
|
};
|
5195
5196
|
|
5196
|
-
// src/
|
5197
|
+
// src/atoms/DataList/DataList.tsx
|
5197
5198
|
import React46 from "react";
|
5198
5199
|
|
5199
|
-
// src/
|
5200
|
+
// src/atoms/Table/Table.tsx
|
5200
5201
|
import React45 from "react";
|
5201
5202
|
|
5202
|
-
// src/
|
5203
|
+
// src/atoms/RadioButton/RadioButton.tsx
|
5203
5204
|
import React44 from "react";
|
5204
5205
|
var RadioButton = React44.forwardRef(
|
5205
5206
|
(_a, ref) => {
|
@@ -5227,7 +5228,7 @@ var RadioButton = React44.forwardRef(
|
|
5227
5228
|
}
|
5228
5229
|
);
|
5229
5230
|
|
5230
|
-
// src/
|
5231
|
+
// src/atoms/Table/Table.tsx
|
5231
5232
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
5232
5233
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
5233
5234
|
var HeadContext = React45.createContext(null);
|
@@ -5330,7 +5331,7 @@ Table.Cell = React45.memo(TableCell);
|
|
5330
5331
|
Table.SortCell = React45.memo(TableSortCell);
|
5331
5332
|
Table.SelectCell = React45.memo(TableSelectCell);
|
5332
5333
|
|
5333
|
-
// src/
|
5334
|
+
// src/atoms/DataList/DataList.tsx
|
5334
5335
|
var import_chevronDown4 = __toESM(require_chevronDown());
|
5335
5336
|
var import_chevronUp3 = __toESM(require_chevronUp());
|
5336
5337
|
var getAlignClassNames2 = (align) => tw("flex items-center", {
|
@@ -5439,7 +5440,7 @@ var useTableSort = () => {
|
|
5439
5440
|
return [sort, handleSortClick];
|
5440
5441
|
};
|
5441
5442
|
|
5442
|
-
// src/
|
5443
|
+
// src/molecules/DataList/DataList.tsx
|
5443
5444
|
var DataList2 = ({ columns, rows, sticky }) => {
|
5444
5445
|
const [sort, updateSort] = useTableSort();
|
5445
5446
|
const sortedRows = orderBy2(rows, [sort == null ? void 0 : sort.key], [toSortDirection(sort == null ? void 0 : sort.direction)]);
|
@@ -5472,11 +5473,11 @@ var DataList2 = ({ columns, rows, sticky }) => {
|
|
5472
5473
|
}));
|
5473
5474
|
};
|
5474
5475
|
|
5475
|
-
// src/
|
5476
|
+
// src/molecules/DataTable/DataTable.tsx
|
5476
5477
|
import React51 from "react";
|
5477
5478
|
import orderBy3 from "lodash/orderBy";
|
5478
5479
|
|
5479
|
-
// src/
|
5480
|
+
// src/molecules/Table/Table.tsx
|
5480
5481
|
import React50 from "react";
|
5481
5482
|
|
5482
5483
|
// src/utils/table/useScrollTarget.ts
|
@@ -5496,7 +5497,7 @@ var useScrollTarget = (callback) => {
|
|
5496
5497
|
return targetRef;
|
5497
5498
|
};
|
5498
5499
|
|
5499
|
-
// src/
|
5500
|
+
// src/molecules/Table/Table.tsx
|
5500
5501
|
var Table2 = (_a) => {
|
5501
5502
|
var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
|
5502
5503
|
const bottomRef = useScrollTarget(onNext);
|
@@ -5518,7 +5519,7 @@ Table2.Cell = Table.Cell;
|
|
5518
5519
|
Table2.SortCell = Table.SortCell;
|
5519
5520
|
Table2.SelectCell = Table.SelectCell;
|
5520
5521
|
|
5521
|
-
// src/
|
5522
|
+
// src/molecules/DataTable/DataTable.tsx
|
5522
5523
|
var DataTable = (_a) => {
|
5523
5524
|
var _b = _a, {
|
5524
5525
|
columns,
|
@@ -5568,7 +5569,7 @@ var DataTable = (_a) => {
|
|
5568
5569
|
})));
|
5569
5570
|
};
|
5570
5571
|
|
5571
|
-
// src/
|
5572
|
+
// src/molecules/Dialog/Dialog.tsx
|
5572
5573
|
import React53 from "react";
|
5573
5574
|
import { useDialog } from "@react-aria/dialog";
|
5574
5575
|
import { FocusScope as FocusScope2 } from "@react-aria/focus";
|
@@ -5577,7 +5578,7 @@ import { useId } from "@react-aria/utils";
|
|
5577
5578
|
import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
|
5578
5579
|
import omit7 from "lodash/omit";
|
5579
5580
|
|
5580
|
-
// src/
|
5581
|
+
// src/atoms/Dialog/Dialog.tsx
|
5581
5582
|
var import_confirm2 = __toESM(require_confirm());
|
5582
5583
|
var import_error2 = __toESM(require_error());
|
5583
5584
|
var import_warningSign2 = __toESM(require_warningSign());
|
@@ -5596,7 +5597,7 @@ var DIALOG_ICONS_AND_COLORS = {
|
|
5596
5597
|
}
|
5597
5598
|
};
|
5598
5599
|
|
5599
|
-
// src/
|
5600
|
+
// src/atoms/Modal/Modal.tsx
|
5600
5601
|
import React52 from "react";
|
5601
5602
|
var Modal = (_a) => {
|
5602
5603
|
var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
|
@@ -5698,7 +5699,7 @@ Modal.Actions = (_a) => {
|
|
5698
5699
|
}), children);
|
5699
5700
|
};
|
5700
5701
|
|
5701
|
-
// src/
|
5702
|
+
// src/molecules/Dialog/Dialog.tsx
|
5702
5703
|
var Dialog = ({
|
5703
5704
|
title,
|
5704
5705
|
type = "confirmation",
|
@@ -5745,7 +5746,7 @@ var Dialog = ({
|
|
5745
5746
|
}, omit7(primaryAction, "text")), primaryAction.text)))))));
|
5746
5747
|
};
|
5747
5748
|
|
5748
|
-
// src/
|
5749
|
+
// src/molecules/Divider/Divider.tsx
|
5749
5750
|
import React54 from "react";
|
5750
5751
|
var sizeClasses = {
|
5751
5752
|
horizontal: {
|
@@ -5776,17 +5777,17 @@ var Divider2 = (_a) => {
|
|
5776
5777
|
}));
|
5777
5778
|
};
|
5778
5779
|
|
5779
|
-
// src/
|
5780
|
+
// src/molecules/Dropdown/Dropdown.tsx
|
5780
5781
|
import React56 from "react";
|
5781
5782
|
|
5782
|
-
// src/
|
5783
|
+
// src/molecules/Popover/Popover.tsx
|
5783
5784
|
import React55, { useRef as useRef6 } from "react";
|
5784
5785
|
import { PressResponder, usePress } from "@react-aria/interactions";
|
5785
5786
|
import { useOverlayPosition as useOverlayPosition3, useOverlayTrigger } from "@react-aria/overlays";
|
5786
5787
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
5787
5788
|
import { useOverlayTriggerState as useOverlayTriggerState3 } from "@react-stately/overlays";
|
5788
5789
|
|
5789
|
-
// src/
|
5790
|
+
// src/molecules/Popover/PopoverContext.tsx
|
5790
5791
|
import { createContext, useContext as useContext2 } from "react";
|
5791
5792
|
var PopoverContext = createContext(null);
|
5792
5793
|
var usePopoverContext = () => {
|
@@ -5797,7 +5798,7 @@ var usePopoverContext = () => {
|
|
5797
5798
|
return ctx;
|
5798
5799
|
};
|
5799
5800
|
|
5800
|
-
// src/
|
5801
|
+
// src/molecules/Popover/Popover.tsx
|
5801
5802
|
var Popover2 = (props) => {
|
5802
5803
|
var _a;
|
5803
5804
|
const {
|
@@ -5898,7 +5899,7 @@ var PopoverTriggerWrapper = (_a) => {
|
|
5898
5899
|
}));
|
5899
5900
|
};
|
5900
5901
|
|
5901
|
-
// src/
|
5902
|
+
// src/molecules/Dropdown/Dropdown.tsx
|
5902
5903
|
var Dropdown = ({ children, content, placement = "bottom-left" }) => {
|
5903
5904
|
return /* @__PURE__ */ React56.createElement(Popover2, {
|
5904
5905
|
type: "menu",
|
@@ -6010,7 +6011,7 @@ var DropdownItem = (_a) => {
|
|
6010
6011
|
Dropdown.Menu = DropdownMenu;
|
6011
6012
|
Dropdown.Item = DropdownItem;
|
6012
6013
|
|
6013
|
-
// src/
|
6014
|
+
// src/molecules/DropdownMenu/DropdownMenu.tsx
|
6014
6015
|
import React60 from "react";
|
6015
6016
|
import { useFilter } from "@react-aria/i18n";
|
6016
6017
|
import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
|
@@ -6022,7 +6023,7 @@ import { Item as Item4, Section } from "@react-stately/collections";
|
|
6022
6023
|
import { useMenuTriggerState } from "@react-stately/menu";
|
6023
6024
|
import { useTreeState } from "@react-stately/tree";
|
6024
6025
|
|
6025
|
-
// src/
|
6026
|
+
// src/molecules/Input/Input.tsx
|
6026
6027
|
import React58, { forwardRef, useImperativeHandle, useRef as useRef7, useState as useState6 } from "react";
|
6027
6028
|
import omit8 from "lodash/omit";
|
6028
6029
|
import toString from "lodash/toString";
|
@@ -6061,7 +6062,7 @@ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React57.createElement(Icon, {
|
|
6061
6062
|
onClick
|
6062
6063
|
});
|
6063
6064
|
|
6064
|
-
// src/
|
6065
|
+
// src/molecules/Input/Input.tsx
|
6065
6066
|
var createInput = (displayName, opts = {}) => {
|
6066
6067
|
const InputComponent = forwardRef(
|
6067
6068
|
(_a, ref) => {
|
@@ -6163,7 +6164,7 @@ Input2.displayName = "Input";
|
|
6163
6164
|
Input2.Skeleton = () => /* @__PURE__ */ React58.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React58.createElement(InputBase.Skeleton, null));
|
6164
6165
|
Input2.Skeleton.displayName = "Input.Skeleton";
|
6165
6166
|
|
6166
|
-
// src/
|
6167
|
+
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
6167
6168
|
import React59 from "react";
|
6168
6169
|
var import_tick4 = __toESM(require_tick());
|
6169
6170
|
var DropdownMenu2 = React59.forwardRef(
|
@@ -6172,15 +6173,12 @@ var DropdownMenu2 = React59.forwardRef(
|
|
6172
6173
|
return /* @__PURE__ */ React59.createElement("div", __spreadValues({
|
6173
6174
|
ref,
|
6174
6175
|
style: { maxHeight, minWidth, maxWidth },
|
6175
|
-
className: classNames(
|
6176
|
-
className,
|
6177
|
-
"bg-white w-full overflow-y-auto overflow-x-hidden typography-small text-grey-70"
|
6178
|
-
)
|
6176
|
+
className: classNames(className, "bg-white w-full flex flex-col overflow-x-hidden typography-small text-grey-70")
|
6179
6177
|
}, props), children);
|
6180
6178
|
}
|
6181
6179
|
);
|
6182
6180
|
var ContentContainer = ({ children }) => /* @__PURE__ */ React59.createElement("div", {
|
6183
|
-
className: tw("p-3")
|
6181
|
+
className: tw("p-3 overflow-y-auto overflow-x-hidden")
|
6184
6182
|
}, children);
|
6185
6183
|
DropdownMenu2.ContentContainer = ContentContainer;
|
6186
6184
|
var List2 = React59.forwardRef(
|
@@ -6245,7 +6243,7 @@ var EmptyStateContainer2 = (_a) => {
|
|
6245
6243
|
};
|
6246
6244
|
DropdownMenu2.EmptyStateContainer = EmptyStateContainer2;
|
6247
6245
|
|
6248
|
-
// src/
|
6246
|
+
// src/molecules/DropdownMenu/utils.ts
|
6249
6247
|
import { ListCollection } from "@react-stately/list";
|
6250
6248
|
var filterCollection = (collection, inputValue, filter) => {
|
6251
6249
|
return new ListCollection(filterNodes(collection, inputValue, filter));
|
@@ -6265,7 +6263,7 @@ var filterNodes = (nodes, inputValue, filter) => {
|
|
6265
6263
|
return filteredNode;
|
6266
6264
|
};
|
6267
6265
|
|
6268
|
-
// src/
|
6266
|
+
// src/molecules/DropdownMenu/DropdownMenu.tsx
|
6269
6267
|
var DropdownMenu3 = (_a) => {
|
6270
6268
|
var _b = _a, {
|
6271
6269
|
onAction,
|
@@ -6469,11 +6467,11 @@ var getDisabledItemKeys = (children) => {
|
|
6469
6467
|
return keys.flat().filter((key) => key !== null);
|
6470
6468
|
};
|
6471
6469
|
|
6472
|
-
// src/
|
6470
|
+
// src/molecules/EmptyState/EmptyState.tsx
|
6473
6471
|
import React62 from "react";
|
6474
6472
|
import omit9 from "lodash/omit";
|
6475
6473
|
|
6476
|
-
// src/
|
6474
|
+
// src/molecules/Flexbox/FlexboxItem.tsx
|
6477
6475
|
import React61 from "react";
|
6478
6476
|
var FlexboxItem = Tailwindify(
|
6479
6477
|
({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
|
@@ -6493,7 +6491,7 @@ var FlexboxItem = Tailwindify(
|
|
6493
6491
|
}
|
6494
6492
|
);
|
6495
6493
|
|
6496
|
-
// src/
|
6494
|
+
// src/molecules/EmptyState/EmptyState.tsx
|
6497
6495
|
var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
|
6498
6496
|
EmptyStateLayout2["CenterVertical"] = "center-vertical";
|
6499
6497
|
EmptyStateLayout2["LeftVertical"] = "left-vertical";
|
@@ -6594,7 +6592,7 @@ var EmptyState = ({
|
|
6594
6592
|
}, footer)))));
|
6595
6593
|
};
|
6596
6594
|
|
6597
|
-
// src/
|
6595
|
+
// src/molecules/Grid/GridItem.tsx
|
6598
6596
|
import React63 from "react";
|
6599
6597
|
var GridItem = Tailwindify(
|
6600
6598
|
({
|
@@ -6633,9 +6631,16 @@ var GridItem = Tailwindify(
|
|
6633
6631
|
}
|
6634
6632
|
);
|
6635
6633
|
|
6636
|
-
// src/
|
6634
|
+
// src/molecules/LineClamp/LineClamp.tsx
|
6637
6635
|
import React64 from "react";
|
6638
|
-
var LineClamp2 = ({
|
6636
|
+
var LineClamp2 = ({
|
6637
|
+
lines,
|
6638
|
+
children,
|
6639
|
+
wordBreak,
|
6640
|
+
expandLabel,
|
6641
|
+
collapseLabel,
|
6642
|
+
onClampedChange
|
6643
|
+
}) => {
|
6639
6644
|
const ref = React64.useRef(null);
|
6640
6645
|
const [clamped, setClamped] = React64.useState(true);
|
6641
6646
|
const [isClampingEnabled, setClampingEnabled] = React64.useState(false);
|
@@ -6644,20 +6649,25 @@ var LineClamp2 = ({ lines, children, expandLabel, collapseLabel }) => {
|
|
6644
6649
|
const el = ref.current;
|
6645
6650
|
setClampingEnabled(((_a = el == null ? void 0 : el.scrollHeight) != null ? _a : 0) > ((_b = el == null ? void 0 : el.clientHeight) != null ? _b : 0));
|
6646
6651
|
}, [ref.current]);
|
6652
|
+
const handleClampedChange = () => {
|
6653
|
+
setClamped(!clamped);
|
6654
|
+
onClampedChange == null ? void 0 : onClampedChange(!clamped);
|
6655
|
+
};
|
6647
6656
|
return /* @__PURE__ */ React64.createElement("div", null, /* @__PURE__ */ React64.createElement(LineClamp, {
|
6648
6657
|
ref,
|
6649
6658
|
lines,
|
6650
|
-
clamped
|
6659
|
+
clamped,
|
6660
|
+
wordBreak
|
6651
6661
|
}, children), expandLabel && isClampingEnabled && /* @__PURE__ */ React64.createElement(GhostButton, {
|
6652
6662
|
dense: true,
|
6653
|
-
onClick:
|
6663
|
+
onClick: handleClampedChange
|
6654
6664
|
}, clamped ? expandLabel : collapseLabel));
|
6655
6665
|
};
|
6656
6666
|
|
6657
|
-
// src/
|
6667
|
+
// src/molecules/Link/Link.tsx
|
6658
6668
|
import React66 from "react";
|
6659
6669
|
|
6660
|
-
// src/
|
6670
|
+
// src/atoms/Link/Link.tsx
|
6661
6671
|
import React65 from "react";
|
6662
6672
|
var Link = (_a) => {
|
6663
6673
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
@@ -6666,17 +6676,17 @@ var Link = (_a) => {
|
|
6666
6676
|
}, props), children);
|
6667
6677
|
};
|
6668
6678
|
|
6669
|
-
// src/
|
6679
|
+
// src/molecules/Link/Link.tsx
|
6670
6680
|
var Link2 = (props) => /* @__PURE__ */ React66.createElement(Link, __spreadValues({}, props));
|
6671
6681
|
|
6672
|
-
// src/
|
6682
|
+
// src/molecules/List/List.tsx
|
6673
6683
|
import React67 from "react";
|
6674
6684
|
var List = ({ items, renderItem, container = React67.Fragment }) => {
|
6675
6685
|
const Component = container;
|
6676
6686
|
return /* @__PURE__ */ React67.createElement(Component, null, items.map(renderItem));
|
6677
6687
|
};
|
6678
6688
|
|
6679
|
-
// src/
|
6689
|
+
// src/molecules/ListItem/ListItem.tsx
|
6680
6690
|
import React68 from "react";
|
6681
6691
|
var ListItem = ({ name, icon, active = false }) => {
|
6682
6692
|
return /* @__PURE__ */ React68.createElement(Flexbox, {
|
@@ -6695,7 +6705,7 @@ var ListItem = ({ name, icon, active = false }) => {
|
|
6695
6705
|
}), name));
|
6696
6706
|
};
|
6697
6707
|
|
6698
|
-
// src/
|
6708
|
+
// src/molecules/Modal/Modal.tsx
|
6699
6709
|
import React70 from "react";
|
6700
6710
|
import { useDialog as useDialog2 } from "@react-aria/dialog";
|
6701
6711
|
import { FocusScope as FocusScope3 } from "@react-aria/focus";
|
@@ -6705,7 +6715,7 @@ import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-statel
|
|
6705
6715
|
import castArray from "lodash/castArray";
|
6706
6716
|
import omit10 from "lodash/omit";
|
6707
6717
|
|
6708
|
-
// src/
|
6718
|
+
// src/molecules/Tabs/Tabs.tsx
|
6709
6719
|
import React69, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef8, useState as useState7 } from "react";
|
6710
6720
|
import isNumber5 from "lodash/isNumber";
|
6711
6721
|
import kebabCase from "lodash/kebabCase";
|
@@ -6995,7 +7005,7 @@ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /*
|
|
6995
7005
|
(node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
|
6996
7006
|
)));
|
6997
7007
|
|
6998
|
-
// src/
|
7008
|
+
// src/molecules/Modal/Modal.tsx
|
6999
7009
|
var import_cross5 = __toESM(require_cross());
|
7000
7010
|
var Modal2 = ({
|
7001
7011
|
title,
|
@@ -7063,14 +7073,14 @@ var ModalTabs = createTabsComponent(
|
|
7063
7073
|
)))
|
7064
7074
|
);
|
7065
7075
|
|
7066
|
-
// src/
|
7076
|
+
// src/molecules/MultiInput/MultiInput.tsx
|
7067
7077
|
import React72, { useEffect as useEffect6, useRef as useRef9, useState as useState8 } from "react";
|
7068
7078
|
import castArray2 from "lodash/castArray";
|
7069
7079
|
import identity from "lodash/identity";
|
7070
7080
|
import omit11 from "lodash/omit";
|
7071
7081
|
import uniqueId4 from "lodash/uniqueId";
|
7072
7082
|
|
7073
|
-
// src/
|
7083
|
+
// src/molecules/MultiInput/InputChip.tsx
|
7074
7084
|
import React71 from "react";
|
7075
7085
|
var import_smallCross = __toESM(require_smallCross());
|
7076
7086
|
var InputChip = React71.forwardRef(
|
@@ -7104,7 +7114,7 @@ var InputChip = React71.forwardRef(
|
|
7104
7114
|
}
|
7105
7115
|
);
|
7106
7116
|
|
7107
|
-
// src/
|
7117
|
+
// src/molecules/MultiInput/MultiInput.tsx
|
7108
7118
|
var MultiInputBase = (_a) => {
|
7109
7119
|
var _b = _a, {
|
7110
7120
|
id,
|
@@ -7312,7 +7322,7 @@ var MultiInputSkeleton = () => /* @__PURE__ */ React72.createElement(LabelContro
|
|
7312
7322
|
MultiInput.Skeleton = MultiInputSkeleton;
|
7313
7323
|
MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
|
7314
7324
|
|
7315
|
-
// src/
|
7325
|
+
// src/molecules/MultiSelect/MultiSelect.tsx
|
7316
7326
|
import React73, { useRef as useRef10, useState as useState9 } from "react";
|
7317
7327
|
import { useOverlayPosition as useOverlayPosition5 } from "@react-aria/overlays";
|
7318
7328
|
import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
|
@@ -7506,8 +7516,7 @@ var MultiSelectBase = (_a) => {
|
|
7506
7516
|
autoFocus: true
|
7507
7517
|
}, getMenuProps({ ref: overlayRef })), {
|
7508
7518
|
style,
|
7509
|
-
onClose: closeMenu
|
7510
|
-
className: tw("overflow-y-auto")
|
7519
|
+
onClose: closeMenu
|
7511
7520
|
}), /* @__PURE__ */ React73.createElement(Select.Menu, {
|
7512
7521
|
maxHeight
|
7513
7522
|
}, isOpen && hasNoResults && /* @__PURE__ */ React73.createElement(Select.NoResults, null, noResults), isOpen && filteredOptions.map((item, index) => /* @__PURE__ */ React73.createElement(Select.Item, __spreadValues({
|
@@ -7550,7 +7559,7 @@ var MultiSelectSkeleton = () => /* @__PURE__ */ React73.createElement(LabelContr
|
|
7550
7559
|
MultiSelect.Skeleton = MultiSelectSkeleton;
|
7551
7560
|
MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
|
7552
7561
|
|
7553
|
-
// src/
|
7562
|
+
// src/molecules/NativeSelect/NativeSelect.tsx
|
7554
7563
|
import React74, { useRef as useRef11 } from "react";
|
7555
7564
|
import omit13 from "lodash/omit";
|
7556
7565
|
import uniqueId6 from "lodash/uniqueId";
|
@@ -7649,7 +7658,7 @@ var NativeSelectSkeleton = () => /* @__PURE__ */ React74.createElement(LabelCont
|
|
7649
7658
|
NativeSelect.Skeleton = NativeSelectSkeleton;
|
7650
7659
|
NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
|
7651
7660
|
|
7652
|
-
// src/
|
7661
|
+
// src/molecules/PageHeader/PageHeader.tsx
|
7653
7662
|
import React75 from "react";
|
7654
7663
|
import castArray3 from "lodash/castArray";
|
7655
7664
|
import omit14 from "lodash/omit";
|
@@ -7698,11 +7707,11 @@ var PageHeader = ({
|
|
7698
7707
|
}, omit14(primaryAction, "text")), primaryAction.text)));
|
7699
7708
|
};
|
7700
7709
|
|
7701
|
-
// src/
|
7710
|
+
// src/molecules/Pagination/Pagination.tsx
|
7702
7711
|
import React77 from "react";
|
7703
7712
|
import clamp from "lodash/clamp";
|
7704
7713
|
|
7705
|
-
// src/
|
7714
|
+
// src/molecules/Select/Select.tsx
|
7706
7715
|
import React76, { useRef as useRef12, useState as useState10 } from "react";
|
7707
7716
|
import { useOverlayPosition as useOverlayPosition6 } from "@react-aria/overlays";
|
7708
7717
|
import { useSelect } from "downshift";
|
@@ -7873,8 +7882,7 @@ var _SelectBase = (props) => {
|
|
7873
7882
|
autoFocus: true
|
7874
7883
|
}, getMenuProps({ ref: overlayRef })), {
|
7875
7884
|
style,
|
7876
|
-
onClose: closeMenu
|
7877
|
-
className: tw("overflow-y-auto")
|
7885
|
+
onClose: closeMenu
|
7878
7886
|
}), /* @__PURE__ */ React76.createElement(Select.Menu, {
|
7879
7887
|
maxHeight
|
7880
7888
|
}, isOpen && options.length === 0 && /* @__PURE__ */ React76.createElement(Select.EmptyStateContainer, null, emptyState), isOpen && options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), isOpen && options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), isOpen && actions.length > 0 && /* @__PURE__ */ React76.createElement(React76.Fragment, null, /* @__PURE__ */ React76.createElement(Select.Divider, {
|
@@ -7935,7 +7943,7 @@ var SelectSkeleton = () => /* @__PURE__ */ React76.createElement(LabelControl.Sk
|
|
7935
7943
|
Select2.Skeleton = SelectSkeleton;
|
7936
7944
|
Select2.Skeleton.displayName = "Select.Skeleton";
|
7937
7945
|
|
7938
|
-
// src/
|
7946
|
+
// src/molecules/Pagination/Pagination.tsx
|
7939
7947
|
var import_chevronBackward = __toESM(require_chevronBackward());
|
7940
7948
|
var import_chevronForward = __toESM(require_chevronForward());
|
7941
7949
|
var import_chevronLeft3 = __toESM(require_chevronLeft());
|
@@ -8030,11 +8038,11 @@ var Pagination = ({
|
|
8030
8038
|
})), /* @__PURE__ */ React77.createElement("div", null));
|
8031
8039
|
};
|
8032
8040
|
|
8033
|
-
// src/
|
8041
|
+
// src/molecules/PopoverDialog/PopoverDialog.tsx
|
8034
8042
|
import React79 from "react";
|
8035
8043
|
import omit16 from "lodash/omit";
|
8036
8044
|
|
8037
|
-
// src/
|
8045
|
+
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
8038
8046
|
import React78 from "react";
|
8039
8047
|
var Header = (_a) => {
|
8040
8048
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
@@ -8077,7 +8085,7 @@ var PopoverDialog = {
|
|
8077
8085
|
Actions: Actions2
|
8078
8086
|
};
|
8079
8087
|
|
8080
|
-
// src/
|
8088
|
+
// src/molecules/PopoverDialog/PopoverDialog.tsx
|
8081
8089
|
var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
|
8082
8090
|
const wrapPromptWithBody = (child) => {
|
8083
8091
|
if (isComponentType(child, PopoverDialog2.Prompt)) {
|
@@ -8110,14 +8118,14 @@ var Prompt = ({ children }) => /* @__PURE__ */ React79.createElement(PopoverDial
|
|
8110
8118
|
Prompt.displayName = "PopoverDialog.Prompt";
|
8111
8119
|
PopoverDialog2.Prompt = Prompt;
|
8112
8120
|
|
8113
|
-
// src/
|
8121
|
+
// src/molecules/Portal/Portal.tsx
|
8114
8122
|
import { createPortal } from "react-dom";
|
8115
8123
|
var Portal = ({ children, to }) => createPortal(children, to);
|
8116
8124
|
|
8117
|
-
// src/
|
8125
|
+
// src/molecules/ProgressBar/ProgressBar.tsx
|
8118
8126
|
import React81 from "react";
|
8119
8127
|
|
8120
|
-
// src/
|
8128
|
+
// src/atoms/ProgressBar/ProgressBar.tsx
|
8121
8129
|
import React80 from "react";
|
8122
8130
|
import clamp2 from "lodash/clamp";
|
8123
8131
|
var ProgressBar = (_a) => {
|
@@ -8163,7 +8171,7 @@ ProgressBar.Labels = (_a) => {
|
|
8163
8171
|
}), endLabel));
|
8164
8172
|
};
|
8165
8173
|
|
8166
|
-
// src/
|
8174
|
+
// src/molecules/ProgressBar/ProgressBar.tsx
|
8167
8175
|
var ProgressBar2 = (props) => {
|
8168
8176
|
const {
|
8169
8177
|
value,
|
@@ -8199,7 +8207,7 @@ var ProgressBarSkeleton = () => /* @__PURE__ */ React81.createElement(Skeleton,
|
|
8199
8207
|
ProgressBar2.Skeleton = ProgressBarSkeleton;
|
8200
8208
|
ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
|
8201
8209
|
|
8202
|
-
// src/
|
8210
|
+
// src/molecules/RadioButton/RadioButton.tsx
|
8203
8211
|
import React82 from "react";
|
8204
8212
|
var RadioButton2 = React82.forwardRef(
|
8205
8213
|
(_a, ref) => {
|
@@ -8237,7 +8245,7 @@ var RadioButtonSkeleton = () => /* @__PURE__ */ React82.createElement("div", {
|
|
8237
8245
|
RadioButton2.Skeleton = RadioButtonSkeleton;
|
8238
8246
|
RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
|
8239
8247
|
|
8240
|
-
// src/
|
8248
|
+
// src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
|
8241
8249
|
import React83 from "react";
|
8242
8250
|
import uniqueId8 from "lodash/uniqueId";
|
8243
8251
|
var isRadioButton = (c) => {
|
@@ -8316,11 +8324,11 @@ var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
|
|
8316
8324
|
RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
|
8317
8325
|
RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
|
8318
8326
|
|
8319
|
-
// src/
|
8327
|
+
// src/molecules/Section/Section.tsx
|
8320
8328
|
import React85 from "react";
|
8321
8329
|
import castArray4 from "lodash/castArray";
|
8322
8330
|
|
8323
|
-
// src/
|
8331
|
+
// src/atoms/Section/Section.tsx
|
8324
8332
|
import React84 from "react";
|
8325
8333
|
var Section2 = (_a) => {
|
8326
8334
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
@@ -8369,7 +8377,7 @@ Section2.Body = (_a) => {
|
|
8369
8377
|
}, children));
|
8370
8378
|
};
|
8371
8379
|
|
8372
|
-
// src/
|
8380
|
+
// src/molecules/Section/Section.tsx
|
8373
8381
|
var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React85.createElement(Section2, null, title && /* @__PURE__ */ React85.createElement(React85.Fragment, null, /* @__PURE__ */ React85.createElement(Section2.Header, null, /* @__PURE__ */ React85.createElement(Section2.TitleContainer, null, /* @__PURE__ */ React85.createElement(Section2.Title, null, title), subtitle && /* @__PURE__ */ React85.createElement(Section2.Subtitle, null, subtitle)), /* @__PURE__ */ React85.createElement(Section2.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
|
8374
8382
|
var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
|
8375
8383
|
return /* @__PURE__ */ React85.createElement(SecondaryButton, __spreadValues({
|
@@ -8377,7 +8385,7 @@ var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React
|
|
8377
8385
|
}, action), text);
|
8378
8386
|
}))), /* @__PURE__ */ React85.createElement(Divider2, null)), /* @__PURE__ */ React85.createElement(Section2.Body, null, children));
|
8379
8387
|
|
8380
|
-
// src/
|
8388
|
+
// src/molecules/SegmentedControl/SegmentedControl.tsx
|
8381
8389
|
import React86 from "react";
|
8382
8390
|
var SegmentedControl = (_a) => {
|
8383
8391
|
var _b = _a, {
|
@@ -8467,15 +8475,26 @@ var getCommonClassNames = (dense, selected) => tw(
|
|
8467
8475
|
}
|
8468
8476
|
);
|
8469
8477
|
|
8470
|
-
// src/
|
8471
|
-
import React88 from "react";
|
8472
|
-
|
8473
|
-
// src/common/Stepper/Stepper.tsx
|
8478
|
+
// src/molecules/Spacing/Spacing.tsx
|
8474
8479
|
import React87 from "react";
|
8480
|
+
var Spacing = (_a) => {
|
8481
|
+
var _b = _a, { gap, row } = _b, rest = __objRest(_b, ["gap", "row"]);
|
8482
|
+
return /* @__PURE__ */ React87.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
8483
|
+
display: "flex",
|
8484
|
+
flexDirection: row ? "row" : "column",
|
8485
|
+
gap
|
8486
|
+
}));
|
8487
|
+
};
|
8488
|
+
|
8489
|
+
// src/molecules/Stepper/Stepper.tsx
|
8490
|
+
import React89 from "react";
|
8491
|
+
|
8492
|
+
// src/atoms/Stepper/Stepper.tsx
|
8493
|
+
import React88 from "react";
|
8475
8494
|
var import_tick5 = __toESM(require_tick());
|
8476
8495
|
var Stepper = (_a) => {
|
8477
8496
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8478
|
-
return /* @__PURE__ */
|
8497
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8479
8498
|
className: classNames(className)
|
8480
8499
|
}));
|
8481
8500
|
};
|
@@ -8489,7 +8508,7 @@ var ConnectorContainer = (_a) => {
|
|
8489
8508
|
"completed",
|
8490
8509
|
"dense"
|
8491
8510
|
]);
|
8492
|
-
return /* @__PURE__ */
|
8511
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8493
8512
|
className: classNames(
|
8494
8513
|
tw("absolute w-full -left-1/2", {
|
8495
8514
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -8501,7 +8520,7 @@ var ConnectorContainer = (_a) => {
|
|
8501
8520
|
};
|
8502
8521
|
var Connector = (_a) => {
|
8503
8522
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
8504
|
-
return /* @__PURE__ */
|
8523
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8505
8524
|
className: classNames(
|
8506
8525
|
tw("w-full", {
|
8507
8526
|
"bg-grey-20": !completed,
|
@@ -8515,7 +8534,7 @@ var Connector = (_a) => {
|
|
8515
8534
|
};
|
8516
8535
|
var Step = (_a) => {
|
8517
8536
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
8518
|
-
return /* @__PURE__ */
|
8537
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8519
8538
|
className: classNames(
|
8520
8539
|
tw("flex flex-col items-center text-grey-90 relative text-center", {
|
8521
8540
|
"text-grey-20": state === "inactive"
|
@@ -8536,13 +8555,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
8536
8555
|
});
|
8537
8556
|
var Indicator = (_a) => {
|
8538
8557
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
8539
|
-
return /* @__PURE__ */
|
8558
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8540
8559
|
className: classNames(
|
8541
8560
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
8542
8561
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
8543
8562
|
className
|
8544
8563
|
)
|
8545
|
-
}), state === "completed" ? /* @__PURE__ */
|
8564
|
+
}), state === "completed" ? /* @__PURE__ */ React88.createElement(InlineIcon, {
|
8546
8565
|
icon: import_tick5.default
|
8547
8566
|
}) : dense ? null : children);
|
8548
8567
|
};
|
@@ -8551,27 +8570,27 @@ Stepper.Step = Step;
|
|
8551
8570
|
ConnectorContainer.Connector = Connector;
|
8552
8571
|
Stepper.ConnectorContainer = ConnectorContainer;
|
8553
8572
|
|
8554
|
-
// src/
|
8573
|
+
// src/molecules/Stepper/Stepper.tsx
|
8555
8574
|
var Stepper2 = ({ children, activeIndex, dense }) => {
|
8556
|
-
const steps =
|
8557
|
-
return /* @__PURE__ */
|
8575
|
+
const steps = React89.Children.count(children);
|
8576
|
+
return /* @__PURE__ */ React89.createElement(Stepper, {
|
8558
8577
|
role: "list"
|
8559
|
-
}, /* @__PURE__ */
|
8578
|
+
}, /* @__PURE__ */ React89.createElement(Template, {
|
8560
8579
|
columns: steps
|
8561
|
-
},
|
8580
|
+
}, React89.Children.map(children, (child, index) => {
|
8562
8581
|
if (!isComponentType(child, Step2)) {
|
8563
8582
|
return new Error("<Stepper> can only have <Stepper.Step> components as children");
|
8564
8583
|
} else {
|
8565
8584
|
const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
|
8566
|
-
return /* @__PURE__ */
|
8585
|
+
return /* @__PURE__ */ React89.createElement(Stepper.Step, {
|
8567
8586
|
state,
|
8568
8587
|
"aria-current": state === "active" ? "step" : false,
|
8569
8588
|
role: "listitem"
|
8570
|
-
}, index > 0 && index <= steps && /* @__PURE__ */
|
8589
|
+
}, index > 0 && index <= steps && /* @__PURE__ */ React89.createElement(Stepper.ConnectorContainer, {
|
8571
8590
|
dense
|
8572
|
-
}, /* @__PURE__ */
|
8591
|
+
}, /* @__PURE__ */ React89.createElement(Stepper.ConnectorContainer.Connector, {
|
8573
8592
|
completed: state === "completed" || state === "active"
|
8574
|
-
})), /* @__PURE__ */
|
8593
|
+
})), /* @__PURE__ */ React89.createElement(Stepper.Step.Indicator, {
|
8575
8594
|
state,
|
8576
8595
|
dense
|
8577
8596
|
}, index + 1), child.props.children);
|
@@ -8582,17 +8601,17 @@ var Step2 = () => null;
|
|
8582
8601
|
Step2.displayName = "Stepper.Step";
|
8583
8602
|
Stepper2.Step = Step2;
|
8584
8603
|
|
8585
|
-
// src/
|
8586
|
-
import
|
8604
|
+
// src/molecules/Switch/Switch.tsx
|
8605
|
+
import React91 from "react";
|
8587
8606
|
|
8588
|
-
// src/
|
8589
|
-
import
|
8590
|
-
var Switch =
|
8607
|
+
// src/atoms/Switch/Switch.tsx
|
8608
|
+
import React90 from "react";
|
8609
|
+
var Switch = React90.forwardRef(
|
8591
8610
|
(_a, ref) => {
|
8592
8611
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
8593
|
-
return /* @__PURE__ */
|
8612
|
+
return /* @__PURE__ */ React90.createElement("span", {
|
8594
8613
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
8595
|
-
}, /* @__PURE__ */
|
8614
|
+
}, /* @__PURE__ */ React90.createElement("input", __spreadProps(__spreadValues({
|
8596
8615
|
id,
|
8597
8616
|
ref,
|
8598
8617
|
type: "checkbox",
|
@@ -8611,7 +8630,7 @@ var Switch = React89.forwardRef(
|
|
8611
8630
|
),
|
8612
8631
|
readOnly,
|
8613
8632
|
disabled
|
8614
|
-
})), /* @__PURE__ */
|
8633
|
+
})), /* @__PURE__ */ React90.createElement("span", {
|
8615
8634
|
className: tw(
|
8616
8635
|
"pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
8617
8636
|
"bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
|
@@ -8623,13 +8642,13 @@ var Switch = React89.forwardRef(
|
|
8623
8642
|
}
|
8624
8643
|
);
|
8625
8644
|
|
8626
|
-
// src/
|
8627
|
-
var Switch2 =
|
8645
|
+
// src/molecules/Switch/Switch.tsx
|
8646
|
+
var Switch2 = React91.forwardRef(
|
8628
8647
|
(_a, ref) => {
|
8629
8648
|
var _b = _a, { id, name, caption, readOnly = false, disabled = false, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["id", "name", "caption", "readOnly", "disabled", "children", "aria-label"]);
|
8630
8649
|
var _a2;
|
8631
8650
|
const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
|
8632
|
-
return !readOnly || isChecked ? /* @__PURE__ */
|
8651
|
+
return !readOnly || isChecked ? /* @__PURE__ */ React91.createElement(ControlLabel, {
|
8633
8652
|
htmlFor: id,
|
8634
8653
|
label: children,
|
8635
8654
|
"aria-label": ariaLabel,
|
@@ -8637,7 +8656,7 @@ var Switch2 = React90.forwardRef(
|
|
8637
8656
|
readOnly,
|
8638
8657
|
disabled,
|
8639
8658
|
style: { gap: "0 8px" }
|
8640
|
-
}, !readOnly && /* @__PURE__ */
|
8659
|
+
}, !readOnly && /* @__PURE__ */ React91.createElement(Switch, __spreadProps(__spreadValues({
|
8641
8660
|
id,
|
8642
8661
|
ref,
|
8643
8662
|
name
|
@@ -8648,20 +8667,20 @@ var Switch2 = React90.forwardRef(
|
|
8648
8667
|
}
|
8649
8668
|
);
|
8650
8669
|
Switch2.displayName = "Switch";
|
8651
|
-
var SwitchSkeleton = () => /* @__PURE__ */
|
8670
|
+
var SwitchSkeleton = () => /* @__PURE__ */ React91.createElement("div", {
|
8652
8671
|
className: tw("flex gap-3")
|
8653
|
-
}, /* @__PURE__ */
|
8672
|
+
}, /* @__PURE__ */ React91.createElement(Skeleton, {
|
8654
8673
|
height: 20,
|
8655
8674
|
width: 35
|
8656
|
-
}), /* @__PURE__ */
|
8675
|
+
}), /* @__PURE__ */ React91.createElement(Skeleton, {
|
8657
8676
|
height: 20,
|
8658
8677
|
width: 150
|
8659
8678
|
}));
|
8660
8679
|
Switch2.Skeleton = SwitchSkeleton;
|
8661
8680
|
Switch2.Skeleton.displayName = "Switch.Skeleton ";
|
8662
8681
|
|
8663
|
-
// src/
|
8664
|
-
import
|
8682
|
+
// src/molecules/SwitchGroup/SwitchGroup.tsx
|
8683
|
+
import React92, { useState as useState11 } from "react";
|
8665
8684
|
import uniqueId9 from "lodash/uniqueId";
|
8666
8685
|
var SwitchGroup = (_a) => {
|
8667
8686
|
var _b = _a, {
|
@@ -8693,11 +8712,11 @@ var SwitchGroup = (_a) => {
|
|
8693
8712
|
setSelectedItems(updated);
|
8694
8713
|
onChange == null ? void 0 : onChange(updated);
|
8695
8714
|
};
|
8696
|
-
return /* @__PURE__ */
|
8715
|
+
return /* @__PURE__ */ React92.createElement(LabelControl, __spreadValues(__spreadValues({
|
8697
8716
|
fieldset: true
|
8698
|
-
}, labelControlProps), errorProps), /* @__PURE__ */
|
8717
|
+
}, labelControlProps), errorProps), /* @__PURE__ */ React92.createElement(InputGroup, {
|
8699
8718
|
cols
|
8700
|
-
},
|
8719
|
+
}, React92.Children.map(children, (c) => {
|
8701
8720
|
var _a3, _b2, _c, _d;
|
8702
8721
|
if (!isComponentType(c, Switch2)) {
|
8703
8722
|
return null;
|
@@ -8705,7 +8724,7 @@ var SwitchGroup = (_a) => {
|
|
8705
8724
|
const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
|
8706
8725
|
const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
|
8707
8726
|
const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
|
8708
|
-
return
|
8727
|
+
return React92.cloneElement(c, {
|
8709
8728
|
defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
|
8710
8729
|
checked: (_c = c.props.checked) != null ? _c : checked,
|
8711
8730
|
onChange: (_d = c.props.onChange) != null ? _d : handleChange,
|
@@ -8715,20 +8734,20 @@ var SwitchGroup = (_a) => {
|
|
8715
8734
|
})));
|
8716
8735
|
};
|
8717
8736
|
var SwitchGroupSkeleton = ({ options = 2 }) => {
|
8718
|
-
return /* @__PURE__ */
|
8737
|
+
return /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement("div", {
|
8719
8738
|
className: tw("flex flex-wrap flex-col gap-2")
|
8720
|
-
}, Array.from({ length: options }).map((_, key) => /* @__PURE__ */
|
8739
|
+
}, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React92.createElement(Switch2.Skeleton, {
|
8721
8740
|
key
|
8722
8741
|
}))));
|
8723
8742
|
};
|
8724
8743
|
SwitchGroup.Skeleton = SwitchGroupSkeleton;
|
8725
8744
|
SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
|
8726
8745
|
|
8727
|
-
// src/
|
8728
|
-
import
|
8746
|
+
// src/molecules/TagLabel/TagLabel.tsx
|
8747
|
+
import React93 from "react";
|
8729
8748
|
var TagLabel = (_a) => {
|
8730
8749
|
var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
|
8731
|
-
return /* @__PURE__ */
|
8750
|
+
return /* @__PURE__ */ React93.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
8732
8751
|
className: tw("rounded-full text-white bg-primary-70", {
|
8733
8752
|
"py-2 px-4 typography-caption": !dense,
|
8734
8753
|
"py-2 px-3 typography-caption-small": dense
|
@@ -8736,15 +8755,15 @@ var TagLabel = (_a) => {
|
|
8736
8755
|
}), title);
|
8737
8756
|
};
|
8738
8757
|
|
8739
|
-
// src/
|
8740
|
-
import
|
8758
|
+
// src/molecules/Textarea/Textarea.tsx
|
8759
|
+
import React94, { useRef as useRef13, useState as useState12 } from "react";
|
8741
8760
|
import omit17 from "lodash/omit";
|
8742
8761
|
import toString2 from "lodash/toString";
|
8743
8762
|
import uniqueId10 from "lodash/uniqueId";
|
8744
|
-
var TextareaBase =
|
8763
|
+
var TextareaBase = React94.forwardRef(
|
8745
8764
|
(_a, ref) => {
|
8746
8765
|
var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
|
8747
|
-
return /* @__PURE__ */
|
8766
|
+
return /* @__PURE__ */ React94.createElement("textarea", __spreadProps(__spreadValues({
|
8748
8767
|
ref
|
8749
8768
|
}, props), {
|
8750
8769
|
readOnly,
|
@@ -8752,10 +8771,10 @@ var TextareaBase = React93.forwardRef(
|
|
8752
8771
|
}));
|
8753
8772
|
}
|
8754
8773
|
);
|
8755
|
-
TextareaBase.Skeleton = () => /* @__PURE__ */
|
8774
|
+
TextareaBase.Skeleton = () => /* @__PURE__ */ React94.createElement(Skeleton, {
|
8756
8775
|
height: 58
|
8757
8776
|
});
|
8758
|
-
var Textarea =
|
8777
|
+
var Textarea = React94.forwardRef((props, ref) => {
|
8759
8778
|
var _a, _b, _c;
|
8760
8779
|
const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
|
8761
8780
|
const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
|
@@ -8763,12 +8782,12 @@ var Textarea = React93.forwardRef((props, ref) => {
|
|
8763
8782
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
8764
8783
|
const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
|
8765
8784
|
const baseProps = omit17(props, Object.keys(labelControlProps));
|
8766
|
-
return /* @__PURE__ */
|
8785
|
+
return /* @__PURE__ */ React94.createElement(LabelControl, __spreadValues({
|
8767
8786
|
id: `${id.current}-label`,
|
8768
8787
|
htmlFor: id.current,
|
8769
8788
|
messageId: errorMessageId,
|
8770
8789
|
length: value !== void 0 ? toString2(value).length : void 0
|
8771
|
-
}, labelControlProps), /* @__PURE__ */
|
8790
|
+
}, labelControlProps), /* @__PURE__ */ React94.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
|
8772
8791
|
ref
|
8773
8792
|
}, baseProps), errorProps), {
|
8774
8793
|
id: id.current,
|
@@ -8785,48 +8804,48 @@ var Textarea = React93.forwardRef((props, ref) => {
|
|
8785
8804
|
})));
|
8786
8805
|
});
|
8787
8806
|
Textarea.displayName = "Textarea";
|
8788
|
-
var TextAreaSkeleton = () => /* @__PURE__ */
|
8807
|
+
var TextAreaSkeleton = () => /* @__PURE__ */ React94.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React94.createElement(TextareaBase.Skeleton, null));
|
8789
8808
|
Textarea.Skeleton = TextAreaSkeleton;
|
8790
8809
|
Textarea.Skeleton.displayName = "Textarea.Skeleton";
|
8791
8810
|
|
8792
|
-
// src/
|
8793
|
-
import
|
8811
|
+
// src/molecules/Timeline/Timeline.tsx
|
8812
|
+
import React96 from "react";
|
8794
8813
|
|
8795
|
-
// src/
|
8796
|
-
import
|
8814
|
+
// src/atoms/Timeline/Timeline.tsx
|
8815
|
+
import React95 from "react";
|
8797
8816
|
var Timeline = (_a) => {
|
8798
8817
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8799
|
-
return /* @__PURE__ */
|
8818
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8800
8819
|
className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
|
8801
8820
|
}));
|
8802
8821
|
};
|
8803
8822
|
var Content2 = (_a) => {
|
8804
8823
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8805
|
-
return /* @__PURE__ */
|
8824
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8806
8825
|
className: classNames(tw("pb-6"), className)
|
8807
8826
|
}));
|
8808
8827
|
};
|
8809
8828
|
var Separator2 = (_a) => {
|
8810
8829
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8811
|
-
return /* @__PURE__ */
|
8830
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8812
8831
|
className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
|
8813
8832
|
}));
|
8814
8833
|
};
|
8815
8834
|
var LineContainer = (_a) => {
|
8816
8835
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8817
|
-
return /* @__PURE__ */
|
8836
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8818
8837
|
className: classNames(tw("flex justify-center py-1"), className)
|
8819
8838
|
}));
|
8820
8839
|
};
|
8821
8840
|
var Line = (_a) => {
|
8822
8841
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8823
|
-
return /* @__PURE__ */
|
8842
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8824
8843
|
className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
|
8825
8844
|
}));
|
8826
8845
|
};
|
8827
8846
|
var Dot = (_a) => {
|
8828
8847
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8829
|
-
return /* @__PURE__ */
|
8848
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8830
8849
|
className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
|
8831
8850
|
}));
|
8832
8851
|
};
|
@@ -8836,57 +8855,57 @@ Timeline.Separator = Separator2;
|
|
8836
8855
|
Timeline.LineContainer = LineContainer;
|
8837
8856
|
Timeline.Content = Content2;
|
8838
8857
|
|
8839
|
-
// src/
|
8858
|
+
// src/molecules/Timeline/Timeline.tsx
|
8840
8859
|
var import_error4 = __toESM(require_error());
|
8841
8860
|
var import_time = __toESM(require_time());
|
8842
8861
|
var import_warningSign4 = __toESM(require_warningSign());
|
8843
8862
|
var TimelineItem = () => null;
|
8844
|
-
var Timeline2 = ({ children }) => /* @__PURE__ */
|
8863
|
+
var Timeline2 = ({ children }) => /* @__PURE__ */ React96.createElement("div", null, React96.Children.map(children, (item) => {
|
8845
8864
|
if (!isComponentType(item, TimelineItem)) {
|
8846
8865
|
throw new Error("<Timeline> can only have <Timeline.Item> components as children");
|
8847
8866
|
} else {
|
8848
8867
|
const { props, key } = item;
|
8849
|
-
return /* @__PURE__ */
|
8868
|
+
return /* @__PURE__ */ React96.createElement(Timeline, {
|
8850
8869
|
key: key != null ? key : props.title
|
8851
|
-
}, /* @__PURE__ */
|
8870
|
+
}, /* @__PURE__ */ React96.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React96.createElement(Icon, {
|
8852
8871
|
icon: import_error4.default,
|
8853
8872
|
color: "error-30"
|
8854
|
-
}) : props.variant === "warning" ? /* @__PURE__ */
|
8873
|
+
}) : props.variant === "warning" ? /* @__PURE__ */ React96.createElement(Icon, {
|
8855
8874
|
icon: import_warningSign4.default,
|
8856
8875
|
color: "warning-30"
|
8857
|
-
}) : props.variant === "info" ? /* @__PURE__ */
|
8876
|
+
}) : props.variant === "info" ? /* @__PURE__ */ React96.createElement(Icon, {
|
8858
8877
|
icon: import_time.default,
|
8859
8878
|
color: "info-30"
|
8860
|
-
}) : /* @__PURE__ */
|
8879
|
+
}) : /* @__PURE__ */ React96.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React96.createElement(Typography2.Caption, {
|
8861
8880
|
color: "grey-50"
|
8862
|
-
}, props.title), /* @__PURE__ */
|
8881
|
+
}, props.title), /* @__PURE__ */ React96.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React96.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React96.createElement(Timeline.Content, null, /* @__PURE__ */ React96.createElement(Typography2.Small, null, props.children)));
|
8863
8882
|
}
|
8864
8883
|
}));
|
8865
|
-
var TimelineItemSkeleton = () => /* @__PURE__ */
|
8884
|
+
var TimelineItemSkeleton = () => /* @__PURE__ */ React96.createElement(Timeline, null, /* @__PURE__ */ React96.createElement(Timeline.Separator, null, /* @__PURE__ */ React96.createElement(Skeleton, {
|
8866
8885
|
width: 6,
|
8867
8886
|
height: 6,
|
8868
8887
|
rounded: true
|
8869
|
-
})), /* @__PURE__ */
|
8888
|
+
})), /* @__PURE__ */ React96.createElement(Skeleton, {
|
8870
8889
|
height: 12,
|
8871
8890
|
width: 120
|
8872
|
-
}), /* @__PURE__ */
|
8891
|
+
}), /* @__PURE__ */ React96.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React96.createElement(Skeleton, {
|
8873
8892
|
width: 2,
|
8874
8893
|
height: "100%"
|
8875
|
-
})), /* @__PURE__ */
|
8894
|
+
})), /* @__PURE__ */ React96.createElement(Timeline.Content, null, /* @__PURE__ */ React96.createElement(Box, {
|
8876
8895
|
display: "flex",
|
8877
8896
|
flexDirection: "column",
|
8878
8897
|
gap: "3"
|
8879
|
-
}, /* @__PURE__ */
|
8898
|
+
}, /* @__PURE__ */ React96.createElement(Skeleton, {
|
8880
8899
|
height: 32,
|
8881
8900
|
width: "100%"
|
8882
|
-
}), /* @__PURE__ */
|
8901
|
+
}), /* @__PURE__ */ React96.createElement(Skeleton, {
|
8883
8902
|
height: 32,
|
8884
8903
|
width: "73%"
|
8885
|
-
}), /* @__PURE__ */
|
8904
|
+
}), /* @__PURE__ */ React96.createElement(Skeleton, {
|
8886
8905
|
height: 32,
|
8887
8906
|
width: "80%"
|
8888
8907
|
}))));
|
8889
|
-
var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */
|
8908
|
+
var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React96.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React96.createElement(TimelineItemSkeleton, {
|
8890
8909
|
key
|
8891
8910
|
})));
|
8892
8911
|
Timeline2.Item = TimelineItem;
|
@@ -8894,9 +8913,9 @@ Timeline2.Skeleton = TimelineSkeleton;
|
|
8894
8913
|
Timeline2.Skeleton.displayName = "Timeline.Skeleton";
|
8895
8914
|
|
8896
8915
|
// src/utils/table/useTableSelect.ts
|
8897
|
-
import
|
8916
|
+
import React97 from "react";
|
8898
8917
|
var useTableSelect = (data, { key }) => {
|
8899
|
-
const [selected, setSelected] =
|
8918
|
+
const [selected, setSelected] = React97.useState([]);
|
8900
8919
|
const allSelected = selected.length === data.length;
|
8901
8920
|
const isSelected = (dot) => selected.includes(dot[key]);
|
8902
8921
|
const selectAll = () => setSelected(data.map((dot) => dot[key]));
|
@@ -8920,7 +8939,7 @@ var useTableSelect = (data, { key }) => {
|
|
8920
8939
|
};
|
8921
8940
|
};
|
8922
8941
|
|
8923
|
-
// src/
|
8942
|
+
// src/molecules/Pagination/usePagination.tsx
|
8924
8943
|
import { useEffect as useEffect7, useState as useState13 } from "react";
|
8925
8944
|
import clamp3 from "lodash/clamp";
|
8926
8945
|
var initialState = {
|
@@ -8957,7 +8976,7 @@ var usePagination = (items, options) => {
|
|
8957
8976
|
];
|
8958
8977
|
};
|
8959
8978
|
|
8960
|
-
// src/
|
8979
|
+
// src/molecules/index.ts
|
8961
8980
|
var SelectItem = Select.Item;
|
8962
8981
|
|
8963
8982
|
// src/utils/positioner.ts
|
@@ -9072,7 +9091,7 @@ function calcBestPosition(triggerRect, contentRect, placement, padding) {
|
|
9072
9091
|
}
|
9073
9092
|
|
9074
9093
|
// src/system.ts
|
9075
|
-
var system_default = __spreadProps(__spreadValues({},
|
9094
|
+
var system_default = __spreadProps(__spreadValues({}, molecules_exports), {
|
9076
9095
|
theme: import_resolveTheme2.theme
|
9077
9096
|
});
|
9078
9097
|
var export_theme = import_resolveTheme2.theme;
|
@@ -9164,6 +9183,7 @@ export {
|
|
9164
9183
|
SelectBase,
|
9165
9184
|
SelectItem,
|
9166
9185
|
Skeleton,
|
9186
|
+
Spacing,
|
9167
9187
|
StatusChip,
|
9168
9188
|
Stepper2 as Stepper,
|
9169
9189
|
Switch2 as Switch,
|