@prom-ui/core 1.3.1 → 1.4.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 (233) hide show
  1. package/Avatar/cjs/index.development.js +99 -67
  2. package/Avatar/cjs/index.development.v2.js +99 -67
  3. package/Avatar/cjs/index.production.js +1 -1
  4. package/Avatar/cjs/index.production.v2.js +1 -1
  5. package/Avatar/index.d.ts +14 -14
  6. package/Avatar/package.json +1 -1
  7. package/Avatar/utils.d.ts +2 -2
  8. package/Backdrop/cjs/index.development.js +131 -77
  9. package/Backdrop/cjs/index.development.v2.js +131 -77
  10. package/Backdrop/cjs/index.production.js +1 -1
  11. package/Backdrop/cjs/index.production.v2.js +1 -1
  12. package/Backdrop/index.d.ts +25 -25
  13. package/Backdrop/package.json +1 -1
  14. package/Body/cjs/index.development.js +2 -0
  15. package/Body/cjs/index.development.v2.js +2 -0
  16. package/Body/index.d.ts +36 -36
  17. package/Body/package.json +1 -1
  18. package/BodyContext/cjs/index.development.js +6 -7
  19. package/BodyContext/cjs/index.development.v2.js +6 -7
  20. package/BodyContext/cjs/index.production.js +1 -1
  21. package/BodyContext/cjs/index.production.v2.js +1 -1
  22. package/BodyContext/index.d.ts +12 -12
  23. package/BodyContext/package.json +1 -1
  24. package/BodyProvider/cjs/index.development.js +7 -6
  25. package/BodyProvider/cjs/index.development.v2.js +7 -6
  26. package/BodyProvider/index.d.ts +10 -10
  27. package/BodyProvider/package.json +1 -1
  28. package/Box/cjs/index.development.js +4 -4
  29. package/Box/cjs/index.development.v2.js +4 -4
  30. package/Box/index.d.ts +106 -106
  31. package/Box/package.json +1 -1
  32. package/Button/cjs/index.development.js +67 -62
  33. package/Button/cjs/index.development.v2.js +67 -62
  34. package/Button/cjs/index.production.js +1 -1
  35. package/Button/cjs/index.production.v2.js +1 -1
  36. package/Button/index.d.ts +45 -45
  37. package/Button/package.json +1 -1
  38. package/ButtonPageUp/cjs/index.development.js +195 -85
  39. package/ButtonPageUp/cjs/index.development.v2.js +195 -85
  40. package/ButtonPageUp/cjs/index.production.js +1 -1
  41. package/ButtonPageUp/cjs/index.production.v2.js +1 -1
  42. package/ButtonPageUp/index.d.ts +18 -18
  43. package/ButtonPageUp/package.json +1 -1
  44. package/Checkbox/cjs/index.development.js +99 -67
  45. package/Checkbox/cjs/index.development.v2.js +99 -67
  46. package/Checkbox/cjs/index.production.js +1 -1
  47. package/Checkbox/cjs/index.production.v2.js +1 -1
  48. package/Checkbox/index.d.ts +8 -8
  49. package/Checkbox/package.json +1 -1
  50. package/Flex/index.d.ts +34 -34
  51. package/Flex/package.json +1 -1
  52. package/Grid/index.d.ts +46 -46
  53. package/Grid/package.json +1 -1
  54. package/Icon/index.d.ts +9 -9
  55. package/Icon/package.json +1 -1
  56. package/Image/index.d.ts +42 -42
  57. package/Image/package.json +1 -1
  58. package/ImageEmoji/cjs/index.development.js +70 -63
  59. package/ImageEmoji/cjs/index.development.v2.js +70 -63
  60. package/ImageEmoji/cjs/index.production.js +1 -1
  61. package/ImageEmoji/cjs/index.production.v2.js +1 -1
  62. package/ImageEmoji/index.d.ts +9 -9
  63. package/ImageEmoji/package.json +1 -1
  64. package/Input/index.d.ts +18 -18
  65. package/Input/package.json +1 -1
  66. package/InputField/addons/AfterClearValue.d.ts +3 -3
  67. package/InputField/addons/AfterCorrectValue.d.ts +2 -2
  68. package/InputField/addons/AfterLoading.d.ts +2 -2
  69. package/InputField/addons/AfterTogglePassword.d.ts +6 -6
  70. package/InputField/addons/ErrorText.d.ts +6 -6
  71. package/InputField/cjs/index.development.js +237 -173
  72. package/InputField/cjs/index.development.v2.js +237 -173
  73. package/InputField/cjs/index.production.js +1 -1
  74. package/InputField/cjs/index.production.v2.js +1 -1
  75. package/InputField/index.d.ts +18 -18
  76. package/InputField/package.json +1 -1
  77. package/InputField/utils.d.ts +10 -10
  78. package/KeyPress/cjs/index.development.js +13 -13
  79. package/KeyPress/cjs/index.development.v2.js +13 -13
  80. package/KeyPress/index.d.ts +14 -14
  81. package/KeyPress/package.json +1 -1
  82. package/Line/index.d.ts +13 -13
  83. package/Line/package.json +1 -1
  84. package/Link/cjs/index.development.js +5 -5
  85. package/Link/cjs/index.development.v2.js +5 -5
  86. package/Link/index.d.ts +28 -28
  87. package/Link/package.json +1 -1
  88. package/List/index.d.ts +23 -23
  89. package/List/package.json +1 -1
  90. package/Media/MediaProvider.d.ts +8 -8
  91. package/Media/cjs/index.development.js +70 -19
  92. package/Media/cjs/index.development.v2.js +70 -19
  93. package/Media/cjs/index.production.js +1 -1
  94. package/Media/cjs/index.production.v2.js +1 -1
  95. package/Media/index.d.ts +20 -20
  96. package/Media/package.json +1 -1
  97. package/OutsideClick/cjs/index.development.js +117 -61
  98. package/OutsideClick/cjs/index.development.v2.js +117 -61
  99. package/OutsideClick/cjs/index.production.js +1 -1
  100. package/OutsideClick/cjs/index.production.v2.js +1 -1
  101. package/OutsideClick/index.d.ts +12 -12
  102. package/OutsideClick/package.json +1 -1
  103. package/Overlay/cjs/index.development.js +197 -183
  104. package/Overlay/cjs/index.development.v2.js +197 -183
  105. package/Overlay/cjs/index.production.js +1 -1
  106. package/Overlay/cjs/index.production.v2.js +1 -1
  107. package/Overlay/components/OverlayHeader.d.ts +11 -11
  108. package/Overlay/components/SwipeClose.d.ts +11 -11
  109. package/Overlay/components/TouchScrollable.d.ts +8 -8
  110. package/Overlay/index.d.ts +76 -76
  111. package/Overlay/package.json +1 -1
  112. package/Overlay/utils.d.ts +10 -10
  113. package/Picture/index.d.ts +70 -70
  114. package/Picture/package.json +1 -1
  115. package/Portal/cjs/index.development.js +11 -11
  116. package/Portal/cjs/index.development.v2.js +11 -11
  117. package/Portal/index.d.ts +10 -10
  118. package/Portal/package.json +1 -1
  119. package/QRCode/cjs/index.development.js +11 -11
  120. package/QRCode/cjs/index.development.v2.js +11 -11
  121. package/QRCode/index.d.ts +17 -17
  122. package/QRCode/package.json +1 -1
  123. package/Rating/cjs/index.development.js +75 -69
  124. package/Rating/cjs/index.development.v2.js +75 -69
  125. package/Rating/cjs/index.production.js +1 -1
  126. package/Rating/cjs/index.production.v2.js +1 -1
  127. package/Rating/index.d.ts +17 -17
  128. package/Rating/package.json +1 -1
  129. package/RatingSelect/cjs/index.development.js +148 -68
  130. package/RatingSelect/cjs/index.development.v2.js +148 -68
  131. package/RatingSelect/cjs/index.production.js +1 -1
  132. package/RatingSelect/cjs/index.production.v2.js +1 -1
  133. package/RatingSelect/index.d.ts +22 -18
  134. package/RatingSelect/package.json +1 -1
  135. package/SafeQuery/cjs/index.development.js +158 -110
  136. package/SafeQuery/cjs/index.development.v2.js +158 -110
  137. package/SafeQuery/cjs/index.production.js +1 -1
  138. package/SafeQuery/cjs/index.production.v2.js +1 -1
  139. package/SafeQuery/components/Error.d.ts +7 -7
  140. package/SafeQuery/index.d.ts +10 -10
  141. package/SafeQuery/package.json +1 -1
  142. package/Scroll/index.d.ts +25 -25
  143. package/Scroll/package.json +1 -1
  144. package/ScrollControls/ScrollControlsButton.d.ts +11 -11
  145. package/ScrollControls/cjs/index.development.js +201 -113
  146. package/ScrollControls/cjs/index.development.v2.js +201 -113
  147. package/ScrollControls/cjs/index.production.js +1 -1
  148. package/ScrollControls/cjs/index.production.v2.js +1 -1
  149. package/ScrollControls/index.d.ts +16 -16
  150. package/ScrollControls/package.json +1 -1
  151. package/SimpleSlider/cjs/index.development.js +270 -158
  152. package/SimpleSlider/cjs/index.development.v2.js +270 -158
  153. package/SimpleSlider/cjs/index.production.js +1 -1
  154. package/SimpleSlider/cjs/index.production.v2.js +1 -1
  155. package/SimpleSlider/index.d.ts +41 -41
  156. package/SimpleSlider/package.json +1 -1
  157. package/SimpleSlider/useAutoPlay.d.ts +3 -3
  158. package/SimpleSlider/utils.d.ts +19 -19
  159. package/Skeleton/cjs/index.development.js +118 -64
  160. package/Skeleton/cjs/index.development.v2.js +118 -64
  161. package/Skeleton/cjs/index.production.js +1 -1
  162. package/Skeleton/cjs/index.production.v2.js +1 -1
  163. package/Skeleton/index.d.ts +37 -37
  164. package/Skeleton/package.json +1 -1
  165. package/Spinner/cjs/index.development.js +66 -61
  166. package/Spinner/cjs/index.development.v2.js +66 -61
  167. package/Spinner/cjs/index.production.js +1 -1
  168. package/Spinner/cjs/index.production.v2.js +1 -1
  169. package/Spinner/index.d.ts +29 -29
  170. package/Spinner/package.json +1 -1
  171. package/Text/index.d.ts +25 -25
  172. package/Text/package.json +1 -1
  173. package/TextEmoji/cjs/index.development.js +65 -60
  174. package/TextEmoji/cjs/index.development.v2.js +65 -60
  175. package/TextEmoji/cjs/index.production.js +1 -1
  176. package/TextEmoji/cjs/index.production.v2.js +1 -1
  177. package/TextEmoji/index.d.ts +9 -9
  178. package/TextEmoji/package.json +1 -1
  179. package/Tooltip/cjs/index.development.js +80 -91
  180. package/Tooltip/cjs/index.development.v2.js +80 -91
  181. package/Tooltip/cjs/index.production.js +1 -1
  182. package/Tooltip/cjs/index.production.v2.js +1 -1
  183. package/Tooltip/index.d.ts +87 -87
  184. package/Tooltip/package.json +1 -1
  185. package/Tumbler/cjs/index.development.js +98 -66
  186. package/Tumbler/cjs/index.development.v2.js +98 -66
  187. package/Tumbler/cjs/index.production.js +1 -1
  188. package/Tumbler/cjs/index.production.v2.js +1 -1
  189. package/Tumbler/index.d.ts +8 -8
  190. package/Tumbler/package.json +1 -1
  191. package/package.json +7 -5
  192. package/useBodyTTag/cjs/index.development.js +1 -1
  193. package/useBodyTTag/cjs/index.development.v2.js +1 -1
  194. package/useBodyTTag/index.d.ts +2 -2
  195. package/useBodyTTag/package.json +1 -1
  196. package/useDebounce/cjs/index.development.js +58 -6
  197. package/useDebounce/cjs/index.development.v2.js +58 -6
  198. package/useDebounce/cjs/index.production.js +1 -1
  199. package/useDebounce/cjs/index.production.v2.js +1 -1
  200. package/useDebounce/index.d.ts +4 -4
  201. package/useDebounce/package.json +1 -1
  202. package/useId/cjs/index.development.js +6 -7
  203. package/useId/cjs/index.development.v2.js +6 -7
  204. package/useId/cjs/index.production.js +1 -1
  205. package/useId/cjs/index.production.v2.js +1 -1
  206. package/useId/index.d.ts +4 -4
  207. package/useId/package.json +1 -1
  208. package/useIsMounted/cjs/index.development.js +3 -3
  209. package/useIsMounted/cjs/index.development.v2.js +3 -3
  210. package/useIsMounted/index.d.ts +4 -4
  211. package/useIsMounted/package.json +1 -1
  212. package/useKeyPress/cjs/index.development.js +76 -22
  213. package/useKeyPress/cjs/index.development.v2.js +76 -22
  214. package/useKeyPress/cjs/index.production.js +1 -1
  215. package/useKeyPress/cjs/index.production.v2.js +1 -1
  216. package/useKeyPress/index.d.ts +6 -6
  217. package/useKeyPress/package.json +1 -1
  218. package/useMedia/cjs/index.development.js +5 -5
  219. package/useMedia/cjs/index.development.v2.js +5 -5
  220. package/useMedia/index.d.ts +21 -21
  221. package/useMedia/package.json +1 -1
  222. package/useOutsideClick/cjs/index.development.js +2 -2
  223. package/useOutsideClick/cjs/index.development.v2.js +2 -2
  224. package/useOutsideClick/index.d.ts +5 -5
  225. package/useOutsideClick/package.json +1 -1
  226. package/usePortal/cjs/index.development.js +32 -27
  227. package/usePortal/cjs/index.development.v2.js +32 -27
  228. package/usePortal/index.d.ts +12 -12
  229. package/usePortal/package.json +1 -1
  230. package/useScrollPosition/cjs/index.development.js +2 -2
  231. package/useScrollPosition/cjs/index.development.v2.js +2 -2
  232. package/useScrollPosition/index.d.ts +5 -5
  233. package/useScrollPosition/package.json +1 -1
