math-main-components 0.0.195 → 0.0.197
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/components/Accordeon/Accordeon.d.ts +4 -1
- package/dist/components/Accordeon/Accordeon.stories.d.ts +13 -0
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.stories.d.ts +13 -0
- package/dist/components/{AuthButton/AuthButton.d.ts → Button2/Button2.d.ts} +2 -2
- package/dist/components/Button2/Button2.stories.d.ts +13 -0
- package/dist/components/Button2/index.d.ts +1 -0
- package/dist/components/CardButton/CardButton.d.ts +3 -3
- package/dist/components/CardButton/CardButton.stories.d.ts +13 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +13 -0
- package/dist/components/ChooseRole/ChooseRole.d.ts +3 -4
- package/dist/components/ChooseRole/ChooseRole.stories.d.ts +13 -0
- package/dist/components/ChooseRole/index.d.ts +1 -1
- package/dist/components/CopyCode/CopyCode.d.ts +3 -4
- package/dist/components/CopyCode/CopyCode.stories.d.ts +13 -0
- package/dist/components/EmptyCard/EmptyCard.stories.d.ts +13 -0
- package/dist/components/FormButton/FormButton.d.ts +4 -4
- package/dist/components/FormButton/FormButton.stories.d.ts +13 -0
- package/dist/components/FormText/FormText.stories.d.ts +13 -0
- package/dist/components/ForwardButton/ForwardButton.stories.d.ts +13 -0
- package/dist/functions/url.d.ts +3 -0
- package/dist/index.cjs.js +46 -48
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +43 -47
- package/dist/styles/font.scss +5 -0
- package/dist/styles/material-symbols.scss +24 -0
- package/dist/styles/theme-colors.scss +164 -0
- package/dist/styles/theme-styles.scss +8 -0
- package/package.json +18 -3
- package/dist/_virtual/_interop_require_default.cjs.js +0 -3
- package/dist/_virtual/_interop_require_wildcard.cjs.js +0 -3
- package/dist/_virtual/add-base-path.js +0 -3
- package/dist/_virtual/add-locale.js +0 -3
- package/dist/_virtual/add-locale2.js +0 -3
- package/dist/_virtual/add-path-prefix.js +0 -3
- package/dist/_virtual/add-path-suffix.js +0 -3
- package/dist/_virtual/app-paths.js +0 -3
- package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
- package/dist/_virtual/app-router-headers.js +0 -3
- package/dist/_virtual/bloom-filter.js +0 -3
- package/dist/_virtual/compare-states.js +0 -3
- package/dist/_virtual/denormalize-page-path.js +0 -3
- package/dist/_virtual/detect-domain-locale.js +0 -3
- package/dist/_virtual/detect-domain-locale2.js +0 -3
- package/dist/_virtual/ensure-leading-slash.js +0 -3
- package/dist/_virtual/escape-regexp.js +0 -3
- package/dist/_virtual/format-next-pathname-info.js +0 -3
- package/dist/_virtual/format-url.js +0 -3
- package/dist/_virtual/get-asset-path-from-route.js +0 -3
- package/dist/_virtual/get-cookie-parser.js +0 -3
- package/dist/_virtual/get-domain-locale.js +0 -3
- package/dist/_virtual/get-next-pathname-info.js +0 -3
- package/dist/_virtual/handle-smooth-scroll.js +0 -3
- package/dist/_virtual/has-base-path.js +0 -3
- package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
- package/dist/_virtual/head-manager.js +0 -3
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/index4.js +0 -3
- package/dist/_virtual/index5.js +0 -3
- package/dist/_virtual/interception-routes.js +0 -3
- package/dist/_virtual/interpolate-as.js +0 -3
- package/dist/_virtual/is-api-route.js +0 -3
- package/dist/_virtual/is-bot.js +0 -3
- package/dist/_virtual/is-dynamic.js +0 -3
- package/dist/_virtual/is-error.js +0 -3
- package/dist/_virtual/is-local-url.js +0 -3
- package/dist/_virtual/is-plain-object.js +0 -3
- package/dist/_virtual/link.js +0 -3
- package/dist/_virtual/link2.js +0 -3
- package/dist/_virtual/mitt.js +0 -3
- package/dist/_virtual/normalize-locale-path.js +0 -3
- package/dist/_virtual/normalize-locale-path2.js +0 -3
- package/dist/_virtual/normalize-path-sep.js +0 -3
- package/dist/_virtual/normalize-trailing-slash.js +0 -3
- package/dist/_virtual/omit.js +0 -3
- package/dist/_virtual/parse-path.js +0 -3
- package/dist/_virtual/parse-relative-url.js +0 -3
- package/dist/_virtual/parse-url.js +0 -3
- package/dist/_virtual/path-has-prefix.js +0 -3
- package/dist/_virtual/path-match.js +0 -3
- package/dist/_virtual/prepare-destination.js +0 -3
- package/dist/_virtual/querystring.js +0 -3
- package/dist/_virtual/react-is.development.js +0 -3
- package/dist/_virtual/react-is.production.min.js +0 -3
- package/dist/_virtual/remove-base-path.js +0 -3
- package/dist/_virtual/remove-locale.js +0 -3
- package/dist/_virtual/remove-path-prefix.js +0 -3
- package/dist/_virtual/remove-trailing-slash.js +0 -3
- package/dist/_virtual/request-idle-callback.js +0 -3
- package/dist/_virtual/resolve-href.js +0 -3
- package/dist/_virtual/resolve-rewrites.js +0 -3
- package/dist/_virtual/route-loader.js +0 -3
- package/dist/_virtual/route-matcher.js +0 -3
- package/dist/_virtual/route-regex.js +0 -3
- package/dist/_virtual/router-context.shared-runtime.js +0 -3
- package/dist/_virtual/router-reducer-types.js +0 -3
- package/dist/_virtual/router.js +0 -3
- package/dist/_virtual/router2.js +0 -3
- package/dist/_virtual/router3.js +0 -3
- package/dist/_virtual/script.js +0 -3
- package/dist/_virtual/segment.js +0 -3
- package/dist/_virtual/sorted-routes.js +0 -3
- package/dist/_virtual/trusted-types.js +0 -3
- package/dist/_virtual/use-intersection.js +0 -3
- package/dist/_virtual/utils.js +0 -3
- package/dist/_virtual/with-router.js +0 -3
- package/dist/components/Accordeon/Accordeon.types.d.ts +0 -4
- package/dist/components/AuthButton/index.d.ts +0 -1
- package/dist/components/Dialog/Dialog.types.d.ts +0 -7
- package/dist/components/PrimaryButton/PrimaryButton.d.ts +0 -8
- package/dist/components/PrimaryButton/index.d.ts +0 -1
- package/dist/components/SvgIcon/SvgIcon.types.d.ts +0 -8
- package/dist/components/index.d.ts +0 -31
- package/dist/components/useDimensions.d.ts +0 -4
- package/dist/components/useOrientation.d.ts +0 -3
- package/dist/components/useScroll.d.ts +0 -4
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +0 -7
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +0 -48
- package/dist/node_modules/clsx/dist/clsx.m.js +0 -3
- package/dist/node_modules/external-svg-loader/dist/svg-loader.min.js +0 -1
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
- package/dist/node_modules/next/dist/client/add-locale.js +0 -42
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -78
- package/dist/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -69
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -39
- package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
- package/dist/node_modules/next/dist/client/head-manager.js +0 -212
- package/dist/node_modules/next/dist/client/link.js +0 -431
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -50
- package/dist/node_modules/next/dist/client/remove-base-path.js +0 -45
- package/dist/node_modules/next/dist/client/remove-locale.js +0 -41
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -99
- package/dist/node_modules/next/dist/client/route-loader.js +0 -327
- package/dist/node_modules/next/dist/client/router.js +0 -202
- package/dist/node_modules/next/dist/client/script.js +0 -353
- package/dist/node_modules/next/dist/client/trusted-types.js +0 -54
- package/dist/node_modules/next/dist/client/use-intersection.js +0 -129
- package/dist/node_modules/next/dist/client/with-router.js +0 -52
- package/dist/node_modules/next/dist/compiled/cookie/index.js +0 -18
- package/dist/node_modules/next/dist/compiled/gzip-size/index.js +0 -15
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -416
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -230
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js +0 -26
- package/dist/node_modules/next/dist/compiled/react-is/index.js +0 -21
- package/dist/node_modules/next/dist/lib/is-api-route.js +0 -27
- package/dist/node_modules/next/dist/lib/is-error.js +0 -53
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -35
- package/dist/node_modules/next/dist/server/future/helpers/interception-routes.js +0 -97
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -63
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +0 -96
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +0 -50
- package/dist/node_modules/next/dist/shared/lib/mitt.js +0 -57
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/router.js +0 -1771
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -99
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +0 -29
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -69
- package/dist/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js +0 -49
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -67
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -28
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -40
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -47
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -62
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -245
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -80
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -35
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +0 -136
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -53
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -200
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -182
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -28
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -196
- package/dist/node_modules/next/link.js +0 -7
- package/dist/node_modules/next/router.js +0 -6
- package/dist/node_modules/react-toastify/dist/react-toastify.esm.mjs.js +0 -7
- package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/dist/services/prisma.service.d.ts +0 -2
- package/dist/src/components/Accordeon/Accordeon.js +0 -14
- package/dist/src/components/Accordeon/styles.module.scss.js +0 -7
- package/dist/src/components/AuthButton/styles.module.scss.js +0 -4
- package/dist/src/components/CardButton/styles.module.scss.js +0 -4
- package/dist/src/components/Checkbox/styles.module.scss.js +0 -4
- package/dist/src/components/ChooseRole/styles.module.scss.js +0 -4
- package/dist/src/components/CopyCode/styles.module.scss.js +0 -4
- package/dist/src/components/Dialog/Dialog.js +0 -14
- package/dist/src/components/Dialog/styles.module.scss.js +0 -7
- package/dist/src/components/FormButton/styles.module.scss.js +0 -4
- package/dist/src/components/FormText/styles.module.scss.js +0 -4
- package/dist/src/components/ForwardButton/styles.module.scss.js +0 -4
- package/dist/src/components/Gap/Gap.js +0 -7
- package/dist/src/components/InputMail/styles.module.scss.js +0 -4
- package/dist/src/components/InputNames/styles.module.scss.js +0 -4
- package/dist/src/components/InputNumber/styles.module.scss.js +0 -4
- package/dist/src/components/InputPassword/styles.module.scss.js +0 -4
- package/dist/src/components/InputPin/styles.module.scss.js +0 -4
- package/dist/src/components/InputText/styles.module.scss.js +0 -4
- package/dist/src/components/OptionField/styles.module.scss.js +0 -4
- package/dist/src/components/OptionFieldHorizontal/styles.module.scss.js +0 -4
- package/dist/src/components/PrimaryButton/styles.module.scss.js +0 -4
- package/dist/src/components/ProgressBar/styles.module.scss.js +0 -4
- package/dist/src/components/RadioButtons/styles.module.scss.js +0 -4
- package/dist/src/components/RedirectButton/styles.module.scss.js +0 -4
- package/dist/src/components/SearchChips/styles.module.scss.js +0 -4
- package/dist/src/components/Searchbar/styles.module.scss.js +0 -4
- package/dist/src/components/Slider/styles.module.scss.js +0 -4
- package/dist/src/components/StepBack/styles.module.scss.js +0 -4
- package/dist/src/components/SvgIcon/SvgIcon.js +0 -9
- package/dist/src/components/Table/Table.js +0 -12
- package/dist/src/components/Table/styles.module.scss.js +0 -4
- package/dist/src/components/TextWithIcon/styles.module.scss.js +0 -4
- package/dist/src/components/UsageCard/styles.module.scss.js +0 -4
- package/dist/src/index.js +0 -36
- package/dist/types/Concept.d.ts +0 -7
- package/dist/types/Content.d.ts +0 -15
- package/dist/types/CourseAnnouncement.d.ts +0 -13
- package/dist/types/CourseAnnouncementAsset.d.ts +0 -22
- package/dist/types/CourseAnnouncementAssset.d.ts +0 -21
- package/dist/types/CourseMessage.d.ts +0 -13
- package/dist/types/CourseParticipant.d.ts +0 -9
- package/dist/types/CoursePin.d.ts +0 -8
- package/dist/types/File.d.ts +0 -13
- package/dist/types/HelpData.d.ts +0 -8
- package/dist/types/News.d.ts +0 -13
- package/dist/types/OrganizationMember.d.ts +0 -12
- package/dist/types/Page.d.ts +0 -8
- package/dist/types/ProductFeature.d.ts +0 -8
- package/dist/types/ProductLimit.d.ts +0 -8
- package/dist/types/PublicUser.d.ts +0 -7
- package/dist/types/index.d.ts +0 -2
- package/dist/types/marketing/BenefitForIndividuals.d.ts +0 -9
- package/dist/types/marketing/BenefitForSchools.d.ts +0 -9
- package/dist/types/marketing/Page.d.ts +0 -8
- package/dist/types/marketing/WebsiteData.d.ts +0 -23
package/dist/index.esm.js
CHANGED
@@ -9382,46 +9382,45 @@ function Accordeon({ title, children }) {
|
|
9382
9382
|
React__default.createElement("div", { className: styles$w.content }, children)));
|
9383
9383
|
}
|
9384
9384
|
|
9385
|
-
var css_248z$v = ".styles-
|
9386
|
-
var styles$v = {"container":"styles-
|
9385
|
+
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}";
|
9386
|
+
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"};
|
9387
9387
|
styleInject(css_248z$v);
|
9388
9388
|
|
9389
|
-
function
|
9390
|
-
|
9391
|
-
|
9392
|
-
|
9393
|
-
|
9389
|
+
function Button({ id, children, iconName, iconFill = "white", type = "blue", onClick = () => { }, ...props }) {
|
9390
|
+
const onClickButton = (event) => {
|
9391
|
+
event.preventDefault();
|
9392
|
+
onClick(event);
|
9393
|
+
};
|
9394
|
+
return (React__default.createElement("div", { className: styles$v.container },
|
9395
|
+
React__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 },
|
9396
|
+
children,
|
9397
|
+
iconName && React__default.createElement(SvgIcon, { iconName: iconName }))));
|
9394
9398
|
}
|
9395
9399
|
|
9396
|
-
var css_248z$u = ".styles-
|
9397
|
-
var styles$u = {"container":"styles-
|
9400
|
+
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}";
|
9401
|
+
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"};
|
9398
9402
|
styleInject(css_248z$u);
|
9399
9403
|
|
9400
|
-
function
|
9401
|
-
|
9402
|
-
|
9403
|
-
|
9404
|
-
|
9405
|
-
}
|
9406
|
-
return (React__default.createElement("div", { className: styles$u.container },
|
9407
|
-
React__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 },
|
9408
|
-
text,
|
9409
|
-
iconName && React__default.createElement(SvgIcon, { iconName: iconName }))));
|
9404
|
+
function Button2({ id, children, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, style, onClick }) {
|
9405
|
+
return (React__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 },
|
9406
|
+
React__default.createElement("button", { type: type, className: `${styles$u.button} ${styles$u[theme]}`, onClick: onClick, id: id },
|
9407
|
+
children,
|
9408
|
+
React__default.createElement(SvgIcon, { iconName: iconName }))));
|
9410
9409
|
}
|
9411
9410
|
|
9412
9411
|
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}";
|
9413
9412
|
var styles$t = {"card":"styles-module_card__bOd85"};
|
9414
9413
|
styleInject(css_248z$t);
|
9415
9414
|
|
9416
|
-
function CardButton({ id,
|
9415
|
+
function CardButton({ id, children, iconName, onClick, ...props }) {
|
9417
9416
|
function onClickCard(event) {
|
9418
9417
|
event.preventDefault();
|
9419
9418
|
if (onClick)
|
9420
9419
|
onClick(event);
|
9421
9420
|
}
|
9422
|
-
return (React__default.createElement("div", { className: styles$t.card, onClick: onClickCard, id: id },
|
9421
|
+
return (React__default.createElement("div", { className: styles$t.card, onClick: onClickCard, id: id, ...props },
|
9423
9422
|
React__default.createElement(SvgIcon, { iconName: iconName, size: "32px" }),
|
9424
|
-
React__default.createElement("h2", null,
|
9423
|
+
React__default.createElement("h2", null, children)));
|
9425
9424
|
}
|
9426
9425
|
|
9427
9426
|
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}";
|
@@ -9430,8 +9429,8 @@ styleInject(css_248z$s);
|
|
9430
9429
|
|
9431
9430
|
function Checkbox({ id, name, checked, defaultChecked = false, onInput = () => { }, children }) {
|
9432
9431
|
return (React__default.createElement("div", { className: styles$s.container },
|
9433
|
-
React__default.createElement("input", { type: "checkbox", onInput: onInput, name: name, checked: checked, defaultChecked: defaultChecked, id: id
|
9434
|
-
React__default.createElement("label", { htmlFor: id
|
9432
|
+
React__default.createElement("input", { type: "checkbox", onInput: onInput, name: name, checked: checked, defaultChecked: defaultChecked, id: id || name }),
|
9433
|
+
React__default.createElement("label", { htmlFor: id || name }, children),
|
9435
9434
|
React__default.createElement(SvgIcon, { iconName: "done", size: "21px" })));
|
9436
9435
|
}
|
9437
9436
|
|
@@ -9439,36 +9438,29 @@ var css_248z$r = ".styles-module_container__OqDNA {\n display: flex;\n flex-di
|
|
9439
9438
|
var styles$r = {"container":"styles-module_container__OqDNA","item":"styles-module_item__1SMCI","selected":"styles-module_selected__AXIA-"};
|
9440
9439
|
styleInject(css_248z$r);
|
9441
9440
|
|
9442
|
-
|
9443
|
-
|
9444
|
-
value;
|
9445
|
-
constructor(title, value) {
|
9446
|
-
this.title = title;
|
9447
|
-
this.value = value;
|
9448
|
-
}
|
9449
|
-
}
|
9450
|
-
function ChooseRole({ roles, defaultSelected, readOnly = false, onChange }) {
|
9441
|
+
const ChooseRoleItem = ({ item, isSelected, onUpdate, }) => (React__default.createElement("div", { className: [styles$r.item, isSelected ? styles$r.selected : styles$r.not_selected].join(" "), onClick: () => onUpdate(item.value) }, item.title));
|
9442
|
+
function ChooseRole({ roles, defaultSelected, readOnly = false, onChange = () => { } }) {
|
9451
9443
|
const [selected, setSelected] = useState(defaultSelected);
|
9444
|
+
useEffect(() => setSelected(defaultSelected), [defaultSelected]);
|
9452
9445
|
function onUpdate(newRole) {
|
9453
9446
|
if (readOnly)
|
9454
9447
|
return;
|
9455
9448
|
setSelected(newRole);
|
9456
9449
|
onChange(newRole);
|
9457
9450
|
}
|
9458
|
-
return (React__default.createElement("div", { className: styles$r.container }, roles.map(
|
9451
|
+
return (React__default.createElement("div", { className: styles$r.container }, roles.map(item => React__default.createElement(ChooseRoleItem, { key: item.value, item: item, onUpdate: onUpdate, isSelected: selected === item.value }))));
|
9459
9452
|
}
|
9460
9453
|
|
9461
9454
|
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}";
|
9462
9455
|
var styles$q = {"container":"styles-module_container__yV6C8"};
|
9463
9456
|
styleInject(css_248z$q);
|
9464
9457
|
|
9465
|
-
function CopyCode({ code,
|
9466
|
-
|
9458
|
+
function CopyCode({ code, onCopy = () => { }, ...props }) {
|
9459
|
+
const onClick = () => {
|
9467
9460
|
navigator.clipboard.writeText(code);
|
9468
|
-
|
9469
|
-
|
9470
|
-
}
|
9471
|
-
return (React__default.createElement("div", { className: styles$q.container, onClick: onClick, style: style },
|
9461
|
+
onCopy();
|
9462
|
+
};
|
9463
|
+
return (React__default.createElement("div", { className: styles$q.container, onClick: onClick, ...props },
|
9472
9464
|
React__default.createElement(SvgIcon, { iconName: "content_copy" }),
|
9473
9465
|
React__default.createElement("span", null, code),
|
9474
9466
|
React__default.createElement("input", { type: "hidden", name: "code", value: code })));
|
@@ -9495,7 +9487,7 @@ function Dialog({ data, enabled, text, onClose, onSubmit = () => { }, children }
|
|
9495
9487
|
React__default.createElement("button", { className: styles$p.submit_button, id: "submit-button", onClick: (event) => onSubmit(event, data) }, "Best\u00E4tigen"))));
|
9496
9488
|
}
|
9497
9489
|
|
9498
|
-
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}";
|
9490
|
+
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}";
|
9499
9491
|
var styles$o = {"card":"styles-module_card__hT9fw"};
|
9500
9492
|
styleInject(css_248z$o);
|
9501
9493
|
|
@@ -9504,21 +9496,21 @@ function EmptyCard({ title = "Keine Daten", subtitle = "Es sind keine Daten vorh
|
|
9504
9496
|
React__default.createElement(SvgIcon, { size: "60px", iconName: iconName }),
|
9505
9497
|
React__default.createElement("h1", null, title),
|
9506
9498
|
React__default.createElement("p", null, subtitle),
|
9507
|
-
button && React__default.createElement(Button, {
|
9499
|
+
button && React__default.createElement(Button, { onClick: onClick, type: "lightBlue" }, button)));
|
9508
9500
|
}
|
9509
9501
|
|
9510
9502
|
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}";
|
9511
9503
|
var styles$n = {"container":"styles-module_container__HOoBj"};
|
9512
9504
|
styleInject(css_248z$n);
|
9513
9505
|
|
9514
|
-
function FormButton({ id,
|
9506
|
+
function FormButton({ id, children, style = {}, iconName = "", type = "submit", background = "#0075FF", onClick = () => { }, ...props }) {
|
9515
9507
|
return (React__default.createElement("div", { className: styles$n.container, style: style },
|
9516
|
-
React__default.createElement("button", { type: type, onClick: onClick, style: { background: background }, id: id },
|
9517
|
-
|
9508
|
+
React__default.createElement("button", { type: type, onClick: onClick, style: { background: background }, id: id, ...props },
|
9509
|
+
children,
|
9518
9510
|
iconName && React__default.createElement(SvgIcon, { iconName: iconName, color: "white" }))));
|
9519
9511
|
}
|
9520
9512
|
|
9521
|
-
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:
|
9513
|
+
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}";
|
9522
9514
|
var styles$m = {"container":"styles-module_container__9wYEm"};
|
9523
9515
|
styleInject(css_248z$m);
|
9524
9516
|
|
@@ -10434,4 +10426,8 @@ function useScroll() {
|
|
10434
10426
|
return scroll;
|
10435
10427
|
}
|
10436
10428
|
|
10437
|
-
|
10429
|
+
const site = (pathname) => process.env.NEXT_PUBLIC_APP_URL + pathname;
|
10430
|
+
const app = (pathname) => site("/app" + pathname);
|
10431
|
+
const cdn = (pathname) => process.env.NEXT_PUBLIC_WEB_ASSETS_CDN + pathname;
|
10432
|
+
|
10433
|
+
export { Accordeon, Button, Button2, CardButton, Checkbox, ChooseRole, CopyCode, Dialog, EmptyCard, FormButton, FormText, ForwardButton, Gap, InputArea, InputMail, InputNames, InputNumber, InputPassword, InputPin, InputText, OptionField, OptionFieldHorizontal, Popover, ProgressBar, RadioButtons, RadioOption, RedirectButton, SearchChip, SearchChips, Searchbar, Slider, SliderCard, StepBack, SvgIcon, Table, Tabs, TextWithIcon, UsageCard, app, cdn, site, useDimensions, useOrientation, useScroll };
|
@@ -0,0 +1,24 @@
|
|
1
|
+
@font-face {
|
2
|
+
font-family: 'Material Symbols Outlined';
|
3
|
+
font-style: normal;
|
4
|
+
src: url("https://pub-cac338ae11a944ff9c57d280468b90e7.r2.dev/material-symbols-v156.woff2") format('woff2');
|
5
|
+
}
|
6
|
+
|
7
|
+
|
8
|
+
.material-symbols,
|
9
|
+
.material-symbols-outlined {
|
10
|
+
font-family: 'Material Symbols Outlined';
|
11
|
+
font-weight: 200;
|
12
|
+
font-style: normal;
|
13
|
+
font-size: 24px;
|
14
|
+
/* Preferred icon size */
|
15
|
+
display: inline-block;
|
16
|
+
line-height: 1;
|
17
|
+
text-transform: none;
|
18
|
+
letter-spacing: normal;
|
19
|
+
word-wrap: normal;
|
20
|
+
white-space: nowrap;
|
21
|
+
direction: ltr;
|
22
|
+
user-select: none;
|
23
|
+
-webkit-user-select: none;
|
24
|
+
}
|
@@ -0,0 +1,164 @@
|
|
1
|
+
:root {
|
2
|
+
--background-1: #FFFFFF;
|
3
|
+
--background-2: #FAFAFA;
|
4
|
+
--background-3: #FAFAFA; // dark -> black
|
5
|
+
--background-4: #e5e5e5; // dark -> brighter
|
6
|
+
--foreground-1: #000000;
|
7
|
+
--foreground-2: #5C5C5C;
|
8
|
+
--foreground-3: #808080;
|
9
|
+
--foreground-4: #000000;
|
10
|
+
--border-1: #F0F0F0;
|
11
|
+
--border-2: #DFDFDF;
|
12
|
+
--border-3: #B1B1B1;
|
13
|
+
|
14
|
+
--primary-1: #0075FF;
|
15
|
+
--primary-2: #C6D4F8;
|
16
|
+
|
17
|
+
// dark green
|
18
|
+
--forest-1: #156A13;
|
19
|
+
--forest-2: #D9EED8;
|
20
|
+
|
21
|
+
// dark red
|
22
|
+
--wine-1: #6A1313;
|
23
|
+
--wine-2: #EFD4D4;
|
24
|
+
|
25
|
+
// dark blue
|
26
|
+
--navy-1: #1A136A;
|
27
|
+
--navy-2: #D4D5EF;
|
28
|
+
|
29
|
+
// dark pink
|
30
|
+
--cherry-1: #63136A;
|
31
|
+
--cherry-2: #DCB2E7;
|
32
|
+
|
33
|
+
// dark grey
|
34
|
+
--stone-1: #4A4A4A;
|
35
|
+
--stone-2: #B9B9B9;
|
36
|
+
|
37
|
+
// dark yellow
|
38
|
+
--sun-1: #D4A400;
|
39
|
+
--sun-2: #fffbe7;
|
40
|
+
|
41
|
+
// dark orange
|
42
|
+
--pumpkin-1: #D46A00;
|
43
|
+
--pumpkin-2: #FEEED4;
|
44
|
+
|
45
|
+
|
46
|
+
// artichoke
|
47
|
+
--artichoke-1: #314e2b;
|
48
|
+
--artichoke-2: #E8FBD7;
|
49
|
+
|
50
|
+
// desert:
|
51
|
+
--desert-1: #C19A6B;
|
52
|
+
--desert-2: #FDF7F0;
|
53
|
+
|
54
|
+
// yellow
|
55
|
+
--yellow-1: #D4A400;
|
56
|
+
--yellow-2: #fffbe7;
|
57
|
+
|
58
|
+
// green
|
59
|
+
--green-1: #5B8F26;
|
60
|
+
--green-2: #e8fbd7;
|
61
|
+
|
62
|
+
// red
|
63
|
+
--red-1: #EB4E3E;
|
64
|
+
--red-2: #FFE7E3;
|
65
|
+
|
66
|
+
// blue
|
67
|
+
--blue-1: #2961E5;
|
68
|
+
--blue-2: #ECF3FD;
|
69
|
+
|
70
|
+
// pink
|
71
|
+
--pink-1: #A357D7;
|
72
|
+
--pink-2: #F9F4FD;
|
73
|
+
|
74
|
+
// turquoise
|
75
|
+
--turquoise-1: #00C7BE;
|
76
|
+
--turquoise-2: #E8F9F8;
|
77
|
+
|
78
|
+
// orange
|
79
|
+
--orange-1: #FF9500;
|
80
|
+
--orange-2: #FFF5E3;
|
81
|
+
}
|
82
|
+
|
83
|
+
:root {
|
84
|
+
.dark-theme {
|
85
|
+
--background-1: #000000;
|
86
|
+
--background-2: #181818;
|
87
|
+
--background-3: #000000;
|
88
|
+
--background-4: #262626;
|
89
|
+
--foreground-1: #FFFFFF;
|
90
|
+
--foreground-2: #A1A1A1;
|
91
|
+
--foreground-3: #888888;
|
92
|
+
--foreground-4: #d6d6d6;
|
93
|
+
--border-1: #242424;
|
94
|
+
--border-2: #333333;
|
95
|
+
--border-3: #414141;
|
96
|
+
|
97
|
+
--primary-1: #0075FF;
|
98
|
+
--primary-2: #2c3347;
|
99
|
+
|
100
|
+
// dark green
|
101
|
+
--forest-1: #36c731;
|
102
|
+
--forest-2: #356431;
|
103
|
+
|
104
|
+
// dark red
|
105
|
+
--wine-1: #f3523a;
|
106
|
+
--wine-2: #863636;
|
107
|
+
|
108
|
+
// dark blue
|
109
|
+
--navy-1: rgb(118, 107, 231);
|
110
|
+
--navy-2: #282b8b;
|
111
|
+
|
112
|
+
// dark pink
|
113
|
+
--cherry-1: #c92cd7;
|
114
|
+
--cherry-2: #7c2592;
|
115
|
+
|
116
|
+
// dark grey
|
117
|
+
--stone-1: #e8e8e8;
|
118
|
+
--stone-2: #4d4b4b;
|
119
|
+
|
120
|
+
// dark yellow
|
121
|
+
--sun-1: #ffdb67;
|
122
|
+
--sun-2: #594c12;
|
123
|
+
|
124
|
+
// dark orange
|
125
|
+
--pumpkin-1: #ef9438;
|
126
|
+
--pumpkin-2: #714d11;
|
127
|
+
|
128
|
+
// artichoke
|
129
|
+
--artichoke-1: #314e2b;
|
130
|
+
--artichoke-2: #4a8e0c;
|
131
|
+
|
132
|
+
// desert:
|
133
|
+
--desert-1: #C19A6B;
|
134
|
+
--desert-2: #594c12;
|
135
|
+
|
136
|
+
// dark yellow
|
137
|
+
--yellow-1: #ffdb67;
|
138
|
+
--yellow-2: #594c12;
|
139
|
+
|
140
|
+
// green
|
141
|
+
--green-1: #95e941;
|
142
|
+
--green-2: #4a8e0c;
|
143
|
+
|
144
|
+
// red
|
145
|
+
--red-1: #ff5c49;
|
146
|
+
--red-2: #741707;
|
147
|
+
|
148
|
+
// blue
|
149
|
+
--blue-1: #a5c0ff;
|
150
|
+
--blue-2: #1b4a8c;
|
151
|
+
|
152
|
+
// pink
|
153
|
+
--pink-1: #c596e4;
|
154
|
+
--pink-2: #581d88;
|
155
|
+
|
156
|
+
// turquoise
|
157
|
+
--turquoise-1: #00C7BE;
|
158
|
+
--turquoise-2: #21504d;
|
159
|
+
|
160
|
+
// orange
|
161
|
+
--orange-1: #FF9500;
|
162
|
+
--orange-2: #FFF5E3;
|
163
|
+
}
|
164
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
:root {
|
2
|
+
|
3
|
+
--focus-shadow: 0px 0px 0px 4px #0057FF40;
|
4
|
+
--focus-border: 1px solid var(--primary-1);
|
5
|
+
|
6
|
+
--font-1: 'Space Grotesk', var(--font-2);
|
7
|
+
--font-2: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
|
8
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "math-main-components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.197",
|
4
4
|
"author": "Emilian Scheel",
|
5
5
|
"files": [
|
6
6
|
"dist/**/*"
|
@@ -20,15 +20,27 @@
|
|
20
20
|
"@rollup/plugin-commonjs": "^22.0.1",
|
21
21
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
22
22
|
"@rollup/plugin-typescript": "^8.3.4",
|
23
|
+
"@storybook/addon-essentials": "^7.6.13",
|
24
|
+
"@storybook/addon-interactions": "^7.6.13",
|
25
|
+
"@storybook/addon-links": "^7.6.13",
|
26
|
+
"@storybook/addon-onboarding": "^1.0.11",
|
27
|
+
"@storybook/blocks": "^7.6.13",
|
28
|
+
"@storybook/react": "^7.6.13",
|
29
|
+
"@storybook/react-vite": "^7.6.13",
|
30
|
+
"@storybook/test": "^7.6.13",
|
23
31
|
"@types/react": "^18.0.15",
|
24
32
|
"@types/react-dom": "^18.0.6",
|
25
33
|
"autoprefixer": "^10.4.7",
|
26
34
|
"babel": "^6.23.0",
|
27
35
|
"babel-loader": "^9.1.3",
|
28
36
|
"postcss": "^8.4.14",
|
37
|
+
"postcss-load-config": "^5.0.3",
|
29
38
|
"postcss-modules": "^4.3.1",
|
39
|
+
"react": "^18.2.0",
|
40
|
+
"react-dom": "^18.2.0",
|
30
41
|
"react-minimal-pie-chart": "^8.4.0",
|
31
42
|
"rollup": "^2.77.2",
|
43
|
+
"rollup-plugin-copy": "^3.5.0",
|
32
44
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
33
45
|
"rollup-plugin-postcss": "^4.0.2",
|
34
46
|
"rollup-plugin-preserve-directives": "^0.2.0",
|
@@ -49,7 +61,9 @@
|
|
49
61
|
"git-add-package-json": "git add package.json",
|
50
62
|
"build": "npm run build:js && npm run build:types",
|
51
63
|
"build:js": "rollup -c",
|
52
|
-
"build:types": "tsc --emitDeclarationOnly --outDir dist"
|
64
|
+
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
65
|
+
"storybook": "storybook dev -p 6006",
|
66
|
+
"build-storybook": "storybook build"
|
53
67
|
},
|
54
68
|
"dependencies": {
|
55
69
|
"@sanity/types": "^3.20.1",
|
@@ -60,6 +74,7 @@
|
|
60
74
|
"nodemon": "^3.0.2",
|
61
75
|
"pre-commit": "^1.2.2",
|
62
76
|
"sanity": "^3.20.1",
|
77
|
+
"storybook": "^7.6.13",
|
63
78
|
"stripe": "^14.5.0"
|
64
79
|
}
|
65
|
-
}
|
80
|
+
}
|
package/dist/_virtual/index.js
DELETED
package/dist/_virtual/index2.js
DELETED
package/dist/_virtual/index3.js
DELETED
package/dist/_virtual/index4.js
DELETED
package/dist/_virtual/index5.js
DELETED