@nxds/claude-design 0.5.0 → 0.6.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/coverage.md +7 -7
- package/files.json +6 -6
- package/package.json +1 -1
- package/project/components/Avatar/README.md +1 -4
- package/project/components/Resizable/README.md +11 -12
- package/project/components/bundle.js +54 -54
- package/project/components/index.d.ts +662 -1109
- package/project/design-system.json +4 -4
- package/project/tokens.json +25 -25
- package/coverage.json +0 -2823
package/coverage.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# Canvas prop coverage
|
|
2
2
|
|
|
3
|
-
368 component parts,
|
|
3
|
+
368 component parts, 2460 props.
|
|
4
4
|
|
|
5
5
|
| Control | Props |
|
|
6
6
|
| --- | --- |
|
|
7
|
-
| dropdown |
|
|
7
|
+
| dropdown | 258 |
|
|
8
8
|
| toggle | 506 |
|
|
9
|
-
| number |
|
|
9
|
+
| number | 84 |
|
|
10
10
|
| text | 856 |
|
|
11
11
|
| content | 358 |
|
|
12
12
|
| none: takes a React element; an attribute holds text only | 34 |
|
|
13
|
-
| none: takes a function |
|
|
14
|
-
| none: takes an object, array or class instance |
|
|
13
|
+
| none: takes a function | 157 |
|
|
14
|
+
| none: takes an object, array or class instance | 207 |
|
|
15
15
|
|
|
16
16
|
## Props with no control
|
|
17
17
|
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
- **Progress**: `getValueLabel` (function)
|
|
138
138
|
- **RadioGroup**: `onValueChange` (function)
|
|
139
139
|
- **ResizableHandle**: `elementRef` (function)
|
|
140
|
-
- **ResizablePanel**: `
|
|
141
|
-
- **ResizablePanelGroup**: `
|
|
140
|
+
- **ResizablePanel**: `onResize` (function), `elementRef` (function), `panelRef` (function)
|
|
141
|
+
- **ResizablePanelGroup**: `onLayoutChange` (function), `elementRef` (function), `groupRef` (function), `resizeTargetMinimumSize` (object)
|
|
142
142
|
- **Select**: `onOpenChange` (function), `onValueChange` (function)
|
|
143
143
|
- **SelectContent**: `onCloseAutoFocus` (function), `onEscapeKeyDown` (function), `onPointerDownOutside` (function), `collisionBoundary` (object), `collisionPadding` (object)
|
|
144
144
|
- **SelectTrigger**: `value` (object)
|
package/files.json
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"path": "components/Avatar/README.md",
|
|
48
|
-
"sha256": "
|
|
48
|
+
"sha256": "858b00d1559272d4c7bf6b211b9dd96efbe39377f4128f524df96b56a423f586"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"path": "components/Avatar/preview.html",
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
"path": "components/Resizable/README.md",
|
|
420
|
-
"sha256": "
|
|
420
|
+
"sha256": "d00d153a27acd8ae942427d68d4592e0f1939a7e46ae0b7df4c6a5ac20136737"
|
|
421
421
|
},
|
|
422
422
|
{
|
|
423
423
|
"path": "components/Resizable/preview.html",
|
|
@@ -573,15 +573,15 @@
|
|
|
573
573
|
},
|
|
574
574
|
{
|
|
575
575
|
"path": "components/bundle.js",
|
|
576
|
-
"sha256": "
|
|
576
|
+
"sha256": "358ef8ea58770e19a5bf63da886bbb1ad66c91aba67f548c397417012c082e06"
|
|
577
577
|
},
|
|
578
578
|
{
|
|
579
579
|
"path": "components/index.d.ts",
|
|
580
|
-
"sha256": "
|
|
580
|
+
"sha256": "7e3817ca51f39d8321a25262201bc53df9dabe5e0aaf703bd4f0eea80e8d9bdb"
|
|
581
581
|
},
|
|
582
582
|
{
|
|
583
583
|
"path": "design-system.json",
|
|
584
|
-
"sha256": "
|
|
584
|
+
"sha256": "b580314d97e4b9fea69baa73a5973e96a2474e41ded1798244bd050e90ef7a34"
|
|
585
585
|
},
|
|
586
586
|
{
|
|
587
587
|
"path": "tokens.css",
|
|
@@ -589,6 +589,6 @@
|
|
|
589
589
|
},
|
|
590
590
|
{
|
|
591
591
|
"path": "tokens.json",
|
|
592
|
-
"sha256": "
|
|
592
|
+
"sha256": "1c6b2c0b9d18bcf3260d35745d9328d32f60f178c1c36462c3bca5f01e002325"
|
|
593
593
|
}
|
|
594
594
|
]
|
package/package.json
CHANGED
|
@@ -5,10 +5,7 @@ Avatar shows a person's profile image, with initials as the fallback. Use Avatar
|
|
|
5
5
|
## On the canvas
|
|
6
6
|
|
|
7
7
|
```html
|
|
8
|
-
<x-import component-from-global-scope="Nxds.Avatar" size="
|
|
9
|
-
<x-import component-from-global-scope="Nxds.AvatarImage" src="/avatars/ada.svg" alt="Ada Lovelace"></x-import>
|
|
10
|
-
<x-import component-from-global-scope="Nxds.AvatarFallback">AL</x-import>
|
|
11
|
-
</x-import>
|
|
8
|
+
<x-import component-from-global-scope="Nxds.Avatar" size="sm" shape="rounded">Avatar</x-import>
|
|
12
9
|
```
|
|
13
10
|
|
|
14
11
|
Attributes set props, kebab-case to camelCase. Element content becomes `children`. An attribute holds text, so a prop that takes an element, a function or an object has no attribute.
|
|
@@ -5,7 +5,7 @@ Resizable splits an area into panels that users resize by dragging or with the k
|
|
|
5
5
|
## On the canvas
|
|
6
6
|
|
|
7
7
|
```html
|
|
8
|
-
<x-import component-from-global-scope="Nxds.ResizablePanelGroup" orientation="
|
|
8
|
+
<x-import component-from-global-scope="Nxds.ResizablePanelGroup" orientation="vertical">ResizablePanelGroup</x-import>
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Attributes set props, kebab-case to camelCase. Element content becomes `children`. An attribute holds text, so a prop that takes an element, a function or an object has no attribute.
|
|
@@ -34,33 +34,32 @@ Attributes set props, kebab-case to camelCase. Element content becomes `children
|
|
|
34
34
|
|
|
35
35
|
| Prop | Type | Default | Control |
|
|
36
36
|
| --- | --- | --- | --- |
|
|
37
|
+
| `defaultSize` | `number` | | number |
|
|
38
|
+
| `minSize` | `number` | `0` | number |
|
|
39
|
+
| `maxSize` | `number` | | number |
|
|
40
|
+
| `collapsedSize` | `number` | | number |
|
|
41
|
+
| `sizeUnit` | `"%" \| "px"` | `"%"` | dropdown |
|
|
37
42
|
| `children` | `React.ReactNode` | | content |
|
|
38
43
|
| `className` | `string` | | text |
|
|
39
44
|
| `id` | `string` | | text |
|
|
40
|
-
| `collapsedSize` | `string \| number` | | none (object) |
|
|
41
45
|
| `collapsible` | `boolean` | | toggle |
|
|
42
|
-
| `defaultSize` | `string \| number` | | none (object) |
|
|
43
46
|
| `disabled` | `boolean` | | toggle |
|
|
47
|
+
| `onResize` | `(panelSize: PanelSize, id: string \| number \| undefined, prevPanelSize: PanelSize \| undefined) => void` | | none (function) |
|
|
44
48
|
| `elementRef` | `RefObject<HTMLDivElement \| null> \| ((instance: HTMLDivElement \| null) => void \| (() => VoidOrUndefinedOnly))` | | none (function) |
|
|
45
49
|
| `groupResizeBehavior` | `"preserve-relative-size" \| "preserve-pixel-size"` | | dropdown |
|
|
46
|
-
| `maxSize` | `string \| number` | | none (object) |
|
|
47
|
-
| `minSize` | `string \| number` | | none (object) |
|
|
48
|
-
| `onResize` | `(panelSize: PanelSize, id: string \| number \| undefined, prevPanelSize: PanelSize \| undefined) => void` | | none (function) |
|
|
49
50
|
| `panelRef` | `((instance: PanelImperativeHandle \| null) => void \| (() => VoidOrUndefinedOnly)) \| RefObject<PanelImperativeHandle \| null>` | | none (function) |
|
|
50
51
|
|
|
51
52
|
### ResizablePanelGroup
|
|
52
53
|
|
|
53
54
|
| Prop | Type | Default | Control |
|
|
54
55
|
| --- | --- | --- | --- |
|
|
56
|
+
| `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | dropdown |
|
|
57
|
+
| `onLayoutChange` | `(layout: number[]) => void` | | none (function) |
|
|
58
|
+
| `children` | `React.ReactNode` | | content |
|
|
55
59
|
| `className` | `string` | | text |
|
|
56
60
|
| `id` | `string` | | text |
|
|
57
|
-
| `children` | `React.ReactNode` | | content |
|
|
58
|
-
| `defaultLayout` | `Layout` | | none (object) |
|
|
59
|
-
| `disableCursor` | `boolean` | | toggle |
|
|
60
61
|
| `disabled` | `boolean` | | toggle |
|
|
61
62
|
| `elementRef` | `RefObject<HTMLDivElement \| null> \| ((instance: HTMLDivElement \| null) => void \| (() => VoidOrUndefinedOnly))` | | none (function) |
|
|
63
|
+
| `disableCursor` | `boolean` | | toggle |
|
|
62
64
|
| `groupRef` | `((instance: GroupImperativeHandle \| null) => void \| (() => VoidOrUndefinedOnly)) \| RefObject<GroupImperativeHandle \| null>` | | none (function) |
|
|
63
|
-
| `onLayoutChange` | `(layout: Layout) => void \| undefined` | | none (function) |
|
|
64
|
-
| `onLayoutChanged` | `(layout: Layout) => void \| undefined` | | none (function) |
|
|
65
65
|
| `resizeTargetMinimumSize` | `{ coarse: number; fine: number; }` | | none (object) |
|
|
66
|
-
| `orientation` | `"horizontal" \| "vertical"` | | dropdown |
|