@hubspot/ui-extensions 0.7.0 → 0.7.2

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 CHANGED
@@ -23,7 +23,7 @@ React components and utilities for extending HubSpot's UI.
23
23
  - [Input](#input)
24
24
  - [Link](#link)
25
25
  - [LoadingSpinner](#loadingspinner)
26
- - [Multiselect](#multiselect)
26
+ - [MultiSelect](#multiselect)
27
27
  - [NumberInput](#numberInput)
28
28
  - [ProgressBar](#progressbar)
29
29
  - [Select](#select)
@@ -391,7 +391,15 @@ interface DateInputProps {
391
391
  max?: { year: number; month: number; date: number };
392
392
  minValidationMessage?: string;
393
393
  maxValidationMessage?: string;
394
- format?: 'YYYY-MM-DD' | 'L' | 'LL' | 'll';
394
+ format?:
395
+ | 'YYYY-MM-DD'
396
+ | 'L'
397
+ | 'LL'
398
+ | 'll'
399
+ | 'short'
400
+ | 'long'
401
+ | 'medium'
402
+ | 'standard';
395
403
  timezone?: 'userTz' | 'portalTz';
396
404
  clearButtonLabel?: string;
397
405
  todayButtonLabel?: string;
@@ -430,7 +438,6 @@ interface DateInputProps {
430
438
  - standard: `1986-09-04`
431
439
  - L: `09/04/1986`
432
440
  - LL: `September 4, 1986`
433
- - l: `9/4/1986`
434
441
  - ll : `Sep 4, 1986`
435
442
  - YYYY-MM-DD: `1986-09-04`
436
443
 
@@ -999,10 +1006,10 @@ const Extension = () => {
999
1006
  return <LoadingSpinner label="Loading..." />;
1000
1007
  };
1001
1008
  ```
1002
- ### Multiselect
1009
+ ### MultiSelect
1003
1010
 
1004
1011
  ```javascript
1005
- import { Multiselect } from '@hubspot/ui-extensions';
1012
+ import { MultiSelect } from '@hubspot/ui-extensions';
1006
1013
  ```
1007
1014
 
1008
1015
  ### Props
@@ -1024,13 +1031,14 @@ interface MultiSelectProps {
1024
1031
  label: string;
1025
1032
  value: string | number;
1026
1033
  }[];
1034
+ variant?: 'transparent' | 'input';
1027
1035
  }
1028
1036
  ```
1029
1037
 
1030
1038
  | Prop | Type | Default | Description |
1031
1039
  | --- | --- | --- | --- |
1032
- | `label` | `string` | `N/A` | The label text to display for the select element. |
1033
- | `name` | `string` | `N/A` | The unique identifier for the select element. |
1040
+ | `label` | `string(optional)` | `N/A` | The label text to display for the select element. |
1041
+ | `name` | `string(optional)` | `N/A` | The unique identifier for the select element. |
1034
1042
  | `value` | `Array<string \| number>` | `N/A` | The value of the select input. |
1035
1043
  | `required` | `boolean` | `false` | Determines if the required indicator should be displayed. |
1036
1044
  | `readOnly` | `boolean` | `false` | Determines if the field is editable or not. |
@@ -1041,6 +1049,7 @@ interface MultiSelectProps {
1041
1049
  | `validationMessage` | `string(optional)` | `''` | The text to show if the input has an error. |
1042
1050
  | `onChange` | `(value: Array<string \| number>) => void` | `N/A` | Function that is called with the new value when it is updated. |
1043
1051
  | `options` | `Array<{label: string; value: string \| number}>` | `N/A` | Array of options to be displayed in the select. `label` will be used as the display text in the dropdown list and `value` should be a **unique** identifier. `value` is the data that will be submitted with the form. |
1052
+ | `variant` | `'transparent' \| 'input' `| `input` | Sets the visual styles of the button used for the anchor of the component. |
1044
1053
 
1045
1054
  ##### Usage
1046
1055
 
package/dist/types.d.ts CHANGED
@@ -137,6 +137,7 @@ export interface BaseSelectProps {
137
137
  label: string;
138
138
  value: string | number;
139
139
  }[];
140
+ variant?: 'transparent' | 'input';
140
141
  }
141
142
  export interface SelectProps extends BaseSelectProps {
142
143
  value?: string | number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hubspot/ui-extensions",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,7 +9,8 @@
9
9
  "clean": "rm -rf dist/",
10
10
  "build": "npm run clean && tsc",
11
11
  "watch": "npm run clean && tsc --watch",
12
- "prepare": "npm run build"
12
+ "prepare": "npm run build",
13
+ "test": "echo 'No tests configured for @hubspot/ui-extensions'"
13
14
  },
14
15
  "files": [
15
16
  "dist/**/*"
@@ -48,5 +49,5 @@
48
49
  "devDependencies": {
49
50
  "typescript": "5.0.4"
50
51
  },
51
- "gitHead": "60f780b26b92ab097b24f162bf485fde5fd26528"
52
+ "gitHead": "291eae6851c5dc9be36952059ab8a7506e08b93b"
52
53
  }