@hubspot/ui-extensions 0.9.5 → 0.9.6

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.
@@ -806,3 +806,27 @@ export declare const TimeInput: "TimeInput" & {
806
806
  readonly props?: types.TimeInputProps | undefined;
807
807
  readonly children?: true | undefined;
808
808
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"TimeInput", types.TimeInputProps, true>>;
809
+ /**
810
+ * The `CurrencyInput` component renders a currency input field with proper formatting,
811
+ * currency symbols, and locale-specific display patterns. Commonly used within the `Form` component.
812
+ *
813
+ * **Links:**
814
+ *
815
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/currency-input Docs}
816
+ */
817
+ export declare const CurrencyInput: "CurrencyInput" & {
818
+ readonly type?: "CurrencyInput" | undefined;
819
+ readonly props?: types.CurrencyInputProps | undefined;
820
+ readonly children?: true | undefined;
821
+ } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"CurrencyInput", types.CurrencyInputProps, true>>;
822
+ /**
823
+ * The `Inline` component spreads aligns its children horizontally (along the x-axis).
824
+ *
825
+ * **Links:**
826
+ *
827
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/inline Docs}
828
+ */ export declare const Inline: "Inline" & {
829
+ readonly type?: "Inline" | undefined;
830
+ readonly props?: types.InlineProps | undefined;
831
+ readonly children?: true | undefined;
832
+ } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Inline", types.InlineProps, true>>;
@@ -542,3 +542,19 @@ export const SearchInput = createRemoteReactComponent('SearchInput');
542
542
  * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/time-input Docs}
543
543
  */
544
544
  export const TimeInput = createRemoteReactComponent('TimeInput');
