@sunggang/ui-lib 0.3.12 → 0.3.14

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.esm2.js CHANGED
@@ -23196,11 +23196,10 @@ var BaseSwitch = /*#__PURE__*/ React.forwardRef(function(_param, ref) {
23196
23196
  };
23197
23197
  return /*#__PURE__*/ jsxs("div", {
23198
23198
  className: [
23199
- "h-24 w-full",
23200
- item === null || item === void 0 ? void 0 : item.className
23199
+ (item === null || item === void 0 ? void 0 : item.className) || "h-24 w-full"
23201
23200
  ].join(" "),
23202
23201
  children: [
23203
- /*#__PURE__*/ jsx(FieldLabel, {
23202
+ (item === null || item === void 0 ? void 0 : item.closeLabel) ? null : /*#__PURE__*/ jsx(FieldLabel, {
23204
23203
  item: item
23205
23204
  }),
23206
23205
  /*#__PURE__*/ jsx(Controller$2, {
@@ -77308,7 +77307,7 @@ var SingleSelect = function(param) {
77308
77307
  }, group.label) : /*#__PURE__*/ jsx("option", {
77309
77308
  value: group.value,
77310
77309
  children: group.name
77311
- }, group.value);
77310
+ }, "".concat(group.value, "-").concat(v4()));
77312
77311
  })
77313
77312
  })),
77314
77313
  validateMsg(errors, item) && /*#__PURE__*/ jsxs("div", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",
@@ -34,6 +34,7 @@ export interface FormItem {
34
34
  disable?: boolean;
35
35
  style?: any;
36
36
  label?: string;
37
+ closeLabel?: boolean;
37
38
  id?: string;
38
39
  placeholder?: string;
39
40
  className?: string;