react-native-ui-lib 7.39.1-snapshot.6749 → 7.39.1-snapshot.6756

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ui-lib",
3
- "version": "7.39.1-snapshot.6749",
3
+ "version": "7.39.1-snapshot.6756",
4
4
  "main": "src/index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "author": "Ethan Sharabi <ethan.shar@gmail.com>",
@@ -135,7 +135,7 @@
135
135
  {
136
136
  "name": "enableShadow",
137
137
  "type": "boolean",
138
- "description": "Control shadow visibility (iOS-only)"
138
+ "description": "Control shadow visibility"
139
139
  },
140
140
  {
141
141
  "name": "avoidInnerPadding",
@@ -164,16 +164,21 @@
164
164
  }
165
165
  ],
166
166
  "snippet": [
167
+ "<View flex>",
167
168
  "<View flex center gap-s5>",
168
169
  "<Button label={'Press'} backgroundColor={Colors.red30}/>",
169
170
  "<Button label={'Press'} outline size={Button.sizes.medium}/>",
170
171
  "<Button label={'Press'} iconSource={Assets.icons.demo.star}/>",
172
+ "</View>",
173
+ "<View flex bottom>",
174
+ "<Button fullWidth label='Full Width Button'/>",
175
+ "</View>",
171
176
  "</View>"
172
177
  ],
173
178
  "docs": {
174
179
  "hero": {
175
180
  "title": "Button",
176
- "description": "A button triggers an event or action.\n\nPrimary buttons that indicate a call to action, are the most prominent.Secondary buttons, which indicate less commonly used actions, should be less prominent than primary buttons, second in hierarchy.\n\nButtons are placed where a user should expect them, i.e. in close proximity to the other elements that the action affects.",
181
+ "description": "A button triggers an event or action.\n\nPrimary buttons that indicate a call to action, are the most prominent. Secondary buttons, which indicate less commonly used actions, should be less prominent than primary buttons, second in hierarchy.\n\nButtons are placed where a user should expect them, i.e. in close proximity to the other elements that the action affects.",
177
182
  "type": "hero",
178
183
  "layout": "horizontal",
179
184
  "content": [
@@ -217,15 +222,6 @@
217
222
  }
218
223
  ]
219
224
  },
220
- {
221
- "title": "Floating Button",
222
- "description": "The Floating Button is displayed at the bottom of the screen.",
223
- "content": [
224
- {
225
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_types_floatingButton.png"
226
- }
227
- ]
228
- },
229
225
  {
230
226
  "title": "Full-Width Button",
231
227
  "description": "Full Width buttons are sticky on the bottom of the screens.",
@@ -234,15 +230,6 @@
234
230
  "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_types_fullButton.png"
235
231
  }
236
232
  ]
237
- },
238
- {
239
- "title": "Toggle Button",
240
- "description": "Toggle Button are mainly used to toggle between a state, f.e- favorite, like.",
241
- "content": [
242
- {
243
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_types_toggleButtons.png"
244
- }
245
- ]
246
233
  }
247
234
  ],
248
235
  "title": "Button Types",
@@ -309,7 +296,7 @@
309
296
  ]
310
297
  },
311
298
  {
312
- "title": "Distructive",
299
+ "title": "Destructive",
313
300
  "description": "Used for destructive actions such as Delete and Log out. ",
314
301
  "content": [
315
302
  {
@@ -319,18 +306,6 @@
319
306
  "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_distructiveSecondary.png"
320
307
  }
321
308
  ]
322
- },
323
- {
324
- "title": "Premium",
325
- "description": "Used as a premium upgrade entry point.",
326
- "content": [
327
- {
328
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_premiumPrimary.png"
329
- },
330
- {
331
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_presets_premiumSecondary.png"
332
- }
333
- ]
334
309
  }
335
310
  ],
336
311
  "title": "",
@@ -432,51 +407,6 @@
432
407
  "description": "",
433
408
  "name": "Inverted"
434
409
  },
