@tangible/ui 0.0.20 → 0.1.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.
Files changed (61) hide show
  1. package/components/Accordion/Accordion.js +1 -1
  2. package/components/Button/Button.js +6 -8
  3. package/components/Button/types.d.ts +0 -5
  4. package/components/Combobox/Combobox.js +2 -2
  5. package/components/DatePicker/Calendar.d.ts +12 -0
  6. package/components/DatePicker/Calendar.js +145 -0
  7. package/components/DatePicker/DatePicker.d.ts +23 -0
  8. package/components/DatePicker/DatePicker.js +123 -0
  9. package/components/DatePicker/DateRangePicker.d.ts +16 -0
  10. package/components/DatePicker/DateRangePicker.js +114 -0
  11. package/components/DatePicker/date-utils.d.ts +51 -0
  12. package/components/DatePicker/date-utils.js +228 -0
  13. package/components/DatePicker/index.d.ts +8 -0
  14. package/components/DatePicker/index.js +6 -0
  15. package/components/DatePicker/presets.d.ts +3 -0
  16. package/components/DatePicker/presets.js +37 -0
  17. package/components/DatePicker/types.d.ts +138 -0
  18. package/components/DatePicker/types.js +39 -0
  19. package/components/MultiSelect/MultiSelect.js +1 -1
  20. package/components/Notice/Notice.d.ts +2 -2
  21. package/components/Popover/Popover.js +16 -2
  22. package/components/SegmentedControl/types.d.ts +2 -2
  23. package/components/Select/Select.js +2 -2
  24. package/components/Tabs/Tabs.js +1 -1
  25. package/components/index.d.ts +1 -0
  26. package/components/index.js +1 -0
  27. package/icons/icons.svg +6 -2
  28. package/icons/lms/index.js +1 -1
  29. package/icons/manifest.json +32 -0
  30. package/icons/registry.d.ts +8 -0
  31. package/icons/registry.js +4 -0
  32. package/icons/system/index.d.ts +8 -0
  33. package/icons/system/index.js +45 -1
  34. package/package.json +5 -1
  35. package/styles/all.css +1 -1
  36. package/styles/all.expanded.css +429 -64
  37. package/styles/all.expanded.unlayered.css +429 -64
  38. package/styles/all.unlayered.css +1 -1
  39. package/styles/components/_bundle.scss +2 -0
  40. package/styles/components/accordion.scss +4 -1
  41. package/styles/components/button.scss +23 -10
  42. package/styles/components/card.scss +1 -1
  43. package/styles/components/chip.scss +36 -11
  44. package/styles/components/combobox.scss +3 -1
  45. package/styles/components/date-picker.scss +400 -0
  46. package/styles/components/icon-button.scss +4 -4
  47. package/styles/components/icon.scss +14 -3
  48. package/styles/components/multi-select.scss +5 -2
  49. package/styles/components/notice.scss +43 -10
  50. package/styles/components/popover.scss +6 -0
  51. package/styles/components/progress.scss +22 -5
  52. package/styles/components/segmented-control.scss +13 -1
  53. package/styles/components/select.scss +11 -2
  54. package/styles/components/text-input.scss +5 -1
  55. package/styles/core.css +1 -1
  56. package/styles/core.unlayered.css +1 -1
  57. package/styles/system/_control.scss +9 -8
  58. package/styles/system/_tokens.scss +3 -0
  59. package/tui-manifest.json +107 -13
  60. package/utils/portal.d.ts +0 -4
  61. package/utils/portal.js +38 -5
