@adiraku/react-native-ui 1.2.1 → 1.2.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/commonjs/components/Appbar/Appbar.component.js +6 -4
- package/lib/commonjs/components/Appbar/Appbar.component.js.map +1 -1
- package/lib/commonjs/components/Appbar/Appbar.style.js +9 -2
- package/lib/commonjs/components/Appbar/Appbar.style.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.component.js +6 -23
- package/lib/commonjs/components/BottomSheet/BottomSheet.component.js.map +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.style.js +11 -4
- package/lib/commonjs/components/BottomSheet/BottomSheet.style.js.map +1 -1
- package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js +18 -10
- package/lib/commonjs/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.component.js +5 -3
- package/lib/commonjs/components/Checkbox/Checkbox.component.js.map +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.type.js +4 -0
- package/lib/commonjs/components/RadioButton/RadioButton.component.js +5 -3
- package/lib/commonjs/components/RadioButton/RadioButton.component.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.type.js +4 -0
- package/lib/commonjs/components/RadioInput/RadioInput.component.js +18 -10
- package/lib/commonjs/components/RadioInput/RadioInput.component.js.map +1 -1
- package/lib/commonjs/components/Tabs/Tabs.component.js +1 -0
- package/lib/commonjs/components/Tabs/Tabs.component.js.map +1 -1
- package/lib/commonjs/components/TextArea/TextArea.component.js +3 -2
- package/lib/commonjs/components/TextArea/TextArea.component.js.map +1 -1
- package/lib/commonjs/components/TextInput/TextInput.component.js +3 -2
- package/lib/commonjs/components/TextInput/TextInput.component.js.map +1 -1
- package/lib/commonjs/components/index.js +7 -0
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/rounded-tab/rounded-tab.component.js +7 -2
- package/lib/commonjs/components/rounded-tab/rounded-tab.component.js.map +1 -1
- package/lib/commonjs/components/search-input/search-input.component.js +57 -0
- package/lib/commonjs/components/search-input/search-input.component.js.map +1 -0
- package/lib/commonjs/components/search-input/search-input.style.js +34 -0
- package/lib/commonjs/components/search-input/search-input.style.js.map +1 -0
- package/lib/commonjs/components/search-input/search-input.type.js +6 -0
- package/lib/commonjs/components/search-input/search-input.type.js.map +1 -0
- package/lib/commonjs/components/textlink/textlink.component.js +7 -2
- package/lib/commonjs/components/textlink/textlink.component.js.map +1 -1
- package/lib/module/components/Appbar/Appbar.component.js +6 -4
- package/lib/module/components/Appbar/Appbar.component.js.map +1 -1
- package/lib/module/components/Appbar/Appbar.style.js +9 -2
- package/lib/module/components/Appbar/Appbar.style.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.component.js +7 -25
- package/lib/module/components/BottomSheet/BottomSheet.component.js.map +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.style.js +11 -4
- package/lib/module/components/BottomSheet/BottomSheet.style.js.map +1 -1
- package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js +18 -10
- package/lib/module/components/CheckBoxInput/CheckBoxInput.component.js.map +1 -1
- package/lib/module/components/Checkbox/Checkbox.component.js +5 -3
- package/lib/module/components/Checkbox/Checkbox.component.js.map +1 -1
- package/lib/module/components/Checkbox/Checkbox.type.js +1 -1
- package/lib/module/components/RadioButton/RadioButton.component.js +5 -3
- package/lib/module/components/RadioButton/RadioButton.component.js.map +1 -1
- package/lib/module/components/RadioButton/RadioButton.type.js +1 -1
- package/lib/module/components/RadioInput/RadioInput.component.js +18 -10
- package/lib/module/components/RadioInput/RadioInput.component.js.map +1 -1
- package/lib/module/components/Tabs/Tabs.component.js +1 -0
- package/lib/module/components/Tabs/Tabs.component.js.map +1 -1
- package/lib/module/components/TextArea/TextArea.component.js +3 -2
- package/lib/module/components/TextArea/TextArea.component.js.map +1 -1
- package/lib/module/components/TextInput/TextInput.component.js +3 -2
- package/lib/module/components/TextInput/TextInput.component.js.map +1 -1
- package/lib/module/components/index.js +1 -0
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/rounded-tab/rounded-tab.component.js +7 -2
- package/lib/module/components/rounded-tab/rounded-tab.component.js.map +1 -1
- package/lib/module/components/search-input/search-input.component.js +50 -0
- package/lib/module/components/search-input/search-input.component.js.map +1 -0
- package/lib/module/components/search-input/search-input.style.js +27 -0
- package/lib/module/components/search-input/search-input.style.js.map +1 -0
- package/lib/module/components/search-input/search-input.type.js +2 -0
- package/lib/module/components/search-input/search-input.type.js.map +1 -0
- package/lib/module/components/textlink/textlink.component.js +7 -2
- package/lib/module/components/textlink/textlink.component.js.map +1 -1
- package/lib/typescript/components/Appbar/Appbar.component.d.ts.map +1 -1
- package/lib/typescript/components/Appbar/Appbar.style.d.ts +3 -1
- package/lib/typescript/components/Appbar/Appbar.style.d.ts.map +1 -1
- package/lib/typescript/components/Appbar/Appbar.type.d.ts +2 -0
- package/lib/typescript/components/Appbar/Appbar.type.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/BottomSheet.component.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/BottomSheet.style.d.ts +1 -0
- package/lib/typescript/components/BottomSheet/BottomSheet.style.d.ts.map +1 -1
- package/lib/typescript/components/BottomSheet/BottomSheet.type.d.ts +2 -2
- package/lib/typescript/components/BottomSheet/BottomSheet.type.d.ts.map +1 -1
- package/lib/typescript/components/CheckBoxInput/CheckBoxInput.component.d.ts.map +1 -1
- package/lib/typescript/components/CheckBoxInput/CheckBoxInput.type.d.ts +7 -4
- package/lib/typescript/components/CheckBoxInput/CheckBoxInput.type.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/Checkbox.component.d.ts.map +1 -1
- package/lib/typescript/components/Checkbox/Checkbox.type.d.ts +2 -1
- package/lib/typescript/components/Checkbox/Checkbox.type.d.ts.map +1 -1
- package/lib/typescript/components/RadioButton/RadioButton.component.d.ts.map +1 -1
- package/lib/typescript/components/RadioButton/RadioButton.type.d.ts +2 -1
- package/lib/typescript/components/RadioButton/RadioButton.type.d.ts.map +1 -1
- package/lib/typescript/components/RadioInput/RadioInput.component.d.ts.map +1 -1
- package/lib/typescript/components/RadioInput/RadioInput.type.d.ts +7 -4
- package/lib/typescript/components/RadioInput/RadioInput.type.d.ts.map +1 -1
- package/lib/typescript/components/Tabs/Tabs.component.d.ts.map +1 -1
- package/lib/typescript/components/TextArea/TextArea.component.d.ts.map +1 -1
- package/lib/typescript/components/TextArea/TextArea.type.d.ts +2 -0
- package/lib/typescript/components/TextArea/TextArea.type.d.ts.map +1 -1
- package/lib/typescript/components/TextInput/TextInput.component.d.ts.map +1 -1
- package/lib/typescript/components/TextInput/TextInput.type.d.ts +2 -0
- package/lib/typescript/components/TextInput/TextInput.type.d.ts.map +1 -1
- package/lib/typescript/components/index.d.ts +2 -0
- package/lib/typescript/components/index.d.ts.map +1 -1
- package/lib/typescript/components/rounded-tab/rounded-tab.component.d.ts.map +1 -1
- package/lib/typescript/components/rounded-tab/rounded-tab.type.d.ts +3 -1
- package/lib/typescript/components/rounded-tab/rounded-tab.type.d.ts.map +1 -1
- package/lib/typescript/components/search-input/search-input.component.d.ts +4 -0
- package/lib/typescript/components/search-input/search-input.component.d.ts.map +1 -0
- package/lib/typescript/components/search-input/search-input.style.d.ts +10 -0
- package/lib/typescript/components/search-input/search-input.style.d.ts.map +1 -0
- package/lib/typescript/components/search-input/search-input.type.d.ts +7 -0
- package/lib/typescript/components/search-input/search-input.type.d.ts.map +1 -0
- package/lib/typescript/components/textlink/textlink.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Appbar/Appbar.component.tsx +35 -34
- package/src/components/Appbar/Appbar.style.tsx +9 -2
- package/src/components/Appbar/Appbar.type.ts +4 -0
- package/src/components/BottomSheet/BottomSheet.component.tsx +32 -53
- package/src/components/BottomSheet/BottomSheet.style.tsx +11 -2
- package/src/components/BottomSheet/BottomSheet.type.ts +3 -2
- package/src/components/CheckBoxInput/CheckBoxInput.component.tsx +18 -2
- package/src/components/CheckBoxInput/CheckBoxInput.type.ts +7 -5
- package/src/components/Checkbox/Checkbox.component.tsx +2 -1
- package/src/components/Checkbox/Checkbox.type.ts +3 -1
- package/src/components/RadioButton/RadioButton.component.tsx +2 -1
- package/src/components/RadioButton/RadioButton.type.ts +3 -1
- package/src/components/RadioInput/RadioInput.component.tsx +18 -2
- package/src/components/RadioInput/RadioInput.type.ts +7 -5
- package/src/components/Tabs/Tabs.component.tsx +1 -0
- package/src/components/TextArea/TextArea.component.tsx +6 -1
- package/src/components/TextArea/TextArea.type.ts +2 -0
- package/src/components/TextInput/TextInput.component.tsx +6 -1
- package/src/components/TextInput/TextInput.type.ts +2 -0
- package/src/components/index.ts +2 -0
- package/src/components/rounded-tab/rounded-tab.component.tsx +11 -2
- package/src/components/rounded-tab/rounded-tab.type.ts +3 -1
- package/src/components/search-input/search-input.component.tsx +66 -0
- package/src/components/search-input/search-input.style.ts +38 -0
- package/src/components/search-input/search-input.type.ts +7 -0
- package/src/components/textlink/textlink.component.tsx +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Appbar.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Appbar/Appbar.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,aAAa,CAAC,EAAE,uBAAuB,CAAC;IAExC,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,aAAa,CAAC,EAAE;QACd,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,KAAK,CAAC,EAAE,uBAAuB,CAAC;KACjC,EAAE,CAAC;CACL"}
|
|
1
|
+
{"version":3,"file":"Appbar.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Appbar/Appbar.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,aAAa,CAAC,EAAE,uBAAuB,CAAC;IAExC,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB,cAAc,CAAC,EAAE,SAAS,CAAC;IAE3B,eAAe,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAE/C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,aAAa,CAAC,EAAE;QACd,IAAI,EAAE,SAAS,CAAC;QAChB,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,KAAK,CAAC,EAAE,uBAAuB,CAAC;KACjC,EAAE,CAAC;CACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.component.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomSheet.component.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAa/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,aAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,oBAAY,kBAAkB,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAItE,QAAA,MAAM,WAAW,+FA8LhB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.style.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.style.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzD,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,wBAAwB,CAAC,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomSheet.style.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.style.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzD,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,eAAe,CAAC,EAAE,SAAS,CAAC;IAC5B,qBAAqB,CAAC,EAAE,SAAS,CAAC;IAClC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,uBAAuB,CAAC,EAAE,SAAS,CAAC;IACpC,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,kBAAkB,CAAC,EAAE,SAAS,CAAC;IAC/B,wBAAwB,CAAC,EAAE,SAAS,CAAC;IACrC,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,QAAQ,0BA0EpB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import type { TextProps, TouchableHighlightProps } from 'react-native';
|
|
3
3
|
import type { ModalProps } from 'react-native-modal';
|
|
4
|
-
export interface BottomSheetProps extends Omit<ModalProps
|
|
4
|
+
export interface BottomSheetProps extends Omit<Partial<ModalProps>, 'isVisible'> {
|
|
5
5
|
onDismiss?: () => void;
|
|
6
6
|
sheetHeader?: ReactNode;
|
|
7
|
-
title
|
|
7
|
+
title?: string;
|
|
8
8
|
titleProps?: TextProps;
|
|
9
9
|
subtitle?: string;
|
|
10
10
|
subtitleProps?: TextProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.type.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"BottomSheet.type.d.ts","sourceRoot":"","sources":["../../../../src/components/BottomSheet/BottomSheet.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,WAAW,CAAC;IAC9C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IAEvB,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAEnC,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,gBAAgB,CAAC,EAAE,uBAAuB,CAAC;IAE3C,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAElC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,oBAAY,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckBoxInput/CheckBoxInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EACV,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAM9B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"CheckBoxInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckBoxInput/CheckBoxInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EACV,kBAAkB,EAGnB,MAAM,sBAAsB,CAAC;AAM9B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAqN9D,CAAC;AAqCF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { TouchableHighlightProps } from 'react-native';
|
|
3
|
+
import type { TouchableWithoutFeedbackProps } from 'react-native';
|
|
3
4
|
import type { BottomSheetProps } from '../BottomSheet/BottomSheet.type';
|
|
4
5
|
import type { ButtonProps } from '../button/button.type';
|
|
5
|
-
|
|
6
|
+
import { TypographyProps } from '../typography/typography.type';
|
|
7
|
+
export interface CheckboxInputProps extends TouchableWithoutFeedbackProps {
|
|
6
8
|
/**
|
|
7
9
|
* A string that specifies the label text for the input field.
|
|
8
10
|
*/
|
|
@@ -13,6 +15,7 @@ export interface CheckboxInputProps {
|
|
|
13
15
|
* guidance to the user, such as formatting requirements or error messages.
|
|
14
16
|
*/
|
|
15
17
|
helperMessage?: string;
|
|
18
|
+
helperMessageProps?: TypographyProps;
|
|
16
19
|
/**
|
|
17
20
|
* Indicate error state
|
|
18
21
|
*/
|
|
@@ -33,7 +36,7 @@ export interface CheckboxInputProps {
|
|
|
33
36
|
data?: CheckboxItemProps[];
|
|
34
37
|
onSaveInput?: (selectedValue?: CheckboxItemProps[]) => void;
|
|
35
38
|
saveInputLabel: string;
|
|
36
|
-
saveInputProps
|
|
39
|
+
saveInputProps?: ButtonProps;
|
|
37
40
|
bottomSheetOpt: Omit<BottomSheetProps, 'visibility' | 'onDismiss'>;
|
|
38
41
|
selectionLimit?: number;
|
|
39
42
|
onInputDismiss?: () => void;
|
|
@@ -45,11 +48,11 @@ export declare type CheckboxItemProps = {
|
|
|
45
48
|
value: string;
|
|
46
49
|
disabled?: boolean;
|
|
47
50
|
} & TouchableHighlightProps;
|
|
48
|
-
export
|
|
51
|
+
export interface CheckboxItemPropsComponent extends TouchableHighlightProps {
|
|
49
52
|
data: {
|
|
50
53
|
item: CheckboxItemProps;
|
|
51
54
|
};
|
|
52
55
|
selectedValue?: CheckboxItemProps[];
|
|
53
56
|
onItemPress?: (value: CheckboxItemProps) => void;
|
|
54
|
-
}
|
|
57
|
+
}
|
|
55
58
|
//# sourceMappingURL=CheckBoxInput.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckBoxInput.type.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckBoxInput/CheckBoxInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckBoxInput.type.d.ts","sourceRoot":"","sources":["../../../../src/components/CheckBoxInput/CheckBoxInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAElE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MAAM,WAAW,0BAA2B,SAAQ,uBAAuB;IACzE,IAAI,EAAE;QACJ,IAAI,EAAE,iBAAiB,CAAC;KACzB,CAAC;IACF,aAAa,CAAC,EAAE,iBAAiB,EAAE,CAAC;IACpC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;CAClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"Checkbox.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAyBpD,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Checkbox.type.d.ts","sourceRoot":"","sources":["../../../../src/components/Checkbox/Checkbox.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.component.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioButton/RadioButton.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"RadioButton.component.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioButton/RadioButton.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAqB1D,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioButton.type.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioButton/RadioButton.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"RadioButton.type.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioButton/RadioButton.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioInput/RadioInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAE3B,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"RadioInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioInput/RadioInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAmB/B,OAAO,KAAK,EACV,eAAe,EAGhB,MAAM,mBAAmB,CAAC;AAE3B,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CA2LxD,CAAC;AAmCF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { TouchableHighlightProps } from 'react-native';
|
|
3
|
+
import type { TouchableWithoutFeedbackProps } from 'react-native';
|
|
3
4
|
import type { BottomSheetProps } from '../BottomSheet/BottomSheet.type';
|
|
4
5
|
import type { ButtonProps } from '../button/button.type';
|
|
5
|
-
|
|
6
|
+
import { TypographyProps } from '../typography/typography.type';
|
|
7
|
+
export interface RadioInputProps extends TouchableWithoutFeedbackProps {
|
|
6
8
|
/**
|
|
7
9
|
* A string that specifies the label text for the input field.
|
|
8
10
|
*/
|
|
@@ -13,6 +15,7 @@ export interface RadioInputProps {
|
|
|
13
15
|
* guidance to the user, such as formatting requirements or error messages.
|
|
14
16
|
*/
|
|
15
17
|
helperMessage?: string;
|
|
18
|
+
helperMessageProps?: TypographyProps;
|
|
16
19
|
/**
|
|
17
20
|
* Indicate error state
|
|
18
21
|
*/
|
|
@@ -33,7 +36,7 @@ export interface RadioInputProps {
|
|
|
33
36
|
data?: RadioItemProps[];
|
|
34
37
|
onSaveInput?: (selectedValue?: RadioItemProps) => void;
|
|
35
38
|
saveInputLabel: string;
|
|
36
|
-
saveInputProps
|
|
39
|
+
saveInputProps?: ButtonProps;
|
|
37
40
|
bottomSheetOpt: Omit<BottomSheetProps, 'visibility' | 'onDismiss'>;
|
|
38
41
|
onInputDismiss?: () => void;
|
|
39
42
|
customRadioInput?: (props: RadioItemPropsComponent) => any;
|
|
@@ -44,11 +47,11 @@ export declare type RadioItemProps = {
|
|
|
44
47
|
value: string;
|
|
45
48
|
disabled?: boolean;
|
|
46
49
|
} & TouchableHighlightProps;
|
|
47
|
-
export
|
|
50
|
+
export interface RadioItemPropsComponent extends TouchableHighlightProps {
|
|
48
51
|
data: {
|
|
49
52
|
item: RadioItemProps;
|
|
50
53
|
};
|
|
51
54
|
selectedValue?: RadioItemProps;
|
|
52
55
|
onItemPress?: (value: RadioItemProps) => void;
|
|
53
|
-
}
|
|
56
|
+
}
|
|
54
57
|
//# sourceMappingURL=RadioInput.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioInput.type.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioInput/RadioInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"RadioInput.type.d.ts","sourceRoot":"","sources":["../../../../src/components/RadioInput/RadioInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,WAAW,eAAgB,SAAQ,6BAA6B;IACpE;;OAEG;IACH,KAAK,EAAE,MAAM,C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tabs.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAM7C,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"Tabs.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAM7C,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CA0E5C,CAAC;AAEF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"TextArea.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIrD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CAoEpD,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { TextInput } from 'react-native';
|
|
3
|
+
import { TypographyProps } from '../typography/typography.type';
|
|
3
4
|
export interface TextAreaProps extends React.ComponentProps<typeof TextInput> {
|
|
4
5
|
/**
|
|
5
6
|
* A string that specifies the label text for the input field.
|
|
@@ -11,6 +12,7 @@ export interface TextAreaProps extends React.ComponentProps<typeof TextInput> {
|
|
|
11
12
|
* guidance to the user, such as formatting requirements or error messages.
|
|
12
13
|
*/
|
|
13
14
|
helperMessage?: string;
|
|
15
|
+
helperMessageProps?: TypographyProps;
|
|
14
16
|
/**
|
|
15
17
|
* Indicate error state
|
|
16
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.type.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.type.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"TextArea.type.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/TextArea.type.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC;IAC3E;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,eAAe,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASvD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AASvD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAkHtD,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import { MaskInputProps } from 'react-native-mask-input';
|
|
3
|
+
import { TypographyProps } from '../typography/typography.type';
|
|
3
4
|
export interface TextInputProps extends MaskInputProps {
|
|
4
5
|
/**
|
|
5
6
|
* A string that specifies the label text for the input field.
|
|
@@ -11,6 +12,7 @@ export interface TextInputProps extends MaskInputProps {
|
|
|
11
12
|
* guidance to the user, such as formatting requirements or error messages.
|
|
12
13
|
*/
|
|
13
14
|
helperMessage?: string;
|
|
15
|
+
helperMessageProps?: TypographyProps;
|
|
14
16
|
/**
|
|
15
17
|
* Indicate error state
|
|
16
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.type.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInput.type.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,eAAe,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB"}
|
|
@@ -12,6 +12,7 @@ export { Divider } from './Divider/Divider.component';
|
|
|
12
12
|
export { Tabs } from './Tabs/Tabs.component';
|
|
13
13
|
export { RadioButton } from './RadioButton/RadioButton.component';
|
|
14
14
|
export { BottomSheet, BottomSheetHandler, } from './BottomSheet/BottomSheet.component';
|
|
15
|
+
export { SearchInput } from './search-input/search-input.component';
|
|
15
16
|
export { RadioInput } from './RadioInput/RadioInput.component';
|
|
16
17
|
export { CheckBoxInput } from './CheckBoxInput/CheckBoxInput.component';
|
|
17
18
|
export { Checkbox } from './Checkbox/Checkbox.component';
|
|
@@ -33,4 +34,5 @@ export type { TextAreaProps } from './TextArea/TextArea.type';
|
|
|
33
34
|
export type { StepperCounterProps } from './StepperCounter/StepperCounter.type';
|
|
34
35
|
export type { DividerProps } from './Divider/Divider.type';
|
|
35
36
|
export type { TabsProps } from './Tabs/Tabs.type';
|
|
37
|
+
export type { SearchInputProps } from './search-input/search-input.type';
|
|
36
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2B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c,EAAE,MAAM,4BAA4B,CAAC;AACjE,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAChF,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rounded-tab.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rounded-tab/rounded-tab.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,oBAAoB,CAAC;AAOxE,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"rounded-tab.component.d.ts","sourceRoot":"","sources":["../../../../src/components/rounded-tab/rounded-tab.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,eAAe,EAAgB,MAAM,oBAAoB,CAAC;AAOxE,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,eAAe,CAwCxD,CAAC;AAuEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TouchableWithoutFeedbackProps } from 'react-native';
|
|
2
|
+
import { TouchableWithoutFeedbackProps, ViewStyle } from 'react-native';
|
|
3
3
|
export interface RoundedTabProps {
|
|
4
4
|
data: Omit<TabItemProps, 'isSelected'>[];
|
|
5
5
|
selectedValue: string;
|
|
6
|
+
containerStyle: ViewStyle;
|
|
7
|
+
contentContainerStyle: ViewStyle;
|
|
6
8
|
onTabItemPress: (value: any) => void;
|
|
7
9
|
}
|
|
8
10
|
export declare type TabItemProps = TouchableWithoutFeedbackProps & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rounded-tab.type.d.ts","sourceRoot":"","sources":["../../../../src/components/rounded-tab/rounded-tab.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"rounded-tab.type.d.ts","sourceRoot":"","sources":["../../../../src/components/rounded-tab/rounded-tab.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,6BAA6B,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAExE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,EAAE,CAAC;IACzC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,SAAS,CAAC;IAC1B,qBAAqB,EAAE,SAAS,CAAC;IACjC,cAAc,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CACtC;AAED,oBAAY,YAAY,GAAG,6BAA6B,GAAG;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-input.component.d.ts","sourceRoot":"","sources":["../../../../src/components/search-input/search-input.component.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKvD,eAAO,MAAM,WAAW,UAAW,gBAAgB,gBAqDlD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ViewStyle } from 'react-native';
|
|
2
|
+
import { TextStyle } from 'react-native';
|
|
3
|
+
declare type StyleType = {
|
|
4
|
+
container?: ViewStyle;
|
|
5
|
+
textInput?: TextStyle;
|
|
6
|
+
trailingIconContainer?: ViewStyle;
|
|
7
|
+
};
|
|
8
|
+
export declare const getStyles: () => StyleType;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=search-input.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-input.style.d.ts","sourceRoot":"","sources":["../../../../src/components/search-input/search-input.style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,aAAK,SAAS,GAAG;IACf,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,qBAAqB,CAAC,EAAE,SAAS,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,SAAS,iBA2BrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-input.type.d.ts","sourceRoot":"","sources":["../../../../src/components/search-input/search-input.type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAClC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textlink.component.d.ts","sourceRoot":"","sources":["../../../../src/components/textlink/textlink.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"textlink.component.d.ts","sourceRoot":"","sources":["../../../../src/components/textlink/textlink.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAMrD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,iBAAiB,CAAC,aAAa,CA0C3D,CAAC"}
|
package/package.json
CHANGED
|
@@ -23,49 +23,50 @@ const Appbar: React.FunctionComponent<AppbarProps> = (props) => {
|
|
|
23
23
|
titleProps = {},
|
|
24
24
|
} = props;
|
|
25
25
|
|
|
26
|
-
const computedStyle = getStyle();
|
|
26
|
+
const computedStyle = getStyle(props);
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<View
|
|
30
30
|
style={[
|
|
31
31
|
computedStyle.container,
|
|
32
|
-
containerStyle,
|
|
33
32
|
withShadow && Shadow['shadow-elevation-2'],
|
|
34
33
|
]}
|
|
35
34
|
>
|
|
36
|
-
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{backIcon}
|
|
45
|
-
</TouchableHighlight>
|
|
46
|
-
<View style={[computedStyle.contentWrapper]}>
|
|
47
|
-
<Typography
|
|
48
|
-
variant="subtitle1"
|
|
49
|
-
style={[computedStyle.title]}
|
|
50
|
-
{...titleProps}
|
|
35
|
+
<View style={[computedStyle.wrapperContainer, containerStyle]}>
|
|
36
|
+
{customHeader ?? (
|
|
37
|
+
<>
|
|
38
|
+
<TouchableHighlight
|
|
39
|
+
onPress={onBackPress}
|
|
40
|
+
style={[computedStyle.iconWrapper]}
|
|
41
|
+
underlayColor={Palettes.grey[50]}
|
|
42
|
+
{...backIconProps}
|
|
51
43
|
>
|
|
52
|
-
{
|
|
53
|
-
</
|
|
54
|
-
{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
44
|
+
{backIcon}
|
|
45
|
+
</TouchableHighlight>
|
|
46
|
+
<View style={[computedStyle.contentWrapper]}>
|
|
47
|
+
<Typography
|
|
48
|
+
variant="subtitle1"
|
|
49
|
+
style={[computedStyle.title]}
|
|
50
|
+
{...titleProps}
|
|
51
|
+
>
|
|
52
|
+
{title}
|
|
53
|
+
</Typography>
|
|
54
|
+
{buttonActions.length > 0 &&
|
|
55
|
+
buttonActions.map((action, idx) => (
|
|
56
|
+
<TouchableHighlight
|
|
57
|
+
key={idx}
|
|
58
|
+
onPress={action.onPress}
|
|
59
|
+
style={[computedStyle.iconWrapper]}
|
|
60
|
+
underlayColor={Palettes.grey[50]}
|
|
61
|
+
{...action.props}
|
|
62
|
+
>
|
|
63
|
+
{action.icon}
|
|
64
|
+
</TouchableHighlight>
|
|
65
|
+
))}
|
|
66
|
+
</View>
|
|
67
|
+
</>
|
|
68
|
+
)}
|
|
69
|
+
</View>
|
|
69
70
|
</View>
|
|
70
71
|
);
|
|
71
72
|
};
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
import { StyleSheet } from 'react-native';
|
|
2
2
|
|
|
3
3
|
import { Palettes, Radius, Spacing } from '../../themes';
|
|
4
|
+
import { AppbarProps } from './Appbar.type';
|
|
4
5
|
|
|
5
6
|
import type { ViewStyle } from 'react-native';
|
|
6
7
|
import { TextStyle } from 'react-native';
|
|
7
8
|
|
|
8
9
|
interface ComputedStyleProps {
|
|
9
10
|
container?: ViewStyle;
|
|
11
|
+
wrapperContainer?: ViewStyle;
|
|
10
12
|
iconWrapper?: ViewStyle;
|
|
11
13
|
contentWrapper?: ViewStyle;
|
|
12
14
|
title?: TextStyle;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
export const getStyle = () => {
|
|
17
|
+
export const getStyle = (props: AppbarProps) => {
|
|
18
|
+
const { statusBarHeight = 0, backgroundColor = Palettes.white[50] } = props;
|
|
16
19
|
const computedStyle: ComputedStyleProps = {};
|
|
17
20
|
|
|
18
21
|
computedStyle.container = {
|
|
22
|
+
paddingTop: statusBarHeight,
|
|
23
|
+
backgroundColor,
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
computedStyle.wrapperContainer = {
|
|
19
27
|
width: '100%',
|
|
20
28
|
height: 56,
|
|
21
29
|
padding: Spacing[16],
|
|
22
|
-
backgroundColor: Palettes.white[50],
|
|
23
30
|
flexDirection: 'row',
|
|
24
31
|
justifyContent: 'flex-start',
|
|
25
32
|
alignItems: 'center',
|