@trilogy-ds/react 0.0.1-beta-73 → 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.
Files changed (187) hide show
  1. package/lib/components/accordion/body/AccordionBody.d.ts +0 -1
  2. package/lib/components/accordion/body/AccordionBody.js +0 -1
  3. package/lib/components/accordion/body/AccordionBody.js.map +1 -1
  4. package/lib/components/accordion/body/AccordionBodyProps.d.ts +0 -1
  5. package/lib/components/accordion/body/AccordionBodyPropsDefaults.js +0 -7
  6. package/lib/components/alert/Alert.d.ts +4 -5
  7. package/lib/components/alert/Alert.js +10 -11
  8. package/lib/components/alert/Alert.js.map +1 -1
  9. package/lib/components/alert/Alert.native.d.ts +6 -6
  10. package/lib/components/alert/Alert.native.js +13 -13
  11. package/lib/components/alert/Alert.native.js.map +1 -1
  12. package/lib/components/alert/AlertProps.d.ts +3 -4
  13. package/lib/components/alert/AlertPropsDefaults.js +1 -8
  14. package/lib/components/alert/{ToasterAlertPropsDefaults.js → ToasterStatusPropsDefaults.js} +1 -16
  15. package/lib/components/alert/context/ToastPropsDefaults.js +1 -1
  16. package/lib/components/alert/context/ToasterContextProps.d.ts +3 -3
  17. package/lib/components/badge/Badge.d.ts +1 -2
  18. package/lib/components/badge/Badge.js +3 -8
  19. package/lib/components/badge/Badge.js.map +1 -1
  20. package/lib/components/badge/Badge.native.d.ts +1 -2
  21. package/lib/components/badge/Badge.native.js +2 -5
  22. package/lib/components/badge/Badge.native.js.map +1 -1
  23. package/lib/components/badge/BadgeProps.d.ts +1 -2
  24. package/lib/components/badge/BadgePropsDefaults.js +0 -8
  25. package/lib/components/box/Box.d.ts +2 -2
  26. package/lib/components/box/Box.js +3 -3
  27. package/lib/components/box/Box.js.map +1 -1
  28. package/lib/components/box/Box.native.d.ts +2 -2
  29. package/lib/components/box/Box.native.js +8 -8
  30. package/lib/components/box/Box.native.js.map +1 -1
  31. package/lib/components/box/BoxProps.d.ts +1 -1
  32. package/lib/components/box/BoxPropsDefaults.js +3 -3
  33. package/lib/components/box/content/BoxContentPropsDefaults.js +1 -1
  34. package/lib/components/box/footer/BoxFooterPropsDefaults.js +1 -1
  35. package/lib/components/box/header/BoxHeaderPropsDefaults.js +1 -1
  36. package/lib/components/card/Card.d.ts +3 -0
  37. package/lib/components/card/Card.js +3 -2
  38. package/lib/components/card/Card.js.map +1 -1
  39. package/lib/components/card/CardPropsDefaults.js +1 -1
  40. package/lib/components/card/content/CardContent.native.d.ts +0 -1
  41. package/lib/components/card/content/CardContent.native.js +0 -1
  42. package/lib/components/card/content/CardContent.native.js.map +1 -1
  43. package/lib/components/card/content/CardContentProps.d.ts +0 -1
  44. package/lib/components/card/content/CardContentPropsDefaults.js +0 -8
  45. package/lib/components/card/image/CardImage.d.ts +0 -1
  46. package/lib/components/card/image/CardImage.js +0 -1
  47. package/lib/components/card/image/CardImage.js.map +1 -1
  48. package/lib/components/card/image/CardImage.native.d.ts +1 -1
  49. package/lib/components/card/image/CardImage.native.js +2 -1
  50. package/lib/components/card/image/CardImage.native.js.map +1 -1
  51. package/lib/components/card/image/CardImageProps.d.ts +0 -2
  52. package/lib/components/card/image/CardImagePropsDefaults.js +0 -8
  53. package/lib/components/chips/Chips.d.ts +1 -2
  54. package/lib/components/chips/Chips.js +4 -6
  55. package/lib/components/chips/Chips.js.map +1 -1
  56. package/lib/components/chips/Chips.native.d.ts +1 -2
  57. package/lib/components/chips/Chips.native.js +1 -3
  58. package/lib/components/chips/Chips.native.js.map +1 -1
  59. package/lib/components/chips/ChipsProps.d.ts +0 -1
  60. package/lib/components/chips/ChipsPropsDefaults.js +0 -8
  61. package/lib/components/chips/list/ChipsList.js +1 -1
  62. package/lib/components/chips/list/ChipsList.js.map +1 -1
  63. package/lib/components/columns/Columns.d.ts +0 -1
  64. package/lib/components/columns/Columns.js +2 -3
  65. package/lib/components/columns/Columns.js.map +1 -1
  66. package/lib/components/columns/ColumnsProps.d.ts +1 -3
  67. package/lib/components/columns/ColumnsPropsDefaults.js +0 -17
  68. package/lib/components/columns/item/ColumnsItem.native.js +3 -0
  69. package/lib/components/columns/item/ColumnsItem.native.js.map +1 -1
  70. package/lib/components/container/ContainerPropsDefaults.js +1 -1
  71. package/lib/components/countdown/Countdown.d.ts +2 -1
  72. package/lib/components/countdown/Countdown.js +3 -2
  73. package/lib/components/countdown/Countdown.js.map +1 -1
  74. package/lib/components/countdown/Countdown.native.d.ts +2 -1
  75. package/lib/components/countdown/Countdown.native.js +3 -2
  76. package/lib/components/countdown/Countdown.native.js.map +1 -1
  77. package/lib/components/countdown/CountdownProps.d.ts +1 -0
  78. package/lib/components/countdown/CountdownPropsDefaults.js +8 -0
  79. package/lib/components/divider/DividerPropsDefaults.js +3 -3
  80. package/lib/components/enumsComponentsName.d.ts +1 -1
  81. package/lib/components/enumsComponentsName.js +1 -1
  82. package/lib/components/enumsComponentsName.js.map +1 -1
  83. package/lib/components/fab/FabProps.d.ts +2 -2
  84. package/lib/components/fab/FabPropsDefaults.js +0 -16
  85. package/lib/components/hero/HeroPropsDefaults.js +1 -1
  86. package/lib/components/icon/IconPropsDefaults.js +1 -1
  87. package/lib/components/icon/circle/CircleIconPropsDefaults.js +1 -1
  88. package/lib/components/input/Input.native.js +16 -16
  89. package/lib/components/input/Input.native.js.map +1 -1
  90. package/lib/components/link/Link.js +2 -2
  91. package/lib/components/link/Link.js.map +1 -1
  92. package/lib/components/link/Link.native.d.ts +0 -1
  93. package/lib/components/link/Link.native.js +0 -1
  94. package/lib/components/link/Link.native.js.map +1 -1
  95. package/lib/components/link/LinkProps.d.ts +0 -1
  96. package/lib/components/link/LinkPropsDefaults.js +0 -8
  97. package/lib/components/modal/ModalPropsDefaults.js +1 -1
  98. package/lib/components/modal/title/ModalTitlePropsDefaults.js +1 -1
  99. package/lib/components/otp/Otp.d.ts +0 -12
  100. package/lib/components/otp/Otp.js +77 -98
  101. package/lib/components/otp/Otp.js.map +1 -1
  102. package/lib/components/price/Price.d.ts +1 -1
  103. package/lib/components/price/Price.js +2 -2
  104. package/lib/components/price/Price.js.map +1 -1
  105. package/lib/components/price/Price.native.d.ts +1 -2
  106. package/lib/components/price/Price.native.js +3 -5
  107. package/lib/components/price/Price.native.js.map +1 -1
  108. package/lib/components/price/PriceProps.d.ts +5 -5
  109. package/lib/components/price/PricePropsDefaults.js +0 -21
  110. package/lib/components/progress/Progress.d.ts +1 -1
  111. package/lib/components/progress/Progress.js +4 -4
  112. package/lib/components/progress/Progress.js.map +1 -1
  113. package/lib/components/progress/Progress.native.d.ts +2 -2
  114. package/lib/components/progress/Progress.native.js +5 -5
  115. package/lib/components/progress/Progress.native.js.map +1 -1
  116. package/lib/components/progress/ProgressProps.d.ts +2 -2
  117. package/lib/components/progress/ProgressPropsDefaults.js +1 -1
  118. package/lib/components/progress/item/ProgressItem.d.ts +1 -1
  119. package/lib/components/progress/item/ProgressItem.js +4 -4
  120. package/lib/components/progress/item/ProgressItem.js.map +1 -1
  121. package/lib/components/progress/item/ProgressItem.native.d.ts +2 -2
  122. package/lib/components/progress/item/ProgressItem.native.js +2 -2
  123. package/lib/components/progress/item/ProgressItem.native.js.map +1 -1
  124. package/lib/components/progress/item/ProgressItemProps.d.ts +2 -2
  125. package/lib/components/progress/item/ProgressItemPropsDefaults.js +1 -1
  126. package/lib/components/progress/radial/ProgressRadial.native.d.ts +3 -3
  127. package/lib/components/progress/radial/ProgressRadial.native.js +7 -7
  128. package/lib/components/progress/radial/ProgressRadial.native.js.map +1 -1
  129. package/lib/components/progress/radial/ProgressRadialProps.d.ts +3 -3
  130. package/lib/components/progress/radial/ProgressRadialPropsDefaults.js +2 -2
  131. package/lib/components/rows/Rows.d.ts +1 -0
  132. package/lib/components/rows/Rows.js +4 -2
  133. package/lib/components/rows/Rows.js.map +1 -1
  134. package/lib/components/rows/Rows.native.d.ts +5 -2
  135. package/lib/components/rows/Rows.native.js +4 -2
  136. package/lib/components/rows/Rows.native.js.map +1 -1
  137. package/lib/components/rows/RowsProps.d.ts +1 -0
  138. package/lib/components/rows/RowsPropsDefaults.js +8 -0
  139. package/lib/components/rows/item/RowItem.native.js +3 -1
  140. package/lib/components/rows/item/RowItem.native.js.map +1 -1
  141. package/lib/components/scroll-view/ScrollViewPropsDefaults.js +1 -1
  142. package/lib/components/section/Section.js +1 -1
  143. package/lib/components/section/Section.js.map +1 -1
  144. package/lib/components/section/SectionProps.d.ts +2 -2
  145. package/lib/components/section/SectionPropsDefaults.js +1 -17
  146. package/lib/components/segment-control/SegmentControlProps.d.ts +1 -4
  147. package/lib/components/segment-control/SegmentControlPropsDefaults.js +0 -46
  148. package/lib/components/sticker/Sticker.d.ts +2 -2
  149. package/lib/components/sticker/Sticker.js +3 -3
  150. package/lib/components/sticker/Sticker.js.map +1 -1
  151. package/lib/components/switch/Switch.d.ts +2 -2
  152. package/lib/components/switch/Switch.js +4 -4
  153. package/lib/components/switch/Switch.js.map +1 -1
  154. package/lib/components/switch/Switch.native.d.ts +2 -2
  155. package/lib/components/switch/Switch.native.js +4 -4
  156. package/lib/components/switch/Switch.native.js.map +1 -1
  157. package/lib/components/switch/SwitchProps.d.ts +2 -2
  158. package/lib/components/switch/SwitchPropsDefaults.js +1 -1
  159. package/lib/components/table/body/TableBodyPropsDefaults.js +2 -2
  160. package/lib/components/table/head/TableHeadPropsDefaults.js +2 -2
  161. package/lib/components/table/tr/TableTrPropsWebDefaults.js +1 -1
  162. package/lib/components/textarea/Textarea.native.js +7 -7
  163. package/lib/components/textarea/Textarea.native.js.map +1 -1
  164. package/lib/components/timeline/marker/TimelineMarkerPropsDefaults.js +1 -1
  165. package/lib/components/timeline/marker/TimelineMarkerWebPropsDefaults.js +1 -1
  166. package/lib/components/title/Title.js +2 -2
  167. package/lib/components/title/Title.js.map +1 -1
  168. package/lib/components/toaster/Toaster.js +4 -4
  169. package/lib/components/toaster/Toaster.js.map +1 -1
  170. package/lib/components/toaster/Toaster.native.js +7 -7
  171. package/lib/components/toaster/Toaster.native.js.map +1 -1
  172. package/lib/components/toaster/ToasterProps.d.ts +2 -2
  173. package/lib/components/toaster/ToasterPropsDefaults.js +1 -1
  174. package/lib/components/toaster/context/ToastPropsDefaults.js +1 -1
  175. package/lib/components/toaster/context/ToasterContextProps.d.ts +3 -3
  176. package/lib/components/view/ViewPropsDefaults.js +1 -1
  177. package/lib/objects/facets/Status.d.ts +36 -0
  178. package/lib/objects/facets/{Alert.js → Status.js} +19 -19
  179. package/lib/objects/facets/Status.js.map +1 -0
  180. package/lib/objects/facets/index.d.ts +1 -1
  181. package/lib/objects/facets/index.js +1 -1
  182. package/lib/objects/facets/index.js.map +1 -1
  183. package/lib/version.d.ts +1 -1
  184. package/lib/version.js +1 -1
  185. package/package.json +1 -1
  186. package/lib/objects/facets/Alert.d.ts +0 -36
  187. package/lib/objects/facets/Alert.js.map +0 -1
