rift-ds 1.24.0 → 1.26.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 +5 -4
- package/chat/ChatThreads.d.ts +3 -1
- package/chat/ChatThreads.js +3 -1
- package/chat/ChatWidget.css +166 -15
- package/chat/ChatWidget.d.ts +6 -2
- package/chat/ChatWidget.js +17 -3
- package/components/ActionCard/ActionCard.d.ts +1 -1
- package/components/Attachment/Attachment.css +8 -0
- package/components/Attachment/AttachmentViewer.js +26 -5
- package/components/Attachment/fileTypes.d.ts +4 -0
- package/components/ContextMenu/ContextMenu.css +11 -0
- package/components/ContextMenu/ContextMenu.d.ts +1 -1
- package/components/ContextMenu/ContextMenu.js +3 -1
- package/components/CurrencyInput/CurrencyInput.css +12 -0
- package/components/CurrencyInput/CurrencyInput.d.ts +51 -0
- package/components/CurrencyInput/CurrencyInput.js +158 -0
- package/components/DataTable/columnTypes.js +4 -16
- package/components/DatePicker/DatePicker.d.ts +2 -0
- package/components/DatePicker/DatePicker.js +44 -131
- package/components/DatePicker/MonthGrid.d.ts +56 -0
- package/components/DatePicker/MonthGrid.js +65 -0
- package/components/DatePicker/calendar.d.ts +42 -0
- package/components/DatePicker/calendar.js +108 -0
- package/components/DateRangePicker/DateRangePicker.css +92 -0
- package/components/DateRangePicker/DateRangePicker.d.ts +86 -0
- package/components/DateRangePicker/DateRangePicker.js +294 -0
- package/components/Deadline/Deadline.css +82 -0
- package/components/Deadline/Deadline.d.ts +44 -0
- package/components/Deadline/Deadline.js +94 -0
- package/components/Deadline/deadlineStatus.d.ts +15 -0
- package/components/Deadline/deadlineStatus.js +13 -0
- package/components/DescriptionList/DescriptionList.css +184 -0
- package/components/DescriptionList/DescriptionList.d.ts +64 -0
- package/components/DescriptionList/DescriptionList.js +100 -0
- package/components/DescriptionList/DescriptionListCopy.d.ts +18 -0
- package/components/DescriptionList/DescriptionListCopy.js +45 -0
- package/components/DocumentViewer/DocumentViewer.css +188 -0
- package/components/DocumentViewer/DocumentViewer.d.ts +59 -0
- package/components/DocumentViewer/DocumentViewer.js +185 -0
- package/components/DropdownMenu/DropdownMenu.css +38 -0
- package/components/DropdownMenu/DropdownMenu.d.ts +4 -0
- package/components/DropdownMenu/DropdownMenu.js +11 -5
- package/components/DropdownMenu/ShortcutHint.d.ts +9 -0
- package/components/DropdownMenu/ShortcutHint.js +6 -0
- package/components/ErrorSummary/ErrorSummary.css +94 -0
- package/components/ErrorSummary/ErrorSummary.d.ts +34 -0
- package/components/ErrorSummary/ErrorSummary.js +70 -0
- package/components/ErrorSummary/fieldErrors.d.ts +36 -0
- package/components/ErrorSummary/fieldErrors.js +19 -0
- package/components/Field/Field.css +12 -0
- package/components/Field/Field.d.ts +10 -2
- package/components/Field/Field.js +12 -5
- package/components/Heading/Heading.css +129 -0
- package/components/Heading/Heading.d.ts +31 -0
- package/components/Heading/Heading.js +39 -0
- package/components/Input/Input.css +120 -0
- package/components/Input/Input.d.ts +20 -1
- package/components/Input/Input.js +70 -5
- package/components/InterruptCard/InterruptCard.d.ts +1 -1
- package/components/Link/Link.css +84 -0
- package/components/Link/Link.d.ts +43 -0
- package/components/Link/Link.js +74 -0
- package/components/List/List.css +173 -0
- package/components/List/List.d.ts +44 -0
- package/components/List/List.js +60 -0
- package/components/MaskedInput/MaskedInput.css +16 -0
- package/components/MaskedInput/MaskedInput.d.ts +57 -0
- package/components/MaskedInput/MaskedInput.js +142 -0
- package/components/MaskedInput/mask.d.ts +58 -0
- package/components/MaskedInput/mask.js +106 -0
- package/components/MessageCard/MessageCard.css +17 -6
- package/components/MessageCard/MessageCard.d.ts +1 -1
- package/components/ShaderScene/ShaderScene.css +19 -0
- package/components/ShaderScene/ShaderScene.d.ts +82 -0
- package/components/ShaderScene/ShaderScene.js +167 -0
- package/components/ShaderScene/assemble.d.ts +5 -0
- package/components/ShaderScene/assemble.js +76 -0
- package/components/ShaderScene/common.glsl.d.ts +6 -0
- package/components/ShaderScene/common.glsl.js +49 -0
- package/components/ShaderScene/passes.d.ts +2 -0
- package/components/ShaderScene/passes.js +93 -0
- package/components/ShaderScene/renderer.d.ts +39 -0
- package/components/ShaderScene/renderer.js +170 -0
- package/components/ShaderScene/scenes.d.ts +76 -0
- package/components/ShaderScene/scenes.js +752 -0
- package/components/ShaderScene/types.d.ts +83 -0
- package/components/ShaderScene/types.js +8 -0
- package/components/SignaturePad/SignaturePad.css +141 -0
- package/components/SignaturePad/SignaturePad.d.ts +68 -0
- package/components/SignaturePad/SignaturePad.js +287 -0
- package/components/SignaturePad/signature.d.ts +32 -0
- package/components/SignaturePad/signature.js +46 -0
- package/components/Text/Text.css +129 -0
- package/components/Text/Text.d.ts +36 -0
- package/components/Text/Text.js +36 -0
- package/components/ThreadPanel/ThreadPanel.css +29 -0
- package/components/ThreadPanel/ThreadPanel.d.ts +2 -0
- package/components/ThreadPanel/ThreadPanel.js +13 -2
- package/components/Widget/Widget.css +111 -0
- package/components/Widget/Widget.d.ts +15 -1
- package/components/Widget/Widget.js +63 -11
- package/components/Widget/WidgetDisclosure.d.ts +30 -0
- package/components/Widget/WidgetDisclosure.js +52 -0
- package/components/registry.json +111 -2
- package/components/registry.json.d.ts +111 -2
- package/components/registry.json.js +2 -2
- package/format/index.d.ts +15 -0
- package/format/index.js +17 -0
- package/format/money.d.ts +89 -0
- package/format/money.js +187 -0
- package/format/relative.d.ts +49 -0
- package/format/relative.js +50 -0
- package/index.d.ts +13 -0
- package/index.js +48 -1
- package/package.json +9 -2
- package/tokens/motion.d.ts +4 -0
- package/tokens/motion.js +4 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Dates against now, and dates in a named time zone. Server-safe: no React
|
|
3
|
+
* and no browser API. Pass `now` wherever the output must match between the
|
|
4
|
+
* server and the browser (a deadline rendered on the server and ticked on
|
|
5
|
+
* the client), since two clocks a few hundred milliseconds apart can round
|
|
6
|
+
* to different words.
|
|
7
|
+
*/
|
|
8
|
+
/** A date, an ISO 8601 string, or milliseconds since the epoch. A bare `YYYY-MM-DD` is read as midnight UTC, so it never shifts a day. */
|
|
9
|
+
export type DateInput = Date | string | number;
|
|
10
|
+
/** A date input as a `Date`, or `null` when it does not name one. */
|
|
11
|
+
export declare function toDate(value: DateInput): Date | null;
|
|
12
|
+
/** Options for {@link formatRelative}. */
|
|
13
|
+
export type FormatRelativeOptions = {
|
|
14
|
+
/** The moment the date is measured from. Defaults to the current time. */
|
|
15
|
+
now?: DateInput;
|
|
16
|
+
/** The locale the phrase is written in. Defaults to `en-US`. */
|
|
17
|
+
locale?: string;
|
|
18
|
+
/** `auto` writes "tomorrow" and "yesterday" where the language has them; `always` writes "in 1 day". Defaults to `auto`. */
|
|
19
|
+
numeric?: 'auto' | 'always';
|
|
20
|
+
/** How long the unit names are: "in 3 months", "in 3 mo.", "in 3mo". Defaults to `long`. */
|
|
21
|
+
style?: 'long' | 'short' | 'narrow';
|
|
22
|
+
/**
|
|
23
|
+
* The smallest unit the phrase uses. `day` compares calendar days in UTC,
|
|
24
|
+
* so a date-only value reads "today" all day, never "in 5 hours". Defaults
|
|
25
|
+
* to `second`.
|
|
26
|
+
*/
|
|
27
|
+
minUnit?: 'second' | 'day';
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* A date against now, in the largest unit that keeps it whole: "in 45
|
|
31
|
+
* seconds", "5 minutes ago", "tomorrow", "in 3 weeks", "2 months ago", "in
|
|
32
|
+
* 1 year". A week is 7 days, a month 30 and a year 365, which is a reading
|
|
33
|
+
* of distance, not calendar arithmetic.
|
|
34
|
+
*/
|
|
35
|
+
export declare function formatRelative(date: DateInput, options?: FormatRelativeOptions): string;
|
|
36
|
+
/** Options for {@link formatInTimeZone}: any `Intl.DateTimeFormat` option, with the zone required. */
|
|
37
|
+
export type FormatInTimeZoneOptions = Omit<Intl.DateTimeFormatOptions, 'timeZone'> & {
|
|
38
|
+
/** The IANA zone the date is shown in, such as `America/Los_Angeles` or `UTC`. */
|
|
39
|
+
timeZone: string;
|
|
40
|
+
/** The locale the date is written in. Defaults to `en-US`. */
|
|
41
|
+
locale?: string;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* A date as a wall clock in a named zone reads it, whatever the runtime's
|
|
45
|
+
* own zone: `formatInTimeZone(due, { timeZone: 'America/Los_Angeles',
|
|
46
|
+
* timeStyle: 'short' })` is `4:00 PM`. With no style or field options it
|
|
47
|
+
* writes the date and time at medium length.
|
|
48
|
+
*/
|
|
49
|
+
export declare function formatInTimeZone(date: DateInput, options: FormatInTimeZoneOptions): string;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { DEFAULT_LOCALE } from "../behaviors/locale.js";
|
|
2
|
+
function toDate(value) {
|
|
3
|
+
const date = value instanceof Date ? value : new Date(typeof value === "string" && /^\d{4}-\d{2}-\d{2}$/.test(value) ? `${value}T00:00:00Z` : value);
|
|
4
|
+
return Number.isNaN(date.getTime()) ? null : date;
|
|
5
|
+
}
|
|
6
|
+
const SECOND = 1e3;
|
|
7
|
+
const MINUTE = 60 * SECOND;
|
|
8
|
+
const HOUR = 60 * MINUTE;
|
|
9
|
+
const DAY = 24 * HOUR;
|
|
10
|
+
function formatRelative(date, options = {}) {
|
|
11
|
+
const { locale = DEFAULT_LOCALE, numeric = "auto", style = "long", minUnit = "second" } = options;
|
|
12
|
+
const target = toDate(date);
|
|
13
|
+
const now = toDate(options.now ?? Date.now());
|
|
14
|
+
if (!target || !now) throw new RangeError(`Not a date: ${JSON.stringify(target ? options.now : date)}`);
|
|
15
|
+
const rtf = new Intl.RelativeTimeFormat(locale, { numeric, style });
|
|
16
|
+
let days;
|
|
17
|
+
if (minUnit === "day") {
|
|
18
|
+
const today = Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate());
|
|
19
|
+
const day = Date.UTC(target.getUTCFullYear(), target.getUTCMonth(), target.getUTCDate());
|
|
20
|
+
days = Math.round((day - today) / DAY);
|
|
21
|
+
} else {
|
|
22
|
+
const diff = target.getTime() - now.getTime();
|
|
23
|
+
const abs = Math.abs(diff);
|
|
24
|
+
if (abs < MINUTE) return rtf.format(Math.round(diff / SECOND), "second");
|
|
25
|
+
if (abs < HOUR) return rtf.format(Math.round(diff / MINUTE), "minute");
|
|
26
|
+
if (abs < DAY) return rtf.format(Math.round(diff / HOUR), "hour");
|
|
27
|
+
days = Math.round(diff / DAY);
|
|
28
|
+
}
|
|
29
|
+
if (Math.abs(days) < 7) return rtf.format(days, "day");
|
|
30
|
+
if (Math.abs(days) < 30) return rtf.format(Math.round(days / 7), "week");
|
|
31
|
+
if (Math.abs(days) < 365) return rtf.format(Math.round(days / 30), "month");
|
|
32
|
+
return rtf.format(Math.round(days / 365), "year");
|
|
33
|
+
}
|
|
34
|
+
function formatInTimeZone(date, options) {
|
|
35
|
+
const { locale = DEFAULT_LOCALE, timeZone, ...rest } = options;
|
|
36
|
+
const target = toDate(date);
|
|
37
|
+
if (!target) throw new RangeError(`Not a date: ${JSON.stringify(date)}`);
|
|
38
|
+
const hasFields = Object.keys(rest).some((key) => key !== "hour12" && key !== "hourCycle" && key !== "timeZoneName");
|
|
39
|
+
const format = new Intl.DateTimeFormat(locale, {
|
|
40
|
+
...hasFields ? {} : { dateStyle: "medium", timeStyle: "short" },
|
|
41
|
+
...rest,
|
|
42
|
+
timeZone
|
|
43
|
+
});
|
|
44
|
+
return format.format(target);
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
formatInTimeZone,
|
|
48
|
+
formatRelative,
|
|
49
|
+
toDate
|
|
50
|
+
};
|
package/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export * from './components/Composer/Composer';
|
|
|
54
54
|
export * from './components/ContactCard/ContactCard';
|
|
55
55
|
export * from './components/ContextMenu/ContextMenu';
|
|
56
56
|
export * from './components/ContributionGraph/ContributionGraph';
|
|
57
|
+
export * from './components/CurrencyInput/CurrencyInput';
|
|
57
58
|
export * from './components/DataTable/CellEditor';
|
|
58
59
|
export * from './components/DataTable/DataTable';
|
|
59
60
|
export * from './components/DataTable/FilterEditor';
|
|
@@ -61,9 +62,13 @@ export * from './components/DataTable/TypedCell';
|
|
|
61
62
|
export * from './components/DataTable/VirtualRows';
|
|
62
63
|
export * from './components/DateInput/DateInput';
|
|
63
64
|
export * from './components/DatePicker/DatePicker';
|
|
65
|
+
export * from './components/DateRangePicker/DateRangePicker';
|
|
66
|
+
export * from './components/Deadline/Deadline';
|
|
67
|
+
export * from './components/DescriptionList/DescriptionList';
|
|
64
68
|
export * from './components/Dialog/Dialog';
|
|
65
69
|
export * from './components/Divider/Divider';
|
|
66
70
|
export * from './components/DocumentChip/DocumentChip';
|
|
71
|
+
export * from './components/DocumentViewer/DocumentViewer';
|
|
67
72
|
export * from './components/Drawer/Drawer';
|
|
68
73
|
export * from './components/Dropdown/Dropdown';
|
|
69
74
|
export * from './components/DropdownMenu/DropdownMenu';
|
|
@@ -71,6 +76,7 @@ export * from './components/DropdownMenu/ShortcutHint';
|
|
|
71
76
|
export * from './components/EmptyState/EmptyState';
|
|
72
77
|
export * from './components/EntityCard/EntityCard';
|
|
73
78
|
export * from './components/EntitySwitcher/EntitySwitcher';
|
|
79
|
+
export * from './components/ErrorSummary/ErrorSummary';
|
|
74
80
|
export * from './components/EventCalendar/EventCalendar';
|
|
75
81
|
export * from './components/Field/Field';
|
|
76
82
|
export * from './components/Field/FieldContext';
|
|
@@ -80,6 +86,7 @@ export * from './components/FilterBar/FilterBar';
|
|
|
80
86
|
export * from './components/GanttChart/GanttChart';
|
|
81
87
|
export * from './components/Gauge/Gauge';
|
|
82
88
|
export * from './components/Globe/Globe';
|
|
89
|
+
export * from './components/Heading/Heading';
|
|
83
90
|
export * from './components/HoverCard/HoverCard';
|
|
84
91
|
export * from './components/ImageCompare/ImageCompare';
|
|
85
92
|
export * from './components/Input/Input';
|
|
@@ -95,9 +102,12 @@ export * from './components/InterruptCard/InterruptCard';
|
|
|
95
102
|
export * from './components/Kbd/Kbd';
|
|
96
103
|
export * from './components/LegendTile/LegendTile';
|
|
97
104
|
export * from './components/Lightbox/Lightbox';
|
|
105
|
+
export * from './components/Link/Link';
|
|
98
106
|
export * from './components/LinkList/LinkList';
|
|
107
|
+
export * from './components/List/List';
|
|
99
108
|
export * from './components/MapCallout/MapCallout';
|
|
100
109
|
export * from './components/MapLegend/MapLegend';
|
|
110
|
+
export * from './components/MaskedInput/MaskedInput';
|
|
101
111
|
export * from './components/MegaMenu/MegaMenu';
|
|
102
112
|
export * from './components/Mention/Mention';
|
|
103
113
|
export * from './components/MessageActions/MessageActions';
|
|
@@ -127,7 +137,9 @@ export * from './components/SectionTitle/SectionTitle';
|
|
|
127
137
|
export * from './components/SegmentedControl/SegmentedControl';
|
|
128
138
|
export * from './components/SelectionCard/SelectionCard';
|
|
129
139
|
export * from './components/ShaderField/ShaderField';
|
|
140
|
+
export * from './components/ShaderScene/ShaderScene';
|
|
130
141
|
export * from './components/SidebarPanel/SidebarPanel';
|
|
142
|
+
export * from './components/SignaturePad/SignaturePad';
|
|
131
143
|
export * from './components/SiteHeader/SiteHeader';
|
|
132
144
|
export * from './components/Skeleton/Skeleton';
|
|
133
145
|
export * from './components/Slider/Slider';
|
|
@@ -146,6 +158,7 @@ export * from './components/Table/Table';
|
|
|
146
158
|
export * from './components/TableToolbar/TableToolbar';
|
|
147
159
|
export * from './components/Tabs/Tabs';
|
|
148
160
|
export * from './components/TagInput/TagInput';
|
|
161
|
+
export * from './components/Text/Text';
|
|
149
162
|
export * from './components/Textarea/Textarea';
|
|
150
163
|
export * from './components/ThemePicker/ThemePicker';
|
|
151
164
|
export * from './components/ThemeToggle/ThemeToggle';
|
package/index.js
CHANGED
|
@@ -49,6 +49,7 @@ import { Composer } from "./components/Composer/Composer.js";
|
|
|
49
49
|
import { ContactCard } from "./components/ContactCard/ContactCard.js";
|
|
50
50
|
import { ContextMenu } from "./components/ContextMenu/ContextMenu.js";
|
|
51
51
|
import { ContributionGraph } from "./components/ContributionGraph/ContributionGraph.js";
|
|
52
|
+
import { CurrencyInput } from "./components/CurrencyInput/CurrencyInput.js";
|
|
52
53
|
import { CellEditor, EditorHost } from "./components/DataTable/CellEditor.js";
|
|
53
54
|
import { DataTable, reconcileDataTableView } from "./components/DataTable/DataTable.js";
|
|
54
55
|
import { FilterEditor } from "./components/DataTable/FilterEditor.js";
|
|
@@ -56,16 +57,21 @@ import { TypedCell } from "./components/DataTable/TypedCell.js";
|
|
|
56
57
|
import { VirtualRows } from "./components/DataTable/VirtualRows.js";
|
|
57
58
|
import { DateInput } from "./components/DateInput/DateInput.js";
|
|
58
59
|
import { DatePicker } from "./components/DatePicker/DatePicker.js";
|
|
60
|
+
import { DateRangePicker } from "./components/DateRangePicker/DateRangePicker.js";
|
|
61
|
+
import { Deadline } from "./components/Deadline/Deadline.js";
|
|
62
|
+
import { DescriptionList, DescriptionListItem } from "./components/DescriptionList/DescriptionList.js";
|
|
59
63
|
import { Dialog } from "./components/Dialog/Dialog.js";
|
|
60
64
|
import { Divider } from "./components/Divider/Divider.js";
|
|
61
65
|
import { DocumentChip } from "./components/DocumentChip/DocumentChip.js";
|
|
66
|
+
import { DocumentViewer } from "./components/DocumentViewer/DocumentViewer.js";
|
|
62
67
|
import { Drawer } from "./components/Drawer/Drawer.js";
|
|
63
68
|
import { ChosenMark, Dropdown } from "./components/Dropdown/Dropdown.js";
|
|
64
69
|
import { DropdownMenu } from "./components/DropdownMenu/DropdownMenu.js";
|
|
65
|
-
import { MenuKeyLabelsContext, MenuShortcutHint } from "./components/DropdownMenu/ShortcutHint.js";
|
|
70
|
+
import { MenuIconRight, MenuKeyLabelsContext, MenuShortcutHint } from "./components/DropdownMenu/ShortcutHint.js";
|
|
66
71
|
import { EmptyState } from "./components/EmptyState/EmptyState.js";
|
|
67
72
|
import { EntityCard } from "./components/EntityCard/EntityCard.js";
|
|
68
73
|
import { EntitySwitcher } from "./components/EntitySwitcher/EntitySwitcher.js";
|
|
74
|
+
import { ErrorSummary } from "./components/ErrorSummary/ErrorSummary.js";
|
|
69
75
|
import { EventCalendar } from "./components/EventCalendar/EventCalendar.js";
|
|
70
76
|
import { Field } from "./components/Field/Field.js";
|
|
71
77
|
import { FieldContext, useField } from "./components/Field/FieldContext.js";
|
|
@@ -75,6 +81,7 @@ import { FilterBar } from "./components/FilterBar/FilterBar.js";
|
|
|
75
81
|
import { GanttChart } from "./components/GanttChart/GanttChart.js";
|
|
76
82
|
import { Gauge } from "./components/Gauge/Gauge.js";
|
|
77
83
|
import { Globe } from "./components/Globe/Globe.js";
|
|
84
|
+
import { Heading } from "./components/Heading/Heading.js";
|
|
78
85
|
import { HoverCard } from "./components/HoverCard/HoverCard.js";
|
|
79
86
|
import { ImageCompare } from "./components/ImageCompare/ImageCompare.js";
|
|
80
87
|
import { Input } from "./components/Input/Input.js";
|
|
@@ -90,9 +97,12 @@ import { InterruptCard } from "./components/InterruptCard/InterruptCard.js";
|
|
|
90
97
|
import { Kbd } from "./components/Kbd/Kbd.js";
|
|
91
98
|
import { LegendTile } from "./components/LegendTile/LegendTile.js";
|
|
92
99
|
import { Lightbox } from "./components/Lightbox/Lightbox.js";
|
|
100
|
+
import { Link } from "./components/Link/Link.js";
|
|
93
101
|
import { LinkList } from "./components/LinkList/LinkList.js";
|
|
102
|
+
import { List, ListItem } from "./components/List/List.js";
|
|
94
103
|
import { MapCallout } from "./components/MapCallout/MapCallout.js";
|
|
95
104
|
import { MapLegend } from "./components/MapLegend/MapLegend.js";
|
|
105
|
+
import { MaskedInput } from "./components/MaskedInput/MaskedInput.js";
|
|
96
106
|
import { MegaMenu } from "./components/MegaMenu/MegaMenu.js";
|
|
97
107
|
import { Mention, MentionMenu, MentionText } from "./components/Mention/Mention.js";
|
|
98
108
|
import { MessageActions } from "./components/MessageActions/MessageActions.js";
|
|
@@ -122,7 +132,9 @@ import { SectionTitle } from "./components/SectionTitle/SectionTitle.js";
|
|
|
122
132
|
import { SegmentedControl } from "./components/SegmentedControl/SegmentedControl.js";
|
|
123
133
|
import { SelectionCard } from "./components/SelectionCard/SelectionCard.js";
|
|
124
134
|
import { ShaderField } from "./components/ShaderField/ShaderField.js";
|
|
135
|
+
import { ShaderScene } from "./components/ShaderScene/ShaderScene.js";
|
|
125
136
|
import { SidebarPanel } from "./components/SidebarPanel/SidebarPanel.js";
|
|
137
|
+
import { SignaturePad } from "./components/SignaturePad/SignaturePad.js";
|
|
126
138
|
import { SiteHeader } from "./components/SiteHeader/SiteHeader.js";
|
|
127
139
|
import { Skeleton } from "./components/Skeleton/Skeleton.js";
|
|
128
140
|
import { Slider } from "./components/Slider/Slider.js";
|
|
@@ -141,6 +153,7 @@ import { Table } from "./components/Table/Table.js";
|
|
|
141
153
|
import { TableToolbar } from "./components/TableToolbar/TableToolbar.js";
|
|
142
154
|
import { Tabs } from "./components/Tabs/Tabs.js";
|
|
143
155
|
import { TagInput } from "./components/TagInput/TagInput.js";
|
|
156
|
+
import { Text } from "./components/Text/Text.js";
|
|
144
157
|
import { Textarea } from "./components/Textarea/Textarea.js";
|
|
145
158
|
import { ThemePicker } from "./components/ThemePicker/ThemePicker.js";
|
|
146
159
|
import { ThemeToggle } from "./components/ThemeToggle/ThemeToggle.js";
|
|
@@ -167,10 +180,18 @@ import { TOKEN_COUNT, TOKEN_COUNTS, tokenRegistry } from "./tokens/registry.js";
|
|
|
167
180
|
import { BLOB_COUNT } from "./components/ShaderField/field.glsl.js";
|
|
168
181
|
import { DEFAULT_SHADER_BLOBS, DEFAULT_SHADER_PARAMS, useShaderField } from "./components/ShaderField/useShaderField.js";
|
|
169
182
|
import { FILE_KINDS, formatBytes, getFileExtension, getFileKind, getFileTypeLabel, matchesAccept, splitFileName } from "./components/Attachment/fileTypes.js";
|
|
183
|
+
import { MASK_PRESETS, applyMask } from "./components/MaskedInput/mask.js";
|
|
184
|
+
import { PASSES } from "./components/ShaderScene/passes.js";
|
|
185
|
+
import { SCENES } from "./components/ShaderScene/scenes.js";
|
|
170
186
|
import { createStreamReveal, useStreamReveal } from "./components/StreamingText/useStreamReveal.js";
|
|
187
|
+
import { deadlineStatus } from "./components/Deadline/deadlineStatus.js";
|
|
171
188
|
import { distinctPixelInks, pixelAvatarInk } from "./components/PixelAvatar/pixelInks.js";
|
|
189
|
+
import { fieldErrorsFrom } from "./components/ErrorSummary/fieldErrors.js";
|
|
172
190
|
import { filterMentionItems, getMentionQuery, insertMention, mentionListboxId, mentionOptionId, splitMentions } from "./components/Mention/mentions.js";
|
|
173
191
|
import { revokeAttachmentUrls, useAttachments } from "./components/Attachment/useAttachments.js";
|
|
192
|
+
import { defaultsFor } from "./components/ShaderScene/types.js";
|
|
193
|
+
import { bakeThumbnails } from "./components/ShaderScene/renderer.js";
|
|
194
|
+
import { strokePath, svgToPng } from "./components/SignaturePad/signature.js";
|
|
174
195
|
export {
|
|
175
196
|
AGENT_RING_CLASS,
|
|
176
197
|
Accordion,
|
|
@@ -230,15 +251,21 @@ export {
|
|
|
230
251
|
ContactCard,
|
|
231
252
|
ContextMenu,
|
|
232
253
|
ContributionGraph,
|
|
254
|
+
CurrencyInput,
|
|
233
255
|
DEFAULT_COLOR_MODE_STORAGE_KEY,
|
|
234
256
|
DEFAULT_SHADER_BLOBS,
|
|
235
257
|
DEFAULT_SHADER_PARAMS,
|
|
236
258
|
DataTable,
|
|
237
259
|
DateInput,
|
|
238
260
|
DatePicker,
|
|
261
|
+
DateRangePicker,
|
|
262
|
+
Deadline,
|
|
263
|
+
DescriptionList,
|
|
264
|
+
DescriptionListItem,
|
|
239
265
|
Dialog,
|
|
240
266
|
Divider,
|
|
241
267
|
DocumentChip,
|
|
268
|
+
DocumentViewer,
|
|
242
269
|
Drawer,
|
|
243
270
|
Dropdown,
|
|
244
271
|
DropdownMenu,
|
|
@@ -246,6 +273,7 @@ export {
|
|
|
246
273
|
EmptyState,
|
|
247
274
|
EntityCard,
|
|
248
275
|
EntitySwitcher,
|
|
276
|
+
ErrorSummary,
|
|
249
277
|
EventCalendar,
|
|
250
278
|
FILE_KINDS,
|
|
251
279
|
Field,
|
|
@@ -257,6 +285,7 @@ export {
|
|
|
257
285
|
GanttChart,
|
|
258
286
|
Gauge,
|
|
259
287
|
Globe,
|
|
288
|
+
Heading,
|
|
260
289
|
HoverCard,
|
|
261
290
|
ImageCompare,
|
|
262
291
|
Input,
|
|
@@ -272,13 +301,19 @@ export {
|
|
|
272
301
|
Kbd,
|
|
273
302
|
LegendTile,
|
|
274
303
|
Lightbox,
|
|
304
|
+
Link,
|
|
275
305
|
LinkList,
|
|
306
|
+
List,
|
|
307
|
+
ListItem,
|
|
308
|
+
MASK_PRESETS,
|
|
276
309
|
MapCallout,
|
|
277
310
|
MapLegend,
|
|
311
|
+
MaskedInput,
|
|
278
312
|
MegaMenu,
|
|
279
313
|
Mention,
|
|
280
314
|
MentionMenu,
|
|
281
315
|
MentionText,
|
|
316
|
+
MenuIconRight,
|
|
282
317
|
MenuKeyLabelsContext,
|
|
283
318
|
MenuShortcutHint,
|
|
284
319
|
MessageActions,
|
|
@@ -309,11 +344,15 @@ export {
|
|
|
309
344
|
Rating,
|
|
310
345
|
Reasoning,
|
|
311
346
|
RichDropdown,
|
|
347
|
+
PASSES as SHADER_PASSES,
|
|
348
|
+
SCENES as SHADER_SCENES,
|
|
312
349
|
SectionTitle,
|
|
313
350
|
SegmentedControl,
|
|
314
351
|
SelectionCard,
|
|
315
352
|
ShaderField,
|
|
353
|
+
ShaderScene,
|
|
316
354
|
SidebarPanel,
|
|
355
|
+
SignaturePad,
|
|
317
356
|
SiteHeader,
|
|
318
357
|
Skeleton,
|
|
319
358
|
Slider,
|
|
@@ -335,6 +374,7 @@ export {
|
|
|
335
374
|
TableToolbar,
|
|
336
375
|
Tabs,
|
|
337
376
|
TagInput,
|
|
377
|
+
Text,
|
|
338
378
|
Textarea,
|
|
339
379
|
ThemePicker,
|
|
340
380
|
ThemeToggle,
|
|
@@ -363,6 +403,7 @@ export {
|
|
|
363
403
|
WorldMap,
|
|
364
404
|
agentRingProps,
|
|
365
405
|
agentStatusPatterns,
|
|
406
|
+
applyMask,
|
|
366
407
|
colorModeScript,
|
|
367
408
|
colorModeSettings,
|
|
368
409
|
componentCategories,
|
|
@@ -370,7 +411,9 @@ export {
|
|
|
370
411
|
componentMetadata,
|
|
371
412
|
componentRegistry,
|
|
372
413
|
createStreamReveal,
|
|
414
|
+
deadlineStatus,
|
|
373
415
|
distinctPixelInks,
|
|
416
|
+
fieldErrorsFrom,
|
|
374
417
|
filterMentionItems,
|
|
375
418
|
formatBytes,
|
|
376
419
|
getFileExtension,
|
|
@@ -386,8 +429,12 @@ export {
|
|
|
386
429
|
pixelAvatarInk,
|
|
387
430
|
reconcileDataTableView,
|
|
388
431
|
revokeAttachmentUrls,
|
|
432
|
+
defaultsFor as shaderSceneDefaults,
|
|
433
|
+
bakeThumbnails as shaderSceneStills,
|
|
389
434
|
splitFileName,
|
|
390
435
|
splitMentions,
|
|
436
|
+
strokePath,
|
|
437
|
+
svgToPng,
|
|
391
438
|
tokenRegistry,
|
|
392
439
|
useAttachments,
|
|
393
440
|
useColorMode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rift-ds",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
4
4
|
"description": "An AI-ready React design system: accessible components on composable tokens, light/dark theming, and CSS-variable overrides.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Robert Ritacca",
|
|
@@ -106,6 +106,10 @@
|
|
|
106
106
|
"import": "./chat/demo.js"
|
|
107
107
|
},
|
|
108
108
|
"./chat/chat.css": "./chat/ChatWidget.css",
|
|
109
|
+
"./format": {
|
|
110
|
+
"types": "./format/index.d.ts",
|
|
111
|
+
"import": "./format/index.js"
|
|
112
|
+
},
|
|
109
113
|
"./tokens/registry": {
|
|
110
114
|
"types": "./tokens/registry.d.ts",
|
|
111
115
|
"import": "./tokens/registry.js"
|
|
@@ -129,7 +133,10 @@
|
|
|
129
133
|
"./tokens/*.css": "./tokens/*.css",
|
|
130
134
|
"./tokens/presets/*.css": "./tokens/presets/*.css",
|
|
131
135
|
"./fonts/*": "./fonts/*",
|
|
132
|
-
"./package.json": "./package.json"
|
|
136
|
+
"./package.json": "./package.json",
|
|
137
|
+
"./components/DatePicker/MonthGrid": null,
|
|
138
|
+
"./components/Widget/WidgetDisclosure": null,
|
|
139
|
+
"./components/DescriptionList/DescriptionListCopy": null
|
|
133
140
|
},
|
|
134
141
|
"dependencies": {
|
|
135
142
|
"@tanstack/react-table": "^9.3.1",
|
package/tokens/motion.d.ts
CHANGED
|
@@ -68,3 +68,7 @@ export declare const MOTION_ANNOUNCE_DEBOUNCE_MS = 500;
|
|
|
68
68
|
export declare const MOTION_SHORTCUT_SEQUENCE_MS = 1000;
|
|
69
69
|
/** How long a host waits after a reader's selection stops changing (a drag across text, Shift+arrow) before acting on it, such as asking a model about it, so a sweep acts once rather than on every step. A schedule timing. */
|
|
70
70
|
export declare const MOTION_SELECTION_SETTLE_MS = 400;
|
|
71
|
+
/** How long a revealed sensitive value (a tax ID, a card number in MaskedInput) stays readable before it is hidden again, when its `autoHideAfter` is `true`. A schedule timing, so the reduced-motion guard leaves it alone. */
|
|
72
|
+
export declare const MOTION_SENSITIVE_HIDE_MS = 30000;
|
|
73
|
+
/** How often a live countdown (Deadline) rewrites its distance from now. Coarse on purpose: the words change by the minute at the finest, and a hidden tab pauses it. A schedule timing. */
|
|
74
|
+
export declare const MOTION_DEADLINE_TICK_MS = 30000;
|
package/tokens/motion.js
CHANGED
|
@@ -26,6 +26,8 @@ const MOTION_CONTEXT_RESTORE_WAIT_MS = 700;
|
|
|
26
26
|
const MOTION_ANNOUNCE_DEBOUNCE_MS = 500;
|
|
27
27
|
const MOTION_SHORTCUT_SEQUENCE_MS = 1e3;
|
|
28
28
|
const MOTION_SELECTION_SETTLE_MS = 400;
|
|
29
|
+
const MOTION_SENSITIVE_HIDE_MS = 3e4;
|
|
30
|
+
const MOTION_DEADLINE_TICK_MS = 3e4;
|
|
29
31
|
export {
|
|
30
32
|
MOTION_ACTION_DISMISS_MS,
|
|
31
33
|
MOTION_ANNOUNCE_DEBOUNCE_MS,
|
|
@@ -34,6 +36,7 @@ export {
|
|
|
34
36
|
MOTION_CHART_ENTRANCE_MS,
|
|
35
37
|
MOTION_CONTEXT_RESTORE_WAIT_MS,
|
|
36
38
|
MOTION_COUNT_UP_MS,
|
|
39
|
+
MOTION_DEADLINE_TICK_MS,
|
|
37
40
|
MOTION_DEMO_RETRY_RUN_MS,
|
|
38
41
|
MOTION_EXIT_SYNC_MS,
|
|
39
42
|
MOTION_FEEDBACK_RESET_MS,
|
|
@@ -44,6 +47,7 @@ export {
|
|
|
44
47
|
MOTION_RENDERER_WATCHDOG_MS,
|
|
45
48
|
MOTION_SCROLL_SETTLE_MS,
|
|
46
49
|
MOTION_SELECTION_SETTLE_MS,
|
|
50
|
+
MOTION_SENSITIVE_HIDE_MS,
|
|
47
51
|
MOTION_SHADER_COLOR_FADE_MS,
|
|
48
52
|
MOTION_SHORTCUT_SEQUENCE_MS,
|
|
49
53
|
MOTION_STREAM_CHAR_INTERVAL_MS,
|