@sebgroup/green-react 1.0.0-beta.38 → 1.0.0-beta.39
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/index.esm.js +23 -17
- package/index.umd.js +23 -17
- package/package.json +3 -3
package/index.esm.js
CHANGED
|
@@ -2158,19 +2158,25 @@ const Checkbox = _a => {
|
|
|
2158
2158
|
|
|
2159
2159
|
const inputProps = useInput(props, onChange);
|
|
2160
2160
|
const validatorClassName = validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
|
|
2161
|
-
return
|
|
2162
|
-
children:
|
|
2163
|
-
|
|
2164
|
-
className: `form-control ${validatorClassName}`
|
|
2161
|
+
return jsx(Fragment, {
|
|
2162
|
+
children: jsxs("div", Object.assign({
|
|
2163
|
+
className: "form-group"
|
|
2165
2164
|
}, {
|
|
2166
|
-
children: [
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2165
|
+
children: [jsxs("label", Object.assign({
|
|
2166
|
+
htmlFor: inputProps.id,
|
|
2167
|
+
className: `form-control ${validatorClassName}`
|
|
2168
|
+
}, {
|
|
2169
|
+
children: [label, jsx("input", Object.assign({
|
|
2170
|
+
type: "checkbox"
|
|
2171
|
+
}, inputProps, {
|
|
2172
|
+
className: validatorClassName
|
|
2173
|
+
})), jsx("i", {})]
|
|
2174
|
+
})), validator && jsx("span", Object.assign({
|
|
2175
|
+
className: "form-info"
|
|
2176
|
+
}, {
|
|
2177
|
+
children: validator.message
|
|
2178
|
+
}))]
|
|
2179
|
+
}))
|
|
2174
2180
|
});
|
|
2175
2181
|
};
|
|
2176
2182
|
const RadioButton = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
@@ -2358,9 +2364,9 @@ const RadioGroup = ({
|
|
|
2358
2364
|
children: [jsxs("fieldset", Object.assign({
|
|
2359
2365
|
className: validatorClassName
|
|
2360
2366
|
}, {
|
|
2361
|
-
children: [jsx("legend", {
|
|
2367
|
+
children: [title && jsx("legend", {
|
|
2362
2368
|
children: title
|
|
2363
|
-
}), jsx("span", Object.assign({
|
|
2369
|
+
}), description && jsx("span", Object.assign({
|
|
2364
2370
|
className: "form-info"
|
|
2365
2371
|
}, {
|
|
2366
2372
|
children: description
|
|
@@ -2886,16 +2892,16 @@ const Dropdown = ({
|
|
|
2886
2892
|
})), jsxs("div", Object.assign({}, getListBoxProps(listboxProps), {
|
|
2887
2893
|
ref: listboxRef
|
|
2888
2894
|
}, {
|
|
2889
|
-
children: [
|
|
2895
|
+
children: [jsxs("button", Object.assign({
|
|
2890
2896
|
type: "button",
|
|
2891
2897
|
className: "close m-4 m-sm-2 d-block d-sm-none",
|
|
2892
2898
|
onClick: dropdown === null || dropdown === void 0 ? void 0 : dropdown.close
|
|
2893
2899
|
}, {
|
|
2894
|
-
children: jsx("span", Object.assign({
|
|
2900
|
+
children: [jsx("span", Object.assign({
|
|
2895
2901
|
className: "sr-only"
|
|
2896
2902
|
}, {
|
|
2897
2903
|
children: dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.texts.close
|
|
2898
|
-
}))
|
|
2904
|
+
})), jsx("i", {})]
|
|
2899
2905
|
})), (dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.isMultiSelect) ? jsx("div", Object.assign({
|
|
2900
2906
|
className: "sg-fieldset-container"
|
|
2901
2907
|
}, {
|
package/index.umd.js
CHANGED
|
@@ -2164,19 +2164,25 @@
|
|
|
2164
2164
|
|
|
2165
2165
|
const inputProps = useInput(props, onChange);
|
|
2166
2166
|
const validatorClassName = extract.validateClassName(validator === null || validator === void 0 ? void 0 : validator.indicator);
|
|
2167
|
-
return jsxRuntime.
|
|
2168
|
-
children:
|
|
2169
|
-
|
|
2170
|
-
className: `form-control ${validatorClassName}`
|
|
2167
|
+
return jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
2168
|
+
children: jsxRuntime.jsxs("div", Object.assign({
|
|
2169
|
+
className: "form-group"
|
|
2171
2170
|
}, {
|
|
2172
|
-
children: [
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2171
|
+
children: [jsxRuntime.jsxs("label", Object.assign({
|
|
2172
|
+
htmlFor: inputProps.id,
|
|
2173
|
+
className: `form-control ${validatorClassName}`
|
|
2174
|
+
}, {
|
|
2175
|
+
children: [label, jsxRuntime.jsx("input", Object.assign({
|
|
2176
|
+
type: "checkbox"
|
|
2177
|
+
}, inputProps, {
|
|
2178
|
+
className: validatorClassName
|
|
2179
|
+
})), jsxRuntime.jsx("i", {})]
|
|
2180
|
+
})), validator && jsxRuntime.jsx("span", Object.assign({
|
|
2181
|
+
className: "form-info"
|
|
2182
|
+
}, {
|
|
2183
|
+
children: validator.message
|
|
2184
|
+
}))]
|
|
2185
|
+
}))
|
|
2180
2186
|
});
|
|
2181
2187
|
};
|
|
2182
2188
|
const RadioButton = /*#__PURE__*/React__default["default"].forwardRef((_a, ref) => {
|
|
@@ -2364,9 +2370,9 @@
|
|
|
2364
2370
|
children: [jsxRuntime.jsxs("fieldset", Object.assign({
|
|
2365
2371
|
className: validatorClassName
|
|
2366
2372
|
}, {
|
|
2367
|
-
children: [jsxRuntime.jsx("legend", {
|
|
2373
|
+
children: [title && jsxRuntime.jsx("legend", {
|
|
2368
2374
|
children: title
|
|
2369
|
-
}), jsxRuntime.jsx("span", Object.assign({
|
|
2375
|
+
}), description && jsxRuntime.jsx("span", Object.assign({
|
|
2370
2376
|
className: "form-info"
|
|
2371
2377
|
}, {
|
|
2372
2378
|
children: description
|
|
@@ -2892,16 +2898,16 @@
|
|
|
2892
2898
|
})), jsxRuntime.jsxs("div", Object.assign({}, getListBoxProps(listboxProps), {
|
|
2893
2899
|
ref: listboxRef
|
|
2894
2900
|
}, {
|
|
2895
|
-
children: [jsxRuntime.
|
|
2901
|
+
children: [jsxRuntime.jsxs("button", Object.assign({
|
|
2896
2902
|
type: "button",
|
|
2897
2903
|
className: "close m-4 m-sm-2 d-block d-sm-none",
|
|
2898
2904
|
onClick: dropdown === null || dropdown === void 0 ? void 0 : dropdown.close
|
|
2899
2905
|
}, {
|
|
2900
|
-
children: jsxRuntime.jsx("span", Object.assign({
|
|
2906
|
+
children: [jsxRuntime.jsx("span", Object.assign({
|
|
2901
2907
|
className: "sr-only"
|
|
2902
2908
|
}, {
|
|
2903
2909
|
children: dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.texts.close
|
|
2904
|
-
}))
|
|
2910
|
+
})), jsxRuntime.jsx("i", {})]
|
|
2905
2911
|
})), (dropdown === null || dropdown === void 0 ? void 0 : dropdown.dropdown.isMultiSelect) ? jsxRuntime.jsx("div", Object.assign({
|
|
2906
2912
|
className: "sg-fieldset-container"
|
|
2907
2913
|
}, {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebgroup/green-react",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.39",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^17 || ^18",
|
|
6
6
|
"react-dom": "^17 || ^18"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@sebgroup/chlorophyll": "^1.0.0-beta.
|
|
10
|
-
"@sebgroup/extract": "^1.0.0-beta.
|
|
9
|
+
"@sebgroup/chlorophyll": "^1.0.0-beta.40",
|
|
10
|
+
"@sebgroup/extract": "^1.0.0-beta.39"
|
|
11
11
|
},
|
|
12
12
|
"description": "React components built on top of @sebgroup/chlorophyll.",
|
|
13
13
|
"repository": {
|