@@ -0,0 +1,228 @@
1
+ // =============================================================================
2
+ // Date utilities — wall-clock, timezone-agnostic
3
+ // =============================================================================
4
+ //
5
+ // All math uses local (wall-clock) accessors on plain Date objects: the
6
+ // pickers edit "what the clock on the wall says", and the host owns
7
+ // interpretation (site timezone, serialisation). No UTC normalisation, no
8
+ // timezone conversion — ever. Day arithmetic goes through setDate/setMonth,
9
+ // which stays date-correct across DST transitions.
10
+ //
11
+ // Formatting and weekday/month names come from Intl.DateTimeFormat, so any
12
+ // locale tag works for display. Parsing accepts numeric dates in the
13
+ // locale's own part order (derived from formatToParts, not hardcoded).
14
+ //
15
+ // =============================================================================
16
+ export function isSameDay(a, b) {
17
+ if (!a || !b)
18
+ return false;
19
+ return (a.getFullYear() === b.getFullYear() &&
20
+ a.getMonth() === b.getMonth() &&
21
+ a.getDate() === b.getDate());
22
+ }
23
+ export function isSameMonth(a, b) {
24
+ return a.getFullYear() === b.getFullYear() && a.getMonth() === b.getMonth();
25
+ }
26
+ /** Strictly before, comparing calendar days (time-of-day ignored). */
27
+ export function isBeforeDay(a, b) {
28
+ if (a.getFullYear() !== b.getFullYear())
29
+ return a.getFullYear() < b.getFullYear();
30
+ if (a.getMonth() !== b.getMonth())
31
+ return a.getMonth() < b.getMonth();
32
+ return a.getDate() < b.getDate();
33
+ }
34
+ export function isAfterDay(a, b) {
35
+ return isBeforeDay(b, a);
36
+ }
37
+ /** Day is within [from, to] inclusive, comparing calendar days. */
38
+ export function isWithinDays(day, from, to) {
39
+ return !isBeforeDay(day, from) && !isAfterDay(day, to);
40
+ }
41
+ /** New Date shifted by n days; preserves time-of-day. */
42
+ export function addDays(date, n) {
43
+ const next = new Date(date);
44
+ next.setDate(next.getDate() + n);
45
+ return next;
46
+ }
47
+ /**
48
+ * New Date shifted by n months; clamps the day-of-month so Jan 31 + 1 month
49
+ * lands on Feb 28/29 rather than overflowing into March.
50
+ */
51
+ export function addMonths(date, n) {
52
+ const next = new Date(date);
53
+ const day = next.getDate();
54
+ next.setDate(1);
55
+ next.setMonth(next.getMonth() + n);
56
+ next.setDate(Math.min(day, daysInMonth(next)));
57
+ return next;
58
+ }
59
+ export function addYears(date, n) {
60
+ return addMonths(date, n * 12);
61
+ }
62
+ export function daysInMonth(date) {
63
+ return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
64
+ }
65
+ export function startOfMonth(date) {
66
+ const next = new Date(date);
67
+ next.setDate(1);
68
+ return next;
69
+ }
70
+ export function startOfWeek(date, weekStartsOn) {
71
+ const diff = (date.getDay() - weekStartsOn + 7) % 7;
72
+ return addDays(date, -diff);
73
+ }
74
+ /**
75
+ * The visible day grid for a month: always 6 rows of 7 (42 days), starting
76
+ * on the locale's week start, so the popover height never jumps between
77
+ * months. Time-of-day on the returned dates is noon — callers merge their
78
+ * own time when committing a selection.
79
+ */
80
+ export function getMonthGrid(month, weekStartsOn) {
81
+ const first = new Date(month.getFullYear(), month.getMonth(), 1, 12);
82
+ const gridStart = startOfWeek(first, weekStartsOn);
83
+ const rows = [];
84
+ for (let row = 0; row < 6; row++) {
85
+ const cells = [];
86
+ for (let col = 0; col < 7; col++) {
87
+ cells.push(addDays(gridStart, row * 7 + col));
88
+ }
89
+ rows.push(cells);
90
+ }
91
+ return rows;
92
+ }
93
+ /** New Date with the given calendar day but this date's time-of-day. */
94
+ export function withDay(time, day) {
95
+ const next = new Date(day);
96
+ if (time) {
97
+ next.setHours(time.getHours(), time.getMinutes(), 0, 0);
98
+ }
99
+ else {
100
+ next.setHours(0, 0, 0, 0);
101
+ }
102
+ return next;
103
+ }
104
+ export function clampDay(date, min, max) {
105
+ if (min && isBeforeDay(date, min))
106
+ return withDay(date, min);
107
+ if (max && isAfterDay(date, max))
108
+ return withDay(date, max);
109
+ return date;
110
+ }
111
+ // -----------------------------------------------------------------------------
112
+ // Locale-derived names (cached per locale)
113
+ // -----------------------------------------------------------------------------
114
+ const monthNameCache = new Map();
115
+ export function getMonthNames(locale, width = 'long') {
116
+ const key = `${locale}|${width}`;
117
+ let names = monthNameCache.get(key);
118
+ if (!names) {
119
+ const fmt = new Intl.DateTimeFormat(locale, { month: width });
120
+ names = Array.from({ length: 12 }, (_, m) => fmt.format(new Date(2024, m, 1, 12)));
121
+ monthNameCache.set(key, names);
122
+ }
123
+ return names;
124
+ }
125
+ const weekdayCache = new Map();
126
+ /** Weekday labels in grid order for the given week start. */
127
+ export function getWeekdayLabels(locale, weekStartsOn) {
128
+ const key = `${locale}|${weekStartsOn}`;
129
+ let labels = weekdayCache.get(key);
130
+ if (!labels) {
131
+ const narrow = new Intl.DateTimeFormat(locale, { weekday: 'narrow' });
132
+ const long = new Intl.DateTimeFormat(locale, { weekday: 'long' });
133
+ labels = Array.from({ length: 7 }, (_, i) => {
134
+ // 2024-09-01 is a Sunday; offset into the wanted weekday.
135
+ const day = new Date(2024, 8, 1 + ((weekStartsOn + i) % 7), 12);
136
+ return { narrow: narrow.format(day), long: long.format(day) };
137
+ });
138
+ weekdayCache.set(key, labels);
139
+ }
140
+ return labels;
141
+ }
142
+ // -----------------------------------------------------------------------------
143
+ // Formatting
144
+ // -----------------------------------------------------------------------------
145
+ export function formatDay(date, locale) {
146
+ return new Intl.DateTimeFormat(locale, { dateStyle: 'medium' }).format(date);
147
+ }
148
+ export function formatDayTime(date, locale) {
149
+ return new Intl.DateTimeFormat(locale, {
150
+ dateStyle: 'medium',
151
+ timeStyle: 'short',
152
+ hour12: false,
153
+ }).format(date);
154
+ }
155
+ /** Numeric form for text fields, e.g. "08/08/2024" or "08/08/2024, 00:00". */
156
+ export function formatNumeric(date, locale, withTime) {
157
+ const day = new Intl.DateTimeFormat(locale, {
158
+ year: 'numeric',
159
+ month: '2-digit',
160
+ day: '2-digit',
161
+ }).format(date);
162
+ if (!withTime)
163
+ return day;
164
+ const time = new Intl.DateTimeFormat(locale, {
165
+ hour: '2-digit',
166
+ minute: '2-digit',
167
+ hour12: false,
168
+ }).format(date);
169
+ return `${day}, ${time}`;
170
+ }
171
+ // -----------------------------------------------------------------------------
172
+ // Parsing — numeric dates in the locale's own part order
173
+ // -----------------------------------------------------------------------------
174
+ const partOrderCache = new Map();
175
+ function getPartOrder(locale) {
176
+ let order = partOrderCache.get(locale);
177
+ if (!order) {
178
+ const parts = new Intl.DateTimeFormat(locale, {
179
+ year: 'numeric',
180
+ month: '2-digit',
181
+ day: '2-digit',
182
+ }).formatToParts(new Date(2024, 0, 15, 12));
183
+ order = parts
184
+ .filter((p) => ['year', 'month', 'day'].includes(p.type))
185
+ .map((p) => p.type);
186
+ partOrderCache.set(locale, order);
187
+ }
188
+ return order;
189
+ }
190
+ /**
191
+ * Parse a numeric date string ("08/08/2024", "8.8.2024, 14:30") using the
192
+ * locale's part order. Returns null on anything that doesn't resolve to a
193
+ * real calendar day. Two-digit years are rejected rather than guessed.
194
+ */
195
+ export function parseNumeric(text, locale) {
196
+ const groups = text.match(/\d+/g);
197
+ if (!groups || groups.length < 3 || groups.length > 5)
198
+ return null;
199
+ const order = getPartOrder(locale);
200
+ const dateParts = { year: 0, month: 0, day: 0 };
201
+ order.forEach((type, i) => {
202
+ dateParts[type] = Number(groups[i]);
203
+ });
204
+ const { year, month, day } = dateParts;
205
+ if (String(year).length < 4 || month < 1 || month > 12 || day < 1 || day > 31)
206
+ return null;
207
+ const hour = groups.length >= 4 ? Number(groups[3]) : 0;
208
+ const minute = groups.length >= 5 ? Number(groups[4]) : 0;
209
+ if (hour > 23 || minute > 59)
210
+ return null;
211
+ const parsed = new Date(year, month - 1, day, hour, minute, 0, 0);
212
+ // Reject overflowed days (e.g. Feb 31 rolling into March).
213
+ if (parsed.getMonth() !== month - 1 || parsed.getDate() !== day)
214
+ return null;
215
+ return parsed;
216
+ }
217
+ // -----------------------------------------------------------------------------
218
+ // Locale resolution + shared preset config (lives here so component files
219
+ // export only components — react-refresh constraint).
220
+ // -----------------------------------------------------------------------------
221
+ export function resolveLocale(locale) {
222
+ if (locale)
223
+ return locale;
224
+ if (typeof document !== 'undefined' && document.documentElement.lang) {
225
+ return document.documentElement.lang;
226
+ }
227
+ return 'en-US';
228
+ }
@@ -0,0 +1,8 @@
1
+ export { Calendar } from './Calendar';
2
+ export { DatePicker } from './DatePicker';
3
+ export { DateRangePicker } from './DateRangePicker';
4
+ export { defaultDateRangePresets } from './presets';
5
+ export { addDays, addMonths, addYears, isSameDay, withDay, } from './date-utils';
6
+ export type { DateRange, WeekStart } from './date-utils';
7
+ export type { CalendarProps, CalendarLabels, DatePickerProps, DatePickerLabels, DateRangePickerProps, DateRangePickerLabels, DateRangePreset, } from './types';
8
+ export { defaultCalendarLabels, defaultDatePickerLabels, defaultDateRangePickerLabels, } from './types';
@@ -0,0 +1,6 @@
1
+ export { Calendar } from './Calendar.js';
2
+ export { DatePicker } from './DatePicker.js';
3
+ export { DateRangePicker } from './DateRangePicker.js';
4
+ export { defaultDateRangePresets } from './presets.js';
5
+ export { addDays, addMonths, addYears, isSameDay, withDay, } from './date-utils.js';
6
+ export { defaultCalendarLabels, defaultDatePickerLabels, defaultDateRangePickerLabels, } from './types.js';
@@ -0,0 +1,3 @@
1
+ import type { DateRangePreset } from './types';
2
+ /** The standard quick-range rail: Today … Last month. */
3
+ export declare const defaultDateRangePresets: DateRangePreset[];
@@ -0,0 +1,37 @@
1
+ import { addDays, addMonths, startOfMonth, startOfWeek } from './date-utils.js';
2
+ /** The standard quick-range rail: Today … Last month. */
3
+ export const defaultDateRangePresets = [
4
+ {
5
+ label: 'Today',
6
+ getRange: (now) => ({ from: now, to: now }),
7
+ },
8
+ {
9
+ label: 'Yesterday',
10
+ getRange: (now) => ({ from: addDays(now, -1), to: addDays(now, -1) }),
11
+ },
12
+ {
13
+ label: 'Last week',
14
+ getRange: (now) => {
15
+ const thisWeek = startOfWeek(now, 1);
16
+ return { from: addDays(thisWeek, -7), to: addDays(thisWeek, -1) };
17
+ },
18
+ },
19
+ {
20
+ label: 'Last 2 weeks',
21
+ getRange: (now) => {
22
+ const thisWeek = startOfWeek(now, 1);
23
+ return { from: addDays(thisWeek, -14), to: addDays(thisWeek, -1) };
24
+ },
25
+ },
26
+ {
27
+ label: 'This month',
28
+ getRange: (now) => ({ from: startOfMonth(now), to: now }),
29
+ },
30
+ {
31
+ label: 'Last month',
32
+ getRange: (now) => {
33
+ const first = startOfMonth(addMonths(now, -1));
34
+ return { from: first, to: addDays(startOfMonth(now), -1) };
35
+ },
36
+ },
37
+ ];
@@ -0,0 +1,138 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { DateRange, WeekStart } from './date-utils';
3
+ export type { DateRange, WeekStart };
4
+ /**
5
+ * Props shared by everything that renders a day grid. All values are plain
6
+ * Date objects with wall-clock semantics — the components never do timezone
7
+ * math; the host owns interpretation.
8
+ */
9
+ export type CalendarBaseProps = {
10
+ /** Earliest selectable day (inclusive, time-of-day ignored). */
11
+ min?: Date;
12
+ /** Latest selectable day (inclusive, time-of-day ignored). */
13
+ max?: Date;
14
+ /** Per-day disable hook, applied on top of min/max. */
15
+ isDayDisabled?: (day: Date) => boolean;
16
+ /** First day of the week. 0 = Sunday … 6 = Saturday. @default 1 (Monday) */
17
+ weekStartsOn?: WeekStart;
18
+ /**
19
+ * BCP 47 locale for month/weekday names and numeric formats.
20
+ * @default the document language, falling back to 'en-US'
21
+ */
22
+ locale?: string;
23
+ };
24
+ /**
25
+ * Overridable strings for Calendar i18n. Month and weekday *names* come from
26
+ * Intl via `locale`; these cover the chrome.
27
+ */
28
+ export type CalendarLabels = {
29
+ prevMonth?: string;
30
+ nextMonth?: string;
31
+ prevYear?: string;
32
+ nextYear?: string;
33
+ /** Accessible label for the caption button that opens the month picker. */
34
+ openMonthPicker?: (caption: string) => string;
35
+ /** Accessible label for a day cell. */
36
+ day?: (formatted: string) => string;
37
+ today?: string;
38
+ selected?: string;
39
+ };
40
+ export declare const defaultCalendarLabels: Required<CalendarLabels>;
41
+ export type CalendarProps = CalendarBaseProps & {
42
+ /** Selected day. */
43
+ value?: Date | null;
44
+ /**
45
+ * Day clicked/chosen. Receives the calendar day at noon; callers merge
46
+ * their own time-of-day (see `withDay`).
47
+ */
48
+ onChange?: (day: Date) => void;
49
+ /** Controlled visible month (any day within it). */
50
+ month?: Date;
51
+ /** Initial visible month for uncontrolled usage. */
52
+ defaultMonth?: Date;
53
+ onMonthChange?: (month: Date) => void;
54
+ /**
55
+ * Range to paint (endpoints + in-between fill). Painting only — range
56
+ * *selection* logic lives in DateRangePicker.
57
+ */
58
+ range?: DateRange | null;
59
+ /** Hide the caption/nav bar (for multi-month layouts that render their own). */
60
+ labels?: CalendarLabels;
61
+ 'aria-label'?: string;
62
+ className?: string;
63
+ };
64
+ export type DatePickerLabels = {
65
+ /** Popover heading. */
66
+ title?: string;
67
+ titleWithTime?: string;
68
+ now?: string;
69
+ close?: string;
70
+ /** Placeholder on the trigger when empty. */
71
+ placeholder?: string;
72
+ timeSection?: string;
73
+ dateSection?: string;
74
+ month?: string;
75
+ dayOfMonth?: string;
76
+ year?: string;
77
+ hour?: string;
78
+ minute?: string;
79
+ am?: string;
80
+ pm?: string;
81
+ meridiem?: string;
82
+ /** Trigger aria-label when a value is set: `label(formattedValue)`. */
83
+ trigger?: (formatted: string) => string;
84
+ triggerEmpty?: string;
85
+ };
86
+ export declare const defaultDatePickerLabels: Required<DatePickerLabels>;
87
+ export type DatePickerProps = CalendarBaseProps & {
88
+ value?: Date | null;
89
+ defaultValue?: Date | null;
90
+ onChange?: (value: Date) => void;
91
+ /** Include the time field (and format the trigger with time). */
92
+ withTime?: boolean;
93
+ /** 12-hour time UI with an AM/PM toggle. @default true */
94
+ hour12?: boolean;
95
+ /** Display-only zone badge next to the time field, e.g. "UTC+0". */
96
+ zoneLabel?: ReactNode;
97
+ disabled?: boolean;
98
+ labels?: DatePickerLabels;
99
+ calendarLabels?: CalendarLabels;
100
+ 'aria-label'?: string;
101
+ className?: string;
102
+ id?: string;
103
+ };
104
+ export type DateRangePreset = {
105
+ label: string;
106
+ /** Resolve the preset against "now" so stories/tests can pin the clock. */
107
+ getRange: (now: Date) => DateRange;
108
+ };
109
+ export type DateRangePickerLabels = {
110
+ from?: string;
111
+ to?: string;
112
+ apply?: string;
113
+ cancel?: string;
114
+ placeholder?: string;
115
+ presets?: string;
116
+ trigger?: (formatted: string) => string;
117
+ triggerEmpty?: string;
118
+ };
119
+ export declare const defaultDateRangePickerLabels: Required<DateRangePickerLabels>;
120
+ export type DateRangePickerProps = CalendarBaseProps & {
121
+ value?: DateRange | null;
122
+ defaultValue?: DateRange | null;
123
+ /** Fires on Apply with a complete range. */
124
+ onChange?: (range: DateRange) => void;
125
+ /** Show times in the trigger and From/To fields. */
126
+ withTime?: boolean;
127
+ /**
128
+ * Quick-range presets for the side rail; `false` hides the rail.
129
+ * @default the standard six (Today … Last month)
130
+ */
131
+ presets?: DateRangePreset[] | false;
132
+ disabled?: boolean;
133
+ labels?: DateRangePickerLabels;
134
+ calendarLabels?: CalendarLabels;
135
+ 'aria-label'?: string;
136
+ className?: string;
137
+ id?: string;
138
+ };
@@ -0,0 +1,39 @@
1
+ export const defaultCalendarLabels = {
2
+ prevMonth: 'Previous month',
3
+ nextMonth: 'Next month',
4
+ prevYear: 'Previous year',
5
+ nextYear: 'Next year',
6
+ openMonthPicker: (caption) => `${caption} — choose month and year`,
7
+ day: (formatted) => formatted,
8
+ today: 'today',
9
+ selected: 'selected',
10
+ };
11
+ export const defaultDatePickerLabels = {
12
+ title: 'Pick a Date',
13
+ titleWithTime: 'Pick a Date and Time',
14
+ now: 'Now',
15
+ close: 'Close',
16
+ placeholder: 'Select date',
17
+ timeSection: 'Time',
18
+ dateSection: 'Date',
19
+ month: 'Month',
20
+ dayOfMonth: 'Day',
21
+ year: 'Year',
22
+ hour: 'Hour',
23
+ minute: 'Minute',
24
+ am: 'AM',
25
+ pm: 'PM',
26
+ meridiem: 'AM or PM',
27
+ trigger: (formatted) => `Change date, ${formatted}`,
28
+ triggerEmpty: 'Select date',
29
+ };
30
+ export const defaultDateRangePickerLabels = {
31
+ from: 'From',
32
+ to: 'To',
33
+ apply: 'Apply',
34
+ cancel: 'Cancel',
35
+ placeholder: 'Select date range',
36
+ presets: 'Quick ranges',
37
+ trigger: (formatted) => `Change date range, ${formatted}`,
38
+ triggerEmpty: 'Select date range',
39
+ };
@@ -451,7 +451,7 @@ function MultiSelectTriggerComponent({ asChild = false, className, children, })
451
451
  return (_jsxs("span", { className: "tui-multiselect__chips", children: [visibleChips.map((opt) => (_jsx("span", { className: "tui-multiselect__chip", children: opt.textValue }, toKey(opt.value)))), overflow > 0 && (_jsx("span", { className: "tui-multiselect__more", children: labels.more(overflow) }))] }));
