ncore-ui-kit 1.1.0-alpha.3 → 1.1.0-alpha.4

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.
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.1.0-alpha.3"
3
+ "version": "1.1.0-alpha.4"
4
4
  }
@@ -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,CA8I5C,CAAC;AACF,eAAe,cAAc,CAAC"}
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,CAgJ5C,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,CA+J9C,CAAC;AACF,eAAe,eAAe,CAAC"}
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,CAiK9C,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,CAyJ1C,CAAC;AACF,eAAe,aAAa,CAAC"}
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,CA2J1C,CAAC;AACF,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ncore-ui-kit",
3
- "version": "1.1.0-alpha.3",
3
+ "version": "1.1.0-alpha.4",
4
4
  "description": "NİBGAT® | NCore - UI Kit for React-Native Mobile Apps.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -24,9 +24,11 @@ const LocaleSwitcher: FC<ILocaleSwitcherProps> = ({
24
24
  variants: variantsProps = [],
25
25
  isWorkWithHighlightButton,
26
26
  isWorkWithNextShowSystem,
27
+ customBorderColor,
27
28
  customLocalize,
28
- color,
29
+ customColor,
29
30
  style,
31
+ color,
30
32
  ...props
31
33
  }) => {
32
34
  const {
@@ -120,14 +122,14 @@ const LocaleSwitcher: FC<ILocaleSwitcherProps> = ({
120
122
 
121
123
  const allProps = {
122
124
  ...props,
123
- customBorderColor: currentVariant && currentVariant.borderColor ?
125
+ customBorderColor: customBorderColor || (currentVariant && currentVariant.borderColor ?
124
126
  currentVariant.borderColor
125
127
  :
126
- color,
127
- customColor: currentVariant && currentVariant.backgroundColor ?
128
+ color),
129
+ customColor: customColor || (currentVariant && currentVariant.backgroundColor ?
128
130
  currentVariant.backgroundColor
129
131
  :
130
- color,
132
+ color),
131
133
  icon: ({
132
134
  color,
133
135
  size
@@ -25,9 +25,11 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
25
25
  variants: variantsProps = [],
26
26
  isWorkWithHighlightButton,
27
27
  isWorkWithNextShowSystem,
28
+ customBorderColor,
28
29
  customTheme,
29
- color,
30
+ customColor,
30
31
  style,
32
+ color,
31
33
  ...props
32
34
  }) => {
33
35
  const {
@@ -138,14 +140,14 @@ const PaletteSwitcher: FC<IPaletteSwitcherProps> = ({
138
140
 
139
141
  const allProps = {
140
142
  ...props,
141
- customBorderColor: currentVariant && currentVariant.borderColor ?
143
+ customBorderColor: customBorderColor || (currentVariant && currentVariant.borderColor ?
142
144
  currentVariant.borderColor
143
145
  :
144
- color,
145
- customColor: currentVariant && currentVariant.backgroundColor ?
146
+ color),
147
+ customColor: customColor || (currentVariant && currentVariant.backgroundColor ?
146
148
  currentVariant.backgroundColor
147
149
  :
148
- color,
150
+ color),
149
151
  icon: ({
150
152
  color,
151
153
  size
@@ -24,9 +24,11 @@ const ThemeSwitcher: FC<IThemeSwitcherProps> = ({
24
24
  variants: variantsProps = [],
25
25
  isWorkWithHighlightButton,
26
26
  isWorkWithNextShowSystem,
27
+ customBorderColor,
27
28
  customTheme,
28
- color,
29
+ customColor,
29
30
  style,
31
+ color,
30
32
  ...props
31
33
  }) => {
32
34
  const {
@@ -131,14 +133,14 @@ const ThemeSwitcher: FC<IThemeSwitcherProps> = ({
131
133
 
132
134
  const allProps = {
133
135
  ...props,
134
- customBorderColor: currentVariant && currentVariant.borderColor ?
136
+ customBorderColor: customBorderColor || (currentVariant && currentVariant.borderColor ?
135
137
  currentVariant.borderColor
136
138
  :
137
- color,
138
- customColor: currentVariant && currentVariant.backgroundColor ?
139
+ color),
140
+ customColor: customColor || (currentVariant && currentVariant.backgroundColor ?
139
141
  currentVariant.backgroundColor
140
142
  :
141
- color,
143
+ color),
142
144
  icon: ({
143
145
  color,
144
146
  size