@grasp-labs/ds-react-components 0.21.0 → 0.22.1
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 +8 -0
- package/dist/components/checkbox/Checkbox.d.ts +1 -1
- package/dist/components/flow/FlowTile.d.ts +11 -3
- package/dist/components/flow/index.d.ts +0 -1
- package/dist/components/keyValueList/KeyValueList.d.ts +9 -0
- package/dist/components/keyValueList/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +0 -1
- package/dist/index-CCS3Z4T8.js +20737 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/{index.esm-eIaA5E0H.js → index.esm-7GxVylgs.js} +1 -1
- package/dist/index.js +92 -90
- package/dist/types/BaseOption.d.ts +7 -1
- package/dist/utils/getOptionTextLabel.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/flow/MetadataList.d.ts +0 -6
- package/dist/components/flow/StatusIcon.d.ts +0 -5
- package/dist/components/flow/TileHeader.d.ts +0 -8
- package/dist/components/flow/types.d.ts +0 -15
- package/dist/hooks/useViewportCollision.d.ts +0 -7
- package/dist/index-CS4WKD59.js +0 -13808
package/README.md
CHANGED
|
@@ -50,3 +50,11 @@ Tests run using Storybook's vitest integration, either using the GUI Storybook o
|
|
|
50
50
|
```bash
|
|
51
51
|
npm run test
|
|
52
52
|
```
|
|
53
|
+
|
|
54
|
+
## Releasing
|
|
55
|
+
|
|
56
|
+
To release a new version of the package:
|
|
57
|
+
|
|
58
|
+
1. Create a feature branch and make your changes
|
|
59
|
+
2. After the branch is approved and before merging to `main`, run the `Version and Publish Package` GitHub Action on your feature branch selecting the appropriate version bump (patch, minor, major)
|
|
60
|
+
3. Once the build succeeds, merge your feature branch to `main`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX, ReactNode } from 'react';
|
|
2
2
|
export type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
/** The visible label text for the checkbox */
|
|
4
|
-
label
|
|
4
|
+
label?: string;
|
|
5
5
|
/** Whether the checkbox is currently partially selected */
|
|
6
6
|
intermediate?: boolean;
|
|
7
7
|
/** Whether the checkbox is in an error state */
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
1
|
+
import { Position } from '@xyflow/react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export type FlowPosition = Position | "none";
|
|
4
|
+
export type FlowTileProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
targetPosition?: FlowPosition;
|
|
9
|
+
sourcePosition?: FlowPosition;
|
|
10
|
+
};
|
|
11
|
+
export declare const FlowTile: ({ children, selected, className, targetPosition, sourcePosition, }: FlowTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type KeyValueListProps = {
|
|
3
|
+
items: Record<string, ReactNode>;
|
|
4
|
+
columns?: 1 | 2 | 3 | 4;
|
|
5
|
+
className?: string;
|
|
6
|
+
keyClassName?: string;
|
|
7
|
+
valueClassName?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function KeyValueList({ items, columns, className, keyClassName, valueClassName, }: KeyValueListProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './KeyValueList';
|
package/dist/hooks/index.d.ts
CHANGED