@hubspot/ui-extensions 0.8.56 → 0.9.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.
@@ -771,3 +771,14 @@ export declare const Illustration: "Illustration" & {
771
771
  readonly props?: types.IllustrationProps | undefined;
772
772
  readonly children?: true | undefined;
773
773
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Illustration", types.IllustrationProps, true>>;
774
+ /**
775
+ * The `Tooltip` component renders a tooltip for a component.
776
+ *
777
+ * **Links:**
778
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tooltip Documentation}
779
+ */
780
+ export declare const Tooltip: "Tooltip" & {
781
+ readonly type?: "Tooltip" | undefined;
782
+ readonly props?: types.TooltipProps | undefined;
783
+ readonly children?: true | undefined;
784
+ } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Tooltip", types.TooltipProps, true>>;
@@ -519,3 +519,10 @@ export const Tab = createRemoteReactComponent('Tab');
519
519
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/illustration Illustration Docs}
520
520
  */
521
521
  export const Illustration = createRemoteReactComponent('Illustration');
522
+ /**
523
+ * The `Tooltip` component renders a tooltip for a component.
524
+ *
525
+ * **Links:**
526
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/tooltip Documentation}
527
+ */
528
+ export const Tooltip = createRemoteReactComponent('Tooltip');
@@ -83,4 +83,16 @@ declare const FileInput: "FileInput" & {
83
83
  readonly props?: experimentalTypes.FileInputProps | undefined;
84
84
  readonly children?: true | undefined;
85
85
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"FileInput", experimentalTypes.FileInputProps, true>>;
86
- export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, };
86
+ /**
87
+ * The `SearchInput` component renders a search input that can be used to search for a value.
88
+ *
89
+ * **Links:**
90
+ *
91
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/search-input SearchInput Docs}
92
+ */
93
+ declare const SearchInput: "SearchInput" & {
94
+ readonly type?: "SearchInput" | undefined;
95
+ readonly props?: experimentalTypes.SearchInputProps | undefined;
96
+ readonly children?: true | undefined;
97
+ } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"SearchInput", experimentalTypes.SearchInputProps, true>>;
98
+ export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, SearchInput, };
@@ -38,4 +38,12 @@ const Popover = createRemoteReactComponent('Popover', {
38
38
  fragmentProps: ['header', 'body', 'footer'],
39
39
  });
40
40
  const FileInput = createRemoteReactComponent('FileInput');
41
- export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, };
41
+ /**
42
+ * The `SearchInput` component renders a search input that can be used to search for a value.
43
+ *
44
+ * **Links:**
45
+ *
46
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/search-input SearchInput Docs}
47
+ */
48
+ const SearchInput = createRemoteReactComponent('SearchInput');
49
+ export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, SearchInput, };
@@ -146,4 +146,42 @@ export interface FileInputProps {
146
146
  name: string;
147
147
  onChange: (event: any) => void;
148
148
  }
149
+ /**
150
+ * @ignore
151
+ * @experimental do not use in production
152
+ */
153
+ export interface SearchInputProps {
154
+ /** The label text to display for the search input. */
155
+ label: string;
156
+ /** The unique identifier for the input element. */
157
+ name: string;
158
+ /** The value of the input. */
159
+ value?: string;
160
+ /** Text that appears in the input when it has no value set. */
161
+ placeholder?: string;
162
+ /** Text that will appear in a tooltip next to the input label. */
163
+ tooltip?: string;
164
+ /** If true, displays a required indicator. */
165
+ required?: boolean;
166
+ /** If true, the field is not editable. */
167
+ readOnly?: boolean;
168
+ /** If true, the field is disabled. */
169
+ disabled?: boolean;
170
+ /** Instructional message to help understand the purpose of the input. */
171
+ description?: string;
172
+ /** If true, renders the error state and shows validationMessage as an error. */
173
+ error?: boolean;
174
+ /** The text to show under the input for error or success validations. Will display below the input*/
175
+ validationMessage?: string;
176
+ /** Called when the input value changes. */
177
+ onChange?: (value: string) => void;
178
+ /** Called every time the field is edited by the user. */
179
+ onInput?: (value: string) => void;
180
+ /** Called every time the field loses focus. */
181
+ onBlur?: (value: string) => void;
182
+ /** Called every time the field gets focused. */
183
+ onFocus?: (value: string) => void;
184
+ /** If true, shows a clear button to clear the input. Default is true. */
185
+ clearable?: boolean;
186
+ }
149
187
  export {};
package/dist/types.d.ts CHANGED
@@ -2391,6 +2391,17 @@ type DefaultToggleTypeProps = {
2391
2391
  * @category Component Props
2392
2392
  */
2393
2393
  export type ToggleGroupProps = CheckboxGroupProps | RadioButtonGroupProps | DefaultToggleTypeProps;
2394
+ export interface TooltipProps {
2395
+ /**
2396
+ * Sets the content to render on the screen, and serves as the trigger for the tooltip. This prop is passed implicitly by providing sub-components.
2397
+ */
2398
+ children: ReactNode;
2399
+ /**
2400
+ * Sets the position of the tooltip relative to its trigger element.
2401
+ * @default 'top'
2402
+ */
2403
+ placement?: 'top' | 'bottom' | 'left' | 'right';
2404
+ }
2394
2405
  /** @ignore */
2395
2406
  interface Team {
2396
2407
  id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.8.56",
3
+ "version": "0.9.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -66,5 +66,5 @@
66
66
  "ts-jest": "^29.1.1",
67
67
  "typescript": "5.0.4"
68
68
  },
69
- "gitHead": "ffd40cf0cff95bf11cb470142daf13ea320c95f0"
69
+ "gitHead": "acae89e4a44e12e37e149a2080563e56e729359e"
70
70
  }