@arthurzakharov/ui-kit 1.5.2 → 1.5.4
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/animations/fade-grow/fade-grow.component.d.ts +2 -0
- package/dist/animations/{animation-fade-grow/animation-fade-grow.component.js → fade-grow/fade-grow.component.js} +9 -9
- package/dist/animations/fade-grow/index.d.ts +1 -0
- package/dist/animations/fade-grow/index.js +4 -0
- package/dist/animations/fade-scale/fade-scale.component.d.ts +2 -0
- package/dist/animations/{animation-fade-scale/animation-fade-scale.component.js → fade-scale/fade-scale.component.js} +10 -10
- package/dist/animations/fade-scale/index.d.ts +1 -0
- package/dist/animations/fade-scale/index.js +4 -0
- package/dist/animations/fade-slide/fade-slide.component.d.ts +6 -0
- package/dist/animations/{animation-fade-slide/animation-fade-slide.component.js → fade-slide/fade-slide.component.js} +8 -8
- package/dist/animations/fade-slide/index.d.ts +1 -0
- package/dist/animations/fade-slide/index.js +4 -0
- package/dist/animations/rotate/index.d.ts +1 -0
- package/dist/animations/rotate/index.js +4 -0
- package/dist/animations/{animation-rotate/animation-rotate.component.d.ts → rotate/rotate.component.d.ts} +2 -2
- package/dist/animations/{animation-rotate/animation-rotate.component.js → rotate/rotate.component.js} +6 -6
- package/dist/animations/utils/default-props.d.ts +1 -1
- package/dist/assets/box-5bAcfszB.css +1 -0
- package/dist/assets/button-card-B-nlEbJU.css +1 -0
- package/dist/assets/button-radio-CPeNePW2.css +1 -0
- package/dist/assets/button-text-BKSERdhL.css +1 -0
- package/dist/assets/caption-B28SGRY1.css +1 -0
- package/dist/assets/card-image-LY9zvE8g.css +1 -0
- package/dist/assets/card-text-sR2uSJyo.css +1 -0
- package/dist/assets/checkbox-BzL5bg8o.css +1 -0
- package/dist/assets/choice-CcUo4Zvq.css +1 -0
- package/dist/assets/dropdown-DLhCAHEx.css +1 -0
- package/dist/assets/error-message-CQHYhXbt.css +1 -0
- package/dist/assets/hidden-input-DHJQHUKd.css +1 -0
- package/dist/assets/input-D66hMzHc.css +1 -0
- package/dist/assets/label-BKXQlPJi.css +1 -0
- package/dist/assets/radio-VoXwCoAp.css +1 -0
- package/dist/assets/radio-label-CZHWBUUt.css +1 -0
- package/dist/assets/signature-D9gYlpze.css +1 -0
- package/dist/assets/status-Cx_6Ibai.css +1 -0
- package/dist/assets/text-area-Dgc2jHSx.css +1 -0
- package/dist/assets/text-field-Bp4Ra0yN.css +1 -0
- package/dist/components/accordion-table/accordion-table.component.js +18 -18
- package/dist/components/bottom-bar/bottom-bar.component.d.ts +1 -1
- package/dist/components/bottom-bar/bottom-bar.component.js +25 -27
- package/dist/components/dialog/dialog.component.js +19108 -60
- package/dist/components/dialog-article/dialog-article.component.d.ts +0 -4
- package/dist/components/dialog-article/dialog-article.component.js +20 -20
- package/dist/components/footer/footer.component.d.ts +1 -1
- package/dist/components/footer/index.d.ts +1 -1
- package/dist/components/main-attachment/main-attachment.component.js +7 -7
- package/dist/components/payment/components/glass/glass.component.js +2 -2
- package/dist/components/sidebar/sidebar.component.d.ts +1 -1
- package/dist/components/sidebar/sidebar.component.js +14 -14
- package/dist/components/signature/signature.component.d.ts +1 -1
- package/dist/components/signature/signature.component.js +848 -783
- package/dist/components/text/text.component.d.ts +2 -2
- package/dist/components/user-panel/user-panel.component.js +13 -13
- package/dist/controls/box/box.component.d.ts +10 -0
- package/dist/controls/box/box.component.js +40 -0
- package/dist/controls/box/index.d.ts +1 -0
- package/dist/controls/box/index.js +4 -0
- package/dist/controls/{control-button/control-button.component.d.ts → button/button.component.d.ts} +5 -4
- package/dist/controls/button/button.component.js +82 -0
- package/dist/controls/button/index.d.ts +1 -0
- package/dist/controls/button/index.js +4 -0
- package/dist/controls/{control-button-card/control-button-card.component.d.ts → button-card/button-card.component.d.ts} +5 -4
- package/dist/controls/button-card/button-card.component.js +79 -0
- package/dist/controls/button-card/index.d.ts +1 -0
- package/dist/controls/button-card/index.js +4 -0
- package/dist/controls/button-radio/button-radio.component.d.ts +20 -0
- package/dist/controls/button-radio/button-radio.component.js +83 -0
- package/dist/controls/button-radio/index.d.ts +1 -0
- package/dist/controls/button-radio/index.js +4 -0
- package/dist/controls/{control-button-text/control-button-text.component.d.ts → button-text/button-text.component.d.ts} +4 -4
- package/dist/controls/button-text/button-text.component.js +87 -0
- package/dist/controls/button-text/index.d.ts +1 -0
- package/dist/controls/button-text/index.js +4 -0
- package/dist/controls/caption/caption.component.d.ts +10 -0
- package/dist/controls/caption/caption.component.js +48 -0
- package/dist/controls/caption/index.d.ts +1 -0
- package/dist/controls/caption/index.js +4 -0
- package/dist/controls/card-image/card-image.component.d.ts +10 -0
- package/dist/controls/card-image/card-image.component.js +81 -0
- package/dist/controls/card-image/index.d.ts +1 -0
- package/dist/controls/card-image/index.js +4 -0
- package/dist/controls/card-text/card-text.component.d.ts +9 -0
- package/dist/controls/card-text/card-text.component.js +75 -0
- package/dist/controls/card-text/index.d.ts +1 -0
- package/dist/controls/card-text/index.js +4 -0
- package/dist/controls/checkbox/checkbox.component.d.ts +10 -0
- package/dist/controls/checkbox/checkbox.component.js +103 -0
- package/dist/controls/checkbox/index.d.ts +1 -0
- package/dist/controls/checkbox/index.js +4 -0
- package/dist/controls/choice/choice.component.d.ts +12 -0
- package/dist/controls/choice/choice.component.js +65 -0
- package/dist/controls/choice/index.d.ts +1 -0
- package/dist/controls/choice/index.js +4 -0
- package/dist/controls/{control-dropdown/control-dropdown.component.d.ts → dropdown/dropdown.component.d.ts} +3 -3
- package/dist/controls/dropdown/dropdown.component.js +127 -0
- package/dist/controls/dropdown/index.d.ts +1 -0
- package/dist/controls/dropdown/index.js +4 -0
- package/dist/controls/error-message/error-message.component.d.ts +5 -0
- package/dist/controls/error-message/error-message.component.js +22 -0
- package/dist/controls/error-message/index.d.ts +1 -0
- package/dist/controls/error-message/index.js +4 -0
- package/dist/controls/hidden-input/hidden-input.component.d.ts +15 -0
- package/dist/controls/hidden-input/hidden-input.component.js +38 -0
- package/dist/controls/hidden-input/index.d.ts +1 -0
- package/dist/controls/hidden-input/index.js +4 -0
- package/dist/controls/hooks/index.d.ts +1 -0
- package/dist/controls/hooks/index.js +3 -1
- package/dist/controls/hooks/use-choice/use-choice.hook.d.ts +2 -2
- package/dist/controls/hooks/use-control-interaction/index.d.ts +1 -0
- package/dist/controls/hooks/use-control-interaction/index.js +4 -0
- package/dist/controls/hooks/use-control-interaction/use-control-interaction.hook.d.ts +7 -0
- package/dist/controls/hooks/use-control-interaction/use-control-interaction.hook.js +25 -0
- package/dist/controls/index.d.ts +22 -0
- package/dist/controls/index.js +50 -0
- package/dist/controls/input/index.d.ts +1 -0
- package/dist/controls/input/index.js +4 -0
- package/dist/controls/input/input.component.d.ts +9 -0
- package/dist/controls/input/input.component.js +143 -0
- package/dist/controls/input/input.utils.d.ts +10 -0
- package/dist/controls/input/input.utils.js +24 -0
- package/dist/controls/label/index.d.ts +1 -0
- package/dist/controls/label/index.js +4 -0
- package/dist/controls/label/label.component.d.ts +8 -0
- package/dist/controls/label/label.component.js +33 -0
- package/dist/controls/radio/index.d.ts +1 -0
- package/dist/controls/radio/index.js +4 -0
- package/dist/controls/radio/radio.component.d.ts +12 -0
- package/dist/controls/radio/radio.component.js +109 -0
- package/dist/controls/radio-label/index.d.ts +1 -0
- package/dist/controls/radio-label/index.js +4 -0
- package/dist/controls/radio-label/radio-label.component.d.ts +19 -0
- package/dist/controls/radio-label/radio-label.component.js +49 -0
- package/dist/controls/status/index.d.ts +1 -0
- package/dist/controls/status/index.js +4 -0
- package/dist/controls/status/status.component.d.ts +6 -0
- package/dist/controls/status/status.component.js +36 -0
- package/dist/controls/text-area/index.d.ts +1 -0
- package/dist/controls/text-area/index.js +4 -0
- package/dist/controls/text-area/text-area.component.d.ts +8 -0
- package/dist/controls/text-area/text-area.component.js +62 -0
- package/dist/controls/text-field/index.d.ts +1 -0
- package/dist/controls/text-field/index.js +4 -0
- package/dist/controls/text-field/text-field.component.d.ts +10 -0
- package/dist/controls/text-field/text-field.component.js +100 -0
- package/dist/controls/utils/functions/functions.util.d.ts +0 -1
- package/dist/controls/utils/functions/functions.util.js +3 -14
- package/dist/controls/utils/functions/index.js +3 -4
- package/dist/controls/utils/index.js +3 -4
- package/dist/controls/utils/types.d.ts +8 -5
- package/dist/{index-PfP8s0Qf.js → index-CPvYWadf.js} +1 -1
- package/dist/main.d.ts +26 -25
- package/dist/main.js +100 -98
- package/dist/{proxy-Cx6n7mT2.js → proxy-CmTphuYR.js} +1762 -1717
- package/dist/utils/converter/index.d.ts +1 -0
- package/dist/utils/converter/index.js +4 -0
- package/dist/utils/functions/functions.util.js +10 -10
- package/dist/utils/story/grey-box/grey-box.component.d.ts +9 -0
- package/dist/utils/story/grey-box/grey-box.component.js +24 -0
- package/dist/utils/story/grey-box/index.d.ts +1 -0
- package/dist/utils/story/grey-box/index.js +4 -0
- package/dist/utils/story/size-box/index.d.ts +1 -0
- package/dist/utils/story/size-box/index.js +4 -0
- package/dist/utils/story/size-box/size-box.component.d.ts +6 -0
- package/dist/utils/story/size-box/size-box.component.js +5 -0
- package/package.json +10 -18
- package/dist/_commonjsHelpers-CqEciG1_.js +0 -31
- package/dist/animations/animation-fade-grow/animation-fade-grow.component.d.ts +0 -2
- package/dist/animations/animation-fade-grow/index.d.ts +0 -1
- package/dist/animations/animation-fade-grow/index.js +0 -4
- package/dist/animations/animation-fade-scale/animation-fade-scale.component.d.ts +0 -2
- package/dist/animations/animation-fade-scale/index.d.ts +0 -1
- package/dist/animations/animation-fade-scale/index.js +0 -4
- package/dist/animations/animation-fade-slide/animation-fade-slide.component.d.ts +0 -6
- package/dist/animations/animation-fade-slide/index.d.ts +0 -1
- package/dist/animations/animation-fade-slide/index.js +0 -4
- package/dist/animations/animation-rotate/index.d.ts +0 -1
- package/dist/animations/animation-rotate/index.js +0 -4
- package/dist/assets/control-box-Dx-QKPgf.css +0 -1
- package/dist/assets/control-button-card-Cb8_vJbQ.css +0 -1
- package/dist/assets/control-button-radio-BodzD0rU.css +0 -1
- package/dist/assets/control-button-text-BbE_5ebO.css +0 -1
- package/dist/assets/control-card-image-BYT3bzTE.css +0 -1
- package/dist/assets/control-card-text-Cvv3bL2p.css +0 -1
- package/dist/assets/control-checkbox-uLtXjmYN.css +0 -1
- package/dist/assets/control-choice-BAHN-VTm.css +0 -1
- package/dist/assets/control-dropdown-DaS5KsvG.css +0 -1
- package/dist/assets/control-error-message-CKgqmo1U.css +0 -1
- package/dist/assets/control-hidden-input-BhMdNmnP.css +0 -1
- package/dist/assets/control-input-nR0XQHHp.css +0 -1
- package/dist/assets/control-label-C8pjaWEU.css +0 -1
- package/dist/assets/control-radio-Bo1rvcg2.css +0 -1
- package/dist/assets/control-radio-label-CgZ-FNj0.css +0 -1
- package/dist/assets/control-radio-text-S7MEO4a2.css +0 -1
- package/dist/assets/control-status-DPNvkGlM.css +0 -1
- package/dist/assets/control-text-n-qi7e2Y.css +0 -1
- package/dist/assets/control-textarea-B6gWlJs3.css +0 -1
- package/dist/assets/signature-EuXLu4YT.css +0 -1
- package/dist/controls/control-box/control-box.component.d.ts +0 -14
- package/dist/controls/control-box/control-box.component.js +0 -33
- package/dist/controls/control-box/index.d.ts +0 -2
- package/dist/controls/control-box/index.js +0 -4
- package/dist/controls/control-button/control-button.component.js +0 -84
- package/dist/controls/control-button/index.d.ts +0 -2
- package/dist/controls/control-button/index.js +0 -4
- package/dist/controls/control-button-card/control-button-card.component.js +0 -65
- package/dist/controls/control-button-card/index.d.ts +0 -2
- package/dist/controls/control-button-card/index.js +0 -4
- package/dist/controls/control-button-radio/control-button-radio.component.d.ts +0 -19
- package/dist/controls/control-button-radio/control-button-radio.component.js +0 -69
- package/dist/controls/control-button-radio/index.d.ts +0 -2
- package/dist/controls/control-button-radio/index.js +0 -4
- package/dist/controls/control-button-text/control-button-text.component.js +0 -87
- package/dist/controls/control-button-text/index.d.ts +0 -2
- package/dist/controls/control-button-text/index.js +0 -4
- package/dist/controls/control-card-image/control-card-image.component.d.ts +0 -8
- package/dist/controls/control-card-image/control-card-image.component.js +0 -53
- package/dist/controls/control-card-image/index.d.ts +0 -2
- package/dist/controls/control-card-image/index.js +0 -4
- package/dist/controls/control-card-text/control-card-text.component.d.ts +0 -7
- package/dist/controls/control-card-text/control-card-text.component.js +0 -48
- package/dist/controls/control-card-text/index.d.ts +0 -2
- package/dist/controls/control-card-text/index.js +0 -4
- package/dist/controls/control-checkbox/control-checkbox.component.d.ts +0 -11
- package/dist/controls/control-checkbox/control-checkbox.component.js +0 -97
- package/dist/controls/control-checkbox/index.d.ts +0 -2
- package/dist/controls/control-checkbox/index.js +0 -4
- package/dist/controls/control-choice/control-choice.component.d.ts +0 -12
- package/dist/controls/control-choice/control-choice.component.js +0 -64
- package/dist/controls/control-choice/index.d.ts +0 -2
- package/dist/controls/control-choice/index.js +0 -4
- package/dist/controls/control-dropdown/control-dropdown.component.js +0 -106
- package/dist/controls/control-dropdown/index.d.ts +0 -2
- package/dist/controls/control-dropdown/index.js +0 -4
- package/dist/controls/control-error-message/control-error-message.component.d.ts +0 -7
- package/dist/controls/control-error-message/control-error-message.component.js +0 -16
- package/dist/controls/control-error-message/index.d.ts +0 -1
- package/dist/controls/control-error-message/index.js +0 -4
- package/dist/controls/control-hidden-input/control-hidden-input.component.d.ts +0 -15
- package/dist/controls/control-hidden-input/control-hidden-input.component.js +0 -41
- package/dist/controls/control-hidden-input/index.d.ts +0 -2
- package/dist/controls/control-hidden-input/index.js +0 -4
- package/dist/controls/control-input/control-input.component.d.ts +0 -11
- package/dist/controls/control-input/control-input.component.js +0 -973
- package/dist/controls/control-input/index.d.ts +0 -2
- package/dist/controls/control-input/index.js +0 -4
- package/dist/controls/control-label/control-label.component.d.ts +0 -13
- package/dist/controls/control-label/control-label.component.js +0 -25
- package/dist/controls/control-label/index.d.ts +0 -1
- package/dist/controls/control-label/index.js +0 -4
- package/dist/controls/control-radio/control-radio.component.d.ts +0 -14
- package/dist/controls/control-radio/control-radio.component.js +0 -79
- package/dist/controls/control-radio/index.d.ts +0 -2
- package/dist/controls/control-radio/index.js +0 -4
- package/dist/controls/control-radio-label/control-radio-label.component.d.ts +0 -22
- package/dist/controls/control-radio-label/control-radio-label.component.js +0 -39
- package/dist/controls/control-radio-label/index.d.ts +0 -1
- package/dist/controls/control-radio-label/index.js +0 -4
- package/dist/controls/control-radio-text/control-radio-text.component.d.ts +0 -10
- package/dist/controls/control-radio-text/control-radio-text.component.js +0 -45
- package/dist/controls/control-radio-text/index.d.ts +0 -2
- package/dist/controls/control-radio-text/index.js +0 -4
- package/dist/controls/control-status/control-status.component.d.ts +0 -11
- package/dist/controls/control-status/control-status.component.js +0 -42
- package/dist/controls/control-status/index.d.ts +0 -1
- package/dist/controls/control-status/index.js +0 -4
- package/dist/controls/control-text/control-text.component.d.ts +0 -11
- package/dist/controls/control-text/control-text.component.js +0 -70
- package/dist/controls/control-text/index.d.ts +0 -2
- package/dist/controls/control-text/index.js +0 -4
- package/dist/controls/control-textarea/control-textarea.component.d.ts +0 -15
- package/dist/controls/control-textarea/control-textarea.component.js +0 -63
- package/dist/controls/control-textarea/index.d.ts +0 -1
- package/dist/controls/control-textarea/index.js +0 -4
- package/dist/index-D3EuHLHH.js +0 -19053
- /package/dist/animations/{hook → hooks}/index.d.ts +0 -0
- /package/dist/animations/{hook → hooks}/index.js +0 -0
- /package/dist/animations/{hook → hooks}/use-animation-lifecycle/index.d.ts +0 -0
- /package/dist/animations/{hook → hooks}/use-animation-lifecycle/index.js +0 -0
- /package/dist/animations/{hook → hooks}/use-animation-lifecycle/use-animation-lifecycle.hook.d.ts +0 -0
- /package/dist/animations/{hook → hooks}/use-animation-lifecycle/use-animation-lifecycle.hook.js +0 -0
- /package/dist/assets/{control-button-Tzg6F5Dp.css → button-Tzg6F5Dp.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
2
|
import { Base, FontAlign, FontColor, FontSize, FontWeight, TagNames, TextPreset } from '../../utils/types';
|
|
3
|
-
interface
|
|
3
|
+
interface TextFieldProps extends HTMLAttributes<HTMLElementTagNameMap>, PropsWithChildren<Base> {
|
|
4
4
|
preset?: TextPreset;
|
|
5
5
|
tag?: TagNames;
|
|
6
6
|
lined?: boolean;
|
|
@@ -9,5 +9,5 @@ interface TextProps extends HTMLAttributes<HTMLElementTagNameMap>, PropsWithChil
|
|
|
9
9
|
size?: FontSize;
|
|
10
10
|
color?: FontColor;
|
|
11
11
|
}
|
|
12
|
-
export declare const Text: ({ children, className, preset, lined, align, tag, weight, size, color, ...rest }:
|
|
12
|
+
export declare const Text: ({ children, className, preset, lined, align, tag, weight, size, color, ...rest }: TextFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Pencil as m } from "lucide-react";
|
|
3
3
|
import p from "clsx";
|
|
4
|
-
import {
|
|
5
|
-
import { baseProps as
|
|
6
|
-
import '../../assets/user-panel-DbR0J2Ct.css';const u = "_Head_svj2j_13",
|
|
4
|
+
import { ButtonText as f } from "../../controls/button-text/button-text.component.js";
|
|
5
|
+
import { baseProps as o } from "../../utils/functions/functions.util.js";
|
|
6
|
+
import '../../assets/user-panel-DbR0J2Ct.css';const u = "_Head_svj2j_13", x = "_Info_svj2j_26", t = {
|
|
7
7
|
Head: u,
|
|
8
|
-
Info:
|
|
9
|
-
}, H = ({ title:
|
|
8
|
+
Info: x
|
|
9
|
+
}, H = ({ title: a, button: i, data: n, onClick: l, ...r }) => /* @__PURE__ */ s(
|
|
10
10
|
"div",
|
|
11
11
|
{
|
|
12
|
-
"data-testid":
|
|
13
|
-
className: p(t.UserPanel,
|
|
12
|
+
"data-testid": o(r, "data-testid", "user-panel"),
|
|
13
|
+
className: p(t.UserPanel, o(r, "className")),
|
|
14
14
|
children: [
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */ e("span", { "data-testid": "user-panel-title", children:
|
|
15
|
+
/* @__PURE__ */ s("div", { className: t.Head, children: [
|
|
16
|
+
/* @__PURE__ */ e("span", { "data-testid": "user-panel-title", children: a }),
|
|
17
17
|
/* @__PURE__ */ e(
|
|
18
18
|
f,
|
|
19
19
|
{
|
|
20
|
+
text: i,
|
|
20
21
|
preventDefault: !0,
|
|
21
22
|
blurAfterClick: !0,
|
|
22
23
|
icon: /* @__PURE__ */ e(m, {}),
|
|
23
24
|
iconPosition: "right",
|
|
24
25
|
size: "md",
|
|
25
26
|
color: "text-primary",
|
|
26
|
-
onClick: l
|
|
27
|
-
children: n
|
|
27
|
+
onClick: l
|
|
28
28
|
}
|
|
29
29
|
)
|
|
30
30
|
] }),
|
|
31
|
-
/* @__PURE__ */ e("ul", { className: t.Info, children:
|
|
31
|
+
/* @__PURE__ */ e("ul", { className: t.Info, children: n.map((c, d) => /* @__PURE__ */ e("li", { children: c }, d)) })
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { State } from '../utils';
|
|
3
|
+
import { Base } from '../../utils/types';
|
|
4
|
+
export interface BoxProps extends PropsWithChildren<Base> {
|
|
5
|
+
state?: State;
|
|
6
|
+
focused?: boolean;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const Box: import('react').ForwardRefExoticComponent<BoxProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as m } from "react";
|
|
3
|
+
import a from "clsx";
|
|
4
|
+
import { baseProps as e } from "../../utils/functions/functions.util.js";
|
|
5
|
+
import '../../assets/box-5bAcfszB.css';const n = "_Box_1yg9w_1", u = "_Checked_1yg9w_15", x = "_Idle_1yg9w_21", f = "_Focused_1yg9w_25", w = "_Success_1yg9w_34", o = {
|
|
6
|
+
Box: n,
|
|
7
|
+
Checked: u,
|
|
8
|
+
Idle: x,
|
|
9
|
+
Focused: f,
|
|
10
|
+
Error: "_Error_1yg9w_30",
|
|
11
|
+
Success: w
|
|
12
|
+
}, B = m(
|
|
13
|
+
({
|
|
14
|
+
children: r,
|
|
15
|
+
state: s = "idle",
|
|
16
|
+
focused: d = !1,
|
|
17
|
+
checked: _ = !1,
|
|
18
|
+
onClick: t,
|
|
19
|
+
// Base props
|
|
20
|
+
...c
|
|
21
|
+
}, l) => /* @__PURE__ */ i(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
"data-testid": e(c, "data-testid", "box"),
|
|
25
|
+
ref: l,
|
|
26
|
+
className: a(o.Box, e(c, "className"), {
|
|
27
|
+
[o.Focused]: d,
|
|
28
|
+
[o.Checked]: _,
|
|
29
|
+
[o.Idle]: s === "idle",
|
|
30
|
+
[o.Error]: s === "error",
|
|
31
|
+
[o.Success]: s === "success"
|
|
32
|
+
}),
|
|
33
|
+
onClick: () => t?.(),
|
|
34
|
+
children: r
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
);
|
|
38
|
+
export {
|
|
39
|
+
B as Box
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Box, type BoxProps } from './box.component';
|
package/dist/controls/{control-button/control-button.component.d.ts → button/button.component.d.ts}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ControlButtonColor, ControlButtonSize, ControlButtonType } from '../utils
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ControlButtonColor, ControlButtonSize, ControlButtonType } from '../utils';
|
|
3
3
|
import { Base } from '../../utils/types';
|
|
4
|
-
export interface
|
|
4
|
+
export interface ButtonProps extends Base {
|
|
5
|
+
text: string;
|
|
5
6
|
color?: ControlButtonColor;
|
|
6
7
|
size?: ControlButtonSize;
|
|
7
8
|
type?: ControlButtonType;
|
|
@@ -15,4 +16,4 @@ export interface ControlButtonProps extends PropsWithChildren<Base> {
|
|
|
15
16
|
onFocus?: () => void;
|
|
16
17
|
onBlur?: () => void;
|
|
17
18
|
}
|
|
18
|
-
export declare const
|
|
19
|
+
export declare const Button: ({ text, color, size, type, disabled, info, fullWidth, loading, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import h from "clsx";
|
|
3
|
+
import { FadeScale as c } from "../../animations/fade-scale/fade-scale.component.js";
|
|
4
|
+
import { Loader as x } from "../../components/loader/loader.component.js";
|
|
5
|
+
import { Content as M } from "../../utils/content/content.component.js";
|
|
6
|
+
import { withControl as S, baseProps as i } from "../../utils/functions/functions.util.js";
|
|
7
|
+
import '../../assets/button-Tzg6F5Dp.css';const C = "_Button_1b52a_1", T = "_SM_1b52a_11", B = "_LG_1b52a_16", F = "_Tertiary_1b52a_16", N = "_Text_1b52a_20", P = "_MD_1b52a_26", D = "_Primary_1b52a_54", G = "_Info_1b52a_59", I = "_Secondary_1b52a_63", W = "_Loading_1b52a_82", w = "_FullWidth_1b52a_90", $ = "_Content_1b52a_94", g = "_Loader_1b52a_110", t = {
|
|
8
|
+
Button: C,
|
|
9
|
+
SM: T,
|
|
10
|
+
LG: B,
|
|
11
|
+
Tertiary: F,
|
|
12
|
+
Text: N,
|
|
13
|
+
MD: P,
|
|
14
|
+
Primary: D,
|
|
15
|
+
Info: G,
|
|
16
|
+
Secondary: I,
|
|
17
|
+
Loading: W,
|
|
18
|
+
FullWidth: w,
|
|
19
|
+
Content: $,
|
|
20
|
+
Loader: g
|
|
21
|
+
}, H = ({
|
|
22
|
+
text: _,
|
|
23
|
+
color: a = "primary",
|
|
24
|
+
size: r = "md",
|
|
25
|
+
type: d = "button",
|
|
26
|
+
disabled: m = !1,
|
|
27
|
+
info: l = "",
|
|
28
|
+
fullWidth: y = !1,
|
|
29
|
+
loading: n = !1,
|
|
30
|
+
preventDefault: u = !1,
|
|
31
|
+
blurAfterClick: b = !1,
|
|
32
|
+
onClick: f = () => {
|
|
33
|
+
},
|
|
34
|
+
onFocus: p,
|
|
35
|
+
onBlur: L,
|
|
36
|
+
...e
|
|
37
|
+
}) => /* @__PURE__ */ s(
|
|
38
|
+
"button",
|
|
39
|
+
{
|
|
40
|
+
"data-testid": i(e, "data-testid", "button"),
|
|
41
|
+
type: d,
|
|
42
|
+
disabled: m || n,
|
|
43
|
+
className: h(t.Button, i(e, "className"), {
|
|
44
|
+
[t.SM]: r === "sm",
|
|
45
|
+
[t.MD]: r === "md",
|
|
46
|
+
[t.LG]: r === "lg",
|
|
47
|
+
[t.Primary]: a === "primary",
|
|
48
|
+
[t.Secondary]: a === "secondary",
|
|
49
|
+
[t.Tertiary]: a === "tertiary",
|
|
50
|
+
[t.FullWidth]: y,
|
|
51
|
+
[t.Loading]: n
|
|
52
|
+
}),
|
|
53
|
+
onClick: S(f, { prevent: u, blur: b }),
|
|
54
|
+
onFocus: () => p?.(),
|
|
55
|
+
onBlur: () => L?.(),
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ o(c, { name: "loader", condition: n, className: t.Loader, children: /* @__PURE__ */ o(
|
|
58
|
+
x,
|
|
59
|
+
{
|
|
60
|
+
size: "xs",
|
|
61
|
+
color: (() => {
|
|
62
|
+
switch (a) {
|
|
63
|
+
case "primary":
|
|
64
|
+
return "white";
|
|
65
|
+
case "secondary":
|
|
66
|
+
return "text-secondary";
|
|
67
|
+
case "tertiary":
|
|
68
|
+
return "text-primary";
|
|
69
|
+
}
|
|
70
|
+
})()
|
|
71
|
+
}
|
|
72
|
+
) }),
|
|
73
|
+
/* @__PURE__ */ s(c, { name: "content", keepMount: !0, condition: !n, className: t.Content, children: [
|
|
74
|
+
/* @__PURE__ */ o("span", { className: t.Text, children: _ }),
|
|
75
|
+
/* @__PURE__ */ o(M, { className: t.Info, children: l })
|
|
76
|
+
] })
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
export {
|
|
81
|
+
H as Button
|
|
82
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Button, type ButtonProps } from './button.component';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
1
|
import { SvgProps } from '../../utils/svg';
|
|
3
|
-
import { Base } from '../../utils/types';
|
|
4
|
-
export interface
|
|
2
|
+
import { Base, FontSize } from '../../utils/types';
|
|
3
|
+
export interface ButtonCardProps extends Base {
|
|
4
|
+
text: string;
|
|
5
|
+
textSize?: Extract<FontSize, 'body' | 'body-small'>;
|
|
5
6
|
icon?: SvgProps['icon'];
|
|
6
7
|
iconPosition?: 'top' | 'left';
|
|
7
8
|
active?: boolean;
|
|
@@ -12,4 +13,4 @@ export interface ControlButtonCardProps extends PropsWithChildren<Base> {
|
|
|
12
13
|
onFocus?: () => void;
|
|
13
14
|
onBlur?: () => void;
|
|
14
15
|
}
|
|
15
|
-
export declare const
|
|
16
|
+
export declare const ButtonCard: (props: ButtonCardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { jsx as t, jsxs as B } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g } from "react";
|
|
3
|
+
import { useHover as v, useToggle as k } from "usehooks-ts";
|
|
4
|
+
import L from "clsx";
|
|
5
|
+
import { Box as N } from "../box/box.component.js";
|
|
6
|
+
import { Caption as h } from "../caption/caption.component.js";
|
|
7
|
+
import { baseProps as i } from "../../utils/functions/functions.util.js";
|
|
8
|
+
import { Svg as y } from "../../utils/svg/svg.component.js";
|
|
9
|
+
import '../../assets/button-card-B-nlEbJU.css';const F = "_ButtonCard_10os6_1", j = "_Icon_10os6_10", z = "_IconTop_10os6_14", D = "_Text_10os6_21", H = "_IconLeft_10os6_25", o = {
|
|
10
|
+
ButtonCard: F,
|
|
11
|
+
Icon: j,
|
|
12
|
+
IconTop: z,
|
|
13
|
+
Text: D,
|
|
14
|
+
IconLeft: H
|
|
15
|
+
}, G = (f) => {
|
|
16
|
+
const {
|
|
17
|
+
text: u,
|
|
18
|
+
textSize: m = "body",
|
|
19
|
+
icon: d = null,
|
|
20
|
+
iconPosition: e = "top",
|
|
21
|
+
active: n = !1,
|
|
22
|
+
disabled: s = !1,
|
|
23
|
+
preventDefault: p = !1,
|
|
24
|
+
blurAfterClick: _ = !1,
|
|
25
|
+
onClick: x,
|
|
26
|
+
onFocus: I,
|
|
27
|
+
onBlur: b,
|
|
28
|
+
// Base props
|
|
29
|
+
...c
|
|
30
|
+
} = f, r = g(null), T = v(r), [C, a] = k(!1);
|
|
31
|
+
return /* @__PURE__ */ t(
|
|
32
|
+
N,
|
|
33
|
+
{
|
|
34
|
+
"data-testid": i(c, "data-testid", "button-card"),
|
|
35
|
+
ref: r,
|
|
36
|
+
checked: n || T,
|
|
37
|
+
state: "idle",
|
|
38
|
+
focused: C,
|
|
39
|
+
className: i(c, "className"),
|
|
40
|
+
children: /* @__PURE__ */ B(
|
|
41
|
+
"button",
|
|
42
|
+
{
|
|
43
|
+
type: "button",
|
|
44
|
+
disabled: s,
|
|
45
|
+
className: L(o.ButtonCard, {
|
|
46
|
+
[o.IconTop]: e === "top",
|
|
47
|
+
[o.IconLeft]: e === "left"
|
|
48
|
+
}),
|
|
49
|
+
onClick: (l) => {
|
|
50
|
+
p && l.preventDefault(), _ && l.currentTarget.blur(), x?.();
|
|
51
|
+
},
|
|
52
|
+
onFocus: () => {
|
|
53
|
+
a(), I?.();
|
|
54
|
+
},
|
|
55
|
+
onBlur: () => {
|
|
56
|
+
a(), b?.();
|
|
57
|
+
},
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ t(y, { icon: d, className: o.Icon }),
|
|
60
|
+
/* @__PURE__ */ t(
|
|
61
|
+
h,
|
|
62
|
+
{
|
|
63
|
+
oneLine: !0,
|
|
64
|
+
text: u,
|
|
65
|
+
size: m,
|
|
66
|
+
checked: n,
|
|
67
|
+
color: s ? "text-secondary" : "text-primary",
|
|
68
|
+
className: o.Text
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
G as ButtonCard
|
|
79
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ButtonCard, type ButtonCardProps } from './button-card.component';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Base, FontSize } from '../../utils/types';
|
|
2
|
+
type ButtonRadioInfo = {
|
|
3
|
+
text?: string;
|
|
4
|
+
hintLeft?: string;
|
|
5
|
+
hintRight?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface ButtonRadioProps extends Base {
|
|
8
|
+
text: string;
|
|
9
|
+
textSize?: Extract<FontSize, 'body' | 'body-small'>;
|
|
10
|
+
active?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
info?: ButtonRadioInfo;
|
|
13
|
+
preventDefault?: boolean;
|
|
14
|
+
blurAfterClick?: boolean;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
onFocus?: () => void;
|
|
17
|
+
onBlur?: () => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const ButtonRadio: ({ text, textSize, active, disabled, info, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ButtonRadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as y } from "react";
|
|
3
|
+
import { useHover as N, useToggle as g } from "usehooks-ts";
|
|
4
|
+
import { Box as B } from "../box/box.component.js";
|
|
5
|
+
import { Caption as H } from "../caption/caption.component.js";
|
|
6
|
+
import { Status as C } from "../status/status.component.js";
|
|
7
|
+
import { baseProps as d } from "../../utils/functions/functions.util.js";
|
|
8
|
+
import '../../assets/button-radio-CPeNePW2.css';const T = "_ButtonRadio_iwy6t_1", b = "_Row_iwy6t_14", v = "_Wrap_iwy6t_23", W = "_Content_iwy6t_32", k = "_Text_iwy6t_42", L = "_Hint_iwy6t_50", t = {
|
|
9
|
+
ButtonRadio: T,
|
|
10
|
+
Row: b,
|
|
11
|
+
Wrap: v,
|
|
12
|
+
Content: W,
|
|
13
|
+
Text: k,
|
|
14
|
+
Hint: L
|
|
15
|
+
}, q = ({
|
|
16
|
+
text: m,
|
|
17
|
+
textSize: u = "body",
|
|
18
|
+
active: n = !1,
|
|
19
|
+
disabled: a = !1,
|
|
20
|
+
info: o,
|
|
21
|
+
preventDefault: p = !1,
|
|
22
|
+
blurAfterClick: _ = !1,
|
|
23
|
+
onClick: h,
|
|
24
|
+
onFocus: f,
|
|
25
|
+
onBlur: R,
|
|
26
|
+
// Base props
|
|
27
|
+
...i
|
|
28
|
+
}) => {
|
|
29
|
+
const r = y(null), x = N(r), [w, c] = g(!1);
|
|
30
|
+
return /* @__PURE__ */ e(
|
|
31
|
+
B,
|
|
32
|
+
{
|
|
33
|
+
"data-testid": d(i, "data-testid", "button-radio"),
|
|
34
|
+
ref: r,
|
|
35
|
+
checked: n || x,
|
|
36
|
+
state: "idle",
|
|
37
|
+
focused: w,
|
|
38
|
+
className: d(i, "className"),
|
|
39
|
+
children: /* @__PURE__ */ e(
|
|
40
|
+
"button",
|
|
41
|
+
{
|
|
42
|
+
type: "button",
|
|
43
|
+
disabled: a,
|
|
44
|
+
className: t.ButtonRadio,
|
|
45
|
+
onClick: (l) => {
|
|
46
|
+
p && l.preventDefault(), _ && l.currentTarget.blur(), h?.();
|
|
47
|
+
},
|
|
48
|
+
onFocus: () => {
|
|
49
|
+
c(), f?.();
|
|
50
|
+
},
|
|
51
|
+
onBlur: () => {
|
|
52
|
+
c(), R?.();
|
|
53
|
+
},
|
|
54
|
+
children: /* @__PURE__ */ s("div", { className: t.Wrap, children: [
|
|
55
|
+
/* @__PURE__ */ e(C, { state: n ? "success" : "idle" }),
|
|
56
|
+
/* @__PURE__ */ s("div", { className: t.Content, children: [
|
|
57
|
+
/* @__PURE__ */ s("div", { className: t.Row, children: [
|
|
58
|
+
/* @__PURE__ */ e(
|
|
59
|
+
H,
|
|
60
|
+
{
|
|
61
|
+
oneLine: !0,
|
|
62
|
+
text: m,
|
|
63
|
+
size: u,
|
|
64
|
+
checked: n,
|
|
65
|
+
color: a ? "text-secondary" : "text-primary"
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
o?.text ? /* @__PURE__ */ e("span", { className: t.Text, children: o.text }) : null
|
|
69
|
+
] }),
|
|
70
|
+
(o?.hintLeft || o?.hintRight) && /* @__PURE__ */ s("div", { className: t.Row, children: [
|
|
71
|
+
/* @__PURE__ */ e("span", { className: t.Hint, children: o.hintLeft }),
|
|
72
|
+
/* @__PURE__ */ e("span", { className: t.Hint, children: o.hintRight })
|
|
73
|
+
] })
|
|
74
|
+
] })
|
|
75
|
+
] })
|
|
76
|
+
}
|
|
77
|
+
)
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
q as ButtonRadio
|
|
83
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ButtonRadio, type ButtonRadioProps } from './button-radio.component';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
1
|
import { ControlButtonSize, ControlButtonType, ControlButtonTypeColor } from '../utils';
|
|
3
|
-
import { Base, FontWeight } from '../../utils/types';
|
|
4
2
|
import { SvgProps } from '../../utils/svg';
|
|
5
|
-
|
|
3
|
+
import { Base, FontWeight } from '../../utils/types';
|
|
4
|
+
export interface ButtonTextProps extends Base {
|
|
5
|
+
text: string;
|
|
6
6
|
color?: ControlButtonTypeColor;
|
|
7
7
|
size?: ControlButtonSize;
|
|
8
8
|
type?: ControlButtonType;
|
|
@@ -17,4 +17,4 @@ export interface ControlButtonTextProps extends PropsWithChildren<Base> {
|
|
|
17
17
|
onFocus?: () => void;
|
|
18
18
|
onBlur?: () => void;
|
|
19
19
|
}
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const ButtonText: ({ text, size, color, weight, type, icon, iconPosition, underlined, disabled, preventDefault, blurAfterClick, onClick, onFocus, onBlur, ...base }: ButtonTextProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { jsxs as S, jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
import { withControl as f, baseProps as m } from "../../utils/functions/functions.util.js";
|
|
4
|
+
import { Svg as g } from "../../utils/svg/svg.component.js";
|
|
5
|
+
import '../../assets/button-text-BKSERdhL.css';const L = "_ButtonText_14p1n_1", M = "_TextPrimary_14p1n_11", P = "_TextSecondary_14p1n_15", B = "_AccentPrimary_14p1n_19", A = "_AccentSecondary_14p1n_23", R = "_ThemePrimary_14p1n_27", C = "_ThemeSecondary_14p1n_31", b = "_Left_14p1n_35", D = "_Right_14p1n_39", G = "_Icon_14p1n_43", I = "_SM_14p1n_47", N = "_MD_14p1n_52", U = "_LG_14p1n_57", j = "_Content_14p1n_62", v = "_Light_14p1n_81", k = "_Regular_14p1n_85", F = "_Medium_14p1n_89", $ = "_Bold_14p1n_93", q = "_Underlined_14p1n_97", t = {
|
|
6
|
+
ButtonText: L,
|
|
7
|
+
TextPrimary: M,
|
|
8
|
+
TextSecondary: P,
|
|
9
|
+
AccentPrimary: B,
|
|
10
|
+
AccentSecondary: A,
|
|
11
|
+
ThemePrimary: R,
|
|
12
|
+
ThemeSecondary: C,
|
|
13
|
+
Left: b,
|
|
14
|
+
Right: D,
|
|
15
|
+
Icon: G,
|
|
16
|
+
SM: I,
|
|
17
|
+
MD: N,
|
|
18
|
+
LG: U,
|
|
19
|
+
Content: j,
|
|
20
|
+
Light: v,
|
|
21
|
+
Regular: k,
|
|
22
|
+
Medium: F,
|
|
23
|
+
Bold: $,
|
|
24
|
+
Underlined: q
|
|
25
|
+
}, O = ({
|
|
26
|
+
text: s,
|
|
27
|
+
size: r = "md",
|
|
28
|
+
color: e = "text-primary",
|
|
29
|
+
weight: n = "medium",
|
|
30
|
+
type: d = "button",
|
|
31
|
+
icon: i = null,
|
|
32
|
+
iconPosition: c = "left",
|
|
33
|
+
underlined: p = !1,
|
|
34
|
+
disabled: y = !1,
|
|
35
|
+
preventDefault: l = !1,
|
|
36
|
+
blurAfterClick: u = !1,
|
|
37
|
+
onClick: x = () => {
|
|
38
|
+
},
|
|
39
|
+
onFocus: T = () => {
|
|
40
|
+
},
|
|
41
|
+
onBlur: h = () => {
|
|
42
|
+
},
|
|
43
|
+
// Base props
|
|
44
|
+
...o
|
|
45
|
+
}) => /* @__PURE__ */ S(
|
|
46
|
+
"button",
|
|
47
|
+
{
|
|
48
|
+
"data-testid": m(o, "data-testid", "button-text"),
|
|
49
|
+
type: d,
|
|
50
|
+
disabled: y,
|
|
51
|
+
className: a(t.ButtonText, m(o, "className"), {
|
|
52
|
+
[t.Left]: c === "left",
|
|
53
|
+
[t.Right]: c === "right",
|
|
54
|
+
[t.SM]: r === "sm",
|
|
55
|
+
[t.MD]: r === "md",
|
|
56
|
+
[t.LG]: r === "lg",
|
|
57
|
+
[t.TextPrimary]: e === "text-primary",
|
|
58
|
+
[t.TextSecondary]: e === "text-secondary",
|
|
59
|
+
[t.AccentPrimary]: e === "accent-primary",
|
|
60
|
+
[t.AccentSecondary]: e === "accent-secondary",
|
|
61
|
+
[t.ThemePrimary]: e === "theme-primary",
|
|
62
|
+
[t.ThemeSecondary]: e === "theme-secondary"
|
|
63
|
+
}),
|
|
64
|
+
onClick: f(x, { prevent: l, blur: u }),
|
|
65
|
+
onFocus: () => T(),
|
|
66
|
+
onBlur: () => h(),
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ _(g, { icon: i, className: t.Icon }),
|
|
69
|
+
/* @__PURE__ */ _(
|
|
70
|
+
"span",
|
|
71
|
+
{
|
|
72
|
+
className: a(t.Content, {
|
|
73
|
+
[t.Light]: n === "light",
|
|
74
|
+
[t.Regular]: n === "regular",
|
|
75
|
+
[t.Medium]: n === "medium",
|
|
76
|
+
[t.Bold]: n === "bold",
|
|
77
|
+
[t.Underlined]: p
|
|
78
|
+
}),
|
|
79
|
+
children: s
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
export {
|
|
86
|
+
O as ButtonText
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ButtonText, type ButtonTextProps } from './button-text.component';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ControlCaptionColor, ControlCaptionSize } from '../utils';
|
|
2
|
+
import { Base } from '../../utils/types';
|
|
3
|
+
export interface CaptionProps extends Base {
|
|
4
|
+
text: string;
|
|
5
|
+
size?: ControlCaptionSize;
|
|
6
|
+
color?: ControlCaptionColor;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
oneLine?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const Caption: ({ text, size, color, checked, oneLine, ...base }: CaptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import i from "clsx";
|
|
3
|
+
import { Content as _ } from "../../utils/content/content.component.js";
|
|
4
|
+
import { baseProps as o } from "../../utils/functions/functions.util.js";
|
|
5
|
+
import '../../assets/caption-B28SGRY1.css';const m = "_Caption_cifud_1", s = "_TextPrimary_cifud_8", l = "_Content_cifud_8", x = "_TextSecondary_cifud_12", f = "_AccentPrimary_cifud_16", p = "_AccentSecondary_cifud_20", B = "_BodyExtraSmall_cifud_24", S = "_BodySmall_cifud_29", C = "_Body_cifud_24", u = "_BodyLarge_cifud_39", P = "_OneLine_cifud_44", A = "_Checked_cifud_49", t = {
|
|
6
|
+
Caption: m,
|
|
7
|
+
TextPrimary: s,
|
|
8
|
+
Content: l,
|
|
9
|
+
TextSecondary: x,
|
|
10
|
+
AccentPrimary: f,
|
|
11
|
+
AccentSecondary: p,
|
|
12
|
+
BodyExtraSmall: B,
|
|
13
|
+
BodySmall: S,
|
|
14
|
+
Body: C,
|
|
15
|
+
BodyLarge: u,
|
|
16
|
+
OneLine: P,
|
|
17
|
+
Checked: A
|
|
18
|
+
}, b = ({
|
|
19
|
+
// Caption props
|
|
20
|
+
text: d,
|
|
21
|
+
size: e = "body",
|
|
22
|
+
color: c = "text-primary",
|
|
23
|
+
checked: r = !1,
|
|
24
|
+
oneLine: y = !1,
|
|
25
|
+
// Base props
|
|
26
|
+
...a
|
|
27
|
+
}) => /* @__PURE__ */ n(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
"data-testid": o(a, "data-testid", "caption"),
|
|
31
|
+
className: i(t.Caption, o(a, "className"), {
|
|
32
|
+
[t.TextPrimary]: c === "text-primary",
|
|
33
|
+
[t.TextSecondary]: c === "text-secondary",
|
|
34
|
+
[t.AccentPrimary]: c === "accent-primary",
|
|
35
|
+
[t.AccentSecondary]: c === "accent-secondary",
|
|
36
|
+
[t.BodyExtraSmall]: e === "body-extra-small",
|
|
37
|
+
[t.BodySmall]: e === "body-small",
|
|
38
|
+
[t.Body]: e === "body",
|
|
39
|
+
[t.BodyLarge]: e === "body-large",
|
|
40
|
+
[t.OneLine]: y,
|
|
41
|
+
[t.Checked]: r
|
|
42
|
+
}),
|
|
43
|
+
children: /* @__PURE__ */ n(_, { tag: "span", className: t.Content, children: d })
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
export {
|
|
47
|
+
b as Caption
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Caption, type CaptionProps } from './caption.component';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChoiceProps } from '../choice';
|
|
2
|
+
import { ChoiceValue, Interactive, RadioChoice } from '../utils';
|
|
3
|
+
import { Base, FontSize } from '../../utils/types';
|
|
4
|
+
export interface CardImageProps extends Base, Interactive<ChoiceValue> {
|
|
5
|
+
sprite: string;
|
|
6
|
+
choices: RadioChoice[];
|
|
7
|
+
iconSize?: ChoiceProps['size'];
|
|
8
|
+
textSize?: Extract<FontSize, 'body' | 'body-small'>;
|
|
9
|
+
}
|
|
10
|
+
export declare const CardImage: ({ id, value, disabled, state, onChange, onFocus, onBlur, sprite, choices, iconSize, textSize, ...base }: CardImageProps) => import("react/jsx-runtime").JSX.Element;
|