@ostack.tech/ui-exhibit 0.10.3 → 0.10.5
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/ostack-ui-exhibit.js +30 -4
- package/dist/ostack-ui-exhibit.js.map +1 -1
- package/dist/types/sections/FieldGroupSection.d.ts +1 -0
- package/dist/webapp/assets/{index-RzHSbowq.js → index-DHH98pyU.js} +20 -20
- package/dist/webapp/assets/{index-B9c8tQNy.css → index-DzRFJHN8.css} +1 -1
- package/dist/webapp/index.html +2 -2
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
|
-
import { useCssVars, Stack, Heading, Link, VisuallyHidden, AlertDialog, AlertDialogTrigger, Button, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogBody, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, Alert, AlertTitle, ButtonGroup, IconButton, Calendar, Field, Label, CheckboxGroup, Checkbox, Feedback, HelperText, Code, useSpacing, Collapsible, CollapsibleTrigger, CollapsibleContent, useKeyboardShortcut, Keybinds, CommandMenuDialog, CommandMenu, CommandMenuGroup, CommandMenuItem, DataTable, DataTableFilter, DataTableContent, DataTableRowsPerPage, DataTablePagination, DateInput, DateRangeInput, Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogBody, DialogDescription, Input, DialogFooter, DialogClose, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuCheckboxItem, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, Keyboard, Mark, MenuList, MenuListGroup, MenuListItem, NumericInput, ControlAddon, Output, Popover, PopoverTrigger, PopoverContent, TextArea, RadioGroup, Radio, Select, Option, Spinner, Table, TableHead, TableColumn, TableBody, TableRow, TableCell, TableFoot, Tabs, TabList, Tab, TabContent, Tag, useToastManager, Tooltip, Root, enGB, Container } from "@ostack.tech/ui";
|
|
2
|
+
import { useCssVars, Stack, Heading, Link, VisuallyHidden, AlertDialog, AlertDialogTrigger, Button, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogBody, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, Alert, AlertTitle, ButtonGroup, IconButton, Calendar, Field, Label, CheckboxGroup, Checkbox, Feedback, HelperText, Code, useSpacing, Collapsible, CollapsibleTrigger, CollapsibleContent, useKeyboardShortcut, Keybinds, CommandMenuDialog, CommandMenu, CommandMenuGroup, CommandMenuItem, DataTable, DataTableFilter, DataTableContent, DataTableRowsPerPage, DataTablePagination, DateInput, DateRangeInput, Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogBody, DialogDescription, Input, DialogFooter, DialogClose, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuCheckboxItem, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, FieldGroup, FieldGroupHeader, FieldGroupTitle, FieldGroupBody, Keyboard, Mark, MenuList, MenuListGroup, MenuListItem, NumericInput, ControlAddon, Output, Popover, PopoverTrigger, PopoverContent, TextArea, RadioGroup, Radio, Select, Option, Spinner, Table, TableHead, TableColumn, TableBody, TableRow, TableCell, TableFoot, Tabs, TabList, Tab, TabContent, Tag, useToastManager, Tooltip, Root, enGB, Container } from "@ostack.tech/ui";
|
|
3
3
|
import { createContext, useContext, Fragment, useState } from "react";
|
|
4
4
|
import { faFolderOpen, faSave, faTrashCan, faBolt, faCaretUp, faCaretDown, faGear, faWifi, faNetworkWired, faDisplay, faVolumeHigh, faKeyboard, faPrint, faClock, faUser, faCircleXmark, faSeedling, faEye, faPencil, faComment, faStar, faBookmark } from "@fortawesome/free-solid-svg-icons";
|
|
5
5
|
const ExhibitContext = createContext(null);
|
|
@@ -38,8 +38,9 @@ function ExhibitSection({
|
|
|
38
38
|
children
|
|
39
39
|
}) {
|
|
40
40
|
const { cssVar } = useCssVars();
|
|
41
|
-
const docsUrl = useDocsUrl();
|
|
42
41
|
const headingId = title.toLowerCase().replace(/[^a-z0-9]/g, "-");
|
|
42
|
+
const docsUrl = new URL(useDocsUrl());
|
|
43
|
+
docsUrl.searchParams.set("path", `/docs/${docsPage}--docs`);
|
|
43
44
|
return /* @__PURE__ */ jsx(Stack, { asChild: true, children: /* @__PURE__ */ jsxs("section", { className: "exhibit-section", "aria-labelledby": headingId, children: [
|
|
44
45
|
/* @__PURE__ */ jsx(Stack, { asChild: true, direction: "row", gap: 4, alignItems: "baseline", children: /* @__PURE__ */ jsxs("header", { children: [
|
|
45
46
|
/* @__PURE__ */ jsx(Heading, { id: headingId, children: /* @__PURE__ */ jsx(
|
|
@@ -55,7 +56,7 @@ function ExhibitSection({
|
|
|
55
56
|
Link,
|
|
56
57
|
{
|
|
57
58
|
className: "exhibit-section-docs-link",
|
|
58
|
-
href:
|
|
59
|
+
href: docsUrl.toString(),
|
|
59
60
|
external: true,
|
|
60
61
|
children: [
|
|
61
62
|
"View docs",
|
|
@@ -560,7 +561,7 @@ function DataTableSection() {
|
|
|
560
561
|
ExhibitSection,
|
|
561
562
|
{
|
|
562
563
|
title: "Data table",
|
|
563
|
-
docsPage: "ostack-ui-data-
|
|
564
|
+
docsPage: "ostack-ui-data-display-data-table",
|
|
564
565
|
children: /* @__PURE__ */ jsx(
|
|
565
566
|
ExhibitGrid,
|
|
566
567
|
{
|
|
@@ -805,6 +806,30 @@ function DropdownMenuSection() {
|
|
|
805
806
|
}
|
|
806
807
|
);
|
|
807
808
|
}
|
|
809
|
+
function FieldGroupSection() {
|
|
810
|
+
return /* @__PURE__ */ jsx(ExhibitSection, { title: "Field group", docsPage: "ostack-ui-forms-field-group", children: /* @__PURE__ */ jsx(
|
|
811
|
+
ExhibitGrid,
|
|
812
|
+
{
|
|
813
|
+
cols: {
|
|
814
|
+
Basic: "basic",
|
|
815
|
+
Code: "code"
|
|
816
|
+
},
|
|
817
|
+
renderItem: ({ col }) => /* @__PURE__ */ jsxs(FieldGroup, { children: [
|
|
818
|
+
/* @__PURE__ */ jsx(FieldGroupHeader, { code: col === "code" ? "1" : void 0, children: /* @__PURE__ */ jsx(FieldGroupTitle, { children: "Identification" }) }),
|
|
819
|
+
/* @__PURE__ */ jsx(FieldGroupBody, { children: /* @__PURE__ */ jsxs(Stack, { gap: 3, children: [
|
|
820
|
+
/* @__PURE__ */ jsxs(Field, { children: [
|
|
821
|
+
/* @__PURE__ */ jsx(Label, { children: "Full name" }),
|
|
822
|
+
/* @__PURE__ */ jsx(Input, { code: col === "code" ? "1.1" : void 0 })
|
|
823
|
+
] }),
|
|
824
|
+
/* @__PURE__ */ jsxs(Field, { children: [
|
|
825
|
+
/* @__PURE__ */ jsx(Label, { children: "Passport number" }),
|
|
826
|
+
/* @__PURE__ */ jsx(Input, { code: col === "code" ? "1.2" : void 0 })
|
|
827
|
+
] })
|
|
828
|
+
] }) })
|
|
829
|
+
] })
|
|
830
|
+
}
|
|
831
|
+
) });
|
|
832
|
+
}
|
|
808
833
|
function IconButtonSection() {
|
|
809
834
|
return /* @__PURE__ */ jsx(ExhibitSection, { title: "Icon button", docsPage: "ostack-ui-forms-icon-button", children: /* @__PURE__ */ jsx(
|
|
810
835
|
ExhibitGrid,
|
|
@@ -1439,6 +1464,7 @@ function ExhibitApp({
|
|
|
1439
1464
|
/* @__PURE__ */ jsx(DateRangeInputSection, {}),
|
|
1440
1465
|
/* @__PURE__ */ jsx(DialogSection, {}),
|
|
1441
1466
|
/* @__PURE__ */ jsx(DropdownMenuSection, {}),
|
|
1467
|
+
/* @__PURE__ */ jsx(FieldGroupSection, {}),
|
|
1442
1468
|
/* @__PURE__ */ jsx(IconButtonSection, {}),
|
|
1443
1469
|
/* @__PURE__ */ jsx(InputSection, {}),
|
|
1444
1470
|
/* @__PURE__ */ jsx(LinkSection, {}),
|