452
452
  };
453
453
  // Default trigger content (when not using asChild or custom children)
454
- const defaultTriggerContent = (_jsxs(_Fragment, { children: [_jsx("span", { className: "tui-multiselect__value", children: renderTriggerContent() }), hasSelection && (_jsx("span", { className: "tui-multiselect__clear", onClick: handleClearClick, "aria-hidden": "true", children: _jsx(Icon, { name: "system/close", size: "sm" }) })), _jsx(Icon, { name: "system/chevron-down", size: "sm", className: "tui-multiselect__icon", "aria-hidden": "true" })] }));
454
+ const defaultTriggerContent = (_jsxs(_Fragment, { children: [_jsx("span", { className: "tui-multiselect__value", children: renderTriggerContent() }), hasSelection && (_jsx("span", { className: "tui-multiselect__clear", onClick: handleClearClick, "aria-hidden": "true", children: _jsx(Icon, { name: "system/close" }) })), _jsx(Icon, { name: "system/chevron-down", className: "tui-multiselect__icon", "aria-hidden": "true" })] }));
455
455
  // Generate status message for screen readers
456
456
  const statusMessage = labels.status(selectedOptions.length, max);
457
457
  // Live region (rendered outside button, sibling to trigger)
@@ -3,7 +3,7 @@ import type { JSX } from 'react';
3
3
  import type { ThemeStatus, SizeStandard } from '../../types';
