@arthurzakharov/ui-kit 1.2.4 → 1.2.6

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.
Files changed (65) hide show
  1. package/dist/assets/footer-Dt0rYt73.css +1 -0
  2. package/dist/assets/message-CgGyIv5e.css +1 -0
  3. package/dist/assets/not-found-ColZD3Vb.css +1 -0
  4. package/dist/assets/signature-CLmBTe_C.css +1 -0
  5. package/dist/components/certifications/certifications.component.d.ts +2 -6
  6. package/dist/components/certifications/certifications.component.js +44 -13
  7. package/dist/components/certifications/certifications.types.d.ts +6 -0
  8. package/dist/components/certifications/certifications.types.js +1 -0
  9. package/dist/components/certifications/index.d.ts +2 -0
  10. package/dist/components/certifications/index.js +4 -0
  11. package/dist/components/footer/footer.component.d.ts +2 -9
  12. package/dist/components/footer/footer.component.js +32 -29
  13. package/dist/components/footer/footer.types.d.ts +10 -0
  14. package/dist/components/footer/footer.types.js +1 -0
  15. package/dist/components/footer/index.d.ts +2 -0
  16. package/dist/components/footer/index.js +4 -0
  17. package/dist/components/message/index.d.ts +2 -0
  18. package/dist/components/message/index.js +4 -0
  19. package/dist/components/message/message.component.d.ts +2 -7
  20. package/dist/components/message/message.component.js +36 -46
  21. package/dist/components/message/message.types.d.ts +9 -0
  22. package/dist/components/message/message.types.js +1 -0
  23. package/dist/components/not-found/index.d.ts +2 -0
  24. package/dist/components/not-found/index.js +4 -0
  25. package/dist/components/not-found/not-found.component.d.ts +2 -11
  26. package/dist/components/not-found/not-found.component.js +26 -19
  27. package/dist/components/not-found/not-found.types.d.ts +12 -0
  28. package/dist/components/not-found/not-found.types.js +1 -0
  29. package/dist/components/sidebar/sidebar.component.d.ts +1 -1
  30. package/dist/components/signature/signature.component.js +122 -122
  31. package/dist/main.d.ts +4 -4
  32. package/package.json +15 -5
  33. package/dist/assets/footer-Dwb-_jI0.css +0 -1
  34. package/dist/assets/message-xpCz4pZE.css +0 -1
  35. package/dist/assets/not-found-ampOPJmx.css +0 -1
  36. package/dist/assets/signature-Cd87a2ey.css +0 -1
  37. package/dist/fonts/lato/black/lato-black-900.ttf +0 -0
  38. package/dist/fonts/lato/black/lato-black-900.woff +0 -0
  39. package/dist/fonts/lato/black/lato-black-900.woff2 +0 -0
  40. package/dist/fonts/lato/black/lato-google-black-900.ttf +0 -0
  41. package/dist/fonts/lato/black/lato-latin-black-900.ttf +0 -0
  42. package/dist/fonts/lato/black/lato-latin-black-900.woff +0 -0
  43. package/dist/fonts/lato/black/lato-latin-black-900.woff2 +0 -0
  44. package/dist/fonts/lato/bold/lato-bold-700.ttf +0 -0
  45. package/dist/fonts/lato/bold/lato-bold-700.woff +0 -0
  46. package/dist/fonts/lato/bold/lato-bold-700.woff2 +0 -0
  47. package/dist/fonts/lato/bold/lato-google-bold-700.ttf +0 -0
  48. package/dist/fonts/lato/bold/lato-latin-bold-700.ttf +0 -0
  49. package/dist/fonts/lato/bold/lato-latin-bold-700.woff +0 -0
  50. package/dist/fonts/lato/bold/lato-latin-bold-700.woff2 +0 -0
  51. package/dist/fonts/lato/light/lato-google-light-300.ttf +0 -0
  52. package/dist/fonts/lato/light/lato-latin-light-300.ttf +0 -0
  53. package/dist/fonts/lato/light/lato-latin-light-300.woff +0 -0
  54. package/dist/fonts/lato/light/lato-latin-light-300.woff2 +0 -0
  55. package/dist/fonts/lato/light/lato-light-300.ttf +0 -0
  56. package/dist/fonts/lato/light/lato-light-300.woff +0 -0
  57. package/dist/fonts/lato/light/lato-light-300.woff2 +0 -0
  58. package/dist/fonts/lato/regular/lato-google-regular-400.ttf +0 -0
  59. package/dist/fonts/lato/regular/lato-latin-regular-400.ttf +0 -0
  60. package/dist/fonts/lato/regular/lato-latin-regular-400.woff +0 -0
  61. package/dist/fonts/lato/regular/lato-latin-regular-400.woff2 +0 -0
  62. package/dist/fonts/lato/regular/lato-regular-400.ttf +0 -0
  63. package/dist/fonts/lato/regular/lato-regular-400.woff +0 -0
  64. package/dist/fonts/lato/regular/lato-regular-400.woff2 +0 -0
  65. package/dist/styles/fonts.css +0 -67
