@mittwald/flow-react-components 0.2.0-alpha.33 → 0.2.0-alpha.35
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/CHANGELOG.md +177 -0
- package/dist/assets/doc-properties.json +20053 -19919
- package/dist/css/all.css +1 -1
- package/dist/js/components/Align/Align.mjs +6 -1
- package/dist/js/components/Align/Align.mjs.map +1 -1
- package/dist/js/components/Align/Align.module.scss.mjs +3 -1
- package/dist/js/components/Align/Align.module.scss.mjs.map +1 -1
- package/dist/js/components/FileCard/components/DeleteButton/DeleteButton.mjs +0 -1
- package/dist/js/components/FileCard/components/DeleteButton/DeleteButton.mjs.map +1 -1
- package/dist/js/components/Image/Image.mjs +7 -4
- package/dist/js/components/Image/Image.mjs.map +1 -1
- package/dist/js/components/Image/Image.module.scss.mjs +9 -0
- package/dist/js/components/Image/Image.module.scss.mjs.map +1 -0
- package/dist/js/components/List/components/Footer/components/PaginationInfos/PaginationInfos.mjs +2 -3
- package/dist/js/components/List/components/Footer/components/PaginationInfos/PaginationInfos.mjs.map +1 -1
- package/dist/js/components/List/components/Header/components/ViewModeMenu/ViewModeMenu.mjs +6 -6
- package/dist/js/components/List/components/Items/Items.mjs +12 -13
- package/dist/js/components/List/components/Items/Items.mjs.map +1 -1
- package/dist/js/components/List/components/Items/components/FallbackItems/FallbackItems.mjs +2 -2
- package/dist/js/components/List/components/Items/components/FallbackItems/FallbackItems.mjs.map +1 -1
- package/dist/js/components/List/components/Items/components/Item/Item.mjs +2 -2
- package/dist/js/components/List/components/Items/components/Item/Item.mjs.map +1 -1
- package/dist/js/components/List/components/Items/components/Item/components/ListItemSkeletonView/ListItemSkeletonView.mjs +27 -0
- package/dist/js/components/List/components/Items/components/Item/components/ListItemSkeletonView/ListItemSkeletonView.mjs.map +1 -0
- package/dist/js/components/List/components/Items/components/Item/hooks/useGridItemProps.mjs +7 -7
- package/dist/js/components/List/components/ListItemView/ListItemView.mjs +6 -6
- package/dist/js/components/List/components/Table/Table.mjs +6 -6
- package/dist/js/components/List/typedList.mjs +4 -7
- package/dist/js/components/List/typedList.mjs.map +1 -1
- package/dist/js/components/Table/Table.module.scss.mjs +1 -0
- package/dist/js/components/Table/Table.module.scss.mjs.map +1 -1
- package/dist/js/components/Table/components/TableCell/TableCell.mjs +12 -2
- package/dist/js/components/Table/components/TableCell/TableCell.mjs.map +1 -1
- package/dist/js/components/Table/components/TableColumn/TableColumn.mjs +6 -2
- package/dist/js/components/Table/components/TableColumn/TableColumn.mjs.map +1 -1
- package/dist/js/components/Tabs/Tabs.mjs +17 -6
- package/dist/js/components/Tabs/Tabs.mjs.map +1 -1
- package/dist/js/components/Text/Text.mjs +7 -1
- package/dist/js/components/Text/Text.mjs.map +1 -1
- package/dist/js/components/Text/Text.module.scss.mjs +4 -1
- package/dist/js/components/Text/Text.module.scss.mjs.map +1 -1
- package/dist/js/flr-universal.mjs +1 -1
- package/dist/js/index.mjs +0 -2
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/integrations/react-hook-form/components/Field/Field.mjs +8 -2
- package/dist/js/integrations/react-hook-form/components/Field/Field.mjs.map +1 -1
- package/dist/js/views/AvatarView.mjs +14 -0
- package/dist/js/views/AvatarView.mjs.map +1 -0
- package/dist/js/views/ItemsGridListItemView.mjs +7 -7
- package/dist/js/views/ItemsGridListView.mjs +9 -9
- package/dist/js/views/ListEmptyViewView.mjs +9 -9
- package/dist/js/views/ListItemViewContentView.mjs +6 -6
- package/dist/types/components/Align/Align.d.ts.map +1 -1
- package/dist/types/components/Align/stories/TextContextualHelp.stories.d.ts +7 -0
- package/dist/types/components/Align/stories/TextContextualHelp.stories.d.ts.map +1 -0
- package/dist/types/components/FileCard/components/DeleteButton/DeleteButton.d.ts.map +1 -1
- package/dist/types/components/Image/Image.d.ts +4 -2
- package/dist/types/components/Image/Image.d.ts.map +1 -1
- package/dist/types/components/Image/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/Image/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/components/LabeledValue/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/LabeledValue/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/components/List/components/Footer/components/PaginationInfos/PaginationInfos.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/Items.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/components/FallbackItems/FallbackItems.d.ts +1 -2
- package/dist/types/components/List/components/Items/components/FallbackItems/FallbackItems.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/components/FallbackItems/index.d.ts +0 -1
- package/dist/types/components/List/components/Items/components/FallbackItems/index.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/components/Item/Item.d.ts.map +1 -1
- package/dist/types/components/List/components/Items/components/Item/components/ListItemSkeletonView/ListItemSkeletonView.d.ts +7 -0
- package/dist/types/components/List/components/Items/components/Item/components/ListItemSkeletonView/ListItemSkeletonView.d.ts.map +1 -0
- package/dist/types/components/List/index.d.ts +1 -2
- package/dist/types/components/List/index.d.ts.map +1 -1
- package/dist/types/components/List/typedList.d.ts +1 -1
- package/dist/types/components/Section/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/components/SegmentedControl/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/SegmentedControl/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/components/Table/components/TableCell/TableCell.d.ts +2 -0
- package/dist/types/components/Table/components/TableCell/TableCell.d.ts.map +1 -1
- package/dist/types/components/Table/components/TableColumn/TableColumn.d.ts +4 -1
- package/dist/types/components/Table/components/TableColumn/TableColumn.d.ts.map +1 -1
- package/dist/types/components/Table/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/Table/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/components/Tabs/Tabs.d.ts +2 -2
- package/dist/types/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/types/components/Text/Text.d.ts +1 -0
- package/dist/types/components/Text/Text.d.ts.map +1 -1
- package/dist/types/components/Text/stories/Default.stories.d.ts +1 -0
- package/dist/types/components/Text/stories/Default.stories.d.ts.map +1 -1
- package/dist/types/integrations/react-hook-form/components/Field/Field.d.ts.map +1 -1
- package/dist/types/integrations/react-hook-form/components/Field/stories/Default.stories.d.ts.map +1 -1
- package/package.json +33 -33
- package/dist/js/components/List/components/Items/components/Item/components/SkeletonView/SkeletonView.mjs +0 -45
- package/dist/js/components/List/components/Items/components/Item/components/SkeletonView/SkeletonView.mjs.map +0 -1
- package/dist/js/components/SkeletonText/index.mjs +0 -6
- package/dist/js/components/SkeletonText/index.mjs.map +0 -1
- package/dist/js/views/FallbackItemsView.mjs +0 -35
- package/dist/js/views/FallbackItemsView.mjs.map +0 -1
- package/dist/js/views/SkeletonViewView.mjs +0 -34
- package/dist/js/views/SkeletonViewView.mjs.map +0 -1
- package/dist/types/components/List/components/Items/components/Item/components/SkeletonView/SkeletonView.d.ts +0 -5
- package/dist/types/components/List/components/Items/components/Item/components/SkeletonView/SkeletonView.d.ts.map +0 -1
- package/dist/types/components/List/components/Items/components/Item/components/SkeletonView/index.d.ts +0 -3
- package/dist/types/components/List/components/Items/components/Item/components/SkeletonView/index.d.ts.map +0 -1
- package/dist/types/components/List/components/Items/components/Item/components/SkeletonView/view.d.ts +0 -8
- package/dist/types/components/List/components/Items/components/Item/components/SkeletonView/view.d.ts.map +0 -1
- package/dist/types/views/FallbackItemsView.d.ts +0 -5
- package/dist/types/views/FallbackItemsView.d.ts.map +0 -1
- package/dist/types/views/SkeletonViewView.d.ts +0 -5
- package/dist/types/views/SkeletonViewView.d.ts.map +0 -1
|
@@ -15,7 +15,12 @@ const Align = flowComponent("Align", (props) => {
|
|
|
15
15
|
Button: { className: styles.button },
|
|
16
16
|
Avatar: { className: styles.avatar, size: "m" },
|
|
17
17
|
CopyButton: { size: "s", className: styles.copyButton },
|
|
18
|
-
Icon: { size: "s", className: styles.icon }
|
|
18
|
+
Icon: { size: "s", className: styles.icon },
|
|
19
|
+
ContextualHelpTrigger: {
|
|
20
|
+
Button: {
|
|
21
|
+
className: styles.contextualHelpTriggerButton
|
|
22
|
+
}
|
|
23
|
+
}
|
|
19
24
|
};
|
|
20
25
|
return /* @__PURE__ */ jsx(PropsContextProvider, { props: propsContext, children: /* @__PURE__ */ jsx("div", { className: rootClassName, children }) });
|
|
21
26
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Align.mjs","sources":["../../../../src/components/Align/Align.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport styles from \"./Align.module.scss\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport PropsContextProvider from \"@/lib/propsContext/PropsContextProvider\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\n\nexport interface AlignProps\n extends PropsWithChildren,\n PropsWithClassName,\n FlowComponentProps {}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const Align = flowComponent(\"Align\", (props) => {\n const { children, className } = props;\n\n const rootClassName = clsx(styles.align, className);\n\n const propsContext: PropsContext = {\n Text: { className: styles.text },\n Button: { className: styles.button },\n Avatar: { className: styles.avatar, size: \"m\" },\n CopyButton: { size: \"s\", className: styles.copyButton },\n Icon: { size: \"s\", className: styles.icon },\n };\n\n return (\n <PropsContextProvider props={propsContext}>\n <div className={rootClassName}>{children}</div>\n </PropsContextProvider>\n );\n});\n\nexport default Align;\n"],"names":[],"mappings":";;;;;;;AAmBO,MAAM,KAAQ,GAAA,aAAA,CAAc,OAAS,EAAA,CAAC,KAAU,KAAA;AACrD,EAAM,MAAA,EAAE,QAAU,EAAA,SAAA,EAAc,GAAA,KAAA;AAEhC,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,KAAA,EAAO,SAAS,CAAA;AAElD,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,IAAM,EAAA,EAAE,SAAW,EAAA,MAAA,CAAO,IAAK,EAAA;AAAA,IAC/B,MAAQ,EAAA,EAAE,SAAW,EAAA,MAAA,CAAO,MAAO,EAAA;AAAA,IACnC,QAAQ,EAAE,SAAA,EAAW,MAAO,CAAA,MAAA,EAAQ,MAAM,GAAI,EAAA;AAAA,IAC9C,YAAY,EAAE,IAAA,EAAM,GAAK,EAAA,SAAA,EAAW,OAAO,UAAW,EAAA;AAAA,IACtD,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,SAAA,EAAW,OAAO,IAAK;AAAA,
|
|
1
|
+
{"version":3,"file":"Align.mjs","sources":["../../../../src/components/Align/Align.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\";\nimport React from \"react\";\nimport styles from \"./Align.module.scss\";\nimport clsx from \"clsx\";\nimport type { PropsContext } from \"@/lib/propsContext\";\nimport PropsContextProvider from \"@/lib/propsContext/PropsContextProvider\";\nimport type { PropsWithClassName } from \"@/lib/types/props\";\nimport type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\n\nexport interface AlignProps\n extends PropsWithChildren,\n PropsWithClassName,\n FlowComponentProps {}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const Align = flowComponent(\"Align\", (props) => {\n const { children, className } = props;\n\n const rootClassName = clsx(styles.align, className);\n\n const propsContext: PropsContext = {\n Text: { className: styles.text },\n Button: { className: styles.button },\n Avatar: { className: styles.avatar, size: \"m\" },\n CopyButton: { size: \"s\", className: styles.copyButton },\n Icon: { size: \"s\", className: styles.icon },\n ContextualHelpTrigger: {\n Button: {\n className: styles.contextualHelpTriggerButton,\n },\n },\n };\n\n return (\n <PropsContextProvider props={propsContext}>\n <div className={rootClassName}>{children}</div>\n </PropsContextProvider>\n );\n});\n\nexport default Align;\n"],"names":[],"mappings":";;;;;;;AAmBO,MAAM,KAAQ,GAAA,aAAA,CAAc,OAAS,EAAA,CAAC,KAAU,KAAA;AACrD,EAAM,MAAA,EAAE,QAAU,EAAA,SAAA,EAAc,GAAA,KAAA;AAEhC,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,MAAO,CAAA,KAAA,EAAO,SAAS,CAAA;AAElD,EAAA,MAAM,YAA6B,GAAA;AAAA,IACjC,IAAM,EAAA,EAAE,SAAW,EAAA,MAAA,CAAO,IAAK,EAAA;AAAA,IAC/B,MAAQ,EAAA,EAAE,SAAW,EAAA,MAAA,CAAO,MAAO,EAAA;AAAA,IACnC,QAAQ,EAAE,SAAA,EAAW,MAAO,CAAA,MAAA,EAAQ,MAAM,GAAI,EAAA;AAAA,IAC9C,YAAY,EAAE,IAAA,EAAM,GAAK,EAAA,SAAA,EAAW,OAAO,UAAW,EAAA;AAAA,IACtD,MAAM,EAAE,IAAA,EAAM,GAAK,EAAA,SAAA,EAAW,OAAO,IAAK,EAAA;AAAA,IAC1C,qBAAuB,EAAA;AAAA,MACrB,MAAQ,EAAA;AAAA,QACN,WAAW,MAAO,CAAA;AAAA;AACpB;AACF,GACF;AAEA,EACE,uBAAA,GAAA,CAAC,wBAAqB,KAAO,EAAA,YAAA,EAC3B,8BAAC,KAAI,EAAA,EAAA,SAAA,EAAW,aAAgB,EAAA,QAAA,EAAS,CAC3C,EAAA,CAAA;AAEJ,CAAC;;;;"}
|
|
@@ -5,6 +5,7 @@ const avatar = "flow--align--avatar";
|
|
|
5
5
|
const text = "flow--align--text";
|
|
6
6
|
const button = "flow--align--button";
|
|
7
7
|
const copyButton = "flow--align--copy-button";
|
|
8
|
+
const contextualHelpTriggerButton = "flow--align--contextual-help-trigger-button";
|
|
8
9
|
const icon = "flow--align--icon";
|
|
9
10
|
const styles = {
|
|
10
11
|
align: align,
|
|
@@ -12,8 +13,9 @@ const styles = {
|
|
|
12
13
|
text: text,
|
|
13
14
|
button: button,
|
|
14
15
|
copyButton: copyButton,
|
|
16
|
+
contextualHelpTriggerButton: contextualHelpTriggerButton,
|
|
15
17
|
icon: icon
|
|
16
18
|
};
|
|
17
19
|
|
|
18
|
-
export { align, avatar, button, copyButton, styles as default, icon, text };
|
|
20
|
+
export { align, avatar, button, contextualHelpTriggerButton, copyButton, styles as default, icon, text };
|
|
19
21
|
//# sourceMappingURL=Align.module.scss.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Align.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Align.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteButton.mjs","sources":["../../../../../../src/components/FileCard/components/DeleteButton/DeleteButton.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport React from \"react\";\nimport { Button } from \"@/components/Button\";\nimport styles from \"@/components/FileCard/FileCard.module.scss\";\nimport { IconClose } from \"@/components/Icon/components/icons\";\nimport locales from \"../../locales/*.locale.json\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\n\ninterface Props {\n onDelete: () => void;\n}\n\nexport const DeleteButton: FC<Props> = (props) => {\n const { onDelete } = props;\n const stringFormatter = useLocalizedStringFormatter(locales);\n\n return (\n <Button\n className={styles.deleteButton}\n aria-label={stringFormatter.format(`fileCard.delete`)}\n
|
|
1
|
+
{"version":3,"file":"DeleteButton.mjs","sources":["../../../../../../src/components/FileCard/components/DeleteButton/DeleteButton.tsx"],"sourcesContent":["import type { FC } from \"react\";\nimport React from \"react\";\nimport { Button } from \"@/components/Button\";\nimport styles from \"@/components/FileCard/FileCard.module.scss\";\nimport { IconClose } from \"@/components/Icon/components/icons\";\nimport locales from \"../../locales/*.locale.json\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\n\ninterface Props {\n onDelete: () => void;\n}\n\nexport const DeleteButton: FC<Props> = (props) => {\n const { onDelete } = props;\n const stringFormatter = useLocalizedStringFormatter(locales);\n\n return (\n <Button\n className={styles.deleteButton}\n aria-label={stringFormatter.format(`fileCard.delete`)}\n variant=\"plain\"\n color=\"secondary\"\n onPress={onDelete}\n >\n <IconClose />\n </Button>\n );\n};\n\nexport default DeleteButton;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAYa,MAAA,YAAA,GAA0B,CAAC,KAAU,KAAA;AAChD,EAAM,MAAA,EAAE,UAAa,GAAA,KAAA;AACrB,EAAM,MAAA,eAAA,GAAkB,4BAA4B,OAAO,CAAA;AAE3D,EACE,uBAAA,GAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,WAAW,MAAO,CAAA,YAAA;AAAA,MAClB,YAAA,EAAY,eAAgB,CAAA,MAAA,CAAO,CAAiB,eAAA,CAAA,CAAA;AAAA,MACpD,OAAQ,EAAA,OAAA;AAAA,MACR,KAAM,EAAA,WAAA;AAAA,MACN,OAAS,EAAA,QAAA;AAAA,MAET,8BAAC,SAAU,EAAA,EAAA;AAAA;AAAA,GACb;AAEJ;;;;"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import '
|
|
4
|
+
import { flowComponent } from '../../lib/componentFactory/flowComponent.mjs';
|
|
5
5
|
import '../../lib/propsContext/propsContext.mjs';
|
|
6
6
|
import { ClearPropsContext } from '../../lib/propsContext/ClearPropsContext.mjs';
|
|
7
|
+
import 'react';
|
|
7
8
|
import '@react-aria/utils';
|
|
8
9
|
import 'remeda';
|
|
9
10
|
import 'dot-prop';
|
|
10
|
-
import
|
|
11
|
+
import clsx from 'clsx';
|
|
12
|
+
import styles from './Image.module.scss.mjs';
|
|
11
13
|
|
|
12
14
|
const Image = flowComponent("Image", (props) => {
|
|
13
|
-
const {
|
|
14
|
-
|
|
15
|
+
const { className, withBorder, ...rest } = props;
|
|
16
|
+
const rootClassName = clsx(withBorder && styles.border, className);
|
|
17
|
+
return /* @__PURE__ */ jsx(ClearPropsContext, { children: /* @__PURE__ */ jsx("img", { className: rootClassName, ...rest }) });
|
|
15
18
|
});
|
|
16
19
|
|
|
17
20
|
export { Image, Image as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.mjs","sources":["../../../../src/components/Image/Image.tsx"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Image.mjs","sources":["../../../../src/components/Image/Image.tsx"],"sourcesContent":["import type { FlowComponentProps } from \"@/lib/componentFactory/flowComponent\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { ClearPropsContext } from \"@/lib/propsContext\";\nimport clsx from \"clsx\";\nimport type { ComponentProps } from \"react\";\nimport styles from \"./Image.module.scss\";\n\nexport interface ImageProps extends ComponentProps<\"img\">, FlowComponentProps {\n /** Display the image with border and rounded edges */\n withBorder?: boolean;\n}\n\n/**\n * @flr-generate all\n * @flr-clear-props-context\n */\nexport const Image = flowComponent(\"Image\", (props) => {\n const { className, withBorder, ...rest } = props;\n\n const rootClassName = clsx(withBorder && styles.border, className);\n\n return (\n <ClearPropsContext>\n <img className={rootClassName} {...rest} />\n </ClearPropsContext>\n );\n});\n\nexport default Image;\n"],"names":[],"mappings":";;;;;;;;;;;AAgBO,MAAM,KAAQ,GAAA,aAAA,CAAc,OAAS,EAAA,CAAC,KAAU,KAAA;AACrD,EAAA,MAAM,EAAE,SAAA,EAAW,UAAY,EAAA,GAAG,MAAS,GAAA,KAAA;AAE3C,EAAA,MAAM,aAAgB,GAAA,IAAA,CAAK,UAAc,IAAA,MAAA,CAAO,QAAQ,SAAS,CAAA;AAEjE,EACE,uBAAA,GAAA,CAAC,qBACC,QAAC,kBAAA,GAAA,CAAA,KAAA,EAAA,EAAI,WAAW,aAAgB,EAAA,GAAG,MAAM,CAC3C,EAAA,CAAA;AAEJ,CAAC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
package/dist/js/components/List/components/Footer/components/PaginationInfos/PaginationInfos.mjs
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import locales from '../../../../../../_virtual/_.locale.json@8d5024994f97657f895a4e2a188d2d8a.mjs';
|
|
5
|
-
import { useLocalizedStringFormatter } from 'react-aria';
|
|
6
|
-
import 'react';
|
|
7
4
|
import { useList } from '../../../../hooks/useList.mjs';
|
|
8
5
|
import SkeletonView from '../../../../../../views/SkeletonView.mjs';
|
|
9
6
|
import TextView from '../../../../../../views/TextView.mjs';
|
|
7
|
+
import { useLocalizedStringFormatter } from 'react-aria';
|
|
8
|
+
import locales from '../../../../../../_virtual/_.locale.json@8d5024994f97657f895a4e2a188d2d8a.mjs';
|
|
10
9
|
|
|
11
10
|
const PaginationInfos = (props) => {
|
|
12
11
|
const stringFormatter = useLocalizedStringFormatter(locales);
|
package/dist/js/components/List/components/Footer/components/PaginationInfos/PaginationInfos.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaginationInfos.mjs","sources":["../../../../../../../../src/components/List/components/Footer/components/PaginationInfos/PaginationInfos.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"PaginationInfos.mjs","sources":["../../../../../../../../src/components/List/components/Footer/components/PaginationInfos/PaginationInfos.tsx"],"sourcesContent":["import { useList } from \"@/components/List/hooks/useList\";\nimport type { TextProps } from \"@/components/Text\";\nimport SkeletonView from \"@/views/SkeletonView\";\nimport TextView from \"@/views/TextView\";\nimport type { FC } from \"react\";\nimport { useLocalizedStringFormatter } from \"react-aria\";\nimport locales from \"../../../../locales/*.locale.json\";\n\nexport const PaginationInfos: FC<TextProps> = (props) => {\n const stringFormatter = useLocalizedStringFormatter(locales);\n\n const list = useList();\n const pagination = list.batches;\n const isInitiallyLoading = list.loader.useIsInitiallyLoading();\n const isEmpty = list.useIsEmpty();\n\n const totalItemsCount = pagination.getTotalItemsCount();\n const visibleItemsCount = pagination.getVisibleItemsCount();\n\n if (isEmpty) {\n return null;\n }\n\n const text = isInitiallyLoading ? (\n <SkeletonView width=\"200px\" />\n ) : (\n stringFormatter.format(\"list.paginationInfo\", {\n visibleItemsCount,\n totalItemsCount,\n })\n );\n\n return <TextView {...props}>{text}</TextView>;\n};\n\nexport default PaginationInfos;\n"],"names":[],"mappings":";;;;;;;AAQa,MAAA,eAAA,GAAiC,CAAC,KAAU,KAAA;AACvD,EAAM,MAAA,eAAA,GAAkB,4BAA4B,OAAO,CAAA;AAE3D,EAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,EAAA,MAAM,aAAa,IAAK,CAAA,OAAA;AACxB,EAAM,MAAA,kBAAA,GAAqB,IAAK,CAAA,MAAA,CAAO,qBAAsB,EAAA;AAC7D,EAAM,MAAA,OAAA,GAAU,KAAK,UAAW,EAAA;AAEhC,EAAM,MAAA,eAAA,GAAkB,WAAW,kBAAmB,EAAA;AACtD,EAAM,MAAA,iBAAA,GAAoB,WAAW,oBAAqB,EAAA;AAE1D,EAAA,IAAI,OAAS,EAAA;AACX,IAAO,OAAA,IAAA;AAAA;AAGT,EAAM,MAAA,IAAA,GAAO,qCACV,GAAA,CAAA,YAAA,EAAA,EAAa,OAAM,OAAQ,EAAA,CAAA,GAE5B,eAAgB,CAAA,MAAA,CAAO,qBAAuB,EAAA;AAAA,IAC5C,iBAAA;AAAA,IACA;AAAA,GACD,CAAA;AAGH,EAAA,uBAAQ,GAAA,CAAA,QAAA,EAAA,EAAU,GAAG,KAAA,EAAQ,QAAK,EAAA,IAAA,EAAA,CAAA;AACpC;;;;"}
|
|
@@ -4,28 +4,26 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
import 'react';
|
|
5
5
|
import locales from '../../../../../../_virtual/_.locale.json@8d5024994f97657f895a4e2a188d2d8a.mjs';
|
|
6
6
|
import { useLocalizedStringFormatter } from 'react-aria';
|
|
7
|
+
import 'react-aria-components';
|
|
7
8
|
import 'clsx';
|
|
8
9
|
import '../../../../../../lib/propsContext/propsContext.mjs';
|
|
9
10
|
import '@react-aria/utils';
|
|
10
11
|
import 'remeda';
|
|
11
12
|
import 'dot-prop';
|
|
12
|
-
import '
|
|
13
|
-
import 'react-children-utilities';
|
|
13
|
+
import '@tabler/icons-react';
|
|
14
14
|
import '@mittwald/react-tunnel';
|
|
15
15
|
import '../../../../../../lib/slotContext/slotContext.mjs';
|
|
16
|
-
import 'react-aria-components';
|
|
17
|
-
import 'invariant';
|
|
18
|
-
import '@tabler/icons-react';
|
|
19
16
|
import '../../../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
20
17
|
import { IconView } from '../../../../../Icon/components/icons/IconView.mjs';
|
|
18
|
+
import 'invariant';
|
|
21
19
|
import ButtonView from '../../../../../../views/ButtonView.mjs';
|
|
22
|
-
import { useList } from '../../../../hooks/useList.mjs';
|
|
23
20
|
import { ContextMenu } from '../../../../../ContextMenu/ContextMenu.mjs';
|
|
24
21
|
import { ContextMenuTrigger } from '../../../../../ContextMenu/components/ContextMenuTrigger/ContextMenuTrigger.mjs';
|
|
25
22
|
import 'mobx';
|
|
26
23
|
import '../../../../../../lib/controller/overlay/context.mjs';
|
|
27
24
|
import '../../../../../Action/context.mjs';
|
|
28
25
|
import '../../../../../Action/models/ActionStateContext.mjs';
|
|
26
|
+
import { useList } from '../../../../hooks/useList.mjs';
|
|
29
27
|
import '../../../../listContext.mjs';
|
|
30
28
|
import MenuItemView from '../../../../../../views/MenuItemView.mjs';
|
|
31
29
|
import TextView from '../../../../../../views/TextView.mjs';
|
|
@@ -34,6 +32,8 @@ import '@chakra-ui/live-region';
|
|
|
34
32
|
import SectionView from '../../../../../../views/SectionView.mjs';
|
|
35
33
|
import HeadingView from '../../../../../../views/HeadingView.mjs';
|
|
36
34
|
import '../../../../model/List.mjs';
|
|
35
|
+
import 'object-code';
|
|
36
|
+
import 'react-children-utilities';
|
|
37
37
|
|
|
38
38
|
const ViewModeMenu = () => {
|
|
39
39
|
const stringFormatter = useLocalizedStringFormatter(locales);
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import 'react';
|
|
4
|
+
import 'react-aria-components';
|
|
5
|
+
import { EmptyView } from '../../views/EmptyView/EmptyView.mjs';
|
|
5
6
|
import clsx from 'clsx';
|
|
7
|
+
import 'react';
|
|
8
|
+
import '@mittwald/react-tunnel';
|
|
9
|
+
import '../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
6
10
|
import '../../../../lib/propsContext/propsContext.mjs';
|
|
7
11
|
import '@react-aria/utils';
|
|
8
12
|
import 'remeda';
|
|
9
13
|
import 'dot-prop';
|
|
10
|
-
import 'object-code';
|
|
11
|
-
import 'react-children-utilities';
|
|
12
|
-
import '@mittwald/react-tunnel';
|
|
13
|
-
import '../../../../lib/slotContext/slotContext.mjs';
|
|
14
|
-
import 'react-aria-components';
|
|
15
|
-
import 'invariant';
|
|
16
|
-
import { Item } from './components/Item/Item.mjs';
|
|
17
|
-
import { useList } from '../../hooks/useList.mjs';
|
|
18
|
-
import { EmptyView } from '../../views/EmptyView/EmptyView.mjs';
|
|
19
|
-
import '../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
20
14
|
import 'react-aria';
|
|
21
15
|
import '@tabler/icons-react';
|
|
16
|
+
import '../../../../lib/slotContext/slotContext.mjs';
|
|
17
|
+
import 'invariant';
|
|
22
18
|
import '@chakra-ui/live-region';
|
|
23
19
|
import 'mobx';
|
|
24
20
|
import '../../../../lib/controller/overlay/context.mjs';
|
|
25
21
|
import '../../../Action/context.mjs';
|
|
26
22
|
import '../../../Action/models/ActionStateContext.mjs';
|
|
23
|
+
import { useList } from '../../hooks/useList.mjs';
|
|
27
24
|
import '../../listContext.mjs';
|
|
28
25
|
import '../Header/components/ActiveFilters/ActiveFilters.mjs';
|
|
29
26
|
import DivView from '../../../../views/DivView.mjs';
|
|
30
27
|
import '../../model/List.mjs';
|
|
31
|
-
import
|
|
28
|
+
import { Item } from './components/Item/Item.mjs';
|
|
32
29
|
import ItemsGridListView from '../../../../views/ItemsGridListView.mjs';
|
|
33
30
|
import styles from './Items.module.scss.mjs';
|
|
31
|
+
import { FallbackItems } from './components/FallbackItems/FallbackItems.mjs';
|
|
32
|
+
import 'react-children-utilities';
|
|
34
33
|
|
|
35
34
|
const Items = () => {
|
|
36
35
|
const list = useList();
|
|
@@ -55,7 +54,7 @@ const Items = () => {
|
|
|
55
54
|
style: {
|
|
56
55
|
gridTemplateColumns: `repeat(auto-fill, minmax(${list.itemView.tileMaxWidth}px, 1fr))`
|
|
57
56
|
},
|
|
58
|
-
children: isInitiallyLoading ? /* @__PURE__ */ jsx(
|
|
57
|
+
children: isInitiallyLoading ? /* @__PURE__ */ jsx(FallbackItems, {}) : items
|
|
59
58
|
}
|
|
60
59
|
) });
|
|
61
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Items.mjs","sources":["../../../../../../src/components/List/components/Items/Items.tsx"],"sourcesContent":["import { EmptyView } from \"@/components/List\";\nimport Item from \"@/components/List/components/Items/components/Item/Item\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport DivView from \"@/views/DivView\";\nimport
|
|
1
|
+
{"version":3,"file":"Items.mjs","sources":["../../../../../../src/components/List/components/Items/Items.tsx"],"sourcesContent":["import { EmptyView } from \"@/components/List\";\nimport Item from \"@/components/List/components/Items/components/Item/Item\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport DivView from \"@/views/DivView\";\nimport ItemsGridListView from \"@/views/ItemsGridListView\";\nimport clsx from \"clsx\";\nimport type { FC } from \"react\";\nimport styles from \"./Items.module.scss\";\nimport { FallbackItems } from \"./components/FallbackItems\";\n\nexport const Items: FC = () => {\n const list = useList();\n const tiles = list.viewMode === \"tiles\";\n const isLoading = list.loader.useIsLoading();\n const isInitiallyLoading = list.loader.useIsInitiallyLoading();\n\n if (!list.itemView) {\n return null;\n }\n\n const items = list.items.entries.map((item) => (\n <Item key={item.id} data={item.data} id={item.id} />\n ));\n\n const rootClassName = clsx(\n styles.items,\n isLoading && styles.isLoading,\n tiles && styles.tiles,\n );\n\n return (\n <DivView aria-hidden={isInitiallyLoading} aria-busy={isLoading}>\n <ItemsGridListView\n className={rootClassName}\n {...list.componentProps}\n renderEmptyState={() => <EmptyView />}\n style={{\n gridTemplateColumns: `repeat(auto-fill, minmax(${list.itemView.tileMaxWidth}px, 1fr))`,\n }}\n >\n {isInitiallyLoading ? <FallbackItems /> : items}\n </ItemsGridListView>\n </DivView>\n );\n};\n\nexport default Items;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,QAAY,MAAM;AAC7B,EAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,EAAM,MAAA,KAAA,GAAQ,KAAK,QAAa,KAAA,OAAA;AAChC,EAAM,MAAA,SAAA,GAAY,IAAK,CAAA,MAAA,CAAO,YAAa,EAAA;AAC3C,EAAM,MAAA,kBAAA,GAAqB,IAAK,CAAA,MAAA,CAAO,qBAAsB,EAAA;AAE7D,EAAI,IAAA,CAAC,KAAK,QAAU,EAAA;AAClB,IAAO,OAAA,IAAA;AAAA;AAGT,EAAA,MAAM,QAAQ,IAAK,CAAA,KAAA,CAAM,OAAQ,CAAA,GAAA,CAAI,CAAC,IACpC,qBAAA,GAAA,CAAC,IAAmB,EAAA,EAAA,IAAA,EAAM,KAAK,IAAM,EAAA,EAAA,EAAI,KAAK,EAAnC,EAAA,EAAA,IAAA,CAAK,EAAkC,CACnD,CAAA;AAED,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,MAAO,CAAA,KAAA;AAAA,IACP,aAAa,MAAO,CAAA,SAAA;AAAA,IACpB,SAAS,MAAO,CAAA;AAAA,GAClB;AAEA,EAAA,uBACG,GAAA,CAAA,OAAA,EAAA,EAAQ,aAAa,EAAA,kBAAA,EAAoB,aAAW,SACnD,EAAA,QAAA,kBAAA,GAAA;AAAA,IAAC,iBAAA;AAAA,IAAA;AAAA,MACC,SAAW,EAAA,aAAA;AAAA,MACV,GAAG,IAAK,CAAA,cAAA;AAAA,MACT,gBAAA,EAAkB,sBAAM,GAAA,CAAC,SAAU,EAAA,EAAA,CAAA;AAAA,MACnC,KAAO,EAAA;AAAA,QACL,mBAAqB,EAAA,CAAA,yBAAA,EAA4B,IAAK,CAAA,QAAA,CAAS,YAAY,CAAA,SAAA;AAAA,OAC7E;AAAA,MAEC,QAAA,EAAA,kBAAA,mBAAsB,GAAA,CAAA,aAAA,EAAA,EAAc,CAAK,GAAA;AAAA;AAAA,GAE9C,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { SkeletonView } from '../Item/components/SkeletonView/SkeletonView.mjs';
|
|
5
4
|
import { ItemContainer } from '../Item/Item.mjs';
|
|
6
5
|
import { useList } from '../../../../hooks/useList.mjs';
|
|
7
6
|
import { cloneElement } from 'react';
|
|
7
|
+
import { ListItemSkeletonView } from '../Item/components/ListItemSkeletonView/ListItemSkeletonView.mjs';
|
|
8
8
|
|
|
9
9
|
const FallbackItems = () => {
|
|
10
10
|
const list = useList();
|
|
11
|
-
const fallback = list.itemView?.fallback ?? /* @__PURE__ */ jsx(
|
|
11
|
+
const fallback = list.itemView?.fallback ?? /* @__PURE__ */ jsx(ListItemSkeletonView, { viewMode: list.viewMode });
|
|
12
12
|
return Array.from(Array(5)).map((_, i) => /* @__PURE__ */ jsx(ItemContainer, { id: i, data: i, children: cloneElement(fallback) }, i));
|
|
13
13
|
};
|
|
14
14
|
|
package/dist/js/components/List/components/Items/components/FallbackItems/FallbackItems.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FallbackItems.mjs","sources":["../../../../../../../../src/components/List/components/Items/components/FallbackItems/FallbackItems.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"FallbackItems.mjs","sources":["../../../../../../../../src/components/List/components/Items/components/FallbackItems/FallbackItems.tsx"],"sourcesContent":["import { ItemContainer } from \"@/components/List/components/Items/components/Item/Item\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport type { FC } from \"react\";\nimport { cloneElement } from \"react\";\nimport { ListItemSkeletonView } from \"../Item/components/ListItemSkeletonView/ListItemSkeletonView\";\n\nexport type FallbackItemsProps = unknown;\n\nexport const FallbackItems: FC<FallbackItemsProps> = () => {\n const list = useList();\n const fallback = list.itemView?.fallback ?? (\n <ListItemSkeletonView viewMode={list.viewMode} />\n );\n\n return Array.from(Array(5)).map((_, i) => (\n <ItemContainer id={i} data={i as never} key={i}>\n {cloneElement(fallback)}\n </ItemContainer>\n ));\n};\n"],"names":[],"mappings":";;;;;;AAQO,MAAM,gBAAwC,MAAM;AACzD,EAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,EAAM,MAAA,QAAA,GAAW,KAAK,QAAU,EAAA,QAAA,wBAC7B,oBAAqB,EAAA,EAAA,QAAA,EAAU,KAAK,QAAU,EAAA,CAAA;AAGjD,EAAO,OAAA,KAAA,CAAM,KAAK,KAAM,CAAA,CAAC,CAAC,CAAE,CAAA,GAAA,CAAI,CAAC,CAAG,EAAA,CAAA,yBACjC,aAAc,EAAA,EAAA,EAAA,EAAI,GAAG,IAAM,EAAA,CAAA,EACzB,uBAAa,QAAQ,CAAA,EAAA,EADqB,CAE7C,CACD,CAAA;AACH;;;;"}
|
|
@@ -4,9 +4,9 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
4
4
|
import { useGridItemProps } from './hooks/useGridItemProps.mjs';
|
|
5
5
|
import { useList } from '../../../../hooks/useList.mjs';
|
|
6
6
|
import ItemsGridListItemView from '../../../../../../views/ItemsGridListItemView.mjs';
|
|
7
|
-
import SkeletonViewView from '../../../../../../views/SkeletonViewView.mjs';
|
|
8
7
|
import { Suspense } from 'react';
|
|
9
8
|
import styles from './Item.module.scss.mjs';
|
|
9
|
+
import { ListItemSkeletonView } from './components/ListItemSkeletonView/ListItemSkeletonView.mjs';
|
|
10
10
|
|
|
11
11
|
const Item = (props) => {
|
|
12
12
|
const { id, data } = props;
|
|
@@ -28,7 +28,7 @@ const Item = (props) => {
|
|
|
28
28
|
hasAction,
|
|
29
29
|
isTile: list.viewMode === "tiles",
|
|
30
30
|
...gridItemProps,
|
|
31
|
-
children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(
|
|
31
|
+
children: /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(ListItemSkeletonView, { viewMode: list.viewMode }), children })
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.mjs","sources":["../../../../../../../../src/components/List/components/Items/components/Item/Item.tsx"],"sourcesContent":["import { useGridItemProps } from \"@/components/List/components/Items/components/Item/hooks/useGridItemProps\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport ItemsGridListItemView from \"@/views/ItemsGridListItemView\";\nimport
|
|
1
|
+
{"version":3,"file":"Item.mjs","sources":["../../../../../../../../src/components/List/components/Items/components/Item/Item.tsx"],"sourcesContent":["import { useGridItemProps } from \"@/components/List/components/Items/components/Item/hooks/useGridItemProps\";\nimport { useList } from \"@/components/List/hooks/useList\";\nimport ItemsGridListItemView from \"@/views/ItemsGridListItemView\";\nimport type { FC, PropsWithChildren } from \"react\";\nimport { Suspense } from \"react\";\nimport type { Key } from \"react-aria-components\";\nimport styles from \"./Item.module.scss\";\nimport { ListItemSkeletonView } from \"./components/ListItemSkeletonView/ListItemSkeletonView\";\n\ninterface Props extends PropsWithChildren {\n id: Key;\n data: never;\n}\n\nexport const Item = (props: Props) => {\n const { id, data } = props;\n const list = useList();\n\n const itemView = list.itemView;\n\n const { gridItemProps, children } = useGridItemProps(props);\n\n if (!itemView) {\n return null;\n }\n\n const textValue = itemView.textValue ? itemView.textValue(data) : undefined;\n const href = itemView.href ? itemView.href(data) : undefined;\n const hasAction = !!gridItemProps.onAction || !!href;\n\n return (\n <ItemsGridListItemView\n id={id}\n textValue={textValue}\n href={href}\n hasAction={hasAction}\n isTile={list.viewMode === \"tiles\"}\n {...gridItemProps}\n >\n <Suspense fallback={<ListItemSkeletonView viewMode={list.viewMode} />}>\n {children}\n </Suspense>\n </ItemsGridListItemView>\n );\n};\n\nexport const ItemContainer: FC<Props> = (props) => {\n const list = useList();\n return (\n <ItemsGridListItemView\n textValue=\"-\"\n className={styles.item}\n isTile={list.viewMode === \"tiles\"}\n >\n {props.children}\n </ItemsGridListItemView>\n );\n};\n\nexport default Item;\n"],"names":[],"mappings":";;;;;;;;AAca,MAAA,IAAA,GAAO,CAAC,KAAiB,KAAA;AACpC,EAAM,MAAA,EAAE,EAAI,EAAA,IAAA,EAAS,GAAA,KAAA;AACrB,EAAA,MAAM,OAAO,OAAQ,EAAA;AAErB,EAAA,MAAM,WAAW,IAAK,CAAA,QAAA;AAEtB,EAAA,MAAM,EAAE,aAAA,EAAe,QAAS,EAAA,GAAI,iBAAiB,KAAK,CAAA;AAE1D,EAAA,IAAI,CAAC,QAAU,EAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAGT,EAAA,MAAM,YAAY,QAAS,CAAA,SAAA,GAAY,QAAS,CAAA,SAAA,CAAU,IAAI,CAAI,GAAA,MAAA;AAClE,EAAA,MAAM,OAAO,QAAS,CAAA,IAAA,GAAO,QAAS,CAAA,IAAA,CAAK,IAAI,CAAI,GAAA,MAAA;AACnD,EAAA,MAAM,YAAY,CAAC,CAAC,aAAc,CAAA,QAAA,IAAY,CAAC,CAAC,IAAA;AAEhD,EACE,uBAAA,GAAA;AAAA,IAAC,qBAAA;AAAA,IAAA;AAAA,MACC,EAAA;AAAA,MACA,SAAA;AAAA,MACA,IAAA;AAAA,MACA,SAAA;AAAA,MACA,MAAA,EAAQ,KAAK,QAAa,KAAA,OAAA;AAAA,MACzB,GAAG,aAAA;AAAA,MAEJ,QAAA,kBAAA,GAAA,CAAC,YAAS,QAAU,kBAAA,GAAA,CAAC,wBAAqB,QAAU,EAAA,IAAA,CAAK,QAAU,EAAA,CAAA,EAChE,QACH,EAAA;AAAA;AAAA,GACF;AAEJ;AAEa,MAAA,aAAA,GAA2B,CAAC,KAAU,KAAA;AACjD,EAAA,MAAM,OAAO,OAAQ,EAAA;AACrB,EACE,uBAAA,GAAA;AAAA,IAAC,qBAAA;AAAA,IAAA;AAAA,MACC,SAAU,EAAA,GAAA;AAAA,MACV,WAAW,MAAO,CAAA,IAAA;AAAA,MAClB,MAAA,EAAQ,KAAK,QAAa,KAAA,OAAA;AAAA,MAEzB,QAAM,EAAA,KAAA,CAAA;AAAA;AAAA,GACT;AAEJ;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
/* */
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
import AvatarView from '../../../../../../../../views/AvatarView.mjs';
|
|
5
|
+
import FragmentView from '../../../../../../../../views/FragmentView.mjs';
|
|
6
|
+
import HeadingView from '../../../../../../../../views/HeadingView.mjs';
|
|
7
|
+
import ListItemViewContentView from '../../../../../../../../views/ListItemViewContentView.mjs';
|
|
8
|
+
import SkeletonTextView from '../../../../../../../../views/SkeletonTextView.mjs';
|
|
9
|
+
import SkeletonView from '../../../../../../../../views/SkeletonView.mjs';
|
|
10
|
+
import TextView from '../../../../../../../../views/TextView.mjs';
|
|
11
|
+
|
|
12
|
+
const ListItemSkeletonView = (props) => {
|
|
13
|
+
const { viewMode } = props;
|
|
14
|
+
const showTiles = viewMode === "tiles";
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
ListItemViewContentView,
|
|
17
|
+
{
|
|
18
|
+
viewMode,
|
|
19
|
+
title: /* @__PURE__ */ jsx(FragmentView, { children: /* @__PURE__ */ jsx(HeadingView, { children: /* @__PURE__ */ jsx(SkeletonTextView, { width: "200px" }) }) }),
|
|
20
|
+
avatar: showTiles && /* @__PURE__ */ jsx(FragmentView, { children: /* @__PURE__ */ jsx(AvatarView, { children: /* @__PURE__ */ jsx(SkeletonView, { style: { aspectRatio: 16 / 9 } }) }) }),
|
|
21
|
+
subTitle: /* @__PURE__ */ jsx(FragmentView, { children: /* @__PURE__ */ jsx(TextView, { children: /* @__PURE__ */ jsx(SkeletonTextView, { width: "300px" }) }) })
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { ListItemSkeletonView };
|
|
27
|
+
//# sourceMappingURL=ListItemSkeletonView.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListItemSkeletonView.mjs","sources":["../../../../../../../../../../src/components/List/components/Items/components/Item/components/ListItemSkeletonView/ListItemSkeletonView.tsx"],"sourcesContent":["import type { ListViewMode } from \"@/components/List/model/types\";\nimport AvatarView from \"@/views/AvatarView\";\nimport FragmentView from \"@/views/FragmentView\";\nimport HeadingView from \"@/views/HeadingView\";\nimport ListItemViewContentView from \"@/views/ListItemViewContentView\";\nimport SkeletonTextView from \"@/views/SkeletonTextView\";\nimport SkeletonView from \"@/views/SkeletonView\";\nimport TextView from \"@/views/TextView\";\nimport type { FC } from \"react\";\n\nexport interface ListItemSkeletonViewProps {\n viewMode: ListViewMode;\n}\n\nexport const ListItemSkeletonView: FC<ListItemSkeletonViewProps> = (props) => {\n const { viewMode } = props;\n\n const showTiles = viewMode === \"tiles\";\n\n return (\n <ListItemViewContentView\n viewMode={viewMode}\n title={\n <FragmentView>\n <HeadingView>\n <SkeletonTextView width=\"200px\" />\n </HeadingView>\n </FragmentView>\n }\n avatar={\n showTiles && (\n <FragmentView>\n <AvatarView>\n <SkeletonView style={{ aspectRatio: 16 / 9 }} />\n </AvatarView>\n </FragmentView>\n )\n }\n subTitle={\n <FragmentView>\n <TextView>\n <SkeletonTextView width=\"300px\" />\n </TextView>\n </FragmentView>\n }\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AAca,MAAA,oBAAA,GAAsD,CAAC,KAAU,KAAA;AAC5E,EAAM,MAAA,EAAE,UAAa,GAAA,KAAA;AAErB,EAAA,MAAM,YAAY,QAAa,KAAA,OAAA;AAE/B,EACE,uBAAA,GAAA;AAAA,IAAC,uBAAA;AAAA,IAAA;AAAA,MACC,QAAA;AAAA,MACA,KAAA,kBACG,GAAA,CAAA,YAAA,EAAA,EACC,QAAC,kBAAA,GAAA,CAAA,WAAA,EAAA,EACC,8BAAC,gBAAiB,EAAA,EAAA,KAAA,EAAM,OAAQ,EAAA,CAAA,EAClC,CACF,EAAA,CAAA;AAAA,MAEF,MACE,EAAA,SAAA,oBACG,GAAA,CAAA,YAAA,EAAA,EACC,8BAAC,UACC,EAAA,EAAA,QAAA,kBAAA,GAAA,CAAC,YAAa,EAAA,EAAA,KAAA,EAAO,EAAE,WAAa,EAAA,EAAA,GAAK,CAAE,EAAA,EAAG,GAChD,CACF,EAAA,CAAA;AAAA,MAGJ,QAAA,kBACG,GAAA,CAAA,YAAA,EAAA,EACC,QAAC,kBAAA,GAAA,CAAA,QAAA,EAAA,EACC,8BAAC,gBAAiB,EAAA,EAAA,KAAA,EAAM,OAAQ,EAAA,CAAA,EAClC,CACF,EAAA;AAAA;AAAA,GAEJ;AAEJ;;;;"}
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
import { useState, useId, useRef, useEffect } from 'react';
|
|
5
|
+
import 'react-aria-components';
|
|
5
6
|
import 'clsx';
|
|
6
7
|
import '../../../../../../../lib/propsContext/propsContext.mjs';
|
|
7
8
|
import { PropsContextProvider } from '../../../../../../../lib/propsContext/PropsContextProvider.mjs';
|
|
8
9
|
import { dynamic } from '../../../../../../../lib/propsContext/dynamicProps/dynamic.mjs';
|
|
9
|
-
import '
|
|
10
|
-
import 'react-children-utilities';
|
|
10
|
+
import '@tabler/icons-react';
|
|
11
11
|
import '@mittwald/react-tunnel';
|
|
12
12
|
import '../../../../../../../lib/slotContext/slotContext.mjs';
|
|
13
13
|
import '@react-aria/utils';
|
|
14
14
|
import 'remeda';
|
|
15
|
-
import 'react-aria-components';
|
|
16
|
-
import 'invariant';
|
|
17
|
-
import { AccordionButton } from '../components/AccordionButton.mjs';
|
|
18
|
-
import { useList } from '../../../../../hooks/useList.mjs';
|
|
19
15
|
import '../../../../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
20
|
-
import '
|
|
16
|
+
import 'invariant';
|
|
21
17
|
import 'react-aria';
|
|
22
18
|
import '@chakra-ui/live-region';
|
|
23
19
|
import 'mobx';
|
|
24
20
|
import '../../../../../../../lib/controller/overlay/context.mjs';
|
|
25
21
|
import '../../../../../../Action/context.mjs';
|
|
26
22
|
import '../../../../../../Action/models/ActionStateContext.mjs';
|
|
23
|
+
import { useList } from '../../../../../hooks/useList.mjs';
|
|
27
24
|
import '../../../../../listContext.mjs';
|
|
28
25
|
import '../../../../Header/components/ActiveFilters/ActiveFilters.mjs';
|
|
29
26
|
import '../../../../../model/List.mjs';
|
|
27
|
+
import { AccordionButton } from '../components/AccordionButton.mjs';
|
|
28
|
+
import 'object-code';
|
|
29
|
+
import 'react-children-utilities';
|
|
30
30
|
|
|
31
31
|
const useGridItemProps = (props) => {
|
|
32
32
|
const { data, children: childrenFromProps } = props;
|
|
@@ -9,26 +9,26 @@ import FragmentView from '../../../../views/FragmentView.mjs';
|
|
|
9
9
|
import '../../../../lib/propsContext/propsContext.mjs';
|
|
10
10
|
import { PropsContextProvider } from '../../../../lib/propsContext/PropsContextProvider.mjs';
|
|
11
11
|
import { OptionsButton } from '../Items/components/Item/components/OptionsButton/OptionsButton.mjs';
|
|
12
|
+
import 'react-aria-components';
|
|
12
13
|
import 'clsx';
|
|
13
|
-
import '
|
|
14
|
-
import 'react-children-utilities';
|
|
14
|
+
import '@tabler/icons-react';
|
|
15
15
|
import '../../../../lib/slotContext/slotContext.mjs';
|
|
16
16
|
import '@react-aria/utils';
|
|
17
17
|
import 'remeda';
|
|
18
|
-
import 'react-aria-components';
|
|
19
|
-
import 'invariant';
|
|
20
|
-
import '@tabler/icons-react';
|
|
21
18
|
import '../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
19
|
+
import 'invariant';
|
|
22
20
|
import 'react-aria';
|
|
23
|
-
import '@chakra-ui/live-region';
|
|
24
21
|
import { useList } from '../../hooks/useList.mjs';
|
|
25
22
|
import '../../listContext.mjs';
|
|
26
23
|
import 'mobx';
|
|
27
24
|
import '../../../../lib/controller/overlay/context.mjs';
|
|
28
25
|
import '../../../Action/context.mjs';
|
|
29
26
|
import '../../../Action/models/ActionStateContext.mjs';
|
|
27
|
+
import '@chakra-ui/live-region';
|
|
30
28
|
import '../Header/components/ActiveFilters/ActiveFilters.mjs';
|
|
31
29
|
import '../../model/List.mjs';
|
|
30
|
+
import 'object-code';
|
|
31
|
+
import 'react-children-utilities';
|
|
32
32
|
|
|
33
33
|
const ListItemView = (props) => {
|
|
34
34
|
const { children } = props;
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
/* */
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
|
+
import 'react-aria-components';
|
|
5
6
|
import clsx from 'clsx';
|
|
6
7
|
import '../../../../lib/propsContext/propsContext.mjs';
|
|
7
8
|
import '@react-aria/utils';
|
|
8
9
|
import 'remeda';
|
|
9
10
|
import 'dot-prop';
|
|
10
|
-
import '
|
|
11
|
-
import 'react-children-utilities';
|
|
11
|
+
import '@tabler/icons-react';
|
|
12
12
|
import '@mittwald/react-tunnel';
|
|
13
13
|
import '../../../../lib/slotContext/slotContext.mjs';
|
|
14
|
-
import 'react-aria-components';
|
|
15
|
-
import 'invariant';
|
|
16
|
-
import '@tabler/icons-react';
|
|
17
14
|
import '../../../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
15
|
+
import 'invariant';
|
|
18
16
|
import 'react-aria';
|
|
19
17
|
import '@chakra-ui/live-region';
|
|
20
|
-
import { useList } from '../../hooks/useList.mjs';
|
|
21
18
|
import 'mobx';
|
|
22
19
|
import '../../../../lib/controller/overlay/context.mjs';
|
|
23
20
|
import '../../../Action/context.mjs';
|
|
24
21
|
import '../../../Action/models/ActionStateContext.mjs';
|
|
22
|
+
import { useList } from '../../hooks/useList.mjs';
|
|
25
23
|
import '../../listContext.mjs';
|
|
26
24
|
import '../Header/components/ActiveFilters/ActiveFilters.mjs';
|
|
27
25
|
import '../../model/List.mjs';
|
|
26
|
+
import 'object-code';
|
|
27
|
+
import 'react-children-utilities';
|
|
28
28
|
import { TableLoadingView } from './components/TableLoadingView.mjs';
|
|
29
29
|
import styles from './Table.module.css.mjs';
|
|
30
30
|
import ListEmptyViewView from '../../../../views/ListEmptyViewView.mjs';
|
|
@@ -9,24 +9,21 @@ import { TypedListLoaderAsyncResource } from './setupComponents/ListLoaderAsyncR
|
|
|
9
9
|
import { TypedListStaticData } from './setupComponents/ListStaticData.mjs';
|
|
10
10
|
import { TypedListSearch } from './setupComponents/ListSearch.mjs';
|
|
11
11
|
import 'react/jsx-runtime';
|
|
12
|
+
import 'react-aria-components';
|
|
12
13
|
import 'react';
|
|
13
14
|
import 'clsx';
|
|
14
15
|
import '../../lib/propsContext/propsContext.mjs';
|
|
15
16
|
import '@react-aria/utils';
|
|
16
17
|
import 'remeda';
|
|
17
18
|
import 'dot-prop';
|
|
18
|
-
import '
|
|
19
|
-
import 'react-children-utilities';
|
|
19
|
+
import '@tabler/icons-react';
|
|
20
20
|
import '@mittwald/react-tunnel';
|
|
21
21
|
import '../../lib/slotContext/slotContext.mjs';
|
|
22
|
-
import 'react-aria-components';
|
|
23
|
-
import 'invariant';
|
|
24
|
-
import '@tabler/icons-react';
|
|
25
22
|
import '../../lib/viewComponentContext/viewComponentContext.mjs';
|
|
23
|
+
import 'invariant';
|
|
26
24
|
import 'react-aria';
|
|
27
|
-
import '@chakra-ui/live-region';
|
|
28
|
-
import './listContext.mjs';
|
|
29
25
|
import { ListItemView } from './components/ListItemView/ListItemView.mjs';
|
|
26
|
+
import './listContext.mjs';
|
|
30
27
|
import { TableColumn } from './setupComponents/TableColumn.mjs';
|
|
31
28
|
import { TableCell } from './setupComponents/TableCell.mjs';
|
|
32
29
|
import { TableHeader } from './setupComponents/TableHeader.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedList.mjs","sources":["../../../../src/components/List/typedList.ts"],"sourcesContent":["import type { ListProps } from \"@/components/List/List\";\nimport List from \"@/components/List/List\";\nimport { TypedListFilter } from \"@/components/List/setupComponents/ListFilter\";\nimport { TypedListSorting } from \"@/components/List/setupComponents/ListSorting\";\nimport { TypedListItem } from \"@/components/List/setupComponents/ListItem\";\nimport { TypedListLoaderAsync } from \"@/components/List/setupComponents/ListLoaderAsync\";\nimport { TypedListLoaderAsyncResource } from \"@/components/List/setupComponents/ListLoaderAsyncResource\";\nimport { TypedListStaticData } from \"@/components/List/setupComponents/ListStaticData\";\nimport { TypedListSearch } from \"@/components/List/setupComponents/ListSearch\";\nimport { ListItemView } from \"@/components/List\";\nimport type { ComponentType } from \"react\";\nimport { TableColumn } from \"@/components/List/setupComponents/TableColumn\";\nimport { TableCell } from \"@/components/List/setupComponents/TableCell\";\nimport { TableHeader } from \"@/components/List/setupComponents/TableHeader\";\nimport { TableRow } from \"@/components/List/setupComponents/TableRow\";\nimport { TableBody } from \"@/components/List/setupComponents/TableBody\";\nimport { Table } from \"@/components/List/setupComponents/Table\";\n\nexport const TypedList = <T>() =>\n List as unknown as ComponentType<ListProps<T>>;\n\nexport const typedList = <T>() => ({\n List: TypedList<T>(),\n Filter: TypedListFilter<T>(),\n Search: TypedListSearch<T>(),\n Sorting: TypedListSorting<T>(),\n Item: TypedListItem<T>(),\n ItemView: ListItemView,\n TableHeader: TableHeader<T>,\n TableColumn: TableColumn<T>,\n TableBody: TableBody<T>,\n TableRow: TableRow<T>,\n TableCell: TableCell<T>,\n Table: Table<T>,\n StaticData: TypedListStaticData<T>(),\n LoaderAsync: TypedListLoaderAsync<T>(),\n LoaderAsyncResource: TypedListLoaderAsyncResource<T>(),\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typedList.mjs","sources":["../../../../src/components/List/typedList.ts"],"sourcesContent":["import type { ListProps } from \"@/components/List/List\";\nimport List from \"@/components/List/List\";\nimport { TypedListFilter } from \"@/components/List/setupComponents/ListFilter\";\nimport { TypedListSorting } from \"@/components/List/setupComponents/ListSorting\";\nimport { TypedListItem } from \"@/components/List/setupComponents/ListItem\";\nimport { TypedListLoaderAsync } from \"@/components/List/setupComponents/ListLoaderAsync\";\nimport { TypedListLoaderAsyncResource } from \"@/components/List/setupComponents/ListLoaderAsyncResource\";\nimport { TypedListStaticData } from \"@/components/List/setupComponents/ListStaticData\";\nimport { TypedListSearch } from \"@/components/List/setupComponents/ListSearch\";\nimport { ListItemView } from \"@/components/List\";\nimport type { ComponentType } from \"react\";\nimport { TableColumn } from \"@/components/List/setupComponents/TableColumn\";\nimport { TableCell } from \"@/components/List/setupComponents/TableCell\";\nimport { TableHeader } from \"@/components/List/setupComponents/TableHeader\";\nimport { TableRow } from \"@/components/List/setupComponents/TableRow\";\nimport { TableBody } from \"@/components/List/setupComponents/TableBody\";\nimport { Table } from \"@/components/List/setupComponents/Table\";\n\nexport const TypedList = <T>() =>\n List as unknown as ComponentType<ListProps<T>>;\n\nexport const typedList = <T>() => ({\n List: TypedList<T>(),\n Filter: TypedListFilter<T>(),\n Search: TypedListSearch<T>(),\n Sorting: TypedListSorting<T>(),\n Item: TypedListItem<T>(),\n ItemView: ListItemView,\n TableHeader: TableHeader<T>,\n TableColumn: TableColumn<T>,\n TableBody: TableBody<T>,\n TableRow: TableRow<T>,\n TableCell: TableCell<T>,\n Table: Table<T>,\n StaticData: TypedListStaticData<T>(),\n LoaderAsync: TypedListLoaderAsync<T>(),\n LoaderAsyncResource: TypedListLoaderAsyncResource<T>(),\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBO,MAAM,YAAY,MACvB;AAEK,MAAM,YAAY,OAAU;AAAA,EACjC,MAAM,SAAa,EAAA;AAAA,EACnB,QAAQ,eAAmB,EAAA;AAAA,EAC3B,QAAQ,eAAmB,EAAA;AAAA,EAC3B,SAAS,gBAAoB,EAAA;AAAA,EAC7B,MAAM,aAAiB,EAAA;AAAA,EACvB,QAAU,EAAA,YAAA;AAAA,EACV,WAAA;AAAA,EACA,WAAA;AAAA,EACA,SAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,KAAA;AAAA,EACA,YAAY,mBAAuB,EAAA;AAAA,EACnC,aAAa,oBAAwB,EAAA;AAAA,EACrC,qBAAqB,4BAAgC;AACvD,CAAA;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -9,8 +9,18 @@ import { SkeletonText } from '../../../SkeletonText/SkeletonText.mjs';
|
|
|
9
9
|
import { TableColumn } from '../TableColumn/TableColumn.mjs';
|
|
10
10
|
|
|
11
11
|
const TableCell = (props) => {
|
|
12
|
-
const {
|
|
13
|
-
|
|
12
|
+
const {
|
|
13
|
+
children,
|
|
14
|
+
className,
|
|
15
|
+
rowHeader,
|
|
16
|
+
horizontalAlign = "start",
|
|
17
|
+
...rest
|
|
18
|
+
} = props;
|
|
19
|
+
const rootClassName = clsx(
|
|
20
|
+
styles.cell,
|
|
21
|
+
styles[`horizontal-align-${horizontalAlign}`],
|
|
22
|
+
className
|
|
23
|
+
);
|
|
14
24
|
const content = /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(SkeletonText, { width: "100px" }), children });
|
|
15
25
|
if (rowHeader) {
|
|
16
26
|
return /* @__PURE__ */ jsx(TableColumn, { className: rootClassName, ...rest, children: content });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.mjs","sources":["../../../../../../src/components/Table/components/TableCell/TableCell.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport React, { Suspense } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\nimport { SkeletonText } from \"@/components/SkeletonText\";\nimport { TableColumn } from \"@/components/Table\";\n\nexport interface TableCellProps\n extends Omit<Aria.CellProps, \"children\" | \"style\">,\n PropsWithChildren {\n rowHeader?: boolean;\n}\n\n/** @flr-generate all */\nexport const TableCell: FC<TableCellProps> = (props) => {\n const {
|
|
1
|
+
{"version":3,"file":"TableCell.mjs","sources":["../../../../../../src/components/Table/components/TableCell/TableCell.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from \"react\";\nimport React, { Suspense } from \"react\";\nimport * as Aria from \"react-aria-components\";\nimport clsx from \"clsx\";\nimport styles from \"../../Table.module.scss\";\nimport { SkeletonText } from \"@/components/SkeletonText\";\nimport { TableColumn } from \"@/components/Table\";\n\nexport interface TableCellProps\n extends Omit<Aria.CellProps, \"children\" | \"style\">,\n PropsWithChildren {\n rowHeader?: boolean;\n /** @default \"start\" */\n horizontalAlign?: \"start\" | \"center\";\n}\n\n/** @flr-generate all */\nexport const TableCell: FC<TableCellProps> = (props) => {\n const {\n children,\n className,\n rowHeader,\n horizontalAlign = \"start\",\n ...rest\n } = props;\n\n const rootClassName = clsx(\n styles.cell,\n styles[`horizontal-align-${horizontalAlign}`],\n className,\n );\n\n const content = (\n <Suspense fallback={<SkeletonText width=\"100px\" />}>{children}</Suspense>\n );\n\n if (rowHeader) {\n return (\n <TableColumn className={rootClassName} {...rest}>\n {content}\n </TableColumn>\n );\n }\n\n return (\n <Aria.Cell className={rootClassName} {...rest}>\n {content}\n </Aria.Cell>\n );\n};\n\nexport default TableCell;\n"],"names":[],"mappings":";;;;;;;;AAiBa,MAAA,SAAA,GAAgC,CAAC,KAAU,KAAA;AACtD,EAAM,MAAA;AAAA,IACJ,QAAA;AAAA,IACA,SAAA;AAAA,IACA,SAAA;AAAA,IACA,eAAkB,GAAA,OAAA;AAAA,IAClB,GAAG;AAAA,GACD,GAAA,KAAA;AAEJ,EAAA,MAAM,aAAgB,GAAA,IAAA;AAAA,IACpB,MAAO,CAAA,IAAA;AAAA,IACP,MAAA,CAAO,CAAoB,iBAAA,EAAA,eAAe,CAAE,CAAA,CAAA;AAAA,IAC5C;AAAA,GACF;AAEA,EAAM,MAAA,OAAA,uBACH,QAAS,EAAA,EAAA,QAAA,sBAAW,YAAa,EAAA,EAAA,KAAA,EAAM,OAAQ,EAAA,CAAA,EAAK,QAAS,EAAA,CAAA;AAGhE,EAAA,IAAI,SAAW,EAAA;AACb,IAAA,2BACG,WAAY,EAAA,EAAA,SAAA,EAAW,aAAgB,EAAA,GAAG,MACxC,QACH,EAAA,OAAA,EAAA,CAAA;AAAA;AAIJ,EACE,uBAAA,GAAA,CAAC,KAAK,IAAL,EAAA,EAAU,WAAW,aAAgB,EAAA,GAAG,MACtC,QACH,EAAA,OAAA,EAAA,CAAA;AAEJ;;;;"}
|
|
@@ -7,8 +7,12 @@ import clsx from 'clsx';
|
|
|
7
7
|
import styles from '../../Table.module.scss.mjs';
|
|
8
8
|
|
|
9
9
|
const TableColumn = (props) => {
|
|
10
|
-
const { children, className, ...rest } = props;
|
|
11
|
-
const rootClassName = clsx(
|
|
10
|
+
const { children, className, horizontalAlign = "start", ...rest } = props;
|
|
11
|
+
const rootClassName = clsx(
|
|
12
|
+
styles.column,
|
|
13
|
+
styles[`horizontal-align-${horizontalAlign}`],
|
|
14
|
+
className
|
|
15
|
+
);
|
|
12
16
|
return /* @__PURE__ */ jsx(Aria.Column, { isRowHeader: true, className: rootClassName, ...rest, children });
|
|
13
17
|
};
|
|
14
18
|
|