@tangible/ui 0.2.28 → 0.2.30

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 (101) hide show
  1. package/components/Accordion/Accordion.js +2 -1
  2. package/components/Avatar/Avatar.js +6 -2
  3. package/components/Button/types.d.ts +5 -5
  4. package/components/Chip/Chip.js +2 -1
  5. package/components/ChipGroup/ChipGroup.js +1 -1
  6. package/components/ChipGroup/types.d.ts +2 -1
  7. package/components/Chips/Chips.d.ts +2 -0
  8. package/components/Chips/Chips.js +2 -16
  9. package/components/ColorPicker/ColorField.d.ts +3 -3
  10. package/components/ColorPicker/ColorField.js +2 -1
  11. package/components/ColorPicker/ColorPicker.js +2 -1
  12. package/components/ColorPicker/usePointerDrag.d.ts +7 -0
  13. package/components/ColorPicker/usePointerDrag.js +15 -1
  14. package/components/Combobox/Combobox.js +3 -2
  15. package/components/ContentIndicator/types.d.ts +3 -3
  16. package/components/DatePicker/Calendar.js +4 -3
  17. package/components/DatePicker/DatePicker.js +3 -2
  18. package/components/DatePicker/PickerTrigger.js +2 -1
  19. package/components/DatePicker/types.d.ts +1 -1
  20. package/components/GradientPicker/GradientBar.js +3 -1
  21. package/components/GradientPicker/GradientPicker.js +4 -3
  22. package/components/Icon/Icon.d.ts +9 -2
  23. package/components/Icon/Icon.js +4 -3
  24. package/components/Icon/index.d.ts +1 -1
  25. package/components/IconButton/IconButton.js +13 -45
  26. package/components/IconButton/IconButtonCore.d.ts +9 -0
  27. package/components/IconButton/IconButtonCore.js +76 -0
  28. package/components/IconButton/types.d.ts +4 -3
  29. package/components/Modal/Modal.d.ts +12 -3
  30. package/components/Modal/Modal.js +38 -15
  31. package/components/MoveHandle/MoveHandle.js +3 -2
  32. package/components/MultiCombobox/MultiCombobox.js +3 -2
  33. package/components/MultiSelect/MultiSelect.js +3 -2
  34. package/components/NavMenu/NavMenu.js +2 -1
  35. package/components/NavMenu/types.d.ts +3 -3
  36. package/components/Notice/Notice.d.ts +7 -0
  37. package/components/Notice/Notice.js +6 -5
  38. package/components/Pager/Pager.js +5 -4
  39. package/components/Rating/Rating.js +2 -1
  40. package/components/SearchInput/SearchInput.js +3 -2
  41. package/components/SearchSelect/SearchSelect.js +3 -2
  42. package/components/SecretInput/SecretInput.js +3 -2
  43. package/components/Select/Select.js +3 -2
  44. package/components/Sidebar/Sidebar.js +2 -1
  45. package/components/StepIndicator/StepIndicator.js +4 -2
  46. package/components/StepIndicator/types.d.ts +2 -2
  47. package/components/StepList/types.d.ts +2 -2
  48. package/components/Tabs/types.d.ts +3 -3
  49. package/components/Toast/Toast.d.ts +5 -1
  50. package/components/Toast/Toast.js +3 -3
  51. package/components/Tooltip/Tooltip.d.ts +1 -1
  52. package/components/Tooltip/Tooltip.js +28 -6
  53. package/components/Tooltip/index.d.ts +1 -1
  54. package/components/Tooltip/types.d.ts +18 -0
  55. package/components/index.d.ts +2 -2
  56. package/figma-tokens.json +6 -4
  57. package/icons/cred/index.js +1 -0
  58. package/icons/icons.svg +7 -3
  59. package/icons/lms/index.d.ts +0 -3
  60. package/icons/lms/index.js +6 -33
  61. package/icons/manifest.json +71 -9
  62. package/icons/membersync/index.js +1 -0
  63. package/icons/player/index.js +1 -0
  64. package/icons/reaction/index.js +1 -0
  65. package/icons/registry.d.ts +14 -0
  66. package/icons/registry.js +7 -0
  67. package/icons/system/index.d.ts +11 -0
  68. package/icons/system/index.js +48 -0
  69. package/package.json +9 -2
  70. package/skills/building-with-tui/SKILL.md +249 -17
  71. package/styles/all.css +1 -1
  72. package/styles/all.expanded.css +127 -13
  73. package/styles/all.expanded.unlayered.css +127 -13
  74. package/styles/all.unlayered.css +1 -1
  75. package/styles/app.css +41 -0
  76. package/styles/components/_bundle.scss +2 -0
  77. package/styles/components/button.scss +6 -1
  78. package/styles/components/card.scss +17 -1
  79. package/styles/components/chip-group.scss +45 -28
  80. package/styles/components/chips.scss +21 -0
  81. package/styles/components/color-picker.scss +15 -1
  82. package/styles/components/gradient-picker.scss +2 -2
  83. package/styles/components/modal.scss +61 -0
  84. package/styles/components/tooltip.scss +8 -1
  85. package/styles/core.css +1 -1
  86. package/styles/core.unlayered.css +1 -1
  87. package/styles/system/_text-styles.scss +4 -0
  88. package/styles/system/_tokens.scss +7 -2
  89. package/styles/utilities/_index.scss +3 -0
  90. package/tui-manifest.json +46 -19
  91. package/utils/focus-trap.d.ts +1 -24
  92. package/utils/focus-trap.js +2 -65
  93. package/utils/scroll-lock.d.ts +4 -0
  94. package/utils/scroll-lock.js +25 -0
  95. package/utils/tabbable.d.ts +29 -0
  96. package/utils/tabbable.js +74 -0
  97. package/vanilla/modal.d.ts +37 -0
  98. package/vanilla/modal.js +453 -0
  99. package/vanilla/modal.min.js +1 -0
  100. package/vanilla/styles.css +1 -0
  101. package/vanilla/styles.unlayered.css +1 -0
@@ -3,12 +3,14 @@ import { memo } from 'react';
3
3
  import { defaultStepIndicatorLabels } from './types.js';
4
4
  import { Progress } from '../Progress/index.js';
5
5
  import { Icon } from '../Icon/index.js';
6
+ import { Checkmark as CheckmarkIcon } from '../../icons/lms/index.js';
7
+ import { LockOutline as LockOutlineIcon } from '../../icons/system/index.js';
6
8
  // =============================================================================
7
9
  // Icon mapping for static states
8
10
  // =============================================================================
9
11
  const statusIcons = {
10
- complete: 'lms/checkmark',
11
- locked: 'system/lock-outline',
12
+ complete: CheckmarkIcon,
13
+ locked: LockOutlineIcon,
12
14
  };
13
15
  // =============================================================================
14
16
  // Status inference
@@ -1,4 +1,4 @@
1
- import type { IconName } from '../../icons/registry';
1
+ import type { IconSource } from '../Icon/Icon';
2
2
  import type { Size } from '../../types';
3
3
  export type { Size };
4
4
  /**
@@ -56,7 +56,7 @@ export type StepIndicatorProps = {
56
56
  * Use for content-type indicators like quizzes, readings, videos.
57
57
  * @example icon="lms/question-mark"
58
58
  */
