@consta/uikit 5.12.0 → 5.14.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 (77) hide show
  1. package/FieldComponents/index.d.ts +1 -0
  2. package/FieldComponents/index.js +1 -0
  3. package/__internal__/src/components/Badge/Badge.css +1 -1
  4. package/__internal__/src/components/Badge/Badge.d.ts +2 -31
  5. package/__internal__/src/components/Badge/Badge.js +1 -1
  6. package/__internal__/src/components/Badge/Badge.js.map +1 -1
  7. package/__internal__/src/components/Badge/cn.d.ts +1 -0
  8. package/__internal__/src/components/Badge/cn.js +2 -0
  9. package/__internal__/src/components/Badge/cn.js.map +1 -0
  10. package/__internal__/src/components/Badge/guardStatus.d.ts +2 -0
  11. package/__internal__/src/components/Badge/guardStatus.js +2 -0
  12. package/__internal__/src/components/Badge/guardStatus.js.map +1 -0
  13. package/__internal__/src/components/Badge/index.d.ts +2 -0
  14. package/__internal__/src/components/Badge/index.js +1 -1
  15. package/__internal__/src/components/Badge/index.js.map +1 -1
  16. package/__internal__/src/components/Badge/maps.d.ts +9 -0
  17. package/__internal__/src/components/Badge/maps.js +2 -0
  18. package/__internal__/src/components/Badge/maps.js.map +1 -0
  19. package/__internal__/src/components/Badge/types.d.ts +31 -0
  20. package/__internal__/src/components/Badge/types.js +2 -0
  21. package/__internal__/src/components/Badge/types.js.map +1 -0
  22. package/__internal__/src/components/BadgeGroup/BadgeGroup.js +1 -1
  23. package/__internal__/src/components/BadgeGroup/BadgeGroup.js.map +1 -1
  24. package/__internal__/src/components/BadgeGroup/types.d.ts +4 -1
  25. package/__internal__/src/components/BadgeGroup/types.js.map +1 -1
  26. package/__internal__/src/components/Chips/types.d.ts +8 -2
  27. package/__internal__/src/components/Chips/types.js.map +1 -1
  28. package/__internal__/src/components/FieldComponents/FieldComponents.d.ts +15 -0
  29. package/__internal__/src/components/FieldComponents/FieldComponents.js +2 -0
  30. package/__internal__/src/components/FieldComponents/FieldComponents.js.map +1 -0
  31. package/__internal__/src/components/FieldComponents/index.d.ts +1 -15
  32. package/__internal__/src/components/FieldComponents/index.js +1 -1
  33. package/__internal__/src/components/FieldComponents/index.js.map +1 -1
  34. package/__internal__/src/components/Informer/Informer.css +1 -1
  35. package/__internal__/src/components/Informer/Informer.d.ts +2 -2
  36. package/__internal__/src/components/Informer/Informer.js +1 -1
  37. package/__internal__/src/components/Informer/Informer.js.map +1 -1
  38. package/__internal__/src/components/Popover/Popover.d.ts +2 -1
  39. package/__internal__/src/components/Popover/Popover.js +1 -1
  40. package/__internal__/src/components/Popover/Popover.js.map +1 -1
  41. package/__internal__/src/components/ProgressStepBar/helpers.d.ts +1 -1
  42. package/__internal__/src/components/SnackBar/SnackBar.js +1 -1
  43. package/__internal__/src/components/SnackBar/SnackBar.js.map +1 -1
  44. package/__internal__/src/components/SnackBar/SnackBarActionButton/SnackBarActionButton.js +1 -1
  45. package/__internal__/src/components/SnackBar/SnackBarActionButton/SnackBarActionButton.js.map +1 -1
  46. package/__internal__/src/components/SnackBar/SnackBarActionButton/index.d.ts +1 -0
  47. package/__internal__/src/components/SnackBar/SnackBarActionButton/index.js +2 -0
  48. package/__internal__/src/components/SnackBar/SnackBarActionButton/index.js.map +1 -0
  49. package/__internal__/src/components/SnackBar/SnackBarItem/SnackBarItem.css +1 -1
  50. package/__internal__/src/components/SnackBar/SnackBarItem/SnackBarItem.d.ts +0 -1
  51. package/__internal__/src/components/SnackBar/SnackBarItem/SnackBarItem.js +1 -1
  52. package/__internal__/src/components/SnackBar/SnackBarItem/SnackBarItem.js.map +1 -1
  53. package/__internal__/src/components/SnackBar/SnackBarItem/index.d.ts +1 -0
  54. package/__internal__/src/components/SnackBar/SnackBarItem/index.js +2 -0
  55. package/__internal__/src/components/SnackBar/SnackBarItem/index.js.map +1 -0
  56. package/__internal__/src/components/SnackBar/SnackBarLine/index.d.ts +1 -0
  57. package/__internal__/src/components/SnackBar/SnackBarLine/index.js +2 -0
  58. package/__internal__/src/components/SnackBar/SnackBarLine/index.js.map +1 -0
  59. package/__internal__/src/components/SnackBar/SnackBarProgress/SnackBarProgress.css +1 -0
  60. package/__internal__/src/components/SnackBar/SnackBarProgress/SnackBarProgress.d.ts +4 -0
  61. package/__internal__/src/components/SnackBar/SnackBarProgress/SnackBarProgress.js +2 -0
  62. package/__internal__/src/components/SnackBar/SnackBarProgress/SnackBarProgress.js.map +1 -0
  63. package/__internal__/src/components/SnackBar/SnackBarProgress/index.d.ts +1 -0
  64. package/__internal__/src/components/SnackBar/SnackBarProgress/index.js +2 -0
  65. package/__internal__/src/components/SnackBar/SnackBarProgress/index.js.map +1 -0
  66. package/__internal__/src/components/SnackBar/SnackBarTimer/SnackBarTimer.js +1 -1
  67. package/__internal__/src/components/SnackBar/SnackBarTimer/SnackBarTimer.js.map +1 -1
  68. package/__internal__/src/components/SnackBar/SnackBarTimer/index.d.ts +1 -0
  69. package/__internal__/src/components/SnackBar/SnackBarTimer/index.js +2 -0
  70. package/__internal__/src/components/SnackBar/SnackBarTimer/index.js.map +1 -0
  71. package/__internal__/src/components/SnackBar/helper.d.ts +4 -1
  72. package/__internal__/src/components/SnackBar/helper.js +1 -1
  73. package/__internal__/src/components/SnackBar/helper.js.map +1 -1
  74. package/__internal__/src/components/SnackBar/types.d.ts +15 -0
  75. package/__internal__/src/components/SnackBar/types.js +1 -1
  76. package/__internal__/src/components/SnackBar/types.js.map +1 -1
  77. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["snackBarItemStatus","snackBarItemStatusDefault","snackBarItemShowProgressProp","snackBarPropForm","snackBarPropFormDefault"],"sources":["../../../../../src/components/SnackBar/types.ts"],"sourcesContent":["import { IconComponent } from '@consta/icons/Icon';\n\nimport { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';\n\nexport type SnackBarItemDefault = {\n key: string | number;\n message?: React.ReactNode;\n status?: SnackBarItemStatus;\n autoClose?: boolean | number;\n showProgress?: SnackBarItemShowProgressProp;\n icon?: IconComponent;\n actions?: SnackBarPropItemAction[];\n onClose?: (item: SnackBarItemDefault) => void;\n onAutoClose?: (item: SnackBarItemDefault) => void;\n};\n\n/**\n * @deprecated since version 3.16.0 use SnackBarItemDefault\n */\nexport type Item = SnackBarItemDefault;\n\nexport type SnackBarPropItemAction = {\n label: string | number;\n onClick: React.EventHandler<React.MouseEvent>;\n};\n\nexport type SnackBarActionButtonProps = {\n actions: SnackBarPropItemAction[];\n className?: string;\n};\n\nexport type SnackBarItemProps = PropsWithHTMLAttributesAndRef<\n Omit<SnackBarItemDefault, 'onClose' | 'onAutoClose'> & {\n onClose?: () => void;\n form?: SnackBarPropForm;\n onAutoClose?: () => void;\n },\n HTMLDivElement\n>;\n\nexport const snackBarItemStatus = [\n 'normal',\n 'system',\n 'success',\n 'warning',\n 'alert',\n] as const;\nexport type SnackBarItemStatus = typeof snackBarItemStatus[number];\nexport const snackBarItemStatusDefault: SnackBarItemStatus =\n snackBarItemStatus[0];\n\nexport const snackBarItemShowProgressProp = ['timer', 'line'] as const;\nexport type SnackBarItemShowProgressProp =\n typeof snackBarItemShowProgressProp[number];\n\nexport type SnackBarPropGetItemKey<ITEM> = (item: ITEM) => string | number;\nexport type SnackBarPropGetItemMessage<ITEM> = (\n item: ITEM,\n) => React.ReactNode | undefined;\nexport type SnackBarPropGetItemStatus<ITEM> = (\n item: ITEM,\n) => SnackBarItemStatus | undefined;\nexport type SnackBarPropGetItemAutoClose<ITEM> = (\n item: ITEM,\n) => boolean | number | undefined;\nexport type SnackBarPropGetItemShowProgress<ITEM> = (\n item: ITEM,\n) => SnackBarItemShowProgressProp | undefined;\nexport type SnackBarPropGetItemIcon<ITEM> = (\n item: ITEM,\n) => IconComponent | undefined;\nexport type SnackBarPropGetItemActions<ITEM> = (\n item: ITEM,\n) => SnackBarPropItemAction[] | undefined;\nexport type SnackBarPropGetItemOnClose<ITEM> = (\n item: ITEM,\n) => ((item: ITEM) => void) | undefined;\nexport type SnackBarPropGetItemOnAutoClose<ITEM> = (\n item: ITEM,\n) => ((item: ITEM) => void) | undefined;\n\nexport type Mappers<ITEM> = {\n getItemKey?: SnackBarPropGetItemKey<ITEM>;\n getItemMessage?: SnackBarPropGetItemMessage<ITEM>;\n getItemStatus?: SnackBarPropGetItemStatus<ITEM>;\n getItemAutoClose?: SnackBarPropGetItemAutoClose<ITEM>;\n getItemShowProgress?: SnackBarPropGetItemShowProgress<ITEM>;\n getItemIcon?: SnackBarPropGetItemIcon<ITEM>;\n getItemActions?: SnackBarPropGetItemActions<ITEM>;\n getItemOnClose?: SnackBarPropGetItemOnClose<ITEM>;\n getItemOnAutoClose?: SnackBarPropGetItemOnAutoClose<ITEM>;\n};\n\nexport const snackBarPropForm = ['default', 'round', 'brick'] as const;\nexport type SnackBarPropForm = typeof snackBarPropForm[number];\nexport const snackBarPropFormDefault = snackBarPropForm[0];\n\nexport type SnackBarProps<ITEM = SnackBarItemDefault> =\n PropsWithHTMLAttributesAndRef<\n {\n items: ITEM[];\n children?: never;\n form?: SnackBarPropForm;\n onItemClose?: (item: ITEM) => void;\n onItemAutoClose?: (item: ITEM) => void;\n } & Mappers<ITEM>,\n HTMLDivElement\n > &\n (ITEM extends { key: SnackBarItemDefault['key'] }\n ? {}\n : { getItemKey: SnackBarPropGetItemKey<ITEM> });\n\nexport type SnackBarComponent = <ITEM = SnackBarItemDefault>(\n props: SnackBarProps<ITEM>,\n) => React.ReactElement | null;\n\nexport type SnackBarTimerPropOnMount = (object: {\n pause: () => void;\n start: () => void;\n}) => void;\n\nexport type SnackBarTimerProps = {\n onMount: SnackBarTimerPropOnMount;\n onTimeIsOver: () => void;\n startTime: number;\n hidden?: boolean;\n className?: string;\n};\n\nexport type SnackBarItemComponent = (\n props: SnackBarItemProps,\n) => React.ReactElement | null;\n"],"mappings":"AAwCA,MAAO,IAAMA,mBAAkB,CAAG,CAChC,QADgC,CAEhC,QAFgC,CAGhC,SAHgC,CAIhC,SAJgC,CAKhC,OALgC,CAA3B,CAQP,MAAO,IAAMC,0BAA6C,CACxDD,kBAAkB,CAAC,CAAD,CADb,CAGP,MAAO,IAAME,6BAA4B,CAAG,CAAC,OAAD,CAAU,MAAV,CAArC,CA0CP,MAAO,IAAMC,iBAAgB,CAAG,CAAC,SAAD,CAAY,OAAZ,CAAqB,OAArB,CAAzB,CAEP,MAAO,IAAMC,wBAAuB,CAAGD,gBAAgB,CAAC,CAAD,CAAhD"}
