@sunggang/ui-lib 0.3.10 → 0.3.11

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.
@@ -66826,11 +66826,11 @@ var BaseCkeditor = function(param) {
66826
66826
  }
66827
66827
  var editorElement = editor.ui.view.editable.element;
66828
66828
  if (editorElement) {
66829
- editorElement.style.minHeight = (item === null || item === void 0 ? void 0 : item.height) || "200px";
66829
+ editorElement.style.height = (item === null || item === void 0 ? void 0 : item.height) || "300px";
66830
66830
  editorElement.style.backgroundColor = (item === null || item === void 0 ? void 0 : item.bgColor) || "white";
66831
66831
  // Focus時高度維持一樣
66832
66832
  editor.ui.view.editable.on("change:isFocused", function() {
66833
- editorElement.style.minHeight = (item === null || item === void 0 ? void 0 : item.height) || "200px";
66833
+ editorElement.style.height = (item === null || item === void 0 ? void 0 : item.height) || "300px";
66834
66834
  editorElement.style.backgroundColor = (item === null || item === void 0 ? void 0 : item.bgColor) || "white";
66835
66835
  });
66836
66836
  }
package/index.esm2.js CHANGED
@@ -77328,13 +77328,13 @@ var SingleSelect = function(param) {
77328
77328
  };
77329
77329
  var MultipleSelect = function(param) {
77330
77330
  var _param_className = param.className, className = _param_className === void 0 ? "min-h-[6rem]" : _param_className, item = param.item;
77331
- var _item_validateOption;
77331
+ var _item_option, _item_validateOption;
77332
77332
  var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors;
77333
- var newOptions = item === null || item === void 0 ? void 0 : item.option.map(function(v) {
77333
+ var newOptions = (item === null || item === void 0 ? void 0 : (_item_option = item.option) === null || _item_option === void 0 ? void 0 : _item_option.length) ? item === null || item === void 0 ? void 0 : item.option.map(function(v) {
77334
77334
  return _object_spread_props(_object_spread({}, v), {
77335
- label: v.name
77335
+ label: v === null || v === void 0 ? void 0 : v.name
77336
77336
  });
77337
- });
77337
+ }) : [];
77338
77338
  var isDisabled = (item === null || item === void 0 ? void 0 : item.disable) || (item === null || item === void 0 ? void 0 : item.disabled);
77339
77339
  var customStyles = {
77340
77340
  control: function(provided) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.10",
3
+ "version": "0.3.11",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",