@kvell-group/ui 1.14.2 → 1.15.0

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 (141) hide show
  1. package/package.json +4 -7
  2. package/src/assets/arrow-left.svg +3 -0
  3. package/src/assets/calendar.svg +3 -0
  4. package/src/assets/card-logos/maestro.svg +8 -0
  5. package/src/assets/card-logos/mastercard.svg +5 -0
  6. package/src/assets/card-logos/mir.svg +10 -0
  7. package/src/assets/card-logos/unionpay.svg +4 -0
  8. package/src/assets/card-logos/visa-electron.svg +12 -0
  9. package/src/assets/card-logos/visa.svg +4 -0
  10. package/src/assets/error.svg +3 -0
  11. package/src/assets/fonts/password.woff2 +0 -0
  12. package/src/assets/lead-icon.svg +3 -0
  13. package/src/components/Button/Button.module.css +50 -0
  14. package/src/components/Button/Button.stories.tsx +90 -0
  15. package/src/components/Button/Button.tsx +25 -0
  16. package/src/components/Button/constants.ts +17 -0
  17. package/src/components/Button/index.ts +1 -0
  18. package/src/components/Button/types.ts +8 -0
  19. package/src/components/Inputs/CardInput/CardInput.stories.tsx +42 -0
  20. package/src/components/Inputs/CardInput/CardInput.tsx +28 -0
  21. package/src/components/Inputs/CardInput/index.ts +1 -0
  22. package/src/components/Inputs/CardInput/useCardLogo.ts +88 -0
  23. package/src/components/Inputs/CvvInput/CvvInput.module.css +12 -0
  24. package/src/components/Inputs/CvvInput/CvvInput.stories.tsx +42 -0
  25. package/src/components/Inputs/CvvInput/CvvInput.tsx +27 -0
  26. package/src/components/Inputs/CvvInput/index.ts +1 -0
  27. package/src/components/Inputs/Input.module.css +38 -0
  28. package/src/components/Inputs/Input.stories.tsx +44 -0
  29. package/src/components/Inputs/Input.tsx +20 -0
  30. package/src/components/Inputs/MaskedInput/MaskedInput.stories.tsx +58 -0
  31. package/src/components/Inputs/MaskedInput/MaskedInput.tsx +16 -0
  32. package/src/components/Inputs/MaskedInput/index.ts +1 -0
  33. package/src/components/Inputs/PasswordInput/PasswordInput.module.css +3 -0
  34. package/src/components/Inputs/PasswordInput/PasswordInput.stories.tsx +42 -0
  35. package/src/components/Inputs/PasswordInput/PasswordInput.tsx +26 -0
  36. package/src/components/Inputs/PasswordInput/index.ts +1 -0
  37. package/src/components/Inputs/index.ts +1 -0
  38. package/src/components/Inputs/types.ts +6 -0
  39. package/src/components/Loader/Loader.module.css +46 -0
  40. package/src/components/Loader/Loader.stories.tsx +39 -0
  41. package/src/components/Loader/Loader.tsx +36 -0
  42. package/src/components/Loader/constants.ts +8 -0
  43. package/src/components/Loader/index.ts +1 -0
  44. package/src/components/MainProvider/MantineProvider.tsx +15 -0
  45. package/src/components/MainProvider/index.ts +1 -0
  46. package/src/components/Modal/Modal.module.css +43 -0
  47. package/src/components/Modal/Modal.stories.tsx +83 -0
  48. package/src/components/Modal/Modal.tsx +10 -0
  49. package/src/components/Modal/index.ts +1 -0
  50. package/src/components/Switch/Switch.module.css +28 -0
  51. package/src/components/Switch/Switch.stories.tsx +39 -0
  52. package/src/components/Switch/Switch.tsx +19 -0
  53. package/src/components/Switch/index.tsx +1 -0
  54. package/src/components/Text/Text.stories.tsx +40 -0
  55. package/src/components/Text/Text.tsx +21 -0
  56. package/src/components/Text/index.ts +1 -0
  57. package/src/components/Text/types.ts +8 -0
  58. package/src/components/theme.ts +180 -0
  59. package/src/constants/font-variants.ts +31 -0
  60. package/src/constants/masks.ts +7 -0
  61. package/src/index.ts +17 -0
  62. package/src/styles/typography.module.css +76 -0
  63. package/src/vite-env.d.ts +2 -0
  64. package/dist/Input.module-CPh0cNNI.js +0 -9
  65. package/dist/assets/Button.css +0 -1
  66. package/dist/assets/CvvInput.css +0 -1
  67. package/dist/assets/Input.css +0 -1
  68. package/dist/assets/Loader.css +0 -1
  69. package/dist/assets/Modal.css +0 -1
  70. package/dist/assets/PasswordInput.css +0 -1
  71. package/dist/assets/Switch.css +0 -1
  72. package/dist/assets/typography.css +0 -1
  73. package/dist/clsx-OuTLNxxd.js +0 -16
  74. package/dist/components/Button/Button.d.ts +0 -19
  75. package/dist/components/Button/Button.js +0 -24
  76. package/dist/components/Button/constants.d.ts +0 -8
  77. package/dist/components/Button/constants.js +0 -15
  78. package/dist/components/Button/index.d.ts +0 -1
  79. package/dist/components/Button/index.js +0 -4
  80. package/dist/components/Button/types.d.ts +0 -5
  81. package/dist/components/Button/types.js +0 -1
  82. package/dist/components/Inputs/CardInput/CardInput.d.ts +0 -2
  83. package/dist/components/Inputs/CardInput/CardInput.js +0 -28
  84. package/dist/components/Inputs/CardInput/index.d.ts +0 -1
  85. package/dist/components/Inputs/CardInput/index.js +0 -4
  86. package/dist/components/Inputs/CardInput/useCardLogo.d.ts +0 -1
  87. package/dist/components/Inputs/CardInput/useCardLogo.js +0 -49
  88. package/dist/components/Inputs/CardInputTest.d.ts +0 -2
  89. package/dist/components/Inputs/CardInputTest.js +0 -23
  90. package/dist/components/Inputs/CvvInput/CvvInput.d.ts +0 -2
  91. package/dist/components/Inputs/CvvInput/CvvInput.js +0 -21
  92. package/dist/components/Inputs/CvvInput/index.d.ts +0 -1
  93. package/dist/components/Inputs/CvvInput/index.js +0 -4
  94. package/dist/components/Inputs/Input.d.ts +0 -4
  95. package/dist/components/Inputs/Input.js +0 -11
  96. package/dist/components/Inputs/MaskedInput/MaskedInput.d.ts +0 -2
  97. package/dist/components/Inputs/MaskedInput/MaskedInput.js +0 -15
  98. package/dist/components/Inputs/MaskedInput/index.d.ts +0 -1
  99. package/dist/components/Inputs/MaskedInput/index.js +0 -4
  100. package/dist/components/Inputs/PasswordInput/PasswordInput.d.ts +0 -4
  101. package/dist/components/Inputs/PasswordInput/PasswordInput.js +0 -18
  102. package/dist/components/Inputs/PasswordInput/index.d.ts +0 -1
  103. package/dist/components/Inputs/PasswordInput/index.js +0 -4
  104. package/dist/components/Inputs/index.d.ts +0 -1
  105. package/dist/components/Inputs/index.js +0 -4
  106. package/dist/components/Inputs/types.d.ts +0 -3
  107. package/dist/components/Inputs/types.js +0 -1
  108. package/dist/components/Loader/Loader.d.ts +0 -7
  109. package/dist/components/Loader/Loader.js +0 -25
  110. package/dist/components/Loader/constants.d.ts +0 -5
  111. package/dist/components/Loader/constants.js +0 -8
  112. package/dist/components/Loader/index.d.ts +0 -1
  113. package/dist/components/Loader/index.js +0 -4
  114. package/dist/components/MainProvider/MantineProvider.d.ts +0 -2
  115. package/dist/components/MainProvider/MantineProvider.js +0 -15
  116. package/dist/components/MainProvider/index.d.ts +0 -1
  117. package/dist/components/MainProvider/index.js +0 -4
  118. package/dist/components/Modal/Modal.d.ts +0 -4
  119. package/dist/components/Modal/Modal.js +0 -15
  120. package/dist/components/Modal/index.d.ts +0 -1
  121. package/dist/components/Modal/index.js +0 -4
  122. package/dist/components/Switch/Switch.d.ts +0 -4
  123. package/dist/components/Switch/Switch.js +0 -18
  124. package/dist/components/Switch/index.d.ts +0 -1
  125. package/dist/components/Switch/index.js +0 -4
  126. package/dist/components/Text/Text.d.ts +0 -7
  127. package/dist/components/Text/Text.js +0 -15
  128. package/dist/components/Text/index.d.ts +0 -1
  129. package/dist/components/Text/index.js +0 -4
  130. package/dist/components/Text/types.d.ts +0 -5
  131. package/dist/components/Text/types.js +0 -1
  132. package/dist/components/theme.d.ts +0 -2
  133. package/dist/components/theme.js +0 -184
  134. package/dist/constants/font-variants.d.ts +0 -10
  135. package/dist/constants/font-variants.js +0 -26
  136. package/dist/constants/masks.d.ts +0 -4
  137. package/dist/constants/masks.js +0 -7
  138. package/dist/main.d.ts +0 -14
  139. package/dist/main.js +0 -31
  140. package/dist/typography.module-krUfTmwf.js +0 -14
  141. /package/{dist → src}/assets/card.svg +0 -0
