@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.
- package/LICENSE +21 -0
- package/components-build/bds-banner.d.ts +11 -0
- package/components-build/bds-banner.js +1 -0
- package/components-build/bds-typography.d.ts +11 -0
- package/components-build/bds-typography.js +1 -0
- package/components-build/index.d.ts +35 -0
- package/components-build/index.js +1 -0
- package/components-build/my-component.d.ts +11 -0
- package/components-build/my-component.js +1 -0
- package/components-build/p-B9wshZ_4.js +1 -0
- package/components-build/p-noyWJ11s.js +1 -0
- package/custom-elements.json +764 -0
- package/dist/boreal-web-components/boreal-web-components.css +1 -0
- package/dist/boreal-web-components/boreal-web-components.esm.js +1 -0
- package/dist/boreal-web-components/boreal-web-components.js +127 -0
- package/dist/boreal-web-components/css/boreal.css +1594 -0
- package/dist/boreal-web-components/css/global.css +682 -0
- package/dist/boreal-web-components/css/theme-connect.css +227 -0
- package/dist/boreal-web-components/css/theme-engage.css +227 -0
- package/dist/boreal-web-components/css/theme-protect.css +227 -0
- package/dist/boreal-web-components/css/theme-proximus.css +227 -0
- package/dist/boreal-web-components/index.esm.js +0 -0
- package/dist/boreal-web-components/p-412d037b.system.entry.js +1 -0
- package/dist/boreal-web-components/p-527a761b.entry.js +1 -0
- package/dist/boreal-web-components/p-5666a22a.system.entry.js +1 -0
- package/dist/boreal-web-components/p-B-PpI2Xv.system.js +1 -0
- package/dist/boreal-web-components/p-B9wshZ_4.js +1 -0
- package/dist/boreal-web-components/p-BQdH0ijK.system.js +2 -0
- package/dist/boreal-web-components/p-BbPAtVJG.system.js +1 -0
- package/dist/boreal-web-components/p-CMd-Mv-5.system.js +1 -0
- package/dist/boreal-web-components/p-CaVEtaG3.system.js +1 -0
- package/dist/boreal-web-components/p-DQuL1Twl.js +1 -0
- package/dist/boreal-web-components/p-DgFiTd6X.js +2 -0
- package/dist/boreal-web-components/p-YWpyar7R.system.js +1 -0
- package/dist/boreal-web-components/p-b818618b.entry.js +1 -0
- package/dist/boreal-web-components/p-d596406b.entry.js +1 -0
- package/dist/boreal-web-components/p-e37e7dba.system.entry.js +1 -0
- package/dist/boreal-web-components/p-noyWJ11s.js +1 -0
- package/dist/boreal-web-components/scss/global/_fonts.scss +1 -0
- package/dist/boreal-web-components/scss/global/_index.scss +3 -0
- package/dist/boreal-web-components/scss/global/_reset.scss +50 -0
- package/dist/boreal-web-components/scss/global/_typography.scss +156 -0
- package/dist/boreal-web-components/scss/maps/_primitives.scss +461 -0
- package/dist/boreal-web-components/scss/maps/_theme-connect.scss +227 -0
- package/dist/boreal-web-components/scss/maps/_theme-engage.scss +227 -0
- package/dist/boreal-web-components/scss/maps/_theme-protect.scss +227 -0
- package/dist/boreal-web-components/scss/maps/_theme-proximus.scss +227 -0
- package/dist/boreal-web-components/scss/variables/_primitives.scss +459 -0
- package/dist/boreal-web-components/scss/variables/_theme-connect.scss +225 -0
- package/dist/boreal-web-components/scss/variables/_theme-engage.scss +225 -0
- package/dist/boreal-web-components/scss/variables/_theme-protect.scss +225 -0
- package/dist/boreal-web-components/scss/variables/_theme-proximus.scss +225 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/attributes-RPVEtBdj.js +90 -0
- package/dist/cjs/bds-banner.cjs.entry.js +130 -0
- package/dist/cjs/bds-typography.cjs.entry.js +167 -0
- package/dist/cjs/boreal-web-components.cjs.js +46 -0
- package/dist/cjs/index-CD9v53WJ.js +133 -0
- package/dist/cjs/index-Cdb66Tqj.js +2342 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/cjs/my-component.cjs.entry.js +29 -0
- package/dist/collection/collection-manifest.json +14 -0
- package/dist/collection/components/feedback/bds-banner/bds-banner.css +101 -0
- package/dist/collection/components/feedback/bds-banner/bds-banner.js +266 -0
- package/dist/collection/components/feedback/bds-banner/types/IBanner.js +1 -0
- package/dist/collection/components/my-component/my-component.css +3 -0
- package/dist/collection/components/my-component/my-component.js +95 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.css +183 -0
- package/dist/collection/components/titles-text/bds-typography/bds-typography.js +577 -0
- package/dist/collection/components/titles-text/bds-typography/types/ITypography.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/types/enum.js +23 -0
- package/dist/collection/components/titles-text/bds-typography/types/types.js +1 -0
- package/dist/collection/components/titles-text/bds-typography/utils/bds-typography-utils.js +41 -0
- package/dist/collection/css/boreal.css +1594 -0
- package/dist/collection/css/global.css +682 -0
- package/dist/collection/css/theme-connect.css +227 -0
- package/dist/collection/css/theme-engage.css +227 -0
- package/dist/collection/css/theme-protect.css +227 -0
- package/dist/collection/css/theme-proximus.css +227 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/mixins/anchored.mixin.js +272 -0
- package/dist/collection/mixins/floating.mixin.js +181 -0
- package/dist/collection/mixins/form-associated.mixin.js +95 -0
- package/dist/collection/mixins/index.js +3 -0
- package/dist/collection/scss/global/_fonts.scss +1 -0
- package/dist/collection/scss/global/_index.scss +3 -0
- package/dist/collection/scss/global/_reset.scss +50 -0
- package/dist/collection/scss/global/_typography.scss +156 -0
- package/dist/collection/scss/maps/_primitives.scss +461 -0
- package/dist/collection/scss/maps/_theme-connect.scss +227 -0
- package/dist/collection/scss/maps/_theme-engage.scss +227 -0
- package/dist/collection/scss/maps/_theme-protect.scss +227 -0
- package/dist/collection/scss/maps/_theme-proximus.scss +227 -0
- package/dist/collection/scss/variables/_primitives.scss +459 -0
- package/dist/collection/scss/variables/_theme-connect.scss +225 -0
- package/dist/collection/scss/variables/_theme-engage.scss +225 -0
- package/dist/collection/scss/variables/_theme-protect.scss +225 -0
- package/dist/collection/scss/variables/_theme-proximus.scss +225 -0
- package/dist/collection/services/floating/interfaces/Floating.js +1 -0
- package/dist/collection/services/floating/interfaces/Positioning.js +1 -0
- package/dist/collection/services/floating/interfaces/Props.js +1 -0
- package/dist/collection/services/floating/positioning.service.js +71 -0
- package/dist/collection/services/floating/types/Arrow.js +1 -0
- package/dist/collection/services/logger/Logger.js +47 -0
- package/dist/collection/types/alignment.js +6 -0
- package/dist/collection/types/form.js +1 -0
- package/dist/collection/types/index.js +5 -0
- package/dist/collection/types/position.js +11 -0
- package/dist/collection/types/size.js +7 -0
- package/dist/collection/types/states.js +22 -0
- package/dist/collection/types/stylesMap.js +1 -0
- package/dist/collection/utils/a11y/attributes.js +80 -0
- package/dist/collection/utils/a11y/index.js +1 -0
- package/dist/collection/utils/constants/common/Events.js +10 -0
- package/dist/collection/utils/constants/common/Keys.js +16 -0
- package/dist/collection/utils/dom/elements.js +22 -0
- package/dist/collection/utils/dom/index.js +1 -0
- package/dist/collection/utils/form/index.js +1 -0
- package/dist/collection/utils/form/internals.js +79 -0
- package/dist/collection/utils/helpers/common/BaseAttributes.js +17 -0
- package/dist/collection/utils/index.js +3 -0
- package/dist/css/boreal.css +1594 -0
- package/dist/css/global.css +682 -0
- package/dist/css/theme-connect.css +227 -0
- package/dist/css/theme-engage.css +227 -0
- package/dist/css/theme-protect.css +227 -0
- package/dist/css/theme-proximus.css +227 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/attributes-B9wshZ_4.js +86 -0
- package/dist/esm/bds-banner.entry.js +128 -0
- package/dist/esm/bds-typography.entry.js +165 -0
- package/dist/esm/boreal-web-components.js +42 -0
- package/dist/esm/index-DgFiTd6X.js +2332 -0
- package/dist/esm/index-noyWJ11s.js +131 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/my-component.entry.js +27 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm-es5/app-globals-DQuL1Twl.js +1 -0
- package/dist/esm-es5/attributes-B9wshZ_4.js +1 -0
- package/dist/esm-es5/bds-banner.entry.js +1 -0
- package/dist/esm-es5/bds-typography.entry.js +1 -0
- package/dist/esm-es5/boreal-web-components.js +1 -0
- package/dist/esm-es5/index-DgFiTd6X.js +2 -0
- package/dist/esm-es5/index-noyWJ11s.js +1 -0
- package/dist/esm-es5/index.js +0 -0
- package/dist/esm-es5/loader.js +1 -0
- package/dist/esm-es5/my-component.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/scss/global/_fonts.scss +1 -0
- package/dist/scss/global/_index.scss +3 -0
- package/dist/scss/global/_reset.scss +50 -0
- package/dist/scss/global/_typography.scss +156 -0
- package/dist/scss/maps/_primitives.scss +461 -0
- package/dist/scss/maps/_theme-connect.scss +227 -0
- package/dist/scss/maps/_theme-engage.scss +227 -0
- package/dist/scss/maps/_theme-protect.scss +227 -0
- package/dist/scss/maps/_theme-proximus.scss +227 -0
- package/dist/scss/variables/_primitives.scss +459 -0
- package/dist/scss/variables/_theme-connect.scss +225 -0
- package/dist/scss/variables/_theme-engage.scss +225 -0
- package/dist/scss/variables/_theme-protect.scss +225 -0
- package/dist/scss/variables/_theme-proximus.scss +225 -0
- package/dist/types/components/feedback/bds-banner/bds-banner.d.ts +71 -0
- package/dist/types/components/feedback/bds-banner/types/IBanner.d.ts +10 -0
- package/dist/types/components/my-component/my-component.d.ts +16 -0
- package/dist/types/components/titles-text/bds-typography/bds-typography.d.ts +99 -0
- package/dist/types/components/titles-text/bds-typography/types/ITypography.d.ts +22 -0
- package/dist/types/components/titles-text/bds-typography/types/enum.d.ts +24 -0
- package/dist/types/components/titles-text/bds-typography/types/types.d.ts +4 -0
- package/dist/types/components/titles-text/bds-typography/utils/bds-typography-utils.d.ts +15 -0
- package/dist/types/components.d.ts +565 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/mixins/anchored.mixin.d.ts +228 -0
- package/dist/types/mixins/floating.mixin.d.ts +158 -0
- package/dist/types/mixins/form-associated.mixin.d.ts +127 -0
- package/dist/types/mixins/index.d.ts +4 -0
- package/dist/types/services/floating/interfaces/Floating.d.ts +38 -0
- package/dist/types/services/floating/interfaces/Positioning.d.ts +22 -0
- package/dist/types/services/floating/interfaces/Props.d.ts +35 -0
- package/dist/types/services/floating/positioning.service.d.ts +45 -0
- package/dist/types/services/floating/types/Arrow.d.ts +7 -0
- package/dist/types/services/logger/Logger.d.ts +50 -0
- package/dist/types/stencil-public-runtime.d.ts +1858 -0
- package/dist/types/types/alignment.d.ts +8 -0
- package/dist/types/types/form.d.ts +7 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/types/position.d.ts +13 -0
- package/dist/types/types/size.d.ts +9 -0
- package/dist/types/types/states.d.ts +26 -0
- package/dist/types/types/stylesMap.d.ts +2 -0
- package/dist/types/utils/a11y/attributes.d.ts +13 -0
- package/dist/types/utils/a11y/index.d.ts +2 -0
- package/dist/types/utils/constants/common/Events.d.ts +14 -0
- package/dist/types/utils/constants/common/Keys.d.ts +18 -0
- package/dist/types/utils/dom/elements.d.ts +12 -0
- package/dist/types/utils/dom/index.d.ts +2 -0
- package/dist/types/utils/form/index.d.ts +2 -0
- package/dist/types/utils/form/internals.d.ts +66 -0
- package/dist/types/utils/helpers/common/BaseAttributes.d.ts +16 -0
- package/dist/types/utils/index.d.ts +4 -0
- package/loader/cdn.js +2 -0
- package/loader/index.cjs.js +2 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +2 -0
- package/loader/index.js +3 -0
- package/package.json +96 -0
- package/readme.md +111 -0
- package/scripts/copy-styles.js +18 -0
- 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,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
|