435
- {
436
- "type": "table",
437
- "columns": ["Property", "Primary", "Secondary"],
438
- "items": [
439
- {
440
- "title": "Active",
441
- "description": "",
442
- "content": [
443
- {
444
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_premiumActivePrimary.png"
445
- },
446
- {
447
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_premiumActiveSecondary.png"
448
- }
449
- ]
450
- },
451
- {
452
- "title": "Loading",
453
- "description": "",
454
- "content": [
455
- {
456
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_premiumLoadingPrimary.png"
457
- },
458
- {
459
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_premiumLoadingSecondary.png"
460
- }
461
- ]
462
- },
463
- {
464
- "title": "Disabled",
465
- "content": [
466
- {
467
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_premiumDisabledPrimary.png"
468
- },
469
- {
470
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_states_premiumDisabledSecondary.png"
471
- }
472
- ],
473
- "description": ""
474
- }
475
- ],
476
- "title": "",
477
- "description": "",
478
- "name": "Premium"
479
- },
480
410
  {
481
411
  "type": "table",
482
412
  "columns": ["Property", "Component"],
@@ -638,39 +568,6 @@
638
568
  "description": "",
639
569
  "name": "Main"
640
570
  },
641
- {
642
- "type": "table",
643
- "columns": ["Property", "Primary", "Secondary"],
644
- "items": [
645
- {
646
- "title": "Active",
647
- "description": "",
648
- "content": [
649
- {
650
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_presets_invertedPrimary.png"
651
- },
652
- {
653
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_states_invertedActiveSecondary.png"
654
- }
655
- ]
656
- },
657
- {
658
- "title": "Disabled",
659
- "description": "",
660
- "content": [
661
- {
662
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_states_invertedDisabledPrimary.png"
663
- },
664
- {
665
- "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_overview_iconButton_states_invertedDisabledSecondary.png"
666
- }
667
- ]
668
- }
669
- ],
670
- "title": "",
671
- "description": "",
672
- "name": "Inverted"
673
- },
674
571
  {
675
572
  "type": "section",
676
573
  "title": "Usage Examples",
@@ -700,7 +597,7 @@
700
597
  ]
701
598
  },
