@pega/cosmos-react-core 4.0.0-dev.17.1 → 4.0.0-dev.18.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 (59) hide show
  1. package/lib/components/Banner/Banner.d.ts +3 -1
  2. package/lib/components/Banner/Banner.d.ts.map +1 -1
  3. package/lib/components/Banner/Banner.js +5 -4
  4. package/lib/components/Banner/Banner.js.map +1 -1
  5. package/lib/components/Dialog/Dialog.styles.d.ts.map +1 -1
  6. package/lib/components/Dialog/Dialog.styles.js +3 -2
  7. package/lib/components/Dialog/Dialog.styles.js.map +1 -1
  8. package/lib/components/Dialog/FormDialog.d.ts.map +1 -1
  9. package/lib/components/Dialog/FormDialog.js +14 -4
  10. package/lib/components/Dialog/FormDialog.js.map +1 -1
  11. package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
  12. package/lib/components/Dialog/InfoDialog.js +16 -3
  13. package/lib/components/Dialog/InfoDialog.js.map +1 -1
  14. package/lib/components/Form/Form.d.ts.map +1 -1
  15. package/lib/components/Form/Form.js +2 -2
  16. package/lib/components/Form/Form.js.map +1 -1
  17. package/lib/components/Modal/Modal.d.ts.map +1 -1
  18. package/lib/components/Modal/Modal.js +1 -1
  19. package/lib/components/Modal/Modal.js.map +1 -1
  20. package/lib/components/Modal/Modal.styles.d.ts.map +1 -1
  21. package/lib/components/Modal/Modal.styles.js +0 -4
  22. package/lib/components/Modal/Modal.styles.js.map +1 -1
  23. package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts.map +1 -1
  24. package/lib/components/MultiStepForm/HorizontalFormProgress.js +0 -1
  25. package/lib/components/MultiStepForm/HorizontalFormProgress.js.map +1 -1
  26. package/lib/components/MultiStepForm/MultiStepForm.d.ts +4 -1
  27. package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -1
  28. package/lib/components/MultiStepForm/MultiStepForm.js +57 -25
  29. package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -1
  30. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +5 -0
  31. package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -1
  32. package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -1
  33. package/lib/components/Progress/Progress.js +1 -1
  34. package/lib/components/Progress/Progress.js.map +1 -1
  35. package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
  36. package/lib/components/RadioCheckGroup/RadioCheckGroup.js +4 -3
  37. package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
  38. package/lib/components/ShortcutManager/ShortcutManager.d.ts.map +1 -1
  39. package/lib/components/ShortcutManager/ShortcutManager.js +4 -1
  40. package/lib/components/ShortcutManager/ShortcutManager.js.map +1 -1
  41. package/lib/components/Tabs/Tabs.d.ts.map +1 -1
  42. package/lib/components/Tabs/Tabs.js +7 -1
  43. package/lib/components/Tabs/Tabs.js.map +1 -1
  44. package/lib/hooks/useFocusTrap.d.ts.map +1 -1
  45. package/lib/hooks/useFocusTrap.js +5 -2
  46. package/lib/hooks/useFocusTrap.js.map +1 -1
  47. package/lib/hooks/useI18n.d.ts +15 -0
  48. package/lib/hooks/useI18n.d.ts.map +1 -1
  49. package/lib/i18n/default.d.ts +15 -0
  50. package/lib/i18n/default.d.ts.map +1 -1
  51. package/lib/i18n/default.js +17 -1
  52. package/lib/i18n/default.js.map +1 -1
  53. package/lib/i18n/i18n.d.ts +15 -0
  54. package/lib/i18n/i18n.d.ts.map +1 -1
  55. package/lib/theme/theme.d.ts +6 -6
  56. package/lib/utils/getFocusables.d.ts.map +1 -1
  57. package/lib/utils/getFocusables.js +2 -1
  58. package/lib/utils/getFocusables.js.map +1 -1
  59. package/package.json +1 -1
@@ -1868,15 +1868,15 @@ export declare const WorkTheme: {
1868
1868
  readonly background: string;
1869
1869
  readonly foreground: string;
1870
1870
  };
