@webstudio-is/sdk-components-react-radix 0.88.0 → 0.89.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/__generated__/accordion.props.js +605 -109
- package/lib/__generated__/button.props.js +161 -29
- package/lib/__generated__/checkbox.props.js +284 -51
- package/lib/__generated__/collapsible.props.js +234 -42
- package/lib/__generated__/dialog.props.js +611 -110
- package/lib/__generated__/input.props.js +264 -47
- package/lib/__generated__/label.props.js +123 -22
- package/lib/__generated__/navigation-menu.props.js +563 -102
- package/lib/__generated__/popover.props.js +129 -25
- package/lib/__generated__/radio-group.props.js +421 -76
- package/lib/__generated__/select.props.js +876 -160
- package/lib/__generated__/sheet.props.js +591 -110
- package/lib/__generated__/switch.props.js +284 -51
- package/lib/__generated__/tabs.props.js +506 -91
- package/lib/__generated__/textarea.props.js +177 -31
- package/lib/__generated__/tooltip.props.js +131 -27
- package/lib/accordion.ws.js +1 -0
- package/lib/checkbox.ws.js +2 -0
- package/lib/cjs/__generated__/accordion.props.js +605 -109
- package/lib/cjs/__generated__/button.props.js +161 -29
- package/lib/cjs/__generated__/checkbox.props.js +284 -51
- package/lib/cjs/__generated__/collapsible.props.js +234 -42
- package/lib/cjs/__generated__/dialog.props.js +611 -110
- package/lib/cjs/__generated__/input.props.js +264 -47
- package/lib/cjs/__generated__/label.props.js +123 -22
- package/lib/cjs/__generated__/navigation-menu.props.js +563 -102
- package/lib/cjs/__generated__/popover.props.js +129 -25
- package/lib/cjs/__generated__/radio-group.props.js +421 -76
- package/lib/cjs/__generated__/select.props.js +875 -159
- package/lib/cjs/__generated__/sheet.props.js +591 -110
- package/lib/cjs/__generated__/switch.props.js +284 -51
- package/lib/cjs/__generated__/tabs.props.js +506 -91
- package/lib/cjs/__generated__/textarea.props.js +177 -31
- package/lib/cjs/__generated__/tooltip.props.js +131 -27
- package/lib/cjs/accordion.ws.js +1 -0
- package/lib/cjs/checkbox.ws.js +2 -0
- package/lib/cjs/collapsible.ws.js +1 -0
- package/lib/cjs/dialog.ws.js +1 -0
- package/lib/cjs/label.ws.js +1 -0
- package/lib/cjs/navigation-menu.ws.js +1 -0
- package/lib/cjs/popover.ws.js +1 -0
- package/lib/cjs/props-descriptions.js +56 -0
- package/lib/cjs/radio-group.ws.js +3 -0
- package/lib/cjs/select.js +3 -1
- package/lib/cjs/select.ws.js +1 -0
- package/lib/cjs/sheet.ws.js +1 -0
- package/lib/cjs/switch.ws.js +2 -0
- package/lib/cjs/tabs.ws.js +1 -0
- package/lib/cjs/tooltip.ws.js +1 -0
- package/lib/collapsible.ws.js +1 -0
- package/lib/dialog.ws.js +1 -0
- package/lib/label.ws.js +1 -0
- package/lib/navigation-menu.ws.js +1 -0
- package/lib/popover.ws.js +1 -0
- package/lib/props-descriptions.js +36 -0
- package/lib/radio-group.ws.js +3 -0
- package/lib/select.js +3 -1
- package/lib/select.ws.js +1 -0
- package/lib/sheet.ws.js +1 -0
- package/lib/switch.ws.js +2 -0
- package/lib/tabs.ws.js +1 -0
- package/lib/tooltip.ws.js +1 -0
- package/lib/types/props-descriptions.d.ts +29 -0
- package/lib/types/select.d.ts +4 -2
- package/package.json +6 -6
- package/src/__generated__/accordion.props.ts +675 -103
- package/src/__generated__/button.props.ts +180 -27
- package/src/__generated__/checkbox.props.ts +317 -48
- package/src/__generated__/collapsible.props.ts +261 -40
- package/src/__generated__/dialog.props.ts +682 -104
- package/src/__generated__/input.props.ts +292 -44
- package/src/__generated__/label.props.ts +137 -21
- package/src/__generated__/navigation-menu.props.ts +629 -96
- package/src/__generated__/popover.props.ts +142 -21
- package/src/__generated__/radio-group.props.ts +470 -71
- package/src/__generated__/select.props.ts +979 -153
- package/src/__generated__/sheet.props.ts +657 -99
- package/src/__generated__/switch.props.ts +317 -48
- package/src/__generated__/tabs.props.ts +565 -86
- package/src/__generated__/textarea.props.ts +195 -30
- package/src/__generated__/tooltip.props.ts +145 -23
- package/src/accordion.ws.ts +2 -0
- package/src/checkbox.ws.ts +3 -0
- package/src/collapsible.ws.ts +2 -0
- package/src/dialog.ws.tsx +2 -0
- package/src/label.ws.ts +2 -0
- package/src/navigation-menu.ws.ts +1 -0
- package/src/popover.ws.tsx +1 -0
- package/src/props-descriptions.ts +43 -0
- package/src/radio-group.ws.ts +4 -0
- package/src/select.tsx +8 -3
- package/src/select.ws.ts +2 -0
- package/src/sheet.ws.tsx +2 -0
- package/src/switch.ws.ts +3 -0
- package/src/tabs.ws.ts +2 -0
- package/src/tooltip.ws.tsx +2 -0
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
const propsCollapsible = {
|
|
2
2
|
about: { required: false, control: "text", type: "string" },
|
|
3
|
-
accessKey: {
|
|
3
|
+
accessKey: {
|
|
4
|
+
required: false,
|
|
5
|
+
control: "text",
|
|
6
|
+
type: "string",
|
|
7
|
+
description: "Keyboard shortcut to activate or add focus to the element."
|
|
8
|
+
},
|
|
4
9
|
"aria-activedescendant": {
|
|
5
10
|
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
6
11
|
required: false,
|
|
@@ -156,7 +161,7 @@ const propsCollapsible = {
|
|
|
156
161
|
type: "string"
|
|
157
162
|
},
|
|
158
163
|
"aria-label": {
|
|
159
|
-
description: "
|
|
164
|
+
description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
|
|
160
165
|
required: false,
|
|
161
166
|
control: "text",
|
|
162
167
|
type: "string"
|
|
@@ -332,20 +337,70 @@ const propsCollapsible = {
|
|
|
332
337
|
control: "text",
|
|
333
338
|
type: "string"
|
|
334
339
|
},
|
|
335
|
-
autoCapitalize: {
|
|
340
|
+
autoCapitalize: {
|
|
341
|
+
required: false,
|
|
342
|
+
control: "text",
|
|
343
|
+
type: "string",
|
|
344
|
+
description: "Sets whether input is automatically capitalized when entered by user."
|
|
345
|
+
},
|
|
336
346
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
337
|
-
autoFocus: {
|
|
347
|
+
autoFocus: {
|
|
348
|
+
required: false,
|
|
349
|
+
control: "boolean",
|
|
350
|
+
type: "boolean",
|
|
351
|
+
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
352
|
+
},
|
|
338
353
|
autoSave: { required: false, control: "text", type: "string" },
|
|
339
354
|
className: { required: false, control: "text", type: "string" },
|
|
340
|
-
color: {
|
|
341
|
-
|
|
342
|
-
|
|
355
|
+
color: {
|
|
356
|
+
required: false,
|
|
357
|
+
control: "color",
|
|
358
|
+
type: "string",
|
|
359
|
+
description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
|
|
360
|
+
},
|
|
361
|
+
content: {
|
|
362
|
+
required: false,
|
|
363
|
+
control: "text",
|
|
364
|
+
type: "string",
|
|
365
|
+
description: "A value associated with http-equiv orname depending on the context."
|
|
366
|
+
},
|
|
367
|
+
contextMenu: {
|
|
368
|
+
required: false,
|
|
369
|
+
control: "text",
|
|
370
|
+
type: "string",
|
|
371
|
+
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
372
|
+
},
|
|
343
373
|
datatype: { required: false, control: "text", type: "string" },
|
|
344
|
-
dir: {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
374
|
+
dir: {
|
|
375
|
+
required: false,
|
|
376
|
+
control: "text",
|
|
377
|
+
type: "string",
|
|
378
|
+
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
379
|
+
},
|
|
380
|
+
disabled: {
|
|
381
|
+
required: false,
|
|
382
|
+
control: "boolean",
|
|
383
|
+
type: "boolean",
|
|
384
|
+
description: "Indicates whether the user can interact with the element."
|
|
385
|
+
},
|
|
386
|
+
draggable: {
|
|
387
|
+
required: false,
|
|
388
|
+
control: "boolean",
|
|
389
|
+
type: "boolean",
|
|
390
|
+
description: "Defines whether the element can be dragged."
|
|
391
|
+
},
|
|
392
|
+
hidden: {
|
|
393
|
+
required: false,
|
|
394
|
+
control: "boolean",
|
|
395
|
+
type: "boolean",
|
|
396
|
+
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
397
|
+
},
|
|
398
|
+
id: {
|
|
399
|
+
required: false,
|
|
400
|
+
control: "text",
|
|
401
|
+
type: "string",
|
|
402
|
+
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
403
|
+
},
|
|
349
404
|
inputMode: {
|
|
350
405
|
description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
|
|
351
406
|
required: false,
|
|
@@ -373,21 +428,56 @@ const propsCollapsible = {
|
|
|
373
428
|
itemRef: { required: false, control: "text", type: "string" },
|
|
374
429
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
375
430
|
itemType: { required: false, control: "text", type: "string" },
|
|
376
|
-
lang: {
|
|
431
|
+
lang: {
|
|
432
|
+
required: false,
|
|
433
|
+
control: "text",
|
|
434
|
+
type: "string",
|
|
435
|
+
description: "Defines the language used in the element."
|
|
436
|
+
},
|
|
377
437
|
nonce: { required: false, control: "text", type: "string" },
|
|
378
|
-
open: {
|
|
379
|
-
|
|
438
|
+
open: {
|
|
439
|
+
required: false,
|
|
440
|
+
control: "boolean",
|
|
441
|
+
type: "boolean",
|
|
442
|
+
description: "Show or hide the content of this component on the canvas. This will not affect the initial state of the component."
|
|
443
|
+
},
|
|
444
|
+
placeholder: {
|
|
445
|
+
required: false,
|
|
446
|
+
control: "text",
|
|
447
|
+
type: "string",
|
|
448
|
+
description: "Provides a hint to the user of what can be entered in the field."
|
|
449
|
+
},
|
|
380
450
|
prefix: { required: false, control: "text", type: "string" },
|
|
381
451
|
property: { required: false, control: "text", type: "string" },
|
|
382
452
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
383
|
-
rel: {
|
|
453
|
+
rel: {
|
|
454
|
+
required: false,
|
|
455
|
+
control: "text",
|
|
456
|
+
type: "string",
|
|
457
|
+
description: "Specifies the relationship of the target object to the link object."
|
|
458
|
+
},
|
|
384
459
|
resource: { required: false, control: "text", type: "string" },
|
|
385
460
|
results: { required: false, control: "number", type: "number" },
|
|
386
461
|
rev: { required: false, control: "text", type: "string" },
|
|
387
|
-
role: {
|
|
462
|
+
role: {
|
|
463
|
+
required: false,
|
|
464
|
+
control: "text",
|
|
465
|
+
type: "string",
|
|
466
|
+
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
467
|
+
},
|
|
388
468
|
security: { required: false, control: "text", type: "string" },
|
|
389
|
-
slot: {
|
|
390
|
-
|
|
469
|
+
slot: {
|
|
470
|
+
required: false,
|
|
471
|
+
control: "text",
|
|
472
|
+
type: "string",
|
|
473
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
474
|
+
},
|
|
475
|
+
spellCheck: {
|
|
476
|
+
required: false,
|
|
477
|
+
control: "boolean",
|
|
478
|
+
type: "boolean",
|
|
479
|
+
description: "Indicates whether spell checking is allowed for the element."
|
|
480
|
+
},
|
|
391
481
|
suppressContentEditableWarning: {
|
|
392
482
|
required: false,
|
|
393
483
|
control: "boolean",
|
|
@@ -398,13 +488,24 @@ const propsCollapsible = {
|
|
|
398
488
|
control: "boolean",
|
|
399
489
|
type: "boolean"
|
|
400
490
|
},
|
|
401
|
-
tabIndex: {
|
|
402
|
-
|
|
491
|
+
tabIndex: {
|
|
492
|
+
required: false,
|
|
493
|
+
control: "number",
|
|
494
|
+
type: "number",
|
|
495
|
+
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
496
|
+
},
|
|
497
|
+
title: {
|
|
498
|
+
required: false,
|
|
499
|
+
control: "text",
|
|
500
|
+
type: "string",
|
|
501
|
+
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
502
|
+
},
|
|
403
503
|
translate: {
|
|
404
504
|
required: false,
|
|
405
505
|
control: "radio",
|
|
406
506
|
type: "string",
|
|
407
|
-
options: ["yes", "no"]
|
|
507
|
+
options: ["yes", "no"],
|
|
508
|
+
description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
|
|
408
509
|
},
|
|
409
510
|
typeof: { required: false, control: "text", type: "string" },
|
|
410
511
|
unselectable: {
|
|
@@ -418,7 +519,12 @@ const propsCollapsible = {
|
|
|
418
519
|
const propsCollapsibleTrigger = {};
|
|
419
520
|
const propsCollapsibleContent = {
|
|
420
521
|
about: { required: false, control: "text", type: "string" },
|
|
421
|
-
accessKey: {
|
|
522
|
+
accessKey: {
|
|
523
|
+
required: false,
|
|
524
|
+
control: "text",
|
|
525
|
+
type: "string",
|
|
526
|
+
description: "Keyboard shortcut to activate or add focus to the element."
|
|
527
|
+
},
|
|
422
528
|
"aria-activedescendant": {
|
|
423
529
|
description: "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",
|
|
424
530
|
required: false,
|
|
@@ -574,7 +680,7 @@ const propsCollapsibleContent = {
|
|
|
574
680
|
type: "string"
|
|
575
681
|
},
|
|
576
682
|
"aria-label": {
|
|
577
|
-
description: "
|
|
683
|
+
description: "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",
|
|
578
684
|
required: false,
|
|
579
685
|
control: "text",
|
|
580
686
|
type: "string"
|
|
@@ -750,19 +856,64 @@ const propsCollapsibleContent = {
|
|
|
750
856
|
control: "text",
|
|
751
857
|
type: "string"
|
|
752
858
|
},
|
|
753
|
-
autoCapitalize: {
|
|
859
|
+
autoCapitalize: {
|
|
860
|
+
required: false,
|
|
861
|
+
control: "text",
|
|
862
|
+
type: "string",
|
|
863
|
+
description: "Sets whether input is automatically capitalized when entered by user."
|
|
864
|
+
},
|
|
754
865
|
autoCorrect: { required: false, control: "text", type: "string" },
|
|
755
|
-
autoFocus: {
|
|
866
|
+
autoFocus: {
|
|
867
|
+
required: false,
|
|
868
|
+
control: "boolean",
|
|
869
|
+
type: "boolean",
|
|
870
|
+
description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
|
|
871
|
+
},
|
|
756
872
|
autoSave: { required: false, control: "text", type: "string" },
|
|
757
873
|
className: { required: false, control: "text", type: "string" },
|
|
758
|
-
color: {
|
|
759
|
-
|
|
760
|
-
|
|
874
|
+
color: {
|
|
875
|
+
required: false,
|
|
876
|
+
control: "color",
|
|
877
|
+
type: "string",
|
|
878
|
+
description: "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead."
|
|
879
|
+
},
|
|
880
|
+
content: {
|
|
881
|
+
required: false,
|
|
882
|
+
control: "text",
|
|
883
|
+
type: "string",
|
|
884
|
+
description: "A value associated with http-equiv orname depending on the context."
|
|
885
|
+
},
|
|
886
|
+
contextMenu: {
|
|
887
|
+
required: false,
|
|
888
|
+
control: "text",
|
|
889
|
+
type: "string",
|
|
890
|
+
description: "Defines the ID of a menu element which willserve as the element's context menu."
|
|
891
|
+
},
|
|
761
892
|
datatype: { required: false, control: "text", type: "string" },
|
|
762
|
-
dir: {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
893
|
+
dir: {
|
|
894
|
+
required: false,
|
|
895
|
+
control: "text",
|
|
896
|
+
type: "string",
|
|
897
|
+
description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
|
|
898
|
+
},
|
|
899
|
+
draggable: {
|
|
900
|
+
required: false,
|
|
901
|
+
control: "boolean",
|
|
902
|
+
type: "boolean",
|
|
903
|
+
description: "Defines whether the element can be dragged."
|
|
904
|
+
},
|
|
905
|
+
hidden: {
|
|
906
|
+
required: false,
|
|
907
|
+
control: "boolean",
|
|
908
|
+
type: "boolean",
|
|
909
|
+
description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
|
|
910
|
+
},
|
|
911
|
+
id: {
|
|
912
|
+
required: false,
|
|
913
|
+
control: "text",
|
|
914
|
+
type: "string",
|
|
915
|
+
description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
|
|
916
|
+
},
|
|
766
917
|
inputMode: {
|
|
767
918
|
description: "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",
|
|
768
919
|
required: false,
|
|
@@ -790,20 +941,50 @@ const propsCollapsibleContent = {
|
|
|
790
941
|
itemRef: { required: false, control: "text", type: "string" },
|
|
791
942
|
itemScope: { required: false, control: "boolean", type: "boolean" },
|
|
792
943
|
itemType: { required: false, control: "text", type: "string" },
|
|
793
|
-
lang: {
|
|
944
|
+
lang: {
|
|
945
|
+
required: false,
|
|
946
|
+
control: "text",
|
|
947
|
+
type: "string",
|
|
948
|
+
description: "Defines the language used in the element."
|
|
949
|
+
},
|
|
794
950
|
nonce: { required: false, control: "text", type: "string" },
|
|
795
|
-
placeholder: {
|
|
951
|
+
placeholder: {
|
|
952
|
+
required: false,
|
|
953
|
+
control: "text",
|
|
954
|
+
type: "string",
|
|
955
|
+
description: "Provides a hint to the user of what can be entered in the field."
|
|
956
|
+
},
|
|
796
957
|
prefix: { required: false, control: "text", type: "string" },
|
|
797
958
|
property: { required: false, control: "text", type: "string" },
|
|
798
959
|
radioGroup: { required: false, control: "text", type: "string" },
|
|
799
|
-
rel: {
|
|
960
|
+
rel: {
|
|
961
|
+
required: false,
|
|
962
|
+
control: "text",
|
|
963
|
+
type: "string",
|
|
964
|
+
description: "Specifies the relationship of the target object to the link object."
|
|
965
|
+
},
|
|
800
966
|
resource: { required: false, control: "text", type: "string" },
|
|
801
967
|
results: { required: false, control: "number", type: "number" },
|
|
802
968
|
rev: { required: false, control: "text", type: "string" },
|
|
803
|
-
role: {
|
|
969
|
+
role: {
|
|
970
|
+
required: false,
|
|
971
|
+
control: "text",
|
|
972
|
+
type: "string",
|
|
973
|
+
description: "Defines an explicit role for an element for use by assistive technologies."
|
|
974
|
+
},
|
|
804
975
|
security: { required: false, control: "text", type: "string" },
|
|
805
|
-
slot: {
|
|
806
|
-
|
|
976
|
+
slot: {
|
|
977
|
+
required: false,
|
|
978
|
+
control: "text",
|
|
979
|
+
type: "string",
|
|
980
|
+
description: "Assigns a slot in a shadow DOM shadow tree to an element."
|
|
981
|
+
},
|
|
982
|
+
spellCheck: {
|
|
983
|
+
required: false,
|
|
984
|
+
control: "boolean",
|
|
985
|
+
type: "boolean",
|
|
986
|
+
description: "Indicates whether spell checking is allowed for the element."
|
|
987
|
+
},
|
|
807
988
|
suppressContentEditableWarning: {
|
|
808
989
|
required: false,
|
|
809
990
|
control: "boolean",
|
|
@@ -814,13 +995,24 @@ const propsCollapsibleContent = {
|
|
|
814
995
|
control: "boolean",
|
|
815
996
|
type: "boolean"
|
|
816
997
|
},
|
|
817
|
-
tabIndex: {
|
|
818
|
-
|
|
998
|
+
tabIndex: {
|
|
999
|
+
required: false,
|
|
1000
|
+
control: "number",
|
|
1001
|
+
type: "number",
|
|
1002
|
+
description: "Overrides the browser's default tab order and follows the one specified instead."
|
|
1003
|
+
},
|
|
1004
|
+
title: {
|
|
1005
|
+
required: false,
|
|
1006
|
+
control: "text",
|
|
1007
|
+
type: "string",
|
|
1008
|
+
description: "Text to be displayed in a tooltip when hovering over the element."
|
|
1009
|
+
},
|
|
819
1010
|
translate: {
|
|
820
1011
|
required: false,
|
|
821
1012
|
control: "radio",
|
|
822
1013
|
type: "string",
|
|
823
|
-
options: ["yes", "no"]
|
|
1014
|
+
options: ["yes", "no"],
|
|
1015
|
+
description: "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged."
|
|
824
1016
|
},
|
|
825
1017
|
typeof: { required: false, control: "text", type: "string" },
|
|
826
1018
|
unselectable: {
|