59
- icon?: IconName;
59
+ icon?: IconSource;
60
60
  /**
61
61
  * Size of the indicator.
62
62
  * - `'xs'`: 16px circle
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import type { StepStatus } from '../StepIndicator/types';
3
- import type { IconName } from '../../icons/registry';
3
+ import type { IconSource } from '../Icon/Icon';
4
4
  export type { StepStatus };
5
5
  export type StepListProps = {
6
6
  /**
@@ -64,7 +64,7 @@ export type StepListItemProps = {
64
64
  * - `in-progress` shows progress ring (icon ignored)
65
65
  * @example icon="lms/question-mark"
66
66
  */
67
- icon?: IconName;
67
+ icon?: IconSource;
68
68
  /**
69
69
  * URL to navigate to. When provided, renders as an anchor element.
70
70
  */
@@ -1,5 +1,5 @@
1
1
  import type { ComponentPropsWithoutRef, ReactNode } from 'react';
2
- import type { IconName } from '../../icons/registry';
2
+ import type { IconSource } from '../Icon/Icon';
3
3
  export type TabsVariant = 'pill' | 'underline' | 'outline';
4
4
  export type TabsActivationMode = 'auto' | 'manual';
5
5
  export type TabsOrientation = 'horizontal' | 'vertical';
@@ -40,8 +40,8 @@ export type TabsListProps = TabsListBaseProps & ({
40
40
  export type TabProps = {
41
41
  /** Unique identifier, must match a Panel */
42
42
  value: string;
43
- /** Icon name from registry */
44
- icon?: IconName;
43
+ /** Icon: a registry path or an icon component */
44
+ icon?: IconSource;
45
45
  /**
46
46
  * Accessible label for the tab button. Required for icon-only tabs
47
47
  * (no `children`). Omitting this on an icon-only tab leaves the button
@@ -41,6 +41,8 @@ export type ToastProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'c
41
41
  onDismiss?: () => void;
42
42
  /** Accessible label for the dismiss button. Default 'Dismiss'. */
43
43
  dismissLabel?: string;
44
+ /** Announced after the × button removes the toast (not on programmatic `dismiss(id)`). Default 'Notification dismissed'. */
45
+ dismissedMessage?: string;
44
46
  /** Action content (e.g. a Button), rendered in the foot. */
45
47
  actions?: React.ReactNode;
46
48
  className?: string;
@@ -98,6 +100,8 @@ export declare const Toast: React.ForwardRefExoticComponent<Omit<React.HTMLAttri
98
100
  onDismiss?: () => void;
99
101
  /** Accessible label for the dismiss button. Default 'Dismiss'. */
100
102
  dismissLabel?: string;
103
+ /** Announced after the × button removes the toast (not on programmatic `dismiss(id)`). Default 'Notification dismissed'. */
104
+ dismissedMessage?: string;
101
105
  /** Action content (e.g. a Button), rendered in the foot. */
102
106
  actions?: React.ReactNode;
103
107
  className?: string;
@@ -105,7 +109,7 @@ export declare const Toast: React.ForwardRefExoticComponent<Omit<React.HTMLAttri
105
109
  /** Body/description content. */
106
110
  children?: React.ReactNode;
107
111
  } & React.RefAttributes<NoticeHandle>>;
108
- export type ToastOptions = Pick<ToastProps, 'theme' | 'size' | 'icon' | 'title' | 'announce' | 'dismissible' | 'onDismiss' | 'dismissLabel' | 'actions' | 'className' | 'style'> & {
112
+ export type ToastOptions = Pick<ToastProps, 'theme' | 'size' | 'icon' | 'title' | 'announce' | 'dismissible' | 'onDismiss' | 'dismissLabel' | 'dismissedMessage' | 'actions' | 'className' | 'style'> & {
109
113
  /**
110
114
  * Stable id. Calling toast() again with the same id updates that toast in
111
115
  * place (remounting it, so it re-animates and re-announces) and restarts
@@ -28,9 +28,9 @@ const EXIT_FALLBACK_MS = 1000;
28
28
  * component API tokens (`--tui-notice-bg`, `--tui-notice-padding`, …) can be
29
29
  * re-pointed per toast context: `.tui-toast { --tui-notice-bg: …; }`.
30
30
  */
31
- export const Toast = forwardRef(function Toast({ theme = 'neutral', size = 'sm', icon, title, announce, dismissible = true, focusable, onDismiss, dismissLabel, actions, className, children, ...rest }, ref) {
31
+ export const Toast = forwardRef(function Toast({ theme = 'neutral', size = 'sm', icon, title, announce, dismissible = true, focusable, onDismiss, dismissLabel, dismissedMessage, actions, className, children, ...rest }, ref) {
32
32
  const resolvedAnnounce = announce ?? (theme === 'danger' ? 'assertive' : 'polite');
33
- return (_jsxs(Notice, { as: "div", ref: ref, className: cx('tui-toast', 'tui-interface', className), "data-theme": "dark", theme: theme, size: size, inline: true, announce: resolvedAnnounce, dismissible: dismissible, focusable: focusable, onDismiss: onDismiss, dismissLabel: dismissLabel, exitAnimation: "fade", ...rest, children: [icon && _jsx(Notice.Head, { icon: icon }), (title || children != null) && (_jsxs(Notice.Body, { children: [title && _jsx("div", { className: "tui-toast__title", children: title }), children != null && _jsx("div", { className: "tui-toast__description", children: children })] })), actions && _jsx(Notice.Foot, { children: actions })] }));
33
+ return (_jsxs(Notice, { as: "div", ref: ref, className: cx('tui-toast', 'tui-interface', className), "data-theme": "dark", theme: theme, size: size, inline: true, announce: resolvedAnnounce, dismissible: dismissible, focusable: focusable, onDismiss: onDismiss, dismissLabel: dismissLabel, dismissedMessage: dismissedMessage, exitAnimation: "fade", ...rest, children: [icon && _jsx(Notice.Head, { icon: icon }), (title || children != null) && (_jsxs(Notice.Body, { children: [title && _jsx("div", { className: "tui-toast__title", children: title }), children != null && _jsx("div", { className: "tui-toast__description", children: children })] })), actions && _jsx(Notice.Foot, { children: actions })] }));
34
34
  });
35
35
  let toastCounter = 0;
36
36
  export function ToastProvider({ children, placement = 'bottom-end', duration = 5000, regionLabel = 'Notifications', max = 5, container, }) {
@@ -252,7 +252,7 @@ function ToastItem({ record, paused, defaultDuration, regionRef, focusHandoffRef
252
252
  if (record.dismissed)
253
253
  void dismissNow();
254
254
  }, [record.dismissed, dismissNow]);
255
- return (_jsx(Toast, { ref: handleRef, theme: record.theme, size: record.size, icon: record.icon, title: record.title, actions: record.actions, announce: record.announce, dismissible: record.dismissible, dismissLabel: record.dismissLabel, className: record.className, style: record.style, "data-testid": record['data-testid'], onDismiss: finalize, "aria-live": "off",
255
+ return (_jsx(Toast, { ref: handleRef, theme: record.theme, size: record.size, icon: record.icon, title: record.title, actions: record.actions, announce: record.announce, dismissible: record.dismissible, dismissLabel: record.dismissLabel, dismissedMessage: record.dismissedMessage, className: record.className, style: record.style, "data-testid": record['data-testid'], onDismiss: finalize, "aria-live": "off",
256
256
  // tabIndex -1: the root is the focus target for same-id replacement
257
257
  // hand-off (the Notice `focusable` prop, built for exactly this).
258
258
  focusable: true, children: record.description }));
@@ -1,6 +1,6 @@
1
1
  import type { TooltipProviderProps, TooltipProps, TooltipTriggerProps, TooltipContentProps } from './types';
2
2
  declare function TooltipProviderComponent({ delayDuration, closeDelayDuration, skipDelayDuration, children, }: TooltipProviderProps): import("react/jsx-runtime").JSX.Element;
3
- declare function TooltipRoot({ open: controlledOpen, onOpenChange, defaultOpen, delayDuration: localDelay, children, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function TooltipRoot({ open: controlledOpen, onOpenChange, defaultOpen, delayDuration: localDelay, type, children, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare function TooltipTriggerComponent({ asChild, 'aria-label': ariaLabel, children, }: TooltipTriggerProps): import("react/jsx-runtime").JSX.Element;
5
5
  declare function TooltipContentComponent(props: TooltipContentProps): import("react/jsx-runtime").JSX.Element | null;
6
6
  type TooltipCompound = typeof TooltipRoot & {
@@ -20,7 +20,7 @@ function TooltipProviderComponent({ delayDuration = 400, closeDelayDuration = 15
20
20
  // =============================================================================
21
21
  // Tooltip Root
22
22
  // =============================================================================
23
- function TooltipRoot({ open: controlledOpen, onOpenChange, defaultOpen = false, delayDuration: localDelay, children, }) {
23
+ function TooltipRoot({ open: controlledOpen, onOpenChange, defaultOpen = false, delayDuration: localDelay, type = 'description', children, }) {
24
24
  const providerContext = useTooltipProviderContext();
25
25
  const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
26
26
  const isControlled = controlledOpen !== undefined;
@@ -119,20 +119,42 @@ function TooltipRoot({ open: controlledOpen, onOpenChange, defaultOpen = false,
119
119
  setOpen,
120
120
  triggerRef,
121
121
  contentId,
122
+ type,
122
123
  delayDuration: resolvedDelay,
123
124
  closeDelayDuration: resolvedCloseDelay,
124
125
  handleOpen,
125
126
  handleClose,
126
127
  cancelClose,
127
128
  dismiss,
128
- }), [open, setOpen, contentId, resolvedDelay, resolvedCloseDelay, handleOpen, handleClose, cancelClose, dismiss]);
129
+ }), [open, setOpen, contentId, type, resolvedDelay, resolvedCloseDelay, handleOpen, handleClose, cancelClose, dismiss]);
129
130
  return (_jsx(TooltipContext.Provider, { value: contextValue, children: children }));
130
131
  }
131
132
  // =============================================================================
132
133
  // TooltipTrigger
133
134
  // =============================================================================
134
135
  function TooltipTriggerComponent({ asChild = false, 'aria-label': ariaLabel, children, }) {
135
- const { open, triggerRef, contentId, handleOpen, handleClose } = useTooltipContext();
136
+ const { open, triggerRef, contentId, type, handleOpen, handleClose } = useTooltipContext();
137
+ // A label tooltip adds no ARIA, so the trigger has to be named already.
138
+ const warnedRef = useRef(false);
139
+ useEffect(() => {
140
+ if (!isDev() || type !== 'label' || warnedRef.current)
141
+ return;
142
+ const el = triggerRef.current;
143
+ if (!el)
144
+ return;
145
+ // A heuristic, not the full name computation: it catches the common miss.
146
+ const labels = el.labels;
147
+ const named = (el.getAttribute('aria-label') ?? '').trim() !== '' ||
148
+ el.hasAttribute('aria-labelledby') ||
149
+ (el.getAttribute('title') ?? '').trim() !== '' ||
150
+ (labels?.length ?? 0) > 0 ||
151
+ (el.textContent ?? '').trim() !== '';
152
+ if (!named) {
153
+ warnedRef.current = true;
154
+ console.warn('[Tooltip] type="label" adds no ARIA: give the trigger its own accessible name ' +
155
+ '(aria-label), or the control is unnamed.');
156
+ }
157
+ }, [type, triggerRef]);
136
158
  // Merge child ref with our triggerRef
137
159
  const setRefs = useCallback((node) => {
138
160
  triggerRef.current = node;
@@ -152,7 +174,7 @@ function TooltipTriggerComponent({ asChild = false, 'aria-label': ariaLabel, chi
152
174
  onMouseLeave: handleClose,
153
175
  onFocus: handleOpen,
154
176
  onBlur: handleClose,
155
- 'aria-describedby': open ? contentId : undefined,
177
+ 'aria-describedby': open && type === 'description' ? contentId : undefined,
156
178
  'data-tooltip-open': open || undefined,
157
179
  };
158
180
  if (asChild && isValidElement(children)) {
@@ -178,7 +200,7 @@ function TooltipContentComponent(props) {
178
200
  }
179
201
  // Inner component: only mounted when open. All Floating UI hooks live here.
180
202
  function TooltipContentInner({ side = 'top', align = 'center', sideOffset = 8, theme = 'dark', className, children, }) {
181
- const { triggerRef, contentId, cancelClose, handleClose, dismiss } = useTooltipContext();
203
+ const { triggerRef, contentId, type, cancelClose, handleClose, dismiss } = useTooltipContext();
182
204
  const arrowRef = useRef(null);
183
205
  const { refs, floatingStyles, context } = useFloating({
184
206
  placement: toPlacement(side, align),
@@ -229,7 +251,7 @@ function TooltipContentInner({ side = 'top', align = 'center', sideOffset = 8, t
229
251
  }
230
252
  }
231
253
  }, [refs.floating]);
232
- return (_jsx(FloatingPortal, { root: portalRoot, children: _jsxs("div", { ref: refs.setFloating, id: contentId, role: "tooltip", className: cx('tui-tooltip', theme === 'light' && 'is-theme-light', className), style: floatingStyles, onMouseEnter: cancelClose, onMouseLeave: handleClose, children: [children, _jsx(FloatingArrow, { ref: arrowRef, context: context, className: "tui-tooltip__arrow" })] }) }));
254
+ return (_jsx(FloatingPortal, { root: portalRoot, children: _jsxs("div", { ref: refs.setFloating, id: contentId, role: "tooltip", "aria-hidden": type === 'label' || undefined, className: cx('tui-tooltip', theme === 'light' && 'is-theme-light', className), style: floatingStyles, onMouseEnter: cancelClose, onMouseLeave: handleClose, children: [children, _jsx(FloatingArrow, { ref: arrowRef, context: context, className: "tui-tooltip__arrow" })] }) }));
233
255
  }
234
256
  export const Tooltip = TooltipRoot;
235
257
  Tooltip.Provider = TooltipProviderComponent;
@@ -1,2 +1,2 @@
1
1
  export { Tooltip, TooltipProvider, TooltipTrigger, TooltipContent } from './Tooltip';
2
- export type { TooltipProviderProps, TooltipProps, TooltipTriggerProps, TooltipContentProps, TooltipTheme, Side, Align, } from './types';
2
+ export type { TooltipProviderProps, TooltipProps, TooltipTriggerProps, TooltipContentProps, TooltipTheme, TooltipType, Side, Align, } from './types';
@@ -7,6 +7,17 @@ export type Side = 'top' | 'right' | 'bottom' | 'left';
7
7
  * Tooltip alignment relative to trigger.
8
8
  */
9
9
  export type Align = 'start' | 'center' | 'end';
10
+ /**
11
+ * What the tooltip's text is to its trigger.
12
+ * - `description`: extra information. The trigger gets `aria-describedby`
13
+ * while the tooltip is open, so a screen reader reads it after the name.
14
+ * - `label`: the trigger's own name, shown visually (an icon-only button).
15
+ * The trigger must already carry that name (`aria-label`); the tooltip adds
16
+ * no ARIA and is hidden from assistive tech, so the name isn't announced
17
+ * twice. Use it only when the text is the same words as the name: anything
18
+ * more is a description, and `label` would hide it from screen readers.
19
+ */
20
+ export type TooltipType = 'description' | 'label';
10
21
  export type TooltipProviderProps = {
11
22
  /**
12
23
  * Delay in ms before tooltip opens on hover.
@@ -50,6 +61,12 @@ export type TooltipProps = {
50
61
  * Override provider's delay for this tooltip.
51
62
  */
52
63
  delayDuration?: number;
64
+ /**
65
+ * `label` when the tooltip repeats the trigger's accessible name, as on an
66
+ * icon-only button; see `TooltipType`.
67
+ * @default 'description'
68
+ */
69
+ type?: TooltipType;
53
70
  children: React.ReactNode;
54
71
  };
55
72
  export type TooltipTriggerProps = {
@@ -107,6 +124,7 @@ export type TooltipContextValue = {
107
124
  setOpen: (open: boolean) => void;
108
125
  triggerRef: React.RefObject<HTMLElement | null>;
109
126
  contentId: string;
127
+ type: TooltipType;
110
128
  delayDuration: number;
111
129
  closeDelayDuration: number;
112
130
  /** Open tooltip after delayDuration. Cancels any pending close. */
@@ -65,7 +65,7 @@ export type { MultiComboboxProps, MultiComboboxContentProps, MultiComboboxOption
65
65
  export type { FieldProps } from './Field';
66
66
  export type { MultiSelectProps, MultiSelectTriggerProps, MultiSelectContentProps, MultiSelectOptionProps, MultiSelectGroupProps, MultiSelectLabelProps, MultiSelectValue, OptionValue as MultiSelectOptionValue, DisplayMode as MultiSelectDisplayMode, MultiSelectRegisteredOption, } from './MultiSelect';
67
67
  export type { SelectProps, SelectTriggerProps, SelectContentProps, SelectOptionProps, SelectGroupProps, SelectLabelProps, } from './Select';
68
- export type { IconProps } from './Icon';
68
+ export type { IconProps, IconSource, IconComponent } from './Icon';
69
69
  export type { IconButtonProps } from './IconButton';
70
70
  export type { ModalProps, ModalRole, ModalFootProps, ModalFootJustify } from './Modal';
71
71
  export type { MoveHandleLabels, MoveHandleMode, MoveHandleProps, MoveHandleSize } from './MoveHandle';
@@ -91,6 +91,6 @@ export type { TextareaProps, TextareaResize } from './Textarea';
91
91
  export type { TextInputProps, TextInputType } from './TextInput';
92
92
  export type { ToastProps, ToastHandle, ToastTheme, ToastAnnounce, ToastPlacement, ToastOptions, ToastContextValue, ToastProviderProps, } from './Toast';
93
93
  export type { ToolbarProps, ToolbarGroupProps, ToolbarItemProps, ToolbarOrientation } from './Toolbar';
94
- export type { TooltipProps, TooltipProviderProps, TooltipTriggerProps, TooltipContentProps } from './Tooltip';
94
+ export type { TooltipProps, TooltipProviderProps, TooltipTriggerProps, TooltipContentProps, TooltipType } from './Tooltip';
95
95
  export { GENERATIVE_COLORS, stringToGenerativeColor } from '../utils/generative';
96
96
  export type { GenerativeColor } from '../utils/generative';
package/figma-tokens.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.28",
2
+ "version": "0.2.30",
3
3
  "source": "publish/styles/all.expanded.css",
4
4
  "prefix": "tui-",
5
5
  "note": "Layer 1 primitives only. Component API tokens (--tui-{component}-*) are never defined in CSS — they exist only as fallback reads — so they have no Figma representation. CONTRACT: consumers read TUI defaults from this file at build time (variables[].cssVar, the \"Light\"/\"Dark\" mode names, and alias chains into TUI/Primitives). Renaming a cssVar or a mode is a breaking change to those consumers even when the CSS value is unchanged — a rename silently becomes an undefined default downstream — so treat it as at least a minor bump and call it out in the CHANGELOG.",
@@ -1368,9 +1368,11 @@
1368
1368
  "hex": "#838a97"
1369
1369
  },
1370
1370
  "Dark": {
1371
- "alias": "palette/gray/500",
1372
- "collection": "TUI/Primitives",
1373
- "hex": "#6b7280"
1371
+ "r": 0.4,
1372
+ "g": 0.4,
1373
+ "b": 0.4,
1374
+ "a": 1,
1375
+ "hex": "#666666"
1374
1376
  }
1375
1377
  }
1376
1378
  },
@@ -1,5 +1,6 @@
1
1
  import { createElement as _c } from "react";
2
2
 
3
+
3
4
  export function BadgeCheck(props) {
4
5
  return _c("svg", Object.assign({
5
6
  xmlns: "http://www.w3.org/2000/svg",
package/icons/icons.svg CHANGED
@@ -33,10 +33,8 @@
33
33
  <symbol id="tui-lms-duration-outline" viewBox="0 0 24 24"><path d="M12 7.25a.75.75 0 0 1 .75.75v3.599l2.666 1.777a.75.75 0 1 1-.832 1.248l-3-2a.8.8 0 0 1-.15-.138q-.031-.033-.058-.071l-.021-.039A.74.74 0 0 1 11.25 12V8a.75.75 0 0 1 .75-.75"/><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>
34
34
  <symbol id="tui-lms-edit-externally" viewBox="0 0 24 24"><path d="m19 7-3-3-8.5 8.5-1 4 4-1zm-7 11.5H5V20h7z"/></symbol>
35
35
  <symbol id="tui-lms-free-form" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M7 14.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M17 14.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M7 4.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M17 4.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5" clip-rule="evenodd"/></symbol>
36
- <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>
37
36
  <symbol id="tui-lms-help-circle-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9 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"/><path fill-rule="evenodd" d="M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13m8-6.5a8 8 0 1 1-16 0 8 8 0 0 1 16 0" clip-rule="evenodd"/></symbol>
38
37
  <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.177A7.1 7.1 0 0 0 12 16.5c2.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>
39
- <symbol id="tui-lms-info" viewBox="0 0 24 24"><path d="M13 11v6h-2v-6zm0-2V7h-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>
40
38
  <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>
41
39
  <symbol id="tui-lms-item-type-page" viewBox="0 0 24 24"><path d="M20 7H5.5v13H4V6a2 2 0 0 1 2-2h14zm-5 12.5H8V18h7z"/><path d="M20 15.5H8V14h12zm-2-4H8V10h10z"/></symbol>
42
40
  <symbol id="tui-lms-item-type-section" viewBox="0 0 24 24"><path d="M16 20H7v-1.5h9zm4-4H7v-1.5h13zm0-4H7v-1.5h13zm.121-7.44-3.09 3.091-3.091-3.09L15 3.5l2.03 2.03 2.03-2.03zM12 7H4V4h8z"/></symbol>
@@ -52,9 +50,11 @@
52
50
  <symbol id="tui-lms-prerequisites-out" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m21.06 12-5.53 5.53-1.06-1.06 3.72-3.72h-7.515a3.751 3.751 0 1 1 0-1.5h7.514l-3.72-3.72 1.061-1.06zM7 9.75a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5" clip-rule="evenodd"/></symbol>
53
51
  <symbol id="tui-lms-prerequisites" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m13.03 2.53-2.22 2.22H17a2.75 2.75 0 0 1 2.75 2.75v9A2.75 2.75 0 0 1 17 19.25h-3.19l2.22 2.22-1.06 1.06-4.007-4.007 3.983-4.362 1.108 1.012L13.7 17.75H17c.69 0 1.25-.56 1.25-1.25v-3.75H9.644A2.749 2.749 0 0 1 4.25 12a2.75 2.75 0 0 1 5.394-.75h8.606V7.5c0-.69-.56-1.25-1.25-1.25h-6.3l2.354 2.577-1.108 1.012-3.983-4.362L11.97 1.47zM7 10.75a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5" clip-rule="evenodd"/></symbol>
54
52
  <symbol id="tui-lms-presentation" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 5.5h-1V13l-.01.204a2 2 0 0 1-1.786 1.785L17 15h-4.25v1.625l3.7 2.775-.9 1.2L12 17.937 8.45 20.6l-.9-1.2 3.7-2.775V15H7l-.204-.01a2 2 0 0 1-1.785-1.786L5 13V5.5H4V4h16zM6.5 13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V5.5h-11z" clip-rule="evenodd"/></symbol>
55
- <symbol id="tui-lms-question-mark" viewBox="0 0 24 24"><path d="M12 17a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-13.306a5 5 0 0 1 1 9.9V15h-2v-2.056c0-.706.564-1.217 1.188-1.256A3 3 0 1 0 9 8.695H7a5 5 0 0 1 5-5"/></symbol>
56
53
  <symbol id="tui-lms-switch-branch" viewBox="0 0 24 24"><path d="m14.474 4.53 2.72 2.72H6.003v1.5h11.191l-2.72 2.72 1.061 1.06L20.065 8l-4.53-4.53zM9.53 19.47l-2.72-2.72h11.192v-1.5H6.811l2.72-2.72-1.061-1.06L3.94 16l4.53 4.53z"/></symbol>
57
54
  <symbol id="tui-lms-visible" viewBox="0 0 24 24"><path d="M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7"/><path fill-rule="evenodd" d="M12 6c6 0 9 6 9 6s-3 6-9 6-9-6-9-6 3-6 9-6m-7.259 6 .07-.105a12 12 0 0 1 1.5-1.834C7.647 8.724 9.538 7.5 12 7.5s4.353 1.224 5.69 2.56A12 12 0 0 1 19.258 12l-.07.105a12 12 0 0 1-1.5 1.834C16.353 15.276 14.462 16.5 12 16.5s-4.353-1.224-5.69-2.56A12 12 0 0 1 4.742 12" clip-rule="evenodd"/></symbol>
55
+ <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>
56
+ <symbol id="tui-lms-info" viewBox="0 0 24 24"><path d="M13 11v6h-2v-6zm0-2V7h-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>
57
+ <symbol id="tui-lms-question-mark" viewBox="0 0 24 24"><path d="M12 17a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-13.306a5 5 0 0 1 1 9.9V15h-2v-2.056c0-.706.564-1.217 1.188-1.256A3 3 0 1 0 9 8.695H7a5 5 0 0 1 5-5"/></symbol>
58
58
  <symbol id="tui-membersync-arrow-left" viewBox="0 0 24 24"><path d="M22.286 10.22H5.854l3.93-4.126c.164-.166.294-.364.384-.584a1.88 1.88 0 0 0 .012-1.392 1.8 1.8 0 0 0-.375-.59 1.7 1.7 0 0 0-.563-.394 1.64 1.64 0 0 0-1.325.012c-.21.094-.399.232-.557.403L.504 10.748c-.16.167-.287.366-.373.584a1.88 1.88 0 0 0 0 1.38c.086.219.213.417.373.584l6.856 7.199c.324.328.757.509 1.206.505.45-.004.88-.193 1.197-.527s.498-.785.502-1.257a1.85 1.85 0 0 0-.48-1.266l-3.931-4.13h16.432c.454 0 .89-.19 1.212-.527.321-.338.502-.795.502-1.273s-.18-.935-.502-1.272a1.67 1.67 0 0 0-1.212-.527"/></symbol>
59
59
  <symbol id="tui-membersync-cart" viewBox="0 0 24 24"><g clip-path="url(#a)"><path d="M20.21 14.398c.275 0 .542-.085.761-.242a1.2 1.2 0 0 0 .454-.629l2.527-8.399a1.14 1.14 0 0 0-.207-1.052 1.25 1.25 0 0 0-.445-.35 1.3 1.3 0 0 0-.564-.126H6.026L5.273.894a1.2 1.2 0 0 0-.45-.645A1.3 1.3 0 0 0 4.051 0H1.263C.928 0 .607.126.37.351A1.17 1.17 0 0 0 0 1.2c0 .318.133.623.37.848s.558.352.893.352H3.08l.757 2.705v.023l2.527 8.4.942 3.582a3.76 3.76 0 0 0-1.556 1.21 3.45 3.45 0 0 0-.308 3.671 3.67 3.67 0 0 0 1.335 1.428 3.93 3.93 0 0 0 1.916.578 3.95 3.95 0 0 0 1.958-.434c.6-.31 1.1-.766 1.449-1.324a3.46 3.46 0 0 0 .531-1.842 3.4 3.4 0 0 0-.232-1.2h2.991a3.4 3.4 0 0 0-.232 1.2c0 .712.222 1.408.638 2a3.75 3.75 0 0 0 1.701 1.326 4 4 0 0 0 2.19.205 3.86 3.86 0 0 0 1.94-.985c.53-.504.89-1.145 1.037-1.843a3.43 3.43 0 0 0-.216-2.08 3.65 3.65 0 0 0-1.396-1.616 3.93 3.93 0 0 0-2.105-.606h-9.12l-.631-2.4zm-10.105 6c0 .237-.074.469-.213.666a1.25 1.25 0 0 1-.567.442c-.23.09-.484.114-.73.068a1.3 1.3 0 0 1-.646-.328 1.2 1.2 0 0 1-.346-.614 1.14 1.14 0 0 1 .072-.694c.096-.219.257-.406.465-.538a1.31 1.31 0 0 1 1.595.149c.237.225.37.53.37.848m8.842 1.2c-.25 0-.494-.071-.702-.203a1.2 1.2 0 0 1-.465-.538c-.096-.22-.12-.46-.072-.694.049-.232.17-.446.346-.614.177-.168.402-.282.647-.328s.499-.023.73.068c.23.09.428.244.566.442.14.197.213.43.213.666 0 .319-.133.624-.37.849a1.3 1.3 0 0 1-.893.351"/></g><defs><clipPath id="a"><path d="M0 0h24v24H0z"/></clipPath></defs></symbol>
60
60
  <symbol id="tui-membersync-check" viewBox="0 0 24 24"><path d="M8.586 22c-.391.002-.768-.182-1.05-.513L.454 13.155a1.9 1.9 0 0 1-.332-.586 2.2 2.2 0 0 1-.12-.696 2.04 2.04 0 0 1 .426-1.294c.279-.345.66-.543 1.058-.549.398-.005.782.18 1.067.518l6.04 7.102L21.447 2.518c.285-.338.67-.524 1.068-.518.4.006.78.204 1.058.55s.432.812.427 1.296a2.03 2.03 0 0 1-.454 1.282l-13.91 16.36c-.281.33-.658.514-1.05.512"/></symbol>
@@ -198,6 +198,7 @@
198
198
  <symbol id="tui-system-globe" viewBox="0 0 24 24"><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 0m2.267-3.25A7.27 7.27 0 0 1 10 5.03a8 8 0 0 0-1.19 1.875 11 11 0 0 0-.657 1.845zm-.554 1.5a7.3 7.3 0 0 0 0 3.5h2.9a13.5 13.5 0 0 1 0-3.5zm4.415 0q-.127.841-.128 1.75.001.909.128 1.75h5.244q.127-.841.128-1.75-.001-.909-.128-1.75zm6.759 0a13.5 13.5 0 0 1 0 3.5h2.9a7.3 7.3 0 0 0 0-3.5zm2.346-1.5h-2.636a11 11 0 0 0-.656-1.845A8 8 0 0 0 14 5.03a7.27 7.27 0 0 1 4.483 3.721m-4.194 0H9.711q.195-.647.458-1.211c.495-1.063 1.139-1.847 1.831-2.306.692.46 1.335 1.243 1.83 2.306q.264.563.46 1.211m-8.772 6.5h2.636a10.7 10.7 0 0 0 .7 1.938A8 8 0 0 0 10 18.97a7.27 7.27 0 0 1-4.483-3.721m8.772 0H9.711q.209.692.495 1.29c.491 1.024 1.12 1.78 1.794 2.227.692-.46 1.336-1.243 1.83-2.306a9 9 0 0 0 .46-1.211m.902 1.845c.265-.57.486-1.188.656-1.845h2.636A7.27 7.27 0 0 1 14 18.97a8.2 8.2 0 0 0 1.19-1.875" clip-rule="evenodd"/></symbol>
199
199
  <symbol id="tui-system-handle-alt" viewBox="0 0 24 24"><path d="M5 16v-2h2v2zm6 0v-2h2v2zm6 0v-2h2v2zM5 10V8h2v2zm6 0V8h2v2zm6 0V8h2v2z"/></symbol>
200
200
  <symbol id="tui-system-handle" viewBox="0 0 24 24"><path d="M7 16.5h10V15H7zm0-9V9h10V7.5z"/></symbol>
201
+ <symbol id="tui-system-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>
201
202
  <symbol id="tui-system-help" 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>
202
203
  <symbol id="tui-system-hide" viewBox="0 0 24 24"><path d="M4.67 10.664s-2.09 1.11-2.917 1.582l.494.87 1.608-.914.002.002c.343.502.86 1.17 1.563 1.84.347.33.742.663 1.185.976L5.57 16.744l.858.515 1.02-1.701a9.1 9.1 0 0 0 4.05 1.18V19h1v-2.263a9.1 9.1 0 0 0 4.052-1.18l1.02 1.7.858-.514-1.034-1.723a10.6 10.6 0 0 0 1.184-.977 11.6 11.6 0 0 0 1.563-1.839l.002-.003 1.609.914.494-.87c-1.75-.994-2.918-1.58-2.918-1.58l-.003.005-.017.031-.077.138a8 8 0 0 1-.328.52 10 10 0 0 1-1.36 1.598c-1.218 1.16-3.042 2.293-5.545 2.293-2.502 0-4.326-1.132-5.545-2.293a10 10 0 0 1-1.359-1.599 8 8 0 0 1-.422-.689z"/></symbol>
203
204
  <symbol id="tui-system-highlight" viewBox="0 0 24 24"><path d="M14 18.5V20H6v-1.5zm.567-4.626a1.5 1.5 0 0 1-.346.237l-2.825 1.397L10.5 17h-3l1.731-2.742-.203-3.145a1.5 1.5 0 0 1 .033-.418zm3.979-9.25a1.25 1.25 0 0 1 .457 1.708l-3.625 6.279L9.75 9.36l3.625-6.279a1.25 1.25 0 0 1 1.707-.457z"/></symbol>
@@ -205,6 +206,7 @@
205
206
  <symbol id="tui-system-home-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.683 4.153c.754-.66 1.88-.66 2.634 0l6 5.25A2 2 0 0 1 20 10.908V18a2 2 0 0 1-2 2H6a2 2 0 0 1-1.99-1.796L4 18v-7.092a2 2 0 0 1 .683-1.505zm1.646 1.129a.5.5 0 0 0-.658 0l-6 5.25a.5.5 0 0 0-.171.376V18a.5.5 0 0 0 .5.5h3V14a1 1 0 0 1 1-1h4l.102.005A1 1 0 0 1 15 14v4.5h3a.5.5 0 0 0 .5-.5v-7.092a.5.5 0 0 0-.17-.377zM10.5 18.5h3v-4h-3z" clip-rule="evenodd"/></symbol>
206
207
  <symbol id="tui-system-image" viewBox="0 0 24 24"><g fill-rule="evenodd" clip-rule="evenodd"><path d="M14.5 7.25a2.25 2.25 0 1 1 0 4.5 2.25 2.25 0 0 1 0-4.5m0 1.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5"/><path d="M18 4c1.105 0 2 1.024 2 2.286v11.428C20 18.976 19.105 20 18 20H6q-.096 0-.19-.012-.023-.002-.044-.006a2 2 0 0 1-.144-.025l-.048-.01a2 2 0 0 1-.125-.037q-.03-.009-.06-.02a2 2 0 0 1-.155-.065l-.063-.033a2 2 0 0 1-.316-.205l-.069-.06a2 2 0 0 1-.119-.112l-.06-.062-.08-.097-.027-.033-.08-.11-.02-.032c-.25-.382-.4-.854-.4-1.367V6.286C4 5.024 4.895 4 6 4zm-8.613 7.842a.5.5 0 0 0-.774 0L5.5 15.646v2.068c0 .278.1.497.215.629.113.129.217.157.285.157h8.834zM6 5.5c-.068 0-.172.028-.285.157a.96.96 0 0 0-.215.63v6.99l1.952-2.385a2 2 0 0 1 3.096 0l6.225 7.608H18c.068 0 .172-.028.285-.157a.96.96 0 0 0 .215-.63V6.287c0-.278-.1-.496-.215-.629-.113-.129-.217-.157-.285-.157z"/></g></symbol>
207
208
  <symbol id="tui-system-inbox" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-.5h12a.5.5 0 0 1 .5.5v7H14a2 2 0 1 1-4 0H5.5V6a.5.5 0 0 1 .5-.5m-.5 9V18a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-3.5h-3.337a3.5 3.5 0 0 1-6.326 0z" clip-rule="evenodd"/></symbol>
209
+ <symbol id="tui-system-info" viewBox="0 0 24 24"><path d="M13 11v6h-2v-6zm0-2V7h-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>
208
210
  <symbol id="tui-system-key" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M9 16a4 4 0 0 0 3.8-2.75H15V16h2.5v-2.75H19v-2.5h-6.2A4.002 4.002 0 0 0 5 12a4 4 0 0 0 4 4" clip-rule="evenodd"/></symbol>
209
211
  <symbol id="tui-system-link" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M10.083 17.639H8.444a5.194 5.194 0 1 1 0-10.389h1.64v1.5h-1.64a3.694 3.694 0 0 0 0 7.389h1.64zM13.917 7.25h1.639a5.194 5.194 0 0 1 0 10.39h-1.64v-1.5h1.64a3.694 3.694 0 0 0 0-7.39h-1.64zm-4.584 6.084h5.334v-1.5H9.333z" clip-rule="evenodd"/></symbol>
210
212
  <symbol id="tui-system-lock-fill" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M18 9a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h1.25V7a4.75 4.75 0 0 1 9.5 0v2zm-2.75 0V7a3.25 3.25 0 0 0-6.5 0v2zM12 13a1 1 0 0 0-1 1v1a1 1 0 1 0 2 0v-1a1 1 0 0 0-1-1" clip-rule="evenodd"/></symbol>
@@ -225,6 +227,7 @@
225
227
  <symbol id="tui-system-plus-circle-outline" viewBox="0 0 24 24"><path d="M12.75 11.25h3.248v1.5H12.75v3.245l-1.5.001V12.75H8.002v-1.5h3.248V8.001L12.75 8z"/><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>
226
228
  <symbol id="tui-system-plus-small" viewBox="0 0 24 24"><path d="M11.25 12.75V16h1.5v-3.25H16v-1.5h-3.25V8h-1.5v3.25H8v1.5z"/></symbol>
227
229
  <symbol id="tui-system-plus" viewBox="0 0 24 24"><path d="M11.25 12.75V18h1.5v-5.25H18v-1.5h-5.25V6h-1.5v5.25H6v1.5z"/></symbol>
230
+ <symbol id="tui-system-question-mark" viewBox="0 0 24 24"><path d="M12 17a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-13.306a5 5 0 0 1 1 9.9V15h-2v-2.056c0-.706.564-1.217 1.188-1.256A3 3 0 1 0 9 8.695H7a5 5 0 0 1 5-5"/></symbol>
228
231
  <symbol id="tui-system-recurring" viewBox="0 0 24 24"><path d="M11.592 5.763a6.25 6.25 0 0 1 6.135 3.733l-2.572-.542-.31 1.468 5.162 1.088 1.378-5.322-1.453-.376-.81 3.131a7.75 7.75 0 1 0-.41 6.932l-1.299-.75a6.25 6.25 0 1 1-5.821-9.362"/><path d="M12 7.25a.75.75 0 0 1 .75.75v3.598l2.666 1.778a.75.75 0 0 1-.832 1.248l-2.986-1.991a.8.8 0 0 1-.232-.232.75.75 0 0 1-.116-.401V8a.75.75 0 0 1 .75-.75"/></symbol>
229
232
  <symbol id="tui-system-redo" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m17.33 10.75-2.89-3.252 1.121-.996 4.47 5.028-4.5 4.5-1.06-1.06 2.719-2.72H8.003c-.602 0-.994.202-1.28.498-.309.319-.538.792-.696 1.383-.286 1.072-.28 2.296-.275 3.108v.261h-1.5v-.246c-.006-.792-.016-2.226.326-3.51.192-.722.513-1.467 1.067-2.04.576-.594 1.36-.954 2.358-.954z" clip-rule="evenodd"/></symbol>
230
233
  <symbol id="tui-system-reverse" viewBox="0 0 24 24"><path d="m14.474 4.53 2.72 2.72H6.003v1.5h11.191l-2.72 2.72 1.061 1.06L20.065 8l-4.53-4.53zM9.53 19.47l-2.72-2.72h11.192v-1.5H6.811l2.72-2.72-1.061-1.06L3.94 16l4.53 4.53z"/></symbol>
@@ -237,6 +240,7 @@
237
240
  <symbol id="tui-system-star-fill" viewBox="0 0 24 24"><path d="M11.776 4.454a.25.25 0 0 1 .448 0l2.07 4.192a.25.25 0 0 0 .187.137l4.626.672a.25.25 0 0 1 .139.427l-3.347 3.262a.25.25 0 0 0-.072.222l.79 4.607a.25.25 0 0 1-.363.264l-4.138-2.176a.25.25 0 0 0-.232 0l-4.138 2.175a.25.25 0 0 1-.362-.263l.79-4.607a.25.25 0 0 0-.072-.222L4.754 9.882a.25.25 0 0 1 .139-.427l4.626-.672a.25.25 0 0 0 .188-.137z"/></symbol>
238
241
  <symbol id="tui-system-star-half" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M9.519 8.783a.25.25 0 0 0 .188-.137l2.069-4.192a.25.25 0 0 1 .448 0l2.07 4.192a.25.25 0 0 0 .187.137l4.626.672a.25.25 0 0 1 .139.427l-3.347 3.262a.25.25 0 0 0-.072.222l.79 4.607a.25.25 0 0 1-.363.264l-4.138-2.176a.25.25 0 0 0-.232 0l-4.138 2.175a.25.25 0 0 1-.362-.263l.79-4.607a.25.25 0 0 0-.072-.222L4.754 9.882a.25.25 0 0 1 .139-.427zM12 14.533c.28 0 .56.067.815.2l1.895.997-.362-2.11a1.75 1.75 0 0 1 .503-1.55l1.534-1.495-2.12-.308a1.75 1.75 0 0 1-1.317-.957L12 7.39z" clip-rule="evenodd"/></symbol>
239
242
  <symbol id="tui-system-star-outline" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M11.186 14.734a1.75 1.75 0 0 1 1.629 0l1.895.996-.362-2.11a1.75 1.75 0 0 1 .503-1.55l1.534-1.495-2.12-.308.216-1.484 4.626.672a.25.25 0 0 1 .139.427l-3.347 3.262a.25.25 0 0 0-.072.222l.79 4.607a.25.25 0 0 1-.363.264l-4.138-2.176a.25.25 0 0 0-.232 0l-4.138 2.175a.25.25 0 0 1-.362-.263l.79-4.607a.25.25 0 0 0-.072-.222L4.754 9.882a.25.25 0 0 1 .139-.427l4.626-.672.216 1.484-2.12.308L9.15 12.07c.412.402.6.982.503 1.55l-.362 2.11zM9.707 8.645a.25.25 0 0 1-.188.137l.216 1.484a1.75 1.75 0 0 0 1.317-.957L12 7.39l.948 1.92a1.75 1.75 0 0 0 1.318.957l.215-1.484a.25.25 0 0 1-.188-.137l-2.069-4.192a.25.25 0 0 0-.448 0z" clip-rule="evenodd"/></symbol>
243
+ <symbol id="tui-system-store" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20 9h-1v11H5V9H4V4h16zM6.5 18.5H9V14h6v4.5h2.5V9h-11zm4 0h3v-3h-3zm-5-11h3.25v-2H5.5zm4.75 0h3.5v-2h-3.5zm5 0h3.25v-2h-3.25z" clip-rule="evenodd"/></symbol>
240
244
  <symbol id="tui-system-sun-fill" viewBox="0 0 24 24"><g><path d="M12 17.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75M15.73 15.719a.75.75 0 0 1 1.061 0l1.414 1.414a.75.75 0 0 1-1.06 1.06L15.73 16.78a.75.75 0 0 1 0-1.06M7.238 15.709a.75.75 0 0 1 1.06 1.06l-1.413 1.415a.75.75 0 0 1-1.06-1.061zM12.193 8.255a3.73 3.73 0 0 1 2.582 1.224 3.8 3.8 0 0 1 .806 1.406 3.73 3.73 0 0 1 .093 1.87 3.73 3.73 0 0 1-.899 1.766 3.8 3.8 0 0 1-.988.777 3.73 3.73 0 0 1-2.17.432 3.7 3.7 0 0 1-.907-.207 3.751 3.751 0 0 1 1.483-7.268M6.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM20.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM5.831 5.82a.75.75 0 0 1 1.06 0l1.415 1.413a.75.75 0 0 1-1.06 1.061L5.83 6.88a.75.75 0 0 1 0-1.06M17.138 5.81a.75.75 0 0 1 1.06 1.06l-1.414 1.414a.75.75 0 0 1-1.06-1.06zM12 3.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75"/></g></symbol>
241
245
  <symbol id="tui-system-sun-outline" viewBox="0 0 24 24"><g><path d="M12 17.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 1 .75-.75M15.73 15.719a.75.75 0 0 1 1.06 0l1.415 1.414a.75.75 0 1 1-1.06 1.06L15.73 16.78a.75.75 0 0 1 0-1.06M7.238 15.709a.75.75 0 1 1 1.06 1.06l-1.413 1.415a.75.75 0 0 1-1.061-1.061z"/><path fill-rule="evenodd" d="M12 8.25a3.75 3.75 0 1 1 0 7.5 3.75 3.75 0 0 1 0-7.5m0 1.5a2.25 2.25 0 1 0 0 4.5 2.25 2.25 0 0 0 0-4.5" clip-rule="evenodd"/><path d="M6.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM20.005 11.245a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5zM5.83 5.82a.75.75 0 0 1 1.061 0l1.415 1.413a.75.75 0 1 1-1.061 1.061L5.831 6.88a.75.75 0 0 1 0-1.06M17.138 5.81a.75.75 0 1 1 1.06 1.06l-1.414 1.414a.75.75 0 0 1-1.06-1.06zM12 3.25a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0V4a.75.75 0 0 1 .75-.75"/></g></symbol>
242
246
  <symbol id="tui-system-tool" viewBox="0 0 24 24"><path fill-rule="evenodd" d="m13.862 7.492 2.26-2.26a4 4 0 0 0-5.208 4.804l-5.328 5.328a2 2 0 1 0 2.828 2.828l5.328-5.328a4 4 0 0 0 4.804-5.208l-2.26 2.26-1.912-.512zm-7.216 9.64a.5.5 0 1 1 .708-.707.5.5 0 0 1-.708.707" clip-rule="evenodd"/></symbol>
@@ -24,10 +24,8 @@ export declare const DurationFill: IconComponent;
24
24
  export declare const DurationOutline: IconComponent;
25
25
  export declare const EditExternally: IconComponent;
26
26
  export declare const FreeForm: IconComponent;
27
- export declare const HelpCircleFill: IconComponent;
28
27
  export declare const HelpCircleOutline: IconComponent;
29
28
  export declare const Hidden: IconComponent;
30
- export declare const Info: IconComponent;
31
29
  export declare const InspectorSidebar: IconComponent;
32
30
  export declare const ItemTypePage: IconComponent;
33
31
  export declare const ItemTypeSection: IconComponent;
@@ -43,7 +41,6 @@ export declare const PrerequisitesIn: IconComponent;
43
41
  export declare const PrerequisitesOut: IconComponent;
44
42
  export declare const Prerequisites: IconComponent;
45
43
  export declare const Presentation: IconComponent;
46
- export declare const QuestionMark: IconComponent;
47
44
  export declare const SwitchBranch: IconComponent;
48
45
  export declare const Visible: IconComponent;
49
46
 
@@ -1,4 +1,7 @@
1
1
  import { createElement as _c } from "react";
2
+ import { HelpCircleFill as SystemHelpCircleFill } from "../system/index.js";
3
+ import { Info as SystemInfo } from "../system/index.js";
4
+ import { QuestionMark as SystemQuestionMark } from "../system/index.js";
2
5
 
3
6
  export function BlockCourse(props) {
4
7
  return _c("svg", Object.assign({
@@ -220,16 +223,6 @@ export function FreeForm(props) {
220
223
  }, props), _c("path", {fillRule:"evenodd",d:"M7 14.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M17 14.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M7 4.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5M17 4.25a2.75 2.75 0 1 1 0 5.5 2.75 2.75 0 0 1 0-5.5m0 1.5a1.25 1.25 0 1 0 0 2.5 1.25 1.25 0 0 0 0-2.5",clipRule:"evenodd"}));
221
224
  }
222
225
 
223
- export function HelpCircleFill(props) {
224
- return _c("svg", Object.assign({
225
- xmlns: "http://www.w3.org/2000/svg",
226
- viewBox: "0 0 24 24",
227
- width: "1em",
228
- height: "1em",
229
- fill: "currentColor"
230
- }, props), _c("path", {fillRule:"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",clipRule:"evenodd"}));
231
- }
232
-
233
226
  export function HelpCircleOutline(props) {
234
227
  return _c("svg", Object.assign({
235
228
  xmlns: "http://www.w3.org/2000/svg",
@@ -250,16 +243,6 @@ export function Hidden(props) {
250
243
  }, props), _c("path", {fillRule:"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",clipRule:"evenodd"}), _c("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.177A7.1 7.1 0 0 0 12 16.5c2.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"}), _c("path", {d:"M15.297 10.823a3.5 3.5 0 0 1-4.474 4.474z"}));
251
244
  }
252
245
 
253
- export function Info(props) {
254
- return _c("svg", Object.assign({
255
- xmlns: "http://www.w3.org/2000/svg",
256
- viewBox: "0 0 24 24",
257
- width: "1em",
258
- height: "1em",
259
- fill: "currentColor"
260
- }, props), _c("path", {d:"M13 11v6h-2v-6zm0-2V7h-2v2z"}), _c("path", {fillRule:"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",clipRule:"evenodd"}));
261
- }
262
-
263
246
  export function InspectorSidebar(props) {
264
247
  return _c("svg", Object.assign({
265
248
  xmlns: "http://www.w3.org/2000/svg",
@@ -410,16 +393,6 @@ export function Presentation(props) {
410
393
  }, props), _c("path", {fillRule:"evenodd",d:"M20 5.5h-1V13l-.01.204a2 2 0 0 1-1.786 1.785L17 15h-4.25v1.625l3.7 2.775-.9 1.2L12 17.937 8.45 20.6l-.9-1.2 3.7-2.775V15H7l-.204-.01a2 2 0 0 1-1.785-1.786L5 13V5.5H4V4h16zM6.5 13a.5.5 0 0 0 .5.5h10a.5.5 0 0 0 .5-.5V5.5h-11z",clipRule:"evenodd"}));
411
394
  }
412
395
 
413
- export function QuestionMark(props) {
414
- return _c("svg", Object.assign({
415
- xmlns: "http://www.w3.org/2000/svg",
416
- viewBox: "0 0 24 24",
417
- width: "1em",
418
- height: "1em",
419
- fill: "currentColor"
420
- }, props), _c("path", {d:"M12 17a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3m0-13.306a5 5 0 0 1 1 9.9V15h-2v-2.056c0-.706.564-1.217 1.188-1.256A3 3 0 1 0 9 8.695H7a5 5 0 0 1 5-5"}));
421
- }
422
-
423
396
  export function SwitchBranch(props) {
424
397
  return _c("svg", Object.assign({
425
398
  xmlns: "http://www.w3.org/2000/svg",
@@ -464,10 +437,10 @@ export const lmsIcons = {
464
437
  'duration-outline': DurationOutline,
465
438
  'edit-externally': EditExternally,
466
439
  'free-form': FreeForm,
467
- 'help-circle-fill': HelpCircleFill,
440
+ 'help-circle-fill': SystemHelpCircleFill,
468
441
  'help-circle-outline': HelpCircleOutline,
469
442
  'hidden': Hidden,
470
- 'info': Info,
443
+ 'info': SystemInfo,
471
444
  'inspector-sidebar': InspectorSidebar,
472
445
  'item-type-page': ItemTypePage,
473
446
  'item-type-section': ItemTypeSection,
@@ -483,7 +456,7 @@ export const lmsIcons = {
483
456
  'prerequisites-in': PrerequisitesIn,
484
457
  'prerequisites-out': PrerequisitesOut,
485
458
  'presentation': Presentation,
486
- 'question-mark': QuestionMark,
459
+ 'question-mark': SystemQuestionMark,
487
460
  'switch-branch': SwitchBranch,
488
461
  'visible': Visible,
489
462
  };