@alixpartners/ui-components 2.1.2 → 2.3.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 (71) hide show
  1. package/README.md +99 -99
  2. package/dist/DragAndDrop.utils-D3xTV9EK.js +30 -0
  3. package/dist/ToastProvider-D5LImZ-Q.js +1136 -0
  4. package/dist/assets/Dialog.css +1 -1
  5. package/dist/assets/NavBar.css +1 -1
  6. package/dist/assets/SplitButton.css +1 -1
  7. package/dist/assets/Tooltip.css +1 -1
  8. package/dist/components/Banner/Banner.test.js +1 -1
  9. package/dist/components/Button/Button.test.js +124 -3217
  10. package/dist/components/Checkbox/Checkbox.js +7 -6
  11. package/dist/components/Checkbox/Checkbox.test.js +47 -47
  12. package/dist/components/Creatable/Creatable.js +107 -108
  13. package/dist/components/Dialog/Dialog.d.ts +21 -7
  14. package/dist/components/Dialog/Dialog.js +296 -61
  15. package/dist/components/Dialog/Dialog.test.d.ts +1 -0
  16. package/dist/components/Dialog/Dialog.test.js +368 -0
  17. package/dist/components/DragAndDrop/DragAndDrop.d.ts +56 -1
  18. package/dist/components/DragAndDrop/DragAndDrop.js +144 -83
  19. package/dist/components/DragAndDrop/DragAndDrop.test.d.ts +1 -0
  20. package/dist/components/DragAndDrop/DragAndDrop.test.js +606 -0
  21. package/dist/components/DragAndDrop/DragAndDrop.utils.d.ts +30 -0
  22. package/dist/components/Dropdown/Dropdown.js +80 -81
  23. package/dist/components/FilePicker/FilePicker.test.js +1 -1
  24. package/dist/components/Ghost/Ghost.test.js +6 -6
  25. package/dist/components/Input/Input.test.js +2 -2
  26. package/dist/components/NavBar/NavBar.js +16 -16
  27. package/dist/components/Radio/Radio.js +1 -1
  28. package/dist/components/RadioGroup/RadioGroup.js +1 -1
  29. package/dist/components/RadioGroup/RadioGroup.test.js +1 -1
  30. package/dist/components/Search/Search.test.js +1 -1
  31. package/dist/components/SplitButton/SplitButton.js +8 -9
  32. package/dist/components/SplitButton/SplitButton.test.js +1 -1
  33. package/dist/components/Tag/Tag.test.js +1 -1
  34. package/dist/components/TagsFields/TagsFields.js +3 -4
  35. package/dist/components/Textarea/Textarea.js +68 -70
  36. package/dist/components/Textarea/Textarea.test.js +2 -2
  37. package/dist/components/Toast/Toast.d.ts +5 -19
  38. package/dist/components/Toast/Toast.js +65 -62
  39. package/dist/components/Toast/Toast.test.js +47 -30
  40. package/dist/components/ToastProvider/ToastContext.d.ts +11 -0
  41. package/dist/components/ToastProvider/ToastProvider.d.ts +19 -0
  42. package/dist/components/ToastProvider/ToastProvider.js +7 -0
  43. package/dist/components/ToastProvider/ToastProvider.test.d.ts +1 -0
  44. package/dist/components/ToastProvider/ToastProvider.test.js +264 -0
  45. package/dist/components/ToastProvider/types.d.ts +54 -0
  46. package/dist/components/ToastProvider/useToast.d.ts +28 -0
  47. package/dist/components/Toggle/Toggle.js +31 -30
  48. package/dist/components/Toggle/Toggle.test.js +9 -9
  49. package/dist/components/Tooltip/Tooltip.js +20 -19
  50. package/dist/{index-2H7slGYV.js → index-7CBv-Jx6.js} +1 -1
  51. package/dist/{index-DpfPnSMn.js → index-BymOxiM6.js} +2 -2
  52. package/dist/index-C-3_YVJ1.js +1539 -0
  53. package/dist/{index-BKtdMA_j.js → index-C4ffg1vf.js} +24 -23
  54. package/dist/{index-BGZDIjm9.js → index-Chv2KjIL.js} +171 -168
  55. package/dist/{index-BJXIvJs4.js → index-CpsmI33B.js} +24 -23
  56. package/dist/index-CxAtPSMM.js +27 -0
  57. package/dist/{index-CjQV7MmW.js → index-DEphED6n.js} +11 -11
  58. package/dist/index-DM51yNMI.js +237 -0
  59. package/dist/{index-CVWHq7Pr.js → index-D_3jWVyV.js} +37 -36
  60. package/dist/index-DkTDHhag.js +3098 -0
  61. package/dist/index-DrR82jOT.js +142 -0
  62. package/dist/magic-string.es-uPKorP4O.js +663 -0
  63. package/dist/main.d.ts +5 -1
  64. package/dist/main.js +47 -40
  65. package/dist/useToast-Cz5MGKnw.js +11 -0
  66. package/dist/{vi.ClIskdbk-CFW_9sOK.js → vi.bdSIJ99Y-017e_Pkz.js} +9494 -10227
  67. package/dist/web.config +8 -8
  68. package/package.json +87 -84
  69. package/dist/index-DWydnyjJ.js +0 -245
  70. package/dist/index-DieLVN0p.js +0 -1664
  71. package/dist/magic-string.es-D4UQQyt0.js +0 -859