702
599
  {
703
- "title": "Distructive",
600
+ "title": "Destructive",
704
601
  "description": "text style: bodyBold, $textDangerLight",
705
602
  "content": [
706
603
  {
@@ -780,7 +677,7 @@
780
677
  {
781
678
  "type": "section",
782
679
  "title": "Full-Width Button",
783
- "description": "Full-Width buttons are sticky on the bottom of the screens.They are usually used for primary actions on management screens, e.g. adding a new item to a list.\nThey are great to use on screens with potentially long lists, since they stick to the bottom and are always visible."
680
+ "description": "Full-Width buttons are sticky on the bottom of the screens.They are usually used for primary actions on management screens, e.g. adding a new item to a list.\nThey are great to use on screens with potentially long lists, since they stick to the bottom and are always visible."
784
681
  },
785
682
  {
786
683
  "type": "table",
@@ -796,7 +693,7 @@
796
693
  ]
797
694
  },
798
695
  {
799
- "title": "Distructive ",
696
+ "title": "Destructive ",
800
697
  "description": "",
801
698
  "content": [
802
699
  {
@@ -879,7 +776,7 @@
879
776
  },
880
777
  {
881
778
  "title": "Action text truncation/ellipsis",
882
- "description": "Action text truncation or ellipsis should be avoided at all costs.\nActions should be clear and down to the point.In case the action is complex, consider displaying an explanatory text outside the actual button component. ",
779
+ "description": "Action text truncation or ellipsis should be avoided at all costs.\nActions should be clear and down to the point. In case the action is complex, consider displaying an explanatory text outside the actual button component. ",
883
780
  "content": [
884
781
  {
885
782
  "value": "https://wixmp-1d257fba8470f1b562a0f5f2.wixmp.com/mads-docs-assets/assets/Components Docs/Button/button_UX_dosDonts_truncation.png"
@@ -113,7 +113,7 @@ export type ButtonProps = TouchableOpacityProps & TypographyModifiers & ColorsMo
113
113
  */
114
114
  round?: boolean;
115
115
  /**
116
- * Control shadow visibility (iOS-only)
116
+ * Control shadow visibility
117
117
  */
118
118
  enableShadow?: boolean;
119
119
  /**
@@ -107,14 +107,31 @@
107
107
  {"name": "customLoaderElement", "type": "ReactNode", "description": "Custom loader element"}
108
108
  ],
109
109
  "snippet": [
110
- "<Picker",
111
- " value={2$1}",
112
- " placeholder={'Placeholder'$2}",
113
- " onChange={() => console.log('changed')$3}",
114
- " trailingAccessory={<Icon source={Assets.icons.demo.chevronDown}/>}",
115
- " items={[{label: 'Item 1', value: 1}, {label: 'Item 2', value: 2},{label: 'Item 3', value: 3}]}",
116
- ">",
117
- "</Picker>"
110
+ "function Example(props) {",
111
+ " const [value, setValue] = useState(undefined);",
112
+ "",
113
+ " const FILTERS = [",
114
+ " {value: 1, label: 'All'},",
115
+ " {value: 2, label: 'Accessories'},",
116
+ " {value: 3, label: 'Outwear'},",
117
+ " {value: 4, label: 'Footwear'},",
118
+ " {value: 5, label: 'Swimwear'},",
119
+ " {value: 6, label: 'Tops'}",
120
+ " ];",
121
+ "",
122
+ " return (",
123
+ " <View flex padding-s5>",
124
+ " <Picker",
125
+ " value={value}",
126
+ " preset='outline'",
127
+ " placeholder={'Select filter'}",
128
+ " label={'filter'}",
129
+ " onChange={setValue}",
130
+ " items={FILTERS}",
131
+ " />",
132
+ " </View>",
133
+ " );",
134
+ "}"
118
135
  ],
119
136
  "docs": {
120
137
  "hero": {
@@ -25,5 +25,22 @@
25
25
  {"name": "recorderTag", "type": "'mask' | 'unmask'", "description": "Recorder Tag"},
26
26
  {"name": "animated", "type": "boolean", "description": "Use Animated.Text as a container"}
27
27
  ],
28
- "snippet": ["<Text text30$1>Text goes here$2</Text>"]
28
+ "snippet": [
29
+ "<View flex center gap-s2>",
30
+ "<Text text30$1>Text30</Text>",
31
+ "<Text text40 red30>Red</Text>",
32
+ "<Text text60 uppercase>uppercase</Text>",
33
+ "<Text text60 underline>underline</Text>",
34
+ "<Text text70 highlightString='be' highlightStyle={{color: Colors.$textPrimary, fontWeight: 'bold'}}>To be, or not to be</Text>",
35
+ "</View>"
36
+ ],
37
+ "docs": {
38
+ "hero": {
39
+ "title": "Text",
40
+ "description": "An enhanced version of React Native's Text component providing additional features and modifiers support",
41
+ "type": "hero",
42
+ "layout": "horizontal",
43
+ "content": [{}]
44
+ }
45
+ }
29
46
  }
@@ -35,8 +35,19 @@
35
35
  }
36
36
  ],
37
37
  "snippet": [
38
+ "<View flex center>",
38
39
  "<TouchableOpacity onPress={() => console.log('pressed')$1}>",
39
- " <Text text40>Click Me!</Text>",
40
- "</TouchableOpacity>"
41
- ]
40
+ " <Text text40>Touchable</Text>",
41
+ "</TouchableOpacity>",
42
+ "</View>"
43
+ ],
44
+ "docs": {
45
+ "hero": {
46
+ "title": "TouchableOpacity",
47
+ "description": "An enhanced version of React Native's TouchableOpacity component providing additional features and modifiers support",
48
+ "type": "hero",
49
+ "layout": "horizontal",
50
+ "content": [{}]
51
+ }
52
+ }
42
53
  }
@@ -26,13 +26,22 @@
26
26
  {"name": "style", "type": "ViewStyle", "description": "Custom style"}
27
27
  ],
28
28
  "snippet": [
29
- "<View row gap-s5 centerV>",
30
- " <View style={{width: 200, height: 200}} bg-purple40 centerH>",
31
- " <View style={{width: 60, height: 60}} bg-green20/>",
32
- " </View>",
33
- " <View style={{width: 150, height: 150}} bg-orange30 bottom right>",
34
- " <View style={{width: 50, height: 50}} bg-yellow40 br100 margin-s2/>",
35
- " </View>",
36
- "</View>"
37
- ]
29
+ "<View row gap-s5 centerV>",
30
+ " <View style={{width: 200, height: 200}} bg-purple40 centerH>",
31
+ " <View style={{width: 60, height: 60}} bg-green20/>",
32
+ " </View>",
33
+ " <View style={{width: 150, height: 150}} bg-orange30 bottom right>",
34
+ " <View style={{width: 50, height: 50}} bg-yellow40 br100 margin-s2/>",
35
+ " </View>",
36
+ "</View>"
37
+ ],
38
+ "docs": {
39
+ "hero": {
40
+ "title": "View",
41
+ "description": "An enhanced version of React Native's View component providing additional features and modifiers support",
42
+ "type": "hero",
43
+ "layout": "horizontal",
44
+ "content": [{}]
45
+ }
46
+ }
38
47
  }