react-native-ui-lib 7.39.0-snapshot.6728 → 7.39.1
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/package.json +2 -4
- package/scripts/docs/buildDocsCommon.js +83 -16
- package/src/assets/icons/index.js +26 -0
- package/src/assets/images/index.js +5 -0
- package/src/assets/index.js +5 -2
- package/src/commons/Constants.d.ts +0 -1
- package/src/commons/Constants.js +2 -4
- package/src/components/avatar/index.d.ts +19 -8
- package/src/components/avatar/index.js +2 -4
- package/src/components/button/button.api.json +85 -25
- package/src/components/card/index.js +1 -1
- package/src/components/checkbox/index.d.ts +1 -4
- package/src/components/checkbox/index.js +5 -7
- package/src/components/chip/index.js +1 -1
- package/src/components/chipsInput/index.js +2 -2
- package/src/components/colorPicker/ColorPickerDialog.js +1 -1
- package/src/components/colorPicker/ColorPickerDialogHeader.js +2 -2
- package/src/components/colorPicker/ColorPickerPreview.js +2 -2
- package/src/components/colorPicker/index.js +1 -1
- package/src/components/colorSwatch/index.js +3 -2
- package/src/components/dateTimePicker/index.js +2 -2
- package/src/components/hint/hint.api.json +5 -39
- package/src/components/hint/index.js +3 -2
- package/src/components/icon/index.d.ts +3 -12
- package/src/components/icon/index.js +9 -18
- package/src/components/image/index.d.ts +1 -1
- package/src/components/modal/TopBar.js +1 -1
- package/src/components/modal/api/modalTopBar.api.json +1 -1
- package/src/components/overlay/index.js +6 -4
- package/src/components/panningViews/panDismissibleView.js +1 -1
- package/src/components/panningViews/panGestureView.js +1 -1
- package/src/components/panningViews/panListenerView.js +1 -1
- package/src/components/panningViews/panResponderView.js +1 -1
- package/src/components/panningViews/panningContext.js +0 -1
- package/src/components/picker/PickerItem.js +1 -1
- package/src/components/picker/PickerItemsList.js +1 -1
- package/src/components/picker/api/picker.api.json +5 -387
- package/src/components/picker/helpers/useFieldType.js +2 -2
- package/src/components/scrollBar/index.js +3 -3
- package/src/components/sortableList/SortableList.api.json +7 -7
- package/src/components/stepper/assets/minusSmall.png +0 -0
- package/src/components/stepper/assets/minusSmall@1.5x.png +0 -0
- package/src/components/stepper/assets/minusSmall@2x.png +0 -0
- package/src/components/stepper/assets/minusSmall@3x.png +0 -0
- package/src/components/stepper/assets/minusSmall@4x.png +0 -0
- package/src/components/stepper/assets/plusSmall.png +0 -0
- package/src/components/stepper/assets/plusSmall@1.5x.png +0 -0
- package/src/components/stepper/assets/plusSmall@2x.png +0 -0
- package/src/components/stepper/assets/plusSmall@3x.png +0 -0
- package/src/components/stepper/assets/plusSmall@4x.png +0 -0
- package/src/components/stepper/index.js +8 -3
- package/src/components/tabController/apis/pageCarousel.api.json +5 -8
- package/src/components/textField/ClearButton.js +1 -1
- package/src/components/timeline/timeline.api.json +106 -57
- package/src/components/toast/index.js +1 -1
- package/src/components/wizard/WizardStates.js +4 -3
- package/src/hooks/useScrollTo/index.js +4 -9
- package/src/incubator/dialog/useDialogContent.js +1 -1
- package/src/incubator/expandableOverlay/index.js +0 -1
- package/src/incubator/panView/index.js +1 -1
- package/src/incubator/slider/Thumb.js +1 -8
- package/src/incubator/toast/toast.api.json +7 -57
- package/src/assets/internal/icons/index.js +0 -50
- package/src/assets/internal/icons/index.web.js +0 -50
- package/src/assets/internal/images/index.js +0 -26
- package/src/assets/internal/images/index.web.js +0 -26
- package/src/assets/internal/index.d.ts +0 -4
- package/src/assets/internal/index.js +0 -8
- package/src/components/KeyboardAwareScrollView/KeyboardAwareScrollView.api.json +0 -40
- package/src/components/modal/modal.api.json +0 -54
- /package/src/assets/{internal/icons/checkSmall.png → icons/check-small.png} +0 -0
- /package/src/assets/{internal/icons/checkSmall@1.5x.png → icons/check-small@1.5x.png} +0 -0
- /package/src/assets/{internal/icons/checkSmall@2x.png → icons/check-small@2x.png} +0 -0
- /package/src/assets/{internal/icons/checkSmall@3x.png → icons/check-small@3x.png} +0 -0
- /package/src/assets/{internal/icons/checkSmall@4x.png → icons/check-small@4x.png} +0 -0
- /package/src/assets/{internal/icons → icons}/check.png +0 -0
- /package/src/assets/{internal/icons → icons}/check@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/check@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/check@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/check@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/minusSmall@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/plusSmall@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/search.png +0 -0
- /package/src/assets/{internal/icons → icons}/search@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/search@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/search@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/search@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/x.png +0 -0
- /package/src/assets/{internal/icons → icons}/x@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/x@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xFlat@4x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium@1.5x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium@2x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium@3x.png +0 -0
- /package/src/assets/{internal/icons → icons}/xMedium@4x.png +0 -0
- /package/src/assets/{internal/images → images}/gradient.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/chipsInput/assets}/xSmall@4x.png +0 -0
- /package/src/{assets/internal/images/transparentSwatch.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch.png} +0 -0
- /package/src/{assets/internal/images/transparentSwatch@1.5x.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch@1.5x.png} +0 -0
- /package/src/{assets/internal/images/transparentSwatch@2x.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch@2x.png} +0 -0
- /package/src/{assets/internal/images/transparentSwatch@3x.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch@3x.png} +0 -0
- /package/src/{assets/internal/images/transparentSwatch@4x.png → components/colorSwatch/assets/transparentSwatch/TransparentSwatch@4x.png} +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle@1.5x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle@2x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle@3x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipMiddle@4x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide@1.5x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide@2x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide@3x.png +0 -0
- /package/src/{assets/internal/images → components/hint/assets}/hintTipSide@4x.png +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh.png → components/overlay/assets/GradientOverlayHigh.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh@1.5x.png → components/overlay/assets/GradientOverlayHigh@1.5x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh@2x.png → components/overlay/assets/GradientOverlayHigh@2x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh@3x.png → components/overlay/assets/GradientOverlayHigh@3x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayHigh@4x.png → components/overlay/assets/GradientOverlayHigh@4x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow.png → components/overlay/assets/GradientOverlayLow.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow@1.5x.png → components/overlay/assets/GradientOverlayLow@1.5x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow@2x.png → components/overlay/assets/GradientOverlayLow@2x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow@3x.png → components/overlay/assets/GradientOverlayLow@3x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayLow@4x.png → components/overlay/assets/GradientOverlayLow@4x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium.png → components/overlay/assets/GradientOverlayMedium.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium@1.5x.png → components/overlay/assets/GradientOverlayMedium@1.5x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium@2x.png → components/overlay/assets/GradientOverlayMedium@2x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium@3x.png → components/overlay/assets/GradientOverlayMedium@3x.png} +0 -0
- /package/src/{assets/internal/images/gradientOverlayMedium@4x.png → components/overlay/assets/GradientOverlayMedium@4x.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown.png → components/picker/assets/dropdown.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown@1.5x.png → components/picker/assets/dropdown@1.5x.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown@2x.png → components/picker/assets/dropdown@2x.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown@3x.png → components/picker/assets/dropdown@3x.png} +0 -0
- /package/src/{assets/internal/icons/chevronDown@4x.png → components/picker/assets/dropdown@4x.png} +0 -0
- /package/src/{assets/internal/images → components/scrollBar/assets}/gradientOverlay.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline@2x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline@3x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutline@4x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/minusOutlineSmall@4x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline@2x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline@3x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutline@4x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/stepper/assets}/plusOutlineSmall@4x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/checkMarkSmall@4x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall@1.5x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall@2x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall@3x.png +0 -0
- /package/src/{assets/internal/icons → components/wizard/assets}/exclamationSmall@4x.png +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ui-lib",
|
|
3
|
-
"version": "7.39.
|
|
3
|
+
"version": "7.39.1",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"types": "src/index.d.ts",
|
|
6
6
|
"author": "Ethan Sharabi <ethan.shar@gmail.com>",
|
|
@@ -32,15 +32,13 @@
|
|
|
32
32
|
"pre-push": "npm run build:dev && npm run test",
|
|
33
33
|
"docs:deploy": "./scripts/docs/deployDocs.sh",
|
|
34
34
|
"docs:build": "node scripts/docs/buildDocs.js",
|
|
35
|
-
"docs:start": "(cd docuilib && yarn start)",
|
|
36
35
|
"calendar:createMocks": "node scripts/createCalendarMockData.js",
|
|
37
36
|
"snippets:build": "node scripts/generateSnippets.js",
|
|
38
37
|
"release": "node ./scripts/release/release.js",
|
|
39
38
|
"releaseDemo": "./scripts/release/releaseDemo.sh",
|
|
40
39
|
"releaseDocs": "./scripts/release/releaseDocs.sh",
|
|
41
40
|
"releaseEslint": "./scripts/release/releaseEslint.sh",
|
|
42
|
-
"releaseNative": "./scripts/release/releaseNative.sh"
|
|
43
|
-
"updateWebAssets": "node scripts/assets/extractDimensions.js"
|
|
41
|
+
"releaseNative": "./scripts/release/releaseNative.sh"
|
|
44
42
|
},
|
|
45
43
|
"dependencies": {
|
|
46
44
|
"babel-plugin-transform-inline-environment-variables": "^0.0.2",
|
|
@@ -31,9 +31,6 @@ const VALID_COMPONENTS_CATEGORIES = [
|
|
|
31
31
|
|
|
32
32
|
function buildDocs(apiFolders, componentsPreProcess) {
|
|
33
33
|
let components = readComponentsFromApiFiles(apiFolders);
|
|
34
|
-
|
|
35
|
-
logStatistics(components);
|
|
36
|
-
|
|
37
34
|
components = componentsPreProcess?.(components) ?? components;
|
|
38
35
|
resetDocsDir();
|
|
39
36
|
processComponents(components);
|
|
@@ -88,9 +85,13 @@ function processComponents(components) {
|
|
|
88
85
|
content += `sidebar_label: ${componentName}\n`;
|
|
89
86
|
content += '---\n\n';
|
|
90
87
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
if (component.docs) {
|
|
89
|
+
content += `import ComponentPage from '@site/src/components/ComponentPage';\n\n`;
|
|
90
|
+
const componentObject = JSON.stringify(component);
|
|
91
|
+
content += `<ComponentPage component={${componentObject}}/>\n`;
|
|
92
|
+
} else {
|
|
93
|
+
content += `${buildOldDocs(component)}\n`;
|
|
94
|
+
}
|
|
94
95
|
|
|
95
96
|
let dirPath;
|
|
96
97
|
switch (component.category) {
|
|
@@ -133,20 +134,86 @@ function generateExtendsLink(extendsLink) {
|
|
|
133
134
|
return extendsText;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
function
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
function buildOldDocs(component) {
|
|
138
|
+
let content = '';
|
|
139
|
+
content += `import UILivePreview from '@site/src/components/UILivePreview';\n\n`;
|
|
140
|
+
|
|
141
|
+
/* General Info */
|
|
142
|
+
content += `${component.description} \n`;
|
|
143
|
+
if (typeof component.example === 'string') {
|
|
144
|
+
content += `[(code example)](${component.example})\n`;
|
|
145
|
+
} else if (Array.isArray(component.example)) {
|
|
146
|
+
content += '(code examples: ';
|
|
147
|
+
component.example.forEach((example, index) => {
|
|
148
|
+
const slashIndex = example.lastIndexOf('/');
|
|
149
|
+
const dotIndex = example.lastIndexOf('.');
|
|
150
|
+
content += `${index > 0 ? ', ' : ''}[${example.slice(slashIndex + 1, dotIndex)}](${example})`;
|
|
151
|
+
});
|
|
152
|
+
content += ')\n';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (component.extends) {
|
|
156
|
+
let extendsText = component.extends?.join(', ');
|
|
157
|
+
if (component.extendsLink) {
|
|
158
|
+
extendsText = `[${extendsText}](${component.extendsLink})`;
|
|
159
|
+
} else {
|
|
160
|
+
extendsText = _.map(component.extends, generateExtendsLink).join(', ');
|
|
161
|
+
}
|
|
162
|
+
content += ':::info\n';
|
|
163
|
+
content += `This component extends **${extendsText}** props.\n`;
|
|
164
|
+
content += ':::\n';
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
if (component.modifiers) {
|
|
168
|
+
content += ':::tip\n';
|
|
169
|
+
content += `This component support **${component.modifiers?.join(', ')}** modifiers.\n`;
|
|
170
|
+
content += ':::\n';
|
|
171
|
+
}
|
|
141
172
|
|
|
142
|
-
if (
|
|
143
|
-
|
|
173
|
+
if (component.caution) {
|
|
174
|
+
content += ':::caution\n';
|
|
175
|
+
content += `${component.caution}\n`;
|
|
176
|
+
content += ':::\n';
|
|
144
177
|
}
|
|
145
178
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
179
|
+
if (component.note) {
|
|
180
|
+
content += ':::note\n';
|
|
181
|
+
content += `${component.note}\n`;
|
|
182
|
+
content += ':::\n';
|
|
149
183
|
}
|
|
184
|
+
|
|
185
|
+
/* Images */
|
|
186
|
+
content += `<div style={{display: 'flex', flexDirection: 'row', overflowX: 'auto', maxHeight: '500px', alignItems: 'center'}}>`;
|
|
187
|
+
component.images?.forEach(image => {
|
|
188
|
+
content += `<img style={{maxHeight: '420px'}} src={'${image}'}/>`;
|
|
189
|
+
content += '\n\n';
|
|
190
|
+
});
|
|
191
|
+
content += '</div>\n\n';
|
|
192
|
+
|
|
193
|
+
/* Snippet */
|
|
194
|
+
if (component.snippet) {
|
|
195
|
+
content += `### Usage\n`;
|
|
196
|
+
content += `<UILivePreview componentName={"${component.name}"} code={\`${component.snippet
|
|
197
|
+
?.map(item => _.replace(item, new RegExp(/\$[1-9]/, 'g'), ''))
|
|
198
|
+
.join('\n')
|
|
199
|
+
.toString()}\`}/>\n\n`;
|
|
200
|
+
} else {
|
|
201
|
+
console.warn(`${component.name} does not have a snippet`);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* Props */
|
|
205
|
+
content += '## API\n';
|
|
206
|
+
_.sortBy(component.props, p => p.name)?.forEach(prop => {
|
|
207
|
+
content += `### ${prop.name}\n`;
|
|
208
|
+
if (prop.note) {
|
|
209
|
+
content += `#### ${prop.note}\n`;
|
|
210
|
+
}
|
|
211
|
+
content += `${prop.description}\n`;
|
|
212
|
+
// content += `<span style={{color: 'grey'}}>${_.escape(prop.type)}</span>\n\n`;
|
|
213
|
+
content += `\`${prop.type} \` \n\n`;
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
return content;
|
|
150
217
|
}
|
|
151
218
|
|
|
152
219
|
module.exports = {buildDocs};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const icons = {
|
|
2
|
+
get check() {
|
|
3
|
+
return require('./check.png');
|
|
4
|
+
},
|
|
5
|
+
get checkSmall() {
|
|
6
|
+
return require('./check-small.png');
|
|
7
|
+
},
|
|
8
|
+
get minusSmall() {
|
|
9
|
+
return require('./minusSmall.png');
|
|
10
|
+
},
|
|
11
|
+
get plusSmall() {
|
|
12
|
+
return require('./plusSmall.png');
|
|
13
|
+
},
|
|
14
|
+
get search() {
|
|
15
|
+
return require('./search.png');
|
|
16
|
+
},
|
|
17
|
+
get x() {
|
|
18
|
+
return require('./x.png');
|
|
19
|
+
},
|
|
20
|
+
get xMedium() {
|
|
21
|
+
return require('./xMedium.png');
|
|
22
|
+
},
|
|
23
|
+
get xFlat() {
|
|
24
|
+
return require('./xFlat.png');
|
|
25
|
+
}
|
|
26
|
+
};
|
package/src/assets/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Assets } from "./Assets";
|
|
2
2
|
export default new Assets().loadAssetsGroup('', {
|
|
3
|
+
get icons() {
|
|
4
|
+
return require("./icons").icons;
|
|
5
|
+
},
|
|
3
6
|
get emojis() {
|
|
4
7
|
return require("./emojis").emojis;
|
|
5
8
|
},
|
|
6
|
-
get
|
|
7
|
-
return require("./
|
|
9
|
+
get images() {
|
|
10
|
+
return require("./images").images;
|
|
8
11
|
}
|
|
9
12
|
});
|
package/src/commons/Constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Platform, Dimensions, NativeModules, I18nManager, AccessibilityInfo, StatusBar
|
|
1
|
+
import { Platform, Dimensions, NativeModules, I18nManager, AccessibilityInfo, StatusBar } from 'react-native';
|
|
2
2
|
export let orientations = /*#__PURE__*/function (orientations) {
|
|
3
3
|
orientations["PORTRAIT"] = "portrait";
|
|
4
4
|
orientations["LANDSCAPE"] = "landscape";
|
|
@@ -166,9 +166,7 @@ const constants = {
|
|
|
166
166
|
},
|
|
167
167
|
/* Keyboard */
|
|
168
168
|
backspaceKey: 'Backspace',
|
|
169
|
-
enterKey: 'Enter'
|
|
170
|
-
/* Font scale */
|
|
171
|
-
getFontScale: PixelRatio.getFontScale
|
|
169
|
+
enterKey: 'Enter'
|
|
172
170
|
};
|
|
173
171
|
setStatusBarHeight();
|
|
174
172
|
Dimensions.addEventListener('change', updateConstants);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle, ImagePropsBase, ImageStyle, TextStyle,
|
|
2
|
+
import { StyleProp, ViewStyle, ImagePropsBase, ImageStyle, TextStyle, AccessibilityProps } from 'react-native';
|
|
3
3
|
import { BadgeProps } from '../badge';
|
|
4
4
|
import { ImageProps } from '../image';
|
|
5
5
|
import { AnimatedImageProps } from '../animatedImage';
|
|
@@ -95,7 +95,6 @@ export type AvatarProps = Pick<AccessibilityProps, 'accessibilityLabel'> & Props
|
|
|
95
95
|
* The label color
|
|
96
96
|
*/
|
|
97
97
|
labelColor?: string;
|
|
98
|
-
labelEllipsizeMode?: TextProps['ellipsizeMode'];
|
|
99
98
|
/**
|
|
100
99
|
* ribbon label to display on the avatar
|
|
101
100
|
*/
|
|
@@ -163,14 +162,21 @@ declare const Avatar: React.ForwardRefExoticComponent<Pick<AccessibilityProps, "
|
|
|
163
162
|
* Image props object
|
|
164
163
|
*/
|
|
165
164
|
imageProps?: Partial<Omit<import("react-native").ImageProps, "source"> & Pick<import("react-native").ImageBackgroundProps, "imageStyle"> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & import("../..").RecorderProps & {
|
|
165
|
+
/**
|
|
166
|
+
* Avatar colors to be used when useAutoColors is true
|
|
167
|
+
*/
|
|
166
168
|
sourceTransformer?: ((props: any) => import("../image").ImageSourceType) | undefined;
|
|
167
169
|
assetName?: string | undefined;
|
|
168
170
|
assetGroup?: string | undefined;
|
|
169
171
|
tintColor?: string | undefined;
|
|
170
|
-
supportRTL?: boolean | undefined;
|
|
172
|
+
supportRTL?: boolean | undefined; /**
|
|
173
|
+
* Background color for Avatar
|
|
174
|
+
*/
|
|
171
175
|
cover?: boolean | undefined;
|
|
172
176
|
aspectRatio?: number | undefined;
|
|
173
|
-
overlayType?: string | undefined;
|
|
177
|
+
overlayType?: string | undefined; /**
|
|
178
|
+
* Image props object
|
|
179
|
+
*/
|
|
174
180
|
overlayIntensity?: import("../overlay").OverlayIntensityType | undefined;
|
|
175
181
|
overlayColor?: string | undefined;
|
|
176
182
|
customOverlayContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[] | undefined;
|
|
@@ -224,7 +230,6 @@ declare const Avatar: React.ForwardRefExoticComponent<Pick<AccessibilityProps, "
|
|
|
224
230
|
* The label color
|
|
225
231
|
*/
|
|
226
232
|
labelColor?: string | undefined;
|
|
227
|
-
labelEllipsizeMode?: TextProps['ellipsizeMode'];
|
|
228
233
|
/**
|
|
229
234
|
* ribbon label to display on the avatar
|
|
230
235
|
*/
|
|
@@ -286,14 +291,21 @@ declare const _default: React.ForwardRefExoticComponent<Pick<AccessibilityProps,
|
|
|
286
291
|
* Image props object
|
|
287
292
|
*/
|
|
288
293
|
imageProps?: Partial<Omit<import("react-native").ImageProps, "source"> & Pick<import("react-native").ImageBackgroundProps, "imageStyle"> & Partial<Record<"margin" | "marginL" | "marginT" | "marginR" | "marginB" | "marginH" | "marginV", boolean>> & import("../..").RecorderProps & {
|
|
294
|
+
/**
|
|
295
|
+
* Avatar colors to be used when useAutoColors is true
|
|
296
|
+
*/
|
|
289
297
|
sourceTransformer?: ((props: any) => import("../image").ImageSourceType) | undefined;
|
|
290
298
|
assetName?: string | undefined;
|
|
291
299
|
assetGroup?: string | undefined;
|
|
292
300
|
tintColor?: string | undefined;
|
|
293
|
-
supportRTL?: boolean | undefined;
|
|
301
|
+
supportRTL?: boolean | undefined; /**
|
|
302
|
+
* Background color for Avatar
|
|
303
|
+
*/
|
|
294
304
|
cover?: boolean | undefined;
|
|
295
305
|
aspectRatio?: number | undefined;
|
|
296
|
-
overlayType?: string | undefined;
|
|
306
|
+
overlayType?: string | undefined; /**
|
|
307
|
+
* Image props object
|
|
308
|
+
*/
|
|
297
309
|
overlayIntensity?: import("../overlay").OverlayIntensityType | undefined;
|
|
298
310
|
overlayColor?: string | undefined;
|
|
299
311
|
customOverlayContent?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[] | undefined;
|
|
@@ -347,7 +359,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<AccessibilityProps,
|
|
|
347
359
|
* The label color
|
|
348
360
|
*/
|
|
349
361
|
labelColor?: string | undefined;
|
|
350
|
-
labelEllipsizeMode?: "middle" | "head" | "tail" | "clip" | undefined;
|
|
351
362
|
/**
|
|
352
363
|
* ribbon label to display on the avatar
|
|
353
364
|
*/
|
|
@@ -56,7 +56,6 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
56
56
|
useAutoColors,
|
|
57
57
|
autoColorsConfig,
|
|
58
58
|
containerStyle,
|
|
59
|
-
labelEllipsizeMode = 'clip',
|
|
60
59
|
onPress,
|
|
61
60
|
children
|
|
62
61
|
} = themeProps;
|
|
@@ -179,7 +178,7 @@ const Avatar = forwardRef((props, ref) => {
|
|
|
179
178
|
const Container = onPress ? TouchableOpacity : View;
|
|
180
179
|
return <Container style={_containerStyle} ref={ref} testID={testID} onPress={onPress} accessible={!_isUndefined(onPress)} accessibilityLabel={'Avatar'} accessibilityRole={onPress ? 'button' : 'image'} hitSlop={onPress ? hitTargetPadding : undefined} {...accessibilityProps}>
|
|
181
180
|
<View testID={`${testID}.container`} style={textContainerStyle}>
|
|
182
|
-
{!_isUndefined(text) && <Text numberOfLines={1}
|
|
181
|
+
{!_isUndefined(text) && <Text numberOfLines={1} style={textStyle} testID={`${testID}.label`}>
|
|
183
182
|
{text}
|
|
184
183
|
</Text>}
|
|
185
184
|
</View>
|
|
@@ -195,8 +194,7 @@ const styles = StyleSheet.create({
|
|
|
195
194
|
...StyleSheet.absoluteFillObject,
|
|
196
195
|
alignItems: 'center',
|
|
197
196
|
justifyContent: 'center',
|
|
198
|
-
borderRadius: BorderRadiuses.br100
|
|
199
|
-
overflow: 'hidden'
|
|
197
|
+
borderRadius: BorderRadiuses.br100
|
|
200
198
|
},
|
|
201
199
|
initialsContainerWithInset: {
|
|
202
200
|
top: 1,
|
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
"name": "Button",
|
|
3
3
|
"category": "controls",
|
|
4
4
|
"description": "Customizable button component that handles press events",
|
|
5
|
-
"extends": [
|
|
6
|
-
|
|
5
|
+
"extends": [
|
|
6
|
+
"basic/TouchableOpacity"
|
|
7
|
+
],
|
|
8
|
+
"modifiers": [
|
|
9
|
+
"margin",
|
|
10
|
+
"background"
|
|
11
|
+
],
|
|
7
12
|
"example": "https://github.com/wix/react-native-ui-lib/blob/master/demo/src/screens/componentScreens/ButtonsScreen.tsx",
|
|
8
13
|
"images": [
|
|
9
14
|
"https://github.com/wix/react-native-ui-lib/blob/master/demo/showcase/Button/Button%20Sizes.png?raw=true",
|
|
@@ -164,11 +169,7 @@
|
|
|
164
169
|
}
|
|
165
170
|
],
|
|
166
171
|
"snippet": [
|
|
167
|
-
"<
|
|
168
|
-
"<Button label={'Press'} backgroundColor={Colors.red30}/>",
|
|
169
|
-
"<Button label={'Press'} outline size={Button.sizes.medium}/>",
|
|
170
|
-
"<Button label={'Press'} iconSource={Assets.icons.demo.star}/>",
|
|
171
|
-
"</View>"
|
|
172
|
+
"<Button label={'Press'$1} size={Button.sizes.medium$2} backgroundColor={Colors.red30$3}/>"
|
|
172
173
|
],
|
|
173
174
|
"docs": {
|
|
174
175
|
"hero": {
|
|
@@ -188,7 +189,10 @@
|
|
|
188
189
|
"sections": [
|
|
189
190
|
{
|
|
190
191
|
"type": "table",
|
|
191
|
-
"columns": [
|
|
192
|
+
"columns": [
|
|
193
|
+
"Type",
|
|
194
|
+
"Component"
|
|
195
|
+
],
|
|
192
196
|
"items": [
|
|
193
197
|
{
|
|
194
198
|
"title": "Main Button",
|
|
@@ -255,7 +259,10 @@
|
|
|
255
259
|
},
|
|
256
260
|
{
|
|
257
261
|
"type": "table",
|
|
258
|
-
"columns": [
|
|
262
|
+
"columns": [
|
|
263
|
+
"Property",
|
|
264
|
+
"Component"
|
|
265
|
+
],
|
|
259
266
|
"items": [
|
|
260
267
|
{
|
|
261
268
|
"title": "Primary",
|
|
@@ -282,7 +289,11 @@
|
|
|
282
289
|
},
|
|
283
290
|
{
|
|
284
291
|
"type": "table",
|
|
285
|
-
"columns": [
|
|
292
|
+
"columns": [
|
|
293
|
+
"Property",
|
|
294
|
+
"Primary",
|
|
295
|
+
"Secondary"
|
|
296
|
+
],
|
|
286
297
|
"items": [
|
|
287
298
|
{
|
|
288
299
|
"title": "Main",
|
|
@@ -344,7 +355,11 @@
|
|
|
344
355
|
},
|
|
345
356
|
{
|
|
346
357
|
"type": "table",
|
|
347
|
-
"columns": [
|
|
358
|
+
"columns": [
|
|
359
|
+
"Property",
|
|
360
|
+
"Primary",
|
|
361
|
+
"Secondary"
|
|
362
|
+
],
|
|
348
363
|
"items": [
|
|
349
364
|
{
|
|
350
365
|
"title": "Active",
|
|
@@ -389,7 +404,11 @@
|
|
|
389
404
|
},
|
|
390
405
|
{
|
|
391
406
|
"type": "table",
|
|
392
|
-
"columns": [
|
|
407
|
+
"columns": [
|
|
408
|
+
"Property",
|
|
409
|
+
"Primary",
|
|
410
|
+
"Secondary"
|
|
411
|
+
],
|
|
393
412
|
"items": [
|
|
394
413
|
{
|
|
395
414
|
"title": "Active",
|
|
@@ -434,7 +453,11 @@
|
|
|
434
453
|
},
|
|
435
454
|
{
|
|
436
455
|
"type": "table",
|
|
437
|
-
"columns": [
|
|
456
|
+
"columns": [
|
|
457
|
+
"Property",
|
|
458
|
+
"Primary",
|
|
459
|
+
"Secondary"
|
|
460
|
+
],
|
|
438
461
|
"items": [
|
|
439
462
|
{
|
|
440
463
|
"title": "Active",
|
|
@@ -479,7 +502,10 @@
|
|
|
479
502
|
},
|
|
480
503
|
{
|
|
481
504
|
"type": "table",
|
|
482
|
-
"columns": [
|
|
505
|
+
"columns": [
|
|
506
|
+
"Property",
|
|
507
|
+
"Component"
|
|
508
|
+
],
|
|
483
509
|
"items": [
|
|
484
510
|
{
|
|
485
511
|
"title": "Large",
|
|
@@ -514,7 +540,10 @@
|
|
|
514
540
|
},
|
|
515
541
|
{
|
|
516
542
|
"type": "table",
|
|
517
|
-
"columns": [
|
|
543
|
+
"columns": [
|
|
544
|
+
"Property",
|
|
545
|
+
"Component"
|
|
546
|
+
],
|
|
518
547
|
"items": [
|
|
519
548
|
{
|
|
520
549
|
"title": "Icon prefix",
|
|
@@ -545,7 +574,10 @@
|
|
|
545
574
|
},
|
|
546
575
|
{
|
|
547
576
|
"type": "table",
|
|
548
|
-
"columns": [
|
|
577
|
+
"columns": [
|
|
578
|
+
"Property",
|
|
579
|
+
"Component"
|
|
580
|
+
],
|
|
549
581
|
"items": [
|
|
550
582
|
{
|
|
551
583
|
"title": "Primary",
|
|
@@ -571,7 +603,11 @@
|
|
|
571
603
|
},
|
|
572
604
|
{
|
|
573
605
|
"type": "table",
|
|
574
|
-
"columns": [
|
|
606
|
+
"columns": [
|
|
607
|
+
"Property",
|
|
608
|
+
"Primary",
|
|
609
|
+
"Secondary"
|
|
610
|
+
],
|
|
575
611
|
"items": [
|
|
576
612
|
{
|
|
577
613
|
"title": "Main",
|
|
@@ -607,7 +643,11 @@
|
|
|
607
643
|
},
|
|
608
644
|
{
|
|
609
645
|
"type": "table",
|
|
610
|
-
"columns": [
|
|
646
|
+
"columns": [
|
|
647
|
+
"Property",
|
|
648
|
+
"Primary",
|
|
649
|
+
"Secondary"
|
|
650
|
+
],
|
|
611
651
|
"items": [
|
|
612
652
|
{
|
|
613
653
|
"title": "Active",
|
|
@@ -640,7 +680,11 @@
|
|
|
640
680
|
},
|
|
641
681
|
{
|
|
642
682
|
"type": "table",
|
|
643
|
-
"columns": [
|
|
683
|
+
"columns": [
|
|
684
|
+
"Property",
|
|
685
|
+
"Primary",
|
|
686
|
+
"Secondary"
|
|
687
|
+
],
|
|
644
688
|
"items": [
|
|
645
689
|
{
|
|
646
690
|
"title": "Active",
|
|
@@ -688,7 +732,10 @@
|
|
|
688
732
|
},
|
|
689
733
|
{
|
|
690
734
|
"type": "table",
|
|
691
|
-
"columns": [
|
|
735
|
+
"columns": [
|
|
736
|
+
"Property",
|
|
737
|
+
"Component"
|
|
738
|
+
],
|
|
692
739
|
"items": [
|
|
693
740
|
{
|
|
694
741
|
"title": "Main",
|
|
@@ -722,7 +769,10 @@
|
|
|
722
769
|
},
|
|
723
770
|
{
|
|
724
771
|
"type": "table",
|
|
725
|
-
"columns": [
|
|
772
|
+
"columns": [
|
|
773
|
+
"Property",
|
|
774
|
+
"Component"
|
|
775
|
+
],
|
|
726
776
|
"items": [
|
|
727
777
|
{
|
|
728
778
|
"title": "Regular",
|
|
@@ -747,7 +797,11 @@
|
|
|
747
797
|
},
|
|
748
798
|
{
|
|
749
799
|
"type": "table",
|
|
750
|
-
"columns": [
|
|
800
|
+
"columns": [
|
|
801
|
+
"Property",
|
|
802
|
+
"Regular",
|
|
803
|
+
"Small (bodyBoldSmall)"
|
|
804
|
+
],
|
|
751
805
|
"items": [
|
|
752
806
|
{
|
|
753
807
|
"title": "Icon prefix",
|
|
@@ -784,7 +838,10 @@
|
|
|
784
838
|
},
|
|
785
839
|
{
|
|
786
840
|
"type": "table",
|
|
787
|
-
"columns": [
|
|
841
|
+
"columns": [
|
|
842
|
+
"Property",
|
|
843
|
+
"Component"
|
|
844
|
+
],
|
|
788
845
|
"items": [
|
|
789
846
|
{
|
|
790
847
|
"title": "Main",
|
|
@@ -819,7 +876,10 @@
|
|
|
819
876
|
},
|
|
820
877
|
{
|
|
821
878
|
"type": "table",
|
|
822
|
-
"columns": [
|
|
879
|
+
"columns": [
|
|
880
|
+
"Property",
|
|
881
|
+
"Component"
|
|
882
|
+
],
|
|
823
883
|
"items": [
|
|
824
884
|
{
|
|
825
885
|
"title": "Active",
|
|
@@ -854,7 +914,7 @@
|
|
|
854
914
|
]
|
|
855
915
|
},
|
|
856
916
|
{
|
|
857
|
-
"title": "UX
|
|
917
|
+
"title": "UX",
|
|
858
918
|
"sections": [
|
|
859
919
|
{
|
|
860
920
|
"type": "list",
|
|
@@ -22,7 +22,7 @@ const DEFAULT_SELECTION_PROPS = {
|
|
|
22
22
|
borderWidth: 2,
|
|
23
23
|
color: Colors.$backgroundPrimaryHeavy,
|
|
24
24
|
indicatorSize: 20,
|
|
25
|
-
icon: Assets.
|
|
25
|
+
icon: Assets.icons.checkSmall,
|
|
26
26
|
iconColor: Colors.$iconDefaultLight,
|
|
27
27
|
hideIndicator: false
|
|
28
28
|
};
|
|
@@ -103,10 +103,7 @@ declare class Checkbox extends Component<CheckboxProps, CheckboxState> {
|
|
|
103
103
|
accessible: boolean;
|
|
104
104
|
accessibilityLabel: string;
|
|
105
105
|
accessibilityRole: string;
|
|
106
|
-
|
|
107
|
-
disabled: boolean | undefined;
|
|
108
|
-
checked: boolean | undefined;
|
|
109
|
-
};
|
|
106
|
+
accessibilityStates: string[] | undefined;
|
|
110
107
|
};
|
|
111
108
|
animateCheckbox(value: CheckboxProps['value']): void;
|
|
112
109
|
setValidation(newValue: boolean): void;
|
|
@@ -60,18 +60,16 @@ class Checkbox extends Component {
|
|
|
60
60
|
}
|
|
61
61
|
getAccessibilityProps() {
|
|
62
62
|
const {
|
|
63
|
-
accessibilityLabel
|
|
63
|
+
accessibilityLabel,
|
|
64
64
|
disabled,
|
|
65
65
|
value
|
|
66
66
|
} = this.props;
|
|
67
|
+
const checkedState = value ? 'checked' : 'unchecked';
|
|
67
68
|
return {
|
|
68
69
|
accessible: true,
|
|
69
|
-
accessibilityLabel
|
|
70
|
+
accessibilityLabel: accessibilityLabel ? `${accessibilityLabel} ${checkedState}` : `${checkedState}`,
|
|
70
71
|
accessibilityRole: 'checkbox',
|
|
71
|
-
|
|
72
|
-
disabled,
|
|
73
|
-
checked: value
|
|
74
|
-
}
|
|
72
|
+
accessibilityStates: disabled ? ['disabled'] : undefined
|
|
75
73
|
};
|
|
76
74
|
}
|
|
77
75
|
animateCheckbox(value) {
|
|
@@ -169,7 +167,7 @@ class Checkbox extends Component {
|
|
|
169
167
|
}]}>
|
|
170
168
|
<AnimatedIcon style={[this.styles.selectedIcon, {
|
|
171
169
|
transform: this.animationStyle.transform
|
|
172
|
-
}]} source={indeterminate ? Assets.
|
|
170
|
+
}]} source={indeterminate ? Assets.icons.minusSmall : selectedIcon || Assets.icons.checkSmall} testID={`${testID}.selected`} tintColor={this.getTintColor()} />
|
|
173
171
|
</Animated.View>}
|
|
174
172
|
</TouchableOpacity>
|
|
175
173
|
);
|
|
@@ -5,8 +5,8 @@ import { StyleSheet } from 'react-native';
|
|
|
5
5
|
import { Constants } from "../../commons/new";
|
|
6
6
|
import { useCombinedRefs, useDidUpdate } from "../../hooks";
|
|
7
7
|
import TextField from "../textField";
|
|
8
|
-
import Assets from "../../assets";
|
|
9
8
|
import Chip from "../chip";
|
|
9
|
+
const removeIcon = require("./assets/xSmall.png");
|
|
10
10
|
export let ChipsInputChangeReason = /*#__PURE__*/function (ChipsInputChangeReason) {
|
|
11
11
|
ChipsInputChangeReason["Added"] = "added";
|
|
12
12
|
ChipsInputChangeReason["Removed"] = "removed";
|
|
@@ -85,7 +85,7 @@ const ChipsInput = forwardRef((props, refToForward) => {
|
|
|
85
85
|
return <Chip key={index} customValue={index}
|
|
86
86
|
// resetSpacings
|
|
87
87
|
// paddingH-s2
|
|
88
|
-
marginR-s2 marginB-s2 dismissIcon={
|
|
88
|
+
marginR-s2 marginB-s2 dismissIcon={removeIcon} recorderTag={'mask'} {...defaultChipProps} {...chip.invalid ? invalidChipProps : undefined} {...chip} onPress={onChipPress} onDismiss={isMarkedForRemoval ? removeMarkedChip : undefined} />;
|
|
89
89
|
};
|
|
90
90
|
const chipList = useMemo(() => {
|
|
91
91
|
return <>
|
|
@@ -116,7 +116,7 @@ const ColorPickerDialog = props => {
|
|
|
116
116
|
<ColorPickerDialogSliders keyboardHeight={keyboardHeight} color={color} onSliderValueChange={updateColor} migrate={migrate} />
|
|
117
117
|
</Dialog>;
|
|
118
118
|
};
|
|
119
|
-
ColorPickerDialog.displayName = '
|
|
119
|
+
ColorPickerDialog.displayName = 'ColorPicker';
|
|
120
120
|
export default asBaseComponent(ColorPickerDialog);
|
|
121
121
|
const styles = StyleSheet.create({
|
|
122
122
|
dialog: {
|