@telesign/boreal-web-components 0.1.0-alpha.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 (216) hide show
  1. package/LICENSE +21 -0
  2. package/components-build/bds-banner.d.ts +11 -0
  3. package/components-build/bds-banner.js +1 -0
  4. package/components-build/bds-typography.d.ts +11 -0
  5. package/components-build/bds-typography.js +1 -0
  6. package/components-build/index.d.ts +35 -0
  7. package/components-build/index.js +1 -0
  8. package/components-build/my-component.d.ts +11 -0
  9. package/components-build/my-component.js +1 -0
  10. package/components-build/p-B9wshZ_4.js +1 -0
  11. package/components-build/p-noyWJ11s.js +1 -0
  12. package/custom-elements.json +764 -0
  13. package/dist/boreal-web-components/boreal-web-components.css +1 -0
  14. package/dist/boreal-web-components/boreal-web-components.esm.js +1 -0
  15. package/dist/boreal-web-components/boreal-web-components.js +127 -0
  16. package/dist/boreal-web-components/css/boreal.css +1594 -0
  17. package/dist/boreal-web-components/css/global.css +682 -0
  18. package/dist/boreal-web-components/css/theme-connect.css +227 -0
  19. package/dist/boreal-web-components/css/theme-engage.css +227 -0
  20. package/dist/boreal-web-components/css/theme-protect.css +227 -0
  21. package/dist/boreal-web-components/css/theme-proximus.css +227 -0
  22. package/dist/boreal-web-components/index.esm.js +0 -0
  23. package/dist/boreal-web-components/p-412d037b.system.entry.js +1 -0
  24. package/dist/boreal-web-components/p-527a761b.entry.js +1 -0
  25. package/dist/boreal-web-components/p-5666a22a.system.entry.js +1 -0
  26. package/dist/boreal-web-components/p-B-PpI2Xv.system.js +1 -0
  27. package/dist/boreal-web-components/p-B9wshZ_4.js +1 -0
  28. package/dist/boreal-web-components/p-BQdH0ijK.system.js +2 -0
  29. package/dist/boreal-web-components/p-BbPAtVJG.system.js +1 -0
  30. package/dist/boreal-web-components/p-CMd-Mv-5.system.js +1 -0
  31. package/dist/boreal-web-components/p-CaVEtaG3.system.js +1 -0
  32. package/dist/boreal-web-components/p-DQuL1Twl.js +1 -0
  33. package/dist/boreal-web-components/p-DgFiTd6X.js +2 -0
  34. package/dist/boreal-web-components/p-YWpyar7R.system.js +1 -0
  35. package/dist/boreal-web-components/p-b818618b.entry.js +1 -0
  36. package/dist/boreal-web-components/p-d596406b.entry.js +1 -0
  37. package/dist/boreal-web-components/p-e37e7dba.system.entry.js +1 -0
  38. package/dist/boreal-web-components/p-noyWJ11s.js +1 -0
  39. package/dist/boreal-web-components/scss/global/_fonts.scss +1 -0
  40. package/dist/boreal-web-components/scss/global/_index.scss +3 -0
  41. package/dist/boreal-web-components/scss/global/_reset.scss +50 -0
  42. package/dist/boreal-web-components/scss/global/_typography.scss +156 -0
  43. package/dist/boreal-web-components/scss/maps/_primitives.scss +461 -0
  44. package/dist/boreal-web-components/scss/maps/_theme-connect.scss +227 -0
  45. package/dist/boreal-web-components/scss/maps/_theme-engage.scss +227 -0
  46. package/dist/boreal-web-components/scss/maps/_theme-protect.scss +227 -0
  47. package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +227 -0
  48. package/dist/boreal-web-components/scss/variables/_primitives.scss +459 -0
  49. package/dist/boreal-web-components/scss/variables/_theme-connect.scss +225 -0
  50. package/dist/boreal-web-components/scss/variables/_theme-engage.scss +225 -0
  51. package/dist/boreal-web-components/scss/variables/_theme-protect.scss +225 -0
  52. package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +225 -0
  53. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  54. package/dist/cjs/attributes-RPVEtBdj.js +90 -0
  55. package/dist/cjs/bds-banner.cjs.entry.js +130 -0
  56. package/dist/cjs/bds-typography.cjs.entry.js +167 -0
  57. package/dist/cjs/boreal-web-components.cjs.js +46 -0
  58. package/dist/cjs/index-CD9v53WJ.js +133 -0
  59. package/dist/cjs/index-Cdb66Tqj.js +2342 -0
  60. package/dist/cjs/index.cjs.js +2 -0
  61. package/dist/cjs/loader.cjs.js +13 -0
  62. package/dist/cjs/my-component.cjs.entry.js +29 -0
  63. package/dist/collection/collection-manifest.json +14 -0
  64. package/dist/collection/components/feedback/bds-banner/bds-banner.css +101 -0
  65. package/dist/collection/components/feedback/bds-banner/bds-banner.js +266 -0
  66. package/dist/collection/components/feedback/bds-banner/types/IBanner.js +1 -0
  67. package/dist/collection/components/my-component/my-component.css +3 -0
  68. package/dist/collection/components/my-component/my-component.js +95 -0
  69. package/dist/collection/components/titles-text/bds-typography/bds-typography.css +183 -0
  70. package/dist/collection/components/titles-text/bds-typography/bds-typography.js +577 -0
  71. package/dist/collection/components/titles-text/bds-typography/types/ITypography.js +1 -0
  72. package/dist/collection/components/titles-text/bds-typography/types/enum.js +23 -0
  73. package/dist/collection/components/titles-text/bds-typography/types/types.js +1 -0
  74. package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +41 -0
  75. package/dist/collection/css/boreal.css +1594 -0
  76. package/dist/collection/css/global.css +682 -0
  77. package/dist/collection/css/theme-connect.css +227 -0
  78. package/dist/collection/css/theme-engage.css +227 -0
  79. package/dist/collection/css/theme-protect.css +227 -0
  80. package/dist/collection/css/theme-proximus.css +227 -0
  81. package/dist/collection/index.js +1 -0
  82. package/dist/collection/mixins/anchored.mixin.js +272 -0
  83. package/dist/collection/mixins/floating.mixin.js +181 -0
  84. package/dist/collection/mixins/form-associated.mixin.js +95 -0
  85. package/dist/collection/mixins/index.js +3 -0
  86. package/dist/collection/scss/global/_fonts.scss +1 -0
  87. package/dist/collection/scss/global/_index.scss +3 -0
  88. package/dist/collection/scss/global/_reset.scss +50 -0
  89. package/dist/collection/scss/global/_typography.scss +156 -0
  90. package/dist/collection/scss/maps/_primitives.scss +461 -0
  91. package/dist/collection/scss/maps/_theme-connect.scss +227 -0
  92. package/dist/collection/scss/maps/_theme-engage.scss +227 -0
  93. package/dist/collection/scss/maps/_theme-protect.scss +227 -0
  94. package/dist/collection/scss/maps/_theme-proximus.scss +227 -0
  95. package/dist/collection/scss/variables/_primitives.scss +459 -0
  96. package/dist/collection/scss/variables/_theme-connect.scss +225 -0
  97. package/dist/collection/scss/variables/_theme-engage.scss +225 -0
  98. package/dist/collection/scss/variables/_theme-protect.scss +225 -0
  99. package/dist/collection/scss/variables/_theme-proximus.scss +225 -0
  100. package/dist/collection/services/floating/interfaces/Floating.js +1 -0
  101. package/dist/collection/services/floating/interfaces/Positioning.js +1 -0
  102. package/dist/collection/services/floating/interfaces/Props.js +1 -0
  103. package/dist/collection/services/floating/positioning.service.js +71 -0
  104. package/dist/collection/services/floating/types/Arrow.js +1 -0
  105. package/dist/collection/services/logger/Logger.js +47 -0
  106. package/dist/collection/types/alignment.js +6 -0
  107. package/dist/collection/types/form.js +1 -0
  108. package/dist/collection/types/index.js +5 -0
  109. package/dist/collection/types/position.js +11 -0
  110. package/dist/collection/types/size.js +7 -0
  111. package/dist/collection/types/states.js +22 -0
  112. package/dist/collection/types/stylesMap.js +1 -0
  113. package/dist/collection/utils/a11y/attributes.js +80 -0
  114. package/dist/collection/utils/a11y/index.js +1 -0
  115. package/dist/collection/utils/constants/common/Events.js +10 -0
  116. package/dist/collection/utils/constants/common/Keys.js +16 -0
  117. package/dist/collection/utils/dom/elements.js +22 -0
  118. package/dist/collection/utils/dom/index.js +1 -0
  119. package/dist/collection/utils/form/index.js +1 -0
  120. package/dist/collection/utils/form/internals.js +79 -0
  121. package/dist/collection/utils/helpers/common/BaseAttributes.js +17 -0
  122. package/dist/collection/utils/index.js +3 -0
  123. package/dist/css/boreal.css +1594 -0
  124. package/dist/css/global.css +682 -0
  125. package/dist/css/theme-connect.css +227 -0
  126. package/dist/css/theme-engage.css +227 -0
  127. package/dist/css/theme-protect.css +227 -0
  128. package/dist/css/theme-proximus.css +227 -0
  129. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  130. package/dist/esm/attributes-B9wshZ_4.js +86 -0
  131. package/dist/esm/bds-banner.entry.js +128 -0
  132. package/dist/esm/bds-typography.entry.js +165 -0
  133. package/dist/esm/boreal-web-components.js +42 -0
  134. package/dist/esm/index-DgFiTd6X.js +2332 -0
  135. package/dist/esm/index-noyWJ11s.js +131 -0
  136. package/dist/esm/index.js +1 -0
  137. package/dist/esm/loader.js +11 -0
  138. package/dist/esm/my-component.entry.js +27 -0
  139. package/dist/esm/polyfills/core-js.js +11 -0
  140. package/dist/esm/polyfills/dom.js +79 -0
  141. package/dist/esm/polyfills/es5-html-element.js +1 -0
  142. package/dist/esm/polyfills/index.js +34 -0
  143. package/dist/esm/polyfills/system.js +6 -0
  144. package/dist/esm-es5/app-globals-DQuL1Twl.js +1 -0
  145. package/dist/esm-es5/attributes-B9wshZ_4.js +1 -0
  146. package/dist/esm-es5/bds-banner.entry.js +1 -0
  147. package/dist/esm-es5/bds-typography.entry.js +1 -0
  148. package/dist/esm-es5/boreal-web-components.js +1 -0
  149. package/dist/esm-es5/index-DgFiTd6X.js +2 -0
  150. package/dist/esm-es5/index-noyWJ11s.js +1 -0
  151. package/dist/esm-es5/index.js +0 -0
  152. package/dist/esm-es5/loader.js +1 -0
  153. package/dist/esm-es5/my-component.entry.js +1 -0
  154. package/dist/index.cjs.js +1 -0
  155. package/dist/index.js +1 -0
  156. package/dist/scss/global/_fonts.scss +1 -0
  157. package/dist/scss/global/_index.scss +3 -0
  158. package/dist/scss/global/_reset.scss +50 -0
  159. package/dist/scss/global/_typography.scss +156 -0
  160. package/dist/scss/maps/_primitives.scss +461 -0
  161. package/dist/scss/maps/_theme-connect.scss +227 -0
  162. package/dist/scss/maps/_theme-engage.scss +227 -0
  163. package/dist/scss/maps/_theme-protect.scss +227 -0
  164. package/dist/scss/maps/_theme-proximus.scss +227 -0
  165. package/dist/scss/variables/_primitives.scss +459 -0
  166. package/dist/scss/variables/_theme-connect.scss +225 -0
  167. package/dist/scss/variables/_theme-engage.scss +225 -0
  168. package/dist/scss/variables/_theme-protect.scss +225 -0
  169. package/dist/scss/variables/_theme-proximus.scss +225 -0
  170. package/dist/types/components/feedback/bds-banner/bds-banner.d.ts +71 -0
  171. package/dist/types/components/feedback/bds-banner/types/IBanner.d.ts +10 -0
  172. package/dist/types/components/my-component/my-component.d.ts +16 -0
  173. package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +99 -0
  174. package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +22 -0
  175. package/dist/types/components/titles-text/bds-typography/types/enum.d.ts +24 -0
  176. package/dist/types/components/titles-text/bds-typography/types/types.d.ts +4 -0
  177. package/dist/types/components/titles-text/bds-typography/utils/bds-typography-utils.d.ts +15 -0
  178. package/dist/types/components.d.ts +565 -0
  179. package/dist/types/index.d.ts +11 -0
  180. package/dist/types/mixins/anchored.mixin.d.ts +228 -0
  181. package/dist/types/mixins/floating.mixin.d.ts +158 -0
  182. package/dist/types/mixins/form-associated.mixin.d.ts +127 -0
  183. package/dist/types/mixins/index.d.ts +4 -0
  184. package/dist/types/services/floating/interfaces/Floating.d.ts +38 -0
  185. package/dist/types/services/floating/interfaces/Positioning.d.ts +22 -0
  186. package/dist/types/services/floating/interfaces/Props.d.ts +35 -0
  187. package/dist/types/services/floating/positioning.service.d.ts +45 -0
  188. package/dist/types/services/floating/types/Arrow.d.ts +7 -0
  189. package/dist/types/services/logger/Logger.d.ts +50 -0
  190. package/dist/types/stencil-public-runtime.d.ts +1858 -0
  191. package/dist/types/types/alignment.d.ts +8 -0
  192. package/dist/types/types/form.d.ts +7 -0
  193. package/dist/types/types/index.d.ts +6 -0
  194. package/dist/types/types/position.d.ts +13 -0
  195. package/dist/types/types/size.d.ts +9 -0
  196. package/dist/types/types/states.d.ts +26 -0
  197. package/dist/types/types/stylesMap.d.ts +2 -0
  198. package/dist/types/utils/a11y/attributes.d.ts +13 -0
  199. package/dist/types/utils/a11y/index.d.ts +2 -0
  200. package/dist/types/utils/constants/common/Events.d.ts +14 -0
  201. package/dist/types/utils/constants/common/Keys.d.ts +18 -0
  202. package/dist/types/utils/dom/elements.d.ts +12 -0
  203. package/dist/types/utils/dom/index.d.ts +2 -0
  204. package/dist/types/utils/form/index.d.ts +2 -0
  205. package/dist/types/utils/form/internals.d.ts +66 -0
  206. package/dist/types/utils/helpers/common/BaseAttributes.d.ts +16 -0
  207. package/dist/types/utils/index.d.ts +4 -0
  208. package/loader/cdn.js +2 -0
  209. package/loader/index.cjs.js +2 -0
  210. package/loader/index.d.ts +24 -0
  211. package/loader/index.es2017.js +2 -0
  212. package/loader/index.js +3 -0
  213. package/package.json +96 -0
  214. package/readme.md +111 -0
  215. package/scripts/copy-styles.js +18 -0
  216. package/scripts/postbuild.js +21 -0