package/Flex/index.d.ts CHANGED
@@ -1,34 +1,34 @@
1
- import type { CreateBlock, EvokitProp, EvokitMediaSufix } from '@prom-ui/core/base/types';
2
- type FlexItemAlign = EvokitMediaSufix<'start' | 'end' | 'center' | 'baseline' | 'stretch'>;
3
- type FlexItemDisplay = EvokitMediaSufix<'block' | 'none'>;
4
- type FlexItemEmpty = EvokitMediaSufix<'hidden'>;
5
- type FlexItemOrder = EvokitMediaSufix<0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10>;
6
- type FlexDirection = EvokitMediaSufix<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
7
- type FlexDisplay = EvokitMediaSufix<'flex' | 'inline-flex' | 'none'>;
8
- type FlexHeight = EvokitMediaSufix<'auto' | 'inherit' | '1-1'>;
9
- type FlexItems = EvokitMediaSufix<'start' | 'end' | 'center' | 'baseline' | 'stretch'>;
10
- type FlexWrap = EvokitMediaSufix<'nowrap' | 'wrap' | 'wrap-reverse'>;
11
- type FlexContent = EvokitMediaSufix<'start' | 'end' | 'center' | 'between' | 'around' | 'stretch'>;
12
- export type FlexProps = {
13
- 'flex-direction'?: EvokitProp<FlexDirection>;
14
- 'flex-display'?: EvokitProp<FlexDisplay>;
15
- 'flex-height'?: EvokitProp<FlexHeight>;
16
- 'flex-items'?: EvokitProp<FlexItems>;
17
- 'flex-wrap'?: EvokitProp<FlexWrap>;
18
- 'flex-content'?: EvokitProp<FlexContent | `${FlexContent} ${string}`>;
19
- /** @ignore */
20
- 'flex-content-align'?: EvokitProp<FlexContent>;
21
- /** @ignore */
22
- 'flex-content-justify'?: EvokitProp<FlexContent>;
23
- };
24
- export type FlexItemProps = {
25
- 'flex-item-align'?: EvokitProp<FlexItemAlign>;
26
- 'flex-item-display'?: EvokitProp<FlexItemDisplay>;
27
- 'flex-item-empty'?: EvokitProp<FlexItemEmpty>;
28
- 'flex-item-order'?: EvokitProp<FlexItemOrder>;
29
- };
30
- declare const FlexItem: CreateBlock<'div', 'flex-item', FlexItemProps>;
31
- export declare const Flex: CreateBlock<'div', 'flex', FlexProps> & {
32
- Item: typeof FlexItem;
33
- };
34
- export {};
1
+ import type { CreateBlock, EvokitProp, EvokitMediaSufix } from '@prom-ui/core/base/types';
2
+ type FlexItemAlign = EvokitMediaSufix<'start' | 'end' | 'center' | 'baseline' | 'stretch'>;
3
+ type FlexItemDisplay = EvokitMediaSufix<'block' | 'none'>;
4
+ type FlexItemEmpty = EvokitMediaSufix<'hidden'>;
5
+ type FlexItemOrder = EvokitMediaSufix<0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10>;
6
+ type FlexDirection = EvokitMediaSufix<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
7
+ type FlexDisplay = EvokitMediaSufix<'flex' | 'inline-flex' | 'none'>;
8
+ type FlexHeight = EvokitMediaSufix<'auto' | 'inherit' | '1-1'>;
9
+ type FlexItems = EvokitMediaSufix<'start' | 'end' | 'center' | 'baseline' | 'stretch'>;
10
+ type FlexWrap = EvokitMediaSufix<'nowrap' | 'wrap' | 'wrap-reverse'>;
11
+ type FlexContent = EvokitMediaSufix<'start' | 'end' | 'center' | 'between' | 'around' | 'stretch'>;
12
+ export type FlexProps = {
13
+ 'flex-direction'?: EvokitProp<FlexDirection>;
14
+ 'flex-display'?: EvokitProp<FlexDisplay>;
15
+ 'flex-height'?: EvokitProp<FlexHeight>;
16
+ 'flex-items'?: EvokitProp<FlexItems>;
17
+ 'flex-wrap'?: EvokitProp<FlexWrap>;
18
+ 'flex-content'?: EvokitProp<FlexContent | `${FlexContent} ${string}`>;
19
+ /** @ignore */
20
+ 'flex-content-align'?: EvokitProp<FlexContent>;
21
+ /** @ignore */
22
+ 'flex-content-justify'?: EvokitProp<FlexContent>;
23
+ };
24
+ export type FlexItemProps = {
25
+ 'flex-item-align'?: EvokitProp<FlexItemAlign>;
26
+ 'flex-item-display'?: EvokitProp<FlexItemDisplay>;
27
+ 'flex-item-empty'?: EvokitProp<FlexItemEmpty>;
28
+ 'flex-item-order'?: EvokitProp<FlexItemOrder>;
29
+ };
30
+ declare const FlexItem: CreateBlock<'div', 'flex-item', FlexItemProps>;
31
+ export declare const Flex: CreateBlock<'div', 'flex', FlexProps> & {
32
+ Item: typeof FlexItem;
33
+ };
34
+ export {};
package/Flex/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Flex",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
package/Grid/index.d.ts CHANGED
@@ -1,46 +1,46 @@
1
- import type { CreateBlock, EvokitProp, EvokitMediaSufix } from '@prom-ui/core/base/types';
2
- type GridItemDisplay = EvokitMediaSufix<'block' | 'none'>;
3
- type GridItemOrder = EvokitMediaSufix<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10>;
4
- type GridItemWidth = EvokitMediaSufix<'auto' | 'expand' | `1-${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `2-${2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `3-${3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `4-${4 | 5 | 6 | 7 | 8 | 9 | 10}` | `5-${5 | 6 | 7 | 8 | 9 | 10}` | `6-${6 | 7 | 8 | 9 | 10}` | `7-${7 | 8 | 9 | 10}` | `8-${8 | 9 | 10}` | `9-${9 | 10}` | `10-10`>;
5
- type GridAlign = EvokitMediaSufix<'left' | 'center' | 'right' | 'justify'>;
6
- type GridColumn = EvokitMediaSufix<'auto' | 'expand' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10>;
7
- type GridDirection = EvokitMediaSufix<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
8
- type GridDisplay = EvokitMediaSufix<'flex' | 'none'>;
9
- type GridDivider = EvokitMediaSufix<'black-400'>;
10
- type GridDividerColumn = EvokitMediaSufix<'auto' | 'expand' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10>;
11
- type GridHeight = EvokitMediaSufix<'auto' | 'inherit' | '1-1'>;
12
- type GridValign = EvokitMediaSufix<'top' | 'middle' | 'bottom' | 'baseline' | 'justify'>;
13
- type GridWrap = EvokitMediaSufix<'wrap' | 'nowrap' | 'wrap-reverse'>;
14
- type GridIndent = EvokitMediaSufix<'none' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl' | '4xl' | '5xl'>;
15
- export type GridProps = {
16
- 'grid-align'?: EvokitProp<GridAlign>;
17
- 'grid-column'?: EvokitProp<GridColumn>;
18
- 'grid-direction'?: EvokitProp<GridDirection>;
19
- 'grid-display'?: EvokitProp<GridDisplay>;
20
- 'grid-divider'?: EvokitProp<GridDivider>;
21
- 'grid-divider-column'?: EvokitProp<GridDividerColumn>;
22
- 'grid-height'?: EvokitProp<GridHeight>;
23
- 'grid-valign'?: EvokitProp<GridValign>;
24
- 'grid-wrap'?: EvokitProp<GridWrap>;
25
- 'grid-blackhole'?: EvokitProp<'display-inline-flex'>;
26
- 'grid-indent'?: EvokitProp<GridIndent | `${GridIndent} ${string}`>;
27
- /** @ignore */
28
- 'grid-indent-x'?: EvokitProp<GridIndent>;
29
- /** @ignore */
30
- 'grid-indent-y'?: EvokitProp<GridIndent>;
31
- 'grid-divider-indent'?: EvokitProp<GridIndent | `${GridIndent} ${string}`>;
32
- /** @ignore */
33
- 'grid-divider-indent-x'?: EvokitProp<GridIndent>;
34
- /** @ignore */
35
- 'grid-divider-indent-y'?: EvokitProp<GridIndent>;
36
- };
37
- export type GridItemProps = {
38
- 'grid-item-display'?: EvokitProp<GridItemDisplay>;
39
- 'grid-item-order'?: EvokitProp<GridItemOrder>;
40
- 'grid-item-width'?: EvokitProp<GridItemWidth>;
41
- };
42
- declare const GridItem: CreateBlock<'div', 'grid-item', GridItemProps>;
43
- export declare const Grid: CreateBlock<'div', 'grid', GridProps> & {
44
- Item: typeof GridItem;
45
- };
46
- export {};
1
+ import type { CreateBlock, EvokitProp, EvokitMediaSufix } from '@prom-ui/core/base/types';
2
+ type GridItemDisplay = EvokitMediaSufix<'block' | 'none'>;
3
+ type GridItemOrder = EvokitMediaSufix<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10>;
4
+ type GridItemWidth = EvokitMediaSufix<'auto' | 'expand' | `1-${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `2-${2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `3-${3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `4-${4 | 5 | 6 | 7 | 8 | 9 | 10}` | `5-${5 | 6 | 7 | 8 | 9 | 10}` | `6-${6 | 7 | 8 | 9 | 10}` | `7-${7 | 8 | 9 | 10}` | `8-${8 | 9 | 10}` | `9-${9 | 10}` | `10-10`>;
5
+ type GridAlign = EvokitMediaSufix<'left' | 'center' | 'right' | 'justify'>;
6
+ type GridColumn = EvokitMediaSufix<'auto' | 'expand' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10>;
7
+ type GridDirection = EvokitMediaSufix<'row' | 'row-reverse' | 'column' | 'column-reverse'>;
8
+ type GridDisplay = EvokitMediaSufix<'flex' | 'none'>;
9
+ type GridDivider = EvokitMediaSufix<'black-400'>;
10
+ type GridDividerColumn = EvokitMediaSufix<'auto' | 'expand' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10>;
11
+ type GridHeight = EvokitMediaSufix<'auto' | 'inherit' | '1-1'>;
12
+ type GridValign = EvokitMediaSufix<'top' | 'middle' | 'bottom' | 'baseline' | 'justify'>;
13
+ type GridWrap = EvokitMediaSufix<'wrap' | 'nowrap' | 'wrap-reverse'>;
14
+ type GridIndent = EvokitMediaSufix<'none' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl' | '4xl' | '5xl'>;
15
+ export type GridProps = {
16
+ 'grid-align'?: EvokitProp<GridAlign>;
17
+ 'grid-column'?: EvokitProp<GridColumn>;
18
+ 'grid-direction'?: EvokitProp<GridDirection>;
19
+ 'grid-display'?: EvokitProp<GridDisplay>;
20
+ 'grid-divider'?: EvokitProp<GridDivider>;
21
+ 'grid-divider-column'?: EvokitProp<GridDividerColumn>;
22
+ 'grid-height'?: EvokitProp<GridHeight>;
23
+ 'grid-valign'?: EvokitProp<GridValign>;
24
+ 'grid-wrap'?: EvokitProp<GridWrap>;
25
+ 'grid-blackhole'?: EvokitProp<'display-inline-flex'>;
26
+ 'grid-indent'?: EvokitProp<GridIndent | `${GridIndent} ${string}`>;
27
+ /** @ignore */
28
+ 'grid-indent-x'?: EvokitProp<GridIndent>;
29
+ /** @ignore */
30
+ 'grid-indent-y'?: EvokitProp<GridIndent>;
31
+ 'grid-divider-indent'?: EvokitProp<GridIndent | `${GridIndent} ${string}`>;
32
+ /** @ignore */
33
+ 'grid-divider-indent-x'?: EvokitProp<GridIndent>;
34
+ /** @ignore */
35
+ 'grid-divider-indent-y'?: EvokitProp<GridIndent>;
36
+ };
37
+ export type GridItemProps = {
38
+ 'grid-item-display'?: EvokitProp<GridItemDisplay>;
39
+ 'grid-item-order'?: EvokitProp<GridItemOrder>;
40
+ 'grid-item-width'?: EvokitProp<GridItemWidth>;
41
+ };
42
+ declare const GridItem: CreateBlock<'div', 'grid-item', GridItemProps>;
43
+ export declare const Grid: CreateBlock<'div', 'grid', GridProps> & {
44
+ Item: typeof GridItem;
45
+ };
46
+ export {};
package/Grid/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Grid",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
package/Icon/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { CreateBlock, EvokitProp } from '@prom-ui/core/base/types';
2
- export type IconProps = {
3
- 'icon-display'?: EvokitProp<'block' | 'inline-block' | 'none'>;
4
- /** Цвет иконки */
5
- 'icon-color'?: EvokitProp<'black-400' | 'black-600' | 'black-700' | 'black-900' | 'blue-500' | 'green-500' | 'green-800' | 'red-500' | 'red-900' | 'violet-500' | 'white' | 'yellow-500'>;
6
- /** Отвечает за события мыши/касания */
7
- 'icon-events'?: EvokitProp<'auto' | 'none'>;
8
- };
9
- export declare const Icon: CreateBlock<'svg', 'icon', IconProps>;
1
+ import type { CreateBlock, EvokitProp } from '@prom-ui/core/base/types';
2
+ export type IconProps = {
3
+ 'icon-display'?: EvokitProp<'block' | 'inline-block' | 'none'>;
4
+ /** Цвет иконки */
5
+ 'icon-color'?: EvokitProp<'black-400' | 'black-600' | 'black-700' | 'black-900' | 'blue-500' | 'green-500' | 'green-800' | 'red-500' | 'red-900' | 'violet-500' | 'white' | 'yellow-500'>;
6
+ /** Отвечает за события мыши/касания */
7
+ 'icon-events'?: EvokitProp<'auto' | 'none'>;
8
+ };
9
+ export declare const Icon: CreateBlock<'svg', 'icon', IconProps>;
package/Icon/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Icon",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
package/Image/index.d.ts CHANGED
@@ -1,42 +1,42 @@
1
- import type { CreateBlock, EvokitProp, EvokitMediaSufix } from '@prom-ui/core/base/types';
2
- type ImageAlign = EvokitMediaSufix<'left' | 'center' | 'right'>;
3
- type ImageAlt = EvokitMediaSufix<'visible' | 'hidden'>;
4
- type ImageThemes = EvokitMediaSufix<'black-400' | 'white'>;
5
- type ImageDisplay = EvokitMediaSufix<'inline' | 'block' | 'none'>;
6
- type ImageFit = EvokitMediaSufix<'none' | 'fill' | 'contain' | 'cover' | 'scale-down'>;
7
- type ImageHeight = EvokitMediaSufix<'auto' | '1-1'>;
8
- type ImageMirror = EvokitMediaSufix<'x' | 'y' | 'xy'>;
9
- type ImageValign = EvokitMediaSufix<'baseline' | 'bottom' | 'middle' | 'sub' | 'super' | 'text-bottom' | 'text-top' | 'top'>;
10
- type ImageWidth = EvokitMediaSufix<'auto' | `1-${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `2-${2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `3-${3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `4-${4 | 5 | 6 | 7 | 8 | 9 | 10}` | `5-${5 | 6 | 7 | 8 | 9 | 10}` | `6-${6 | 7 | 8 | 9 | 10}` | `7-${7 | 8 | 9 | 10}` | `8-${8 | 9 | 10}` | `9-${9 | 10}` | `10-10`>;
11
- type ImageRound = EvokitMediaSufix<'none' | 'full' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl' | '4xl' | '5xl'>;
12
- export type ImageProps = {
13
- 'image-align'?: EvokitProp<ImageAlign>;
14
- 'image-alt'?: EvokitProp<ImageAlt>;
15
- 'image-background'?: EvokitProp<ImageThemes>;
16
- 'image-display'?: EvokitProp<ImageDisplay>;
17
- 'image-fit'?: EvokitProp<ImageFit>;
18
- 'image-height'?: EvokitProp<ImageHeight>;
19
- 'image-mirror'?: EvokitProp<ImageMirror>;
20
- 'image-valign'?: EvokitProp<ImageValign>;
21
- 'image-width'?: EvokitProp<ImageWidth>;
22
- 'image-border'?: EvokitProp<ImageThemes>;
23
- /** @ignore */
24
- 'image-border-top'?: EvokitProp<ImageThemes>;
25
- /** @ignore */
26
- 'image-border-right'?: EvokitProp<ImageThemes>;
27
- /** @ignore */
28
- 'image-border-bottom'?: EvokitProp<ImageThemes>;
29
- /** @ignore */
30
- 'image-border-left'?: EvokitProp<ImageThemes>;
31
- 'image-round'?: EvokitProp<ImageRound | `${ImageRound} ${string}`>;
32
- /** @ignore */
33
- 'image-round-top-left'?: EvokitProp<ImageRound>;
34
- /** @ignore */
35
- 'image-round-top-right'?: EvokitProp<ImageRound>;
36
- /** @ignore */
37
- 'image-round-bottom-left'?: EvokitProp<ImageRound>;
38
- /** @ignore */
39
- 'image-round-bottom-right'?: EvokitProp<ImageRound>;
40
- };
41
- export declare const Image: CreateBlock<'img', 'image', ImageProps>;
42
- export {};
1
+ import type { CreateBlock, EvokitProp, EvokitMediaSufix } from '@prom-ui/core/base/types';
2
+ type ImageAlign = EvokitMediaSufix<'left' | 'center' | 'right'>;
3
+ type ImageAlt = EvokitMediaSufix<'visible' | 'hidden'>;
4
+ type ImageThemes = EvokitMediaSufix<'black-400' | 'white'>;
5
+ type ImageDisplay = EvokitMediaSufix<'inline' | 'block' | 'none'>;
6
+ type ImageFit = EvokitMediaSufix<'none' | 'fill' | 'contain' | 'cover' | 'scale-down'>;
7
+ type ImageHeight = EvokitMediaSufix<'auto' | '1-1'>;
8
+ type ImageMirror = EvokitMediaSufix<'x' | 'y' | 'xy'>;
9
+ type ImageValign = EvokitMediaSufix<'baseline' | 'bottom' | 'middle' | 'sub' | 'super' | 'text-bottom' | 'text-top' | 'top'>;
10
+ type ImageWidth = EvokitMediaSufix<'auto' | `1-${1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `2-${2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `3-${3 | 4 | 5 | 6 | 7 | 8 | 9 | 10}` | `4-${4 | 5 | 6 | 7 | 8 | 9 | 10}` | `5-${5 | 6 | 7 | 8 | 9 | 10}` | `6-${6 | 7 | 8 | 9 | 10}` | `7-${7 | 8 | 9 | 10}` | `8-${8 | 9 | 10}` | `9-${9 | 10}` | `10-10`>;
11
+ type ImageRound = EvokitMediaSufix<'none' | 'full' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | '3xl' | '4xl' | '5xl'>;
12
+ export type ImageProps = {
13
+ 'image-align'?: EvokitProp<ImageAlign>;
14
+ 'image-alt'?: EvokitProp<ImageAlt>;
15
+ 'image-background'?: EvokitProp<ImageThemes>;
16
+ 'image-display'?: EvokitProp<ImageDisplay>;
17
+ 'image-fit'?: EvokitProp<ImageFit>;
18
+ 'image-height'?: EvokitProp<ImageHeight>;
19
+ 'image-mirror'?: EvokitProp<ImageMirror>;
20
+ 'image-valign'?: EvokitProp<ImageValign>;
21
+ 'image-width'?: EvokitProp<ImageWidth>;
22
+ 'image-border'?: EvokitProp<ImageThemes>;
23
+ /** @ignore */
24
+ 'image-border-top'?: EvokitProp<ImageThemes>;
25
+ /** @ignore */
26
+ 'image-border-right'?: EvokitProp<ImageThemes>;
27
+ /** @ignore */
28
+ 'image-border-bottom'?: EvokitProp<ImageThemes>;
29
+ /** @ignore */
30
+ 'image-border-left'?: EvokitProp<ImageThemes>;
31
+ 'image-round'?: EvokitProp<ImageRound | `${ImageRound} ${string}`>;
32
+ /** @ignore */
33
+ 'image-round-top-left'?: EvokitProp<ImageRound>;
34
+ /** @ignore */
35
+ 'image-round-top-right'?: EvokitProp<ImageRound>;
36
+ /** @ignore */
37
+ 'image-round-bottom-left'?: EvokitProp<ImageRound>;
38
+ /** @ignore */
39
+ 'image-round-bottom-right'?: EvokitProp<ImageRound>;
40
+ };
41
+ export declare const Image: CreateBlock<'img', 'image', ImageProps>;
42
+ export {};
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prom-ui/core/Image",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "sideEffects": [
@@ -7,79 +7,86 @@ var emoji = require('@evo/emoji');
7
7
  var Image = require('@prom-ui/core/Image');
8
8
 
9
9
  function _interopNamespaceCompat(e) {
10
- if (e && typeof e === 'object' && 'default' in e) return e;
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
10
+ if (e && typeof e === 'object' && 'default' in e) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
21
19
  });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
20
+ }
21
+ });
22
+ }
23
+ n.default = e;
24
+ return Object.freeze(n);
25
25
  }
26
26
 
27
27
  var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
28
28
 
29
- /******************************************************************************
30
- Copyright (c) Microsoft Corporation.
31
-
32
- Permission to use, copy, modify, and/or distribute this software for any
33
- purpose with or without fee is hereby granted.
34
-
35
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
- PERFORMANCE OF THIS SOFTWARE.
42
- ***************************************************************************** */
43
-
44
- var __assign = function() {
45
- __assign = Object.assign || function __assign(t) {
46
- for (var s, i = 1, n = arguments.length; i < n; i++) {
47
- s = arguments[i];
48
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
49
- }
50
- return t;
51
- };
52
- return __assign.apply(this, arguments);
53
- };
54
-
55
- function __rest(s, e) {
56
- var t = {};
57
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
58
- t[p] = s[p];
59
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
60
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
61
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
62
- t[p[i]] = s[p[i]];
63
- }
64
- return t;
29
+ function _extends() {
30
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
31
+ for (var i = 1; i < arguments.length; i++) {
32
+ var source = arguments[i];
33
+ for (var key in source) {
34
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
35
+ target[key] = source[key];
36
+ }
37
+ }
38
+ }
39
+ return target;
40
+ };
41
+ return _extends.apply(this, arguments);
42
+ }
43
+ function _objectWithoutPropertiesLoose(source, excluded) {
44
+ if (source == null) return {};
45
+ var target = {};
46
+ var sourceKeys = Object.keys(source);
47
+ var key, i;
48
+ for (i = 0; i < sourceKeys.length; i++) {
49
+ key = sourceKeys[i];
50
+ if (excluded.indexOf(key) >= 0) continue;
51
+ target[key] = source[key];
52
+ }
53
+ return target;
54
+ }
55
+ function _objectWithoutProperties(source, excluded) {
56
+ if (source == null) return {};
57
+ var target = _objectWithoutPropertiesLoose(source, excluded);
58
+ var key, i;
59
+ if (Object.getOwnPropertySymbols) {
60
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
61
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
62
+ key = sourceSymbolKeys[i];
63
+ if (excluded.indexOf(key) >= 0) continue;
64
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
65
+ target[key] = source[key];
66
+ }
67
+ }
68
+ return target;
65
69
  }
66
70
 
67
- var ImageEmoji = React__namespace.forwardRef(function (_a, ref) {
68
- var shortName = _a.shortName,
69
- _b = _a.viewType,
70
- viewType = _b === void 0 ? 'apple' : _b,
71
- _c = _a.width,
72
- width = _c === void 0 ? 20 : _c,
73
- _d = _a.height,
74
- height = _d === void 0 ? 20 : _d,
75
- props = __rest(_a, ["shortName", "viewType", "width", "height"]);
76
- return React__namespace.createElement(Image.Image, __assign({
71
+ var _excluded = ["shortName", "viewType", "width", "height"];
72
+ var ImageEmoji = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
73
+ var shortName = _ref.shortName,
74
+ _ref$viewType = _ref.viewType,
75
+ viewType = _ref$viewType === void 0 ? 'apple' : _ref$viewType,
76
+ _ref$width = _ref.width,
77
+ width = _ref$width === void 0 ? 20 : _ref$width,
78
+ _ref$height = _ref.height,
79
+ height = _ref$height === void 0 ? 20 : _ref$height,
80
+ props = _objectWithoutProperties(_ref, _excluded);
81
+ return /*#__PURE__*/React__namespace.createElement(Image.Image, _extends({
77
82
  "image-as": emoji.Emoji,
78
- "image-alt": 'hidden',
79
- alt: shortName ? ":".concat(shortName, ":") : '',
83
+ "image-alt": "hidden",
84
+ alt: shortName ? ":".concat(shortName, ":") : ''
80
85
  // @ts-ignore
81
- width: width,
86
+ ,
87
+ width: width
82
88
  // @ts-ignore
89
+ ,
83
90
  height: height
84
91
  }, props, {
85
92
  name: shortName,
@@ -7,79 +7,86 @@ var emoji = require('@evo/emoji');
7
7
  var Image = require('@prom-ui/core/Image');
8
8
 
9
9
  function _interopNamespaceCompat(e) {
10
- if (e && typeof e === 'object' && 'default' in e) return e;
11
- var n = Object.create(null);
12
- if (e) {
13
- Object.keys(e).forEach(function (k) {
14
- if (k !== 'default') {
15
- var d = Object.getOwnPropertyDescriptor(e, k);
16
- Object.defineProperty(n, k, d.get ? d : {
17
- enumerable: true,
18
- get: function () { return e[k]; }
19
- });
20
- }
10
+ if (e && typeof e === 'object' && 'default' in e) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
21
19
  });
22
- }
23
- n.default = e;
24
- return Object.freeze(n);
20
+ }
21
+ });
22
+ }
23
+ n.default = e;
24
+ return Object.freeze(n);
25
25
  }
26
26
 
27
27
  var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);
28
28
 
29
- /******************************************************************************
30
- Copyright (c) Microsoft Corporation.
31
-
32
- Permission to use, copy, modify, and/or distribute this software for any
33
- purpose with or without fee is hereby granted.
34
-
35
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
36
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
37
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
38
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
39
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
40
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41
- PERFORMANCE OF THIS SOFTWARE.
42
- ***************************************************************************** */
43
-
44
- var __assign = function() {
45
- __assign = Object.assign || function __assign(t) {
46
- for (var s, i = 1, n = arguments.length; i < n; i++) {
47
- s = arguments[i];
48
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
49
- }
50
- return t;
51
- };
52
- return __assign.apply(this, arguments);
53
- };
54
-
55
- function __rest(s, e) {
56
- var t = {};
57
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
58
- t[p] = s[p];
59
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
60
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
61
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
62
- t[p[i]] = s[p[i]];
63
- }
64
- return t;
29
+ function _extends() {
30
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
31
+ for (var i = 1; i < arguments.length; i++) {
32
+ var source = arguments[i];
33
+ for (var key in source) {
34
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
35
+ target[key] = source[key];
36
+ }
37
+ }
38
+ }
39
+ return target;
40
+ };
41
+ return _extends.apply(this, arguments);
42
+ }
43
+ function _objectWithoutPropertiesLoose(source, excluded) {
44
+ if (source == null) return {};
45
+ var target = {};
46
+ var sourceKeys = Object.keys(source);
47
+ var key, i;
48
+ for (i = 0; i < sourceKeys.length; i++) {
49
+ key = sourceKeys[i];
50
+ if (excluded.indexOf(key) >= 0) continue;
51
+ target[key] = source[key];
52
+ }
53
+ return target;
54
+ }
55
+ function _objectWithoutProperties(source, excluded) {
56
+ if (source == null) return {};
57
+ var target = _objectWithoutPropertiesLoose(source, excluded);
58
+ var key, i;
59
+ if (Object.getOwnPropertySymbols) {
60
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
61
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
62
+ key = sourceSymbolKeys[i];
63
+ if (excluded.indexOf(key) >= 0) continue;
64
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
65
+ target[key] = source[key];
66
+ }
67
+ }
68
+ return target;
65
69
  }
66
70
 
67
- var ImageEmoji = React__namespace.forwardRef(function (_a, ref) {
68
- var shortName = _a.shortName,
69
- _b = _a.viewType,
70
- viewType = _b === void 0 ? 'apple' : _b,
71
- _c = _a.width,
72
- width = _c === void 0 ? 20 : _c,
73
- _d = _a.height,
74
- height = _d === void 0 ? 20 : _d,
75
- props = __rest(_a, ["shortName", "viewType", "width", "height"]);
76
- return React__namespace.createElement(Image.Image, __assign({
71
+ var _excluded = ["shortName", "viewType", "width", "height"];
72
+ var ImageEmoji = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
73
+ var shortName = _ref.shortName,
74
+ _ref$viewType = _ref.viewType,
75
+ viewType = _ref$viewType === void 0 ? 'apple' : _ref$viewType,
76
+ _ref$width = _ref.width,
77
+ width = _ref$width === void 0 ? 20 : _ref$width,
78
+ _ref$height = _ref.height,
79
+ height = _ref$height === void 0 ? 20 : _ref$height,
80
+ props = _objectWithoutProperties(_ref, _excluded);
81
+ return /*#__PURE__*/React__namespace.createElement(Image.Image, _extends({
77
82
  "image-as": emoji.Emoji,
78
- "image-alt": 'hidden',
79
- alt: shortName ? ":".concat(shortName, ":") : '',
83
+ "image-alt": "hidden",
84
+ alt: shortName ? ":".concat(shortName, ":") : ''
80
85
  // @ts-ignore
81
- width: width,
86
+ ,
87
+ width: width
82
88
  // @ts-ignore
89
+ ,
83
90
  height: height
84
91
  }, props, {
85
92
  name: shortName,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@evo/emoji"),r=require("@prom-ui/core/Image");function o(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var n=o(e),i=function(){return i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},i.apply(this,arguments)};var a=n.forwardRef((function(e,o){var a=e.shortName,c=e.viewType,f=void 0===c?"apple":c,u=e.width,p=void 0===u?20:u,l=e.height,y=void 0===l?20:l,O=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(e,["shortName","viewType","width","height"]);return n.createElement(r.Image,i({"image-as":t.Emoji,"image-alt":"hidden",alt:a?":".concat(a,":"):"",width:p,height:y},O,{name:a,type:f,ref:o}))}));exports.ImageEmoji=a;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@evo/emoji"),t=require("@prom-ui/core/Image");function n(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var i=n(e);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(this,arguments)}function a(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var c=["shortName","viewType","width","height"],u=i.forwardRef((function(e,n){var u=e.shortName,f=e.viewType,l=void 0===f?"apple":f,p=e.width,s=void 0===p?20:p,b=e.height,v=void 0===b?20:b,O=a(e,c);return i.createElement(t.Image,o({"image-as":r.Emoji,"image-alt":"hidden",alt:u?":".concat(u,":"):"",width:s,height:v},O,{name:u,type:l,ref:n}))}));exports.ImageEmoji=u;