@harnessio/ui 0.5.62 → 0.5.63
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/components.d.ts +40 -0
- package/dist/components.js +177 -176
- package/dist/{index-CNk3ORYm.js → index-BwCyII_n.js} +12706 -12505
- package/dist/{index-CNk3ORYm.js.map → index-BwCyII_n.js.map} +1 -1
- package/dist/index.d.ts +44 -0
- package/dist/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind.config.js +182 -144
- package/dist/tailwind.config.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ import { ButtonPropsRegular as ButtonPropsRegular_2 } from '..';
|
|
|
9
9
|
import { ChangeEvent } from 'react';
|
|
10
10
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
11
11
|
import { CheckboxProps as CheckboxProps_2 } from '..';
|
|
12
|
+
import { CheckboxTreeGroupProps } from './checkbox-tree-types';
|
|
13
|
+
import { CheckboxTreeItemProps } from './checkbox-tree-types';
|
|
14
|
+
import { CheckboxTreeRootProps } from './checkbox-tree-types';
|
|
12
15
|
import { ClassAttributes } from 'react';
|
|
13
16
|
import { ClassProp } from 'class-variance-authority/types';
|
|
14
17
|
import { ClassValue } from 'clsx';
|
|
@@ -799,6 +802,43 @@ declare interface CheckboxProps extends ComponentPropsWithoutRef<typeof Checkbox
|
|
|
799
802
|
captionVariant?: TextProps['variant'];
|
|
800
803
|
}
|
|
801
804
|
|
|
805
|
+
declare const CheckboxTree: {
|
|
806
|
+
Root: ForwardRefExoticComponent<CheckboxTreeRootProps & RefAttributes<HTMLDivElement>>;
|
|
807
|
+
Group: ForwardRefExoticComponent<CheckboxTreeGroupProps & RefAttributes<HTMLDivElement>>;
|
|
808
|
+
Item: ForwardRefExoticComponent<CheckboxTreeItemProps & RefAttributes<HTMLDivElement>>;
|
|
809
|
+
};
|
|
810
|
+
|
|
811
|
+
declare interface CheckboxTreeGroupProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
812
|
+
id: string;
|
|
813
|
+
label: React_2.ReactNode;
|
|
814
|
+
disabled?: boolean;
|
|
815
|
+
/** Icon rendered before the group label. Defaults to `folder`. */
|
|
816
|
+
icon?: IconV2NamesType;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare interface CheckboxTreeItemProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
820
|
+
id: string;
|
|
821
|
+
label: React_2.ReactNode;
|
|
822
|
+
disabled?: boolean;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
declare interface CheckboxTreeRootProps_2 extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
826
|
+
/** Controlled set of selected leaf ids. */
|
|
827
|
+
selectedIds: string[];
|
|
828
|
+
/** Called with the next set of selected leaf ids whenever the selection changes. */
|
|
829
|
+
onSelectionChange: (ids: string[]) => void;
|
|
830
|
+
/** Ids of groups that should start expanded. */
|
|
831
|
+
defaultExpandedIds?: string[];
|
|
832
|
+
/** Render a top-level "Select All" row. */
|
|
833
|
+
showSelectAll?: boolean;
|
|
834
|
+
/** Label for the "Select All" row. */
|
|
835
|
+
selectAllLabel?: string;
|
|
836
|
+
/** Render each group's leaf-descendant count next to its label, e.g. "Resources (16)". */
|
|
837
|
+
showCount?: boolean;
|
|
838
|
+
/** Disable the entire tree. */
|
|
839
|
+
disabled?: boolean;
|
|
840
|
+
}
|
|
841
|
+
|
|
802
842
|
/**
|
|
803
843
|
* Clamp a number between a minimum and maximum value.
|
|
804
844
|
* Ensures numeric values do not exceed expected bounds.
|
|
@@ -1320,6 +1360,10 @@ declare namespace components {
|
|
|
1320
1360
|
Input,
|
|
1321
1361
|
CheckboxProps,
|
|
1322
1362
|
Checkbox,
|
|
1363
|
+
CheckboxTree,
|
|
1364
|
+
CheckboxTreeRootProps_2 as CheckboxTreeRootProps,
|
|
1365
|
+
CheckboxTreeGroupProps_2 as CheckboxTreeGroupProps,
|
|
1366
|
+
CheckboxTreeItemProps_2 as CheckboxTreeItemProps,
|
|
1323
1367
|
RadioProps,
|
|
1324
1368
|
Radio,
|
|
1325
1369
|
CalendarProps,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as s } from "./index-Bvr23CG5.js";
|
|
2
|
-
import { i as e } from "./index-
|
|
2
|
+
import { i as e } from "./index-BwCyII_n.js";
|
|
3
3
|
import { i as a } from "./index-pfx6fxJo.js";
|
|
4
4
|
import { i as m } from "./index-C4bDY5-3.js";
|
|
5
5
|
import { i as f } from "./index-yGuTXfMI.js";
|