@sme.up/ketchup2 2.0.0-SNAPSHOT-20250523151811 → 2.0.0-SNAPSHOT-20250526103958
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/basic-components/button/button-utils.d.ts +14 -0
- package/dist/basic-components/button/button-utils.d.ts.map +1 -0
- package/dist/basic-components/button/button.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +8 -0
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/icon/icon-types.d.ts +5 -0
- package/dist/basic-components/icon/icon-types.d.ts.map +1 -1
- package/dist/basic-components/icon/icon.d.ts.map +1 -1
- package/dist/basic-components/typography/typography-types.d.ts +4 -0
- package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +11 -11
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +613 -586
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { buttonVariant, IconState, Sizing } from '../../types/global';
|
|
2
|
+
/**
|
|
3
|
+
* Based on the button sizing it returns the correct iconWidth
|
|
4
|
+
* @param sizing button variant
|
|
5
|
+
* @returns an iconSize value
|
|
6
|
+
*/
|
|
7
|
+
export declare const getIconSize: (sizing: Sizing) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Based on the button variant it returns the correct iconState
|
|
10
|
+
* @param variant button variant
|
|
11
|
+
* @returns an iconState value
|
|
12
|
+
*/
|
|
13
|
+
export declare const getIconVariant: (variant: buttonVariant) => IconState;
|
|
14
|
+
//# sourceMappingURL=button-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-utils.d.ts","sourceRoot":"","sources":["../../../src/basic-components/button/button-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAErE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,KAAG,MAS5C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,aAAa,KAAG,SAOvD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/basic-components/button/button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/basic-components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAI5C,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6CxC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/basic-components/cell/cell.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAKL,SAAS,EAEV,MAAM,cAAc,CAAA;AAOrB,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/basic-components/cell/cell.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAKL,SAAS,EAEV,MAAM,cAAc,CAAA;AAOrB,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAgL7B,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -2,5 +2,13 @@ import { DisplayMode } from '../../types/global';
|
|
|
2
2
|
import { ArrayCellBindProps } from '../cell/cell-types';
|
|
3
3
|
export interface ChipsProps extends ArrayCellBindProps {
|
|
4
4
|
displayMode?: DisplayMode;
|
|
5
|
+
/**
|
|
6
|
+
* When specified it will override the color of the chip
|
|
7
|
+
*/
|
|
8
|
+
color?: string;
|
|
9
|
+
/**
|
|
10
|
+
* When specified it will override the backgroundColor of the chip
|
|
11
|
+
*/
|
|
12
|
+
backgroundColor?: string;
|
|
5
13
|
}
|
|
6
14
|
//# sourceMappingURL=chips-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chips-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/chips/chips-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IAClD,WAAW,CAAC,EAAE,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"chips-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/chips/chips-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IAClD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chips.d.ts","sourceRoot":"","sources":["../../../src/basic-components/chips/chips.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"chips.d.ts","sourceRoot":"","sources":["../../../src/basic-components/chips/chips.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1C,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAsDtC,CAAA"}
|
|
@@ -9,9 +9,14 @@ export interface IconProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
state?: IconState;
|
|
11
11
|
rotated?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* When true the icon/image has the `cursor:pointer`.
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
12
16
|
isInteractable?: boolean;
|
|
13
17
|
/**
|
|
14
18
|
* While true it will rotate the icon
|
|
19
|
+
* @default false
|
|
15
20
|
*/
|
|
16
21
|
spin?: boolean;
|
|
17
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB
|
|
1
|
+
{"version":3,"file":"icon-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAKxC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAKxC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAiFpC,CAAA"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { StringCellBindProps } from '../cell/cell-types';
|
|
2
2
|
export interface TypographyProps extends StringCellBindProps {
|
|
3
3
|
variant: TypographyVariant;
|
|
4
|
+
/**
|
|
5
|
+
* When specified, it will override the `color`
|
|
6
|
+
*/
|
|
7
|
+
color?: string;
|
|
4
8
|
}
|
|
5
9
|
export declare const variantToComponent: Record<TypographyVariant, React.ElementType>;
|
|
6
10
|
type TypographyVariant = 'titleLarge' | 'title' | 'body' | 'label';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/typography/typography-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACxD,OAAO,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"typography-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/typography/typography-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACxD,OAAO,EAAE,iBAAiB,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,iBAAiB,EAAE,KAAK,CAAC,WAAW,CAKzE,CAAC;AAEF,KAAK,iBAAiB,GACpB,YAAY,GACZ,OAAO,GACP,MAAM,GACN,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/basic-components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsB,MAAM,oBAAoB,CAAA;AAGxE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/basic-components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsB,MAAM,oBAAoB,CAAA;AAGxE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4BhD,CAAA;AAED,eAAe,UAAU,CAAA"}
|