4
4
  type RootAs = 'section' | 'div';
5
5
  type HeadingAs = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
6
- type NoticeTheme = ThemeStatus;
6
+ type NoticeTheme = ThemeStatus | 'neutral';
7
7
  type NoticeAnnounce = 'off' | 'polite' | 'assertive';
8
8
  export type NoticeExitAnimation = 'collapse' | 'fade' | 'none';
9
9
  type CommonProps = {
@@ -68,7 +68,7 @@ type SlotProps = React.HTMLAttributes<HTMLDivElement> & {
68
68
  className?: string;
69
69
  children?: React.ReactNode;
70
70
  };
71
- type HeadSlotProps = SlotProps & {
71
+ type HeadSlotProps = Omit<SlotProps, 'title'> & {
72
72
  /** Icon content */
73
73
  icon?: React.ReactNode;
74
74
  /** Title text */
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import React, { useCallback, useEffect, useId, useMemo, useRef, useState, cloneElement, isValidElement, } from 'react';
3
- import { useFloating, offset, flip, shift, autoUpdate, FloatingPortal, useDismiss, useInteractions, useRole, FloatingFocusManager, } from '@floating-ui/react';
3
+ import { useFloating, offset, flip, shift, size, autoUpdate, FloatingPortal, useDismiss, useInteractions, useRole, FloatingFocusManager, } from '@floating-ui/react';
4
4
  import { cx } from '../../utils/cx.js';
5
5
  import { getPortalRootFor } from '../../utils/portal.js';
6
6
  import { PopoverContext, usePopoverContext } from './PopoverContext.js';
@@ -114,7 +114,21 @@ function PopoverContentInner({ side = 'bottom', align = 'start', sideOffset = 4,
114
114
  placement: toPlacement(side, align),
115
115
  open: true, // Always true when mounted (gate handles the conditional)
116
116
  onOpenChange: setOpen,
117
- middleware: [offset(sideOffset), flip(), shift({ padding: 8 })],
117
+ middleware: [
118
+ offset(sideOffset),
119
+ flip(),
120
+ shift({ padding: 8 }),
121
+ // When even the best placement can't fit the content, expose the
122
+ // available height so the panel can cap itself and scroll (see
123
+ // --tui-popover-available-height in styles.scss). Output var, not an
124
+ // API token — the middleware writes it, the stylesheet reads it.
125
+ size({
126
+ padding: 8,
127
+ apply({ availableHeight, elements }) {
128
+ elements.floating.style.setProperty('--tui-popover-available-height', `${Math.floor(availableHeight)}px`);
129
+ },
130
+ }),
131
+ ],
118
132
  whileElementsMounted: autoUpdate,
119
133
  });
120
134
  // Sync reference element
@@ -1,9 +1,9 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { RovingItemRecord } from '../../utils/use-roving-group';
3
- import type { SizeStandard } from '../../types/sizes';
3
+ import type { Size } from '../../types/sizes';
4
4
  export type SegmentedControlValue = string | number;
5
5
  export type SegmentedControlVariant = 'pill' | 'outline' | 'underline';
6
- export type SegmentedControlSize = SizeStandard;
6
+ export type SegmentedControlSize = Size;
7
7
  export type SegmentedControlOrientation = 'horizontal' | 'vertical';
8
8
  export type SegmentedControlProps = {
9
9
  /** Controlled selected value */
@@ -429,7 +429,7 @@ function SelectTriggerComponent({ asChild = false, className, children, }) {
429
429
  // Wrap in a relative container so the clear button can be a sibling of the
430
430
  // trigger <button> — nesting <button> inside <button> is invalid HTML and
431
431
  // causes browsers to eject the inner button via the adoption agency algorithm.
432
- return (_jsxs("div", { className: cx('tui-select__trigger-wrap', showClear && 'has-clear'), children: [_jsxs("button", { ref: refs.setReference, type: "button", className: cx('tui-select__trigger', sizeClass, className), disabled: disabled, ...triggerProps, children: [_jsx("span", { className: "tui-select__value", children: displayText ?? _jsx("span", { className: "tui-select__placeholder", children: placeholder }) }), _jsx(Icon, { name: "system/chevron-down", size: "sm", className: "tui-select__icon", "aria-hidden": "true" })] }), showClear && (_jsx("button", { type: "button", className: "tui-select__clear", onClick: handleClear, "aria-label": clearLabel, tabIndex: -1, children: _jsx(Icon, { name: "system/close", size: "sm" }) }))] }));
432
+ return (_jsxs("div", { className: cx('tui-select__trigger-wrap', showClear && 'has-clear'), children: [_jsxs("button", { ref: refs.setReference, type: "button", className: cx('tui-select__trigger', sizeClass, className), disabled: disabled, ...triggerProps, children: [_jsx("span", { className: "tui-select__value", children: displayText ?? _jsx("span", { className: "tui-select__placeholder", children: placeholder }) }), _jsx(Icon, { name: "system/chevron-down", className: "tui-select__icon", "aria-hidden": "true" })] }), showClear && (_jsx("button", { type: "button", className: "tui-select__clear", onClick: handleClear, "aria-label": clearLabel, tabIndex: -1, children: _jsx(Icon, { name: "system/close" }) }))] }));
433
433
  }
434
434
  SelectTriggerComponent.displayName = 'Select.Trigger';
435
435
  // =============================================================================
@@ -499,7 +499,7 @@ function SelectOptionComponent({ value: optionValue, disabled = false, textValue
499
499
  }, [disabled, optionValue, textValue, setValue, setOpen]);
500
500
  return (_jsxs("div", { ref: ref, id: index >= 0 ? `${listboxId}-option-${index}` : undefined, role: "option", className: cx('tui-select__option', className), "aria-selected": isSelected, "aria-disabled": disabled || undefined, "data-highlighted": isHighlighted || undefined, "data-disabled": disabled || undefined, ...getItemProps({
501
501
  onClick: handleClick,
502
- }), children: [_jsx("span", { className: "tui-select__option-content", children: children }), isSelected && (_jsx(Icon, { name: "system/check", size: "sm", className: "tui-select__option-check", "aria-hidden": "true" }))] }));
502
+ }), children: [_jsx("span", { className: "tui-select__option-content", children: children }), isSelected && (_jsx(Icon, { name: "system/check", className: "tui-select__option-check", "aria-hidden": "true" }))] }));
503
503
  }