package/dist/main.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  export { AccordionTable, type AccordionTableProps } from './components/accordion-table/accordion-table.component';
2
2
  export { Animation, type FadeScaleProps, type FadeSlideProps } from './components/animation/animation.component';
3
3
  export { BottomBar, type BottomBarProps } from './components/bottom-bar/bottom-bar.component';
4
- export { Certifications, type CertificationsProps, type CertificationsIcon, } from './components/certifications/certifications.component';
4
+ export { Certifications, type CertificationsProps } from './components/certifications';
5
5
  export { Control, type BoxProps, type ButtonProps, type ButtonCardProps, type ButtonRadioProps, type ButtonRadioInfo, type ButtonTextProps, type CardImageProps, type CardTextProps, type CheckboxProps, type ChoiceProps, type DropdownProps, type HiddenInputProps, type InputProps, type LabelProps, type RadioProps, type RadioLabelProps, type RadioLabelChild, type RadioTextProps, type StatusProps, type TextProps, type TextareaProps, type InputChangeSource, type Interactive, type RadioChoice, type ChoiceType, type ChoiceValue, type State, type QuestionPath, type QuestionChoice, type Size, } from './components/control/control.component';
6
6
  export { DataProtectedLabel, type DataProtectedLabelProps, } from './components/data-protected-label/data-protected-label.component';
7
7
  export { Dialog, type DialogProps, type DialogSize, type DialogPosition } from './components/dialog/dialog.component';
8
8
  export { DialogArticle, type DialogArticleProps, type DialogActionButton, } from './components/dialog-article/dialog-article.component';
9
9
  export { Expenses, type ExpensesProps } from './components/expenses/expenses.component';
10
10
  export { Flex, type FlexProps } from './components/flex/flex.component';
11
- export { Footer, type FooterProps, type FooterLink } from './components/footer/footer.component';
11
+ export { Footer, type FooterProps } from './components/footer';
12
12
  export { FormRow, type FormRowProps } from './components/form-row/form-row.component';
13
13
  export { Header, type HeaderProps, type HeaderDescription } from './components/header/header.component';
14
14
  export { InfoPanel, type InfoPanelProps } from './components/info-panel/info-panel.component';
@@ -18,9 +18,9 @@ export { Line } from './components/line/line.component';
18
18
  export { Loader, type LoaderProps } from './components/loader/loader.component';
19
19
  export { LoadingBlock } from './components/loading-block/loading-block.component';
20
20
  export { MainAttachment, type MainAttachmentProps } from './components/main-attachment/main-attachment.component';
21
- export { Message, type MessageProps } from './components/message/message.component';
21
+ export { Message, type MessageProps } from './components/message';
22
22
  export { MessageBlock, type MessageBlockProps } from './components/message-block/message-block.component';
23
- export { NotFound, type NotFoundProps } from './components/not-found/not-found.component';
23
+ export { NotFound, type NotFoundProps } from './components/not-found';
24
24
  export { Payment, type PaymentBlockProps, type PaymentGlassProps, type PaymentSidebarProps, type PaymentTextBlocksProps, type PaymentTextBlockItem, } from './components/payment/payment.component';
25
25
  export { Sidebar, type SidebarProps } from './components/sidebar/sidebar.component';
26
26
  export { Signature, type SignatureProps, type SignatureMode } from './components/signature/signature.component';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arthurzakharov/ui-kit",
3
3
  "private": false,
4
- "version": "1.2.4",
4
+ "version": "1.2.6",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
7
7
  "types": "dist/main.d.ts",
