@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
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
export const listItemActionStyles = css `
|
|
3
|
-
:host {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
:host {
|
|
8
|
-
--_background-color: transparent;
|
|
9
|
-
--_min-size: var(--context-list-item-size, var(--semantics-controls-md-min-size));
|
|
10
|
-
--_expanded-rotation: 90deg;
|
|
11
|
-
--_fill-z-index: -1;
|
|
12
|
-
|
|
13
|
-
display: flex;
|
|
14
|
-
position: relative;
|
|
15
|
-
align-items: stretch;
|
|
16
|
-
/* The row's areas center their children; this must span instead, so its hit
|
|
17
|
-
area and fill reach the row's top and bottom edges. */
|
|
18
|
-
align-self: stretch;
|
|
19
|
-
flex-grow: 0;
|
|
20
|
-
flex-shrink: 1;
|
|
21
|
-
/* Square floor from the row's control size, so an icon-only action is still
|
|
22
|
-
a touch target. On the host, not the control: the host is the flex item,
|
|
23
|
-
so a floor on the control would be measured against a host that had
|
|
24
|
-
already shrunk to zero. */
|
|
25
|
-
min-width: var(--_min-size);
|
|
26
|
-
min-height: var(--_min-size);
|
|
27
|
-
-webkit-tap-highlight-color: transparent;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
:host([hidden]) {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* A growing action needs no floor and needs min-width: 0, so its text can
|
|
35
|
-
truncate instead of pushing its siblings out. */
|
|
36
|
-
:host([width="full"]) {
|
|
37
|
-
flex-grow: 1;
|
|
38
|
-
min-width: 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([width="full"]) .list-item-action {
|
|
42
|
-
justify-content: flex-start;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* The cell rotates, not the icon — ::slotted reaches a direct child only, and
|
|
46
|
-
rotating the cell turns the glyph in place. */
|
|
47
|
-
:host([disclosure]) ::slotted(nldd-icon-cell) {
|
|
48
|
-
rotate: 0deg;
|
|
49
|
-
transition: rotate var(--primitives-transition-duration-fast) var(--primitives-transition-easing-default);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([disclosure].is-expanded) ::slotted(nldd-icon-cell) {
|
|
53
|
-
rotate: var(--_expanded-rotation);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@media (prefers-reduced-motion: reduce) {
|
|
57
|
-
:host([disclosure]) ::slotted(nldd-icon-cell) {
|
|
58
|
-
transition: none;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* The control is the whole action: hit area, fill and focus ring. Its inline
|
|
63
|
-
padding is fixed at the indicator inset, the way a button owns its padding,
|
|
64
|
-
so the fill always sits the same distance from the content. Do not add
|
|
65
|
-
spacer cells for room or hit area — that doubles the space. */
|
|
66
|
-
.list-item-action {
|
|
67
|
-
box-sizing: border-box;
|
|
68
|
-
display: flex;
|
|
69
|
-
position: relative;
|
|
70
|
-
margin: 0;
|
|
71
|
-
outline: none;
|
|
72
|
-
border: none;
|
|
73
|
-
background: none;
|
|
74
|
-
width: 100%;
|
|
75
|
-
min-width: 0;
|
|
76
|
-
padding: 0;
|
|
77
|
-
padding-inline: var(--components-list-item-indicator-inline-inset);
|
|
78
|
-
flex-direction: row;
|
|
79
|
-
align-items: center;
|
|
80
|
-
/* Content narrower than the floor is centered in the leftover space, which
|
|
81
|
-
is the floor's doing and not the author's. A growing action keeps its
|
|
82
|
-
content leading: that is text, and text reads from the start. */
|
|
83
|
-
justify-content: center;
|
|
84
|
-
color: inherit;
|
|
85
|
-
text-align: start;
|
|
86
|
-
text-decoration: none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
a.list-item-action {
|
|
90
|
-
cursor: var(--semantics-controls-link-cursor);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
button.list-item-action:disabled {
|
|
94
|
-
cursor: not-allowed;
|
|
95
|
-
opacity: var(--primitives-opacity-disabled);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.list-item-action::before {
|
|
99
|
-
content: '';
|
|
100
|
-
display: block;
|
|
101
|
-
position: absolute;
|
|
102
|
-
z-index: var(--_fill-z-index);
|
|
103
|
-
inset-block: 0;
|
|
104
|
-
inset-inline: 0;
|
|
105
|
-
border-radius: var(--components-list-item-indicator-corner-radius);
|
|
106
|
-
background-color: var(--_background-color);
|
|
107
|
-
pointer-events: none;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
@media (hover: hover) {
|
|
111
|
-
a.list-item-action:hover,
|
|
112
|
-
button.list-item-action:not(:disabled):hover {
|
|
113
|
-
--_background-color: var(--components-list-item-is-hovered-background-color);
|
|
114
|
-
--context-content-color: var(--components-list-item-is-hovered-content-color);
|
|
115
|
-
--context-content-secondary-color: var(--components-list-item-is-hovered-content-color);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* Press feedback — works on touch where :hover doesn't. JS-driven so a touch
|
|
120
|
-
that turns into a scroll clears it (pointercancel) instead of flashing. */
|
|
121
|
-
.list-item-action.is-pressed {
|
|
122
|
-
--_background-color: var(--components-list-item-is-hovered-background-color);
|
|
123
|
-
--context-content-color: var(--components-list-item-is-hovered-content-color);
|
|
124
|
-
--context-content-secondary-color: var(--components-list-item-is-hovered-content-color);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
:host([checked]) .list-item-action {
|
|
128
|
-
--_background-color: var(--components-list-item-is-selected-background-color);
|
|
129
|
-
--context-content-color: var(--components-list-item-is-selected-content-color);
|
|
130
|
-
--context-content-secondary-color: var(--components-list-item-is-selected-content-color);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.list-item-action:focus-visible:not(.is-pointer-focus)::after {
|
|
134
|
-
content: '';
|
|
135
|
-
display: block;
|
|
136
|
-
position: absolute;
|
|
137
|
-
inset: 0;
|
|
138
|
-
border-radius: var(--components-list-item-indicator-corner-radius);
|
|
139
|
-
outline: var(--semantics-focus-ring-outline);
|
|
140
|
-
outline-offset: var(--semantics-focus-ring-outline-offset);
|
|
141
|
-
box-shadow: var(--semantics-focus-ring-box-shadow);
|
|
142
|
-
pointer-events: none;
|
|
143
|
-
}
|
|
144
|
-
`;
|
|
145
|
-
//# sourceMappingURL=list-item-action.styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-action.styles.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-action/list-item-action.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8ItC,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export type ListItemActionControl = 'link' | 'button' | 'checkbox' | 'plain';
|
|
2
|
-
export declare function template(control: ListItemActionControl, href: string | undefined, target: string | undefined, rel: string | undefined, checked: boolean, expanded: boolean | undefined, current: boolean, disabled: boolean, accessibleLabel: string, actionTabindex?: string): import("lit-html").TemplateResult<1>;
|
|
3
|
-
//# sourceMappingURL=list-item-action.template.d.ts.map
|
package/dist/components/lists-and-tables/list-item-action/list-item-action.template.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-action.template.d.ts","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-action/list-item-action.template.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAE7E,wBAAgB,QAAQ,CACvB,OAAO,EAAE,qBAAqB,EAC9B,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,GAAG,EAAE,MAAM,GAAG,SAAS,EACvB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,GAAG,SAAS,EAC7B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,OAAO,EACjB,eAAe,EAAE,MAAM,EACvB,cAAc,CAAC,EAAE,MAAM,wCAoCvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-action.template.js","sourceRoot":"","sources":["../../../../src/components/lists-and-tables/list-item-action/list-item-action.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAIpC,MAAM,UAAU,QAAQ,CACvB,OAA8B,EAC9B,IAAwB,EACxB,MAA0B,EAC1B,GAAuB,EACvB,OAAgB,EAChB,QAA6B,EAC7B,OAAgB,EAChB,QAAiB,EACjB,eAAuB,EACvB,cAAuB;IAEvB,MAAM,OAAO,GAAG,IAAI,CAAA,eAAe,CAAC;IACpC,MAAM,YAAY,GAAG,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzE,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;IAC/C,MAAM,KAAK,GAAG,eAAe,IAAI,OAAO,CAAC;IAEzC,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;QACxB,OAAO,IAAI,CAAA;UACH,IAAI,IAAI,OAAO;YACb,MAAM,IAAI,OAAO;SACpB,GAAG,IAAI,OAAO;mBACJ,YAAY;kBACb,WAAW;gBACb,KAAK;cACP,cAAc,IAAI,OAAO;KAClC,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,IAAI,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;QACpD,OAAO,IAAI,CAAA;;UAEH,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO;kBACrC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO;mBACjD,YAAY;kBACb,WAAW;gBACb,KAAK;eACN,QAAQ;cACT,cAAc,IAAI,OAAO;KAClC,OAAO,WAAW,CAAC;IACvB,CAAC;IAED,4EAA4E;IAC5E,2EAA2E;IAC3E,2CAA2C;IAC3C,OAAO,IAAI,CAAA,iCAAiC,OAAO,QAAQ,CAAC;AAC7D,CAAC"}
|