@vinyasa/form 1.0.22 → 1.0.23
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/dist/cjs/autocomplete.cjs +709 -309
- package/dist/cjs/autocomplete.css +1 -1
- package/dist/cjs/checkbox.cjs +399 -244
- package/dist/cjs/checkbox.css +5 -1
- package/dist/cjs/color-picker.cjs +478 -325
- package/dist/cjs/color-picker.css +1 -1
- package/dist/cjs/combobox.cjs +574 -359
- package/dist/cjs/combobox.css +1 -1
- package/dist/cjs/date-picker.cjs +522 -322
- package/dist/cjs/date-picker.css +1 -1
- package/dist/cjs/dropzone.cjs +562 -391
- package/dist/cjs/dropzone.css +1 -1
- package/dist/cjs/field.cjs +353 -0
- package/dist/cjs/field.css +139 -0
- package/dist/cjs/file-upload.cjs +667 -380
- package/dist/cjs/file-upload.css +44 -1
- package/dist/cjs/index.cjs +3066 -2546
- package/dist/cjs/index.css +9 -1
- package/dist/cjs/input.cjs +220 -74
- package/dist/cjs/input.css +1 -1
- package/dist/cjs/multi-select.cjs +756 -400
- package/dist/cjs/multi-select.css +1 -1
- package/dist/cjs/number-input.cjs +267 -125
- package/dist/cjs/number-input.css +1 -1
- package/dist/cjs/otp-input.cjs +232 -85
- package/dist/cjs/otp-input.css +1 -1
- package/dist/cjs/password-input.cjs +239 -93
- package/dist/cjs/password-input.css +1 -1
- package/dist/cjs/radio-group.cjs +388 -246
- package/dist/cjs/radio-group.css +1 -1
- package/dist/cjs/range-slider.cjs +106 -62
- package/dist/cjs/rich-text-editor.cjs +549 -517
- package/dist/cjs/rich-text-editor.css +1 -1
- package/dist/cjs/search-input.cjs +244 -98
- package/dist/cjs/search-input.css +1 -1
- package/dist/cjs/select.cjs +485 -353
- package/dist/cjs/select.css +1 -1
- package/dist/cjs/slider.cjs +129 -155
- package/dist/cjs/switch.cjs +376 -239
- package/dist/cjs/switch.css +5 -1
- package/dist/cjs/tags-input.cjs +264 -113
- package/dist/cjs/tags-input.css +1 -1
- package/dist/cjs/textarea.cjs +225 -79
- package/dist/cjs/textarea.css +1 -1
- package/dist/cjs/time-picker.cjs +546 -371
- package/dist/cjs/time-picker.css +1 -1
- package/dist/cjs/toggle-button.cjs +18 -15
- package/dist/esm/{switch.css → 1485.css} +4 -0
- package/dist/esm/1485.js +28 -0
- package/dist/esm/{2995.css → 2315.css} +1 -1
- package/dist/esm/{2995.js → 2315.js} +96 -4
- package/dist/esm/2692.js +114 -0
- package/dist/esm/27.js +23 -27
- package/dist/esm/345.js +81 -0
- package/dist/esm/5074.js +66 -0
- package/dist/esm/5333.js +72 -0
- package/dist/esm/6982.js +35 -0
- package/dist/esm/7580.js +34 -0
- package/dist/esm/7678.js +101 -0
- package/dist/esm/7800.js +131 -0
- package/dist/esm/8479.js +115 -0
- package/dist/esm/{checkbox.css → 9167.css} +4 -0
- package/dist/esm/9167.js +30 -0
- package/dist/esm/9545.js +118 -0
- package/dist/esm/{2942.css → 9559.css} +43 -0
- package/dist/esm/9559.js +179 -0
- package/dist/esm/autocomplete.js +2 -95
- package/dist/esm/checkbox.js +1 -38
- package/dist/esm/color-picker.js +1 -130
- package/dist/esm/combobox.js +1 -126
- package/dist/esm/components/autocomplete/Autocomplete.d.ts +26 -16
- package/dist/esm/components/autocomplete/index.d.ts +1 -3
- package/dist/esm/components/checkbox/Checkbox.d.ts +12 -4
- package/dist/esm/components/checkbox/index.d.ts +1 -3
- package/dist/esm/components/color-picker/ColorPicker.d.ts +28 -21
- package/dist/esm/components/color-picker/index.d.ts +1 -3
- package/dist/esm/components/combobox/Combobox.d.ts +55 -29
- package/dist/esm/components/combobox/index.d.ts +1 -3
- package/dist/esm/components/date-picker/DatePicker.d.ts +28 -24
- package/dist/esm/components/date-picker/index.d.ts +1 -3
- package/dist/esm/components/dropzone/Dropzone.d.ts +52 -9
- package/dist/esm/components/dropzone/index.d.ts +1 -3
- package/dist/esm/components/field/Field.d.ts +106 -0
- package/dist/esm/components/field/index.d.ts +1 -0
- package/dist/esm/components/file-upload/FileUpload.d.ts +11 -18
- package/dist/esm/components/file-upload/index.d.ts +1 -3
- package/dist/esm/components/icon-button/IconButton.d.ts +1 -1
- package/dist/esm/components/input/Input.d.ts +3 -5
- package/dist/esm/components/multi-select/MultiSelect.d.ts +37 -30
- package/dist/esm/components/multi-select/index.d.ts +1 -3
- package/dist/esm/components/number-input/NumberInput.d.ts +3 -5
- package/dist/esm/components/otp-input/OtpInput.d.ts +2 -4
- package/dist/esm/components/password-input/PasswordInput.d.ts +3 -5
- package/dist/esm/components/radio-group/RadioGroup.d.ts +18 -10
- package/dist/esm/components/radio-group/index.d.ts +1 -3
- package/dist/esm/components/range-slider/RangeSlider.d.ts +1 -1
- package/dist/esm/components/rich-text-editor/RichTextEditor.d.ts +44 -7
- package/dist/esm/components/rich-text-editor/index.d.ts +1 -3
- package/dist/esm/components/search-input/SearchInput.d.ts +3 -5
- package/dist/esm/components/select/Select.d.ts +36 -23
- package/dist/esm/components/select/index.d.ts +1 -3
- package/dist/esm/components/slider/Slider.d.ts +17 -10
- package/dist/esm/components/slider/index.d.ts +1 -3
- package/dist/esm/components/switch/Switch.d.ts +10 -5
- package/dist/esm/components/switch/index.d.ts +1 -3
- package/dist/esm/components/tags-input/TagsInput.d.ts +3 -5
- package/dist/esm/components/textarea/Textarea.d.ts +3 -5
- package/dist/esm/components/time-picker/TimePicker.d.ts +31 -23
- package/dist/esm/components/time-picker/index.d.ts +1 -3
- package/dist/esm/date-picker.js +1 -118
- package/dist/esm/dropzone.js +1 -137
- package/dist/esm/field.d.ts +2 -24
- package/dist/esm/field.js +1 -0
- package/dist/esm/file-upload.js +2 -123
- package/dist/esm/index.d.ts +15 -14
- package/dist/esm/index.js +15 -14
- package/dist/esm/input.js +16 -25
- package/dist/esm/multi-select.js +2 -164
- package/dist/esm/number-input.js +65 -78
- package/dist/esm/otp-input.js +31 -38
- package/dist/esm/password-input.js +32 -41
- package/dist/esm/radio-group.js +1 -44
- package/dist/esm/range-slider.js +15 -8
- package/dist/esm/rich-text-editor.js +1 -212
- package/dist/esm/search-input.js +35 -44
- package/dist/esm/select.js +1 -87
- package/dist/esm/slider.js +1 -4
- package/dist/esm/switch.js +1 -36
- package/dist/esm/tags-input.js +51 -59
- package/dist/esm/textarea.js +22 -31
- package/dist/esm/time-picker.js +1 -137
- package/package.json +18 -9
- package/dist/esm/2942.js +0 -13
- package/dist/esm/4557.js +0 -39
- package/dist/esm/dropzone.css +0 -43
- /package/dist/esm/{date-picker.css → 2692.css} +0 -0
- /package/dist/esm/{select.css → 5333.css} +0 -0
- /package/dist/esm/{radio-group.css → 7580.css} +0 -0
- /package/dist/esm/{color-picker.css → 7678.css} +0 -0
- /package/dist/esm/{rich-text-editor.css → 9545.css} +0 -0
package/dist/cjs/radio-group.cjs
CHANGED
|
@@ -1,139 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
400 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
4
|
-
function toPrimitive(t, r) {
|
|
5
|
-
if ("object" != typeof t || !t) return t;
|
|
6
|
-
var e = t[Symbol.toPrimitive];
|
|
7
|
-
if (void 0 !== e) {
|
|
8
|
-
var i = e.call(t, r || "default");
|
|
9
|
-
if ("object" != typeof i) return i;
|
|
10
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
11
|
-
}
|
|
12
|
-
return ("string" === r ? String : Number)(t);
|
|
13
|
-
}
|
|
14
|
-
function toPropertyKey(t) {
|
|
15
|
-
var i = toPrimitive(t, "string");
|
|
16
|
-
return "symbol" == typeof i ? i : String(i);
|
|
17
|
-
}
|
|
18
|
-
function _defineProperty(obj, key, value) {
|
|
19
|
-
key = toPropertyKey(key);
|
|
20
|
-
if (key in obj) Object.defineProperty(obj, key, {
|
|
21
|
-
value: value,
|
|
22
|
-
enumerable: true,
|
|
23
|
-
configurable: true,
|
|
24
|
-
writable: true
|
|
25
|
-
});
|
|
26
|
-
else obj[key] = value;
|
|
27
|
-
return obj;
|
|
28
|
-
}
|
|
29
|
-
function ownKeys(e, r) {
|
|
30
|
-
var t = Object.keys(e);
|
|
31
|
-
if (Object.getOwnPropertySymbols) {
|
|
32
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
33
|
-
r && (o = o.filter(function(r) {
|
|
34
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
35
|
-
})), t.push.apply(t, o);
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
}
|
|
39
|
-
function _objectSpread2(e) {
|
|
40
|
-
for(var r = 1; r < arguments.length; r++){
|
|
41
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
42
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
43
|
-
_defineProperty(e, r, t[r]);
|
|
44
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
45
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
return e;
|
|
49
|
-
}
|
|
50
|
-
function mapValues(input, fn) {
|
|
51
|
-
var result = {};
|
|
52
|
-
for(var _key in input)result[_key] = fn(input[_key], _key);
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
var shouldApplyCompound = (compoundCheck, selections, defaultVariants)=>{
|
|
56
|
-
for (var key of Object.keys(compoundCheck)){
|
|
57
|
-
var _selections$key;
|
|
58
|
-
if (compoundCheck[key] !== (null != (_selections$key = selections[key]) ? _selections$key : defaultVariants[key])) return false;
|
|
59
|
-
}
|
|
60
|
-
return true;
|
|
61
|
-
};
|
|
62
|
-
var createRuntimeFn = (config)=>{
|
|
63
|
-
var runtimeFn = (options)=>{
|
|
64
|
-
var className = config.defaultClassName;
|
|
65
|
-
var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);
|
|
66
|
-
for(var variantName in selections){
|
|
67
|
-
var _selections$variantNa;
|
|
68
|
-
var variantSelection = null != (_selections$variantNa = selections[variantName]) ? _selections$variantNa : config.defaultVariants[variantName];
|
|
69
|
-
if (null != variantSelection) {
|
|
70
|
-
var selection = variantSelection;
|
|
71
|
-
if ('boolean' == typeof selection) selection = true === selection ? 'true' : 'false';
|
|
72
|
-
var selectionClassName = config.variantClassNames[variantName][selection];
|
|
73
|
-
if (selectionClassName) className += ' ' + selectionClassName;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
for (var [compoundCheck, compoundClassName] of config.compoundVariants)if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) className += ' ' + compoundClassName;
|
|
77
|
-
return className;
|
|
78
|
-
};
|
|
79
|
-
runtimeFn.variants = ()=>Object.keys(config.variantClassNames);
|
|
80
|
-
runtimeFn.classNames = {
|
|
81
|
-
get base () {
|
|
82
|
-
return config.defaultClassName.split(' ')[0];
|
|
83
|
-
},
|
|
84
|
-
get variants () {
|
|
85
|
-
return mapValues(config.variantClassNames, (classNames)=>mapValues(classNames, (className)=>className.split(' ')[0]));
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
return runtimeFn;
|
|
89
|
-
};
|
|
90
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
91
|
-
c: ()=>createRuntimeFn
|
|
92
|
-
});
|
|
93
|
-
},
|
|
94
|
-
891 (__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
95
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
96
|
-
g5: ()=>controlLabel,
|
|
97
|
-
O9: ()=>controlRow
|
|
98
|
-
});
|
|
99
|
-
var createRuntimeFn_62c9670f_esm = __webpack_require__(400);
|
|
100
|
-
var controlLabel = 'sbqkrxg';
|
|
101
|
-
var controlRow = 'sbqkrxf';
|
|
102
|
-
(0, createRuntimeFn_62c9670f_esm.c)({
|
|
103
|
-
defaultClassName: 'sbqkrx0',
|
|
104
|
-
variantClassNames: {
|
|
105
|
-
size: {
|
|
106
|
-
sm: 'sbqkrx1',
|
|
107
|
-
md: 'sbqkrx2',
|
|
108
|
-
lg: 'sbqkrx3'
|
|
109
|
-
},
|
|
110
|
-
invalid: {
|
|
111
|
-
true: 'sbqkrx4'
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
defaultVariants: {
|
|
115
|
-
size: 'md'
|
|
116
|
-
},
|
|
117
|
-
compoundVariants: []
|
|
118
|
-
});
|
|
119
|
-
},
|
|
120
|
-
15 (module) {
|
|
121
|
-
module.exports = require("react");
|
|
122
|
-
},
|
|
123
|
-
732 (module) {
|
|
124
|
-
module.exports = require("react/jsx-runtime");
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
var __webpack_module_cache__ = {};
|
|
128
|
-
function __webpack_require__(moduleId) {
|
|
129
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
130
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
131
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
132
|
-
exports: {}
|
|
133
|
-
};
|
|
134
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
135
|
-
return module.exports;
|
|
136
|
-
}
|
|
2
|
+
var __webpack_require__ = {};
|
|
137
3
|
(()=>{
|
|
138
4
|
__webpack_require__.d = (exports1, getters, values)=>{
|
|
139
5
|
var define = (defs, kind)=>{
|
|
@@ -160,141 +26,417 @@ function __webpack_require__(moduleId) {
|
|
|
160
26
|
};
|
|
161
27
|
})();
|
|
162
28
|
var __webpack_exports__ = {};
|
|
163
|
-
(
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
29
|
+
__webpack_require__.r(__webpack_exports__);
|
|
30
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
+
RadioGroup: ()=>RadioGroup,
|
|
32
|
+
RadioGroupIndicator: ()=>RadioGroupIndicator,
|
|
33
|
+
RadioGroupItem: ()=>RadioGroupItem
|
|
34
|
+
});
|
|
35
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
36
|
+
const react_radio_group_namespaceObject = require("@radix-ui/react-radio-group");
|
|
37
|
+
const react_slot_namespaceObject = require("@radix-ui/react-slot");
|
|
38
|
+
const external_react_namespaceObject = require("react");
|
|
39
|
+
function toPrimitive(t, r) {
|
|
40
|
+
if ("object" != typeof t || !t) return t;
|
|
41
|
+
var e = t[Symbol.toPrimitive];
|
|
42
|
+
if (void 0 !== e) {
|
|
43
|
+
var i = e.call(t, r || "default");
|
|
44
|
+
if ("object" != typeof i) return i;
|
|
45
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
46
|
+
}
|
|
47
|
+
return ("string" === r ? String : Number)(t);
|
|
48
|
+
}
|
|
49
|
+
function toPropertyKey(t) {
|
|
50
|
+
var i = toPrimitive(t, "string");
|
|
51
|
+
return "symbol" == typeof i ? i : String(i);
|
|
52
|
+
}
|
|
53
|
+
function _defineProperty(obj, key, value) {
|
|
54
|
+
key = toPropertyKey(key);
|
|
55
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
56
|
+
value: value,
|
|
57
|
+
enumerable: true,
|
|
58
|
+
configurable: true,
|
|
59
|
+
writable: true
|
|
167
60
|
});
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
var
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
61
|
+
else obj[key] = value;
|
|
62
|
+
return obj;
|
|
63
|
+
}
|
|
64
|
+
function createRuntimeFn_62c9670f_esm_ownKeys(e, r) {
|
|
65
|
+
var t = Object.keys(e);
|
|
66
|
+
if (Object.getOwnPropertySymbols) {
|
|
67
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
68
|
+
r && (o = o.filter(function(r) {
|
|
69
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
70
|
+
})), t.push.apply(t, o);
|
|
71
|
+
}
|
|
72
|
+
return t;
|
|
73
|
+
}
|
|
74
|
+
function _objectSpread2(e) {
|
|
75
|
+
for(var r = 1; r < arguments.length; r++){
|
|
76
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
77
|
+
r % 2 ? createRuntimeFn_62c9670f_esm_ownKeys(Object(t), !0).forEach(function(r) {
|
|
78
|
+
_defineProperty(e, r, t[r]);
|
|
79
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : createRuntimeFn_62c9670f_esm_ownKeys(Object(t)).forEach(function(r) {
|
|
80
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
181
81
|
});
|
|
182
|
-
else obj[key] = value;
|
|
183
|
-
return obj;
|
|
184
82
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
return target;
|
|
83
|
+
return e;
|
|
84
|
+
}
|
|
85
|
+
function mapValues(input, fn) {
|
|
86
|
+
var result = {};
|
|
87
|
+
for(var _key in input)result[_key] = fn(input[_key], _key);
|
|
88
|
+
return result;
|
|
89
|
+
}
|
|
90
|
+
var shouldApplyCompound = (compoundCheck, selections, defaultVariants)=>{
|
|
91
|
+
for (var key of Object.keys(compoundCheck)){
|
|
92
|
+
var _selections$key;
|
|
93
|
+
if (compoundCheck[key] !== (null != (_selections$key = selections[key]) ? _selections$key : defaultVariants[key])) return false;
|
|
197
94
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
95
|
+
return true;
|
|
96
|
+
};
|
|
97
|
+
var createRuntimeFn = (config)=>{
|
|
98
|
+
var runtimeFn = (options)=>{
|
|
99
|
+
var className = config.defaultClassName;
|
|
100
|
+
var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);
|
|
101
|
+
for(var variantName in selections){
|
|
102
|
+
var _selections$variantNa;
|
|
103
|
+
var variantSelection = null != (_selections$variantNa = selections[variantName]) ? _selections$variantNa : config.defaultVariants[variantName];
|
|
104
|
+
if (null != variantSelection) {
|
|
105
|
+
var selection = variantSelection;
|
|
106
|
+
if ('boolean' == typeof selection) selection = true === selection ? 'true' : 'false';
|
|
107
|
+
var selectionClassName = config.variantClassNames[variantName][selection];
|
|
108
|
+
if (selectionClassName) className += ' ' + selectionClassName;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
for (var [compoundCheck, compoundClassName] of config.compoundVariants)if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) className += ' ' + compoundClassName;
|
|
112
|
+
return className;
|
|
113
|
+
};
|
|
114
|
+
runtimeFn.variants = ()=>Object.keys(config.variantClassNames);
|
|
115
|
+
runtimeFn.classNames = {
|
|
116
|
+
get base () {
|
|
117
|
+
return config.defaultClassName.split(' ')[0];
|
|
118
|
+
},
|
|
119
|
+
get variants () {
|
|
120
|
+
return mapValues(config.variantClassNames, (classNames)=>mapValues(classNames, (className)=>className.split(' ')[0]));
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
return runtimeFn;
|
|
124
|
+
};
|
|
125
|
+
var descriptionText = 'sbqkrxd';
|
|
126
|
+
var errorText = 'sbqkrxe';
|
|
127
|
+
createRuntimeFn({
|
|
128
|
+
defaultClassName: 'sbqkrx0',
|
|
129
|
+
variantClassNames: {
|
|
130
|
+
size: {
|
|
131
|
+
sm: 'sbqkrx1',
|
|
132
|
+
md: 'sbqkrx2',
|
|
133
|
+
lg: 'sbqkrx3'
|
|
134
|
+
},
|
|
135
|
+
invalid: {
|
|
136
|
+
true: 'sbqkrx4'
|
|
206
137
|
}
|
|
207
|
-
|
|
138
|
+
},
|
|
139
|
+
defaultVariants: {
|
|
140
|
+
size: 'md'
|
|
141
|
+
},
|
|
142
|
+
compoundVariants: []
|
|
143
|
+
});
|
|
144
|
+
var label = 'sbqkrxb';
|
|
145
|
+
var requiredMark = 'sbqkrxc';
|
|
146
|
+
function _define_property(obj, key, value) {
|
|
147
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
148
|
+
value: value,
|
|
149
|
+
enumerable: true,
|
|
150
|
+
configurable: true,
|
|
151
|
+
writable: true
|
|
152
|
+
});
|
|
153
|
+
else obj[key] = value;
|
|
154
|
+
return obj;
|
|
155
|
+
}
|
|
156
|
+
function _object_spread(target) {
|
|
157
|
+
for(var i = 1; i < arguments.length; i++){
|
|
158
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
159
|
+
var ownKeys = Object.keys(source);
|
|
160
|
+
if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
161
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
162
|
+
}));
|
|
163
|
+
ownKeys.forEach(function(key) {
|
|
164
|
+
_define_property(target, key, source[key]);
|
|
165
|
+
});
|
|
208
166
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
167
|
+
return target;
|
|
168
|
+
}
|
|
169
|
+
function Field_ownKeys(object, enumerableOnly) {
|
|
170
|
+
var keys = Object.keys(object);
|
|
171
|
+
if (Object.getOwnPropertySymbols) {
|
|
172
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
173
|
+
if (enumerableOnly) symbols = symbols.filter(function(sym) {
|
|
174
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
214
175
|
});
|
|
176
|
+
keys.push.apply(keys, symbols);
|
|
177
|
+
}
|
|
178
|
+
return keys;
|
|
179
|
+
}
|
|
180
|
+
function _object_spread_props(target, source) {
|
|
181
|
+
source = null != source ? source : {};
|
|
182
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
183
|
+
else Field_ownKeys(Object(source)).forEach(function(key) {
|
|
184
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
185
|
+
});
|
|
186
|
+
return target;
|
|
187
|
+
}
|
|
188
|
+
function _object_without_properties(source, excluded) {
|
|
189
|
+
if (null == source) return {};
|
|
190
|
+
var target = {}, sourceKeys, key, i;
|
|
191
|
+
if ("u" > typeof Reflect && Reflect.ownKeys) {
|
|
192
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
193
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
194
|
+
key = sourceKeys[i];
|
|
195
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
196
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
197
|
+
}
|
|
198
|
+
}
|
|
215
199
|
return target;
|
|
216
200
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
key =
|
|
224
|
-
if (!(excluded.indexOf(key) >= 0)) {
|
|
225
|
-
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
226
|
-
}
|
|
201
|
+
target = _object_without_properties_loose(source, excluded);
|
|
202
|
+
if (Object.getOwnPropertySymbols) {
|
|
203
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
204
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
205
|
+
key = sourceKeys[i];
|
|
206
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
207
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
227
208
|
}
|
|
228
|
-
return target;
|
|
229
209
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
210
|
+
}
|
|
211
|
+
return target;
|
|
212
|
+
}
|
|
213
|
+
function _object_without_properties_loose(source, excluded) {
|
|
214
|
+
if (null == source) return {};
|
|
215
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
216
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
217
|
+
key = sourceKeys[i];
|
|
218
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
219
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return target;
|
|
223
|
+
}
|
|
224
|
+
const FieldContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)(null);
|
|
225
|
+
const useFieldContext = ()=>(0, external_react_namespaceObject.useContext)(FieldContext);
|
|
226
|
+
const useResolvedFieldProps = (props)=>{
|
|
227
|
+
var _ref, _props_id, _ref1, _props_invalid, _props_describedBy;
|
|
228
|
+
const context = useFieldContext();
|
|
229
|
+
const generatedId = (0, external_react_namespaceObject.useId)();
|
|
230
|
+
return {
|
|
231
|
+
id: null != (_ref = null != (_props_id = props.id) ? _props_id : null == context ? void 0 : context.id) ? _ref : generatedId,
|
|
232
|
+
invalid: null != (_ref1 = null != (_props_invalid = props.invalid) ? _props_invalid : null == context ? void 0 : context.invalid) ? _ref1 : false,
|
|
233
|
+
describedBy: null != (_props_describedBy = props.describedBy) ? _props_describedBy : null == context ? void 0 : context.describedBy
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
const Field = (_0)=>{
|
|
237
|
+
let { invalid = false, children } = _0, rest = _object_without_properties(_0, [
|
|
238
|
+
"invalid",
|
|
239
|
+
"children"
|
|
240
|
+
]);
|
|
241
|
+
const generatedId = (0, external_react_namespaceObject.useId)();
|
|
242
|
+
const descriptionId = `${generatedId}-description`;
|
|
243
|
+
const errorId = `${generatedId}-error`;
|
|
244
|
+
const labelId = `${generatedId}-label`;
|
|
245
|
+
const directChildren = external_react_namespaceObject.Children.toArray(children).filter(external_react_namespaceObject.isValidElement);
|
|
246
|
+
const describedByIds = directChildren.reduce((ids, child)=>{
|
|
247
|
+
if (child.type === FieldDescription) ids.push(descriptionId);
|
|
248
|
+
if (child.type === FieldError) ids.push(errorId);
|
|
249
|
+
return ids;
|
|
250
|
+
}, []);
|
|
251
|
+
const labelChild = directChildren.find((child)=>child.type === FieldLabel);
|
|
252
|
+
const labelChildText = labelChild && 'string' == typeof labelChild.props.children ? labelChild.props.children : void 0;
|
|
253
|
+
const value = {
|
|
254
|
+
id: generatedId,
|
|
255
|
+
descriptionId,
|
|
256
|
+
errorId,
|
|
257
|
+
describedBy: describedByIds.length > 0 ? describedByIds.join(' ') : void 0,
|
|
258
|
+
invalid,
|
|
259
|
+
labelId: labelChild ? labelId : void 0,
|
|
260
|
+
labelText: labelChildText
|
|
261
|
+
};
|
|
262
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(FieldContext.Provider, {
|
|
263
|
+
value: value,
|
|
264
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread_props(_object_spread({}, rest), {
|
|
265
|
+
children: children
|
|
266
|
+
}))
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
Field.displayName = 'Field';
|
|
270
|
+
const FieldLabel = (_0)=>{
|
|
271
|
+
let { required, htmlFor, id, children } = _0, rest = _object_without_properties(_0, [
|
|
272
|
+
"required",
|
|
273
|
+
"htmlFor",
|
|
274
|
+
"id",
|
|
275
|
+
"children"
|
|
276
|
+
]);
|
|
277
|
+
const context = useFieldContext();
|
|
278
|
+
const resolvedHtmlFor = false === htmlFor ? void 0 : null != htmlFor ? htmlFor : null == context ? void 0 : context.id;
|
|
279
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("label", _object_spread_props(_object_spread({
|
|
280
|
+
htmlFor: resolvedHtmlFor,
|
|
281
|
+
id: null != id ? id : null == context ? void 0 : context.labelId,
|
|
282
|
+
className: label
|
|
283
|
+
}, rest), {
|
|
284
|
+
children: [
|
|
285
|
+
children,
|
|
286
|
+
required ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
287
|
+
className: requiredMark,
|
|
288
|
+
"aria-hidden": "true",
|
|
289
|
+
children: "*"
|
|
290
|
+
}) : null
|
|
291
|
+
]
|
|
292
|
+
}));
|
|
293
|
+
};
|
|
294
|
+
FieldLabel.displayName = 'FieldLabel';
|
|
295
|
+
const FieldControl = (_0)=>{
|
|
296
|
+
let { children } = _0, rest = _object_without_properties(_0, [
|
|
297
|
+
"children"
|
|
298
|
+
]);
|
|
299
|
+
const context = useFieldContext();
|
|
300
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_slot_namespaceObject.Slot, _object_spread_props(_object_spread({
|
|
301
|
+
id: null == context ? void 0 : context.id,
|
|
302
|
+
"aria-describedby": null == context ? void 0 : context.describedBy,
|
|
303
|
+
"aria-invalid": null == context ? void 0 : context.invalid
|
|
304
|
+
}, rest), {
|
|
305
|
+
children: children
|
|
306
|
+
}));
|
|
307
|
+
};
|
|
308
|
+
FieldControl.displayName = 'FieldControl';
|
|
309
|
+
const FieldDescription = (_0)=>{
|
|
310
|
+
let { id } = _0, rest = _object_without_properties(_0, [
|
|
311
|
+
"id"
|
|
312
|
+
]);
|
|
313
|
+
const context = useFieldContext();
|
|
314
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", _object_spread({
|
|
315
|
+
id: null != id ? id : null == context ? void 0 : context.descriptionId,
|
|
316
|
+
className: descriptionText
|
|
317
|
+
}, rest));
|
|
318
|
+
};
|
|
319
|
+
FieldDescription.displayName = "FieldDescription";
|
|
320
|
+
const FieldError = (_0)=>{
|
|
321
|
+
let { id } = _0, rest = _object_without_properties(_0, [
|
|
322
|
+
"id"
|
|
323
|
+
]);
|
|
324
|
+
const context = useFieldContext();
|
|
325
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", _object_spread({
|
|
326
|
+
id: null != id ? id : null == context ? void 0 : context.errorId,
|
|
327
|
+
className: errorText,
|
|
328
|
+
role: "alert"
|
|
329
|
+
}, rest));
|
|
330
|
+
};
|
|
331
|
+
FieldError.displayName = 'FieldError';
|
|
332
|
+
var indicator = 'n31tav2';
|
|
333
|
+
var item = 'n31tav1';
|
|
334
|
+
var root = 'n31tav0';
|
|
335
|
+
function RadioGroup_define_property(obj, key, value) {
|
|
336
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
337
|
+
value: value,
|
|
338
|
+
enumerable: true,
|
|
339
|
+
configurable: true,
|
|
340
|
+
writable: true
|
|
341
|
+
});
|
|
342
|
+
else obj[key] = value;
|
|
343
|
+
return obj;
|
|
344
|
+
}
|
|
345
|
+
function RadioGroup_object_spread(target) {
|
|
346
|
+
for(var i = 1; i < arguments.length; i++){
|
|
347
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
348
|
+
var ownKeys = Object.keys(source);
|
|
349
|
+
if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
350
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
351
|
+
}));
|
|
352
|
+
ownKeys.forEach(function(key) {
|
|
353
|
+
RadioGroup_define_property(target, key, source[key]);
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
return target;
|
|
357
|
+
}
|
|
358
|
+
function RadioGroup_object_without_properties(source, excluded) {
|
|
359
|
+
if (null == source) return {};
|
|
360
|
+
var target = {}, sourceKeys, key, i;
|
|
361
|
+
if ("u" > typeof Reflect && Reflect.ownKeys) {
|
|
362
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
363
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
364
|
+
key = sourceKeys[i];
|
|
365
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
366
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
238
367
|
}
|
|
239
368
|
}
|
|
240
369
|
return target;
|
|
241
370
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
371
|
+
target = RadioGroup_object_without_properties_loose(source, excluded);
|
|
372
|
+
if (Object.getOwnPropertySymbols) {
|
|
373
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
245
374
|
for(i = 0; i < sourceKeys.length; i++){
|
|
246
375
|
key = sourceKeys[i];
|
|
247
376
|
if (!(excluded.indexOf(key) >= 0)) {
|
|
248
377
|
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
249
378
|
}
|
|
250
379
|
}
|
|
251
|
-
return target;
|
|
252
380
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
className: item,
|
|
277
|
-
children: /*#__PURE__*/ (0, jsx_runtime_.jsx)(react_radio_group_namespaceObject.Indicator, {
|
|
278
|
-
className: indicator
|
|
279
|
-
})
|
|
280
|
-
}),
|
|
281
|
-
/*#__PURE__*/ (0, jsx_runtime_.jsx)("label", {
|
|
282
|
-
htmlFor: optionId,
|
|
283
|
-
className: field_css.g5,
|
|
284
|
-
children: option.label
|
|
285
|
-
})
|
|
286
|
-
]
|
|
287
|
-
}, option.value);
|
|
288
|
-
})
|
|
289
|
-
}));
|
|
381
|
+
return target;
|
|
382
|
+
}
|
|
383
|
+
function RadioGroup_object_without_properties_loose(source, excluded) {
|
|
384
|
+
if (null == source) return {};
|
|
385
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
386
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
387
|
+
key = sourceKeys[i];
|
|
388
|
+
if (!(excluded.indexOf(key) >= 0)) {
|
|
389
|
+
if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return target;
|
|
393
|
+
}
|
|
394
|
+
const RadioGroup = (_0)=>{
|
|
395
|
+
let { className, invalid, id: idProp } = _0, rest = RadioGroup_object_without_properties(_0, [
|
|
396
|
+
"className",
|
|
397
|
+
"invalid",
|
|
398
|
+
"id"
|
|
399
|
+
]);
|
|
400
|
+
var _useFieldContext;
|
|
401
|
+
const { id, invalid: isInvalid, describedBy } = useResolvedFieldProps({
|
|
402
|
+
id: idProp,
|
|
403
|
+
invalid
|
|
290
404
|
});
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
405
|
+
const labelId = null == (_useFieldContext = useFieldContext()) ? void 0 : _useFieldContext.labelId;
|
|
406
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Root, RadioGroup_object_spread({
|
|
407
|
+
id: id,
|
|
408
|
+
"aria-labelledby": labelId,
|
|
409
|
+
"aria-invalid": isInvalid,
|
|
410
|
+
"aria-describedby": describedBy,
|
|
411
|
+
className: className ? `${root} ${className}` : root
|
|
412
|
+
}, rest));
|
|
413
|
+
};
|
|
414
|
+
RadioGroup.displayName = 'RadioGroup';
|
|
415
|
+
const RadioGroupItem = (_0)=>{
|
|
416
|
+
let { className } = _0, rest = RadioGroup_object_without_properties(_0, [
|
|
417
|
+
"className"
|
|
418
|
+
]);
|
|
419
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Item, RadioGroup_object_spread({
|
|
420
|
+
className: className ? `${item} ${className}` : item
|
|
421
|
+
}, rest));
|
|
422
|
+
};
|
|
423
|
+
RadioGroupItem.displayName = 'RadioGroupItem';
|
|
424
|
+
const RadioGroupIndicator = (_0)=>{
|
|
425
|
+
let { className } = _0, rest = RadioGroup_object_without_properties(_0, [
|
|
426
|
+
"className"
|
|
427
|
+
]);
|
|
428
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_radio_group_namespaceObject.Indicator, RadioGroup_object_spread({
|
|
429
|
+
className: className ? `${indicator} ${className}` : indicator
|
|
430
|
+
}, rest));
|
|
431
|
+
};
|
|
432
|
+
RadioGroupIndicator.displayName = 'RadioGroupIndicator';
|
|
433
|
+
exports.RadioGroup = __webpack_exports__.RadioGroup;
|
|
434
|
+
exports.RadioGroupIndicator = __webpack_exports__.RadioGroupIndicator;
|
|
435
|
+
exports.RadioGroupItem = __webpack_exports__.RadioGroupItem;
|
|
296
436
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
297
|
-
"
|
|
437
|
+
"RadioGroup",
|
|
438
|
+
"RadioGroupIndicator",
|
|
439
|
+
"RadioGroupItem"
|
|
298
440
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
299
441
|
Object.defineProperty(exports, '__esModule', {
|
|
300
442
|
value: true
|