@usecapsule/core-components 3.3.0-dev.0 → 3.3.0-dev.1
Sign up to get free protection for your applications and to get access to all the features.
- package/css/capsule-core.css +10 -25
- package/css/capsule-core.css.map +1 -1
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/p-0462f723.js +2 -0
- package/dist/capsule/p-0462f723.js.map +1 -0
- package/dist/capsule/p-05cb769b.entry.js +10 -0
- package/dist/capsule/{p-0e558c7f.entry.js.map → p-05cb769b.entry.js.map} +1 -1
- package/dist/capsule/p-0eea90f8.entry.js +2 -0
- package/dist/capsule/p-4203888d.entry.js +29 -0
- package/dist/capsule/p-4203888d.entry.js.map +1 -0
- package/dist/capsule/{p-1bd11889.entry.js → p-69c3c53b.entry.js} +2 -2
- package/dist/capsule/{p-1bd11889.entry.js.map → p-69c3c53b.entry.js.map} +1 -1
- package/dist/capsule/{p-5d62e610.entry.js → p-742bda0b.entry.js} +2 -2
- package/dist/capsule/p-c1aa1ffb.entry.js +2 -0
- package/dist/capsule/{p-5965b15e.entry.js.map → p-c1aa1ffb.entry.js.map} +1 -1
- package/dist/capsule/p-d351f076.entry.js +2 -0
- package/dist/capsule/p-d351f076.entry.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +12 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/{cpsl-alert_34.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +13368 -16935
- package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +2 -3
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-hero.cjs.entry.js +6 -9
- package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-identicon.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +1 -1
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +1 -1
- package/dist/cjs/index-65f57499.js +2 -2
- package/dist/cjs/index.cjs.js +12 -35
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/index.js +1 -21
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/refresh.svg +3 -3
- package/dist/collection/collection-manifest.json +1 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.css +2 -89
- package/dist/collection/components/cpsl-button/cpsl-button.js +5 -6
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.css +2 -5
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -3
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +7 -11
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +1 -2
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +6 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
- package/dist/collection/components/cpsl-hero/cpsl-hero.css +71 -136
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +9 -63
- package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -8
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +2 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +2 -21
- package/dist/collection/components/cpsl-input/cpsl-input.js +28 -100
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.css → cpsl-modal/cpsl-modal.css} +58 -33
- package/dist/collection/components/{cpsl-auth-modal/cpsl-auth-modal.js → cpsl-modal/cpsl-modal.js} +129 -11
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +1 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.css +0 -2
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +11 -9
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +3 -12
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +23 -28
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.css +0 -17
- package/dist/collection/components/cpsl-select/cpsl-select.js +5 -95
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js.map +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +3 -3
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +8 -30
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +7 -5
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -1
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.css +1 -24
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js +9 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +4 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +4 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +0 -19
- package/dist/collection/components/cpsl-text/cpsl-text.js +4 -5
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +1 -3
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +3 -4
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +6 -22
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +3 -9
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
- package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/{cpsl-alert_34.entry.js → cpsl-alert_33.entry.js} +13370 -16936
- package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +1 -2
- package/dist/esm/cpsl-animation.entry.js.map +1 -1
- package/dist/esm/cpsl-hero.entry.js +7 -10
- package/dist/esm/cpsl-hero.entry.js.map +1 -1
- package/dist/esm/cpsl-identicon.entry.js +1 -1
- package/dist/esm/cpsl-info-box.entry.js +2 -2
- package/dist/esm/cpsl-info-box.entry.js.map +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js +1 -1
- package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
- package/dist/esm/cpsl-row.entry.js +1 -1
- package/dist/esm/index-91db3414.js +2 -2
- package/dist/esm/index.js +12 -35
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/assets/icons/index.d.ts +0 -20
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +2 -2
- package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +3 -18
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +3 -13
- package/dist/types/components/{cpsl-auth-modal/cpsl-auth-modal.d.ts → cpsl-modal/cpsl-modal.d.ts} +23 -3
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +2 -2
- package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +0 -1
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +1 -22
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +1 -1
- package/dist/types/components.d.ts +146 -222
- package/dist/types/interface.d.ts +0 -13
- package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
- package/dist/types/utils/theme/generatePalette.d.ts +2 -4
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/package.json +2 -3
- package/dist/capsule/p-0e558c7f.entry.js +0 -10
- package/dist/capsule/p-32cdf894.entry.js +0 -2
- package/dist/capsule/p-32cdf894.entry.js.map +0 -1
- package/dist/capsule/p-3b042fd1.entry.js +0 -2
- package/dist/capsule/p-5965b15e.entry.js +0 -2
- package/dist/capsule/p-60508b1e.entry.js +0 -20
- package/dist/capsule/p-60508b1e.entry.js.map +0 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +0 -1
- package/dist/collection/assets/icons/arrow-circle-broken-down-left.svg +0 -3
- package/dist/collection/assets/icons/bank.svg +0 -3
- package/dist/collection/assets/icons/credit-card.svg +0 -3
- package/dist/collection/assets/icons/dot.svg +0 -3
- package/dist/collection/assets/icons/download.svg +0 -3
- package/dist/collection/assets/icons/globe.svg +0 -3
- package/dist/collection/assets/icons/hero-alert-circle.svg +0 -3
- package/dist/collection/assets/icons/hero-checkmark-capsule.svg +0 -11
- package/dist/collection/assets/icons/hero-checkmark.svg +0 -3
- package/dist/collection/assets/icons/hero-external-connection.svg +0 -71
- package/dist/collection/assets/icons/link-external.svg +0 -3
- package/dist/collection/assets/icons/log-out.svg +0 -3
- package/dist/collection/assets/icons/moonpay-brand.svg +0 -10
- package/dist/collection/assets/icons/puzzle-piece.svg +0 -3
- package/dist/collection/assets/icons/qr-code-02.svg +0 -3
- package/dist/collection/assets/icons/qr-code.svg +0 -3
- package/dist/collection/assets/icons/search.svg +0 -3
- package/dist/collection/assets/icons/send.svg +0 -3
- package/dist/collection/assets/icons/shield.svg +0 -3
- package/dist/collection/assets/icons/stripe-brand.svg +0 -3
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.js.map +0 -1
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.css +0 -97
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js +0 -121
- package/dist/collection/components/cpsl-icon-group/cpsl-icon-group.js.map +0 -1
- package/dist/esm/cpsl-alert_34.entry.js.map +0 -1
- package/dist/types/components/cpsl-icon-group/cpsl-icon-group.d.ts +0 -20
- /package/dist/capsule/{p-3b042fd1.entry.js.map → p-0eea90f8.entry.js.map} +0 -0
- /package/dist/capsule/{p-5d62e610.entry.js.map → p-742bda0b.entry.js.map} +0 -0
@@ -2,8 +2,6 @@ import { Theme } from '../../interface';
|
|
2
2
|
export type Palette = {
|
3
3
|
foregroundColors: string[];
|
4
4
|
backgroundColors: string[];
|
5
|
-
|
5
|
+
isDarkBackground: boolean;
|
6
6
|
};
|
7
|
-
export declare const generatePalette: ({ foregroundColor, backgroundColor,
|
8
|
-
isDarkTheme: boolean;
|
9
|
-
}) => void;
|
7
|
+
export declare const generatePalette: ({ foregroundColor, backgroundColor, customPalette, }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'customPalette'>) => Palette;
|
@@ -3,4 +3,4 @@ import { Theme } from '../../interface';
|
|
3
3
|
* Generates css theme variables.
|
4
4
|
* @returns @boolean Whether background is dark or not.
|
5
5
|
*/
|
6
|
-
export declare const generateTheme: ({ foregroundColor, backgroundColor,
|
6
|
+
export declare const generateTheme: ({ foregroundColor, backgroundColor, font, customPalette, borderRadius, customFontSizes, customBorderRadii, }: Theme) => boolean;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@usecapsule/core-components",
|
3
|
-
"version": "3.3.0-dev.
|
3
|
+
"version": "3.3.0-dev.1",
|
4
4
|
"description": "Capsule Core Components",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -31,9 +31,8 @@
|
|
31
31
|
"color-blend": "^4.0.0",
|
32
32
|
"color2k": "^2.0.3",
|
33
33
|
"gsap": "^3.12.5",
|
34
|
-
"imask": "7.6.1",
|
35
34
|
"lottie-web": "^5.12.2",
|
36
|
-
"
|
35
|
+
"qr-code-styling": "^1.6.0-rc.1"
|
37
36
|
},
|
38
37
|
"devDependencies": {
|
39
38
|
"@babel/plugin-transform-react-jsx": "^7.24.7",
|