504
504
  SelectOptionComponent.displayName = 'Select.Option';
505
505
  // =============================================================================
@@ -284,7 +284,7 @@ function Tab({ value, icon, 'aria-label': ariaLabel, disabled = false, className
284
284
  onSelect(value);
285
285
  }
286
286
  };
287
- return (_jsxs("button", { ref: callbackRef, type: "button", role: "tab", id: tabId, className: cx('tui-tabs__tab', className), "data-tui-tab-value": value, "data-state": isActive ? 'active' : 'inactive', "aria-selected": isActive, "aria-controls": panelId, "aria-label": ariaLabel, "aria-disabled": disabled || undefined, tabIndex: disabled ? -1 : isFocusable ? 0 : -1, "data-disabled": disabled || undefined, onClick: handleClick, children: [icon && _jsx(Icon, { name: icon, size: "md", "aria-hidden": "true" }), children && _jsx("span", { className: "tui-tabs__tab-label", children: children })] }));
287
+ return (_jsxs("button", { ref: callbackRef, type: "button", role: "tab", id: tabId, className: cx('tui-tabs__tab', className), "data-tui-tab-value": value, "data-state": isActive ? 'active' : 'inactive', "aria-selected": isActive, "aria-controls": panelId, "aria-label": ariaLabel, "aria-disabled": disabled || undefined, tabIndex: disabled ? -1 : isFocusable ? 0 : -1, "data-disabled": disabled || undefined, onClick: handleClick, children: [icon && _jsx(Icon, { name: icon, "aria-hidden": "true" }), children && _jsx("span", { className: "tui-tabs__tab-label", children: children })] }));
288
288
  }
