@ledgerhq/lumen-ui-react 0.1.16 → 0.1.18
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/ai-rules/RULES.md +7 -1
- package/dist/index.js +148 -142
- package/dist/lib/Components/AddressInput/AddressInput.d.ts +1 -4
- package/dist/lib/Components/AddressInput/AddressInput.d.ts.map +1 -1
- package/dist/lib/Components/AddressInput/AddressInput.js +21 -21
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts +1 -4
- package/dist/lib/Components/AmountDisplay/AmountDisplay.d.ts.map +1 -1
- package/dist/lib/Components/AmountDisplay/AmountDisplay.js +32 -29
- package/dist/lib/Components/AmountInput/AmountInput.d.ts +1 -4
- package/dist/lib/Components/AmountInput/AmountInput.d.ts.map +1 -1
- package/dist/lib/Components/AmountInput/AmountInput.js +13 -14
- package/dist/lib/Components/Avatar/Avatar.d.ts +1 -4
- package/dist/lib/Components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/lib/Components/Avatar/Avatar.js +8 -9
- package/dist/lib/Components/BaseInput/BaseInput.d.ts +1 -4
- package/dist/lib/Components/BaseInput/BaseInput.d.ts.map +1 -1
- package/dist/lib/Components/BaseInput/BaseInput.js +66 -73
- package/dist/lib/Components/Button/BaseButton.d.ts +1 -4
- package/dist/lib/Components/Button/BaseButton.d.ts.map +1 -1
- package/dist/lib/Components/Button/BaseButton.js +14 -15
- package/dist/lib/Components/Button/Button.d.ts +1 -4
- package/dist/lib/Components/Button/Button.d.ts.map +1 -1
- package/dist/lib/Components/Button/Button.js +6 -7
- package/dist/lib/Components/Card/Card.d.ts +10 -40
- package/dist/lib/Components/Card/Card.d.ts.map +1 -1
- package/dist/lib/Components/Card/Card.js +115 -134
- package/dist/lib/Components/CardButton/CardButton.d.ts +1 -4
- package/dist/lib/Components/CardButton/CardButton.d.ts.map +1 -1
- package/dist/lib/Components/CardButton/CardButton.js +10 -11
- package/dist/lib/Components/Checkbox/Checkbox.d.ts +1 -4
- package/dist/lib/Components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/lib/Components/Checkbox/Checkbox.js +2 -3
- package/dist/lib/Components/ContentBanner/ContentBanner.d.ts +4 -16
- package/dist/lib/Components/ContentBanner/ContentBanner.d.ts.map +1 -1
- package/dist/lib/Components/ContentBanner/ContentBanner.js +48 -54
- package/dist/lib/Components/DataTable/DataTable.d.ts +3 -12
- package/dist/lib/Components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/lib/Components/DataTable/DataTable.js +84 -97
- package/dist/lib/Components/Dialog/Dialog.d.ts +3 -12
- package/dist/lib/Components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/Dialog.js +44 -50
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts +1 -4
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.d.ts.map +1 -1
- package/dist/lib/Components/Dialog/DialogHeader/DialogHeader.js +31 -34
- package/dist/lib/Components/Divider/Divider.d.ts +1 -4
- package/dist/lib/Components/Divider/Divider.d.ts.map +1 -1
- package/dist/lib/Components/Divider/Divider.js +10 -11
- package/dist/lib/Components/Icon/Icon.d.ts +1 -4
- package/dist/lib/Components/Icon/Icon.d.ts.map +1 -1
- package/dist/lib/Components/Icon/Icon.js +6 -7
- package/dist/lib/Components/IconButton/IconButton.d.ts +1 -4
- package/dist/lib/Components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/lib/Components/IconButton/IconButton.js +5 -6
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts +3 -11
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.d.ts.map +1 -1
- package/dist/lib/Components/InteractiveIcon/InteractiveIcon.js +24 -22
- package/dist/lib/Components/InteractiveIcon/types.d.ts +14 -9
- package/dist/lib/Components/InteractiveIcon/types.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.d.ts +1 -4
- package/dist/lib/Components/Link/Link.d.ts.map +1 -1
- package/dist/lib/Components/Link/Link.js +13 -14
- package/dist/lib/Components/ListItem/ListItem.d.ts +7 -28
- package/dist/lib/Components/ListItem/ListItem.d.ts.map +1 -1
- package/dist/lib/Components/ListItem/ListItem.js +60 -63
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts +3 -12
- package/dist/lib/Components/MediaBanner/MediaBanner.d.ts.map +1 -1
- package/dist/lib/Components/MediaBanner/MediaBanner.js +39 -43
- package/dist/lib/Components/MediaCard/MediaCard.d.ts +2 -8
- package/dist/lib/Components/MediaCard/MediaCard.d.ts.map +1 -1
- package/dist/lib/Components/MediaCard/MediaCard.js +38 -40
- package/dist/lib/Components/MediaImage/MediaImage.d.ts +16 -0
- package/dist/lib/Components/MediaImage/MediaImage.d.ts.map +1 -0
- package/dist/lib/Components/MediaImage/MediaImage.js +74 -0
- package/dist/lib/Components/MediaImage/index.d.ts +3 -0
- package/dist/lib/Components/MediaImage/index.d.ts.map +1 -0
- package/dist/lib/Components/MediaImage/types.d.ts +38 -0
- package/dist/lib/Components/MediaImage/types.d.ts.map +1 -0
- package/dist/lib/Components/Menu/Menu.d.ts +11 -38
- package/dist/lib/Components/Menu/Menu.d.ts.map +1 -1
- package/dist/lib/Components/Menu/Menu.js +100 -116
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts +1 -4
- package/dist/lib/Components/NavBar/CoinCapsule.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/CoinCapsule.js +8 -9
- package/dist/lib/Components/NavBar/NavBar.d.ts +7 -22
- package/dist/lib/Components/NavBar/NavBar.d.ts.map +1 -1
- package/dist/lib/Components/NavBar/NavBar.js +25 -34
- package/dist/lib/Components/PageIndicator/PageIndicator.d.ts +1 -4
- package/dist/lib/Components/PageIndicator/PageIndicator.d.ts.map +1 -1
- package/dist/lib/Components/PageIndicator/PageIndicator.js +15 -16
- package/dist/lib/Components/Popover/Popover.d.ts +1 -4
- package/dist/lib/Components/Popover/Popover.d.ts.map +1 -1
- package/dist/lib/Components/Popover/Popover.js +5 -7
- package/dist/lib/Components/SearchInput/SearchInput.d.ts +1 -4
- package/dist/lib/Components/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/lib/Components/SearchInput/SearchInput.js +23 -20
- package/dist/lib/Components/SearchInput/types.d.ts +1 -1
- package/dist/lib/Components/SearchInput/types.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts +0 -6
- package/dist/lib/Components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/lib/Components/SegmentedControl/SegmentedControl.js +19 -21
- package/dist/lib/Components/Select/Select.d.ts +13 -28
- package/dist/lib/Components/Select/Select.d.ts.map +1 -1
- package/dist/lib/Components/Select/Select.js +339 -207
- package/dist/lib/Components/Select/SelectContext.d.ts +3 -1
- package/dist/lib/Components/Select/SelectContext.d.ts.map +1 -1
- package/dist/lib/Components/Select/index.d.ts +1 -1
- package/dist/lib/Components/Select/index.d.ts.map +1 -1
- package/dist/lib/Components/Select/types.d.ts +171 -140
- package/dist/lib/Components/Select/types.d.ts.map +1 -1
- package/dist/lib/Components/Select/useSelectItems/index.d.ts +2 -0
- package/dist/lib/Components/Select/useSelectItems/index.d.ts.map +1 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts +30 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.d.ts.map +1 -0
- package/dist/lib/Components/Select/useSelectItems/useSelectItems.js +42 -0
- package/dist/lib/Components/Select/utils/groupItems.d.ts +13 -0
- package/dist/lib/Components/Select/utils/groupItems.d.ts.map +1 -0
- package/dist/lib/Components/Select/utils/groupItems.js +16 -0
- package/dist/lib/Components/Select/utils/index.d.ts +2 -0
- package/dist/lib/Components/Select/utils/index.d.ts.map +1 -0
- package/dist/lib/Components/SideBar/SideBar.d.ts +5 -20
- package/dist/lib/Components/SideBar/SideBar.d.ts.map +1 -1
- package/dist/lib/Components/SideBar/SideBar.js +44 -53
- package/dist/lib/Components/Skeleton/Skeleton.d.ts +1 -4
- package/dist/lib/Components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/lib/Components/Skeleton/Skeleton.js +15 -22
- package/dist/lib/Components/Spot/Spot.d.ts +1 -4
- package/dist/lib/Components/Spot/Spot.d.ts.map +1 -1
- package/dist/lib/Components/Spot/Spot.js +11 -12
- package/dist/lib/Components/Stepper/Stepper.d.ts +1 -4
- package/dist/lib/Components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/lib/Components/Stepper/Stepper.js +10 -11
- package/dist/lib/Components/Subheader/Subheader.d.ts +1 -4
- package/dist/lib/Components/Subheader/Subheader.d.ts.map +1 -1
- package/dist/lib/Components/Subheader/Subheader.js +14 -15
- package/dist/lib/Components/Subheader/types.d.ts +1 -1
- package/dist/lib/Components/Subheader/types.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.d.ts +1 -4
- package/dist/lib/Components/Switch/Switch.d.ts.map +1 -1
- package/dist/lib/Components/Switch/Switch.js +2 -3
- package/dist/lib/Components/Table/Table.d.ts +16 -64
- package/dist/lib/Components/Table/Table.d.ts.map +1 -1
- package/dist/lib/Components/Table/Table.js +146 -176
- package/dist/lib/Components/Tag/Tag.d.ts +1 -4
- package/dist/lib/Components/Tag/Tag.d.ts.map +1 -1
- package/dist/lib/Components/Tag/Tag.js +10 -11
- package/dist/lib/Components/TextInput/TextInput.d.ts +1 -4
- package/dist/lib/Components/TextInput/TextInput.d.ts.map +1 -1
- package/dist/lib/Components/TextInput/TextInput.js +4 -5
- package/dist/lib/Components/Tile/Tile.d.ts +6 -24
- package/dist/lib/Components/Tile/Tile.d.ts.map +1 -1
- package/dist/lib/Components/Tile/Tile.js +58 -71
- package/dist/lib/Components/TileButton/TileButton.d.ts +1 -4
- package/dist/lib/Components/TileButton/TileButton.d.ts.map +1 -1
- package/dist/lib/Components/TileButton/TileButton.js +12 -13
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts +1 -4
- package/dist/lib/Components/TriggerButton/TriggerButton.d.ts.map +1 -1
- package/dist/lib/Components/TriggerButton/TriggerButton.js +11 -12
- package/dist/lib/Components/index.d.ts +1 -0
- package/dist/lib/Components/index.d.ts.map +1 -1
- package/dist/libs/utils-shared/dist/index.js +151 -124
- package/dist/node_modules/@base-ui/react/esm/combobox/chips/ComboboxChipsContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js +17 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/collection/GroupCollectionContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js +26 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js +34 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group/ComboboxGroupContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js +27 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js +221 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js +113 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item/ComboboxItemContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js +52 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js +65 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/popup/ComboboxPopup.js +76 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js +24 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortalContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js +102 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositionerContext.js +14 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/AriaCombobox.js +596 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/ComboboxRootContext.js +41 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/constants.js +8 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/index.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/root/utils/useFilter.js +43 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/row/ComboboxRowContext.js +10 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/store.js +74 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js +135 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/utils/ComboboxInternalDismissButton.js +32 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/utils/stateAttributesMapping.js +15 -0
- package/dist/node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js +19 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeList.js +81 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/CompositeListContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/composite/list/useCompositeListItem.js +55 -0
- package/dist/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/field/root/FieldRootContext.js +53 -0
- package/dist/node_modules/@base-ui/react/esm/field/useField.js +51 -0
- package/dist/node_modules/@base-ui/react/esm/field/utils/constants.js +37 -0
- package/dist/node_modules/@base-ui/react/esm/field/utils/getCombinedFieldValidityData.js +12 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useListNavigation.js +287 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useTypeahead.js +71 -0
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js +218 -4
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js +7 -3
- package/dist/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js +3 -3
- package/dist/node_modules/@base-ui/react/esm/form/FormContext.js +23 -0
- package/dist/node_modules/@base-ui/react/esm/labelable-provider/LabelableContext.js +19 -0
- package/dist/node_modules/@base-ui/react/esm/labelable-provider/useLabelableId.js +44 -0
- package/dist/node_modules/@base-ui/react/esm/utils/constants.js +11 -8
- package/dist/node_modules/@base-ui/react/esm/utils/createBaseUIEventDetails.js +22 -13
- package/dist/node_modules/@base-ui/react/esm/utils/getPseudoElementBounds.js +18 -0
- package/dist/node_modules/@base-ui/react/esm/utils/itemEquality.js +20 -0
- package/dist/node_modules/@base-ui/react/esm/utils/reason-parts.js +13 -6
- package/dist/node_modules/@base-ui/react/esm/utils/resolveAriaLabelledBy.js +6 -0
- package/dist/node_modules/@base-ui/react/esm/utils/resolveValueLabel.js +73 -0
- package/dist/node_modules/@base-ui/react/esm/utils/serializeValue.js +14 -0
- package/dist/node_modules/@base-ui/utils/esm/detectBrowser.js +8 -7
- package/dist/node_modules/@base-ui/utils/esm/empty.js +3 -2
- package/dist/node_modules/@base-ui/utils/esm/useControlled.js +31 -0
- package/dist/node_modules/@base-ui/utils/esm/visuallyHidden.js +5 -1
- package/dist/package.json +1 -2
- package/package.json +1 -2
|
@@ -1,93 +1,87 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { useCommonTranslation as
|
|
1
|
+
import { jsx as r, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { cn as a } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import { useCommonTranslation as m } from "../../../i18n/useCommonTranslation.js";
|
|
4
4
|
import { Close as p } from "../../Symbols/Icons/Close.js";
|
|
5
5
|
import { InteractiveIcon as d } from "../InteractiveIcon/InteractiveIcon.js";
|
|
6
|
-
const
|
|
7
|
-
ref:
|
|
8
|
-
children:
|
|
9
|
-
className:
|
|
6
|
+
const C = ({
|
|
7
|
+
ref: t,
|
|
8
|
+
children: n,
|
|
9
|
+
className: o,
|
|
10
10
|
...e
|
|
11
|
-
}) => /* @__PURE__ */
|
|
11
|
+
}) => /* @__PURE__ */ r(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
ref:
|
|
15
|
-
className:
|
|
14
|
+
ref: t,
|
|
15
|
+
className: a("flex min-w-0 flex-1 flex-col gap-4", o),
|
|
16
16
|
...e,
|
|
17
|
-
children:
|
|
17
|
+
children: n
|
|
18
18
|
}
|
|
19
|
-
)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
children: t,
|
|
24
|
-
className: a,
|
|
19
|
+
), N = ({
|
|
20
|
+
ref: t,
|
|
21
|
+
children: n,
|
|
22
|
+
className: o,
|
|
25
23
|
...e
|
|
26
|
-
}) => /* @__PURE__ */
|
|
24
|
+
}) => /* @__PURE__ */ r(
|
|
27
25
|
"div",
|
|
28
26
|
{
|
|
29
|
-
ref:
|
|
30
|
-
className:
|
|
27
|
+
ref: t,
|
|
28
|
+
className: a("line-clamp-1 body-2-semi-bold text-base", o),
|
|
31
29
|
...e,
|
|
32
|
-
children:
|
|
30
|
+
children: n
|
|
33
31
|
}
|
|
34
|
-
)
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
children: t,
|
|
39
|
-
className: a,
|
|
32
|
+
), g = ({
|
|
33
|
+
ref: t,
|
|
34
|
+
children: n,
|
|
35
|
+
className: o,
|
|
40
36
|
...e
|
|
41
|
-
}) => /* @__PURE__ */
|
|
37
|
+
}) => /* @__PURE__ */ r(
|
|
42
38
|
"div",
|
|
43
39
|
{
|
|
44
|
-
ref:
|
|
45
|
-
className:
|
|
40
|
+
ref: t,
|
|
41
|
+
className: a("line-clamp-2 body-3 text-muted", o),
|
|
46
42
|
...e,
|
|
47
|
-
children:
|
|
43
|
+
children: n
|
|
48
44
|
}
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
children: t,
|
|
54
|
-
className: a,
|
|
45
|
+
), y = ({
|
|
46
|
+
ref: t,
|
|
47
|
+
children: n,
|
|
48
|
+
className: o,
|
|
55
49
|
onClose: e,
|
|
56
|
-
closeAriaLabel:
|
|
57
|
-
...
|
|
50
|
+
closeAriaLabel: s,
|
|
51
|
+
...i
|
|
58
52
|
}) => {
|
|
59
|
-
const { t: l } =
|
|
60
|
-
return /* @__PURE__ */
|
|
53
|
+
const { t: l } = m();
|
|
54
|
+
return /* @__PURE__ */ c(
|
|
61
55
|
"div",
|
|
62
56
|
{
|
|
63
|
-
ref:
|
|
64
|
-
className:
|
|
57
|
+
ref: t,
|
|
58
|
+
className: a(
|
|
65
59
|
"relative flex w-full items-center gap-12 rounded-md bg-surface p-12",
|
|
66
60
|
e && "pr-48",
|
|
67
|
-
|
|
61
|
+
o
|
|
68
62
|
),
|
|
69
|
-
...
|
|
63
|
+
...i,
|
|
70
64
|
children: [
|
|
71
|
-
|
|
72
|
-
e && /* @__PURE__ */
|
|
65
|
+
n,
|
|
66
|
+
e && /* @__PURE__ */ r(
|
|
73
67
|
d,
|
|
74
68
|
{
|
|
75
69
|
type: "button",
|
|
76
70
|
iconType: "stroked",
|
|
71
|
+
icon: p,
|
|
72
|
+
size: 16,
|
|
77
73
|
className: "absolute top-8 right-8",
|
|
78
74
|
onClick: () => e(),
|
|
79
|
-
"aria-label":
|
|
80
|
-
children: /* @__PURE__ */ o(p, { size: 16 })
|
|
75
|
+
"aria-label": s || l("components.banner.closeAriaLabel")
|
|
81
76
|
}
|
|
82
77
|
)
|
|
83
78
|
]
|
|
84
79
|
}
|
|
85
80
|
);
|
|
86
81
|
};
|
|
87
|
-
b.displayName = "ContentBanner";
|
|
88
82
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
y as ContentBanner,
|
|
84
|
+
C as ContentBannerContent,
|
|
85
|
+
g as ContentBannerDescription,
|
|
86
|
+
N as ContentBannerTitle
|
|
93
87
|
};
|
|
@@ -11,10 +11,7 @@ import { DataTableProps, DataTableRootProps } from './types';
|
|
|
11
11
|
* <DataTable />
|
|
12
12
|
* </DataTableRoot>
|
|
13
13
|
*/
|
|
14
|
-
export declare const DataTableRoot: {
|
|
15
|
-
<TData extends RowData>({ table, appearance, paginationMode, loading, onScrollBottom, onRowClick, groupBy, renderGroupHeader, hideHeader, children, className, ref, ...props }: DataTableRootProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
displayName: string;
|
|
17
|
-
};
|
|
14
|
+
export declare const DataTableRoot: <TData extends RowData>({ table, appearance, paginationMode, loading, onScrollBottom, onRowClick, groupBy, renderGroupHeader, hideHeader, children, className, ref, ...props }: DataTableRootProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
18
15
|
/**
|
|
19
16
|
* Renders the full table (header + body) from the TanStack table instance
|
|
20
17
|
* provided by `DataTableRoot`. Internally composes the pure-UI Table building blocks.
|
|
@@ -24,16 +21,10 @@ export declare const DataTableRoot: {
|
|
|
24
21
|
* <DataTable />
|
|
25
22
|
* </DataTableRoot>
|
|
26
23
|
*/
|
|
27
|
-
export declare const DataTable: {
|
|
28
|
-
({ className, ref, ...props }: DataTableProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
displayName: string;
|
|
30
|
-
};
|
|
24
|
+
export declare const DataTable: ({ className, ref, ...props }: DataTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
25
|
/**
|
|
32
26
|
* A search input that connects to the TanStack table's `globalFilter` state
|
|
33
27
|
* via the `DataTableRoot` context. No external state management is required.
|
|
34
28
|
*/
|
|
35
|
-
export declare const DataTableGlobalSearchInput: {
|
|
36
|
-
({ onChange, ...props }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
displayName: string;
|
|
38
|
-
};
|
|
29
|
+
export declare const DataTableGlobalSearchInput: ({ onChange, ...props }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
30
|
//# sourceMappingURL=DataTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,OAAO,EAER,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAe/D,OAAO,EAGL,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAcjB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/DataTable/DataTable.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,OAAO,EAER,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAe/D,OAAO,EAGL,cAAc,EACd,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAcjB;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,SAAS,OAAO,EAAE,wJAclD,kBAAkB,CAAC,KAAK,CAAC,4CAoB3B,CAAC;AAyDF;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,GAAI,8BAA8B,cAAc,4CA6BrE,CAAC;AAsHF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,GAAI,wBAGxC,gBAAgB,4CAqBlB,CAAC"}
|
|
@@ -1,61 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createSafeContext as
|
|
1
|
+
import { jsx as n, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as h, cn as w } from "../../../libs/utils-shared/dist/index.js";
|
|
3
3
|
import { flexRender as m } from "@tanstack/react-table";
|
|
4
|
-
import { useCallback as
|
|
5
|
-
import { TableRoot as
|
|
6
|
-
import { SearchInput as
|
|
7
|
-
const [
|
|
8
|
-
table:
|
|
4
|
+
import { useCallback as C, Fragment as R } from "react";
|
|
5
|
+
import { TableRoot as x, Table as B, TableLoadingRow as k, TableHeader as y, TableHeaderRow as N, TableHeaderCell as S, TableSortButton as H, TableBody as b, TableGroupHeaderRow as v, TableRow as G, TableCell as q } from "../Table/Table.js";
|
|
6
|
+
import { SearchInput as I } from "../SearchInput/SearchInput.js";
|
|
7
|
+
const [F, u] = h("DataTableContext"), O = ({
|
|
8
|
+
table: l,
|
|
9
9
|
appearance: r = "no-background",
|
|
10
|
-
paginationMode:
|
|
10
|
+
paginationMode: a = "none",
|
|
11
11
|
loading: e = !1,
|
|
12
|
-
onScrollBottom:
|
|
12
|
+
onScrollBottom: o,
|
|
13
13
|
onRowClick: t,
|
|
14
14
|
groupBy: c,
|
|
15
15
|
renderGroupHeader: i,
|
|
16
16
|
hideHeader: s = !1,
|
|
17
|
-
children:
|
|
18
|
-
className:
|
|
19
|
-
ref:
|
|
20
|
-
...
|
|
21
|
-
}) => /* @__PURE__ */
|
|
22
|
-
|
|
17
|
+
children: T,
|
|
18
|
+
className: p,
|
|
19
|
+
ref: D,
|
|
20
|
+
...f
|
|
21
|
+
}) => /* @__PURE__ */ n(
|
|
22
|
+
F,
|
|
23
23
|
{
|
|
24
24
|
value: {
|
|
25
25
|
hideHeader: s,
|
|
26
|
-
paginationMode:
|
|
27
|
-
table:
|
|
26
|
+
paginationMode: a,
|
|
27
|
+
table: l,
|
|
28
28
|
appearance: r,
|
|
29
29
|
loading: e,
|
|
30
|
-
onScrollBottom:
|
|
30
|
+
onScrollBottom: o,
|
|
31
31
|
onRowClick: t,
|
|
32
32
|
groupBy: c,
|
|
33
33
|
renderGroupHeader: i
|
|
34
34
|
},
|
|
35
|
-
children: /* @__PURE__ */
|
|
35
|
+
children: /* @__PURE__ */ n("div", { ref: D, className: w("flex flex-col", p), ...f, children: T })
|
|
36
36
|
}
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
const p = ({
|
|
40
|
-
className: n,
|
|
37
|
+
), M = ({
|
|
38
|
+
className: l,
|
|
41
39
|
ref: r,
|
|
42
|
-
...
|
|
40
|
+
...a
|
|
43
41
|
}) => {
|
|
44
|
-
const { table: e } =
|
|
42
|
+
const { table: e } = u({
|
|
45
43
|
consumerName: "DataTableHeader",
|
|
46
44
|
contextRequired: !0
|
|
47
45
|
});
|
|
48
|
-
return /* @__PURE__ */
|
|
46
|
+
return /* @__PURE__ */ n(y, { ref: r, className: l, ...a, children: e.getHeaderGroups().map((o) => /* @__PURE__ */ n(N, { children: o.headers.map((t) => {
|
|
49
47
|
const c = t.column.columnDef.meta;
|
|
50
|
-
return /* @__PURE__ */
|
|
51
|
-
|
|
48
|
+
return /* @__PURE__ */ n(
|
|
49
|
+
S,
|
|
52
50
|
{
|
|
53
51
|
align: c?.align,
|
|
54
52
|
hideBelow: c?.hideBelow,
|
|
55
53
|
className: c?.className,
|
|
56
54
|
trailingContent: c?.headerTrailingContent,
|
|
57
|
-
children: t.isPlaceholder ? null : t.column.getCanSort() ? /* @__PURE__ */
|
|
58
|
-
|
|
55
|
+
children: t.isPlaceholder ? null : t.column.getCanSort() ? /* @__PURE__ */ n(
|
|
56
|
+
H,
|
|
59
57
|
{
|
|
60
58
|
sortDirection: t.column.getIsSorted() || void 0,
|
|
61
59
|
onClick: t.column.getToggleSortingHandler(),
|
|
@@ -72,90 +70,82 @@ const p = ({
|
|
|
72
70
|
},
|
|
73
71
|
t.id
|
|
74
72
|
);
|
|
75
|
-
}) },
|
|
76
|
-
}
|
|
77
|
-
p.displayName = "DataTableHeader";
|
|
78
|
-
const z = ({ className: n, ref: r, ...o }) => {
|
|
73
|
+
}) }, o.id)) });
|
|
74
|
+
}, Q = ({ className: l, ref: r, ...a }) => {
|
|
79
75
|
const {
|
|
80
76
|
appearance: e,
|
|
81
|
-
paginationMode:
|
|
77
|
+
paginationMode: o,
|
|
82
78
|
hideHeader: t,
|
|
83
79
|
loading: c,
|
|
84
80
|
onScrollBottom: i,
|
|
85
81
|
groupBy: s
|
|
86
|
-
} =
|
|
82
|
+
} = u({
|
|
87
83
|
consumerName: "DataTable",
|
|
88
84
|
contextRequired: !0
|
|
89
85
|
});
|
|
90
|
-
return /* @__PURE__ */
|
|
91
|
-
|
|
86
|
+
return /* @__PURE__ */ d(
|
|
87
|
+
x,
|
|
92
88
|
{
|
|
93
89
|
ref: r,
|
|
94
90
|
appearance: e,
|
|
95
91
|
loading: c,
|
|
96
92
|
onScrollBottom: i,
|
|
97
|
-
className:
|
|
98
|
-
...
|
|
93
|
+
className: l,
|
|
94
|
+
...a,
|
|
99
95
|
children: [
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
!t && /* @__PURE__ */
|
|
102
|
-
s ? /* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ d(B, { children: [
|
|
97
|
+
!t && /* @__PURE__ */ n(M, {}),
|
|
98
|
+
s ? /* @__PURE__ */ n(V, {}) : /* @__PURE__ */ n(j, {})
|
|
103
99
|
] }),
|
|
104
|
-
|
|
100
|
+
o === "infinite-scroll" && /* @__PURE__ */ n(k, {})
|
|
105
101
|
]
|
|
106
102
|
}
|
|
107
103
|
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const g = ({ className: n, ref: r, ...o }) => {
|
|
111
|
-
const { table: e } = d({
|
|
104
|
+
}, j = ({ className: l, ref: r, ...a }) => {
|
|
105
|
+
const { table: e } = u({
|
|
112
106
|
consumerName: "DataTableBody",
|
|
113
107
|
contextRequired: !0
|
|
114
108
|
});
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
const L = (n, r) => {
|
|
119
|
-
const o = [];
|
|
109
|
+
return /* @__PURE__ */ n(b, { ref: r, className: l, ...a, children: e.getRowModel().rows.map((o) => /* @__PURE__ */ n(g, { row: o }, o.id)) });
|
|
110
|
+
}, P = (l, r) => {
|
|
111
|
+
const a = [];
|
|
120
112
|
let e = null;
|
|
121
|
-
for (const
|
|
122
|
-
const t = r(
|
|
123
|
-
(!e || e.key !== t) && (e = { key: t, rows: [], count: 0 },
|
|
113
|
+
for (const o of l) {
|
|
114
|
+
const t = r(o);
|
|
115
|
+
(!e || e.key !== t) && (e = { key: t, rows: [], count: 0 }, a.push(e)), e.rows.push(o), e.count++;
|
|
124
116
|
}
|
|
125
|
-
return
|
|
126
|
-
},
|
|
127
|
-
className:
|
|
117
|
+
return a;
|
|
118
|
+
}, V = ({
|
|
119
|
+
className: l,
|
|
128
120
|
ref: r,
|
|
129
|
-
...
|
|
121
|
+
...a
|
|
130
122
|
}) => {
|
|
131
|
-
const { table: e, groupBy:
|
|
123
|
+
const { table: e, groupBy: o, renderGroupHeader: t } = u({
|
|
132
124
|
consumerName: "DataTableGroupedBody",
|
|
133
125
|
contextRequired: !0
|
|
134
|
-
}), c =
|
|
135
|
-
return /* @__PURE__ */
|
|
136
|
-
/* @__PURE__ */
|
|
137
|
-
i.rows.map((s) => /* @__PURE__ */
|
|
126
|
+
}), c = P(e.getRowModel().rows, o);
|
|
127
|
+
return /* @__PURE__ */ n(b, { ref: r, className: l, ...a, children: c.map((i) => /* @__PURE__ */ d(R, { children: [
|
|
128
|
+
/* @__PURE__ */ n(v, { colSpan: i.rows[0].getVisibleCells().length, children: t ? t({ row: i.rows[0], count: i.count }) : i.key }),
|
|
129
|
+
i.rows.map((s) => /* @__PURE__ */ n(g, { row: s }, s.id))
|
|
138
130
|
] }, i.key)) });
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
const b = ({ row: n }) => {
|
|
142
|
-
const { onRowClick: r } = d({
|
|
131
|
+
}, g = ({ row: l }) => {
|
|
132
|
+
const { onRowClick: r } = u({
|
|
143
133
|
consumerName: "DataTableRow",
|
|
144
134
|
contextRequired: !0
|
|
145
|
-
}),
|
|
146
|
-
return /* @__PURE__ */
|
|
147
|
-
|
|
135
|
+
}), a = !!r;
|
|
136
|
+
return /* @__PURE__ */ n(
|
|
137
|
+
G,
|
|
148
138
|
{
|
|
149
|
-
clickable:
|
|
150
|
-
onClick:
|
|
151
|
-
children:
|
|
152
|
-
const
|
|
153
|
-
return /* @__PURE__ */
|
|
154
|
-
|
|
139
|
+
clickable: a,
|
|
140
|
+
onClick: a ? () => r?.(l) : void 0,
|
|
141
|
+
children: l.getVisibleCells().map((e) => {
|
|
142
|
+
const o = e.column.columnDef.meta;
|
|
143
|
+
return /* @__PURE__ */ n(
|
|
144
|
+
q,
|
|
155
145
|
{
|
|
156
|
-
align:
|
|
157
|
-
hideBelow:
|
|
158
|
-
className:
|
|
146
|
+
align: o?.align,
|
|
147
|
+
hideBelow: o?.hideBelow,
|
|
148
|
+
className: o?.className,
|
|
159
149
|
children: m(e.column.columnDef.cell, e.getContext())
|
|
160
150
|
},
|
|
161
151
|
e.id
|
|
@@ -163,33 +153,30 @@ const b = ({ row: n }) => {
|
|
|
163
153
|
})
|
|
164
154
|
}
|
|
165
155
|
);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
const A = ({
|
|
169
|
-
onChange: n,
|
|
156
|
+
}, U = ({
|
|
157
|
+
onChange: l,
|
|
170
158
|
...r
|
|
171
159
|
}) => {
|
|
172
|
-
const { table:
|
|
160
|
+
const { table: a } = u({
|
|
173
161
|
consumerName: "DataTableGlobalSearchInput",
|
|
174
162
|
contextRequired: !0
|
|
175
|
-
}), e =
|
|
176
|
-
(
|
|
177
|
-
|
|
163
|
+
}), e = C(
|
|
164
|
+
(o) => {
|
|
165
|
+
a.setGlobalFilter(o.target.value), l?.(o);
|
|
178
166
|
},
|
|
179
|
-
[
|
|
167
|
+
[a, l]
|
|
180
168
|
);
|
|
181
|
-
return /* @__PURE__ */
|
|
182
|
-
|
|
169
|
+
return /* @__PURE__ */ n(
|
|
170
|
+
I,
|
|
183
171
|
{
|
|
184
|
-
value:
|
|
172
|
+
value: a.getState().globalFilter ?? "",
|
|
185
173
|
onChange: e,
|
|
186
174
|
...r
|
|
187
175
|
}
|
|
188
176
|
);
|
|
189
177
|
};
|
|
190
|
-
A.displayName = "DataTableGlobalSearchInput";
|
|
191
178
|
export {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
179
|
+
Q as DataTable,
|
|
180
|
+
U as DataTableGlobalSearchInput,
|
|
181
|
+
O as DataTableRoot
|
|
195
182
|
};
|
|
@@ -99,10 +99,7 @@ export declare function DialogContent({ className, children, ...props }: DialogC
|
|
|
99
99
|
* </DialogFooter>
|
|
100
100
|
* </DialogContent>
|
|
101
101
|
*/
|
|
102
|
-
export declare const DialogBody: {
|
|
103
|
-
({ ref, className, children, scrollbarWidth, style, ...props }: DialogBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
104
|
-
displayName: string;
|
|
105
|
-
};
|
|
102
|
+
export declare const DialogBody: ({ ref, className, children, scrollbarWidth, style, ...props }: DialogBodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
106
103
|
/**
|
|
107
104
|
* A sticky region inside the dialog body.
|
|
108
105
|
*
|
|
@@ -120,10 +117,7 @@ export declare const DialogBody: {
|
|
|
120
117
|
* <div>Scrollable content</div>
|
|
121
118
|
* </DialogBody>
|
|
122
119
|
*/
|
|
123
|
-
export declare const DialogBodyStickyContent: {
|
|
124
|
-
({ ref, className, children, ...props }: DialogBodyStickyContentProps): import("react/jsx-runtime").JSX.Element;
|
|
125
|
-
displayName: string;
|
|
126
|
-
};
|
|
120
|
+
export declare const DialogBodyStickyContent: ({ ref, className, children, ...props }: DialogBodyStickyContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
127
121
|
/**
|
|
128
122
|
* The fixed footer area of the dialog.
|
|
129
123
|
*
|
|
@@ -144,9 +138,6 @@ export declare const DialogBodyStickyContent: {
|
|
|
144
138
|
* </DialogFooter>
|
|
145
139
|
* </DialogContent>
|
|
146
140
|
*/
|
|
147
|
-
export declare const DialogFooter: {
|
|
148
|
-
({ ref, className, children, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
149
|
-
displayName: string;
|
|
150
|
-
};
|
|
141
|
+
export declare const DialogFooter: ({ ref, className, children, ...props }: DialogFooterProps) => import("react/jsx-runtime").JSX.Element;
|
|
151
142
|
export { DialogHeader };
|
|
152
143
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,kBAAkB,EAClB,iBAAiB,EAGjB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EACL,eAAe,EACf,4BAA4B,EAC5B,kBAAkB,EAClB,iBAAiB,EAGjB,WAAW,EACX,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAwBjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,MAAM,CAAC,EAAE,MAAc,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,2CAM/D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAE7D;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAoDxD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAkBpB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU,GAAI,+DAOxB,eAAe,4CAqBjB,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB,GAAI,wCAKrC,4BAA4B,4CAW9B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY,GAAI,wCAK1B,iBAAiB,4CAWnB,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { createSafeContext as f, cn as
|
|
3
|
-
import * as
|
|
4
|
-
import { cva as
|
|
5
|
-
const [
|
|
1
|
+
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { createSafeContext as f, cn as i } from "../../../libs/utils-shared/dist/index.js";
|
|
3
|
+
import * as l from "@radix-ui/react-dialog";
|
|
4
|
+
import { cva as m } from "class-variance-authority";
|
|
5
|
+
const [u, r] = f("Dialog"), x = m(
|
|
6
6
|
[
|
|
7
7
|
"flex w-400 max-w-[calc(100%-2rem)] flex-col overflow-hidden rounded-2xl bg-canvas-sheet pb-24",
|
|
8
8
|
"fixed top-[50%] left-[50%] z-dialog-content translate-[-50%]",
|
|
@@ -20,61 +20,60 @@ const [y, r] = f("Dialog"), p = u(
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
|
-
function
|
|
24
|
-
return /* @__PURE__ */ o(
|
|
23
|
+
function D({ height: t = "fit", ...a }) {
|
|
24
|
+
return /* @__PURE__ */ o(u, { value: { height: t }, children: /* @__PURE__ */ o(l.Root, { "data-slot": "dialog", ...a }) });
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return /* @__PURE__ */ o(
|
|
26
|
+
function C({ ...t }) {
|
|
27
|
+
return /* @__PURE__ */ o(l.Trigger, { "data-slot": "dialog-trigger", ...t });
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function h({
|
|
30
30
|
...t
|
|
31
31
|
}) {
|
|
32
|
-
return /* @__PURE__ */ o(
|
|
32
|
+
return /* @__PURE__ */ o(l.Portal, { "data-slot": "dialog-portal", ...t });
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
|
|
34
|
+
const p = ({ ref: t, className: a, ...e }) => /* @__PURE__ */ o(
|
|
35
|
+
l.Overlay,
|
|
36
36
|
{
|
|
37
37
|
ref: t,
|
|
38
38
|
"data-slot": "dialog-overlay",
|
|
39
|
-
className:
|
|
39
|
+
className: i(
|
|
40
40
|
a,
|
|
41
41
|
"fixed inset-0 z-dialog-overlay bg-canvas-overlay backdrop-blur-sm data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in"
|
|
42
42
|
),
|
|
43
43
|
...e
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
|
-
|
|
47
|
-
function B({
|
|
46
|
+
function N({
|
|
48
47
|
className: t,
|
|
49
48
|
children: a,
|
|
50
49
|
...e
|
|
51
50
|
}) {
|
|
52
|
-
const { height:
|
|
51
|
+
const { height: n } = r({
|
|
53
52
|
consumerName: "DialogContent",
|
|
54
53
|
contextRequired: !0
|
|
55
54
|
});
|
|
56
|
-
return /* @__PURE__ */
|
|
57
|
-
/* @__PURE__ */ o(
|
|
55
|
+
return /* @__PURE__ */ g(h, { "data-slot": "dialog-portal", children: [
|
|
56
|
+
/* @__PURE__ */ o(p, {}),
|
|
58
57
|
/* @__PURE__ */ o(
|
|
59
|
-
|
|
58
|
+
l.Content,
|
|
60
59
|
{
|
|
61
60
|
"data-slot": "dialog-content",
|
|
62
|
-
className:
|
|
61
|
+
className: i(x({ height: n }), t),
|
|
63
62
|
...e,
|
|
64
63
|
children: a
|
|
65
64
|
}
|
|
66
65
|
)
|
|
67
66
|
] });
|
|
68
67
|
}
|
|
69
|
-
const
|
|
68
|
+
const w = ({
|
|
70
69
|
ref: t,
|
|
71
70
|
className: a,
|
|
72
71
|
children: e,
|
|
73
|
-
scrollbarWidth:
|
|
74
|
-
style:
|
|
75
|
-
...
|
|
72
|
+
scrollbarWidth: n = "none",
|
|
73
|
+
style: s,
|
|
74
|
+
...d
|
|
76
75
|
}) => {
|
|
77
|
-
const { height:
|
|
76
|
+
const { height: c } = r({
|
|
78
77
|
consumerName: "DialogBody",
|
|
79
78
|
contextRequired: !0
|
|
80
79
|
});
|
|
@@ -83,56 +82,51 @@ const h = ({
|
|
|
83
82
|
{
|
|
84
83
|
ref: t,
|
|
85
84
|
"data-slot": "dialog-body",
|
|
86
|
-
style:
|
|
87
|
-
className:
|
|
85
|
+
style: s,
|
|
86
|
+
className: i(
|
|
88
87
|
"-mb-24 flex min-h-0 grow flex-col overflow-y-auto px-24 pb-24",
|
|
89
|
-
|
|
88
|
+
c === "fit" ? "basis-auto" : "basis-0",
|
|
90
89
|
a,
|
|
91
|
-
|
|
90
|
+
n === "auto" ? "scrollbar-custom" : "scrollbar-none"
|
|
92
91
|
),
|
|
93
|
-
...
|
|
92
|
+
...d,
|
|
94
93
|
children: e
|
|
95
94
|
}
|
|
96
95
|
);
|
|
97
|
-
}
|
|
98
|
-
h.displayName = "DialogBody";
|
|
99
|
-
const v = ({
|
|
96
|
+
}, k = ({
|
|
100
97
|
ref: t,
|
|
101
98
|
className: a,
|
|
102
99
|
children: e,
|
|
103
|
-
...
|
|
100
|
+
...n
|
|
104
101
|
}) => /* @__PURE__ */ o(
|
|
105
102
|
"div",
|
|
106
103
|
{
|
|
107
104
|
ref: t,
|
|
108
105
|
"data-slot": "dialog-body-sticky-content",
|
|
109
|
-
className:
|
|
110
|
-
...
|
|
106
|
+
className: i("sticky top-0 bg-canvas-sheet py-8", a),
|
|
107
|
+
...n,
|
|
111
108
|
children: e
|
|
112
109
|
}
|
|
113
|
-
)
|
|
114
|
-
v.displayName = "DialogBodyStickyContent";
|
|
115
|
-
const D = ({
|
|
110
|
+
), P = ({
|
|
116
111
|
ref: t,
|
|
117
112
|
className: a,
|
|
118
113
|
children: e,
|
|
119
|
-
...
|
|
114
|
+
...n
|
|
120
115
|
}) => /* @__PURE__ */ o(
|
|
121
116
|
"div",
|
|
122
117
|
{
|
|
123
118
|
ref: t,
|
|
124
119
|
"data-slot": "dialog-footer",
|
|
125
|
-
className:
|
|
126
|
-
...
|
|
120
|
+
className: i("flex shrink-0 justify-end gap-8 px-24 pt-24", a),
|
|
121
|
+
...n,
|
|
127
122
|
children: e
|
|
128
123
|
}
|
|
129
124
|
);
|
|
130
|
-
D.displayName = "DialogFooter";
|
|
131
125
|
export {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
126
|
+
D as Dialog,
|
|
127
|
+
w as DialogBody,
|
|
128
|
+
k as DialogBodyStickyContent,
|
|
129
|
+
N as DialogContent,
|
|
130
|
+
P as DialogFooter,
|
|
131
|
+
C as DialogTrigger
|
|
138
132
|
};
|