@imfusion/web-ui 0.11.1-dev.22.gb4cb1d84 → 0.11.1-dev.27.g921aea14
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/CHANGELOG.md +10 -0
- package/dist/components/table/table.d.ts +8 -0
- package/dist/index.js +157 -143
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/docgen/doc.gen.json +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
### Added
|
|
6
6
|
|
|
7
|
+
- `Table.RowButton` is a button that stands for its whole row, like `Table.RowLink`, for rows that open a drawer or run an
|
|
8
|
+
action instead of navigating. [Table](src/components/table/table.stories.tsx#RowButton) — Nikolaus Brunner
|
|
9
|
+
<brunner@imfusion.com>
|
|
7
10
|
- `Combobox` and `Autocomplete` are new inputs adapted from Base UI: a text field with a filterable list, for choosing one or
|
|
8
11
|
several options (`Combobox`) or suggesting options while keeping free text (`Autocomplete`). Multi-select lists show a
|
|
9
12
|
checkbox on every row. [Combobox](src/components/combobox/combobox.mdx),
|
|
@@ -19,6 +22,8 @@
|
|
|
19
22
|
|
|
20
23
|
### Changed
|
|
21
24
|
|
|
25
|
+
- `Drawer` draws no border by default; `borderColor` adds one, such as `borderColor="primary"` for the previous look.
|
|
26
|
+
[Drawer](src/components/drawer/drawer.mdx) — Nikolaus Brunner <brunner@imfusion.com>
|
|
22
27
|
- `Typo.UnorderedList` draws its dash in the text colour by default; `markerVariant="primary"` gives the brand dash.
|
|
23
28
|
— Nikolaus Brunner <brunner@imfusion.com>
|
|
24
29
|
- `Callout.Root` defaults to `maxWidth="lg"`, keeps a minimum width of 15rem, and spaces its title, description, and list
|
|
@@ -50,9 +55,13 @@
|
|
|
50
55
|
- `withFrame` draws its border only with `bordered: true`. Layout stories such as Stack and Row use it to show their bounds.
|
|
51
56
|
- Interaction tests live in hidden `Test-only:` stories, and default-open popups open only in the single-story view,
|
|
52
57
|
as `docs/story-conventions.md` describes.
|
|
58
|
+
- Combobox and Autocomplete stories start at the same top-left corner, so clicking through them does not shift the
|
|
59
|
+
layout. A story resizes its frame with `parameters.frame`, which `withFrame` reads.
|
|
53
60
|
|
|
54
61
|
### Fixed
|
|
55
62
|
|
|
63
|
+
- `Drawer.Title` wraps a long title instead of running past the panel edge.
|
|
64
|
+
[Drawer](src/components/drawer/drawer.stories.tsx#LongTitle) — Nikolaus Brunner <brunner@imfusion.com>
|
|
56
65
|
- Typo inside `Callout.Description`, such as `Typo.UnorderedList` or `Typo.P`, matches the description's size and takes
|
|
57
66
|
the variant's colour. [Callout](src/components/callout/callout.stories.tsx#WithList) — Nikolaus Brunner <brunner@imfusion.com>
|
|
58
67
|
- A `Select` option with `Select.ItemDescription` is named by its text alone and reads the description as its accessible
|
|
@@ -63,6 +72,7 @@
|
|
|
63
72
|
links, and form fields in the row keep their own click. — Nikolaus Brunner <brunner@imfusion.com>
|
|
64
73
|
- `npm run dev` starts Storybook on the next free port again while another checkout's Storybook runs. — Nikolaus Brunner
|
|
65
74
|
<brunner@imfusion.com>
|
|
75
|
+
- A Storybook sidebar row's status icon stays in place on hover. — Nikolaus Brunner <brunner@imfusion.com>
|
|
66
76
|
- Components — Nikolaus Brunner <brunner@imfusion.com>
|
|
67
77
|
- A `Drawer.Close` or `Popover.Close` rendered as another component, such as a `Button`, keeps that component's styles.
|
|
68
78
|
- A `Popover.Trigger` rendered as another component keeps that component's styles, so `render={<Button />}` looks like a Button.
|
|
@@ -46,6 +46,14 @@ export declare function RowLink({ render, ...props }: useRender.ComponentProps<"
|
|
|
46
46
|
export declare namespace RowLink {
|
|
47
47
|
var displayName: string;
|
|
48
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Table.RowButton — a `<button>` that stands for its whole row, such as one that opens a drawer. Use it when the row acts
|
|
51
|
+
* instead of navigating; a link that goes to a page is a `Table.RowLink`.
|
|
52
|
+
*/
|
|
53
|
+
export declare function RowButton({ render, type, ...props }: useRender.ComponentProps<"button">): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
54
|
+
export declare namespace RowButton {
|
|
55
|
+
var displayName: string;
|
|
56
|
+
}
|
|
49
57
|
/**
|
|
50
58
|
* Table.HeaderButton — inline action button for header cells. Generic by
|
|
51
59
|
* design: sorting toggles, filter toggles, column menus all render through it
|
package/dist/index.js
CHANGED
|
@@ -1830,7 +1830,7 @@ var B = {
|
|
|
1830
1830
|
Trigger: () => Ma,
|
|
1831
1831
|
Viewport: () => Fa
|
|
1832
1832
|
}), ya = y({
|
|
1833
|
-
borderColor: "
|
|
1833
|
+
borderColor: "none",
|
|
1834
1834
|
borderStyle: "solid"
|
|
1835
1835
|
}), ba = h(B.trigger), xa = h(B.backdrop), Sa = h(B.viewport), Ca = h(B.popup, {
|
|
1836
1836
|
variants: {
|
|
@@ -1847,11 +1847,11 @@ var B = {
|
|
|
1847
1847
|
}
|
|
1848
1848
|
},
|
|
1849
1849
|
defaultVariants: {
|
|
1850
|
-
borderColor: "
|
|
1850
|
+
borderColor: "none",
|
|
1851
1851
|
borderStyle: "solid"
|
|
1852
1852
|
}
|
|
1853
1853
|
}), wa = h(B.content), Ta = h(B.title), Ea = h(B.close), Da = h(B.description), Oa = h(B.indent), ka = h(B.indentBackground), Aa = h(B.swipeArea);
|
|
1854
|
-
function ja({ borderColor: e = "
|
|
1854
|
+
function ja({ borderColor: e = "none", borderStyle: t = "solid", ...n }) {
|
|
1855
1855
|
return /* @__PURE__ */ _(ya.Provider, {
|
|
1856
1856
|
value: {
|
|
1857
1857
|
borderColor: e,
|
|
@@ -4556,18 +4556,20 @@ var Pu = {
|
|
|
4556
4556
|
headerCell: "imf-ui-table-module-headerCell",
|
|
4557
4557
|
root: "imf-ui-table-module-root",
|
|
4558
4558
|
row: "imf-ui-table-module-row",
|
|
4559
|
-
|
|
4559
|
+
rowButton: "imf-ui-table-module-rowButton",
|
|
4560
|
+
rowTarget: "imf-ui-table-module-rowTarget",
|
|
4560
4561
|
sortIndicator: "imf-ui-table-module-sortIndicator"
|
|
4561
4562
|
}, Fu = /* @__PURE__ */ a({
|
|
4562
|
-
Body: () =>
|
|
4563
|
-
Cell: () =>
|
|
4564
|
-
Header: () =>
|
|
4565
|
-
HeaderButton: () =>
|
|
4566
|
-
HeaderCell: () =>
|
|
4567
|
-
Root: () =>
|
|
4568
|
-
Row: () =>
|
|
4569
|
-
|
|
4570
|
-
|
|
4563
|
+
Body: () => Yu,
|
|
4564
|
+
Cell: () => Qu,
|
|
4565
|
+
Header: () => Ju,
|
|
4566
|
+
HeaderButton: () => td,
|
|
4567
|
+
HeaderCell: () => Zu,
|
|
4568
|
+
Root: () => qu,
|
|
4569
|
+
Row: () => Xu,
|
|
4570
|
+
RowButton: () => ed,
|
|
4571
|
+
RowLink: () => $u,
|
|
4572
|
+
SortableHeaderCell: () => id
|
|
4571
4573
|
}), Iu = h(Z.root, { variants: { density: {
|
|
4572
4574
|
compact: Z.densityCompact,
|
|
4573
4575
|
comfortable: null,
|
|
@@ -4575,8 +4577,8 @@ var Pu = {
|
|
|
4575
4577
|
} } }), Lu = h(Z.header), Ru = h(Z.body), zu = h(Z.row), Bu = { action: {
|
|
4576
4578
|
false: null,
|
|
4577
4579
|
true: Z.action
|
|
4578
|
-
} }, Vu = h(Z.headerCell, { variants: Bu }), Hu = h(Z.cell, { variants: Bu }), Uu = h(Z.
|
|
4579
|
-
function
|
|
4580
|
+
} }, Vu = h(Z.headerCell, { variants: Bu }), Hu = h(Z.cell, { variants: Bu }), Uu = h(Z.rowTarget), Wu = h([Z.rowTarget, Z.rowButton]), Gu = h(Z.headerButton), Ku = h(Z.sortIndicator);
|
|
4581
|
+
function qu({ density: e = "comfortable", ...t }) {
|
|
4580
4582
|
return /* @__PURE__ */ _("table", {
|
|
4581
4583
|
...t,
|
|
4582
4584
|
"data-imf-ui-component": "Table.Root",
|
|
@@ -4586,32 +4588,32 @@ function Ku({ density: e = "comfortable", ...t }) {
|
|
|
4586
4588
|
})
|
|
4587
4589
|
});
|
|
4588
4590
|
}
|
|
4589
|
-
|
|
4590
|
-
function
|
|
4591
|
+
qu.displayName = "Table.Root";
|
|
4592
|
+
function Ju(e) {
|
|
4591
4593
|
return /* @__PURE__ */ _("thead", {
|
|
4592
4594
|
...e,
|
|
4593
4595
|
"data-imf-ui-component": "Table.Header",
|
|
4594
4596
|
className: Lu({ className: e.className })
|
|
4595
4597
|
});
|
|
4596
4598
|
}
|
|
4597
|
-
|
|
4598
|
-
function
|
|
4599
|
+
Ju.displayName = "Table.Header";
|
|
4600
|
+
function Yu(e) {
|
|
4599
4601
|
return /* @__PURE__ */ _("tbody", {
|
|
4600
4602
|
...e,
|
|
4601
4603
|
"data-imf-ui-component": "Table.Body",
|
|
4602
4604
|
className: Ru({ className: e.className })
|
|
4603
4605
|
});
|
|
4604
4606
|
}
|
|
4605
|
-
|
|
4606
|
-
function
|
|
4607
|
+
Yu.displayName = "Table.Body";
|
|
4608
|
+
function Xu(e) {
|
|
4607
4609
|
return /* @__PURE__ */ _("tr", {
|
|
4608
4610
|
...e,
|
|
4609
4611
|
"data-imf-ui-component": "Table.Row",
|
|
4610
4612
|
className: zu({ className: e.className })
|
|
4611
4613
|
});
|
|
4612
4614
|
}
|
|
4613
|
-
|
|
4614
|
-
function
|
|
4615
|
+
Xu.displayName = "Table.Row";
|
|
4616
|
+
function Zu({ action: e = !1, ...t }) {
|
|
4615
4617
|
return /* @__PURE__ */ _("th", {
|
|
4616
4618
|
...t,
|
|
4617
4619
|
"data-imf-ui-component": "Table.HeaderCell",
|
|
@@ -4621,8 +4623,8 @@ function Xu({ action: e = !1, ...t }) {
|
|
|
4621
4623
|
})
|
|
4622
4624
|
});
|
|
4623
4625
|
}
|
|
4624
|
-
|
|
4625
|
-
function
|
|
4626
|
+
Zu.displayName = "Table.HeaderCell";
|
|
4627
|
+
function Qu({ action: e = !1, ...t }) {
|
|
4626
4628
|
return /* @__PURE__ */ _("td", {
|
|
4627
4629
|
...t,
|
|
4628
4630
|
"data-imf-ui-component": "Table.Cell",
|
|
@@ -4632,8 +4634,8 @@ function Zu({ action: e = !1, ...t }) {
|
|
|
4632
4634
|
})
|
|
4633
4635
|
});
|
|
4634
4636
|
}
|
|
4635
|
-
|
|
4636
|
-
function
|
|
4637
|
+
Qu.displayName = "Table.Cell";
|
|
4638
|
+
function $u({ render: e, ...t }) {
|
|
4637
4639
|
return E({
|
|
4638
4640
|
defaultTagName: "a",
|
|
4639
4641
|
render: e,
|
|
@@ -4643,23 +4645,35 @@ function Qu({ render: e, ...t }) {
|
|
|
4643
4645
|
}
|
|
4644
4646
|
});
|
|
4645
4647
|
}
|
|
4646
|
-
|
|
4647
|
-
function
|
|
4648
|
+
$u.displayName = "Table.RowLink";
|
|
4649
|
+
function ed({ render: e, type: t = "button", ...n }) {
|
|
4650
|
+
return E({
|
|
4651
|
+
defaultTagName: "button",
|
|
4652
|
+
render: e,
|
|
4653
|
+
props: {
|
|
4654
|
+
...T(n, { className: Wu() }),
|
|
4655
|
+
type: t,
|
|
4656
|
+
"data-imf-ui-component": "Table.RowButton"
|
|
4657
|
+
}
|
|
4658
|
+
});
|
|
4659
|
+
}
|
|
4660
|
+
ed.displayName = "Table.RowButton";
|
|
4661
|
+
function td({ type: e = "button", ...t }) {
|
|
4648
4662
|
return /* @__PURE__ */ _("button", {
|
|
4649
4663
|
...t,
|
|
4650
4664
|
type: e,
|
|
4651
4665
|
"data-imf-ui-component": "Table.HeaderButton",
|
|
4652
|
-
className:
|
|
4666
|
+
className: Gu({ className: t.className })
|
|
4653
4667
|
});
|
|
4654
4668
|
}
|
|
4655
|
-
|
|
4656
|
-
function
|
|
4669
|
+
td.displayName = "Table.HeaderButton";
|
|
4670
|
+
function nd(e) {
|
|
4657
4671
|
return e === "asc" ? "ascending" : e === "desc" ? "descending" : "none";
|
|
4658
4672
|
}
|
|
4659
|
-
function
|
|
4673
|
+
function rd({ sorted: e }) {
|
|
4660
4674
|
let t = e === "asc" ? oe : e === "desc" ? s : ee;
|
|
4661
4675
|
return /* @__PURE__ */ _("span", {
|
|
4662
|
-
className:
|
|
4676
|
+
className: Ku(),
|
|
4663
4677
|
"data-sorted": e || void 0,
|
|
4664
4678
|
"aria-hidden": !0,
|
|
4665
4679
|
children: /* @__PURE__ */ _(p, {
|
|
@@ -4669,29 +4683,29 @@ function td({ sorted: e }) {
|
|
|
4669
4683
|
})
|
|
4670
4684
|
});
|
|
4671
4685
|
}
|
|
4672
|
-
function
|
|
4673
|
-
return t ? /* @__PURE__ */ _(
|
|
4686
|
+
function id({ sortDirection: e, onToggle: t, children: n, ...r }) {
|
|
4687
|
+
return t ? /* @__PURE__ */ _(Zu, {
|
|
4674
4688
|
...r,
|
|
4675
|
-
"aria-sort":
|
|
4676
|
-
children: /* @__PURE__ */ v(
|
|
4689
|
+
"aria-sort": nd(e),
|
|
4690
|
+
children: /* @__PURE__ */ v(td, {
|
|
4677
4691
|
onClick: t,
|
|
4678
|
-
children: [n, /* @__PURE__ */ _(
|
|
4692
|
+
children: [n, /* @__PURE__ */ _(rd, { sorted: e })]
|
|
4679
4693
|
})
|
|
4680
|
-
}) : /* @__PURE__ */ _(
|
|
4694
|
+
}) : /* @__PURE__ */ _(Zu, {
|
|
4681
4695
|
...r,
|
|
4682
4696
|
children: n
|
|
4683
4697
|
});
|
|
4684
4698
|
}
|
|
4685
|
-
|
|
4699
|
+
id.displayName = "Table.SortableHeaderCell";
|
|
4686
4700
|
//#endregion
|
|
4687
4701
|
//#region src/components/table/table.meta.ts
|
|
4688
|
-
var
|
|
4702
|
+
var ad = {
|
|
4689
4703
|
name: "Table",
|
|
4690
4704
|
category: m.display,
|
|
4691
4705
|
status: "stable",
|
|
4692
4706
|
description: "Presentational table parts for static tabular data. Pair them with a headless table library for sorting, pagination, or selection.",
|
|
4693
4707
|
origin: "native"
|
|
4694
|
-
},
|
|
4708
|
+
}, od = {
|
|
4695
4709
|
name: "Tabs",
|
|
4696
4710
|
category: m.display,
|
|
4697
4711
|
status: "stable",
|
|
@@ -4729,21 +4743,21 @@ var rd = {
|
|
|
4729
4743
|
widthContent: "imf-ui-toast-module-widthContent",
|
|
4730
4744
|
widthDefault: "imf-ui-toast-module-widthDefault",
|
|
4731
4745
|
widthWide: "imf-ui-toast-module-widthWide"
|
|
4732
|
-
},
|
|
4733
|
-
Action: () =>
|
|
4734
|
-
Arrow: () =>
|
|
4735
|
-
Close: () =>
|
|
4736
|
-
Content: () =>
|
|
4737
|
-
Description: () =>
|
|
4738
|
-
Portal: () =>
|
|
4739
|
-
Positioner: () =>
|
|
4740
|
-
Provider: () =>
|
|
4741
|
-
Root: () =>
|
|
4742
|
-
Title: () =>
|
|
4743
|
-
Viewport: () =>
|
|
4744
|
-
createToastManager: () =>
|
|
4745
|
-
useToastManager: () =>
|
|
4746
|
-
}),
|
|
4746
|
+
}, sd = /* @__PURE__ */ a({
|
|
4747
|
+
Action: () => Od,
|
|
4748
|
+
Arrow: () => Ad,
|
|
4749
|
+
Close: () => Dd,
|
|
4750
|
+
Content: () => wd,
|
|
4751
|
+
Description: () => Ed,
|
|
4752
|
+
Portal: () => xd,
|
|
4753
|
+
Positioner: () => kd,
|
|
4754
|
+
Provider: () => bd,
|
|
4755
|
+
Root: () => Cd,
|
|
4756
|
+
Title: () => Td,
|
|
4757
|
+
Viewport: () => Sd,
|
|
4758
|
+
createToastManager: () => yd,
|
|
4759
|
+
useToastManager: () => vd
|
|
4760
|
+
}), cd = h(Q.portal), ld = h(Q.viewport, {
|
|
4747
4761
|
variants: {
|
|
4748
4762
|
position: {
|
|
4749
4763
|
"top-left": Q.positionTopLeft,
|
|
@@ -4764,7 +4778,7 @@ var rd = {
|
|
|
4764
4778
|
position: "bottom-center",
|
|
4765
4779
|
width: "default"
|
|
4766
4780
|
}
|
|
4767
|
-
}),
|
|
4781
|
+
}), ud = h(Q.root, {
|
|
4768
4782
|
variants: { variant: {
|
|
4769
4783
|
neutral: null,
|
|
4770
4784
|
info: Q.variantInfo,
|
|
@@ -4773,105 +4787,105 @@ var rd = {
|
|
|
4773
4787
|
error: Q.variantError
|
|
4774
4788
|
} },
|
|
4775
4789
|
defaultVariants: { variant: "neutral" }
|
|
4776
|
-
}),
|
|
4777
|
-
function
|
|
4790
|
+
}), dd = h(Q.content), fd = h(Q.title), pd = h(Q.description), md = h(Q.close), hd = h(Q.action), gd = h(Q.positioner), _d = h(Q.arrow), vd = j.useToastManager, yd = j.createToastManager;
|
|
4791
|
+
function bd({ timeout: e = 5e3, limit: t = 3, ...n }) {
|
|
4778
4792
|
return /* @__PURE__ */ _(j.Provider, {
|
|
4779
4793
|
...n,
|
|
4780
4794
|
timeout: e,
|
|
4781
4795
|
limit: t
|
|
4782
4796
|
});
|
|
4783
4797
|
}
|
|
4784
|
-
|
|
4785
|
-
function
|
|
4798
|
+
bd.displayName = "Toast.Provider";
|
|
4799
|
+
function xd(t) {
|
|
4786
4800
|
return /* @__PURE__ */ _(j.Portal, {
|
|
4787
4801
|
...t,
|
|
4788
4802
|
"data-imf-ui-component": "Toast.Portal",
|
|
4789
|
-
className: (n) =>
|
|
4803
|
+
className: (n) => cd({ className: e(t.className, n) })
|
|
4790
4804
|
});
|
|
4791
4805
|
}
|
|
4792
|
-
|
|
4793
|
-
function
|
|
4806
|
+
xd.displayName = "Toast.Portal";
|
|
4807
|
+
function Sd({ position: t = "bottom-center", width: n = "default", ...r }) {
|
|
4794
4808
|
return /* @__PURE__ */ _(j.Viewport, {
|
|
4795
4809
|
...r,
|
|
4796
4810
|
"data-imf-ui-component": "Toast.Viewport",
|
|
4797
|
-
className: (i) =>
|
|
4811
|
+
className: (i) => ld({
|
|
4798
4812
|
position: t,
|
|
4799
4813
|
width: n,
|
|
4800
4814
|
className: e(r.className, i)
|
|
4801
4815
|
})
|
|
4802
4816
|
});
|
|
4803
4817
|
}
|
|
4804
|
-
|
|
4805
|
-
function
|
|
4818
|
+
Sd.displayName = "Toast.Viewport";
|
|
4819
|
+
function Cd({ variant: t = "neutral", ...n }) {
|
|
4806
4820
|
return /* @__PURE__ */ _(j.Root, {
|
|
4807
4821
|
...n,
|
|
4808
4822
|
"data-imf-ui-component": "Toast.Root",
|
|
4809
|
-
className: (r) =>
|
|
4823
|
+
className: (r) => ud({
|
|
4810
4824
|
variant: t,
|
|
4811
4825
|
className: e(n.className, r)
|
|
4812
4826
|
})
|
|
4813
4827
|
});
|
|
4814
4828
|
}
|
|
4815
|
-
|
|
4816
|
-
function
|
|
4829
|
+
Cd.displayName = "Toast.Root";
|
|
4830
|
+
function wd(t) {
|
|
4817
4831
|
return /* @__PURE__ */ _(j.Content, {
|
|
4818
4832
|
...t,
|
|
4819
4833
|
"data-imf-ui-component": "Toast.Content",
|
|
4820
|
-
className: (n) =>
|
|
4834
|
+
className: (n) => dd({ className: e(t.className, n) })
|
|
4821
4835
|
});
|
|
4822
4836
|
}
|
|
4823
|
-
|
|
4824
|
-
function
|
|
4837
|
+
wd.displayName = "Toast.Content";
|
|
4838
|
+
function Td(t) {
|
|
4825
4839
|
return /* @__PURE__ */ _(j.Title, {
|
|
4826
4840
|
...t,
|
|
4827
4841
|
"data-imf-ui-component": "Toast.Title",
|
|
4828
|
-
className: (n) =>
|
|
4842
|
+
className: (n) => fd({ className: e(t.className, n) })
|
|
4829
4843
|
});
|
|
4830
4844
|
}
|
|
4831
|
-
|
|
4832
|
-
function
|
|
4845
|
+
Td.displayName = "Toast.Title";
|
|
4846
|
+
function Ed(t) {
|
|
4833
4847
|
return /* @__PURE__ */ _(j.Description, {
|
|
4834
4848
|
...t,
|
|
4835
4849
|
"data-imf-ui-component": "Toast.Description",
|
|
4836
|
-
className: (n) =>
|
|
4850
|
+
className: (n) => pd({ className: e(t.className, n) })
|
|
4837
4851
|
});
|
|
4838
4852
|
}
|
|
4839
|
-
|
|
4840
|
-
function
|
|
4853
|
+
Ed.displayName = "Toast.Description";
|
|
4854
|
+
function Dd(t) {
|
|
4841
4855
|
return /* @__PURE__ */ _(j.Close, {
|
|
4842
4856
|
...t,
|
|
4843
4857
|
"data-imf-ui-component": "Toast.Close",
|
|
4844
|
-
className: (n) =>
|
|
4858
|
+
className: (n) => md({ className: e(t.className, n) })
|
|
4845
4859
|
});
|
|
4846
4860
|
}
|
|
4847
|
-
|
|
4848
|
-
function
|
|
4861
|
+
Dd.displayName = "Toast.Close";
|
|
4862
|
+
function Od(t) {
|
|
4849
4863
|
return /* @__PURE__ */ _(j.Action, {
|
|
4850
4864
|
...t,
|
|
4851
4865
|
"data-imf-ui-component": "Toast.Action",
|
|
4852
|
-
className: (n) =>
|
|
4866
|
+
className: (n) => hd({ className: e(t.className, n) })
|
|
4853
4867
|
});
|
|
4854
4868
|
}
|
|
4855
|
-
|
|
4856
|
-
function
|
|
4869
|
+
Od.displayName = "Toast.Action";
|
|
4870
|
+
function kd(t) {
|
|
4857
4871
|
return /* @__PURE__ */ _(j.Positioner, {
|
|
4858
4872
|
...t,
|
|
4859
4873
|
"data-imf-ui-component": "Toast.Positioner",
|
|
4860
|
-
className: (n) =>
|
|
4874
|
+
className: (n) => gd({ className: e(t.className, n) })
|
|
4861
4875
|
});
|
|
4862
4876
|
}
|
|
4863
|
-
|
|
4864
|
-
function
|
|
4877
|
+
kd.displayName = "Toast.Positioner";
|
|
4878
|
+
function Ad(t) {
|
|
4865
4879
|
return /* @__PURE__ */ _(j.Arrow, {
|
|
4866
4880
|
...t,
|
|
4867
4881
|
"data-imf-ui-component": "Toast.Arrow",
|
|
4868
|
-
className: (n) =>
|
|
4882
|
+
className: (n) => _d({ className: e(t.className, n) })
|
|
4869
4883
|
});
|
|
4870
4884
|
}
|
|
4871
|
-
|
|
4885
|
+
Ad.displayName = "Toast.Arrow";
|
|
4872
4886
|
//#endregion
|
|
4873
4887
|
//#region src/components/toast/toast.meta.ts
|
|
4874
|
-
var
|
|
4888
|
+
var jd = {
|
|
4875
4889
|
name: "Toast",
|
|
4876
4890
|
category: m.display,
|
|
4877
4891
|
status: "experimental",
|
|
@@ -4898,18 +4912,18 @@ var kd = {
|
|
|
4898
4912
|
variantPrimary: "imf-ui-tooltip-module-variantPrimary",
|
|
4899
4913
|
variantSecondary: "imf-ui-tooltip-module-variantSecondary",
|
|
4900
4914
|
viewport: "imf-ui-tooltip-module-viewport"
|
|
4901
|
-
},
|
|
4902
|
-
Arrow: () =>
|
|
4903
|
-
Inline: () =>
|
|
4904
|
-
Popup: () =>
|
|
4905
|
-
Portal: () =>
|
|
4906
|
-
Positioner: () =>
|
|
4907
|
-
Provider: () =>
|
|
4908
|
-
Root: () =>
|
|
4909
|
-
Trigger: () =>
|
|
4910
|
-
Viewport: () =>
|
|
4911
|
-
createHandle: () =>
|
|
4912
|
-
}),
|
|
4915
|
+
}, Md = /* @__PURE__ */ a({
|
|
4916
|
+
Arrow: () => Gd,
|
|
4917
|
+
Inline: () => qd,
|
|
4918
|
+
Popup: () => Wd,
|
|
4919
|
+
Portal: () => Hd,
|
|
4920
|
+
Positioner: () => Ud,
|
|
4921
|
+
Provider: () => zd,
|
|
4922
|
+
Root: () => Bd,
|
|
4923
|
+
Trigger: () => Vd,
|
|
4924
|
+
Viewport: () => Kd,
|
|
4925
|
+
createHandle: () => Rd
|
|
4926
|
+
}), Nd = h($.trigger, { variants: {
|
|
4913
4927
|
variant: {
|
|
4914
4928
|
primary: $.variantPrimary,
|
|
4915
4929
|
secondary: $.variantSecondary,
|
|
@@ -4917,88 +4931,88 @@ var kd = {
|
|
|
4917
4931
|
negative: $.variantNegative
|
|
4918
4932
|
},
|
|
4919
4933
|
inline: { true: $.triggerInline }
|
|
4920
|
-
} }),
|
|
4934
|
+
} }), Pd = h($.positioner), Fd = h($.popup, { variants: { variant: {
|
|
4921
4935
|
primary: $.popupVariantPrimary,
|
|
4922
4936
|
secondary: $.popupVariantSecondary,
|
|
4923
4937
|
positive: $.popupVariantPositive,
|
|
4924
4938
|
negative: $.popupVariantNegative
|
|
4925
|
-
} } }),
|
|
4926
|
-
function
|
|
4939
|
+
} } }), Id = h($.arrow), Ld = h($.viewport), Rd = M.createHandle;
|
|
4940
|
+
function zd(e) {
|
|
4927
4941
|
return /* @__PURE__ */ _(M.Provider, { ...e });
|
|
4928
4942
|
}
|
|
4929
|
-
|
|
4930
|
-
function
|
|
4943
|
+
zd.displayName = "Tooltip.Provider";
|
|
4944
|
+
function Bd(e) {
|
|
4931
4945
|
return /* @__PURE__ */ _(M.Root, { ...e });
|
|
4932
4946
|
}
|
|
4933
|
-
|
|
4934
|
-
function
|
|
4947
|
+
Bd.displayName = "Tooltip.Root";
|
|
4948
|
+
function Vd({ variant: t = "secondary", inline: n = !1, delay: r = 250, ...i }) {
|
|
4935
4949
|
return /* @__PURE__ */ _(M.Trigger, {
|
|
4936
4950
|
...i,
|
|
4937
4951
|
delay: r,
|
|
4938
4952
|
"data-imf-ui-component": "Tooltip.Trigger",
|
|
4939
|
-
className: (r) =>
|
|
4953
|
+
className: (r) => Nd({
|
|
4940
4954
|
variant: t,
|
|
4941
4955
|
inline: n,
|
|
4942
4956
|
className: e(i.className, r)
|
|
4943
4957
|
})
|
|
4944
4958
|
});
|
|
4945
4959
|
}
|
|
4946
|
-
|
|
4947
|
-
function
|
|
4960
|
+
Vd.displayName = "Tooltip.Trigger";
|
|
4961
|
+
function Hd(e) {
|
|
4948
4962
|
return /* @__PURE__ */ _(M.Portal, { ...e });
|
|
4949
4963
|
}
|
|
4950
|
-
|
|
4951
|
-
function
|
|
4964
|
+
Hd.displayName = "Tooltip.Portal";
|
|
4965
|
+
function Ud({ sideOffset: t = 13, ...n }) {
|
|
4952
4966
|
return /* @__PURE__ */ _(M.Positioner, {
|
|
4953
4967
|
...n,
|
|
4954
4968
|
sideOffset: t,
|
|
4955
4969
|
"data-imf-ui-component": "Tooltip.Positioner",
|
|
4956
|
-
className: (t) =>
|
|
4970
|
+
className: (t) => Pd({ className: e(n.className, t) })
|
|
4957
4971
|
});
|
|
4958
4972
|
}
|
|
4959
|
-
|
|
4960
|
-
function
|
|
4973
|
+
Ud.displayName = "Tooltip.Positioner";
|
|
4974
|
+
function Wd({ variant: t, ...n }) {
|
|
4961
4975
|
return /* @__PURE__ */ _(M.Popup, {
|
|
4962
4976
|
...n,
|
|
4963
4977
|
"data-imf-ui-component": "Tooltip.Popup",
|
|
4964
|
-
className: (r) =>
|
|
4978
|
+
className: (r) => Fd({
|
|
4965
4979
|
variant: t,
|
|
4966
4980
|
className: e(n.className, r)
|
|
4967
4981
|
})
|
|
4968
4982
|
});
|
|
4969
4983
|
}
|
|
4970
|
-
|
|
4971
|
-
function
|
|
4984
|
+
Wd.displayName = "Tooltip.Popup";
|
|
4985
|
+
function Gd(t) {
|
|
4972
4986
|
return /* @__PURE__ */ _(M.Arrow, {
|
|
4973
4987
|
...t,
|
|
4974
4988
|
"data-imf-ui-component": "Tooltip.Arrow",
|
|
4975
|
-
className: (n) =>
|
|
4989
|
+
className: (n) => Id({ className: e(t.className, n) })
|
|
4976
4990
|
});
|
|
4977
4991
|
}
|
|
4978
|
-
|
|
4979
|
-
function
|
|
4992
|
+
Gd.displayName = "Tooltip.Arrow";
|
|
4993
|
+
function Kd(t) {
|
|
4980
4994
|
return /* @__PURE__ */ _(M.Viewport, {
|
|
4981
4995
|
...t,
|
|
4982
4996
|
"data-imf-ui-component": "Tooltip.Viewport",
|
|
4983
|
-
className: (n) =>
|
|
4997
|
+
className: (n) => Ld({ className: e(t.className, n) })
|
|
4984
4998
|
});
|
|
4985
4999
|
}
|
|
4986
|
-
|
|
4987
|
-
function
|
|
4988
|
-
return /* @__PURE__ */ v(
|
|
5000
|
+
Kd.displayName = "Tooltip.Viewport";
|
|
5001
|
+
function qd({ trigger: e, children: t, delay: n = 150, side: r = "top", sideOffset: i = 13 }) {
|
|
5002
|
+
return /* @__PURE__ */ v(Bd, { children: [/* @__PURE__ */ _(Vd, {
|
|
4989
5003
|
inline: !0,
|
|
4990
5004
|
delay: n,
|
|
4991
5005
|
children: e
|
|
4992
|
-
}), /* @__PURE__ */ _(
|
|
5006
|
+
}), /* @__PURE__ */ _(Hd, { children: /* @__PURE__ */ _(Ud, {
|
|
4993
5007
|
side: r,
|
|
4994
5008
|
sideOffset: i,
|
|
4995
|
-
children: /* @__PURE__ */ _(
|
|
5009
|
+
children: /* @__PURE__ */ _(Wd, { children: t })
|
|
4996
5010
|
}) })] });
|
|
4997
5011
|
}
|
|
4998
|
-
|
|
5012
|
+
qd.displayName = "Tooltip.Inline";
|
|
4999
5013
|
//#endregion
|
|
5000
5014
|
//#region src/components/tooltip/tooltip.meta.ts
|
|
5001
|
-
var
|
|
5015
|
+
var Jd = {
|
|
5002
5016
|
name: "Tooltip",
|
|
5003
5017
|
category: m.display,
|
|
5004
5018
|
status: "stable",
|
|
@@ -5013,7 +5027,7 @@ var Kd = {
|
|
|
5013
5027
|
};
|
|
5014
5028
|
//#endregion
|
|
5015
5029
|
//#region src/icons/icon-config.tsx
|
|
5016
|
-
function
|
|
5030
|
+
function Yd({ children: e, value: t }) {
|
|
5017
5031
|
let n = {
|
|
5018
5032
|
...b(ce),
|
|
5019
5033
|
...t
|
|
@@ -5023,26 +5037,26 @@ function qd({ children: e, value: t }) {
|
|
|
5023
5037
|
children: e
|
|
5024
5038
|
});
|
|
5025
5039
|
}
|
|
5026
|
-
|
|
5040
|
+
Yd.displayName = "IconConfig.Provider";
|
|
5027
5041
|
//#endregion
|
|
5028
5042
|
//#region src/provider/web-ui-provider.tsx
|
|
5029
|
-
function
|
|
5030
|
-
return ar({ value: n }), /* @__PURE__ */ _(
|
|
5043
|
+
function Xd({ children: e, icons: t, colorScheme: n }) {
|
|
5044
|
+
return ar({ value: n }), /* @__PURE__ */ _(Yd, {
|
|
5031
5045
|
value: t,
|
|
5032
|
-
children: /* @__PURE__ */ v(
|
|
5046
|
+
children: /* @__PURE__ */ v(bd, { children: [e, " "] })
|
|
5033
5047
|
});
|
|
5034
5048
|
}
|
|
5035
5049
|
//#endregion
|
|
5036
5050
|
//#region src/utils/email.ts
|
|
5037
|
-
function
|
|
5051
|
+
function Zd(e) {
|
|
5038
5052
|
let t = e.lastIndexOf("@");
|
|
5039
5053
|
return t <= 0 || t === e.length - 1 ? { local: e } : {
|
|
5040
5054
|
local: e.slice(0, t),
|
|
5041
5055
|
domain: e.slice(t + 1)
|
|
5042
5056
|
};
|
|
5043
5057
|
}
|
|
5044
|
-
function
|
|
5045
|
-
return
|
|
5058
|
+
function Qd(e) {
|
|
5059
|
+
return Zd(e).local.split(/[._-]+/).filter(Boolean).slice(0, 2).map((e) => e.charAt(0).toUpperCase()).join("");
|
|
5046
5060
|
}
|
|
5047
5061
|
//#endregion
|
|
5048
|
-
export { Vc as AccountCard, uo as AppShell, mn as Autocomplete, Nc as Avatar, lt as Button, $c as Callout, Ko as Card, Hn as Checkbox, cl as Chip, pt as ChipLink, we as Code, dl as Collapsible, cr as ColorSchemeToggle, ur as Combobox, m as ComponentCategories, _t as CopyButton, xs as Dialog, va as Drawer, Wr as Field, oi as Fieldset, p as Icon, Ct as IconButton, $a as ImFusionLogo, pi as Input, he as Kbd, Ja as Logo, bl as Meter, gu as NavigationMenu, hi as NumberField, $s as Popover, oo as ProductLogo, Ec as Prose, Et as RichLink, be as Row, Ae as ScrollArea, Ni as Select, Le as Separator, yu as Skeleton, Oe as Slider, Nu as Spinner, ge as Stack, _e as Switch, Fu as Table, Ce as Tabs,
|
|
5062
|
+
export { Vc as AccountCard, uo as AppShell, mn as Autocomplete, Nc as Avatar, lt as Button, $c as Callout, Ko as Card, Hn as Checkbox, cl as Chip, pt as ChipLink, we as Code, dl as Collapsible, cr as ColorSchemeToggle, ur as Combobox, m as ComponentCategories, _t as CopyButton, xs as Dialog, va as Drawer, Wr as Field, oi as Fieldset, p as Icon, Ct as IconButton, $a as ImFusionLogo, pi as Input, he as Kbd, Ja as Logo, bl as Meter, gu as NavigationMenu, hi as NumberField, $s as Popover, oo as ProductLogo, Ec as Prose, Et as RichLink, be as Row, Ae as ScrollArea, Ni as Select, Le as Separator, yu as Skeleton, Oe as Slider, Nu as Spinner, ge as Stack, _e as Switch, Fu as Table, Ce as Tabs, sd as Toast, xe as Toggle, Se as ToggleGroup, Md as Tooltip, ns as Typo, Xd as WebUIProvider, Zc as accountCardMeta, Wo as appShellMeta, Vn as autocompleteMeta, Qc as avatarMeta, ut as buttonMeta, sl as calloutMeta, ts as cardMeta, Gn as checkboxMeta, mt as chipLinkMeta, ll as chipMeta, De as codeMeta, vl as collapsibleMeta, lr as colorSchemeToggleMeta, Hr as comboboxMeta, Yn as config, vt as copyButtonMeta, ze as cva, Be as cx, Qs as dialogMeta, Ka as drawerMeta, ii as fieldMeta, di as fieldsetMeta, wt as iconButtonMeta, ae as iconMeta, Qd as initialsFromEmail, mi as inputMeta, ve as kbdMeta, Ya as logoMeta, jl as meterMeta, _a as minWidth, _u as navigationMenuMeta, Mi as numberFieldMeta, wc as popoverMeta, Dc as proseMeta, Dt as richLinkMeta, Oc as rowMeta, kc as scrollAreaMeta, pa as selectMeta, Ac as separatorMeta, Eu as skeletonMeta, ma as sliderMeta, Pu as spinnerMeta, Zd as splitEmail, jc as stackMeta, ha as switchMeta, ad as tableMeta, od as tabsMeta, jd as toastMeta, qn as toggleGroupMeta, Kn as toggleMeta, Jd as tooltipMeta, bs as typoMeta, Te as useClipboard, ar as useColorScheme, so as useDisclosure, lo as useMediaQuery, zc as withBreakHints };
|