@usefragments/ui 1.1.1 → 1.3.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/assets/ui.css +327 -274
- package/dist/components/Checkbox/Checkbox.module.scss.cjs +11 -11
- package/dist/components/Checkbox/Checkbox.module.scss.js +11 -11
- package/dist/components/Chip/Chip.module.scss.cjs +15 -15
- package/dist/components/Chip/Chip.module.scss.js +15 -15
- package/dist/components/Combobox/index.cjs +106 -9
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +106 -9
- package/dist/components/DataTable/DataTable.module.scss.cjs +37 -34
- package/dist/components/DataTable/DataTable.module.scss.js +37 -34
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/Main/Main.module.scss.cjs +26 -0
- package/dist/components/Main/Main.module.scss.js +26 -0
- package/dist/components/Main/index.cjs +128 -0
- package/dist/components/Main/index.d.ts +22 -0
- package/dist/components/Main/index.d.ts.map +1 -0
- package/dist/components/Main/index.js +111 -0
- package/dist/components/Table/Table.module.scss.cjs +19 -19
- package/dist/components/Table/Table.module.scss.js +19 -19
- package/dist/components/TableOfContents/TableOfContents.module.scss.cjs +15 -15
- package/dist/components/TableOfContents/TableOfContents.module.scss.js +15 -15
- package/dist/components/TableOfContents/index.cjs +22 -42
- package/dist/components/TableOfContents/index.d.ts +3 -3
- package/dist/components/TableOfContents/index.d.ts.map +1 -1
- package/dist/components/TableOfContents/index.js +22 -42
- package/dist/{components/DataTable/DataTable.virtual.cjs → data-table-virtual.cjs} +1 -1
- package/dist/{components/DataTable/DataTable.virtual.js → data-table-virtual.js} +1 -1
- package/dist/data-table.cjs +27 -9
- package/dist/data-table.js +19 -1
- package/dist/index.cjs +87 -88
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/fragments.json +1 -1
- package/package.json +57 -2
- package/src/components/Checkbox/Checkbox.contract.json +5 -24
- package/src/components/Checkbox/Checkbox.module.scss +4 -2
- package/src/components/Chip/Chip.contract.json +11 -28
- package/src/components/Chip/Chip.module.scss +21 -45
- package/src/components/Combobox/Combobox.contract.json +6 -24
- package/src/components/Combobox/index.tsx +132 -6
- package/src/components/DataTable/DataTable.module.scss +31 -8
- package/src/components/DataTable/index.tsx +44 -16
- package/src/components/Main/Main.contract.json +79 -0
- package/src/components/Main/Main.module.scss +31 -0
- package/src/components/Main/index.tsx +124 -0
- package/src/components/Table/Table.module.scss +22 -5
- package/src/components/TableOfContents/TableOfContents.contract.json +6 -16
- package/src/components/TableOfContents/TableOfContents.module.scss +10 -13
- package/src/components/TableOfContents/index.tsx +27 -38
- package/src/index.ts +11 -9
- package/src/styles/styles.d.ts +8 -0
- package/src/tokens/_component-properties.scss +1 -0
- package/dist/components/Cloud/DashboardLayoutPrototypes.shared.d.ts +0 -33
- package/dist/components/Cloud/DashboardLayoutPrototypes.shared.d.ts.map +0 -1
- package/dist/components/Cloud/DashboardLayoutPrototypes.shell.d.ts +0 -11
- package/dist/components/Cloud/DashboardLayoutPrototypes.shell.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.content.d.ts +0 -5
- package/dist/components/Cloud/PullRequestsPrototypes.content.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.detail-panels.d.ts +0 -4
- package/dist/components/Cloud/PullRequestsPrototypes.detail-panels.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.detail.d.ts +0 -3
- package/dist/components/Cloud/PullRequestsPrototypes.detail.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.id-data.d.ts +0 -86
- package/dist/components/Cloud/PullRequestsPrototypes.id-data.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.id-page.d.ts +0 -2
- package/dist/components/Cloud/PullRequestsPrototypes.id-page.d.ts.map +0 -1
- package/src/components/Accordion/Accordion.stories.tsx +0 -106
- package/src/components/Alert/Alert.stories.tsx +0 -119
- package/src/components/AppShell/AppShell.stories.tsx +0 -156
- package/src/components/Avatar/Avatar.stories.tsx +0 -74
- package/src/components/Badge/Badge.stories.tsx +0 -92
- package/src/components/BentoGrid/BentoGrid.stories.tsx +0 -98
- package/src/components/Box/Box.stories.tsx +0 -150
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -87
- package/src/components/Button/Button.stories.tsx +0 -103
- package/src/components/ButtonGroup/ButtonGroup.stories.tsx +0 -97
- package/src/components/Card/Card.stories.tsx +0 -144
- package/src/components/Chart/Chart.stories.tsx +0 -119
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -68
- package/src/components/Chip/Chip.stories.tsx +0 -70
- package/src/components/Cloud/CloudGovernanceShell.module.scss +0 -88
- package/src/components/Cloud/CloudGovernanceShell.stories.tsx +0 -446
- package/src/components/Cloud/ControlSizing.module.scss +0 -49
- package/src/components/Cloud/ControlSizing.stories.tsx +0 -238
- package/src/components/Cloud/DashboardLayoutPrototypes.module.scss +0 -462
- package/src/components/Cloud/DashboardLayoutPrototypes.shared.tsx +0 -375
- package/src/components/Cloud/DashboardLayoutPrototypes.shell.tsx +0 -147
- package/src/components/Cloud/DashboardLayoutPrototypes.stories.tsx +0 -328
- package/src/components/Cloud/PullRequestsPrototypes.content.tsx +0 -283
- package/src/components/Cloud/PullRequestsPrototypes.detail-panels.tsx +0 -381
- package/src/components/Cloud/PullRequestsPrototypes.detail.tsx +0 -204
- package/src/components/Cloud/PullRequestsPrototypes.id-data.ts +0 -395
- package/src/components/Cloud/PullRequestsPrototypes.id-page.tsx +0 -349
- package/src/components/Cloud/PullRequestsPrototypes.stories.tsx +0 -81
- package/src/components/CodeBlock/CodeBlock.stories.tsx +0 -147
- package/src/components/Collapsible/Collapsible.stories.tsx +0 -94
- package/src/components/ColorPicker/ColorPicker.stories.tsx +0 -74
- package/src/components/Combobox/Combobox.stories.tsx +0 -133
- package/src/components/Command/Command.stories.tsx +0 -102
- package/src/components/ConversationList/ConversationList.stories.tsx +0 -93
- package/src/components/DataTable/DataTable.stories.tsx +0 -129
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -129
- package/src/components/Dialog/Dialog.stories.tsx +0 -154
- package/src/components/Drawer/Drawer.stories.tsx +0 -144
- package/src/components/Editor/Editor.stories.tsx +0 -99
- package/src/components/EmptyState/EmptyState.stories.tsx +0 -97
- package/src/components/Field/Field.stories.tsx +0 -109
- package/src/components/Fieldset/Fieldset.stories.tsx +0 -116
- package/src/components/Form/Form.stories.tsx +0 -142
- package/src/components/Grid/Grid.stories.tsx +0 -125
- package/src/components/Header/Header.stories.tsx +0 -133
- package/src/components/Icon/Icon.stories.tsx +0 -80
- package/src/components/IconButton/IconButton.stories.tsx +0 -78
- package/src/components/Image/Image.stories.tsx +0 -109
- package/src/components/Input/Input.stories.tsx +0 -104
- package/src/components/Link/Link.stories.tsx +0 -67
- package/src/components/List/List.stories.tsx +0 -95
- package/src/components/Listbox/Listbox.stories.tsx +0 -81
- package/src/components/Loading/Loading.stories.tsx +0 -69
- package/src/components/Markdown/Markdown.stories.tsx +0 -75
- package/src/components/Menu/Menu.stories.tsx +0 -113
- package/src/components/Message/Message.stories.tsx +0 -85
- package/src/components/NavigationMenu/NavigationMenu.stories.tsx +0 -161
- package/src/components/Pagination/Pagination.stories.tsx +0 -81
- package/src/components/Popover/Popover.stories.tsx +0 -152
- package/src/components/Progress/Progress.stories.tsx +0 -64
- package/src/components/Prompt/Prompt.stories.tsx +0 -93
- package/src/components/RadioGroup/RadioGroup.stories.tsx +0 -107
- package/src/components/ScrollArea/ScrollArea.stories.tsx +0 -97
- package/src/components/Select/Select.stories.tsx +0 -127
- package/src/components/Separator/Separator.stories.tsx +0 -84
- package/src/components/Sidebar/Sidebar.stories.tsx +0 -122
- package/src/components/Skeleton/Skeleton.stories.tsx +0 -80
- package/src/components/Slider/Slider.stories.tsx +0 -73
- package/src/components/Stack/Stack.stories.tsx +0 -73
- package/src/components/Switch/Switch.stories.tsx +0 -59
- package/src/components/Table/Table.stories.tsx +0 -219
- package/src/components/TableOfContents/TableOfContents.stories.tsx +0 -120
- package/src/components/Tabs/Tabs.stories.tsx +0 -136
- package/src/components/Text/Text.stories.tsx +0 -133
- package/src/components/Textarea/Textarea.stories.tsx +0 -107
- package/src/components/Theme/Theme.stories.tsx +0 -95
- package/src/components/ThinkingIndicator/ThinkingIndicator.stories.tsx +0 -85
- package/src/components/Toast/Toast.stories.tsx +0 -91
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +0 -114
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -95
- package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +0 -78
|
@@ -65,11 +65,7 @@ function TableOfContentsItem({
|
|
|
65
65
|
}) {
|
|
66
66
|
const { depth } = React__namespace.useContext(TocContext);
|
|
67
67
|
const effectiveDepth = depth > 0 ? depth : indent ? 1 : 0;
|
|
68
|
-
const linkClasses = [
|
|
69
|
-
TableOfContents_module.default.link,
|
|
70
|
-
active && TableOfContents_module.default.active,
|
|
71
|
-
className
|
|
72
|
-
].filter(Boolean).join(" ");
|
|
68
|
+
const linkClasses = [TableOfContents_module.default.link, active && TableOfContents_module.default.active, className].filter(Boolean).join(" ");
|
|
73
69
|
const handleClick = (e) => {
|
|
74
70
|
onClick == null ? void 0 : onClick(e);
|
|
75
71
|
if (e.defaultPrevented) return;
|
|
@@ -80,29 +76,21 @@ function TableOfContentsItem({
|
|
|
80
76
|
window.history.replaceState(null, "", `#${id}`);
|
|
81
77
|
}
|
|
82
78
|
};
|
|
83
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
-
"
|
|
79
|
+
return /* @__PURE__ */ jsxRuntime.jsx("li", { className: TableOfContents_module.default.item, "data-depth": effectiveDepth, "data-active": active || void 0, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
80
|
+
"a",
|
|
85
81
|
{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"aria-current": active ? "location" : void 0,
|
|
97
|
-
children: [
|
|
98
|
-
leading != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: TableOfContents_module.default.leading, children: leading }),
|
|
99
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: TableOfContents_module.default.linkLabel, children }),
|
|
100
|
-
trailing != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: TableOfContents_module.default.trailing, children: trailing })
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
)
|
|
82
|
+
...htmlProps,
|
|
83
|
+
href: `#${id}`,
|
|
84
|
+
className: linkClasses,
|
|
85
|
+
onClick: handleClick,
|
|
86
|
+
"aria-current": active ? "location" : void 0,
|
|
87
|
+
children: [
|
|
88
|
+
leading != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: TableOfContents_module.default.leading, children: leading }),
|
|
89
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: TableOfContents_module.default.linkLabel, children }),
|
|
90
|
+
trailing != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: TableOfContents_module.default.trailing, children: trailing })
|
|
91
|
+
]
|
|
104
92
|
}
|
|
105
|
-
);
|
|
93
|
+
) });
|
|
106
94
|
}
|
|
107
95
|
function useControlledOpen(controlled, defaultValue, onChange) {
|
|
108
96
|
const [internal, setInternal] = React__namespace.useState(defaultValue);
|
|
@@ -145,24 +133,16 @@ function TableOfContentsGroup({
|
|
|
145
133
|
trailing != null && /* @__PURE__ */ jsxRuntime.jsx("span", { className: TableOfContents_module.default.trailing, children: trailing })
|
|
146
134
|
] });
|
|
147
135
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
148
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
149
|
-
"
|
|
136
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { className: TableOfContents_module.default.groupHeaderRow, "data-depth": depth, "data-active": active || void 0, children: isToggleable ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
137
|
+
"button",
|
|
150
138
|
{
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
{
|
|
157
|
-
type: "button",
|
|
158
|
-
className: headerClasses,
|
|
159
|
-
onClick: () => setOpen(!open),
|
|
160
|
-
"aria-expanded": isOpen,
|
|
161
|
-
children: headerContent
|
|
162
|
-
}
|
|
163
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headerClasses, children: headerContent })
|
|
139
|
+
type: "button",
|
|
140
|
+
className: headerClasses,
|
|
141
|
+
onClick: () => setOpen(!open),
|
|
142
|
+
"aria-expanded": isOpen,
|
|
143
|
+
children: headerContent
|
|
164
144
|
}
|
|
165
|
-
),
|
|
145
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headerClasses, children: headerContent }) }),
|
|
166
146
|
isOpen && /* @__PURE__ */ jsxRuntime.jsx(TocContext.Provider, { value: { depth: depth + 1 }, children })
|
|
167
147
|
] });
|
|
168
148
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export interface TableOfContentsProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
/** Label for the nav landmark (default: "Table of contents") */
|
|
@@ -8,7 +8,7 @@ export interface TableOfContentsProps extends React.HTMLAttributes<HTMLElement>
|
|
|
8
8
|
/** Hide the title */
|
|
9
9
|
hideTitle?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export interface TableOfContentsItemProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>,
|
|
11
|
+
export interface TableOfContentsItemProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "children"> {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
/** The heading ID to link to */
|
|
14
14
|
id: string;
|
|
@@ -42,7 +42,7 @@ export interface TableOfContentsGroupProps {
|
|
|
42
42
|
/** Highlight the group label in accent — typically when a child is active. */
|
|
43
43
|
active?: boolean;
|
|
44
44
|
}
|
|
45
|
-
declare function TableOfContentsRoot({ children, label, title, hideTitle, className,
|
|
45
|
+
declare function TableOfContentsRoot({ children, label, title, hideTitle, className, "aria-label": ariaLabel, ...htmlProps }: TableOfContentsProps): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
declare function TableOfContentsItem({ children, id, active, indent, leading, trailing, className, onClick, href: _href, ...htmlProps }: TableOfContentsItemProps): import("react/jsx-runtime").JSX.Element;
|
|
47
47
|
declare function TableOfContentsGroup({ children, label, leading, trailing, defaultOpen, open: controlledOpen, onOpenChange, collapsible, disabled, active, }: TableOfContentsGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
48
48
|
export declare const TableOfContents: typeof TableOfContentsRoot & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TableOfContents/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC7E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,wBAAyB,SAAQ,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/TableOfContents/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC7E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gEAAgE;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,wBAAyB,SAAQ,IAAI,CACpD,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,UAAU,CACX;IACC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,6CAA6C;IAC7C,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4EAA4E;IAC5E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,0EAA0E;IAC1E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0EAA0E;IAC1E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8EAA8E;IAC9E,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAmCD,iBAAS,mBAAmB,CAAC,EAC3B,QAAQ,EACR,KAA2B,EAC3B,KAAsB,EACtB,SAAiB,EACjB,SAAS,EACT,YAAY,EAAE,SAAS,EACvB,GAAG,SAAS,EACb,EAAE,oBAAoB,2CAetB;AAED,iBAAS,mBAAmB,CAAC,EAC3B,QAAQ,EACR,EAAE,EACF,MAAc,EACd,MAAc,EACd,OAAO,EACP,QAAQ,EACR,SAAS,EACT,OAAO,EACP,IAAI,EAAE,KAAK,EACX,GAAG,SAAS,EACb,EAAE,wBAAwB,2CAiC1B;AAuBD,iBAAS,oBAAoB,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,OAAO,EACP,QAAQ,EACR,WAAkB,EAClB,IAAI,EAAE,cAAc,EACpB,YAAY,EACZ,WAAkB,EAClB,QAAgB,EAChB,MAAc,GACf,EAAE,yBAAyB,2CA+C3B;AAMD,eAAO,MAAM,eAAe;;;CAG1B,CAAC;AAGH,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -46,11 +46,7 @@ function TableOfContentsItem({
|
|
|
46
46
|
}) {
|
|
47
47
|
const { depth } = React.useContext(TocContext);
|
|
48
48
|
const effectiveDepth = depth > 0 ? depth : indent ? 1 : 0;
|
|
49
|
-
const linkClasses = [
|
|
50
|
-
styles.link,
|
|
51
|
-
active && styles.active,
|
|
52
|
-
className
|
|
53
|
-
].filter(Boolean).join(" ");
|
|
49
|
+
const linkClasses = [styles.link, active && styles.active, className].filter(Boolean).join(" ");
|
|
54
50
|
const handleClick = (e) => {
|
|
55
51
|
onClick == null ? void 0 : onClick(e);
|
|
56
52
|
if (e.defaultPrevented) return;
|
|
@@ -61,29 +57,21 @@ function TableOfContentsItem({
|
|
|
61
57
|
window.history.replaceState(null, "", `#${id}`);
|
|
62
58
|
}
|
|
63
59
|
};
|
|
64
|
-
return /* @__PURE__ */ jsx(
|
|
65
|
-
"
|
|
60
|
+
return /* @__PURE__ */ jsx("li", { className: styles.item, "data-depth": effectiveDepth, "data-active": active || void 0, children: /* @__PURE__ */ jsxs(
|
|
61
|
+
"a",
|
|
66
62
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
"aria-current": active ? "location" : void 0,
|
|
78
|
-
children: [
|
|
79
|
-
leading != null && /* @__PURE__ */ jsx("span", { className: styles.leading, children: leading }),
|
|
80
|
-
/* @__PURE__ */ jsx("span", { className: styles.linkLabel, children }),
|
|
81
|
-
trailing != null && /* @__PURE__ */ jsx("span", { className: styles.trailing, children: trailing })
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
)
|
|
63
|
+
...htmlProps,
|
|
64
|
+
href: `#${id}`,
|
|
65
|
+
className: linkClasses,
|
|
66
|
+
onClick: handleClick,
|
|
67
|
+
"aria-current": active ? "location" : void 0,
|
|
68
|
+
children: [
|
|
69
|
+
leading != null && /* @__PURE__ */ jsx("span", { className: styles.leading, children: leading }),
|
|
70
|
+
/* @__PURE__ */ jsx("span", { className: styles.linkLabel, children }),
|
|
71
|
+
trailing != null && /* @__PURE__ */ jsx("span", { className: styles.trailing, children: trailing })
|
|
72
|
+
]
|
|
85
73
|
}
|
|
86
|
-
);
|
|
74
|
+
) });
|
|
87
75
|
}
|
|
88
76
|
function useControlledOpen(controlled, defaultValue, onChange) {
|
|
89
77
|
const [internal, setInternal] = React.useState(defaultValue);
|
|
@@ -126,24 +114,16 @@ function TableOfContentsGroup({
|
|
|
126
114
|
trailing != null && /* @__PURE__ */ jsx("span", { className: styles.trailing, children: trailing })
|
|
127
115
|
] });
|
|
128
116
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
129
|
-
/* @__PURE__ */ jsx(
|
|
130
|
-
"
|
|
117
|
+
/* @__PURE__ */ jsx("li", { className: styles.groupHeaderRow, "data-depth": depth, "data-active": active || void 0, children: isToggleable ? /* @__PURE__ */ jsx(
|
|
118
|
+
"button",
|
|
131
119
|
{
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
{
|
|
138
|
-
type: "button",
|
|
139
|
-
className: headerClasses,
|
|
140
|
-
onClick: () => setOpen(!open),
|
|
141
|
-
"aria-expanded": isOpen,
|
|
142
|
-
children: headerContent
|
|
143
|
-
}
|
|
144
|
-
) : /* @__PURE__ */ jsx("div", { className: headerClasses, children: headerContent })
|
|
120
|
+
type: "button",
|
|
121
|
+
className: headerClasses,
|
|
122
|
+
onClick: () => setOpen(!open),
|
|
123
|
+
"aria-expanded": isOpen,
|
|
124
|
+
children: headerContent
|
|
145
125
|
}
|
|
146
|
-
),
|
|
126
|
+
) : /* @__PURE__ */ jsx("div", { className: headerClasses, children: headerContent }) }),
|
|
147
127
|
isOpen && /* @__PURE__ */ jsx(TocContext.Provider, { value: { depth: depth + 1 }, children })
|
|
148
128
|
] });
|
|
149
129
|
}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const reactVirtual = require("@tanstack/react-virtual");
|
|
6
|
-
const table = require("
|
|
6
|
+
const table = require("./table.cjs");
|
|
7
7
|
function _interopNamespaceDefault(e) {
|
|
8
8
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
9
|
if (e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
4
|
-
import { Table } from "
|
|
4
|
+
import { Table } from "./table.js";
|
|
5
5
|
function DataTableVirtualRoot({
|
|
6
6
|
caption,
|
|
7
7
|
captionHidden = false,
|
package/dist/data-table.cjs
CHANGED
|
@@ -6,7 +6,6 @@ const DataTable_module = require("./components/DataTable/DataTable.module.scss.c
|
|
|
6
6
|
const index = require("./components/Checkbox/index.cjs");
|
|
7
7
|
const DataTable_icons = require("./components/DataTable/DataTable.icons.cjs");
|
|
8
8
|
const DataTable_support = require("./components/DataTable/DataTable.support.cjs");
|
|
9
|
-
const reactTable = require("@tanstack/react-table");
|
|
10
9
|
function _interopNamespaceDefault(e) {
|
|
11
10
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
12
11
|
if (e) {
|
|
@@ -24,6 +23,18 @@ function _interopNamespaceDefault(e) {
|
|
|
24
23
|
return Object.freeze(n);
|
|
25
24
|
}
|
|
26
25
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
26
|
+
let _reactTable = null;
|
|
27
|
+
let _reactTableLoaded = false;
|
|
28
|
+
let _reactTableFailed = false;
|
|
29
|
+
function loadReactTable() {
|
|
30
|
+
if (_reactTableLoaded) return;
|
|
31
|
+
_reactTableLoaded = true;
|
|
32
|
+
try {
|
|
33
|
+
_reactTable = require("@tanstack/react-table");
|
|
34
|
+
} catch {
|
|
35
|
+
_reactTableFailed = true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
27
38
|
function getColumnSizeStyle(column) {
|
|
28
39
|
const { size, minSize, maxSize } = column.columnDef;
|
|
29
40
|
const hasExplicitSize = size !== void 0 || minSize !== void 0 || maxSize !== void 0;
|
|
@@ -80,6 +91,13 @@ function DataTableRoot({
|
|
|
80
91
|
"aria-describedby": ariaDescribedBy,
|
|
81
92
|
...htmlProps
|
|
82
93
|
}) {
|
|
94
|
+
loadReactTable();
|
|
95
|
+
if (_reactTableFailed || !_reactTable) {
|
|
96
|
+
throw new Error(
|
|
97
|
+
"[@usefragments/ui] DataTable: @tanstack/react-table is not installed. Install it with: npm install @tanstack/react-table"
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
const { flexRender, getCoreRowModel, getExpandedRowModel, getSortedRowModel, useReactTable } = _reactTable;
|
|
83
101
|
const tableRef = React__namespace.useRef(null);
|
|
84
102
|
DataTable_support.useArrowKeyRowNav(tableRef, !!onRowClick);
|
|
85
103
|
const [internalSorting, setInternalSorting] = React__namespace.useState([]);
|
|
@@ -129,14 +147,14 @@ function DataTableRoot({
|
|
|
129
147
|
[columns]
|
|
130
148
|
);
|
|
131
149
|
const hasSubRows = !!getSubRows;
|
|
132
|
-
const table =
|
|
150
|
+
const table = useReactTable({
|
|
133
151
|
data,
|
|
134
152
|
columns,
|
|
135
153
|
getRowId,
|
|
136
154
|
getSubRows,
|
|
137
|
-
getCoreRowModel:
|
|
138
|
-
getSortedRowModel: sortable ?
|
|
139
|
-
getExpandedRowModel: hasSubRows ?
|
|
155
|
+
getCoreRowModel: getCoreRowModel(),
|
|
156
|
+
getSortedRowModel: sortable ? getSortedRowModel() : void 0,
|
|
157
|
+
getExpandedRowModel: hasSubRows ? getExpandedRowModel() : void 0,
|
|
140
158
|
state: {
|
|
141
159
|
sorting: sortable ? sorting : void 0,
|
|
142
160
|
rowSelection: selectable ? rowSelection : void 0,
|
|
@@ -205,9 +223,9 @@ function DataTableRoot({
|
|
|
205
223
|
"data-align": header.column.columnDef.align,
|
|
206
224
|
"aria-sort": sortDirection ? sortDirection === "asc" ? "ascending" : "descending" : canSort ? "none" : void 0,
|
|
207
225
|
children: canSort ? /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", className: DataTable_module.default.sortButton, onClick: toggleSorting, children: [
|
|
208
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: DataTable_module.default.headerContent, children: header.isPlaceholder ? null :
|
|
226
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: DataTable_module.default.headerContent, children: header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()) }),
|
|
209
227
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: DataTable_module.default.sortIndicator, "aria-hidden": "true", children: sortDirection === "asc" ? /* @__PURE__ */ jsxRuntime.jsx(DataTable_icons.SortAscIcon, {}) : sortDirection === "desc" ? /* @__PURE__ */ jsxRuntime.jsx(DataTable_icons.SortDescIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(DataTable_icons.SortIcon, {}) })
|
|
210
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: DataTable_module.default.headerContent, children: header.isPlaceholder ? null :
|
|
228
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: DataTable_module.default.headerContent, children: header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext()) })
|
|
211
229
|
},
|
|
212
230
|
header.id
|
|
213
231
|
);
|
|
@@ -296,8 +314,8 @@ function DataTableRoot({
|
|
|
296
314
|
children: /* @__PURE__ */ jsxRuntime.jsx(DataTable_icons.ExpandIcon, { expanded: row.getIsExpanded() })
|
|
297
315
|
}
|
|
298
316
|
),
|
|
299
|
-
|
|
300
|
-
] }) :
|
|
317
|
+
flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
318
|
+
] }) : flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
301
319
|
},
|
|
302
320
|
cell.id
|
|
303
321
|
);
|
package/dist/data-table.js
CHANGED
|
@@ -5,7 +5,18 @@ import styles from "./components/DataTable/DataTable.module.scss.js";
|
|
|
5
5
|
import { Checkbox } from "./components/Checkbox/index.js";
|
|
6
6
|
import { SortAscIcon, SortDescIcon, SortIcon, ExpandIcon } from "./components/DataTable/DataTable.icons.js";
|
|
7
7
|
import { useArrowKeyRowNav, DataTableSkeletonRows } from "./components/DataTable/DataTable.support.js";
|
|
8
|
-
|
|
8
|
+
let _reactTable = null;
|
|
9
|
+
let _reactTableLoaded = false;
|
|
10
|
+
let _reactTableFailed = false;
|
|
11
|
+
function loadReactTable() {
|
|
12
|
+
if (_reactTableLoaded) return;
|
|
13
|
+
_reactTableLoaded = true;
|
|
14
|
+
try {
|
|
15
|
+
_reactTable = require("@tanstack/react-table");
|
|
16
|
+
} catch {
|
|
17
|
+
_reactTableFailed = true;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
9
20
|
function getColumnSizeStyle(column) {
|
|
10
21
|
const { size, minSize, maxSize } = column.columnDef;
|
|
11
22
|
const hasExplicitSize = size !== void 0 || minSize !== void 0 || maxSize !== void 0;
|
|
@@ -62,6 +73,13 @@ function DataTableRoot({
|
|
|
62
73
|
"aria-describedby": ariaDescribedBy,
|
|
63
74
|
...htmlProps
|
|
64
75
|
}) {
|
|
76
|
+
loadReactTable();
|
|
77
|
+
if (_reactTableFailed || !_reactTable) {
|
|
78
|
+
throw new Error(
|
|
79
|
+
"[@usefragments/ui] DataTable: @tanstack/react-table is not installed. Install it with: npm install @tanstack/react-table"
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
const { flexRender, getCoreRowModel, getExpandedRowModel, getSortedRowModel, useReactTable } = _reactTable;
|
|
65
83
|
const tableRef = React.useRef(null);
|
|
66
84
|
useArrowKeyRowNav(tableRef, !!onRowClick);
|
|
67
85
|
const [internalSorting, setInternalSorting] = React.useState([]);
|
package/dist/index.cjs
CHANGED
|
@@ -29,7 +29,6 @@ const index$p = require("./components/Skeleton/index.cjs");
|
|
|
29
29
|
const index$q = require("./components/Loading/index.cjs");
|
|
30
30
|
const table = require("./table.cjs");
|
|
31
31
|
const dataTable = require("./data-table.cjs");
|
|
32
|
-
const DataTable_virtual = require("./components/DataTable/DataTable.virtual.cjs");
|
|
33
32
|
const index$r = require("./components/EmptyState/index.cjs");
|
|
34
33
|
const index$s = require("./components/Toast/index.cjs");
|
|
35
34
|
const index$t = require("./components/Field/index.cjs");
|
|
@@ -40,36 +39,37 @@ const index$x = require("./components/Theme/index.cjs");
|
|
|
40
39
|
const index$y = require("./components/Header/index.cjs");
|
|
41
40
|
const index$z = require("./components/AppShell/index.cjs");
|
|
42
41
|
const index$A = require("./components/Stack/index.cjs");
|
|
43
|
-
const index$B = require("./components/
|
|
44
|
-
const index$C = require("./components/
|
|
45
|
-
const index$D = require("./components/
|
|
46
|
-
const index$E = require("./components/
|
|
42
|
+
const index$B = require("./components/Main/index.cjs");
|
|
43
|
+
const index$C = require("./components/Text/index.cjs");
|
|
44
|
+
const index$D = require("./components/ButtonGroup/index.cjs");
|
|
45
|
+
const index$E = require("./components/ToggleGroup/index.cjs");
|
|
46
|
+
const index$F = require("./components/Slider/index.cjs");
|
|
47
47
|
const colorpicker = require("./colorpicker.cjs");
|
|
48
48
|
const datepicker = require("./datepicker.cjs");
|
|
49
|
-
const index$
|
|
49
|
+
const index$G = require("./components/Prompt/index.cjs");
|
|
50
50
|
const codeblock = require("./codeblock.cjs");
|
|
51
|
-
const index$
|
|
52
|
-
const index$
|
|
53
|
-
const index$
|
|
54
|
-
const index$
|
|
55
|
-
const index$
|
|
56
|
-
const index$
|
|
57
|
-
const index$
|
|
58
|
-
const index$
|
|
59
|
-
const index$
|
|
60
|
-
const index$
|
|
61
|
-
const index$
|
|
51
|
+
const index$H = require("./components/Icon/index.cjs");
|
|
52
|
+
const index$I = require("./components/Image/index.cjs");
|
|
53
|
+
const index$J = require("./components/Link/index.cjs");
|
|
54
|
+
const index$K = require("./components/List/index.cjs");
|
|
55
|
+
const index$L = require("./components/Listbox/index.cjs");
|
|
56
|
+
const index$M = require("./components/Breadcrumbs/index.cjs");
|
|
57
|
+
const index$N = require("./components/TableOfContents/index.cjs");
|
|
58
|
+
const index$O = require("./components/Box/index.cjs");
|
|
59
|
+
const index$P = require("./components/ScrollArea/index.cjs");
|
|
60
|
+
const index$Q = require("./components/Chip/index.cjs");
|
|
61
|
+
const index$R = require("./components/VisuallyHidden/index.cjs");
|
|
62
62
|
const markdown = require("./markdown.cjs");
|
|
63
|
-
const index$
|
|
64
|
-
const index$
|
|
65
|
-
const index$
|
|
63
|
+
const index$S = require("./components/Message/index.cjs");
|
|
64
|
+
const index$T = require("./components/ConversationList/index.cjs");
|
|
65
|
+
const index$U = require("./components/ThinkingIndicator/index.cjs");
|
|
66
66
|
const chart = require("./chart.cjs");
|
|
67
67
|
const fragmentsLogo = require("./assets/fragments-logo.cjs");
|
|
68
68
|
const fragmentsWordmark = require("./assets/fragments-wordmark.cjs");
|
|
69
|
-
const index$
|
|
70
|
-
const index$
|
|
71
|
-
const index$
|
|
72
|
-
const index$
|
|
69
|
+
const index$V = require("./components/NavigationMenu/index.cjs");
|
|
70
|
+
const index$W = require("./components/Drawer/index.cjs");
|
|
71
|
+
const index$X = require("./components/Pagination/index.cjs");
|
|
72
|
+
const index$Y = require("./components/Command/index.cjs");
|
|
73
73
|
const editor = require("./editor.cjs");
|
|
74
74
|
const a11y = require("./utils/a11y.cjs");
|
|
75
75
|
const keyboardShortcuts = require("./utils/keyboard-shortcuts.cjs");
|
|
@@ -133,8 +133,6 @@ exports.LoadingScreen = index$q.LoadingScreen;
|
|
|
133
133
|
exports.Table = table.Table;
|
|
134
134
|
exports.DataTable = dataTable.DataTable;
|
|
135
135
|
exports.createColumns = dataTable.createColumns;
|
|
136
|
-
exports.DataTableVirtual = DataTable_virtual.DataTableVirtual;
|
|
137
|
-
exports.useTableVirtualizer = DataTable_virtual.useTableVirtualizer;
|
|
138
136
|
exports.EmptyState = index$r.EmptyState;
|
|
139
137
|
exports.EmptyStateActions = index$r.EmptyStateActions;
|
|
140
138
|
exports.EmptyStateDescription = index$r.EmptyStateDescription;
|
|
@@ -159,12 +157,13 @@ exports.useTheme = index$x.useTheme;
|
|
|
159
157
|
exports.Header = index$y.Header;
|
|
160
158
|
exports.AppShell = index$z.AppShell;
|
|
161
159
|
exports.Stack = index$A.Stack;
|
|
162
|
-
exports.
|
|
163
|
-
exports.
|
|
164
|
-
exports.
|
|
165
|
-
exports.
|
|
166
|
-
exports.
|
|
167
|
-
exports.
|
|
160
|
+
exports.Main = index$B.Main;
|
|
161
|
+
exports.Text = index$C.Text;
|
|
162
|
+
exports.ButtonGroup = index$D.ButtonGroup;
|
|
163
|
+
exports.ToggleGroup = index$E.ToggleGroup;
|
|
164
|
+
exports.ToggleGroupItem = index$E.ToggleGroupItem;
|
|
165
|
+
exports.ToggleGroupRoot = index$E.ToggleGroupRoot;
|
|
166
|
+
exports.Slider = index$F.Slider;
|
|
168
167
|
exports.ColorPicker = colorpicker.ColorPicker;
|
|
169
168
|
exports.DatePicker = datepicker.DatePicker;
|
|
170
169
|
exports.DatePickerCalendar = datepicker.DatePickerCalendar;
|
|
@@ -172,51 +171,51 @@ exports.DatePickerContent = datepicker.DatePickerContent;
|
|
|
172
171
|
exports.DatePickerPreset = datepicker.DatePickerPreset;
|
|
173
172
|
exports.DatePickerRoot = datepicker.DatePickerRoot;
|
|
174
173
|
exports.DatePickerTrigger = datepicker.DatePickerTrigger;
|
|
175
|
-
exports.Prompt = index$
|
|
176
|
-
exports.usePromptContext = index$
|
|
174
|
+
exports.Prompt = index$G.Prompt;
|
|
175
|
+
exports.usePromptContext = index$G.usePromptContext;
|
|
177
176
|
exports.CodeBlock = codeblock.CodeBlock;
|
|
178
177
|
exports.TabbedCodeBlock = codeblock.TabbedCodeBlock;
|
|
179
|
-
exports.Icon = index$
|
|
180
|
-
exports.Image = index$
|
|
181
|
-
exports.Link = index$
|
|
182
|
-
exports.List = index$
|
|
183
|
-
exports.ListItem = index$
|
|
184
|
-
exports.ListRoot = index$
|
|
185
|
-
exports.Listbox = index$
|
|
186
|
-
exports.ListboxEmpty = index$
|
|
187
|
-
exports.ListboxGroup = index$
|
|
188
|
-
exports.ListboxItem = index$
|
|
189
|
-
exports.ListboxRoot = index$
|
|
190
|
-
exports.Breadcrumbs = index$
|
|
191
|
-
exports.BreadcrumbsItem = index$
|
|
192
|
-
exports.BreadcrumbsRoot = index$
|
|
193
|
-
exports.BreadcrumbsSeparator = index$
|
|
194
|
-
exports.TableOfContents = index$
|
|
195
|
-
exports.TableOfContentsGroup = index$
|
|
196
|
-
exports.TableOfContentsItem = index$
|
|
197
|
-
exports.TableOfContentsRoot = index$
|
|
198
|
-
exports.Box = index$
|
|
199
|
-
exports.ScrollArea = index$
|
|
200
|
-
exports.Chip = index$
|
|
201
|
-
exports.VisuallyHidden = index$
|
|
178
|
+
exports.Icon = index$H.Icon;
|
|
179
|
+
exports.Image = index$I.Image;
|
|
180
|
+
exports.Link = index$J.Link;
|
|
181
|
+
exports.List = index$K.List;
|
|
182
|
+
exports.ListItem = index$K.ListItem;
|
|
183
|
+
exports.ListRoot = index$K.ListRoot;
|
|
184
|
+
exports.Listbox = index$L.Listbox;
|
|
185
|
+
exports.ListboxEmpty = index$L.ListboxEmpty;
|
|
186
|
+
exports.ListboxGroup = index$L.ListboxGroup;
|
|
187
|
+
exports.ListboxItem = index$L.ListboxItem;
|
|
188
|
+
exports.ListboxRoot = index$L.ListboxRoot;
|
|
189
|
+
exports.Breadcrumbs = index$M.Breadcrumbs;
|
|
190
|
+
exports.BreadcrumbsItem = index$M.BreadcrumbsItem;
|
|
191
|
+
exports.BreadcrumbsRoot = index$M.BreadcrumbsRoot;
|
|
192
|
+
exports.BreadcrumbsSeparator = index$M.BreadcrumbsSeparator;
|
|
193
|
+
exports.TableOfContents = index$N.TableOfContents;
|
|
194
|
+
exports.TableOfContentsGroup = index$N.TableOfContentsGroup;
|
|
195
|
+
exports.TableOfContentsItem = index$N.TableOfContentsItem;
|
|
196
|
+
exports.TableOfContentsRoot = index$N.TableOfContentsRoot;
|
|
197
|
+
exports.Box = index$O.Box;
|
|
198
|
+
exports.ScrollArea = index$P.ScrollArea;
|
|
199
|
+
exports.Chip = index$Q.Chip;
|
|
200
|
+
exports.VisuallyHidden = index$R.VisuallyHidden;
|
|
202
201
|
exports.Markdown = markdown.Markdown;
|
|
203
|
-
exports.Message = index$
|
|
204
|
-
exports.MessageActions = index$
|
|
205
|
-
exports.MessageAvatar = index$
|
|
206
|
-
exports.MessageContent = index$
|
|
207
|
-
exports.MessageRoot = index$
|
|
208
|
-
exports.MessageTimestamp = index$
|
|
209
|
-
exports.useMessageContext = index$
|
|
210
|
-
exports.ConversationList = index$
|
|
211
|
-
exports.ConversationListRoot = index$
|
|
212
|
-
exports.DateSeparator = index$
|
|
213
|
-
exports.TypingIndicator = index$
|
|
214
|
-
exports.useConversationList = index$
|
|
215
|
-
exports.ThinkingIndicator = index$
|
|
216
|
-
exports.ThinkingIndicatorRoot = index$
|
|
217
|
-
exports.ThinkingStep = index$
|
|
218
|
-
exports.ThinkingSteps = index$
|
|
219
|
-
exports.useThinkingIndicatorContext = index$
|
|
202
|
+
exports.Message = index$S.Message;
|
|
203
|
+
exports.MessageActions = index$S.MessageActions;
|
|
204
|
+
exports.MessageAvatar = index$S.MessageAvatar;
|
|
205
|
+
exports.MessageContent = index$S.MessageContent;
|
|
206
|
+
exports.MessageRoot = index$S.MessageRoot;
|
|
207
|
+
exports.MessageTimestamp = index$S.MessageTimestamp;
|
|
208
|
+
exports.useMessageContext = index$S.useMessageContext;
|
|
209
|
+
exports.ConversationList = index$T.ConversationList;
|
|
210
|
+
exports.ConversationListRoot = index$T.ConversationListRoot;
|
|
211
|
+
exports.DateSeparator = index$T.DateSeparator;
|
|
212
|
+
exports.TypingIndicator = index$T.TypingIndicator;
|
|
213
|
+
exports.useConversationList = index$T.useConversationList;
|
|
214
|
+
exports.ThinkingIndicator = index$U.ThinkingIndicator;
|
|
215
|
+
exports.ThinkingIndicatorRoot = index$U.ThinkingIndicatorRoot;
|
|
216
|
+
exports.ThinkingStep = index$U.ThinkingStep;
|
|
217
|
+
exports.ThinkingSteps = index$U.ThinkingSteps;
|
|
218
|
+
exports.useThinkingIndicatorContext = index$U.useThinkingIndicatorContext;
|
|
220
219
|
exports.ChartContainer = chart.ChartContainer;
|
|
221
220
|
exports.ChartLegend = chart.ChartLegend;
|
|
222
221
|
exports.ChartLegendContent = chart.ChartLegendContent;
|
|
@@ -226,20 +225,20 @@ exports.useChartConfig = chart.useChartConfig;
|
|
|
226
225
|
exports.FragmentsLogo = fragmentsLogo.FragmentsLogo;
|
|
227
226
|
exports.fragmentsLogoSvg = fragmentsLogo.fragmentsLogoSvg;
|
|
228
227
|
exports.FragmentsWordmark = fragmentsWordmark.FragmentsWordmark;
|
|
229
|
-
exports.NavigationMenu = index$
|
|
230
|
-
exports.NavigationMenuContent = index$
|
|
231
|
-
exports.NavigationMenuIndicator = index$
|
|
232
|
-
exports.NavigationMenuItem = index$
|
|
233
|
-
exports.NavigationMenuLink = index$
|
|
234
|
-
exports.NavigationMenuList = index$
|
|
235
|
-
exports.NavigationMenuMobileContent = index$
|
|
236
|
-
exports.NavigationMenuMobileSection = index$
|
|
237
|
-
exports.NavigationMenuRoot = index$
|
|
238
|
-
exports.NavigationMenuTrigger = index$
|
|
239
|
-
exports.NavigationMenuViewport = index$
|
|
240
|
-
exports.Drawer = index$
|
|
241
|
-
exports.Pagination = index$
|
|
242
|
-
exports.Command = index$
|
|
228
|
+
exports.NavigationMenu = index$V.NavigationMenu;
|
|
229
|
+
exports.NavigationMenuContent = index$V.NavigationMenuContent;
|
|
230
|
+
exports.NavigationMenuIndicator = index$V.NavigationMenuIndicator;
|
|
231
|
+
exports.NavigationMenuItem = index$V.NavigationMenuItem;
|
|
232
|
+
exports.NavigationMenuLink = index$V.NavigationMenuLink;
|
|
233
|
+
exports.NavigationMenuList = index$V.NavigationMenuList;
|
|
234
|
+
exports.NavigationMenuMobileContent = index$V.NavigationMenuMobileContent;
|
|
235
|
+
exports.NavigationMenuMobileSection = index$V.NavigationMenuMobileSection;
|
|
236
|
+
exports.NavigationMenuRoot = index$V.NavigationMenuRoot;
|
|
237
|
+
exports.NavigationMenuTrigger = index$V.NavigationMenuTrigger;
|
|
238
|
+
exports.NavigationMenuViewport = index$V.NavigationMenuViewport;
|
|
239
|
+
exports.Drawer = index$W.Drawer;
|
|
240
|
+
exports.Pagination = index$X.Pagination;
|
|
241
|
+
exports.Command = index$Y.Command;
|
|
243
242
|
exports.Editor = editor.Editor;
|
|
244
243
|
exports.EditorContentArea = editor.EditorContentArea;
|
|
245
244
|
exports.EditorRoot = editor.EditorRoot;
|
package/dist/index.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export { Skeleton, type SkeletonProps, type SkeletonTextProps, type SkeletonVari
|
|
|
27
27
|
export { Loading, LoadingRoot, LoadingInline, LoadingScreen, type LoadingProps, type LoadingSize, type LoadingVariant, type LoadingInlineProps, type LoadingScreenProps, } from "./components/Loading";
|
|
28
28
|
export { Table, type TableProps, type TableRowProps, type TableCellProps, type TableHeaderCellProps, type TableCaptionProps, } from "./components/Table";
|
|
29
29
|
export { DataTable, createColumns, type DataTableProps, type DataTableColumn, type ColumnDef, type ColumnAlign, type DataTableDensity, type SortingState, type RowSelectionState, type ExpandedState, } from "./components/DataTable";
|
|
30
|
-
export { DataTableVirtual, useTableVirtualizer, type DataTableVirtualProps, type UseTableVirtualizerOptions, type UseTableVirtualizerResult, type VirtualTableRow, } from "./components/DataTable/DataTable.virtual";
|
|
31
30
|
export { EmptyState, EmptyStateRoot, EmptyStateIcon, EmptyStateTitle, EmptyStateDescription, EmptyStateActions, type EmptyStateProps, type EmptyStateIconProps, type EmptyStateTitleProps, type EmptyStateDescriptionProps, type EmptyStateActionsProps, } from "./components/EmptyState";
|
|
32
31
|
export { Toast, ToastProvider, useToast, type ToastProps, type ToastProviderProps, type ToastData, type ToastVariant, type ToastPosition, } from "./components/Toast";
|
|
33
32
|
export { Field, type FieldProps, type FieldLabelProps, type FieldControlProps, type FieldDescriptionProps, type FieldErrorProps, type FieldValidityProps, } from "./components/Field";
|
|
@@ -39,6 +38,7 @@ export { Theme, ThemeProvider, ThemeToggle, useTheme, configureTheme, type Theme
|
|
|
39
38
|
export { Header, type HeaderProps, type HeaderBrandProps, type HeaderNavProps, type HeaderNavItemProps, type HeaderSearchProps, type HeaderActionsProps, type HeaderTriggerProps, type HeaderMobileNavProps, } from "./components/Header";
|
|
40
39
|
export { AppShell, type AppShellProps, type AppShellLayout, type AppShellSlotVariant, type AppShellHeaderProps, type AppShellSidebarProps, type AppShellMainProps, type AppShellAsideProps, } from "./components/AppShell";
|
|
41
40
|
export { Stack, type StackProps, type ResponsiveDirection, type ResponsiveGap, } from "./components/Stack";
|
|
41
|
+
export { Main, type MainProps, type MainRegionProps, type MainMeasure } from "./components/Main";
|
|
42
42
|
export { Text, type TextProps } from "./components/Text";
|
|
43
43
|
export { ButtonGroup, type ButtonGroupProps } from "./components/ButtonGroup";
|
|
44
44
|
export { ToggleGroup, ToggleGroupRoot, ToggleGroupItem, type ToggleGroupProps, type ToggleGroupItemProps, } from "./components/ToggleGroup";
|