@pismo/marola 0.0.1-alpha.4 → 0.0.1-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -5
- package/dist/{Button-C3Qm852g.js → Button-W6tM-_IT.js} +6 -5
- package/dist/Dialog.module-CGVM5V_D.js +15 -0
- package/dist/{ListContext-D6-YwtZn.js → ListContext-Dj2Va7Iv.js} +2 -2
- package/dist/Portal-P3fPvS3-.js +19695 -0
- package/dist/{Tabs.module-_kSbSyth.js → Tabs.module-BA-PC7fA.js} +16 -16
- package/dist/_commonjsHelpers-CT_km90n.js +30 -0
- package/dist/assets/Advice.css +1 -0
- package/dist/assets/Button.css +1 -0
- package/dist/assets/Checkbox.css +1 -0
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/IconButton.css +1 -0
- package/dist/assets/LoadingSpinner.css +1 -1
- package/dist/assets/PageHeader.css +1 -0
- package/dist/assets/Pagination.css +1 -0
- package/dist/assets/Skeleton.css +1 -0
- package/dist/assets/SortTooltip.css +1 -0
- package/dist/assets/Stepper.css +1 -0
- package/dist/assets/Table.css +1 -0
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/Tooltip.css +1 -0
- package/dist/assets/Typography.css +1 -1
- package/dist/assets/global.css +1 -0
- package/dist/components/Advice/Advice.d.ts +13 -0
- package/dist/components/Advice/Advice.js +25 -0
- package/dist/components/Button/Button.d.ts +21 -0
- package/dist/components/Button/Button.js +70 -0
- package/dist/components/Checkbox/Checkbox.d.ts +17 -0
- package/dist/components/Checkbox/Checkbox.js +48 -0
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +1 -1
- package/dist/components/Dialog/Backdrop.js +2 -9
- package/dist/components/Dialog/CloseIconButton.js +12 -124
- package/dist/components/Dialog/Dialog.d.ts +2 -2
- package/dist/components/Dialog/Dialog.js +418 -20077
- package/dist/components/Dialog/Title.js +22 -7
- package/dist/components/Icon/Icon.d.ts +7 -0
- package/dist/components/Icon/Icon.js +9 -0
- package/dist/components/IconButton/IconButton.d.ts +22 -0
- package/dist/components/IconButton/IconButton.js +68 -0
- package/dist/components/LoadingSpinner/LoadingSpinner.js +12 -13
- package/dist/components/PageHeader/PageHeader.d.ts +36 -0
- package/dist/components/PageHeader/PageHeader.js +51 -0
- package/dist/components/PageHeader/PageHeader.stories.d.ts +43 -0
- package/dist/components/PageHeader/PageHeader.stories.js +49 -0
- package/dist/components/Pagination/Pagination.d.ts +36 -0
- package/dist/components/Pagination/Pagination.js +219 -0
- package/dist/components/Skeleton/Skeleton.d.ts +18 -0
- package/dist/components/Skeleton/Skeleton.js +26 -0
- package/dist/components/SortTooltip/SortTooltip.d.ts +26 -0
- package/dist/components/SortTooltip/SortTooltip.js +67 -0
- package/dist/components/Stepper/Stepper.d.ts +16 -0
- package/dist/components/Stepper/Stepper.js +33 -0
- package/dist/components/Table/Table.d.ts +39 -0
- package/dist/components/Table/Table.js +122 -0
- package/dist/components/Table/TableContext.d.ts +19 -0
- package/dist/components/Table/TableContext.js +21 -0
- package/dist/components/Tabs/Tab.d.ts +1 -1
- package/dist/components/Tabs/Tab.js +42 -37
- package/dist/components/Tabs/TabPanel.d.ts +1 -1
- package/dist/components/Tabs/TabPanel.js +20 -21
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +185 -214
- package/dist/components/Tooltip/Tooltip.d.ts +17 -0
- package/dist/components/Tooltip/Tooltip.js +1463 -0
- package/dist/components/Typography/Typography.d.ts +14 -5
- package/dist/components/Typography/Typography.js +76 -68
- package/dist/components/Typography/Typography.stories.d.ts +18 -0
- package/dist/components/Typography/Typography.stories.js +30 -0
- package/dist/components/Typography/typography.test.d.ts +1 -0
- package/dist/components/Typography/typography.test.js +11360 -0
- package/dist/{index-BZ1lkM_M.js → index-D2P7y2mE.js} +303 -327
- package/dist/magic-string.es-O_8lTkE3.js +738 -0
- package/dist/main.d.ts +5 -1
- package/dist/main.js +30 -21
- package/dist/objectWithoutPropertiesLoose-D7Cp0Pg_.js +26 -0
- package/dist/react-CGNQ6M5x.js +117 -0
- package/dist/test-utils/assertStyles.d.ts +1 -0
- package/dist/test-utils/assertStyles.js +11 -0
- package/dist/types/helpers.d.ts +14 -7
- package/dist/{useButton-CbmjmH5z.js → useButton-JpyBo5M4.js} +17 -16
- package/dist/{useCompoundItem-B7wfGDHQ.js → useCompoundItem-CTYi5M_E.js} +1 -1
- package/dist/useControlled-CCMYYdCM.js +31 -0
- package/dist/utils/styleStrings.d.ts +6 -0
- package/dist/utils/styleStrings.js +10 -0
- package/dist/utils/styleStrings.test.d.ts +1 -0
- package/dist/utils/styleStrings.test.js +41 -0
- package/dist/vi.Y_w82WR8-Df0JUamG.js +9860 -0
- package/package.json +47 -7
- package/dist/Dialog.module-BO0mdB7d.js +0 -15
- package/dist/assets/CallToActionButton.css +0 -1
- package/dist/assets/main.css +0 -1
- package/dist/components/CallToActionButton/CallToActionButton.d.ts +0 -21
- package/dist/components/CallToActionButton/CallToActionButton.js +0 -57
- package/src/playground/Playground.tsx +0 -20
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pismo/marola",
|
|
3
3
|
"description": "CDX tribe component library",
|
|
4
|
-
"version": "0.0.1-alpha.
|
|
4
|
+
"version": "0.0.1-alpha.6",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"types": "dist/main.d.ts",
|
|
@@ -17,37 +17,77 @@
|
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
19
|
"dev": "vite",
|
|
20
|
-
"
|
|
21
|
-
"lint": "
|
|
20
|
+
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
|
|
21
|
+
"lint:fix": "yarn lint --fix",
|
|
22
|
+
"lint:scss": "stylelint \"**/*.scss\" --fix",
|
|
23
|
+
"prettier": "prettier . --write",
|
|
22
24
|
"preview": "vite preview",
|
|
23
|
-
"prepublishOnly": "npm run build"
|
|
25
|
+
"prepublishOnly": "npm run build",
|
|
26
|
+
"test": "yarn test:unit",
|
|
27
|
+
"test:unit": "vitest run",
|
|
28
|
+
"test:unit:visual": "vitest-preview",
|
|
29
|
+
"test:unit:watch": "vitest",
|
|
30
|
+
"test:e2e": "echo \"no test implemented\"",
|
|
31
|
+
"coverage": "vitest run --coverage",
|
|
32
|
+
"build": "tsc --p ./tsconfig-build.json && vite build",
|
|
33
|
+
"postbuild": "storybook build --disable-telemetry --output-dir build",
|
|
34
|
+
"storybook": "storybook dev -p 6006"
|
|
24
35
|
},
|
|
25
36
|
"peerDependencies": {
|
|
26
37
|
"react": "^18.2.0",
|
|
27
38
|
"react-dom": "^18.2.0"
|
|
28
39
|
},
|
|
29
40
|
"devDependencies": {
|
|
41
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.2.1",
|
|
42
|
+
"@storybook/addon-a11y": "^8.0.8",
|
|
43
|
+
"@storybook/addon-essentials": "^8.0.8",
|
|
44
|
+
"@storybook/addon-interactions": "^8.0.8",
|
|
45
|
+
"@storybook/addon-links": "^8.0.8",
|
|
46
|
+
"@storybook/addon-onboarding": "^8.0.8",
|
|
47
|
+
"@storybook/blocks": "^8.0.8",
|
|
48
|
+
"@storybook/react": "^8.0.8",
|
|
49
|
+
"@storybook/react-vite": "^8.0.8",
|
|
50
|
+
"@storybook/test": "^8.0.8",
|
|
51
|
+
"@testing-library/react": "^15.0.5",
|
|
30
52
|
"@types/node": "^20.12.2",
|
|
31
53
|
"@types/react": "^18.2.66",
|
|
32
54
|
"@types/react-dom": "^18.2.22",
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
34
|
-
"@typescript-eslint/parser": "^7.
|
|
55
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
56
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
35
57
|
"@vitejs/plugin-react": "^4.2.1",
|
|
36
58
|
"clsx": "^2.1.0",
|
|
59
|
+
"commitlint": "^19.2.1",
|
|
60
|
+
"cypress": "^13.8.1",
|
|
37
61
|
"eslint": "^8.57.0",
|
|
62
|
+
"eslint-config-prettier": "^9.1.0",
|
|
63
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
38
64
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
39
65
|
"eslint-plugin-react-refresh": "^0.4.6",
|
|
66
|
+
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
67
|
+
"eslint-plugin-storybook": "^0.8.0",
|
|
40
68
|
"glob": "^10.3.12",
|
|
69
|
+
"husky": "^9.0.11",
|
|
70
|
+
"jsdom": "^24.0.0",
|
|
71
|
+
"prettier": "^3.2.5",
|
|
41
72
|
"react": "^18.2.0",
|
|
42
73
|
"react-dom": "^18.2.0",
|
|
43
74
|
"sass": "^1.72.0",
|
|
75
|
+
"storybook": "^8.0.8",
|
|
76
|
+
"stylelint": "^16.3.1",
|
|
77
|
+
"stylelint-config-recess-order": "^5.0.0",
|
|
78
|
+
"stylelint-config-standard-scss": "^13.1.0",
|
|
79
|
+
"stylelint-prettier": "^5.0.0",
|
|
44
80
|
"typescript": "^5.2.2",
|
|
45
81
|
"vite": "^5.2.0",
|
|
46
82
|
"vite-plugin-dts": "^3.8.1",
|
|
47
|
-
"vite-plugin-lib-inject-css": "^2.0.1"
|
|
83
|
+
"vite-plugin-lib-inject-css": "^2.0.1",
|
|
84
|
+
"vite-plugin-svgr": "^4.2.0",
|
|
85
|
+
"vitest": "^1.4.0",
|
|
86
|
+
"vitest-preview": "^0.0.1"
|
|
48
87
|
},
|
|
49
88
|
"dependencies": {
|
|
50
89
|
"@mui/base": "^5.0.0-beta.40",
|
|
90
|
+
"@mui/material": "^5.15.15",
|
|
51
91
|
"@pismo/waves-icons": "^1.3.3"
|
|
52
92
|
}
|
|
53
93
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import './assets/Dialog.css';
|
|
2
|
-
const _ = "_dialog_cknma_1", a = "_dialog__backdrop_cknma_11", i = "_dialog__panel_cknma_19", o = "_dialog__title_cknma_35", l = "_dialog__subtitle_cknma_42", d = "_dialog__divider_cknma_51", t = "_dialog__actions_cknma_64", c = {
|
|
3
|
-
dialog: _,
|
|
4
|
-
dialog__backdrop: a,
|
|
5
|
-
dialog__panel: i,
|
|
6
|
-
dialog__title: o,
|
|
7
|
-
"dialog__title--small": "_dialog__title--small_cknma_39",
|
|
8
|
-
dialog__subtitle: l,
|
|
9
|
-
dialog__divider: d,
|
|
10
|
-
"dialog__close-icon": "_dialog__close-icon_cknma_55",
|
|
11
|
-
dialog__actions: t
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
c as s
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._h1_j1yzk_1{font-size:var(--heading-font-size-xl);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-xl);margin:0}._h1--bold_j1yzk_7{font-weight:var(--typography-heading-bold)}._h2_j1yzk_11{font-size:var(--heading-font-size-l);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-l);margin:0}._h2--bold_j1yzk_17{font-weight:var(--typography-heading-bold)}._h3_j1yzk_21{font-size:var(--heading-font-size);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height);margin:0}._h3--bold_j1yzk_27{font-weight:var(--typography-heading-bold)}._h4_j1yzk_31{font-size:var(--heading-font-size-s);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-s);margin:0}._h4--bold_j1yzk_37{font-weight:var(--typography-heading-bold)}._body_j1yzk_41{font-size:var(--body-font-size);line-height:var(--body-line-height);font-weight:var(--body-weight)}._body--large_j1yzk_46{font-size:var(--body-font-size-large);line-height:var(--body-line-height-large)}._body--medium_j1yzk_50{font-size:var(--body-font-size-medium);line-height:var(--body-line-height-medium)}._body--small_j1yzk_54{font-size:var(--body-font-size-small);line-height:var(--body-line-height-small)}._body--tiny_j1yzk_58{font-size:var(--body-font-size-tiny);line-height:var(--body-line-height-tiny)}._body--bold_j1yzk_62{font-weight:var(--body-bold)}._body--strikethrough_j1yzk_65{text-decoration:line-through}._body--underlined_j1yzk_68{text-decoration:underline}._body--strikethrough-underlined_j1yzk_71{text-decoration:underline line-through}._quote_j1yzk_75{font-size:var(--quote-font-size);line-height:var(--quote-line-height);font-weight:var(--quote-font-weight)}._quote--large_j1yzk_80{font-size:var(--quote-font-size-large);line-height:var(--quote-line-height-large);font-weight:var(--quote-font-weight-large)}._form__input_j1yzk_86{font-size:var(--form-input-font-size);line-height:var(--form-input-line-height);font-weight:var(--form-input-font-weight)}._form__hint_j1yzk_91{font-size:var(--form-hint-font-size);line-height:var(--form-hint-line-height);font-weight:var(--form-hint-font-weight)}._form__label_j1yzk_96{font-size:var(--form-label-font-size);line-height:var(--form-label-line-height);font-weight:var(--form-label-font-weight)}._form__dropdown_j1yzk_101{font-size:var(--form-dropdown-font-size);line-height:var(--form-dropdown-line-height);font-weight:var(--form-dropdown-font-weight)}._table__header_j1yzk_107{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-header-font-weight)}._table__body_j1yzk_112{font-size:var(--table-font-size);line-height:var(--table-line-height);font-weight:var(--table-body-font-weight)}._table__body--secondary_j1yzk_117{font-size:var(--table-font-size);line-height:var(--table-line-height);line-height:var(--table-body-secondary-line-height)}._button_j1yzk_123{font-size:var(--button-font-size);line-height:var(--button-line-height);font-weight:var(--button-font-weight)}._button_j1yzk_123{font-size:var(--button-font-size);line-height:var(--button-line-height);font-weight:var(--button-font-weight);padding:calc(var(--spacing) * 1.25) calc(var(--spacing) * 4.375);border-radius:calc(var(--spacing) * 12.5);border:none;cursor:pointer}._button--primary_j1yzk_138{background-color:var(--accent);color:var(--white-100)}._button--primary_j1yzk_138:hover{background-color:var(--accent-dark)}._button--primary_j1yzk_138:focus{background-color:var(--accent-lighter);color:var(--black-100)}._button--primary_j1yzk_138:active{background-color:var(--accent-light)}._button--primary_j1yzk_138:disabled{background-color:var(--black-10);color:var(--gray-50);cursor:default}._button--secondary_j1yzk_157{background-color:var(--white-100);color:var(--accent)}._button--secondary_j1yzk_157:hover{background-color:var(--gray-5)}._button--secondary_j1yzk_157:focus{color:var(--black-100)}._button--secondary_j1yzk_157:active{color:var(--accent-light)}._button--secondary_j1yzk_157:disabled{color:var(--gray-50);cursor:default}._button__loading-container_j1yzk_174{align-items:center;display:flex;gap:var(--spacing)}
|
package/dist/assets/main.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-Black.woff2) format("woff2");font-weight:900;font-style:normal}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-BlackItalic.woff2) format("woff2");font-weight:900;font-style:italic}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-Bold.woff2) format("woff2");font-weight:700;font-style:normal}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-BoldItalic.woff2) format("woff2");font-weight:700;font-style:italic}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-Italic.woff2) format("woff2");font-weight:400;font-style:italic}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-Light.woff2) format("woff2");font-weight:300;font-style:normal}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-LightItalic.woff2) format("woff2");font-weight:300;font-style:italic}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-Regular.woff2) format("woff2");font-weight:400;font-style:normal}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-Thin.woff2) format("woff2");font-weight:100;font-style:normal}@font-face{font-family:Lato;src:url(../assets/fonts/Lato/Lato-ThinItalic.woff2) format("woff2");font-weight:100;font-style:italic}body{font-family:Lato,Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:root{--secondary-orange: #FFA945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #FE8D53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99DEC3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6ACBB1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31AA7E;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #BAEDD9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897F3;--accent-rgb: 24, 151, 243;--accent-dark: #1672C7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4FB1F9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8AE1FD;--accent-lighter-rgb: 138, 225, 253;--alert: #DF4561;--alert-rgb: 223, 69, 97;--alert-dark: #BB2B45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #F37C91;--accent-alert-light-rgb: 243, 124, 145;--cream: #FAFAFA;--cream-rgb: 250, 250, 250;--hover: #42B7FF;--hover-rgb: 66, 183, 255;--active: #0A75CC;--active-rgb: 10, 117, 204}:root{--gray-100: #16161E;--gray-100-rgb: 22, 22, 30;--gray-95: #3F3D4B;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #BCBAC8;--gray-50-rgb: 188, 186, 200;--gray-25: #DBDAE2;--gray-25-rgb: 219, 218, 226;--gray-10: #EBEAF0;--gray-10-rgb: 235, 234, 240;--gray-5: #F7F7FC;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #BCBAC8;--black-25-rgb: 188, 186, 200;--black-10: #EBEAF0;--black-10-rgb: 235, 234, 240;--white-100: #FFFFFF;--white-100-rgb: 255, 255, 255}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size:1rem;--form-input-line-height:1.3125rem;--form-input-font-weight:bold;--form-hint-font-size:.875rem;--form-hint-line-height:1.3125rem;--form-hint-font-weight:normal;--form-label-font-size:.875rem;--form-label-line-height:1.3125rem;--form-label-font-weight:normal;--form-dropdown-font-size:1rem;--form-dropdown-line-height:1.3125rem;--form-dropdown-font-weight:normal;--table-font-size:.875rem;--table-line-height:1.0625rem;--table-header-font-weight:bold;--table-body-font-weight:normal;--table-body-secondary-line-height:1.3125rem;--button-font-size:1rem;--button-line-height:1.25rem;--button-font-weight: bold}:root{--spacing: 8px}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Either } from '../../types/helpers';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
type variation = "primary" | "secondary";
|
|
5
|
-
type CallToActionButtonCoreProps = {
|
|
6
|
-
isLoading?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
variation?: variation;
|
|
11
|
-
};
|
|
12
|
-
interface CallToActionButtonPropsWithLink extends CallToActionButtonCoreProps {
|
|
13
|
-
link: string;
|
|
14
|
-
}
|
|
15
|
-
interface CallToActionButtonPropsWithOnClick extends CallToActionButtonCoreProps {
|
|
16
|
-
onClick: () => void;
|
|
17
|
-
type?: HTMLButtonElement["type"];
|
|
18
|
-
}
|
|
19
|
-
export type CallToActionButtonProps = Either<CallToActionButtonPropsWithLink, CallToActionButtonPropsWithOnClick>;
|
|
20
|
-
export declare const CallToActionButton: import('react').ForwardRefExoticComponent<CallToActionButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
|
-
export default CallToActionButton;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import '../../assets/CallToActionButton.css';
|
|
2
|
-
import { jsx as d, jsxs as h } from "react/jsx-runtime";
|
|
3
|
-
import { forwardRef as u, useMemo as c } from "react";
|
|
4
|
-
import { LoadingSpinner as k } from "../LoadingSpinner/LoadingSpinner.js";
|
|
5
|
-
import { c as m } from "../../clsx-DB4S2d7J.js";
|
|
6
|
-
import { B as j } from "../../Button-C3Qm852g.js";
|
|
7
|
-
const z = "_h1_j1yzk_1", f = "_h2_j1yzk_11", p = "_h3_j1yzk_21", g = "_h4_j1yzk_31", q = "_body_j1yzk_41", w = "_quote_j1yzk_75", x = "_form__input_j1yzk_86", N = "_form__hint_j1yzk_91", v = "_form__label_j1yzk_96", B = "_form__dropdown_j1yzk_101", C = "_table__header_j1yzk_107", L = "_table__body_j1yzk_112", A = "_button_j1yzk_123", _ = {
|
|
8
|
-
h1: z,
|
|
9
|
-
"h1--bold": "_h1--bold_j1yzk_7",
|
|
10
|
-
h2: f,
|
|
11
|
-
"h2--bold": "_h2--bold_j1yzk_17",
|
|
12
|
-
h3: p,
|
|
13
|
-
"h3--bold": "_h3--bold_j1yzk_27",
|
|
14
|
-
h4: g,
|
|
15
|
-
"h4--bold": "_h4--bold_j1yzk_37",
|
|
16
|
-
body: q,
|
|
17
|
-
"body--large": "_body--large_j1yzk_46",
|
|
18
|
-
"body--medium": "_body--medium_j1yzk_50",
|
|
19
|
-
"body--small": "_body--small_j1yzk_54",
|
|
20
|
-
"body--tiny": "_body--tiny_j1yzk_58",
|
|
21
|
-
"body--bold": "_body--bold_j1yzk_62",
|
|
22
|
-
"body--strikethrough": "_body--strikethrough_j1yzk_65",
|
|
23
|
-
"body--underlined": "_body--underlined_j1yzk_68",
|
|
24
|
-
"body--strikethrough-underlined": "_body--strikethrough-underlined_j1yzk_71",
|
|
25
|
-
quote: w,
|
|
26
|
-
"quote--large": "_quote--large_j1yzk_80",
|
|
27
|
-
form__input: x,
|
|
28
|
-
form__hint: N,
|
|
29
|
-
form__label: v,
|
|
30
|
-
form__dropdown: B,
|
|
31
|
-
table__header: C,
|
|
32
|
-
table__body: L,
|
|
33
|
-
"table__body--secondary": "_table__body--secondary_j1yzk_117",
|
|
34
|
-
button: A,
|
|
35
|
-
"button--primary": "_button--primary_j1yzk_138",
|
|
36
|
-
"button--secondary": "_button--secondary_j1yzk_157",
|
|
37
|
-
"button__loading-container": "_button__loading-container_j1yzk_174"
|
|
38
|
-
}, D = u((r, e) => {
|
|
39
|
-
const {
|
|
40
|
-
onClick: y,
|
|
41
|
-
link: b,
|
|
42
|
-
isLoading: l,
|
|
43
|
-
children: o,
|
|
44
|
-
type: a = "button",
|
|
45
|
-
disabled: s,
|
|
46
|
-
className: t,
|
|
47
|
-
variation: n = "primary"
|
|
48
|
-
} = r, i = c(() => m([_.button, _[`button--${n}`], t]), [t]);
|
|
49
|
-
return /* @__PURE__ */ d(j, { type: a, href: b, onClick: y, disabled: s, className: i, ref: e, children: l ? /* @__PURE__ */ h("div", { className: _["button__loading-container"], children: [
|
|
50
|
-
/* @__PURE__ */ d(k, { ...n === "secondary" && { invert: !0 } }),
|
|
51
|
-
o
|
|
52
|
-
] }) : o });
|
|
53
|
-
});
|
|
54
|
-
export {
|
|
55
|
-
D as CallToActionButton,
|
|
56
|
-
D as default
|
|
57
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { Tab, Tabs, TabPanel } from "../../lib/main";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const Playground = () => {
|
|
6
|
-
return <>
|
|
7
|
-
<Tabs>
|
|
8
|
-
<Tab value="1">Tab 1 with a very big name ajahsuahdifsadgfiasgfdioafuu</Tab>
|
|
9
|
-
<Tab value="2">Tab 2</Tab>
|
|
10
|
-
<Tab value="3">Tab 3</Tab>
|
|
11
|
-
<Tab value="4">Tab 4</Tab>
|
|
12
|
-
<TabPanel value="1">Tab 1 content</TabPanel>
|
|
13
|
-
<TabPanel value="2">Tab 2 content</TabPanel>
|
|
14
|
-
<TabPanel value="3">Tab 3 content</TabPanel>
|
|
15
|
-
<TabPanel value="4">Tab 4 content</TabPanel>
|
|
16
|
-
</Tabs>
|
|
17
|
-
</>;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export default Playground;
|