@stealthscale/component-navigation 0.3.0 → 0.3.2
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/README.md +3 -1
- package/dist/cyclonedx/bom.json +1 -1
- package/dist/index.js +1 -2304
- package/dist/pages/breadcrumb/breadcrumb.js +274 -0
- package/dist/pages/breadcrumb/breadcrumb.props.js +3 -0
- package/dist/pages/link/link.js +151 -0
- package/dist/pages/link/link.props.js +3 -0
- package/dist/pages/nav-list/nav-list.js +698 -0
- package/dist/pages/nav-list/nav-list.props.js +3 -0
- package/dist/pages/navigation-menu/navigation-menu.js +789 -0
- package/dist/pages/navigation-menu/navigation-menu.props.js +3 -0
- package/dist/pages/pages.json +73 -0
- package/dist/pages/pagination/pagination.js +859 -0
- package/dist/pages/pagination/pagination.props.js +3 -0
- package/dist/pages/toc/toc.js +254 -0
- package/dist/pages/toc/toc.props.js +3 -0
- package/dist/{recipe-wIXGUbM7.js → recipes-BN0p1O6u.js} +9 -2
- package/dist/shared-Cz6A-cF-.js +2305 -0
- package/dist/theme.js +1 -1
- package/locales/en/specimen/breadcrumb.json +22 -0
- package/locales/en/specimen/link.json +19 -0
- package/locales/en/specimen/nav-list.json +43 -0
- package/locales/en/specimen/navigation-menu.json +104 -0
- package/locales/en/specimen/pagination.json +49 -0
- package/locales/en/specimen/toc.json +29 -0
- package/package.json +12 -11
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const dropped = {"ContentProps": {"conditions": 284, "foreign": 1040}, "IndicatorProps": {"conditions": 284, "foreign": 1041}, "ItemProps": {"conditions": 284, "foreign": 1041}, "LinkProps": {"conditions": 284, "foreign": 1048}, "ListProps": {"conditions": 284, "foreign": 1041}, "RootProps": {"conditions": 284, "foreign": 1038}, "TriggerProps": {"conditions": 284, "foreign": 1051}, "ViewportPositionerProps": {"conditions": 284, "foreign": 1041}, "ViewportProps": {"conditions": 284, "foreign": 1040}};
|
|
2
|
+
export const parts = {"ContentProps": [], "IndicatorProps": [], "ItemProps": [{"accepts": "boolean", "fallback": "", "kind": "option", "name": "disabled", "refers": [], "required": false, "says": "Whether the item takes no pointer or key input."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "value", "refers": [], "required": true, "says": "Value of the item, which the machine reports while the item is open."}], "LinkProps": [{"accepts": "boolean", "fallback": "", "kind": "option", "name": "closeOnClick", "refers": [], "required": false, "says": "Whether a press closes the menu. Defaults to true."}, {"accepts": "boolean", "fallback": "", "kind": "option", "name": "current", "refers": [], "required": false, "says": "Whether the link leads to the page on screen."}, {"accepts": "((event: CustomEvent<any>) => void)", "fallback": "", "kind": "option", "name": "onSelect", "refers": [], "required": false, "says": "Runs on a press before the menu closes. Calling `preventDefault` on the event keeps it open."}], "ListProps": [], "RootProps": [{"accepts": "number", "fallback": "300", "kind": "option", "name": "closeDelay", "refers": [], "required": false, "says": "The delay before the menu closes"}, {"accepts": "string", "fallback": "", "kind": "option", "name": "defaultValue", "refers": [], "required": false, "says": "The default value of the navigation menu. Use when you don't want to control the value of the menu."}, {"accepts": "\"ltr\" | \"rtl\"", "fallback": "\"ltr\"", "kind": "option", "name": "dir", "refers": [], "required": false, "says": "The document's text/writing direction."}, {"accepts": "boolean", "fallback": "", "kind": "option", "name": "disableClickTrigger", "refers": [], "required": false, "says": "Whether to disable the click trigger"}, {"accepts": "boolean", "fallback": "", "kind": "option", "name": "disableHoverTrigger", "refers": [], "required": false, "says": "Whether to disable the hover trigger"}, {"accepts": "boolean", "fallback": "", "kind": "option", "name": "disablePointerLeaveClose", "refers": [], "required": false, "says": "Whether to disable the pointer leave close"}, {"accepts": "(() => Document | Node | ShadowRoot)", "fallback": "", "kind": "option", "name": "getRootNode", "refers": [], "required": false, "says": "A root node to correctly resolve document in custom environments. E.x.: Iframes, Electron."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "id", "refers": [], "required": false, "says": "The unique identifier of the machine."}, {"accepts": "ElementIds", "fallback": "", "kind": "option", "name": "ids", "refers": ["navigation-menu.ElementIds"], "required": false, "says": "The ids of the elements in the machine."}, {"accepts": "((details: ValueChangeDetails) => void)", "fallback": "", "kind": "option", "name": "onValueChange", "refers": ["navigation-menu.ValueChangeDetails"], "required": false, "says": "Function called when the value of the menu changes"}, {"accepts": "number", "fallback": "200", "kind": "option", "name": "openDelay", "refers": [], "required": false, "says": "The delay before the menu opens"}, {"accepts": "\"horizontal\" | \"vertical\"", "fallback": "\"horizontal\"", "kind": "option", "name": "orientation", "refers": [], "required": false, "says": "The orientation of the element."}, {"accepts": "\"accent\" | \"error\" | \"info\" | \"neutral\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"", "fallback": "", "kind": "variant", "name": "palette", "refers": [], "required": false, "says": "Palette of the indicator and of a link to the current page."}, {"accepts": "Step", "fallback": "", "kind": "variant", "name": "size", "refers": ["kit.Step"], "required": false, "says": "Height, insets and text of the bar's triggers and links, the gaps between them, the gap between the bar and a panel, and the padding, gaps and icons of a panel and its links."}, {"accepts": "string", "fallback": "", "kind": "option", "name": "value", "refers": [], "required": false, "says": "The controlled value of the navigation menu"}], "TriggerProps": [], "ViewportPositionerProps": [{"accepts": "Align", "fallback": "", "kind": "option", "name": "align", "refers": ["kit.Align"], "required": false, "says": "Where the viewport sits against the open trigger. Defaults to `center`."}], "ViewportProps": []};
|
|
3
|
+
export const shapes = {"kit.Step": [{"accepts": "", "name": "\"lg\"", "says": ""}, {"accepts": "", "name": "\"md\"", "says": ""}, {"accepts": "", "name": "\"sm\"", "says": ""}], "navigation-menu.ElementIds": [{"accepts": "string", "name": "root", "says": ""}, {"accepts": "string", "name": "list", "says": ""}, {"accepts": "string", "name": "item", "says": ""}, {"accepts": "((value: string) => string)", "name": "trigger", "says": ""}, {"accepts": "((value: string) => string)", "name": "content", "says": ""}, {"accepts": "string", "name": "viewport", "says": ""}], "navigation-menu.ValueChangeDetails": [{"accepts": "string", "name": "value", "says": ""}], "kit.Align": [{"accepts": "", "name": "\"center\"", "says": ""}, {"accepts": "", "name": "\"end\"", "says": ""}, {"accepts": "", "name": "\"start\"", "says": ""}]};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"pages": [
|
|
4
|
+
{
|
|
5
|
+
"about": "breadcrumb.about",
|
|
6
|
+
"group": "",
|
|
7
|
+
"id": "components/navigation/breadcrumb",
|
|
8
|
+
"module": "breadcrumb/breadcrumb.js",
|
|
9
|
+
"namespace": "",
|
|
10
|
+
"props": "breadcrumb/breadcrumb.props.js",
|
|
11
|
+
"specimen": "src/breadcrumb/breadcrumb.specimen.tsx",
|
|
12
|
+
"title": "breadcrumb.title"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"about": "link.about",
|
|
16
|
+
"group": "",
|
|
17
|
+
"id": "components/navigation/link",
|
|
18
|
+
"module": "link/link.js",
|
|
19
|
+
"namespace": "",
|
|
20
|
+
"props": "link/link.props.js",
|
|
21
|
+
"specimen": "src/link/link.specimen.tsx",
|
|
22
|
+
"title": "link.title"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"about": "nav-list.about",
|
|
26
|
+
"group": "",
|
|
27
|
+
"id": "components/navigation/nav-list",
|
|
28
|
+
"module": "nav-list/nav-list.js",
|
|
29
|
+
"namespace": "",
|
|
30
|
+
"props": "nav-list/nav-list.props.js",
|
|
31
|
+
"specimen": "src/nav-list/nav-list.specimen.tsx",
|
|
32
|
+
"title": "nav-list.title"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"about": "navigation-menu.about",
|
|
36
|
+
"group": "",
|
|
37
|
+
"id": "components/navigation/navigation-menu",
|
|
38
|
+
"module": "navigation-menu/navigation-menu.js",
|
|
39
|
+
"namespace": "",
|
|
40
|
+
"props": "navigation-menu/navigation-menu.props.js",
|
|
41
|
+
"specimen": "src/navigation-menu/navigation-menu.specimen.tsx",
|
|
42
|
+
"title": "navigation-menu.title"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"about": "pagination.about",
|
|
46
|
+
"group": "",
|
|
47
|
+
"id": "components/navigation/pagination",
|
|
48
|
+
"module": "pagination/pagination.js",
|
|
49
|
+
"namespace": "",
|
|
50
|
+
"props": "pagination/pagination.props.js",
|
|
51
|
+
"specimen": "src/pagination/pagination.specimen.tsx",
|
|
52
|
+
"title": "pagination.title"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"about": "toc.about",
|
|
56
|
+
"group": "",
|
|
57
|
+
"id": "components/navigation/toc",
|
|
58
|
+
"module": "toc/toc.js",
|
|
59
|
+
"namespace": "",
|
|
60
|
+
"props": "toc/toc.props.js",
|
|
61
|
+
"specimen": "src/toc/toc.specimen.tsx",
|
|
62
|
+
"title": "toc.title"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"requires": {
|
|
66
|
+
"@stealthscale/component-forms": "^0.3.0",
|
|
67
|
+
"@stealthscale/component-layout": "^0.2.0",
|
|
68
|
+
"@stealthscale/component-media": "^0.2.0",
|
|
69
|
+
"@stealthscale/component-typography": "^0.3.0",
|
|
70
|
+
"@stealthscale/specimen": "^0.3.0",
|
|
71
|
+
"lucide-react": "^1.52.0"
|
|
72
|
+
}
|
|
73
|
+
}
|