@trilogy-ds/react 0.0.1-beta-71 → 0.0.1-beta-74
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/lib/components/accordion/body/AccordionBody.d.ts +0 -1
- package/lib/components/accordion/body/AccordionBody.js +0 -1
- package/lib/components/accordion/body/AccordionBody.js.map +1 -1
- package/lib/components/accordion/body/AccordionBodyProps.d.ts +0 -1
- package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +0 -7
- package/lib/components/alert/Alert.d.ts +4 -5
- package/lib/components/alert/Alert.js +10 -11
- package/lib/components/alert/Alert.js.map +1 -1
- package/lib/components/alert/Alert.native.d.ts +6 -6
- package/lib/components/alert/Alert.native.js +13 -13
- package/lib/components/alert/Alert.native.js.map +1 -1
- package/lib/components/alert/AlertProps.d.ts +3 -4
- package/lib/components/alert/AlertPropsDefaults.js +1 -8
- package/lib/components/alert/{ToasterAlertPropsDefaults.js → ToasterStatusPropsDefaults.js} +1 -16
- package/lib/components/alert/context/ToastPropsDefaults.js +1 -1
- package/lib/components/alert/context/ToasterContextProps.d.ts +3 -3
- package/lib/components/badge/Badge.d.ts +1 -2
- package/lib/components/badge/Badge.js +3 -8
- package/lib/components/badge/Badge.js.map +1 -1
- package/lib/components/badge/Badge.native.d.ts +1 -2
- package/lib/components/badge/Badge.native.js +2 -5
- package/lib/components/badge/Badge.native.js.map +1 -1
- package/lib/components/badge/BadgeProps.d.ts +1 -2
- package/lib/components/badge/BadgePropsDefaults.js +0 -8
- package/lib/components/box/Box.d.ts +2 -2
- package/lib/components/box/Box.js +3 -3
- package/lib/components/box/Box.js.map +1 -1
- package/lib/components/box/Box.native.d.ts +2 -2
- package/lib/components/box/Box.native.js +8 -8
- package/lib/components/box/Box.native.js.map +1 -1
- package/lib/components/box/BoxProps.d.ts +1 -1
- package/lib/components/box/BoxPropsDefaults.js +3 -3
- package/lib/components/box/content/BoxContentPropsDefaults.js +1 -1
- package/lib/components/box/footer/BoxFooterPropsDefaults.js +1 -1
- package/lib/components/box/header/BoxHeaderPropsDefaults.js +1 -1
- package/lib/components/card/Card.d.ts +3 -0
- package/lib/components/card/Card.js +3 -2
- package/lib/components/card/Card.js.map +1 -1
- package/lib/components/card/CardPropsDefaults.js +1 -1
- package/lib/components/card/content/CardContent.native.d.ts +0 -1
- package/lib/components/card/content/CardContent.native.js +0 -1
- package/lib/components/card/content/CardContent.native.js.map +1 -1
- package/lib/components/card/content/CardContentProps.d.ts +0 -1
- package/lib/components/card/content/CardContentPropsDefaults.js +0 -8
- package/lib/components/card/image/CardImage.d.ts +0 -1
- package/lib/components/card/image/CardImage.js +0 -1
- package/lib/components/card/image/CardImage.js.map +1 -1
- package/lib/components/card/image/CardImage.native.d.ts +1 -1
- package/lib/components/card/image/CardImage.native.js +2 -1
- package/lib/components/card/image/CardImage.native.js.map +1 -1
- package/lib/components/card/image/CardImageProps.d.ts +0 -2
- package/lib/components/card/image/CardImagePropsDefaults.js +0 -8
- package/lib/components/chips/Chips.d.ts +1 -2
- package/lib/components/chips/Chips.js +4 -6
- package/lib/components/chips/Chips.js.map +1 -1
- package/lib/components/chips/Chips.native.d.ts +1 -2
- package/lib/components/chips/Chips.native.js +1 -3
- package/lib/components/chips/Chips.native.js.map +1 -1
- package/lib/components/chips/ChipsProps.d.ts +0 -1
- package/lib/components/chips/ChipsPropsDefaults.js +0 -8
- package/lib/components/chips/list/ChipsList.js +1 -1
- package/lib/components/chips/list/ChipsList.js.map +1 -1
- package/lib/components/columns/Columns.d.ts +0 -1
- package/lib/components/columns/Columns.js +2 -3
- package/lib/components/columns/Columns.js.map +1 -1
- package/lib/components/columns/ColumnsProps.d.ts +1 -3
- package/lib/components/columns/ColumnsPropsDefaults.js +0 -17
- package/lib/components/columns/item/ColumnsItem.native.js +3 -0
- package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
- package/lib/components/container/ContainerPropsDefaults.js +1 -1
- package/lib/components/countdown/Countdown.d.ts +2 -1
- package/lib/components/countdown/Countdown.js +3 -2
- package/lib/components/countdown/Countdown.js.map +1 -1
- package/lib/components/countdown/Countdown.native.d.ts +2 -1
- package/lib/components/countdown/Countdown.native.js +3 -2
- package/lib/components/countdown/Countdown.native.js.map +1 -1
- package/lib/components/countdown/CountdownProps.d.ts +1 -0
- package/lib/components/countdown/CountdownPropsDefaults.js +8 -0
- package/lib/components/divider/DividerPropsDefaults.js +3 -3
- package/lib/components/enumsComponentsName.d.ts +1 -1
- package/lib/components/enumsComponentsName.js +1 -1
- package/lib/components/enumsComponentsName.js.map +1 -1
- package/lib/components/fab/FabProps.d.ts +2 -2
- package/lib/components/fab/FabPropsDefaults.js +0 -16
- package/lib/components/hero/HeroPropsDefaults.js +1 -1
- package/lib/components/icon/IconPropsDefaults.js +1 -1
- package/lib/components/icon/circle/CircleIconPropsDefaults.js +1 -1
- package/lib/components/input/Input.d.ts +3 -2
- package/lib/components/input/Input.js +10 -3
- package/lib/components/input/Input.js.map +1 -1
- package/lib/components/input/Input.native.d.ts +3 -1
- package/lib/components/input/Input.native.js +33 -22
- package/lib/components/input/Input.native.js.map +1 -1
- package/lib/components/input/InputProps.d.ts +2 -3
- package/lib/components/input/InputPropsDefaults.js +8 -17
- package/lib/components/input/autocomplete/AutoCompletePropsDefaults.js +8 -17
- package/lib/components/link/Link.js +2 -2
- package/lib/components/link/Link.js.map +1 -1
- package/lib/components/link/Link.native.d.ts +0 -1
- package/lib/components/link/Link.native.js +0 -1
- package/lib/components/link/Link.native.js.map +1 -1
- package/lib/components/link/LinkProps.d.ts +0 -1
- package/lib/components/link/LinkPropsDefaults.js +0 -8
- package/lib/components/modal/ModalPropsDefaults.js +1 -1
- package/lib/components/modal/title/ModalTitlePropsDefaults.js +1 -1
- package/lib/components/otp/Otp.d.ts +0 -12
- package/lib/components/otp/Otp.js +77 -98
- package/lib/components/otp/Otp.js.map +1 -1
- package/lib/components/price/Price.d.ts +1 -1
- package/lib/components/price/Price.js +2 -2
- package/lib/components/price/Price.js.map +1 -1
- package/lib/components/price/Price.native.d.ts +1 -2
- package/lib/components/price/Price.native.js +3 -5
- package/lib/components/price/Price.native.js.map +1 -1
- package/lib/components/price/PriceProps.d.ts +5 -5
- package/lib/components/price/PricePropsDefaults.js +0 -21
- package/lib/components/progress/Progress.d.ts +1 -1
- package/lib/components/progress/Progress.js +4 -4
- package/lib/components/progress/Progress.js.map +1 -1
- package/lib/components/progress/Progress.native.d.ts +2 -2
- package/lib/components/progress/Progress.native.js +5 -5
- package/lib/components/progress/Progress.native.js.map +1 -1
- package/lib/components/progress/ProgressProps.d.ts +2 -2
- package/lib/components/progress/ProgressPropsDefaults.js +1 -1
- package/lib/components/progress/item/ProgressItem.d.ts +1 -1
- package/lib/components/progress/item/ProgressItem.js +4 -4
- package/lib/components/progress/item/ProgressItem.js.map +1 -1
- package/lib/components/progress/item/ProgressItem.native.d.ts +2 -2
- package/lib/components/progress/item/ProgressItem.native.js +2 -2
- package/lib/components/progress/item/ProgressItem.native.js.map +1 -1
- package/lib/components/progress/item/ProgressItemProps.d.ts +2 -2
- package/lib/components/progress/item/ProgressItemPropsDefaults.js +1 -1
- package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -3
- package/lib/components/progress/radial/ProgressRadial.native.js +7 -7
- package/lib/components/progress/radial/ProgressRadial.native.js.map +1 -1
- package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -3
- package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +2 -2
- package/lib/components/rows/Rows.d.ts +1 -0
- package/lib/components/rows/Rows.js +4 -2
- package/lib/components/rows/Rows.js.map +1 -1
- package/lib/components/rows/Rows.native.d.ts +5 -2
- package/lib/components/rows/Rows.native.js +4 -2
- package/lib/components/rows/Rows.native.js.map +1 -1
- package/lib/components/rows/RowsProps.d.ts +1 -0
- package/lib/components/rows/RowsPropsDefaults.js +8 -0
- package/lib/components/rows/item/RowItem.native.js +3 -1
- package/lib/components/rows/item/RowItem.native.js.map +1 -1
- package/lib/components/scroll-view/ScrollViewPropsDefaults.js +1 -1
- package/lib/components/section/Section.js +1 -1
- package/lib/components/section/Section.js.map +1 -1
- package/lib/components/section/SectionProps.d.ts +2 -2
- package/lib/components/section/SectionPropsDefaults.js +1 -17
- package/lib/components/segment-control/SegmentControlProps.d.ts +1 -4
- package/lib/components/segment-control/SegmentControlPropsDefaults.js +0 -46
- package/lib/components/sticker/Sticker.d.ts +2 -2
- package/lib/components/sticker/Sticker.js +3 -3
- package/lib/components/sticker/Sticker.js.map +1 -1
- package/lib/components/switch/Switch.d.ts +2 -2
- package/lib/components/switch/Switch.js +4 -4
- package/lib/components/switch/Switch.js.map +1 -1
- package/lib/components/switch/Switch.native.d.ts +2 -2
- package/lib/components/switch/Switch.native.js +4 -4
- package/lib/components/switch/Switch.native.js.map +1 -1
- package/lib/components/switch/SwitchProps.d.ts +2 -2
- package/lib/components/switch/SwitchPropsDefaults.js +1 -1
- package/lib/components/table/body/TableBodyPropsDefaults.js +2 -2
- package/lib/components/table/head/TableHeadPropsDefaults.js +2 -2
- package/lib/components/table/tr/TableTrPropsWebDefaults.js +1 -1
- package/lib/components/textarea/Textarea.d.ts +3 -3
- package/lib/components/textarea/Textarea.js +11 -6
- package/lib/components/textarea/Textarea.js.map +1 -1
- package/lib/components/textarea/Textarea.native.js +25 -11
- package/lib/components/textarea/Textarea.native.js.map +1 -1
- package/lib/components/textarea/TextareaProps.d.ts +2 -0
- package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +1 -1
- package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +1 -1
- package/lib/components/title/Title.js +2 -2
- package/lib/components/title/Title.js.map +1 -1
- package/lib/components/toaster/Toaster.js +4 -4
- package/lib/components/toaster/Toaster.js.map +1 -1
- package/lib/components/toaster/Toaster.native.js +7 -7
- package/lib/components/toaster/Toaster.native.js.map +1 -1
- package/lib/components/toaster/ToasterProps.d.ts +2 -2
- package/lib/components/toaster/ToasterPropsDefaults.js +1 -1
- package/lib/components/toaster/context/ToastPropsDefaults.js +1 -1
- package/lib/components/toaster/context/ToasterContextProps.d.ts +3 -3
- package/lib/components/view/ViewPropsDefaults.js +1 -1
- package/lib/objects/facets/Status.d.ts +36 -0
- package/lib/objects/facets/{Alert.js → Status.js} +19 -19
- package/lib/objects/facets/Status.js.map +1 -0
- package/lib/objects/facets/index.d.ts +1 -1
- package/lib/objects/facets/index.js +1 -1
- package/lib/objects/facets/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/lib/objects/facets/Alert.d.ts +0 -36
- package/lib/objects/facets/Alert.js.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Accessibility,
|
|
1
|
+
import { Accessibility, StatusProps } from '../../../objects';
|
|
2
2
|
import { IconName, IconNameValues } from '../../../components/icon';
|
|
3
3
|
import { ToasterPosition } from '../../../components/toaster/ToasterProps';
|
|
4
4
|
/**
|
|
5
5
|
* @param title {string} Notification title content
|
|
6
6
|
* @param description {string|ReactNode} Notification description content
|
|
7
7
|
* @param iconName {IconName} Custom icon
|
|
8
|
-
* @param alert {
|
|
8
|
+
* @param alert {StatusState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
|
|
9
9
|
* @param onClick {Function} onClick Event for all notification
|
|
10
10
|
* @param closable {Function} onClick Event on cross icon
|
|
11
11
|
* @param onHide {Function} onClick Event on hide
|
|
12
12
|
*/
|
|
13
|
-
export interface ToastProps extends
|
|
13
|
+
export interface ToastProps extends StatusProps, Accessibility {
|
|
14
14
|
title: string;
|
|
15
15
|
description?: string;
|
|
16
16
|
iconName?: IconName | IconNameValues;
|
|
@@ -147,7 +147,6 @@ export default {
|
|
|
147
147
|
"INFO",
|
|
148
148
|
"WARNING",
|
|
149
149
|
"ERROR",
|
|
150
|
-
"MAIN",
|
|
151
150
|
"WHITE",
|
|
152
151
|
"MAIN",
|
|
153
152
|
"ACCENT",
|
|
@@ -162,6 +161,7 @@ export default {
|
|
|
162
161
|
"NEUTRAL_DARK",
|
|
163
162
|
"NEUTRAL_LIGHT",
|
|
164
163
|
"WHITE",
|
|
164
|
+
"MAIN",
|
|
165
165
|
"ACCENT",
|
|
166
166
|
"FONT",
|
|
167
167
|
"DISABLED",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { IconName, IconNameValues } from '../../components/icon';
|
|
2
|
+
/**
|
|
3
|
+
* Alert State
|
|
4
|
+
*/
|
|
5
|
+
export declare enum StatusState {
|
|
6
|
+
SUCCESS = "SUCCESS",
|
|
7
|
+
INFO = "INFO",
|
|
8
|
+
WARNING = "WARNING",
|
|
9
|
+
ERROR = "ERROR"
|
|
10
|
+
}
|
|
11
|
+
export type StatusStateValues = `${StatusState}`;
|
|
12
|
+
/**
|
|
13
|
+
* Alert props
|
|
14
|
+
*/
|
|
15
|
+
export interface StatusProps {
|
|
16
|
+
status?: StatusState | StatusStateValues;
|
|
17
|
+
id?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Returns alert's classname depending on alert type
|
|
21
|
+
* @param statusType {string} - Alert type
|
|
22
|
+
* @returns {string} - Alert value
|
|
23
|
+
*/
|
|
24
|
+
export declare const getStatusClassName: (statusType?: string) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Returns status style depending on alert type
|
|
27
|
+
* @param statusType {string} - Alert type
|
|
28
|
+
* @returns {string} - Alert value
|
|
29
|
+
*/
|
|
30
|
+
export declare const getStatusStyle: (statusType?: string) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Returns status icon name depending on alert type
|
|
33
|
+
* @param statusType {string} - Alert type
|
|
34
|
+
* @returns {string} - Alert value
|
|
35
|
+
*/
|
|
36
|
+
export declare const getStatusIconName: (statusType?: string) => IconName | IconNameValues;
|
|
@@ -3,20 +3,20 @@ import { getColorStyle } from './Color';
|
|
|
3
3
|
/**
|
|
4
4
|
* Alert State
|
|
5
5
|
*/
|
|
6
|
-
export var
|
|
7
|
-
(function (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})(
|
|
6
|
+
export var StatusState;
|
|
7
|
+
(function (StatusState) {
|
|
8
|
+
StatusState["SUCCESS"] = "SUCCESS";
|
|
9
|
+
StatusState["INFO"] = "INFO";
|
|
10
|
+
StatusState["WARNING"] = "WARNING";
|
|
11
|
+
StatusState["ERROR"] = "ERROR";
|
|
12
|
+
})(StatusState || (StatusState = {}));
|
|
13
13
|
/**
|
|
14
14
|
* Returns alert's classname depending on alert type
|
|
15
|
-
* @param
|
|
15
|
+
* @param statusType {string} - Alert type
|
|
16
16
|
* @returns {string} - Alert value
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
19
|
-
switch (
|
|
18
|
+
export const getStatusClassName = (statusType) => {
|
|
19
|
+
switch (statusType) {
|
|
20
20
|
case 'SUCCESS':
|
|
21
21
|
return 'success';
|
|
22
22
|
case 'INFO':
|
|
@@ -30,12 +30,12 @@ export const getAlertClassName = (alertType) => {
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
|
-
* Returns
|
|
34
|
-
* @param
|
|
33
|
+
* Returns status style depending on alert type
|
|
34
|
+
* @param statusType {string} - Alert type
|
|
35
35
|
* @returns {string} - Alert value
|
|
36
36
|
*/
|
|
37
|
-
export const
|
|
38
|
-
switch (
|
|
37
|
+
export const getStatusStyle = (statusType) => {
|
|
38
|
+
switch (statusType) {
|
|
39
39
|
case 'SUCCESS':
|
|
40
40
|
return getColorStyle('SUCCESS');
|
|
41
41
|
case 'INFO':
|
|
@@ -49,12 +49,12 @@ export const getAlertStyle = (alertType) => {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
|
-
* Returns
|
|
53
|
-
* @param
|
|
52
|
+
* Returns status icon name depending on alert type
|
|
53
|
+
* @param statusType {string} - Alert type
|
|
54
54
|
* @returns {string} - Alert value
|
|
55
55
|
*/
|
|
56
|
-
export const
|
|
57
|
-
switch (
|
|
56
|
+
export const getStatusIconName = (statusType) => {
|
|
57
|
+
switch (statusType) {
|
|
58
58
|
case 'SUCCESS':
|
|
59
59
|
return IconName.CHECK_CIRCLE;
|
|
60
60
|
case 'INFO':
|
|
@@ -67,4 +67,4 @@ export const getAlertIconName = (alertType) => {
|
|
|
67
67
|
return IconName.INFOS_CIRCLE;
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
//# sourceMappingURL=
|
|
70
|
+
//# sourceMappingURL=Status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../objects/facets/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAYD;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,UAAmB,EAAU,EAAE;IAChE,QAAQ,UAAU,EAAE;QAClB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAA;QAClB,KAAK,MAAM;YACT,OAAO,MAAM,CAAA;QACf,KAAK,SAAS;YACZ,OAAO,SAAS,CAAA;QAClB,KAAK,OAAO;YACV,OAAO,OAAO,CAAA;QAChB;YACE,OAAO,EAAE,CAAA;KACZ;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,UAAmB,EAAU,EAAE;IAC5D,QAAQ,UAAU,EAAE;QAClB,KAAK,SAAS;YACZ,OAAO,aAAa,CAAC,SAAS,CAAC,CAAA;QACjC,KAAK,MAAM;YACT,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;QAC9B,KAAK,SAAS;YACZ,OAAO,aAAa,CAAC,SAAS,CAAC,CAAA;QACjC,KAAK,OAAO;YACV,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;QAC/B;YACE,OAAO,EAAE,CAAA;KACZ;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,UAAmB,EAA6B,EAAE;IAClF,QAAQ,UAAU,EAAE;QAClB,KAAK,SAAS;YACZ,OAAO,QAAQ,CAAC,YAAY,CAAA;QAC9B,KAAK,MAAM;YACT,OAAO,QAAQ,CAAC,YAAY,CAAA;QAC9B,KAAK,SAAS;YACZ,OAAO,QAAQ,CAAC,KAAK,CAAA;QACvB,KAAK,OAAO;YACV,OAAO,QAAQ,CAAC,kBAAkB,CAAA;QACpC;YACE,OAAO,QAAQ,CAAC,YAAY,CAAA;KAC/B;AACH,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../objects/facets/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../objects/facets/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,OAAO,CAAA;AACrB,cAAc,UAAU,CAAA;AACxB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC,cAAc,YAAY,CAAA;AAC1B,cAAc,sBAAsB,CAAA"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.1-beta-
|
|
1
|
+
export declare const version = "0.0.1-beta-74";
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = "0.0.1-beta-
|
|
1
|
+
export const version = "0.0.1-beta-74";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { IconName, IconNameValues } from '../../components/icon';
|
|
2
|
-
/**
|
|
3
|
-
* Alert State
|
|
4
|
-
*/
|
|
5
|
-
export declare enum AlertState {
|
|
6
|
-
SUCCESS = "SUCCESS",
|
|
7
|
-
INFO = "INFO",
|
|
8
|
-
WARNING = "WARNING",
|
|
9
|
-
ERROR = "ERROR"
|
|
10
|
-
}
|
|
11
|
-
export type AlertStateValues = `${AlertState}`;
|
|
12
|
-
/**
|
|
13
|
-
* Alert props
|
|
14
|
-
*/
|
|
15
|
-
export interface AlertProps {
|
|
16
|
-
alert?: AlertState | AlertStateValues;
|
|
17
|
-
id?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Returns alert's classname depending on alert type
|
|
21
|
-
* @param alertType {string} - Alert type
|
|
22
|
-
* @returns {string} - Alert value
|
|
23
|
-
*/
|
|
24
|
-
export declare const getAlertClassName: (alertType?: string) => string;
|
|
25
|
-
/**
|
|
26
|
-
* Returns alert's style depending on alert type
|
|
27
|
-
* @param alertType {string} - Alert type
|
|
28
|
-
* @returns {string} - Alert value
|
|
29
|
-
*/
|
|
30
|
-
export declare const getAlertStyle: (alertType?: string) => string;
|
|
31
|
-
/**
|
|
32
|
-
* Returns alert's icon name depending on alert type
|
|
33
|
-
* @param alertType {string} - Alert type
|
|
34
|
-
* @returns {string} - Alert value
|
|
35
|
-
*/
|
|
36
|
-
export declare const getAlertIconName: (alertType?: string) => IconName | IconNameValues;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../objects/facets/Alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAkB,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAEvC;;GAEG;AACH,MAAM,CAAN,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,6BAAe,CAAA;AACjB,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AAYD;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,SAAkB,EAAU,EAAE;IAC9D,QAAQ,SAAS,EAAE;QACjB,KAAK,SAAS;YACZ,OAAO,SAAS,CAAA;QAClB,KAAK,MAAM;YACT,OAAO,MAAM,CAAA;QACf,KAAK,SAAS;YACZ,OAAO,SAAS,CAAA;QAClB,KAAK,OAAO;YACV,OAAO,OAAO,CAAA;QAChB;YACE,OAAO,EAAE,CAAA;KACZ;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,SAAkB,EAAU,EAAE;IAC1D,QAAQ,SAAS,EAAE;QACjB,KAAK,SAAS;YACZ,OAAO,aAAa,CAAC,SAAS,CAAC,CAAA;QACjC,KAAK,MAAM;YACT,OAAO,aAAa,CAAC,MAAM,CAAC,CAAA;QAC9B,KAAK,SAAS;YACZ,OAAO,aAAa,CAAC,SAAS,CAAC,CAAA;QACjC,KAAK,OAAO;YACV,OAAO,aAAa,CAAC,OAAO,CAAC,CAAA;QAC/B;YACE,OAAO,EAAE,CAAA;KACZ;AACH,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,SAAkB,EAA6B,EAAE;IAChF,QAAQ,SAAS,EAAE;QACjB,KAAK,SAAS;YACZ,OAAO,QAAQ,CAAC,YAAY,CAAA;QAC9B,KAAK,MAAM;YACT,OAAO,QAAQ,CAAC,YAAY,CAAA;QAC9B,KAAK,SAAS;YACZ,OAAO,QAAQ,CAAC,KAAK,CAAA;QACvB,KAAK,OAAO;YACV,OAAO,QAAQ,CAAC,kBAAkB,CAAA;QACpC;YACE,OAAO,QAAQ,CAAC,YAAY,CAAA;KAC/B;AACH,CAAC,CAAA"}
|