package/README.md CHANGED
@@ -1,99 +1,99 @@
1
- # AlixPartners UI Component Library
2
-
3
- A modern, reusable component library built with **[ReactJS](https://react.dev/)**.
4
-
5
- Version **2.0** has been **rebuilt from the ground up** to align with the latest **AlixPartners Design System** and deliver improved developer experience, accessibility, and performance.
6
-
7
- ‼️ **BETA Notice**: This release is **not yet production-ready**. While stable for development and testing, expect ongoing refinements, new components, and breaking changes before the full release.
8
-
9
- ## ✨ What’s New in 2.0
10
-
11
- - Completely redesigned architecture with modern build tooling ([Vite](https://vitejs.dev/))
12
- - Updated design tokens and styles aligned with AlixPartners Design System
13
- - Improved accessibility (a11y) and semantic HTML usage
14
- - Streamlined props API for cleaner integration
15
- - Enhanced Storybook documentation
16
- - Faster build & development workflows
17
-
18
- ### Version Support
19
-
20
- - v2.x — Active development (BETA)
21
- - v1.x — Maintained for legacy projects (no new features, critical fixes only)
22
-
23
- ---
24
-
25
- ## 🚀 Installation
26
-
27
- ```bash
28
- npm install @alixpartners/ui-components
29
- ```
30
-
31
- ## 🔧 Usage
32
-
33
- ```tsx
34
- import { YourComponent } from '@alixpartners/ui-components'
35
-
36
- function App() {
37
- return <YourComponent />
38
- }
39
- ```
40
-
41
- ## 🧱 Components
42
-
43
- Explore all available components and documentation in Storybook.
44
-
45
- To run it locally:
46
-
47
- ```bash
48
- npm run storybook
49
- ```
50
-
51
- ---
52
-
53
- ## 📦 Build
54
-
55
- To bundle the library for publishing:
56
-
57
- ```bash
58
- npm run build
59
- ```
60
-
61
- The output will be in the `dist/` directory.
62
-
63
- ### Usage in projects while developing
64
-
65
- When working on the library and testing it in another project:
66
-
67
- ```bash
68
- # In the component library root:
69
- npm link
70
-
71
- # In the consuming project's root:
72
- npm link alix-partners-react-components-test
73
- ```
74
-
75
- Then import components using the `alix-partners-react-components-test` import.
76
-
77
- ## 🧪 Testing
78
-
79
- ```bash
80
- npm run test
81
- ```
82
-
83
- #### 🧪 Test Coverage
84
-
85
- ```bash
86
- npm run coverage
87
- ```
88
-
89
- ## 📚 Publish
90
-
91
- To publish to npm:
92
-
93
- 1. Bump the version in `package.json`
94
- 2. Create a pull request in Azure DevOps to the `main` branch
95
- 3. This will automatically publish the library to `npm` once approved
96
-
97
- ## 🤝 Contributing
98
-
99
- The **AlixPartners UI Component Library** is a collaborative, community-driven project where contributions from all team members are encouraged and valued. If you’d like to add new components or improve existing ones, please see the CONTRIBUTING.md file.
1
+ # AlixPartners UI Component Library
2
+
3
+ A modern, reusable component library built with **[ReactJS](https://react.dev/)**.
4
+
5
+ Version **2.0** has been **rebuilt from the ground up** to align with the latest **AlixPartners Design System** and deliver improved developer experience, accessibility, and performance.
6
+
7
+ ‼️ **BETA Notice**: This release is **not yet production-ready**. While stable for development and testing, expect ongoing refinements, new components, and breaking changes before the full release.
8
+
9
+ ## ✨ What’s New in 2.0
10
+
11
+ - Completely redesigned architecture with modern build tooling ([Vite](https://vitejs.dev/))
12
+ - Updated design tokens and styles aligned with AlixPartners Design System
13
+ - Improved accessibility (a11y) and semantic HTML usage
14
+ - Streamlined props API for cleaner integration
15
+ - Enhanced Storybook documentation
16
+ - Faster build & development workflows
17
+
18
+ ### Version Support
19
+
20
+ - v2.x — Active development (BETA)
21
+ - v1.x — Maintained for legacy projects (no new features, critical fixes only)
22
+
23
+ ---
24
+
25
+ ## 🚀 Installation
26
+
27
+ ```bash
28
+ npm install @alixpartners/ui-components
29
+ ```
30
+
31
+ ## 🔧 Usage
32
+
33
+ ```tsx
34
+ import { YourComponent } from '@alixpartners/ui-components'
35
+
36
+ function App() {
37
+ return <YourComponent />
38
+ }
39
+ ```
40
+
41
+ ## 🧱 Components
42
+
43
+ Explore all available components and documentation in Storybook.
44
+
45
+ To run it locally:
46
+
47
+ ```bash
48
+ npm run storybook
49
+ ```
50
+
51
+ ---
52
+
53
+ ## 📦 Build
54
+
55
+ To bundle the library for publishing:
56
+
57
+ ```bash
58
+ npm run build
59
+ ```
60
+
61
+ The output will be in the `dist/` directory.
62
+
63
+ ### Usage in projects while developing
64
+
65
+ When working on the library and testing it in another project:
66
+
67
+ ```bash
68
+ # In the component library root:
69
+ npm link
70
+
71
+ # In the consuming project's root:
72
+ npm link alix-partners-react-components-test
73
+ ```
74
+
75
+ Then import components using the `alix-partners-react-components-test` import.
76
+
77
+ ## 🧪 Testing
78
+
79
+ ```bash
80
+ npm run test
81
+ ```
82
+
83
+ #### 🧪 Test Coverage
84
+
85
+ ```bash
86
+ npm run coverage
87
+ ```
88
+
89
+ ## 📚 Publish
90
+
91
+ To publish to npm:
92
+
93
+ 1. Bump the version in `package.json`
94
+ 2. Create a pull request in Azure DevOps to the `main` branch
95
+ 3. This will automatically publish the library to `npm` once approved
96
+
97
+ ## 🤝 Contributing
98
+
99
+ The **AlixPartners UI Component Library** is a collaborative, community-driven project where contributions from all team members are encouraged and valued. If you’d like to add new components or improve existing ones, please see the CONTRIBUTING.md file.
@@ -0,0 +1,30 @@
1
+ function u(r, e) {
2
+ const t = e.maxSize ? e.maxSize * 1024 * 1024 : Number.POSITIVE_INFINITY, o = new Set(e.fileExtensionsAllowed.map((l) => l.toLowerCase().replace(/^\./, ""))), s = r.size <= t, n = r.name.toLowerCase(), a = n.includes(".") ? n.split(".").pop() ?? "" : "", i = o.size === 0 || o.has(a);
3
+ return s ? i ? {
4
+ file: r
5
+ } : {
6
+ file: r,
7
+ error: `The file format is incorrect. Please make sure it is one of the extensions: ${e.fileExtensionsAllowed.join(", ")}.`,
8
+ errorCode: "INVALID_EXTENSION"
9
+ } : {
10
+ file: r,
11
+ error: `File size is too large. Must be up to ${e.maxSize}MB.`,
12
+ errorCode: "SIZE_TOO_LARGE"
13
+ };
14
+ }
15
+ function c(...r) {
16
+ return (e, t) => {
17
+ for (const o of r) {
18
+ const s = o(e, t);
19
+ if (s.error)
20
+ return s;
21
+ }
22
+ return {
23
+ file: e
24
+ };
25
+ };
26
+ }
27
+ export {
28
+ c,
29
+ u as d
30
+ };