@ostack.tech/ui-exhibit 0.10.1 → 0.10.3
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.css +1 -1
- package/dist/ostack-ui-exhibit.js +6 -6
- package/dist/ostack-ui-exhibit.js.map +1 -1
- package/dist/types/ExhibitContext.d.ts +1 -2
- package/dist/webapp/assets/{index-BKYn_yyA.css → index-B9c8tQNy.css} +1 -1
- package/dist/webapp/assets/{index-DlK2khbd.js → index-RzHSbowq.js} +20 -20
- package/dist/webapp/index.html +2 -2
- package/package.json +2 -2
- package/scss/_App.scss +1 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
|
|
2
|
-
import { 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,
|
|
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";
|
|
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
|
-
const DEV_DOCS_URL = "http://localhost:6006/";
|
|
6
5
|
const ExhibitContext = createContext(null);
|
|
7
6
|
function useDocsUrl() {
|
|
8
|
-
return useContext(ExhibitContext)
|
|
7
|
+
return useContext(ExhibitContext).docsUrl;
|
|
9
8
|
}
|
|
10
9
|
function ExhibitGrid({
|
|
11
10
|
rows,
|
|
@@ -38,6 +37,7 @@ function ExhibitSection({
|
|
|
38
37
|
docsPage,
|
|
39
38
|
children
|
|
40
39
|
}) {
|
|
40
|
+
const { cssVar } = useCssVars();
|
|
41
41
|
const docsUrl = useDocsUrl();
|
|
42
42
|
const headingId = title.toLowerCase().replace(/[^a-z0-9]/g, "-");
|
|
43
43
|
return /* @__PURE__ */ jsx(Stack, { asChild: true, children: /* @__PURE__ */ jsxs("section", { className: "exhibit-section", "aria-labelledby": headingId, children: [
|
|
@@ -47,7 +47,7 @@ function ExhibitSection({
|
|
|
47
47
|
{
|
|
48
48
|
href: `#${headingId}`,
|
|
49
49
|
color: "neutral",
|
|
50
|
-
style: { color: "
|
|
50
|
+
style: { color: cssVar("neutral-a12") },
|
|
51
51
|
children: title
|
|
52
52
|
}
|
|
53
53
|
) }),
|
|
@@ -1410,9 +1410,9 @@ function ToastSection() {
|
|
|
1410
1410
|
function TooltipSection() {
|
|
1411
1411
|
return /* @__PURE__ */ jsx(ExhibitSection, { title: "Tooltip", docsPage: "ostack-ui-overlay-tooltip", children: /* @__PURE__ */ jsx(Tooltip, { content: "Press to reload all content", children: /* @__PURE__ */ jsx(Button, { children: "Refresh" }) }) });
|
|
1412
1412
|
}
|
|
1413
|
-
const
|
|
1413
|
+
const DEFAULT_DOCS_URL = process.env.NODE_ENV === "production" ? "https://ui.ostack.tech/" : "http://localhost:6006/";
|
|
1414
1414
|
function ExhibitApp({
|
|
1415
|
-
docsUrl =
|
|
1415
|
+
docsUrl = DEFAULT_DOCS_URL,
|
|
1416
1416
|
title = document.title,
|
|
1417
1417
|
prefix,
|
|
1418
1418
|
actions
|