@intlayer/design-system 8.7.0-canary.0 → 8.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/Browser/Browser.mjs.map +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +3 -3
- package/dist/esm/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +1 -1
- package/dist/esm/components/Form/elements/FormElement.mjs +2 -1
- package/dist/esm/components/Form/elements/FormElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/FormElementWrapper.mjs.map +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +1 -1
- package/dist/esm/components/Form/layout/FormItemLayout.mjs +3 -2
- package/dist/esm/components/Form/layout/FormItemLayout.mjs.map +1 -1
- package/dist/esm/components/IDE/MonacoCode.mjs +1 -0
- package/dist/esm/components/IDE/MonacoCode.mjs.map +1 -1
- package/dist/esm/components/Link/Link.mjs.map +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs +2 -2
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs.map +1 -1
- package/dist/esm/components/Modal/Modal.mjs +2 -2
- package/dist/esm/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/esm/components/Navbar/index.mjs +2 -57
- package/dist/esm/components/Navbar/index.mjs.map +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +3 -3
- package/dist/esm/components/Table/SmartTable.mjs +222 -0
- package/dist/esm/components/Table/SmartTable.mjs.map +1 -0
- package/dist/esm/components/Table/Table.mjs +7 -212
- package/dist/esm/components/Table/Table.mjs.map +1 -1
- package/dist/esm/components/Table/index.mjs +2 -1
- package/dist/esm/components/TextArea/ContentEditableTextArea.mjs +1 -1
- package/dist/esm/components/TextArea/ContentEditableTextArea.mjs.map +1 -1
- package/dist/esm/components/index.mjs +5 -1
- package/dist/esm/hooks/index.mjs +9 -9
- package/dist/esm/hooks/reactQuery.mjs +1 -3
- package/dist/esm/hooks/reactQuery.mjs.map +1 -1
- package/dist/esm/hooks/useAuth/useOAuth2.mjs +1 -1
- package/dist/esm/hooks/useAuth/useSession.mjs +1 -1
- package/dist/esm/libs/auth.mjs +7 -3
- package/dist/esm/libs/auth.mjs.map +1 -1
- package/dist/esm/routes.mjs +1 -1
- package/dist/esm/routes.mjs.map +1 -1
- package/dist/types/components/Button/Button.d.ts +1 -1
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +1 -1
- package/dist/types/components/Command/index.d.ts +1 -1
- package/dist/types/components/Container/index.d.ts +3 -3
- package/dist/types/components/Form/elements/FormElement.d.ts +1 -0
- package/dist/types/components/Form/elements/FormElement.d.ts.map +1 -1
- package/dist/types/components/Form/layout/FormItemLayout.d.ts +1 -0
- package/dist/types/components/Form/layout/FormItemLayout.d.ts.map +1 -1
- package/dist/types/components/Input/Checkbox.d.ts +1 -1
- package/dist/types/components/Link/Link.d.ts +1 -1
- package/dist/types/components/Link/Link.d.ts.map +1 -1
- package/dist/types/components/MarkDownRender/MarkDownRender.d.ts +3 -3
- package/dist/types/components/MarkDownRender/MarkDownRender.d.ts.map +1 -1
- package/dist/types/components/Navbar/index.d.ts +4 -1
- package/dist/types/components/Navbar/index.d.ts.map +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +1 -1
- package/dist/types/components/TabSelector/TabSelector.d.ts +1 -1
- package/dist/types/components/Table/SmartTable.d.ts +158 -0
- package/dist/types/components/Table/SmartTable.d.ts.map +1 -0
- package/dist/types/components/Table/Table.d.ts +8 -191
- package/dist/types/components/Table/Table.d.ts.map +1 -1
- package/dist/types/components/Table/index.d.ts +3 -2
- package/dist/types/components/TextArea/ContentEditableTextArea.d.ts +2 -2
- package/dist/types/components/TextArea/ContentEditableTextArea.d.ts.map +1 -1
- package/dist/types/components/Toaster/Toast.d.ts +1 -1
- package/dist/types/components/index.d.ts +6 -2
- package/dist/types/hooks/reactQuery.d.ts.map +1 -1
- package/dist/types/routes.d.ts +1 -1
- package/dist/types/routes.d.ts.map +1 -1
- package/package.json +22 -22
|
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/CollapsibleTable/CollapsibleTable.d.ts
|
|
6
6
|
declare const collapsibleTableVariants: (props?: {
|
|
7
7
|
size?: "sm" | "md" | "lg" | "xl" | "full";
|
|
8
|
-
variant?: "default" | "
|
|
8
|
+
variant?: "default" | "dark" | "ghost" | "outlined";
|
|
9
9
|
spacing?: "sm" | "md" | "lg" | "none" | "auto";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
interface CollapsibleTableProps extends Omit<HTMLAttributes<HTMLElement>, 'title'>, VariantProps<typeof collapsibleTableVariants> {
|
|
@@ -29,7 +29,7 @@ declare const Command: {
|
|
|
29
29
|
ref?: React.Ref<HTMLInputElement>;
|
|
30
30
|
} & {
|
|
31
31
|
asChild?: boolean;
|
|
32
|
-
}, "key" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "
|
|
32
|
+
}, "key" | keyof _$react.InputHTMLAttributes<HTMLInputElement> | "asChild">, "onChange" | "type" | "value"> & {
|
|
33
33
|
value?: string;
|
|
34
34
|
onValueChange?: (search: string) => void;
|
|
35
35
|
} & _$react.RefAttributes<HTMLInputElement>>;
|
|
@@ -12,9 +12,9 @@ declare const containerVariants: (props?: {
|
|
|
12
12
|
transparency?: "xs" | "sm" | "md" | "lg" | "xl" | "none" | "full";
|
|
13
13
|
padding?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
14
14
|
separator?: "both" | "without" | "x" | "y";
|
|
15
|
-
border?: "
|
|
16
|
-
borderColor?: "
|
|
17
|
-
background?: "
|
|
15
|
+
border?: "none" | "with";
|
|
16
|
+
borderColor?: "text" | "error" | "success" | "primary" | "secondary" | "neutral" | "card" | "warning";
|
|
17
|
+
background?: "none" | "hoverable" | "with";
|
|
18
18
|
gap?: "sm" | "md" | "lg" | "xl" | "2xl" | "none";
|
|
19
19
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
20
20
|
/** Available rounded corner sizes for the container */
|
|
@@ -11,6 +11,7 @@ type FormElementProps<T extends ElementType> = {
|
|
|
11
11
|
info?: string;
|
|
12
12
|
showErrorMessage?: boolean;
|
|
13
13
|
focus?: boolean;
|
|
14
|
+
layoutClassName?: string;
|
|
14
15
|
} & Omit<FormItemLayoutProps, 'children'>;
|
|
15
16
|
/**
|
|
16
17
|
* FormElement is a component that allows you to create a form element with a label, description, error message, and validation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormElement.d.ts","names":[],"sources":["../../../../../src/components/Form/elements/FormElement.tsx"],"mappings":";;;;;KAYY,gBAAA,WAA2B,WAAA;EACrC,IAAA;EACA,OAAA,EAAS,CAAA;EACT,KAAA,GAAQ,SAAA;EACR,UAAA;EACA,IAAA;EACA,gBAAA;EACA,KAAA;AAAA,IACE,IAAA,CAAK,mBAAA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FormElement.d.ts","names":[],"sources":["../../../../../src/components/Form/elements/FormElement.tsx"],"mappings":";;;;;KAYY,gBAAA,WAA2B,WAAA;EACrC,IAAA;EACA,OAAA,EAAS,CAAA;EACT,KAAA,GAAQ,SAAA;EACR,UAAA;EACA,IAAA;EACA,gBAAA;EACA,KAAA;EACA,eAAA;AAAA,IACE,IAAA,CAAK,mBAAA;;;;;;;;cA+EI,WAAA,aAAyB,WAAA,EACpC,KAAA,EAAO,gBAAA,CAAiB,CAAA,IAAK,cAAA,CAAe,CAAA,MAAE,oBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormItemLayout.d.ts","names":[],"sources":["../../../../../src/components/Form/layout/FormItemLayout.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"FormItemLayout.d.ts","names":[],"sources":["../../../../../src/components/Form/layout/FormItemLayout.tsx"],"mappings":";;;;KAKY,mBAAA,GAAsB,IAAA,CAAK,oBAAA;EACrC,KAAA,GAAQ,SAAA;EACR,WAAA,GAAc,SAAA;EACd,QAAA,EAAU,SAAA;EACV,gBAAA;EACA,SAAA;AAAA;AAAA,cAGW,cAAA,EAAgB,EAAA,CAAG,mBAAA"}
|
|
@@ -6,7 +6,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
6
6
|
declare const checkboxVariants: (props?: {
|
|
7
7
|
variant?: "default";
|
|
8
8
|
size?: "xs" | "sm" | "md" | "lg";
|
|
9
|
-
color?: "
|
|
9
|
+
color?: "text" | "error" | "success" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "custom";
|
|
10
10
|
validationStyleEnabled?: "enabled" | "disabled";
|
|
11
11
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
12
12
|
declare enum CheckboxSize {
|
|
@@ -69,7 +69,7 @@ type LinkProps = DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTML
|
|
|
69
69
|
declare const checkIsExternalLink: ({
|
|
70
70
|
href,
|
|
71
71
|
isExternalLink: isExternalLinkProp
|
|
72
|
-
}: LinkProps) => boolean;
|
|
72
|
+
}: Pick<LinkProps, "href" | "isExternalLink">) => boolean;
|
|
73
73
|
declare const isTextChildren: (children: ReactNode) => boolean;
|
|
74
74
|
declare const Link: FC<LinkProps>;
|
|
75
75
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","names":[],"sources":["../../../../src/components/Link/Link.tsx"],"mappings":";;;;;;;;;aAgBY,WAAA;EACV,OAAA;EACA,cAAA;EACA,MAAA;EACA,eAAA;EACA,SAAA;AAAA;;;;aAMU,SAAA;EACV,OAAA;EACA,SAAA;EACA,WAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;EACA,IAAA;EACA,YAAA;EACA,KAAA;EACA,OAAA;EACA,MAAA;AAAA;AAAA,aAGU,eAAA;EACV,IAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,MAAA;EACA,QAAA;EACA,IAAA;AAAA;AAAA,aAGU,QAAA;EACV,EAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,MAAA;AAAA;AAAA,aAGU,cAAA;EACV,OAAA;EACA,IAAA;EACA,KAAA;AAAA;AAAA,cAGW,YAAA,GAAY,KAAA;;;;;yBAoKxB,cAAA,CAAA,OAAA;AAAA,IAAA,iCAAA,CAAA,SAAA;AAAA,KAEW,SAAA,GAAY,iBAAA,CACtB,oBAAA,CAAqB,iBAAA,GACrB,iBAAA,IAEA,YAAA,QAAoB,YAAA;EAClB,KAAA;EACA,cAAA;EACA,aAAA;EACA,QAAA;EACA,MAAA,GAAS,aAAA;AAAA;AAAA,cAGA,mBAAA;EAAuB,IAAA;EAAA,cAAA,EAAA;AAAA,GAGjC,SAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"Link.d.ts","names":[],"sources":["../../../../src/components/Link/Link.tsx"],"mappings":";;;;;;;;;aAgBY,WAAA;EACV,OAAA;EACA,cAAA;EACA,MAAA;EACA,eAAA;EACA,SAAA;AAAA;;;;aAMU,SAAA;EACV,OAAA;EACA,SAAA;EACA,WAAA;EACA,OAAA;EACA,KAAA;EACA,IAAA;EACA,IAAA;EACA,YAAA;EACA,KAAA;EACA,OAAA;EACA,MAAA;AAAA;AAAA,aAGU,eAAA;EACV,IAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,MAAA;EACA,QAAA;EACA,IAAA;AAAA;AAAA,aAGU,QAAA;EACV,EAAA;EACA,EAAA;EACA,EAAA;EACA,EAAA;EACA,MAAA;AAAA;AAAA,aAGU,cAAA;EACV,OAAA;EACA,IAAA;EACA,KAAA;AAAA;AAAA,cAGW,YAAA,GAAY,KAAA;;;;;yBAoKxB,cAAA,CAAA,OAAA;AAAA,IAAA,iCAAA,CAAA,SAAA;AAAA,KAEW,SAAA,GAAY,iBAAA,CACtB,oBAAA,CAAqB,iBAAA,GACrB,iBAAA,IAEA,YAAA,QAAoB,YAAA;EAClB,KAAA;EACA,cAAA;EACA,aAAA;EACA,QAAA;EACA,MAAA,GAAS,aAAA;AAAA;AAAA,cAGA,mBAAA;EAAuB,IAAA;EAAA,cAAA,EAAA;AAAA,GAGjC,IAAA,CAAK,SAAA;AAAA,cAWK,cAAA,GAAkB,QAAA,EAAU,SAAA;AAAA,cAe5B,IAAA,EAAM,EAAA,CAAG,SAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tab, TabItemProps } from "../Tab/Tab.js";
|
|
2
|
-
import {
|
|
2
|
+
import { SmartTable } from "../Table/SmartTable.js";
|
|
3
3
|
import { ComponentProps, ComponentPropsWithoutRef, FC } from "react";
|
|
4
4
|
import { LocalesValues } from "@intlayer/types/module_augmentation";
|
|
5
5
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -33,7 +33,7 @@ declare const baseMarkdownComponents: {
|
|
|
33
33
|
...props
|
|
34
34
|
}: ComponentProps<"img">) => _$react_jsx_runtime0.JSX.Element;
|
|
35
35
|
pre: (props: ComponentProps<"pre">) => _$react_jsx_runtime0.JSX.Element;
|
|
36
|
-
table: (props: ComponentProps<typeof
|
|
36
|
+
table: (props: ComponentProps<typeof SmartTable>) => _$react_jsx_runtime0.JSX.Element;
|
|
37
37
|
th: ({
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
@@ -105,7 +105,7 @@ declare const getIntlayerMarkdownOptions: (_isDarkMode?: boolean) => {
|
|
|
105
105
|
...props
|
|
106
106
|
}: ComponentProps<"img">) => _$react_jsx_runtime0.JSX.Element;
|
|
107
107
|
pre: (props: ComponentProps<"pre">) => _$react_jsx_runtime0.JSX.Element;
|
|
108
|
-
table: (props: ComponentProps<typeof
|
|
108
|
+
table: (props: ComponentProps<typeof SmartTable>) => _$react_jsx_runtime0.JSX.Element;
|
|
109
109
|
th: ({
|
|
110
110
|
className,
|
|
111
111
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkDownRender.d.ts","names":[],"sources":["../../../../src/components/MarkDownRender/MarkDownRender.tsx"],"mappings":";;;;;;;;cAqOa,sBAAA;cAnNc,cAAA,WAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;cAGpB,cAAA,WAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;cAGpB,cAAA,WAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;cAGpB,cAAA,WAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;cAGpB,cAAA,WAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;cAGpB,cAAA,WAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;kBAGhB,cAAA,eAAwB,oBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAkDpD,cAAA,mBAA4B,oBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAUc,cAAA,WAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;;;;KAUpB,cAAA,WAAoB,oBAAA,CAAA,GAAA,CAAA,OAAA;;;;;;KAe9D,cAAA,YAAqB,oBAAA,CAAA,GAAA,CAAA,OAAA;eA6BI,cAAA,YAAqB,oBAAA,CAAA,GAAA,CAAA,OAAA;iBACnB,cAAA,QAAsB,
|
|
1
|
+
{"version":3,"file":"MarkDownRender.d.ts","names":[],"sources":["../../../../src/components/MarkDownRender/MarkDownRender.tsx"],"mappings":"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"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { TabSelectorItemProps } from "../TabSelector/TabSelector.js";
|
|
2
|
+
import { Burger } from "./Burger.js";
|
|
3
|
+
import { DesktopNavbar } from "./DesktopNavbar.js";
|
|
4
|
+
import { MobileNavbar } from "./MobileNavbar.js";
|
|
2
5
|
import { ReactElement, ReactNode } from "react";
|
|
3
6
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
7
|
|
|
@@ -88,5 +91,5 @@ declare const Navbar: <T extends TabSelectorItemProps>({
|
|
|
88
91
|
mobileRollable
|
|
89
92
|
}: NavbarProps<T>) => _$react_jsx_runtime0.JSX.Element;
|
|
90
93
|
//#endregion
|
|
91
|
-
export { Navbar };
|
|
94
|
+
export { Burger, DesktopNavbar, MobileNavbar, Navbar };
|
|
92
95
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Navbar/index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/Navbar/index.tsx"],"mappings":";;;;;;;;;;;;KAaK,WAAA,WAAsB,oBAAA;uDAEzB,IAAA,EAAM,SAAA,EAFH;EAIH,cAAA,EAAgB,CAAA,SAJF;EAMd,eAAA,GAAkB,YAAA,CAAa,CAAA,KAJzB;EAMN,iBAAA,GAAoB,SAAA,EAFW;EAI/B,iBAAA,GAAoB,YAAA,CAAa,CAAA,KAFb;EAIpB,oBAAA,GAAuB,SAAA,EAFH;EAIpB,oBAAA,GAAuB,YAAA,CAAa,CAAA,KAAA;EAEpC,iBAAA,GAAoB,SAAA,EAAA;EAEpB,gBAAA,GAAmB,SAAA,EAAS;EAE5B,cAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAAa,MAAA,aAAoB,oBAAA;EAAsB,IAAA;EAAA,iBAAA;EAAA,eAAA;EAAA,iBAAA;EAAA,oBAAA;EAAA,oBAAA;EAAA,iBAAA;EAAA,gBAAA;EAAA,cAAA;EAAA;AAAA,GAWpD,WAAA,CAAY,CAAA,MAAE,oBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -5,7 +5,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/Pagination/Pagination.d.ts
|
|
6
6
|
declare const paginationVariants: (props?: {
|
|
7
7
|
size?: "sm" | "md" | "lg";
|
|
8
|
-
color?: "text" | "primary" | "secondary" | "
|
|
8
|
+
color?: "text" | "primary" | "secondary" | "destructive" | "neutral";
|
|
9
9
|
variant?: "default" | "bordered" | "ghost";
|
|
10
10
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
11
11
|
declare enum PaginationSize {
|
|
@@ -15,7 +15,7 @@ declare enum TabSelectorColor {
|
|
|
15
15
|
TEXT = "text"
|
|
16
16
|
}
|
|
17
17
|
declare const tabSelectorVariant: (props?: {
|
|
18
|
-
color?: "text" | "primary" | "secondary" | "
|
|
18
|
+
color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark";
|
|
19
19
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
20
20
|
type TabSelectorItemProps = HTMLAttributes<HTMLElement> & {
|
|
21
21
|
key: string | number;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { TableProps } from "./Table.js";
|
|
2
|
+
import { FC } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/Table/SmartTable.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Properties for the SmartTable component
|
|
7
|
+
*
|
|
8
|
+
* @interface SmartTableProps
|
|
9
|
+
* @extends {TableProps}
|
|
10
|
+
*
|
|
11
|
+
* @property {boolean} [isRollable] - Whether the table content can be collapsed/expanded using the ExpandCollapse wrapper
|
|
12
|
+
* @property {boolean} [displayModal] - Whether the table should be able to expand into a modal
|
|
13
|
+
*/
|
|
14
|
+
type SmartTableProps = TableProps & {
|
|
15
|
+
isRollable?: boolean;
|
|
16
|
+
displayModal?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Table component that provides an enhanced table experience with modal expansion and collapsible content
|
|
20
|
+
*
|
|
21
|
+
* The Table component wraps a standard HTML table element with additional functionality:
|
|
22
|
+
* - **Modal Expansion**: Click the diagonal arrow button to view the table in a full-screen modal
|
|
23
|
+
* - **Collapsible Content**: Optionally wrap content in an ExpandCollapse component for space-saving
|
|
24
|
+
* - **Responsive Design**: Handles large tables gracefully with modal overflow
|
|
25
|
+
* - **Sticky Controls**: Table controls remain accessible even when scrolling
|
|
26
|
+
*
|
|
27
|
+
* ## Features
|
|
28
|
+
* - **Modal View**: Full-screen modal for better viewing of large tables
|
|
29
|
+
* - **Expand/Collapse**: Optional collapsible wrapper to save space
|
|
30
|
+
* - **Responsive**: Handles overflow and responsive behavior automatically
|
|
31
|
+
* - **Accessibility**: Maintains proper table semantics and keyboard navigation
|
|
32
|
+
* - **Customizable**: Supports all standard HTML table attributes and styling
|
|
33
|
+
*
|
|
34
|
+
* ## Best Practices
|
|
35
|
+
* - Use semantic HTML table structure (thead, tbody, tfoot)
|
|
36
|
+
* - Provide proper column headers with scope attributes
|
|
37
|
+
* - Use the isRollable prop for large tables that might need space management
|
|
38
|
+
* - Apply consistent styling through the className prop
|
|
39
|
+
* - Consider pagination for very large datasets
|
|
40
|
+
*
|
|
41
|
+
* @param {SmartTableProps} props - The properties for the Table component
|
|
42
|
+
* @returns {JSX.Element} The rendered table with enhanced functionality
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```tsx
|
|
46
|
+
* // Simple data table
|
|
47
|
+
* <SmartTable>
|
|
48
|
+
* <thead>
|
|
49
|
+
* <tr>
|
|
50
|
+
* <th scope="col">Name</th>
|
|
51
|
+
* <th scope="col">Email</th>
|
|
52
|
+
* <th scope="col">Status</th>
|
|
53
|
+
* </tr>
|
|
54
|
+
* </thead>
|
|
55
|
+
* <tbody>
|
|
56
|
+
* <tr>
|
|
57
|
+
* <td>John Doe</td>
|
|
58
|
+
* <td>john@example.com</td>
|
|
59
|
+
* <td>
|
|
60
|
+
* <span className="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">
|
|
61
|
+
* Active
|
|
62
|
+
* </span>
|
|
63
|
+
* </td>
|
|
64
|
+
* </tr>
|
|
65
|
+
* <tr>
|
|
66
|
+
* <td>Jane Smith</td>
|
|
67
|
+
* <td>jane@example.com</td>
|
|
68
|
+
* <td>
|
|
69
|
+
* <span className="px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full text-xs">
|
|
70
|
+
* Pending
|
|
71
|
+
* </span>
|
|
72
|
+
* </td>
|
|
73
|
+
* </tr>
|
|
74
|
+
* </tbody>
|
|
75
|
+
* </SmartTable>
|
|
76
|
+
*
|
|
77
|
+
* // Large collapsible table with custom styling
|
|
78
|
+
* <SmartTable
|
|
79
|
+
* isRollable
|
|
80
|
+
* className="border border-gray-200 rounded-lg overflow-hidden"
|
|
81
|
+
* >
|
|
82
|
+
* <thead className="bg-gray-50">
|
|
83
|
+
* <tr>
|
|
84
|
+
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
85
|
+
* Product ID
|
|
86
|
+
* </th>
|
|
87
|
+
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
88
|
+
* Name
|
|
89
|
+
* </th>
|
|
90
|
+
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
91
|
+
* Category
|
|
92
|
+
* </th>
|
|
93
|
+
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
94
|
+
* Price
|
|
95
|
+
* </th>
|
|
96
|
+
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
97
|
+
* Stock
|
|
98
|
+
* </th>
|
|
99
|
+
* </tr>
|
|
100
|
+
* </thead>
|
|
101
|
+
* <tbody className="bg-white divide-y divide-gray-200">
|
|
102
|
+
* {products.map((product) => (
|
|
103
|
+
* <tr key={product.id} className="hover:bg-gray-50">
|
|
104
|
+
* <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
105
|
+
* #{product.id}
|
|
106
|
+
* </td>
|
|
107
|
+
* <td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
|
|
108
|
+
* {product.name}
|
|
109
|
+
* </td>
|
|
110
|
+
* <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
|
111
|
+
* {product.category}
|
|
112
|
+
* </td>
|
|
113
|
+
* <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
114
|
+
* ${product.price.toFixed(2)}
|
|
115
|
+
* </td>
|
|
116
|
+
* <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
|
117
|
+
* {product.stock} units
|
|
118
|
+
* </td>
|
|
119
|
+
* </tr>
|
|
120
|
+
* ))}
|
|
121
|
+
* </tbody>
|
|
122
|
+
* </SmartTable>
|
|
123
|
+
*
|
|
124
|
+
* // Financial data table with formatted numbers
|
|
125
|
+
* <SmartTable className="w-full border-collapse">
|
|
126
|
+
* <thead>
|
|
127
|
+
* <tr className="border-b-2 border-gray-300">
|
|
128
|
+
* <th scope="col" className="text-left py-3 px-4">Quarter</th>
|
|
129
|
+
* <th scope="col" className="text-right py-3 px-4">Revenue</th>
|
|
130
|
+
* <th scope="col" className="text-right py-3 px-4">Profit</th>
|
|
131
|
+
* <th scope="col" className="text-right py-3 px-4">Growth</th>
|
|
132
|
+
* </tr>
|
|
133
|
+
* </thead>
|
|
134
|
+
* <tbody>
|
|
135
|
+
* <tr className="border-b border-gray-200">
|
|
136
|
+
* <td className="py-3 px-4 font-medium">Q1 2024</td>
|
|
137
|
+
* <td className="py-3 px-4 text-right">$2,450,000</td>
|
|
138
|
+
* <td className="py-3 px-4 text-right text-green-600">$345,000</td>
|
|
139
|
+
* <td className="py-3 px-4 text-right text-green-600">+12.5%</td>
|
|
140
|
+
* </tr>
|
|
141
|
+
* <tr className="border-b border-gray-200">
|
|
142
|
+
* <td className="py-3 px-4 font-medium">Q2 2024</td>
|
|
143
|
+
* <td className="py-3 px-4 text-right">$2,780,000</td>
|
|
144
|
+
* <td className="py-3 px-4 text-right text-green-600">$398,000</td>
|
|
145
|
+
* <td className="py-3 px-4 text-right text-green-600">+13.5%</td>
|
|
146
|
+
* </tr>
|
|
147
|
+
* </tbody>
|
|
148
|
+
* </SmartTable>
|
|
149
|
+
* ```
|
|
150
|
+
*
|
|
151
|
+
* @see {@link ExpandCollapse} - Component used for collapsible table content
|
|
152
|
+
* @see {@link Modal} - Component used for full-screen table view
|
|
153
|
+
* @see {@link Button} - Component used for the modal trigger button
|
|
154
|
+
*/
|
|
155
|
+
declare const SmartTable: FC<SmartTableProps>;
|
|
156
|
+
//#endregion
|
|
157
|
+
export { SmartTable };
|
|
158
|
+
//# sourceMappingURL=SmartTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmartTable.d.ts","names":[],"sources":["../../../../src/components/Table/SmartTable.tsx"],"mappings":";;;;;;AAY0C;;;;;;;KAarC,eAAA,GAAkB,UAAA;EACrB,UAAA;EACA,YAAA;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4IW,UAAA,EAAY,EAAA,CAAG,eAAA"}
|
|
@@ -1,195 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _$react from "react";
|
|
2
|
+
import { HTMLAttributes } from "react";
|
|
2
3
|
|
|
3
4
|
//#region src/components/Table/Table.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
* @property {boolean} [isRollable] - Whether the table content can be collapsed/expanded using the ExpandCollapse wrapper
|
|
11
|
-
* @property {string} [className] - Additional CSS classes for custom styling
|
|
12
|
-
* @property {ReactNode} children - The table content including thead, tbody, tfoot elements
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```tsx
|
|
16
|
-
* // Basic table usage
|
|
17
|
-
* <Table>
|
|
18
|
-
* <thead>
|
|
19
|
-
* <tr>
|
|
20
|
-
* <th>Name</th>
|
|
21
|
-
* <th>Email</th>
|
|
22
|
-
* </tr>
|
|
23
|
-
* </thead>
|
|
24
|
-
* <tbody>
|
|
25
|
-
* <tr>
|
|
26
|
-
* <td>John Doe</td>
|
|
27
|
-
* <td>john@example.com</td>
|
|
28
|
-
* </tr>
|
|
29
|
-
* </tbody>
|
|
30
|
-
* </Table>
|
|
31
|
-
*
|
|
32
|
-
* // Collapsible table with custom styling
|
|
33
|
-
* <Table isRollable className="border border-gray-300 rounded-lg">
|
|
34
|
-
* <thead>
|
|
35
|
-
* <tr>
|
|
36
|
-
* <th>Product</th>
|
|
37
|
-
* <th>Price</th>
|
|
38
|
-
* <th>Stock</th>
|
|
39
|
-
* </tr>
|
|
40
|
-
* </thead>
|
|
41
|
-
* <tbody>
|
|
42
|
-
* <tr>
|
|
43
|
-
* <td>Laptop</td>
|
|
44
|
-
* <td>$999</td>
|
|
45
|
-
* <td>15</td>
|
|
46
|
-
* </tr>
|
|
47
|
-
* </tbody>
|
|
48
|
-
* </Table>
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
type TableProps = HTMLAttributes<HTMLTableElement> & {
|
|
52
|
-
isRollable?: boolean;
|
|
53
|
-
displayModal?: boolean;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Table component that provides an enhanced table experience with modal expansion and collapsible content
|
|
57
|
-
*
|
|
58
|
-
* The Table component wraps a standard HTML table element with additional functionality:
|
|
59
|
-
* - **Modal Expansion**: Click the diagonal arrow button to view the table in a full-screen modal
|
|
60
|
-
* - **Collapsible Content**: Optionally wrap content in an ExpandCollapse component for space-saving
|
|
61
|
-
* - **Responsive Design**: Handles large tables gracefully with modal overflow
|
|
62
|
-
* - **Sticky Controls**: Table controls remain accessible even when scrolling
|
|
63
|
-
*
|
|
64
|
-
* ## Features
|
|
65
|
-
* - **Modal View**: Full-screen modal for better viewing of large tables
|
|
66
|
-
* - **Expand/Collapse**: Optional collapsible wrapper to save space
|
|
67
|
-
* - **Responsive**: Handles overflow and responsive behavior automatically
|
|
68
|
-
* - **Accessibility**: Maintains proper table semantics and keyboard navigation
|
|
69
|
-
* - **Customizable**: Supports all standard HTML table attributes and styling
|
|
70
|
-
*
|
|
71
|
-
* ## Best Practices
|
|
72
|
-
* - Use semantic HTML table structure (thead, tbody, tfoot)
|
|
73
|
-
* - Provide proper column headers with scope attributes
|
|
74
|
-
* - Use the isRollable prop for large tables that might need space management
|
|
75
|
-
* - Apply consistent styling through the className prop
|
|
76
|
-
* - Consider pagination for very large datasets
|
|
77
|
-
*
|
|
78
|
-
* @param {TableProps} props - The properties for the Table component
|
|
79
|
-
* @returns {JSX.Element} The rendered table with enhanced functionality
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* ```tsx
|
|
83
|
-
* // Simple data table
|
|
84
|
-
* <Table>
|
|
85
|
-
* <thead>
|
|
86
|
-
* <tr>
|
|
87
|
-
* <th scope="col">Name</th>
|
|
88
|
-
* <th scope="col">Email</th>
|
|
89
|
-
* <th scope="col">Status</th>
|
|
90
|
-
* </tr>
|
|
91
|
-
* </thead>
|
|
92
|
-
* <tbody>
|
|
93
|
-
* <tr>
|
|
94
|
-
* <td>John Doe</td>
|
|
95
|
-
* <td>john@example.com</td>
|
|
96
|
-
* <td>
|
|
97
|
-
* <span className="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">
|
|
98
|
-
* Active
|
|
99
|
-
* </span>
|
|
100
|
-
* </td>
|
|
101
|
-
* </tr>
|
|
102
|
-
* <tr>
|
|
103
|
-
* <td>Jane Smith</td>
|
|
104
|
-
* <td>jane@example.com</td>
|
|
105
|
-
* <td>
|
|
106
|
-
* <span className="px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full text-xs">
|
|
107
|
-
* Pending
|
|
108
|
-
* </span>
|
|
109
|
-
* </td>
|
|
110
|
-
* </tr>
|
|
111
|
-
* </tbody>
|
|
112
|
-
* </Table>
|
|
113
|
-
*
|
|
114
|
-
* // Large collapsible table with custom styling
|
|
115
|
-
* <Table
|
|
116
|
-
* isRollable
|
|
117
|
-
* className="border border-gray-200 rounded-lg overflow-hidden"
|
|
118
|
-
* >
|
|
119
|
-
* <thead className="bg-gray-50">
|
|
120
|
-
* <tr>
|
|
121
|
-
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
122
|
-
* Product ID
|
|
123
|
-
* </th>
|
|
124
|
-
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
125
|
-
* Name
|
|
126
|
-
* </th>
|
|
127
|
-
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
128
|
-
* Category
|
|
129
|
-
* </th>
|
|
130
|
-
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
131
|
-
* Price
|
|
132
|
-
* </th>
|
|
133
|
-
* <th scope="col" className="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase">
|
|
134
|
-
* Stock
|
|
135
|
-
* </th>
|
|
136
|
-
* </tr>
|
|
137
|
-
* </thead>
|
|
138
|
-
* <tbody className="bg-white divide-y divide-gray-200">
|
|
139
|
-
* {products.map((product) => (
|
|
140
|
-
* <tr key={product.id} className="hover:bg-gray-50">
|
|
141
|
-
* <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
142
|
-
* #{product.id}
|
|
143
|
-
* </td>
|
|
144
|
-
* <td className="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">
|
|
145
|
-
* {product.name}
|
|
146
|
-
* </td>
|
|
147
|
-
* <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
|
148
|
-
* {product.category}
|
|
149
|
-
* </td>
|
|
150
|
-
* <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-900">
|
|
151
|
-
* ${product.price.toFixed(2)}
|
|
152
|
-
* </td>
|
|
153
|
-
* <td className="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
|
|
154
|
-
* {product.stock} units
|
|
155
|
-
* </td>
|
|
156
|
-
* </tr>
|
|
157
|
-
* ))}
|
|
158
|
-
* </tbody>
|
|
159
|
-
* </Table>
|
|
160
|
-
*
|
|
161
|
-
* // Financial data table with formatted numbers
|
|
162
|
-
* <Table className="w-full border-collapse">
|
|
163
|
-
* <thead>
|
|
164
|
-
* <tr className="border-b-2 border-gray-300">
|
|
165
|
-
* <th scope="col" className="text-left py-3 px-4">Quarter</th>
|
|
166
|
-
* <th scope="col" className="text-right py-3 px-4">Revenue</th>
|
|
167
|
-
* <th scope="col" className="text-right py-3 px-4">Profit</th>
|
|
168
|
-
* <th scope="col" className="text-right py-3 px-4">Growth</th>
|
|
169
|
-
* </tr>
|
|
170
|
-
* </thead>
|
|
171
|
-
* <tbody>
|
|
172
|
-
* <tr className="border-b border-gray-200">
|
|
173
|
-
* <td className="py-3 px-4 font-medium">Q1 2024</td>
|
|
174
|
-
* <td className="py-3 px-4 text-right">$2,450,000</td>
|
|
175
|
-
* <td className="py-3 px-4 text-right text-green-600">$345,000</td>
|
|
176
|
-
* <td className="py-3 px-4 text-right text-green-600">+12.5%</td>
|
|
177
|
-
* </tr>
|
|
178
|
-
* <tr className="border-b border-gray-200">
|
|
179
|
-
* <td className="py-3 px-4 font-medium">Q2 2024</td>
|
|
180
|
-
* <td className="py-3 px-4 text-right">$2,780,000</td>
|
|
181
|
-
* <td className="py-3 px-4 text-right text-green-600">$398,000</td>
|
|
182
|
-
* <td className="py-3 px-4 text-right text-green-600">+13.5%</td>
|
|
183
|
-
* </tr>
|
|
184
|
-
* </tbody>
|
|
185
|
-
* </Table>
|
|
186
|
-
* ```
|
|
187
|
-
*
|
|
188
|
-
* @see {@link ExpandCollapse} - Component used for collapsible table content
|
|
189
|
-
* @see {@link Modal} - Component used for full-screen table view
|
|
190
|
-
* @see {@link Button} - Component used for the modal trigger button
|
|
191
|
-
*/
|
|
192
|
-
declare const Table: FC<TableProps>;
|
|
5
|
+
interface TableProps extends HTMLAttributes<HTMLTableElement> {
|
|
6
|
+
/** Enables hover states and cursor changes for interactive rows */
|
|
7
|
+
isInteractive?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Table: _$react.ForwardRefExoticComponent<TableProps & _$react.RefAttributes<HTMLTableElement>>;
|
|
193
10
|
//#endregion
|
|
194
|
-
export { Table };
|
|
11
|
+
export { Table, TableProps };
|
|
195
12
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","names":[],"sources":["../../../../src/components/Table/Table.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","names":[],"sources":["../../../../src/components/Table/Table.tsx"],"mappings":";;;;UAGiB,UAAA,SAAmB,cAAA,CAAe,gBAAA;;EAEjD,aAAA;AAAA;AAAA,cAGW,KAAA,EAAK,OAAA,CAAA,yBAAA,CAAA,UAAA,GAAA,OAAA,CAAA,aAAA,CAAA,gBAAA"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { Table } from "./Table.js";
|
|
2
|
-
|
|
1
|
+
import { Table, TableProps } from "./Table.js";
|
|
2
|
+
import { SmartTable } from "./SmartTable.js";
|
|
3
|
+
export { SmartTable, Table, TableProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputVariant, inputVariants } from "../Input/Input.js";
|
|
2
2
|
import * as _$react from "react";
|
|
3
|
-
import { ClipboardEvent, DragEvent, FC,
|
|
3
|
+
import { ClipboardEvent, DragEvent, FC, HTMLAttributes, InputEvent, KeyboardEvent, Ref } from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
|
|
6
6
|
//#region src/components/TextArea/ContentEditableTextArea.d.ts
|
|
@@ -24,7 +24,7 @@ declare const useContentEditable: ({
|
|
|
24
24
|
containerRef: _$react.RefObject<HTMLDivElement>;
|
|
25
25
|
getText: () => string;
|
|
26
26
|
handleInput: () => void;
|
|
27
|
-
handleBeforeInput: (e:
|
|
27
|
+
handleBeforeInput: (e: InputEvent<HTMLDivElement>) => void;
|
|
28
28
|
handleKeyDown: (e: KeyboardEvent<HTMLDivElement>) => void;
|
|
29
29
|
handleCut: (e: ClipboardEvent<HTMLDivElement>) => void;
|
|
30
30
|
handlePaste: (e: ClipboardEvent<HTMLDivElement>) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentEditableTextArea.d.ts","names":[],"sources":["../../../../src/components/TextArea/ContentEditableTextArea.tsx"],"mappings":";;;;;;KAoBK,aAAA;EACH,IAAA;EACA,MAAA;AAAA;AAAA,KAGG,yBAAA;EACH,KAAA;EACA,YAAA;EACA,QAAA,IAAY,KAAA;EACZ,QAAA;AAAA;AAAA,cAoIW,kBAAA;EAAsB,KAAA;EAAA,YAAA;EAAA,QAAA;EAAA;AAAA,GAKhC,yBAAA;;;;;yBA0S6B,
|
|
1
|
+
{"version":3,"file":"ContentEditableTextArea.d.ts","names":[],"sources":["../../../../src/components/TextArea/ContentEditableTextArea.tsx"],"mappings":";;;;;;KAoBK,aAAA;EACH,IAAA;EACA,MAAA;AAAA;AAAA,KAGG,yBAAA;EACH,KAAA;EACA,YAAA;EACA,QAAA,IAAY,KAAA;EACZ,QAAA;AAAA;AAAA,cAoIW,kBAAA;EAAsB,KAAA;EAAA,YAAA;EAAA,QAAA;EAAA;AAAA,GAKhC,yBAAA;;;;;yBA0S6B,UAAA,CAAW,cAAA;qBApIf,aAAA,CAAc,cAAA;iBAyFlB,cAAA,CAAe,cAAA;mBAsBb,cAAA,CAAe,cAAA;kBAoGhB,SAAA,CAAU,cAAA;sBAKN,SAAA,CAAU,cAAA;0BA3WR,aAAA;0BAuDE,aAAA;;sCA+CjB,WAAA,eAEX,aAAA;AAAA;AAAA,KAgTO,6BAAA;EACV,YAAA,QAAoB,cAAA;EACpB,OAAA;EACA,KAAA;EACA,eAAA;EACA,iBAAA,GAAoB,MAAA;AAAA;AAAA,KAGV,4BAAA,GAA+B,IAAA,CACzC,cAAA,CAAe,cAAA;EAGf,KAAA;EACA,YAAA;EACA,QAAA,IAAY,KAAA;EACZ,WAAA;EACA,QAAA;EACA,OAAA;EACA,OAAA;EACA,QAAA;EACA,sBAAA;EACA,OAAA,GAAU,YAAA,MAAkB,YAAA;EAC5B,SAAA;EACA,SAAA;EACA,WAAA;EACA,GAAA,GAAM,GAAA,CAAI,6BAAA;EACV,GAAA;AAAA,IACE,IAAA,CACA,YAAA,QAAoB,aAAA;AAAA,cAOX,uBAAA,EAAyB,EAAA,CAAG,4BAAA"}
|
|
@@ -25,7 +25,7 @@ declare const ToastViewport: FC<ComponentProps<typeof ToastPrimitives.Viewport>>
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
declare const toastVariants: (props?: {
|
|
28
|
-
variant?: "
|
|
28
|
+
variant?: "error" | "default" | "success";
|
|
29
29
|
} & _$class_variance_authority_types0.ClassProp) => string;
|
|
30
30
|
/**
|
|
31
31
|
* Toast Component
|
|
@@ -66,6 +66,9 @@ import { MaxHeightSmoother } from "./MaxHeightSmoother/index.js";
|
|
|
66
66
|
import { MaxWidthSmoother } from "./MaxWidthSmoother/index.js";
|
|
67
67
|
import { Modal, ModalSize } from "./Modal/Modal.js";
|
|
68
68
|
import { TabSelector, TabSelectorColor, TabSelectorItemProps, TabSelectorProps } from "./TabSelector/TabSelector.js";
|
|
69
|
+
import { Burger } from "./Navbar/Burger.js";
|
|
70
|
+
import { DesktopNavbar } from "./Navbar/DesktopNavbar.js";
|
|
71
|
+
import { MobileNavbar } from "./Navbar/MobileNavbar.js";
|
|
69
72
|
import { Navbar } from "./Navbar/index.js";
|
|
70
73
|
import { NumberItemsSelector, NumberItemsSelectorProps } from "./Pagination/NumberItemsSelector.js";
|
|
71
74
|
import { Pagination, PaginationProps, PaginationSize, PaginationVariant, paginationVariants } from "./Pagination/Pagination.js";
|
|
@@ -95,7 +98,8 @@ import { YoutubeLogo } from "./SocialNetworks/YoutubeLogo.js";
|
|
|
95
98
|
import { SocialNetworks } from "./SocialNetworks/index.js";
|
|
96
99
|
import { SwitchSelector, SwitchSelectorChoice, SwitchSelectorChoices, SwitchSelectorColor, SwitchSelectorProps, SwitchSelectorSize } from "./SwitchSelector/index.js";
|
|
97
100
|
import { Tab, TabItemProps, TabProps } from "./Tab/Tab.js";
|
|
98
|
-
import { Table } from "./Table/Table.js";
|
|
101
|
+
import { Table, TableProps } from "./Table/Table.js";
|
|
102
|
+
import { SmartTable } from "./Table/SmartTable.js";
|
|
99
103
|
import { Tag, TagBackground, TagBorder, TagColor, TagRoundedSize, TagSize } from "./Tag/index.js";
|
|
100
104
|
import { TechLogoName } from "./TechLogo/types.js";
|
|
101
105
|
import { TechLogo } from "./TechLogo/TechLogo.js";
|
|
@@ -109,4 +113,4 @@ import { Toaster } from "./Toaster/Toaster.js";
|
|
|
109
113
|
import { reducer, toast, useToast } from "./Toaster/useToast.js";
|
|
110
114
|
import { WithResizer } from "./WithResizer/index.js";
|
|
111
115
|
import { MarkdownRenderer, baseMarkdownComponents, getIntlayerMarkdownOptions } from "./MarkDownRender/MarkDownRender.js";
|
|
112
|
-
export { Accordion, AccordionProps, AutoCompleteTextarea, AutoSizedTextArea, AutoSizedTextAreaProps, AutocompleteTextAreaProps, Avatar, AvatarProps, Badge, BadgeColor, BadgeProps, BadgeSize, BadgeVariant, BadgeVariantProps, BitbucketLogo, Breadcrumb, BreadcrumbLink, BreadcrumbProps, Browser, BrowserProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonTextAlign, ButtonVariant, Carousel, Checkbox, CheckboxColor, CheckboxProps, CheckboxSize, ClickOutsideDiv, ClickOutsideDivProps, Code, CodeBlock, CodeBlockProps, CodeCompAttributes, CodeDefault, CodeLanguage, CollapsibleTable, CollapsibleTableProps, Command, CommandRoot, Container, ContainerBackground, ContainerBorderColor, ContainerGap, ContainerPadding, ContainerProps, ContainerRoundedSize, ContainerSeparator, ContainerTransparency, ContentEditableTextArea, ContentEditableTextAreaHandle, ContentEditableTextAreaProps, ContentEditor, ContentSelector, CopyButton, CopyToClipboard, CopyToClipboardProps, DesktopThemeSwitcher, Detail, DetailProps, DictionaryCreationForm, DictionaryEditor, DictionaryFieldEditor, DiscordLogo, DotPattern, DropDown, DropDownAlign, DropDownProps, DropDownType, DropDownYAlign, EditableFieldInput, EditableFieldTextArea, ExpandCollapse, ExpandCollapseProps, FacebookLogo, FileList, FileListProps, Flag, flags_d_exports as Flags, Footer, FooterLink, Form, GitHubLogo, GitLabLogo, GoogleLogo, GridPattern, H1, H2, H3, H4, H5, H6, HTMLRenderer, HeadingProps, HeightResizer, HideShow, HideShowProps, IDE, IDEProps, InformationTag, Input, InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputPassword, InputProps, InputSize, InputVariant, InstagramLogo, KeyList, KeyPathBreadcrumb, KeyboardScreenAdapter, KeyboardShortcut, KeyboardShortcutProps, KeyboardShortcutType, Label, LabelProps, LanguageBackground, LanguageSection, Link, LinkColor, LinkGroup, LinkProps, LinkRoundedSize, LinkSize, LinkUnderlined, LinkVariant, LinkedInLogo, Loader, LoaderProps, LocaleSwitcher, LocaleSwitcherContent, LocaleSwitcherContentProps, LocaleSwitcherContentProvider, LocaleSwitcherProps, Logo, LogoTextOnly, LogoWithText, LogoWithTextBelow, MarkdownRenderer, MaxHeightSmoother, MaxWidthSmoother, MobileThemeSwitcher, Modal, ModalSize, Modes, MultiSelect, Navbar, NumberItemsSelector, NumberItemsSelectorProps, OTPInput, OTPInputContext, OTPInputProps, Pagination, PaginationProps, PaginationSize, PaginationVariant, PanelProps, Popover, PopoverProps, PopoverStatic, PopoverType, PopoverXAlign, PopoverYAlign, PressableSpan, ProductHuntLogo, RenderProps, RightDrawer, SaveForm, SearchInput, Select, SelectContent, SelectContentPosition, SelectLabel, SelectSeparator, ShowingResultsNumberItems, ShowingResultsNumberItemsProps, SlotProps, SocialNetworks, Spotlight, SwitchSelector, SwitchSelectorChoice, SwitchSelectorChoices, SwitchSelectorColor, SwitchSelectorProps, SwitchSelectorSize, Tab, TabItemProps, TabProps, TabSelector, TabSelectorColor, TabSelectorItemProps, TabSelectorProps, Table, Tag, TagBackground, TagBorder, TagColor, TagRoundedSize, TagSize, TechLogo, TechLogoName, techLogos_d_exports as TechLogos, Terminal, TerminalProps, TextArea, TextAreaProps, TextEditor, TextEditorContainer, TextEditorProps, TiktokLogo, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, TriggerProps, VersionSwitcher, VersionSwitcherProps, VersionSwitcherProvider, WithResizer, XLogo, YoutubeLogo, badgeVariants, baseMarkdownComponents, buttonVariants, checkIsExternalLink, checkboxVariants, containerVariants, drawerManager, getCapitals, getIntlayerHTMLOptions, getIntlayerMarkdownOptions, inputSlotVariants, inputVariants, isTextChildren, linkVariants, paginationVariants, reducer, toast, traceKeys, useContentEditable, useCopyToClipboard, useForm, useFormField, useLocaleSwitcherContent, usePasswordManagerBadge, usePrevious, useRightDrawer, useToast, useVersionSwitcher };
|
|
116
|
+
export { Accordion, AccordionProps, AutoCompleteTextarea, AutoSizedTextArea, AutoSizedTextAreaProps, AutocompleteTextAreaProps, Avatar, AvatarProps, Badge, BadgeColor, BadgeProps, BadgeSize, BadgeVariant, BadgeVariantProps, BitbucketLogo, Breadcrumb, BreadcrumbLink, BreadcrumbProps, Browser, BrowserProps, Burger, Button, ButtonColor, ButtonProps, ButtonSize, ButtonTextAlign, ButtonVariant, Carousel, Checkbox, CheckboxColor, CheckboxProps, CheckboxSize, ClickOutsideDiv, ClickOutsideDivProps, Code, CodeBlock, CodeBlockProps, CodeCompAttributes, CodeDefault, CodeLanguage, CollapsibleTable, CollapsibleTableProps, Command, CommandRoot, Container, ContainerBackground, ContainerBorderColor, ContainerGap, ContainerPadding, ContainerProps, ContainerRoundedSize, ContainerSeparator, ContainerTransparency, ContentEditableTextArea, ContentEditableTextAreaHandle, ContentEditableTextAreaProps, ContentEditor, ContentSelector, CopyButton, CopyToClipboard, CopyToClipboardProps, DesktopNavbar, DesktopThemeSwitcher, Detail, DetailProps, DictionaryCreationForm, DictionaryEditor, DictionaryFieldEditor, DiscordLogo, DotPattern, DropDown, DropDownAlign, DropDownProps, DropDownType, DropDownYAlign, EditableFieldInput, EditableFieldTextArea, ExpandCollapse, ExpandCollapseProps, FacebookLogo, FileList, FileListProps, Flag, flags_d_exports as Flags, Footer, FooterLink, Form, GitHubLogo, GitLabLogo, GoogleLogo, GridPattern, H1, H2, H3, H4, H5, H6, HTMLRenderer, HeadingProps, HeightResizer, HideShow, HideShowProps, IDE, IDEProps, InformationTag, Input, InputIndicator, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, InputPassword, InputProps, InputSize, InputVariant, InstagramLogo, KeyList, KeyPathBreadcrumb, KeyboardScreenAdapter, KeyboardShortcut, KeyboardShortcutProps, KeyboardShortcutType, Label, LabelProps, LanguageBackground, LanguageSection, Link, LinkColor, LinkGroup, LinkProps, LinkRoundedSize, LinkSize, LinkUnderlined, LinkVariant, LinkedInLogo, Loader, LoaderProps, LocaleSwitcher, LocaleSwitcherContent, LocaleSwitcherContentProps, LocaleSwitcherContentProvider, LocaleSwitcherProps, Logo, LogoTextOnly, LogoWithText, LogoWithTextBelow, MarkdownRenderer, MaxHeightSmoother, MaxWidthSmoother, MobileNavbar, MobileThemeSwitcher, Modal, ModalSize, Modes, MultiSelect, Navbar, NumberItemsSelector, NumberItemsSelectorProps, OTPInput, OTPInputContext, OTPInputProps, Pagination, PaginationProps, PaginationSize, PaginationVariant, PanelProps, Popover, PopoverProps, PopoverStatic, PopoverType, PopoverXAlign, PopoverYAlign, PressableSpan, ProductHuntLogo, RenderProps, RightDrawer, SaveForm, SearchInput, Select, SelectContent, SelectContentPosition, SelectLabel, SelectSeparator, ShowingResultsNumberItems, ShowingResultsNumberItemsProps, SlotProps, SmartTable, SocialNetworks, Spotlight, SwitchSelector, SwitchSelectorChoice, SwitchSelectorChoices, SwitchSelectorColor, SwitchSelectorProps, SwitchSelectorSize, Tab, TabItemProps, TabProps, TabSelector, TabSelectorColor, TabSelectorItemProps, TabSelectorProps, Table, TableProps, Tag, TagBackground, TagBorder, TagColor, TagRoundedSize, TagSize, TechLogo, TechLogoName, techLogos_d_exports as TechLogos, Terminal, TerminalProps, TextArea, TextAreaProps, TextEditor, TextEditorContainer, TextEditorProps, TiktokLogo, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, TriggerProps, VersionSwitcher, VersionSwitcherProps, VersionSwitcherProvider, WithResizer, XLogo, YoutubeLogo, badgeVariants, baseMarkdownComponents, buttonVariants, checkIsExternalLink, checkboxVariants, containerVariants, drawerManager, getCapitals, getIntlayerHTMLOptions, getIntlayerMarkdownOptions, inputSlotVariants, inputVariants, isTextChildren, linkVariants, paginationVariants, reducer, toast, traceKeys, useContentEditable, useCopyToClipboard, useForm, useFormField, useLocaleSwitcherContent, usePasswordManagerBadge, usePrevious, useRightDrawer, useToast, useVersionSwitcher };
|