1
+ {"version":3,"file":"types.js","names":["snackBarItemStatus","snackBarItemStatusDefault","snackBarItemShowProgressProp","snackBarPropForm","snackBarPropFormDefault","snackBarPropProgressView","snackBarPropProgressViewDefault"],"sources":["../../../../../src/components/SnackBar/types.ts"],"sourcesContent":["import { IconComponent } from '@consta/icons/Icon';\n\nimport { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';\n\nexport type SnackBarItemDefault = {\n key: string | number;\n message?: React.ReactNode;\n status?: SnackBarItemStatus;\n autoClose?: boolean | number;\n showProgress?: SnackBarItemShowProgressProp;\n icon?: IconComponent;\n actions?: SnackBarPropItemAction[];\n onClose?: (item: SnackBarItemDefault) => void;\n onAutoClose?: (item: SnackBarItemDefault) => void;\n progress?: boolean | number;\n};\n\n/**\n * @deprecated since version 3.16.0 use SnackBarItemDefault\n */\nexport type Item = SnackBarItemDefault;\n\nexport type SnackBarPropItemAction = {\n label: string | number;\n onClick: React.EventHandler<React.MouseEvent>;\n};\n\nexport type SnackBarActionButtonProps = {\n actions: SnackBarPropItemAction[];\n className?: string;\n form?: SnackBarPropForm;\n};\n\nexport type SnackBarItemProps = PropsWithHTMLAttributesAndRef<\n Omit<SnackBarItemDefault, 'onClose' | 'onAutoClose'> & {\n onClose?: () => void;\n form?: SnackBarPropForm;\n onAutoClose?: () => void;\n progressView?: SnackBarPropProgressView;\n progress?: number | boolean;\n },\n HTMLDivElement\n>;\n\nexport const snackBarItemStatus = [\n 'normal',\n 'system',\n 'success',\n 'warning',\n 'alert',\n] as const;\nexport type SnackBarItemStatus = typeof snackBarItemStatus[number];\nexport const snackBarItemStatusDefault: SnackBarItemStatus =\n snackBarItemStatus[0];\n\nexport const snackBarItemShowProgressProp = ['timer', 'line'] as const;\nexport type SnackBarItemShowProgressProp =\n typeof snackBarItemShowProgressProp[number];\n\nexport type SnackBarPropGetItemKey<ITEM> = (item: ITEM) => string | number;\nexport type SnackBarPropGetItemMessage<ITEM> = (\n item: ITEM,\n) => React.ReactNode | undefined;\nexport type SnackBarPropGetItemStatus<ITEM> = (\n item: ITEM,\n) => SnackBarItemStatus | undefined;\nexport type SnackBarPropGetItemAutoClose<ITEM> = (\n item: ITEM,\n) => boolean | number | undefined;\nexport type SnackBarPropGetItemShowProgress<ITEM> = (\n item: ITEM,\n) => SnackBarItemShowProgressProp | undefined;\nexport type SnackBarPropGetItemIcon<ITEM> = (\n item: ITEM,\n) => IconComponent | undefined;\nexport type SnackBarPropGetItemActions<ITEM> = (\n item: ITEM,\n) => SnackBarPropItemAction[] | undefined;\nexport type SnackBarPropGetItemOnClose<ITEM> = (\n item: ITEM,\n) => ((item: ITEM) => void) | undefined;\nexport type SnackBarPropGetItemOnAutoClose<ITEM> = (\n item: ITEM,\n) => ((item: ITEM) => void) | undefined;\nexport type SnackBarPropGetItemProgress<ITEM> = (\n item: ITEM,\n) => number | boolean | undefined;\n\nexport type Mappers<ITEM> = {\n getItemKey?: SnackBarPropGetItemKey<ITEM>;\n getItemMessage?: SnackBarPropGetItemMessage<ITEM>;\n getItemStatus?: SnackBarPropGetItemStatus<ITEM>;\n getItemAutoClose?: SnackBarPropGetItemAutoClose<ITEM>;\n getItemShowProgress?: SnackBarPropGetItemShowProgress<ITEM>;\n getItemIcon?: SnackBarPropGetItemIcon<ITEM>;\n getItemActions?: SnackBarPropGetItemActions<ITEM>;\n getItemOnClose?: SnackBarPropGetItemOnClose<ITEM>;\n getItemOnAutoClose?: SnackBarPropGetItemOnAutoClose<ITEM>;\n getItemProgress?: SnackBarPropGetItemProgress<ITEM>;\n};\n\nexport const snackBarPropForm = ['default', 'round', 'brick'] as const;\nexport type SnackBarPropForm = typeof snackBarPropForm[number];\nexport const snackBarPropFormDefault = snackBarPropForm[0];\n\nexport const snackBarPropProgressView = ['spinText', 'spin', 'text'] as const;\nexport type SnackBarPropProgressView = typeof snackBarPropProgressView[number];\nexport const snackBarPropProgressViewDefault = snackBarPropProgressView[0];\n\nexport type SnackBarProps<ITEM = SnackBarItemDefault> =\n PropsWithHTMLAttributesAndRef<\n {\n items: ITEM[];\n children?: never;\n form?: SnackBarPropForm;\n progressView?: SnackBarPropProgressView;\n onItemClose?: (item: ITEM) => void;\n onItemAutoClose?: (item: ITEM) => void;\n } & Mappers<ITEM>,\n HTMLDivElement\n > &\n (ITEM extends { key: SnackBarItemDefault['key'] }\n ? {}\n : { getItemKey: SnackBarPropGetItemKey<ITEM> });\n\nexport type SnackBarComponent = <ITEM = SnackBarItemDefault>(\n props: SnackBarProps<ITEM>,\n) => React.ReactElement | null;\n\nexport type SnackBarTimerPropOnMount = (object: {\n pause: () => void;\n start: () => void;\n}) => void;\n\nexport type SnackBarTimerProps = {\n onMount: SnackBarTimerPropOnMount;\n onTimeIsOver: () => void;\n startTime: number;\n hidden?: boolean;\n className?: string;\n};\n\nexport type SnackBarProgressProps = {\n view: SnackBarPropProgressView;\n progress?: number | boolean;\n className?: string;\n};\n\nexport type SnackBarItemComponent = (\n props: SnackBarItemProps,\n) => React.ReactElement | null;\n"],"mappings":"AA4CA,MAAO,IAAMA,mBAAkB,CAAG,CAChC,QADgC,CAEhC,QAFgC,CAGhC,SAHgC,CAIhC,SAJgC,CAKhC,OALgC,CAA3B,CAQP,MAAO,IAAMC,0BAA6C,CACxDD,kBAAkB,CAAC,CAAD,CADb,CAGP,MAAO,IAAME,6BAA4B,CAAG,CAAC,OAAD,CAAU,MAAV,CAArC,CA8CP,MAAO,IAAMC,iBAAgB,CAAG,CAAC,SAAD,CAAY,OAAZ,CAAqB,OAArB,CAAzB,CAEP,MAAO,IAAMC,wBAAuB,CAAGD,gBAAgB,CAAC,CAAD,CAAhD,CAEP,MAAO,IAAME,yBAAwB,CAAG,CAAC,UAAD,CAAa,MAAb,CAAqB,MAArB,CAAjC,CAEP,MAAO,IAAMC,gCAA+B,CAAGD,wBAAwB,CAAC,CAAD,CAAhE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit",
3
- "version": "5.12.0",
3
+ "version": "5.14.0",
4
4
  "keywords": [
5
5
  "ui-kit",
6
6
  "design-system",