@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,565 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ import { IBanner } from "./components/feedback/bds-banner/types/IBanner";
9
+ import { ITypography } from "./components/titles-text/bds-typography/types/ITypography";
10
+ export { IBanner } from "./components/feedback/bds-banner/types/IBanner";
11
+ export { ITypography } from "./components/titles-text/bds-typography/types/ITypography";
12
+ export namespace Components {
13
+ /**
14
+ * Banner component used to display important messages with different status variants.
15
+ * @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
16
+ * @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
17
+ * @attr {boolean} enable-close - When true, renders a close button that triggers the close event.
18
+ * @attr {string} idComponent - Unique identifier for the banner element.
19
+ * @property {string} idComponent - Unique identifier for the banner element.
20
+ * @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
21
+ * @property {boolean} enableClose - Shows a close button that allows users to dismiss the banner. Defaults to false.
22
+ * @fires close - Emitted when the banner is closed via the close button or `closeBanner` method.
23
+ * @method closeBanner - Programmatic method to close the banner and emit the `close` event.
24
+ */
25
+ interface BdsBanner {
26
+ /**
27
+ * Programmatic method to close the banner and emit the `close` event
28
+ */
29
+ "closeBanner": () => Promise<void>;
30
+ /**
31
+ * Shows a close button that allows users to dismiss the banner.
32
+ * @default false
33
+ */
34
+ "enableClose": IBanner['enableClose'];
35
+ /**
36
+ * Unique identifier for the banner element.
37
+ * @default ''
38
+ */
39
+ "idComponent": string;
40
+ /**
41
+ * Visual style variant: 'info', 'success', 'warning', or 'danger'.
42
+ * @default "info"
43
+ */
44
+ "variant": IBanner['variant'];
45
+ }
46
+ /**
47
+ * Typography component for displaying text with various styles, sizes, and interactive features.
48
+ * @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
49
+ * @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
50
+ * @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
51
+ * @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
52
+ * @attr {string} align - The text alignment. Options: start, center, end, inherit
53
+ * @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.
54
+ * @attr {boolean} is-required - Shows a required indicator when used with `label` variant.
55
+ * @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
56
+ * @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
57
+ * @attr {string} href - URL when the typography is an `a` element and a `link` variant.
58
+ * @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
59
+ * @attr {boolean} is-downloadable - Makes the `link` download a file.
60
+ * @attr {string} filename - Suggested filename when downloading a file from the `link`.
61
+ * @attr {string} html-for - The for attribute when rendered as a label
62
+ * @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
63
+ * @attr {string} custom-class - Additional custom CSS class
64
+ * @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
65
+ * @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
66
+ * @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
67
+ * @property {string} align - The text alignment. Options: start, center, end, inherit
68
+ * @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.
69
+ * @property {boolean} isRequired - Shows a required indicator when used with `label` variant.
70
+ * @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
71
+ * @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
72
+ * @property {string} href - URL when the typography is an `a` element and a `link` variant.
73
+ * @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
74
+ * @property {boolean} isDownloadable - Makes the `link` download a file.
75
+ * @property {string} filename - Suggested filename when downloading a file from the `link`.
76
+ * @property {string} htmlFor - The for attribute when rendered as a label
77
+ * @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
78
+ * @property {string} customClass - Additional custom CSS class
79
+ * @default 'display' - Default variant value
80
+ * @default 'p' - Default element value
81
+ * @default 'start' - Default align value
82
+ * @default 'md' - Default size value
83
+ * @default 'default' - Default state value
84
+ * @default false - Default isRequired state
85
+ * @default false - Default ellipsis state
86
+ * @default 1 - Default maxLines value
87
+ * @default '' - Default href value
88
+ * @default '' - Default target value
89
+ * @default false - Default isDownloadable state
90
+ * @default 'download' - Default filename value
91
+ * @default '' - Default tooltipText value
92
+ */
93
+ interface BdsTypography {
94
+ /**
95
+ * Text alignment.
96
+ * @default ALIGNMENT.START
97
+ */
98
+ "align": ITypography['align'];
99
+ /**
100
+ * Additional custom CSS class.
101
+ * @default ''
102
+ */
103
+ "customClass": string;
104
+ /**
105
+ * HTML tag used for rendering.
106
+ * @default TAG_ELEMENT.P
107
+ */
108
+ "element": ITypography['element'];
109
+ /**
110
+ * Enables text ellipsis.
111
+ * @default false
112
+ */
113
+ "ellipsis": ITypography['ellipsis'];
114
+ /**
115
+ * Suggested download filename.
116
+ * @default FILENAME
117
+ */
118
+ "filename": ITypography['filename'];
119
+ /**
120
+ * Link href when rendered as anchor.
121
+ * @default null
122
+ */
123
+ "href": ITypography['href'];
124
+ /**
125
+ * For attribute when rendered as a label.
126
+ * @default undefined
127
+ */
128
+ "htmlFor": ITypography['htmlFor'];
129
+ /**
130
+ * Enables download behavior for anchor.
131
+ * @default false
132
+ */
133
+ "isDownloadable": ITypography['isDownloadable'];
134
+ /**
135
+ * Marks the field as required.
136
+ * @default false
137
+ */
138
+ "isRequired": ITypography['isRequired'];
139
+ /**
140
+ * Max lines when ellipsis is enabled.
141
+ * @default 1
142
+ */
143
+ "maxLines": ITypography['maxLines'];
144
+ /**
145
+ * Typography size token.
146
+ * @default SIZES.M
147
+ */
148
+ "size": ITypography['size'];
149
+ /**
150
+ * Visual state (if supported by variant).
151
+ * @default STATES.DEFAULT
152
+ */
153
+ "state": ITypography['state'];
154
+ /**
155
+ * Anchor target.
156
+ * @default null
157
+ */
158
+ "target": ITypography['target'];
159
+ /**
160
+ * Tooltip text (variant must support it).
161
+ * @default ''
162
+ */
163
+ "tooltipText": ITypography['tooltipText'];
164
+ /**
165
+ * Typography visual variant.
166
+ * @default VARIANT_TYPOGRAPHY.DISPLAY
167
+ */
168
+ "variant": ITypography['variant'];
169
+ }
170
+ interface MyComponent {
171
+ /**
172
+ * The first name
173
+ * @default ''
174
+ */
175
+ "first": string;
176
+ /**
177
+ * The last name
178
+ * @default ''
179
+ */
180
+ "last": string;
181
+ /**
182
+ * The middle name
183
+ * @default ''
184
+ */
185
+ "middle": string;
186
+ }
187
+ }
188
+ export interface BdsBannerCustomEvent<T> extends CustomEvent<T> {
189
+ detail: T;
190
+ target: HTMLBdsBannerElement;
191
+ }
192
+ declare global {
193
+ interface HTMLBdsBannerElementEventMap {
194
+ "close": void;
195
+ }
196
+ /**
197
+ * Banner component used to display important messages with different status variants.
198
+ * @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
199
+ * @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
200
+ * @attr {boolean} enable-close - When true, renders a close button that triggers the close event.
201
+ * @attr {string} idComponent - Unique identifier for the banner element.
202
+ * @property {string} idComponent - Unique identifier for the banner element.
203
+ * @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
204
+ * @property {boolean} enableClose - Shows a close button that allows users to dismiss the banner. Defaults to false.
205
+ * @fires close - Emitted when the banner is closed via the close button or `closeBanner` method.
206
+ * @method closeBanner - Programmatic method to close the banner and emit the `close` event.
207
+ */
208
+ interface HTMLBdsBannerElement extends Components.BdsBanner, HTMLStencilElement {
209
+ addEventListener<K extends keyof HTMLBdsBannerElementEventMap>(type: K, listener: (this: HTMLBdsBannerElement, ev: BdsBannerCustomEvent<HTMLBdsBannerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
210
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
211
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
212
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
213
+ removeEventListener<K extends keyof HTMLBdsBannerElementEventMap>(type: K, listener: (this: HTMLBdsBannerElement, ev: BdsBannerCustomEvent<HTMLBdsBannerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
214
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
215
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
216
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
217
+ }
218
+ var HTMLBdsBannerElement: {
219
+ prototype: HTMLBdsBannerElement;
220
+ new (): HTMLBdsBannerElement;
221
+ };
222
+ /**
223
+ * Typography component for displaying text with various styles, sizes, and interactive features.
224
+ * @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
225
+ * @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
226
+ * @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
227
+ * @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
228
+ * @attr {string} align - The text alignment. Options: start, center, end, inherit
229
+ * @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.
230
+ * @attr {boolean} is-required - Shows a required indicator when used with `label` variant.
231
+ * @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
232
+ * @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
233
+ * @attr {string} href - URL when the typography is an `a` element and a `link` variant.
234
+ * @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
235
+ * @attr {boolean} is-downloadable - Makes the `link` download a file.
236
+ * @attr {string} filename - Suggested filename when downloading a file from the `link`.
237
+ * @attr {string} html-for - The for attribute when rendered as a label
238
+ * @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
239
+ * @attr {string} custom-class - Additional custom CSS class
240
+ * @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
241
+ * @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
242
+ * @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
243
+ * @property {string} align - The text alignment. Options: start, center, end, inherit
244
+ * @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.
245
+ * @property {boolean} isRequired - Shows a required indicator when used with `label` variant.
246
+ * @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
247
+ * @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
248
+ * @property {string} href - URL when the typography is an `a` element and a `link` variant.
249
+ * @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
250
+ * @property {boolean} isDownloadable - Makes the `link` download a file.
251
+ * @property {string} filename - Suggested filename when downloading a file from the `link`.
252
+ * @property {string} htmlFor - The for attribute when rendered as a label
253
+ * @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
254
+ * @property {string} customClass - Additional custom CSS class
255
+ * @default 'display' - Default variant value
256
+ * @default 'p' - Default element value
257
+ * @default 'start' - Default align value
258
+ * @default 'md' - Default size value
259
+ * @default 'default' - Default state value
260
+ * @default false - Default isRequired state
261
+ * @default false - Default ellipsis state
262
+ * @default 1 - Default maxLines value
263
+ * @default '' - Default href value
264
+ * @default '' - Default target value
265
+ * @default false - Default isDownloadable state
266
+ * @default 'download' - Default filename value
267
+ * @default '' - Default tooltipText value
268
+ */
269
+ interface HTMLBdsTypographyElement extends Components.BdsTypography, HTMLStencilElement {
270
+ }
271
+ var HTMLBdsTypographyElement: {
272
+ prototype: HTMLBdsTypographyElement;
273
+ new (): HTMLBdsTypographyElement;
274
+ };
275
+ interface HTMLMyComponentElement extends Components.MyComponent, HTMLStencilElement {
276
+ }
277
+ var HTMLMyComponentElement: {
278
+ prototype: HTMLMyComponentElement;
279
+ new (): HTMLMyComponentElement;
280
+ };
281
+ interface HTMLElementTagNameMap {
282
+ "bds-banner": HTMLBdsBannerElement;
283
+ "bds-typography": HTMLBdsTypographyElement;
284
+ "my-component": HTMLMyComponentElement;
285
+ }
286
+ }
287
+ declare namespace LocalJSX {
288
+ /**
289
+ * Banner component used to display important messages with different status variants.
290
+ * @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
291
+ * @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
292
+ * @attr {boolean} enable-close - When true, renders a close button that triggers the close event.
293
+ * @attr {string} idComponent - Unique identifier for the banner element.
294
+ * @property {string} idComponent - Unique identifier for the banner element.
295
+ * @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
296
+ * @property {boolean} enableClose - Shows a close button that allows users to dismiss the banner. Defaults to false.
297
+ * @fires close - Emitted when the banner is closed via the close button or `closeBanner` method.
298
+ * @method closeBanner - Programmatic method to close the banner and emit the `close` event.
299
+ */
300
+ interface BdsBanner {
301
+ /**
302
+ * Shows a close button that allows users to dismiss the banner.
303
+ * @default false
304
+ */
305
+ "enableClose"?: IBanner['enableClose'];
306
+ /**
307
+ * Unique identifier for the banner element.
308
+ * @default ''
309
+ */
310
+ "idComponent"?: string;
311
+ /**
312
+ * Emitted when the banner is closed via the close button or handleClose method.
313
+ */
314
+ "onClose"?: (event: BdsBannerCustomEvent<void>) => void;
315
+ /**
316
+ * Visual style variant: 'info', 'success', 'warning', or 'danger'.
317
+ * @default "info"
318
+ */
319
+ "variant"?: IBanner['variant'];
320
+ }
321
+ /**
322
+ * Typography component for displaying text with various styles, sizes, and interactive features.
323
+ * @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
324
+ * @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
325
+ * @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
326
+ * @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
327
+ * @attr {string} align - The text alignment. Options: start, center, end, inherit
328
+ * @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.
329
+ * @attr {boolean} is-required - Shows a required indicator when used with `label` variant.
330
+ * @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
331
+ * @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
332
+ * @attr {string} href - URL when the typography is an `a` element and a `link` variant.
333
+ * @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
334
+ * @attr {boolean} is-downloadable - Makes the `link` download a file.
335
+ * @attr {string} filename - Suggested filename when downloading a file from the `link`.
336
+ * @attr {string} html-for - The for attribute when rendered as a label
337
+ * @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
338
+ * @attr {string} custom-class - Additional custom CSS class
339
+ * @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
340
+ * @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
341
+ * @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
342
+ * @property {string} align - The text alignment. Options: start, center, end, inherit
343
+ * @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.
344
+ * @property {boolean} isRequired - Shows a required indicator when used with `label` variant.
345
+ * @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
346
+ * @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
347
+ * @property {string} href - URL when the typography is an `a` element and a `link` variant.
348
+ * @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
349
+ * @property {boolean} isDownloadable - Makes the `link` download a file.
350
+ * @property {string} filename - Suggested filename when downloading a file from the `link`.
351
+ * @property {string} htmlFor - The for attribute when rendered as a label
352
+ * @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
353
+ * @property {string} customClass - Additional custom CSS class
354
+ * @default 'display' - Default variant value
355
+ * @default 'p' - Default element value
356
+ * @default 'start' - Default align value
357
+ * @default 'md' - Default size value
358
+ * @default 'default' - Default state value
359
+ * @default false - Default isRequired state
360
+ * @default false - Default ellipsis state
361
+ * @default 1 - Default maxLines value
362
+ * @default '' - Default href value
363
+ * @default '' - Default target value
364
+ * @default false - Default isDownloadable state
365
+ * @default 'download' - Default filename value
366
+ * @default '' - Default tooltipText value
367
+ */
368
+ interface BdsTypography {
369
+ /**
370
+ * Text alignment.
371
+ * @default ALIGNMENT.START
372
+ */
373
+ "align"?: ITypography['align'];
374
+ /**
375
+ * Additional custom CSS class.
376
+ * @default ''
377
+ */
378
+ "customClass"?: string;
379
+ /**
380
+ * HTML tag used for rendering.
381
+ * @default TAG_ELEMENT.P
382
+ */
383
+ "element"?: ITypography['element'];
384
+ /**
385
+ * Enables text ellipsis.
386
+ * @default false
387
+ */
388
+ "ellipsis"?: ITypography['ellipsis'];
389
+ /**
390
+ * Suggested download filename.
391
+ * @default FILENAME
392
+ */
393
+ "filename"?: ITypography['filename'];
394
+ /**
395
+ * Link href when rendered as anchor.
396
+ * @default null
397
+ */
398
+ "href"?: ITypography['href'];
399
+ /**
400
+ * For attribute when rendered as a label.
401
+ * @default undefined
402
+ */
403
+ "htmlFor"?: ITypography['htmlFor'];
404
+ /**
405
+ * Enables download behavior for anchor.
406
+ * @default false
407
+ */
408
+ "isDownloadable"?: ITypography['isDownloadable'];
409
+ /**
410
+ * Marks the field as required.
411
+ * @default false
412
+ */
413
+ "isRequired"?: ITypography['isRequired'];
414
+ /**
415
+ * Max lines when ellipsis is enabled.
416
+ * @default 1
417
+ */
418
+ "maxLines"?: ITypography['maxLines'];
419
+ /**
420
+ * Typography size token.
421
+ * @default SIZES.M
422
+ */
423
+ "size"?: ITypography['size'];
424
+ /**
425
+ * Visual state (if supported by variant).
426
+ * @default STATES.DEFAULT
427
+ */
428
+ "state"?: ITypography['state'];
429
+ /**
430
+ * Anchor target.
431
+ * @default null
432
+ */
433
+ "target"?: ITypography['target'];
434
+ /**
435
+ * Tooltip text (variant must support it).
436
+ * @default ''
437
+ */
438
+ "tooltipText"?: ITypography['tooltipText'];
439
+ /**
440
+ * Typography visual variant.
441
+ * @default VARIANT_TYPOGRAPHY.DISPLAY
442
+ */
443
+ "variant"?: ITypography['variant'];
444
+ }
445
+ interface MyComponent {
446
+ /**
447
+ * The first name
448
+ * @default ''
449
+ */
450
+ "first"?: string;
451
+ /**
452
+ * The last name
453
+ * @default ''
454
+ */
455
+ "last"?: string;
456
+ /**
457
+ * The middle name
458
+ * @default ''
459
+ */
460
+ "middle"?: string;
461
+ }
462
+
463
+ interface BdsBannerAttributes {
464
+ "idComponent": string;
465
+ "variant": IBanner['variant'];
466
+ "enableClose": IBanner['enableClose'];
467
+ }
468
+ interface BdsTypographyAttributes {
469
+ "variant": ITypography['variant'];
470
+ "size": ITypography['size'];
471
+ "state": ITypography['state'];
472
+ "customClass": string;
473
+ "element": ITypography['element'];
474
+ "align": ITypography['align'];
475
+ "ellipsis": ITypography['ellipsis'];
476
+ "maxLines": ITypography['maxLines'];
477
+ "tooltipText": ITypography['tooltipText'];
478
+ "isRequired": ITypography['isRequired'];
479
+ "htmlFor": ITypography['htmlFor'];
480
+ "href": ITypography['href'];
481
+ "target": ITypography['target'];
482
+ "isDownloadable": ITypography['isDownloadable'];
483
+ "filename": ITypography['filename'];
484
+ }
485
+ interface MyComponentAttributes {
486
+ "first": string;
487
+ "middle": string;
488
+ "last": string;
489
+ }
490
+
491
+ interface IntrinsicElements {
492
+ "bds-banner": Omit<BdsBanner, keyof BdsBannerAttributes> & { [K in keyof BdsBanner & keyof BdsBannerAttributes]?: BdsBanner[K] } & { [K in keyof BdsBanner & keyof BdsBannerAttributes as `attr:${K}`]?: BdsBannerAttributes[K] } & { [K in keyof BdsBanner & keyof BdsBannerAttributes as `prop:${K}`]?: BdsBanner[K] };
493
+ "bds-typography": Omit<BdsTypography, keyof BdsTypographyAttributes> & { [K in keyof BdsTypography & keyof BdsTypographyAttributes]?: BdsTypography[K] } & { [K in keyof BdsTypography & keyof BdsTypographyAttributes as `attr:${K}`]?: BdsTypographyAttributes[K] } & { [K in keyof BdsTypography & keyof BdsTypographyAttributes as `prop:${K}`]?: BdsTypography[K] };
494
+ "my-component": Omit<MyComponent, keyof MyComponentAttributes> & { [K in keyof MyComponent & keyof MyComponentAttributes]?: MyComponent[K] } & { [K in keyof MyComponent & keyof MyComponentAttributes as `attr:${K}`]?: MyComponentAttributes[K] } & { [K in keyof MyComponent & keyof MyComponentAttributes as `prop:${K}`]?: MyComponent[K] };
495
+ }
496
+ }
497
+ export { LocalJSX as JSX };
498
+ declare module "@stencil/core" {
499
+ export namespace JSX {
500
+ interface IntrinsicElements {
501
+ /**
502
+ * Banner component used to display important messages with different status variants.
503
+ * @summary Displays a dismissible banner with an icon, title, body content, and optional actions.
504
+ * @attr {"info"|"success"|"warning"|"danger"} variant - Status variant of the banner, affects color and icon. Defaults to "info".
505
+ * @attr {boolean} enable-close - When true, renders a close button that triggers the close event.
506
+ * @attr {string} idComponent - Unique identifier for the banner element.
507
+ * @property {string} idComponent - Unique identifier for the banner element.
508
+ * @property {"info"|"success"|"warning"|"danger"} variant - Visual style variant: 'info', 'success', 'warning', or 'danger'. Defaults to "info".
509
+ * @property {boolean} enableClose - Shows a close button that allows users to dismiss the banner. Defaults to false.
510
+ * @fires close - Emitted when the banner is closed via the close button or `closeBanner` method.
511
+ * @method closeBanner - Programmatic method to close the banner and emit the `close` event.
512
+ */
513
+ "bds-banner": LocalJSX.IntrinsicElements["bds-banner"] & JSXBase.HTMLAttributes<HTMLBdsBannerElement>;
514
+ /**
515
+ * Typography component for displaying text with various styles, sizes, and interactive features.
516
+ * @summary A comprehensive typography component that supports multiple text variants, sizes, alignments, states, and link functionality.
517
+ * @attr {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
518
+ * @attr {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
519
+ * @attr {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
520
+ * @attr {string} align - The text alignment. Options: start, center, end, inherit
521
+ * @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.
522
+ * @attr {boolean} is-required - Shows a required indicator when used with `label` variant.
523
+ * @attr {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
524
+ * @attr {number} max-lines - Maximum number of lines to show before truncating with ellipsis.
525
+ * @attr {string} href - URL when the typography is an `a` element and a `link` variant.
526
+ * @attr {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
527
+ * @attr {boolean} is-downloadable - Makes the `link` download a file.
528
+ * @attr {string} filename - Suggested filename when downloading a file from the `link`.
529
+ * @attr {string} html-for - The for attribute when rendered as a label
530
+ * @attr {string} tooltip-text - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
531
+ * @attr {string} custom-class - Additional custom CSS class
532
+ * @property {string} variant - The variant of the typography for styling the text. Options: label, display, heading, subheading, helper, link, code, caption
533
+ * @property {string} element - Defines the HTML element. For `heading` variant, the text size adjusts to the HTML heading level (`h1` through `h6`).
534
+ * @property {string} state - The state of the typography. Only available for the `helper` and `label` variants. Options: default, error, disabled, hover, active, focus, visited
535
+ * @property {string} align - The text alignment. Options: start, center, end, inherit
536
+ * @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.
537
+ * @property {boolean} isRequired - Shows a required indicator when used with `label` variant.
538
+ * @property {boolean} ellipsis - Truncates text with an ellipsis when it overflows.
539
+ * @property {number} maxLines - Maximum number of lines to show before truncating with ellipsis.
540
+ * @property {string} href - URL when the typography is an `a` element and a `link` variant.
541
+ * @property {string} target - Specifies where to open the link. Options: _self, _blank, _top, _parent
542
+ * @property {boolean} isDownloadable - Makes the `link` download a file.
543
+ * @property {string} filename - Suggested filename when downloading a file from the `link`.
544
+ * @property {string} htmlFor - The for attribute when rendered as a label
545
+ * @property {string} tooltipText - Text to display inside the tooltip when hovering the info icon. Only applicable for `heading`, `subheading`, and `label` variants.
546
+ * @property {string} customClass - Additional custom CSS class
547
+ * @default 'display' - Default variant value
548
+ * @default 'p' - Default element value
549
+ * @default 'start' - Default align value
550
+ * @default 'md' - Default size value
551
+ * @default 'default' - Default state value
552
+ * @default false - Default isRequired state
553
+ * @default false - Default ellipsis state
554
+ * @default 1 - Default maxLines value
555
+ * @default '' - Default href value
556
+ * @default '' - Default target value
557
+ * @default false - Default isDownloadable state
558
+ * @default 'download' - Default filename value
559
+ * @default '' - Default tooltipText value
560
+ */
561
+ "bds-typography": LocalJSX.IntrinsicElements["bds-typography"] & JSXBase.HTMLAttributes<HTMLBdsTypographyElement>;
562
+ "my-component": LocalJSX.IntrinsicElements["my-component"] & JSXBase.HTMLAttributes<HTMLMyComponentElement>;
563
+ }
564
+ }
565
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @file entry point for your component library
3
+ *
4
+ * This is the entry point for your component library. Use this file to export utilities,
5
+ * constants or data structure that accompany your components.
6
+ *
7
+ * DO NOT use this file to export your components. Instead, use the recommended approaches
8
+ * to consume components of this package as outlined in the `README.md`.
9
+ */
10
+ export type * from './components.d.ts';
11
+ //# sourceMappingURL=index.d.ts.map