ywana-core8 0.1.103 → 0.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.
Files changed (172) hide show
  1. package/dist/index.css +4941 -324
  2. package/dist/index.js +42339 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/index.modern.js +37459 -31678
  5. package/dist/index.modern.js.map +1 -1
  6. package/dist/index.umd.js +39635 -34010
  7. package/dist/index.umd.js.map +1 -1
  8. package/package.json +26 -29
  9. package/src/Test.stories.jsx +28 -0
  10. package/src/desktop/Desktop.stories.jsx +110 -0
  11. package/src/desktop/WindowContext.js +135 -0
  12. package/src/desktop/WindowManager.js +355 -0
  13. package/src/desktop/desktop.css +55 -4
  14. package/src/desktop/desktop.js +312 -6
  15. package/src/desktop/index.js +7 -0
  16. package/src/desktop/window.css +229 -36
  17. package/src/desktop/window.js +255 -20
  18. package/src/desktop.backup/desktop.css +6 -0
  19. package/src/desktop.backup/desktop.js +13 -0
  20. package/src/desktop.backup/window.css +58 -0
  21. package/src/desktop.backup/window.js +27 -0
  22. package/src/html/Accordion.stories.jsx +178 -0
  23. package/src/html/Button.stories.jsx +175 -0
  24. package/src/html/Checkbox.stories.jsx +131 -0
  25. package/src/html/Chip.stories.jsx +189 -0
  26. package/src/html/Color.stories.jsx +234 -0
  27. package/src/html/Form.stories.jsx +271 -0
  28. package/src/html/Icon.stories.jsx +233 -0
  29. package/src/html/Progress.stories.jsx +247 -0
  30. package/src/html/Radio.stories.jsx +289 -0
  31. package/src/html/StyleTest.stories.jsx +81 -0
  32. package/src/html/Switch.stories.jsx +329 -0
  33. package/src/html/Tab.stories.jsx +239 -0
  34. package/src/html/Table.stories.jsx +188 -0
  35. package/src/html/Table2.stories.jsx +238 -0
  36. package/src/html/TextField2.stories.jsx +337 -0
  37. package/src/html/Tree.stories.jsx +285 -0
  38. package/src/html/accordion.example.js +0 -74
  39. package/src/html/accordion.js +1 -6
  40. package/src/html/button.js +2 -13
  41. package/src/html/checkbox.js +1 -9
  42. package/src/html/chip.js +2 -19
  43. package/src/html/color.js +1 -14
  44. package/src/html/form.js +4 -15
  45. package/src/html/header2.js +1 -12
  46. package/src/html/icon.js +1 -7
  47. package/src/html/index.js +1 -1
  48. package/src/html/list.js +1 -19
  49. package/src/html/menu.js +9 -5
  50. package/src/html/progress.js +5 -53
  51. package/src/html/property.js +9 -25
  52. package/src/html/radio.js +2 -16
  53. package/src/html/section.js +1 -6
  54. package/src/html/selector.js +2 -19
  55. package/src/html/switch.css +134 -100
  56. package/src/html/switch.example.js +46 -36
  57. package/src/html/switch.js +43 -192
  58. package/src/html/tab.js +3 -24
  59. package/src/html/text.js +1 -12
  60. package/src/html/textfield2.js +5 -42
  61. package/src/html/thumbnail.js +1 -12
  62. package/src/html/tokenfield.js +2 -21
  63. package/src/html/tree.js +3 -35
  64. package/src/index.js +1 -0
  65. package/__previewjs__/Wrapper.tsx +0 -14
  66. package/build-doc.sh +0 -10
  67. package/db/db.json +0 -89
  68. package/db/routes.json +0 -0
  69. package/dist/index.cjs +0 -36722
  70. package/dist/index.cjs.map +0 -1
  71. package/dist/index.css.map +0 -1
  72. package/doc/README.md +0 -196
  73. package/doc/evalulations/ACCORDION_EVALUATION.md +0 -583
  74. package/doc/evalulations/CHECKBOX_EVALUATION.md +0 -273
  75. package/doc/evalulations/CHIP_EVALUATION.md +0 -542
  76. package/doc/evalulations/COLOR_EVALUATION.md +0 -524
  77. package/doc/evalulations/COMPONENTS_EVALUATION.md +0 -477
  78. package/doc/evalulations/FORM_EVALUATION.md +0 -459
  79. package/doc/evalulations/HEADER_EVALUATION.md +0 -436
  80. package/doc/evalulations/ICON_EVALUATION.md +0 -254
  81. package/doc/evalulations/LIST_EVALUATION.md +0 -574
  82. package/doc/evalulations/PROGRESS_EVALUATION.md +0 -450
  83. package/doc/evalulations/RADIO_EVALUATION.md +0 -439
  84. package/doc/evalulations/RADIO_VISUAL_FIX.md +0 -183
  85. package/doc/evalulations/SECTION_IMPROVEMENTS.md +0 -153
  86. package/doc/evalulations/SWITCH_EVALUATION.md +0 -335
  87. package/doc/evalulations/SWITCH_VISUAL_FIX.md +0 -232
  88. package/doc/evalulations/TAB_EVALUATION.md +0 -626
  89. package/doc/evalulations/TEXTFIELD_EVALUATION.md +0 -747
  90. package/doc/evalulations/TOOLTIP_FIX.md +0 -157
  91. package/doc/evalulations/TREE_EVALUATION.md +0 -708
  92. package/doc/index.html +0 -0
  93. package/doc/package-lock.json +0 -17298
  94. package/doc/package.json +0 -34
  95. package/doc/public/index.html +0 -24
  96. package/doc/scripts/generate-examples.js +0 -129
  97. package/doc/src/App.css +0 -171
  98. package/doc/src/App.js +0 -114
  99. package/doc/src/components/ExamplePage.js +0 -129
  100. package/doc/src/components/WelcomePage.js +0 -84
  101. package/doc/src/index.css +0 -246
  102. package/doc/src/index.js +0 -17
  103. package/doc/src/theme.css +0 -256
  104. package/jest.config.js +0 -24
  105. package/preview.config.js +0 -38
  106. package/publish.sh +0 -6
  107. package/src/desktop/dektop.test.js +0 -11
  108. package/src/domain/CollectionAPI.test.js +0 -19
  109. package/src/domain/ContentEditor.test.js +0 -52
  110. package/src/domain2/CollectionAPI.test.js +0 -19
  111. package/src/domain2/CollectionContext.test.js +0 -71
  112. package/src/domain2/CollectionPage.test.js +0 -112
  113. package/src/domain2/DynamicForm.test.js +0 -47
  114. package/src/html/accordion.test.js +0 -37
  115. package/src/html/accordion.unit.test.js +0 -334
  116. package/src/html/button.example.new.js +0 -416
  117. package/src/html/button.test.js +0 -422
  118. package/src/html/checkbox.test.js +0 -285
  119. package/src/html/chip.test.js +0 -425
  120. package/src/html/color.example.js.backup +0 -527
  121. package/src/html/color.test.js +0 -377
  122. package/src/html/components.example.js.backup +0 -492
  123. package/src/html/components_enhanced.test.js +0 -581
  124. package/src/html/form.example.js.backup +0 -385
  125. package/src/html/form.test.js +0 -369
  126. package/src/html/header2.example.js.backup +0 -411
  127. package/src/html/header2.test.js +0 -377
  128. package/src/html/icon.example.js.backup +0 -268
  129. package/src/html/icon.test.js +0 -231
  130. package/src/html/label.test.js +0 -0
  131. package/src/html/list.example.js.backup +0 -404
  132. package/src/html/list.test.js +0 -383
  133. package/src/html/progress.example.js.backup +0 -424
  134. package/src/html/progress.test.js +0 -313
  135. package/src/html/property.example.js.backup +0 -553
  136. package/src/html/property.test.js +0 -371
  137. package/src/html/radio.example.js.backup +0 -389
  138. package/src/html/radio.test.js +0 -318
  139. package/src/html/section.example.js.backup +0 -99
  140. package/src/html/section.test.js +0 -131
  141. package/src/html/selector.test.js +0 -20
  142. package/src/html/switch.example.js.backup +0 -461
  143. package/src/html/switch.test.js +0 -355
  144. package/src/html/tab.example.js.backup +0 -446
  145. package/src/html/tab.test.js +0 -25
  146. package/src/html/tab_enhanced.test.js +0 -504
  147. package/src/html/table.test.js +0 -70
  148. package/src/html/table2.test.js +0 -582
  149. package/src/html/text.test.js +0 -15
  150. package/src/html/textfield.test.js +0 -51
  151. package/src/html/textfield2.example.js.backup +0 -1370
  152. package/src/html/textfield2.test.js +0 -950
  153. package/src/html/tokenfield.example.js.backup +0 -503
  154. package/src/html/tokenfield.test.js +0 -423
  155. package/src/html/tree.example.js.backup +0 -475
  156. package/src/html/tree.test.js +0 -43
  157. package/src/html/tree_enhanced.test.js +0 -495
  158. package/src/http/token.test.js +0 -50
  159. package/src/incubator/pdfViewer.js +0 -33
  160. package/src/incubator/wizard.test.js +0 -127
  161. package/src/site/site.test.js +0 -230
  162. package/src/site/view.test.js +0 -41
  163. package/src/widgets/calendar/Calendar.test.js +0 -28
  164. package/src/widgets/explorer/Explorer.test.js +0 -121
  165. package/src/widgets/ide/editor.test.js +0 -33
  166. package/src/widgets/kanban/Kanban.test.js +0 -78
  167. package/src/widgets/login/LoginBox.test.js +0 -12
  168. package/src/widgets/login/ResetPasswordBox.test.js +0 -34
  169. package/src/widgets/login/validations.test.js +0 -51
  170. package/src/widgets/planner/Planner.test.js +0 -60
  171. package/src/widgets/upload/Upload.test.js +0 -32
  172. package/table2.test.js +0 -454