289
289
  // =============================================================================
290
290
  // Tabs.Panel
@@ -10,6 +10,7 @@ export { Chip } from './Chip';
10
10
  export { ChipGroup } from './ChipGroup';
11
11
  export { Chips } from './Chips';
12
12
  export { ContentIndicator } from './ContentIndicator';
13
+ export { Calendar, DatePicker, DateRangePicker, defaultDateRangePresets, defaultCalendarLabels, defaultDatePickerLabels, defaultDateRangePickerLabels, } from './DatePicker';
13
14
  export { Combobox, ComboboxContent, ComboboxOption, ComboboxGroup, ComboboxLabel, useCombobox } from './Combobox';
14
15
  export { Dropdown, DropdownTrigger, DropdownContent, DropdownItem, DropdownSeparator, DropdownHeader, useDropdown } from './Dropdown';
15
16
  export { Field } from './Field';
@@ -8,6 +8,7 @@ export { Chip } from './Chip/index.js';
8
8
  export { ChipGroup } from './ChipGroup/index.js';
9
9
  export { Chips } from './Chips/index.js';
10
10
  export { ContentIndicator } from './ContentIndicator/index.js';
11
+ export { Calendar, DatePicker, DateRangePicker, defaultDateRangePresets, defaultCalendarLabels, defaultDatePickerLabels, defaultDateRangePickerLabels, } from './DatePicker/index.js';
11
12
  export { Combobox, ComboboxContent, ComboboxOption, ComboboxGroup, ComboboxLabel, useCombobox } from './Combobox/index.js';
12
13
  export { Dropdown, DropdownTrigger, DropdownContent, DropdownItem, DropdownSeparator, DropdownHeader, useDropdown } from './Dropdown/index.js';
13
14
  export { Field } from './Field/index.js';
package/icons/icons.svg CHANGED
@@ -28,7 +28,7 @@
28
28
  <symbol id="tui-lms-edit-externally" viewBox="0 0 24 24"><path d="m19 7-3-3-8.5 8.5-1 4 4-1zM12 18.5H5V20h7z"/></symbol>
29
29
  <symbol id="tui-lms-free-form" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M17 4.25a2.747 2.747 0 0 1 .086 5.495l-.718 2.872a2.75 2.75 0 1 1-3.751 3.751l-2.872.718A2.747 2.747 0 0 1 4.25 17c0-1.258.846-2.317 2-2.644V9.643A2.748 2.748 0 0 1 7 4.25a2.75 2.75 0 0 1 2.4 4.089l4.26 4.26a2.7 2.7 0 0 1 1.253-.345l.718-2.872A2.75 2.75 0 0 1 14.25 7 2.75 2.75 0 0 1 17 4.25M7 15.75a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m8-2a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M8.339 9.4a2.7 2.7 0 0 1-.589.243v4.713a2.75 2.75 0 0 1 1.632 1.275l2.872-.718c.014-.454.137-.88.346-1.253zM7 5.75a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5m10 0a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5" clip-rule="evenodd"/></symbol>
