@pega/cosmos-react-core 4.0.0-dev.5.1 → 4.0.0-dev.6.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 (79) hide show
  1. package/lib/components/Actions/Actions.d.ts.map +1 -1
  2. package/lib/components/Actions/Actions.js +11 -5
  3. package/lib/components/Actions/Actions.js.map +1 -1
  4. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts +2 -0
  5. package/lib/components/AdditionalInfo/AdditionalInfo.d.ts.map +1 -1
  6. package/lib/components/AdditionalInfo/AdditionalInfo.js +24 -15
  7. package/lib/components/AdditionalInfo/AdditionalInfo.js.map +1 -1
  8. package/lib/components/Badges/Count.d.ts +1 -1
  9. package/lib/components/Badges/Count.d.ts.map +1 -1
  10. package/lib/components/Badges/Count.js +3 -7
  11. package/lib/components/Badges/Count.js.map +1 -1
  12. package/lib/components/Banner/Banner.js +3 -3
  13. package/lib/components/Banner/Banner.js.map +1 -1
  14. package/lib/components/Dialog/Dialog.d.ts +3 -30
  15. package/lib/components/Dialog/Dialog.d.ts.map +1 -1
  16. package/lib/components/Dialog/Dialog.js +7 -147
  17. package/lib/components/Dialog/Dialog.js.map +1 -1
  18. package/lib/components/Dialog/Dialog.styles.d.ts +3 -0
  19. package/lib/components/Dialog/Dialog.styles.d.ts.map +1 -0
  20. package/lib/components/Dialog/Dialog.styles.js +18 -0
  21. package/lib/components/Dialog/Dialog.styles.js.map +1 -0
  22. package/lib/components/Dialog/Dialog.types.d.ts +87 -0
  23. package/lib/components/Dialog/Dialog.types.d.ts.map +1 -0
  24. package/lib/components/Dialog/Dialog.types.js +3 -0
  25. package/lib/components/Dialog/Dialog.types.js.map +1 -0
  26. package/lib/components/Dialog/FormDialog.d.ts +7 -0
  27. package/lib/components/Dialog/FormDialog.d.ts.map +1 -0
  28. package/lib/components/Dialog/FormDialog.js +62 -0
  29. package/lib/components/Dialog/FormDialog.js.map +1 -0
  30. package/lib/components/Dialog/InfoDialog.d.ts +6 -0
  31. package/lib/components/Dialog/InfoDialog.d.ts.map +1 -0
  32. package/lib/components/Dialog/InfoDialog.js +47 -0
  33. package/lib/components/Dialog/InfoDialog.js.map +1 -0
  34. package/lib/components/Dialog/index.d.ts +3 -2
  35. package/lib/components/Dialog/index.d.ts.map +1 -1
  36. package/lib/components/Dialog/index.js +2 -2
  37. package/lib/components/Dialog/index.js.map +1 -1
  38. package/lib/components/FieldValueList/index.d.ts +1 -1
  39. package/lib/components/FieldValueList/index.d.ts.map +1 -1
  40. package/lib/components/FieldValueList/index.js.map +1 -1
  41. package/lib/components/FormControl/FormControl.d.ts.map +1 -1
  42. package/lib/components/FormControl/FormControl.js +3 -1
  43. package/lib/components/FormControl/FormControl.js.map +1 -1
  44. package/lib/components/Menu/Menu.d.ts.map +1 -1
  45. package/lib/components/Menu/Menu.js +1 -3
  46. package/lib/components/Menu/Menu.js.map +1 -1
  47. package/lib/components/Menu/Menu.types.d.ts +0 -2
  48. package/lib/components/Menu/Menu.types.d.ts.map +1 -1
  49. package/lib/components/Menu/Menu.types.js.map +1 -1
  50. package/lib/components/MenuButton/MenuButton.js +1 -1
  51. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  52. package/lib/components/Progress/Progress.d.ts.map +1 -1
  53. package/lib/components/Progress/Progress.js +3 -2
  54. package/lib/components/Progress/Progress.js.map +1 -1
  55. package/lib/components/SearchInput/SearchInput.d.ts.map +1 -1
  56. package/lib/components/SearchInput/SearchInput.js +2 -2
  57. package/lib/components/SearchInput/SearchInput.js.map +1 -1
  58. package/lib/components/Tabs/Tabs.d.ts.map +1 -1
  59. package/lib/components/Tabs/Tabs.js +1 -8
  60. package/lib/components/Tabs/Tabs.js.map +1 -1
  61. package/lib/hooks/useI18n.d.ts +14 -0
  62. package/lib/hooks/useI18n.d.ts.map +1 -1
  63. package/lib/i18n/default.d.ts +14 -0
  64. package/lib/i18n/default.d.ts.map +1 -1
  65. package/lib/i18n/default.js +15 -0
  66. package/lib/i18n/default.js.map +1 -1
  67. package/lib/i18n/i18n.d.ts +14 -0
  68. package/lib/i18n/i18n.d.ts.map +1 -1
  69. package/lib/index.d.ts +0 -1
  70. package/lib/index.d.ts.map +1 -1
  71. package/lib/index.js +0 -1
  72. package/lib/index.js.map +1 -1
  73. package/lib/theme/theme.d.ts +3 -39
  74. package/lib/theme/theme.d.ts.map +1 -1
  75. package/lib/theme/themeDefinition.json +1 -21
  76. package/lib/types/types.d.ts +6 -1
  77. package/lib/types/types.d.ts.map +1 -1
  78. package/lib/types/types.js.map +1 -1
  79. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ElementType, MouseEvent } from 'react';\n\nexport interface BaseProps {\n /** Additional CSS classes. */\n className?: string;\n}\n\nexport interface ForwardProps {\n [prop: string]: unknown;\n}\n\nexport interface NoChildrenProp {\n children?: never;\n}\n\nexport type HTMLTag = keyof JSX.IntrinsicElements;\nexport interface AsProp {\n /** HTML tag or React Component to render the component as. */\n as?: ElementType;\n /** HTML tag or React Component to finally render the component as. */\n forwardedAs?: ElementType;\n}\n\nexport interface Action extends ForwardProps {\n /** A string to uniquely identify this Action within the onClick handler. */\n id: string;\n /** The text content of the Action. */\n text: string;\n /** The name of the Cosmos Icon to render, if any. */\n icon?: string;\n /** A location to navigate to. Passing an href will render a Link styled as a Button. */\n href?: string;\n /** Called when the Action is clicked. */\n onClick?: (\n id: string,\n e: MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLInputElement>\n ) => void;\n /** Determines if the Action will be disabled. */\n disabled?: boolean;\n}\n\n// https://github.com/microsoft/TypeScript/issues/30825\nexport type OmitStrict<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\nexport type PartialByKey<T extends object, K extends keyof T> = OmitStrict<T, K> &\n Partial<Pick<T, K>>;\nexport type RequiredByKey<T extends object, K extends keyof T> = OmitStrict<T, K> &\n Required<Pick<T, K>>;\n\nexport type DeepPartial<T> = T extends (infer U)[]\n ? DeepPartial<U>[]\n : T extends object\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : T;\n\nexport type DeepRequired<T> = T extends (infer U)[]\n ? DeepRequired<U>[]\n : T extends Function\n ? T\n : T extends object\n ? { [K in keyof T]-?: DeepRequired<T[K]> }\n : T;\n\n// https://stackoverflow.com/a/49725198\nexport type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> &\n {\n [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;\n }[Keys];\n\n// Lowers type inference precedence without changing the type.\n// https://github.com/Microsoft/TypeScript/issues/14829#issue-216577598\nexport type DeferInfer<T> = T & { [K in keyof T]: T[K] };\n\n/* eslint-disable @typescript-eslint/ban-types */\nexport type PropsWithDefaults<\n Props extends object = {},\n Defaults extends keyof Props = never\n> = OmitStrict<Props, Defaults> & Required<Pick<Props, Defaults>>;\n/* eslint-enable @typescript-eslint/ban-types */\n\nexport type PrettyPrint<T> = T extends object\n ? {\n [K in keyof T]: T[K];\n }\n : T;\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"","sourcesContent":["import { ElementType, MouseEvent } from 'react';\n\nexport interface BaseProps {\n /** Additional CSS classes. */\n className?: string;\n}\n\nexport interface ForwardProps {\n [prop: string]: unknown;\n}\n\nexport interface NoChildrenProp {\n children?: never;\n}\n\nexport type HTMLTag = keyof JSX.IntrinsicElements;\nexport interface AsProp {\n /** HTML tag or React Component to render the component as. */\n as?: ElementType;\n /** HTML tag or React Component to finally render the component as. */\n forwardedAs?: ElementType;\n}\n\nexport interface Action extends ForwardProps {\n /** A string to uniquely identify this Action within the onClick handler. */\n id: string;\n /** The text content of the Action. */\n text: string;\n /** The name of the Cosmos Icon to render, if any. */\n icon?: string;\n /** A location to navigate to. Passing an href will render a Link styled as a Button. */\n href?: string;\n /** Called when the Action is clicked. */\n onClick?: (\n id: string,\n e: MouseEvent<HTMLButtonElement | HTMLAnchorElement | HTMLInputElement>,\n /**\n * If the action was rendered as an item in a menu the associated menuButton element will be provided.\n * Often necessary for focus purposes.\n */\n menuButton?: HTMLButtonElement\n ) => void;\n /** Determines if the Action will be disabled. */\n disabled?: boolean;\n}\n\n// https://github.com/microsoft/TypeScript/issues/30825\nexport type OmitStrict<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;\nexport type PartialByKey<T extends object, K extends keyof T> = OmitStrict<T, K> &\n Partial<Pick<T, K>>;\nexport type RequiredByKey<T extends object, K extends keyof T> = OmitStrict<T, K> &\n Required<Pick<T, K>>;\n\nexport type DeepPartial<T> = T extends (infer U)[]\n ? DeepPartial<U>[]\n : T extends object\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : T;\n\nexport type DeepRequired<T> = T extends (infer U)[]\n ? DeepRequired<U>[]\n : T extends Function\n ? T\n : T extends object\n ? { [K in keyof T]-?: DeepRequired<T[K]> }\n : T;\n\n// https://stackoverflow.com/a/49725198\nexport type RequireAtLeastOne<T, Keys extends keyof T = keyof T> = Pick<T, Exclude<keyof T, Keys>> &\n {\n [K in Keys]-?: Required<Pick<T, K>> & Partial<Pick<T, Exclude<Keys, K>>>;\n }[Keys];\n\n// Lowers type inference precedence without changing the type.\n// https://github.com/Microsoft/TypeScript/issues/14829#issue-216577598\nexport type DeferInfer<T> = T & { [K in keyof T]: T[K] };\n\n/* eslint-disable @typescript-eslint/ban-types */\nexport type PropsWithDefaults<\n Props extends object = {},\n Defaults extends keyof Props = never\n> = OmitStrict<Props, Defaults> & Required<Pick<Props, Defaults>>;\n/* eslint-enable @typescript-eslint/ban-types */\n\nexport type PrettyPrint<T> = T extends object\n ? {\n [K in keyof T]: T[K];\n }\n : T;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/cosmos-react-core",
3
- "version": "4.0.0-dev.5.1",
3
+ "version": "4.0.0-dev.6.0",
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
  "author": "Pegasystems",
6
6
  "license": "SEE LICENSE IN LICENSE",