@alixpartners/ui-components 2.4.4 → 2.5.1

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 (37) hide show
  1. package/dist/assets/Button.css +1 -1
  2. package/dist/assets/Datepicker.css +1 -0
  3. package/dist/assets/DragAndDrop.css +1 -1
  4. package/dist/assets/FilePicker.css +1 -1
  5. package/dist/assets/Illustration.css +1 -0
  6. package/dist/assets/NavBar.css +1 -1
  7. package/dist/assets/illustrations-map.d.ts +18 -0
  8. package/dist/components/Button/Button.d.ts +3 -1
  9. package/dist/components/Button/Button.js +23 -20
  10. package/dist/components/Button/Button.test.js +60 -54
  11. package/dist/components/Creatable/Creatable.js +1 -1
  12. package/dist/components/Datepicker/Datepicker.d.ts +22 -0
  13. package/dist/components/Datepicker/Datepicker.js +228 -0
  14. package/dist/components/Datepicker/Datepicker.test.d.ts +1 -0
  15. package/dist/components/Datepicker/Datepicker.test.js +40 -0
  16. package/dist/components/DragAndDrop/DragAndDrop.d.ts +2 -1
  17. package/dist/components/DragAndDrop/DragAndDrop.js +80 -76
  18. package/dist/components/Dropdown/Dropdown.js +1 -1
  19. package/dist/components/Illustration/Illustration.d.ts +3 -0
  20. package/dist/components/Illustration/Illustration.js +206 -0
  21. package/dist/components/Illustration/Illustration.test.d.ts +1 -0
  22. package/dist/components/Illustration/Illustration.test.js +40 -0
  23. package/dist/components/Illustration/constants.d.ts +34 -0
  24. package/dist/components/Illustration/types.d.ts +22 -0
  25. package/dist/components/Illustration/utils.d.ts +11 -0
  26. package/dist/components/NavBar/NavBar.js +123 -121
  27. package/dist/components/SplitButton/SplitButton.js +1 -1
  28. package/dist/components/TabNavigation/TabNavigation.d.ts +2 -1
  29. package/dist/components/TabNavigation/TabNavigation.js +4 -3
  30. package/dist/components/TagsFields/TagsFields.js +1 -1
  31. package/dist/components/Tooltip/Tooltip.js +1 -1
  32. package/dist/{index-C-3_YVJ1.js → index-D34Qo5Qx.js} +478 -473
  33. package/dist/{index-C4ffg1vf.js → index-DZ4Gof57.js} +1 -1
  34. package/dist/{index-D_3jWVyV.js → index-DgdVwltD.js} +1 -1
  35. package/dist/main.d.ts +2 -0
  36. package/dist/main.js +47 -43
  37. package/package.json +4 -3
@@ -3,7 +3,7 @@ import { u as G, d as O, P as _, c as P, b as H, f as K } from "./index-DM51yNMI
3
3
  import { P as $, D as j } from "./index-DrR82jOT.js";
4
4
  import { h as U, R as V, u as W, F as Z } from "./index-Chv2KjIL.js";
5
5
  import { u as q } from "./index-7CBv-Jx6.js";
6
- import { R as z, A as x, c as w, C as B, a as J } from "./index-C-3_YVJ1.js";
6
+ import { R as z, A as x, c as w, C as B, a as J } from "./index-D34Qo5Qx.js";
7
7
  import { P as E } from "./index-BymOxiM6.js";
8
8
  import { jsx as p } from "react/jsx-runtime";
