ncore-ui-kit 1.1.0-alpha.1 → 1.1.0-alpha.2
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/lib/module/components/localeSwitcher/index.js +2 -2
- package/lib/module/components/localeSwitcher/index.js.map +1 -1
- package/lib/module/components/paletteSwitcher/index.js +3 -3
- package/lib/module/components/paletteSwitcher/index.js.map +1 -1
- package/lib/module/components/themeSwitcher/index.js +2 -2
- package/lib/module/components/themeSwitcher/index.js.map +1 -1
- package/lib/module/package.json +1 -1
- package/lib/package.json +1 -1
- package/lib/src/components/localeSwitcher/index.js +2 -2
- package/lib/src/components/paletteSwitcher/index.js +3 -3
- package/lib/src/components/themeSwitcher/index.js +2 -2
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/package.json +1 -1
- package/lib/typescript/src/components/localeSwitcher/index.d.ts.map +1 -1
- package/lib/typescript/src/components/paletteSwitcher/index.d.ts.map +1 -1
- package/lib/typescript/src/components/themeSwitcher/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/localeSwitcher/index.tsx +5 -3
- package/src/components/paletteSwitcher/index.tsx +6 -4
- package/src/components/themeSwitcher/index.tsx +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/localeSwitcher/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,EAAE,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,oBAAoB,MAAM,QAAQ,CAAC;AAiB/C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/localeSwitcher/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,EAAE,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,oBAAoB,MAAM,QAAQ,CAAC;AAiB/C,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,oBAAoB,CA8I5C,CAAC;AACF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/paletteSwitcher/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,EAAE,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,qBAAqB,MAAM,QAAQ,CAAC;AAkBhD,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/paletteSwitcher/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,EAAE,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,qBAAqB,MAAM,QAAQ,CAAC;AAkBhD,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,qBAAqB,CA+J9C,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/themeSwitcher/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,EAAE,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,mBAAmB,MAAM,QAAQ,CAAC;AAiB9C,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/themeSwitcher/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGH,KAAK,EAAE,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,mBAAmB,MAAM,QAAQ,CAAC;AAiB9C,QAAA,MAAM,aAAa,EAAE,EAAE,CAAC,mBAAmB,CAyJ1C,CAAC;AACF,eAAe,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -51,15 +51,17 @@ const LocaleSwitcher: FC<ILocaleSwitcherProps> = ({
|
|
|
51
51
|
activeLocale
|
|
52
52
|
]);
|
|
53
53
|
|
|
54
|
-
const variantsPre: LocaleSwitchVariants
|
|
54
|
+
const variantsPre: Array<Omit<LocaleSwitchVariants[0], "backgroundColor"> & {
|
|
55
|
+
backgroundColor?: LocaleSwitchVariants[0]["backgroundColor"]
|
|
56
|
+
}> = variantsProps;
|
|
55
57
|
|
|
56
58
|
const isHaveNCTRTR = variantsProps.findIndex(iV => iV.localeKey === "tr-TR") !== -1;
|
|
57
59
|
const isHaveNCENUS = variantsProps.findIndex(iV => iV.localeKey === "en-US") !== -1;
|
|
58
60
|
|
|
59
61
|
if(!isHaveNCTRTR) {
|
|
60
62
|
variantsPre.unshift({
|
|
63
|
+
backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
61
64
|
borderColor: "transparent",
|
|
62
|
-
backgroundColor: "subtle",
|
|
63
65
|
iconColor: "turkish",
|
|
64
66
|
localeKey: "tr-TR",
|
|
65
67
|
icon: ({
|
|
@@ -74,8 +76,8 @@ const LocaleSwitcher: FC<ILocaleSwitcherProps> = ({
|
|
|
74
76
|
|
|
75
77
|
if(!isHaveNCENUS) {
|
|
76
78
|
variantsPre.unshift({
|
|
79
|
+
backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
77
80
|
borderColor: "transparent",
|
|
78
|
-
backgroundColor: "subtle",
|
|
79
81
|
iconColor: "english",
|
|
80
82
|
localeKey: "en-US",
|
|
81
83
|
icon: ({
|
|
@@ -52,7 +52,9 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
52
52
|
activePalette
|
|
53
53
|
]);
|
|
54
54
|
|
|
55
|
-
const variantsPre: ThemeSwitchVariants
|
|
55
|
+
const variantsPre: Array<Omit<ThemeSwitchVariants[0], "backgroundColor"> & {
|
|
56
|
+
backgroundColor?: ThemeSwitchVariants[0]["backgroundColor"]
|
|
57
|
+
}> = variantsProps;
|
|
56
58
|
|
|
57
59
|
const isHaveNC = variantsProps.findIndex(iV => iV.paletteKey === "nibgat-community") !== -1;
|
|
58
60
|
const isHaveCC = variantsProps.findIndex(iV => iV.paletteKey === "caycore") !== -1;
|
|
@@ -60,8 +62,8 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
60
62
|
|
|
61
63
|
if(!isHaveN) {
|
|
62
64
|
variantsPre.unshift({
|
|
65
|
+
backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
63
66
|
borderColor: "transparent",
|
|
64
|
-
backgroundColor: "subtle",
|
|
65
67
|
paletteKey: "nibgat",
|
|
66
68
|
iconColor: "moon",
|
|
67
69
|
icon: ({
|
|
@@ -76,9 +78,9 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
76
78
|
|
|
77
79
|
if(!isHaveNC) {
|
|
78
80
|
variantsPre.unshift({
|
|
81
|
+
backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
79
82
|
paletteKey: "nibgat-community",
|
|
80
83
|
borderColor: "transparent",
|
|
81
|
-
backgroundColor: "subtle",
|
|
82
84
|
iconColor: "moon",
|
|
83
85
|
icon: ({
|
|
84
86
|
size
|
|
@@ -92,8 +94,8 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
|
|
|
92
94
|
|
|
93
95
|
if(!isHaveCC) {
|
|
94
96
|
variantsPre.unshift({
|
|
97
|
+
backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
95
98
|
borderColor: "transparent",
|
|
96
|
-
backgroundColor: "subtle",
|
|
97
99
|
paletteKey: "caycore",
|
|
98
100
|
iconColor: "moon",
|
|
99
101
|
icon: ({
|
|
@@ -52,15 +52,17 @@ const ThemeSwitcher: FC<IThemeSwitcherProps> = ({
|
|
|
52
52
|
activeTheme
|
|
53
53
|
]);
|
|
54
54
|
|
|
55
|
-
const variantsPre: ThemeSwitchVariants
|
|
55
|
+
const variantsPre: Array<Omit<ThemeSwitchVariants[0], "backgroundColor"> & {
|
|
56
|
+
backgroundColor?: ThemeSwitchVariants[0]["backgroundColor"]
|
|
57
|
+
}> = variantsProps;
|
|
56
58
|
|
|
57
59
|
const isHaveLight = variantsProps.findIndex(iV => iV.themeKey === "light") !== -1;
|
|
58
60
|
const isHaveDark = variantsProps.findIndex(iV => iV.themeKey === "dark") !== -1;
|
|
59
61
|
|
|
60
62
|
if(!isHaveDark) {
|
|
61
63
|
variantsPre.unshift({
|
|
64
|
+
backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
62
65
|
borderColor: "transparent",
|
|
63
|
-
backgroundColor: "subtle",
|
|
64
66
|
iconColor: "moon",
|
|
65
67
|
themeKey: "dark",
|
|
66
68
|
icon: ({
|
|
@@ -80,8 +82,8 @@ const ThemeSwitcher: FC<IThemeSwitcherProps> = ({
|
|
|
80
82
|
|
|
81
83
|
if(!isHaveLight) {
|
|
82
84
|
variantsPre.unshift({
|
|
85
|
+
backgroundColor: isWorkWithHighlightButton ? undefined : "subtle",
|
|
83
86
|
borderColor: "transparent",
|
|
84
|
-
backgroundColor: "subtle",
|
|
85
87
|
themeKey: "light",
|
|
86
88
|
iconColor: "sun",
|
|
87
89
|
icon: ({
|