@webstudio-is/sdk-components-react-radix 0.218.0 → 0.220.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.
Files changed (64) hide show
  1. package/lib/__generated__/accordion.props.js +9 -906
  2. package/lib/__generated__/checkbox.props.js +5 -403
  3. package/lib/__generated__/collapsible.props.js +7 -344
  4. package/lib/__generated__/dialog.props.js +10 -915
  5. package/lib/__generated__/label.props.js +2 -183
  6. package/lib/__generated__/navigation-menu.props.js +13 -1294
  7. package/lib/__generated__/popover.props.js +7 -175
  8. package/lib/__generated__/radio-group.props.js +14 -561
  9. package/lib/__generated__/select.props.js +38 -1273
  10. package/lib/__generated__/switch.props.js +5 -403
  11. package/lib/__generated__/tabs.props.js +12 -732
  12. package/lib/__generated__/tooltip.props.js +6 -175
  13. package/lib/accordion.js +4 -4
  14. package/lib/accordion.template.js +12 -12
  15. package/lib/accordion.ws.js +29 -43
  16. package/lib/checkbox.js +19 -4
  17. package/lib/checkbox.template.js +9 -9
  18. package/lib/checkbox.ws.js +5 -9
  19. package/lib/collapsible.js +3 -3
  20. package/lib/collapsible.ws.js +8 -21
  21. package/lib/components.js +46 -45
  22. package/lib/dialog.template.js +19 -19
  23. package/lib/dialog.ws.js +41 -69
  24. package/lib/label.template.js +3 -3
  25. package/lib/label.ws.js +9 -11
  26. package/lib/metas.js +45 -44
  27. package/lib/navigation-menu.template.js +8 -8
  28. package/lib/navigation-menu.ws.js +21 -35
  29. package/lib/popover.js +17 -16
  30. package/lib/popover.template.js +50 -20
  31. package/lib/popover.ws.js +37 -27
  32. package/lib/radio-group.js +14 -7
  33. package/lib/radio-group.ws.js +25 -31
  34. package/lib/select.js +4 -6
  35. package/lib/select.ws.js +34 -64
  36. package/lib/shared/theme.js +25 -68
  37. package/lib/sheet.template.js +20 -20
  38. package/lib/switch.js +19 -4
  39. package/lib/switch.template.js +9 -9
  40. package/lib/switch.ws.js +15 -19
  41. package/lib/tabs.js +4 -4
  42. package/lib/tabs.template.js +15 -15
  43. package/lib/tabs.ws.js +16 -30
  44. package/lib/tooltip.ws.js +16 -24
  45. package/lib/types/__generated__/popover.props.d.ts +1 -0
  46. package/lib/types/accordion.ws.d.ts +1 -6
  47. package/lib/types/checkbox.ws.d.ts +1 -3
  48. package/lib/types/collapsible.ws.d.ts +1 -4
  49. package/lib/types/components.d.ts +1 -1
  50. package/lib/types/dialog.ws.d.ts +1 -8
  51. package/lib/types/label.ws.d.ts +1 -2
  52. package/lib/types/metas.d.ts +1 -1
  53. package/lib/types/navigation-menu.ws.d.ts +1 -8
  54. package/lib/types/popover.d.ts +1 -0
  55. package/lib/types/popover.ws.d.ts +2 -4
  56. package/lib/types/radio-group.ws.d.ts +1 -4
  57. package/lib/types/select.d.ts +3 -3
  58. package/lib/types/select.ws.d.ts +1 -9
  59. package/lib/types/switch.ws.d.ts +1 -3
  60. package/lib/types/tabs.ws.d.ts +1 -5
  61. package/lib/types/tooltip.ws.d.ts +1 -4
  62. package/package.json +21 -26
  63. package/lib/props.js +0 -62
  64. package/lib/types/props.d.ts +0 -12
@@ -5,21 +5,13 @@ const e = {
5
5
  type: "boolean",
6
6
  description: "Show or hide the content of this component on the canvas. This will not affect the initial state of the component."
7
7
  }
