@aivenio/aquarium 1.10.0 → 1.12.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 +67 -46
- package/dist/atoms.mjs +63 -42
- 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/{common → atoms}/LineClamp/LineClamp.js +1 -1
- 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 +1 -1
- 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 +4 -4
- package/dist/src/molecules/Alert/Alert.js +15 -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/{components → molecules}/Button/Button.d.ts +12 -1
- package/dist/src/molecules/Button/Button.js +108 -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 +88 -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 +1 -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/{components → molecules}/Popover/PopoverWrapper.js +2 -2
- 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 +124 -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 +4 -4
- package/dist/src/utils/table/types.d.ts +2 -2
- package/dist/src/utils/useStyle.js +2 -2
- package/dist/styles.css +830 -810
- package/dist/styles_timescaledb.css +830 -810
- package/dist/system.cjs +277 -230
- package/dist/system.mjs +262 -217
- 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/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 -21
- 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/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}/LineClamp/LineClamp.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}/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,
|
@@ -1634,6 +1635,7 @@ __export(components_exports, {
|
|
1634
1635
|
TagLabel: () => TagLabel,
|
1635
1636
|
Tailwindify: () => Tailwindify,
|
1636
1637
|
Template: () => Template,
|
1638
|
+
TextButton: () => TextButton,
|
1637
1639
|
Textarea: () => Textarea,
|
1638
1640
|
TextareaBase: () => TextareaBase,
|
1639
1641
|
Timeline: () => Timeline2,
|
@@ -1653,10 +1655,10 @@ __export(components_exports, {
|
|
1653
1655
|
useTableSort: () => useTableSort
|
1654
1656
|
});
|
1655
1657
|
|
1656
|
-
// src/
|
1658
|
+
// src/atoms/Select/Select.tsx
|
1657
1659
|
import React2 from "react";
|
1658
1660
|
|
1659
|
-
// src/
|
1661
|
+
// src/molecules/Icon/Icon.tsx
|
1660
1662
|
import React from "react";
|
1661
1663
|
import {
|
1662
1664
|
Icon as IconifyIconComponent,
|
@@ -1689,7 +1691,7 @@ var classNames = (...args) => {
|
|
1689
1691
|
return cleanClassNames(result);
|
1690
1692
|
};
|
1691
1693
|
|
1692
|
-
// src/
|
1694
|
+
// src/molecules/Icon/Icon.tsx
|
1693
1695
|
var Icon = React.forwardRef((_a, ref) => {
|
1694
1696
|
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
1695
1697
|
const classes2 = classNames(className, color && `text-${color}`);
|
@@ -1709,7 +1711,7 @@ var InlineIcon = React.forwardRef((_a, ref) => {
|
|
1709
1711
|
}, rest)));
|
1710
1712
|
});
|
1711
1713
|
|
1712
|
-
// src/
|
1714
|
+
// src/atoms/Select/Select.tsx
|
1713
1715
|
var import_chevronDown = __toESM(require_chevronDown());
|
1714
1716
|
var import_chevronUp = __toESM(require_chevronUp());
|
1715
1717
|
var import_search = __toESM(require_search());
|
@@ -1872,20 +1874,17 @@ var Select = {
|
|
1872
1874
|
Toggle
|
1873
1875
|
};
|
1874
1876
|
|
1875
|
-
// src/
|
1877
|
+
// src/molecules/Alert/Alert.tsx
|
1876
1878
|
import React10 from "react";
|
1877
1879
|
import omit from "lodash/omit";
|
1878
1880
|
|
1879
|
-
// src/
|
1880
|
-
import React9 from "react";
|
1881
|
-
|
1882
|
-
// src/components/Button/Button.tsx
|
1881
|
+
// src/molecules/Button/Button.tsx
|
1883
1882
|
import React7 from "react";
|
1884
1883
|
|
1885
|
-
// src/
|
1884
|
+
// src/molecules/Flexbox/Flexbox.tsx
|
1886
1885
|
import React5 from "react";
|
1887
1886
|
|
1888
|
-
// src/
|
1887
|
+
// src/molecules/Tailwindify/Tailwindify.tsx
|
1889
1888
|
import React4 from "react";
|
1890
1889
|
import get2 from "lodash/get";
|
1891
1890
|
import isUndefined4 from "lodash/isUndefined";
|
@@ -2419,7 +2418,7 @@ var tailwind_theme_default = {
|
|
2419
2418
|
}
|
2420
2419
|
};
|
2421
2420
|
|
2422
|
-
// src/
|
2421
|
+
// src/molecules/Context/Context.tsx
|
2423
2422
|
import React3 from "react";
|
2424
2423
|
import { ModalProvider } from "@react-aria/overlays";
|
2425
2424
|
|
@@ -2498,7 +2497,7 @@ function useWindowSize() {
|
|
2498
2497
|
return size;
|
2499
2498
|
}
|
2500
2499
|
|
2501
|
-
// src/
|
2500
|
+
// src/molecules/Context/Context.tsx
|
2502
2501
|
var Context = ({ children }) => {
|
2503
2502
|
const windowSize = useWindowSize();
|
2504
2503
|
const [breakpointMatches, setBreakpointMatches] = React3.useState(getMatches(windowSize));
|
@@ -2553,7 +2552,7 @@ function useStyle(styles) {
|
|
2553
2552
|
}, {});
|
2554
2553
|
}
|
2555
2554
|
|
2556
|
-
// src/
|
2555
|
+
// src/molecules/Tailwindify/Tailwindify.tsx
|
2557
2556
|
function Tailwindify(Component) {
|
2558
2557
|
return (_a) => {
|
2559
2558
|
var _b = _a, {
|
@@ -2667,7 +2666,7 @@ function Tailwindify(Component) {
|
|
2667
2666
|
};
|
2668
2667
|
}
|
2669
2668
|
|
2670
|
-
// src/
|
2669
|
+
// src/molecules/Flexbox/Flexbox.tsx
|
2671
2670
|
var Flexbox = Tailwindify(
|
2672
2671
|
({
|
2673
2672
|
htmlTag = "div",
|
@@ -2703,13 +2702,14 @@ var Flexbox = Tailwindify(
|
|
2703
2702
|
}
|
2704
2703
|
);
|
2705
2704
|
|
2706
|
-
// src/
|
2705
|
+
// src/molecules/Tooltip/Tooltip.tsx
|
2707
2706
|
import React6 from "react";
|
2707
|
+
import { useFocusWithin } from "@react-aria/interactions";
|
2708
2708
|
import { OverlayContainer, useOverlayPosition } from "@react-aria/overlays";
|
2709
2709
|
import { useTooltip, useTooltipTrigger } from "@react-aria/tooltip";
|
2710
2710
|
import { mergeProps } from "@react-aria/utils";
|
2711
2711
|
|
2712
|
-
// src/
|
2712
|
+
// src/molecules/Tooltip/useTooltipTriggerState.ts
|
2713
2713
|
import { useEffect as useEffect2, useMemo, useRef } from "react";
|
2714
2714
|
import { useOverlayTriggerState } from "@react-stately/overlays";
|
2715
2715
|
var TOOLTIP_DELAY = 1500;
|
@@ -2826,7 +2826,7 @@ function useTooltipTriggerState(props = {}) {
|
|
2826
2826
|
};
|
2827
2827
|
}
|
2828
2828
|
|
2829
|
-
// src/
|
2829
|
+
// src/molecules/Tooltip/Tooltip.tsx
|
2830
2830
|
var Tooltip = (_a) => {
|
2831
2831
|
var _b = _a, { inline = true, delay = 200 } = _b, props = __objRest(_b, ["inline", "delay"]);
|
2832
2832
|
const { placement: _placement = "top", content, disabled: isDisabled, shouldFlip = true } = props;
|
@@ -2842,6 +2842,9 @@ var Tooltip = (_a) => {
|
|
2842
2842
|
shouldFlip,
|
2843
2843
|
offset: ARROW_OFFSET
|
2844
2844
|
});
|
2845
|
+
const { focusWithinProps } = useFocusWithin({
|
2846
|
+
onFocusWithinChange: (isFocusWithin) => isFocusWithin ? state.open() : state.close()
|
2847
|
+
});
|
2845
2848
|
const handleClick = (e) => {
|
2846
2849
|
var _a2, _b2;
|
2847
2850
|
(_a2 = props.onClick) == null ? void 0 : _a2.call(props, e);
|
@@ -2870,6 +2873,16 @@ var Tooltip = (_a) => {
|
|
2870
2873
|
return /* @__PURE__ */ React6.createElement("div", __spreadProps(__spreadValues({
|
2871
2874
|
className: tw(`${inline ? "inline-block" : "block"}`)
|
2872
2875
|
}, triggerProps), {
|
2876
|
+
onFocus: (e) => {
|
2877
|
+
var _a2, _b2;
|
2878
|
+
(_a2 = triggerProps.onFocus) == null ? void 0 : _a2.call(triggerProps, e);
|
2879
|
+
(_b2 = focusWithinProps.onFocus) == null ? void 0 : _b2.call(focusWithinProps, e);
|
2880
|
+
},
|
2881
|
+
onBlur: (e) => {
|
2882
|
+
var _a2, _b2;
|
2883
|
+
(_a2 = triggerProps.onBlur) == null ? void 0 : _a2.call(triggerProps, e);
|
2884
|
+
(_b2 = focusWithinProps.onBlur) == null ? void 0 : _b2.call(focusWithinProps, e);
|
2885
|
+
},
|
2873
2886
|
onClick: handleClick,
|
2874
2887
|
onMouseDown: handleMouseDown,
|
2875
2888
|
onMouseUp: handleMouseUp,
|
@@ -2949,9 +2962,9 @@ var getCommonInputStyles = ({ readOnly, valid }) => tw(
|
|
2949
2962
|
var ghostButtonStyle = tw(
|
2950
2963
|
"text-primary-80 active:text-primary-70 focus-visible:text-grey-90 hover:text-primary-70 disabled:text-primary-40"
|
2951
2964
|
);
|
2952
|
-
var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80"));
|
2965
|
+
var linkStyle = classNames(ghostButtonStyle, tw("visited:text-primary-80 focusable"));
|
2953
2966
|
|
2954
|
-
// src/
|
2967
|
+
// src/molecules/Button/Button.tsx
|
2955
2968
|
var import_chevronDown2 = __toESM(require_chevronDown());
|
2956
2969
|
var import_loading = __toESM(require_loading());
|
2957
2970
|
var COLOR_CLASSNAMES = {
|
@@ -2964,6 +2977,7 @@ var COLOR_CLASSNAMES = {
|
|
2964
2977
|
"hover:ring-grey-50 hover:text-grey-80 disabled:text-grey-30 disabled:bg-grey-0 disabled:ring-grey-20"
|
2965
2978
|
),
|
2966
2979
|
"ghost": ghostButtonStyle,
|
2980
|
+
"text": ghostButtonStyle,
|
2967
2981
|
"secondary-ghost": tw(
|
2968
2982
|
"text-grey-60 active:text-grey-50 focus-visible:text-grey-80 hover:text-grey-80 disabled:text-grey-30"
|
2969
2983
|
)
|
@@ -3063,7 +3077,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
3063
3077
|
!isIconOnlyButton && COLOR_CLASSNAMES[kind],
|
3064
3078
|
tw("inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative", {
|
3065
3079
|
"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-strong": !dense && !isIconOnlyButton,
|
3080
|
+
"typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
|
3067
3081
|
"typography-small-strong": dense && !isIconOnlyButton,
|
3068
3082
|
"py-3 px-4": !dense && isButton,
|
3069
3083
|
"py-2 px-3": dense && isButton,
|
@@ -3117,6 +3131,12 @@ var SecondaryGhostButton = React7.forwardRef((props, ref) => /* @__PURE__ */ Rea
|
|
3117
3131
|
kind: "secondary-ghost"
|
3118
3132
|
})));
|
3119
3133
|
SecondaryGhostButton.displayName = "SecondaryGhostButton";
|
3134
|
+
var TextButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
|
3135
|
+
ref
|
3136
|
+
}, props), {
|
3137
|
+
kind: "text"
|
3138
|
+
})));
|
3139
|
+
TextButton.displayName = "TextButton";
|
3120
3140
|
var IconButton = React7.forwardRef((props, ref) => /* @__PURE__ */ React7.createElement(Button, __spreadProps(__spreadValues({
|
3121
3141
|
ref
|
3122
3142
|
}, props), {
|
@@ -3148,7 +3168,10 @@ var SecondaryDropdownButton = React7.forwardRef((props, ref) => /* @__PURE__ */
|
|
3148
3168
|
})));
|
3149
3169
|
SecondaryDropdownButton.displayName = "SecondaryDropdownButton";
|
3150
3170
|
|
3151
|
-
// src/
|
3171
|
+
// src/atoms/Alert/Alert.tsx
|
3172
|
+
import React9 from "react";
|
3173
|
+
|
3174
|
+
// src/atoms/Typography/Typography.tsx
|
3152
3175
|
var import_resolveTheme = __toESM(require_resolveTheme());
|
3153
3176
|
import React8 from "react";
|
3154
3177
|
import isUndefined5 from "lodash/isUndefined";
|
@@ -3181,7 +3204,7 @@ var Typography = (_a) => {
|
|
3181
3204
|
}, rest), children);
|
3182
3205
|
};
|
3183
3206
|
|
3184
|
-
// src/
|
3207
|
+
// src/atoms/Alert/Alert.tsx
|
3185
3208
|
var import_confirm = __toESM(require_confirm());
|
3186
3209
|
var import_cross = __toESM(require_cross());
|
3187
3210
|
var import_error = __toESM(require_error());
|
@@ -3274,27 +3297,31 @@ Alert.Dismiss = (_a) => {
|
|
3274
3297
|
})));
|
3275
3298
|
};
|
3276
3299
|
|
3277
|
-
// src/
|
3278
|
-
var
|
3300
|
+
// src/molecules/Alert/Alert.tsx
|
3301
|
+
var isLink = (action) => action.href !== void 0;
|
3302
|
+
var Alert2 = ({ description, type, title, onDismiss, children, action }) => /* @__PURE__ */ React10.createElement(Alert, {
|
3279
3303
|
type,
|
3280
3304
|
dense: Boolean(title)
|
3281
3305
|
}, /* @__PURE__ */ React10.createElement(Alert.Icon, {
|
3282
3306
|
type,
|
3283
3307
|
dense: Boolean(title)
|
3284
|
-
}), title && /* @__PURE__ */ React10.createElement(Alert.Title, null, title), /* @__PURE__ */ React10.createElement(Alert.Description, null, children || description), action && /* @__PURE__ */ React10.createElement(Alert.Actions, null, /* @__PURE__ */ React10.createElement(GhostButton, __spreadValues({
|
3308
|
+
}), title && /* @__PURE__ */ React10.createElement(Alert.Title, null, title), /* @__PURE__ */ React10.createElement(Alert.Description, null, children || description), action && /* @__PURE__ */ React10.createElement(Alert.Actions, null, !isLink(action) && /* @__PURE__ */ React10.createElement(GhostButton, __spreadValues({
|
3285
3309
|
dense: true
|
3310
|
+
}, omit(action, "text")), action.text), isLink(action) && /* @__PURE__ */ React10.createElement(ExternalLinkButton, __spreadValues({
|
3311
|
+
dense: true,
|
3312
|
+
kind: "ghost"
|
3286
3313
|
}, omit(action, "text")), action.text)), onDismiss && /* @__PURE__ */ React10.createElement(Alert.Dismiss, {
|
3287
3314
|
onClick: onDismiss
|
3288
3315
|
}));
|
3289
3316
|
|
3290
|
-
// src/
|
3317
|
+
// src/molecules/Avatar/Avatar.tsx
|
3291
3318
|
import React15 from "react";
|
3292
3319
|
|
3293
|
-
// src/
|
3320
|
+
// src/molecules/Box/Box.tsx
|
3294
3321
|
import React13 from "react";
|
3295
3322
|
import isUndefined6 from "lodash/isUndefined";
|
3296
3323
|
|
3297
|
-
// src/
|
3324
|
+
// src/molecules/Element/Element.tsx
|
3298
3325
|
import React11 from "react";
|
3299
3326
|
var Element = (_a) => {
|
3300
3327
|
var _b = _a, { component } = _b, rest = __objRest(_b, ["component"]);
|
@@ -3333,7 +3360,7 @@ var createSimpleComponent = (Component, defaultProps, displayName) => {
|
|
3333
3360
|
return Curried;
|
3334
3361
|
};
|
3335
3362
|
|
3336
|
-
// src/
|
3363
|
+
// src/molecules/Box/Box.tsx
|
3337
3364
|
var Box = (_a) => {
|
3338
3365
|
var _b = _a, {
|
3339
3366
|
style,
|
@@ -3462,7 +3489,7 @@ var BorderBox = createSimpleComponent(
|
|
3462
3489
|
"BorderBox"
|
3463
3490
|
);
|
3464
3491
|
|
3465
|
-
// src/
|
3492
|
+
// src/molecules/Skeleton/Skeleton.tsx
|
3466
3493
|
import React14 from "react";
|
3467
3494
|
import isNumber from "lodash/isNumber";
|
3468
3495
|
import isUndefined7 from "lodash/isUndefined";
|
@@ -3493,7 +3520,7 @@ var Skeleton = ({
|
|
3493
3520
|
});
|
3494
3521
|
};
|
3495
3522
|
|
3496
|
-
// src/
|
3523
|
+
// src/molecules/Avatar/Avatar.tsx
|
3497
3524
|
var AvatarStack = ({ images }) => /* @__PURE__ */ React15.createElement(Box, {
|
3498
3525
|
display: "flex",
|
3499
3526
|
className: tw("[&>*:not(:first-child)]:-ml-3")
|
@@ -3517,7 +3544,7 @@ var AvatarSkeleton = () => /* @__PURE__ */ React15.createElement(Skeleton, {
|
|
3517
3544
|
Avatar.Skeleton = AvatarSkeleton;
|
3518
3545
|
Avatar.Skeleton.displayName = "Avatar.Skeleton";
|
3519
3546
|
|
3520
|
-
// src/
|
3547
|
+
// src/molecules/Badge/Badge.tsx
|
3521
3548
|
import React16 from "react";
|
3522
3549
|
import omit2 from "lodash/omit";
|
3523
3550
|
var isChipBadgeProps = (props) => "dense" in props;
|
@@ -3563,11 +3590,11 @@ var Badge = createBadge("default", "Badge");
|
|
3563
3590
|
var TabBadge = createBadge("tab", "TabBadge");
|
3564
3591
|
var ChipBadge = createBadge("chip", "ChipBadge");
|
3565
3592
|
|
3566
|
-
// src/
|
3593
|
+
// src/molecules/Banner/Banner.tsx
|
3567
3594
|
import React18 from "react";
|
3568
3595
|
import omit3 from "lodash/omit";
|
3569
3596
|
|
3570
|
-
// src/
|
3597
|
+
// src/atoms/Banner/Banner.tsx
|
3571
3598
|
import React17 from "react";
|
3572
3599
|
var spacing = {
|
3573
3600
|
spacingAroundBanner: "p-6",
|
@@ -3654,7 +3681,7 @@ Banner.DismissContainer = (_a) => {
|
|
3654
3681
|
}), children);
|
3655
3682
|
};
|
3656
3683
|
|
3657
|
-
// src/
|
3684
|
+
// src/molecules/Banner/Banner.tsx
|
3658
3685
|
var import_cross2 = __toESM(require_cross());
|
3659
3686
|
var BannerImageSkeleton = () => /* @__PURE__ */ React18.createElement(Skeleton, {
|
3660
3687
|
width: 225,
|
@@ -3702,7 +3729,7 @@ var OneLineBannerBase = createBanner("OneLineBanner", {
|
|
3702
3729
|
});
|
3703
3730
|
var OneLineBanner = OneLineBannerBase;
|
3704
3731
|
|
3705
|
-
// src/
|
3732
|
+
// src/molecules/Breadcrumbs/Breadcrumbs.tsx
|
3706
3733
|
import React19 from "react";
|
3707
3734
|
import classNames2 from "classnames";
|
3708
3735
|
var import_slash = __toESM(require_slash());
|
@@ -3757,16 +3784,16 @@ var Crumb = asCrumb("a", "Crumb");
|
|
3757
3784
|
var ActiveCrumb = asCrumb("span", "ActiveCrumb", { isActive: true });
|
3758
3785
|
Breadcrumbs.Crumb = Crumb;
|
3759
3786
|
|
3760
|
-
// src/
|
3787
|
+
// src/molecules/Card/Card.tsx
|
3761
3788
|
import React26, { useRef as useRef3 } from "react";
|
3762
3789
|
import { useButton as useButton2 } from "@react-aria/button";
|
3763
3790
|
import omit5 from "lodash/omit";
|
3764
3791
|
|
3765
|
-
// src/
|
3792
|
+
// src/molecules/Chip/Chip.tsx
|
3766
3793
|
import React21 from "react";
|
3767
3794
|
import isNumber2 from "lodash/isNumber";
|
3768
3795
|
|
3769
|
-
// src/
|
3796
|
+
// src/atoms/Chip/Chip.tsx
|
3770
3797
|
import React20 from "react";
|
3771
3798
|
var Container = React20.forwardRef(
|
3772
3799
|
(_a, ref) => {
|
@@ -3791,7 +3818,7 @@ var Chip = {
|
|
3791
3818
|
import { isValidElement } from "react";
|
3792
3819
|
var isComponentType = (c, type) => isValidElement(c) && c.type === type;
|
3793
3820
|
|
3794
|
-
// src/
|
3821
|
+
// src/molecules/Chip/Chip.tsx
|
3795
3822
|
var import_cross3 = __toESM(require_cross());
|
3796
3823
|
var import_lock = __toESM(require_lock());
|
3797
3824
|
var getStatusClassNames = (status = "neutral") => {
|
@@ -3876,7 +3903,7 @@ var ChipContainer = ({ dense, children }) => /* @__PURE__ */ React21.createEleme
|
|
3876
3903
|
(child) => isComponentType(child, Chip2) || isComponentType(child, StatusChip) || isComponentType(child, ChipSkeleton) ? React21.cloneElement(child, { dense }) : void 0
|
3877
3904
|
));
|
3878
3905
|
|
3879
|
-
// src/
|
3906
|
+
// src/molecules/Typography/Typography.tsx
|
3880
3907
|
import React22 from "react";
|
3881
3908
|
var Typography2 = (props) => /* @__PURE__ */ React22.createElement(Typography, __spreadValues({}, props));
|
3882
3909
|
Typography2.LargeHeading = (_a) => {
|
@@ -3992,7 +4019,7 @@ Typography2.SmallTextBold = (_a) => {
|
|
3992
4019
|
}));
|
3993
4020
|
};
|
3994
4021
|
|
3995
|
-
// src/
|
4022
|
+
// src/atoms/Card/Card.tsx
|
3996
4023
|
import React23 from "react";
|
3997
4024
|
import isNumber3 from "lodash/isNumber";
|
3998
4025
|
var Card = React23.forwardRef(
|
@@ -4006,7 +4033,7 @@ var Card = React23.forwardRef(
|
|
4006
4033
|
"w-[280px]": !fullWidth,
|
4007
4034
|
"w-full": Boolean(fullWidth),
|
4008
4035
|
"min-w-[280px]": Boolean(fullWidth) && Boolean(enableMinWidth),
|
4009
|
-
"active:bg-grey-5 cursor-pointer hover:border-grey-50
|
4036
|
+
"active:bg-grey-5 cursor-pointer hover:border-grey-50 focusable": Boolean(clickable && !disabled),
|
4010
4037
|
"bg-grey-0 cursor-not-allowed focus:border-transparent": Boolean(disabled)
|
4011
4038
|
}),
|
4012
4039
|
className
|
@@ -4060,7 +4087,7 @@ Card.ImageContainer = ImageContainer;
|
|
4060
4087
|
Card.Image = Image;
|
4061
4088
|
Card.ColorHiglight = ColorHighlight;
|
4062
4089
|
|
4063
|
-
// src/
|
4090
|
+
// src/atoms/LineClamp/LineClamp.tsx
|
4064
4091
|
import React24 from "react";
|
4065
4092
|
var LineClamp = React24.forwardRef(
|
4066
4093
|
(_a, ref) => {
|
@@ -4074,7 +4101,7 @@ var LineClamp = React24.forwardRef(
|
|
4074
4101
|
}
|
4075
4102
|
);
|
4076
4103
|
|
4077
|
-
// src/
|
4104
|
+
// src/molecules/Card/Compact.tsx
|
4078
4105
|
import React25, { useRef as useRef2 } from "react";
|
4079
4106
|
import { useButton } from "@react-aria/button";
|
4080
4107
|
import { omit as omit4 } from "lodash";
|
@@ -4118,7 +4145,8 @@ var CompactCard = ({
|
|
4118
4145
|
}), /* @__PURE__ */ React25.createElement(Card.Content, {
|
4119
4146
|
dense: true
|
4120
4147
|
}, clampTitle ? /* @__PURE__ */ React25.createElement(LineClamp, {
|
4121
|
-
lines: clampTitle
|
4148
|
+
lines: clampTitle,
|
4149
|
+
wordBreak: "break-all"
|
4122
4150
|
}, titleContent) : titleContent, /* @__PURE__ */ React25.createElement(Typography2.Caption, {
|
4123
4151
|
color: "grey-70"
|
4124
4152
|
}, children))), (action || link) && /* @__PURE__ */ React25.createElement(Card.Actions, {
|
@@ -4165,7 +4193,7 @@ var CompactSkeleton = ({
|
|
4165
4193
|
})));
|
4166
4194
|
CompactCard.Skeleton = CompactSkeleton;
|
4167
4195
|
|
4168
|
-
// src/
|
4196
|
+
// src/molecules/Card/Card.tsx
|
4169
4197
|
var Card2 = ({
|
4170
4198
|
title,
|
4171
4199
|
clampTitle,
|
@@ -4283,7 +4311,7 @@ var CardImageSkeleton = ({ imageHeight, fullSize }) => imageHeight ? /* @__PURE_
|
|
4283
4311
|
});
|
4284
4312
|
CardImage.Skeleton = CardImageSkeleton;
|
4285
4313
|
|
4286
|
-
// src/
|
4314
|
+
// src/molecules/Carousel/Carousel.tsx
|
4287
4315
|
import React27, { useEffect as useEffect3, useLayoutEffect, useRef as useRef4, useState as useState2 } from "react";
|
4288
4316
|
var import_chevronLeft = __toESM(require_chevronLeft());
|
4289
4317
|
var import_chevronRight = __toESM(require_chevronRight());
|
@@ -4383,10 +4411,10 @@ var CarouselItem = ({ width, children, ariaHidden }) => {
|
|
4383
4411
|
}, children);
|
4384
4412
|
};
|
4385
4413
|
|
4386
|
-
// src/
|
4414
|
+
// src/molecules/Checkbox/Checkbox.tsx
|
4387
4415
|
import React30 from "react";
|
4388
4416
|
|
4389
|
-
// src/
|
4417
|
+
// src/molecules/ControlLabel/ControlLabel.tsx
|
4390
4418
|
import React28 from "react";
|
4391
4419
|
var ControlLabel = (_a) => {
|
4392
4420
|
var _b = _a, {
|
@@ -4424,7 +4452,7 @@ var ControlLabel = (_a) => {
|
|
4424
4452
|
}, caption));
|
4425
4453
|
};
|
4426
4454
|
|
4427
|
-
// src/
|
4455
|
+
// src/atoms/Checkbox/Checkbox.tsx
|
4428
4456
|
import React29 from "react";
|
4429
4457
|
var import_minus = __toESM(require_minus());
|
4430
4458
|
var import_tick2 = __toESM(require_tick());
|
@@ -4468,7 +4496,7 @@ var Checkbox = React29.forwardRef(
|
|
4468
4496
|
}
|
4469
4497
|
);
|
4470
4498
|
|
4471
|
-
// src/
|
4499
|
+
// src/molecules/Checkbox/Checkbox.tsx
|
4472
4500
|
var Checkbox2 = React30.forwardRef(
|
4473
4501
|
(_a, ref) => {
|
4474
4502
|
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"]);
|
@@ -4505,14 +4533,14 @@ var CheckboxSkeleton = () => /* @__PURE__ */ React30.createElement("div", {
|
|
4505
4533
|
Checkbox2.Skeleton = CheckboxSkeleton;
|
4506
4534
|
Checkbox2.Skeleton.displayName = "Checkbox.Skeleton";
|
4507
4535
|
|
4508
|
-
// src/
|
4536
|
+
// src/molecules/CheckboxGroup/CheckboxGroup.tsx
|
4509
4537
|
import React37, { useState as useState3 } from "react";
|
4510
4538
|
import uniqueId from "lodash/uniqueId";
|
4511
4539
|
|
4512
|
-
// src/
|
4540
|
+
// src/atoms/InputGroup/InputGroup.tsx
|
4513
4541
|
import React32 from "react";
|
4514
4542
|
|
4515
|
-
// src/
|
4543
|
+
// src/molecules/Grid/Grid.tsx
|
4516
4544
|
import React31 from "react";
|
4517
4545
|
var Grid = Tailwindify(
|
4518
4546
|
({
|
@@ -4573,7 +4601,7 @@ var Grid = Tailwindify(
|
|
4573
4601
|
}
|
4574
4602
|
);
|
4575
4603
|
|
4576
|
-
// src/
|
4604
|
+
// src/atoms/InputGroup/InputGroup.tsx
|
4577
4605
|
var gridColumnStyles = {
|
4578
4606
|
"1": "grid-cols-1",
|
4579
4607
|
"2": "grid-cols-2",
|
@@ -4688,6 +4716,7 @@ var LabelText = ({
|
|
4688
4716
|
content: helpTooltip,
|
4689
4717
|
placement: helpTooltipPlacement
|
4690
4718
|
}, /* @__PURE__ */ React36.createElement("span", {
|
4719
|
+
tabIndex: 0,
|
4691
4720
|
className: tw("text-grey-30 flex items-center cursor-pointer ml-2")
|
4692
4721
|
}, /* @__PURE__ */ React36.createElement(InlineIcon, {
|
4693
4722
|
icon: import_questionMark.default,
|
@@ -4788,7 +4817,7 @@ var getLabelControlProps = (_a) => {
|
|
4788
4817
|
};
|
4789
4818
|
};
|
4790
4819
|
|
4791
|
-
// src/
|
4820
|
+
// src/molecules/CheckboxGroup/CheckboxGroup.tsx
|
4792
4821
|
var isCheckbox = (c) => {
|
4793
4822
|
return React37.isValidElement(c) && c.type === Checkbox2;
|
4794
4823
|
};
|
@@ -4853,7 +4882,7 @@ var CheckboxGroupSkeleton = ({ options = 2 }) => {
|
|
4853
4882
|
CheckboxGroup.Skeleton = CheckboxGroupSkeleton;
|
4854
4883
|
CheckboxGroup.Skeleton.displayName = "CheckboxGroup.Skeleton";
|
4855
4884
|
|
4856
|
-
// src/
|
4885
|
+
// src/molecules/ChoiceChip/ChoiceChip.tsx
|
4857
4886
|
import React38, { useState as useState4 } from "react";
|
4858
4887
|
var ChoiceChip = (_a) => {
|
4859
4888
|
var _b = _a, { text, dense, defaultValue, value, onChange } = _b, rest = __objRest(_b, ["text", "dense", "defaultValue", "value", "onChange"]);
|
@@ -4882,7 +4911,7 @@ var ChoiceChip = (_a) => {
|
|
4882
4911
|
}), text);
|
4883
4912
|
};
|
4884
4913
|
|
4885
|
-
// src/
|
4914
|
+
// src/molecules/Combobox/Combobox.tsx
|
4886
4915
|
import React41, { useEffect as useEffect4, useRef as useRef5, useState as useState5 } from "react";
|
4887
4916
|
import { useOverlayPosition as useOverlayPosition2 } from "@react-aria/overlays";
|
4888
4917
|
import { useCombobox } from "downshift";
|
@@ -4890,13 +4919,13 @@ import omit6 from "lodash/omit";
|
|
4890
4919
|
import uniqueId2 from "lodash/uniqueId";
|
4891
4920
|
import { matchSorter } from "match-sorter";
|
4892
4921
|
|
4893
|
-
// src/
|
4922
|
+
// src/molecules/Popover/PopoverWrapper.tsx
|
4894
4923
|
import React40 from "react";
|
4895
4924
|
import { FocusScope } from "@react-aria/focus";
|
4896
4925
|
import { OverlayContainer as OverlayContainer2, useModal, useOverlay } from "@react-aria/overlays";
|
4897
4926
|
import { mergeProps as mergeProps2 } from "@react-aria/utils";
|
4898
4927
|
|
4899
|
-
// src/
|
4928
|
+
// src/atoms/Popover/Popover.tsx
|
4900
4929
|
import React39 from "react";
|
4901
4930
|
var PopoverPanel = React39.forwardRef((_a, ref) => {
|
4902
4931
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
@@ -4914,7 +4943,7 @@ var Popover = {
|
|
4914
4943
|
Panel: PopoverPanel
|
4915
4944
|
};
|
4916
4945
|
|
4917
|
-
// src/
|
4946
|
+
// src/molecules/Popover/PopoverWrapper.tsx
|
4918
4947
|
var PopoverWrapper = React40.forwardRef((props, ref) => {
|
4919
4948
|
const _a = props, {
|
4920
4949
|
id,
|
@@ -4968,7 +4997,7 @@ var PopoverWrapper = React40.forwardRef((props, ref) => {
|
|
4968
4997
|
}), children)));
|
4969
4998
|
});
|
4970
4999
|
|
4971
|
-
// src/
|
5000
|
+
// src/molecules/Combobox/Combobox.tsx
|
4972
5001
|
var ComboboxBase = (_a) => {
|
4973
5002
|
var _b = _a, {
|
4974
5003
|
id,
|
@@ -5142,7 +5171,7 @@ var ComboboxSkeleton = () => /* @__PURE__ */ React41.createElement(LabelControl.
|
|
5142
5171
|
Combobox.Skeleton = ComboboxSkeleton;
|
5143
5172
|
Combobox.Skeleton.displayName = "Combobox.Skeleton";
|
5144
5173
|
|
5145
|
-
// src/
|
5174
|
+
// src/molecules/Container/Container.tsx
|
5146
5175
|
import React42 from "react";
|
5147
5176
|
var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React42.createElement(Box, {
|
5148
5177
|
marginLeft: "auto",
|
@@ -5157,11 +5186,11 @@ var Container2 = ({ maxWidth = "xl", children }) => /* @__PURE__ */ React42.crea
|
|
5157
5186
|
})
|
5158
5187
|
}, children);
|
5159
5188
|
|
5160
|
-
// src/
|
5189
|
+
// src/molecules/DataList/DataList.tsx
|
5161
5190
|
import React48 from "react";
|
5162
5191
|
import orderBy2 from "lodash/orderBy";
|
5163
5192
|
|
5164
|
-
// src/
|
5193
|
+
// src/molecules/Template/Template.tsx
|
5165
5194
|
import React43 from "react";
|
5166
5195
|
var Template = ({
|
5167
5196
|
children,
|
@@ -5193,13 +5222,13 @@ var Template = ({
|
|
5193
5222
|
}, children);
|
5194
5223
|
};
|
5195
5224
|
|
5196
|
-
// src/
|
5225
|
+
// src/atoms/DataList/DataList.tsx
|
5197
5226
|
import React46 from "react";
|
5198
5227
|
|
5199
|
-
// src/
|
5228
|
+
// src/atoms/Table/Table.tsx
|
5200
5229
|
import React45 from "react";
|
5201
5230
|
|
5202
|
-
// src/
|
5231
|
+
// src/atoms/RadioButton/RadioButton.tsx
|
5203
5232
|
import React44 from "react";
|
5204
5233
|
var RadioButton = React44.forwardRef(
|
5205
5234
|
(_a, ref) => {
|
@@ -5227,7 +5256,7 @@ var RadioButton = React44.forwardRef(
|
|
5227
5256
|
}
|
5228
5257
|
);
|
5229
5258
|
|
5230
|
-
// src/
|
5259
|
+
// src/atoms/Table/Table.tsx
|
5231
5260
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
5232
5261
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
5233
5262
|
var HeadContext = React45.createContext(null);
|
@@ -5330,7 +5359,7 @@ Table.Cell = React45.memo(TableCell);
|
|
5330
5359
|
Table.SortCell = React45.memo(TableSortCell);
|
5331
5360
|
Table.SelectCell = React45.memo(TableSelectCell);
|
5332
5361
|
|
5333
|
-
// src/
|
5362
|
+
// src/atoms/DataList/DataList.tsx
|
5334
5363
|
var import_chevronDown4 = __toESM(require_chevronDown());
|
5335
5364
|
var import_chevronUp3 = __toESM(require_chevronUp());
|
5336
5365
|
var getAlignClassNames2 = (align) => tw("flex items-center", {
|
@@ -5439,7 +5468,7 @@ var useTableSort = () => {
|
|
5439
5468
|
return [sort, handleSortClick];
|
5440
5469
|
};
|
5441
5470
|
|
5442
|
-
// src/
|
5471
|
+
// src/molecules/DataList/DataList.tsx
|
5443
5472
|
var DataList2 = ({ columns, rows, sticky }) => {
|
5444
5473
|
const [sort, updateSort] = useTableSort();
|
5445
5474
|
const sortedRows = orderBy2(rows, [sort == null ? void 0 : sort.key], [toSortDirection(sort == null ? void 0 : sort.direction)]);
|
@@ -5472,11 +5501,11 @@ var DataList2 = ({ columns, rows, sticky }) => {
|
|
5472
5501
|
}));
|
5473
5502
|
};
|
5474
5503
|
|
5475
|
-
// src/
|
5504
|
+
// src/molecules/DataTable/DataTable.tsx
|
5476
5505
|
import React51 from "react";
|
5477
5506
|
import orderBy3 from "lodash/orderBy";
|
5478
5507
|
|
5479
|
-
// src/
|
5508
|
+
// src/molecules/Table/Table.tsx
|
5480
5509
|
import React50 from "react";
|
5481
5510
|
|
5482
5511
|
// src/utils/table/useScrollTarget.ts
|
@@ -5496,7 +5525,7 @@ var useScrollTarget = (callback) => {
|
|
5496
5525
|
return targetRef;
|
5497
5526
|
};
|
5498
5527
|
|
5499
|
-
// src/
|
5528
|
+
// src/molecules/Table/Table.tsx
|
5500
5529
|
var Table2 = (_a) => {
|
5501
5530
|
var _b = _a, { children, onPrev, onNext } = _b, rest = __objRest(_b, ["children", "onPrev", "onNext"]);
|
5502
5531
|
const bottomRef = useScrollTarget(onNext);
|
@@ -5518,7 +5547,7 @@ Table2.Cell = Table.Cell;
|
|
5518
5547
|
Table2.SortCell = Table.SortCell;
|
5519
5548
|
Table2.SelectCell = Table.SelectCell;
|
5520
5549
|
|
5521
|
-
// src/
|
5550
|
+
// src/molecules/DataTable/DataTable.tsx
|
5522
5551
|
var DataTable = (_a) => {
|
5523
5552
|
var _b = _a, {
|
5524
5553
|
columns,
|
@@ -5568,7 +5597,7 @@ var DataTable = (_a) => {
|
|
5568
5597
|
})));
|
5569
5598
|
};
|
5570
5599
|
|
5571
|
-
// src/
|
5600
|
+
// src/molecules/Dialog/Dialog.tsx
|
5572
5601
|
import React53 from "react";
|
5573
5602
|
import { useDialog } from "@react-aria/dialog";
|
5574
5603
|
import { FocusScope as FocusScope2 } from "@react-aria/focus";
|
@@ -5577,7 +5606,7 @@ import { useId } from "@react-aria/utils";
|
|
5577
5606
|
import { useOverlayTriggerState as useOverlayTriggerState2 } from "@react-stately/overlays";
|
5578
5607
|
import omit7 from "lodash/omit";
|
5579
5608
|
|
5580
|
-
// src/
|
5609
|
+
// src/atoms/Dialog/Dialog.tsx
|
5581
5610
|
var import_confirm2 = __toESM(require_confirm());
|
5582
5611
|
var import_error2 = __toESM(require_error());
|
5583
5612
|
var import_warningSign2 = __toESM(require_warningSign());
|
@@ -5596,7 +5625,7 @@ var DIALOG_ICONS_AND_COLORS = {
|
|
5596
5625
|
}
|
5597
5626
|
};
|
5598
5627
|
|
5599
|
-
// src/
|
5628
|
+
// src/atoms/Modal/Modal.tsx
|
5600
5629
|
import React52 from "react";
|
5601
5630
|
var Modal = (_a) => {
|
5602
5631
|
var _b = _a, { children, className, open } = _b, rest = __objRest(_b, ["children", "className", "open"]);
|
@@ -5698,7 +5727,7 @@ Modal.Actions = (_a) => {
|
|
5698
5727
|
}), children);
|
5699
5728
|
};
|
5700
5729
|
|
5701
|
-
// src/
|
5730
|
+
// src/molecules/Dialog/Dialog.tsx
|
5702
5731
|
var Dialog = ({
|
5703
5732
|
title,
|
5704
5733
|
type = "confirmation",
|
@@ -5745,7 +5774,7 @@ var Dialog = ({
|
|
5745
5774
|
}, omit7(primaryAction, "text")), primaryAction.text)))))));
|
5746
5775
|
};
|
5747
5776
|
|
5748
|
-
// src/
|
5777
|
+
// src/molecules/Divider/Divider.tsx
|
5749
5778
|
import React54 from "react";
|
5750
5779
|
var sizeClasses = {
|
5751
5780
|
horizontal: {
|
@@ -5776,17 +5805,17 @@ var Divider2 = (_a) => {
|
|
5776
5805
|
}));
|
5777
5806
|
};
|
5778
5807
|
|
5779
|
-
// src/
|
5808
|
+
// src/molecules/Dropdown/Dropdown.tsx
|
5780
5809
|
import React56 from "react";
|
5781
5810
|
|
5782
|
-
// src/
|
5811
|
+
// src/molecules/Popover/Popover.tsx
|
5783
5812
|
import React55, { useRef as useRef6 } from "react";
|
5784
5813
|
import { PressResponder, usePress } from "@react-aria/interactions";
|
5785
5814
|
import { useOverlayPosition as useOverlayPosition3, useOverlayTrigger } from "@react-aria/overlays";
|
5786
5815
|
import { mergeProps as mergeProps3 } from "@react-aria/utils";
|
5787
5816
|
import { useOverlayTriggerState as useOverlayTriggerState3 } from "@react-stately/overlays";
|
5788
5817
|
|
5789
|
-
// src/
|
5818
|
+
// src/molecules/Popover/PopoverContext.tsx
|
5790
5819
|
import { createContext, useContext as useContext2 } from "react";
|
5791
5820
|
var PopoverContext = createContext(null);
|
5792
5821
|
var usePopoverContext = () => {
|
@@ -5797,7 +5826,7 @@ var usePopoverContext = () => {
|
|
5797
5826
|
return ctx;
|
5798
5827
|
};
|
5799
5828
|
|
5800
|
-
// src/
|
5829
|
+
// src/molecules/Popover/Popover.tsx
|
5801
5830
|
var Popover2 = (props) => {
|
5802
5831
|
var _a;
|
5803
5832
|
const {
|
@@ -5898,7 +5927,7 @@ var PopoverTriggerWrapper = (_a) => {
|
|
5898
5927
|
}));
|
5899
5928
|
};
|
5900
5929
|
|
5901
|
-
// src/
|
5930
|
+
// src/molecules/Dropdown/Dropdown.tsx
|
5902
5931
|
var Dropdown = ({ children, content, placement = "bottom-left" }) => {
|
5903
5932
|
return /* @__PURE__ */ React56.createElement(Popover2, {
|
5904
5933
|
type: "menu",
|
@@ -6005,12 +6034,15 @@ var DropdownItem = (_a) => {
|
|
6005
6034
|
content: tooltip,
|
6006
6035
|
placement: tooltipPlacement,
|
6007
6036
|
inline: false
|
6008
|
-
},
|
6037
|
+
}, /* @__PURE__ */ React56.createElement("div", {
|
6038
|
+
tabIndex: 0,
|
6039
|
+
className: tw("grow")
|
6040
|
+
}, itemContent)) : itemContent);
|
6009
6041
|
};
|
6010
6042
|
Dropdown.Menu = DropdownMenu;
|
6011
6043
|
Dropdown.Item = DropdownItem;
|
6012
6044
|
|
6013
|
-
// src/
|
6045
|
+
// src/molecules/DropdownMenu/DropdownMenu.tsx
|
6014
6046
|
import React60 from "react";
|
6015
6047
|
import { useFilter } from "@react-aria/i18n";
|
6016
6048
|
import { PressResponder as PressResponder2, usePress as usePress2 } from "@react-aria/interactions";
|
@@ -6022,7 +6054,7 @@ import { Item as Item4, Section } from "@react-stately/collections";
|
|
6022
6054
|
import { useMenuTriggerState } from "@react-stately/menu";
|
6023
6055
|
import { useTreeState } from "@react-stately/tree";
|
6024
6056
|
|
6025
|
-
// src/
|
6057
|
+
// src/molecules/Input/Input.tsx
|
6026
6058
|
import React58, { forwardRef, useImperativeHandle, useRef as useRef7, useState as useState6 } from "react";
|
6027
6059
|
import omit8 from "lodash/omit";
|
6028
6060
|
import toString from "lodash/toString";
|
@@ -6061,7 +6093,7 @@ var ResetIcon = ({ onClick }) => /* @__PURE__ */ React57.createElement(Icon, {
|
|
6061
6093
|
onClick
|
6062
6094
|
});
|
6063
6095
|
|
6064
|
-
// src/
|
6096
|
+
// src/molecules/Input/Input.tsx
|
6065
6097
|
var createInput = (displayName, opts = {}) => {
|
6066
6098
|
const InputComponent = forwardRef(
|
6067
6099
|
(_a, ref) => {
|
@@ -6163,7 +6195,7 @@ Input2.displayName = "Input";
|
|
6163
6195
|
Input2.Skeleton = () => /* @__PURE__ */ React58.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React58.createElement(InputBase.Skeleton, null));
|
6164
6196
|
Input2.Skeleton.displayName = "Input.Skeleton";
|
6165
6197
|
|
6166
|
-
// src/
|
6198
|
+
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
6167
6199
|
import React59 from "react";
|
6168
6200
|
var import_tick4 = __toESM(require_tick());
|
6169
6201
|
var DropdownMenu2 = React59.forwardRef(
|
@@ -6242,7 +6274,7 @@ var EmptyStateContainer2 = (_a) => {
|
|
6242
6274
|
};
|
6243
6275
|
DropdownMenu2.EmptyStateContainer = EmptyStateContainer2;
|
6244
6276
|
|
6245
|
-
// src/
|
6277
|
+
// src/molecules/DropdownMenu/utils.ts
|
6246
6278
|
import { ListCollection } from "@react-stately/list";
|
6247
6279
|
var filterCollection = (collection, inputValue, filter) => {
|
6248
6280
|
return new ListCollection(filterNodes(collection, inputValue, filter));
|
@@ -6262,7 +6294,7 @@ var filterNodes = (nodes, inputValue, filter) => {
|
|
6262
6294
|
return filteredNode;
|
6263
6295
|
};
|
6264
6296
|
|
6265
|
-
// src/
|
6297
|
+
// src/molecules/DropdownMenu/DropdownMenu.tsx
|
6266
6298
|
var DropdownMenu3 = (_a) => {
|
6267
6299
|
var _b = _a, {
|
6268
6300
|
onAction,
|
@@ -6466,11 +6498,11 @@ var getDisabledItemKeys = (children) => {
|
|
6466
6498
|
return keys.flat().filter((key) => key !== null);
|
6467
6499
|
};
|
6468
6500
|
|
6469
|
-
// src/
|
6501
|
+
// src/molecules/EmptyState/EmptyState.tsx
|
6470
6502
|
import React62 from "react";
|
6471
6503
|
import omit9 from "lodash/omit";
|
6472
6504
|
|
6473
|
-
// src/
|
6505
|
+
// src/molecules/Flexbox/FlexboxItem.tsx
|
6474
6506
|
import React61 from "react";
|
6475
6507
|
var FlexboxItem = Tailwindify(
|
6476
6508
|
({ htmlTag = "div", className, style, children, display, flex, grow, shrink, order, alignSelf }) => {
|
@@ -6490,7 +6522,7 @@ var FlexboxItem = Tailwindify(
|
|
6490
6522
|
}
|
6491
6523
|
);
|
6492
6524
|
|
6493
|
-
// src/
|
6525
|
+
// src/molecules/EmptyState/EmptyState.tsx
|
6494
6526
|
var EmptyStateLayout = /* @__PURE__ */ ((EmptyStateLayout2) => {
|
6495
6527
|
EmptyStateLayout2["CenterVertical"] = "center-vertical";
|
6496
6528
|
EmptyStateLayout2["LeftVertical"] = "left-vertical";
|
@@ -6591,7 +6623,7 @@ var EmptyState = ({
|
|
6591
6623
|
}, footer)))));
|
6592
6624
|
};
|
6593
6625
|
|
6594
|
-
// src/
|
6626
|
+
// src/molecules/Grid/GridItem.tsx
|
6595
6627
|
import React63 from "react";
|
6596
6628
|
var GridItem = Tailwindify(
|
6597
6629
|
({
|
@@ -6630,7 +6662,7 @@ var GridItem = Tailwindify(
|
|
6630
6662
|
}
|
6631
6663
|
);
|
6632
6664
|
|
6633
|
-
// src/
|
6665
|
+
// src/molecules/LineClamp/LineClamp.tsx
|
6634
6666
|
import React64 from "react";
|
6635
6667
|
var LineClamp2 = ({
|
6636
6668
|
lines,
|
@@ -6663,10 +6695,10 @@ var LineClamp2 = ({
|
|
6663
6695
|
}, clamped ? expandLabel : collapseLabel));
|
6664
6696
|
};
|
6665
6697
|
|
6666
|
-
// src/
|
6698
|
+
// src/molecules/Link/Link.tsx
|
6667
6699
|
import React66 from "react";
|
6668
6700
|
|
6669
|
-
// src/
|
6701
|
+
// src/atoms/Link/Link.tsx
|
6670
6702
|
import React65 from "react";
|
6671
6703
|
var Link = (_a) => {
|
6672
6704
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
@@ -6675,17 +6707,17 @@ var Link = (_a) => {
|
|
6675
6707
|
}, props), children);
|
6676
6708
|
};
|
6677
6709
|
|
6678
|
-
// src/
|
6710
|
+
// src/molecules/Link/Link.tsx
|
6679
6711
|
var Link2 = (props) => /* @__PURE__ */ React66.createElement(Link, __spreadValues({}, props));
|
6680
6712
|
|
6681
|
-
// src/
|
6713
|
+
// src/molecules/List/List.tsx
|
6682
6714
|
import React67 from "react";
|
6683
6715
|
var List = ({ items, renderItem, container = React67.Fragment }) => {
|
6684
6716
|
const Component = container;
|
6685
6717
|
return /* @__PURE__ */ React67.createElement(Component, null, items.map(renderItem));
|
6686
6718
|
};
|
6687
6719
|
|
6688
|
-
// src/
|
6720
|
+
// src/molecules/ListItem/ListItem.tsx
|
6689
6721
|
import React68 from "react";
|
6690
6722
|
var ListItem = ({ name, icon, active = false }) => {
|
6691
6723
|
return /* @__PURE__ */ React68.createElement(Flexbox, {
|
@@ -6704,7 +6736,7 @@ var ListItem = ({ name, icon, active = false }) => {
|
|
6704
6736
|
}), name));
|
6705
6737
|
};
|
6706
6738
|
|
6707
|
-
// src/
|
6739
|
+
// src/molecules/Modal/Modal.tsx
|
6708
6740
|
import React70 from "react";
|
6709
6741
|
import { useDialog as useDialog2 } from "@react-aria/dialog";
|
6710
6742
|
import { FocusScope as FocusScope3 } from "@react-aria/focus";
|
@@ -6714,7 +6746,7 @@ import { useOverlayTriggerState as useOverlayTriggerState4 } from "@react-statel
|
|
6714
6746
|
import castArray from "lodash/castArray";
|
6715
6747
|
import omit10 from "lodash/omit";
|
6716
6748
|
|
6717
|
-
// src/
|
6749
|
+
// src/molecules/Tabs/Tabs.tsx
|
6718
6750
|
import React69, { useEffect as useEffect5, useLayoutEffect as useLayoutEffect2, useRef as useRef8, useState as useState7 } from "react";
|
6719
6751
|
import isNumber5 from "lodash/isNumber";
|
6720
6752
|
import kebabCase from "lodash/kebabCase";
|
@@ -7004,7 +7036,7 @@ var Tabs = createTabsComponent(Tab, TabItem, "Tabs", (children, selected) => /*
|
|
7004
7036
|
(node, index) => (node == null ? void 0 : node.props.value) === selected || index === selected
|
7005
7037
|
)));
|
7006
7038
|
|
7007
|
-
// src/
|
7039
|
+
// src/molecules/Modal/Modal.tsx
|
7008
7040
|
var import_cross5 = __toESM(require_cross());
|
7009
7041
|
var Modal2 = ({
|
7010
7042
|
title,
|
@@ -7072,14 +7104,14 @@ var ModalTabs = createTabsComponent(
|
|
7072
7104
|
)))
|
7073
7105
|
);
|
7074
7106
|
|
7075
|
-
// src/
|
7107
|
+
// src/molecules/MultiInput/MultiInput.tsx
|
7076
7108
|
import React72, { useEffect as useEffect6, useRef as useRef9, useState as useState8 } from "react";
|
7077
7109
|
import castArray2 from "lodash/castArray";
|
7078
7110
|
import identity from "lodash/identity";
|
7079
7111
|
import omit11 from "lodash/omit";
|
7080
7112
|
import uniqueId4 from "lodash/uniqueId";
|
7081
7113
|
|
7082
|
-
// src/
|
7114
|
+
// src/molecules/MultiInput/InputChip.tsx
|
7083
7115
|
import React71 from "react";
|
7084
7116
|
var import_smallCross = __toESM(require_smallCross());
|
7085
7117
|
var InputChip = React71.forwardRef(
|
@@ -7113,7 +7145,7 @@ var InputChip = React71.forwardRef(
|
|
7113
7145
|
}
|
7114
7146
|
);
|
7115
7147
|
|
7116
|
-
// src/
|
7148
|
+
// src/molecules/MultiInput/MultiInput.tsx
|
7117
7149
|
var MultiInputBase = (_a) => {
|
7118
7150
|
var _b = _a, {
|
7119
7151
|
id,
|
@@ -7321,7 +7353,7 @@ var MultiInputSkeleton = () => /* @__PURE__ */ React72.createElement(LabelContro
|
|
7321
7353
|
MultiInput.Skeleton = MultiInputSkeleton;
|
7322
7354
|
MultiInput.Skeleton.displayName = "MultiInput.Skeleton";
|
7323
7355
|
|
7324
|
-
// src/
|
7356
|
+
// src/molecules/MultiSelect/MultiSelect.tsx
|
7325
7357
|
import React73, { useRef as useRef10, useState as useState9 } from "react";
|
7326
7358
|
import { useOverlayPosition as useOverlayPosition5 } from "@react-aria/overlays";
|
7327
7359
|
import { useCombobox as useCombobox2, useMultipleSelection } from "downshift";
|
@@ -7558,7 +7590,7 @@ var MultiSelectSkeleton = () => /* @__PURE__ */ React73.createElement(LabelContr
|
|
7558
7590
|
MultiSelect.Skeleton = MultiSelectSkeleton;
|
7559
7591
|
MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
|
7560
7592
|
|
7561
|
-
// src/
|
7593
|
+
// src/molecules/NativeSelect/NativeSelect.tsx
|
7562
7594
|
import React74, { useRef as useRef11 } from "react";
|
7563
7595
|
import omit13 from "lodash/omit";
|
7564
7596
|
import uniqueId6 from "lodash/uniqueId";
|
@@ -7657,7 +7689,7 @@ var NativeSelectSkeleton = () => /* @__PURE__ */ React74.createElement(LabelCont
|
|
7657
7689
|
NativeSelect.Skeleton = NativeSelectSkeleton;
|
7658
7690
|
NativeSelect.Skeleton.displayName = "NativeSelect.Skeleton";
|
7659
7691
|
|
7660
|
-
// src/
|
7692
|
+
// src/molecules/PageHeader/PageHeader.tsx
|
7661
7693
|
import React75 from "react";
|
7662
7694
|
import castArray3 from "lodash/castArray";
|
7663
7695
|
import omit14 from "lodash/omit";
|
@@ -7706,11 +7738,11 @@ var PageHeader = ({
|
|
7706
7738
|
}, omit14(primaryAction, "text")), primaryAction.text)));
|
7707
7739
|
};
|
7708
7740
|
|
7709
|
-
// src/
|
7741
|
+
// src/molecules/Pagination/Pagination.tsx
|
7710
7742
|
import React77 from "react";
|
7711
7743
|
import clamp from "lodash/clamp";
|
7712
7744
|
|
7713
|
-
// src/
|
7745
|
+
// src/molecules/Select/Select.tsx
|
7714
7746
|
import React76, { useRef as useRef12, useState as useState10 } from "react";
|
7715
7747
|
import { useOverlayPosition as useOverlayPosition6 } from "@react-aria/overlays";
|
7716
7748
|
import { useSelect } from "downshift";
|
@@ -7942,7 +7974,7 @@ var SelectSkeleton = () => /* @__PURE__ */ React76.createElement(LabelControl.Sk
|
|
7942
7974
|
Select2.Skeleton = SelectSkeleton;
|
7943
7975
|
Select2.Skeleton.displayName = "Select.Skeleton";
|
7944
7976
|
|
7945
|
-
// src/
|
7977
|
+
// src/molecules/Pagination/Pagination.tsx
|
7946
7978
|
var import_chevronBackward = __toESM(require_chevronBackward());
|
7947
7979
|
var import_chevronForward = __toESM(require_chevronForward());
|
7948
7980
|
var import_chevronLeft3 = __toESM(require_chevronLeft());
|
@@ -8037,11 +8069,11 @@ var Pagination = ({
|
|
8037
8069
|
})), /* @__PURE__ */ React77.createElement("div", null));
|
8038
8070
|
};
|
8039
8071
|
|
8040
|
-
// src/
|
8072
|
+
// src/molecules/PopoverDialog/PopoverDialog.tsx
|
8041
8073
|
import React79 from "react";
|
8042
8074
|
import omit16 from "lodash/omit";
|
8043
8075
|
|
8044
|
-
// src/
|
8076
|
+
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
8045
8077
|
import React78 from "react";
|
8046
8078
|
var Header = (_a) => {
|
8047
8079
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
@@ -8084,7 +8116,7 @@ var PopoverDialog = {
|
|
8084
8116
|
Actions: Actions2
|
8085
8117
|
};
|
8086
8118
|
|
8087
|
-
// src/
|
8119
|
+
// src/molecules/PopoverDialog/PopoverDialog.tsx
|
8088
8120
|
var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
|
8089
8121
|
const wrapPromptWithBody = (child) => {
|
8090
8122
|
if (isComponentType(child, PopoverDialog2.Prompt)) {
|
@@ -8117,14 +8149,14 @@ var Prompt = ({ children }) => /* @__PURE__ */ React79.createElement(PopoverDial
|
|
8117
8149
|
Prompt.displayName = "PopoverDialog.Prompt";
|
8118
8150
|
PopoverDialog2.Prompt = Prompt;
|
8119
8151
|
|
8120
|
-
// src/
|
8152
|
+
// src/molecules/Portal/Portal.tsx
|
8121
8153
|
import { createPortal } from "react-dom";
|
8122
8154
|
var Portal = ({ children, to }) => createPortal(children, to);
|
8123
8155
|
|
8124
|
-
// src/
|
8156
|
+
// src/molecules/ProgressBar/ProgressBar.tsx
|
8125
8157
|
import React81 from "react";
|
8126
8158
|
|
8127
|
-
// src/
|
8159
|
+
// src/atoms/ProgressBar/ProgressBar.tsx
|
8128
8160
|
import React80 from "react";
|
8129
8161
|
import clamp2 from "lodash/clamp";
|
8130
8162
|
var ProgressBar = (_a) => {
|
@@ -8170,7 +8202,7 @@ ProgressBar.Labels = (_a) => {
|
|
8170
8202
|
}), endLabel));
|
8171
8203
|
};
|
8172
8204
|
|
8173
|
-
// src/
|
8205
|
+
// src/molecules/ProgressBar/ProgressBar.tsx
|
8174
8206
|
var ProgressBar2 = (props) => {
|
8175
8207
|
const {
|
8176
8208
|
value,
|
@@ -8206,7 +8238,7 @@ var ProgressBarSkeleton = () => /* @__PURE__ */ React81.createElement(Skeleton,
|
|
8206
8238
|
ProgressBar2.Skeleton = ProgressBarSkeleton;
|
8207
8239
|
ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
|
8208
8240
|
|
8209
|
-
// src/
|
8241
|
+
// src/molecules/RadioButton/RadioButton.tsx
|
8210
8242
|
import React82 from "react";
|
8211
8243
|
var RadioButton2 = React82.forwardRef(
|
8212
8244
|
(_a, ref) => {
|
@@ -8244,7 +8276,7 @@ var RadioButtonSkeleton = () => /* @__PURE__ */ React82.createElement("div", {
|
|
8244
8276
|
RadioButton2.Skeleton = RadioButtonSkeleton;
|
8245
8277
|
RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
|
8246
8278
|
|
8247
|
-
// src/
|
8279
|
+
// src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
|
8248
8280
|
import React83 from "react";
|
8249
8281
|
import uniqueId8 from "lodash/uniqueId";
|
8250
8282
|
var isRadioButton = (c) => {
|
@@ -8323,11 +8355,11 @@ var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
|
|
8323
8355
|
RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
|
8324
8356
|
RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
|
8325
8357
|
|
8326
|
-
// src/
|
8358
|
+
// src/molecules/Section/Section.tsx
|
8327
8359
|
import React85 from "react";
|
8328
8360
|
import castArray4 from "lodash/castArray";
|
8329
8361
|
|
8330
|
-
// src/
|
8362
|
+
// src/atoms/Section/Section.tsx
|
8331
8363
|
import React84 from "react";
|
8332
8364
|
var Section2 = (_a) => {
|
8333
8365
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
@@ -8376,7 +8408,7 @@ Section2.Body = (_a) => {
|
|
8376
8408
|
}, children));
|
8377
8409
|
};
|
8378
8410
|
|
8379
|
-
// src/
|
8411
|
+
// src/molecules/Section/Section.tsx
|
8380
8412
|
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) => {
|
8381
8413
|
var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
|
8382
8414
|
return /* @__PURE__ */ React85.createElement(SecondaryButton, __spreadValues({
|
@@ -8384,7 +8416,7 @@ var Section3 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React
|
|
8384
8416
|
}, action), text);
|
8385
8417
|
}))), /* @__PURE__ */ React85.createElement(Divider2, null)), /* @__PURE__ */ React85.createElement(Section2.Body, null, children));
|
8386
8418
|
|
8387
|
-
// src/
|
8419
|
+
// src/molecules/SegmentedControl/SegmentedControl.tsx
|
8388
8420
|
import React86 from "react";
|
8389
8421
|
var SegmentedControl = (_a) => {
|
8390
8422
|
var _b = _a, {
|
@@ -8474,15 +8506,26 @@ var getCommonClassNames = (dense, selected) => tw(
|
|
8474
8506
|
}
|
8475
8507
|
);
|
8476
8508
|
|
8477
|
-
// src/
|
8478
|
-
import React88 from "react";
|
8479
|
-
|
8480
|
-
// src/common/Stepper/Stepper.tsx
|
8509
|
+
// src/molecules/Spacing/Spacing.tsx
|
8481
8510
|
import React87 from "react";
|
8511
|
+
var Spacing = (_a) => {
|
8512
|
+
var _b = _a, { gap, row } = _b, rest = __objRest(_b, ["gap", "row"]);
|
8513
|
+
return /* @__PURE__ */ React87.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
8514
|
+
display: "flex",
|
8515
|
+
flexDirection: row ? "row" : "column",
|
8516
|
+
gap
|
8517
|
+
}));
|
8518
|
+
};
|
8519
|
+
|
8520
|
+
// src/molecules/Stepper/Stepper.tsx
|
8521
|
+
import React89 from "react";
|
8522
|
+
|
8523
|
+
// src/atoms/Stepper/Stepper.tsx
|
8524
|
+
import React88 from "react";
|
8482
8525
|
var import_tick5 = __toESM(require_tick());
|
8483
8526
|
var Stepper = (_a) => {
|
8484
8527
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8485
|
-
return /* @__PURE__ */
|
8528
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8486
8529
|
className: classNames(className)
|
8487
8530
|
}));
|
8488
8531
|
};
|
@@ -8496,7 +8539,7 @@ var ConnectorContainer = (_a) => {
|
|
8496
8539
|
"completed",
|
8497
8540
|
"dense"
|
8498
8541
|
]);
|
8499
|
-
return /* @__PURE__ */
|
8542
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8500
8543
|
className: classNames(
|
8501
8544
|
tw("absolute w-full -left-1/2", {
|
8502
8545
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -8508,7 +8551,7 @@ var ConnectorContainer = (_a) => {
|
|
8508
8551
|
};
|
8509
8552
|
var Connector = (_a) => {
|
8510
8553
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
8511
|
-
return /* @__PURE__ */
|
8554
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8512
8555
|
className: classNames(
|
8513
8556
|
tw("w-full", {
|
8514
8557
|
"bg-grey-20": !completed,
|
@@ -8522,7 +8565,7 @@ var Connector = (_a) => {
|
|
8522
8565
|
};
|
8523
8566
|
var Step = (_a) => {
|
8524
8567
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
8525
|
-
return /* @__PURE__ */
|
8568
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8526
8569
|
className: classNames(
|
8527
8570
|
tw("flex flex-col items-center text-grey-90 relative text-center", {
|
8528
8571
|
"text-grey-20": state === "inactive"
|
@@ -8543,13 +8586,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
8543
8586
|
});
|
8544
8587
|
var Indicator = (_a) => {
|
8545
8588
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
8546
|
-
return /* @__PURE__ */
|
8589
|
+
return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8547
8590
|
className: classNames(
|
8548
8591
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
8549
8592
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
8550
8593
|
className
|
8551
8594
|
)
|
8552
|
-
}), state === "completed" ? /* @__PURE__ */
|
8595
|
+
}), state === "completed" ? /* @__PURE__ */ React88.createElement(InlineIcon, {
|
8553
8596
|
icon: import_tick5.default
|
8554
8597
|
}) : dense ? null : children);
|
8555
8598
|
};
|
@@ -8558,27 +8601,27 @@ Stepper.Step = Step;
|
|
8558
8601
|
ConnectorContainer.Connector = Connector;
|
8559
8602
|
Stepper.ConnectorContainer = ConnectorContainer;
|
8560
8603
|
|
8561
|
-
// src/
|
8604
|
+
// src/molecules/Stepper/Stepper.tsx
|
8562
8605
|
var Stepper2 = ({ children, activeIndex, dense }) => {
|
8563
|
-
const steps =
|
8564
|
-
return /* @__PURE__ */
|
8606
|
+
const steps = React89.Children.count(children);
|
8607
|
+
return /* @__PURE__ */ React89.createElement(Stepper, {
|
8565
8608
|
role: "list"
|
8566
|
-
}, /* @__PURE__ */
|
8609
|
+
}, /* @__PURE__ */ React89.createElement(Template, {
|
8567
8610
|
columns: steps
|
8568
|
-
},
|
8611
|
+
}, React89.Children.map(children, (child, index) => {
|
8569
8612
|
if (!isComponentType(child, Step2)) {
|
8570
8613
|
return new Error("<Stepper> can only have <Stepper.Step> components as children");
|
8571
8614
|
} else {
|
8572
8615
|
const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
|
8573
|
-
return /* @__PURE__ */
|
8616
|
+
return /* @__PURE__ */ React89.createElement(Stepper.Step, {
|
8574
8617
|
state,
|
8575
8618
|
"aria-current": state === "active" ? "step" : false,
|
8576
8619
|
role: "listitem"
|
8577
|
-
}, index > 0 && index <= steps && /* @__PURE__ */
|
8620
|
+
}, index > 0 && index <= steps && /* @__PURE__ */ React89.createElement(Stepper.ConnectorContainer, {
|
8578
8621
|
dense
|
8579
|
-
}, /* @__PURE__ */
|
8622
|
+
}, /* @__PURE__ */ React89.createElement(Stepper.ConnectorContainer.Connector, {
|
8580
8623
|
completed: state === "completed" || state === "active"
|
8581
|
-
})), /* @__PURE__ */
|
8624
|
+
})), /* @__PURE__ */ React89.createElement(Stepper.Step.Indicator, {
|
8582
8625
|
state,
|
8583
8626
|
dense
|
8584
8627
|
}, index + 1), child.props.children);
|
@@ -8589,17 +8632,17 @@ var Step2 = () => null;
|
|
8589
8632
|
Step2.displayName = "Stepper.Step";
|
8590
8633
|
Stepper2.Step = Step2;
|
8591
8634
|
|
8592
|
-
// src/
|
8593
|
-
import
|
8635
|
+
// src/molecules/Switch/Switch.tsx
|
8636
|
+
import React91 from "react";
|
8594
8637
|
|
8595
|
-
// src/
|
8596
|
-
import
|
8597
|
-
var Switch =
|
8638
|
+
// src/atoms/Switch/Switch.tsx
|
8639
|
+
import React90 from "react";
|
8640
|
+
var Switch = React90.forwardRef(
|
8598
8641
|
(_a, ref) => {
|
8599
8642
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
8600
|
-
return /* @__PURE__ */
|
8643
|
+
return /* @__PURE__ */ React90.createElement("span", {
|
8601
8644
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
8602
|
-
}, /* @__PURE__ */
|
8645
|
+
}, /* @__PURE__ */ React90.createElement("input", __spreadProps(__spreadValues({
|
8603
8646
|
id,
|
8604
8647
|
ref,
|
8605
8648
|
type: "checkbox",
|
@@ -8618,7 +8661,7 @@ var Switch = React89.forwardRef(
|
|
8618
8661
|
),
|
8619
8662
|
readOnly,
|
8620
8663
|
disabled
|
8621
|
-
})), /* @__PURE__ */
|
8664
|
+
})), /* @__PURE__ */ React90.createElement("span", {
|
8622
8665
|
className: tw(
|
8623
8666
|
"pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
8624
8667
|
"bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
|
@@ -8630,13 +8673,13 @@ var Switch = React89.forwardRef(
|
|
8630
8673
|
}
|
8631
8674
|
);
|
8632
8675
|
|
8633
|
-
// src/
|
8634
|
-
var Switch2 =
|
8676
|
+
// src/molecules/Switch/Switch.tsx
|
8677
|
+
var Switch2 = React91.forwardRef(
|
8635
8678
|
(_a, ref) => {
|
8636
8679
|
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"]);
|
8637
8680
|
var _a2;
|
8638
8681
|
const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
|
8639
|
-
return !readOnly || isChecked ? /* @__PURE__ */
|
8682
|
+
return !readOnly || isChecked ? /* @__PURE__ */ React91.createElement(ControlLabel, {
|
8640
8683
|
htmlFor: id,
|
8641
8684
|
label: children,
|
8642
8685
|
"aria-label": ariaLabel,
|
@@ -8644,7 +8687,7 @@ var Switch2 = React90.forwardRef(
|
|
8644
8687
|
readOnly,
|
8645
8688
|
disabled,
|
8646
8689
|
style: { gap: "0 8px" }
|
8647
|
-
}, !readOnly && /* @__PURE__ */
|
8690
|
+
}, !readOnly && /* @__PURE__ */ React91.createElement(Switch, __spreadProps(__spreadValues({
|
8648
8691
|
id,
|
8649
8692
|
ref,
|
8650
8693
|
name
|
@@ -8655,20 +8698,20 @@ var Switch2 = React90.forwardRef(
|
|
8655
8698
|
}
|
8656
8699
|
);
|
8657
8700
|
Switch2.displayName = "Switch";
|
8658
|
-
var SwitchSkeleton = () => /* @__PURE__ */
|
8701
|
+
var SwitchSkeleton = () => /* @__PURE__ */ React91.createElement("div", {
|
8659
8702
|
className: tw("flex gap-3")
|
8660
|
-
}, /* @__PURE__ */
|
8703
|
+
}, /* @__PURE__ */ React91.createElement(Skeleton, {
|
8661
8704
|
height: 20,
|
8662
8705
|
width: 35
|
8663
|
-
}), /* @__PURE__ */
|
8706
|
+
}), /* @__PURE__ */ React91.createElement(Skeleton, {
|
8664
8707
|
height: 20,
|
8665
8708
|
width: 150
|
8666
8709
|
}));
|
8667
8710
|
Switch2.Skeleton = SwitchSkeleton;
|
8668
8711
|
Switch2.Skeleton.displayName = "Switch.Skeleton ";
|
8669
8712
|
|
8670
|
-
// src/
|
8671
|
-
import
|
8713
|
+
// src/molecules/SwitchGroup/SwitchGroup.tsx
|
8714
|
+
import React92, { useState as useState11 } from "react";
|
8672
8715
|
import uniqueId9 from "lodash/uniqueId";
|
8673
8716
|
var SwitchGroup = (_a) => {
|
8674
8717
|
var _b = _a, {
|
@@ -8700,11 +8743,11 @@ var SwitchGroup = (_a) => {
|
|
8700
8743
|
setSelectedItems(updated);
|
8701
8744
|
onChange == null ? void 0 : onChange(updated);
|
8702
8745
|
};
|
8703
|
-
return /* @__PURE__ */
|
8746
|
+
return /* @__PURE__ */ React92.createElement(LabelControl, __spreadValues(__spreadValues({
|
8704
8747
|
fieldset: true
|
8705
|
-
}, labelControlProps), errorProps), /* @__PURE__ */
|
8748
|
+
}, labelControlProps), errorProps), /* @__PURE__ */ React92.createElement(InputGroup, {
|
8706
8749
|
cols
|
8707
|
-
},
|
8750
|
+
}, React92.Children.map(children, (c) => {
|
8708
8751
|
var _a3, _b2, _c, _d;
|
8709
8752
|
if (!isComponentType(c, Switch2)) {
|
8710
8753
|
return null;
|
@@ -8712,7 +8755,7 @@ var SwitchGroup = (_a) => {
|
|
8712
8755
|
const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
|
8713
8756
|
const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
|
8714
8757
|
const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
|
8715
|
-
return
|
8758
|
+
return React92.cloneElement(c, {
|
8716
8759
|
defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
|
8717
8760
|
checked: (_c = c.props.checked) != null ? _c : checked,
|
8718
8761
|
onChange: (_d = c.props.onChange) != null ? _d : handleChange,
|
@@ -8722,20 +8765,20 @@ var SwitchGroup = (_a) => {
|
|
8722
8765
|
})));
|
8723
8766
|
};
|
8724
8767
|
var SwitchGroupSkeleton = ({ options = 2 }) => {
|
8725
|
-
return /* @__PURE__ */
|
8768
|
+
return /* @__PURE__ */ React92.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React92.createElement("div", {
|
8726
8769
|
className: tw("flex flex-wrap flex-col gap-2")
|
8727
|
-
}, Array.from({ length: options }).map((_, key) => /* @__PURE__ */
|
8770
|
+
}, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React92.createElement(Switch2.Skeleton, {
|
8728
8771
|
key
|
8729
8772
|
}))));
|
8730
8773
|
};
|
8731
8774
|
SwitchGroup.Skeleton = SwitchGroupSkeleton;
|
8732
8775
|
SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
|
8733
8776
|
|
8734
|
-
// src/
|
8735
|
-
import
|
8777
|
+
// src/molecules/TagLabel/TagLabel.tsx
|
8778
|
+
import React93 from "react";
|
8736
8779
|
var TagLabel = (_a) => {
|
8737
8780
|
var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
|
8738
|
-
return /* @__PURE__ */
|
8781
|
+
return /* @__PURE__ */ React93.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
8739
8782
|
className: tw("rounded-full text-white bg-primary-70", {
|
8740
8783
|
"py-2 px-4 typography-caption": !dense,
|
8741
8784
|
"py-2 px-3 typography-caption-small": dense
|
@@ -8743,15 +8786,15 @@ var TagLabel = (_a) => {
|
|
8743
8786
|
}), title);
|
8744
8787
|
};
|
8745
8788
|
|
8746
|
-
// src/
|
8747
|
-
import
|
8789
|
+
// src/molecules/Textarea/Textarea.tsx
|
8790
|
+
import React94, { useRef as useRef13, useState as useState12 } from "react";
|
8748
8791
|
import omit17 from "lodash/omit";
|
8749
8792
|
import toString2 from "lodash/toString";
|
8750
8793
|
import uniqueId10 from "lodash/uniqueId";
|
8751
|
-
var TextareaBase =
|
8794
|
+
var TextareaBase = React94.forwardRef(
|
8752
8795
|
(_a, ref) => {
|
8753
8796
|
var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
|
8754
|
-
return /* @__PURE__ */
|
8797
|
+
return /* @__PURE__ */ React94.createElement("textarea", __spreadProps(__spreadValues({
|
8755
8798
|
ref
|
8756
8799
|
}, props), {
|
8757
8800
|
readOnly,
|
@@ -8759,10 +8802,10 @@ var TextareaBase = React93.forwardRef(
|
|
8759
8802
|
}));
|
8760
8803
|
}
|
8761
8804
|
);
|
8762
|
-
TextareaBase.Skeleton = () => /* @__PURE__ */
|
8805
|
+
TextareaBase.Skeleton = () => /* @__PURE__ */ React94.createElement(Skeleton, {
|
8763
8806
|
height: 58
|
8764
8807
|
});
|
8765
|
-
var Textarea =
|
8808
|
+
var Textarea = React94.forwardRef((props, ref) => {
|
8766
8809
|
var _a, _b, _c;
|
8767
8810
|
const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
|
8768
8811
|
const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
|
@@ -8770,12 +8813,12 @@ var Textarea = React93.forwardRef((props, ref) => {
|
|
8770
8813
|
const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
|
8771
8814
|
const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
|
8772
8815
|
const baseProps = omit17(props, Object.keys(labelControlProps));
|
8773
|
-
return /* @__PURE__ */
|
8816
|
+
return /* @__PURE__ */ React94.createElement(LabelControl, __spreadValues({
|
8774
8817
|
id: `${id.current}-label`,
|
8775
8818
|
htmlFor: id.current,
|
8776
8819
|
messageId: errorMessageId,
|
8777
8820
|
length: value !== void 0 ? toString2(value).length : void 0
|
8778
|
-
}, labelControlProps), /* @__PURE__ */
|
8821
|
+
}, labelControlProps), /* @__PURE__ */ React94.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
|
8779
8822
|
ref
|
8780
8823
|
}, baseProps), errorProps), {
|
8781
8824
|
id: id.current,
|
@@ -8792,48 +8835,48 @@ var Textarea = React93.forwardRef((props, ref) => {
|
|
8792
8835
|
})));
|
8793
8836
|
});
|
8794
8837
|
Textarea.displayName = "Textarea";
|
8795
|
-
var TextAreaSkeleton = () => /* @__PURE__ */
|
8838
|
+
var TextAreaSkeleton = () => /* @__PURE__ */ React94.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React94.createElement(TextareaBase.Skeleton, null));
|
8796
8839
|
Textarea.Skeleton = TextAreaSkeleton;
|
8797
8840
|
Textarea.Skeleton.displayName = "Textarea.Skeleton";
|
8798
8841
|
|
8799
|
-
// src/
|
8800
|
-
import
|
8842
|
+
// src/molecules/Timeline/Timeline.tsx
|
8843
|
+
import React96 from "react";
|
8801
8844
|
|
8802
|
-
// src/
|
8803
|
-
import
|
8845
|
+
// src/atoms/Timeline/Timeline.tsx
|
8846
|
+
import React95 from "react";
|
8804
8847
|
var Timeline = (_a) => {
|
8805
8848
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8806
|
-
return /* @__PURE__ */
|
8849
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8807
8850
|
className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
|
8808
8851
|
}));
|
8809
8852
|
};
|
8810
8853
|
var Content2 = (_a) => {
|
8811
8854
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8812
|
-
return /* @__PURE__ */
|
8855
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8813
8856
|
className: classNames(tw("pb-6"), className)
|
8814
8857
|
}));
|
8815
8858
|
};
|
8816
8859
|
var Separator2 = (_a) => {
|
8817
8860
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8818
|
-
return /* @__PURE__ */
|
8861
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8819
8862
|
className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
|
8820
8863
|
}));
|
8821
8864
|
};
|
8822
8865
|
var LineContainer = (_a) => {
|
8823
8866
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8824
|
-
return /* @__PURE__ */
|
8867
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8825
8868
|
className: classNames(tw("flex justify-center py-1"), className)
|
8826
8869
|
}));
|
8827
8870
|
};
|
8828
8871
|
var Line = (_a) => {
|
8829
8872
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8830
|
-
return /* @__PURE__ */
|
8873
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8831
8874
|
className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
|
8832
8875
|
}));
|
8833
8876
|
};
|
8834
8877
|
var Dot = (_a) => {
|
8835
8878
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8836
|
-
return /* @__PURE__ */
|
8879
|
+
return /* @__PURE__ */ React95.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8837
8880
|
className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
|
8838
8881
|
}));
|
8839
8882
|
};
|
@@ -8843,57 +8886,57 @@ Timeline.Separator = Separator2;
|
|
8843
8886
|
Timeline.LineContainer = LineContainer;
|
8844
8887
|
Timeline.Content = Content2;
|
8845
8888
|
|
8846
|
-
// src/
|
8889
|
+
// src/molecules/Timeline/Timeline.tsx
|
8847
8890
|
var import_error4 = __toESM(require_error());
|
8848
8891
|
var import_time = __toESM(require_time());
|
8849
8892
|
var import_warningSign4 = __toESM(require_warningSign());
|
8850
8893
|
var TimelineItem = () => null;
|
8851
|
-
var Timeline2 = ({ children }) => /* @__PURE__ */
|
8894
|
+
var Timeline2 = ({ children }) => /* @__PURE__ */ React96.createElement("div", null, React96.Children.map(children, (item) => {
|
8852
8895
|
if (!isComponentType(item, TimelineItem)) {
|
8853
8896
|
throw new Error("<Timeline> can only have <Timeline.Item> components as children");
|
8854
8897
|
} else {
|
8855
8898
|
const { props, key } = item;
|
8856
|
-
return /* @__PURE__ */
|
8899
|
+
return /* @__PURE__ */ React96.createElement(Timeline, {
|
8857
8900
|
key: key != null ? key : props.title
|
8858
|
-
}, /* @__PURE__ */
|
8901
|
+
}, /* @__PURE__ */ React96.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React96.createElement(Icon, {
|
8859
8902
|
icon: import_error4.default,
|
8860
8903
|
color: "error-30"
|
8861
|
-
}) : props.variant === "warning" ? /* @__PURE__ */
|
8904
|
+
}) : props.variant === "warning" ? /* @__PURE__ */ React96.createElement(Icon, {
|
8862
8905
|
icon: import_warningSign4.default,
|
8863
8906
|
color: "warning-30"
|
8864
|
-
}) : props.variant === "info" ? /* @__PURE__ */
|
8907
|
+
}) : props.variant === "info" ? /* @__PURE__ */ React96.createElement(Icon, {
|
8865
8908
|
icon: import_time.default,
|
8866
8909
|
color: "info-30"
|
8867
|
-
}) : /* @__PURE__ */
|
8910
|
+
}) : /* @__PURE__ */ React96.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React96.createElement(Typography2.Caption, {
|
8868
8911
|
color: "grey-50"
|
8869
|
-
}, props.title), /* @__PURE__ */
|
8912
|
+
}, 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)));
|
8870
8913
|
}
|
8871
8914
|
}));
|
8872
|
-
var TimelineItemSkeleton = () => /* @__PURE__ */
|
8915
|
+
var TimelineItemSkeleton = () => /* @__PURE__ */ React96.createElement(Timeline, null, /* @__PURE__ */ React96.createElement(Timeline.Separator, null, /* @__PURE__ */ React96.createElement(Skeleton, {
|
8873
8916
|
width: 6,
|
8874
8917
|
height: 6,
|
8875
8918
|
rounded: true
|
8876
|
-
})), /* @__PURE__ */
|
8919
|
+
})), /* @__PURE__ */ React96.createElement(Skeleton, {
|
8877
8920
|
height: 12,
|
8878
8921
|
width: 120
|
8879
|
-
}), /* @__PURE__ */
|
8922
|
+
}), /* @__PURE__ */ React96.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React96.createElement(Skeleton, {
|
8880
8923
|
width: 2,
|
8881
8924
|
height: "100%"
|
8882
|
-
})), /* @__PURE__ */
|
8925
|
+
})), /* @__PURE__ */ React96.createElement(Timeline.Content, null, /* @__PURE__ */ React96.createElement(Box, {
|
8883
8926
|
display: "flex",
|
8884
8927
|
flexDirection: "column",
|
8885
8928
|
gap: "3"
|
8886
|
-
}, /* @__PURE__ */
|
8929
|
+
}, /* @__PURE__ */ React96.createElement(Skeleton, {
|
8887
8930
|
height: 32,
|
8888
8931
|
width: "100%"
|
8889
|
-
}), /* @__PURE__ */
|
8932
|
+
}), /* @__PURE__ */ React96.createElement(Skeleton, {
|
8890
8933
|
height: 32,
|
8891
8934
|
width: "73%"
|
8892
|
-
}), /* @__PURE__ */
|
8935
|
+
}), /* @__PURE__ */ React96.createElement(Skeleton, {
|
8893
8936
|
height: 32,
|
8894
8937
|
width: "80%"
|
8895
8938
|
}))));
|
8896
|
-
var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */
|
8939
|
+
var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React96.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React96.createElement(TimelineItemSkeleton, {
|
8897
8940
|
key
|
8898
8941
|
})));
|
8899
8942
|
Timeline2.Item = TimelineItem;
|
@@ -8901,9 +8944,9 @@ Timeline2.Skeleton = TimelineSkeleton;
|
|
8901
8944
|
Timeline2.Skeleton.displayName = "Timeline.Skeleton";
|
8902
8945
|
|
8903
8946
|
// src/utils/table/useTableSelect.ts
|
8904
|
-
import
|
8947
|
+
import React97 from "react";
|
8905
8948
|
var useTableSelect = (data, { key }) => {
|
8906
|
-
const [selected, setSelected] =
|
8949
|
+
const [selected, setSelected] = React97.useState([]);
|
8907
8950
|
const allSelected = selected.length === data.length;
|
8908
8951
|
const isSelected = (dot) => selected.includes(dot[key]);
|
8909
8952
|
const selectAll = () => setSelected(data.map((dot) => dot[key]));
|
@@ -8927,7 +8970,7 @@ var useTableSelect = (data, { key }) => {
|
|
8927
8970
|
};
|
8928
8971
|
};
|
8929
8972
|
|
8930
|
-
// src/
|
8973
|
+
// src/molecules/Pagination/usePagination.tsx
|
8931
8974
|
import { useEffect as useEffect7, useState as useState13 } from "react";
|
8932
8975
|
import clamp3 from "lodash/clamp";
|
8933
8976
|
var initialState = {
|
@@ -8964,7 +9007,7 @@ var usePagination = (items, options) => {
|
|
8964
9007
|
];
|
8965
9008
|
};
|
8966
9009
|
|
8967
|
-
// src/
|
9010
|
+
// src/molecules/index.ts
|
8968
9011
|
var SelectItem = Select.Item;
|
8969
9012
|
|
8970
9013
|
// src/utils/positioner.ts
|
@@ -9079,7 +9122,7 @@ function calcBestPosition(triggerRect, contentRect, placement, padding) {
|
|
9079
9122
|
}
|
9080
9123
|
|
9081
9124
|
// src/system.ts
|
9082
|
-
var system_default = __spreadProps(__spreadValues({},
|
9125
|
+
var system_default = __spreadProps(__spreadValues({}, molecules_exports), {
|
9083
9126
|
theme: import_resolveTheme2.theme
|
9084
9127
|
});
|
9085
9128
|
var export_theme = import_resolveTheme2.theme;
|
@@ -9171,6 +9214,7 @@ export {
|
|
9171
9214
|
SelectBase,
|
9172
9215
|
SelectItem,
|
9173
9216
|
Skeleton,
|
9217
|
+
Spacing,
|
9174
9218
|
StatusChip,
|
9175
9219
|
Stepper2 as Stepper,
|
9176
9220
|
Switch2 as Switch,
|
@@ -9182,6 +9226,7 @@ export {
|
|
9182
9226
|
TagLabel,
|
9183
9227
|
Tailwindify,
|
9184
9228
|
Template,
|
9229
|
+
TextButton,
|
9185
9230
|
Textarea,
|
9186
9231
|
TextareaBase,
|
9187
9232
|
Timeline2 as Timeline,
|