@nldd/design-system 0.8.82 → 0.8.83
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/custom-elements.json +436 -68
- package/dist/components/actions/button/button.d.ts +5 -0
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +8 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +2 -0
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +1 -1
- package/dist/components/actions/icon-button/icon-button.js +1 -1
- package/dist/components/components.js +894 -226
- package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
- package/dist/components/content/avatar/avatar.styles.js +5 -1
- package/dist/components/content/avatar/avatar.styles.js.map +1 -1
- package/dist/components/content/icon/icon-aliases.d.ts.map +1 -1
- package/dist/components/content/icon/icon-aliases.js +78 -6
- package/dist/components/content/icon/icon-aliases.js.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.d.ts.map +1 -1
- package/dist/components/content/icon/icon-gallery-status.js +55 -94
- package/dist/components/content/icon/icon-gallery-status.js.map +1 -1
- package/dist/components/content/icon/icon-registry.d.ts.map +1 -1
- package/dist/components/content/icon/icon-registry.js +34 -4
- package/dist/components/content/icon/icon-registry.js.map +1 -1
- package/dist/components/content/icon/icon.d.ts +8 -2
- package/dist/components/content/icon/icon.d.ts.map +1 -1
- package/dist/components/content/icon/icon.js +17 -2
- package/dist/components/content/icon/icon.js.map +1 -1
- package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
- package/dist/components/content/icon/icon.styles.js +8 -0
- package/dist/components/content/icon/icon.styles.js.map +1 -1
- package/dist/components/content/text/text.d.ts +50 -0
- package/dist/components/content/text/text.d.ts.map +1 -0
- package/dist/components/content/text/text.js +81 -0
- package/dist/components/content/text/text.js.map +1 -0
- package/dist/components/content/text/text.styles.d.ts +2 -0
- package/dist/components/content/text/text.styles.d.ts.map +1 -0
- package/dist/components/content/text/text.styles.js +116 -0
- package/dist/components/content/text/text.styles.js.map +1 -0
- package/dist/components/content/text/text.template.d.ts +3 -0
- package/dist/components/content/text/text.template.d.ts.map +1 -0
- package/dist/components/content/text/text.template.js +7 -0
- package/dist/components/content/text/text.template.js.map +1 -0
- package/dist/components/content/title/title.styles.d.ts.map +1 -1
- package/dist/components/content/title/title.styles.js +9 -13
- package/dist/components/content/title/title.styles.js.map +1 -1
- package/dist/components/{icon-CIpJq_cf.js → icon-C1Kikpol.js} +100 -10
- package/dist/components/{icon-button-BAkUJTn6.js → icon-button-BYy6hnAY.js} +2 -2
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.d.ts +2 -0
- package/dist/components/inputs/combo-box/combo-box.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.js +22 -0
- package/dist/components/inputs/combo-box/combo-box.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.styles.js +5 -0
- package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.d.ts.map +1 -1
- package/dist/components/inputs/combo-box/combo-box.template.js +23 -20
- package/dist/components/inputs/combo-box/combo-box.template.js.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
- package/dist/components/inputs/date-field/date-field.template.js +7 -1
- package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts +8 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js +8 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.js.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.d.ts.map +1 -1
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js +2 -0
- package/dist/components/inputs/multi-line-text-field/multi-line-text-field.template.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.d.ts +21 -0
- package/dist/components/inputs/text-field/text-field.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.js +48 -0
- package/dist/components/inputs/text-field/text-field.js.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.d.ts.map +1 -1
- package/dist/components/inputs/text-field/text-field.template.js +2 -0
- package/dist/components/inputs/text-field/text-field.template.js.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
- package/dist/components/inputs/time-field/time-field.template.js +7 -1
- package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
- package/dist/components/layout/box/box.d.ts +3 -3
- package/dist/components/layout/box/box.d.ts.map +1 -1
- package/dist/components/layout/box/box.js +3 -3
- package/dist/components/layout/box/box.js.map +1 -1
- package/dist/components/layout/box/box.styles.d.ts.map +1 -1
- package/dist/components/layout/box/box.styles.js +3 -6
- package/dist/components/layout/box/box.styles.js.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
- package/dist/components/layout/sheet/sheet.styles.js +10 -3
- package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list/list.d.ts +60 -45
- package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list/list.js +94 -80
- package/dist/components/lists-and-tables/list/list.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.d.ts +94 -21
- package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.js +275 -48
- package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.styles.js +116 -34
- package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.d.ts.map +1 -1
- package/dist/components/lists-and-tables/list-item/list-item.template.js +5 -2
- package/dist/components/lists-and-tables/list-item/list-item.template.js.map +1 -1
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +116 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -0
- package/dist/components/lists-and-tables/{list-item-action/list-item-action.js → list-item-segment/list-item-segment.js} +77 -52
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts +2 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +179 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts +3 -0
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.d.ts.map +1 -0
- package/dist/components/lists-and-tables/{list-item-action/list-item-action.template.js → list-item-segment/list-item-segment.template.js} +5 -4
- package/dist/components/lists-and-tables/list-item-segment/list-item-segment.template.js.map +1 -0
- package/dist/components/status-and-feedback/badge/badge.d.ts +8 -2
- package/dist/components/status-and-feedback/badge/badge.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.js +17 -1
- package/dist/components/status-and-feedback/badge/badge.js.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/badge/badge.styles.js +35 -6
- package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +7 -0
- package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
- package/dist/css/variables.css +25 -1
- package/dist/nldd.min.js +1002 -593
- package/dist/types/vue.d.ts +93 -47
- package/dist/utilities/scroll-mode-controller.d.ts +9 -1
- package/dist/utilities/scroll-mode-controller.d.ts.map +1 -1
- package/dist/utilities/scroll-mode-controller.js +10 -2
- package/dist/utilities/scroll-mode-controller.js.map +1 -1
- package/package.json +8 -4
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts +0 -108
- package/dist/components/lists-and-tables/list-item-action/list-item-action.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.js.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts +0 -2
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js +0 -145
- package/dist/components/lists-and-tables/list-item-action/list-item-action.styles.js.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts +0 -3
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts.map +0 -1
- package/dist/components/lists-and-tables/list-item-action/list-item-action.template.js.map +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nederlandse Digitale Dienst Text Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* One run of body text at a size from the type scale. It is what you reach for
|
|
5
|
+
* where an app would otherwise write a bare `<p>` and inherit whatever the page
|
|
6
|
+
* happens to set: a line under a title, a sentence in a panel, a caption.
|
|
7
|
+
*
|
|
8
|
+
* Every combination it offers exists as a token, so it cannot invent typography
|
|
9
|
+
* — it only names what the scale already has. The three axes are the same three
|
|
10
|
+
* the tokens carry: size, weight and line height.
|
|
11
|
+
*
|
|
12
|
+
* Not for headings, which is `nldd-title`, and not for a block of prose with its
|
|
13
|
+
* own rhythm, spacing and media widths, which is `nldd-rich-text`. This is one
|
|
14
|
+
* run of text and nothing around it.
|
|
15
|
+
*
|
|
16
|
+
* Color follows the context channel a list item, menu or table sets on its
|
|
17
|
+
* content, so text inside a row travels with that row as it is hovered or
|
|
18
|
+
* selected. Standalone that channel is unset and the semantic color answers.
|
|
19
|
+
*
|
|
20
|
+
* @element nldd-text
|
|
21
|
+
* @attr {string} size - Text size on the body scale: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' (default: 'md')
|
|
22
|
+
* @attr {string} weight - Font weight: 'regular' | 'medium' | 'bold' (default: 'regular'). With 'bold' a slotted `<strong>` no longer stands out: there is nothing bolder in the scale.
|
|
23
|
+
* @attr {string} line-height - Line height: 'flat' | 'tight' | 'snug' | 'loose' (default: 'snug')
|
|
24
|
+
* @attr {string} color - Text color: 'default' | 'secondary' | 'accent' | 'success' | 'warning' | 'critical' | 'inherit' (default: 'default'). 'default' and 'secondary' follow the surrounding content channel; 'inherit' takes the color it inherits, for text on a painted surface.
|
|
25
|
+
* @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
|
|
26
|
+
*
|
|
27
|
+
* @slot - The text. Inline elements work as they are: `<strong>` and `<b>` take the bold weight from the scale, `<a>`, `<em>` and components such as `nldd-tag` are left alone.
|
|
28
|
+
*/
|
|
29
|
+
import { LitElement } from 'lit';
|
|
30
|
+
type Size = 'xxs' | 'xs' | 'sm' | 'md' | 'lg';
|
|
31
|
+
type Weight = 'regular' | 'medium' | 'bold';
|
|
32
|
+
type LineHeight = 'flat' | 'tight' | 'snug' | 'loose';
|
|
33
|
+
type Color = 'default' | 'secondary' | 'accent' | 'success' | 'warning' | 'critical' | 'inherit';
|
|
34
|
+
type HorizontalAlignment = 'left' | 'center' | 'right';
|
|
35
|
+
export declare class NLDDText extends LitElement {
|
|
36
|
+
static styles: import("lit").CSSResult;
|
|
37
|
+
size: Size;
|
|
38
|
+
weight: Weight;
|
|
39
|
+
lineHeight: LineHeight;
|
|
40
|
+
color: Color;
|
|
41
|
+
horizontalAlignment: HorizontalAlignment;
|
|
42
|
+
render(): import("lit-html").TemplateResult;
|
|
43
|
+
}
|
|
44
|
+
declare global {
|
|
45
|
+
interface HTMLElementTagNameMap {
|
|
46
|
+
'nldd-text': NLDDText;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAMjC,KAAK,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC9C,KAAK,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC5C,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACtD,KAAK,KAAK,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AACjG,KAAK,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvD,qBACa,QAAS,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAAc;IAGpC,IAAI,EAAE,IAAI,CAAQ;IAGlB,MAAM,EAAE,MAAM,CAAa;IAO3B,UAAU,EAAE,UAAU,CAAU;IAGhC,KAAK,EAAE,KAAK,CAAa;IAOzB,mBAAmB,EAAE,mBAAmB,CAAU;IAEzC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nederlandse Digitale Dienst Text Component (Lit + TypeScript)
|
|
3
|
+
*
|
|
4
|
+
* One run of body text at a size from the type scale. It is what you reach for
|
|
5
|
+
* where an app would otherwise write a bare `<p>` and inherit whatever the page
|
|
6
|
+
* happens to set: a line under a title, a sentence in a panel, a caption.
|
|
7
|
+
*
|
|
8
|
+
* Every combination it offers exists as a token, so it cannot invent typography
|
|
9
|
+
* — it only names what the scale already has. The three axes are the same three
|
|
10
|
+
* the tokens carry: size, weight and line height.
|
|
11
|
+
*
|
|
12
|
+
* Not for headings, which is `nldd-title`, and not for a block of prose with its
|
|
13
|
+
* own rhythm, spacing and media widths, which is `nldd-rich-text`. This is one
|
|
14
|
+
* run of text and nothing around it.
|
|
15
|
+
*
|
|
16
|
+
* Color follows the context channel a list item, menu or table sets on its
|
|
17
|
+
* content, so text inside a row travels with that row as it is hovered or
|
|
18
|
+
* selected. Standalone that channel is unset and the semantic color answers.
|
|
19
|
+
*
|
|
20
|
+
* @element nldd-text
|
|
21
|
+
* @attr {string} size - Text size on the body scale: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' (default: 'md')
|
|
22
|
+
* @attr {string} weight - Font weight: 'regular' | 'medium' | 'bold' (default: 'regular'). With 'bold' a slotted `<strong>` no longer stands out: there is nothing bolder in the scale.
|
|
23
|
+
* @attr {string} line-height - Line height: 'flat' | 'tight' | 'snug' | 'loose' (default: 'snug')
|
|
24
|
+
* @attr {string} color - Text color: 'default' | 'secondary' | 'accent' | 'success' | 'warning' | 'critical' | 'inherit' (default: 'default'). 'default' and 'secondary' follow the surrounding content channel; 'inherit' takes the color it inherits, for text on a painted surface.
|
|
25
|
+
* @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
|
|
26
|
+
*
|
|
27
|
+
* @slot - The text. Inline elements work as they are: `<strong>` and `<b>` take the bold weight from the scale, `<a>`, `<em>` and components such as `nldd-tag` are left alone.
|
|
28
|
+
*/
|
|
29
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
30
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
31
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
32
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
33
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
34
|
+
};
|
|
35
|
+
import { LitElement } from 'lit';
|
|
36
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
37
|
+
import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
|
|
38
|
+
import { textStyles } from './text.styles.js';
|
|
39
|
+
import { template } from './text.template.js';
|
|
40
|
+
let NLDDText = class NLDDText extends LitElement {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
|
+
this.size = 'md';
|
|
44
|
+
this.weight = 'regular';
|
|
45
|
+
this.lineHeight = 'snug';
|
|
46
|
+
this.color = 'default';
|
|
47
|
+
this.horizontalAlignment = 'left';
|
|
48
|
+
}
|
|
49
|
+
render() {
|
|
50
|
+
return template();
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
NLDDText.styles = textStyles;
|
|
54
|
+
__decorate([
|
|
55
|
+
property({ reflect: true, converter: reflectNonDefault('md') })
|
|
56
|
+
], NLDDText.prototype, "size", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
property({ reflect: true, converter: reflectNonDefault('regular') })
|
|
59
|
+
], NLDDText.prototype, "weight", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
property({
|
|
62
|
+
reflect: true,
|
|
63
|
+
attribute: 'line-height',
|
|
64
|
+
converter: reflectNonDefault('snug'),
|
|
65
|
+
})
|
|
66
|
+
], NLDDText.prototype, "lineHeight", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
property({ reflect: true, converter: reflectNonDefault('default') })
|
|
69
|
+
], NLDDText.prototype, "color", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
property({
|
|
72
|
+
reflect: true,
|
|
73
|
+
attribute: 'horizontal-alignment',
|
|
74
|
+
converter: reflectNonDefault('left'),
|
|
75
|
+
})
|
|
76
|
+
], NLDDText.prototype, "horizontalAlignment", void 0);
|
|
77
|
+
NLDDText = __decorate([
|
|
78
|
+
customElement('nldd-text')
|
|
79
|
+
], NLDDText);
|
|
80
|
+
export { NLDDText };
|
|
81
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../src/components/content/text/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AASvC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IAAjC;;QAIN,SAAI,GAAS,IAAI,CAAC;QAGlB,WAAM,GAAW,SAAS,CAAC;QAO3B,eAAU,GAAe,MAAM,CAAC;QAGhC,UAAK,GAAU,SAAS,CAAC;QAOzB,wBAAmB,GAAwB,MAAM,CAAC;IAKnD,CAAC;IAHS,MAAM;QACd,OAAO,QAAQ,EAAE,CAAC;IACnB,CAAC;;AA3Be,eAAM,GAAG,UAAU,AAAb,CAAc;AAGpC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAO,IAAI,CAAC,EAAE,CAAC;sCACpD;AAGlB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAS,SAAS,CAAC,EAAE,CAAC;wCAClD;AAO3B;IALC,QAAQ,CAAC;QACT,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,aAAa;QACxB,SAAS,EAAE,iBAAiB,CAAa,MAAM,CAAC;KAChD,CAAC;4CAC8B;AAGhC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,iBAAiB,CAAQ,SAAS,CAAC,EAAE,CAAC;uCACnD;AAOzB;IALC,QAAQ,CAAC;QACT,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,sBAAsB;QACjC,SAAS,EAAE,iBAAiB,CAAsB,MAAM,CAAC;KACzD,CAAC;qDACgD;AAxBtC,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CA6BpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,yBAiHtB,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const textStyles = css `
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
/* # Host */
|
|
6
|
+
|
|
7
|
+
:host {
|
|
8
|
+
--_font-size: var(--primitives-font-size-100);
|
|
9
|
+
--_font-weight: var(--primitives-font-weight-body-regular);
|
|
10
|
+
--_line-height: var(--primitives-line-height-snug);
|
|
11
|
+
--_color: var(--context-content-color, var(--semantics-content-color));
|
|
12
|
+
--_text-align: left;
|
|
13
|
+
|
|
14
|
+
display: block;
|
|
15
|
+
color: var(--_color);
|
|
16
|
+
text-align: var(--_text-align);
|
|
17
|
+
font: var(--_font-weight) var(--_font-size) / var(--_line-height) var(--primitives-font-family-body);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([hidden]) {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
/* # Size */
|
|
26
|
+
|
|
27
|
+
:host([size="xxs"]) {
|
|
28
|
+
--_font-size: var(--primitives-font-size-70);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([size="xs"]) {
|
|
32
|
+
--_font-size: var(--primitives-font-size-80);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([size="sm"]) {
|
|
36
|
+
--_font-size: var(--primitives-font-size-90);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host([size="lg"]) {
|
|
40
|
+
--_font-size: var(--primitives-font-size-200);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/* # Weight */
|
|
45
|
+
|
|
46
|
+
:host([weight="medium"]) {
|
|
47
|
+
--_font-weight: var(--primitives-font-weight-body-medium);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:host([weight="bold"]) {
|
|
51
|
+
--_font-weight: var(--primitives-font-weight-body-bold);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Not the browser's "bolder", which is relative: from medium it lands on 700
|
|
55
|
+
and from bold it asks for a weight this font does not have, so the browser
|
|
56
|
+
thickens the glyphs itself. */
|
|
57
|
+
::slotted(strong),
|
|
58
|
+
::slotted(b) {
|
|
59
|
+
color: inherit;
|
|
60
|
+
font-weight: var(--primitives-font-weight-body-bold);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/* # Line height */
|
|
65
|
+
|
|
66
|
+
:host([line-height="flat"]) {
|
|
67
|
+
--_line-height: var(--primitives-line-height-flat);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([line-height="tight"]) {
|
|
71
|
+
--_line-height: var(--primitives-line-height-tight);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:host([line-height="loose"]) {
|
|
75
|
+
--_line-height: var(--primitives-line-height-loose);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/* # Color */
|
|
80
|
+
|
|
81
|
+
:host([color="secondary"]) {
|
|
82
|
+
--_color: var(--context-content-secondary-color, var(--semantics-content-secondary-color));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:host([color="accent"]) {
|
|
86
|
+
--_color: var(--semantics-content-accent-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host([color="success"]) {
|
|
90
|
+
--_color: var(--semantics-content-success-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host([color="warning"]) {
|
|
94
|
+
--_color: var(--semantics-content-warning-color);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host([color="critical"]) {
|
|
98
|
+
--_color: var(--semantics-content-critical-color);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([color="inherit"]) {
|
|
102
|
+
--_color: inherit;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
/* # Alignment */
|
|
107
|
+
|
|
108
|
+
:host([horizontal-alignment="center"]) {
|
|
109
|
+
--_text-align: center;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
:host([horizontal-alignment="right"]) {
|
|
113
|
+
--_text-align: right;
|
|
114
|
+
}
|
|
115
|
+
`;
|
|
116
|
+
//# sourceMappingURL=text.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.styles.js","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiH5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.template.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAE3C,wBAAgB,QAAQ,IAAI,cAAc,CAIzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.template.js","sourceRoot":"","sources":["../../../../src/components/content/text/text.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAkB,MAAM,KAAK,CAAC;AAE3C,MAAM,UAAU,QAAQ;IACvB,OAAO,IAAI,CAAA;;EAEV,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yBAuPvB,CAAC"}
|
|
@@ -208,13 +208,8 @@ export const titleStyles = css `
|
|
|
208
208
|
overflow-wrap: anywhere !important;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
/*
|
|
212
|
-
|
|
213
|
-
*
|
|
214
|
-
* The measure is in ch, so one value covers every size: ch scales with the
|
|
215
|
-
* font, and 40 characters stays 40 characters whether the title is 18px or
|
|
216
|
-
* 52px. It only bites in a wide container — inside a card or a column the
|
|
217
|
-
* box is already narrower than the cap. */
|
|
211
|
+
/* The measure is in ch, so one value covers every size: ch scales with the
|
|
212
|
+
font, and 40 characters stays 40 characters at 18px and at 52px. */
|
|
218
213
|
::slotted(:not([slot])) {
|
|
219
214
|
${slottedReset}
|
|
220
215
|
${inheritedTextReset}
|
|
@@ -231,15 +226,16 @@ export const titleStyles = css `
|
|
|
231
226
|
${inheritedTextReset}
|
|
232
227
|
margin: 0 !important;
|
|
233
228
|
color: var(--semantics-content-secondary-color) !important;
|
|
234
|
-
font: var(--primitives-font-body-
|
|
229
|
+
font: var(--primitives-font-body-md-regular-tight) !important;
|
|
235
230
|
overflow-wrap: anywhere !important;
|
|
236
231
|
}
|
|
237
232
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
233
|
+
:host([size="5"]) ::slotted([slot="subtitle"]),
|
|
234
|
+
:host([size="6"]) ::slotted([slot="subtitle"]) {
|
|
235
|
+
font: var(--primitives-font-body-sm-regular-tight) !important;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* !important matches the hardened slotted rules above. */
|
|
243
239
|
|
|
244
240
|
:host([color="inherit"]) ::slotted(:not([slot])) {
|
|
245
241
|
color: inherit !important;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.styles.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE3F,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC3C,MAAM,KAAK,GAAG,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3C,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,CAAA;;;;;;;;;uBASP,KAAK;;;;uBAIL,KAAK,qBAAqB,KAAK;;;;uBAI/B,KAAK;;;;4CAIgB,KAA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