@narmi/design_system 6.32.0 → 6.33.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.
Files changed (56) hide show
  1. package/README.md +12 -7
  2. package/dist/index.js +55 -46
  3. package/dist/index.js.map +1 -1
  4. package/dist/style.css +1 -1
  5. package/dist/style.css.map +1 -1
  6. package/dist/types/AutocompleteModal/Item.d.ts +3 -4
  7. package/dist/types/AutocompleteModal/Item.d.ts.map +1 -1
  8. package/dist/types/AutocompleteModal/index.d.ts +3 -3
  9. package/dist/types/Combobox/ComboboxAction.d.ts +2 -3
  10. package/dist/types/Combobox/ComboboxAction.d.ts.map +1 -1
  11. package/dist/types/Combobox/ComboboxCategory.d.ts +2 -3
  12. package/dist/types/Combobox/ComboboxCategory.d.ts.map +1 -1
  13. package/dist/types/Combobox/ComboboxHeading.d.ts +2 -3
  14. package/dist/types/Combobox/ComboboxHeading.d.ts.map +1 -1
  15. package/dist/types/Combobox/ComboboxItem.d.ts +3 -4
  16. package/dist/types/Combobox/ComboboxItem.d.ts.map +1 -1
  17. package/dist/types/Combobox/index.d.ts +9 -9
  18. package/dist/types/DisabledShim/index.d.ts +2 -3
  19. package/dist/types/DisabledShim/index.d.ts.map +1 -1
  20. package/dist/types/Error/index.d.ts +2 -3
  21. package/dist/types/Error/index.d.ts.map +1 -1
  22. package/dist/types/FormSection/index.d.ts +2 -3
  23. package/dist/types/FormSection/index.d.ts.map +1 -1
  24. package/dist/types/IconButton/index.d.ts +10 -11
  25. package/dist/types/IconButton/index.d.ts.map +1 -1
  26. package/dist/types/LoadingShim/index.d.ts +4 -5
  27. package/dist/types/LoadingShim/index.d.ts.map +1 -1
  28. package/dist/types/MenuButton/MenuButtonItem.d.ts +4 -5
  29. package/dist/types/MenuButton/MenuButtonItem.d.ts.map +1 -1
  30. package/dist/types/MenuButton/index.d.ts +4 -4
  31. package/dist/types/MenuButton/index.d.ts.map +1 -1
  32. package/dist/types/MultiSelect/MultiSelectItem.d.ts +4 -5
  33. package/dist/types/MultiSelect/MultiSelectItem.d.ts.map +1 -1
  34. package/dist/types/MultiSelect/index.d.ts +4 -4
  35. package/dist/types/Pagination/index.d.ts +5 -6
  36. package/dist/types/Pagination/index.d.ts.map +1 -1
  37. package/dist/types/ResponsiveFlex/index.d.ts +6 -7
  38. package/dist/types/ResponsiveFlex/index.d.ts.map +1 -1
  39. package/dist/types/Select/SelectAction.d.ts +2 -3
  40. package/dist/types/Select/SelectAction.d.ts.map +1 -1
  41. package/dist/types/Select/SelectCategory.d.ts +4 -5
  42. package/dist/types/Select/SelectCategory.d.ts.map +1 -1
  43. package/dist/types/Select/SelectItem.d.ts +3 -4
  44. package/dist/types/Select/SelectItem.d.ts.map +1 -1
  45. package/dist/types/Select/index.d.ts +9 -9
  46. package/dist/types/TextInput/index.d.ts +1 -0
  47. package/dist/types/TextInput/index.d.ts.map +1 -1
  48. package/dist/types/TimelineEvent/index.d.ts +8 -12
  49. package/dist/types/TimelineEvent/index.d.ts.map +1 -1
  50. package/dist/types/hooks/useMediaQuery/index.d.ts +7 -0
  51. package/dist/types/hooks/useMediaQuery/index.d.ts.map +1 -0
  52. package/dist/types/hooks/useOnClickOutside/index.d.ts +6 -0
  53. package/dist/types/hooks/useOnClickOutside/index.d.ts.map +1 -0
  54. package/dist/types/util/AsElement.d.ts +2 -3
  55. package/dist/types/util/AsElement.d.ts.map +1 -1
  56. package/package.json +17 -16
package/README.md CHANGED
@@ -70,8 +70,8 @@ Refer to the [**Changelog**](https://github.com/narmi/design_system/blob/main/CH
70
70
 
71
71
  ### Browser Support
72
72
 
73
- See [`.browserslistrc`](https://github.com/narmi/design_system/blob/main/.editorconfig) for officially supported browsers or
74
- run `npx browserslist` in this project locally to see a full list of targeted browsers.
73
+ See [`.browserslistrc`](https://github.com/narmi/design_system/blob/main/.browserslistrc) for officially supported browsers or
74
+ run `pnpm exec browserslist` in this project locally to see a full list of targeted browsers.
75
75
 
76
76
  This project does not support any version of Internet Explorer.
77
77
 
@@ -79,17 +79,22 @@ This project does not support any version of Internet Explorer.
79
79
 
80
80
  ### Local development
81
81
 
82
+ This project uses [pnpm](https://pnpm.io). With [Corepack](https://nodejs.org/api/corepack.html) enabled (`corepack enable`), the pinned version is used automatically.
83
+
82
84
  To run project locally:
83
85
 
84
86
  ```
85
87
  git clone git@github.com:narmi/design_system.git
86
88
  cd design_system
87
- npm run dev
89
+ pnpm install
90
+ pnpm run dev
88
91
  ```
89
92
 
90
- ### NPM scripts
93
+ Install settings are in [`pnpm-workspace.yaml`](./pnpm-workspace.yaml). If an install fails because a new dependency wants to run a build script, review it and configure it with `pnpm approve-builds`.
94
+
95
+ ### Package scripts
91
96
 
92
- | `npm run` command | Description |
97
+ | `pnpm run` command | Description |
93
98
  | ------------------ | ---------------------------------------------------- |
94
99
  | `build:jsdoc` | builds jsDoc documentation to `dist/` |
95
100
  | `build:tokens` | builds all distributions of design tokens to `dist/` |
@@ -248,7 +253,7 @@ In rare circumstances, you may need to manually publish a version of NDS outside
248
253
 
249
254
  #### Publishing a beta version
250
255
 
251
- 1. Rebuild NDS (`npm run build`)
256
+ 1. Rebuild NDS (`pnpm run build`)
252
257
  2. Update the `version` field of package.json to be a beta of the next minor.
253
258
  For example, you would change `2.35.2` to `2.36.0-beta.0`.
254
259
  DO NOT COMMIT THIS CHANGE.
@@ -257,7 +262,7 @@ In rare circumstances, you may need to manually publish a version of NDS outside
257
262
 
258
263
  If you need to make additional changes after the beta is published...
259
264
 
260
- 1. Rebuild NDS (`npm run build`)
265
+ 1. Rebuild NDS (`pnpm run build`)
261
266
  2. Bump the beta version number in package.json (`2.36.0-beta.0` -> `2.36.0-beta.1`)
262
267
  3. Install the new beta version in your consuming application.
263
268