@yourdash/uikit 1.0.40 → 1.0.42
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/UKButtonLink.css +4 -0
- package/dist/components/box/{box.d.ts → UKBox.d.ts} +2 -2
- package/dist/components/box/{box.js → UKBox.js} +2 -2
- package/dist/components/button/{button.d.ts → UKButton.d.ts} +2 -2
- package/dist/components/button/{button.js → UKButton.js} +1 -1
- package/dist/components/buttonCombo/{buttonCombo.d.ts → UKButtonCombo.d.ts} +2 -2
- package/dist/components/buttonCombo/{buttonCombo.js → UKButtonCombo.js} +1 -1
- package/dist/components/buttonLink/{buttonLink.d.ts → UKButtonLink.d.ts} +2 -2
- package/dist/components/buttonLink/UKButtonLink.js +21 -0
- package/dist/components/buttonWithIcon/{buttonWithIcon.d.ts → UKButtonWithIcon.d.ts} +3 -3
- package/dist/components/buttonWithIcon/{buttonWithIcon.js → UKButtonWithIcon.js} +2 -2
- package/dist/components/card/{card.d.ts → UKCard.d.ts} +3 -3
- package/dist/components/card/{card.js → UKCard.js} +3 -3
- package/dist/components/container/{container.d.ts → UKContainer.d.ts} +2 -2
- package/dist/components/container/{container.js → UKContainer.js} +2 -2
- package/dist/components/contextMenu/{contextMenu.d.ts → UKContextMenu.d.ts} +3 -3
- package/dist/components/contextMenu/{contextMenu.js → UKContextMenu.js} +4 -4
- package/dist/components/contextMenu/contextMenuRoot.js +8 -8
- package/dist/components/flex/{flex.d.ts → UKFlex.d.ts} +2 -2
- package/dist/components/flex/{flex.js → UKFlex.js} +1 -1
- package/dist/components/heading/{heading.d.ts → UKHeading.d.ts} +2 -2
- package/dist/components/heading/UKHeading.js +32 -0
- package/dist/components/icon/{icon.d.ts → UKIcon.d.ts} +3 -3
- package/dist/components/icon/{icon.js → UKIcon.js} +1 -1
- package/dist/components/iconButton/UKIconButton.d.ts +10 -0
- package/dist/components/iconButton/{iconButton.js → UKIconButton.js} +2 -2
- package/dist/components/image/{image.d.ts → UKImage.d.ts} +2 -2
- package/dist/components/image/{image.js → UKImage.js} +12 -12
- package/dist/components/link/{link.d.ts → UKLink.d.ts} +2 -2
- package/dist/components/link/{link.js → UKLink.js} +3 -3
- package/dist/components/progressBar/{progressBar.d.ts → UKProgressBar.d.ts} +2 -2
- package/dist/components/redirect/UKRedirect.d.ts +5 -0
- package/dist/components/redirect/UKRedirect.js +11 -0
- package/dist/components/separator/{separator.d.ts → UKSeparator.d.ts} +2 -2
- package/dist/components/separator/{separator.js → UKSeparator.js} +1 -1
- package/dist/components/spinner/UKSpinner.d.ts +5 -0
- package/dist/components/spinner/{spinner.js → UKSpinner.js} +1 -1
- package/dist/components/subtext/{subtext.d.ts → UKSubtext.d.ts} +2 -2
- package/dist/components/subtext/{subtext.js → UKSubtext.js} +1 -1
- package/dist/components/tag/{tag.d.ts → UKTag.d.ts} +2 -2
- package/dist/components/tag/{tag.js → UKTag.js} +1 -1
- package/dist/components/text/{text.d.ts → UKText.d.ts} +2 -2
- package/dist/components/text/{text.js → UKText.js} +1 -1
- package/dist/components/textButton/{textButton.d.ts → UKTextButton.d.ts} +2 -2
- package/dist/components/textButton/{textButton.js → UKTextButton.js} +1 -1
- package/dist/components/textInput/{textInput.d.ts → UKTextInput.d.ts} +3 -2
- package/dist/components/textInput/{textInput.js → UKTextInput.js} +7 -6
- package/dist/core/decrementLevel.js +1 -1
- package/dist/core/iconDictionary.d.ts +2 -2
- package/dist/core/iconDictionary.js +1 -1
- package/dist/core/incrementLevel.js +1 -1
- package/dist/core/level.js +1 -1
- package/dist/core/root.js +1 -1
- package/dist/core/toasts/toasts.js +17 -17
- package/dist/defaultTheme.module.scss +12 -12
- package/dist/{level-o2-EzyQS.js → level-zWuM8x6U.js} +7 -7
- package/dist/{assets/level.css → level.css} +1 -1
- package/dist/views/carousel/{carousel.d.ts → UKCarousel.d.ts} +2 -2
- package/dist/views/carousel/{carousel.js → UKCarousel.js} +8 -8
- package/dist/views/dialog/UKDialog.d.ts +10 -0
- package/dist/views/dialog/UKDialog.js +22 -0
- package/dist/views/header/{header.d.ts → UKPageHeader.d.ts} +2 -2
- package/dist/views/header/UKPageHeader.js +21 -0
- package/dist/views/infiniteScroll/{infiniteScroll.d.ts → UKInfiniteScroll.d.ts} +2 -2
- package/dist/views/infiniteScroll/{infiniteScroll.js → UKInfiniteScroll.js} +7 -7
- package/dist/views/navBar/{navBar.d.ts → UKNavBar.d.ts} +2 -2
- package/dist/views/navBar/{navBar.js → UKNavBar.js} +3 -3
- package/dist/views/navBar/components/navImage/UKNavbarNavImage.d.ts +5 -0
- package/dist/views/navBar/components/navImage/UKNavbarNavImage.js +15 -0
- package/dist/views/navBar/components/navTitle/UKNavbarNavTitle.d.ts +5 -0
- package/dist/views/navBar/components/navTitle/{navTitle.js → UKNavbarNavTitle.js} +1 -1
- package/dist/views/onBoarding/{onBoarding.d.ts → UKOnBoarding.d.ts} +3 -3
- package/dist/views/onBoarding/UKOnBoarding.js +130 -0
- package/dist/views/panAndZoom/{panAndZoom.d.ts → UKPanAndZoom.d.ts} +2 -2
- package/dist/views/sidebar/{sidebar.d.ts → UKSidebar.d.ts} +2 -2
- package/dist/views/sidebar/{sidebar.js → UKSidebar.js} +6 -6
- package/dist/views/sidebar/{sidebarContainer.d.ts → UKSidebarContainer.d.ts} +2 -2
- package/dist/views/sidebar/{sidebarContainer.js → UKSidebarContainer.js} +2 -2
- package/dist/views/sidebar/{sidebarContext.d.ts → UKSidebarContext.d.ts} +2 -2
- package/dist/views/sidebar/UKSidebarToggleButton.d.ts +3 -0
- package/dist/views/sidebar/{sidebarToggleButton.js → UKSidebarToggleButton.js} +4 -4
- package/package.json +43 -40
- package/dist/assets/buttonLink.css +0 -4
- package/dist/components/buttonLink/buttonLink.js +0 -21
- package/dist/components/heading/heading.js +0 -29
- package/dist/components/iconButton/iconButton.d.ts +0 -10
- package/dist/components/index.d.ts +0 -23
- package/dist/components/index.js +0 -48
- package/dist/components/redirect/redirect.d.ts +0 -5
- package/dist/components/redirect/redirect.js +0 -11
- package/dist/components/spinner/spinner.d.ts +0 -5
- package/dist/core/index.d.ts +0 -5
- package/dist/core/index.js +0 -12
- package/dist/index-BJy4nmTN.js +0 -52
- package/dist/index-BoiKlAEs.js +0 -30
- package/dist/index-C9QO6nHU.js +0 -10
- package/dist/index-D4kASGu5.js +0 -240
- package/dist/index-DgBqz1HD.js +0 -16
- package/dist/uikit.d.ts +0 -4
- package/dist/uikit.js +0 -10
- package/dist/utilityComponent/index.d.ts +0 -2
- package/dist/utilityComponent/index.js +0 -6
- package/dist/views/dialog/dialog.d.ts +0 -6
- package/dist/views/dialog/dialog.js +0 -18
- package/dist/views/header/header.js +0 -21
- package/dist/views/index.d.ts +0 -12
- package/dist/views/index.js +0 -26
- package/dist/views/navBar/components/navImage/navImage.d.ts +0 -5
- package/dist/views/navBar/components/navImage/navImage.js +0 -15
- package/dist/views/navBar/components/navTitle/navTitle.d.ts +0 -5
- package/dist/views/onBoarding/onBoarding.js +0 -125
- package/dist/views/sidebar/sidebarToggleButton.d.ts +0 -3
- /package/dist/{assets/box.css → UKBox.css} +0 -0
- /package/dist/{assets/button.css → UKButton.css} +0 -0
- /package/dist/{assets/buttonCombo.css → UKButtonCombo.css} +0 -0
- /package/dist/{assets/buttonWithIcon.css → UKButtonWithIcon.css} +0 -0
- /package/dist/{assets/card.css → UKCard.css} +0 -0
- /package/dist/{assets/carousel.css → UKCarousel.css} +0 -0
- /package/dist/{assets/container.css → UKContainer.css} +0 -0
- /package/dist/{assets/dialog.css → UKDialog.css} +0 -0
- /package/dist/{assets/flex.css → UKFlex.css} +0 -0
- /package/dist/{assets/heading.css → UKHeading.css} +0 -0
- /package/dist/{assets/icon.css → UKIcon.css} +0 -0
- /package/dist/{assets/iconButton.css → UKIconButton.css} +0 -0
- /package/dist/{assets/image.css → UKImage.css} +0 -0
- /package/dist/{assets/infiniteScroll.css → UKInfiniteScroll.css} +0 -0
- /package/dist/{assets/link.css → UKLink.css} +0 -0
- /package/dist/{assets/navBar.css → UKNavBar.css} +0 -0
- /package/dist/{assets/navImage.css → UKNavbarNavImage.css} +0 -0
- /package/dist/{assets/onBoarding.css → UKOnBoarding.css} +0 -0
- /package/dist/{assets/header.css → UKPageHeader.css} +0 -0
- /package/dist/{assets/separator.css → UKSeparator.css} +0 -0
- /package/dist/{assets/sidebar.css → UKSidebar.css} +0 -0
- /package/dist/{assets/sidebarContainer.css → UKSidebarContainer.css} +0 -0
- /package/dist/{assets/spinner.css → UKSpinner.css} +0 -0
- /package/dist/{assets/subtext.css → UKSubtext.css} +0 -0
- /package/dist/{assets/tag.css → UKTag.css} +0 -0
- /package/dist/{assets/textButton.css → UKTextButton.css} +0 -0
- /package/dist/{assets/textInput.css → UKTextInput.css} +0 -0
- /package/dist/components/progressBar/{progressBar.js → UKProgressBar.js} +0 -0
- /package/dist/{assets/contextMenuRoot.css → contextMenuRoot.css} +0 -0
- /package/dist/{assets/toasts.css → toasts.css} +0 -0
- /package/dist/views/panAndZoom/{panAndZoom.js → UKPanAndZoom.js} +0 -0
- /package/dist/views/sidebar/{sidebarContext.js → UKSidebarContext.js} +0 -0
@@ -0,0 +1,4 @@
|
|
1
|
+
@charset "UTF-8";/*!
|
2
|
+
* Copyright ©2024 Ewsgit<https://github.com/ewsgit> and YourDash<https://github.com/yourdash> contributors.
|
3
|
+
* YourDash is licensed under the MIT License. (https://ewsgit.mit-license.org)
|
4
|
+
*/._component_1kvf2_10{font-family:var(--utfontfam);text-align:center;color:var(--utbtncol);border:var(--utbtnbrd);border-radius:var(--utbtnrad);background:var(--utbtnbgn);transition:var(--utbtntrans);height:var(--utinphei);width:max-content;cursor:pointer}._component_1kvf2_10:hover{color:var(--utbtnhvrcol);border:var(--utbtnhvrbrd);border-radius:var(--utbtnhvrrad);background:var(--utbtnhvrbgn);transition:var(--utbtnhvrtrans)}._component_1kvf2_10:active{color:var(--utbtnatvcol);border:var(--utbtnatvbrd);border-radius:var(--utbtnatvrad);background:var(--utbtnatvbgn);transition:var(--utbtnatvtrans)}._component_1kvf2_10:disabled{opacity:.8;color:var(--utbtncol);border:var(--utbtnbrd);border-radius:var(--utbtnrad);background:var(--utbtnbgn);cursor:not-allowed}._link_1kvf2_45{display:inline}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
2
2
|
import { c as t } from "../../clippy-B98VypDQ.js";
|
3
3
|
import s from "../../core/incrementLevel.js";
|
4
|
-
import { u as c, a as l } from "../../level-
|
5
|
-
import '../../
|
4
|
+
import { u as c, a as l } from "../../level-zWuM8x6U.js";
|
5
|
+
import '../../UKBox.css';const m = "_component_yvjet_10", r = {
|
6
6
|
component: m
|
7
7
|
}, d = (e) => {
|
8
8
|
const n = e.level || c();
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
2
2
|
import { c as e } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKButton.css';const o = "_component_1jj21_10", c = {
|
4
4
|
component: o
|
5
5
|
}, m = (t) => /* @__PURE__ */ n(
|
6
6
|
"button",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
2
2
|
import { c as s } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKButtonCombo.css';const c = "_component_17nsv_6", m = {
|
4
4
|
component: c
|
5
5
|
}, r = ({ children: o, className: t }) => /* @__PURE__ */ n("div", { className: s(m.component, t), children: o });
|
6
6
|
export {
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
2
|
+
import { c as e } from "../../clippy-B98VypDQ.js";
|
3
|
+
import c from "../button/UKButton.js";
|
4
|
+
import { useNavigate as m } from "react-router";
|
5
|
+
import '../../UKButtonLink.css';const s = "_component_1kvf2_10", i = "_link_1kvf2_45", a = {
|
6
|
+
component: s,
|
7
|
+
link: i
|
8
|
+
}, p = (t) => {
|
9
|
+
const o = m();
|
10
|
+
return /* @__PURE__ */ n(
|
11
|
+
c,
|
12
|
+
{
|
13
|
+
onClick: () => (o(t.to), 0),
|
14
|
+
text: t.text,
|
15
|
+
className: e(a.component, t.className)
|
16
|
+
}
|
17
|
+
);
|
18
|
+
};
|
19
|
+
export {
|
20
|
+
p as default
|
21
|
+
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { UKIconType } from '../../core/iconDictionary.ts';
|
2
1
|
import { FC } from 'react';
|
3
|
-
|
2
|
+
import { UKIconType } from '../../core/iconDictionary.ts';
|
3
|
+
declare const UKButtonWithIcon: FC<{
|
4
4
|
icon: UKIconType;
|
5
5
|
onClick: () => void;
|
6
6
|
text: string;
|
7
7
|
className?: string;
|
8
8
|
disabled?: boolean;
|
9
9
|
}>;
|
10
|
-
export default
|
10
|
+
export default UKButtonWithIcon;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs as t, jsx as c } from "react/jsx-runtime";
|
2
2
|
import { c as e } from "../../clippy-B98VypDQ.js";
|
3
|
-
import i from "../icon/
|
4
|
-
import '../../
|
3
|
+
import i from "../icon/UKIcon.js";
|
4
|
+
import '../../UKButtonWithIcon.css';const s = "_component_p4tfu_10", a = "_icon_p4tfu_49", o = {
|
5
5
|
component: s,
|
6
6
|
icon: a
|
7
7
|
}, d = (n) => /* @__PURE__ */ t(
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
declare const
|
1
|
+
import { default as React, FC } from 'react';
|
2
|
+
declare const UKCard: FC<{
|
3
3
|
level?: 0 | 1 | 2 | 3;
|
4
4
|
containerClassName?: string;
|
5
5
|
onClick?: () => void;
|
@@ -11,4 +11,4 @@ declare const Card: FC<{
|
|
11
11
|
header?: React.ReactNode | React.ReactNode[];
|
12
12
|
style?: React.CSSProperties;
|
13
13
|
}>;
|
14
|
-
export default
|
14
|
+
export default UKCard;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsx as c, Fragment as i, jsxs as s } from "react/jsx-runtime";
|
2
2
|
import { c as n } from "../../clippy-B98VypDQ.js";
|
3
3
|
import m from "../../core/incrementLevel.js";
|
4
|
-
import { u as d, a as o } from "../../level-
|
5
|
-
import l from "../box/
|
4
|
+
import { u as d, a as o } from "../../level-zWuM8x6U.js";
|
5
|
+
import l from "../box/UKBox.js";
|
6
6
|
import r from "../../core/decrementLevel.js";
|
7
|
-
import '../../
|
7
|
+
import '../../UKCard.css';const h = "_component_18x96_10", N = "_clickable_18x96_25", _ = "_header_18x96_52", C = "_actions_18x96_59", v = "_content_18x96_67", a = {
|
8
8
|
component: h,
|
9
9
|
clickable: N,
|
10
10
|
header: _,
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
2
2
|
import { c as t } from "../../clippy-B98VypDQ.js";
|
3
3
|
import s from "../../core/incrementLevel.js";
|
4
|
-
import { u as c, a as l } from "../../level-
|
5
|
-
import '../../
|
4
|
+
import { u as c, a as l } from "../../level-zWuM8x6U.js";
|
5
|
+
import '../../UKContainer.css';const m = "_component_td4gi_10", r = {
|
6
6
|
component: m
|
7
7
|
}, v = (e) => {
|
8
8
|
const o = e.level || c();
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { FC } from 'react';
|
2
|
-
declare const
|
1
|
+
import { default as React, FC } from 'react';
|
2
|
+
declare const UKContextMenu: FC<{
|
3
3
|
items: {
|
4
4
|
label: string;
|
5
5
|
onClick: () => void;
|
@@ -7,4 +7,4 @@ declare const ContextMenu: FC<{
|
|
7
7
|
children: React.ReactNode | React.ReactNode[];
|
8
8
|
className?: string;
|
9
9
|
}>;
|
10
|
-
export default
|
10
|
+
export default UKContextMenu;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
2
2
|
import s from "./contextMenuRootContext.js";
|
3
|
-
const w = ({ items: i, children: u, className:
|
3
|
+
const w = ({ items: i, children: u, className: c }) => /* @__PURE__ */ r(s.Consumer, { children: (n) => /* @__PURE__ */ r(
|
4
4
|
"div",
|
5
5
|
{
|
6
|
-
className:
|
6
|
+
className: c,
|
7
7
|
onContextMenu: (e) => {
|
8
8
|
e.stopPropagation(), e.preventDefault();
|
9
9
|
const o = e.currentTarget.getBoundingClientRect();
|
@@ -14,8 +14,8 @@ const w = ({ items: i, children: u, className: d }) => /* @__PURE__ */ r(s.Consu
|
|
14
14
|
height: o.height,
|
15
15
|
items: i
|
16
16
|
});
|
17
|
-
const t = (
|
18
|
-
|
17
|
+
const t = (d) => {
|
18
|
+
d.preventDefault(), n.destroyMenu(), window.removeEventListener("click", t), window.removeEventListener("contextmenu", t);
|
19
19
|
};
|
20
20
|
window.addEventListener("click", t), window.addEventListener("contextmenu", t);
|
21
21
|
},
|
@@ -1,28 +1,28 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as C, jsx as p } from "react/jsx-runtime";
|
2
2
|
import o, { useRef as M, useEffect as R } from "react";
|
3
|
-
import v from "../button/
|
3
|
+
import v from "../button/UKButton.js";
|
4
4
|
import E from "./contextMenuRootContext.js";
|
5
|
-
import '../../
|
5
|
+
import '../../contextMenuRoot.css';const H = "_component_g2wjx_10", j = "_button_g2wjx_29", h = {
|
6
6
|
component: H,
|
7
7
|
button: j
|
8
|
-
},
|
8
|
+
}, k = ({ children: x }) => {
|
9
9
|
const [s, g] = o.useState({ x: 0, y: 0 }), [w, e] = o.useState(!1), [_, b] = o.useState([]), n = M(null);
|
10
10
|
return R(() => {
|
11
11
|
window.addEventListener("resize", () => {
|
12
12
|
e(!1);
|
13
13
|
});
|
14
|
-
}, []), /* @__PURE__ */
|
14
|
+
}, []), /* @__PURE__ */ C(
|
15
15
|
E.Provider,
|
16
16
|
{
|
17
17
|
value: {
|
18
|
-
createMenu: ({ x: t, y: i, width: N, height: B, items:
|
18
|
+
createMenu: ({ x: t, y: i, width: N, height: B, items: y }) => {
|
19
19
|
var f, m;
|
20
20
|
const r = window.innerWidth, c = window.innerHeight, l = ((f = n.current) == null ? void 0 : f.getBoundingClientRect().width) || 200, u = ((m = n.current) == null ? void 0 : m.getBoundingClientRect().height) || 200;
|
21
21
|
let a = t, d = i;
|
22
22
|
t + l >= r && (a = r - l), i + u >= c && (d = c - u), g({
|
23
23
|
x: a,
|
24
24
|
y: d
|
25
|
-
}), b(
|
25
|
+
}), b(y), e(!0);
|
26
26
|
},
|
27
27
|
destroyMenu: () => {
|
28
28
|
e(!1);
|
@@ -56,5 +56,5 @@ import '../../assets/contextMenuRoot.css';const H = "_component_g2wjx_10", j = "
|
|
56
56
|
);
|
57
57
|
};
|
58
58
|
export {
|
59
|
-
|
59
|
+
k as default
|
60
60
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
2
|
-
declare const
|
2
|
+
declare const UKFlex: FC<{
|
3
3
|
direction: "row" | "column";
|
4
4
|
className?: string;
|
5
5
|
children: ReactNode | ReactNode[];
|
@@ -7,4 +7,4 @@ declare const Flex: FC<{
|
|
7
7
|
centerVertically?: boolean;
|
8
8
|
padding?: boolean;
|
9
9
|
}>;
|
10
|
-
export default
|
10
|
+
export default UKFlex;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
2
|
import { c } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKFlex.css';const o = "_component_13j68_10", l = "_row_13j68_15", r = "_column_13j68_19", i = "_centerHorizontally_13j68_23", a = "_centerVertically_13j68_27", _ = "_padding_13j68_31", e = {
|
4
4
|
component: o,
|
5
5
|
row: l,
|
6
6
|
column: r,
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
2
|
+
import { c as t } from "../../clippy-B98VypDQ.js";
|
3
|
+
import { useContext as m } from "react";
|
4
|
+
import { L as h } from "../../level-zWuM8x6U.js";
|
5
|
+
import '../../UKHeading.css';const s = "_component_13od9_10", a = "_h1component_13od9_17", l = "_h2component_13od9_22", _ = "_h3component_13od9_27", p = "_h4component_13od9_32", d = "_h5component_13od9_37", r = "_h6component_13od9_42", e = {
|
6
|
+
component: s,
|
7
|
+
h1component: a,
|
8
|
+
h2component: l,
|
9
|
+
h3component: _,
|
10
|
+
h4component: p,
|
11
|
+
h5component: d,
|
12
|
+
h6component: r
|
13
|
+
}, f = (n) => {
|
14
|
+
const c = m(h);
|
15
|
+
switch (n.level || c || 1) {
|
16
|
+
case 1:
|
17
|
+
return /* @__PURE__ */ o("h1", { className: t(e.component, e.h1component, n.className), children: n.text });
|
18
|
+
case 2:
|
19
|
+
return /* @__PURE__ */ o("h2", { className: t(e.component, e.h2component, n.className), children: n.text });
|
20
|
+
case 3:
|
21
|
+
return /* @__PURE__ */ o("h3", { className: t(e.component, e.h3component, n.className), children: n.text });
|
22
|
+
case 4:
|
23
|
+
return /* @__PURE__ */ o("h4", { className: t(e.component, e.h4component, n.className), children: n.text });
|
24
|
+
case 5:
|
25
|
+
return /* @__PURE__ */ o("h5", { className: t(e.component, e.h5component, n.className), children: n.text });
|
26
|
+
case 6:
|
27
|
+
return /* @__PURE__ */ o("h6", { className: t(e.component, e.h6component, n.className), children: n.text });
|
28
|
+
}
|
29
|
+
};
|
30
|
+
export {
|
31
|
+
f as default
|
32
|
+
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { UKIconType } from '../../core/iconDictionary.ts';
|
2
1
|
import { FC } from 'react';
|
3
|
-
|
2
|
+
import { UKIconType } from '../../core/iconDictionary';
|
3
|
+
declare const UKIcon: FC<{
|
4
4
|
icon: UKIconType;
|
5
5
|
size?: string;
|
6
6
|
color?: string;
|
7
7
|
preserveColor?: boolean;
|
8
8
|
className?: string;
|
9
9
|
}>;
|
10
|
-
export default
|
10
|
+
export default UKIcon;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
2
2
|
import { useState as s, useEffect as l } from "react";
|
3
3
|
import i from "../../server-error-lFyIkIwC.js";
|
4
|
-
import '../../
|
4
|
+
import '../../UKIcon.css';const m = "_component_1asux_6", a = "_preserveColor_1asux_20", o = {
|
5
5
|
component: m,
|
6
6
|
preserveColor: a
|
7
7
|
}, C = (e) => {
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { UKIcons } from '../../core/iconDictionary.ts';
|
2
|
+
import { FC } from 'react';
|
3
|
+
declare const UKIconButton: FC<{
|
4
|
+
icon: (typeof UKIcons)[keyof typeof UKIcons];
|
5
|
+
accessibleLabel: string;
|
6
|
+
onClick: () => void;
|
7
|
+
className?: string;
|
8
|
+
preserveColor?: boolean;
|
9
|
+
}>;
|
10
|
+
export default UKIconButton;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
2
2
|
import { c as n } from "../../clippy-B98VypDQ.js";
|
3
|
-
import c from "../icon/
|
4
|
-
import '../../
|
3
|
+
import c from "../icon/UKIcon.js";
|
4
|
+
import '../../UKIconButton.css';const t = "_component_jdj54_10", l = {
|
5
5
|
component: t
|
6
6
|
}, a = (o) => /* @__PURE__ */ e(
|
7
7
|
"button",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { FC } from 'react';
|
2
|
-
declare const
|
2
|
+
declare const UKImage: FC<{
|
3
3
|
src: string;
|
4
4
|
accessibleLabel: string;
|
5
5
|
containerClassName?: string;
|
@@ -9,4 +9,4 @@ declare const Image: FC<{
|
|
9
9
|
width?: number;
|
10
10
|
height?: number;
|
11
11
|
}>;
|
12
|
-
export default
|
12
|
+
export default UKImage;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
2
|
-
import v from "../icon/
|
3
|
-
import {
|
4
|
-
import { useRef as E, useState as a, useEffect as
|
2
|
+
import v from "../icon/UKIcon.js";
|
3
|
+
import { UKIcons as b } from "../../core/iconDictionary.js";
|
4
|
+
import { useRef as E, useState as a, useEffect as s } from "react";
|
5
5
|
import { c as u } from "../../clippy-B98VypDQ.js";
|
6
|
-
import '../../
|
6
|
+
import '../../UKImage.css';const R = "_componentContainer_112vn_10", C = "_component_112vn_10", y = "_noRounding_112vn_27", z = "_loaded_112vn_31", L = "_loading_112vn_44", S = "_serverError_112vn_52", w = "_fail_112vn_1", e = {
|
7
7
|
componentContainer: R,
|
8
8
|
component: C,
|
9
9
|
noRounding: y,
|
@@ -11,22 +11,22 @@ import '../../assets/image.css';const R = "_componentContainer_112vn_10", C = "_
|
|
11
11
|
loading: L,
|
12
12
|
serverError: S,
|
13
13
|
fail: w
|
14
|
-
},
|
15
|
-
const
|
16
|
-
return
|
17
|
-
const t =
|
14
|
+
}, U = (n) => {
|
15
|
+
const i = E(null), [o, _] = a(n.src), [d, l] = a(!1), [g, m] = a(!1), [f, h] = a(0);
|
16
|
+
return s(() => {
|
17
|
+
const t = i.current;
|
18
18
|
t && setTimeout(() => {
|
19
19
|
const r = t.getBoundingClientRect();
|
20
20
|
h(r.height > r.width ? r.height : r.width);
|
21
21
|
}, 0);
|
22
|
-
}, [o]),
|
22
|
+
}, [o]), s(() => {
|
23
23
|
m(!1), l(!1);
|
24
|
-
}, [o]),
|
24
|
+
}, [o]), s(() => {
|
25
25
|
n.src !== o && _(n.src);
|
26
26
|
}, [n.src]), /* @__PURE__ */ c(
|
27
27
|
"div",
|
28
28
|
{
|
29
|
-
ref:
|
29
|
+
ref: i,
|
30
30
|
className: u(e.componentContainer, n.containerClassName, !d && e.loading, g && e.serverError),
|
31
31
|
style: {
|
32
32
|
// @ts-ignore
|
@@ -52,5 +52,5 @@ import '../../assets/image.css';const R = "_componentContainer_112vn_10", C = "_
|
|
52
52
|
);
|
53
53
|
};
|
54
54
|
export {
|
55
|
-
|
55
|
+
U as default
|
56
56
|
};
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsxs as c, jsx as t } from "react/jsx-runtime";
|
2
2
|
import { c as e } from "../../clippy-B98VypDQ.js";
|
3
|
-
import m from "../icon/
|
4
|
-
import {
|
5
|
-
import '../../
|
3
|
+
import m from "../icon/UKIcon.js";
|
4
|
+
import { UKIcons as s } from "../../core/iconDictionary.js";
|
5
|
+
import '../../UKLink.css';const i = "_component_r9qeb_10", n = {
|
6
6
|
component: i
|
7
7
|
}, p = (o) => /* @__PURE__ */ c(
|
8
8
|
"a",
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
2
|
+
import { useNavigate as r } from "react-router";
|
3
|
+
import i from "../card/UKCard.js";
|
4
|
+
import m from "../text/UKText.js";
|
5
|
+
const d = (t) => {
|
6
|
+
const o = r();
|
7
|
+
return t.to !== null && o(t.to), /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(m, { text: `Redirecting to ${t.to}` }) });
|
8
|
+
};
|
9
|
+
export {
|
10
|
+
d as default
|
11
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
2
2
|
import { c as t } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKSeparator.css';const a = "_component_1i64h_10", c = "_row_1i64h_16", r = "_disableMargin_1i64h_22", s = "_column_1i64h_28", o = {
|
4
4
|
component: a,
|
5
5
|
row: c,
|
6
6
|
disableMargin: r,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as t, jsxs as e } from "react/jsx-runtime";
|
2
2
|
import { c as s } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKSpinner.css';const o = "_component_12m3x_6", r = "_container_12m3x_17", p = "_infiniteSpin_12m3x_1", c = "_spinnerBack_12m3x_26", u = "_spinnerBorder_12m3x_37", a = "_spinnerCutoutContainer_12m3x_48", _ = "_spinnerCutout_12m3x_48", m = "_spinnerCutoutOne_12m3x_65", C = "_spinnerCutoutTwo_12m3x_70", n = {
|
4
4
|
component: o,
|
5
5
|
container: r,
|
6
6
|
infiniteSpin: p,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
2
|
import { c as l } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKSubtext.css';const o = "_component_1ehrl_10", n = "_levelDefault_1ehrl_15", c = {
|
4
4
|
component: o,
|
5
5
|
levelDefault: n
|
6
6
|
}, m = (e) => /* @__PURE__ */ t("div", { className: l(c.component, e.className), children: e.text });
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as t } from "react/jsx-runtime";
|
2
2
|
import { c as n } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKTag.css';const c = "_component_n6r4z_10", e = {
|
4
4
|
component: c
|
5
5
|
}, r = (o) => /* @__PURE__ */ t(
|
6
6
|
"div",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
2
2
|
import { c as n } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKTag.css';const e = "_component_n6r4z_10", c = {
|
4
4
|
component: e
|
5
5
|
}, r = (t) => /* @__PURE__ */ o("div", { className: n(c.component, t.className), children: t.text });
|
6
6
|
export {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
2
2
|
import { c as o } from "../../clippy-B98VypDQ.js";
|
3
|
-
import '../../
|
3
|
+
import '../../UKTextButton.css';const e = "_component_vlbze_10", c = {
|
4
4
|
component: e
|
5
5
|
}, m = (t) => /* @__PURE__ */ n(
|
6
6
|
"button",
|