@usefragments/ui 1.1.1 → 1.2.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/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/index.cjs +87 -85
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/fragments.json +1 -1
- package/package.json +7 -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/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 +3 -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
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
const wrapper = "
|
|
2
|
-
const table = "
|
|
3
|
-
const caption = "
|
|
4
|
-
const captionHidden = "
|
|
5
|
-
const sm = "
|
|
6
|
-
const th = "
|
|
7
|
-
const td = "
|
|
8
|
-
const md = "
|
|
9
|
-
const thead = "
|
|
10
|
-
const headerRow = "
|
|
11
|
-
const headerContent = "
|
|
12
|
-
const thSortable = "
|
|
13
|
-
const sortButton = "
|
|
14
|
-
const sortIndicator = "
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
1
|
+
const wrapper = "_wrapper_1nxxb_1";
|
|
2
|
+
const table = "_table_1nxxb_11";
|
|
3
|
+
const caption = "_caption_1nxxb_19";
|
|
4
|
+
const captionHidden = "_captionHidden_1nxxb_28";
|
|
5
|
+
const sm = "_sm_1nxxb_40";
|
|
6
|
+
const th = "_th_1nxxb_40";
|
|
7
|
+
const td = "_td_1nxxb_41";
|
|
8
|
+
const md = "_md_1nxxb_46";
|
|
9
|
+
const thead = "_thead_1nxxb_52";
|
|
10
|
+
const headerRow = "_headerRow_1nxxb_58";
|
|
11
|
+
const headerContent = "_headerContent_1nxxb_78";
|
|
12
|
+
const thSortable = "_thSortable_1nxxb_84";
|
|
13
|
+
const sortButton = "_sortButton_1nxxb_88";
|
|
14
|
+
const sortIndicator = "_sortIndicator_1nxxb_127";
|
|
15
|
+
const tbody = "_tbody_1nxxb_154";
|
|
16
|
+
const row = "_row_1nxxb_159";
|
|
17
|
+
const clickable = "_clickable_1nxxb_170";
|
|
18
|
+
const selected = "_selected_1nxxb_184";
|
|
19
|
+
const striped = "_striped_1nxxb_198";
|
|
20
|
+
const bordered = "_bordered_1nxxb_214";
|
|
21
|
+
const fixedLayout = "_fixedLayout_1nxxb_221";
|
|
22
|
+
const densityCondensed = "_densityCondensed_1nxxb_225";
|
|
23
|
+
const densityRegular = "_densityRegular_1nxxb_229";
|
|
24
|
+
const densityRelaxed = "_densityRelaxed_1nxxb_233";
|
|
25
|
+
const truncate = "_truncate_1nxxb_257";
|
|
26
|
+
const skeletonBar = "_skeletonBar_1nxxb_263";
|
|
27
|
+
const dataTableShimmer = "_dataTableShimmer_1nxxb_1";
|
|
28
|
+
const checkboxCell = "_checkboxCell_1nxxb_288";
|
|
29
|
+
const expandCell = "_expandCell_1nxxb_294";
|
|
30
|
+
const expandButton = "_expandButton_1nxxb_300";
|
|
31
|
+
const expandIcon = "_expandIcon_1nxxb_333";
|
|
32
|
+
const expandIconOpen = "_expandIconOpen_1nxxb_339";
|
|
33
|
+
const subRow = "_subRow_1nxxb_343";
|
|
34
|
+
const emptyState = "_emptyState_1nxxb_350";
|
|
35
|
+
const emptyMessage = "_emptyMessage_1nxxb_357";
|
|
35
36
|
const styles = {
|
|
36
37
|
wrapper,
|
|
37
38
|
table,
|
|
@@ -47,6 +48,7 @@ const styles = {
|
|
|
47
48
|
thSortable,
|
|
48
49
|
sortButton,
|
|
49
50
|
sortIndicator,
|
|
51
|
+
tbody,
|
|
50
52
|
row,
|
|
51
53
|
clickable,
|
|
52
54
|
selected,
|
|
@@ -98,6 +100,7 @@ export {
|
|
|
98
100
|
striped,
|
|
99
101
|
subRow,
|
|
100
102
|
table,
|
|
103
|
+
tbody,
|
|
101
104
|
td,
|
|
102
105
|
th,
|
|
103
106
|
thSortable,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "_root_1wv9j_1";
|
|
4
|
+
const full = "_full_1wv9j_10";
|
|
5
|
+
const narrow = "_narrow_1wv9j_14";
|
|
6
|
+
const header = "_header_1wv9j_18";
|
|
7
|
+
const description = "_description_1wv9j_19";
|
|
8
|
+
const content = "_content_1wv9j_20";
|
|
9
|
+
const footer = "_footer_1wv9j_21";
|
|
10
|
+
const styles = {
|
|
11
|
+
root,
|
|
12
|
+
full,
|
|
13
|
+
narrow,
|
|
14
|
+
header,
|
|
15
|
+
description,
|
|
16
|
+
content,
|
|
17
|
+
footer
|
|
18
|
+
};
|
|
19
|
+
exports.content = content;
|
|
20
|
+
exports.default = styles;
|
|
21
|
+
exports.description = description;
|
|
22
|
+
exports.footer = footer;
|
|
23
|
+
exports.full = full;
|
|
24
|
+
exports.header = header;
|
|
25
|
+
exports.narrow = narrow;
|
|
26
|
+
exports.root = root;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const root = "_root_1wv9j_1";
|
|
2
|
+
const full = "_full_1wv9j_10";
|
|
3
|
+
const narrow = "_narrow_1wv9j_14";
|
|
4
|
+
const header = "_header_1wv9j_18";
|
|
5
|
+
const description = "_description_1wv9j_19";
|
|
6
|
+
const content = "_content_1wv9j_20";
|
|
7
|
+
const footer = "_footer_1wv9j_21";
|
|
8
|
+
const styles = {
|
|
9
|
+
root,
|
|
10
|
+
full,
|
|
11
|
+
narrow,
|
|
12
|
+
header,
|
|
13
|
+
description,
|
|
14
|
+
content,
|
|
15
|
+
footer
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
content,
|
|
19
|
+
styles as default,
|
|
20
|
+
description,
|
|
21
|
+
footer,
|
|
22
|
+
full,
|
|
23
|
+
header,
|
|
24
|
+
narrow,
|
|
25
|
+
root
|
|
26
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const index = require("../Stack/index.cjs");
|
|
6
|
+
const Main_module = require("./Main.module.scss.cjs");
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
24
|
+
function joinClasses(...classes) {
|
|
25
|
+
return classes.filter(Boolean).join(" ");
|
|
26
|
+
}
|
|
27
|
+
const MainRoot = React__namespace.forwardRef(function MainRoot2({ as = "main", children, className, measure = "full", ...htmlProps }, ref) {
|
|
28
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
29
|
+
index.Stack,
|
|
30
|
+
{
|
|
31
|
+
...htmlProps,
|
|
32
|
+
ref,
|
|
33
|
+
as,
|
|
34
|
+
direction: "column",
|
|
35
|
+
gap: "lg",
|
|
36
|
+
className: joinClasses(
|
|
37
|
+
Main_module.default.root,
|
|
38
|
+
measure === "narrow" ? Main_module.default.narrow : Main_module.default.full,
|
|
39
|
+
className
|
|
40
|
+
),
|
|
41
|
+
"data-main-measure": measure,
|
|
42
|
+
children
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
function MainHeader({
|
|
47
|
+
as = "header",
|
|
48
|
+
direction = "column",
|
|
49
|
+
gap = "sm",
|
|
50
|
+
className,
|
|
51
|
+
...props
|
|
52
|
+
}) {
|
|
53
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
54
|
+
index.Stack,
|
|
55
|
+
{
|
|
56
|
+
...props,
|
|
57
|
+
as,
|
|
58
|
+
direction,
|
|
59
|
+
gap,
|
|
60
|
+
className: joinClasses(Main_module.default.header, className)
|
|
61
|
+
}
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
function MainDescription({
|
|
65
|
+
as = "div",
|
|
66
|
+
direction = "column",
|
|
67
|
+
gap = "xs",
|
|
68
|
+
className,
|
|
69
|
+
...props
|
|
70
|
+
}) {
|
|
71
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
72
|
+
index.Stack,
|
|
73
|
+
{
|
|
74
|
+
...props,
|
|
75
|
+
as,
|
|
76
|
+
direction,
|
|
77
|
+
gap,
|
|
78
|
+
className: joinClasses(Main_module.default.description, className)
|
|
79
|
+
}
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
function MainContent({
|
|
83
|
+
as = "div",
|
|
84
|
+
direction = "column",
|
|
85
|
+
gap = "lg",
|
|
86
|
+
className,
|
|
87
|
+
...props
|
|
88
|
+
}) {
|
|
89
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
90
|
+
index.Stack,
|
|
91
|
+
{
|
|
92
|
+
...props,
|
|
93
|
+
as,
|
|
94
|
+
direction,
|
|
95
|
+
gap,
|
|
96
|
+
className: joinClasses(Main_module.default.content, className)
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
function MainFooter({
|
|
101
|
+
as = "footer",
|
|
102
|
+
direction = "row",
|
|
103
|
+
gap = "sm",
|
|
104
|
+
justify = "end",
|
|
105
|
+
wrap = true,
|
|
106
|
+
className,
|
|
107
|
+
...props
|
|
108
|
+
}) {
|
|
109
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
110
|
+
index.Stack,
|
|
111
|
+
{
|
|
112
|
+
...props,
|
|
113
|
+
as,
|
|
114
|
+
direction,
|
|
115
|
+
gap,
|
|
116
|
+
justify,
|
|
117
|
+
wrap,
|
|
118
|
+
className: joinClasses(Main_module.default.footer, className)
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
const Main = Object.assign(MainRoot, {
|
|
123
|
+
Header: MainHeader,
|
|
124
|
+
Description: MainDescription,
|
|
125
|
+
Content: MainContent,
|
|
126
|
+
Footer: MainFooter
|
|
127
|
+
});
|
|
128
|
+
exports.Main = Main;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type StackProps } from "../Stack";
|
|
3
|
+
export type MainMeasure = "full" | "narrow";
|
|
4
|
+
export interface MainProps extends Omit<StackProps, "as" | "children" | "direction" | "gap"> {
|
|
5
|
+
as?: StackProps["as"];
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** Maximum readable width for the page content. */
|
|
8
|
+
measure?: MainMeasure;
|
|
9
|
+
}
|
|
10
|
+
export type MainRegionProps = StackProps;
|
|
11
|
+
declare function MainHeader({ as, direction, gap, className, ...props }: MainRegionProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function MainDescription({ as, direction, gap, className, ...props }: MainRegionProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function MainContent({ as, direction, gap, className, ...props }: MainRegionProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function MainFooter({ as, direction, gap, justify, wrap, className, ...props }: MainRegionProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Main: React.ForwardRefExoticComponent<MainProps & React.RefAttributes<HTMLElement>> & {
|
|
16
|
+
Header: typeof MainHeader;
|
|
17
|
+
Description: typeof MainDescription;
|
|
18
|
+
Content: typeof MainContent;
|
|
19
|
+
Footer: typeof MainFooter;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Main/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE5C,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,KAAK,CAAC;IAC1F,EAAE,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mDAAmD;IACnD,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC;AA6BzC,iBAAS,UAAU,CAAC,EAClB,EAAa,EACb,SAAoB,EACpB,GAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,2CAUjB;AAED,iBAAS,eAAe,CAAC,EACvB,EAAU,EACV,SAAoB,EACpB,GAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,2CAUjB;AAED,iBAAS,WAAW,CAAC,EACnB,EAAU,EACV,SAAoB,EACpB,GAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,2CAUjB;AAED,iBAAS,UAAU,CAAC,EAClB,EAAa,EACb,SAAiB,EACjB,GAAU,EACV,OAAe,EACf,IAAW,EACX,SAAS,EACT,GAAG,KAAK,EACT,EAAE,eAAe,2CAYjB;AAED,eAAO,MAAM,IAAI;;;;;CAKf,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Stack } from "../Stack/index.js";
|
|
4
|
+
import styles from "./Main.module.scss.js";
|
|
5
|
+
function joinClasses(...classes) {
|
|
6
|
+
return classes.filter(Boolean).join(" ");
|
|
7
|
+
}
|
|
8
|
+
const MainRoot = React.forwardRef(function MainRoot2({ as = "main", children, className, measure = "full", ...htmlProps }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
Stack,
|
|
11
|
+
{
|
|
12
|
+
...htmlProps,
|
|
13
|
+
ref,
|
|
14
|
+
as,
|
|
15
|
+
direction: "column",
|
|
16
|
+
gap: "lg",
|
|
17
|
+
className: joinClasses(
|
|
18
|
+
styles.root,
|
|
19
|
+
measure === "narrow" ? styles.narrow : styles.full,
|
|
20
|
+
className
|
|
21
|
+
),
|
|
22
|
+
"data-main-measure": measure,
|
|
23
|
+
children
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
function MainHeader({
|
|
28
|
+
as = "header",
|
|
29
|
+
direction = "column",
|
|
30
|
+
gap = "sm",
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
Stack,
|
|
36
|
+
{
|
|
37
|
+
...props,
|
|
38
|
+
as,
|
|
39
|
+
direction,
|
|
40
|
+
gap,
|
|
41
|
+
className: joinClasses(styles.header, className)
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
function MainDescription({
|
|
46
|
+
as = "div",
|
|
47
|
+
direction = "column",
|
|
48
|
+
gap = "xs",
|
|
49
|
+
className,
|
|
50
|
+
...props
|
|
51
|
+
}) {
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
Stack,
|
|
54
|
+
{
|
|
55
|
+
...props,
|
|
56
|
+
as,
|
|
57
|
+
direction,
|
|
58
|
+
gap,
|
|
59
|
+
className: joinClasses(styles.description, className)
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function MainContent({
|
|
64
|
+
as = "div",
|
|
65
|
+
direction = "column",
|
|
66
|
+
gap = "lg",
|
|
67
|
+
className,
|
|
68
|
+
...props
|
|
69
|
+
}) {
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
71
|
+
Stack,
|
|
72
|
+
{
|
|
73
|
+
...props,
|
|
74
|
+
as,
|
|
75
|
+
direction,
|
|
76
|
+
gap,
|
|
77
|
+
className: joinClasses(styles.content, className)
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function MainFooter({
|
|
82
|
+
as = "footer",
|
|
83
|
+
direction = "row",
|
|
84
|
+
gap = "sm",
|
|
85
|
+
justify = "end",
|
|
86
|
+
wrap = true,
|
|
87
|
+
className,
|
|
88
|
+
...props
|
|
89
|
+
}) {
|
|
90
|
+
return /* @__PURE__ */ jsx(
|
|
91
|
+
Stack,
|
|
92
|
+
{
|
|
93
|
+
...props,
|
|
94
|
+
as,
|
|
95
|
+
direction,
|
|
96
|
+
gap,
|
|
97
|
+
justify,
|
|
98
|
+
wrap,
|
|
99
|
+
className: joinClasses(styles.footer, className)
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
const Main = Object.assign(MainRoot, {
|
|
104
|
+
Header: MainHeader,
|
|
105
|
+
Description: MainDescription,
|
|
106
|
+
Content: MainContent,
|
|
107
|
+
Footer: MainFooter
|
|
108
|
+
});
|
|
109
|
+
export {
|
|
110
|
+
Main
|
|
111
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const wrapper = "
|
|
4
|
-
const table = "
|
|
5
|
-
const caption = "
|
|
6
|
-
const captionHidden = "
|
|
7
|
-
const sm = "
|
|
8
|
-
const th = "
|
|
9
|
-
const td = "
|
|
10
|
-
const md = "
|
|
11
|
-
const compact = "
|
|
12
|
-
const tabular = "
|
|
13
|
-
const thead = "
|
|
14
|
-
const headerContent = "
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const bordered = "
|
|
3
|
+
const wrapper = "_wrapper_1talf_1";
|
|
4
|
+
const table = "_table_1talf_6";
|
|
5
|
+
const caption = "_caption_1talf_14";
|
|
6
|
+
const captionHidden = "_captionHidden_1talf_23";
|
|
7
|
+
const sm = "_sm_1talf_35";
|
|
8
|
+
const th = "_th_1talf_35";
|
|
9
|
+
const td = "_td_1talf_36";
|
|
10
|
+
const md = "_md_1talf_41";
|
|
11
|
+
const compact = "_compact_1talf_47";
|
|
12
|
+
const tabular = "_tabular_1talf_62";
|
|
13
|
+
const thead = "_thead_1talf_66";
|
|
14
|
+
const headerContent = "_headerContent_1talf_89";
|
|
15
|
+
const tbody = "_tbody_1talf_95";
|
|
16
|
+
const row = "_row_1talf_100";
|
|
17
|
+
const selected = "_selected_1talf_117";
|
|
18
|
+
const tfoot = "_tfoot_1talf_137";
|
|
19
|
+
const striped = "_striped_1talf_145";
|
|
20
|
+
const bordered = "_bordered_1talf_153";
|
|
21
21
|
const styles = {
|
|
22
22
|
wrapper,
|
|
23
23
|
table,
|
|
@@ -31,11 +31,11 @@ const styles = {
|
|
|
31
31
|
tabular,
|
|
32
32
|
thead,
|
|
33
33
|
headerContent,
|
|
34
|
+
tbody,
|
|
34
35
|
row,
|
|
35
36
|
selected,
|
|
36
37
|
tfoot,
|
|
37
38
|
striped,
|
|
38
|
-
tbody,
|
|
39
39
|
bordered
|
|
40
40
|
};
|
|
41
41
|
exports.bordered = bordered;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const wrapper = "
|
|
2
|
-
const table = "
|
|
3
|
-
const caption = "
|
|
4
|
-
const captionHidden = "
|
|
5
|
-
const sm = "
|
|
6
|
-
const th = "
|
|
7
|
-
const td = "
|
|
8
|
-
const md = "
|
|
9
|
-
const compact = "
|
|
10
|
-
const tabular = "
|
|
11
|
-
const thead = "
|
|
12
|
-
const headerContent = "
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const bordered = "
|
|
1
|
+
const wrapper = "_wrapper_1talf_1";
|
|
2
|
+
const table = "_table_1talf_6";
|
|
3
|
+
const caption = "_caption_1talf_14";
|
|
4
|
+
const captionHidden = "_captionHidden_1talf_23";
|
|
5
|
+
const sm = "_sm_1talf_35";
|
|
6
|
+
const th = "_th_1talf_35";
|
|
7
|
+
const td = "_td_1talf_36";
|
|
8
|
+
const md = "_md_1talf_41";
|
|
9
|
+
const compact = "_compact_1talf_47";
|
|
10
|
+
const tabular = "_tabular_1talf_62";
|
|
11
|
+
const thead = "_thead_1talf_66";
|
|
12
|
+
const headerContent = "_headerContent_1talf_89";
|
|
13
|
+
const tbody = "_tbody_1talf_95";
|
|
14
|
+
const row = "_row_1talf_100";
|
|
15
|
+
const selected = "_selected_1talf_117";
|
|
16
|
+
const tfoot = "_tfoot_1talf_137";
|
|
17
|
+
const striped = "_striped_1talf_145";
|
|
18
|
+
const bordered = "_bordered_1talf_153";
|
|
19
19
|
const styles = {
|
|
20
20
|
wrapper,
|
|
21
21
|
table,
|
|
@@ -29,11 +29,11 @@ const styles = {
|
|
|
29
29
|
tabular,
|
|
30
30
|
thead,
|
|
31
31
|
headerContent,
|
|
32
|
+
tbody,
|
|
32
33
|
row,
|
|
33
34
|
selected,
|
|
34
35
|
tfoot,
|
|
35
36
|
striped,
|
|
36
|
-
tbody,
|
|
37
37
|
bordered
|
|
38
38
|
};
|
|
39
39
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const title = "
|
|
5
|
-
const list = "
|
|
6
|
-
const item = "
|
|
7
|
-
const groupHeaderRow = "
|
|
8
|
-
const link = "
|
|
9
|
-
const linkLabel = "
|
|
10
|
-
const leading = "
|
|
11
|
-
const trailing = "
|
|
12
|
-
const active = "
|
|
13
|
-
const groupHeader = "
|
|
14
|
-
const groupHeaderInteractive = "
|
|
15
|
-
const groupHeaderActive = "
|
|
16
|
-
const groupChevron = "
|
|
17
|
-
const groupLabel = "
|
|
3
|
+
const root = "_root_1bf9l_1";
|
|
4
|
+
const title = "_title_1bf9l_13";
|
|
5
|
+
const list = "_list_1bf9l_18";
|
|
6
|
+
const item = "_item_1bf9l_28";
|
|
7
|
+
const groupHeaderRow = "_groupHeaderRow_1bf9l_29";
|
|
8
|
+
const link = "_link_1bf9l_122";
|
|
9
|
+
const linkLabel = "_linkLabel_1bf9l_149";
|
|
10
|
+
const leading = "_leading_1bf9l_157";
|
|
11
|
+
const trailing = "_trailing_1bf9l_158";
|
|
12
|
+
const active = "_active_1bf9l_170";
|
|
13
|
+
const groupHeader = "_groupHeader_1bf9l_29";
|
|
14
|
+
const groupHeaderInteractive = "_groupHeaderInteractive_1bf9l_195";
|
|
15
|
+
const groupHeaderActive = "_groupHeaderActive_1bf9l_208";
|
|
16
|
+
const groupChevron = "_groupChevron_1bf9l_212";
|
|
17
|
+
const groupLabel = "_groupLabel_1bf9l_230";
|
|
18
18
|
const styles = {
|
|
19
19
|
root,
|
|
20
20
|
title,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const title = "
|
|
3
|
-
const list = "
|
|
4
|
-
const item = "
|
|
5
|
-
const groupHeaderRow = "
|
|
6
|
-
const link = "
|
|
7
|
-
const linkLabel = "
|
|
8
|
-
const leading = "
|
|
9
|
-
const trailing = "
|
|
10
|
-
const active = "
|
|
11
|
-
const groupHeader = "
|
|
12
|
-
const groupHeaderInteractive = "
|
|
13
|
-
const groupHeaderActive = "
|
|
14
|
-
const groupChevron = "
|
|
15
|
-
const groupLabel = "
|
|
1
|
+
const root = "_root_1bf9l_1";
|
|
2
|
+
const title = "_title_1bf9l_13";
|
|
3
|
+
const list = "_list_1bf9l_18";
|
|
4
|
+
const item = "_item_1bf9l_28";
|
|
5
|
+
const groupHeaderRow = "_groupHeaderRow_1bf9l_29";
|
|
6
|
+
const link = "_link_1bf9l_122";
|
|
7
|
+
const linkLabel = "_linkLabel_1bf9l_149";
|
|
8
|
+
const leading = "_leading_1bf9l_157";
|
|
9
|
+
const trailing = "_trailing_1bf9l_158";
|
|
10
|
+
const active = "_active_1bf9l_170";
|
|
11
|
+
const groupHeader = "_groupHeader_1bf9l_29";
|
|
12
|
+
const groupHeaderInteractive = "_groupHeaderInteractive_1bf9l_195";
|
|
13
|
+
const groupHeaderActive = "_groupHeaderActive_1bf9l_208";
|
|
14
|
+
const groupChevron = "_groupChevron_1bf9l_212";
|
|
15
|
+
const groupLabel = "_groupLabel_1bf9l_230";
|
|
16
16
|
const styles = {
|
|
17
17
|
root,
|
|
18
18
|
title,
|