secullum-react-native-ui 4.16.2-beta.9 → 4.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/lib/components/AppShell.d.ts +52 -0
- package/lib/components/AppShell.js +82 -0
- package/lib/components/Button.d.ts +49 -0
- package/lib/components/Button.js +70 -0
- package/lib/components/Card.d.ts +66 -0
- package/lib/components/Card.js +131 -0
- package/lib/components/CheckBox.d.ts +36 -0
- package/lib/components/CheckBox.js +50 -0
- package/lib/components/DatePicker.d.ts +67 -0
- package/lib/components/DatePicker.js +106 -0
- package/lib/components/DatePicker.web.d.ts +64 -0
- package/lib/components/DatePicker.web.js +106 -0
- package/lib/components/Delay.d.ts +12 -0
- package/lib/components/Delay.js +22 -0
- package/lib/components/Details.d.ts +67 -0
- package/lib/components/Details.js +96 -0
- package/lib/components/DetailsHeader.d.ts +41 -0
- package/lib/components/DetailsHeader.js +65 -0
- package/lib/components/DimensionsMonitor.d.ts +21 -0
- package/lib/components/DimensionsMonitor.js +37 -0
- package/lib/components/DropDown.d.ts +53 -0
- package/lib/components/DropDown.js +351 -0
- package/lib/components/ErrorMessage.d.ts +16 -0
- package/lib/components/ErrorMessage.js +31 -0
- package/lib/components/FilePicker.d.ts +29 -0
- package/lib/components/FilePicker.js +46 -0
- package/lib/components/Header.d.ts +58 -0
- package/lib/components/Header.js +94 -0
- package/lib/components/HeaderDesktop.d.ts +59 -0
- package/lib/components/HeaderDesktop.js +83 -0
- package/lib/components/ImageButton.d.ts +14 -0
- package/lib/components/ImageButton.js +34 -0
- package/lib/components/KeyboardAvoidingView.d.ts +34 -0
- package/lib/components/KeyboardAvoidingView.js +106 -0
- package/lib/components/Link.d.ts +18 -0
- package/lib/components/Link.js +30 -0
- package/lib/components/Loading.d.ts +13 -0
- package/lib/components/Loading.js +45 -0
- package/lib/components/Menu.d.ts +42 -0
- package/lib/components/Menu.js +114 -0
- package/lib/components/MenuDesktop.d.ts +24 -0
- package/lib/components/MenuDesktop.js +39 -0
- package/lib/components/MenuMobile.d.ts +49 -0
- package/lib/components/MenuMobile.js +94 -0
- package/lib/components/Message.d.ts +37 -0
- package/lib/components/Message.js +52 -0
- package/lib/components/Modal.d.ts +18 -0
- package/lib/components/Modal.js +35 -0
- package/lib/components/MultiSelect.d.ts +51 -0
- package/lib/components/MultiSelect.js +377 -0
- package/lib/components/NoRecordMessage.d.ts +23 -0
- package/lib/components/NoRecordMessage.js +36 -0
- package/lib/components/Question.d.ts +57 -0
- package/lib/components/Question.js +79 -0
- package/lib/components/RadioButton.d.ts +43 -0
- package/lib/components/RadioButton.js +55 -0
- package/lib/components/RadioGroup.d.ts +45 -0
- package/lib/components/RadioGroup.js +71 -0
- package/lib/components/RangeDatePicker.d.ts +57 -0
- package/lib/components/RangeDatePicker.js +127 -0
- package/lib/components/RangeDatePicker.web.d.ts +61 -0
- package/lib/components/RangeDatePicker.web.js +146 -0
- package/lib/components/Space.d.ts +11 -0
- package/lib/components/Space.js +15 -0
- package/lib/components/StatusBar.d.ts +18 -0
- package/lib/components/StatusBar.js +33 -0
- package/lib/components/Switch.d.ts +34 -0
- package/lib/components/Switch.js +50 -0
- package/lib/components/Table.d.ts +30 -0
- package/lib/components/Table.js +79 -0
- package/lib/components/Table.web.d.ts +18 -0
- package/lib/components/Table.web.js +111 -0
- package/lib/components/Text.d.ts +29 -0
- package/lib/components/Text.js +38 -0
- package/lib/components/TextBox.d.ts +84 -0
- package/lib/components/TextBox.js +126 -0
- package/lib/components/TextBoxMask.d.ts +12 -0
- package/lib/components/TextBoxMask.js +34 -0
- package/lib/components/TimePicker.d.ts +63 -0
- package/lib/components/TimePicker.js +112 -0
- package/lib/components/TimePicker.web.d.ts +48 -0
- package/lib/components/TimePicker.web.js +88 -0
- package/lib/index.d.ts +40 -0
- package/lib/index.js +56 -0
- package/lib/modules/browser.d.ts +2 -0
- package/lib/modules/browser.js +51 -0
- package/lib/modules/format.d.ts +6 -0
- package/lib/modules/format.js +127 -0
- package/lib/modules/layout.d.ts +1 -0
- package/lib/modules/layout.js +12 -0
- package/lib/modules/test.d.ts +2 -0
- package/lib/modules/test.js +18 -0
- package/lib/modules/theme.d.ts +41 -0
- package/lib/modules/theme.js +52 -0
- package/lib/modules/validation.d.ts +3 -0
- package/lib/modules/validation.js +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTheme = exports.setTheme = exports.RED = exports.GREEN_LIGHT = exports.GREEN = exports.YELLOW = exports.BLUE_LIGHT_2 = exports.BLUE_LIGHT = exports.BLUE = exports.GRAY_4 = exports.GRAY_3 = exports.GRAY_2 = exports.GRAY_1 = exports.GRAY = exports.WHITE = exports.BLACK = void 0;
|
|
4
|
+
const browser_1 = require("./browser");
|
|
5
|
+
exports.BLACK = '#282c37';
|
|
6
|
+
exports.WHITE = '#ffffff';
|
|
7
|
+
exports.GRAY = '#555';
|
|
8
|
+
exports.GRAY_1 = '#eef1f6';
|
|
9
|
+
exports.GRAY_2 = '#dddddd';
|
|
10
|
+
exports.GRAY_3 = '#c2c2c2';
|
|
11
|
+
exports.GRAY_4 = '#aabec6';
|
|
12
|
+
exports.BLUE = '#0047a9';
|
|
13
|
+
exports.BLUE_LIGHT = '#0c65c7';
|
|
14
|
+
exports.BLUE_LIGHT_2 = '#59cbe8';
|
|
15
|
+
exports.YELLOW = '#f5a623';
|
|
16
|
+
exports.GREEN = '#34bf6d';
|
|
17
|
+
exports.GREEN_LIGHT = '#2ec562';
|
|
18
|
+
exports.RED = '#d62729';
|
|
19
|
+
let theme = {
|
|
20
|
+
textColor1: exports.BLACK,
|
|
21
|
+
textColor2: exports.BLUE_LIGHT,
|
|
22
|
+
textColor3: exports.GRAY,
|
|
23
|
+
textColor4: exports.WHITE,
|
|
24
|
+
messageTextColor: exports.BLACK,
|
|
25
|
+
counterTextColor: exports.WHITE,
|
|
26
|
+
dropDownTextColor: exports.BLACK,
|
|
27
|
+
questionTextColor: exports.BLACK,
|
|
28
|
+
datePickerColor: exports.BLUE_LIGHT_2,
|
|
29
|
+
backgroundColor1: exports.WHITE,
|
|
30
|
+
backgroundColor2: exports.GRAY_1,
|
|
31
|
+
backgroundColor3: exports.BLUE_LIGHT,
|
|
32
|
+
borderColor1: exports.GRAY_3,
|
|
33
|
+
shadowColor1: exports.GRAY_4,
|
|
34
|
+
statusBarColor: exports.BLUE,
|
|
35
|
+
successColor: exports.GREEN_LIGHT,
|
|
36
|
+
warningColor: exports.YELLOW,
|
|
37
|
+
errorColor: exports.RED,
|
|
38
|
+
disabledColor: exports.GRAY_2,
|
|
39
|
+
counterBackgroundColor: exports.GREEN,
|
|
40
|
+
fontFamily1: 'Roboto-Medium',
|
|
41
|
+
fontFamily2: 'Roboto',
|
|
42
|
+
fontFamily3: 'Roboto-Light'
|
|
43
|
+
};
|
|
44
|
+
const setTheme = (newTheme) => {
|
|
45
|
+
theme = Object.assign(Object.assign({}, theme), newTheme);
|
|
46
|
+
(0, browser_1.setDatePickerColor)(theme.datePickerColor);
|
|
47
|
+
};
|
|
48
|
+
exports.setTheme = setTheme;
|
|
49
|
+
const getTheme = () => {
|
|
50
|
+
return theme;
|
|
51
|
+
};
|
|
52
|
+
exports.getTheme = getTheme;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isHour = exports.validateCNPJ = exports.validateCPF = void 0;
|
|
4
|
+
const react_native_masked_text_1 = require("react-native-masked-text");
|
|
5
|
+
const validateCPF = (value) => {
|
|
6
|
+
return react_native_masked_text_1.MaskService.isValid('cpf', value, {});
|
|
7
|
+
};
|
|
8
|
+
exports.validateCPF = validateCPF;
|
|
9
|
+
const validateCNPJ = (value) => {
|
|
10
|
+
return react_native_masked_text_1.MaskService.isValid('cnpj', value, {});
|
|
11
|
+
};
|
|
12
|
+
exports.validateCNPJ = validateCNPJ;
|
|
13
|
+
const isHour = (value) => {
|
|
14
|
+
return /^(0[0-9]|1[0-9]|2[0-3]|[0-9]):[0-5][0-9]$/.test(value);
|
|
15
|
+
};
|
|
16
|
+
exports.isHour = isHour;
|