9
9
  var m = "Popover", [b] = H(m, [
@@ -3,7 +3,7 @@ import { d as N, c as v, b as je, P as F, e as He, f as We, a as ze } from "./in
3
3
  import { u as Ze, c as pe, a as $e, I as qe, R as Je } from "./index-DEphED6n.js";
4
4
  import { P as Qe, D as et } from "./index-DrR82jOT.js";
5
5
  import { h as tt, u as nt, R as ot, F as rt } from "./index-Chv2KjIL.js";
6
- import { R as ct, A as at, c as ve, C as st, a as ut } from "./index-C-3_YVJ1.js";
6
+ import { R as ct, A as at, c as ve, C as st, a as ut } from "./index-D34Qo5Qx.js";
7
7
  import { P as H } from "./index-BymOxiM6.js";
8
8
  import { a as Me } from "./index-7CBv-Jx6.js";
9
9
  import { jsx as u } from "react/jsx-runtime";
package/dist/main.d.ts CHANGED
@@ -11,6 +11,7 @@ export { default as Ghost } from './components/Ghost/Ghost.tsx';
11
11
  export { default as Dropdown, type DropdownOption } from './components/Dropdown/Dropdown.tsx';
12
12
  export { default as FilePicker, useFilePickerContext, type FilePickerContextValue, } from './components/FilePicker/FilePicker.tsx';
13
13
  export { default as Search } from './components/Search/Search.tsx';
14
+ export { default as Datepicker } from './components/Datepicker/Datepicker';
14
15
  export { default as Toast } from './components/Toast/Toast.tsx';
15
16
  export { default as ToastProvider } from './components/ToastProvider/ToastProvider.tsx';
16
17
  export { useToast } from './components/ToastProvider/useToast.ts';
@@ -27,5 +28,6 @@ export { default as NavBar, type MenuItem, type Notifications, type UserProfile,
27
28
  export { default as Tag, type TagColors } from './components/Tag/Tag.tsx';
28
29
  export { default as Tooltip, type TooltipProps } from './components/Tooltip/Tooltip.tsx';
29
30
  export { default as Spinner } from './components/Spinner/Spinner.tsx';
31
+ export { default as Illustration, type IllustrationCategory, type IllustrationLevel, type IllustrationName, type IllustrationProps, } from './components/Illustration/Illustration.tsx';
30
32
  export { apLogos } from './assets/ap-logos';
31
33
  export type { ApIcon } from './assets/ap-icons-types';
package/dist/main.js CHANGED
@@ -5,58 +5,62 @@ import { default as l } from "./components/Input/Input.js";
5
5
  import { default as u } from "./components/Radio/Radio.js";
6
6
  import { default as m } from "./components/RadioGroup/RadioGroup.js";
7
7
  import { default as n } from "./components/Textarea/Textarea.js";
8
- import { default as g } from "./components/Toggle/Toggle.js";
9
- import { default as b } from "./components/Banner/Banner.js";
10
- import { default as D } from "./components/Ghost/Ghost.js";
11
- import { default as k } from "./components/Dropdown/Dropdown.js";
8
+ import { default as c } from "./components/Toggle/Toggle.js";
9
+ import { default as D } from "./components/Banner/Banner.js";
10
+ import { default as k } from "./components/Ghost/Ghost.js";
11
+ import { default as h } from "./components/Dropdown/Dropdown.js";
12
12
  import { default as C, useFilePickerContext as F } from "./components/FilePicker/FilePicker.js";
13
- import { default as S } from "./components/Search/Search.js";
14
- import { default as I } from "./components/Toast/Toast.js";
15
- import { T as R } from "./ToastProvider-D5LImZ-Q.js";
16
- import { u as w } from "./useToast-Cz5MGKnw.js";
17
- import { default as L } from "./components/Creatable/Creatable.js";
18
- import { default as q } from "./components/SplitButton/SplitButton.js";
19
- import { default as z } from "./components/DragAndDrop/DragAndDrop.js";
20
- import { c as H, d as J } from "./DragAndDrop.utils-D3xTV9EK.js";
21
- import { default as M } from "./components/Tab/Tab.js";
22
- import { default as Q } from "./components/TabNavigation/TabNavigation.js";
23
- import { default as W } from "./components/Dialog/Dialog.js";
24
- import { default as Y } from "./components/TagsFields/TagsFields.js";
25
- import { default as _ } from "./components/NavBar/NavBar.js";
26
- import { default as oo } from "./components/Tag/Tag.js";
27
- import { default as eo } from "./components/Tooltip/Tooltip.js";
28
- import { default as to } from "./components/Spinner/Spinner.js";
29
- import { a as so } from "./ap-logos-CwA4O8B7.js";
13
+ import { default as P } from "./components/Search/Search.js";
14
+ import { default as G } from "./components/Datepicker/Datepicker.js";
15
+ import { default as R } from "./components/Toast/Toast.js";
16
+ import { T as w } from "./ToastProvider-D5LImZ-Q.js";
17
+ import { u as L } from "./useToast-Cz5MGKnw.js";
18
+ import { default as q } from "./components/Creatable/Creatable.js";
19
+ import { default as z } from "./components/SplitButton/SplitButton.js";
20
+ import { default as H } from "./components/DragAndDrop/DragAndDrop.js";
21
+ import { c as K, d as M } from "./DragAndDrop.utils-D3xTV9EK.js";
22
+ import { default as Q } from "./components/Tab/Tab.js";
23
+ import { default as W } from "./components/TabNavigation/TabNavigation.js";
24
+ import { default as Y } from "./components/Dialog/Dialog.js";
25
+ import { default as _ } from "./components/TagsFields/TagsFields.js";
26
+ import { default as oo } from "./components/NavBar/NavBar.js";
27
+ import { default as eo } from "./components/Tag/Tag.js";
28
+ import { default as to } from "./components/Tooltip/Tooltip.js";
29
+ import { default as so } from "./components/Spinner/Spinner.js";
30
+ import { default as lo } from "./components/Illustration/Illustration.js";
31
+ import { a as xo } from "./ap-logos-CwA4O8B7.js";
30
32
  import './assets/main.css';export {
31
- b as Banner,
33
+ D as Banner,
32
34
  e as Button,
33
35
  t as Checkbox,
34
- L as Creatable,
35
- W as Dialog,
36
- z as DragAndDrop,
37
- k as Dropdown,
36
+ q as Creatable,
37
+ G as Datepicker,
38
+ Y as Dialog,
39
+ H as DragAndDrop,
40
+ h as Dropdown,
38
41
  C as FilePicker,
39
- D as Ghost,
42
+ k as Ghost,
40
43
  s as Icon,
44
+ lo as Illustration,
41
45
  l as Input,
42
- _ as NavBar,
46
+ oo as NavBar,
43
47
  u as Radio,
44
48
  m as RadioGroup,
45
- S as Search,
46
- to as Spinner,
47
- q as SplitButton,
48
- M as Tab,
49
- Q as TabNavigation,
50
- oo as Tag,
51
- Y as TagsFields,
49
+ P as Search,
50
+ so as Spinner,
51
+ z as SplitButton,
52
+ Q as Tab,
53
+ W as TabNavigation,
54
+ eo as Tag,
55
+ _ as TagsFields,
52
56
  n as Textarea,
53
- I as Toast,
54
- R as ToastProvider,
55
- g as Toggle,
56
- eo as Tooltip,
57
- so as apLogos,
58
- H as composeValidators,
59
- J as defaultValidator,
57
+ R as Toast,
58
+ w as ToastProvider,
59
+ c as Toggle,
60
+ to as Tooltip,
61
+ xo as apLogos,
62
+ K as composeValidators,
63
+ M as defaultValidator,
60
64
  F as useFilePickerContext,
61
- w as useToast
65
+ L as useToast
62
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alixpartners/ui-components",
3
- "version": "2.4.4",
3
+ "version": "2.5.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -12,7 +12,7 @@
12
12
  "repository": "https://alixpartners-dev.visualstudio.com/_git/AP.UIComponents",
13
13
  "main": "./dist/umd/index.js",
14
14
  "scripts": {
15
- "build": "tsc -b && vite build",
15
+ "build": "npm run generate-illustrations && tsc -b && vite build",
16
16
  "lint": "eslint . --ext ts,tsx",
17
17
  "lint:fix": "eslint . --ext ts,tsx --fix",
18
18
  "format": "prettier --check .",
@@ -26,7 +26,8 @@
26
26
  "test:storybook": "vitest --project storybook",
27
27
  "test:ui": "vitest --ui",
28
28
  "coverage": "vitest run --coverage",
29
- "generate-icons": "node ./src/assets/generateIconsHelperFiles.js"
29
+ "generate-icons": "node ./src/assets/generateIconsHelperFiles.js",
30
+ "generate-illustrations": "node ./src/assets/generateIllustrationsHelperFiles.js"
30
31
  },
31
32
  "dependencies": {
32
33
  "clsx": "^2.1.1"