@getpara/core-components 2.0.0-dev.3 → 2.0.0-dev.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/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-1591d4b0.entry.js +28 -0
- package/dist/capsule/p-1591d4b0.entry.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +1 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js +140 -50
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +1 -1
- package/dist/cjs/index.cjs.js +5 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/assets/icons/arrow-circle-down.svg +3 -0
- package/dist/collection/assets/icons/dots-square.svg +13 -0
- package/dist/collection/assets/icons/index.js +10 -0
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/assets/icons/para-arrow.svg +3 -0
- package/dist/collection/assets/icons/phantom.svg +8 -6
- package/dist/collection/assets/icons/user-01.svg +3 -0
- package/dist/collection/assets/icons/wallet-02.svg +3 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +1 -1
- package/dist/collection/components/cpsl-auth-modal/cpsl-auth-modal.css +4 -4
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +39 -15
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +12 -9
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +75 -2
- package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +42 -15
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.css +5 -0
- package/dist/collection/components/cpsl-select/cpsl-select.js +23 -4
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.css +0 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +7 -2
- 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 +2 -2
- package/dist/collection/components/cpsl-text/cpsl-text.css +12 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js +22 -1
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +10 -0
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +23 -2
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -1
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +3 -1
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +2 -1
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/esm/capsule.js +1 -1
- package/dist/esm/cpsl-alert_34.entry.js +140 -50
- package/dist/esm/cpsl-alert_34.entry.js.map +1 -1
- package/dist/esm/index.js +5 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/scripts/appendLoaderExports.js +3 -3
- package/dist/scripts/appendLoaderExports.js.map +1 -1
- package/dist/types/assets/icons/index.d.ts +5 -0
- package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +16 -0
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +5 -0
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +6 -1
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +6 -0
- package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +5 -0
- package/dist/types/components.d.ts +66 -2
- package/dist/types/interface.d.ts +1 -0
- package/dist/types/utils/theme/generatePalette.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +1 -1
- package/package.json +2 -2
- package/dist/capsule/p-834c1ee9.entry.js +0 -28
- package/dist/capsule/p-834c1ee9.entry.js.map +0 -1
- /package/dist/types/Users/{keith/Documents/capsule → taylorbosch/Documents/GitHub/Capsule}/web-sdk/packages/core-components/.stencil/scripts/appendLoaderExports.d.ts +0 -0
- /package/dist/types/Users/{keith/Documents/capsule → taylorbosch/Documents/GitHub/Capsule}/web-sdk/packages/core-components/.stencil/scripts/buildAssets.d.ts +0 -0
|
@@ -388,6 +388,18 @@ export namespace Components {
|
|
|
388
388
|
"withDefaultTheme"?: boolean;
|
|
389
389
|
}
|
|
390
390
|
interface CpslIcon {
|
|
391
|
+
/**
|
|
392
|
+
* The background CSS property of the icon.
|
|
393
|
+
*/
|
|
394
|
+
"background"?: string;
|
|
395
|
+
/**
|
|
396
|
+
* The border CSS property of the icon.
|
|
397
|
+
*/
|
|
398
|
+
"border"?: string;
|
|
399
|
+
/**
|
|
400
|
+
* The color of the icon.
|
|
401
|
+
*/
|
|
402
|
+
"color"?: string;
|
|
391
403
|
/**
|
|
392
404
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
393
405
|
*/
|
|
@@ -400,6 +412,10 @@ export namespace Components {
|
|
|
400
412
|
* Whether to invert the icon's colors.
|
|
401
413
|
*/
|
|
402
414
|
"invert"?: boolean;
|
|
415
|
+
/**
|
|
416
|
+
* Whether the icon should be rounded.
|
|
417
|
+
*/
|
|
418
|
+
"radius"?: 'none' | 'theme' | 'full';
|
|
403
419
|
/**
|
|
404
420
|
* The CSS size of the icon.
|
|
405
421
|
*/
|
|
@@ -669,6 +685,10 @@ export namespace Components {
|
|
|
669
685
|
"text": string;
|
|
670
686
|
}
|
|
671
687
|
interface CpslPopover {
|
|
688
|
+
/**
|
|
689
|
+
* If `true`, the popover will be aligned to the center of the trigger element. Default is `false`.
|
|
690
|
+
*/
|
|
691
|
+
"alignCenter": boolean;
|
|
672
692
|
/**
|
|
673
693
|
* ID for the element that the popover anchors to.
|
|
674
694
|
*/
|
|
@@ -759,6 +779,10 @@ export namespace Components {
|
|
|
759
779
|
"justify"?: React.CSSProperties['justifyContent'];
|
|
760
780
|
}
|
|
761
781
|
interface CpslSelect {
|
|
782
|
+
/**
|
|
783
|
+
* If `true`, the popover will be aligned to the center of the trigger element. Default is `false`.
|
|
784
|
+
*/
|
|
785
|
+
"alignCenter": boolean;
|
|
762
786
|
/**
|
|
763
787
|
* ID of element to anchor popover to.
|
|
764
788
|
*/
|
|
@@ -790,7 +814,7 @@ export namespace Components {
|
|
|
790
814
|
/**
|
|
791
815
|
* The name of the icon to use for the end icon. Default: `chevronUp`
|
|
792
816
|
*/
|
|
793
|
-
"icon"?: IconType;
|
|
817
|
+
"icon"?: IconType | null;
|
|
794
818
|
/**
|
|
795
819
|
* ID of the element, must be unique for the popover trigger.
|
|
796
820
|
*/
|
|
@@ -927,6 +951,10 @@ export namespace Components {
|
|
|
927
951
|
"selectedTab"?: string;
|
|
928
952
|
}
|
|
929
953
|
interface CpslText {
|
|
954
|
+
/**
|
|
955
|
+
* The text-align CSS property to apply. Options are: `"left"`, `"center", `"right". Default is: `"left"`.
|
|
956
|
+
*/
|
|
957
|
+
"align"?: 'left' | 'center' | 'right';
|
|
930
958
|
/**
|
|
931
959
|
* The color of text. Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
|
|
932
960
|
*/
|
|
@@ -941,6 +969,10 @@ export namespace Components {
|
|
|
941
969
|
"weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
|
|
942
970
|
}
|
|
943
971
|
interface CpslTileButton {
|
|
972
|
+
/**
|
|
973
|
+
* If the button is disabled. Default is: false.
|
|
974
|
+
*/
|
|
975
|
+
"disabled"?: boolean;
|
|
944
976
|
/**
|
|
945
977
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
946
978
|
*/
|
|
@@ -1949,6 +1981,18 @@ declare namespace LocalJSX {
|
|
|
1949
1981
|
"withDefaultTheme"?: boolean;
|
|
1950
1982
|
}
|
|
1951
1983
|
interface CpslIcon {
|
|
1984
|
+
/**
|
|
1985
|
+
* The background CSS property of the icon.
|
|
1986
|
+
*/
|
|
1987
|
+
"background"?: string;
|
|
1988
|
+
/**
|
|
1989
|
+
* The border CSS property of the icon.
|
|
1990
|
+
*/
|
|
1991
|
+
"border"?: string;
|
|
1992
|
+
/**
|
|
1993
|
+
* The color of the icon.
|
|
1994
|
+
*/
|
|
1995
|
+
"color"?: string;
|
|
1952
1996
|
/**
|
|
1953
1997
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
1954
1998
|
*/
|
|
@@ -1961,6 +2005,10 @@ declare namespace LocalJSX {
|
|
|
1961
2005
|
* Whether to invert the icon's colors.
|
|
1962
2006
|
*/
|
|
1963
2007
|
"invert"?: boolean;
|
|
2008
|
+
/**
|
|
2009
|
+
* Whether the icon should be rounded.
|
|
2010
|
+
*/
|
|
2011
|
+
"radius"?: 'none' | 'theme' | 'full';
|
|
1964
2012
|
/**
|
|
1965
2013
|
* The CSS size of the icon.
|
|
1966
2014
|
*/
|
|
@@ -2278,6 +2326,10 @@ declare namespace LocalJSX {
|
|
|
2278
2326
|
"text"?: string;
|
|
2279
2327
|
}
|
|
2280
2328
|
interface CpslPopover {
|
|
2329
|
+
/**
|
|
2330
|
+
* If `true`, the popover will be aligned to the center of the trigger element. Default is `false`.
|
|
2331
|
+
*/
|
|
2332
|
+
"alignCenter"?: boolean;
|
|
2281
2333
|
/**
|
|
2282
2334
|
* ID for the element that the popover anchors to.
|
|
2283
2335
|
*/
|
|
@@ -2376,6 +2428,10 @@ declare namespace LocalJSX {
|
|
|
2376
2428
|
"justify"?: React.CSSProperties['justifyContent'];
|
|
2377
2429
|
}
|
|
2378
2430
|
interface CpslSelect {
|
|
2431
|
+
/**
|
|
2432
|
+
* If `true`, the popover will be aligned to the center of the trigger element. Default is `false`.
|
|
2433
|
+
*/
|
|
2434
|
+
"alignCenter"?: boolean;
|
|
2379
2435
|
/**
|
|
2380
2436
|
* ID of element to anchor popover to.
|
|
2381
2437
|
*/
|
|
@@ -2407,7 +2463,7 @@ declare namespace LocalJSX {
|
|
|
2407
2463
|
/**
|
|
2408
2464
|
* The name of the icon to use for the end icon. Default: `chevronUp`
|
|
2409
2465
|
*/
|
|
2410
|
-
"icon"?: IconType;
|
|
2466
|
+
"icon"?: IconType | null;
|
|
2411
2467
|
/**
|
|
2412
2468
|
* ID of the element, must be unique for the popover trigger.
|
|
2413
2469
|
*/
|
|
@@ -2572,6 +2628,10 @@ declare namespace LocalJSX {
|
|
|
2572
2628
|
"selectedTab"?: string;
|
|
2573
2629
|
}
|
|
2574
2630
|
interface CpslText {
|
|
2631
|
+
/**
|
|
2632
|
+
* The text-align CSS property to apply. Options are: `"left"`, `"center", `"right". Default is: `"left"`.
|
|
2633
|
+
*/
|
|
2634
|
+
"align"?: 'left' | 'center' | 'right';
|
|
2575
2635
|
/**
|
|
2576
2636
|
* The color of text. Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error". Default is: `"primary"`.
|
|
2577
2637
|
*/
|
|
@@ -2586,6 +2646,10 @@ declare namespace LocalJSX {
|
|
|
2586
2646
|
"weight"?: 'regular' | 'medium' | 'semiBold' | 'bold';
|
|
2587
2647
|
}
|
|
2588
2648
|
interface CpslTileButton {
|
|
2649
|
+
/**
|
|
2650
|
+
* If the button is disabled. Default is: false.
|
|
2651
|
+
*/
|
|
2652
|
+
"disabled"?: boolean;
|
|
2589
2653
|
/**
|
|
2590
2654
|
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
|
2591
2655
|
*/
|
|
@@ -4,6 +4,6 @@ export type Palette = {
|
|
|
4
4
|
backgroundColors: string[];
|
|
5
5
|
accentColors: string[];
|
|
6
6
|
};
|
|
7
|
-
export declare const generatePalette: ({ foregroundColor, backgroundColor, accentColor, isDarkTheme, customPalette, }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'accentColor' | 'customPalette'> & {
|
|
7
|
+
export declare const generatePalette: ({ foregroundColor, backgroundColor, accentColor, isDarkTheme, customPalette, overlayBackground, }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'accentColor' | 'customPalette' | 'overlayBackground'> & {
|
|
8
8
|
isDarkTheme: boolean;
|
|
9
9
|
}) => void;
|
|
@@ -3,4 +3,4 @@ import { Theme } from '../../interface.js';
|
|
|
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, accentColor, darkForegroundColor, darkBackgroundColor, darkAccentColor, mode, font, customPalette, borderRadius, customFontSizes, customBorderRadii, }: Theme) => void;
|
|
6
|
+
export declare const generateTheme: ({ foregroundColor, backgroundColor, accentColor, darkForegroundColor, darkBackgroundColor, darkAccentColor, mode, font, customPalette, borderRadius, customFontSizes, customBorderRadii, overlayBackground, }: Theme) => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/core-components",
|
|
3
3
|
"description": "Capsule Core Components",
|
|
4
|
-
"version": "2.0.0-dev.
|
|
4
|
+
"version": "2.0.0-dev.6",
|
|
5
5
|
"collection": "dist/collection/collection-manifest.json",
|
|
6
6
|
"collection:main": "dist/collection/index.js",
|
|
7
7
|
"dependencies": {
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
],
|
|
69
69
|
"type": "module",
|
|
70
70
|
"types": "dist/types/index.d.ts",
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "c2125e37c73a19f11978031f5aa2eab39b978c56"
|
|
72
72
|
}
|