1871
- readonly "task-drawer": {
1871
+ readonly suggested: {
1872
1872
  readonly background: string;
1873
1873
  readonly foreground: string;
1874
1874
  };
1875
- readonly "wrap-up": {
1875
+ readonly "task-drawer": {
1876
1876
  readonly background: string;
1877
1877
  readonly foreground: string;
1878
1878
  };
1879
- readonly suggested: {
1879
+ readonly "wrap-up": {
1880
1880
  readonly background: string;
1881
1881
  readonly foreground: string;
1882
1882
  };
@@ -2390,15 +2390,15 @@ export declare const defaultThemeProp: Readonly<{
2390
2390
  readonly background: string;
2391
2391
  readonly foreground: string;
2392
2392
  };
2393
- readonly "task-drawer": {
2393
+ readonly suggested: {
2394
2394
  readonly background: string;
2395
2395
  readonly foreground: string;
2396
2396
  };
2397
- readonly "wrap-up": {
2397
+ readonly "task-drawer": {
2398
2398
  readonly background: string;
2399
2399
  readonly foreground: string;
2400
2400
  };
2401
- readonly suggested: {
2401
+ readonly "wrap-up": {
2402
2402
  readonly background: string;
2403
2403
  readonly foreground: string;
2404
2404
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getFocusables.d.ts","sourceRoot":"","sources":["../../src/utils/getFocusables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,QAAA,MAAM,aAAa,kBAAmB,UAAU,WAAW,CAAC,KAAG,WAAW,EAWzE,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"getFocusables.d.ts","sourceRoot":"","sources":["../../src/utils/getFocusables.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;GAIG;AACH,QAAA,MAAM,aAAa,kBAAmB,UAAU,WAAW,CAAC,KAAG,WAAW,EAYzE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -9,7 +9,8 @@ const getFocusables = (focusablesRef) => {
9
9
  const selector = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])';
10
10
  return [...focusablesRef.current.querySelectorAll(selector)].filter(el => el instanceof HTMLElement &&
11
11
  !el.hasAttribute('disabled') &&
12
- el.getAttribute('tabindex') !== '-1');
12
+ el.getAttribute('tabindex') !== '-1' &&
13
+ !el.closest('[inert]'));
13
14
  };
14
15
  export default getFocusables;
15
16
  //# sourceMappingURL=getFocusables.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFocusables.js","sourceRoot":"","sources":["../../src/utils/getFocusables.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,aAAa,GAAG,CAAC,aAAqC,EAAiB,EAAE;IAC7E,IAAI,CAAC,aAAa,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,QAAQ,GAAG,8EAA8E,CAAC;IAEhG,OAAQ,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAmB,CAAC,MAAM,CACpF,EAAE,CAAC,EAAE,CACH,EAAE,YAAY,WAAW;QACzB,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC;QAC5B,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI,CACvC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import type { RefObject } from 'react';\n\n/**\n * Returns all valid focusable elements within a given ref.\n * @param focusablesRef The ref containing the element to search for focusable elements within.\n * @returns a list of valid focusable elements within the given ref.\n */\nconst getFocusables = (focusablesRef: RefObject<HTMLElement>): HTMLElement[] => {\n if (!focusablesRef.current) return [];\n\n const selector = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])';\n\n return ([...focusablesRef.current.querySelectorAll(selector)] as HTMLElement[]).filter(\n el =>\n el instanceof HTMLElement &&\n !el.hasAttribute('disabled') &&\n el.getAttribute('tabindex') !== '-1'\n );\n};\n\nexport default getFocusables;\n"]}
1
+ {"version":3,"file":"getFocusables.js","sourceRoot":"","sources":["../../src/utils/getFocusables.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,aAAa,GAAG,CAAC,aAAqC,EAAiB,EAAE;IAC7E,IAAI,CAAC,aAAa,CAAC,OAAO;QAAE,OAAO,EAAE,CAAC;IAEtC,MAAM,QAAQ,GAAG,8EAA8E,CAAC;IAEhG,OAAQ,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAmB,CAAC,MAAM,CACpF,EAAE,CAAC,EAAE,CACH,EAAE,YAAY,WAAW;QACzB,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC;QAC5B,EAAE,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,IAAI;QACpC,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CACzB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import type { RefObject } from 'react';\n\n/**\n * Returns all valid focusable elements within a given ref.\n * @param focusablesRef The ref containing the element to search for focusable elements within.\n * @returns a list of valid focusable elements within the given ref.\n */\nconst getFocusables = (focusablesRef: RefObject<HTMLElement>): HTMLElement[] => {\n if (!focusablesRef.current) return [];\n\n const selector = 'a, button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"])';\n\n return ([...focusablesRef.current.querySelectorAll(selector)] as HTMLElement[]).filter(\n el =>\n el instanceof HTMLElement &&\n !el.hasAttribute('disabled') &&\n el.getAttribute('tabindex') !== '-1' &&\n !el.closest('[inert]')\n );\n};\n\nexport default getFocusables;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-core",
3
- "version": "4.0.0-dev.17.1",
3
+ "version": "4.0.0-dev.18.1",
4
4
  "description": "Cosmos is a visual design system and UI component collection. Its goal is to empower application developers in their pursuit to create engaging and rewarding user experiences.",
5
5
  "repository": {
6
6
  "type": "git",