@aortl/admin-react 0.19.1 → 0.20.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/CHANGELOG.md +8 -1
- package/dist/Timeline.d.ts +3 -1
- package/dist/Timeline.d.ts.map +1 -1
- package/dist/admin.scoped.css +37 -0
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.20.0] - 2026-07-06
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `Timeline` horizontal variant — `.timeline-horizontal` (React `horizontal` prop) lays items out as equal-width columns with the connector running along the indicator row. Composes with the numbered variant for a step tracker. (both)
|
|
12
|
+
|
|
7
13
|
## [0.19.1] - 2026-07-02
|
|
8
14
|
|
|
9
15
|
### Changed
|
|
@@ -127,12 +133,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
127
133
|
- Make `primary` a high-contrast neutral and move blue to `info`. (both)
|
|
128
134
|
- Use solid color fills for `Alert` and `Badge` status variants. (both)
|
|
129
135
|
|
|
130
|
-
[Unreleased]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.
|
|
136
|
+
[Unreleased]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.20.0...HEAD
|
|
131
137
|
[0.16.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.16.0...v0.16.1
|
|
132
138
|
[0.16.0]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.15.1...v0.16.0
|
|
133
139
|
[0.15.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.15.0...v0.15.1
|
|
134
140
|
[0.15.0]: https://github.com/Digital-Udvikling/admin-design-system/releases/tag/v0.15.0
|
|
135
141
|
|
|
142
|
+
[0.20.0]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.19.1...v0.20.0
|
|
136
143
|
[0.19.1]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.19.0...v0.19.1
|
|
137
144
|
[0.19.0]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.5...v0.19.0
|
|
138
145
|
[0.18.5]: https://github.com/Digital-Udvikling/admin-design-system/compare/v0.18.4...v0.18.5
|
package/dist/Timeline.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ export type TimelineStatus = "default" | "info" | "success" | "warning" | "dange
|
|
|
5
5
|
export interface TimelineProps extends ComponentProps<"ol"> {
|
|
6
6
|
/** Turn the rail into a numbered step list. */
|
|
7
7
|
numbered?: boolean;
|
|
8
|
+
/** Lay items out as side-by-side columns instead of a vertical rail. */
|
|
9
|
+
horizontal?: boolean;
|
|
8
10
|
}
|
|
9
|
-
declare function TimelineRoot({ numbered, className, ...rest }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function TimelineRoot({ numbered, horizontal, className, ...rest }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export interface TimelineItemProps extends Omit<ComponentProps<"li">, "title"> {
|
|
11
13
|
/** Accent for the indicator. `current` highlights a numbered marker. */
|
|
12
14
|
status?: TimelineStatus;
|
package/dist/Timeline.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../src/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAM,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,SAAS,G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GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,aAAa,CAC9E,CAAC;CACH;AACD,iBAAS,YAAY,CAAC,EACpB,MAAkB,EAClB,IAAI,EACJ,MAAM,EACN,KAAK,EACL,IAAI,EACJ,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,iBAAiB,2CAgCnB;AAED,eAAO,MAAM,QAAQ;;CAAsD,CAAC"}
|
package/dist/admin.scoped.css
CHANGED
|
@@ -3579,6 +3579,43 @@
|
|
|
3579
3579
|
background-color: var(--color-primary);
|
|
3580
3580
|
color: var(--color-primary-content);
|
|
3581
3581
|
}
|
|
3582
|
+
:scope._ao-timeline-horizontal, :scope ._ao-timeline-horizontal {
|
|
3583
|
+
display: flex;
|
|
3584
|
+
flex-direction: row;
|
|
3585
|
+
}
|
|
3586
|
+
:scope._ao-timeline-horizontal ._ao-timeline-item, :scope ._ao-timeline-horizontal ._ao-timeline-item {
|
|
3587
|
+
grid-template-columns: none;
|
|
3588
|
+
grid-template-rows: 1.5rem auto;
|
|
3589
|
+
row-gap: 0.5rem;
|
|
3590
|
+
flex: 1 1 0;
|
|
3591
|
+
min-width: 0;
|
|
3592
|
+
padding-bottom: 0;
|
|
3593
|
+
padding-inline: 0.5rem;
|
|
3594
|
+
text-align: center;
|
|
3595
|
+
}
|
|
3596
|
+
:scope._ao-timeline-horizontal ._ao-timeline-item:not(:last-child)::before, :scope ._ao-timeline-horizontal ._ao-timeline-item:not(:last-child)::before {
|
|
3597
|
+
inset: 0.75rem -50% auto 50%;
|
|
3598
|
+
width: auto;
|
|
3599
|
+
height: 2px;
|
|
3600
|
+
transform: translateY(-50%);
|
|
3601
|
+
}
|
|
3602
|
+
:scope._ao-timeline-horizontal ._ao-timeline-indicator, :scope ._ao-timeline-horizontal ._ao-timeline-indicator {
|
|
3603
|
+
grid-row: 1;
|
|
3604
|
+
grid-column: auto;
|
|
3605
|
+
justify-self: center;
|
|
3606
|
+
}
|
|
3607
|
+
:scope._ao-timeline-horizontal ._ao-timeline-content, :scope ._ao-timeline-horizontal ._ao-timeline-content {
|
|
3608
|
+
grid-row: 2;
|
|
3609
|
+
grid-column: auto;
|
|
3610
|
+
align-items: center;
|
|
3611
|
+
padding-block: 0;
|
|
3612
|
+
}
|
|
3613
|
+
:scope._ao-timeline-horizontal._ao-timeline-numbered ._ao-timeline-item, :scope ._ao-timeline-horizontal._ao-timeline-numbered ._ao-timeline-item {
|
|
3614
|
+
grid-template-rows: 1.75rem auto;
|
|
3615
|
+
}
|
|
3616
|
+
:scope._ao-timeline-horizontal._ao-timeline-numbered ._ao-timeline-item:not(:last-child)::before, :scope ._ao-timeline-horizontal._ao-timeline-numbered ._ao-timeline-item:not(:last-child)::before {
|
|
3617
|
+
inset-block-start: 0.875rem;
|
|
3618
|
+
}
|
|
3582
3619
|
:scope._ao-dialog, :scope ._ao-dialog {
|
|
3583
3620
|
margin: auto;
|
|
3584
3621
|
flex-direction: column;
|
package/dist/index.cjs
CHANGED
|
@@ -1523,9 +1523,13 @@ function StatCard({ variant = "default", label, value, detail, trend, icon, comp
|
|
|
1523
1523
|
}
|
|
1524
1524
|
//#endregion
|
|
1525
1525
|
//#region src/Timeline.tsx
|
|
1526
|
-
function TimelineRoot({ numbered, className, ...rest }) {
|
|
1526
|
+
function TimelineRoot({ numbered, horizontal, className, ...rest }) {
|
|
1527
1527
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ol", {
|
|
1528
|
-
className: cn([
|
|
1528
|
+
className: cn([
|
|
1529
|
+
"timeline",
|
|
1530
|
+
numbered && "timeline-numbered",
|
|
1531
|
+
horizontal && "timeline-horizontal"
|
|
1532
|
+
], className),
|
|
1529
1533
|
...rest
|
|
1530
1534
|
});
|
|
1531
1535
|
}
|