@ornikar/kitt-universal 25.9.5 → 25.11.0
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/CHANGELOG.md +18 -0
- package/dist/definitions/IconButton/Background.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/IconButton/utils/getIconButtonBackgroundColor.d.ts +3 -0
- package/dist/definitions/IconButton/utils/getIconButtonBackgroundColor.d.ts.map +1 -0
- package/dist/definitions/IconButton/utils/getIconButtonTextColorByColor.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +12 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +3 -0
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +41 -0
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +41 -0
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +41 -0
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +41 -0
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +41 -0
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +41 -0
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +41 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +41 -0
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +8 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +8 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js +8 -0
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js +8 -0
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs +8 -0
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs +8 -0
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +8 -0
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +8 -0
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [25.11.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.10.0...@ornikar/kitt-universal@25.11.0) (2024-07-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **IconButton:** add primary-plain and secondary colors to IconButton OSE-11042 ([#2442](https://github.com/ornikar/kitt/issues/2442)) ([b096743](https://github.com/ornikar/kitt/commit/b096743dc5624b92427e7c27adf8c328e4633aa5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [25.10.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.9.5...@ornikar/kitt-universal@25.10.0) (2024-07-16)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add Basket icon [no issue] ([#2440](https://github.com/ornikar/kitt/issues/2440)) ([b7b03a4](https://github.com/ornikar/kitt/commit/b7b03a4e47b8a06d03b5bf91d0ccba7eb1003894))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [25.9.5](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.9.4...@ornikar/kitt-universal@25.9.5) (2024-07-15)
|
|
7
25
|
|
|
8
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../src/IconButton/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../src/IconButton/Background.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAoBpD,UAAU,eAAgB,SAAQ,SAAS;IACzC,KAAK,EAAE,eAAe,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,GAAG,SAAS,CAUtF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import type { Except } from 'type-fest';
|
|
3
3
|
import type { PressableProps } from '../native-base/primitives';
|
|
4
|
-
export type IconButtonColor = 'black' | 'ghost' | 'primary';
|
|
4
|
+
export type IconButtonColor = 'black' | 'ghost' | 'primary' | 'primary-plain' | 'secondary';
|
|
5
5
|
export interface IconButtonProps {
|
|
6
6
|
icon: NonNullable<ReactElement>;
|
|
7
7
|
color?: IconButtonColor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAShE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,eAAe,GAAG,WAAW,CAAC;AAE5F,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;IACzC,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACxD,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAe,EACf,QAAQ,EACR,MAAM,EACN,SAAS,EACT,iBAA4B,EAC5B,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,GACR,EAAE,eAAe,GAAG,SAAS,CAwD7B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,GAAG,SAAS,CAEjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIconButtonBackgroundColor.d.ts","sourceRoot":"","sources":["../../../../src/IconButton/utils/getIconButtonBackgroundColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,4BAA4B,UAAW,eAAe,aAAa,OAAO,KAAG,MAAM,GAAG,SAalG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getIconButtonTextColorByColor.d.ts","sourceRoot":"","sources":["../../../../src/IconButton/utils/getIconButtonTextColorByColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,6BAA6B,UAAW,eAAe,aAAa,OAAO,KAAG,
|
|
1
|
+
{"version":3,"file":"getIconButtonTextColorByColor.d.ts","sourceRoot":"","sources":["../../../../src/IconButton/utils/getIconButtonTextColorByColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,6BAA6B,UAAW,eAAe,aAAa,OAAO,KAAG,eAe1F,CAAC"}
|
|
@@ -758,6 +758,18 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
758
758
|
backgroundColor: string;
|
|
759
759
|
};
|
|
760
760
|
};
|
|
761
|
+
'primary-plain': {
|
|
762
|
+
pressed: {
|
|
763
|
+
backgroundColor: string;
|
|
764
|
+
};
|
|
765
|
+
backgroundColor: string | undefined;
|
|
766
|
+
};
|
|
767
|
+
secondary: {
|
|
768
|
+
pressed: {
|
|
769
|
+
backgroundColor: string;
|
|
770
|
+
};
|
|
771
|
+
backgroundColor: string | undefined;
|
|
772
|
+
};
|
|
761
773
|
};
|
|
762
774
|
highlight: {
|
|
763
775
|
regular: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KittNativeBaseProvider.d.ts","sourceRoot":"","sources":["../../../src/native-base/KittNativeBaseProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAGpC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GACrE,CAAC,CAAC,MAAM,CAAC,GACT,SAAS,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAEtC,KAAK,QAAQ,GAAG,QAAQ,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AACpD,KAAK,gBAAgB,GAAG,SAAS,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAE7D,KAAK,eAAe,GAAG,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAChD,KAAK,uBAAuB,GAAG,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;AA4BhE,MAAM,WAAW,iCAAiC;CAAG;AACrD,MAAM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ACjB,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,2BAA2B,GAAG,SAAS,CAenH"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface IconButtonVariationValues {
|
|
2
2
|
pressedBackgroundColor: string;
|
|
3
|
+
backgroundColor?: string;
|
|
3
4
|
}
|
|
4
5
|
export interface IconButtonTheme {
|
|
5
6
|
backgroundColor: string;
|
|
@@ -33,6 +34,8 @@ export interface IconButtonTheme {
|
|
|
33
34
|
default: IconButtonVariationValues;
|
|
34
35
|
ghost: IconButtonVariationValues;
|
|
35
36
|
primary: IconButtonVariationValues;
|
|
37
|
+
'primary-plain': IconButtonVariationValues;
|
|
38
|
+
secondary: IconButtonVariationValues;
|
|
36
39
|
}
|
|
37
40
|
export declare const iconButton: IconButtonTheme;
|
|
38
41
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iconButton.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/iconButton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"iconButton.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/iconButton.ts"],"names":[],"mappings":"AAIA,UAAU,yBAAyB;IACjC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,MAAM,EAAE;YACN,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;KACH,CAAC;IACF,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,OAAO,EAAE,yBAAyB,CAAC;IACnC,KAAK,EAAE,yBAAyB,CAAC;IACjC,OAAO,EAAE,yBAAyB,CAAC;IACnC,eAAe,EAAE,yBAAyB,CAAC;IAC3C,SAAS,EAAE,yBAAyB,CAAC;CACtC;AAED,eAAO,MAAM,UAAU,EAAE,eA8CxB,CAAC"}
|
|
@@ -1928,6 +1928,14 @@ const iconButton = {
|
|
|
1928
1928
|
},
|
|
1929
1929
|
primary: {
|
|
1930
1930
|
pressedBackgroundColor: lateOceanColorPalette.moonPurpleLight1
|
|
1931
|
+
},
|
|
1932
|
+
'primary-plain': {
|
|
1933
|
+
pressedBackgroundColor: colors.primaryLight,
|
|
1934
|
+
backgroundColor: colors.primary
|
|
1935
|
+
},
|
|
1936
|
+
secondary: {
|
|
1937
|
+
pressedBackgroundColor: 'rgba(0, 0, 0, 0.05)',
|
|
1938
|
+
backgroundColor: 'rgba(0, 0, 0, 0.1)'
|
|
1931
1939
|
}
|
|
1932
1940
|
};
|
|
1933
1941
|
|
|
@@ -8097,6 +8105,8 @@ function getBackgroundColor$1(color, isDisabled) {
|
|
|
8097
8105
|
switch (color) {
|
|
8098
8106
|
case 'primary':
|
|
8099
8107
|
return 'kitt.iconButton.primary.pressed.backgroundColor';
|
|
8108
|
+
case 'primary-plain':
|
|
8109
|
+
return 'kitt.iconButton.primary-plain.pressed.backgroundColor';
|
|
8100
8110
|
case 'ghost':
|
|
8101
8111
|
return 'kitt.iconButton.ghost.pressed.backgroundColor';
|
|
8102
8112
|
case 'black':
|
|
@@ -8196,6 +8206,20 @@ function useNativeAnimation$1({
|
|
|
8196
8206
|
};
|
|
8197
8207
|
}
|
|
8198
8208
|
|
|
8209
|
+
const getIconButtonBackgroundColor = (color, disabled) => {
|
|
8210
|
+
if (disabled) {
|
|
8211
|
+
return undefined;
|
|
8212
|
+
}
|
|
8213
|
+
switch (color) {
|
|
8214
|
+
case 'primary-plain':
|
|
8215
|
+
return 'kitt.iconButton.primary-plain.backgroundColor';
|
|
8216
|
+
case 'secondary':
|
|
8217
|
+
return 'kitt.iconButton.secondary.backgroundColor';
|
|
8218
|
+
default:
|
|
8219
|
+
return undefined;
|
|
8220
|
+
}
|
|
8221
|
+
};
|
|
8222
|
+
|
|
8199
8223
|
const getIconButtonTextColorByColor = (color, disabled) => {
|
|
8200
8224
|
if (disabled) {
|
|
8201
8225
|
return 'black-light';
|
|
@@ -8203,6 +8227,10 @@ const getIconButtonTextColorByColor = (color, disabled) => {
|
|
|
8203
8227
|
switch (color) {
|
|
8204
8228
|
case 'ghost':
|
|
8205
8229
|
return 'white';
|
|
8230
|
+
case 'primary-plain':
|
|
8231
|
+
return 'white';
|
|
8232
|
+
case 'secondary':
|
|
8233
|
+
return 'black';
|
|
8206
8234
|
default:
|
|
8207
8235
|
return color;
|
|
8208
8236
|
}
|
|
@@ -8242,6 +8270,7 @@ function IconButton({
|
|
|
8242
8270
|
transform: 'translate3d(0px)'
|
|
8243
8271
|
}
|
|
8244
8272
|
},
|
|
8273
|
+
backgroundColor: getIconButtonBackgroundColor(color, disabled),
|
|
8245
8274
|
borderRadius: "kitt.iconButton.borderRadius",
|
|
8246
8275
|
borderColor: disabled ? 'kitt.iconButton.disabled.borderColor' : 'kitt.iconButton.borderColor',
|
|
8247
8276
|
borderWidth: disabled ? 'kitt.iconButton.borderWidth' : 0,
|
|
@@ -9220,6 +9249,18 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
9220
9249
|
pressed: {
|
|
9221
9250
|
backgroundColor: theme.iconButton.primary.pressedBackgroundColor
|
|
9222
9251
|
}
|
|
9252
|
+
},
|
|
9253
|
+
'primary-plain': {
|
|
9254
|
+
pressed: {
|
|
9255
|
+
backgroundColor: theme.iconButton['primary-plain'].pressedBackgroundColor
|
|
9256
|
+
},
|
|
9257
|
+
backgroundColor: theme.iconButton['primary-plain'].backgroundColor
|
|
9258
|
+
},
|
|
9259
|
+
secondary: {
|
|
9260
|
+
pressed: {
|
|
9261
|
+
backgroundColor: theme.iconButton.secondary.pressedBackgroundColor
|
|
9262
|
+
},
|
|
9263
|
+
backgroundColor: theme.iconButton.secondary.backgroundColor
|
|
9223
9264
|
}
|
|
9224
9265
|
},
|
|
9225
9266
|
highlight: {
|