@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.
- package/Avatar/cjs/index.development.js +99 -67
- package/Avatar/cjs/index.development.v2.js +99 -67
- package/Avatar/cjs/index.production.js +1 -1
- package/Avatar/cjs/index.production.v2.js +1 -1
- package/Avatar/index.d.ts +14 -14
- package/Avatar/package.json +1 -1
- package/Avatar/utils.d.ts +2 -2
- package/Backdrop/cjs/index.development.js +131 -77
- package/Backdrop/cjs/index.development.v2.js +131 -77
- package/Backdrop/cjs/index.production.js +1 -1
- package/Backdrop/cjs/index.production.v2.js +1 -1
- package/Backdrop/index.d.ts +25 -25
- package/Backdrop/package.json +1 -1
- package/Body/cjs/index.development.js +2 -0
- package/Body/cjs/index.development.v2.js +2 -0
- package/Body/index.d.ts +36 -36
- package/Body/package.json +1 -1
- package/BodyContext/cjs/index.development.js +6 -7
- package/BodyContext/cjs/index.development.v2.js +6 -7
- package/BodyContext/cjs/index.production.js +1 -1
- package/BodyContext/cjs/index.production.v2.js +1 -1
- package/BodyContext/index.d.ts +12 -12
- package/BodyContext/package.json +1 -1
- package/BodyProvider/cjs/index.development.js +7 -6
- package/BodyProvider/cjs/index.development.v2.js +7 -6
- package/BodyProvider/index.d.ts +10 -10
- package/BodyProvider/package.json +1 -1
- package/Box/cjs/index.development.js +4 -4
- package/Box/cjs/index.development.v2.js +4 -4
- package/Box/index.d.ts +106 -106
- package/Box/package.json +1 -1
- package/Button/cjs/index.development.js +67 -62
- package/Button/cjs/index.development.v2.js +67 -62
- package/Button/cjs/index.production.js +1 -1
- package/Button/cjs/index.production.v2.js +1 -1
- package/Button/index.d.ts +45 -45
- package/Button/package.json +1 -1
- package/ButtonPageUp/cjs/index.development.js +195 -85
- package/ButtonPageUp/cjs/index.development.v2.js +195 -85
- package/ButtonPageUp/cjs/index.production.js +1 -1
- package/ButtonPageUp/cjs/index.production.v2.js +1 -1
- package/ButtonPageUp/index.d.ts +18 -18
- package/ButtonPageUp/package.json +1 -1
- package/Checkbox/cjs/index.development.js +99 -67
- package/Checkbox/cjs/index.development.v2.js +99 -67
- package/Checkbox/cjs/index.production.js +1 -1
- package/Checkbox/cjs/index.production.v2.js +1 -1
- package/Checkbox/index.d.ts +8 -8
- package/Checkbox/package.json +1 -1
- package/Flex/index.d.ts +34 -34
- package/Flex/package.json +1 -1
- package/Grid/index.d.ts +46 -46
- package/Grid/package.json +1 -1
- package/Icon/index.d.ts +9 -9
- package/Icon/package.json +1 -1
- package/Image/index.d.ts +42 -42
- package/Image/package.json +1 -1
- package/ImageEmoji/cjs/index.development.js +70 -63
- package/ImageEmoji/cjs/index.development.v2.js +70 -63
- package/ImageEmoji/cjs/index.production.js +1 -1
- package/ImageEmoji/cjs/index.production.v2.js +1 -1
- package/ImageEmoji/index.d.ts +9 -9
- package/ImageEmoji/package.json +1 -1
- package/Input/index.d.ts +18 -18
- package/Input/package.json +1 -1
- package/InputField/addons/AfterClearValue.d.ts +3 -3
- package/InputField/addons/AfterCorrectValue.d.ts +2 -2
- package/InputField/addons/AfterLoading.d.ts +2 -2
- package/InputField/addons/AfterTogglePassword.d.ts +6 -6
- package/InputField/addons/ErrorText.d.ts +6 -6
- package/InputField/cjs/index.development.js +237 -173
- package/InputField/cjs/index.development.v2.js +237 -173
- package/InputField/cjs/index.production.js +1 -1
- package/InputField/cjs/index.production.v2.js +1 -1
- package/InputField/index.d.ts +18 -18
- package/InputField/package.json +1 -1
- package/InputField/utils.d.ts +10 -10
- package/KeyPress/cjs/index.development.js +13 -13
- package/KeyPress/cjs/index.development.v2.js +13 -13
- package/KeyPress/index.d.ts +14 -14
- package/KeyPress/package.json +1 -1
- package/Line/index.d.ts +13 -13
- package/Line/package.json +1 -1
- package/Link/cjs/index.development.js +5 -5
- package/Link/cjs/index.development.v2.js +5 -5
- package/Link/index.d.ts +28 -28
- package/Link/package.json +1 -1
- package/List/index.d.ts +23 -23
- package/List/package.json +1 -1
- package/Media/MediaProvider.d.ts +8 -8
- package/Media/cjs/index.development.js +70 -19
- package/Media/cjs/index.development.v2.js +70 -19
- package/Media/cjs/index.production.js +1 -1
- package/Media/cjs/index.production.v2.js +1 -1
- package/Media/index.d.ts +20 -20
- package/Media/package.json +1 -1
- package/OutsideClick/cjs/index.development.js +117 -61
- package/OutsideClick/cjs/index.development.v2.js +117 -61
- package/OutsideClick/cjs/index.production.js +1 -1
- package/OutsideClick/cjs/index.production.v2.js +1 -1
- package/OutsideClick/index.d.ts +12 -12
- package/OutsideClick/package.json +1 -1
- package/Overlay/cjs/index.development.js +197 -183
- package/Overlay/cjs/index.development.v2.js +197 -183
- package/Overlay/cjs/index.production.js +1 -1
- package/Overlay/cjs/index.production.v2.js +1 -1
- package/Overlay/components/OverlayHeader.d.ts +11 -11
- package/Overlay/components/SwipeClose.d.ts +11 -11
- package/Overlay/components/TouchScrollable.d.ts +8 -8
- package/Overlay/index.d.ts +76 -76
- package/Overlay/package.json +1 -1
- package/Overlay/utils.d.ts +10 -10
- package/Picture/index.d.ts +70 -70
- package/Picture/package.json +1 -1
- package/Portal/cjs/index.development.js +11 -11
- package/Portal/cjs/index.development.v2.js +11 -11
- package/Portal/index.d.ts +10 -10
- package/Portal/package.json +1 -1
- package/QRCode/cjs/index.development.js +11 -11
- package/QRCode/cjs/index.development.v2.js +11 -11
- package/QRCode/index.d.ts +17 -17
- package/QRCode/package.json +1 -1
- package/Rating/cjs/index.development.js +75 -69
- package/Rating/cjs/index.development.v2.js +75 -69
- package/Rating/cjs/index.production.js +1 -1
- package/Rating/cjs/index.production.v2.js +1 -1
- package/Rating/index.d.ts +17 -17
- package/Rating/package.json +1 -1
- package/RatingSelect/cjs/index.development.js +148 -68
- package/RatingSelect/cjs/index.development.v2.js +148 -68
- package/RatingSelect/cjs/index.production.js +1 -1
- package/RatingSelect/cjs/index.production.v2.js +1 -1
- package/RatingSelect/index.d.ts +22 -18
- package/RatingSelect/package.json +1 -1
- package/SafeQuery/cjs/index.development.js +158 -110
- package/SafeQuery/cjs/index.development.v2.js +158 -110
- package/SafeQuery/cjs/index.production.js +1 -1
- package/SafeQuery/cjs/index.production.v2.js +1 -1
- package/SafeQuery/components/Error.d.ts +7 -7
- package/SafeQuery/index.d.ts +10 -10
- package/SafeQuery/package.json +1 -1
- package/Scroll/index.d.ts +25 -25
- package/Scroll/package.json +1 -1
- package/ScrollControls/ScrollControlsButton.d.ts +11 -11
- package/ScrollControls/cjs/index.development.js +201 -113
- package/ScrollControls/cjs/index.development.v2.js +201 -113
- package/ScrollControls/cjs/index.production.js +1 -1
- package/ScrollControls/cjs/index.production.v2.js +1 -1
- package/ScrollControls/index.d.ts +16 -16
- package/ScrollControls/package.json +1 -1
- package/SimpleSlider/cjs/index.development.js +270 -158
- package/SimpleSlider/cjs/index.development.v2.js +270 -158
- package/SimpleSlider/cjs/index.production.js +1 -1
- package/SimpleSlider/cjs/index.production.v2.js +1 -1
- package/SimpleSlider/index.d.ts +41 -41
- package/SimpleSlider/package.json +1 -1
- package/SimpleSlider/useAutoPlay.d.ts +3 -3
- package/SimpleSlider/utils.d.ts +19 -19
- package/Skeleton/cjs/index.development.js +118 -64
- package/Skeleton/cjs/index.development.v2.js +118 -64
- package/Skeleton/cjs/index.production.js +1 -1
- package/Skeleton/cjs/index.production.v2.js +1 -1
- package/Skeleton/index.d.ts +37 -37
- package/Skeleton/package.json +1 -1
- package/Spinner/cjs/index.development.js +66 -61
- package/Spinner/cjs/index.development.v2.js +66 -61
- package/Spinner/cjs/index.production.js +1 -1
- package/Spinner/cjs/index.production.v2.js +1 -1
- package/Spinner/index.d.ts +29 -29
- package/Spinner/package.json +1 -1
- package/Text/index.d.ts +25 -25
- package/Text/package.json +1 -1
- package/TextEmoji/cjs/index.development.js +65 -60
- package/TextEmoji/cjs/index.development.v2.js +65 -60
- package/TextEmoji/cjs/index.production.js +1 -1
- package/TextEmoji/cjs/index.production.v2.js +1 -1
- package/TextEmoji/index.d.ts +9 -9
- package/TextEmoji/package.json +1 -1
- package/Tooltip/cjs/index.development.js +80 -91
- package/Tooltip/cjs/index.development.v2.js +80 -91
- package/Tooltip/cjs/index.production.js +1 -1
- package/Tooltip/cjs/index.production.v2.js +1 -1
- package/Tooltip/index.d.ts +87 -87
- package/Tooltip/package.json +1 -1
- package/Tumbler/cjs/index.development.js +98 -66
- package/Tumbler/cjs/index.development.v2.js +98 -66
- package/Tumbler/cjs/index.production.js +1 -1
- package/Tumbler/cjs/index.production.v2.js +1 -1
- package/Tumbler/index.d.ts +8 -8
- package/Tumbler/package.json +1 -1
- package/package.json +7 -5
- package/useBodyTTag/cjs/index.development.js +1 -1
- package/useBodyTTag/cjs/index.development.v2.js +1 -1
- package/useBodyTTag/index.d.ts +2 -2
- package/useBodyTTag/package.json +1 -1
- package/useDebounce/cjs/index.development.js +58 -6
- package/useDebounce/cjs/index.development.v2.js +58 -6
- package/useDebounce/cjs/index.production.js +1 -1
- package/useDebounce/cjs/index.production.v2.js +1 -1
- package/useDebounce/index.d.ts +4 -4
- package/useDebounce/package.json +1 -1
- package/useId/cjs/index.development.js +6 -7
- package/useId/cjs/index.development.v2.js +6 -7
- package/useId/cjs/index.production.js +1 -1
- package/useId/cjs/index.production.v2.js +1 -1
- package/useId/index.d.ts +4 -4
- package/useId/package.json +1 -1
- package/useIsMounted/cjs/index.development.js +3 -3
- package/useIsMounted/cjs/index.development.v2.js +3 -3
- package/useIsMounted/index.d.ts +4 -4
- package/useIsMounted/package.json +1 -1
- package/useKeyPress/cjs/index.development.js +76 -22
- package/useKeyPress/cjs/index.development.v2.js +76 -22
- package/useKeyPress/cjs/index.production.js +1 -1
- package/useKeyPress/cjs/index.production.v2.js +1 -1
- package/useKeyPress/index.d.ts +6 -6
- package/useKeyPress/package.json +1 -1
- package/useMedia/cjs/index.development.js +5 -5
- package/useMedia/cjs/index.development.v2.js +5 -5
- package/useMedia/index.d.ts +21 -21
- package/useMedia/package.json +1 -1
- package/useOutsideClick/cjs/index.development.js +2 -2
- package/useOutsideClick/cjs/index.development.v2.js +2 -2
- package/useOutsideClick/index.d.ts +5 -5
- package/useOutsideClick/package.json +1 -1
- package/usePortal/cjs/index.development.js +32 -27
- package/usePortal/cjs/index.development.v2.js +32 -27
- package/usePortal/index.d.ts +12 -12
- package/usePortal/package.json +1 -1
- package/useScrollPosition/cjs/index.development.js +2 -2
- package/useScrollPosition/cjs/index.development.v2.js +2 -2
- package/useScrollPosition/index.d.ts +5 -5
- 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
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
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
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 {};
|
package/Image/package.json
CHANGED
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
24
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
viewType =
|
|
71
|
-
|
|
72
|
-
width =
|
|
73
|
-
|
|
74
|
-
height =
|
|
75
|
-
|
|
76
|
-
|
|
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":
|
|
79
|
-
alt: shortName ? ":".concat(shortName, ":") : ''
|
|
83
|
+
"image-alt": "hidden",
|
|
84
|
+
alt: shortName ? ":".concat(shortName, ":") : ''
|
|
80
85
|
// @ts-ignore
|
|
81
|
-
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
24
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
viewType =
|
|
71
|
-
|
|
72
|
-
width =
|
|
73
|
-
|
|
74
|
-
height =
|
|
75
|
-
|
|
76
|
-
|
|
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":
|
|
79
|
-
alt: shortName ? ":".concat(shortName, ":") : ''
|
|
83
|
+
"image-alt": "hidden",
|
|
84
|
+
alt: shortName ? ":".concat(shortName, ":") : ''
|
|
80
85
|
// @ts-ignore
|
|
81
|
-
|
|
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"),
|
|
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;
|