tandd-ui 0.2.6 → 0.2.7
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/CHANGELOG.md +11 -1
- package/dist/components/list/DTListGroup.vue.d.ts +35 -0
- package/dist/index.d.ts +1 -0
- package/dist/tandd-ui.css +77 -0
- package/dist/tandd-ui.js +4710 -4600
- package/package.json +4 -2
- package/src/components/list/DTList.scss +79 -0
- package/src/components/navigation-drawer/DTNavigationDrawer.scss +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.2.
|
|
3
|
+
## 0.2.7 (2026-11-29)
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- **DTListGroup:** a collapsible group in a `DTList`, for submenus in a navigation drawer. The header is a button that opens and closes a nested list of `DTListItem` rows; groups nest. A group holding the current page opens on load and colours its header. Props: `title`, `subtitle`, `prepend-icon`, `v-model:open`, `disabled`; slots `default`, `prepend`, `title`. Closed rows are hidden and skipped by Tab and screen readers. Its chevron turns like DTAccordion's.
|
|
8
|
+
- **DTNavigationDrawer submenus:** a `DTListGroup` header spans the row; in the collapsed rail only its icon shows, filled while it holds the current page. The hover and current-row fills follow the rows while a group opens or closes, and move to a closed group's header when the current page is inside it.
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **tandd-icon 1.1.0** (was 0.2.0). No icon was removed or redrawn; the new version adds hold and loop play modes.
|
|
13
|
+
|
|
4
14
|
|
|
5
15
|
Also the first npm release of the 0.2.5 changes below (0.2.5 was tagged but not published).
|
|
6
16
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
subtitle?: string;
|
|
4
|
+
prependIcon?: string;
|
|
5
|
+
/** Open state, for `v-model:open`. Unset: the group opens on mount when it holds an active row. */
|
|
6
|
+
open?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_Slots = {
|
|
10
|
+
/** The group's rows: DTListItem, or nested DTListGroup. */
|
|
11
|
+
default?: () => unknown;
|
|
12
|
+
/** Replaces the header's icon. */
|
|
13
|
+
prepend?: () => unknown;
|
|
14
|
+
/** Replaces the header's title and subtitle. */
|
|
15
|
+
title?: () => unknown;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
"update:open": (value: boolean) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
20
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
title: string;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
prependIcon: string;
|
|
25
|
+
open: boolean;
|
|
26
|
+
subtitle: string;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export { default as DTChipGroup } from './components/chip/DTChipGroup.vue';
|
|
|
96
96
|
export { default as DTList } from './components/list/DTList.vue';
|
|
97
97
|
export { default as DTListItem } from './components/list/DTListItem.vue';
|
|
98
98
|
export { default as DTListSubheader } from './components/list/DTListSubheader.vue';
|
|
99
|
+
export { default as DTListGroup } from './components/list/DTListGroup.vue';
|
|
99
100
|
export type { DTListDensity, DTListLines, DTListSelectable } from './components/list/listContext';
|
|
100
101
|
export { default as DTFileInput } from './components/file-input/DTFileInput.vue';
|
|
101
102
|
export type { DTFileRejection } from './components/file-input/DTFileInput.vue';
|
package/dist/tandd-ui.css
CHANGED
|
@@ -6381,6 +6381,70 @@ select):focus {
|
|
|
6381
6381
|
font-weight: var(--dt-font-weight-semibold);
|
|
6382
6382
|
}
|
|
6383
6383
|
|
|
6384
|
+
.dt-list-group {
|
|
6385
|
+
--dt-list-group-indent: calc(var(--dt-list-pad-x) + 16px + var(--dt-list-gap) - var(--dt-list-pad-x));
|
|
6386
|
+
}
|
|
6387
|
+
|
|
6388
|
+
.dt-list-group__header {
|
|
6389
|
+
width: 100%;
|
|
6390
|
+
cursor: pointer;
|
|
6391
|
+
}
|
|
6392
|
+
|
|
6393
|
+
.dt-list-group__chevron .dt-icon {
|
|
6394
|
+
transition: transform var(--dt-duration-slow) var(--dt-ease-standard);
|
|
6395
|
+
transform: perspective(100px) rotateX(0deg);
|
|
6396
|
+
}
|
|
6397
|
+
|
|
6398
|
+
.dt-list-group__header[aria-expanded=true] .dt-list-group__chevron .dt-icon {
|
|
6399
|
+
transform: perspective(100px) rotateX(180deg);
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
.dt-list-group__header.is-active-parent {
|
|
6403
|
+
color: var(--dt-color-primary);
|
|
6404
|
+
}
|
|
6405
|
+
|
|
6406
|
+
.dt-list-group__header.is-active-parent .dt-list-item__prepend {
|
|
6407
|
+
color: inherit;
|
|
6408
|
+
}
|
|
6409
|
+
|
|
6410
|
+
.dt-list-group__panel {
|
|
6411
|
+
display: grid;
|
|
6412
|
+
grid-template-rows: 0fr;
|
|
6413
|
+
visibility: hidden;
|
|
6414
|
+
transition: grid-template-rows var(--dt-duration-base) var(--dt-ease-emphasized), visibility 0s linear var(--dt-duration-base);
|
|
6415
|
+
}
|
|
6416
|
+
|
|
6417
|
+
.dt-list-group.is-open > .dt-list-group__panel {
|
|
6418
|
+
grid-template-rows: 1fr;
|
|
6419
|
+
visibility: visible;
|
|
6420
|
+
transition: grid-template-rows var(--dt-duration-base) var(--dt-ease-emphasized), visibility 0s;
|
|
6421
|
+
}
|
|
6422
|
+
|
|
6423
|
+
.dt-list-group__items {
|
|
6424
|
+
display: flex;
|
|
6425
|
+
flex-direction: column;
|
|
6426
|
+
min-height: 0;
|
|
6427
|
+
margin: 0;
|
|
6428
|
+
padding: 0;
|
|
6429
|
+
padding-inline-start: var(--dt-list-group-indent);
|
|
6430
|
+
overflow: hidden;
|
|
6431
|
+
list-style: none;
|
|
6432
|
+
}
|
|
6433
|
+
|
|
6434
|
+
.dt-list--nav .dt-list-group__items {
|
|
6435
|
+
gap: 2px;
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
.dt-list--nav .dt-list-group.is-open > .dt-list-group__panel > .dt-list-group__items {
|
|
6439
|
+
padding-block-start: 2px;
|
|
6440
|
+
}
|
|
6441
|
+
|
|
6442
|
+
@media (prefers-reduced-motion: reduce) {
|
|
6443
|
+
.dt-list-group__panel,
|
|
6444
|
+
.dt-list-group__chevron .dt-icon {
|
|
6445
|
+
transition: none;
|
|
6446
|
+
}
|
|
6447
|
+
}
|
|
6384
6448
|
.dt-list--selectable {
|
|
6385
6449
|
outline: none;
|
|
6386
6450
|
}
|
|
@@ -8687,6 +8751,10 @@ button.dt-stepper__header[aria-disabled=true] {
|
|
|
8687
8751
|
padding-inline-start: 12px;
|
|
8688
8752
|
}
|
|
8689
8753
|
|
|
8754
|
+
.dt-navigation-drawer__inner .dt-list--nav .dt-list-group__header {
|
|
8755
|
+
width: calc(100% - 2 * var(--dt-drawer-row-inset));
|
|
8756
|
+
}
|
|
8757
|
+
|
|
8690
8758
|
.dt-navigation-drawer__prepend > :not(.dt-list-nav),
|
|
8691
8759
|
.dt-navigation-drawer__append > :not(.dt-list-nav) {
|
|
8692
8760
|
align-self: flex-start;
|
|
@@ -8746,6 +8814,15 @@ button.dt-stepper__header[aria-disabled=true] {
|
|
|
8746
8814
|
white-space: nowrap;
|
|
8747
8815
|
}
|
|
8748
8816
|
|
|
8817
|
+
.dt-navigation-drawer.is-rail:not(.is-expanded) .dt-list-group__panel,
|
|
8818
|
+
.dt-navigation-drawer.is-rail:not(.is-expanded) .dt-list-group__chevron {
|
|
8819
|
+
display: none;
|
|
8820
|
+
}
|
|
8821
|
+
|
|
8822
|
+
.dt-navigation-drawer.is-rail:not(.is-expanded) .dt-list-group__header.is-active-parent {
|
|
8823
|
+
background: var(--dt-color-primary-subtle);
|
|
8824
|
+
}
|
|
8825
|
+
|
|
8749
8826
|
.dt-navigation-drawer.is-rail:not(.is-expanded) .dt-list-subheader {
|
|
8750
8827
|
visibility: hidden;
|
|
8751
8828
|
height: 0;
|