@arthurzakharov/ui-kit 1.5.6 → 1.5.8
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/assets/box-DOatBkTY.css +1 -0
- package/dist/assets/{main-Dz2hrn4n.css → main-BrKLCio0.css} +1 -1
- package/dist/components/accordion-table/accordion-table.component.js +14 -12
- package/dist/components/bottom-bar/bottom-bar.component.js +5 -3
- package/dist/components/dialog-article/dialog-article.component.js +8 -6
- package/dist/components/message-block/index.d.ts +1 -1
- package/dist/components/message-block/message-block.component.d.ts +1 -2
- package/dist/components/sidebar/sidebar.component.js +24 -20
- package/dist/components/signature/signature.component.js +6 -5
- package/dist/components/user-panel/user-panel.component.js +18 -15
- package/dist/controls/{button → buttons/button}/button.component.d.ts +2 -2
- package/dist/controls/{button → buttons/button}/button.component.js +5 -5
- package/dist/controls/{button-card → buttons/button-card}/button-card.component.d.ts +2 -2
- package/dist/controls/{button-card → buttons/button-card}/button-card.component.js +12 -11
- package/dist/controls/{button-radio → buttons/button-radio}/button-radio.component.d.ts +1 -1
- package/dist/controls/{button-radio → buttons/button-radio}/button-radio.component.js +17 -15
- package/dist/controls/{button-text → buttons/button-text}/button-text.component.d.ts +3 -3
- package/dist/controls/{button-text → buttons/button-text}/button-text.component.js +3 -3
- package/dist/controls/buttons/index.d.ts +4 -0
- package/dist/controls/buttons/index.js +10 -0
- package/dist/controls/index.d.ts +3 -21
- package/dist/controls/index.js +48 -48
- package/dist/controls/{card-image → interactives/card-image}/card-image.component.d.ts +3 -3
- package/dist/controls/{card-image → interactives/card-image}/card-image.component.js +23 -21
- package/dist/controls/{card-text → interactives/card-text}/card-text.component.d.ts +3 -3
- package/dist/controls/interactives/card-text/card-text.component.js +77 -0
- package/dist/controls/{checkbox → interactives/checkbox}/checkbox.component.d.ts +3 -3
- package/dist/controls/{checkbox → interactives/checkbox}/checkbox.component.js +19 -17
- package/dist/controls/{dropdown → interactives/dropdown}/dropdown.component.d.ts +2 -2
- package/dist/controls/{dropdown → interactives/dropdown}/dropdown.component.js +9 -9
- package/dist/controls/interactives/index.d.ts +8 -0
- package/dist/controls/interactives/index.js +18 -0
- package/dist/controls/{input → interactives/input}/input.component.d.ts +2 -2
- package/dist/controls/{input → interactives/input}/input.component.js +3 -3
- package/dist/controls/{radio → interactives/radio}/radio.component.d.ts +3 -4
- package/dist/controls/{radio → interactives/radio}/radio.component.js +24 -21
- package/dist/controls/{text-area → interactives/text-area}/text-area.component.d.ts +2 -2
- package/dist/controls/interactives/text-area/text-area.component.js +65 -0
- package/dist/controls/{text-field → interactives/text-field}/text-field.component.d.ts +2 -2
- package/dist/controls/{text-field → interactives/text-field}/text-field.component.js +29 -27
- package/dist/controls/{box → primitives/box}/box.component.d.ts +2 -2
- package/dist/controls/primitives/box/box.component.js +41 -0
- package/dist/controls/{caption → primitives/caption}/caption.component.d.ts +2 -2
- package/dist/controls/{caption → primitives/caption}/caption.component.js +3 -3
- package/dist/controls/{choice → primitives/choice}/choice.component.d.ts +2 -2
- package/dist/controls/{choice → primitives/choice}/choice.component.js +2 -2
- package/dist/controls/{error-message → primitives/error-message}/error-message.component.d.ts +1 -1
- package/dist/controls/{error-message → primitives/error-message}/error-message.component.js +3 -3
- package/dist/controls/{hidden-input → primitives/hidden-input}/hidden-input.component.d.ts +2 -2
- package/dist/controls/{hidden-input → primitives/hidden-input}/hidden-input.component.js +2 -2
- package/dist/controls/primitives/index.d.ts +8 -0
- package/dist/controls/primitives/index.js +18 -0
- package/dist/controls/{label → primitives/label}/label.component.d.ts +2 -2
- package/dist/controls/{label → primitives/label}/label.component.js +3 -3
- package/dist/controls/{radio-label → primitives/radio-label}/radio-label.component.d.ts +2 -2
- package/dist/controls/{radio-label → primitives/radio-label}/radio-label.component.js +2 -2
- package/dist/controls/{status → primitives/status}/status.component.d.ts +2 -2
- package/dist/controls/{status → primitives/status}/status.component.js +2 -2
- package/dist/controls/{hooks → utils/hooks}/use-choice/use-choice.hook.d.ts +1 -1
- package/dist/controls/{hooks → utils/hooks}/use-control-interaction/use-control-interaction.hook.d.ts +1 -1
- package/dist/controls/utils/index.d.ts +1 -0
- package/dist/controls/utils/index.js +8 -4
- package/dist/main.d.ts +21 -21
- package/dist/main.js +102 -101
- package/package.json +8 -8
- package/dist/assets/box-5bAcfszB.css +0 -1
- package/dist/controls/box/box.component.js +0 -40
- package/dist/controls/card-text/card-text.component.js +0 -75
- package/dist/controls/text-area/text-area.component.js +0 -62
- /package/dist/controls/{button → buttons/button}/index.d.ts +0 -0
- /package/dist/controls/{button → buttons/button}/index.js +0 -0
- /package/dist/controls/{button-card → buttons/button-card}/index.d.ts +0 -0
- /package/dist/controls/{button-card → buttons/button-card}/index.js +0 -0
- /package/dist/controls/{button-radio → buttons/button-radio}/index.d.ts +0 -0
- /package/dist/controls/{button-radio → buttons/button-radio}/index.js +0 -0
- /package/dist/controls/{button-text → buttons/button-text}/index.d.ts +0 -0
- /package/dist/controls/{button-text → buttons/button-text}/index.js +0 -0
- /package/dist/controls/{card-image → interactives/card-image}/index.d.ts +0 -0
- /package/dist/controls/{card-image → interactives/card-image}/index.js +0 -0
- /package/dist/controls/{card-text → interactives/card-text}/index.d.ts +0 -0
- /package/dist/controls/{card-text → interactives/card-text}/index.js +0 -0
- /package/dist/controls/{checkbox → interactives/checkbox}/index.d.ts +0 -0
- /package/dist/controls/{checkbox → interactives/checkbox}/index.js +0 -0
- /package/dist/controls/{dropdown → interactives/dropdown}/index.d.ts +0 -0
- /package/dist/controls/{dropdown → interactives/dropdown}/index.js +0 -0
- /package/dist/controls/{input → interactives/input}/index.d.ts +0 -0
- /package/dist/controls/{input → interactives/input}/index.js +0 -0
- /package/dist/controls/{input → interactives/input}/input.utils.d.ts +0 -0
- /package/dist/controls/{input → interactives/input}/input.utils.js +0 -0
- /package/dist/controls/{radio → interactives/radio}/index.d.ts +0 -0
- /package/dist/controls/{radio → interactives/radio}/index.js +0 -0
- /package/dist/controls/{text-area → interactives/text-area}/index.d.ts +0 -0
- /package/dist/controls/{text-area → interactives/text-area}/index.js +0 -0
- /package/dist/controls/{text-field → interactives/text-field}/index.d.ts +0 -0
- /package/dist/controls/{text-field → interactives/text-field}/index.js +0 -0
- /package/dist/controls/{box → primitives/box}/index.d.ts +0 -0
- /package/dist/controls/{box → primitives/box}/index.js +0 -0
- /package/dist/controls/{caption → primitives/caption}/index.d.ts +0 -0
- /package/dist/controls/{caption → primitives/caption}/index.js +0 -0
- /package/dist/controls/{choice → primitives/choice}/index.d.ts +0 -0
- /package/dist/controls/{choice → primitives/choice}/index.js +0 -0
- /package/dist/controls/{error-message → primitives/error-message}/index.d.ts +0 -0
- /package/dist/controls/{error-message → primitives/error-message}/index.js +0 -0
- /package/dist/controls/{hidden-input → primitives/hidden-input}/index.d.ts +0 -0
- /package/dist/controls/{hidden-input → primitives/hidden-input}/index.js +0 -0
- /package/dist/controls/{label → primitives/label}/index.d.ts +0 -0
- /package/dist/controls/{label → primitives/label}/index.js +0 -0
- /package/dist/controls/{radio-label → primitives/radio-label}/index.d.ts +0 -0
- /package/dist/controls/{radio-label → primitives/radio-label}/index.js +0 -0
- /package/dist/controls/{status → primitives/status}/index.d.ts +0 -0
- /package/dist/controls/{status → primitives/status}/index.js +0 -0
- /package/dist/controls/{hooks → utils/hooks}/index.d.ts +0 -0
- /package/dist/controls/{hooks → utils/hooks}/index.js +0 -0
- /package/dist/controls/{hooks → utils/hooks}/use-choice/index.d.ts +0 -0
- /package/dist/controls/{hooks → utils/hooks}/use-choice/index.js +0 -0
- /package/dist/controls/{hooks → utils/hooks}/use-choice/use-choice.hook.js +0 -0
- /package/dist/controls/{hooks → utils/hooks}/use-control-interaction/index.d.ts +0 -0
- /package/dist/controls/{hooks → utils/hooks}/use-control-interaction/index.js +0 -0
- /package/dist/controls/{hooks → utils/hooks}/use-control-interaction/use-control-interaction.hook.js +0 -0
package/dist/main.js
CHANGED
|
@@ -1,102 +1,103 @@
|
|
|
1
|
-
import { FadeGrow as
|
|
2
|
-
import { FadeScale as
|
|
3
|
-
import { FadeSlide as
|
|
4
|
-
import { Rotate as
|
|
5
|
-
import
|
|
6
|
-
import { Button as
|
|
7
|
-
import { ButtonCard as
|
|
8
|
-
import { ButtonRadio as
|
|
9
|
-
import { ButtonText as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
1
|
+
import { FadeGrow as t } from "./animations/fade-grow/fade-grow.component.js";
|
|
2
|
+
import { FadeScale as m } from "./animations/fade-scale/fade-scale.component.js";
|
|
3
|
+
import { FadeSlide as f } from "./animations/fade-slide/fade-slide.component.js";
|
|
4
|
+
import { Rotate as n } from "./animations/rotate/rotate.component.js";
|
|
5
|
+
import "usehooks-ts";
|
|
6
|
+
import { Button as d } from "./controls/buttons/button/button.component.js";
|
|
7
|
+
import { ButtonCard as s } from "./controls/buttons/button-card/button-card.component.js";
|
|
8
|
+
import { ButtonRadio as u } from "./controls/buttons/button-radio/button-radio.component.js";
|
|
9
|
+
import { ButtonText as B } from "./controls/buttons/button-text/button-text.component.js";
|
|
10
|
+
import { CardImage as F } from "./controls/interactives/card-image/card-image.component.js";
|
|
11
|
+
import { CardText as L } from "./controls/interactives/card-text/card-text.component.js";
|
|
12
|
+
import { Checkbox as T } from "./controls/interactives/checkbox/checkbox.component.js";
|
|
13
|
+
import { Dropdown as R } from "./controls/interactives/dropdown/dropdown.component.js";
|
|
14
|
+
import { Input as D } from "./controls/interactives/input/input.component.js";
|
|
15
|
+
import { Radio as P } from "./controls/interactives/radio/radio.component.js";
|
|
16
|
+
import { TextArea as w } from "./controls/interactives/text-area/text-area.component.js";
|
|
17
|
+
import { TextField as k } from "./controls/interactives/text-field/text-field.component.js";
|
|
18
|
+
import { Box as H } from "./controls/primitives/box/box.component.js";
|
|
19
|
+
import { Caption as G } from "./controls/primitives/caption/caption.component.js";
|
|
20
|
+
import { Choice as U } from "./controls/primitives/choice/choice.component.js";
|
|
21
|
+
import { ErrorMessage as j } from "./controls/primitives/error-message/error-message.component.js";
|
|
22
|
+
import { HiddenInput as z } from "./controls/primitives/hidden-input/hidden-input.component.js";
|
|
23
|
+
import { Label as K } from "./controls/primitives/label/label.component.js";
|
|
24
|
+
import { RadioLabel as Q } from "./controls/primitives/radio-label/radio-label.component.js";
|
|
25
|
+
import { Status as X } from "./controls/primitives/status/status.component.js";
|
|
26
|
+
import { AccordionTable as Z } from "./components/accordion-table/accordion-table.component.js";
|
|
27
|
+
import { BottomBar as $ } from "./components/bottom-bar/bottom-bar.component.js";
|
|
28
|
+
import { Certifications as ro } from "./components/certifications/certifications.component.js";
|
|
29
|
+
import { DataProtectedLabel as to } from "./components/data-protected-label/data-protected-label.component.js";
|
|
30
|
+
import { Dialog as mo } from "./components/dialog/dialog.component.js";
|
|
31
|
+
import { DialogArticle as fo } from "./components/dialog-article/dialog-article.component.js";
|
|
32
|
+
import { Expenses as no } from "./components/expenses/expenses.component.js";
|
|
33
|
+
import { Footer as lo } from "./components/footer/footer.component.js";
|
|
34
|
+
import { FormRow as co } from "./components/form-row/form-row.component.js";
|
|
35
|
+
import { Header as go } from "./components/header/header.component.js";
|
|
36
|
+
import { InfoPanel as Co } from "./components/info-panel/info-panel.component.js";
|
|
37
|
+
import { Information as bo } from "./components/information/information.component.js";
|
|
38
|
+
import { Layout as So } from "./components/layout/layout.component.js";
|
|
39
|
+
import { Line as Io } from "./components/line/line.component.js";
|
|
40
|
+
import { Loader as Ao } from "./components/loader/loader.component.js";
|
|
41
|
+
import { MainAttachment as Mo } from "./components/main-attachment/main-attachment.component.js";
|
|
42
|
+
import { Message as ho } from "./components/message/message.component.js";
|
|
43
|
+
import { MessageBlock as yo } from "./components/message-block/message-block.component.js";
|
|
44
|
+
import { NotFound as Eo } from "./components/not-found/not-found.component.js";
|
|
45
|
+
import { Payment as vo } from "./components/payment/payment.component.js";
|
|
46
|
+
import { Sidebar as No } from "./components/sidebar/sidebar.component.js";
|
|
47
|
+
import { Signature as Wo } from "./components/signature/signature.component.js";
|
|
48
|
+
import { Svg as qo } from "./utils/svg/svg.component.js";
|
|
49
|
+
import { Text as Jo } from "./components/text/text.component.js";
|
|
50
|
+
import { UserPanel as Oo } from "./components/user-panel/user-panel.component.js";
|
|
51
|
+
import { Warranty as Vo } from "./components/warranty/warranty.component.js";
|
|
52
|
+
import './assets/main-BrKLCio0.css';export {
|
|
53
|
+
Z as AccordionTable,
|
|
54
|
+
$ as BottomBar,
|
|
55
|
+
H as Box,
|
|
56
|
+
d as Button,
|
|
57
|
+
s as ButtonCard,
|
|
58
|
+
u as ButtonRadio,
|
|
59
|
+
B as ButtonText,
|
|
60
|
+
G as Caption,
|
|
61
|
+
F as CardImage,
|
|
62
|
+
L as CardText,
|
|
63
|
+
ro as Certifications,
|
|
64
|
+
T as Checkbox,
|
|
65
|
+
U as Choice,
|
|
66
|
+
to as DataProtectedLabel,
|
|
67
|
+
mo as Dialog,
|
|
68
|
+
fo as DialogArticle,
|
|
69
|
+
R as Dropdown,
|
|
70
|
+
j as ErrorMessage,
|
|
71
|
+
no as Expenses,
|
|
72
|
+
t as FadeGrow,
|
|
73
|
+
m as FadeScale,
|
|
74
|
+
f as FadeSlide,
|
|
75
|
+
lo as Footer,
|
|
76
|
+
co as FormRow,
|
|
77
|
+
go as Header,
|
|
78
|
+
z as HiddenInput,
|
|
79
|
+
Co as InfoPanel,
|
|
80
|
+
bo as Information,
|
|
81
|
+
D as Input,
|
|
82
|
+
K as Label,
|
|
83
|
+
So as Layout,
|
|
84
|
+
Io as Line,
|
|
85
|
+
Ao as Loader,
|
|
86
|
+
Mo as MainAttachment,
|
|
87
|
+
ho as Message,
|
|
88
|
+
yo as MessageBlock,
|
|
89
|
+
Eo as NotFound,
|
|
90
|
+
vo as Payment,
|
|
91
|
+
P as Radio,
|
|
92
|
+
Q as RadioLabel,
|
|
93
|
+
n as Rotate,
|
|
94
|
+
No as Sidebar,
|
|
95
|
+
Wo as Signature,
|
|
96
|
+
X as Status,
|
|
97
|
+
qo as Svg,
|
|
98
|
+
Jo as Text,
|
|
99
|
+
w as TextArea,
|
|
100
|
+
k as TextField,
|
|
101
|
+
Oo as UserPanel,
|
|
102
|
+
Vo as Warranty
|
|
102
103
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arthurzakharov/ui-kit",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.5.
|
|
4
|
+
"version": "1.5.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"usehooks-ts": "^3.1.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@chromatic-com/storybook": "^5.0.
|
|
42
|
+
"@chromatic-com/storybook": "^5.0.2",
|
|
43
43
|
"@eslint/js": "^9.39.2",
|
|
44
|
-
"@storybook/addon-a11y": "^10.
|
|
45
|
-
"@storybook/addon-docs": "^10.
|
|
46
|
-
"@storybook/addon-vitest": "^10.
|
|
47
|
-
"@storybook/react-vite": "^10.
|
|
44
|
+
"@storybook/addon-a11y": "^10.3.3",
|
|
45
|
+
"@storybook/addon-docs": "^10.3.3",
|
|
46
|
+
"@storybook/addon-vitest": "^10.3.3",
|
|
47
|
+
"@storybook/react-vite": "^10.3.3",
|
|
48
48
|
"@testing-library/react": "^15.0.7",
|
|
49
49
|
"@types/node": "^24.1.0",
|
|
50
50
|
"@types/react": "^18.3.27",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"eslint": "^9.39.2",
|
|
61
61
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
62
62
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
63
|
-
"eslint-plugin-storybook": "^10.
|
|
63
|
+
"eslint-plugin-storybook": "^10.3.3",
|
|
64
64
|
"glob": "^13.0.6",
|
|
65
65
|
"globals": "^17.0.0",
|
|
66
66
|
"jsdom": "^27.4.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"react": "^18.3.1",
|
|
72
72
|
"react-dom": "^18.3.1",
|
|
73
73
|
"react-signature-canvas": "^1.0.7",
|
|
74
|
-
"storybook": "^10.
|
|
74
|
+
"storybook": "^10.3.3",
|
|
75
75
|
"typescript": "^5.9.3",
|
|
76
76
|
"typescript-eslint": "^8.52.0",
|
|
77
77
|
"usehooks-ts": "^3.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Box_1yg9w_1{flex-basis:100%;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;align-self:stretch;border-radius:10px;border-width:1px;border-style:solid;background-color:transparent;transition:border-color .15s ease-out}._Checked_1yg9w_15{border-color:var(--rm-ui-color-action);outline:2px solid var(--rm-ui-color-action);outline-offset:-2px}._Idle_1yg9w_21{border-color:var(--rm-ui-grey-300)}._Focused_1yg9w_25{border-color:var(--rm-ui-color-focus);border-color:-webkit-focus-ring-color}._Error_1yg9w_30{border-color:var(--rm-ui-color-error)}._Success_1yg9w_34{border-color:var(--rm-ui-color-success)}
|
|
@@ -1,40 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as w } from "react/jsx-runtime";
|
|
2
|
-
import I from "clsx";
|
|
3
|
-
import { Box as j } from "../box/box.component.js";
|
|
4
|
-
import { Caption as y } from "../caption/caption.component.js";
|
|
5
|
-
import { Choice as z } from "../choice/choice.component.js";
|
|
6
|
-
import { HiddenInput as B } from "../hidden-input/hidden-input.component.js";
|
|
7
|
-
import { RadioLabel as $ } from "../radio-label/radio-label.component.js";
|
|
8
|
-
import { useChoice as F } from "../hooks/use-choice/use-choice.hook.js";
|
|
9
|
-
import "usehooks-ts";
|
|
10
|
-
import { getChoiceId as H } from "../utils/functions/functions.util.js";
|
|
11
|
-
import { baseProps as p } from "../../utils/functions/functions.util.js";
|
|
12
|
-
import '../../assets/card-text-sR2uSJyo.css';const P = "_CardText_1uv8w_1", R = "_Label_1uv8w_9", q = "_Choice_1uv8w_24", i = {
|
|
13
|
-
CardText: P,
|
|
14
|
-
Label: R,
|
|
15
|
-
Choice: q
|
|
16
|
-
}, W = ({
|
|
17
|
-
// Interactive props
|
|
18
|
-
id: t,
|
|
19
|
-
value: s,
|
|
20
|
-
disabled: m = !1,
|
|
21
|
-
state: C = "idle",
|
|
22
|
-
onChange: x,
|
|
23
|
-
onBlur: h,
|
|
24
|
-
onFocus: u,
|
|
25
|
-
// CardText props
|
|
26
|
-
choices: f,
|
|
27
|
-
iconSize: _ = "md",
|
|
28
|
-
textSize: v = "body",
|
|
29
|
-
// Base props
|
|
30
|
-
...n
|
|
31
|
-
}) => {
|
|
32
|
-
const { type: l, onChoiceChange: b } = F(s, t, x);
|
|
33
|
-
return /* @__PURE__ */ o(
|
|
34
|
-
"div",
|
|
35
|
-
{
|
|
36
|
-
"data-testid": p(n, "data-testid", "card-text"),
|
|
37
|
-
className: I(i.CardText, p(n, "className")),
|
|
38
|
-
children: f.map((e, L, T) => {
|
|
39
|
-
const a = H(t, e.value, L);
|
|
40
|
-
return /* @__PURE__ */ o($, { id: a, value: s, state: C, choice: e, choices: T, children: ({ focused: c, hovered: N, checked: r, state: d }) => /* @__PURE__ */ o(j, { state: d, checked: r, focused: c, children: /* @__PURE__ */ w("div", { className: i.Label, children: [
|
|
41
|
-
/* @__PURE__ */ o(
|
|
42
|
-
B,
|
|
43
|
-
{
|
|
44
|
-
type: l,
|
|
45
|
-
id: a,
|
|
46
|
-
name: t,
|
|
47
|
-
value: e.value,
|
|
48
|
-
checked: r,
|
|
49
|
-
disabled: m,
|
|
50
|
-
onChange: (A, g) => b(e.value, g),
|
|
51
|
-
onFocus: () => u?.(t),
|
|
52
|
-
onBlur: () => h?.(t)
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
/* @__PURE__ */ o("div", { className: i.Choice, children: /* @__PURE__ */ o(
|
|
56
|
-
z,
|
|
57
|
-
{
|
|
58
|
-
type: l,
|
|
59
|
-
size: _,
|
|
60
|
-
state: d,
|
|
61
|
-
checked: r,
|
|
62
|
-
focused: c,
|
|
63
|
-
hovered: N,
|
|
64
|
-
disabled: m
|
|
65
|
-
}
|
|
66
|
-
) }),
|
|
67
|
-
/* @__PURE__ */ o(y, { text: e.label, size: v, checked: r })
|
|
68
|
-
] }) }) }, a);
|
|
69
|
-
})
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
W as CardText
|
|
75
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { jsxs as M, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import N from "clsx";
|
|
3
|
-
import { FadeSlide as _ } from "../../animations/fade-slide/fade-slide.component.js";
|
|
4
|
-
import { Box as I } from "../box/box.component.js";
|
|
5
|
-
import { ErrorMessage as C } from "../error-message/error-message.component.js";
|
|
6
|
-
import { useControlInteraction as k } from "../hooks/use-control-interaction/use-control-interaction.hook.js";
|
|
7
|
-
import { baseProps as t } from "../../utils/functions/functions.util.js";
|
|
8
|
-
import '../../assets/text-area-Dgc2jHSx.css';const B = "_Input_11gck_6", F = "_ErrorMessage_11gck_28", a = {
|
|
9
|
-
Input: B,
|
|
10
|
-
ErrorMessage: F
|
|
11
|
-
}, $ = ({
|
|
12
|
-
// Interactive props
|
|
13
|
-
id: o,
|
|
14
|
-
value: m,
|
|
15
|
-
disabled: s = !1,
|
|
16
|
-
state: n = "idle",
|
|
17
|
-
onChange: i,
|
|
18
|
-
onFocus: l,
|
|
19
|
-
onBlur: d,
|
|
20
|
-
// TextArea props
|
|
21
|
-
placeholder: p = "",
|
|
22
|
-
rows: u = 5,
|
|
23
|
-
message: c = "",
|
|
24
|
-
// Base props
|
|
25
|
-
...r
|
|
26
|
-
}) => {
|
|
27
|
-
const { focused: g, emitChange: x, handleFocus: f, handleBlur: h } = k({
|
|
28
|
-
id: o,
|
|
29
|
-
disabled: s,
|
|
30
|
-
onChange: i,
|
|
31
|
-
onFocus: l,
|
|
32
|
-
onBlur: d
|
|
33
|
-
});
|
|
34
|
-
return /* @__PURE__ */ M(
|
|
35
|
-
"div",
|
|
36
|
-
{
|
|
37
|
-
"data-testid": t(r, "data-testid", "textarea"),
|
|
38
|
-
className: N(a.Container, t(r, "className")),
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ e(I, { state: n, focused: g, className: t(r, "className"), children: /* @__PURE__ */ e(
|
|
41
|
-
"textarea",
|
|
42
|
-
{
|
|
43
|
-
"data-testid": "textarea-input",
|
|
44
|
-
disabled: s,
|
|
45
|
-
id: o,
|
|
46
|
-
rows: u,
|
|
47
|
-
placeholder: p,
|
|
48
|
-
value: m,
|
|
49
|
-
className: a.Input,
|
|
50
|
-
onChange: (E) => x(E.target.value, "keyboard"),
|
|
51
|
-
onFocus: () => f(),
|
|
52
|
-
onBlur: () => h()
|
|
53
|
-
}
|
|
54
|
-
) }),
|
|
55
|
-
/* @__PURE__ */ e(_, { name: "text-message", condition: n === "error" && !!c, children: /* @__PURE__ */ e(C, { "data-testid": "textarea-error-message", text: c, className: a.ErrorMessage }) })
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
export {
|
|
61
|
-
$ as TextArea
|
|
62
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/controls/{hooks → utils/hooks}/use-control-interaction/use-control-interaction.hook.js
RENAMED
|
File without changes
|