@ornikar/kitt-universal 25.16.0 → 25.17.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 +9 -0
- package/dist/definitions/Avatar/Avatar.d.ts +2 -1
- package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +12 -15
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/avatar.d.ts +5 -3
- package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +66 -16
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +66 -16
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-20.10.cjs.js +63 -13
- package/dist/index-node-20.10.cjs.js.map +1 -1
- package/dist/index-node-20.10.cjs.web.js +63 -13
- package/dist/index-node-20.10.cjs.web.js.map +1 -1
- package/dist/index-node-20.10.es.mjs +63 -13
- package/dist/index-node-20.10.es.mjs.map +1 -1
- package/dist/index-node-20.10.es.web.mjs +63 -13
- package/dist/index-node-20.10.es.web.mjs.map +1 -1
- package/dist/index.es.js +65 -15
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +65 -15
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +21 -0
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +21 -0
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.js +21 -0
- package/dist/linaria-themes-node-20.10.cjs.js.map +1 -1
- package/dist/linaria-themes-node-20.10.cjs.web.js +21 -0
- package/dist/linaria-themes-node-20.10.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-20.10.es.mjs +21 -0
- package/dist/linaria-themes-node-20.10.es.mjs.map +1 -1
- package/dist/linaria-themes-node-20.10.es.web.mjs +21 -0
- package/dist/linaria-themes-node-20.10.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +21 -0
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +21 -0
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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.17.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.16.0...@ornikar/kitt-universal@25.17.0) (2024-09-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add disabled variant [no issue] ([#2461](https://github.com/ornikar/kitt/issues/2461)) ([331cbe6](https://github.com/ornikar/kitt/commit/331cbe6867861a7829d828d5643c08e86ad8fe57))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [25.16.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@25.15.0...@ornikar/kitt-universal@25.16.0) (2024-09-02)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -12,6 +12,7 @@ export interface AvatarProps {
|
|
|
12
12
|
sizeVariant?: AvatarSizeVariant;
|
|
13
13
|
width?: number;
|
|
14
14
|
height?: number;
|
|
15
|
+
disabled?: boolean;
|
|
15
16
|
}
|
|
16
|
-
export declare function Avatar({ size, round, light, sizeVariant, width, height, dark, ...props }: AvatarProps): ReactNode;
|
|
17
|
+
export declare function Avatar({ size, round, light, sizeVariant, width, height, dark, disabled, ...props }: AvatarProps): ReactNode;
|
|
17
18
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;AA4DxC,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,MAAM,CAAC,EACrB,IAAI,EACJ,KAAK,EACL,KAAK,EACL,WAAW,EACX,KAAK,EACL,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,GAAG,SAAS,CAmCzB"}
|
|
@@ -155,14 +155,20 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
155
155
|
};
|
|
156
156
|
avatar: {
|
|
157
157
|
default: {
|
|
158
|
+
color: string;
|
|
158
159
|
backgroundColor: string;
|
|
159
160
|
};
|
|
160
161
|
light: {
|
|
162
|
+
color: string;
|
|
161
163
|
backgroundColor: string;
|
|
162
164
|
};
|
|
163
165
|
dark: {
|
|
164
166
|
backgroundColor: string;
|
|
165
167
|
};
|
|
168
|
+
disabled: {
|
|
169
|
+
color: string;
|
|
170
|
+
backgroundColor: string;
|
|
171
|
+
};
|
|
166
172
|
};
|
|
167
173
|
button: {
|
|
168
174
|
default: import("../themes/late-ocean/button").BaseButtonWithVariant;
|
|
@@ -1221,22 +1227,13 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
1221
1227
|
warning: import("native-base/lib/typescript/theme/base/colors").IColorHues;
|
|
1222
1228
|
muted: import("native-base/lib/typescript/theme/base/colors").IColorHues;
|
|
1223
1229
|
primary: import("native-base/lib/typescript/theme/base/colors").IColorHues;
|
|
1224
|
-
info: import("native-base/lib/typescript/theme/base/colors").IColorHues;
|
|
1230
|
+
info: import("native-base/lib/typescript/theme/base/colors").IColorHues; /**
|
|
1231
|
+
* `theme` should come from `useKittTheme`
|
|
1232
|
+
*/
|
|
1225
1233
|
secondary: import("native-base/lib/typescript/theme/base/colors").IColorHues;
|
|
1226
|
-
light: import("native-base/lib/typescript/theme/base/colors").IColorHues;
|
|
1227
|
-
|
|
1228
|
-
*
|
|
1229
|
-
*
|
|
1230
|
-
* `appTheme` is optional and provides extended theme configuration. This variable must not change at each render
|
|
1231
|
-
*
|
|
1232
|
-
* @exemple
|
|
1233
|
-
* ```tsx
|
|
1234
|
-
* const appTheme = {};
|
|
1235
|
-
* export function MyAppThemeProvider({ children }) {
|
|
1236
|
-
* const theme = useKittTheme();
|
|
1237
|
-
* return <KittNativeBaseProvider theme={theme} appTheme={appTheme}>{children}</KittNativeBaseProvider>
|
|
1238
|
-
* }
|
|
1239
|
-
* ```
|
|
1234
|
+
light: import("native-base/lib/typescript/theme/base/colors").IColorHues; /**
|
|
1235
|
+
* `appTheme` is optional and provides extended theme configuration. It's a native-base representation of your application theme.
|
|
1236
|
+
* This variable must not change at each render
|
|
1240
1237
|
*/
|
|
1241
1238
|
tertiary: import("native-base/lib/typescript/theme/base/colors").IColorHues;
|
|
1242
1239
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EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,2BAA2B,GAAG,SAAS,CAenH"}
|
|
@@ -2,14 +2,15 @@ export declare const defaultAvatarSize = 40;
|
|
|
2
2
|
export declare const defaultAvatarIconSize = 20;
|
|
3
3
|
export declare const largeAvatarSize = 120;
|
|
4
4
|
export declare const largeAvatarIconSize = 30;
|
|
5
|
-
export interface AvatarThemeColorVariant {
|
|
6
|
-
backgroundColor: string;
|
|
7
|
-
}
|
|
8
5
|
export interface AvatarThemeSizeVariant {
|
|
9
6
|
borderRadius: number;
|
|
10
7
|
size: number;
|
|
11
8
|
iconSize: number;
|
|
12
9
|
}
|
|
10
|
+
export interface AvatarThemeColorVariant {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
color: string;
|
|
13
|
+
}
|
|
13
14
|
export interface AvatarTheme {
|
|
14
15
|
borderRadius: number;
|
|
15
16
|
size: number;
|
|
@@ -17,6 +18,7 @@ export interface AvatarTheme {
|
|
|
17
18
|
default: AvatarThemeColorVariant;
|
|
18
19
|
light: AvatarThemeColorVariant;
|
|
19
20
|
dark: AvatarThemeColorVariant;
|
|
21
|
+
disabled: AvatarThemeColorVariant;
|
|
20
22
|
large: AvatarThemeSizeVariant;
|
|
21
23
|
}
|
|
22
24
|
export declare const avatar: AvatarTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/avatar.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,mBAAmB,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/avatar.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,eAAe,MAAM,CAAC;AACnC,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAStC,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAQD,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,uBAAuB,CAAC;IACjC,KAAK,EAAE,uBAAuB,CAAC;IAC/B,IAAI,EAAE,uBAAuB,CAAC;IAC9B,QAAQ,EAAE,uBAAuB,CAAC;IAClC,KAAK,EAAE,sBAAsB,CAAC;CAC/B;AAED,eAAO,MAAM,MAAM,EAAE,WAyBpB,CAAC"}
|
|
@@ -585,19 +585,40 @@ const defaultAvatarSize = 40;
|
|
|
585
585
|
const defaultAvatarIconSize = 20;
|
|
586
586
|
const largeAvatarSize = 120;
|
|
587
587
|
const largeAvatarIconSize = 30;
|
|
588
|
+
|
|
589
|
+
// export interface AvatarThemeBackgroundColorVariant {
|
|
590
|
+
// default: string;
|
|
591
|
+
// light: string;
|
|
592
|
+
// dark: string;
|
|
593
|
+
// disabled: string;
|
|
594
|
+
// }
|
|
595
|
+
|
|
596
|
+
// export interface AvatarThemeColorVariant {
|
|
597
|
+
// default: string;
|
|
598
|
+
// light: string;
|
|
599
|
+
// disabled: string;
|
|
600
|
+
// }
|
|
601
|
+
|
|
588
602
|
const avatar = {
|
|
589
603
|
borderRadius: 10,
|
|
590
604
|
size: defaultAvatarSize,
|
|
591
605
|
iconSize: defaultAvatarIconSize,
|
|
592
606
|
default: {
|
|
607
|
+
color: lateOceanColorPalette.white,
|
|
593
608
|
backgroundColor: colors.primary
|
|
594
609
|
},
|
|
595
610
|
light: {
|
|
611
|
+
color: lateOceanColorPalette.black,
|
|
596
612
|
backgroundColor: lateOceanColorPalette['eggshell.3']
|
|
597
613
|
},
|
|
598
614
|
dark: {
|
|
615
|
+
color: lateOceanColorPalette.white,
|
|
599
616
|
backgroundColor: lateOceanColorPalette['eggshell.12']
|
|
600
617
|
},
|
|
618
|
+
disabled: {
|
|
619
|
+
color: lateOceanColorPalette['eggshell.5'],
|
|
620
|
+
backgroundColor: lateOceanColorPalette['eggshell.3']
|
|
621
|
+
},
|
|
601
622
|
large: {
|
|
602
623
|
borderRadius: 30,
|
|
603
624
|
size: largeAvatarSize,
|
|
@@ -3566,40 +3587,58 @@ function getInitials(firstname, lastname) {
|
|
|
3566
3587
|
return `${firstname[0]}${lastname[0]}`.toUpperCase();
|
|
3567
3588
|
}
|
|
3568
3589
|
|
|
3569
|
-
const _excluded$L = ["size", "round", "light", "sizeVariant", "width", "height", "dark"];
|
|
3590
|
+
const _excluded$L = ["size", "round", "light", "sizeVariant", "width", "height", "dark", "disabled"];
|
|
3570
3591
|
function AvatarContent({
|
|
3571
3592
|
size,
|
|
3572
3593
|
src,
|
|
3573
3594
|
firstname,
|
|
3574
3595
|
lastname,
|
|
3575
3596
|
alt,
|
|
3576
|
-
|
|
3597
|
+
light,
|
|
3577
3598
|
sizeVariant,
|
|
3578
3599
|
width,
|
|
3579
|
-
height
|
|
3600
|
+
height,
|
|
3601
|
+
disabled
|
|
3580
3602
|
}) {
|
|
3581
3603
|
if (src) {
|
|
3582
|
-
return /*#__PURE__*/
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3604
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
3605
|
+
children: [/*#__PURE__*/jsx(Image, {
|
|
3606
|
+
source: {
|
|
3607
|
+
uri: src
|
|
3608
|
+
},
|
|
3609
|
+
width: width || size,
|
|
3610
|
+
height: height || size,
|
|
3611
|
+
alt: alt,
|
|
3612
|
+
"aria-label": alt
|
|
3613
|
+
}), disabled ? /*#__PURE__*/jsx(View, {
|
|
3614
|
+
width: width || size,
|
|
3615
|
+
height: height || size,
|
|
3616
|
+
backgroundColor: "kitt.white",
|
|
3617
|
+
position: "absolute",
|
|
3618
|
+
opacity: 0.5
|
|
3619
|
+
}) : null]
|
|
3590
3620
|
});
|
|
3591
3621
|
}
|
|
3622
|
+
const getFontColor = () => {
|
|
3623
|
+
if (disabled) {
|
|
3624
|
+
return 'kitt.avatar.disabled.color';
|
|
3625
|
+
}
|
|
3626
|
+
if (light) {
|
|
3627
|
+
return 'kitt.avatar.light.color';
|
|
3628
|
+
}
|
|
3629
|
+
return 'kitt.avatar.default.color';
|
|
3630
|
+
};
|
|
3592
3631
|
if (firstname && lastname) {
|
|
3593
3632
|
return /*#__PURE__*/jsx(Typography.Text, {
|
|
3594
3633
|
base: sizeVariant === 'large' ? 'body-large' : 'body-small',
|
|
3595
3634
|
variant: sizeVariant === 'large' ? 'bold' : 'regular',
|
|
3596
|
-
color:
|
|
3635
|
+
color: getFontColor(),
|
|
3597
3636
|
children: getInitials(firstname, lastname)
|
|
3598
3637
|
});
|
|
3599
3638
|
}
|
|
3600
3639
|
return /*#__PURE__*/jsx(Icon, {
|
|
3601
3640
|
icon: /*#__PURE__*/jsx(UserRegularIcon, {}),
|
|
3602
|
-
color:
|
|
3641
|
+
color: getFontColor(),
|
|
3603
3642
|
size: getIconSize(size, sizeVariant)
|
|
3604
3643
|
});
|
|
3605
3644
|
}
|
|
@@ -3611,7 +3650,8 @@ function Avatar(_ref) {
|
|
|
3611
3650
|
sizeVariant,
|
|
3612
3651
|
width,
|
|
3613
3652
|
height,
|
|
3614
|
-
dark
|
|
3653
|
+
dark,
|
|
3654
|
+
disabled
|
|
3615
3655
|
} = _ref,
|
|
3616
3656
|
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
3617
3657
|
const currentSize = getCurrentSize({
|
|
@@ -3624,6 +3664,9 @@ function Avatar(_ref) {
|
|
|
3624
3664
|
round
|
|
3625
3665
|
});
|
|
3626
3666
|
let backgroundColor = 'kitt.avatar.default.backgroundColor';
|
|
3667
|
+
if (disabled) {
|
|
3668
|
+
backgroundColor = 'kitt.avatar.disabled.backgroundColor';
|
|
3669
|
+
}
|
|
3627
3670
|
if (light) {
|
|
3628
3671
|
backgroundColor = 'kitt.avatar.light.backgroundColor';
|
|
3629
3672
|
} else if (dark) {
|
|
@@ -3641,8 +3684,9 @@ function Avatar(_ref) {
|
|
|
3641
3684
|
height: height,
|
|
3642
3685
|
width: width,
|
|
3643
3686
|
size: currentSize,
|
|
3644
|
-
|
|
3645
|
-
sizeVariant: sizeVariant
|
|
3687
|
+
light: light,
|
|
3688
|
+
sizeVariant: sizeVariant,
|
|
3689
|
+
disabled: disabled
|
|
3646
3690
|
}, props))
|
|
3647
3691
|
});
|
|
3648
3692
|
}
|
|
@@ -8826,13 +8870,19 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
8826
8870
|
},
|
|
8827
8871
|
avatar: {
|
|
8828
8872
|
default: {
|
|
8873
|
+
color: theme.avatar.default.color,
|
|
8829
8874
|
backgroundColor: theme.avatar.default.backgroundColor
|
|
8830
8875
|
},
|
|
8831
8876
|
light: {
|
|
8877
|
+
color: theme.avatar.light.color,
|
|
8832
8878
|
backgroundColor: theme.avatar.light.backgroundColor
|
|
8833
8879
|
},
|
|
8834
8880
|
dark: {
|
|
8835
8881
|
backgroundColor: theme.avatar.dark.backgroundColor
|
|
8882
|
+
},
|
|
8883
|
+
disabled: {
|
|
8884
|
+
color: theme.avatar.disabled.color,
|
|
8885
|
+
backgroundColor: theme.avatar.disabled.backgroundColor
|
|
8836
8886
|
}
|
|
8837
8887
|
},
|
|
8838
8888
|
button: {
|