8
- }, t = {}, r = {
9
- about: { required: !1, control: "text", type: "string" },
10
- accessKey: {
11
- required: !1,
12
- control: "text",
13
- type: "string",
14
- description: "Keyboard shortcut to activate or add focus to the element."
15
- },
8
+ }, o = {}, t = {
16
9
  align: {
17
10
  required: !1,
18
11
  control: "radio",
19
12
  type: "string",
20
13
  defaultValue: "center",
21
- options: ["center", "start", "end"],
22
- description: "Specifies the horizontal alignment of the element."
14
+ options: ["center", "start", "end"]
23
15
  },
24
16
  alignOffset: {
25
17
  required: !1,
@@ -28,125 +20,13 @@ const e = {
28
20
  description: "The offset in pixels from the “start“ or “end“ alignment options."
29
21
  },
30
22
  arrowPadding: { required: !1, control: "number", type: "number" },
31
- autoCapitalize: {
32
- required: !1,
33
- control: "text",
34
- type: "string",
35
- description: "Sets whether input is automatically capitalized when entered by user."
36
- },
37
- autoCorrect: { required: !1, control: "text", type: "string" },
38
- autoFocus: {
39
- required: !1,
40
- control: "boolean",
41
- type: "boolean",
42
- description: "Indicates that an element should be focused on page load, or when its parent dialog is displayed."
43
- },
44
- autoSave: { required: !1, control: "text", type: "string" },
45
23
  avoidCollisions: { required: !1, control: "boolean", type: "boolean" },
46
- className: { required: !1, control: "text", type: "string" },
47
- color: {
48
- required: !1,
49
- control: "color",
50
- type: "string",
51
- 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."
52
- },
53
- content: {
54
- required: !1,
55
- control: "text",
56
- type: "string",
57
- description: "A value associated with http-equiv orname depending on the context."
58
- },
59
- contextMenu: {
60
- required: !1,
61
- control: "text",
62
- type: "string",
63
- description: "Defines the ID of a menu element which willserve as the element's context menu."
64
- },
65
- datatype: { required: !1, control: "text", type: "string" },
66
- defaultValue: { required: !1, control: "text", type: "string" },
67
- dir: {
68
- required: !1,
69
- control: "text",
70
- type: "string",
71
- description: "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)"
72
- },
73
- draggable: {
74
- required: !1,
75
- control: "boolean",
76
- type: "boolean",
77
- description: "Defines whether the element can be dragged."
78
- },
79
- hidden: {
80
- required: !1,
81
- control: "boolean",
82
- type: "boolean",
83
- description: "Prevents rendering of given element, while keeping child elements, e.g. script elements, active."
84
- },
85
24
  hideWhenDetached: {
86
25
  required: !1,
87
26
  control: "boolean",
88
27
  type: "boolean",
89
28
  defaultValue: !0
90
29
  },
91
- id: {
92
- required: !1,
93
- control: "text",
94
- type: "string",
95
- description: "Often used with CSS to style a specific element. The value of this attribute must be unique."
96
- },
97
- inputMode: {
98
- description: "Hints at the type of data that might be entered by the user while editing the element or its contents",
99
- required: !1,
100
- control: "select",
101
- type: "string",
102
- options: [
103
- "search",
104
- "text",
105
- "none",
106
- "tel",
107
- "url",
108
- "email",
109
- "numeric",
110
- "decimal"
111
- ]
112
- },
113
- is: {
114
- description: "Specify that a standard HTML element should behave like a defined custom built-in element",
115
- required: !1,
116
- control: "text",
117
- type: "string"
118
- },
119
- itemID: { required: !1, control: "text", type: "string" },
120
- itemProp: { required: !1, control: "text", type: "string" },
121
- itemRef: { required: !1, control: "text", type: "string" },
122
- itemScope: { required: !1, control: "boolean", type: "boolean" },
123
- itemType: { required: !1, control: "text", type: "string" },
124
- lang: {
125
- required: !1,
126
- control: "text",
127
- type: "string",
128
- description: "Defines the language used in the element."
129
- },
130
- nonce: { required: !1, control: "text", type: "string" },
131
- prefix: { required: !1, control: "text", type: "string" },
132
- property: { required: !1, control: "text", type: "string" },
133
- radioGroup: { required: !1, control: "text", type: "string" },
134
- rel: {
135
- required: !1,
136
- control: "text",
137
- type: "string",
138
- description: "Specifies the relationship of the target object to the link object."
139
- },
140
- resource: { required: !1, control: "text", type: "string" },
141
- results: { required: !1, control: "number", type: "number" },
142
- rev: { required: !1, control: "text", type: "string" },
143
- role: {
144
- required: !1,
145
- control: "text",
146
- type: "string",
147
- description: "Defines an explicit role for an element for use by assistive technologies."
148
- },
149
- security: { required: !1, control: "text", type: "string" },
150
30
  side: {
151
31
  required: !1,
152
32
  control: "select",
@@ -161,70 +41,22 @@ const e = {
161
41
  defaultValue: 4,
162
42
  description: "The distance in pixels between the Content and the Trigger."
163
43
  },
164
- slot: {
165
- required: !1,
166
- control: "text",
167
- type: "string",
168
- description: "Assigns a slot in a shadow DOM shadow tree to an element."
169
- },
170
- spellCheck: {
171
- required: !1,
172
- control: "boolean",
173
- type: "boolean",
174
- description: "Indicates whether spell checking is allowed for the element."
175
- },
176
44
  sticky: {
177
45
  required: !1,
178
46
  control: "radio",
179
47
  type: "string",
180
48
  options: ["partial", "always"]
181
49
  },
182
- suppressContentEditableWarning: {
183
- required: !1,
184
- control: "boolean",
185
- type: "boolean"
186
- },
187
- suppressHydrationWarning: {
188
- required: !1,
189
- control: "boolean",
190
- type: "boolean"
191
- },
192
- tabIndex: {
193
- required: !1,
194
- control: "number",
195
- type: "number",
196
- description: "Overrides the browser's default tab order and follows the one specified instead."
197
- },
198
- title: {
199
- required: !1,
200
- control: "text",
201
- type: "string",
202
- description: "Text to be displayed in a tooltip when hovering over the element."
203
- },
204
- translate: {
205
- required: !1,
206
- control: "radio",
207
- type: "string",
208
- options: ["yes", "no"],
209
- 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."
210
- },
211
- typeof: { required: !1, control: "text", type: "string" },
212
- unselectable: {
213
- required: !1,
214
- control: "radio",
215
- type: "string",
216
- options: ["on", "off"]
217
- },
218
50
  updatePositionStrategy: {
219
51
  required: !1,
220
52
  control: "radio",
221
53
  type: "string",
222
54
  options: ["always", "optimized"]
223
- },
224
- vocab: { required: !1, control: "text", type: "string" }
225
- };
55
+ }
56
+ }, r = {};
226
57
  export {
227
58
  e as propsPopover,
228
- r as propsPopoverContent,
229
- t as propsPopoverTrigger
59
+ r as propsPopoverClose,
60
+ t as propsPopoverContent,
61
+ o as propsPopoverTrigger
230
62
  };