@stealthscale/component-collections 0.1.1 → 0.1.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/cyclonedx/bom.json +1 -1
- package/dist/index.js +1 -5700
- package/dist/pages/data-list/data-list.js +351 -0
- package/dist/pages/data-list/data-list.props.js +3 -0
- package/dist/pages/listbox/listbox.js +1277 -0
- package/dist/pages/listbox/listbox.props.js +3 -0
- package/dist/pages/pages.json +105 -0
- package/dist/pages/sortable/sortable.js +576 -0
- package/dist/pages/sortable/sortable.props.js +3 -0
- package/dist/pages/status-matrix/status-matrix.js +1403 -0
- package/dist/pages/status-matrix/status-matrix.props.js +3 -0
- package/dist/pages/swipe-actions/swipe-actions.js +212 -0
- package/dist/pages/swipe-actions/swipe-actions.props.js +3 -0
- package/dist/pages/table/table.js +1701 -0
- package/dist/pages/table/table.props.js +3 -0
- package/dist/pages/timeline/timeline.js +380 -0
- package/dist/pages/timeline/timeline.props.js +3 -0
- package/dist/pages/transfer/transfer.js +465 -0
- package/dist/pages/transfer/transfer.props.js +3 -0
- package/dist/pages/tree-view/tree-view.js +1059 -0
- package/dist/pages/tree-view/tree-view.props.js +3 -0
- package/dist/shared-DVn824MJ.js +5701 -0
- package/dist/theme.js +23 -13
- package/locales/en/specimen/data-list.json +64 -0
- package/locales/en/specimen/listbox.json +98 -0
- package/locales/en/specimen/sortable.json +65 -0
- package/locales/en/specimen/status-matrix.json +47 -0
- package/locales/en/specimen/swipe-actions.json +32 -0
- package/locales/en/specimen/table.json +94 -0
- package/locales/en/specimen/timeline.json +72 -0
- package/locales/en/specimen/transfer.json +34 -0
- package/locales/en/specimen/tree-view.json +107 -0
- package/package.json +10 -9
- /package/dist/{recipe-C1oaF8pO.js → recipes-C1oaF8pO.js} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export const dropped = {"BranchControlProps": {"conditions": 284, "foreign": 1041}, "BranchIndentGuideProps": {"conditions": 284, "foreign": 1041}, "BranchIndicatorProps": {"conditions": 284, "foreign": 1041}, "BranchTextProps": {"conditions": 284, "foreign": 1041}, "BranchTriggerProps": {"conditions": 284, "foreign": 1041}, "ItemIndicatorProps": {"conditions": 284, "foreign": 1041}, "ItemTextProps": {"conditions": 284, "foreign": 1041}, "ItemProps": {"conditions": 284, "foreign": 1041}, "LabelProps": {"conditions": 284, "foreign": 1041}, "NodeCheckboxProps": {"conditions": 284, "foreign": 1041}, "NodeRenameInputProps": {"conditions": 284, "foreign": 1069}, "NodesProps": {"conditions": 0, "foreign": 0}, "RootProps": {"conditions": 284, "foreign": 1039}, "TreeProps": {"conditions": 284, "foreign": 1041}};
|
|
2
|
+
export const parts = {"BranchControlProps": [], "BranchIndentGuideProps": [], "BranchIndicatorProps": [], "BranchTextProps": [], "BranchTriggerProps": [], "ItemIndicatorProps": [], "ItemTextProps": [], "ItemProps": [{"accepts": "string", "fallback": "", "kind": "option", "name": "href", "refers": [], "required": false, "says": "Address the item opens. The row renders an `a` while it is set."}], "LabelProps": [], "NodeCheckboxProps": [], "NodeRenameInputProps": [{"accepts": "string", "fallback": "", "kind": "option", "name": "label", "refers": [], "required": false, "says": "Accessible name of the field, \"Rename\" unless the caller passes another."}], "NodesProps": [{"accepts": "ReactNode", "fallback": "", "kind": "option", "name": "indentGuide", "refers": ["react.ReactElement", "react.ReactPortal"], "required": false, "says": "Element each branch's group of children renders first, such as `TreeView.BranchIndentGuide`."}, {"accepts": "NodeRender<Node>", "fallback": "", "kind": "option", "name": "render", "refers": ["kit.Node", "kit.NodeDetails", "kit.NodeRender", "tree-view.NodeState"], "required": true, "says": "Returns a node's row: `TreeView.BranchControl` for a branch and `TreeView.Item` for an item."}], "RootProps": [{"accepts": "((node: any, indexPath: IndexPath) => boolean)", "fallback": "", "kind": "option", "name": "canRename", "refers": ["collection.IndexPath"], "required": false, "says": "Function to determine if a node can be renamed"}, {"accepts": "boolean", "fallback": "", "kind": "option", "name": "checkable", "refers": [], "required": false, "says": "Whether every row has a check, which Space and a press on `TreeView.NodeCheckbox` toggle. A branch is checked while every node under it is, and partly checked while some are."}, {"accepts": "string[]", "fallback": "", "kind": "option", "name": "checkedValue", "refers": [], "required": false, "says": "The controlled checked node value"}, {"accepts": "TreeCollection<any>", "fallback": "", "kind": "option", "name": "collection", "refers": ["collection.TreeCollection"], "required": false, "says": "The tree collection data"}, {"accepts": "string[]", "fallback": "", "kind": "option", "name": "defaultCheckedValue", "refers": [], "required": false, "says": "The initial checked node value when rendered. Use when you don't need to control the checked node value."}, {"accepts": "string[]", "fallback": "", "kind": "option", "name": "defaultExpandedValue", "refers": [], "required": false, "says": "The initial expanded node ids when rendered. Use when you don't need to control the expanded node value."}, {"accepts": "string | null", "fallback": "", "kind": "option", "name": "defaultFocusedValue", "refers": [], "required": false, "says": "The initial focused node value when rendered. Use when you don't need to control the focused node value."}, {"accepts": "string[]", "fallback": "", "kind": "option", "name": "defaultSelectedValue", "refers": [], "required": false, "says": "The initial selected node value when rendered. Use when you don't need to control the selected node value."}, {"accepts": "\"ltr\" | \"rtl\"", "fallback": "\"ltr\"", "kind": "option", "name": "dir", "refers": [], "required": false, "says": "The document's text/writing direction."}, {"accepts": "\"glow\"", "fallback": "", "kind": "variant", "name": "effect", "refers": [], "required": false, "says": "Glow around a selected row, in the palette's solid at half opacity."}, {"accepts": "string[]", "fallback": "", "kind": "option", "name": "expandedValue", "refers": [], "required": false, "says": "The controlled expanded node ids"}, {"accepts": "boolean", "fallback": "true", "kind": "option", "name": "expandOnClick", "refers": [], "required": false, "says": "Whether clicking on a branch should open it or not"}, {"accepts": "string | null", "fallback": "", "kind": "option", "name": "focusedValue", "refers": [], "required": false, "says": "The value of the focused node"}, {"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": ["tree-view.ElementIds"], "required": false, "says": "The ids of the tree elements. Useful for composition."}, {"accepts": "((details: LoadChildrenDetails<any>) => Promise<any[]>)", "fallback": "", "kind": "option", "name": "loadChildren", "refers": ["collection.IndexPath", "collection.ValuePath", "tree-view.LoadChildrenDetails"], "required": false, "says": "Function to load children for a node asynchronously. When provided, branches will wait for this promise to resolve before expanding."}, {"accepts": "((details: RenameCompleteDetails) => boolean)", "fallback": "", "kind": "option", "name": "onBeforeRename", "refers": ["collection.IndexPath", "tree-view.RenameCompleteDetails"], "required": false, "says": "Called before a rename is completed. Return false to prevent the rename."}, {"accepts": "((details: CheckedChangeDetails) => void)", "fallback": "", "kind": "option", "name": "onCheckedChange", "refers": ["tree-view.CheckedChangeDetails"], "required": false, "says": "Called when the checked value changes"}, {"accepts": "((details: ExpandedChangeDetails<any>) => void)", "fallback": "", "kind": "option", "name": "onExpandedChange", "refers": ["tree-view.ExpandedChangeDetails"], "required": false, "says": "Called when the tree is opened or closed"}, {"accepts": "((details: FocusChangeDetails<any>) => void)", "fallback": "", "kind": "option", "name": "onFocusChange", "refers": ["tree-view.FocusChangeDetails"], "required": false, "says": "Called when the focused node changes"}, {"accepts": "((details: LoadChildrenCompleteDetails<any>) => void)", "fallback": "", "kind": "option", "name": "onLoadChildrenComplete", "refers": ["collection.TreeCollection", "tree-view.LoadChildrenCompleteDetails"], "required": false, "says": "Called when a node finishes loading children"}, {"accepts": "((details: LoadChildrenErrorDetails<any>) => void)", "fallback": "", "kind": "option", "name": "onLoadChildrenError", "refers": ["tree-view.LoadChildrenErrorDetails"], "required": false, "says": "Called when loading children fails for one or more nodes"}, {"accepts": "((details: RenameCompleteDetails) => void)", "fallback": "", "kind": "option", "name": "onRenameComplete", "refers": ["tree-view.RenameCompleteDetails"], "required": false, "says": "Called when a node label rename is completed"}, {"accepts": "((details: RenameStartDetails<any>) => void)", "fallback": "", "kind": "option", "name": "onRenameStart", "refers": ["collection.IndexPath", "tree-view.RenameStartDetails"], "required": false, "says": "Called when a node starts being renamed"}, {"accepts": "((details: SelectionChangeDetails<any>) => void)", "fallback": "", "kind": "option", "name": "onSelectionChange", "refers": ["tree-view.SelectionChangeDetails"], "required": false, "says": "Called when the selection changes"}, {"accepts": "\"accent\" | \"error\" | \"info\" | \"neutral\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"", "fallback": "", "kind": "variant", "name": "palette", "refers": [], "required": false, "says": "Palette the selected fill, the checkboxes and the focus ring read."}, {"accepts": "((details: ScrollToIndexDetails<any>) => void)", "fallback": "", "kind": "option", "name": "scrollToIndexFn", "refers": ["collection.IndexPath", "tree-view.ScrollToIndexDetails"], "required": false, "says": "Function to scroll to a specific index. Useful for virtualized tree views."}, {"accepts": "\"plain\" | \"solid\" | \"subtle\"", "fallback": "", "kind": "variant", "name": "selected", "refers": [], "required": false, "says": "Fill of a selected row."}, {"accepts": "string[]", "fallback": "", "kind": "option", "name": "selectedValue", "refers": [], "required": false, "says": "The controlled selected node value"}, {"accepts": "\"multiple\" | \"single\"", "fallback": "\"single\"", "kind": "option", "name": "selectionMode", "refers": [], "required": false, "says": "Whether the tree supports multiple selection - \"single\": only one node can be selected - \"multiple\": multiple nodes can be selected"}, {"accepts": "\"lg\" | \"md\" | \"sm\"", "fallback": "", "kind": "variant", "name": "size", "refers": [], "required": false, "says": "Sets rows of 24, 32 and 40px at `sm`, `md` and `lg`. The text reads the body role and the marks the icon scale one size smaller than the tree, and the inset two sizes smaller."}, {"accepts": "boolean", "fallback": "true", "kind": "option", "name": "typeahead", "refers": [], "required": false, "says": "Whether the tree supports typeahead search"}], "TreeProps": []};
|
|
3
|
+
export const shapes = {"react.ReactElement": [{"accepts": "string | JSXElementConstructor<any>", "name": "type", "says": ""}, {"accepts": "unknown", "name": "props", "says": ""}, {"accepts": "string | null", "name": "key", "says": ""}], "react.ReactPortal": [{"accepts": "ReactNode", "name": "children", "says": ""}, {"accepts": "string | JSXElementConstructor<any>", "name": "type", "says": ""}, {"accepts": "unknown", "name": "props", "says": ""}, {"accepts": "string | null", "name": "key", "says": ""}], "kit.NodeDetails": [{"accepts": "readonly number[]", "name": "indexPath", "says": "Positions of the node and of each ancestor among their siblings, from the top."}, {"accepts": "Node", "name": "node", "says": "The node, as the collection stores it."}, {"accepts": "NodeState", "name": "nodeState", "says": "State of the node: whether it is a branch, expanded, selected, checked, disabled, loading, being renamed, and its depth."}], "tree-view.NodeState": [{"accepts": "string", "name": "id", "says": "The id of the tree item"}, {"accepts": "string", "name": "value", "says": "The value of the tree item"}, {"accepts": "IndexPath", "name": "indexPath", "says": "The index path of the tree item"}, {"accepts": "ValuePath", "name": "valuePath", "says": "The value path of the tree item"}, {"accepts": "boolean", "name": "disabled", "says": "Whether the tree item is disabled"}, {"accepts": "boolean", "name": "selected", "says": "Whether the tree item is selected"}, {"accepts": "boolean", "name": "focused", "says": "Whether the tree item is focused"}, {"accepts": "number", "name": "depth", "says": "The depth of the tree item"}, {"accepts": "boolean", "name": "expanded", "says": "Whether the tree branch is expanded"}, {"accepts": "boolean", "name": "isBranch", "says": "Whether the tree item is a branch"}, {"accepts": "boolean", "name": "loading", "says": "Whether the tree item is currently loading children"}, {"accepts": "CheckedState", "name": "checked", "says": "Whether the tree item is checked"}, {"accepts": "boolean", "name": "renaming", "says": "Whether the tree item is currently being renamed"}], "tree-view.ElementIds": [{"accepts": "string", "name": "root", "says": ""}, {"accepts": "string", "name": "tree", "says": ""}, {"accepts": "string", "name": "label", "says": ""}, {"accepts": "((value: string) => string)", "name": "node", "says": ""}], "tree-view.ExpandedChangeDetails": [{"accepts": "string | null", "name": "focusedValue", "says": ""}, {"accepts": "string[]", "name": "expandedValue", "says": ""}, {"accepts": "any[]", "name": "expandedNodes", "says": ""}], "tree-view.SelectionChangeDetails": [{"accepts": "string | null", "name": "focusedValue", "says": ""}, {"accepts": "string[]", "name": "selectedValue", "says": ""}, {"accepts": "any[]", "name": "selectedNodes", "says": ""}], "tree-view.FocusChangeDetails": [{"accepts": "string | null", "name": "focusedValue", "says": ""}, {"accepts": "any", "name": "focusedNode", "says": ""}], "tree-view.CheckedChangeDetails": [{"accepts": "string[]", "name": "checkedValue", "says": ""}], "tree-view.RenameStartDetails": [{"accepts": "string", "name": "value", "says": "The value (id) of the node being renamed"}, {"accepts": "any", "name": "node", "says": "The node being renamed"}, {"accepts": "IndexPath", "name": "indexPath", "says": "The index path of the node"}], "tree-view.RenameCompleteDetails": [{"accepts": "string", "name": "value", "says": "The value (id) of the node being renamed"}, {"accepts": "string", "name": "label", "says": "The new label for the node"}, {"accepts": "IndexPath", "name": "indexPath", "says": "The index path of the node"}], "tree-view.LoadChildrenCompleteDetails": [{"accepts": "TreeCollection<any>", "name": "collection", "says": "The updated tree collection with the loaded children"}], "tree-view.LoadChildrenErrorDetails": [{"accepts": "NodeWithError<any>[]", "name": "nodes", "says": "Array of nodes that failed to load children"}], "tree-view.LoadChildrenDetails": [{"accepts": "ValuePath", "name": "valuePath", "says": "The value path of the node whose children are being loaded"}, {"accepts": "IndexPath", "name": "indexPath", "says": "The index path of the node whose children are being loaded"}, {"accepts": "any", "name": "node", "says": "The node whose children are being loaded"}, {"accepts": "AbortSignal", "name": "signal", "says": "AbortSignal to cancel the loading operation"}], "tree-view.ScrollToIndexDetails": [{"accepts": "number", "name": "index", "says": "The index of the node in the visible nodes array"}, {"accepts": "any", "name": "node", "says": "The node being scrolled to"}, {"accepts": "IndexPath", "name": "indexPath", "says": "The index path of the node"}, {"accepts": "() => HTMLElement | null", "name": "getElement", "says": "Function to get the DOM element for the node"}]};
|