@@ -176,117 +176,43 @@ export const AccordionExamples = () => {
176
176
  const sections =
177
177
 
178
178
  [
179
-
180
-
181
179
  {
182
-
183
-
184
180
  "id": "overview",
185
-
186
-
187
181
  "title": "Introducción",
188
-
189
-
190
182
  "icon": "info"
191
-
192
-
193
183
  },
194
-
195
-
196
184
  {
197
-
198
-
199
185
  "id": "basic-examples",
200
-
201
-
202
186
  "title": "Ejemplos Básicos",
203
-
204
-
205
187
  "icon": "widgets"
206
-
207
-
208
188
  },
209
-
210
-
211
189
  {
212
-
213
-
214
190
  "id": "advanced-features",
215
-
216
-
217
191
  "title": "Características Avanzadas",
218
-
219
-
220
192
  "icon": "settings"
221
-
222
-
223
193
  },
224
-
225
-
226
194
  {
227
-
228
-
229
195
  "id": "variants",
230
-
231
-
232
196
  "title": "Variantes y Temas",
233
-
234
-
235
197
  "icon": "palette"
236
-
237
-
238
198
  },
239
-
240
-
241
199
  {
242
-
243
-
244
200
  "id": "states",
245
-
246
-
247
201
  "title": "Estados",
248
-
249
-
250
202
  "icon": "toggle_on"
251
-
252
-
253
203
  },
254
-
255
-
256
204
  {
257
-
258
-
259
205
  "id": "sizes",
260
-
261
-
262
206
  "title": "Tamaños",
263
-
264
-
265
207
  "icon": "format_size"
266
-
267
-
268
208
  },
269
-
270
-
271
209
  {
272
-
273
-
274
210
  "id": "api-reference",
275
-
276
-
277
211
  "title": "Referencia API",
278
-
279
-
280
212
  "icon": "code"
281
-
282
-
283
213
  }
284
-
285
-
286
214
  ]
287
215
 
288
-
289
-
290
216
  return (
291
217
  <ExampleLayout title="Accordion Examples" sections={sections}>
292
218
  <ExampleSection id="overview" title="Ejemplos de Componente Accordion Mejorado" icon="widgets">
@@ -316,11 +316,6 @@ Accordion.propTypes = {
316
316
  onSectionChange: PropTypes.func
317
317
  }
318
318
 
319
- Accordion.defaultProps = {
320
- className: '',
321
- disabled: false,
322
- allowMultiple: true,
323
- animated: true
324
- }
319
+ // defaultProps removed - using JavaScript default parameters instead
325
320
 
326
321
  export default Accordion
@@ -261,15 +261,7 @@ Button.propTypes = {
261
261
  onKeyDown: PropTypes.func
262
262
  }
263
263
 
264
- Button.defaultProps = {
265
- disabled: false,
266
- loading: false,
267
- outlined: false,
268
- raised: false,
269
- size: 'normal',
270
- type: 'button',
271
- className: ''
272
- }
264
+ // defaultProps removed - using JavaScript default parameters instead
273
265
 
274
266
  // PropTypes para ActionButton
275
267
  ActionButton.propTypes = {
@@ -291,7 +283,4 @@ ActionButton.propTypes = {
291
283
  onStateChange: PropTypes.func
292
284
  }
293
285
 
294
- ActionButton.defaultProps = {
295
- disabled: false,
296
- className: ''
297
- }
286
+ // defaultProps removed - using JavaScript default parameters instead
@@ -133,12 +133,4 @@ CheckBox.propTypes = {
133
133
  onChange: PropTypes.func
134
134
  }
135
135
 
136
- CheckBox.defaultProps = {
137
- value: false,
138
- readOnly: false,
139
- disabled: false,
140
- indeterminate: false,
141
- error: false,
142
- required: false,
143
- className: ''
144
- }
136
+ // defaultProps removed - using JavaScript default parameters instead
package/src/html/chip.js CHANGED
@@ -285,15 +285,7 @@ Chip.propTypes = {
285
285
  onKeyDown: PropTypes.func
286
286
  }
287
287
 
288
- Chip.defaultProps = {
289
- outlined: false,
290
- selected: false,
291
- disabled: false,
292
- deletable: false,
293
- size: 'normal',
294
- variant: 'default',
295
- className: ''
296
- }
288
+ // defaultProps removed - using JavaScript default parameters instead
297
289
 
298
290
  // PropTypes para Chips
299
291
  Chips.propTypes = {
@@ -333,13 +325,4 @@ Chips.propTypes = {
333
325
  onChange: PropTypes.func
334
326
  }
335
327
 
336
- Chips.defaultProps = {
337
- items: [],
338
- selected: [],
339
- disabled: false,
340
- deletable: false,
341
- multiSelect: false,
342
- size: 'normal',
343
- variant: 'default',
344
- className: ''
345
- }
328
+ // defaultProps removed - using JavaScript default parameters instead
package/src/html/color.js CHANGED
@@ -437,20 +437,7 @@ ColorField.propTypes = {
437
437
  style: PropTypes.object
438
438
  }
439
439
 
440
- ColorField.defaultProps = {
441
- label: "Color",
442
- disabled: false,
443
- required: false,
444
- placeholder: "#000000",
445
- format: 'hex',
446
- showPreview: true,
447
- showValue: false,
448
- allowTransparent: false,
449
- presetColors: [],
450
- size: 'medium',
451
- variant: 'default',
452
- clearable: false
453
- }
440
+ // defaultProps removed - using JavaScript default parameters instead
454
441
 
455
442
  ColorPicker.propTypes = {
456
443
  /** Current color value */
package/src/html/form.js CHANGED
@@ -207,11 +207,10 @@ export const Form = (props) => {
207
207
  /**
208
208
  * FieldWrapper component for individual form fields
209
209
  */
210
- const FieldWrapper = ({ style, children, className }) => {
211
- const safeClassName = className || ''
210
+ const FieldWrapper = ({ style, children, className = '' }) => {
212
211
  const cssClasses = [
213
212
  'field-wrapper',
214
- safeClassName
213
+ className
215
214
  ].filter(Boolean).join(' ')
216
215
 
217
216
  return (
@@ -253,15 +252,7 @@ Form.propTypes = {
253
252
  onValidationChange: PropTypes.func
254
253
  }
255
254
 
256
- Form.defaultProps = {
257
- columns: 1,
258
- outlined: false,
259
- disabled: false,
260
- loading: false,
261
- autoComplete: 'on',
262
- noValidate: false,
263
- className: ''
264
- }
255
+ // defaultProps removed - using JavaScript default parameters instead
265
256
 
266
257
  // PropTypes para FieldWrapper
267
258
  FieldWrapper.propTypes = {
@@ -273,6 +264,4 @@ FieldWrapper.propTypes = {
273
264
  className: PropTypes.string
274
265
  }
275
266
 
276
- FieldWrapper.defaultProps = {
277
- className: ''
278
- }
267
+ // defaultProps removed - using JavaScript default parameters instead
@@ -187,17 +187,6 @@ Header2.propTypes = {
187
187
  onIconClick: PropTypes.func
188
188
  }
189
189
 
190
- Header2.defaultProps = {
191
- caption: false,
192
- prominent: false,
193
- dense: false,
194
- primary: false,
195
- secondary: false,
196
- clickable: false,
197
- disabled: false,
198
- loading: false,
199
- role: 'banner',
200
- className: ''
201
- }
190
+ // defaultProps removed - using JavaScript default parameters instead
202
191
 
203
192
  export default Header2
package/src/html/icon.js CHANGED
@@ -99,10 +99,4 @@ Icon.propTypes = {
99
99
  ariaLabel: PropTypes.string
100
100
  }
101
101
 
102
- Icon.defaultProps = {
103
- size: 'normal',
104
- clickable: false,
105
- disabled: false,
106
- eventPropagation: false,
107
- className: ''
108
- }
102
+ // defaultProps removed - using JavaScript default parameters instead
package/src/html/index.js CHANGED
@@ -21,7 +21,7 @@ export { TextField, DropDown, TextArea, DateRange, PasswordField } from './textf
21
21
  export { TextField2, TextArea2, PasswordField2, DropDown2, DateRange2 } from './textfield2'
22
22
  export { TokenField } from './tokenfield'
23
23
  export { Tree, TreeNode, TreeItem } from './tree'
24
- export { Switch, Switch2 } from './switch'
24
+ export { Switch } from './switch'
25
25
  export { Tooltip } from './tooltip'
26
26
  export { Thumbnail } from './thumbnail'
27
27
  export { ColorField } from './color'
package/src/html/list.js CHANGED
@@ -612,24 +612,6 @@ List.propTypes = {
612
612
  role: PropTypes.string
613
613
  }
614
614
 
615
- List.defaultProps = {
616
- items: [],
617
- loading: false,
618
- empty: false,
619
- emptyMessage: "No items found",
620
- emptyIcon: "inbox",
621
- searchable: false,
622
- searchPlaceholder: "Search...",
623
- searchBy: ['line1', 'line2'],
624
- sortable: false,
625
- sortDirection: 'asc',
626
- multiSelect: false,
627
- dense: false,
628
- disabled: false,
629
- animated: true,
630
- virtualized: false,
631
- itemHeight: 48,
632
- role: 'list'
633
- }
615
+ // defaultProps removed - using JavaScript default parameters instead
634
616
 
635
617
  export default List
package/src/html/menu.js CHANGED
@@ -10,15 +10,19 @@ import './menu.css'
10
10
  */
11
11
  export const MenuContext = React.createContext({})
12
12
 
13
- /**
14
- * Menu
13
+ /**
14
+ * Menu
15
15
  **/
16
16
  export const Menu = (props) => {
17
17
  const { children } = props
18
+ const [open, setOpen] = useState(false)
19
+
18
20
  return (
19
- <ul>
20
- {children}
21
- </ul>
21
+ <MenuContext.Provider value={[open, setOpen]}>
22
+ <ul>
23
+ {children}
24
+ </ul>
25
+ </MenuContext.Provider>
22
26
  )
23
27
  }
24
28
 
@@ -735,18 +735,7 @@ CircularProgress.propTypes = {
735
735
  ariaLabel: PropTypes.string
736
736
  }
737
737
 
738
- CircularProgress.defaultProps = {
739
- value: 0,
740
- max: 100,
741
- size: 'medium',
742
- thickness: 4,
743
- variant: 'indeterminate',
744
- color: 'primary',
745
- showValue: false,
746
- showLabel: false,
747
- animated: true,
748
- disabled: false
749
- }
738
+ // defaultProps removed - using JavaScript default parameters instead
750
739
 
751
740
  LinearProgress.propTypes = {
752
741
  /** Current progress value */
@@ -791,19 +780,7 @@ LinearProgress.propTypes = {
791
780
  speed: PropTypes.number
792
781
  }
793
782
 
794
- LinearProgress.defaultProps = {
795
- value: 0,
796
- max: 100,
797
- variant: 'determinate',
798
- color: 'primary',
799
- size: 'medium',
800
- showValue: false,
801
- showLabel: false,
802
- animated: true,
803
- striped: false,
804
- disabled: false,
805
- rounded: true
806
- }
783
+ // defaultProps removed - using JavaScript default parameters instead
807
784
 
808
785
  StepProgress.propTypes = {
809
786
  /** Array of step objects */
@@ -836,16 +813,7 @@ StepProgress.propTypes = {
836
813
  onStepClick: PropTypes.func
837
814
  }
838
815
 
839
- StepProgress.defaultProps = {
840
- currentStep: 0,
841
- variant: 'horizontal',
842
- color: 'primary',
843
- size: 'medium',
844
- showLabels: true,
845
- showNumbers: true,
846
- allowClickNavigation: false,
847
- animated: true
848
- }
816
+ // defaultProps removed - using JavaScript default parameters instead
849
817
 
850
818
  RadialProgress.propTypes = {
851
819
  /** Current progress value */
@@ -880,18 +848,7 @@ RadialProgress.propTypes = {
880
848
  children: PropTypes.node
881
849
  }
882
850
 
883
- RadialProgress.defaultProps = {
884
- value: 0,
885
- max: 100,
886
- size: 120,
887
- thickness: 8,
888
- color: 'primary',
889
- backgroundColor: 'rgba(0,0,0,0.1)',
890
- showValue: true,
891
- showLabel: false,
892
- animated: true,
893
- gradient: false
894
- }
851
+ // defaultProps removed - using JavaScript default parameters instead
895
852
 
896
853
  MultiProgress.propTypes = {
897
854
  /** Array of progress items */
@@ -915,11 +872,6 @@ MultiProgress.propTypes = {
915
872
  className: PropTypes.string
916
873
  }
917
874
 
918
- MultiProgress.defaultProps = {
919
- showLabels: true,
920
- showValues: true,
921
- size: 'medium',
922
- animated: true
923
- }
875
+ // defaultProps removed - using JavaScript default parameters instead
924
876
 
925
877
  export default { CircularProgress, LinearProgress, StepProgress, RadialProgress, MultiProgress }
@@ -1,4 +1,4 @@
1
- import React, { useState, useCallback, useRef, useEffect, Fragment } from 'react'
1
+ import React, { useState, useCallback, useRef, useEffect } from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import { Icon } from './icon'
4
4
  import { Text } from './text'
@@ -141,10 +141,10 @@ export const Property = (props) => {
141
141
 
142
142
  // Handle copy
143
143
  const handleCopy = useCallback(async () => {
144
- if (!copyable || !value) return
144
+ if (!copyable || !value2) return
145
145
 
146
146
  try {
147
- await navigator.clipboard.writeText(String(value))
147
+ await navigator.clipboard.writeText(value2)
148
148
  // Could trigger a toast notification here
149
149
  } catch (error) {
150
150
  console.warn('Failed to copy property value:', error)
@@ -229,7 +229,7 @@ export const Property = (props) => {
229
229
  {/* Property value (maintaining original structure) */}
230
230
  <div className="property-value">
231
231
  {editable ? (
232
- <Fragment>
232
+ <>
233
233
  {multiline ? (
234
234
  <textarea
235
235
  ref={inputRef}
@@ -282,16 +282,16 @@ export const Property = (props) => {
282
282
  aria-label="Clear value"
283
283
  />
284
284
  )}
285
- </Fragment>
285
+ </>
286
286
  ) : (
287
- <Fragment>
287
+ <>
288
288
  {/* Display value */}
289
289
  <span
290
290
  className={`property-value__display ${copyable ? 'property-value__display--copyable' : ''}`}
291
291
  onClick={copyable ? handleCopy : undefined}
292
292
  title={copyable ? 'Click to copy' : undefined}
293
293
  >
294
- {value2 || (placeholder ? <span className="property-value__placeholder">{placeholder}</span> : '')}
294
+ {value2 || (placeholder && <span className="property-value__placeholder">{placeholder}</span>)}
295
295
  </span>
296
296
 
297
297
  {/* Copy indicator */}
@@ -303,7 +303,7 @@ export const Property = (props) => {
303
303
  aria-label="Copy value"
304
304
  />
305
305
  )}
306
- </Fragment>
306
+ </>
307
307
  )}
308
308
  </div>
309
309
 
@@ -397,22 +397,6 @@ Property.propTypes = {
397
397
  style: PropTypes.object
398
398
  }
399
399
 
400
- Property.defaultProps = {
401
- editable: false,
402
- type: 'text',
403
- disabled: false,
404
- required: false,
405
- multiline: false,
406
- rows: 3,
407
- size: 'medium',
408
- variant: 'default',
409
- layout: 'horizontal',
410
- nameWidth: '50%',
411
- copyable: false,
412
- clearable: true,
413
- readOnly: false,
414
- loading: false,
415
- skeleton: false
416
- }
400
+ // defaultProps removed - using JavaScript default parameters instead
417
401
 
418
402
  export default Property
package/src/html/radio.js CHANGED
@@ -198,14 +198,7 @@ RadioButton.propTypes = {
198
198
  onChange: PropTypes.func
199
199
  }
200
200
 
201
- RadioButton.defaultProps = {
202
- checked: false,
203
- disabled: false,
204
- readOnly: false,
205
- error: false,
206
- required: false,
207
- className: ''
208
- }
201
+ // defaultProps removed - using JavaScript default parameters instead
209
202
 
210
203
  // PropTypes para RadioGroup
211
204
  RadioGroup.propTypes = {
@@ -239,11 +232,4 @@ RadioGroup.propTypes = {
239
232
  onChange: PropTypes.func
240
233
  }
241
234
 
242
- RadioGroup.defaultProps = {
243
- options: [],
244
- disabled: false,
245
- readOnly: false,
246
- error: false,
247
- required: false,
248
- className: ''
249
- }
235
+ // defaultProps removed - using JavaScript default parameters instead
@@ -60,9 +60,4 @@ Section.propTypes = {
60
60
  className: PropTypes.string
61
61
  }
62
62
 
63
- Section.defaultProps = {
64
- title: '',
65
- canCollapse: true,
66
- open: false,
67
- className: ''
68
- }
63
+ // defaultProps removed - using JavaScript default parameters instead
@@ -353,19 +353,7 @@ MultiSelector.propTypes = {
353
353
  style: PropTypes.object
354
354
  }
355
355
 
356
- MultiSelector.defaultProps = {
357
- options: [],
358
- disabled: false,
359
- minSelections: 0,
360
- searchable: false,
361
- searchPlaceholder: "Search options...",
362
- variant: 'default',
363
- size: 'medium',
364
- allowClear: false,
365
- loading: false,
366
- empty: false,
367
- emptyMessage: "No options available"
368
- }
356
+ // defaultProps removed - using JavaScript default parameters instead
369
357
 
370
358
  // PropTypes for ToggleButton
371
359
  ToggleButton.propTypes = {
@@ -393,11 +381,6 @@ ToggleButton.propTypes = {
393
381
  style: PropTypes.object
394
382
  }
395
383
 
396
- ToggleButton.defaultProps = {
397
- selected: false,
398
- disabled: false,
399
- variant: 'default',
400
- size: 'medium'
401
- }
384
+ // defaultProps removed - using JavaScript default parameters instead
402
385
 
403
386
  export default MultiSelector