30
30
  <symbol id="tui-lms-help-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m-.75 11v1.5h1.5V15zM12 7.25a3 3 0 0 0-3 3h1.5a1.5 1.5 0 1 1 1.667 1.491c-.465.052-.917.438-.917 1.009V14h1.5v-.849A2.997 2.997 0 0 0 12 7.25" clip-rule="evenodd"/></symbol>
31
- <symbol id="tui-lms-help-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4.75a7.25 7.25 0 1 0 0 14.5 7.25 7.25 0 0 0 0-14.5M3.25 12a8.75 8.75 0 1 1 17.5 0 8.75 8.75 0 0 1-17.5 0M9 10.25a3 3 0 1 1 3.75 2.905V14h-1.5v-1.25c0-.57.452-.958.917-1.01a1.5 1.5 0 1 0-1.667-1.49zm2.25 6.25V15h1.5v1.5z" clip-rule="evenodd"/></symbol>
31
+ <symbol id="tui-lms-help-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 10.25C9 8.59315 10.3431 7.25 12 7.25C13.6569 7.25 15 8.59315 15 10.25C15 11.6481 14.0442 12.8221 12.75 13.1553V14H11.25V12.75C11.25 12.1791 11.7023 11.7922 12.1673 11.7408C12.9167 11.6581 13.5 11.0217 13.5 10.25C13.5 9.42157 12.8284 8.75 12 8.75C11.1716 8.75 10.5 9.42157 10.5 10.25H9ZM11.25 16.5V15H12.75V16.5H11.25Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 18.5C15.5899 18.5 18.5 15.5899 18.5 12C18.5 8.41015 15.5899 5.5 12 5.5C8.41015 5.5 5.5 8.41015 5.5 12C5.5 15.5899 8.41015 18.5 12 18.5ZM20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12Z"/></symbol>
32
32
  <symbol id="tui-lms-hidden" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19.778 4.222 4.222 19.778l-1.06-1.06 2.942-2.944C4.035 14.067 3 12 3 12s3-6 9-6c1.204 0 2.286.243 3.248.63l3.47-3.469zM12 7.5c-2.462 0-4.353 1.224-5.69 2.56A12 12 0 0 0 4.742 12q.033.052.07.105c.334.502.835 1.17 1.5 1.835q.396.397.858.769l1.534-1.534a3.5 3.5 0 0 1 4.472-4.472l.896-.896A7.2 7.2 0 0 0 12 7.5" clip-rule="evenodd"/><path d="M17.897 8.224C19.965 9.932 21 12 21 12s-3 6-9 6a8.7 8.7 0 0 1-3.249-.63l1.176-1.177c.64.193 1.33.307 2.073.307 2.462 0 4.353-1.224 5.69-2.56A12 12 0 0 0 19.258 12l-.07-.105a12 12 0 0 0-1.5-1.835 11 11 0 0 0-.859-.77z"/><path d="M15.297 10.823a3.5 3.5 0 0 1-4.474 4.474z"/></symbol>
33
33
  <symbol id="tui-lms-info" viewBox="0 0 24 24"><path d="M13 11v6h-2v-6zM13 9V7h-2v2z"/><path fill-rule="evenodd" d="M3.25 12a8.75 8.75 0 1 1 17.5 0 8.75 8.75 0 0 1-17.5 0M12 4.75a7.25 7.25 0 1 0 0 14.5 7.25 7.25 0 0 0 0-14.5" clip-rule="evenodd"/></symbol>
34
34
  <symbol id="tui-lms-inspector-sidebar" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M14 5.5H6a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h8zm1.5 0H18a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5h-2.5zM6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2" clip-rule="evenodd"/></symbol>
@@ -132,7 +132,7 @@
132
132
  <symbol id="tui-reaction-triangle-up-fill" viewBox="0 0 24 24"><path d="m4 17 8-10 8 10z"/></symbol>
133
133
  <symbol id="tui-reaction-triangle-up-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 17h16L12 7zm3.12-1.5h9.76L12 9.401z" clip-rule="evenodd"/></symbol>
134
134
  <symbol id="tui-system-alert-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16m-1-7V7h2v6zm0 2v2h2v-2z" clip-rule="evenodd"/></symbol>
135
- <symbol id="tui-system-alert-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4.75a7.25 7.25 0 1 0 0 14.5 7.25 7.25 0 0 0 0-14.5M3.25 12a8.75 8.75 0 1 1 17.5 0 8.75 8.75 0 0 1-17.5 0" clip-rule="evenodd"/><path d="M13 7h-2v6h2zm0 8h-2v2h2z"/></symbol>
135
+ <symbol id="tui-system-alert-circle-outline" viewBox="0 0 24 24"><path d="M13 17H11V15H13V17Z"/><path d="M13 13H11V7H13V13Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4ZM12 5.5C8.41015 5.5 5.5 8.41015 5.5 12C5.5 15.5899 8.41015 18.5 12 18.5C15.5899 18.5 18.5 15.5899 18.5 12C18.5 8.41015 15.5899 5.5 12 5.5Z"/></symbol>
136
136
  <symbol id="tui-system-arrow-clockwise" viewBox="0 0 24 24"><path d="m19.306 9.495-5.27.258-.073-1.498 2.93-.144a6.25 6.25 0 1 0 1.144 5.507l1.449.388a7.75 7.75 0 1 1-1.69-7.15l-.01-2.853 1.5-.005z"/></symbol>
137
137
  <symbol id="tui-system-arrow-counterclockwise" viewBox="0 0 24 24"><path d="m4.43 9.495 5.27.258.073-1.498-2.93-.144a6.25 6.25 0 1 1-1.144 5.507l-1.45.388a7.75 7.75 0 1 0 1.69-7.15l.01-2.853-1.5-.005z"/></symbol>
138
138
  <symbol id="tui-system-arrow-down" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m6.47 14.53 1.06-1.06 3.72 3.72V4h1.5v13.19l3.72-3.72 1.06 1.06L12 20.06z" clip-rule="evenodd"/></symbol>