@@ -0,0 +1,21 @@
1
+ import type { TextProps as TextBaseProps } from '@mantine/core'
2
+ import { Text as TextBase } from '@mantine/core'
3
+ import { forwardRef, ReactNode, Ref } from 'react'
4
+
5
+ import classesNames from '../../styles/typography.module.css'
6
+ import type { TextVariants } from './types'
7
+
8
+ // ----------------------------------------------------------------------
9
+
10
+ type TextProps = Omit<TextBaseProps, 'variant'> & {
11
+ children: ReactNode
12
+ variant?: TextVariants
13
+ }
14
+
15
+ export const Text = forwardRef((props: TextProps, ref: Ref<HTMLParagraphElement>) => (
16
+ <TextBase
17
+ ref={ref}
18
+ {...props}
19
+ classNames={{ root: classesNames[props.variant || 'text'] }}
20
+ />
21
+ ))
@@ -0,0 +1 @@
1
+ export { Text } from './Text'
@@ -0,0 +1,8 @@
1
+ import { FontVariants as FontVariantsConstants } from '../../constants/font-variants'
2
+ import type { TextProps as TextBaseProps } from '@mantine/core'
3
+
4
+ // ----------------------------------------------------------------------
5
+
6
+ type FontVariantsConstantsType = typeof FontVariantsConstants
7
+
8
+ export type TextVariants = TextBaseProps['variant'] | FontVariantsConstantsType[number]
@@ -0,0 +1,180 @@
1
+ import { colorsTuple, MantineThemeOverride } from '@mantine/core'
2
+
3
+ // ----------------------------------------------------------------------
4
+
5
+ export const theme: MantineThemeOverride = {
6
+ focusRing: 'never',
7
+ scale: 1, //default value
8
+ fontSmoothing: true, //default value
9
+ // white: 'ffffff',
10
+ black: '#14151a',
11
+ colors: {
12
+ primary: colorsTuple('#14151a'),
13
+ secondary: colorsTuple('#ffffff'),
14
+ tertiary: colorsTuple('#0a0f290a'),
15
+
16
+ //borders
17
+ 'border-action-normal': colorsTuple('#dee0e3'),
18
+ 'border-action-destructive': colorsTuple('#f7c3c0'),
19
+ 'border-base-alpha': colorsTuple('#0a0f2914'),
20
+
21
+ //buttons
22
+ 'background-button-tertiary': colorsTuple('#0a0f290a'),
23
+ 'background-button-primary-disabled': colorsTuple('#e9eaec'),
24
+
25
+ //icons
26
+ 'icon-base-secondary': colorsTuple('#0f132499'),
27
+ 'icon-base-tertiary': colorsTuple('#0D112666'),
28
+ 'icon-status-success': colorsTuple('#26BD6C'),
29
+ // icon/base/secondary
30
+
31
+ //text
32
+ 'text-base-secondary': colorsTuple('#0f132499'),
33
+ 'text-base-tertiary': colorsTuple('#0d112666'),
34
+ 'text-base-quaternary': colorsTuple('#0a0f2940'),
35
+ 'text-status-destructive': colorsTuple('#e6483d'),
36
+
37
+ //toggle
38
+ 'background-toggle-active': colorsTuple('#26bd6c'),
39
+ 'background-toggle-default': colorsTuple('#babdc5'),
40
+
41
+ //typography
42
+ 'typography-secondary': colorsTuple('#91989e'),
43
+ },
44
+ primaryShade: 6, // { light: 6, dark: 8 } default mantine by theme
45
+ primaryColor: 'primary',
46
+ /* variantColorResolver: ({ color, variant, gradient, theme }) => {
47
+ if (variant === 'primary') {
48
+ return {
49
+ background: 'var(--mantine-color-red-9)',
50
+ hover: 'var(--mantine-color-red-8)',
51
+ color: 'var(--mantine-color-white)',
52
+ border: 'none',
53
+ }
54
+ }
55
+
56
+ return {
57
+ background: 'var(--mantine-color-red-9)',
58
+ hover: 'var(--mantine-color-red-8)',
59
+ color: 'var(--mantine-color-white)',
60
+ border: 'none',
61
+ }
62
+ }, //color by variant */
63
+ autoContrast: false, //default value
64
+ luminanceThreshold: 0.3, //default value
65
+ fontFamily: 'Inter, sans-serif',
66
+ /* headings: {
67
+ fontFamily: 'Inter',
68
+ fontWeight: '600',
69
+ textWrap: 'wrap', // 'nowrap', 'balance', 'pretty', 'stable',
70
+ sizes: {
71
+ h1: { fontSize: '24px', fontWeight: '600', lineHeight: '1.3' }, //{ fontSize: string; fontWeight?: string; lineHeight: string; }
72
+ //..
73
+ },
74
+ }, */
75
+ radius: {
76
+ // same name from blank and mantine
77
+ xl: '0.75rem',
78
+ xs: '0.25rem',
79
+ sm: '0.375rem',
80
+ md: '0.5rem',
81
+ lg: '0.625rem',
82
+ },
83
+ defaultRadius: 'xl',
84
+ spacing: {
85
+ //blank variables
86
+ h6: '-0.30000001192092896px',
87
+ 'body-m': '-0.20000000298023224px',
88
+ 'body-s': '-0.20000000298023224px',
89
+ 'body-l': '-0.20000000298023224px',
90
+ 'caption-l': '-0.10000000149011612px;',
91
+ 'caption-m': '0',
92
+ //mantine default variables
93
+ xs: '0.625rem',
94
+ sm: '0.75rem',
95
+ md: '1rem',
96
+ lg: '1.25rem',
97
+ xl: '2rem',
98
+ }, //for example
99
+ fontSizes: {
100
+ //blank variables
101
+ h6: '24px',
102
+ 'body-m': '18px',
103
+ 'body-l': '20px',
104
+ 'body-s': '16px',
105
+ 'caption-l': '14px',
106
+ 'caption-m': '12px',
107
+ // mantine default variables
108
+ xs: '0.75rem',
109
+ sm: '0.875rem',
110
+ md: '1rem',
111
+ lg: '1.125rem',
112
+ xl: '1.25rem',
113
+ }, //for example
114
+ lineHeights: {
115
+ //blank variables
116
+ h6: '32px',
117
+ 'body-m': '26px',
118
+ 'body-s': '24px',
119
+ 'body-l': '28px',
120
+ 'caption-l': '20px',
121
+ 'caption-m': '16px',
122
+ // mantine default variables
123
+ xs: '1.4',
124
+ sm: '1.45',
125
+ md: '1.55',
126
+ lg: '1.6',
127
+ xl: '1.65',
128
+ },
129
+ // mantine default variables
130
+ breakpoints: { xs: '36em', sm: '48em', md: '62em', lg: '75em', xl: '88em' },
131
+ shadows: {
132
+ //same name for mantine and
133
+ xs: '0px 1px 2px 0px #14151A0D',
134
+ // sm: '1px 1px 3px rgba(0, 0, 0, .25)',
135
+ // md: '1px 1px 3px rgba(0, 0, 0, .25)',
136
+ lg: '0px 3px 6px -2px #14151a0d, 0px 10px 16px -3px #14151a14',
137
+ // xl: '1px 1px 3px rgba(0, 0, 0, .25)',
138
+ }, //for example
139
+ respectReducedMotion: false, //default
140
+ cursorType: 'default',
141
+ defaultGradient: { from: 'black', to: 'yellow', deg: 25 }, //for example
142
+ // activeClassName: 'class-name', //for example
143
+ // focusClassName: 'class-name', //for example
144
+ /* components: {
145
+ Title: Title.extend({
146
+ classNames: { root: 'classnames' },
147
+ styles: {},
148
+ vars: { order: 5 },
149
+ defaultProps: {},
150
+ }), //for example
151
+ }, */
152
+ other: {
153
+ // any additional vars
154
+ /* usage:
155
+ import { createStyles } from '@mantine/core';
156
+
157
+ const useStyles = createStyles((theme) => ({
158
+ customBox: {
159
+ padding: theme.other.customSpacing,
160
+ backgroundColor: theme.other.brandColor,
161
+ },
162
+ }));
163
+
164
+ function MyComponent() {
165
+ const { classes } = useStyles();
166
+
167
+ return <div className={classes.customBox}>Hello Mantine</div>;
168
+ }
169
+
170
+ // theme-override.d.ts
171
+ import '@mantine/core';
172
+
173
+ declare module '@mantine/core' {
174
+ export interface MantineThemeOther {
175
+ customSpacing: string;
176
+ brandColor: string;
177
+ }
178
+ }*/
179
+ },
180
+ }
@@ -0,0 +1,31 @@
1
+ //heading
2
+ export const H6_BOLD_FONT_VARIANT = 'h6-bold' as const
3
+
4
+ //body
5
+ export const BODY_M_MEDIUM_FONT_VARIANT = 'body-m-medium' as const
6
+ export const BODY_M_BOLD_FONT_VARIANT = 'body-m-bold' as const
7
+ export const BODY_L_BOLD_FONT_VARIANT = 'body-l-bold' as const
8
+ export const BODY_S_MEDIUM_FONT_VARIANT = 'body-s-medium' as const
9
+ export const BODY_S_REGULAR_FONT_VARIANT = 'body-s-regular' as const
10
+
11
+ //caption
12
+ export const CAPTION_L_MEDIUM_FONT_VARIANT = 'caption-l-medium' as const
13
+ export const CAPTION_L_REGULAR_FONT_VARIANT = 'caption-l-regular' as const
14
+ export const CAPTION_M_REGULAR_FONT_VARIANT = 'caption-m-regular' as const
15
+
16
+ // ----------------------------------------------------------------------
17
+
18
+ export const FontVariants = [
19
+ //heading
20
+ H6_BOLD_FONT_VARIANT,
21
+ //body
22
+ BODY_L_BOLD_FONT_VARIANT,
23
+ BODY_M_MEDIUM_FONT_VARIANT,
24
+ BODY_M_BOLD_FONT_VARIANT,
25
+ BODY_S_MEDIUM_FONT_VARIANT,
26
+ BODY_S_REGULAR_FONT_VARIANT,
27
+ //caption
28
+ CAPTION_L_MEDIUM_FONT_VARIANT,
29
+ CAPTION_L_REGULAR_FONT_VARIANT,
30
+ CAPTION_M_REGULAR_FONT_VARIANT,
31
+ ]
@@ -0,0 +1,7 @@
1
+ export const CARD_NUMBER_MASK = '0000 0000 0000 0000 000' as const
2
+ export const CARD_CVV_MASK = '000' as const
3
+ export const CARD_EXPIRY_DATE_MASK = '00/00' as const
4
+
5
+ // ----------------------------------------------------------------------
6
+
7
+ export const PHONE_MASK = '+7 000 000 00 00' as const
package/src/index.ts ADDED
@@ -0,0 +1,17 @@
1
+ // constants
2
+ export { theme } from './components/theme'
3
+
4
+ // components
5
+ export { Button } from './components/Button'
6
+
7
+ //inputs
8
+ export { Input } from './components/Inputs'
9
+ export { CardInput } from './components/Inputs/CardInput'
10
+ export { MaskedInput } from './components/Inputs/MaskedInput'
11
+ export { PasswordInput } from './components/Inputs/PasswordInput'
12
+ export { CvvInput } from './components/Inputs/CvvInput'
13
+
14
+ export { Loader } from './components/Loader'
15
+ export { Modal } from './components/Modal'
16
+ export { Switch } from './components/Switch'
17
+ export { Text } from './components/Text'
@@ -0,0 +1,76 @@
1
+ /* heading */
2
+ .h6-bold {
3
+ font-family: var(--mantine-font-family);
4
+ font-weight: 700;
5
+ font-size: var(--mantine-font-size-h6);
6
+ line-height: var(--mantine-line-height-h6);
7
+ letter-spacing: var(--mantine-spacing-h6);
8
+ }
9
+
10
+ /* body */
11
+ .body-l-bold {
12
+ font-family: var(--mantine-font-family);
13
+ font-weight: 700;
14
+ font-size: var(--mantine-font-size-body-l);
15
+ line-height: var(--mantine-line-height-body-l);
16
+ letter-spacing: var(--mantine-spacing-body-l);
17
+ }
18
+
19
+ .body-m-bold {
20
+ font-family: var(--mantine-font-family);
21
+ font-weight: 700;
22
+ font-size: var(--mantine-font-size-body-m);
23
+ line-height: var(--mantine-line-height-body-m);
24
+ letter-spacing: var(--mantine-spacing-body-m);
25
+ }
26
+
27
+ h2.body-m-medium,
28
+ .body-m-medium {
29
+ font-family: var(--mantine-font-family);
30
+ font-weight: 500;
31
+ font-size: var(--mantine-font-size-body-m);
32
+ line-height: var(--mantine-line-height-body-m);
33
+ letter-spacing: var(--mantine-spacing-body-m);
34
+ }
35
+
36
+ .body-s-medium {
37
+ font-family: var(--mantine-font-family);
38
+ font-weight: 500;
39
+ font-size: var(--mantine-font-size-body-s);
40
+ line-height: var(--mantine-line-height-body-s);
41
+ letter-spacing: var(--mantine-spacing-body-s);
42
+ }
43
+
44
+ .body-s-regular {
45
+ font-family: var(--mantine-font-family);
46
+ font-weight: 400;
47
+ font-size: var(--mantine-font-size-body-s);
48
+ line-height: var(--mantine-line-height-body-s);
49
+ letter-spacing: var(--mantine-spacing-body-s);
50
+ }
51
+
52
+ /* caption */
53
+ .caption-l-medium {
54
+ font-family: var(--mantine-font-family);
55
+ font-weight: 500;
56
+ font-size: var(--mantine-font-size-caption-l);
57
+ line-height: var(--mantine-line-height-caption-l);
58
+ letter-spacing: var(--mantine-spacing-caption-l);
59
+ }
60
+
61
+ p.caption-l-regular,
62
+ .caption-l-regular {
63
+ font-family: var(--mantine-font-family);
64
+ font-weight: 400;
65
+ font-size: var(--mantine-font-size-caption-l);
66
+ line-height: var(--mantine-line-height-caption-l);
67
+ letter-spacing: var(--mantine-spacing-caption-l);
68
+ }
69
+
70
+ .caption-m-regular {
71
+ font-family: var(--mantine-font-family);
72
+ font-weight: 400;
73
+ font-size: var(--mantine-font-size-caption-m);
74
+ line-height: var(--mantine-line-height-caption-m);
75
+ letter-spacing: var(--mantine-spacing-caption-m);
76
+ }
@@ -0,0 +1,2 @@
1
+ /// <reference types="vite/client" />
2
+ /// <reference types="vite-plugin-svgr/client" />
@@ -1,9 +0,0 @@
1
- import './assets/Input.css';const s = "_input_1d20c_1", t = "_section_1d20c_19", c = "_label_1d20c_24", e = "_error_1d20c_28", n = {
2
- input: s,
3
- section: t,
4
- label: c,
5
- error: e
6
- };
7
- export {
8
- n as b
9
- };
@@ -1 +0,0 @@
1
- .m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_77c9d27d{--button-height-xs: 30px;--button-height-sm: 36px;--button-height-md: 42px;--button-height-lg: 50px;--button-height-xl: 60px;--button-height-compact-xs: 22px;--button-height-compact-sm: 26px;--button-height-compact-md: 30px;--button-height-compact-lg: 34px;--button-height-compact-xl: 40px;--button-padding-x-xs: 14px;--button-padding-x-sm: 18px;--button-padding-x-md: 22px;--button-padding-x-lg: 26px;--button-padding-x-xl: 32px;--button-padding-x-compact-xs: 7px;--button-padding-x-compact-sm: 8px;--button-padding-x-compact-md: 10px;--button-padding-x-compact-lg: 12px;--button-padding-x-compact-xl: 14px;--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:1px solid transparent;transform:none}:where([data-mantine-color-scheme=light]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-gray-5);background:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){color:var(--mantine-color-dark-3);background:var(--mantine-color-dark-6)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover: hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media (hover: none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: 1px;display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_70be2a01{--section-height-xs: 30px;--section-height-sm: 36px;--section-height-md: 42px;--section-height-lg: 50px;--section-height-xl: 60px;--section-height-compact-xs: 22px;--section-height-compact-sm: 26px;--section-height-compact-md: 30px;--section-height-compact-lg: 34px;--section-height-compact-xl: 40px;--section-padding-x-xs: 14px;--section-padding-x-sm: 18px;--section-padding-x-md: 22px;--section-padding-x-lg: 26px;--section-padding-x-xl: 32px;--section-padding-x-compact-xs: 7px;--section-padding-x-compact-sm: 8px;--section-padding-x-compact-md: 10px;--section-padding-x-compact-lg: 12px;--section-padding-x-compact-xl: 14px;--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}._root_ckr0p_1{box-shadow:var(--mantine-shadow-xs);--button-height-sm: 2rem;--button-height-md: 2.5rem;--button-height-lg: 3rem;--button-padding-x-sm: 1rem;--button-padding-x-md: 1rem;--button-padding-x-lg: 1rem;font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-caption-l);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-spacing-caption-l)}._root_ckr0p_1[data-variant=primary]{background-color:var(--mantine-color-primary-0);color:var(--mantine-color-white)}._root_ckr0p_1[data-variant=secondary]{background-color:var(--mantine-color-secondary-0);color:var(--mantine-color-primary);border:1px solid var(--mantine-color-border-action-normal-0)}._root_ckr0p_1[data-variant=secondary] ._loader_ckr0p_27{--button-color: var(--mantine-color-gray-5)}._root_ckr0p_1[data-variant=tertiary]{background-color:var(--mantine-color-tertiary-0);color:var(--mantine-color-primary)}._root_ckr0p_1[data-variant=tertiary] ._loader_ckr0p_27{--button-color: var(--mantine-color-gray-5)}._root_ckr0p_1:disabled,._root_ckr0p_1[data-disabled]{background-color:var(--mantine-color-background-button-primary-disabled-0);color:var(--mantine-color-text-base-quaternary-0)}._section_ckr0p_48{--mantine-spacing-xs: .25rem}
@@ -1 +0,0 @@
1
- @font-face{font-family:Password;src:local("Password"),url(data:font/woff2;base64,d09GMgABAAAAAAVYAA0AAAAAJSAAAAUBAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGh4GYACCUhEICq8YpR4LgU4AATYCJAOBVAQgBY8hB4FuG24eEdWkAsm+OjAPyTNn7SvElrLSBE3XkiIe+b2FmyxZS458FA/Pr+P/1545cyG1J7Je1sdohPKqMpX4Q4FDIhqAA8Tl4M1R54on9s4R2xDjAs/eD+v8Ka1BfLjz6FIA/R96WfxvLlVXGIIESP47WNjuWBkd+6dj+5d8lj6pKe8gvDXiMvUbtQLS1v474JE/cG1YGlcrpenbTzCYiYZ71dIpAv+gsQBFIxYLclgjmPFwBtgtEYO4HAI+//jzBPhq85eLcLcuUIUWZEJuWEjIkCVxQyFlMgCYsOc1wydIgBMEAKzekURgqb6+kIU0lxKQjWQj6BPIYU9X3o92o1ygSzIVZcpkONbXHg390NfnjQZ////w7fpv1woAooQARIYMoS7IU1FSuvSzLgetW0T/gMXiiWQqncnm8oViCZBYECVZUTW9XKnW6o2mKMmKqumGadmO6/lBGMVJmuVFWdVN2/XDCACdDQ1PM4jG/72mjvze/4QxSm5RcQNQBwoQIjdP6ZPXC3/C42VbhNENqy0dGt52bniMrC8bvLT7i5N7/srLu14ndj4VnuLPeOW54hxYcSncI8cRvRHfc698ehHb+YJdI/9/PL6/LCsEywrVY0abDtFXhAAADG4vuIOc+6u602HPL/y1rDI5Kkmils9IUGbJYXJHlDbGTBEEdwr9wSd2kfgkmnooGdGomJCBZfrinBBtM91GqDaKTKmzyFW7i6TZDyjkEShRHf0oNSHOo0xLfIdy5VkVKgxl36LS8vwjqixI51CtK/2DGhOKA4c3Glf8KBepHFMBEDpsQKbGEeQ6XEUy3iMUSvyJEh1RoNTumIIyE+MeyjXEH6jwLmtBpTO5iipHUw2qzU1vUWN30f5eGm0vblpRAeIEnqUZAo1ZrSWP9ESABITJDMfly8e2XXrqJdzCcjWDYSnD2B7xSqiLCAaXA16uS8IAa4rWa2Q8eB1Bn3J3nWosltyay4f1zPkIIIajU0kTDOukDVdbIB2xIYB2ryDQLjyDIa87U1JaGa+GLrYwV3lkgbTgHnDX5mFUGYI7xtntFMZbJZsijOdyLgNgCOGwEYTWpRJyyx8sGM8yDXEBncavD8blAgEjMhYyRH1i1kNzPash/qVYwnTzfAMrKczSOoqHlsx6Bc9yhM2TORLVs4vPDFBbBmYW0FSWRtRBPMNGI3CMETDzEhERK39j3v+PXwvaNFi9g+uAm/9N0/R4XNOlr6YLgLM5ummCM+No+ZYkkXVsdI6xdvutsdiDQfZijBGFRqdA19EhTJSLkjgey01OY2c8/EPZ9TEzKZqu4Fm6lZ6UJJwcd0KPEfmURqaqYbSf6jhOr832k0cCmqxKadzb1k2nWTDlqWniEDsK6iCtdnAeh1qE8KxcP6C9cPWy5eq65oc/eGEwWLBxiwpGC8wVdZms1z+yCkqHKfiwuSAmAgQZLi6xnjl1F9WaThVbTtFuy/E8xCIQGgyL7rzUnKWhm16mULM6GvqnOEbgMbRHGgKdhNmU+plUSnD5d2xu9e9ymK7IuYV/5UzwjHtqBE8BP9knzlUJcAAAAJyIRAbv9uoM62UaIWVWR99HpSrVatSqY2Pn4OTi5uHl4xcQFBIWERUTl5CUkpaRlZNXUFQCEGECkUSmUGl0ZRVVNXUNTWMTUzNzC6fOnLtw6cq1G7fI3a2sbdy59+DRk2cvXr159yGRyvz49eUb) format("woff2");font-weight:100}._input_17dgl_9{font-family:Password,monospace;font-display:swap}
@@ -1 +0,0 @@
1
- ._input_1d20c_1{border-radius:var(--mantine-radius-xl);border:1px solid var(--mantine-color-border-action-normal-0);box-shadow:var(--mantine-shadows-xs);color:var(--mantine-color-text-base-tertiary-0);--input-height: 2.5rem}._input_1d20c_1[data-error]{border:1px solid var(--mantine-color-border-action-destructive-0);margin-bottom:-.125px}[data-position=left]~._input_1d20c_1{--input-padding-inline-start: 2.5rem}._section_1d20c_19{--right-section-end: .75rem;--left-section-start: .25rem}._label_1d20c_24{margin-bottom:.2rem}._error_1d20c_28{color:var(--mantine-color-text-status-destructive-0);padding-left:.25rem}._error_1d20c_28:before{content:url("data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.50001%2014.6666C4.81801%2014.6666%201.83334%2011.6819%201.83334%207.99992C1.83334%204.31792%204.81801%201.33325%208.50001%201.33325C12.182%201.33325%2015.1667%204.31792%2015.1667%207.99992C15.1667%2011.6819%2012.182%2014.6666%208.50001%2014.6666ZM8.50001%2013.3333C9.9145%2013.3333%2011.2711%2012.7713%2012.2712%2011.7712C13.2714%2010.771%2013.8333%209.41441%2013.8333%207.99992C13.8333%206.58543%2013.2714%205.22888%2012.2712%204.22868C11.2711%203.22849%209.9145%202.66659%208.50001%202.66659C7.08552%202.66659%205.72897%203.22849%204.72877%204.22868C3.72858%205.22888%203.16668%206.58543%203.16668%207.99992C3.16668%209.41441%203.72858%2010.771%204.72877%2011.7712C5.72897%2012.7713%207.08552%2013.3333%208.50001%2013.3333ZM7.83334%204.66659H9.16668V5.99992H7.83334V4.66659ZM7.83334%207.33325H9.16668V11.3333H7.83334V7.33325Z'%20fill='currentColor'%20style='fill:%23E6483D;fill:color(display-p3%200.9020%200.2824%200.2392);fill-opacity:1;'/%3e%3c/svg%3e");position:relative;top:3px;left:-.25rem}
@@ -1 +0,0 @@
1
- ._container_6ptye_1{position:relative;display:inline-block}._container_6ptye_1[data-size=auto]{width:100%;height:100%}._container_6ptye_1[data-size=sm]{width:1.5rem;height:1.5rem}._container_6ptye_1[data-size=md]{width:2rem;height:2rem}._container_6ptye_1[data-size=lg]{width:4rem;height:4rem}._part_6ptye_26{position:absolute;left:45%;top:36%;width:8%;height:26%;background:var(--mantine-color-typography-secondary-0);opacity:0;border-radius:3rem;box-shadow:0 0 3px #0003;animation:_fade_6ptye_1 1s linear infinite}@keyframes _fade_6ptye_1{0%{opacity:1}to{opacity:.25}}
@@ -1 +0,0 @@
1
- ._root_3afvh_1{box-shadow:var(--mantine-shadows-lg);width:100%}._content_3afvh_6{border-radius:var(--mantine-radius-xl);border:1px solid var(--mantine-color-border-action-normal-0);white-space:pre-wrap;padding:.5rem}@media (max-width: 36em){._content_3afvh_6{width:100%;border-radius:var(--mantine-radius-xl) var(--mantine-radius-xl) 0 0}}._header_3afvh_18{padding-bottom:.25rem}@media (max-width: 36em){._inner_3afvh_22{align-items:end;padding:0;width:100%}}button._close_3afvh_30{position:absolute;right:.25rem;top:.4rem;display:flex;background-color:var(--mantine-color-background-button-tertiary-0);border-radius:50%;--cb-size: 1.5rem}button._close_3afvh_30>svg{color:var(--mantine-color-icon-base-secondary-0);scale:.75}
@@ -1 +0,0 @@
1
- ._section_1lzoc_1[data-position=right]{margin-right:0}
@@ -1 +0,0 @@
1
- ._track_h9xnu_1{--switch-height: 1rem;--switch-width: calc(1.75rem * var(--mantine-scale));--switch-color: var(--mantine-color-background-toggle-active-0)}input:not(:checked)+._track_h9xnu_1{background-color:var(--mantine-color-background-toggle-default-0)}._description_h9xnu_11{margin-top:-1px;--label-offset-start: 1rem;color:var(--mantine-color-primary)}._error_h9xnu_17{color:var(--mantine-color-text-status-destructive-0);padding-left:.25rem;margin-top:0}._error_h9xnu_17:before{content:url("data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.50001%2014.6666C4.81801%2014.6666%201.83334%2011.6819%201.83334%207.99992C1.83334%204.31792%204.81801%201.33325%208.50001%201.33325C12.182%201.33325%2015.1667%204.31792%2015.1667%207.99992C15.1667%2011.6819%2012.182%2014.6666%208.50001%2014.6666ZM8.50001%2013.3333C9.9145%2013.3333%2011.2711%2012.7713%2012.2712%2011.7712C13.2714%2010.771%2013.8333%209.41441%2013.8333%207.99992C13.8333%206.58543%2013.2714%205.22888%2012.2712%204.22868C11.2711%203.22849%209.9145%202.66659%208.50001%202.66659C7.08552%202.66659%205.72897%203.22849%204.72877%204.22868C3.72858%205.22888%203.16668%206.58543%203.16668%207.99992C3.16668%209.41441%203.72858%2010.771%204.72877%2011.7712C5.72897%2012.7713%207.08552%2013.3333%208.50001%2013.3333ZM7.83334%204.66659H9.16668V5.99992H7.83334V4.66659ZM7.83334%207.33325H9.16668V11.3333H7.83334V7.33325Z'%20fill='currentColor'%20style='fill:%23E6483D;fill:color(display-p3%200.9020%200.2824%200.2392);fill-opacity:1;'/%3e%3c/svg%3e");position:relative;top:3px;left:-.25rem}
@@ -1 +0,0 @@
1
- ._h6-bold_k821l_2{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-h6);line-height:var(--mantine-line-height-h6);letter-spacing:var(--mantine-spacing-h6)}._body-l-bold_k821l_11{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-body-l);line-height:var(--mantine-line-height-body-l);letter-spacing:var(--mantine-spacing-body-l)}._body-m-bold_k821l_19{font-family:var(--mantine-font-family);font-weight:700;font-size:var(--mantine-font-size-body-m);line-height:var(--mantine-line-height-body-m);letter-spacing:var(--mantine-spacing-body-m)}h2._body-m-medium_k821l_27,._body-m-medium_k821l_27{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-body-m);line-height:var(--mantine-line-height-body-m);letter-spacing:var(--mantine-spacing-body-m)}._body-s-medium_k821l_36{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-body-s);line-height:var(--mantine-line-height-body-s);letter-spacing:var(--mantine-spacing-body-s)}._body-s-regular_k821l_44{font-family:var(--mantine-font-family);font-weight:400;font-size:var(--mantine-font-size-body-s);line-height:var(--mantine-line-height-body-s);letter-spacing:var(--mantine-spacing-body-s)}._caption-l-medium_k821l_53{font-family:var(--mantine-font-family);font-weight:500;font-size:var(--mantine-font-size-caption-l);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-spacing-caption-l)}p._caption-l-regular_k821l_61,._caption-l-regular_k821l_61{font-family:var(--mantine-font-family);font-weight:400;font-size:var(--mantine-font-size-caption-l);line-height:var(--mantine-line-height-caption-l);letter-spacing:var(--mantine-spacing-caption-l)}._caption-m-regular_k821l_70{font-family:var(--mantine-font-family);font-weight:400;font-size:var(--mantine-font-size-caption-m);line-height:var(--mantine-line-height-caption-m);letter-spacing:var(--mantine-spacing-caption-m)}
@@ -1,16 +0,0 @@
1
- function a(r) {
2
- var f, n, t = "";
3
- if (typeof r == "string" || typeof r == "number") t += r;
4
- else if (typeof r == "object") if (Array.isArray(r)) {
5
- var o = r.length;
6
- for (f = 0; f < o; f++) r[f] && (n = a(r[f])) && (t && (t += " "), t += n);
7
- } else for (n in r) r[n] && (t && (t += " "), t += n);
8
- return t;
9
- }
10
- function i() {
11
- for (var r, f, n = 0, t = "", o = arguments.length; n < o; n++) (r = arguments[n]) && (f = a(r)) && (t && (t += " "), t += f);
12
- return t;
13
- }
14
- export {
15
- i as c
16
- };
@@ -1,19 +0,0 @@
1
- import { ButtonProps as BaseButtonProps } from '@mantine/core';
2
- import { ExtendedButtonVariant } from './types';
3
- type ButtonProps = BaseButtonProps & {
4
- variant?: ExtendedButtonVariant;
5
- };
6
- export declare const Button: (<C = "button">(props: import('@mantine/core').PolymorphicComponentProps<C, ButtonProps>) => React.ReactElement) & Omit<import('react').FunctionComponent<(BaseButtonProps & {
7
- variant?: ExtendedButtonVariant;
8
- } & {
9
- component?: any;
10
- } & Omit<Omit<any, "ref">, keyof BaseButtonProps | "component"> & {
11
- ref?: any;
12
- renderRoot?: (props: any) => any;
13
- }) | (BaseButtonProps & {
14
- variant?: ExtendedButtonVariant;
15
- } & {
16
- component: React.ElementType;
17
- renderRoot?: (props: Record<string, any>) => any;
18
- })>, never> & Record<string, never>;
19
- export {};
@@ -1,24 +0,0 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import { createPolymorphicComponent as e, Button as n } from "@mantine/core";
3
- import { forwardRef as m } from "react";
4
- import '../../assets/Button.css';const p = "_root_ckr0p_1", _ = "_loader_ckr0p_27", a = "_section_ckr0p_48", i = {
5
- root: p,
6
- loader: _,
7
- section: a
8
- }, u = e(
9
- m((o, t) => {
10
- const { size: r = "md", ...s } = o;
11
- return /* @__PURE__ */ c(
12
- n,
13
- {
14
- ref: t,
15
- size: r,
16
- ...s,
17
- classNames: i
18
- }
19
- );
20
- })
21
- );
22
- export {
23
- u as Button
24
- };
@@ -1,8 +0,0 @@
1
- export declare const PRIMARY_BUTTON_VARIANT: "primary";
2
- export declare const SECONDARY_BUTTON_VARIANT: "secondary";
3
- export declare const TERTIARY_BUTTON_VARIANT: "tertiary";
4
- export declare const ButtonVariants: ("primary" | "secondary" | "tertiary")[];
5
- export declare const SM_BUTTON_SIZE: "sm";
6
- export declare const MD_BUTTON_SIZE: "md";
7
- export declare const LG_BUTTON_SIZE: "lg";
8
- export declare const ButtonSizes: ("sm" | "md" | "lg")[];
@@ -1,15 +0,0 @@
1
- const T = "primary", t = "secondary", n = "tertiary", N = [
2
- T,
3
- t,
4
- n
5
- ], o = "sm", s = "md", _ = "lg", c = [o, s, _];
6
- export {
7
- c as ButtonSizes,
8
- N as ButtonVariants,
9
- _ as LG_BUTTON_SIZE,
10
- s as MD_BUTTON_SIZE,
11
- T as PRIMARY_BUTTON_VARIANT,
12
- t as SECONDARY_BUTTON_VARIANT,
13
- o as SM_BUTTON_SIZE,
14
- n as TERTIARY_BUTTON_VARIANT
15
- };
@@ -1 +0,0 @@
1
- export { Button } from './Button';
@@ -1,4 +0,0 @@
1
- import { Button as r } from "./Button.js";
2
- export {
3
- r as Button
4
- };
@@ -1,5 +0,0 @@
1
- import { ButtonVariants } from './constants';
2
- import { ButtonVariant } from '@mantine/core';
3
- type ButtonVariantsTypes = typeof ButtonVariants;
4
- export type ExtendedButtonVariant = ButtonVariant | ButtonVariantsTypes[number];
5
- export {};
@@ -1 +0,0 @@
1
-
@@ -1,2 +0,0 @@
1
- import { MaskedInputProps } from '../types';
2
- export declare const CardInput: import('react').ForwardRefExoticComponent<MaskedInputProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,28 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import * as e from "react";
3
- import { forwardRef as i } from "react";
4
- import { MaskedInput as a } from "../MaskedInput/MaskedInput.js";
5
- import { useCardLogo as m } from "./useCardLogo.js";
6
- import { CARD_NUMBER_MASK as _ } from "../../../constants/masks.js";
7
- import { IMask as f } from "react-imask";
8
- const s = (t) => /* @__PURE__ */ e.createElement("svg", { width: 20, height: 20, viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M2.49984 2.5H17.4998C17.7209 2.5 17.9328 2.5878 18.0891 2.74408C18.2454 2.90036 18.3332 3.11232 18.3332 3.33333V16.6667C18.3332 16.8877 18.2454 17.0996 18.0891 17.2559C17.9328 17.4122 17.7209 17.5 17.4998 17.5H2.49984C2.27882 17.5 2.06686 17.4122 1.91058 17.2559C1.7543 17.0996 1.6665 16.8877 1.6665 16.6667V3.33333C1.6665 3.11232 1.7543 2.90036 1.91058 2.74408C2.06686 2.5878 2.27882 2.5 2.49984 2.5ZM16.6665 9.16667H3.33317V15.8333H16.6665V9.16667ZM16.6665 7.5V4.16667H3.33317V7.5H16.6665ZM11.6665 12.5H14.9998V14.1667H11.6665V12.5Z", fill: "currentColor", fillOpacity: 0.4, style: {
9
- fill: "#0D1126",
10
- fill: "color(display-p3 0.0510 0.0667 0.1490)",
11
- fillOpacity: 0.4
12
- } })), c = f.createMask({ mask: _ }), H = i((t, l) => {
13
- const r = m(t.value);
14
- return /* @__PURE__ */ o(
15
- a,
16
- {
17
- ref: l,
18
- ...t,
19
- mask: c,
20
- rightSection: r && /* @__PURE__ */ o(r, {}),
21
- leftSection: /* @__PURE__ */ o(s, {}),
22
- placeholder: "____ ____ ____ ____"
23
- }
24
- );
25
- });
26
- export {
27
- H as CardInput
28
- };
@@ -1 +0,0 @@
1
- export { CardInput } from './CardInput';
@@ -1,4 +0,0 @@
1
- import { CardInput as p } from "./CardInput.js";
2
- export {
3
- p as CardInput
4
- };
@@ -1 +0,0 @@
1
- export declare const useCardLogo: (cardPan?: string) => string | null;