@@ -1,16 +1,16 @@
1
- import { Accessibility, AlertProps } from '../../../objects';
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 {AlertState} Alert Variant (INFO|SUCCESS|WARNING|ERROR)
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 AlertProps, Accessibility {
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 AlertState;
7
- (function (AlertState) {
8
- AlertState["SUCCESS"] = "SUCCESS";
9
- AlertState["INFO"] = "INFO";
10
- AlertState["WARNING"] = "WARNING";
11
- AlertState["ERROR"] = "ERROR";
12
- })(AlertState || (AlertState = {}));
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 alertType {string} - Alert type
15
+ * @param statusType {string} - Alert type
16
16
  * @returns {string} - Alert value
17
17
  */
18
- export const getAlertClassName = (alertType) => {
19
- switch (alertType) {
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 alert's style depending on alert type
34
- * @param alertType {string} - Alert type
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 getAlertStyle = (alertType) => {
38
- switch (alertType) {
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 alert's icon name depending on alert type
53
- * @param alertType {string} - Alert type
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 getAlertIconName = (alertType) => {
57
- switch (alertType) {
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=Alert.js.map
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;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
  export * from './Accessibility';
2
- export * from './Alert';
2
+ export * from './Status';
3
3
  export * from './Alignable';
4
4
  export * from './Alternate';
5
5
  export * from './Centerable';
@@ -1,5 +1,5 @@
1
1
  export * from './Accessibility';
2
- export * from './Alert';
2
+ export * from './Status';
3
3
  export * from './Alignable';
4
4
  export * from './Alternate';
5
5
  export * from './Centerable';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../objects/facets/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,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"}
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-73";
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-73";
1
+ export const version = "0.0.1-beta-74";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/react",
3
- "version": "0.0.1-beta-73",
3
+ "version": "0.0.1-beta-74",
4
4
  "type": "module",
5
5
  "author": "Bouygues Telecom",
6
6
  "files": [
@@ -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,SAA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