@@ -0,0 +1,71 @@
1
+ import { EventEmitter } from '../../../stencil-public-runtime';
2
+ import type { IBanner } from './types/IBanner';
3
+ /**
4
+ * Banner component used to display important messages with different status variants.
5
+ *
6
+ * @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
7
+ *
8
+ * @slot title - Slot for the banner title text.
9
+ * @slot - Default slot for the main body content of the banner.
10
+ * @slot actions - Slot for action buttons or links displayed at the end of the banner.
11
+ *
12
+ * @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
13
+ * @attr {boolean} enable-close - When true, renders a close button that triggers the close event.
14
+ * @attr {string} idComponent - Unique identifier for the banner element.
15
+ *
16
+ * @property {string} idComponent - Unique identifier for the banner element.
17
+ * @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
18
+ * @property {boolean} enableClose - Shows a close button that allows users to dismiss the banner. Defaults to false.
19
+ *
20
+ * @fires close - Emitted when the banner is closed via the close button or `closeBanner` method.
21
+ *
22
+ * @method closeBanner - Programmatic method to close the banner and emit the `close` event.
23
+ *
24
+ */
25
+ export declare class BdsBanner implements IBanner {
26
+ private inheritedAttributes;
27
+ /**
28
+ * Reference to the host element.
29
+ */
30
+ el: HTMLBdsBannerElement;
31
+ /**
32
+ * Internal state tracking the banner's closing animation.
33
+ */
34
+ isClosing: boolean;
35
+ /**
36
+ * Controls the visibility of the banner. Set to false to hide the banner.
37
+ */
38
+ isOpen: boolean;
39
+ /**
40
+ * Unique identifier for the banner element.
41
+ */
42
+ readonly idComponent: string;
43
+ /**
44
+ * Visual style variant: 'info', 'success', 'warning', or 'danger'.
45
+ * @default "info"
46
+ */
47
+ readonly variant: IBanner['variant'];
48
+ /**
49
+ * Shows a close button that allows users to dismiss the banner.
50
+ * @default false
51
+ */
52
+ readonly enableClose: IBanner['enableClose'];
53
+ /**
54
+ * Emitted when the banner is closed via the close button or handleClose method.
55
+ */
56
+ close: EventEmitter<void>;
57
+ componentWillLoad(): void;
58
+ /**
59
+ * Programmatic method to close the banner and emit the `close` event
60
+ */
61
+ closeBanner(): Promise<void>;
62
+ private handleCloseBanner;
63
+ private handleEscapeKeyClose;
64
+ private handleAnimationEnd;
65
+ private getIconName;
66
+ private getAttributes;
67
+ private getStyles;
68
+ private renderCloseIcon;
69
+ render(): any;
70
+ }
71
+ //# sourceMappingURL=bds-banner.d.ts.map
@@ -0,0 +1,10 @@
1
+ import type { StatusVariant } from "../../../../types/index";
2
+ import type { EventEmitter } from '../../../../stencil-public-runtime';
3
+ export interface IBanner {
4
+ variant: StatusVariant;
5
+ enableClose: boolean;
6
+ isOpen: boolean;
7
+ isClosing: boolean;
8
+ close: EventEmitter<void>;
9
+ }
10
+ //# sourceMappingURL=IBanner.d.ts.map
@@ -0,0 +1,16 @@
1
+ export declare class MyComponent {
2
+ /**
3
+ * The first name
4
+ */
5
+ readonly first: string;
6
+ /**
7
+ * The middle name
8
+ */
9
+ readonly middle: string;
10
+ /**
11
+ * The last name
12
+ */
13
+ readonly last: string;
14
+ render(): any;
15
+ }
16
+ //# sourceMappingURL=my-component.d.ts.map
@@ -0,0 +1,99 @@
1
+ import type { ITypography } from './types/ITypography';
2
+ /**
3
+ * Typography component for displaying text with various styles, sizes, and interactive features.
4
+ *
5
+ * @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
6
+ *
7
+ * @slot - The text displayed in the typography.
8
+ *
9
+ * @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
10
+ * @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
11
+ * @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
12
+ * @attr {string} align - The text alignment. Options: start, center, end, inherit
13
+ * @attr {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
14
+ * @attr {boolean} is-required - Shows a required indicator when used with `label` variant.
15
+ * @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
16
+ * @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
17
+ * @attr {string} href - URL when the typography is an `a` element and a `link` variant.
18
+ * @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
19
+ * @attr {boolean} is-downloadable - Makes the `link` download a file.
20
+ * @attr {string} filename - Suggested filename when downloading a file from the `link`.
21
+ * @attr {string} html-for - The for attribute when rendered as a label
22
+ * @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
23
+ * @attr {string} custom-class - Additional custom CSS class
24
+ *
25
+ * @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
26
+ * @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
27
+ * @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
28
+ * @property {string} align - The text alignment. Options: start, center, end, inherit
29
+ * @property {string} size - The size of the typography. For `display` variant all options are available (`xl`, `lg`, `md`, `sm`), while for `link` variant only `md` and `sm` are available.
30
+ * @property {boolean} isRequired - Shows a required indicator when used with `label` variant.
31
+ * @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
32
+ * @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
33
+ * @property {string} href - URL when the typography is an `a` element and a `link` variant.
34
+ * @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
35
+ * @property {boolean} isDownloadable - Makes the `link` download a file.
36
+ * @property {string} filename - Suggested filename when downloading a file from the `link`.
37
+ * @property {string} htmlFor - The for attribute when rendered as a label
38
+ * @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
39
+ * @property {string} customClass - Additional custom CSS class
40
+ *
41
+ * @default 'display' - Default variant value
42
+ * @default 'p' - Default element value
43
+ * @default 'start' - Default align value
44
+ * @default 'md' - Default size value
45
+ * @default 'default' - Default state value
46
+ * @default false - Default isRequired state
47
+ * @default false - Default ellipsis state
48
+ * @default 1 - Default maxLines value
49
+ * @default '' - Default href value
50
+ * @default '' - Default target value
51
+ * @default false - Default isDownloadable state
52
+ * @default 'download' - Default filename value
53
+ * @default '' - Default tooltipText value
54
+ */
55
+ export declare class BdsTypography implements ITypography {
56
+ private inheritedAttributes;
57
+ /** Host element reference. */
58
+ el: HTMLBdsTypographyElement;
59
+ /** Typography visual variant. */
60
+ readonly variant: ITypography['variant'];
61
+ /** Typography size token. */
62
+ readonly size: ITypography['size'];
63
+ /** Visual state (if supported by variant). */
64
+ readonly state: ITypography['state'];
65
+ /** Additional custom CSS class. */
66
+ readonly customClass: string;
67
+ /** HTML tag used for rendering. */
68
+ readonly element: ITypography['element'];
69
+ /** Text alignment. */
70
+ readonly align: ITypography['align'];
71
+ /** Enables text ellipsis. */
72
+ readonly ellipsis: ITypography['ellipsis'];
73
+ /** Max lines when ellipsis is enabled. */
74
+ readonly maxLines: ITypography['maxLines'];
75
+ /** Tooltip text (variant must support it). */
76
+ readonly tooltipText: ITypography['tooltipText'];
77
+ /** Marks the field as required. */
78
+ readonly isRequired: ITypography['isRequired'];
79
+ /** For attribute when rendered as a label. */
80
+ readonly htmlFor: ITypography['htmlFor'];
81
+ /** Link href when rendered as anchor. */
82
+ readonly href: ITypography['href'];
83
+ /** Anchor target. */
84
+ readonly target: ITypography['target'];
85
+ /** Enables download behavior for anchor. */
86
+ readonly isDownloadable: ITypography['isDownloadable'];
87
+ /** Suggested download filename. */
88
+ readonly filename: ITypography['filename'];
89
+ /** Sanitized href for security. */
90
+ sanitizedHref: string;
91
+ updateSanitizedHref(): Promise<void>;
92
+ componentWillLoad(): Promise<void>;
93
+ get getTagName(): string;
94
+ private getVariantConfig;
95
+ private getAccessibilityTags;
96
+ private getVariantStateStyles;
97
+ render(): any;
98
+ }
99
+ //# sourceMappingURL=bds-typography.d.ts.map
@@ -0,0 +1,22 @@
1
+ import type { Alignment } from "../../../../types/alignment";
2
+ import type { TagElement, Variant } from './types';
3
+ import type { State } from "../../../../types/states";
4
+ import type { Size } from "../../../../types/size";
5
+ export interface ITypography {
6
+ element: TagElement;
7
+ variant: Variant;
8
+ align: Alignment;
9
+ ellipsis: boolean;
10
+ maxLines: number;
11
+ tooltipText: string;
12
+ state: State;
13
+ size: Size;
14
+ isRequired: boolean;
15
+ htmlFor: string | undefined;
16
+ href: string | null;
17
+ target: '_blank' | '_parent' | '_self' | '_top' | '' | null;
18
+ isDownloadable: boolean;
19
+ filename: string;
20
+ sanitizedHref: string;
21
+ }
22
+ //# sourceMappingURL=ITypography.d.ts.map
@@ -0,0 +1,24 @@
1
+ export declare const VARIANT_TYPOGRAPHY: {
2
+ readonly DISPLAY: "display";
3
+ readonly HEADING: "heading";
4
+ readonly SUBHEADING: "subheading";
5
+ readonly LABEL: "label";
6
+ readonly HELPER: "helper";
7
+ readonly LINK: "link";
8
+ readonly CODE: "code";
9
+ readonly CAPTION: "caption";
10
+ };
11
+ export declare const TAG_ELEMENT: {
12
+ readonly P: "p";
13
+ readonly H1: "h1";
14
+ readonly H2: "h2";
15
+ readonly H3: "h3";
16
+ readonly H4: "h4";
17
+ readonly H5: "h5";
18
+ readonly H6: "h6";
19
+ readonly SPAN: "span";
20
+ readonly DIV: "div";
21
+ readonly A: "a";
22
+ readonly LABEL: "label";
23
+ };
24
+ //# sourceMappingURL=enum.d.ts.map
@@ -0,0 +1,4 @@
1
+ import type { TAG_ELEMENT, VARIANT_TYPOGRAPHY } from './enum';
2
+ export type TagElement = (typeof TAG_ELEMENT)[keyof typeof TAG_ELEMENT];
3
+ export type Variant = (typeof VARIANT_TYPOGRAPHY)[keyof typeof VARIANT_TYPOGRAPHY];
4
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { type State } from "../../../../types/states";
2
+ import { type Size } from "../../../../types/size";
3
+ import type { Variant } from '../types/types';
4
+ import type { ITypography } from '../types/ITypography';
5
+ export declare const FILENAME = "download";
6
+ type VariantSettings = {
7
+ readonly states?: State[];
8
+ readonly isRequired?: boolean;
9
+ readonly size?: Size[];
10
+ readonly canUseTooltip?: boolean;
11
+ };
12
+ export declare const VARIANT_CONFIG: Partial<Record<Variant, VariantSettings>>;
13
+ export declare const getAttributesByTag: (comp: ITypography, tagName: string) => Record<string, unknown>;
14
+ export {};
15
+ //# sourceMappingURL=bds-typography-utils.d.ts.map