@hubspot/ui-extensions 0.8.0 → 0.8.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/dist/coreComponents.d.ts +5 -0
- package/dist/coreComponents.js +1 -0
- package/dist/types.d.ts +49 -0
- package/package.json +2 -2
package/dist/coreComponents.d.ts
CHANGED
|
@@ -206,3 +206,8 @@ export declare const DateInput: "DateInput" & {
|
|
|
206
206
|
readonly props?: types.DateInputProps | undefined;
|
|
207
207
|
readonly children?: true | undefined;
|
|
208
208
|
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"DateInput", types.DateInputProps, true>>;
|
|
209
|
+
export declare const Checkbox: "Checkbox" & {
|
|
210
|
+
readonly type?: "Checkbox" | undefined;
|
|
211
|
+
readonly props?: types.CheckboxProps | undefined;
|
|
212
|
+
readonly children?: true | undefined;
|
|
213
|
+
} & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Checkbox", types.CheckboxProps, true>>;
|
package/dist/coreComponents.js
CHANGED
|
@@ -44,3 +44,4 @@ export const Accordion = createRemoteReactComponent('Accordion');
|
|
|
44
44
|
export const MultiSelect = createRemoteReactComponent('MultiSelect');
|
|
45
45
|
export const Flex = createRemoteReactComponent('Flex');
|
|
46
46
|
export const DateInput = createRemoteReactComponent('DateInput');
|
|
47
|
+
export const Checkbox = createRemoteReactComponent('Checkbox');
|
package/dist/types.d.ts
CHANGED
|
@@ -787,6 +787,55 @@ interface Team {
|
|
|
787
787
|
name: string;
|
|
788
788
|
teammates: number[];
|
|
789
789
|
}
|
|
790
|
+
export interface CheckboxProps {
|
|
791
|
+
/**
|
|
792
|
+
* A string representing the value of the checkbox. This is not displayed on the client-side,
|
|
793
|
+
* but on the server this is the value given to the data submitted with the checkbox's name.
|
|
794
|
+
*/
|
|
795
|
+
value?: string;
|
|
796
|
+
/**
|
|
797
|
+
* The current status of the checkbox.
|
|
798
|
+
*/
|
|
799
|
+
checked?: boolean;
|
|
800
|
+
/**
|
|
801
|
+
* When set to `true`, the option cannot be selected.
|
|
802
|
+
*/
|
|
803
|
+
readonly?: boolean;
|
|
804
|
+
/**
|
|
805
|
+
* The string that displays below the toggle.
|
|
806
|
+
*/
|
|
807
|
+
description?: string;
|
|
808
|
+
/**
|
|
809
|
+
* The unique identifier for the checkbox element.
|
|
810
|
+
*/
|
|
811
|
+
name?: string;
|
|
812
|
+
/**
|
|
813
|
+
* The size variation of the checkbox.
|
|
814
|
+
*
|
|
815
|
+
* @defaultValue `"default"`
|
|
816
|
+
*/
|
|
817
|
+
variant?: 'default' | 'small';
|
|
818
|
+
/**
|
|
819
|
+
* A function that is called with the checkbox status changes.
|
|
820
|
+
*
|
|
821
|
+
* @event
|
|
822
|
+
*/
|
|
823
|
+
onChange?: (checked: boolean, value: string) => void;
|
|
824
|
+
/** The text that displays in the dropdown menu. */
|
|
825
|
+
children?: React.ReactNode;
|
|
826
|
+
/**
|
|
827
|
+
* Use the inline prop to arrange checkboxes side-by-side.
|
|
828
|
+
*/
|
|
829
|
+
inline?: boolean;
|
|
830
|
+
/**
|
|
831
|
+
* When set to `true`, the option will be selected by default.
|
|
832
|
+
*/
|
|
833
|
+
initialIsChecked?: boolean;
|
|
834
|
+
/**
|
|
835
|
+
* Accessibility label. It should be present when the checkbox has no label(children).
|
|
836
|
+
*/
|
|
837
|
+
'aria-label'?: string;
|
|
838
|
+
}
|
|
790
839
|
export type ToggleGroupOption = {
|
|
791
840
|
/** The text that displays in the dropdown menu. */
|
|
792
841
|
label: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"typescript": "5.0.4"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "5fd5fe43bc0b09750653dd7121d56bf0d60788bb"
|
|
54
54
|
}
|