@tensor_1/react 2.62.0 → 2.64.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/README.md +30 -1
- package/component-inventory.json +16 -0
- package/dist/{SchedulingCalendar-WWyFL3Eo.d.ts → SchedulingCalendar-CHOIb5cT.d.ts} +10 -2
- package/dist/components/Card.d.ts +1 -1
- package/dist/components/Card.js +2 -2
- package/dist/components/DataWorkspace.d.ts +8 -0
- package/dist/components/DataWorkspace.js +13 -4
- package/dist/components/DateTime.d.ts +33 -0
- package/dist/components/DateTime.js +53 -0
- package/dist/components/EditorialHome.d.ts +24 -7
- package/dist/components/EditorialHome.js +13 -9
- package/dist/components/Field.d.ts +18 -3
- package/dist/components/Field.js +6 -6
- package/dist/components/InfoTip.d.ts +9 -3
- package/dist/components/InfoTip.js +6 -2
- package/dist/components/Markdown.d.ts +12 -2
- package/dist/components/Markdown.js +3 -2
- package/dist/components/NumberInput.d.ts +28 -0
- package/dist/components/NumberInput.js +27 -0
- package/dist/components/OverflowRow.d.ts +34 -0
- package/dist/components/OverflowRow.js +77 -0
- package/dist/components/PageHeader.d.ts +1 -1
- package/dist/components/PageHeader.js +2 -2
- package/dist/components/RelativeTime.d.ts +5 -2
- package/dist/components/RelativeTime.js +4 -2
- package/dist/components/SchedulingAgenda.d.ts +1 -1
- package/dist/components/SchedulingCalendar.d.ts +1 -1
- package/dist/components/SchedulingCalendar.js +2 -0
- package/dist/components/SchedulingTimeGrid.d.ts +1 -1
- package/dist/components/SchedulingTimeGrid.js +164 -105
- package/dist/components/SchedulingTimeline.d.ts +1 -1
- package/dist/components/Timeline.d.ts +14 -2
- package/dist/components/Timeline.js +6 -1
- package/dist/index.cjs +3635 -3395
- package/dist/index.d.cts +180 -20
- package/dist/index.d.ts +4 -1
- package/dist/index.js +8 -0
- package/dist/info-tip-model.d.ts +12 -1
- package/dist/info-tip-model.js +10 -2
- package/dist/labels-context.d.ts +11 -1
- package/dist/markdown.cjs +3 -2
- package/dist/markdown.d.cts +12 -2
- package/dist/rich-text.cjs +3 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import * as react from 'react';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { MoveProposal } from '../scheduling-calendar-model.js';
|
|
4
4
|
import { TimelineRange, TimelineScale } from '../scheduling-timeline-model.js';
|
|
5
|
-
import { j as SchedulingEntryState, p as SchedulingStatus, a as SchedulingBand, l as SchedulingMarker, o as SchedulingOverlayPattern } from '../SchedulingCalendar-
|
|
5
|
+
import { j as SchedulingEntryState, p as SchedulingStatus, a as SchedulingBand, l as SchedulingMarker, o as SchedulingOverlayPattern } from '../SchedulingCalendar-CHOIb5cT.js';
|
|
6
6
|
import '../calendar-model.js';
|
|
7
7
|
import './SchedulingResourceDay.js';
|
|
8
8
|
import '../scheduling-resource-model.js';
|
|
@@ -6,7 +6,8 @@ interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
|
|
|
6
6
|
}
|
|
7
7
|
/** Activity timeline container over `.uix-timeline`. Ordered list so AT reads entry count + sequence (UIX-A11Y-4). */
|
|
8
8
|
declare function Timeline({ children, className, ...props }: TimelineProps): react.JSX.Element;
|
|
9
|
-
|
|
9
|
+
/** `title` is the entry's event line (HAR-3086), not the native tooltip attribute. */
|
|
10
|
+
interface TimelineItemProps extends Omit<HTMLAttributes<HTMLLIElement>, 'title'> {
|
|
10
11
|
/**
|
|
11
12
|
* Custom rail node — an icon puck, an avatar, a tinted dot. Defaults to the
|
|
12
13
|
* accent `.uix-timeline__node` dot. Supply this to make a heterogeneous feed
|
|
@@ -14,9 +15,20 @@ interface TimelineItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
|
14
15
|
*/
|
|
15
16
|
node?: ReactNode;
|
|
16
17
|
meta?: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* The event, one sentence: "Daniel Fischer changed the status from Assigned to In progress"
|
|
20
|
+
* (HAR-3086). Drawn quieter than body copy (`.uix-timeline__title`, the hushed text colour) so a
|
|
21
|
+
* feed reads as a list of events, not a block of paragraphs; wrap the actor in `<strong>` to keep
|
|
22
|
+
* the name emphasised.
|
|
23
|
+
*/
|
|
24
|
+
title?: ReactNode;
|
|
25
|
+
/** A second line under the event, e.g. the comment or the old and new value (`.uix-timeline__detail`, meta size, muted). */
|
|
26
|
+
detail?: ReactNode;
|
|
27
|
+
/** A kit `StatusPill` or `Badge` beside the event, e.g. "Intern" or "Automatisch". */
|
|
28
|
+
badge?: ReactNode;
|
|
17
29
|
children?: ReactNode;
|
|
18
30
|
}
|
|
19
31
|
/** A timeline entry over `.uix-timeline__item` (node + connecting line + body). */
|
|
20
|
-
declare function TimelineItem({ node, meta, children, className, ...props }: TimelineItemProps): react.JSX.Element;
|
|
32
|
+
declare function TimelineItem({ node, meta, title, detail, badge, children, className, ...props }: TimelineItemProps): react.JSX.Element;
|
|
21
33
|
|
|
22
34
|
export { Timeline, TimelineItem, type TimelineItemProps, type TimelineProps };
|
|
@@ -3,7 +3,7 @@ import { cx } from "../cx.js";
|
|
|
3
3
|
function Timeline({ children, className, ...props }) {
|
|
4
4
|
return /* @__PURE__ */ jsx("ol", { className: cx("uix-timeline", className), ...props, children });
|
|
5
5
|
}
|
|
6
|
-
function TimelineItem({ node, meta, children, className, ...props }) {
|
|
6
|
+
function TimelineItem({ node, meta, title, detail, badge, children, className, ...props }) {
|
|
7
7
|
return /* @__PURE__ */ jsxs("li", { className: cx("uix-timeline__item", className), ...props, children: [
|
|
8
8
|
/* @__PURE__ */ jsxs("div", { className: "uix-timeline__rail", "aria-hidden": "true", children: [
|
|
9
9
|
node ?? /* @__PURE__ */ jsx("span", { className: "uix-timeline__node" }),
|
|
@@ -11,6 +11,11 @@ function TimelineItem({ node, meta, children, className, ...props }) {
|
|
|
11
11
|
] }),
|
|
12
12
|
/* @__PURE__ */ jsxs("div", { className: "uix-timeline__body", children: [
|
|
13
13
|
meta != null && /* @__PURE__ */ jsx("div", { className: "uix-timeline__meta", children: meta }),
|
|
14
|
+
(title != null || badge != null) && /* @__PURE__ */ jsxs("div", { className: "uix-timeline__head", children: [
|
|
15
|
+
title != null && /* @__PURE__ */ jsx("p", { className: "uix-timeline__title", children: title }),
|
|
16
|
+
badge != null && /* @__PURE__ */ jsx("span", { className: "uix-timeline__badge", children: badge })
|
|
17
|
+
] }),
|
|
18
|
+
detail != null && /* @__PURE__ */ jsx("p", { className: "uix-timeline__detail", children: detail }),
|
|
14
19
|
children
|
|
15
20
|
] })
|
|
16
21
|
] });
|