@cfx-dev/ui-components 5.0.24 → 5.0.26
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/{BurgerMenu.module-DzFXW4p3.js → BurgerMenu.module-Dy-zFg88.js} +5 -3
- package/dist/assets/css/Badge.css +1 -1
- package/dist/assets/css/BurgerMenu.css +1 -1
- package/dist/assets/css/Button.css +1 -1
- package/dist/assets/css/InputDropzone.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/cfxIcons-B2ocwAjm.js +136 -0
- package/dist/cfxIconsXLarge-C9n01-rM.js +136 -0
- package/dist/components/Badge/Badge.d.ts +2 -1
- package/dist/components/Badge/Badge.js +39 -35
- package/dist/components/Badge/BadgeShowcase.js +66 -36
- package/dist/components/BurgerMenu/BurgerMenu.d.ts +4 -1
- package/dist/components/BurgerMenu/BurgerMenu.js +75 -62
- package/dist/components/BurgerMenu/BurgerMenuButton.js +1 -1
- package/dist/components/BurgerMenu/BurgerMenuShowcase.js +44 -26
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.js +71 -65
- package/dist/components/Button/ButtonShowcase.js +46 -22
- package/dist/components/Checkbox/Checkbox.js +57 -31
- package/dist/components/Checkbox/CheckboxShowcase.js +28 -2
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/Icons/IconsShowcase.js +71 -29
- package/dist/components/Icons/cfx-icons/Car.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Car.js +26 -0
- package/dist/components/Icons/cfx-icons/Creator.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Creator.js +26 -0
- package/dist/components/Icons/cfx-icons/Documentation.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Documentation.js +26 -0
- package/dist/components/Icons/cfx-icons/Expand2.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Expand2.js +26 -0
- package/dist/components/Icons/cfx-icons/FiveMServer.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/FiveMServer.js +27 -0
- package/dist/components/Icons/cfx-icons/Hat.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Hat.js +18 -0
- package/dist/components/Icons/cfx-icons/Integration.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Integration.js +26 -0
- package/dist/components/Icons/cfx-icons/Pen.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Pen.js +26 -0
- package/dist/components/Icons/cfx-icons/Population.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Population.js +26 -0
- package/dist/components/Icons/cfx-icons/RedMServer.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/RedMServer.js +26 -0
- package/dist/components/Icons/cfx-icons/Script.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Script.js +26 -0
- package/dist/components/Icons/cfx-icons/Snail.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Snail.js +18 -0
- package/dist/components/Icons/cfx-icons/Tooling.d.ts +5 -0
- package/dist/components/Icons/cfx-icons/Tooling.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Car.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Car.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Creator.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Creator.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Documentation.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Documentation.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Expand2.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Expand2.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/FiveMServer.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/FiveMServer.js +27 -0
- package/dist/components/Icons/cfx-iconsXLarge/Hat.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Hat.js +18 -0
- package/dist/components/Icons/cfx-iconsXLarge/Integration.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Integration.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Pen.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Pen.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Population.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Population.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/RedMServer.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/RedMServer.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Script.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Script.js +26 -0
- package/dist/components/Icons/cfx-iconsXLarge/Snail.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Snail.js +21 -0
- package/dist/components/Icons/cfx-iconsXLarge/Tooling.d.ts +5 -0
- package/dist/components/Icons/cfx-iconsXLarge/Tooling.js +26 -0
- package/dist/components/Icons/cfxIcons.d.ts +13 -0
- package/dist/components/Icons/cfxIcons.js +98 -72
- package/dist/components/Icons/cfxIconsXLarge.d.ts +13 -0
- package/dist/components/Icons/cfxIconsXLarge.js +98 -72
- package/dist/components/Icons/index.js +2 -2
- package/dist/components/InputDropzone/InputDropzone.js +1 -1
- package/dist/components/Logos/Logos.types.d.ts +26 -0
- package/dist/components/Logos/LogosShowcase.js +28 -27
- package/dist/components/Logos/c/Logo.d.ts +5 -0
- package/dist/components/Logos/c/Logo.js +18 -0
- package/dist/components/Logos/c/index.d.ts +1 -0
- package/dist/components/Logos/c/index.js +4 -0
- package/dist/components/Logos/cfx/CompositeIcon.d.ts +5 -0
- package/dist/components/Logos/cfx/CompositeIcon.js +9 -0
- package/dist/components/Logos/cfx/index.d.ts +1 -0
- package/dist/components/Logos/cfx/index.js +8 -6
- package/dist/components/Logos/discord/IconColor.d.ts +5 -0
- package/dist/components/Logos/discord/IconColor.js +24 -0
- package/dist/components/Logos/discord/Logo.d.ts +5 -0
- package/dist/components/Logos/discord/Logo.js +24 -0
- package/dist/components/Logos/discord/LogoColor.d.ts +5 -0
- package/dist/components/Logos/discord/LogoColor.js +24 -0
- package/dist/components/Logos/discord/index.d.ts +3 -0
- package/dist/components/Logos/discord/index.js +8 -2
- package/dist/components/Logos/esx/IconColor.d.ts +5 -0
- package/dist/components/Logos/esx/IconColor.js +24 -0
- package/dist/components/Logos/esx/index.d.ts +1 -0
- package/dist/components/Logos/esx/index.js +4 -2
- package/dist/components/Logos/fivem/SimpleLogo.d.ts +5 -0
- package/dist/components/Logos/fivem/SimpleLogo.js +18 -0
- package/dist/components/Logos/fivem/WhiteLogo.js +9 -9
- package/dist/components/Logos/fivem/index.d.ts +1 -0
- package/dist/components/Logos/fivem/index.js +8 -6
- package/dist/components/Logos/forum/CompositeLogo.d.ts +5 -0
- package/dist/components/Logos/forum/CompositeLogo.js +15 -0
- package/dist/components/Logos/forum/index.d.ts +1 -0
- package/dist/components/Logos/forum/index.js +4 -0
- package/dist/components/Logos/google/WordmarkWhite.d.ts +5 -0
- package/dist/components/Logos/google/WordmarkWhite.js +25 -0
- package/dist/components/Logos/google/index.d.ts +1 -0
- package/dist/components/Logos/google/index.js +4 -2
- package/dist/components/Logos/gportal/Icon.d.ts +5 -0
- package/dist/components/Logos/gportal/Icon.js +22 -0
- package/dist/components/Logos/gportal/IconColor.d.ts +5 -0
- package/dist/components/Logos/gportal/IconColor.js +22 -0
- package/dist/components/Logos/gportal/Logo.d.ts +5 -0
- package/dist/components/Logos/gportal/Logo.js +29 -0
- package/dist/components/Logos/gportal/LogoColor.d.ts +5 -0
- package/dist/components/Logos/gportal/LogoColor.js +32 -0
- package/dist/components/Logos/gportal/LogoHorizontal.d.ts +5 -0
- package/dist/components/Logos/gportal/LogoHorizontal.js +29 -0
- package/dist/components/Logos/gportal/LogoHorizontalColor.d.ts +5 -0
- package/dist/components/Logos/gportal/LogoHorizontalColor.js +29 -0
- package/dist/components/Logos/gportal/index.d.ts +6 -0
- package/dist/components/Logos/gportal/index.js +14 -0
- package/dist/components/Logos/index.d.ts +26 -0
- package/dist/components/Logos/index.js +60 -34
- package/dist/components/Logos/javascript/Logo.d.ts +5 -0
- package/dist/components/Logos/javascript/Logo.js +18 -0
- package/dist/components/Logos/javascript/index.d.ts +1 -0
- package/dist/components/Logos/javascript/index.js +4 -0
- package/dist/components/Logos/lua/Logo.d.ts +5 -0
- package/dist/components/Logos/lua/Logo.js +18 -0
- package/dist/components/Logos/lua/index.d.ts +1 -0
- package/dist/components/Logos/lua/index.js +4 -0
- package/dist/components/Logos/marketplace/CompositeLogo.d.ts +5 -0
- package/dist/components/Logos/marketplace/CompositeLogo.js +15 -0
- package/dist/components/Logos/marketplace/index.d.ts +1 -0
- package/dist/components/Logos/marketplace/index.js +4 -0
- package/dist/components/Logos/nitrado/Icon.d.ts +5 -0
- package/dist/components/Logos/nitrado/Icon.js +27 -0
- package/dist/components/Logos/nitrado/IconColor.d.ts +5 -0
- package/dist/components/Logos/nitrado/IconColor.js +27 -0
- package/dist/components/Logos/nitrado/LogoHorizontal.d.ts +5 -0
- package/dist/components/Logos/nitrado/LogoHorizontal.js +70 -0
- package/dist/components/Logos/nitrado/LogoHorizontalColor.d.ts +5 -0
- package/dist/components/Logos/nitrado/LogoHorizontalColor.js +70 -0
- package/dist/components/Logos/nitrado/index.d.ts +4 -0
- package/dist/components/Logos/nitrado/index.js +10 -0
- package/dist/components/Logos/nodecraft/Icon.d.ts +5 -0
- package/dist/components/Logos/nodecraft/Icon.js +29 -0
- package/dist/components/Logos/nodecraft/IconColor.d.ts +5 -0
- package/dist/components/Logos/nodecraft/IconColor.js +29 -0
- package/dist/components/Logos/nodecraft/Logo.d.ts +5 -0
- package/dist/components/Logos/nodecraft/Logo.js +38 -0
- package/dist/components/Logos/nodecraft/LogoColor.d.ts +5 -0
- package/dist/components/Logos/nodecraft/LogoColor.js +41 -0
- package/dist/components/Logos/nodecraft/LogoColor2.d.ts +5 -0
- package/dist/components/Logos/nodecraft/LogoColor2.js +41 -0
- package/dist/components/Logos/nodecraft/index.d.ts +5 -0
- package/dist/components/Logos/nodecraft/index.js +12 -0
- package/dist/components/Logos/redemrp/IconColor.d.ts +5 -0
- package/dist/components/Logos/redemrp/IconColor.js +18 -0
- package/dist/components/Logos/redemrp/index.d.ts +1 -0
- package/dist/components/Logos/redemrp/index.js +4 -2
- package/dist/components/Logos/redm/SimpleLogo.d.ts +5 -0
- package/dist/components/Logos/redm/SimpleLogo.js +21 -0
- package/dist/components/Logos/redm/WhiteLogo.js +8 -30
- package/dist/components/Logos/redm/index.d.ts +1 -0
- package/dist/components/Logos/redm/index.js +8 -6
- package/dist/components/Logos/rockstar/Wordmark.d.ts +5 -0
- package/dist/components/Logos/rockstar/Wordmark.js +33 -0
- package/dist/components/Logos/rockstar/WordmarkVertical.d.ts +5 -0
- package/dist/components/Logos/rockstar/WordmarkVertical.js +33 -0
- package/dist/components/Logos/rockstar/index.d.ts +2 -0
- package/dist/components/Logos/rockstar/index.js +6 -2
- package/dist/components/Logos/shockbyte/Icon.d.ts +5 -0
- package/dist/components/Logos/shockbyte/Icon.js +26 -0
- package/dist/components/Logos/shockbyte/IconColor.d.ts +5 -0
- package/dist/components/Logos/shockbyte/IconColor.js +26 -0
- package/dist/components/Logos/shockbyte/IconColor2.d.ts +5 -0
- package/dist/components/Logos/shockbyte/IconColor2.js +54 -0
- package/dist/components/Logos/shockbyte/Logo.d.ts +5 -0
- package/dist/components/Logos/shockbyte/Logo.js +27 -0
- package/dist/components/Logos/shockbyte/LogoColor.d.ts +5 -0
- package/dist/components/Logos/shockbyte/LogoColor.js +24 -0
- package/dist/components/Logos/shockbyte/LogoColor2.d.ts +5 -0
- package/dist/components/Logos/shockbyte/LogoColor2.js +55 -0
- package/dist/components/Logos/shockbyte/index.d.ts +6 -0
- package/dist/components/Logos/shockbyte/index.js +14 -0
- package/dist/components/Logos/support/CompositeLogo.d.ts +5 -0
- package/dist/components/Logos/support/CompositeLogo.js +15 -0
- package/dist/components/Logos/support/index.d.ts +1 -0
- package/dist/components/Logos/support/index.js +4 -0
- package/dist/components/Logos/tebex/WhiteWordmark.d.ts +5 -0
- package/dist/components/Logos/tebex/WhiteWordmark.js +35 -0
- package/dist/components/Logos/tebex/index.d.ts +1 -0
- package/dist/components/Logos/tebex/index.js +4 -2
- package/dist/components/Logos/txadmin/Icon.d.ts +5 -0
- package/dist/components/Logos/txadmin/Icon.js +24 -0
- package/dist/components/Logos/txadmin/IconColor.d.ts +5 -0
- package/dist/components/Logos/txadmin/IconColor.js +24 -0
- package/dist/components/Logos/txadmin/Logo.d.ts +5 -0
- package/dist/components/Logos/txadmin/Logo.js +24 -0
- package/dist/components/Logos/txadmin/LogoColor.d.ts +5 -0
- package/dist/components/Logos/txadmin/LogoColor.js +24 -0
- package/dist/components/Logos/txadmin/index.d.ts +4 -0
- package/dist/components/Logos/txadmin/index.js +10 -0
- package/dist/components/Logos/vorpcore/IconColor.d.ts +5 -0
- package/dist/components/Logos/vorpcore/IconColor.js +27 -0
- package/dist/components/Logos/vorpcore/index.d.ts +1 -0
- package/dist/components/Logos/vorpcore/index.js +4 -2
- package/dist/components/Logos/xrealm/Icon.d.ts +5 -0
- package/dist/components/Logos/xrealm/Icon.js +21 -0
- package/dist/components/Logos/xrealm/IconColor.d.ts +5 -0
- package/dist/components/Logos/xrealm/IconColor.js +21 -0
- package/dist/components/Logos/xrealm/IconColor2.d.ts +5 -0
- package/dist/components/Logos/xrealm/IconColor2.js +21 -0
- package/dist/components/Logos/xrealm/Logo.d.ts +5 -0
- package/dist/components/Logos/xrealm/Logo.js +26 -0
- package/dist/components/Logos/xrealm/LogoColor.d.ts +5 -0
- package/dist/components/Logos/xrealm/LogoColor.js +26 -0
- package/dist/components/Logos/xrealm/LogoColor2.d.ts +5 -0
- package/dist/components/Logos/xrealm/LogoColor2.js +26 -0
- package/dist/components/Logos/xrealm/index.d.ts +6 -0
- package/dist/components/Logos/xrealm/index.js +14 -0
- package/dist/components/Logos/zap/Icon.d.ts +5 -0
- package/dist/components/Logos/zap/Icon.js +24 -0
- package/dist/components/Logos/zap/IconColor.d.ts +5 -0
- package/dist/components/Logos/zap/IconColor.js +24 -0
- package/dist/components/Logos/zap/IconColor2.d.ts +5 -0
- package/dist/components/Logos/zap/IconColor2.js +24 -0
- package/dist/components/Logos/zap/Logo.d.ts +5 -0
- package/dist/components/Logos/zap/Logo.js +33 -0
- package/dist/components/Logos/zap/LogoColor.d.ts +5 -0
- package/dist/components/Logos/zap/LogoColor.js +33 -0
- package/dist/components/Logos/zap/index.d.ts +5 -0
- package/dist/components/Logos/zap/index.js +12 -0
- package/dist/components/Shroud/Shroud.js +3 -3
- package/dist/components/Table/TableCell.js +35 -33
- package/dist/index--7ftEy7B.js +14 -0
- package/dist/index-6ymEiKOk.js +12 -0
- package/dist/index-B4ozsXlE.js +16 -0
- package/dist/index-B894ectI.js +10 -0
- package/dist/index-BGU_SN2o.js +16 -0
- package/dist/{index-CZVyC53C.js → index-BOn_iaK2.js} +4 -2
- package/dist/index-BRHcJhJG.js +18 -0
- package/dist/index-B_EMgg52.js +14 -0
- package/dist/index-B_Vaq81q.js +10 -0
- package/dist/index-C9Lozqbl.js +8 -0
- package/dist/index-Cq4jCzEv.js +12 -0
- package/dist/{index-CndZSWbO.js → index-CztR26xF.js} +3 -3
- package/dist/index-D1C1OavJ.js +14 -0
- package/dist/index-DhOP0QKO.js +18 -0
- package/dist/{index-DmiGJpGO.js → index-DwlnwP6x.js} +3 -3
- package/dist/{index-BFDtbr-9.js → index-FdoLqVRX.js} +3 -3
- package/dist/{index-BcJ929FX.js → index-RuvVYarm.js} +6 -4
- package/dist/{index-CaQzR2YA.js → index-lyU2TVKU.js} +3 -3
- package/dist/{index-zDYfHjPd.js → index-nlWIqgCS.js} +4 -4
- package/dist/index-sokrkox7.js +16 -0
- package/dist/index-srJbL-Sj.js +8 -0
- package/dist/index-ugQO1I1Q.js +12 -0
- package/dist/index-zV_VvyQi.js +18 -0
- package/dist/main.js +2 -2
- package/dist/styles-scss/tokens.scss +1 -1
- package/dist/utils/hooks/usePopoverController.js +25 -22
- package/package.json +1 -1
- package/dist/cfxIcons-YyDWNxmM.js +0 -110
- package/dist/cfxIconsXLarge-Dw37ZSw2.js +0 -110
- package/dist/index-Bg26abkD.js +0 -14
- package/dist/index-DXAZagKA.js +0 -8
- package/dist/index-DxFgF-nY.js +0 -10
|
@@ -1,104 +1,117 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { useState as
|
|
1
|
+
import { jsx as o, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as S, useCallback as f } from "react";
|
|
3
3
|
import r from "../Flex/Flex.js";
|
|
4
|
-
import { clsx as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Interactive as
|
|
7
|
-
import { Text as
|
|
4
|
+
import { clsx as i } from "../../utils/clsx.js";
|
|
5
|
+
import { Icon as g } from "../Icon/Icon.js";
|
|
6
|
+
import { Interactive as y } from "../Interactive/Interactive.js";
|
|
7
|
+
import { Text as D } from "../Text/Text.js";
|
|
8
8
|
import "../../utils/ui/ui.js";
|
|
9
|
-
import { s as
|
|
10
|
-
function
|
|
11
|
-
items:
|
|
12
|
-
onItemClick:
|
|
13
|
-
isOpen:
|
|
14
|
-
className:
|
|
15
|
-
menuClassName:
|
|
16
|
-
subItemContainerClassName:
|
|
9
|
+
import { s as u } from "../../BurgerMenu.module-Dy-zFg88.js";
|
|
10
|
+
function z({
|
|
11
|
+
items: c,
|
|
12
|
+
onItemClick: a,
|
|
13
|
+
isOpen: k,
|
|
14
|
+
className: w,
|
|
15
|
+
menuClassName: x,
|
|
16
|
+
subItemContainerClassName: C,
|
|
17
17
|
itemInteractiveClassName: s,
|
|
18
|
-
itemClassName: t
|
|
18
|
+
itemClassName: t,
|
|
19
|
+
highlightedItemClassname: d
|
|
19
20
|
}) {
|
|
20
|
-
const [
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
}),
|
|
25
|
-
}), l =
|
|
26
|
-
|
|
27
|
-
}, [
|
|
28
|
-
|
|
29
|
-
...
|
|
30
|
-
[
|
|
21
|
+
const [h, N] = S(() => {
|
|
22
|
+
const n = {};
|
|
23
|
+
return c.forEach((e) => {
|
|
24
|
+
e.openByDefault && (n[e.id] = !0);
|
|
25
|
+
}), n;
|
|
26
|
+
}), l = f((n) => {
|
|
27
|
+
a(n);
|
|
28
|
+
}, [a]), p = f((n) => {
|
|
29
|
+
N((e) => ({
|
|
30
|
+
...e,
|
|
31
|
+
[n]: !e[n]
|
|
31
32
|
}));
|
|
32
33
|
}, []);
|
|
33
34
|
return /* @__PURE__ */ o(
|
|
34
35
|
r,
|
|
35
36
|
{
|
|
36
|
-
className: u
|
|
37
|
+
className: i(u.burgerMenuContentContainer, w),
|
|
37
38
|
direction: "column",
|
|
38
|
-
children:
|
|
39
|
+
children: k && /* @__PURE__ */ o(r, { direction: "column", className: i(u.menu, x), children: c.map((n) => /* @__PURE__ */ m("div", { children: [
|
|
39
40
|
/* @__PURE__ */ o(
|
|
40
|
-
|
|
41
|
+
y,
|
|
41
42
|
{
|
|
42
43
|
showPointer: !0,
|
|
43
44
|
"aria-label": "Toggle item",
|
|
44
45
|
role: "button",
|
|
45
46
|
onClick: () => {
|
|
46
|
-
|
|
47
|
+
n.submenu ? p(n.id) : l(n.id);
|
|
47
48
|
},
|
|
48
|
-
onKeyDown: (
|
|
49
|
-
(
|
|
49
|
+
onKeyDown: (e) => {
|
|
50
|
+
(e.key === "Enter" || e.key === " ") && (n.submenu ? p(n.id) : l(n.id));
|
|
50
51
|
},
|
|
51
52
|
className: s,
|
|
52
|
-
children: /* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
children: /* @__PURE__ */ m(
|
|
54
|
+
r,
|
|
55
|
+
{
|
|
56
|
+
p: 2,
|
|
57
|
+
justifyContent: "space-between",
|
|
58
|
+
className: i(
|
|
59
|
+
n.highlighted && d ? d : null,
|
|
60
|
+
t
|
|
61
|
+
),
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ o(
|
|
64
|
+
D,
|
|
65
|
+
{
|
|
66
|
+
size: "xsmall",
|
|
67
|
+
weight: n.highlighted ? "bold" : "regular",
|
|
68
|
+
children: n.label
|
|
69
|
+
}
|
|
70
|
+
),
|
|
71
|
+
n.submenu && /* @__PURE__ */ o(
|
|
72
|
+
g,
|
|
73
|
+
{
|
|
74
|
+
name: h[n.id] ? "UpChevron" : "DownChevron"
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
n.icon && /* @__PURE__ */ o(g, { name: n.icon })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
)
|
|
68
81
|
}
|
|
69
82
|
),
|
|
70
|
-
|
|
83
|
+
n.submenu && /* @__PURE__ */ o(
|
|
71
84
|
r,
|
|
72
85
|
{
|
|
73
|
-
className:
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
className: i(
|
|
87
|
+
u.subItemContainer,
|
|
88
|
+
C,
|
|
76
89
|
{
|
|
77
|
-
[
|
|
90
|
+
[u.subItemContainerOpen]: h[n.id]
|
|
78
91
|
}
|
|
79
92
|
),
|
|
80
93
|
direction: "column",
|
|
81
|
-
children:
|
|
82
|
-
|
|
94
|
+
children: n.submenu.map((e) => /* @__PURE__ */ o(
|
|
95
|
+
y,
|
|
83
96
|
{
|
|
84
97
|
showPointer: !0,
|
|
85
98
|
"aria-label": "Toggle sub item",
|
|
86
99
|
role: "button",
|
|
87
|
-
onClick: () => l(
|
|
88
|
-
onKeyDown: (
|
|
89
|
-
(
|
|
100
|
+
onClick: () => l(e.id),
|
|
101
|
+
onKeyDown: (b) => {
|
|
102
|
+
(b.key === "Enter" || b.key === " ") && l(e.id);
|
|
90
103
|
},
|
|
91
104
|
className: s,
|
|
92
|
-
children: /* @__PURE__ */ o(r, { p: 2, className: t, children:
|
|
105
|
+
children: /* @__PURE__ */ o(r, { p: 2, className: t, children: e.label })
|
|
93
106
|
},
|
|
94
|
-
|
|
107
|
+
e.id
|
|
95
108
|
))
|
|
96
109
|
}
|
|
97
110
|
)
|
|
98
|
-
] },
|
|
111
|
+
] }, n.id)) })
|
|
99
112
|
}
|
|
100
113
|
);
|
|
101
114
|
}
|
|
102
115
|
export {
|
|
103
|
-
|
|
116
|
+
z as BurgerMenu
|
|
104
117
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
|
2
2
|
import u from "../Flex/Flex.js";
|
|
3
3
|
import { clsx as o } from "../../utils/clsx.js";
|
|
4
4
|
import { Interactive as m } from "../Interactive/Interactive.js";
|
|
5
|
-
import { s as r } from "../../BurgerMenu.module-
|
|
5
|
+
import { s as r } from "../../BurgerMenu.module-Dy-zFg88.js";
|
|
6
6
|
function g({
|
|
7
7
|
isOpen: n,
|
|
8
8
|
onToggle: t,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Text as
|
|
1
|
+
import { jsxs as r, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import d, { useState as h, useCallback as p } from "react";
|
|
3
|
+
import i from "../Flex/Flex.js";
|
|
4
|
+
import { Text as o } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
|
-
import { BurgerMenu as
|
|
7
|
-
import { BurgerMenuButton as
|
|
8
|
-
|
|
6
|
+
import { BurgerMenu as n } from "./BurgerMenu.js";
|
|
7
|
+
import { BurgerMenuButton as s } from "./BurgerMenuButton.js";
|
|
8
|
+
import { s as m } from "../../BurgerMenu.module-Dy-zFg88.js";
|
|
9
|
+
const a = [
|
|
9
10
|
{
|
|
10
11
|
id: "1",
|
|
11
12
|
label: "Account",
|
|
@@ -31,29 +32,46 @@ const g = [
|
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
id: "4",
|
|
34
|
-
label: "Settings"
|
|
35
|
+
label: "Settings",
|
|
36
|
+
icon: "ExternalLink"
|
|
35
37
|
}
|
|
36
|
-
],
|
|
38
|
+
], u = (e) => {
|
|
37
39
|
console.log(`Item clicked: ${e}`);
|
|
38
40
|
};
|
|
39
|
-
function
|
|
40
|
-
const [e,
|
|
41
|
-
|
|
41
|
+
function b() {
|
|
42
|
+
const [e, c] = h(!1), l = p(() => {
|
|
43
|
+
c((g) => !g);
|
|
42
44
|
}, []);
|
|
43
|
-
return /* @__PURE__ */ r(
|
|
44
|
-
/* @__PURE__ */ r(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
return /* @__PURE__ */ r(i, { gap: "large", vertical: !0, pb: 20, children: [
|
|
46
|
+
/* @__PURE__ */ r(i, { gap: "medium", vertical: !0, children: [
|
|
47
|
+
/* @__PURE__ */ t(o, { children: "Burger Menu" }),
|
|
48
|
+
/* @__PURE__ */ t(s, { isOpen: e, onToggle: l }),
|
|
49
|
+
/* @__PURE__ */ t(
|
|
50
|
+
n,
|
|
51
|
+
{
|
|
52
|
+
items: a,
|
|
53
|
+
onItemClick: u,
|
|
54
|
+
isOpen: e
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ r(i, { gap: "medium", vertical: !0, children: [
|
|
59
|
+
/* @__PURE__ */ t(o, { children: "Burger Menu With highlighted borders to show custom styling" }),
|
|
60
|
+
/* @__PURE__ */ t(s, { isOpen: e, onToggle: l }),
|
|
61
|
+
/* @__PURE__ */ t(
|
|
62
|
+
n,
|
|
63
|
+
{
|
|
64
|
+
items: a,
|
|
65
|
+
onItemClick: u,
|
|
66
|
+
isOpen: e,
|
|
67
|
+
highlightedItemClassname: m.highlightTest,
|
|
68
|
+
itemClassName: m.borderTest
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] })
|
|
72
|
+
] });
|
|
55
73
|
}
|
|
56
|
-
const
|
|
74
|
+
const C = d.memo(b);
|
|
57
75
|
export {
|
|
58
|
-
|
|
76
|
+
C as default
|
|
59
77
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconName } from '../Icon';
|
|
3
3
|
|
|
4
|
-
export type ButtonTheme = 'primary' | 'secondary' | '
|
|
4
|
+
export type ButtonTheme = 'primary' | 'secondary' | 'tertiary' | 'on-light' | 'linked' | 'quicklink';
|
|
5
5
|
export interface ButtonProps<T = HTMLButtonElement> {
|
|
6
6
|
text?: React.ReactNode;
|
|
7
7
|
title?: string;
|
|
@@ -16,6 +16,7 @@ export interface ButtonProps<T = HTMLButtonElement> {
|
|
|
16
16
|
fullWidth?: boolean;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
autofocus?: boolean;
|
|
19
|
+
borderShredded?: boolean;
|
|
19
20
|
onClick?: (event: React.MouseEvent<T>) => void;
|
|
20
21
|
onMouseDown?: (event: React.MouseEvent<T>) => void;
|
|
21
22
|
onMouseUp?: (event: React.MouseEvent<T>) => void;
|
|
@@ -1,86 +1,91 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import { noop as
|
|
6
|
-
const M = "cfxui__Button__unsetAll__44b96", j = "cfxui__Button__root__e2ace", F = "cfxui__Button__fullWidth__f61d9", v = "
|
|
1
|
+
import { jsx as r, jsxs as q, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import b from "react";
|
|
3
|
+
import { Icon as k } from "../Icon/Icon.js";
|
|
4
|
+
import { clsx as h } from "../../utils/clsx.js";
|
|
5
|
+
import { noop as x } from "../../utils/functional.js";
|
|
6
|
+
const M = "cfxui__Button__unsetAll__44b96", j = "cfxui__Button__root__e2ace", F = "cfxui__Button__fullWidth__f61d9", v = "cfxui__Button__borderShredded__2388c", w = "cfxui__Button__primary__1c59f", D = "cfxui__Button__secondary__b2b84", P = "cfxui__Button__linked__330cb", R = "cfxui__Button__quicklink__204ac", U = "cfxui__Button__icon__44e51", $ = "cfxui__Button__icononly__4f786", z = "cfxui__Button__decorator__39a9b", o = {
|
|
7
7
|
unsetAll: M,
|
|
8
8
|
root: j,
|
|
9
9
|
fullWidth: F,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
borderShredded: v,
|
|
11
|
+
primary: w,
|
|
12
|
+
secondary: D,
|
|
12
13
|
"on-light": "cfxui__Button__on-light__ae69c",
|
|
13
|
-
linked:
|
|
14
|
-
quicklink:
|
|
15
|
-
icon:
|
|
16
|
-
icononly:
|
|
17
|
-
decorator:
|
|
14
|
+
linked: P,
|
|
15
|
+
quicklink: R,
|
|
16
|
+
icon: U,
|
|
17
|
+
icononly: $,
|
|
18
|
+
decorator: z
|
|
18
19
|
};
|
|
19
|
-
function
|
|
20
|
+
function E(l) {
|
|
20
21
|
const {
|
|
21
|
-
text:
|
|
22
|
+
text: t = null,
|
|
22
23
|
icon: n,
|
|
23
24
|
iconLeft: e,
|
|
24
|
-
iconClassName:
|
|
25
|
+
iconClassName: _,
|
|
25
26
|
decorator: i = null
|
|
26
27
|
} = l;
|
|
27
28
|
return /* @__PURE__ */ q(I, { children: [
|
|
28
|
-
!!e && /* @__PURE__ */
|
|
29
|
-
|
|
30
|
-
!!n && /* @__PURE__ */
|
|
31
|
-
!!i && /* @__PURE__ */
|
|
29
|
+
!!e && /* @__PURE__ */ r(k, { name: e, className: h(o.icon, _) }),
|
|
30
|
+
t,
|
|
31
|
+
!!n && /* @__PURE__ */ r(k, { name: n, className: h(o.icon, _) }),
|
|
32
|
+
!!i && /* @__PURE__ */ r("div", { className: o.decorator, children: i })
|
|
32
33
|
] });
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
+
function G(l) {
|
|
35
36
|
const {
|
|
36
|
-
text:
|
|
37
|
+
text: t = null,
|
|
37
38
|
icon: n,
|
|
38
39
|
iconLeft: e,
|
|
39
|
-
theme:
|
|
40
|
+
theme: _ = "tertiary",
|
|
40
41
|
disabled: i = !1,
|
|
41
|
-
className:
|
|
42
|
+
className: d = "",
|
|
42
43
|
autofocus: s = !1,
|
|
43
|
-
fullWidth:
|
|
44
|
-
|
|
44
|
+
fullWidth: u = !1,
|
|
45
|
+
borderShredded: c = !1,
|
|
46
|
+
tabIndex: a
|
|
45
47
|
} = l;
|
|
46
|
-
return
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
48
|
+
return h(o.unsetAll, o.root, o[_], d, {
|
|
49
|
+
[o.disabled]: i,
|
|
50
|
+
[o.icononly]: (!!n || !!e) && (t === null || typeof t > "u"),
|
|
51
|
+
[o.text]: !!t,
|
|
52
|
+
[o.autofocus]: s || typeof a < "u",
|
|
53
|
+
[o.fullWidth]: u,
|
|
54
|
+
[o.borderShredded]: c
|
|
52
55
|
});
|
|
53
56
|
}
|
|
54
|
-
function
|
|
57
|
+
function H(l) {
|
|
55
58
|
const {
|
|
56
|
-
text:
|
|
59
|
+
text: t = null,
|
|
57
60
|
icon: n,
|
|
58
61
|
iconLeft: e,
|
|
59
|
-
iconClassName:
|
|
62
|
+
iconClassName: _,
|
|
60
63
|
title: i = "",
|
|
61
|
-
type:
|
|
64
|
+
type: d = "button",
|
|
62
65
|
className: s = "",
|
|
63
|
-
theme:
|
|
66
|
+
theme: u = "tertiary",
|
|
64
67
|
disabled: c = !1,
|
|
65
|
-
onClick:
|
|
66
|
-
onMouseDown:
|
|
67
|
-
onMouseUp:
|
|
68
|
+
onClick: a = x,
|
|
69
|
+
onMouseDown: p = x,
|
|
70
|
+
onMouseUp: N = x,
|
|
68
71
|
autofocus: f = !1,
|
|
69
|
-
tabIndex:
|
|
72
|
+
tabIndex: m,
|
|
70
73
|
fullWidth: B = !1,
|
|
71
|
-
ariaLabel:
|
|
72
|
-
|
|
74
|
+
ariaLabel: C = "",
|
|
75
|
+
borderShredded: y = !1,
|
|
76
|
+
ref: S,
|
|
73
77
|
...W
|
|
74
|
-
} = l, g =
|
|
75
|
-
text:
|
|
78
|
+
} = l, g = b.useMemo(() => G({
|
|
79
|
+
text: t,
|
|
76
80
|
icon: n,
|
|
77
81
|
iconLeft: e,
|
|
78
|
-
theme:
|
|
82
|
+
theme: u,
|
|
79
83
|
disabled: c,
|
|
80
84
|
className: s,
|
|
81
85
|
autofocus: f,
|
|
82
86
|
fullWidth: B,
|
|
83
|
-
tabIndex:
|
|
87
|
+
tabIndex: m,
|
|
88
|
+
borderShredded: y
|
|
84
89
|
}), [
|
|
85
90
|
f,
|
|
86
91
|
s,
|
|
@@ -88,34 +93,35 @@ function G(l) {
|
|
|
88
93
|
c,
|
|
89
94
|
n,
|
|
90
95
|
e,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
m,
|
|
97
|
+
t,
|
|
98
|
+
u,
|
|
99
|
+
y
|
|
100
|
+
]), A = b.useCallback((L) => {
|
|
101
|
+
c || a(L);
|
|
102
|
+
}, [c, a]);
|
|
103
|
+
return /* @__PURE__ */ r(
|
|
98
104
|
"button",
|
|
99
105
|
{
|
|
100
|
-
ref:
|
|
106
|
+
ref: S,
|
|
101
107
|
disabled: c,
|
|
102
108
|
className: g,
|
|
103
109
|
onClick: A,
|
|
104
|
-
onMouseDown:
|
|
105
|
-
onMouseUp:
|
|
110
|
+
onMouseDown: p,
|
|
111
|
+
onMouseUp: N,
|
|
106
112
|
autoFocus: f,
|
|
107
|
-
tabIndex:
|
|
113
|
+
tabIndex: m,
|
|
108
114
|
title: i,
|
|
109
|
-
type:
|
|
110
|
-
"aria-label":
|
|
115
|
+
type: d,
|
|
116
|
+
"aria-label": C,
|
|
111
117
|
...W,
|
|
112
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ r(E, { ...l })
|
|
113
119
|
}
|
|
114
120
|
);
|
|
115
121
|
}
|
|
116
|
-
const
|
|
122
|
+
const V = b.memo(H);
|
|
117
123
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
124
|
+
E as ButtonContent,
|
|
125
|
+
V as default,
|
|
126
|
+
G as getButtonClassName
|
|
121
127
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import t from "../Flex/Flex.js";
|
|
4
4
|
import { Text as n } from "../Text/Text.js";
|
|
5
5
|
import "../../utils/ui/ui.js";
|
|
6
6
|
import i from "./Button.js";
|
|
7
|
-
import { ButtonBar as
|
|
7
|
+
import { ButtonBar as c } from "./ButtonBar.js";
|
|
8
8
|
import { LinkButton as l } from "./LinkButton.js";
|
|
9
9
|
function h() {
|
|
10
|
-
return /* @__PURE__ */ t
|
|
11
|
-
/* @__PURE__ */ t
|
|
10
|
+
return /* @__PURE__ */ r(t, { gap: "large", vertical: !0, children: [
|
|
11
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
12
12
|
/* @__PURE__ */ e(n, { children: "Default Icon Right" }),
|
|
13
13
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
14
14
|
i,
|
|
@@ -19,7 +19,7 @@ function h() {
|
|
|
19
19
|
}
|
|
20
20
|
) })
|
|
21
21
|
] }),
|
|
22
|
-
/* @__PURE__ */ t
|
|
22
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
23
23
|
/* @__PURE__ */ e(n, { children: "Default Icon Left" }),
|
|
24
24
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
25
25
|
i,
|
|
@@ -30,7 +30,7 @@ function h() {
|
|
|
30
30
|
}
|
|
31
31
|
) })
|
|
32
32
|
] }),
|
|
33
|
-
/* @__PURE__ */ t
|
|
33
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
34
34
|
/* @__PURE__ */ e(n, { children: "Primary" }),
|
|
35
35
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
36
36
|
i,
|
|
@@ -41,7 +41,31 @@ function h() {
|
|
|
41
41
|
}
|
|
42
42
|
) })
|
|
43
43
|
] }),
|
|
44
|
-
/* @__PURE__ */ t
|
|
44
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
45
|
+
/* @__PURE__ */ e(n, { children: "Primary With Border Shredded" }),
|
|
46
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
47
|
+
i,
|
|
48
|
+
{
|
|
49
|
+
text: "Sign In",
|
|
50
|
+
theme: "primary",
|
|
51
|
+
icon: "Users",
|
|
52
|
+
borderShredded: !0
|
|
53
|
+
}
|
|
54
|
+
) })
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
57
|
+
/* @__PURE__ */ e(n, { children: "Secondary With Border Shredded" }),
|
|
58
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
59
|
+
i,
|
|
60
|
+
{
|
|
61
|
+
text: "Sign In",
|
|
62
|
+
theme: "secondary",
|
|
63
|
+
icon: "Users",
|
|
64
|
+
borderShredded: !0
|
|
65
|
+
}
|
|
66
|
+
) })
|
|
67
|
+
] }),
|
|
68
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
45
69
|
/* @__PURE__ */ e(n, { children: "Secondary" }),
|
|
46
70
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
47
71
|
i,
|
|
@@ -52,7 +76,7 @@ function h() {
|
|
|
52
76
|
}
|
|
53
77
|
) })
|
|
54
78
|
] }),
|
|
55
|
-
/* @__PURE__ */ t
|
|
79
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
56
80
|
/* @__PURE__ */ e(n, { children: "Tertiary (Default)" }),
|
|
57
81
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
58
82
|
i,
|
|
@@ -63,7 +87,7 @@ function h() {
|
|
|
63
87
|
}
|
|
64
88
|
) })
|
|
65
89
|
] }),
|
|
66
|
-
/* @__PURE__ */ t
|
|
90
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
67
91
|
/* @__PURE__ */ e(n, { children: "On Light" }),
|
|
68
92
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
69
93
|
i,
|
|
@@ -74,7 +98,7 @@ function h() {
|
|
|
74
98
|
}
|
|
75
99
|
) })
|
|
76
100
|
] }),
|
|
77
|
-
/* @__PURE__ */ t
|
|
101
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
78
102
|
/* @__PURE__ */ e(n, { children: "Quick Link" }),
|
|
79
103
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
80
104
|
i,
|
|
@@ -85,7 +109,7 @@ function h() {
|
|
|
85
109
|
}
|
|
86
110
|
) })
|
|
87
111
|
] }),
|
|
88
|
-
/* @__PURE__ */ t
|
|
112
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
89
113
|
/* @__PURE__ */ e(n, { children: "No Icon" }),
|
|
90
114
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
91
115
|
i,
|
|
@@ -95,7 +119,7 @@ function h() {
|
|
|
95
119
|
}
|
|
96
120
|
) })
|
|
97
121
|
] }),
|
|
98
|
-
/* @__PURE__ */ t
|
|
122
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
99
123
|
/* @__PURE__ */ e(n, { children: "Disabled" }),
|
|
100
124
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
101
125
|
i,
|
|
@@ -107,7 +131,7 @@ function h() {
|
|
|
107
131
|
}
|
|
108
132
|
) })
|
|
109
133
|
] }),
|
|
110
|
-
/* @__PURE__ */ t
|
|
134
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
111
135
|
/* @__PURE__ */ e(n, { children: "Full Width" }),
|
|
112
136
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
113
137
|
i,
|
|
@@ -119,9 +143,9 @@ function h() {
|
|
|
119
143
|
}
|
|
120
144
|
) })
|
|
121
145
|
] }),
|
|
122
|
-
/* @__PURE__ */ t
|
|
146
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
123
147
|
/* @__PURE__ */ e(n, { children: "Linked" }),
|
|
124
|
-
/* @__PURE__ */ t
|
|
148
|
+
/* @__PURE__ */ r(t, { p: 4, style: { backgroundColor: "var(--color-modal-background)" }, children: [
|
|
125
149
|
/* @__PURE__ */ e(
|
|
126
150
|
i,
|
|
127
151
|
{
|
|
@@ -141,7 +165,7 @@ function h() {
|
|
|
141
165
|
)
|
|
142
166
|
] })
|
|
143
167
|
] }),
|
|
144
|
-
/* @__PURE__ */ t
|
|
168
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
145
169
|
/* @__PURE__ */ e(n, { children: "LinkButton - look like button but its anchor" }),
|
|
146
170
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
147
171
|
l,
|
|
@@ -153,16 +177,16 @@ function h() {
|
|
|
153
177
|
}
|
|
154
178
|
) })
|
|
155
179
|
] }),
|
|
156
|
-
/* @__PURE__ */ t
|
|
180
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
157
181
|
/* @__PURE__ */ e(n, { children: "Button Bar" }),
|
|
158
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ r(c, { children: [
|
|
159
183
|
/* @__PURE__ */ e(i, { text: "Sign In", theme: "primary", icon: "Users" }),
|
|
160
184
|
/* @__PURE__ */ e(i, { text: "Register", theme: "secondary", icon: "Users" }),
|
|
161
185
|
/* @__PURE__ */ e(i, { text: "Sign Out", theme: "on-light", icon: "Users" }),
|
|
162
186
|
/* @__PURE__ */ e(i, { text: "Create Account", theme: "tertiary", icon: "Users" })
|
|
163
187
|
] }) })
|
|
164
188
|
] }),
|
|
165
|
-
/* @__PURE__ */ t
|
|
189
|
+
/* @__PURE__ */ r(t, { gap: "medium", vertical: !0, children: [
|
|
166
190
|
/* @__PURE__ */ e(n, { children: "Long text" }),
|
|
167
191
|
/* @__PURE__ */ e("div", { style: { maxWidth: "300px" }, children: /* @__PURE__ */ e(
|
|
168
192
|
i,
|
|
@@ -175,7 +199,7 @@ function h() {
|
|
|
175
199
|
] })
|
|
176
200
|
] });
|
|
177
201
|
}
|
|
178
|
-
const x =
|
|
202
|
+
const x = d.memo(h);
|
|
179
203
|
export {
|
|
180
204
|
x as default
|
|
181
205
|
};
|