@@ -23,9 +23,10 @@
23
23
  "lint:fix": "eslint . --fix",
24
24
  "prettier:check": "prettier --check --log-level=log .",
25
25
  "prettier:fix": "prettier --write --log-level=log .",
26
- "test:once": "vitest run",
27
- "test:watch": "vitest --watch",
28
- "cy:open": "cypress open"
26
+ "test:unit:once": "vitest run --project unit",
27
+ "test:unit:watch": "vitest --project unit --watch",
28
+ "storybook": "storybook dev -p 6006",
29
+ "build-storybook": "storybook build"
29
30
  },
30
31
  "peerDependencies": {
31
32
  "@types/react-signature-canvas": "^1.0.7",
@@ -39,7 +40,12 @@
39
40
  "usehooks-ts": "^3.1.1"
40
41
  },
41
42
  "devDependencies": {
43
+ "@chromatic-com/storybook": "^5.0.1",
42
44
  "@eslint/js": "^9.39.2",
45
+ "@storybook/addon-a11y": "^10.2.8",
46
+ "@storybook/addon-docs": "^10.2.8",
47
+ "@storybook/addon-vitest": "^10.2.8",
48
+ "@storybook/react-vite": "^10.2.8",
43
49
  "@testing-library/react": "^15.0.7",
44
50
  "@types/node": "^24.1.0",
45
51
  "@types/react": "^18.3.27",
@@ -48,21 +54,25 @@
48
54
  "@typescript-eslint/eslint-plugin": "^8.52.0",
49
55
  "@typescript-eslint/parser": "^8.52.0",
50
56
  "@vitejs/plugin-react": "^5.1.2",
57
+ "@vitest/browser-playwright": "^4.0.16",
58
+ "@vitest/coverage-v8": "^4.0.18",
51
59
  "clsx": "^2.1.1",
52
- "cypress": "^15.9.0",
53
60
  "eslint": "^9.39.2",
54
61
  "eslint-plugin-react-hooks": "^7.0.1",
55
62
  "eslint-plugin-react-refresh": "^0.4.26",
63
+ "eslint-plugin-storybook": "^10.2.8",
56
64
  "glob": "^13.0.0",
57
65
  "globals": "^17.0.0",
58
66
  "jsdom": "^27.4.0",
59
67
  "lucide-react": "^0.562.0",
60
68
  "motion": "^12.26.1",
69
+ "playwright": "^1.58.2",
61
70
  "prettier": "^3.7.4",
62
71
  "react": "^18.3.1",
63
72
  "react-dom": "^18.3.1",
64
73
  "react-input-mask": "^2.0.4",
65
74
  "react-signature-canvas": "^1.0.7",
75
+ "storybook": "^10.2.8",
66
76
  "typescript": "^5.9.3",
67
77
  "typescript-eslint": "^8.52.0",
68
78
  "usehooks-ts": "^3.1.1",
@@ -1 +0,0 @@
1
- ._Footer_dkhhg_1{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center;white-space:nowrap;gap:var(--rm-ui-padding-md)}._FooterCopyright_dkhhg_11{font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}._FooterLinks_dkhhg_18{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--rm-ui-padding-md)}._FooterLink_dkhhg_18{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center}._FooterButton_dkhhg_32{font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small);color:var(--rm-ui-color-text-secondary)}._FooterButton_dkhhg_32:focus-visible{outline-offset:2px;outline-color:var(--rm-ui-color-focus)}._FooterSeparator_dkhhg_44{display:none}@media screen and (min-width:768px){._Footer_dkhhg_1{flex-direction:row-reverse;justify-content:space-between}._FooterLinks_dkhhg_18{gap:0}._FooterLink_dkhhg_18:last-of-type ._FooterSeparator_dkhhg_44{display:none}._FooterSeparator_dkhhg_44{display:flex;border-right:1px solid var(--rm-ui-color-text-secondary);margin-right:var(--rm-ui-padding-xs);margin-left:var(--rm-ui-padding-xs);height:16px}}
@@ -1 +0,0 @@
1
- ._Message_1rcng_1{--message-icon-size: 24px;border-radius:var(--rm-ui-border-radius-md);padding:var(--rm-ui-padding-md);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;justify-content:flex-start;gap:var(--rm-ui-padding-xs);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._MessageTypeSuccess_1rcng_15{background-color:var(--rm-ui-message-success-secondary)}._MessageTypeSuccess_1rcng_15 ._MessageIcon_1rcng_19{stroke:var(--rm-ui-message-success-primary)}._MessageTypeQuestion_1rcng_23{background-color:var(--rm-ui-message-question-secondary)}._MessageTypeQuestion_1rcng_23 ._MessageIcon_1rcng_19{stroke:var(--rm-ui-message-question-primary)}._MessageTypeError_1rcng_31{background-color:var(--rm-ui-message-error-secondary)}._MessageTypeError_1rcng_31 ._MessageIcon_1rcng_19{stroke:var(--rm-ui-message-error-primary)}._MessageTypeInfo_1rcng_39{background-color:var(--rm-ui-message-info-secondary)}._MessageTypeInfo_1rcng_39 ._MessageIcon_1rcng_19{stroke:var(--rm-ui-message-info-primary)}._MessageIcon_1rcng_19{width:var(--message-icon-size);height:var(--message-icon-size)}._MessageContent_1rcng_52{flex-basis:calc(100% - var(--message-icon-size) - var(--rm-ui-padding-xs));display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:var(--rm-ui-padding-xxs)}._MessageTitle_1rcng_62{font-weight:var(--rm-ui-font-weight-medium)}._MessageText_1rcng_66{font-weight:var(--rm-ui-font-weight-regular)}
@@ -1 +0,0 @@
1
- ._NotFound_1jdy2_1{padding:var(--rm-ui-padding-sm) var(--rm-ui-padding-md);font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body);color:var(--rm-ui-color-text-primary)}._Title_1jdy2_9{margin-bottom:var(--rm-ui-padding-lg);font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}._Subtitle_1jdy2_16{margin-bottom:var(--rm-ui-padding-md);font-weight:var(--rm-ui-font-weight-regular);font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}._TableTitle_1jdy2_23{margin-bottom:var(--rm-ui-padding-md);font-weight:var(--rm-ui-font-weight-light);font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}._Table_1jdy2_23{width:100%;border-spacing:0;border-collapse:collapse;font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._TableRow_1jdy2_38{border-top:1px solid var(--rm-ui-grey-300)}._CellHead_1jdy2_42,._CellData_1jdy2_43{padding:var(--rm-ui-padding-xs);vertical-align:top}._CellHead_1jdy2_42{text-align:left;font-weight:var(--rm-ui-font-weight-regular)}._CellData_1jdy2_43{font-weight:var(--rm-ui-font-weight-light)}@media screen and (min-width:1024px){._NotFound_1jdy2_1{padding:var(--rm-ui-padding-md) var(--rm-ui-padding-lg)}}@media screen and (min-width:1200px){._NotFound_1jdy2_1{padding:var(--rm-ui-padding-lg)}._Title_1jdy2_9{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}._Subtitle_1jdy2_16{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}._TableTitle_1jdy2_23{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}._Table_1jdy2_23{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}}
@@ -1 +0,0 @@
1
- ._Signature_y46zz_1{background-color:transparent}._SignatureMain_y46zz_5{--title-height: 40px;overflow:hidden;position:relative;padding:calc(var(--rm-ui-padding-md) + var(--title-height)) var(--rm-ui-padding-md) calc(var(--rm-ui-padding-md) + var(--title-height));border:1px solid var(--rm-ui-grey-300);border-radius:var(--rm-ui-border-radius-sm)}._SignatureMainAuto_y46zz_14{padding:calc(var(--rm-ui-padding-md) + var(--title-height)) var(--rm-ui-padding-md) var(--rm-ui-padding-md)}._SignatureMainManual_y46zz_18{padding:calc(var(--rm-ui-padding-md) + var(--title-height)) var(--rm-ui-padding-md) calc(var(--rm-ui-padding-md) + var(--title-height))}._SignatureHeader_y46zz_24{position:absolute;z-index:1;top:var(--rm-ui-padding-md);left:var(--rm-ui-padding-md);right:var(--rm-ui-padding-md)}._SignatureHeaderReset_y46zz_32{position:relative;z-index:1}._SignatureManualPanel_y46zz_39>canvas,._SignatureManualPanel_y46zz_39>img{position:absolute;top:0;left:0}._SignatureManualPanelPlaceholder_y46zz_46{height:104px}._SignatureManualPanelButton_y46zz_50{position:absolute;z-index:1;bottom:var(--rm-ui-padding-md);left:var(--rm-ui-padding-md);right:var(--rm-ui-padding-md);display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center}._SignatureAutoPanelImage_y46zz_65{height:46px;max-width:100%}._SignatureAutoPanelLoader_y46zz_70{display:inline-flex;padding:var(--rm-ui-padding-xs)}._SignatureAutoPanelNoteIcon_y46zz_75{stroke:var(--rm-ui-color-success)}._SignatureAutoPanelButton_y46zz_79{margin-top:20px;margin-bottom:var(--rm-ui-padding-sm)}
@@ -1,67 +0,0 @@
1
- /* Light - 300 */
2
- @font-face {
3
- font-family: Lato;
4
- font-style: normal;
5
- font-display: swap;
6
- font-weight: 300;
7
- size-adjust: 100%;
8
- src:
9
- url('/fonts/lato/light/lato-latin-light-300.woff2') format('woff2'),
10
- url('/fonts/lato/light/lato-light-300.woff2') format('woff2'),
11
- url('/fonts/lato/light/lato-latin-light-300.woff') format('woff'),
12
- url('/fonts/lato/light/lato-light-300.woff') format('woff'),
13
- url('/fonts/lato/light/lato-latin-light-300.ttf') format('truetype'),
14
- url('/fonts/lato/light/lato-light-300.ttf') format('truetype'),
15
- url('/fonts/lato/light/lato-google-light-300.ttf') format('truetype');
16
- }
17
-
18
- /* Regular - 400 */
19
- @font-face {
20
- font-family: Lato;
21
- font-style: normal;
22
- font-display: swap;
23
- font-weight: 400;
24
- size-adjust: 100%;
25
- src:
26
- url('/fonts/lato/regular/lato-latin-regular-400.woff2') format('woff2'),
27
- url('/fonts/lato/regular/lato-regular-400.woff2') format('woff2'),
28
- url('/fonts/lato/regular/lato-latin-regular-400.woff') format('woff'),
29
- url('/fonts/lato/regular/lato-regular-400.woff') format('woff'),
30
- url('/fonts/lato/regular/lato-latin-regular-400.ttf') format('truetype'),
31
- url('/fonts/lato/regular/lato-regular-400.ttf') format('truetype'),
32
- url('/fonts/lato/regular/lato-google-regular-400.ttf') format('truetype');
33
- }
34
-
35
- /* Bold - 700 */
36
- @font-face {
37
- font-family: Lato;
38
- font-style: normal;
39
- font-display: swap;
40
- font-weight: 700;
41
- size-adjust: 100%;
42
- src:
43
- url('/fonts/lato/bold/lato-latin-bold-700.woff2') format('woff2'),
44
- url('/fonts/lato/bold/lato-bold-700.woff2') format('woff2'),
45
- url('/fonts/lato/bold/lato-latin-bold-700.woff') format('woff'),
46
- url('/fonts/lato/bold/lato-bold-700.woff') format('woff'),
47
- url('/fonts/lato/bold/lato-latin-bold-700.ttf') format('truetype'),
48
- url('/fonts/lato/bold/lato-bold-700.ttf') format('truetype'),
49
- url('/fonts/lato/bold/lato-google-bold-700.ttf') format('truetype');
50
- }
51
-
52
- /* Black - 900 */
53
- @font-face {
54
- font-family: Lato;
55
- font-style: normal;
56
- font-display: swap;
57
- font-weight: 900;
58
- size-adjust: 100%;
59
- src:
60
- url('/fonts/lato/black/lato-latin-black-900.woff2') format('woff2'),
61
- url('/fonts/lato/black/lato-black-900.woff2') format('woff2'),
62
- url('/fonts/lato/black/lato-latin-black-900.woff') format('woff'),
63
- url('/fonts/lato/black/lato-black-900.woff') format('woff'),
64
- url('/fonts/lato/black/lato-latin-black-900.ttf') format('truetype'),
65
- url('/fonts/lato/black/lato-black-900.ttf') format('truetype'),
66
- url('/fonts/lato/black/lato-google-black-900.ttf') format('truetype');
67
- }