@@ -146,6 +146,8 @@
146
146
  <symbol id="tui-system-bolt-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m11.675 11.5 2.007-4.678-5.35 4.678zm.66 1-2.008 4.68 5.352-4.68zm-5.993-1.253a1 1 0 0 0-.278 1.106c.147.388.52.647.909.647h3.515l-2.405 5.606a1 1 0 0 0 1.58 1.147l8.006-7a.95.95 0 0 0 .25-1.106.94.94 0 0 0-.91-.647h-3.487l2.405-5.606a1.002 1.002 0 0 0-1.58-1.147z" clip-rule="evenodd"/></symbol>
147
147
  <symbol id="tui-system-bolt-plus-fill" viewBox="0 0 24 24"><path d="M13.522 11h3.487c.416 0 .79.26.91.647a.95.95 0 0 1-.25 1.106l-.603.527a4.5 4.5 0 0 0-5.957 5.208l-1.447 1.265a1 1 0 0 1-1.58-1.147L10.489 13H6.973a.995.995 0 0 1-.909-.647 1 1 0 0 1 .278-1.106l8.005-7a1.002 1.002 0 0 1 1.58 1.147z"/><path fill-rule="evenodd" d="M15.5 21a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7m2.5-3.5a.577.577 0 0 1-.577.577h-1.346v1.346a.577.577 0 1 1-1.154 0v-1.346h-1.346a.577.577 0 0 1 0-1.154h1.346v-1.346a.577.577 0 1 1 1.154 0v1.346h1.346c.32 0 .577.258.577.577" clip-rule="evenodd"/></symbol>
148
148
  <symbol id="tui-system-bolt-plus-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12.335 12.5h3.344l-.593.519q.204-.02.414-.019c.55 0 1.078.099 1.566.28l.603-.527a.95.95 0 0 0 .25-1.106.94.94 0 0 0-.91-.647h-3.487l2.405-5.606a1.002 1.002 0 0 0-1.58-1.147l-8.005 7a1 1 0 0 0-.278 1.106c.147.388.52.647.909.647h3.515l-2.405 5.606a1 1 0 0 0 1.58 1.147l1.446-1.265a4.5 4.5 0 0 1 .004-1.996l-.786.687zm-.66-1H8.33l5.35-4.678z" clip-rule="evenodd"/><path fill-rule="evenodd" d="M19 17.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0m-1.577.577a.577.577 0 0 0 0-1.154h-1.346v-1.346a.577.577 0 1 0-1.154 0v1.346h-1.346a.577.577 0 1 0 0 1.154h1.346v1.346a.577.577 0 1 0 1.154 0v-1.346z" clip-rule="evenodd"/></symbol>
149
+ <symbol id="tui-system-check-circle-fill" viewBox="0 0 24 24"><path d="M12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4ZM10.9346 13.7754L8.67285 11.5039L7.69727 12.4746L10.9307 15.7217L16.6758 10.002L15.7041 9.02637L10.9346 13.7754Z"/></symbol>
150
+ <symbol id="tui-system-check-circle-outline" viewBox="0 0 24 24"><path d="M16.6758 10.002L10.9307 15.7217L7.69727 12.4746L8.67285 11.5039L10.9346 13.7754L15.7041 9.02637L16.6758 10.002Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4ZM12 5.5C8.41015 5.5 5.5 8.41015 5.5 12C5.5 15.5899 8.41015 18.5 12 18.5C15.5899 18.5 18.5 15.5899 18.5 12C18.5 8.41015 15.5899 5.5 12 5.5Z"/></symbol>
149
151
  <symbol id="tui-system-check-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m17.93 7.978-7.2 9.681-4.515-3.358.895-1.204 3.312 2.463 6.303-8.477z" clip-rule="evenodd"/></symbol>
150
152
  <symbol id="tui-system-check" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.687 16.567 18.14 3.99l1.72 1.02-8.547 14.423-7.382-5.111 1.138-1.644z" clip-rule="evenodd"/></symbol>
151
153
  <symbol id="tui-system-checklist" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 7.75h-8.89v-1.5H20zm0 5h-8.89v-1.5H20zM6 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4m0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/><path fill-rule="evenodd" d="M6 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2m0 1a2 2 0 1 0 0-4 2 2 0 0 0 0 4" clip-rule="evenodd"/><path d="M20 17.75h-8.89v-1.5H20z"/><path fill-rule="evenodd" d="M8.85 4.821 5.872 8.83 3.554 7.1l.896-1.202 1.115.831 2.083-2.802z" clip-rule="evenodd"/></symbol>
@@ -157,6 +159,8 @@
157
159
  <symbol id="tui-system-chevron-right" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.555 5.996 16.013 12l-5.458 6.005-1.11-1.01L13.986 12 9.445 7.005z" clip-rule="evenodd"/></symbol>
158
160
  <symbol id="tui-system-chevron-up-small" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m8.014 13.168 3.988-3.418 3.988 3.418-.976 1.14-3.012-2.582-3.012 2.581z" clip-rule="evenodd"/></symbol>
159
161
  <symbol id="tui-system-chevron-up" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M5.996 13.445 12 7.986l6.005 5.459-1.01 1.11L12 10.014l-4.995 4.54z" clip-rule="evenodd"/></symbol>
162
+ <symbol id="tui-system-circle-fill" viewBox="0 0 24 24"><path d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16"/></symbol>
163
+ <symbol id="tui-system-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 4a8 8 0 1 1 0 16 8 8 0 0 1 0-16m0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13" clip-rule="evenodd"/></symbol>
160
164
  <symbol id="tui-system-circle-small-fill" viewBox="0 0 24 24"><path d="M12 16a4 4 0 1 0 0-8 4 4 0 0 0 0 8"/></symbol>
161
165
  <symbol id="tui-system-circle-small-outline" viewBox="0 0 24 24"><path d="M14.5 12a2.5 2.5 0 1 0-2.5 2.5V16a4 4 0 1 1 0-8 4 4 0 0 1 0 8v-1.5a2.5 2.5 0 0 0 2.5-2.5"/></symbol>
162
166
  <symbol id="tui-system-close-circle-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0m-4.995 4.066L12 13.06l-3.005 3.005-1.06-1.06L10.94 12 7.934 8.995l1.06-1.06L12 10.94l3.005-3.006 1.06 1.061L13.062 12l3.005 3.005z" clip-rule="evenodd"/></symbol>