545
+ /**
546
+ * The `CurrencyInput` component renders a currency input field with proper formatting,
547
+ * currency symbols, and locale-specific display patterns. Commonly used within the `Form` component.
548
+ *
549
+ * **Links:**
550
+ *
551
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/currency-input Docs}
552
+ */
553
+ export const CurrencyInput = createRemoteReactComponent('CurrencyInput');
554
+ /**
555
+ * The `Inline` component spreads aligns its children horizontally (along the x-axis).
556
+ *
557
+ * **Links:**
558
+ *
559
+ * - {@link https://developers.hubspot.com/docs/reference/ui-components/standard-components/inline Docs}
560
+ */ export const Inline = createRemoteReactComponent('Inline');
@@ -15,12 +15,6 @@ declare const MediaObject: "MediaObject" & {
15
15
  readonly children?: true | undefined;
16
16
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"MediaObject", experimentalTypes.MediaObjectProps, true>>;
17
17
  /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
18
- declare const Inline: "Inline" & {
19
- readonly type?: "Inline" | undefined;
20
- readonly props?: experimentalTypes.InlineProps | undefined;
21
- readonly children?: true | undefined;
22
- } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"Inline", experimentalTypes.InlineProps, true>>;
23
- /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
24
18
  declare const Stack2: "Stack2" & {
25
19
  readonly type?: "Stack2" | undefined;
26
20
  readonly props?: experimentalTypes.Stack2Props | undefined;
@@ -85,12 +79,6 @@ declare const FileInput: "FileInput" & {
85
79
  readonly children?: true | undefined;
86
80
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"FileInput", experimentalTypes.FileInputProps, true>>;
87
81
  /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
88
- declare const CurrencyInput: "CurrencyInput" & {
89
- readonly type?: "CurrencyInput" | undefined;
90
- readonly props?: experimentalTypes.CurrencyInputProps | undefined;
91
- readonly children?: true | undefined;
92
- } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"CurrencyInput", experimentalTypes.CurrencyInputProps, true>>;
93
- /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
94
82
  declare const HeaderActions: "HeaderActions" & {
95
83
  readonly type?: "HeaderActions" | undefined;
96
84
  readonly props?: experimentalTypes.HeaderActionsProps | undefined;
@@ -108,4 +96,4 @@ declare const SecondaryHeaderActionButton: "SecondaryHeaderActionButton" & {
108
96
  readonly props?: experimentalTypes.HeaderActionButtonProps | undefined;
109
97
  readonly children?: true | undefined;
110
98
  } & import("@remote-ui/react").ReactComponentTypeFromRemoteComponentType<import("@remote-ui/types").RemoteComponentType<"SecondaryHeaderActionButton", experimentalTypes.HeaderActionButtonProps, true>>;
111
- export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, CurrencyInput, HeaderActions, PrimaryHeaderActionButton, SecondaryHeaderActionButton, };
99
+ export { Iframe, MediaObject, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, HeaderActions, PrimaryHeaderActionButton, SecondaryHeaderActionButton, };
@@ -8,8 +8,6 @@ const MediaObject = createRemoteReactComponent('MediaObject', {
8
8
  fragmentProps: ['itemRight', 'itemLeft'],
9
9
  });
10
10
  /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
11
- const Inline = createRemoteReactComponent('Inline');
12
- /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
13
11
  const Stack2 = createRemoteReactComponent('Stack2');
14
12
  /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
15
13
  const Center = createRemoteReactComponent('Center');
@@ -38,8 +36,6 @@ const ExpandableText = createRemoteReactComponent('ExpandableText');
38
36
  const Popover = createRemoteReactComponent('Popover');
39
37
  const FileInput = createRemoteReactComponent('FileInput');
40
38
  /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
41
- const CurrencyInput = createRemoteReactComponent('CurrencyInput');
42
- /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
43
39
  const HeaderActions = createRemoteReactComponent('HeaderActions');
44
40
  /** @experimental This component is experimental. Avoid using it in production due to potential breaking changes. Your feedback is valuable for improvements. Stay tuned for updates. */
45
41
  const PrimaryHeaderActionButton = createRemoteReactComponent('PrimaryHeaderActionButton', {
@@ -49,4 +45,4 @@ const PrimaryHeaderActionButton = createRemoteReactComponent('PrimaryHeaderActio
49
45
  const SecondaryHeaderActionButton = createRemoteReactComponent('SecondaryHeaderActionButton', {
50
46
  fragmentProps: ['overlay'],
51
47
  });
52
- export { Iframe, MediaObject, Inline, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, CurrencyInput, HeaderActions, PrimaryHeaderActionButton, SecondaryHeaderActionButton, };
48
+ export { Iframe, MediaObject, Stack2, Center, SimpleGrid, GridItem, Grid, SettingsView, ExpandableText, Popover, FileInput, HeaderActions, PrimaryHeaderActionButton, SecondaryHeaderActionButton, };
@@ -19,16 +19,6 @@ export type FlexJustify = 'center' | 'end' | 'start' | 'around' | 'between';
19
19
  * @experimental do not use in production
20
20
  */
21
21
  export type FlexAlign = 'start' | 'center' | 'baseline' | 'end' | 'stretch';
22
- /**
23
- * @ignore
24
- * @experimental do not use in production
25
- */
26
- export interface InlineProps extends BaseLayout {
27
- justify?: FlexJustify;
28
- align?: FlexAlign;
29
- gap?: AllDistances;
30
- children?: ReactNode;
31
- }
32
22
  /**
33
23
  * @ignore
34
24
  * @experimental do not use in production
@@ -252,31 +242,6 @@ export interface BaseInputProps<T = string, V = string> {
252
242
  * @ignore
253
243
  * @experimental do not use in production
254
244
  */
255
- type BaseInputForNumber = Omit<BaseInputProps<number, number>, 'onInput'>;
256
- /**
257
- * @ignore
258
- * @experimental do not use in production
259
- */
260
- export interface CurrencyInputProps extends BaseInputForNumber {
261
- /**
262
- * ISO 4217 currency code (e.g., "USD", "EUR", "JPY")
263
- * @defaultValue "USD"
264
- */
265
- currency?: string;
266
- /**
267
- * Sets the number of decimal places for the currency
268
- * If not provided, defaults to currency-specific precision
269
- */
270
- precision?: number;
271
- /**
272
- * Sets the lower bound of the input
273
- */
274
- min?: number;
275
- /**
276
- * Sets the upper bound of the input
277
- */
278
- max?: number;
279
- }
280
245
  /**
281
246
  * @ignore
282
247
  * @experimental do not use in production
package/dist/types.d.ts CHANGED
@@ -1084,6 +1084,31 @@ export interface NumberInputProps extends BaseInputForNumber {
1084
1084
  /** @deprecated use onChange instead. It doesn't guarantee valid format */
1085
1085
  onInput?: (value: number) => void;
1086
1086
  }
1087
+ /**
1088
+ * The props type for {@link !components.CurrencyInput}.
1089
+ *
1090
+ * @category Component Props
1091
+ */
1092
+ export interface CurrencyInputProps extends BaseInputForNumber {
1093
+ /**
1094
+ * ISO 4217 currency code (e.g., "USD", "EUR", "JPY")
1095
+ * @defaultValue "USD"
1096
+ */
1097
+ currency?: string;
1098
+ /**
1099
+ * Sets the number of decimal places for the currency
1100
+ * If not provided, defaults to currency-specific precision
1101
+ */
1102
+ precision?: number;
1103
+ /**
1104
+ * Sets the lower bound of the input
1105
+ */
1106
+ min?: number;
1107
+ /**
1108
+ * Sets the upper bound of the input
1109
+ */
1110
+ max?: number;
1111
+ }
1087
1112
  /**
1088
1113
  * The props type for {@link !components.StepperInput}.
1089
1114
  *
@@ -1356,6 +1381,36 @@ export interface BoxProps {
1356
1381
  */
1357
1382
  flex?: 'initial' | 'auto' | 'none' | number;
1358
1383
  }
1384
+ export type FlexJustify = 'center' | 'end' | 'start' | 'around' | 'between';
1385
+ export type FlexAlign = 'start' | 'center' | 'baseline' | 'end' | 'stretch';
1386
+ /**
1387
+ * The props type for {@link !components.Inline}.
1388
+ *
1389
+ * @category Component Props
1390
+ */
1391
+ export interface InlineProps {
1392
+ /**
1393
+ * Sets the content that will render inside the component. This prop is passed implicitly by providing sub-components.
1394
+ *
1395
+ */
1396
+ children?: ReactNode;
1397
+ /**
1398
+ * Distributes components along the main axis using the available free space.
1399
+ * @defaultValue `"start"`
1400
+ */
1401
+ justify?: FlexJustify;
1402
+ /**
1403
+ * Distributes components along the cross-axis using the available free space.
1404
+ * @defaultValue `"center"`
1405
+ */
1406
+ align?: FlexAlign;
1407
+ /**
1408
+ * Sets the spacing between components.
1409
+ *
1410
+ * @defaultValue `"flush"`
1411
+ */
1412
+ gap?: AllDistances;
1413
+ }
1359
1414
  /**
1360
1415
  * The props type for {@link !components.Link}.
1361
1416
  *
@@ -1670,15 +1725,6 @@ export interface BaseSelectProps {
1670
1725
  *
1671
1726
  */
1672
1727
  validationMessage?: string;
1673
- /**
1674
- * The options to display in the dropdown menu.
1675
- */
1676
- options: {
1677
- /** Will be used as the display text. **/
1678
- label: string;
1679
- /** Should be the option's unique identifier, which is submitted with the form. **/
1680
- value: string | number;
1681
- }[];
1682
1728
  /**
1683
1729
  * The variant type for the select.
1684
1730
  *
@@ -1696,7 +1742,7 @@ export interface SelectProps extends BaseSelectProps {
1696
1742
  * The value of the select input.
1697
1743
  *
1698
1744
  */
1699
- value?: string | number;
1745
+ value?: string | number | boolean;
1700
1746
  /**
1701
1747
  * A callback function that is invoked when the value is committed.
1702
1748
  *
@@ -1717,6 +1763,15 @@ export interface SelectProps extends BaseSelectProps {
1717
1763
  * @event
1718
1764
  */
1719
1765
  onInput?: (value: string) => void;
1766
+ /**
1767
+ * The options to display in the dropdown menu.
1768
+ */
1769
+ options: {
1770
+ /** Will be used as the display text. **/
1771
+ label: string;
1772
+ /** Should be the option's unique identifier, which is submitted with the form. **/
1773
+ value: string | number | boolean;
1774
+ }[];
1720
1775
  }
1721
1776
  /**
1722
1777
  * The props type for {@link !components.MultiSelect}.
@@ -1735,6 +1790,15 @@ export interface MultiSelectProps extends BaseSelectProps {
1735
1790
  * @event
1736
1791
  */
1737
1792
  onChange?: (value: NonNullable<MultiSelectProps['value']>) => void;
1793
+ /**
1794
+ * The options to display in the dropdown menu.
1795
+ */
1796
+ options: {
1797
+ /** Will be used as the display text. **/
1798
+ label: string;
1799
+ /** Should be the option's unique identifier, which is submitted with the form. **/
1800
+ value: string | number;
1801
+ }[];
1738
1802
  }
1739
1803
  /**
1740
1804
  * The props type for {@link !components.StatisticsTrend}.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
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": "8344193a13ab5874924b02d67413dad052558ecf"
69
+ "gitHead": "1b458008ea50e3fb395db1766239aea3abb6753e"
70
70
  }