@czi-sds/mcp 0.12.2 → 0.14.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/data/component-list.json +2 -0
- package/data/component-props/CellBasic.json +8 -0
- package/data/component-props/CellComponent.json +1 -1
- package/data/component-props/CellHeader.json +1 -1
- package/data/component-props/Popover.json +134 -0
- package/data/component-props/PreComposedTable.json +62 -0
- package/data/zeroheight-exports/Dropdown-Menus.md +0 -22
- package/package.json +2 -2
package/data/component-list.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"CellBasic": {
|
|
3
3
|
"props": {
|
|
4
|
+
"component": {
|
|
5
|
+
"type": "\"symbol\" | \"object\" | \"cite\" | \"data\" | \"form\" | \"label\" | \"pattern\" | \"span\" | \"summary\" | \"slot\" | \"style\" | \"title\" | \"center\" | \"link\" | \"a\" | \"abbr\" | \"address\" | \"area\" | \"article\" | \"aside\" | \"audio\" | \"b\" | \"base\" | \"bdi\" | \"bdo\" | \"big\" | \"blockquote\" | \"body\" | \"br\" | \"button\" | \"canvas\" | \"caption\" | \"code\" | \"col\" | \"colgroup\" | \"datalist\" | \"dd\" | \"del\" | \"details\" | \"dfn\" | \"dialog\" | \"div\" | \"dl\" | \"dt\" | \"em\" | \"embed\" | \"fieldset\" | \"figcaption\" | \"figure\" | \"footer\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"head\" | \"header\" | \"hgroup\" | \"hr\" | \"html\" | \"i\" | \"iframe\" | \"img\" | \"input\" | \"ins\" | \"kbd\" | \"keygen\" | \"legend\" | \"li\" | \"main\" | \"map\" | \"mark\" | \"menu\" | \"menuitem\" | \"meta\" | \"meter\" | \"nav\" | \"noindex\" | \"noscript\" | \"ol\" | \"optgroup\" | \"option\" | \"output\" | \"p\" | \"param\" | \"picture\" | \"pre\" | \"progress\" | \"q\" | \"rp\" | \"rt\" | \"ruby\" | \"s\" | \"samp\" | \"search\" | \"script\" | \"section\" | \"select\" | \"small\" | \"source\" | \"strong\" | \"sub\" | \"sup\" | \"table\" | \"template\" | \"tbody\" | \"td\" | \"textarea\" | \"tfoot\" | \"th\" | \"thead\" | \"time\" | \"tr\" | \"track\" | \"u\" | \"ul\" | \"var\" | \"video\" | \"wbr\" | \"webview\" | \"svg\" | \"animate\" | \"animateMotion\" | \"animateTransform\" | \"circle\" | \"clipPath\" | \"defs\" | \"desc\" | \"ellipse\" | \"feBlend\" | \"feColorMatrix\" | \"feComponentTransfer\" | \"feComposite\" | \"feConvolveMatrix\" | \"feDiffuseLighting\" | \"feDisplacementMap\" | \"feDistantLight\" | \"feDropShadow\" | \"feFlood\" | \"feFuncA\" | \"feFuncB\" | \"feFuncG\" | \"feFuncR\" | \"feGaussianBlur\" | \"feImage\" | \"feMerge\" | \"feMergeNode\" | \"feMorphology\" | \"feOffset\" | \"fePointLight\" | \"feSpecularLighting\" | \"feSpotLight\" | \"feTile\" | \"feTurbulence\" | \"filter\" | \"foreignObject\" | \"g\" | \"image\" | \"line\" | \"linearGradient\" | \"marker\" | \"mask\" | \"metadata\" | \"mpath\" | \"path\" | \"polygon\" | \"polyline\" | \"radialGradient\" | \"rect\" | \"set\" | \"stop\" | \"switch\" | \"text\" | \"textPath\" | \"tspan\" | \"use\" | \"view\" | \"ComponentClass",
|
|
6
|
+
"isRequired": false
|
|
7
|
+
},
|
|
4
8
|
"horizontalAlign": {
|
|
5
9
|
"type": "\"left\" | \"right\"",
|
|
6
10
|
"isRequired": false
|
|
@@ -41,6 +45,10 @@
|
|
|
41
45
|
"type": "\"false\" | \"true\"",
|
|
42
46
|
"isRequired": false
|
|
43
47
|
},
|
|
48
|
+
"shouldShowUnderlineOnHover": {
|
|
49
|
+
"type": "\"false\" | \"true\"",
|
|
50
|
+
"isRequired": false
|
|
51
|
+
},
|
|
44
52
|
"shouldTextWrap": {
|
|
45
53
|
"type": "\"false\" | \"true\"",
|
|
46
54
|
"isRequired": false
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"Popover": {
|
|
3
|
+
"props": {
|
|
4
|
+
"open": {
|
|
5
|
+
"type": "\"false\" | \"true\"",
|
|
6
|
+
"isRequired": true,
|
|
7
|
+
"description": "If `true`, the component is shown."
|
|
8
|
+
},
|
|
9
|
+
"action": {
|
|
10
|
+
"type": "\"(instance: PopoverActions) => void\" | \"RefObject<PopoverActions>\"",
|
|
11
|
+
"isRequired": false,
|
|
12
|
+
"description": "A ref for imperative actions.\nIt currently only supports updatePosition() action."
|
|
13
|
+
},
|
|
14
|
+
"anchorEl": {
|
|
15
|
+
"type": "\"Element\" | \"() => Element\" | \"PopoverVirtualElement\" | \"() => PopoverVirtualElement\"",
|
|
16
|
+
"isRequired": false,
|
|
17
|
+
"description": "An HTML element, [PopoverVirtualElement](/material-ui/react-popover/#virtual-element),\nor a function that returns either.\nIt's used to set the position of the popover."
|
|
18
|
+
},
|
|
19
|
+
"anchorOrigin": {
|
|
20
|
+
"type": "PopoverOrigin",
|
|
21
|
+
"isRequired": false,
|
|
22
|
+
"description": "This is the point on the anchor where the popover's\n`anchorEl` will attach to. This is not used when the\nanchorReference is 'anchorPosition'.\n\nOptions:\nvertical: [top, center, bottom];\nhorizontal: [left, center, right].",
|
|
23
|
+
"defaultValue": "{\nvertical: top,\nhorizontal: left,\n}"
|
|
24
|
+
},
|
|
25
|
+
"anchorPosition": {
|
|
26
|
+
"type": "PopoverPosition",
|
|
27
|
+
"isRequired": false,
|
|
28
|
+
"description": "This is the position that may be used to set the position of the popover.\nThe coordinates are relative to the application's client area."
|
|
29
|
+
},
|
|
30
|
+
"anchorReference": {
|
|
31
|
+
"type": "\"anchorEl\" | \"anchorPosition\" | \"none\"",
|
|
32
|
+
"isRequired": false,
|
|
33
|
+
"description": "This determines which anchor prop to refer to when setting\nthe position of the popover.",
|
|
34
|
+
"defaultValue": "anchorEl"
|
|
35
|
+
},
|
|
36
|
+
"BackdropComponent": {
|
|
37
|
+
"type": "\"ComponentClass<BackdropProps, any>\" | \"FunctionComponent<BackdropProps>\"",
|
|
38
|
+
"isRequired": false,
|
|
39
|
+
"description": "A backdrop component. This prop enables custom backdrop rendering.\n@deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.\nUse the `slots.backdrop` prop to make your application ready for the next version of Material UI.",
|
|
40
|
+
"defaultValue": "styled(Backdrop, {\nname: MuiModal,\nslot: Backdrop,\noverridesResolver: (props, styles) => {\nreturn styles.backdrop;\n},\n})({\nzIndex: -1,\n})"
|
|
41
|
+
},
|
|
42
|
+
"BackdropProps": {
|
|
43
|
+
"type": "Partial<BackdropProps>",
|
|
44
|
+
"isRequired": false,
|
|
45
|
+
"description": "Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.\n@deprecated Use `slotProps.backdrop` instead."
|
|
46
|
+
},
|
|
47
|
+
"children": {
|
|
48
|
+
"type": "ReactNode",
|
|
49
|
+
"isRequired": false,
|
|
50
|
+
"description": "The content of the component."
|
|
51
|
+
},
|
|
52
|
+
"classes": {
|
|
53
|
+
"type": "Partial<PopoverClasses>",
|
|
54
|
+
"isRequired": false,
|
|
55
|
+
"description": "Override or extend the styles applied to the component."
|
|
56
|
+
},
|
|
57
|
+
"container": {
|
|
58
|
+
"type": "\"Element\" | \"() => Element\"",
|
|
59
|
+
"isRequired": false,
|
|
60
|
+
"description": "An HTML element, component instance, or function that returns either.\nThe `container` will passed to the Modal component.\n\nBy default, it uses the body of the anchorEl's top-level document object,\nso it's simply `document.body` most of the time."
|
|
61
|
+
},
|
|
62
|
+
"disableScrollLock": {
|
|
63
|
+
"type": "\"false\" | \"true\"",
|
|
64
|
+
"isRequired": false,
|
|
65
|
+
"description": "Disable the scroll lock behavior.",
|
|
66
|
+
"defaultValue": false
|
|
67
|
+
},
|
|
68
|
+
"elevation": {
|
|
69
|
+
"type": "number",
|
|
70
|
+
"isRequired": false,
|
|
71
|
+
"description": "The elevation of the popover.",
|
|
72
|
+
"defaultValue": 8
|
|
73
|
+
},
|
|
74
|
+
"marginThreshold": {
|
|
75
|
+
"type": "number",
|
|
76
|
+
"isRequired": false,
|
|
77
|
+
"description": "Specifies how close to the edge of the window the popover can appear.\nIf null, the popover will not be constrained by the window.",
|
|
78
|
+
"defaultValue": 16
|
|
79
|
+
},
|
|
80
|
+
"onClose": {
|
|
81
|
+
"type": "\"backdropClick\" | \"escapeKeyDown\"",
|
|
82
|
+
"isRequired": false,
|
|
83
|
+
"description": "Callback fired when the component requests to be closed.\nThe `reason` parameter can optionally be used to control the response to `onClose`."
|
|
84
|
+
},
|
|
85
|
+
"PaperProps": {
|
|
86
|
+
"type": "Partial<PaperProps<ElementType<any, keyof IntrinsicElements>>>",
|
|
87
|
+
"isRequired": false,
|
|
88
|
+
"description": "Props applied to the [`Paper`](/material-ui/api/paper/) element.\n\nThis prop is an alias for `slotProps.paper` and will be overriden by it if both are used.\n@deprecated Use `slotProps.paper` instead.",
|
|
89
|
+
"defaultValue": {}
|
|
90
|
+
},
|
|
91
|
+
"slotProps": {
|
|
92
|
+
"type": "{ root?: SlotComponentProps",
|
|
93
|
+
"isRequired": false,
|
|
94
|
+
"description": "The extra props for the slot components.\nYou can override the existing props or add new ones.",
|
|
95
|
+
"defaultValue": {}
|
|
96
|
+
},
|
|
97
|
+
"slots": {
|
|
98
|
+
"type": "{ root?: ElementType",
|
|
99
|
+
"isRequired": false,
|
|
100
|
+
"description": "The components used for each slot inside.",
|
|
101
|
+
"defaultValue": {}
|
|
102
|
+
},
|
|
103
|
+
"sx": {
|
|
104
|
+
"type": "\"SystemCssProperties<Theme>\" | \"CSSPseudoSelectorProps<Theme>\" | \"CSSSelectorObjectOrCssVariables<Theme>\" | \"(theme: Theme) => SystemStyleObject<Theme>\" | \"readonly (boolean | SystemStyleObject<Theme> | ((theme: Theme) => SystemStyleObject<Theme>))[]\"",
|
|
105
|
+
"isRequired": false,
|
|
106
|
+
"description": "The system prop that allows defining system overrides as well as additional CSS styles."
|
|
107
|
+
},
|
|
108
|
+
"transformOrigin": {
|
|
109
|
+
"type": "PopoverOrigin",
|
|
110
|
+
"isRequired": false,
|
|
111
|
+
"description": "This is the point on the popover which\nwill attach to the anchor's origin.\n\nOptions:\nvertical: [top, center, bottom, x(px)];\nhorizontal: [left, center, right, x(px)].",
|
|
112
|
+
"defaultValue": "{\nvertical: top,\nhorizontal: left,\n}"
|
|
113
|
+
},
|
|
114
|
+
"TransitionComponent": {
|
|
115
|
+
"type": "ReactNode",
|
|
116
|
+
"isRequired": false,
|
|
117
|
+
"description": "The component used for the transition.\n[Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.",
|
|
118
|
+
"defaultValue": "Grow"
|
|
119
|
+
},
|
|
120
|
+
"transitionDuration": {
|
|
121
|
+
"type": "\"number\" | \"{ appear?: number; enter?: number; exit?: number; }\" | \"{ appear?: number; enter?: number; exit?: number; }\" | \"auto\"",
|
|
122
|
+
"isRequired": false,
|
|
123
|
+
"description": "Set to 'auto' to automatically calculate transition time based on height.",
|
|
124
|
+
"defaultValue": "auto"
|
|
125
|
+
},
|
|
126
|
+
"TransitionProps": {
|
|
127
|
+
"type": "TransitionProps",
|
|
128
|
+
"isRequired": false,
|
|
129
|
+
"description": "Props applied to the transition element.\nBy default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.",
|
|
130
|
+
"defaultValue": {}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"PreComposedTable": {
|
|
3
|
+
"props": {
|
|
4
|
+
"border": {
|
|
5
|
+
"type": "\"false\" | \"true\"",
|
|
6
|
+
"isRequired": false,
|
|
7
|
+
"defaultValue": true
|
|
8
|
+
},
|
|
9
|
+
"columns": {
|
|
10
|
+
"type": "ColumnDef<TData>[]",
|
|
11
|
+
"isRequired": true
|
|
12
|
+
},
|
|
13
|
+
"enableColumnFiltering": {
|
|
14
|
+
"type": "\"false\" | \"true\"",
|
|
15
|
+
"isRequired": false,
|
|
16
|
+
"defaultValue": false
|
|
17
|
+
},
|
|
18
|
+
"enableGlobalFiltering": {
|
|
19
|
+
"type": "\"false\" | \"true\"",
|
|
20
|
+
"isRequired": false,
|
|
21
|
+
"defaultValue": false
|
|
22
|
+
},
|
|
23
|
+
"enablePagination": {
|
|
24
|
+
"type": "\"false\" | \"true\"",
|
|
25
|
+
"isRequired": false,
|
|
26
|
+
"defaultValue": false
|
|
27
|
+
},
|
|
28
|
+
"enableRowSelection": {
|
|
29
|
+
"type": "\"false\" | \"true\"",
|
|
30
|
+
"isRequired": false,
|
|
31
|
+
"defaultValue": false
|
|
32
|
+
},
|
|
33
|
+
"enableSorting": {
|
|
34
|
+
"type": "\"false\" | \"true\"",
|
|
35
|
+
"isRequired": false,
|
|
36
|
+
"defaultValue": false
|
|
37
|
+
},
|
|
38
|
+
"onRowSelect": {
|
|
39
|
+
"type": "(selectedRows: TData[]) => void",
|
|
40
|
+
"isRequired": false
|
|
41
|
+
},
|
|
42
|
+
"paginationConfig": {
|
|
43
|
+
"type": "any",
|
|
44
|
+
"isRequired": false
|
|
45
|
+
},
|
|
46
|
+
"shouldPinSelectRowToLeft": {
|
|
47
|
+
"type": "\"false\" | \"true\"",
|
|
48
|
+
"isRequired": false,
|
|
49
|
+
"defaultValue": true
|
|
50
|
+
},
|
|
51
|
+
"sdsStyle": {
|
|
52
|
+
"type": "\"lined\" | \"striped\"",
|
|
53
|
+
"isRequired": false,
|
|
54
|
+
"defaultValue": "lined"
|
|
55
|
+
},
|
|
56
|
+
"tableRowProps": {
|
|
57
|
+
"type": "Partial<TableRowProps>",
|
|
58
|
+
"isRequired": false
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -26,16 +26,12 @@ Dropdown Menus are used in combination with Dropdown Inputs on napari hub as par
|
|
|
26
26
|
|
|
27
27
|
Click on each state below to enter inspect view and get details on its code attributes and any global styles it uses.
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
29
|
**Default**
|
|
32
30
|
|
|
33
31
|
---
|
|
34
32
|
|
|
35
33
|
---
|
|
36
34
|
|
|
37
|
-
|
|
38
|
-
|
|
39
35
|
**Default + Search**
|
|
40
36
|
|
|
41
37
|
---
|
|
@@ -266,8 +262,6 @@ Click on each state below to enter inspect view and get details on its code attr
|
|
|
266
262
|
|
|
267
263
|
Storybook
|
|
268
264
|
|
|
269
|
-
|
|
270
|
-
|
|
271
265
|
---
|
|
272
266
|
|
|
273
267
|
Dropdown Menus are coupled with Dropdown Inputs, Dropdown Buttons, and in some cases Icon Buttons whenever those elements present the user with options to choose from or selections to make.
|
|
@@ -296,8 +290,6 @@ Use the Single-select Dropdown Menu when users are only able to select one item
|
|
|
296
290
|
|
|
297
291
|
Click on each state below to enter inspect view and get details on its code attributes and any global styles it uses.
|
|
298
292
|
|
|
299
|
-
|
|
300
|
-
|
|
301
293
|
**Default**
|
|
302
294
|
|
|
303
295
|
---
|
|
@@ -326,8 +318,6 @@ Use the Multi-select Dropdown Menu when users are able to select one or more ite
|
|
|
326
318
|
|
|
327
319
|
Click on each state below to enter inspect view and get details on its code attributes and any global styles it uses.
|
|
328
320
|
|
|
329
|
-
|
|
330
|
-
|
|
331
321
|
**Default**
|
|
332
322
|
|
|
333
323
|
---
|
|
@@ -512,8 +502,6 @@ Click on each state below to enter inspect view and get details on its code attr
|
|
|
512
502
|
|
|
513
503
|
---
|
|
514
504
|
|
|
515
|
-
|
|
516
|
-
|
|
517
505
|
### Multi-select Menu Item
|
|
518
506
|
|
|
519
507
|
Menu Items can be optionally paired with additional clarifying details, with counters that indicate the number of items within that Menu Item's category, or be disabled entirely. These details are established within the `[array]` passed into the `options` prop on the Dropdown Menu component.
|
|
@@ -624,8 +612,6 @@ Use the Single-select Dropdown Menu when users are only able to select one item
|
|
|
624
612
|
|
|
625
613
|
Click on each state below to enter inspect view and get details on its code attributes and any global styles it uses.
|
|
626
614
|
|
|
627
|
-
|
|
628
|
-
|
|
629
615
|
**Default**
|
|
630
616
|
|
|
631
617
|
---
|
|
@@ -648,16 +634,12 @@ Click on each state below to enter inspect view and get details on its code attr
|
|
|
648
634
|
|
|
649
635
|
---
|
|
650
636
|
|
|
651
|
-
|
|
652
|
-
|
|
653
637
|
### Multi-select Dropdown Menu
|
|
654
638
|
|
|
655
639
|
Use the Multi-select Dropdown Menu when users are able to select one or more items from the menu. They can be configured to have their Menu Items separated out into different sections or groupings, or have a built-in title; both of these features are established by the `[array]` passed into the `options` prop. Additionally, they can be configured to include a Search Input. See the Data Format section below for details around configuring the `[array]`.
|
|
656
640
|
|
|
657
641
|
Click on each state below to enter inspect view and get details on its code attributes and any global styles it uses.
|
|
658
642
|
|
|
659
|
-
|
|
660
|
-
|
|
661
643
|
**Default**
|
|
662
644
|
|
|
663
645
|
---
|
|
@@ -850,8 +832,6 @@ Click on each state below to enter inspect view and get details on its code attr
|
|
|
850
832
|
|
|
851
833
|
---
|
|
852
834
|
|
|
853
|
-
|
|
854
|
-
|
|
855
835
|
### Multi-select Menu Item
|
|
856
836
|
|
|
857
837
|
Menu Items can be optionally paired with additional clarifying details, with counters that indicate the number of items within that Menu Item's category, or be disabled entirely. These details are established within the `[array]` passed into the `options` prop on the Dropdown Menu component.
|
|
@@ -931,5 +911,3 @@ Click on each state below to enter inspect view and get details on its code attr
|
|
|
931
911
|
### DropdownMenu
|
|
932
912
|
|
|
933
913
|
Storybook
|
|
934
|
-
|
|
935
|
-
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@czi-sds/mcp",
|
|
3
3
|
"description": "The official MCP server for SDS",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0",
|
|
5
5
|
"main": "dist/stdio.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"tsx": "^4.20.3",
|
|
63
63
|
"typescript": "^5.9.2"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "1666380ee93e0ff0fef0f2426c290feeb141c243"
|
|
66
66
|
}
|