@arthurzakharov/ui-kit 2.1.0 → 2.2.1
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/{main-LzSMZNTG.css → main-DZmlIs7j.css} +1 -1
- package/dist/assets/text-DYEJSFKw.css +1 -0
- package/dist/components/text/text.component.js +110 -103
- package/dist/main.d.ts +1 -1
- package/dist/main.js +1 -1
- package/dist/utils/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/assets/text-Bhvd-u-V.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}body{background-color:var(--rm-ui-body-bg)}body,input,textarea{font-family:Lato,sans-serif;font-weight:var(--rm-ui-font-weight-regular);font-size:16px;line-height:24px;-webkit-hyphens:manual;hyphens:manual;white-space:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none;margin:0;padding:0}h1,h2,h3,h4,h5,h6,b,strong{font-weight:var(--rm-ui-font-weight-medium)}h1{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}h2{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}h3{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}h4{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}h5,h6{font-size:var(--rm-ui-font-size-hl5);line-height:var(--rm-ui-line-height-hl5)}a{text-decoration:none;color:inherit;border-radius:var(--rm-ui-border-radius-sm);outline:2px solid transparent}button,*[role=button]{border:none;border-radius:0;background-color:transparent;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;color:inherit;-webkit-hyphens:inherit;hyphens:inherit;white-space:inherit;outline-offset:-2px;outline:2px solid transparent}a:hover,button:hover,*[role=button]:hover{cursor:pointer}a:active,button:active,*[role=button]:active{outline:none}a:focus-visible,button:focus-visible,*[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus);outline-offset:-2px;transition:outline-color var(--rm-ui-amimation-speed-primary) ease-in-out;transition-delay:calc(var(--rm-ui-amimation-speed-primary) / 2)}.text-primary{color:var(--rm-ui-color-text-primary)}.text-secondary{color:var(--rm-ui-color-text-secondary)}.fw-light{font-weight:var(--rm-ui-font-weight-light)}.fw-regular{font-weight:var(--rm-ui-font-weight-regular)}.fw-medium{font-weight:var(--rm-ui-font-weight-medium)}.fw-bold{font-weight:var(--rm-ui-font-weight-bold)}:root{--rm-ui-padding-xxs: 4px;--rm-ui-padding-xs: 8px;--rm-ui-padding-sm: 12px;--rm-ui-padding-md: 16px;--rm-ui-padding-lg: 24px;--rm-ui-padding-xl: 32px;--rm-ui-padding-xxl: 40px;--rm-ui-padding-xxxl: 48px;--rm-ui-border-radius-sm: 8px;--rm-ui-border-radius-md: 12px;--rm-ui-border-radius-lg: 16px;--rm-ui-border-radius-xl: 24px;--rm-ui-font-size-body-extra-small: 12px;--rm-ui-line-height-body-extra-small: 16px;--rm-ui-font-size-body-small: 14px;--rm-ui-line-height-body-small: 20px;--rm-ui-font-size-body: 16px;--rm-ui-line-height-body: 24px;--rm-ui-font-size-body-large: 20px;--rm-ui-line-height-body-large: 30px;--rm-ui-font-size-hl5: 14px;--rm-ui-line-height-hl5: 22px;--rm-ui-font-size-hl4: 18px;--rm-ui-line-height-hl4: 24px;--rm-ui-font-size-hl3: 20px;--rm-ui-line-height-hl3: 28px;--rm-ui-font-size-hl2: 24px;--rm-ui-line-height-hl2: 32px;--rm-ui-font-size-hl1: 28px;--rm-ui-line-height-hl1: 36px;--rm-ui-font-weight-light: 300;--rm-ui-font-weight-regular: 400;--rm-ui-font-weight-medium: 700;--rm-ui-font-weight-bold: 900;--rm-ui-grey-950: #0a0a0a;--rm-ui-grey-900: #171717;--rm-ui-grey-800: #262626;--rm-ui-grey-700: #404040;--rm-ui-grey-600: #525252;--rm-ui-grey-500: #737373;--rm-ui-grey-400: #a3a3a3;--rm-ui-grey-300: #d4d4d4;--rm-ui-grey-200: #e5e5e5;--rm-ui-grey-100: #f5f5f5;--rm-ui-grey-50: #fafafa;--rm-ui-color-text-primary: var(--rm-ui-grey-800);--rm-ui-color-text-secondary: var(--rm-ui-grey-500);--rm-ui-color-accent-primary: #23bf96;--rm-ui-color-accent-secondary: #ff9900;--rm-ui-color-accent-tertiary: #f5a623;--rm-ui-color-theme-primary: #302677;--rm-ui-color-theme-secondary: #302677;--rm-ui-color-action: #006cff;--rm-ui-color-inverted: #ffffff;--rm-ui-color-error: #dc2626;--rm-ui-color-success: #00b649;--rm-ui-color-focus: #ff8d02;--rm-ui-color-link: #ff8206;--rm-ui-body-color: #f0faff;--rm-ui-box-border-radius: 10px;--rm-ui-header-logo-height: 30px;--rm-ui-header-phone: #ff9900;--rm-ui-header-phone-size: 22px;--rm-ui-header-text: var(--rm-ui-color-text-primary);--rm-ui-header-check-icon: var(--rm-ui-color-text-primary);--rm-ui-certifications-color: #b1b4c7;--rm-ui-certifications-size: 20px;--rm-ui-message-success-primary: #29c667;--rm-ui-message-success-secondary: #f1fdf4;--rm-ui-message-question-primary: #a76000;--rm-ui-message-question-secondary: #fefce8;--rm-ui-message-error-primary: var(--rm-ui-color-error);--rm-ui-message-error-secondary: #fef3f3;--rm-ui-message-info-primary: #3289c4;--rm-ui-message-info-secondary: #f3f7fe;--rm-ui-payment-info-bg: #edf9f6;--rm-ui-payment-sidebar-bg: #f6f6f6;--rm-ui-payment-text-blocks-gap: var(--rm-ui-padding-lg);--rm-ui-data-protected-label-icon: var(--rm-ui-next-btn-bg);--rm-ui-data-protected-label-text: var(--rm-ui-color-text-primary);--rm-ui-status-idle-color: #82868f;--rm-ui-status-success-color: var(--rm-ui-color-accent-primary);--rm-ui-status-error-color: var(--rm-ui-color-error);--rm-ui-not-found-color: var(--rm-ui-color-text-primary);--rm-ui-not-found-border: var(--rm-ui-grey-300);--rm-ui-card-background: #ffffff;--rm-ui-next-btn-bg: rgba(35, 191, 150, 1);--rm-ui-next-btn-bg-hover: rgba(35, 191, 150, .9);--rm-ui-info-panel-bg: var(--rm-ui-body-color);--rm-ui-sidebar-bg: #f6f6f6;--rm-ui-sidebar-line-color: var(--rm-ui-grey-200);--rm-ui-loading-screen-height: 400px;--rm-ui-body-bg: #f9fcff;--rm-ui-content-bg: #ffffff;--rm-ui-amimation-speed-primary: .15s;--rm-ui-amimation-speed-secondary: .3s;--rm-ui-amimation-speed-tertiary: .45s;--rm-ui-amimation-cubic-primary: cubic-bezier(.3, 0, 0, 1);--rm-ui-amimation-cubic-secondary: cubic-bezier(.65, 0, .35, 1);--rm-ui-amimation-cubic-tertiary: cubic-bezier(.68, -.6, .32, 1.6);--rm-ui-warranty-bg: #f9fcff}
|
|
1
|
+
*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}body{background-color:var(--rm-ui-body-bg)}body,input,textarea{font-family:Lato,sans-serif;font-weight:var(--rm-ui-font-weight-regular);font-size:16px;line-height:24px;-webkit-hyphens:manual;hyphens:manual;white-space:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}ul,ol{list-style:none;margin:0;padding:0}h1,h2,h3,h4,h5,h6,b,strong{font-weight:var(--rm-ui-font-weight-medium)}h1{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}h2{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}h3{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}h4{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}h5,h6{font-size:var(--rm-ui-font-size-hl5);line-height:var(--rm-ui-line-height-hl5)}a{text-decoration:none;color:inherit;border-radius:var(--rm-ui-border-radius-sm);outline:2px solid transparent}button,*[role=button]{border:none;border-radius:0;background-color:transparent;font-family:inherit;font-weight:inherit;font-size:inherit;line-height:inherit;color:inherit;-webkit-hyphens:inherit;hyphens:inherit;white-space:inherit;outline-offset:-2px;outline:2px solid transparent}a:hover,button:hover,*[role=button]:hover{cursor:pointer}a:active,button:active,*[role=button]:active{outline:none}a:focus-visible,button:focus-visible,*[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus);outline-offset:-2px;transition:outline-color var(--rm-ui-amimation-speed-primary) ease-in-out;transition-delay:calc(var(--rm-ui-amimation-speed-primary) / 2)}.text-primary{color:var(--rm-ui-color-text-primary)}.text-secondary{color:var(--rm-ui-color-text-secondary)}.fw-light{font-weight:var(--rm-ui-font-weight-light)}.fw-regular{font-weight:var(--rm-ui-font-weight-regular)}.fw-medium{font-weight:var(--rm-ui-font-weight-medium)}.fw-bold{font-weight:var(--rm-ui-font-weight-bold)}:root{--rm-ui-padding-xxs: 4px;--rm-ui-padding-xs: 8px;--rm-ui-padding-sm: 12px;--rm-ui-padding-md: 16px;--rm-ui-padding-lg: 24px;--rm-ui-padding-xl: 32px;--rm-ui-padding-xxl: 40px;--rm-ui-padding-xxxl: 48px;--rm-ui-border-radius-sm: 8px;--rm-ui-border-radius-md: 12px;--rm-ui-border-radius-lg: 16px;--rm-ui-border-radius-xl: 24px;--rm-ui-font-size-body-extra-small: 12px;--rm-ui-line-height-body-extra-small: 16px;--rm-ui-font-size-body-small: 14px;--rm-ui-line-height-body-small: 20px;--rm-ui-font-size-body: 16px;--rm-ui-line-height-body: 24px;--rm-ui-font-size-body-large: 20px;--rm-ui-line-height-body-large: 30px;--rm-ui-font-size-hl5: 14px;--rm-ui-line-height-hl5: 22px;--rm-ui-font-size-hl4: 18px;--rm-ui-line-height-hl4: 24px;--rm-ui-font-size-hl3: 20px;--rm-ui-line-height-hl3: 28px;--rm-ui-font-size-hl2: 24px;--rm-ui-line-height-hl2: 32px;--rm-ui-font-size-hl1: 28px;--rm-ui-line-height-hl1: 36px;--rm-ui-font-weight-light: 300;--rm-ui-font-weight-regular: 400;--rm-ui-font-weight-medium: 700;--rm-ui-font-weight-bold: 900;--rm-ui-grey-950: #0a0a0a;--rm-ui-grey-900: #171717;--rm-ui-grey-800: #262626;--rm-ui-grey-700: #404040;--rm-ui-grey-600: #525252;--rm-ui-grey-500: #737373;--rm-ui-grey-400: #a3a3a3;--rm-ui-grey-300: #d4d4d4;--rm-ui-grey-200: #e5e5e5;--rm-ui-grey-100: #f5f5f5;--rm-ui-grey-50: #fafafa;--rm-ui-color-text-primary: var(--rm-ui-grey-800);--rm-ui-color-text-secondary: var(--rm-ui-grey-500);--rm-ui-color-accent-primary: #23bf96;--rm-ui-color-accent-secondary: #ff9900;--rm-ui-color-accent-tertiary: #f5a623;--rm-ui-color-theme-primary: #302677;--rm-ui-color-theme-secondary: #302677;--rm-ui-color-action: #006cff;--rm-ui-color-inverted: #ffffff;--rm-ui-color-error: #dc2626;--rm-ui-color-success: #00b649;--rm-ui-color-focus: #ff8d02;--rm-ui-color-link: #ff8206;--rm-ui-color-text-under-submit: #bdbdbd;--rm-ui-color-button-under-submit: #006699b3;--rm-ui-body-color: #f0faff;--rm-ui-box-border-radius: 10px;--rm-ui-header-logo-height: 30px;--rm-ui-header-phone: #ff9900;--rm-ui-header-phone-size: 22px;--rm-ui-header-text: var(--rm-ui-color-text-primary);--rm-ui-header-check-icon: var(--rm-ui-color-text-primary);--rm-ui-certifications-color: #b1b4c7;--rm-ui-certifications-size: 20px;--rm-ui-message-success-primary: #29c667;--rm-ui-message-success-secondary: #f1fdf4;--rm-ui-message-question-primary: #a76000;--rm-ui-message-question-secondary: #fefce8;--rm-ui-message-error-primary: var(--rm-ui-color-error);--rm-ui-message-error-secondary: #fef3f3;--rm-ui-message-info-primary: #3289c4;--rm-ui-message-info-secondary: #f3f7fe;--rm-ui-payment-info-bg: #edf9f6;--rm-ui-payment-sidebar-bg: #f6f6f6;--rm-ui-payment-text-blocks-gap: var(--rm-ui-padding-lg);--rm-ui-data-protected-label-icon: var(--rm-ui-next-btn-bg);--rm-ui-data-protected-label-text: var(--rm-ui-color-text-primary);--rm-ui-status-idle-color: #82868f;--rm-ui-status-success-color: var(--rm-ui-color-accent-primary);--rm-ui-status-error-color: var(--rm-ui-color-error);--rm-ui-not-found-color: var(--rm-ui-color-text-primary);--rm-ui-not-found-border: var(--rm-ui-grey-300);--rm-ui-card-background: #ffffff;--rm-ui-next-btn-bg: rgba(35, 191, 150, 1);--rm-ui-next-btn-bg-hover: rgba(35, 191, 150, .9);--rm-ui-info-panel-bg: var(--rm-ui-body-color);--rm-ui-sidebar-bg: #f6f6f6;--rm-ui-sidebar-line-color: var(--rm-ui-grey-200);--rm-ui-loading-screen-height: 400px;--rm-ui-body-bg: #f9fcff;--rm-ui-content-bg: #ffffff;--rm-ui-amimation-speed-primary: .15s;--rm-ui-amimation-speed-secondary: .3s;--rm-ui-amimation-speed-tertiary: .45s;--rm-ui-amimation-cubic-primary: cubic-bezier(.3, 0, 0, 1);--rm-ui-amimation-cubic-secondary: cubic-bezier(.65, 0, .35, 1);--rm-ui-amimation-cubic-tertiary: cubic-bezier(.68, -.6, .32, 1.6);--rm-ui-warranty-bg: #f9fcff}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._Lined_zitvv_1{text-decoration:underline}._Left_zitvv_7{text-align:left}._Center_zitvv_11{text-align:center}._Right_zitvv_15{text-align:right}._Light_zitvv_21{font-weight:var(--rm-ui-font-weight-light)}._Regular_zitvv_25{font-weight:var(--rm-ui-font-weight-regular)}._Medium_zitvv_29{font-weight:var(--rm-ui-font-weight-medium)}._Bold_zitvv_33{font-weight:var(--rm-ui-font-weight-bold)}._BodyExtraSmall_zitvv_39{font-size:var(--rm-ui-font-size-body-extra-small);line-height:var(--rm-ui-line-height-body-extra-small)}._BodySmall_zitvv_44{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._Body_zitvv_39{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._BodyLarge_zitvv_54{font-size:var(--rm-ui-font-size-body-large);line-height:var(--rm-ui-line-height-body-large)}._HL1_zitvv_59{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}._HL2_zitvv_64{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}._HL3_zitvv_69{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}._HL4_zitvv_74{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}._HL5_zitvv_79{font-size:var(--rm-ui-font-size-hl5);line-height:var(--rm-ui-line-height-hl5)}._TextPrimary_zitvv_86{color:var(--rm-ui-color-text-primary)}._TextSecondary_zitvv_90{color:var(--rm-ui-color-text-secondary)}._AccentPrimary_zitvv_94{color:var(--rm-ui-color-accent-primary)}._AccentSecondary_zitvv_98{color:var(--rm-ui-color-accent-secondary)}._ThemePrimary_zitvv_102{color:var(--rm-ui-color-theme-primary)}._ThemeSecondary_zitvv_106{color:var(--rm-ui-color-theme-secondary)}._Error_zitvv_110{color:var(--rm-ui-color-error)}._Success_zitvv_114{color:var(--rm-ui-color-success)}._Focus_zitvv_118{color:var(--rm-ui-color-focus)}._Link_zitvv_122{color:var(--rm-ui-color-link)}._Grey950_zitvv_126{color:var(--rm-ui-grey-950)}._Grey900_zitvv_130{color:var(--rm-ui-grey-900)}._Grey800_zitvv_134{color:var(--rm-ui-grey-800)}._Grey700_zitvv_138{color:var(--rm-ui-grey-700)}._Grey600_zitvv_142{color:var(--rm-ui-grey-600)}._Grey500_zitvv_146{color:var(--rm-ui-grey-500)}._Grey400_zitvv_150{color:var(--rm-ui-grey-400)}._Grey300_zitvv_154{color:var(--rm-ui-grey-300)}._Grey200_zitvv_158{color:var(--rm-ui-grey-200)}._Grey100_zitvv_162{color:var(--rm-ui-grey-100)}._Grey50_zitvv_146{color:var(--rm-ui-grey-50)}._UnderSubmit_zitvv_172,._UnderSubmitLight_zitvv_173{text-align:center}._UnderSubmit_zitvv_172 button,._UnderSubmit_zitvv_172 *[role=button]{color:var(--rm-ui-color-link);opacity:.7;outline-offset:2px}._UnderSubmit_zitvv_172 button:hover,._UnderSubmit_zitvv_172 *[role=button]:hover{text-decoration:underline}._UnderSubmit_zitvv_172 button:focus-visible,._UnderSubmit_zitvv_172 *[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus)}._UnderSubmitLight_zitvv_173{color:var(--rm-ui-color-text-under-submit)}._UnderSubmitLight_zitvv_173 button,._UnderSubmitLight_zitvv_173 *[role=button]{color:var(--rm-ui-color-button-under-submit);opacity:.7;outline-offset:2px}._UnderSubmitLight_zitvv_173 button:hover,._UnderSubmitLight_zitvv_173 *[role=button]:hover{text-decoration:underline}._UnderSubmitLight_zitvv_173 button:focus-visible,._UnderSubmitLight_zitvv_173 *[role=button]:focus-visible{outline-color:var(--rm-ui-color-focus)}
|
|
@@ -1,135 +1,142 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import
|
|
4
|
-
import { Content as
|
|
5
|
-
import '../../assets/text-
|
|
6
|
-
Lined:
|
|
7
|
-
Left:
|
|
8
|
-
Center:
|
|
9
|
-
Right:
|
|
10
|
-
Light:
|
|
11
|
-
Regular:
|
|
12
|
-
Medium:
|
|
13
|
-
Bold:
|
|
14
|
-
BodyExtraSmall:
|
|
15
|
-
BodySmall:
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as G } from "react";
|
|
3
|
+
import L from "clsx";
|
|
4
|
+
import { Content as u } from "../../utils/content/content.component.js";
|
|
5
|
+
import '../../assets/text-DYEJSFKw.css';const x = "_Lined_zitvv_1", b = "_Left_zitvv_7", S = "_Center_zitvv_11", f = "_Right_zitvv_15", T = "_Light_zitvv_21", B = "_Regular_zitvv_25", H = "_Medium_zitvv_29", w = "_Bold_zitvv_33", R = "_BodyExtraSmall_zitvv_39", P = "_BodySmall_zitvv_44", A = "_Body_zitvv_39", U = "_BodyLarge_zitvv_54", E = "_HL1_zitvv_59", C = "_HL2_zitvv_64", k = "_HL3_zitvv_69", M = "_HL4_zitvv_74", F = "_HL5_zitvv_79", $ = "_TextPrimary_zitvv_86", N = "_TextSecondary_zitvv_90", j = "_AccentPrimary_zitvv_94", W = "_AccentSecondary_zitvv_98", q = "_ThemePrimary_zitvv_102", D = "_ThemeSecondary_zitvv_106", I = "_Success_zitvv_114", J = "_Focus_zitvv_118", K = "_Link_zitvv_122", O = "_Grey950_zitvv_126", Q = "_Grey900_zitvv_130", V = "_Grey800_zitvv_134", X = "_Grey700_zitvv_138", Y = "_Grey600_zitvv_142", Z = "_Grey500_zitvv_146", ee = "_Grey400_zitvv_150", te = "_Grey300_zitvv_154", re = "_Grey200_zitvv_158", oe = "_Grey100_zitvv_162", ie = "_Grey50_zitvv_146", ne = "_UnderSubmit_zitvv_172", ye = "_UnderSubmitLight_zitvv_173", e = {
|
|
6
|
+
Lined: x,
|
|
7
|
+
Left: b,
|
|
8
|
+
Center: S,
|
|
9
|
+
Right: f,
|
|
10
|
+
Light: T,
|
|
11
|
+
Regular: B,
|
|
12
|
+
Medium: H,
|
|
13
|
+
Bold: w,
|
|
14
|
+
BodyExtraSmall: R,
|
|
15
|
+
BodySmall: P,
|
|
16
16
|
Body: A,
|
|
17
|
-
BodyLarge:
|
|
18
|
-
HL1:
|
|
19
|
-
HL2:
|
|
20
|
-
HL3:
|
|
21
|
-
HL4:
|
|
22
|
-
HL5:
|
|
23
|
-
TextPrimary:
|
|
24
|
-
TextSecondary:
|
|
25
|
-
AccentPrimary:
|
|
26
|
-
AccentSecondary:
|
|
27
|
-
ThemePrimary:
|
|
28
|
-
ThemeSecondary:
|
|
29
|
-
Error: "
|
|
30
|
-
Success:
|
|
31
|
-
Focus:
|
|
32
|
-
Link:
|
|
33
|
-
Grey950:
|
|
34
|
-
Grey900:
|
|
17
|
+
BodyLarge: U,
|
|
18
|
+
HL1: E,
|
|
19
|
+
HL2: C,
|
|
20
|
+
HL3: k,
|
|
21
|
+
HL4: M,
|
|
22
|
+
HL5: F,
|
|
23
|
+
TextPrimary: $,
|
|
24
|
+
TextSecondary: N,
|
|
25
|
+
AccentPrimary: j,
|
|
26
|
+
AccentSecondary: W,
|
|
27
|
+
ThemePrimary: q,
|
|
28
|
+
ThemeSecondary: D,
|
|
29
|
+
Error: "_Error_zitvv_110",
|
|
30
|
+
Success: I,
|
|
31
|
+
Focus: J,
|
|
32
|
+
Link: K,
|
|
33
|
+
Grey950: O,
|
|
34
|
+
Grey900: Q,
|
|
35
35
|
Grey800: V,
|
|
36
36
|
Grey700: X,
|
|
37
37
|
Grey600: Y,
|
|
38
38
|
Grey500: Z,
|
|
39
39
|
Grey400: ee,
|
|
40
|
-
Grey300:
|
|
41
|
-
Grey200:
|
|
40
|
+
Grey300: te,
|
|
41
|
+
Grey200: re,
|
|
42
42
|
Grey100: oe,
|
|
43
|
-
Grey50:
|
|
44
|
-
|
|
43
|
+
Grey50: ie,
|
|
44
|
+
UnderSubmit: ne,
|
|
45
|
+
UnderSubmitLight: ye
|
|
46
|
+
}, ce = {
|
|
45
47
|
"page-info": { tag: "p", weight: "light", size: "body", color: "text-secondary" },
|
|
46
48
|
"page-subtitle": { tag: "h6", weight: "regular", size: "body", color: "text-primary" },
|
|
47
49
|
"page-title": { tag: "h1", weight: "bold", size: "hl1", color: "text-primary" },
|
|
48
50
|
"sidebar-title": { tag: "h3", weight: "bold", size: "hl3", color: "text-primary" },
|
|
49
|
-
"step-title": { tag: "h2", weight: "bold", size: "hl4", color: "text-primary" }
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
"step-title": { tag: "h2", weight: "bold", size: "hl4", color: "text-primary" },
|
|
52
|
+
"under-submit": { tag: "p", weight: "light", size: "body-small", color: "text-secondary" },
|
|
53
|
+
"under-submit-light": { tag: "p", weight: "light", size: "body-small", color: "text-secondary" }
|
|
54
|
+
}, _e = G(({
|
|
55
|
+
children: v,
|
|
56
|
+
className: m,
|
|
57
|
+
preset: o,
|
|
58
|
+
lined: g = !1,
|
|
59
|
+
align: y = "left",
|
|
60
|
+
tag: c = "p",
|
|
61
|
+
weight: _ = "regular",
|
|
62
|
+
size: s = "body",
|
|
63
|
+
color: a = "text-primary",
|
|
60
64
|
...l
|
|
61
|
-
},
|
|
62
|
-
let d =
|
|
63
|
-
if (
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
`Text component: 'tag' prop will be overridden by 'preset="${
|
|
67
|
-
),
|
|
68
|
-
`Text component: 'weight' prop will be overridden by 'preset="${
|
|
69
|
-
),
|
|
70
|
-
`Text component: 'size' prop will be overridden by 'preset="${
|
|
71
|
-
),
|
|
72
|
-
`Text component: 'color' prop will be overridden by 'preset="${
|
|
73
|
-
), d =
|
|
65
|
+
}, h) => {
|
|
66
|
+
let d = c, n = _, r = s, t = a;
|
|
67
|
+
if (o) {
|
|
68
|
+
const i = ce[o];
|
|
69
|
+
c !== "p" && c !== i.tag && console.warn(
|
|
70
|
+
`Text component: 'tag' prop will be overridden by 'preset="${o}"'. Remove explicit 'tag' prop if not intended.`
|
|
71
|
+
), _ !== "regular" && _ !== i.weight && console.warn(
|
|
72
|
+
`Text component: 'weight' prop will be overridden by 'preset="${o}"'. Remove explicit 'weight' prop if not intended.`
|
|
73
|
+
), s !== "body" && s !== i.size && console.warn(
|
|
74
|
+
`Text component: 'size' prop will be overridden by 'preset="${o}"'. Remove explicit 'size' prop if not intended.`
|
|
75
|
+
), a !== "text-primary" && a !== i.color && console.warn(
|
|
76
|
+
`Text component: 'color' prop will be overridden by 'preset="${o}"'. Remove explicit 'color' prop if not intended.`
|
|
77
|
+
), d = i.tag, n = i.weight, r = i.size, t = i.color;
|
|
74
78
|
}
|
|
75
|
-
const
|
|
76
|
-
[e.Lined]:
|
|
79
|
+
const z = L(m, {
|
|
80
|
+
[e.Lined]: g,
|
|
77
81
|
// ALIGNMENTS
|
|
78
|
-
[e.Left]:
|
|
79
|
-
[e.Center]:
|
|
80
|
-
[e.Right]:
|
|
82
|
+
[e.Left]: y === "left",
|
|
83
|
+
[e.Center]: y === "center",
|
|
84
|
+
[e.Right]: y === "right",
|
|
81
85
|
// FONT WEIGHTS
|
|
82
86
|
[e.Light]: n === "light",
|
|
83
87
|
[e.Regular]: n === "regular",
|
|
84
88
|
[e.Medium]: n === "medium",
|
|
85
89
|
[e.Bold]: n === "bold",
|
|
86
90
|
// FONT SIZES
|
|
87
|
-
[e.BodyExtraSmall]:
|
|
88
|
-
[e.BodySmall]:
|
|
89
|
-
[e.Body]:
|
|
90
|
-
[e.BodyLarge]:
|
|
91
|
-
[e.HL1]:
|
|
92
|
-
[e.HL2]:
|
|
93
|
-
[e.HL3]:
|
|
94
|
-
[e.HL4]:
|
|
95
|
-
[e.HL5]:
|
|
91
|
+
[e.BodyExtraSmall]: r === "body-extra-small",
|
|
92
|
+
[e.BodySmall]: r === "body-small",
|
|
93
|
+
[e.Body]: r === "body",
|
|
94
|
+
[e.BodyLarge]: r === "body-large",
|
|
95
|
+
[e.HL1]: r === "hl1",
|
|
96
|
+
[e.HL2]: r === "hl2",
|
|
97
|
+
[e.HL3]: r === "hl3",
|
|
98
|
+
[e.HL4]: r === "hl4",
|
|
99
|
+
[e.HL5]: r === "hl5",
|
|
96
100
|
// COLORS
|
|
97
|
-
[e.TextPrimary]:
|
|
98
|
-
[e.TextSecondary]:
|
|
99
|
-
[e.AccentPrimary]:
|
|
100
|
-
[e.AccentSecondary]:
|
|
101
|
-
[e.ThemePrimary]:
|
|
102
|
-
[e.ThemeSecondary]:
|
|
103
|
-
[e.Error]:
|
|
104
|
-
[e.Success]:
|
|
105
|
-
[e.Focus]:
|
|
106
|
-
[e.Link]:
|
|
107
|
-
[e.Grey950]:
|
|
108
|
-
[e.Grey900]:
|
|
109
|
-
[e.Grey800]:
|
|
110
|
-
[e.Grey700]:
|
|
111
|
-
[e.Grey600]:
|
|
112
|
-
[e.Grey500]:
|
|
113
|
-
[e.Grey400]:
|
|
114
|
-
[e.Grey300]:
|
|
115
|
-
[e.Grey200]:
|
|
116
|
-
[e.Grey100]:
|
|
117
|
-
[e.Grey50]:
|
|
101
|
+
[e.TextPrimary]: t === "text-primary",
|
|
102
|
+
[e.TextSecondary]: t === "text-secondary",
|
|
103
|
+
[e.AccentPrimary]: t === "accent-primary",
|
|
104
|
+
[e.AccentSecondary]: t === "accent-secondary",
|
|
105
|
+
[e.ThemePrimary]: t === "theme-primary",
|
|
106
|
+
[e.ThemeSecondary]: t === "theme-secondary",
|
|
107
|
+
[e.Error]: t === "error",
|
|
108
|
+
[e.Success]: t === "success",
|
|
109
|
+
[e.Focus]: t === "focus",
|
|
110
|
+
[e.Link]: t === "link",
|
|
111
|
+
[e.Grey950]: t === "grey-950",
|
|
112
|
+
[e.Grey900]: t === "grey-900",
|
|
113
|
+
[e.Grey800]: t === "grey-800",
|
|
114
|
+
[e.Grey700]: t === "grey-700",
|
|
115
|
+
[e.Grey600]: t === "grey-600",
|
|
116
|
+
[e.Grey500]: t === "grey-500",
|
|
117
|
+
[e.Grey400]: t === "grey-400",
|
|
118
|
+
[e.Grey300]: t === "grey-300",
|
|
119
|
+
[e.Grey200]: t === "grey-200",
|
|
120
|
+
[e.Grey100]: t === "grey-100",
|
|
121
|
+
[e.Grey50]: t === "grey-50",
|
|
122
|
+
// PRESETS
|
|
123
|
+
[e.UnderSubmit]: o === "under-submit",
|
|
124
|
+
[e.UnderSubmitLight]: o === "under-submit-light"
|
|
118
125
|
});
|
|
119
|
-
return /* @__PURE__ */
|
|
120
|
-
|
|
126
|
+
return /* @__PURE__ */ p(
|
|
127
|
+
u,
|
|
121
128
|
{
|
|
122
|
-
ref:
|
|
129
|
+
ref: h,
|
|
123
130
|
"data-testid": l["data-testid"] || "content",
|
|
124
131
|
tag: d,
|
|
125
132
|
alwaysRender: !1,
|
|
126
|
-
className:
|
|
133
|
+
className: z,
|
|
127
134
|
...l,
|
|
128
|
-
children:
|
|
135
|
+
children: v
|
|
129
136
|
}
|
|
130
137
|
);
|
|
131
138
|
});
|
|
132
|
-
|
|
139
|
+
_e.displayName = "Text";
|
|
133
140
|
export {
|
|
134
|
-
|
|
141
|
+
_e as Text
|
|
135
142
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -46,6 +46,6 @@ export { Payment, type PaymentBlockProps, type PaymentGlassProps, type PaymentIn
|
|
|
46
46
|
export { Sidebar, type SidebarProps } from './components/sidebar';
|
|
47
47
|
export { Signature } from './components/signature';
|
|
48
48
|
export { Svg, type SvgProps } from './utils/svg/svg.component';
|
|
49
|
-
export { Text } from './components/text';
|
|
49
|
+
export { Text, type TextProps } from './components/text';
|
|
50
50
|
export { UserPanel } from './components/user-panel';
|
|
51
51
|
export { Warranty, type WarrantyProps } from './components/warranty';
|
package/dist/main.js
CHANGED
|
@@ -49,7 +49,7 @@ import { Svg as qo } from "./utils/svg/svg.component.js";
|
|
|
49
49
|
import { Text as Jo } from "./components/text/text.component.js";
|
|
50
50
|
import { UserPanel as Oo } from "./components/user-panel/user-panel.component.js";
|
|
51
51
|
import { Warranty as Vo } from "./components/warranty/warranty.component.js";
|
|
52
|
-
import './assets/main-
|
|
52
|
+
import './assets/main-DZmlIs7j.css';export {
|
|
53
53
|
Z as AccordionTable,
|
|
54
54
|
$ as BottomBar,
|
|
55
55
|
H as Box,
|
package/dist/utils/types.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export interface Base {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
['data-testid']?: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const TEXT_PRESET: readonly ["page-info", "page-subtitle", "page-title", "sidebar-title", "step-title"];
|
|
15
|
+
export declare const TEXT_PRESET: readonly ["page-info", "page-subtitle", "page-title", "sidebar-title", "step-title", "under-submit", "under-submit-light"];
|
|
16
16
|
export type TextPreset = (typeof TEXT_PRESET)[number];
|
|
17
17
|
export type TagNames = keyof HTMLElementTagNameMap;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._Lined_553v9_1{text-decoration:underline}._Left_553v9_7{text-align:left}._Center_553v9_11{text-align:center}._Right_553v9_15{text-align:right}._Light_553v9_21{font-weight:var(--rm-ui-font-weight-light)}._Regular_553v9_25{font-weight:var(--rm-ui-font-weight-regular)}._Medium_553v9_29{font-weight:var(--rm-ui-font-weight-medium)}._Bold_553v9_33{font-weight:var(--rm-ui-font-weight-bold)}._BodyExtraSmall_553v9_39{font-size:var(--rm-ui-font-size-body-extra-small);line-height:var(--rm-ui-line-height-body-extra-small)}._BodySmall_553v9_44{font-size:var(--rm-ui-font-size-body-small);line-height:var(--rm-ui-line-height-body-small)}._Body_553v9_39{font-size:var(--rm-ui-font-size-body);line-height:var(--rm-ui-line-height-body)}._BodyLarge_553v9_54{font-size:var(--rm-ui-font-size-body-large);line-height:var(--rm-ui-line-height-body-large)}._HL1_553v9_59{font-size:var(--rm-ui-font-size-hl1);line-height:var(--rm-ui-line-height-hl1)}._HL2_553v9_64{font-size:var(--rm-ui-font-size-hl2);line-height:var(--rm-ui-line-height-hl2)}._HL3_553v9_69{font-size:var(--rm-ui-font-size-hl3);line-height:var(--rm-ui-line-height-hl3)}._HL4_553v9_74{font-size:var(--rm-ui-font-size-hl4);line-height:var(--rm-ui-line-height-hl4)}._HL5_553v9_79{font-size:var(--rm-ui-font-size-hl5);line-height:var(--rm-ui-line-height-hl5)}._TextPrimary_553v9_86{color:var(--rm-ui-color-text-primary)}._TextSecondary_553v9_90{color:var(--rm-ui-color-text-secondary)}._AccentPrimary_553v9_94{color:var(--rm-ui-color-accent-primary)}._AccentSecondary_553v9_98{color:var(--rm-ui-color-accent-secondary)}._ThemePrimary_553v9_102{color:var(--rm-ui-color-theme-primary)}._ThemeSecondary_553v9_106{color:var(--rm-ui-color-theme-secondary)}._Error_553v9_110{color:var(--rm-ui-color-error)}._Success_553v9_114{color:var(--rm-ui-color-success)}._Focus_553v9_118{color:var(--rm-ui-color-focus)}._Link_553v9_122{color:var(--rm-ui-color-link)}._Grey950_553v9_126{color:var(--rm-ui-grey-950)}._Grey900_553v9_130{color:var(--rm-ui-grey-900)}._Grey800_553v9_134{color:var(--rm-ui-grey-800)}._Grey700_553v9_138{color:var(--rm-ui-grey-700)}._Grey600_553v9_142{color:var(--rm-ui-grey-600)}._Grey500_553v9_146{color:var(--rm-ui-grey-500)}._Grey400_553v9_150{color:var(--rm-ui-grey-400)}._Grey300_553v9_154{color:var(--rm-ui-grey-300)}._Grey200_553v9_158{color:var(--rm-ui-grey-200)}._Grey100_553v9_162{color:var(--rm-ui-grey-100)}._Grey50_553v9_146{color:var(--rm-ui-grey-50)}
|