@aircall/ds 0.48.0 → 0.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import { C as Button, D as _objectWithoutProperties, E as _objectSpread2, O as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-C-UXpZWS.js";
1
+ import { C as Button, D as _objectWithoutProperties, E as _objectSpread2, O as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-AX0Mgu6K.js";
2
2
  import * as React from "react";
3
3
  import { createContext, useContext, useSyncExternalStore } from "react";
4
4
  import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
5
- import { ArrowDownToLine, ArrowLeft, ArrowRight, Backward10, Bold, CalendarDaysIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleAlert, CircleAlertIcon, CircleCheck, Code, ExternalLink, FLAGS, FastForward, FlagUs, Forward10, Info, Italic, Link, List as List$1, ListOrdered, Loader2Icon, Minus, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Pause, PencilIcon, Play, Plus, PlusIcon, Rewind, RotateCcw, Search, Smile, Strikethrough, Text, TriangleAlertIcon, Underline, Unlink, XIcon } from "@aircall/react-icons";
5
+ import { ArrowDownToLine, ArrowLeft, ArrowRight, Backward10, Bold, CalendarDaysIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleAlert, CircleAlertIcon, CircleCheck, Code, ExternalLink, FLAGS, FastForward, FlagUs, Forward10, Info, Italic, Link, List as List$1, ListOrdered, Loader2Icon, Minus, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Pause, PencilIcon, Play, Plus, PlusIcon, Quote, Rewind, RotateCcw, Search, Smile, Strikethrough, Text, TriangleAlertIcon, Underline, Unlink, XIcon } from "@aircall/react-icons";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { Button as Button$1 } from "@base-ui/react/button";
8
8
  import { cva } from "class-variance-authority";
@@ -40,8 +40,8 @@ import { PreviewCard } from "@base-ui/react/preview-card";
40
40
  import { NumberField } from "@base-ui/react/number-field";
41
41
  import { OTPInput, OTPInputContext } from "input-otp";
42
42
  import { Progress as Progress$1 } from "@base-ui/react/progress";
43
- import { BoldRules, CodeRules, ItalicRules, StrikethroughRules } from "@platejs/basic-nodes";
44
- import { BasicMarksPlugin, BoldPlugin, CodePlugin, ItalicPlugin, StrikethroughPlugin } from "@platejs/basic-nodes/react";
43
+ import { BlockquoteRules, BoldRules, CodeRules, ItalicRules, StrikethroughRules } from "@platejs/basic-nodes";
44
+ import { BasicMarksPlugin, BlockquotePlugin, BoldPlugin, CodePlugin, ItalicPlugin, StrikethroughPlugin } from "@platejs/basic-nodes/react";
45
45
  import { filterWords, withTriggerCombobox } from "@platejs/combobox";
46
46
  import { IndentPlugin } from "@platejs/indent/react";
47
47
  import { LinkRules, getLinkAttributes, upsertLink, validateUrl } from "@platejs/link";
@@ -52,7 +52,7 @@ import { getMentionOnSelectItem } from "@platejs/mention";
52
52
  import { MentionInputPlugin, MentionPlugin } from "@platejs/mention/react";
53
53
  import { SlashInputPlugin, SlashPlugin } from "@platejs/slash-command/react";
54
54
  import { KEYS, createSlatePlugin, createTSlatePlugin } from "platejs";
55
- import { Plate, PlateContent, PlateElement, createPlatePlugin, toPlatePlugin, useComposedRef, useEditorId, useEditorReadOnly, useEditorRef, useEditorSelection, useEventEditorValue, useFocused, useMarkToolbarButton, useMarkToolbarButtonState, usePlateEditor, usePluginOption, useReadOnly, useSelected } from "platejs/react";
55
+ import { Plate, PlateContent, PlateElement, createPlatePlugin, toPlatePlugin, useComposedRef, useEditorId, useEditorReadOnly, useEditorRef, useEditorSelection, useEditorSelector, useEventEditorValue, useFocused, useMarkToolbarButton, useMarkToolbarButtonState, usePlateEditor, usePluginOption, useReadOnly, useSelected } from "platejs/react";
56
56
  import remarkGfm from "remark-gfm";
57
57
  import { Combobox as Combobox$2, ComboboxGroup as ComboboxGroup$1, ComboboxItem as ComboboxItem$1, ComboboxPopover, ComboboxProvider, Portal, useComboboxContext, useComboboxStore, useStoreState } from "@ariakit/react";
58
58
  import { useComboboxInput, useHTMLInputCursorState } from "@platejs/combobox/react";
@@ -198,7 +198,7 @@ const _excluded4$30 = [
198
198
  "playheadHeight"
199
199
  ];
200
200
  const _excluded5$24 = ["className"];
201
- const _excluded6$20 = ["mode", "className"];
201
+ const _excluded6$21 = ["mode", "className"];
202
202
  const _excluded7$12 = ["className"];
203
203
  const _excluded8$11 = [
204
204
  "speeds",
@@ -639,7 +639,7 @@ function AudioPlayerCurrentTime(_ref8) {
639
639
  * ```
640
640
  */
641
641
  function AudioPlayerTime(_ref9) {
642
- let { mode = "compact", className } = _ref9, props = _objectWithoutProperties(_ref9, _excluded6$20);
642
+ let { mode = "compact", className } = _ref9, props = _objectWithoutProperties(_ref9, _excluded6$21);
643
643
  const { isPlaying, duration } = useAudioPlayer();
644
644
  const elapsed = useAudioPlayerTime();
645
645
  if (mode === "full") return /* @__PURE__ */ jsxs("span", _objectSpread2(_objectSpread2({
@@ -821,7 +821,7 @@ const _excluded2$42 = ["className", "size"];
821
821
  const _excluded3$34 = ["className"];
822
822
  const _excluded4$29 = ["className"];
823
823
  const _excluded5$23 = ["className"];
824
- const _excluded6$19 = ["className"];
824
+ const _excluded6$20 = ["className"];
825
825
  const _excluded7$11 = ["className"];
826
826
  const _excluded8$10 = ["className"];
827
827
  const _excluded9$8 = [
@@ -954,7 +954,7 @@ AlertDialogMedia.displayName = "AlertDialogMedia";
954
954
  * announced to assistive technology when the dialog opens.
955
955
  */
956
956
  const AlertDialogTitle = React.forwardRef((componentProps, forwardRef) => {
957
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$19);
957
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$20);
958
958
  return /* @__PURE__ */ jsx(AlertDialog$1.Title, _objectSpread2({
959
959
  ref: forwardRef,
960
960
  "data-slot": "alert-dialog-title",
@@ -1134,7 +1134,7 @@ const _excluded2$40 = ["className", "variant"];
1134
1134
  const _excluded3$32 = ["className"];
1135
1135
  const _excluded4$27 = ["className"];
1136
1136
  const _excluded5$22 = ["className"];
1137
- const _excluded6$18 = ["className"];
1137
+ const _excluded6$19 = ["className"];
1138
1138
  const _excluded7$10 = [
1139
1139
  "className",
1140
1140
  "variant",
@@ -1266,7 +1266,7 @@ AttachmentDescription.displayName = "AttachmentDescription";
1266
1266
  * `orientation="vertical"` it floats to the top-right corner of the card.
1267
1267
  */
1268
1268
  const AttachmentActions = React.forwardRef((componentProps, forwardRef) => {
1269
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$18);
1269
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$19);
1270
1270
  return /* @__PURE__ */ jsx("div", _objectSpread2({
1271
1271
  ref: forwardRef,
1272
1272
  "data-slot": "attachment-actions",
@@ -1343,7 +1343,7 @@ const _excluded2$39 = ["className"];
1343
1343
  const _excluded3$31 = ["className"];
1344
1344
  const _excluded4$26 = ["className"];
1345
1345
  const _excluded5$21 = ["className"];
1346
- const _excluded6$17 = ["className"];
1346
+ const _excluded6$18 = ["className"];
1347
1347
  /**
1348
1348
  * `class-variance-authority` config for {@link Avatar}. `size`
1349
1349
  * (`xs` | `sm` | `default` | `lg` | `xl`, default `default`) sets the avatar's diameter.
@@ -1453,7 +1453,7 @@ AvatarGroup.displayName = "AvatarGroup";
1453
1453
  * Renders a circular `<div>` sized to match the group's avatars.
1454
1454
  */
1455
1455
  const AvatarGroupCount = React.forwardRef((componentProps, forwardRef) => {
1456
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$17);
1456
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$18);
1457
1457
  return /* @__PURE__ */ jsx("div", _objectSpread2({
1458
1458
  ref: forwardRef,
1459
1459
  "data-slot": "avatar-group-count",
@@ -2261,7 +2261,7 @@ const _excluded4$25 = [
2261
2261
  "alignItemWithTrigger"
2262
2262
  ];
2263
2263
  const _excluded5$20 = ["className"];
2264
- const _excluded6$16 = ["className", "children"];
2264
+ const _excluded6$17 = ["className", "children"];
2265
2265
  const _excluded7$9 = ["className"];
2266
2266
  const _excluded8$8 = ["className"];
2267
2267
  const _excluded9$6 = ["className"];
@@ -2378,7 +2378,7 @@ SelectLabel.displayName = "SelectLabel";
2378
2378
  * `<div role="option">` holding the item text plus a trailing check indicator shown when selected.
2379
2379
  */
2380
2380
  const SelectItem = React.forwardRef((componentProps, forwardRef) => {
2381
- const { className, children } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$16);
2381
+ const { className, children } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$17);
2382
2382
  return /* @__PURE__ */ jsxs(Select$1.Item, _objectSpread2(_objectSpread2({
2383
2383
  ref: forwardRef,
2384
2384
  "data-slot": "select-item",
@@ -2672,7 +2672,7 @@ const _excluded2$34 = ["className"];
2672
2672
  const _excluded3$26 = ["className"];
2673
2673
  const _excluded4$23 = ["className"];
2674
2674
  const _excluded5$18 = ["className"];
2675
- const _excluded6$15 = ["className"];
2675
+ const _excluded6$16 = ["className"];
2676
2676
  const _excluded7$8 = ["className"];
2677
2677
  /**
2678
2678
  * `class-variance-authority` config for {@link Card}. `size`
@@ -2772,7 +2772,7 @@ CardAction.displayName = "CardAction";
2772
2772
  * Main body region of a card. Renders a `<div data-slot="card-content">` with horizontal padding.
2773
2773
  */
2774
2774
  const CardContent = React.forwardRef((componentProps, forwardRef) => {
2775
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$15);
2775
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$16);
2776
2776
  return /* @__PURE__ */ jsx("div", _objectSpread2({
2777
2777
  ref: forwardRef,
2778
2778
  "data-slot": "card-content",
@@ -3565,7 +3565,7 @@ const _excluded2$28 = [
3565
3565
  const _excluded3$23 = ["className", "presets"];
3566
3566
  const _excluded4$20 = ["className"];
3567
3567
  const _excluded5$16 = ["className", "mode"];
3568
- const _excluded6$14 = ["className"];
3568
+ const _excluded6$15 = ["className"];
3569
3569
  const _excluded7$7 = ["className"];
3570
3570
  const _excluded8$7 = ["className"];
3571
3571
  const HEX_PATTERN = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
@@ -4068,7 +4068,7 @@ ColorPickerPanel.displayName = "ColorPickerPanel";
4068
4068
  * ```
4069
4069
  */
4070
4070
  const ColorPickerArea = React.forwardRef((componentProps, forwardRef) => {
4071
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$14);
4071
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$15);
4072
4072
  const { hsv, setHsv } = useColorPickerContext();
4073
4073
  const t = useDsTranslation("ds");
4074
4074
  const surfaceRef = React.useRef(null);
@@ -4253,7 +4253,7 @@ const _excluded3$22 = [
4253
4253
  ];
4254
4254
  const _excluded4$19 = ["className"];
4255
4255
  const _excluded5$15 = ["className"];
4256
- const _excluded6$13 = ["className"];
4256
+ const _excluded6$14 = ["className"];
4257
4257
  /**
4258
4258
  * The bordered flex-row shell shared by `InputGroup` and `NumericInput`.
4259
4259
  * Owns the border, height, hover/focus ring, disabled fade, error halo, and the
@@ -4341,7 +4341,7 @@ const InputGroupInput = React.forwardRef((componentProps, forwardRef) => {
4341
4341
  });
4342
4342
  InputGroupInput.displayName = "InputGroupInput";
4343
4343
  const InputGroupTextarea = React.forwardRef((componentProps, forwardRef) => {
4344
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$13);
4344
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$14);
4345
4345
  return /* @__PURE__ */ jsx(Textarea, _objectSpread2({
4346
4346
  ref: forwardRef,
4347
4347
  "data-slot": "input-group-control",
@@ -4373,7 +4373,7 @@ const _excluded4$18 = [
4373
4373
  "anchor"
4374
4374
  ];
4375
4375
  const _excluded5$14 = ["className"];
4376
- const _excluded6$12 = ["className", "children"];
4376
+ const _excluded6$13 = ["className", "children"];
4377
4377
  const _excluded7$6 = ["className"];
4378
4378
  const _excluded8$6 = ["className"];
4379
4379
  const _excluded9$5 = ["className"];
@@ -4526,7 +4526,7 @@ ComboboxList.displayName = "ComboboxList";
4526
4526
  * row with a trailing check indicator when selected.
4527
4527
  */
4528
4528
  const ComboboxItem = React.forwardRef((componentProps, forwardRef) => {
4529
- const { className, children } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$12);
4529
+ const { className, children } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$13);
4530
4530
  return /* @__PURE__ */ jsxs(Combobox$1.Item, _objectSpread2(_objectSpread2({
4531
4531
  ref: forwardRef,
4532
4532
  "data-slot": "combobox-item",
@@ -4677,7 +4677,7 @@ const _excluded4$17 = [
4677
4677
  "children"
4678
4678
  ];
4679
4679
  const _excluded5$13 = ["className"];
4680
- const _excluded6$11 = ["className"];
4680
+ const _excluded6$12 = ["className"];
4681
4681
  /**
4682
4682
  * Root of the dialog, wrapping Base UI's `Dialog.Root`. Manages open/close state and renders no DOM
4683
4683
  * element — place `DialogTrigger` and `DialogContent` inside it.
@@ -4813,7 +4813,7 @@ DialogTitle.displayName = "DialogTitle";
4813
4813
  * `<p>` and is associated with the dialog for screen readers.
4814
4814
  */
4815
4815
  const DialogDescription = React.forwardRef((componentProps, forwardRef) => {
4816
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$11);
4816
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$12);
4817
4817
  return /* @__PURE__ */ jsx(Dialog$1.Description, _objectSpread2({
4818
4818
  ref: forwardRef,
4819
4819
  "data-slot": "dialog-description",
@@ -4832,7 +4832,7 @@ const _excluded2$24 = [
4832
4832
  const _excluded3$19 = ["className"];
4833
4833
  const _excluded4$16 = ["className"];
4834
4834
  const _excluded5$12 = ["className"];
4835
- const _excluded6$10 = ["className"];
4835
+ const _excluded6$11 = ["className"];
4836
4836
  const _excluded7$5 = ["className"];
4837
4837
  const _excluded8$5 = ["className"];
4838
4838
  /**
@@ -4954,7 +4954,7 @@ CommandGroup.displayName = "CommandGroup";
4954
4954
  * one pixel tall.
4955
4955
  */
4956
4956
  const CommandSeparator = React.forwardRef((componentProps, forwardRef) => {
4957
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$10);
4957
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$11);
4958
4958
  return /* @__PURE__ */ jsx(Command$1.Separator, _objectSpread2({
4959
4959
  ref: forwardRef,
4960
4960
  "data-slot": "command-separator",
@@ -5024,6 +5024,24 @@ const CountryFlag = React.forwardRef((componentProps, forwardRef) => {
5024
5024
  });
5025
5025
  CountryFlag.displayName = "CountryFlag";
5026
5026
  //#endregion
5027
+ //#region src/lib/group-by-first-seen.ts
5028
+ /**
5029
+ * Buckets `items` by `getGroupKey`, keeping groups in first-seen order and items in `items` order.
5030
+ * Shared by `DataCombobox` and `DataTree` so both group the same way.
5031
+ *
5032
+ * @internal Not exported from `src/index.ts`.
5033
+ */
5034
+ function groupByFirstSeen(items, getGroupKey) {
5035
+ const groups = /* @__PURE__ */ new Map();
5036
+ for (const item of items) {
5037
+ const groupKey = getGroupKey(item);
5038
+ const bucket = groups.get(groupKey);
5039
+ if (bucket) bucket.push(item);
5040
+ else groups.set(groupKey, [item]);
5041
+ }
5042
+ return groups;
5043
+ }
5044
+ //#endregion
5027
5045
  //#region src/components/combobox-rows.tsx
5028
5046
  const DEFAULT_SKELETON_COUNT = 5;
5029
5047
  const DEFAULT_ROW_HEIGHT = 36;
@@ -5041,14 +5059,7 @@ const VIRTUAL_ROW_OVERSCAN = 8;
5041
5059
  function useComboboxItemGroups(items, getGroupKey, getGroupLabel) {
5042
5060
  return React.useMemo(() => {
5043
5061
  if (!getGroupKey) return null;
5044
- const byKey = /* @__PURE__ */ new Map();
5045
- for (const item of items) {
5046
- const gk = getGroupKey(item);
5047
- const bucket = byKey.get(gk);
5048
- if (bucket) bucket.push(item);
5049
- else byKey.set(gk, [item]);
5050
- }
5051
- return Array.from(byKey, ([groupKey, groupItems]) => ({
5062
+ return Array.from(groupByFirstSeen(items, getGroupKey), ([groupKey, groupItems]) => ({
5052
5063
  groupKey,
5053
5064
  label: getGroupLabel ? getGroupLabel(groupKey) : groupKey,
5054
5065
  items: groupItems
@@ -5607,14 +5618,17 @@ const _excluded5$11 = [
5607
5618
  "children",
5608
5619
  "className"
5609
5620
  ];
5610
- const _excluded6$9 = ["className"];
5621
+ const _excluded6$10 = ["className"];
5611
5622
  const TreeContext = React.createContext({
5612
5623
  currentItem: void 0,
5613
5624
  indent: 20,
5614
5625
  tree: void 0
5615
5626
  });
5627
+ function getTreeContext() {
5628
+ return TreeContext;
5629
+ }
5616
5630
  function useTreeContext() {
5617
- return React.useContext(TreeContext);
5631
+ return React.useContext(getTreeContext());
5618
5632
  }
5619
5633
  /**
5620
5634
  * Root tree container. Renders a flex-column `<div>` and provides the tree
@@ -5636,11 +5650,12 @@ function useTreeContext() {
5636
5650
  */
5637
5651
  function Tree(_ref) {
5638
5652
  let { indent = 20, tree, className } = _ref, props = _objectWithoutProperties(_ref, _excluded$34);
5653
+ const TreeContextProvider = getTreeContext().Provider;
5639
5654
  const containerProps = tree && typeof tree.getContainerProps === "function" ? tree.getContainerProps() : {};
5640
5655
  const mergedProps = _objectSpread2(_objectSpread2({}, props), containerProps);
5641
5656
  const { style: propStyle } = mergedProps, otherProps = _objectWithoutProperties(mergedProps, _excluded2$23);
5642
5657
  const mergedStyle = _objectSpread2(_objectSpread2({}, propStyle), {}, { "--tree-indent": `${indent}px` });
5643
- return /* @__PURE__ */ jsx(TreeContext.Provider, {
5658
+ return /* @__PURE__ */ jsx(TreeContextProvider, {
5644
5659
  value: {
5645
5660
  indent,
5646
5661
  tree
@@ -5664,6 +5679,7 @@ const ACTIVATION_KEYS = /* @__PURE__ */ new Set([
5664
5679
  */
5665
5680
  function TreeItem(_ref2) {
5666
5681
  let { item, className, children, onActivate, onClick: userOnClick, onKeyDown: userOnKeyDown, style: userStyle } = _ref2, props = _objectWithoutProperties(_ref2, _excluded3$18);
5682
+ const TreeContextProvider = getTreeContext().Provider;
5667
5683
  const { indent } = useTreeContext();
5668
5684
  const _ref3 = typeof item.getProps === "function" ? item.getProps() : {}, { style: itemStyle, onClick: _headlessOnClick } = _ref3, restItemProps = _objectWithoutProperties(_ref3, _excluded4$15);
5669
5685
  const activate = () => {
@@ -5690,7 +5706,7 @@ function TreeItem(_ref2) {
5690
5706
  }
5691
5707
  };
5692
5708
  const mergedStyle = _objectSpread2(_objectSpread2(_objectSpread2({}, userStyle), itemStyle), {}, { "--tree-padding": `${item.getItemMeta().level * indent}px` });
5693
- return /* @__PURE__ */ jsx(TreeContext.Provider, {
5709
+ return /* @__PURE__ */ jsx(TreeContextProvider, {
5694
5710
  value: {
5695
5711
  currentItem: item,
5696
5712
  indent
@@ -5752,7 +5768,7 @@ function TreeItemLabel(_ref4) {
5752
5768
  * tree instance's `getDragLineStyle()`; renders nothing when no tree is in context.
5753
5769
  */
5754
5770
  function TreeDragLine(_ref5) {
5755
- let { className } = _ref5, props = _objectWithoutProperties(_ref5, _excluded6$9);
5771
+ let { className } = _ref5, props = _objectWithoutProperties(_ref5, _excluded6$10);
5756
5772
  const { tree } = useTreeContext();
5757
5773
  if (!tree || typeof tree.getDragLineStyle !== "function") {
5758
5774
  console.warn("TreeDragLine: No tree provided via context or tree does not have getDragLineStyle method");
@@ -5809,14 +5825,17 @@ function buildIndex(items, getKey, getChildren) {
5809
5825
  * ```
5810
5826
  */
5811
5827
  function DataTree(componentProps) {
5812
- const { items, getKey, getLabel, getChildren, getIcon, getTextValue, selectionMode = "none", selectedKeys, defaultSelectedKeys = [], onSelectionChange, expandedKeys, defaultExpandedKeys = [], onExpandedChange, indent = 20, className, "aria-label": ariaLabel } = componentProps;
5828
+ const { items, getKey, getLabel, getChildren, getIcon, getTextValue, getGroupKey, selectionMode = "none", selectedKeys, defaultSelectedKeys = [], onSelectionChange, expandedKeys, defaultExpandedKeys = [], onExpandedChange, indent = 20, className, "aria-label": ariaLabel } = componentProps;
5813
5829
  const selectable = selectionMode !== "none";
5814
5830
  const multiple = selectionMode === "multiple";
5815
- const index = React.useMemo(() => buildIndex(items, getKey, getChildren), [
5831
+ const groups = React.useMemo(() => getGroupKey ? Array.from(groupByFirstSeen(items, getGroupKey).values()) : null, [items, getGroupKey]);
5832
+ const index = React.useMemo(() => buildIndex(groups ? groups.flat() : items, getKey, getChildren), [
5833
+ groups,
5816
5834
  items,
5817
5835
  getKey,
5818
5836
  getChildren
5819
5837
  ]);
5838
+ const groupStartKeys = React.useMemo(() => new Set(groups === null || groups === void 0 ? void 0 : groups.slice(1).flatMap((group) => group.slice(0, 1).map(getKey))), [groups, getKey]);
5820
5839
  const [expandedItems = [], setExpandedState] = useControllableState({
5821
5840
  prop: expandedKeys,
5822
5841
  defaultProp: defaultExpandedKeys,
@@ -5884,7 +5903,11 @@ function DataTree(componentProps) {
5884
5903
  tree,
5885
5904
  children: tree.getItems().map((item) => {
5886
5905
  const checkedState = multiple ? item.getCheckedState() : void 0;
5887
- return /* @__PURE__ */ jsxs(TreeItem, {
5906
+ return /* @__PURE__ */ jsxs(React.Fragment, { children: [groupStartKeys.has(item.getId()) ? /* @__PURE__ */ jsx(Separator, {
5907
+ "aria-hidden": true,
5908
+ className: "my-1",
5909
+ "data-slot": "data-tree-separator"
5910
+ }) : null, /* @__PURE__ */ jsxs(TreeItem, {
5888
5911
  item,
5889
5912
  onActivate: multiple ? () => item.toggleCheckedState() : selectable ? () => item.select() : void 0,
5890
5913
  children: [multiple ? /* @__PURE__ */ jsx(Checkbox, {
@@ -5897,7 +5920,7 @@ function DataTree(componentProps) {
5897
5920
  return (_item$getCheckboxProp = (_item$getCheckboxProp2 = item.getCheckboxProps()).onChange) === null || _item$getCheckboxProp === void 0 ? void 0 : _item$getCheckboxProp.call(_item$getCheckboxProp2, { target: { checked } });
5898
5921
  }
5899
5922
  }) : null, renderLabel(item)]
5900
- }, item.getId());
5923
+ })] }, item.getId());
5901
5924
  })
5902
5925
  });
5903
5926
  }
@@ -5930,7 +5953,7 @@ const _excluded2$22 = ["className", "variant"];
5930
5953
  const _excluded3$17 = ["className"];
5931
5954
  const _excluded4$14 = ["className", "orientation"];
5932
5955
  const _excluded5$10 = ["className"];
5933
- const _excluded6$8 = [
5956
+ const _excluded6$9 = [
5934
5957
  "className",
5935
5958
  "children",
5936
5959
  "necessityIndicator"
@@ -6055,7 +6078,7 @@ FieldContent.displayName = "FieldContent";
6055
6078
  * ```
6056
6079
  */
6057
6080
  const FieldLabel = React.forwardRef((componentProps, forwardRef) => {
6058
- const { className, children, necessityIndicator } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$8);
6081
+ const { className, children, necessityIndicator } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$9);
6059
6082
  const t = useDsTranslation("ds");
6060
6083
  return /* @__PURE__ */ jsxs(Label, _objectSpread2(_objectSpread2({
6061
6084
  ref: forwardRef,
@@ -8315,7 +8338,7 @@ const _excluded5$9 = [
8315
8338
  "showBar",
8316
8339
  "container"
8317
8340
  ];
8318
- const _excluded6$7 = [
8341
+ const _excluded6$8 = [
8319
8342
  "className",
8320
8343
  "allowSelection",
8321
8344
  "render"
@@ -8471,7 +8494,7 @@ const DrawerViewport = React.forwardRef((componentProps, forwardRef) => {
8471
8494
  const { className, position, variant = "default", inContainer } = componentProps, props = _objectWithoutProperties(componentProps, _excluded4$13);
8472
8495
  return /* @__PURE__ */ jsx(DrawerPrimitive.Viewport, _objectSpread2({
8473
8496
  ref: forwardRef,
8474
- className: cn("inset-0 z-50 [--bleed:--spacing(12)] [--inset:--spacing(0)]", inContainer ? "absolute" : "fixed", "touch-none", position === "bottom" && "grid grid-rows-[1fr_auto] pt-12", position === "top" && "grid grid-rows-[auto_1fr] pb-12", position === "left" && "flex justify-start", position === "right" && "flex justify-end", variant === "inset" && "px-(--inset) sm:[--inset:--spacing(4)]", variant === "inset" && position !== "bottom" && "pt-(--inset)", variant === "inset" && position !== "top" && "pb-(--inset)", className),
8497
+ className: cn("inset-0 z-50 [--bleed:--spacing(12)] [--inset:0px]", inContainer ? "absolute" : "fixed", "touch-none", position === "bottom" && "grid grid-rows-[1fr_auto] pt-12", position === "top" && "grid grid-rows-[auto_1fr] pb-12", position === "left" && "flex justify-start", position === "right" && "flex justify-end", variant === "inset" && "px-(--inset) sm:[--inset:--spacing(4)]", variant === "inset" && position !== "bottom" && "pt-(--inset)", variant === "inset" && position !== "top" && "pb-(--inset)", className),
8475
8498
  "data-slot": "drawer-viewport"
8476
8499
  }, props));
8477
8500
  });
@@ -8520,7 +8543,7 @@ DrawerPopup.displayName = "DrawerPopup";
8520
8543
  * Renders a `<div>` (or the `render` element).
8521
8544
  */
8522
8545
  const DrawerHeader = React.forwardRef((componentProps, forwardRef) => {
8523
- const { className, allowSelection = false, render } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$7);
8546
+ const { className, allowSelection = false, render } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$8);
8524
8547
  const defaultProps = {
8525
8548
  className: cn("flex flex-col gap-2 p-6 in-[[data-slot=drawer-popup]:has([data-slot=drawer-panel])]:pb-3 max-sm:pb-4", !allowSelection && "cursor-default", className),
8526
8549
  ref: forwardRef,
@@ -8850,7 +8873,7 @@ const _excluded5$8 = [
8850
8873
  "sideOffset",
8851
8874
  "className"
8852
8875
  ];
8853
- const _excluded6$6 = [
8876
+ const _excluded6$7 = [
8854
8877
  "className",
8855
8878
  "children",
8856
8879
  "checked",
@@ -9025,7 +9048,7 @@ DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
9025
9048
  * Renders a `<div>` menu item with a trailing check indicator when checked.
9026
9049
  */
9027
9050
  const DropdownMenuCheckboxItem = React.forwardRef((componentProps, forwardRef) => {
9028
- const { className, children, checked, inset } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$6);
9051
+ const { className, children, checked, inset } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$7);
9029
9052
  return /* @__PURE__ */ jsxs(Menu.CheckboxItem, _objectSpread2(_objectSpread2({
9030
9053
  ref: forwardRef,
9031
9054
  "data-slot": "dropdown-menu-checkbox-item",
@@ -9115,7 +9138,7 @@ const _excluded2$17 = ["className"];
9115
9138
  const _excluded3$13 = ["className", "variant"];
9116
9139
  const _excluded4$11 = ["className"];
9117
9140
  const _excluded5$7 = ["className"];
9118
- const _excluded6$5 = ["className"];
9141
+ const _excluded6$6 = ["className"];
9119
9142
  /**
9120
9143
  * Empty-state container that centers its content (media, text, and actions).
9121
9144
  * Renders a `<div>`; compose it with `EmptyHeader`, `EmptyMedia`, `EmptyTitle`,
@@ -9209,7 +9232,7 @@ EmptyDescription.displayName = "EmptyDescription";
9209
9232
  * Region below the header for actions or extra content (e.g. buttons). Renders a `<div>`.
9210
9233
  */
9211
9234
  const EmptyContent = React.forwardRef((componentProps, forwardRef) => {
9212
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$5);
9235
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$6);
9213
9236
  return /* @__PURE__ */ jsx("div", _objectSpread2({
9214
9237
  ref: forwardRef,
9215
9238
  "data-slot": "empty-content",
@@ -9245,7 +9268,7 @@ const _excluded2$16 = [
9245
9268
  const _excluded3$12 = ["variant"];
9246
9269
  const _excluded4$10 = ["className"];
9247
9270
  const _excluded5$6 = ["className"];
9248
- const _excluded6$4 = ["render", "onClick"];
9271
+ const _excluded6$5 = ["render", "onClick"];
9249
9272
  const DropzoneContext = React.createContext(null);
9250
9273
  function useDropzoneContext() {
9251
9274
  const ctx = React.useContext(DropzoneContext);
@@ -9522,7 +9545,7 @@ DropzoneActions.displayName = "DropzoneActions";
9522
9545
  * `render` (Base UI convention) to substitute another element.
9523
9546
  */
9524
9547
  const DropzoneTrigger = React.forwardRef((componentProps, forwardRef) => {
9525
- const { render, onClick } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$4);
9548
+ const { render, onClick } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$5);
9526
9549
  const { open, disabled } = useDropzoneContext();
9527
9550
  return useRender({
9528
9551
  defaultTagName: "button",
@@ -10966,7 +10989,7 @@ const _excluded3$8 = [
10966
10989
  ];
10967
10990
  const _excluded4$7 = ["className", "variant"];
10968
10991
  const _excluded5$5 = ["className"];
10969
- const _excluded6$3 = ["className"];
10992
+ const _excluded6$4 = ["className"];
10970
10993
  const _excluded7$1 = ["className"];
10971
10994
  const _excluded8$1 = ["className"];
10972
10995
  const _excluded9$1 = ["className"];
@@ -11095,7 +11118,7 @@ ItemContent.displayName = "ItemContent";
11095
11118
  * Primary title line of an `Item`. Renders a `<div>` in medium-weight text clamped to one line.
11096
11119
  */
11097
11120
  const ItemTitle = React.forwardRef((componentProps, forwardRef) => {
11098
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$3);
11121
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$4);
11099
11122
  return /* @__PURE__ */ jsx("div", _objectSpread2({
11100
11123
  ref: forwardRef,
11101
11124
  "data-slot": "item-title",
@@ -11254,7 +11277,7 @@ const _excluded3$6 = [
11254
11277
  ];
11255
11278
  const _excluded4$6 = ["className", "text"];
11256
11279
  const _excluded5$4 = ["className", "text"];
11257
- const _excluded6$2 = ["className"];
11280
+ const _excluded6$3 = ["className"];
11258
11281
  /**
11259
11282
  * Root navigation container for a set of pagination controls.
11260
11283
  * Renders a `<nav role="navigation">` with a localized `aria-label`.
@@ -11377,7 +11400,7 @@ PaginationNext.displayName = "PaginationNext";
11377
11400
  * `aria-hidden` `<span>` with an ellipsis icon and screen-reader-only text.
11378
11401
  */
11379
11402
  const PaginationEllipsis = React.forwardRef((componentProps, forwardRef) => {
11380
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$2);
11403
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$3);
11381
11404
  return /* @__PURE__ */ jsxs("span", _objectSpread2(_objectSpread2({
11382
11405
  ref: forwardRef,
11383
11406
  "aria-hidden": true,
@@ -11858,6 +11881,25 @@ function ListToggle({ listStyleType, label, children }) {
11858
11881
  });
11859
11882
  }
11860
11883
  /**
11884
+ * Quote toggle: wraps the selected lines in a quote, or lifts them out of the one they are in.
11885
+ * Pressed while the caret is inside a quote. Plate ships no toolbar hook for blocks, so this
11886
+ * mirrors what the mark/list hooks return.
11887
+ */
11888
+ function QuoteToggle({ label }) {
11889
+ const editor = useEditorRef();
11890
+ const pressed = useEditorSelector((current) => current.api.some({ match: { type: current.getType(BlockquotePlugin.key) } }), []);
11891
+ return /* @__PURE__ */ jsx(ToolbarToggle, {
11892
+ label,
11893
+ pressed,
11894
+ onMouseDown: (event) => event.preventDefault(),
11895
+ onClick: () => {
11896
+ editor.getTransforms(BlockquotePlugin).blockquote.toggle();
11897
+ editor.tf.focus();
11898
+ },
11899
+ children: /* @__PURE__ */ jsx(Quote, {})
11900
+ });
11901
+ }
11902
+ /**
11861
11903
  * Link control. Opens the same floating link card shown on click / Cmd+K (insert form
11862
11904
  * when the caret is not on a link, edit card when it is) rather than a bespoke popover,
11863
11905
  * so link editing is consistent everywhere. Wired via Plate's link toolbar hooks.
@@ -11920,6 +11962,7 @@ function RichTextareaToolbarControls() {
11920
11962
  label: t("richTextarea.numberedList"),
11921
11963
  children: /* @__PURE__ */ jsx(ListOrdered, {})
11922
11964
  }),
11965
+ /* @__PURE__ */ jsx(QuoteToggle, { label: t("richTextarea.quote") }),
11923
11966
  /* @__PURE__ */ jsx(Separator, {
11924
11967
  orientation: "vertical",
11925
11968
  className: "mx-1 h-5"
@@ -11931,7 +11974,7 @@ RichTextareaToolbarControls.displayName = "RichTextareaToolbarControls";
11931
11974
  /**
11932
11975
  * Formatting toolbar for a {@link RichTextareaRoot} with `formatting`. Renders DS
11933
11976
  * `Toggle`s wired to the editor: bold / italic / underline / strikethrough / inline
11934
- * code, bulleted / numbered lists, and a link button that opens the floating link
11977
+ * code, bulleted / numbered lists, quote, and a link button that opens the floating link
11935
11978
  * card (the same card shown on click / Cmd+K). Must render inside a
11936
11979
  * `RichTextareaRoot` (it reads the editor from the Plate provider) — typically in an
11937
11980
  * `InputGroupAddon align="block-start"`.
@@ -12229,18 +12272,21 @@ function toInitialValue(value, mentions, tags) {
12229
12272
  * Plain-text of one node, including mention/tag labels. `editor.api.string` only walks
12230
12273
  * text children, but mention and tag nodes are void with empty text and keep their label
12231
12274
  * on `value`, so it would drop the `@mention`/`#tag` text the user sees.
12275
+ * Block children, like the paragraphs a quote wraps, go on separate lines.
12232
12276
  */
12233
- function nodeToPlainText(node) {
12277
+ function nodeToPlainText(editor, node) {
12234
12278
  var _node$value, _node$value2, _node$children;
12235
12279
  if (typeof node.text === "string") return node.text;
12236
12280
  if (node.type === "mention") return `@${(_node$value = node.value) !== null && _node$value !== void 0 ? _node$value : ""}`;
12237
12281
  if (node.type === "tag") return `#${(_node$value2 = node.value) !== null && _node$value2 !== void 0 ? _node$value2 : ""}`;
12238
- return ((_node$children = node.children) !== null && _node$children !== void 0 ? _node$children : []).map(nodeToPlainText).join("");
12282
+ const children = (_node$children = node.children) !== null && _node$children !== void 0 ? _node$children : [];
12283
+ const separator = children.some((child) => editor.api.isBlock(child)) ? "\n" : "";
12284
+ return children.map((child) => nodeToPlainText(editor, child)).join(separator);
12239
12285
  }
12240
12286
  /** Serializes the editor to the `{ plainText, json, markdown? }` change/submit payload. */
12241
12287
  function buildPayload(editor, formatting) {
12242
12288
  const payload = {
12243
- plainText: editor.children.map(nodeToPlainText).join("\n"),
12289
+ plainText: editor.children.map((node) => nodeToPlainText(editor, node)).join("\n"),
12244
12290
  json: editor.children
12245
12291
  };
12246
12292
  if (formatting) {
@@ -12593,8 +12639,22 @@ function LinkElement(props) {
12593
12639
  }));
12594
12640
  }
12595
12641
  /**
12642
+ * Renders a quote node as a `<blockquote>` with a left rule. A quote wraps the paragraphs it
12643
+ * holds, so Enter adds a line inside it, and Enter on an empty line leaves it. Backspace at the
12644
+ * start of a line leaves it too, except on an empty line after the first, which it deletes
12645
+ * (BlockquotePlugin's own break/delete rules). Margin, not padding, for Figma's 2px inset: the
12646
+ * rule spans the text only.
12647
+ */
12648
+ function BlockquoteElement(props) {
12649
+ return /* @__PURE__ */ jsx(PlateElement, _objectSpread2(_objectSpread2({}, props), {}, {
12650
+ as: "blockquote",
12651
+ className: "my-0.5 border-l-3 border-muted pl-2.5",
12652
+ children: props.children
12653
+ }));
12654
+ }
12655
+ /**
12596
12656
  * Plugins registered when `formatting` is on: basic marks (bold/italic/underline/
12597
- * strikethrough/code), lists (bulleted/numbered), link, and Markdown serialization.
12657
+ * strikethrough/code), lists (bulleted/numbered), quote, link, and Markdown serialization.
12598
12658
  *
12599
12659
  * `MarkdownPlugin` is configured with `remark-gfm` so strikethrough serializes as
12600
12660
  * `~~...~~`, and underline is a `plainMark` because Markdown has no underline syntax
@@ -12617,10 +12677,19 @@ function normalizeLinkInput(url) {
12617
12677
  if (SAFE_LINK_SCHEME.test(trimmed)) return trimmed;
12618
12678
  return `http://${trimmed.replace(/^[a-z][a-z0-9+.-]*:\/*/i, "")}`;
12619
12679
  }
12680
+ /**
12681
+ * The plugins `formatting` registers, in order.
12682
+ *
12683
+ * @internal Exported for `rich-textarea.test.ts` only - deliberately absent from `src/index.ts`.
12684
+ */
12620
12685
  const formattingPlugins = [
12621
12686
  BasicMarksPlugin.configurePlugin(BoldPlugin, { inputRules: [BoldRules.markdown()] }).configurePlugin(ItalicPlugin, { inputRules: [ItalicRules.markdown(), ItalicRules.markdown({ variant: "_" })] }).configurePlugin(StrikethroughPlugin, { inputRules: [StrikethroughRules.markdown()] }).configurePlugin(CodePlugin, { inputRules: [CodeRules.markdown()] }),
12622
12687
  IndentPlugin,
12623
12688
  ListPlugin,
12689
+ BlockquotePlugin.configure({
12690
+ inputRules: [BlockquoteRules.markdown()],
12691
+ render: { node: BlockquoteElement }
12692
+ }),
12624
12693
  LinkPlugin.configure({
12625
12694
  options: {
12626
12695
  forceSubmit: true,
@@ -12789,6 +12858,13 @@ function RichTextareaRoot(componentProps) {
12789
12858
  }
12790
12859
  RichTextareaRoot.displayName = "RichTextareaRoot";
12791
12860
  /**
12861
+ * List and inline code styles, shared by the editable and {@link MarkdownView} so both
12862
+ * render the same. `!pl-6` overrides the inline `padding:0` Plate's list rendering sets, so
12863
+ * `ol`/`ul` markers are indented; `[&_code]` gives inline code a boxed style (DS ships no
12864
+ * list/code editor CSS).
12865
+ */
12866
+ const formattedContentClassName = "[&_ol]:!pl-6 [&_ul]:!pl-6 [&_ol]:my-1 [&_ul]:my-1 [&_code]:rounded-sm [&_code]:border [&_code]:border-border [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.85em]";
12867
+ /**
12792
12868
  * The editable surface of a composed RichTextarea. Must render inside a
12793
12869
  * {@link RichTextareaRoot}. Use `bare` when placing it inside an `InputGroup`.
12794
12870
  */
@@ -12823,7 +12899,7 @@ const RichTextareaContent = React.forwardRef((componentProps, forwardRef) => {
12823
12899
  ref: forwardRef,
12824
12900
  "data-slot": bare ? "input-group-control" : void 0,
12825
12901
  "aria-label": ariaLabel,
12826
- className: "placeholder:text-muted-foreground flex-1 outline-none [&_[data-slate-placeholder]]:text-muted-foreground [&_ol]:!pl-6 [&_ul]:!pl-6 [&_ol]:my-1 [&_ul]:my-1 [&_code]:rounded-sm [&_code]:border [&_code]:border-border [&_code]:bg-muted [&_code]:px-1 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.85em]",
12902
+ className: cn("placeholder:text-muted-foreground flex-1 outline-none [&_[data-slate-placeholder]]:text-muted-foreground", formattedContentClassName),
12827
12903
  placeholder,
12828
12904
  readOnly: disabled,
12829
12905
  disabled,
@@ -12884,6 +12960,43 @@ const InputGroupRichTextarea = React.forwardRef((componentProps, forwardRef) =>
12884
12960
  }, componentProps));
12885
12961
  });
12886
12962
  InputGroupRichTextarea.displayName = "InputGroupRichTextarea";
12963
+ /**
12964
+ * Read-only render of the Markdown a `formatting` {@link RichTextarea} writes. It uses the
12965
+ * same plugins and elements, so quotes, lists, marks and links look as they do in the editor.
12966
+ * No border, padding or toolbar: it takes the surrounding text size and color. Links open in a
12967
+ * new tab, and a new `value` renders again.
12968
+ *
12969
+ * It renders what the editor can write: marks, lists, quotes and links. Other Markdown is not
12970
+ * styled: headings and tables show as plain text, and images do not show.
12971
+ *
12972
+ * @example
12973
+ * ```tsx
12974
+ * <MarkdownView value={script} />
12975
+ * ```
12976
+ */
12977
+ const MarkdownView = React.forwardRef((componentProps, forwardRef) => {
12978
+ const { value, className, "data-test": dataTest = "markdown-view" } = componentProps;
12979
+ const editor = usePlateEditor({
12980
+ plugins: formattingPlugins,
12981
+ value: (ed) => {
12982
+ var _markdown2;
12983
+ const nodes = (_markdown2 = ed.api.markdown) === null || _markdown2 === void 0 ? void 0 : _markdown2.deserialize(value);
12984
+ return (nodes === null || nodes === void 0 ? void 0 : nodes.length) ? nodes : toInitialValue(value, [], []);
12985
+ }
12986
+ }, [value]);
12987
+ return /* @__PURE__ */ jsx(Plate, {
12988
+ editor,
12989
+ readOnly: true,
12990
+ children: /* @__PURE__ */ jsx(PlateContent, {
12991
+ ref: forwardRef,
12992
+ readOnly: true,
12993
+ "data-slot": "markdown-view",
12994
+ "data-test": dataTest,
12995
+ className: cn("outline-none", formattedContentClassName, className)
12996
+ })
12997
+ });
12998
+ });
12999
+ MarkdownView.displayName = "MarkdownView";
12887
13000
  //#endregion
12888
13001
  //#region src/components/sheet.tsx
12889
13002
  const _excluded$5 = ["className"];
@@ -12897,7 +13010,7 @@ const _excluded2$3 = [
12897
13010
  const _excluded3$3 = ["className"];
12898
13011
  const _excluded4$3 = ["className"];
12899
13012
  const _excluded5$2 = ["className"];
12900
- const _excluded6$1 = ["className"];
13013
+ const _excluded6$2 = ["className"];
12901
13014
  /**
12902
13015
  * Root container for a sheet (a Dialog that slides in from a screen edge),
12903
13016
  * wrapping Base UI's `Dialog.Root`. Manages open/close state and renders no DOM
@@ -13026,7 +13139,7 @@ SheetTitle.displayName = "SheetTitle";
13026
13139
  * Renders a `<p>` and describes the sheet for assistive technology.
13027
13140
  */
13028
13141
  const SheetDescription = React.forwardRef((componentProps, forwardRef) => {
13029
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$1);
13142
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$2);
13030
13143
  return /* @__PURE__ */ jsx(Dialog$1.Description, _objectSpread2({
13031
13144
  ref: forwardRef,
13032
13145
  "data-slot": "sheet-description",
@@ -13071,7 +13184,7 @@ const _excluded2$2 = [
13071
13184
  const _excluded3$2 = ["className", "onClick"];
13072
13185
  const _excluded4$2 = ["className"];
13073
13186
  const _excluded5$1 = ["className"];
13074
- const _excluded6 = ["className"];
13187
+ const _excluded6$1 = ["className"];
13075
13188
  const _excluded7 = ["className"];
13076
13189
  const _excluded8 = ["className"];
13077
13190
  const _excluded9 = ["className"];
@@ -13334,7 +13447,7 @@ SidebarInset.displayName = "SidebarInset";
13334
13447
  * Search/filter input styled for the sidebar. Renders an `Input` (`<input>`).
13335
13448
  */
13336
13449
  const SidebarInput = React.forwardRef((componentProps, forwardRef) => {
13337
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6);
13450
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6$1);
13338
13451
  return /* @__PURE__ */ jsx(Input, _objectSpread2({
13339
13452
  ref: forwardRef,
13340
13453
  "data-slot": "sidebar-input",
@@ -13766,14 +13879,11 @@ const _excluded$2 = [
13766
13879
  "value",
13767
13880
  "onValueChange"
13768
13881
  ];
13769
- const _excluded2$1 = ["steps", "className"];
13770
- const _excluded3$1 = [
13771
- "steps",
13772
- "className",
13773
- "children"
13774
- ];
13882
+ const _excluded2$1 = ["className"];
13883
+ const _excluded3$1 = ["className"];
13775
13884
  const _excluded4$1 = ["className"];
13776
- const _excluded5 = [
13885
+ const _excluded5 = ["className"];
13886
+ const _excluded6 = [
13777
13887
  "value",
13778
13888
  "forceMount",
13779
13889
  "className"
@@ -13781,8 +13891,8 @@ const _excluded5 = [
13781
13891
  const StepperContext = React.createContext(void 0);
13782
13892
  /**
13783
13893
  * Reads the current `Stepper` context. Must be called inside a `Stepper`.
13784
- * @returns `{ activeId, goTo, getIndex, steps }` — the active step id, a setter
13785
- * to navigate to a step id, an id-to-index lookup, and the full step list.
13894
+ * @returns `{ activeId, goTo, getIndex, steps }`: the active step id, a setter to
13895
+ * navigate to a step id, an id-to-index lookup and the full step list.
13786
13896
  * @throws if used outside a `Stepper`.
13787
13897
  */
13788
13898
  function useStepper() {
@@ -13796,11 +13906,11 @@ function useStepper() {
13796
13906
  *
13797
13907
  * @example
13798
13908
  * ```tsx
13799
- * const steps = [{ id: 'account' }, { id: 'profile' }, { id: 'done' }];
13909
+ * const steps = [{ id: 'account', title: 'Account' }, { id: 'profile', title: 'Profile' }];
13800
13910
  *
13801
13911
  * <Stepper steps={steps} defaultValue="account">
13802
13912
  * <StepperProgress />
13803
- * <StepperCounter />
13913
+ * <StepperTitles />
13804
13914
  * <StepperContent value="account">…</StepperContent>
13805
13915
  * <StepperContent value="profile">…</StepperContent>
13806
13916
  * </Stepper>
@@ -13838,58 +13948,88 @@ const Stepper = React.forwardRef((componentProps, forwardRef) => {
13838
13948
  });
13839
13949
  Stepper.displayName = "Stepper";
13840
13950
  /**
13841
- * Segment-bar progress indicator (the "Step x of y" layout). Renders an
13842
- * `aria-hidden` `<div>` of `<span>` segments, one per step, marked completed /
13843
- * active / inactive relative to the active step.
13951
+ * Decorative, non-interactive segment bar. Titles, counters and surrounding flow content
13952
+ * provide meaningful text; the bar adds no accessible position label.
13953
+ * Hovering a segment shows its canonical step title in a tooltip.
13844
13954
  */
13845
13955
  const StepperProgress = React.forwardRef((componentProps, forwardRef) => {
13846
- const { steps: stepIds, className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded2$1);
13956
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded2$1);
13847
13957
  const { activeId, getIndex, steps } = useStepper();
13848
- const ids = stepIds !== null && stepIds !== void 0 ? stepIds : steps.map((s) => s.id);
13849
13958
  const currentIndex = getIndex(activeId);
13850
13959
  return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({
13851
13960
  ref: forwardRef,
13852
13961
  "data-slot": "stepper-progress",
13853
13962
  "aria-hidden": "true",
13854
- className: cn("flex w-full items-center gap-1.5", className)
13855
- }, props), {}, { children: ids.map((id) => {
13856
- const idx = getIndex(id);
13857
- return /* @__PURE__ */ jsx("span", {
13858
- "data-slot": "stepper-progress-segment",
13859
- "data-state": idx < currentIndex ? "completed" : idx === currentIndex ? "active" : "inactive",
13860
- className: "bg-muted h-1.5 flex-1 rounded-full transition-colors duration-300 data-[state=active]:bg-primary data-[state=completed]:bg-primary"
13861
- }, id);
13963
+ className: cn("flex w-full items-start gap-1.5", className)
13964
+ }, props), {}, { children: /* @__PURE__ */ jsx(TooltipProvider, {
13965
+ delay: 300,
13966
+ children: steps.map(({ id, title }, idx) => {
13967
+ const state = idx < currentIndex ? "completed" : idx === currentIndex ? "active" : "inactive";
13968
+ const itemProps = {
13969
+ "data-slot": "stepper-progress-item",
13970
+ "data-state": state,
13971
+ className: "relative flex min-w-0 flex-1 before:absolute before:inset-x-0 before:-inset-y-1.5"
13972
+ };
13973
+ const segment = /* @__PURE__ */ jsx("span", {
13974
+ "data-slot": "stepper-progress-segment",
13975
+ "data-state": state,
13976
+ className: "bg-muted-foreground/20 h-1.5 w-full rounded-full transition-colors duration-300 data-[state=active]:bg-primary data-[state=completed]:bg-primary"
13977
+ });
13978
+ if (!title) return /* @__PURE__ */ jsx("span", _objectSpread2(_objectSpread2({}, itemProps), {}, { children: segment }), id);
13979
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, _objectSpread2(_objectSpread2({ render: /* @__PURE__ */ jsx("span", {}) }, itemProps), {}, { children: segment })), /* @__PURE__ */ jsx(TooltipContent, { children: title })] }, id);
13980
+ })
13862
13981
  }) }));
13863
13982
  });
13864
13983
  StepperProgress.displayName = "StepperProgress";
13865
13984
  /**
13866
- * "Step x of y" companion line for `StepperProgress`. Renders a `<p>` whose
13867
- * position is derived from the stepper context.
13985
+ * Localized "Step x of y" line derived from the root's ordered steps.
13986
+ * Renders a `<p>` in the muted foreground colour.
13868
13987
  */
13869
13988
  const StepperCounter = React.forwardRef((componentProps, forwardRef) => {
13870
- const { steps: stepIds, className, children } = componentProps, props = _objectWithoutProperties(componentProps, _excluded3$1);
13871
- const { activeId, steps } = useStepper();
13872
- const ids = stepIds !== null && stepIds !== void 0 ? stepIds : steps.map((s) => s.id);
13873
- const pos = Math.max(0, ids.indexOf(activeId));
13874
- return /* @__PURE__ */ jsxs("p", _objectSpread2(_objectSpread2({
13989
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded3$1);
13990
+ const { activeId, getIndex, steps } = useStepper();
13991
+ const t = useDsTranslation("ds");
13992
+ return /* @__PURE__ */ jsx("p", _objectSpread2(_objectSpread2({
13875
13993
  ref: forwardRef,
13876
13994
  "data-slot": "stepper-counter",
13877
- className: cn("text-muted-foreground text-xs", "[[data-slot=stepper-progress]+&]:pt-1", className)
13878
- }, props), {}, { children: [
13879
- "Step ",
13880
- pos + 1,
13881
- " of ",
13882
- ids.length,
13883
- children
13884
- ] }));
13995
+ className: cn("text-muted-foreground text-xs [[data-slot=stepper-progress]~&]:pt-1", className)
13996
+ }, props), {}, { children: t("stepper.counter", {
13997
+ current: getIndex(activeId) + 1,
13998
+ total: steps.length
13999
+ }) }));
13885
14000
  });
13886
14001
  StepperCounter.displayName = "StepperCounter";
13887
14002
  /**
14003
+ * Ordered list of step titles, aligned with the progress segments.
14004
+ * Uses foreground for completed and active titles, muted foreground for upcoming titles.
14005
+ * Keep contextual explanations in the step body rather than changing its canonical title.
14006
+ */
14007
+ const StepperTitles = React.forwardRef((componentProps, forwardRef) => {
14008
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded4$1);
14009
+ const { activeId, getIndex, steps } = useStepper();
14010
+ const currentIndex = getIndex(activeId);
14011
+ return /* @__PURE__ */ jsx("ol", _objectSpread2(_objectSpread2({
14012
+ ref: forwardRef,
14013
+ "data-slot": "stepper-titles",
14014
+ className: cn("flex w-full items-start gap-1.5 text-xs [[data-slot=stepper-progress]~&]:pt-1", className)
14015
+ }, props), {}, { children: steps.map(({ id, title }, index) => {
14016
+ const state = index < currentIndex ? "completed" : index === currentIndex ? "active" : "inactive";
14017
+ return /* @__PURE__ */ jsx("li", {
14018
+ "data-slot": "stepper-title",
14019
+ "data-state": state,
14020
+ "aria-current": state === "active" ? "step" : void 0,
14021
+ className: "text-foreground min-w-0 flex-1 data-[state=inactive]:text-muted-foreground",
14022
+ children: title
14023
+ }, id);
14024
+ }) }));
14025
+ });
14026
+ StepperTitles.displayName = "StepperTitles";
14027
+ /**
13888
14028
  * Container for the step body, tagged with the active step id via `data-state`.
13889
14029
  * Renders a `<div>`.
13890
14030
  */
13891
14031
  const StepperPanel = React.forwardRef((componentProps, forwardRef) => {
13892
- const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded4$1);
14032
+ const { className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded5);
13893
14033
  const { activeId } = useStepper();
13894
14034
  return /* @__PURE__ */ jsx("div", _objectSpread2({
13895
14035
  ref: forwardRef,
@@ -13904,7 +14044,7 @@ StepperPanel.displayName = "StepperPanel";
13904
14044
  * Renders a `<div>` (or `null` when inactive and not force-mounted).
13905
14045
  */
13906
14046
  const StepperContent = React.forwardRef((componentProps, forwardRef) => {
13907
- const { value, forceMount, className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded5);
14047
+ const { value, forceMount, className } = componentProps, props = _objectWithoutProperties(componentProps, _excluded6);
13908
14048
  const { activeId } = useStepper();
13909
14049
  const isActive = value === activeId;
13910
14050
  if (!forceMount && !isActive) return null;
@@ -14127,4 +14267,4 @@ function useAudioGauge(options = {}) {
14127
14267
  };
14128
14268
  }
14129
14269
  //#endregion
14130
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, AudioPlayerButton, AudioPlayerCurrentTime, AudioPlayerDuration, AudioPlayerManager, AudioPlayerRow, AudioPlayerSkip, AudioPlayerSpeed, AudioPlayerTime, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_SEARCH_THRESHOLD, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, ColorPickerArea, ColorPickerContent, ColorPickerHexField, ColorPickerHue, ColorPickerModeToggle, ColorPickerPanel, ColorPickerPresets, ColorPickerTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, DataTable, DataTree, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, InlineEditInput, InlineEditMultiCombobox, InlineEditMultiComboboxChip, InlineEditMultiComboboxChips, InlineEditMultiComboboxContent, InlineEditMultiComboboxItem, InlineEditMultiComboboxTrigger, InlineEditMultiComboboxValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, LEGACY_COLOR_PRESETS, Label, List, ListCol, ListRow, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cardVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
14270
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, AudioPlayerButton, AudioPlayerCurrentTime, AudioPlayerDuration, AudioPlayerManager, AudioPlayerRow, AudioPlayerSkip, AudioPlayerSpeed, AudioPlayerTime, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_SEARCH_THRESHOLD, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, ColorPickerArea, ColorPickerContent, ColorPickerHexField, ColorPickerHue, ColorPickerModeToggle, ColorPickerPanel, ColorPickerPresets, ColorPickerTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, DataTable, DataTree, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, InlineEditInput, InlineEditMultiCombobox, InlineEditMultiComboboxChip, InlineEditMultiComboboxChips, InlineEditMultiComboboxContent, InlineEditMultiComboboxItem, InlineEditMultiComboboxTrigger, InlineEditMultiComboboxValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, LEGACY_COLOR_PRESETS, Label, List, ListCol, ListRow, MarkdownView, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, StepperTitles, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cardVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };