math-main-components 0.0.196 → 0.0.198

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 (261) hide show
  1. package/dist/components/Accordeon/Accordeon.d.ts +4 -1
  2. package/dist/components/Accordeon/Accordeon.stories.d.ts +13 -0
  3. package/dist/components/Button/Button.d.ts +3 -3
  4. package/dist/components/Button/Button.stories.d.ts +13 -0
  5. package/dist/components/{AuthButton/AuthButton.d.ts → Button2/Button2.d.ts} +2 -2
  6. package/dist/components/Button2/Button2.stories.d.ts +13 -0
  7. package/dist/components/Button2/index.d.ts +1 -0
  8. package/dist/components/CardButton/CardButton.d.ts +3 -3
  9. package/dist/components/CardButton/CardButton.stories.d.ts +13 -0
  10. package/dist/components/Checkbox/Checkbox.stories.d.ts +13 -0
  11. package/dist/components/ChooseRole/ChooseRole.d.ts +3 -4
  12. package/dist/components/ChooseRole/ChooseRole.stories.d.ts +13 -0
  13. package/dist/components/ChooseRole/index.d.ts +1 -1
  14. package/dist/components/CopyCode/CopyCode.d.ts +3 -4
  15. package/dist/components/CopyCode/CopyCode.stories.d.ts +13 -0
  16. package/dist/components/EmptyCard/EmptyCard.stories.d.ts +13 -0
  17. package/dist/components/FormButton/FormButton.d.ts +4 -4
  18. package/dist/components/FormButton/FormButton.stories.d.ts +13 -0
  19. package/dist/components/FormText/FormText.stories.d.ts +13 -0
  20. package/dist/components/ForwardButton/ForwardButton.stories.d.ts +13 -0
  21. package/dist/index.cjs.js +39 -48
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.esm.js +39 -47
  24. package/dist/styles/font.scss +5 -0
  25. package/dist/styles/material-symbols.scss +24 -0
  26. package/dist/styles/theme-colors.scss +164 -0
  27. package/dist/styles/theme-styles.scss +8 -0
  28. package/package.json +19 -3
  29. package/styles/font.scss +11 -0
  30. package/styles/material-symbols.scss +24 -0
  31. package/styles/theme-colors.scss +164 -0
  32. package/styles/theme-styles.scss +8 -0
  33. package/dist/_virtual/_interop_require_default.cjs.js +0 -3
  34. package/dist/_virtual/_interop_require_wildcard.cjs.js +0 -3
  35. package/dist/_virtual/add-base-path.js +0 -3
  36. package/dist/_virtual/add-locale.js +0 -3
  37. package/dist/_virtual/add-locale2.js +0 -3
  38. package/dist/_virtual/add-path-prefix.js +0 -3
  39. package/dist/_virtual/add-path-suffix.js +0 -3
  40. package/dist/_virtual/app-paths.js +0 -3
  41. package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
  42. package/dist/_virtual/app-router-headers.js +0 -3
  43. package/dist/_virtual/bloom-filter.js +0 -3
  44. package/dist/_virtual/compare-states.js +0 -3
  45. package/dist/_virtual/denormalize-page-path.js +0 -3
  46. package/dist/_virtual/detect-domain-locale.js +0 -3
  47. package/dist/_virtual/detect-domain-locale2.js +0 -3
  48. package/dist/_virtual/ensure-leading-slash.js +0 -3
  49. package/dist/_virtual/escape-regexp.js +0 -3
  50. package/dist/_virtual/format-next-pathname-info.js +0 -3
  51. package/dist/_virtual/format-url.js +0 -3
  52. package/dist/_virtual/get-asset-path-from-route.js +0 -3
  53. package/dist/_virtual/get-cookie-parser.js +0 -3
  54. package/dist/_virtual/get-domain-locale.js +0 -3
  55. package/dist/_virtual/get-next-pathname-info.js +0 -3
  56. package/dist/_virtual/handle-smooth-scroll.js +0 -3
  57. package/dist/_virtual/has-base-path.js +0 -3
  58. package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
  59. package/dist/_virtual/head-manager.js +0 -3
  60. package/dist/_virtual/index.js +0 -3
  61. package/dist/_virtual/index2.js +0 -3
  62. package/dist/_virtual/index3.js +0 -3
  63. package/dist/_virtual/index4.js +0 -3
  64. package/dist/_virtual/index5.js +0 -3
  65. package/dist/_virtual/interception-routes.js +0 -3
  66. package/dist/_virtual/interpolate-as.js +0 -3
  67. package/dist/_virtual/is-api-route.js +0 -3
  68. package/dist/_virtual/is-bot.js +0 -3
  69. package/dist/_virtual/is-dynamic.js +0 -3
  70. package/dist/_virtual/is-error.js +0 -3
  71. package/dist/_virtual/is-local-url.js +0 -3
  72. package/dist/_virtual/is-plain-object.js +0 -3
  73. package/dist/_virtual/link.js +0 -3
  74. package/dist/_virtual/link2.js +0 -3
  75. package/dist/_virtual/mitt.js +0 -3
  76. package/dist/_virtual/normalize-locale-path.js +0 -3
  77. package/dist/_virtual/normalize-locale-path2.js +0 -3
  78. package/dist/_virtual/normalize-path-sep.js +0 -3
  79. package/dist/_virtual/normalize-trailing-slash.js +0 -3
  80. package/dist/_virtual/omit.js +0 -3
  81. package/dist/_virtual/parse-path.js +0 -3
  82. package/dist/_virtual/parse-relative-url.js +0 -3
  83. package/dist/_virtual/parse-url.js +0 -3
  84. package/dist/_virtual/path-has-prefix.js +0 -3
  85. package/dist/_virtual/path-match.js +0 -3
  86. package/dist/_virtual/prepare-destination.js +0 -3
  87. package/dist/_virtual/querystring.js +0 -3
  88. package/dist/_virtual/react-is.development.js +0 -3
  89. package/dist/_virtual/react-is.production.min.js +0 -3
  90. package/dist/_virtual/remove-base-path.js +0 -3
  91. package/dist/_virtual/remove-locale.js +0 -3
  92. package/dist/_virtual/remove-path-prefix.js +0 -3
  93. package/dist/_virtual/remove-trailing-slash.js +0 -3
  94. package/dist/_virtual/request-idle-callback.js +0 -3
  95. package/dist/_virtual/resolve-href.js +0 -3
  96. package/dist/_virtual/resolve-rewrites.js +0 -3
  97. package/dist/_virtual/route-loader.js +0 -3
  98. package/dist/_virtual/route-matcher.js +0 -3
  99. package/dist/_virtual/route-regex.js +0 -3
  100. package/dist/_virtual/router-context.shared-runtime.js +0 -3
  101. package/dist/_virtual/router-reducer-types.js +0 -3
  102. package/dist/_virtual/router.js +0 -3
  103. package/dist/_virtual/router2.js +0 -3
  104. package/dist/_virtual/router3.js +0 -3
  105. package/dist/_virtual/script.js +0 -3
  106. package/dist/_virtual/segment.js +0 -3
  107. package/dist/_virtual/sorted-routes.js +0 -3
  108. package/dist/_virtual/trusted-types.js +0 -3
  109. package/dist/_virtual/use-intersection.js +0 -3
  110. package/dist/_virtual/utils.js +0 -3
  111. package/dist/_virtual/with-router.js +0 -3
  112. package/dist/components/Accordeon/Accordeon.types.d.ts +0 -4
  113. package/dist/components/AuthButton/index.d.ts +0 -1
  114. package/dist/components/Dialog/Dialog.types.d.ts +0 -7
  115. package/dist/components/PrimaryButton/PrimaryButton.d.ts +0 -8
  116. package/dist/components/PrimaryButton/index.d.ts +0 -1
  117. package/dist/components/SvgIcon/SvgIcon.types.d.ts +0 -8
  118. package/dist/components/index.d.ts +0 -31
  119. package/dist/components/useDimensions.d.ts +0 -4
  120. package/dist/components/useOrientation.d.ts +0 -3
  121. package/dist/components/useScroll.d.ts +0 -4
  122. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +0 -7
  123. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +0 -48
  124. package/dist/node_modules/clsx/dist/clsx.m.js +0 -3
  125. package/dist/node_modules/external-svg-loader/dist/svg-loader.min.js +0 -1
  126. package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
  127. package/dist/node_modules/next/dist/client/add-locale.js +0 -42
  128. package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -78
  129. package/dist/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -69
  130. package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -39
  131. package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
  132. package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
  133. package/dist/node_modules/next/dist/client/head-manager.js +0 -212
  134. package/dist/node_modules/next/dist/client/link.js +0 -431
  135. package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
  136. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -50
  137. package/dist/node_modules/next/dist/client/remove-base-path.js +0 -45
  138. package/dist/node_modules/next/dist/client/remove-locale.js +0 -41
  139. package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
  140. package/dist/node_modules/next/dist/client/resolve-href.js +0 -99
  141. package/dist/node_modules/next/dist/client/route-loader.js +0 -327
  142. package/dist/node_modules/next/dist/client/router.js +0 -202
  143. package/dist/node_modules/next/dist/client/script.js +0 -353
  144. package/dist/node_modules/next/dist/client/trusted-types.js +0 -54
  145. package/dist/node_modules/next/dist/client/use-intersection.js +0 -129
  146. package/dist/node_modules/next/dist/client/with-router.js +0 -52
  147. package/dist/node_modules/next/dist/compiled/cookie/index.js +0 -18
  148. package/dist/node_modules/next/dist/compiled/gzip-size/index.js +0 -15
  149. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -416
  150. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -230
  151. package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js +0 -26
  152. package/dist/node_modules/next/dist/compiled/react-is/index.js +0 -21
  153. package/dist/node_modules/next/dist/lib/is-api-route.js +0 -27
  154. package/dist/node_modules/next/dist/lib/is-error.js +0 -53
  155. package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -35
  156. package/dist/node_modules/next/dist/server/future/helpers/interception-routes.js +0 -97
  157. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -63
  158. package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +0 -96
  159. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -33
  160. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -33
  161. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -38
  162. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -42
  163. package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +0 -50
  164. package/dist/node_modules/next/dist/shared/lib/mitt.js +0 -57
  165. package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -32
  166. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -32
  167. package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -33
  168. package/dist/node_modules/next/dist/shared/lib/router/router.js +0 -1771
  169. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -42
  170. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -33
  171. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -33
  172. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
  173. package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +0 -46
  174. package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -43
  175. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -99
  176. package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +0 -29
  177. package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -69
  178. package/dist/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js +0 -49
  179. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -36
  180. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -67
  181. package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -27
  182. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -28
  183. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -40
  184. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -33
  185. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -47
  186. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -43
  187. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -44
  188. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -33
  189. package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -62
  190. package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -245
  191. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -80
  192. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -52
  193. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -35
  194. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +0 -136
  195. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -53
  196. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -200
  197. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -182
  198. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -33
  199. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -28
  200. package/dist/node_modules/next/dist/shared/lib/utils.js +0 -196
  201. package/dist/node_modules/next/link.js +0 -7
  202. package/dist/node_modules/next/router.js +0 -6
  203. package/dist/node_modules/react-toastify/dist/react-toastify.esm.mjs.js +0 -7
  204. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -28
  205. package/dist/services/prisma.service.d.ts +0 -2
  206. package/dist/src/components/Accordeon/Accordeon.js +0 -14
  207. package/dist/src/components/Accordeon/styles.module.scss.js +0 -7
  208. package/dist/src/components/AuthButton/styles.module.scss.js +0 -4
  209. package/dist/src/components/CardButton/styles.module.scss.js +0 -4
  210. package/dist/src/components/Checkbox/styles.module.scss.js +0 -4
  211. package/dist/src/components/ChooseRole/styles.module.scss.js +0 -4
  212. package/dist/src/components/CopyCode/styles.module.scss.js +0 -4
  213. package/dist/src/components/Dialog/Dialog.js +0 -14
  214. package/dist/src/components/Dialog/styles.module.scss.js +0 -7
  215. package/dist/src/components/FormButton/styles.module.scss.js +0 -4
  216. package/dist/src/components/FormText/styles.module.scss.js +0 -4
  217. package/dist/src/components/ForwardButton/styles.module.scss.js +0 -4
  218. package/dist/src/components/Gap/Gap.js +0 -7
  219. package/dist/src/components/InputMail/styles.module.scss.js +0 -4
  220. package/dist/src/components/InputNames/styles.module.scss.js +0 -4
  221. package/dist/src/components/InputNumber/styles.module.scss.js +0 -4
  222. package/dist/src/components/InputPassword/styles.module.scss.js +0 -4
  223. package/dist/src/components/InputPin/styles.module.scss.js +0 -4
  224. package/dist/src/components/InputText/styles.module.scss.js +0 -4
  225. package/dist/src/components/OptionField/styles.module.scss.js +0 -4
  226. package/dist/src/components/OptionFieldHorizontal/styles.module.scss.js +0 -4
  227. package/dist/src/components/PrimaryButton/styles.module.scss.js +0 -4
  228. package/dist/src/components/ProgressBar/styles.module.scss.js +0 -4
  229. package/dist/src/components/RadioButtons/styles.module.scss.js +0 -4
  230. package/dist/src/components/RedirectButton/styles.module.scss.js +0 -4
  231. package/dist/src/components/SearchChips/styles.module.scss.js +0 -4
  232. package/dist/src/components/Searchbar/styles.module.scss.js +0 -4
  233. package/dist/src/components/Slider/styles.module.scss.js +0 -4
  234. package/dist/src/components/StepBack/styles.module.scss.js +0 -4
  235. package/dist/src/components/SvgIcon/SvgIcon.js +0 -9
  236. package/dist/src/components/Table/Table.js +0 -12
  237. package/dist/src/components/Table/styles.module.scss.js +0 -4
  238. package/dist/src/components/TextWithIcon/styles.module.scss.js +0 -4
  239. package/dist/src/components/UsageCard/styles.module.scss.js +0 -4
  240. package/dist/src/index.js +0 -36
  241. package/dist/types/Concept.d.ts +0 -7
  242. package/dist/types/Content.d.ts +0 -15
  243. package/dist/types/CourseAnnouncement.d.ts +0 -13
  244. package/dist/types/CourseAnnouncementAsset.d.ts +0 -22
  245. package/dist/types/CourseAnnouncementAssset.d.ts +0 -21
  246. package/dist/types/CourseMessage.d.ts +0 -13
  247. package/dist/types/CourseParticipant.d.ts +0 -9
  248. package/dist/types/CoursePin.d.ts +0 -8
  249. package/dist/types/File.d.ts +0 -13
  250. package/dist/types/HelpData.d.ts +0 -8
  251. package/dist/types/News.d.ts +0 -13
  252. package/dist/types/OrganizationMember.d.ts +0 -12
  253. package/dist/types/Page.d.ts +0 -8
  254. package/dist/types/ProductFeature.d.ts +0 -8
  255. package/dist/types/ProductLimit.d.ts +0 -8
  256. package/dist/types/PublicUser.d.ts +0 -7
  257. package/dist/types/index.d.ts +0 -2
  258. package/dist/types/marketing/BenefitForIndividuals.d.ts +0 -9
  259. package/dist/types/marketing/BenefitForSchools.d.ts +0 -9
  260. package/dist/types/marketing/Page.d.ts +0 -8
  261. package/dist/types/marketing/WebsiteData.d.ts +0 -23
@@ -1,3 +1,6 @@
1
1
  import React from 'react';
2
- import { AccordeonProps } from './Accordeon.types';
2
+ export type AccordeonProps = {
3
+ title?: string;
4
+ children?: React.ReactNode;
5
+ };
3
6
  export declare function Accordeon({ title, children }: AccordeonProps): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { Accordeon } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Accordeon;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -1,11 +1,11 @@
1
1
  import React, { MouseEvent } from 'react';
2
2
  type ButtonType = "blue" | "red" | "grey" | "lightBlue";
3
- export declare function Button({ id, text, iconName, iconFill, type, onClick }: {
3
+ export declare function Button({ id, children, iconName, iconFill, type, onClick, ...props }: {
4
4
  id?: string;
5
- text?: string;
6
5
  iconName?: string;
7
6
  iconFill?: string;
8
7
  type?: ButtonType;
8
+ children?: React.ReactNode;
9
9
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
10
- }): React.JSX.Element;
10
+ } & React.HTMLAttributes<HTMLButtonElement>): React.JSX.Element;
11
11
  export {};
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { Button } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Button;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -1,7 +1,7 @@
1
1
  import React, { MouseEvent } from 'react';
2
- export declare function AuthButton({ id, text, type, theme, iconName, isVisible, style, onClick }: {
2
+ export declare function Button2({ id, children, type, theme, iconName, isVisible, style, onClick }: {
3
3
  id?: string;
4
- text: string | undefined;
4
+ children: React.ReactNode;
5
5
  type?: 'submit' | 'reset' | 'button' | undefined;
6
6
  theme?: 'primary' | 'secondary' | undefined;
7
7
  iconName?: string;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { Button2 } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Button2;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -0,0 +1 @@
1
+ export { Button2 } from './Button2';
@@ -1,7 +1,7 @@
1
1
  import React, { MouseEvent } from 'react';
2
- export declare function CardButton({ id, title, iconName, onClick, }: {
2
+ export declare function CardButton({ id, children, iconName, onClick, ...props }: {
3
3
  id?: string;
4
- title: string;
4
+ children: React.ReactNode;
5
5
  iconName: string;
6
6
  onClick?: (event: MouseEvent<HTMLDivElement>) => {};
7
- }): React.JSX.Element;
7
+ } & React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { CardButton } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof CardButton;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { Checkbox } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof Checkbox;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -1,12 +1,11 @@
1
1
  import React from 'react';
2
- export declare class ChooseRoleItem {
2
+ export type ChooseRoleItem = {
3
3
  title: string;
4
4
  value: string;
5
- constructor(title: string, value: string);
6
- }
5
+ };
7
6
  export declare function ChooseRole({ roles, defaultSelected, readOnly, onChange }: {
7
+ readOnly?: boolean;
8
8
  roles: ChooseRoleItem[];
9
9
  defaultSelected: string;
10
- readOnly?: boolean;
11
10
  onChange: (item: string) => void;
12
11
  }): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { ChooseRole } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof ChooseRole;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -1 +1 @@
1
- export { ChooseRole, ChooseRoleItem } from './ChooseRole';
1
+ export { ChooseRole, type ChooseRoleItem } from './ChooseRole';
@@ -1,6 +1,5 @@
1
- import React, { CSSProperties } from 'react';
2
- export declare function CopyCode({ code, style, onCopy }: {
1
+ import React, { HTMLAttributes } from 'react';
2
+ export declare function CopyCode({ code, onCopy, ...props }: {
3
3
  code: string;
4
- style?: CSSProperties;
5
4
  onCopy?: () => void;
6
- }): React.JSX.Element;
5
+ } & HTMLAttributes<HTMLDivElement>): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { CopyCode } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof CopyCode;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { EmptyCard } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof EmptyCard;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -1,10 +1,10 @@
1
- import React, { CSSProperties, MouseEvent } from 'react';
2
- export declare function FormButton({ id, text, style, iconName, type, background, onClick }: {
1
+ import React, { CSSProperties, MouseEvent, ReactNode } from 'react';
2
+ export declare function FormButton({ id, children, style, iconName, type, background, onClick, ...props }: {
3
3
  id?: string;
4
- text: string;
4
+ children: ReactNode;
5
5
  style?: CSSProperties;
6
6
  iconName?: string;
7
7
  type?: "submit" | "button" | "reset";
8
8
  background?: string;
9
9
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
10
- }): React.JSX.Element;
10
+ } & React.HTMLProps<HTMLButtonElement>): React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { FormButton } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof FormButton;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { FormText } from '.';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof FormText;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
@@ -0,0 +1,13 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { FormText } from '../FormText';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof FormText;
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ tags: string[];
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Primary: Story;
package/dist/index.cjs.js CHANGED
@@ -9408,46 +9408,45 @@ function Accordeon({ title, children }) {
9408
9408
  React__default["default"].createElement("div", { className: styles$w.content }, children)));
9409
9409
  }
9410
9410
 
9411
- var css_248z$v = ".styles-module_container__4978M {\n max-width: 100%;\n width: 350px;\n transition: all 0.2s ease-in-out;\n box-sizing: border-box;\n}\n.styles-module_container__4978M.styles-module_visible__uvQwq {\n max-height: 100px;\n opacity: 1;\n}\n.styles-module_container__4978M.styles-module_hidden__Oruyx {\n overflow: hidden;\n max-height: 0;\n opacity: 0;\n}\n\n.styles-module_container__4978M.styles-module_rotate__mmYPQ .styles-module_button__BWOOi:hover span {\n rotate: -45deg;\n}\n\n.styles-module_button__BWOOi {\n padding: 12px 20px;\n background: linear-gradient(60deg, #0075FF, #0056b8);\n background-position-x: right;\n color: white;\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: center;\n border-radius: 14px;\n border: none;\n cursor: pointer;\n font-size: 16px;\n font-weight: 400;\n gap: 10px;\n position: relative;\n transition: all 0.5s ease-in-out;\n}\n.styles-module_button__BWOOi span {\n transition: 0.1s ease-in-out;\n}\n.styles-module_button__BWOOi:hover {\n background-position-x: left;\n}\n.styles-module_button__BWOOi.styles-module_secondary__Eoik3 {\n background: var(--background-2);\n color: var(--primary-1);\n border: 1px solid var(--primary-1);\n}\n.styles-module_button__BWOOi.styles-module_secondary__Eoik3 svg {\n fill: var(--primary-1);\n}\n\n@media (max-width: 450px) {\n .styles-module_button__BWOOi {\n font-size: 14px;\n }\n}";
9412
- var styles$v = {"container":"styles-module_container__4978M","visible":"styles-module_visible__uvQwq","hidden":"styles-module_hidden__Oruyx","rotate":"styles-module_rotate__mmYPQ","button":"styles-module_button__BWOOi","secondary":"styles-module_secondary__Eoik3"};
9411
+ var css_248z$v = ".styles-module_container__TP0rp {\n max-width: 100%;\n}\n\n.styles-module_button__Sh-fr {\n padding: 10px 18px;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n font-weight: 400;\n align-items: center;\n border: none;\n transition: 0.2s ease-in-out;\n font-family: \"Space Grotesk\", sans-serif;\n border: 1px solid transparent;\n}\n.styles-module_button__Sh-fr:hover {\n filter: brightness(0.9);\n}\n.styles-module_button__Sh-fr:focus {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n.styles-module_button__Sh-fr.styles-module_blue__DRdbo {\n background: var(--primary-1);\n color: white;\n}\n.styles-module_button__Sh-fr.styles-module_lightBlue__7EKfp {\n background: var(--primary-2);\n color: var(--primary-1);\n}\n.styles-module_button__Sh-fr.styles-module_red__EhImH {\n background: var(--red-1);\n color: white;\n}\n.styles-module_button__Sh-fr.styles-module_grey__kAVD1 {\n background: var(--background-1);\n color: var(--foreground-2);\n}\n.styles-module_button__Sh-fr.styles-module_onlyIcon__bNVnI {\n width: 44px;\n height: 44px;\n padding: 0;\n align-items: center;\n justify-content: center;\n}\n.styles-module_button__Sh-fr.styles-module_onlyIcon__bNVnI span {\n font-size: 22px !important;\n}";
9412
+ var styles$v = {"container":"styles-module_container__TP0rp","button":"styles-module_button__Sh-fr","blue":"styles-module_blue__DRdbo","lightBlue":"styles-module_lightBlue__7EKfp","red":"styles-module_red__EhImH","grey":"styles-module_grey__kAVD1","onlyIcon":"styles-module_onlyIcon__bNVnI"};
9413
9413
  styleInject(css_248z$v);
9414
9414
 
9415
- function AuthButton({ id, text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, style, onClick }) {
9416
- return (React__default["default"].createElement("div", { className: [styles$v.container, isVisible ? styles$v.visible : styles$v.hidden, ["arrow_forward"].includes(iconName) ? styles$v.rotate : null].join(" "), style: style },
9417
- React__default["default"].createElement("button", { type: type, className: `${styles$v.button} ${styles$v[theme]}`, onClick: onClick, id: id },
9418
- text,
9419
- React__default["default"].createElement(SvgIcon, { iconName: iconName }))));
9415
+ function Button({ id, children, iconName, iconFill = "white", type = "blue", onClick = () => { }, ...props }) {
9416
+ const onClickButton = (event) => {
9417
+ event.preventDefault();
9418
+ onClick(event);
9419
+ };
9420
+ return (React__default["default"].createElement("div", { className: styles$v.container },
9421
+ React__default["default"].createElement("button", { className: [styles$v.button, styles$v[type], (children && !iconName) ? styles$v.onlyText : "", (!children && iconName) ? styles$v.onlyIcon : ""].join(" "), onClick: onClickButton, id: id, ...props },
9422
+ children,
9423
+ iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName }))));
9420
9424
  }
9421
9425
 
9422
- var css_248z$u = ".styles-module_container__TP0rp {\n max-width: 100%;\n}\n.styles-module_container__TP0rp .styles-module_button__Sh-fr {\n padding: 10px 18px;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n font-weight: 400;\n align-items: center;\n border: none;\n}\n.styles-module_container__TP0rp .styles-module_button__Sh-fr.styles-module_blue__DRdbo {\n background: var(--primary-1);\n color: white;\n}\n.styles-module_container__TP0rp .styles-module_button__Sh-fr.styles-module_lightBlue__7EKfp {\n background: var(--primary-2);\n color: var(--primary-1);\n}\n.styles-module_container__TP0rp .styles-module_button__Sh-fr.styles-module_red__EhImH {\n background: var(--red-1);\n color: white;\n}\n.styles-module_container__TP0rp .styles-module_button__Sh-fr.styles-module_grey__kAVD1 {\n background: var(--background-1);\n color: var(--foreground-2);\n}\n.styles-module_container__TP0rp .styles-module_button__Sh-fr.styles-module_onlyIcon__bNVnI {\n width: 44px;\n height: 44px;\n padding: 0;\n align-items: center;\n justify-content: center;\n}\n.styles-module_container__TP0rp .styles-module_button__Sh-fr.styles-module_onlyIcon__bNVnI span {\n font-size: 22px !important;\n}";
9423
- var styles$u = {"container":"styles-module_container__TP0rp","button":"styles-module_button__Sh-fr","blue":"styles-module_blue__DRdbo","lightBlue":"styles-module_lightBlue__7EKfp","red":"styles-module_red__EhImH","grey":"styles-module_grey__kAVD1","onlyIcon":"styles-module_onlyIcon__bNVnI"};
9426
+ var css_248z$u = ".styles-module_container__Q2wD4 {\n max-width: 100%;\n width: 350px;\n transition: all 0.2s ease-in-out;\n box-sizing: border-box;\n}\n.styles-module_container__Q2wD4.styles-module_visible__hQgjm {\n max-height: 100px;\n opacity: 1;\n}\n.styles-module_container__Q2wD4.styles-module_hidden__sO2e7 {\n overflow: hidden;\n max-height: 0;\n opacity: 0;\n}\n\n.styles-module_container__Q2wD4.styles-module_rotate__HQYfs .styles-module_button__jo0MC:hover span {\n rotate: -45deg;\n}\n\n.styles-module_button__jo0MC {\n padding: 12px 20px;\n background: linear-gradient(60deg, #0075FF, #0056b8);\n background-position-x: right;\n color: white;\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: center;\n border-radius: 14px;\n border: none;\n cursor: pointer;\n font-size: 16px;\n font-weight: 400;\n gap: 10px;\n position: relative;\n transition: all 0.5s ease-in-out;\n outline: none;\n border: 1px solid transparent;\n font-family: \"Space Grotesk\", sans-serif;\n}\n.styles-module_button__jo0MC:focus {\n box-shadow: var(--focus-shadow);\n border: var(--focus-border);\n}\n.styles-module_button__jo0MC span {\n transition: 0.1s ease-in-out;\n}\n.styles-module_button__jo0MC:hover {\n background-position-x: left;\n}\n.styles-module_button__jo0MC.styles-module_secondary__YBbOj {\n background: var(--background-2);\n color: var(--primary-1);\n border: 1px solid var(--primary-1);\n}\n.styles-module_button__jo0MC.styles-module_secondary__YBbOj svg {\n fill: var(--primary-1);\n}\n\n@media (max-width: 450px) {\n .styles-module_button__jo0MC {\n font-size: 14px;\n }\n}";
9427
+ var styles$u = {"container":"styles-module_container__Q2wD4","visible":"styles-module_visible__hQgjm","hidden":"styles-module_hidden__sO2e7","rotate":"styles-module_rotate__HQYfs","button":"styles-module_button__jo0MC","secondary":"styles-module_secondary__YBbOj"};
9424
9428
  styleInject(css_248z$u);
9425
9429
 
9426
- function Button({ id, text, iconName, iconFill = "white", type = "blue", onClick = () => { } }) {
9427
- function onClickButton(event) {
9428
- event.preventDefault();
9429
- if (onClick)
9430
- onClick(event);
9431
- }
9432
- return (React__default["default"].createElement("div", { className: styles$u.container },
9433
- React__default["default"].createElement("button", { className: [styles$u.button, styles$u[type], (text && !iconName) ? styles$u.onlyText : "", (!text && iconName) ? styles$u.onlyIcon : ""].join(" "), onClick: onClickButton, id: id },
9434
- text,
9435
- iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName }))));
9430
+ function Button2({ id, children, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, style, onClick }) {
9431
+ return (React__default["default"].createElement("div", { className: [styles$u.container, isVisible ? styles$u.visible : styles$u.hidden, ["arrow_forward"].includes(iconName) ? styles$u.rotate : null].join(" "), style: style },
9432
+ React__default["default"].createElement("button", { type: type, className: `${styles$u.button} ${styles$u[theme]}`, onClick: onClick, id: id },
9433
+ children,
9434
+ React__default["default"].createElement(SvgIcon, { iconName: iconName }))));
9436
9435
  }
9437
9436
 
9438
9437
  var css_248z$t = ".styles-module_card__bOd85 {\n background: var(--background-2);\n border: 1px solid var(--border-2);\n border-radius: 18px;\n transition: 0.2s ease;\n padding: 18px 14px;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n cursor: pointer;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding-top: 30px;\n}\n.styles-module_card__bOd85 span {\n color: var(--foreground-3);\n}\n.styles-module_card__bOd85:hover {\n transform: scale(1.01);\n box-shadow: none;\n background: none;\n}\n.styles-module_card__bOd85 h2 {\n margin-top: 0;\n color: var(--foreground-3);\n font-weight: 400;\n font-size: 18px;\n}";
9439
9438
  var styles$t = {"card":"styles-module_card__bOd85"};
9440
9439
  styleInject(css_248z$t);
9441
9440
 
9442
- function CardButton({ id, title, iconName, onClick, }) {
9441
+ function CardButton({ id, children, iconName, onClick, ...props }) {
9443
9442
  function onClickCard(event) {
9444
9443
  event.preventDefault();
9445
9444
  if (onClick)
9446
9445
  onClick(event);
9447
9446
  }
9448
- return (React__default["default"].createElement("div", { className: styles$t.card, onClick: onClickCard, id: id },
9447
+ return (React__default["default"].createElement("div", { className: styles$t.card, onClick: onClickCard, id: id, ...props },
9449
9448
  React__default["default"].createElement(SvgIcon, { iconName: iconName, size: "32px" }),
9450
- React__default["default"].createElement("h2", null, title)));
9449
+ React__default["default"].createElement("h2", null, children)));
9451
9450
  }
9452
9451
 
9453
9452
  var css_248z$s = ".styles-module_container__gCCnD {\n margin-bottom: 20px;\n width: 343px;\n color: var(--foreground-3);\n}\n.styles-module_container__gCCnD [type=checkbox] {\n position: relative;\n left: 15px;\n top: -4px;\n z-index: 0;\n appearance: none;\n -webkit-appearance: none;\n cursor: pointer;\n margin-left: -3.5px;\n}\n.styles-module_container__gCCnD [type=checkbox] + label {\n position: absolute;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n}\n.styles-module_container__gCCnD [type=checkbox] + label::before {\n width: 17px;\n height: 17px;\n border-radius: 5px;\n border: 2px solid var(--border-2);\n display: block;\n content: \"\";\n float: left;\n margin-right: 8px;\n z-index: 5;\n position: relative;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__gCCnD [type=checkbox] ~ span {\n position: absolute;\n opacity: 1;\n color: var(--background-2);\n z-index: 100;\n user-select: none;\n pointer-events: none;\n -webkit-user-select: none;\n font-weight: 500;\n}\n.styles-module_container__gCCnD [type=checkbox]:checked + label::before {\n background-color: var(--primary-1);\n border-color: var(--primary-1);\n}\n.styles-module_container__gCCnD [type=checkbox]:hover:not(:checked) + label::before {\n background-color: var(--background-4);\n border-color: var(--background-2);\n}";
@@ -9456,8 +9455,8 @@ styleInject(css_248z$s);
9456
9455
 
9457
9456
  function Checkbox({ id, name, checked, defaultChecked = false, onInput = () => { }, children }) {
9458
9457
  return (React__default["default"].createElement("div", { className: styles$s.container },
9459
- React__default["default"].createElement("input", { type: "checkbox", onInput: onInput, name: name, checked: checked, defaultChecked: defaultChecked, id: id ?? name }),
9460
- React__default["default"].createElement("label", { htmlFor: id ?? name }, children),
9458
+ React__default["default"].createElement("input", { type: "checkbox", onInput: onInput, name: name, checked: checked, defaultChecked: defaultChecked, id: id || name }),
9459
+ React__default["default"].createElement("label", { htmlFor: id || name }, children),
9461
9460
  React__default["default"].createElement(SvgIcon, { iconName: "done", size: "21px" })));
9462
9461
  }
9463
9462
 
@@ -9465,36 +9464,29 @@ var css_248z$r = ".styles-module_container__OqDNA {\n display: flex;\n flex-di
9465
9464
  var styles$r = {"container":"styles-module_container__OqDNA","item":"styles-module_item__1SMCI","selected":"styles-module_selected__AXIA-"};
9466
9465
  styleInject(css_248z$r);
9467
9466
 
9468
- class ChooseRoleItem {
9469
- title;
9470
- value;
9471
- constructor(title, value) {
9472
- this.title = title;
9473
- this.value = value;
9474
- }
9475
- }
9476
- function ChooseRole({ roles, defaultSelected, readOnly = false, onChange }) {
9467
+ const ChooseRoleItem = ({ item, isSelected, onUpdate, }) => (React__default["default"].createElement("div", { className: [styles$r.item, isSelected ? styles$r.selected : styles$r.not_selected].join(" "), onClick: () => onUpdate(item.value) }, item.title));
9468
+ function ChooseRole({ roles, defaultSelected, readOnly = false, onChange = () => { } }) {
9477
9469
  const [selected, setSelected] = React.useState(defaultSelected);
9470
+ React.useEffect(() => setSelected(defaultSelected), [defaultSelected]);
9478
9471
  function onUpdate(newRole) {
9479
9472
  if (readOnly)
9480
9473
  return;
9481
9474
  setSelected(newRole);
9482
9475
  onChange(newRole);
9483
9476
  }
9484
- return (React__default["default"].createElement("div", { className: styles$r.container }, roles.map((item, index) => React__default["default"].createElement("div", { key: index, className: [styles$r.item, selected == item.value ? styles$r.selected : styles$r.not_selected].join(" "), onClick: () => onUpdate(item.value) }, item.title))));
9477
+ return (React__default["default"].createElement("div", { className: styles$r.container }, roles.map(item => React__default["default"].createElement(ChooseRoleItem, { key: item.value, item: item, onUpdate: onUpdate, isSelected: selected === item.value }))));
9485
9478
  }
9486
9479
 
9487
9480
  var css_248z$q = ".styles-module_container__yV6C8 {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 30px;\n transition: 0.2s ease-in-out;\n margin-bottom: 20px;\n color: var(--foreground-1);\n}\n.styles-module_container__yV6C8:hover {\n color: var(--primary-1);\n}";
9488
9481
  var styles$q = {"container":"styles-module_container__yV6C8"};
9489
9482
  styleInject(css_248z$q);
9490
9483
 
9491
- function CopyCode({ code, style, onCopy = () => { } }) {
9492
- function onClick() {
9484
+ function CopyCode({ code, onCopy = () => { }, ...props }) {
9485
+ const onClick = () => {
9493
9486
  navigator.clipboard.writeText(code);
9494
- if (onCopy)
9495
- onCopy();
9496
- }
9497
- return (React__default["default"].createElement("div", { className: styles$q.container, onClick: onClick, style: style },
9487
+ onCopy();
9488
+ };
9489
+ return (React__default["default"].createElement("div", { className: styles$q.container, onClick: onClick, ...props },
9498
9490
  React__default["default"].createElement(SvgIcon, { iconName: "content_copy" }),
9499
9491
  React__default["default"].createElement("span", null, code),
9500
9492
  React__default["default"].createElement("input", { type: "hidden", name: "code", value: code })));
@@ -9521,7 +9513,7 @@ function Dialog({ data, enabled, text, onClose, onSubmit = () => { }, children }
9521
9513
  React__default["default"].createElement("button", { className: styles$p.submit_button, id: "submit-button", onClick: (event) => onSubmit(event, data) }, "Best\u00E4tigen"))));
9522
9514
  }
9523
9515
 
9524
- var css_248z$o = ".styles-module_card__hT9fw {\n display: flex;\n align-items: center;\n flex-direction: column;\n gap: 20px;\n padding: 100px 0px;\n}\n.styles-module_card__hT9fw h1 {\n margin: 0;\n font-size: 22px;\n font-weight: 500;\n}\n.styles-module_card__hT9fw p {\n margin: 0;\n font-size: 16px;\n}";
9516
+ var css_248z$o = ".styles-module_card__hT9fw {\n display: flex;\n align-items: center;\n flex-direction: column;\n gap: 20px;\n padding: 100px 0px;\n font-family: \"Space Grotesk\", sans-serif;\n}\n.styles-module_card__hT9fw h1 {\n margin: 0;\n font-size: 22px;\n font-weight: 500;\n}\n.styles-module_card__hT9fw p {\n margin: 0;\n font-size: 16px;\n}";
9525
9517
  var styles$o = {"card":"styles-module_card__hT9fw"};
9526
9518
  styleInject(css_248z$o);
9527
9519
 
@@ -9530,21 +9522,21 @@ function EmptyCard({ title = "Keine Daten", subtitle = "Es sind keine Daten vorh
9530
9522
  React__default["default"].createElement(SvgIcon, { size: "60px", iconName: iconName }),
9531
9523
  React__default["default"].createElement("h1", null, title),
9532
9524
  React__default["default"].createElement("p", null, subtitle),
9533
- button && React__default["default"].createElement(Button, { text: button, onClick: onClick, type: "lightBlue" })));
9525
+ button && React__default["default"].createElement(Button, { onClick: onClick, type: "lightBlue" }, button)));
9534
9526
  }
9535
9527
 
9536
9528
  var css_248z$n = ".styles-module_container__HOoBj {\n margin-bottom: 30px;\n}\n.styles-module_container__HOoBj button {\n padding: 12px 18px;\n border-radius: 40px;\n border: none;\n color: white;\n font-weight: 400;\n font-size: 16px;\n background: var(--primary-1);\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n}";
9537
9529
  var styles$n = {"container":"styles-module_container__HOoBj"};
9538
9530
  styleInject(css_248z$n);
9539
9531
 
9540
- function FormButton({ id, text, style = {}, iconName = "", type = "submit", background = "#0075FF", onClick = () => { } }) {
9532
+ function FormButton({ id, children, style = {}, iconName = "", type = "submit", background = "#0075FF", onClick = () => { }, ...props }) {
9541
9533
  return (React__default["default"].createElement("div", { className: styles$n.container, style: style },
9542
- React__default["default"].createElement("button", { type: type, onClick: onClick, style: { background: background }, id: id },
9543
- text,
9534
+ React__default["default"].createElement("button", { type: type, onClick: onClick, style: { background: background }, id: id, ...props },
9535
+ children,
9544
9536
  iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName, color: "white" }))));
9545
9537
  }
9546
9538
 
9547
- var css_248z$m = ".styles-module_container__9wYEm {\n margin-bottom: 30px;\n width: 100%;\n}\n.styles-module_container__9wYEm h1,\n.styles-module_container__9wYEm h2,\n.styles-module_container__9wYEm h3,\n.styles-module_container__9wYEm h4,\n.styles-module_container__9wYEm h5 {\n margin: 0;\n font-weight: 400;\n color: var(--foreground-1);\n}\n.styles-module_container__9wYEm h3 {\n margin-top: 5px;\n}";
9539
+ var css_248z$m = ".styles-module_container__9wYEm {\n margin-bottom: 30px;\n width: 100%;\n font-family: var(--font-1);\n}\n.styles-module_container__9wYEm h1,\n.styles-module_container__9wYEm h2,\n.styles-module_container__9wYEm h3,\n.styles-module_container__9wYEm h4,\n.styles-module_container__9wYEm h5 {\n margin: 0;\n font-weight: 500;\n color: var(--foreground-1);\n}\n.styles-module_container__9wYEm h3 {\n margin-top: 5px;\n font-weight: 400;\n}";
9548
9540
  var styles$m = {"container":"styles-module_container__9wYEm"};
9549
9541
  styleInject(css_248z$m);
9550
9542
 
@@ -10465,12 +10457,11 @@ const app = (pathname) => site("/app" + pathname);
10465
10457
  const cdn = (pathname) => process.env.NEXT_PUBLIC_WEB_ASSETS_CDN + pathname;
10466
10458
 
10467
10459
  exports.Accordeon = Accordeon;
10468
- exports.AuthButton = AuthButton;
10469
10460
  exports.Button = Button;
10461
+ exports.Button2 = Button2;
10470
10462
  exports.CardButton = CardButton;
10471
10463
  exports.Checkbox = Checkbox;
10472
10464
  exports.ChooseRole = ChooseRole;
10473
- exports.ChooseRoleItem = ChooseRoleItem;
10474
10465
  exports.CopyCode = CopyCode;
10475
10466
  exports.Dialog = Dialog;
10476
10467
  exports.EmptyCard = EmptyCard;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from './components/Accordeon';
2
- export * from './components/AuthButton';
3
2
  export * from './components/Button';
3
+ export * from './components/Button2';
4
4
  export * from './components/CardButton';
5
5
  export * from './components/Checkbox';
6
6
  export * from './components/ChooseRole';