@univerjs/docs-drawing-ui 1.4.0 → 1.5.1

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/README.md CHANGED
@@ -8,9 +8,9 @@
8
8
 
9
9
  ## Package Overview
10
10
 
11
- | Package | UMD global | CSS | Locales | Facade entry |
12
- | --- | --- | :---: | :---: | :---: |
13
- | `@univerjs/docs-drawing-ui` | `UniverDocsDrawingUi` | Yes | Yes | No |
11
+ | Package | UMD global | CSS | Locales | Facade entry | Worker entry |
12
+ | --- | --- | :---: | :---: | :---: | :---: |
13
+ | `@univerjs/docs-drawing-ui` | `UniverDocsDrawingUi` | Yes | Yes | No | No |
14
14
 
15
15
  ## Installation
16
16
 
@@ -20,10 +20,10 @@ pnpm add @univerjs/docs-drawing-ui
20
20
  npm install @univerjs/docs-drawing-ui
21
21
  ```
22
22
 
23
- Keep all `@univerjs/*` packages on the same version.
24
-
25
23
  ## Usage
26
24
 
25
+ Start with the [integration setup](https://docs.univer.ai/) for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
26
+
27
27
  ```ts
28
28
  import '@univerjs/docs-drawing-ui/lib/index.css';
29
29
  import EnUS from '@univerjs/docs-drawing-ui/locale/en-US';
package/lib/cjs/index.js CHANGED
@@ -269,7 +269,7 @@ const UngroupDocDrawingCommand = {
269
269
  handler: (accessor, params) => changeDocDrawingGroups(accessor, params, true)
270
270
  };
271
271
 
272
- // \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
272
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
273
273
  function _typeof(o) {
274
274
  "@babel/helpers - typeof";
275
275
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -279,25 +279,25 @@ function _typeof(o) {
279
279
  }, _typeof(o);
280
280
  }
281
281
 
282
- // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
283
- function toPrimitive(t, r) {
282
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
283
+ function toPrimitive(t, e) {
284
284
  if ("object" != _typeof(t) || !t) return t;
285
- var e = t[Symbol.toPrimitive];
286
- if (void 0 !== e) {
287
- var i = e.call(t, r || "default");
285
+ var r;
286
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
287
+ var i = r.call(t, e || "default");
288
288
  if ("object" != _typeof(i)) return i;
289
289
  throw new TypeError("@@toPrimitive must return a primitive value.");
290
290
  }
291
- return ("string" === r ? String : Number)(t);
291
+ return ("string" === e ? String : Number)(t);
292
292
  }
293
293
 
294
- // \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
294
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
295
295
  function toPropertyKey(t) {
296
296
  var i = toPrimitive(t, "string");
297
297
  return "symbol" == _typeof(i) ? i : i + "";
298
298
  }
299
299
 
300
- // \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
300
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
301
301
  function _defineProperty(e, r, t) {
302
302
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
303
303
  value: t,
@@ -450,14 +450,14 @@ function getDocMutationAffectedDrawingIds(actions) {
450
450
  return !sawComponent || needsFullRefresh ? null : drawingIds;
451
451
  }
452
452
 
453
- // \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
453
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
454
454
  function __decorateParam(paramIndex, decorator) {
455
455
  return function(target, key) {
456
456
  decorator(target, key, paramIndex);
457
457
  };
458
458
  }
459
459
 
460
- // \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
460
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
461
461
  function __decorate(decorators, target, key, desc) {
462
462
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
463
463
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1780,7 +1780,7 @@ const menuSchema = {
1780
1780
 
1781
1781
  // package.json
1782
1782
  var name = "@univerjs/docs-drawing-ui";
1783
- var version = "1.4.0";
1783
+ var version = "1.5.1";
1784
1784
 
1785
1785
  // src/config/config.ts
1786
1786
  /**
@@ -4201,8 +4201,7 @@ function MobileDocDrawingPositionControls(props) {
4201
4201
  className: "univer-grid univer-gap-2 univer-text-sm",
4202
4202
  children: [localeService.t("docs-drawing-ui.image-position.absolutePosition"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
4203
4203
  disabled: props.disabled,
4204
- className: "univer-h-12 univer-w-full",
4205
- inputClassName: "[&_input]:!univer-h-12 [&_input]:!univer-text-base",
4204
+ className: "univer-w-full",
4206
4205
  controls: false,
4207
4206
  min: props.minOffset,
4208
4207
  max: props.maxOffset,
@@ -4210,7 +4209,8 @@ function MobileDocDrawingPositionControls(props) {
4210
4209
  value: axis.position.posOffset ?? 0,
4211
4210
  onChange: (value) => {
4212
4211
  if (value != null) axis.onOffsetChange(value);
4213
- }
4212
+ },
4213
+ size: "small"
4214
4214
  })]
4215
4215
  }),
4216
4216
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
@@ -4222,7 +4222,7 @@ function MobileDocDrawingPositionControls(props) {
4222
4222
  variant: "subtle",
4223
4223
  disabled: props.disabled || option.disabled,
4224
4224
  "aria-pressed": String(axis.position.relativeFrom) === option.value,
4225
- className: "univer-px-3 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4225
+ className: "univer-px-3 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4226
4226
  onClick: () => axis.onReferenceChange(option.value)
4227
4227
  }, option.value))
4228
4228
  })
@@ -4513,7 +4513,7 @@ function MobileDocDrawingTextWrapControls(props) {
4513
4513
  title: localeService.t(option.label),
4514
4514
  variant: "subtle",
4515
4515
  "aria-pressed": props.wrapText === option.value,
4516
- className: "univer-px-2 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4516
+ className: "univer-px-2 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4517
4517
  onClick: () => props.onWrapTextChange(option.value)
4518
4518
  }, option.value))
4519
4519
  })]
@@ -4528,14 +4528,14 @@ function MobileDocDrawingTextWrapControls(props) {
4528
4528
  children: distances.filter(({ key }) => key === "distT" || key === "distB" ? !props.disableDistTB : !props.disableDistLR).map(({ key, label }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
4529
4529
  className: "univer-grid univer-gap-2 univer-text-sm",
4530
4530
  children: [localeService.t(label), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_univerjs_design.InputNumber, {
4531
- className: "univer-h-12 univer-w-full",
4532
- inputClassName: "[&_input]:!univer-h-12 [&_input]:!univer-text-base",
4531
+ className: "univer-w-full",
4533
4532
  controls: false,
4534
4533
  min: props.minMargin,
4535
4534
  max: props.maxMargin,
4536
4535
  precision: 1,
4537
4536
  value: props.distToText[key] ?? 0,
4538
- onChange: (value) => props.onDistanceChange(value, key)
4537
+ onChange: (value) => props.onDistanceChange(value, key),
4538
+ size: "small"
4539
4539
  })]
4540
4540
  }, key))
4541
4541
  })]
@@ -4567,6 +4567,21 @@ function MobileDocDrawingTextWrapContent(props) {
4567
4567
  }
4568
4568
 
4569
4569
  // src/views/doc-image-panel/MobileDocDrawingPanel.tsx
4570
+ /**
4571
+ * Copyright 2023-present DreamNum Co., Ltd.
4572
+ *
4573
+ * Licensed under the Apache License, Version 2.0 (the "License");
4574
+ * you may not use this file except in compliance with the License.
4575
+ * You may obtain a copy of the License at
4576
+ *
4577
+ * http://www.apache.org/licenses/LICENSE-2.0
4578
+ *
4579
+ * Unless required by applicable law or agreed to in writing, software
4580
+ * distributed under the License is distributed on an "AS IS" BASIS,
4581
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4582
+ * See the License for the specific language governing permissions and
4583
+ * limitations under the License.
4584
+ */
4570
4585
  const tabs = [
4571
4586
  {
4572
4587
  value: "image",
@@ -4596,7 +4611,7 @@ function MobileDocDrawingPanel() {
4596
4611
  "aria-pressed": tab === item.value,
4597
4612
  title: localeService.t(item.label),
4598
4613
  variant: "subtle",
4599
- className: "univer-min-w-0 univer-px-2 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4614
+ className: "univer-min-w-0 univer-px-2 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4600
4615
  onClick: () => setTab(item.value)
4601
4616
  }, item.value))
4602
4617
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [
package/lib/es/index.js CHANGED
@@ -268,7 +268,7 @@ const UngroupDocDrawingCommand = {
268
268
  handler: (accessor, params) => changeDocDrawingGroups(accessor, params, true)
269
269
  };
270
270
 
271
- // \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
271
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
272
272
  function _typeof(o) {
273
273
  "@babel/helpers - typeof";
274
274
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -278,25 +278,25 @@ function _typeof(o) {
278
278
  }, _typeof(o);
279
279
  }
280
280
 
281
- // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
282
- function toPrimitive(t, r) {
281
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
282
+ function toPrimitive(t, e) {
283
283
  if ("object" != _typeof(t) || !t) return t;
284
- var e = t[Symbol.toPrimitive];
285
- if (void 0 !== e) {
286
- var i = e.call(t, r || "default");
284
+ var r;
285
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
286
+ var i = r.call(t, e || "default");
287
287
  if ("object" != _typeof(i)) return i;
288
288
  throw new TypeError("@@toPrimitive must return a primitive value.");
289
289
  }
290
- return ("string" === r ? String : Number)(t);
290
+ return ("string" === e ? String : Number)(t);
291
291
  }
292
292
 
293
- // \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
293
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
294
294
  function toPropertyKey(t) {
295
295
  var i = toPrimitive(t, "string");
296
296
  return "symbol" == _typeof(i) ? i : i + "";
297
297
  }
298
298
 
299
- // \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
299
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
300
300
  function _defineProperty(e, r, t) {
301
301
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
302
302
  value: t,
@@ -449,14 +449,14 @@ function getDocMutationAffectedDrawingIds(actions) {
449
449
  return !sawComponent || needsFullRefresh ? null : drawingIds;
450
450
  }
451
451
 
452
- // \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
452
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
453
453
  function __decorateParam(paramIndex, decorator) {
454
454
  return function(target, key) {
455
455
  decorator(target, key, paramIndex);
456
456
  };
457
457
  }
458
458
 
459
- // \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
459
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
460
460
  function __decorate(decorators, target, key, desc) {
461
461
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
462
462
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1779,7 +1779,7 @@ const menuSchema = {
1779
1779
 
1780
1780
  // package.json
1781
1781
  var name = "@univerjs/docs-drawing-ui";
1782
- var version = "1.4.0";
1782
+ var version = "1.5.1";
1783
1783
 
1784
1784
  // src/config/config.ts
1785
1785
  /**
@@ -4200,8 +4200,7 @@ function MobileDocDrawingPositionControls(props) {
4200
4200
  className: "univer-grid univer-gap-2 univer-text-sm",
4201
4201
  children: [localeService.t("docs-drawing-ui.image-position.absolutePosition"), /* @__PURE__ */ jsx(InputNumber, {
4202
4202
  disabled: props.disabled,
4203
- className: "univer-h-12 univer-w-full",
4204
- inputClassName: "[&_input]:!univer-h-12 [&_input]:!univer-text-base",
4203
+ className: "univer-w-full",
4205
4204
  controls: false,
4206
4205
  min: props.minOffset,
4207
4206
  max: props.maxOffset,
@@ -4209,7 +4208,8 @@ function MobileDocDrawingPositionControls(props) {
4209
4208
  value: axis.position.posOffset ?? 0,
4210
4209
  onChange: (value) => {
4211
4210
  if (value != null) axis.onOffsetChange(value);
4212
- }
4211
+ },
4212
+ size: "small"
4213
4213
  })]
4214
4214
  }),
4215
4215
  /* @__PURE__ */ jsx("div", {
@@ -4221,7 +4221,7 @@ function MobileDocDrawingPositionControls(props) {
4221
4221
  variant: "subtle",
4222
4222
  disabled: props.disabled || option.disabled,
4223
4223
  "aria-pressed": String(axis.position.relativeFrom) === option.value,
4224
- className: "univer-px-3 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4224
+ className: "univer-px-3 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4225
4225
  onClick: () => axis.onReferenceChange(option.value)
4226
4226
  }, option.value))
4227
4227
  })
@@ -4512,7 +4512,7 @@ function MobileDocDrawingTextWrapControls(props) {
4512
4512
  title: localeService.t(option.label),
4513
4513
  variant: "subtle",
4514
4514
  "aria-pressed": props.wrapText === option.value,
4515
- className: "univer-px-2 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4515
+ className: "univer-px-2 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4516
4516
  onClick: () => props.onWrapTextChange(option.value)
4517
4517
  }, option.value))
4518
4518
  })]
@@ -4527,14 +4527,14 @@ function MobileDocDrawingTextWrapControls(props) {
4527
4527
  children: distances.filter(({ key }) => key === "distT" || key === "distB" ? !props.disableDistTB : !props.disableDistLR).map(({ key, label }) => /* @__PURE__ */ jsxs("label", {
4528
4528
  className: "univer-grid univer-gap-2 univer-text-sm",
4529
4529
  children: [localeService.t(label), /* @__PURE__ */ jsx(InputNumber, {
4530
- className: "univer-h-12 univer-w-full",
4531
- inputClassName: "[&_input]:!univer-h-12 [&_input]:!univer-text-base",
4530
+ className: "univer-w-full",
4532
4531
  controls: false,
4533
4532
  min: props.minMargin,
4534
4533
  max: props.maxMargin,
4535
4534
  precision: 1,
4536
4535
  value: props.distToText[key] ?? 0,
4537
- onChange: (value) => props.onDistanceChange(value, key)
4536
+ onChange: (value) => props.onDistanceChange(value, key),
4537
+ size: "small"
4538
4538
  })]
4539
4539
  }, key))
4540
4540
  })]
@@ -4566,6 +4566,21 @@ function MobileDocDrawingTextWrapContent(props) {
4566
4566
  }
4567
4567
 
4568
4568
  // src/views/doc-image-panel/MobileDocDrawingPanel.tsx
4569
+ /**
4570
+ * Copyright 2023-present DreamNum Co., Ltd.
4571
+ *
4572
+ * Licensed under the Apache License, Version 2.0 (the "License");
4573
+ * you may not use this file except in compliance with the License.
4574
+ * You may obtain a copy of the License at
4575
+ *
4576
+ * http://www.apache.org/licenses/LICENSE-2.0
4577
+ *
4578
+ * Unless required by applicable law or agreed to in writing, software
4579
+ * distributed under the License is distributed on an "AS IS" BASIS,
4580
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4581
+ * See the License for the specific language governing permissions and
4582
+ * limitations under the License.
4583
+ */
4569
4584
  const tabs = [
4570
4585
  {
4571
4586
  value: "image",
@@ -4595,7 +4610,7 @@ function MobileDocDrawingPanel() {
4595
4610
  "aria-pressed": tab === item.value,
4596
4611
  title: localeService.t(item.label),
4597
4612
  variant: "subtle",
4598
- className: "univer-min-w-0 univer-px-2 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4613
+ className: "univer-min-w-0 univer-px-2 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4599
4614
  onClick: () => setTab(item.value)
4600
4615
  }, item.value))
4601
4616
  }), /* @__PURE__ */ jsxs("div", { children: [
package/lib/index.css CHANGED
@@ -26,10 +26,6 @@
26
26
  display: none;
27
27
  }
28
28
 
29
- .univer-h-12 {
30
- height: 3rem;
31
- }
32
-
33
29
  .univer-w-full {
34
30
  width: 100%;
35
31
  }
@@ -129,12 +125,3 @@
129
125
  .\[\&\>div\]\:univer-gap-2 > div {
130
126
  gap: .5rem;
131
127
  }
132
-
133
- .\[\&_input\]\:\!univer-h-12 input {
134
- height: 3rem !important;
135
- }
136
-
137
- .\[\&_input\]\:\!univer-text-base input {
138
- font-size: 1rem !important;
139
- line-height: 1.5rem !important;
140
- }
package/lib/index.js CHANGED
@@ -268,7 +268,7 @@ const UngroupDocDrawingCommand = {
268
268
  handler: (accessor, params) => changeDocDrawingGroups(accessor, params, true)
269
269
  };
270
270
 
271
- // \0@oxc-project+runtime@0.156.0/helpers/esm/typeof.js
271
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/typeof.js
272
272
  function _typeof(o) {
273
273
  "@babel/helpers - typeof";
274
274
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -278,25 +278,25 @@ function _typeof(o) {
278
278
  }, _typeof(o);
279
279
  }
280
280
 
281
- // \0@oxc-project+runtime@0.156.0/helpers/esm/toPrimitive.js
282
- function toPrimitive(t, r) {
281
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPrimitive.js
282
+ function toPrimitive(t, e) {
283
283
  if ("object" != _typeof(t) || !t) return t;
284
- var e = t[Symbol.toPrimitive];
285
- if (void 0 !== e) {
286
- var i = e.call(t, r || "default");
284
+ var r;
285
+ if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) {
286
+ var i = r.call(t, e || "default");
287
287
  if ("object" != _typeof(i)) return i;
288
288
  throw new TypeError("@@toPrimitive must return a primitive value.");
289
289
  }
290
- return ("string" === r ? String : Number)(t);
290
+ return ("string" === e ? String : Number)(t);
291
291
  }
292
292
 
293
- // \0@oxc-project+runtime@0.156.0/helpers/esm/toPropertyKey.js
293
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/toPropertyKey.js
294
294
  function toPropertyKey(t) {
295
295
  var i = toPrimitive(t, "string");
296
296
  return "symbol" == _typeof(i) ? i : i + "";
297
297
  }
298
298
 
299
- // \0@oxc-project+runtime@0.156.0/helpers/esm/defineProperty.js
299
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/defineProperty.js
300
300
  function _defineProperty(e, r, t) {
301
301
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
302
302
  value: t,
@@ -449,14 +449,14 @@ function getDocMutationAffectedDrawingIds(actions) {
449
449
  return !sawComponent || needsFullRefresh ? null : drawingIds;
450
450
  }
451
451
 
452
- // \0@oxc-project+runtime@0.156.0/helpers/esm/decorateParam.js
452
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorateParam.js
453
453
  function __decorateParam(paramIndex, decorator) {
454
454
  return function(target, key) {
455
455
  decorator(target, key, paramIndex);
456
456
  };
457
457
  }
458
458
 
459
- // \0@oxc-project+runtime@0.156.0/helpers/esm/decorate.js
459
+ // \0@oxc-project+runtime@0.157.0/helpers/esm/decorate.js
460
460
  function __decorate(decorators, target, key, desc) {
461
461
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
462
462
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1779,7 +1779,7 @@ const menuSchema = {
1779
1779
 
1780
1780
  // package.json
1781
1781
  var name = "@univerjs/docs-drawing-ui";
1782
- var version = "1.4.0";
1782
+ var version = "1.5.1";
1783
1783
 
1784
1784
  // src/config/config.ts
1785
1785
  /**
@@ -4200,8 +4200,7 @@ function MobileDocDrawingPositionControls(props) {
4200
4200
  className: "univer-grid univer-gap-2 univer-text-sm",
4201
4201
  children: [localeService.t("docs-drawing-ui.image-position.absolutePosition"), /* @__PURE__ */ jsx(InputNumber, {
4202
4202
  disabled: props.disabled,
4203
- className: "univer-h-12 univer-w-full",
4204
- inputClassName: "[&_input]:!univer-h-12 [&_input]:!univer-text-base",
4203
+ className: "univer-w-full",
4205
4204
  controls: false,
4206
4205
  min: props.minOffset,
4207
4206
  max: props.maxOffset,
@@ -4209,7 +4208,8 @@ function MobileDocDrawingPositionControls(props) {
4209
4208
  value: axis.position.posOffset ?? 0,
4210
4209
  onChange: (value) => {
4211
4210
  if (value != null) axis.onOffsetChange(value);
4212
- }
4211
+ },
4212
+ size: "small"
4213
4213
  })]
4214
4214
  }),
4215
4215
  /* @__PURE__ */ jsx("div", {
@@ -4221,7 +4221,7 @@ function MobileDocDrawingPositionControls(props) {
4221
4221
  variant: "subtle",
4222
4222
  disabled: props.disabled || option.disabled,
4223
4223
  "aria-pressed": String(axis.position.relativeFrom) === option.value,
4224
- className: "univer-px-3 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4224
+ className: "univer-px-3 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4225
4225
  onClick: () => axis.onReferenceChange(option.value)
4226
4226
  }, option.value))
4227
4227
  })
@@ -4512,7 +4512,7 @@ function MobileDocDrawingTextWrapControls(props) {
4512
4512
  title: localeService.t(option.label),
4513
4513
  variant: "subtle",
4514
4514
  "aria-pressed": props.wrapText === option.value,
4515
- className: "univer-px-2 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4515
+ className: "univer-px-2 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4516
4516
  onClick: () => props.onWrapTextChange(option.value)
4517
4517
  }, option.value))
4518
4518
  })]
@@ -4527,14 +4527,14 @@ function MobileDocDrawingTextWrapControls(props) {
4527
4527
  children: distances.filter(({ key }) => key === "distT" || key === "distB" ? !props.disableDistTB : !props.disableDistLR).map(({ key, label }) => /* @__PURE__ */ jsxs("label", {
4528
4528
  className: "univer-grid univer-gap-2 univer-text-sm",
4529
4529
  children: [localeService.t(label), /* @__PURE__ */ jsx(InputNumber, {
4530
- className: "univer-h-12 univer-w-full",
4531
- inputClassName: "[&_input]:!univer-h-12 [&_input]:!univer-text-base",
4530
+ className: "univer-w-full",
4532
4531
  controls: false,
4533
4532
  min: props.minMargin,
4534
4533
  max: props.maxMargin,
4535
4534
  precision: 1,
4536
4535
  value: props.distToText[key] ?? 0,
4537
- onChange: (value) => props.onDistanceChange(value, key)
4536
+ onChange: (value) => props.onDistanceChange(value, key),
4537
+ size: "small"
4538
4538
  })]
4539
4539
  }, key))
4540
4540
  })]
@@ -4566,6 +4566,21 @@ function MobileDocDrawingTextWrapContent(props) {
4566
4566
  }
4567
4567
 
4568
4568
  // src/views/doc-image-panel/MobileDocDrawingPanel.tsx
4569
+ /**
4570
+ * Copyright 2023-present DreamNum Co., Ltd.
4571
+ *
4572
+ * Licensed under the Apache License, Version 2.0 (the "License");
4573
+ * you may not use this file except in compliance with the License.
4574
+ * You may obtain a copy of the License at
4575
+ *
4576
+ * http://www.apache.org/licenses/LICENSE-2.0
4577
+ *
4578
+ * Unless required by applicable law or agreed to in writing, software
4579
+ * distributed under the License is distributed on an "AS IS" BASIS,
4580
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4581
+ * See the License for the specific language governing permissions and
4582
+ * limitations under the License.
4583
+ */
4569
4584
  const tabs = [
4570
4585
  {
4571
4586
  value: "image",
@@ -4595,7 +4610,7 @@ function MobileDocDrawingPanel() {
4595
4610
  "aria-pressed": tab === item.value,
4596
4611
  title: localeService.t(item.label),
4597
4612
  variant: "subtle",
4598
- className: "univer-min-w-0 univer-px-2 univer-text-center univer-text-sm aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4613
+ className: "univer-min-w-0 univer-px-2 univer-text-center aria-pressed:!univer-bg-primary-50 aria-pressed:!univer-text-primary-600",
4599
4614
  onClick: () => setTab(item.value)
4600
4615
  }, item.value))
4601
4616
  }), /* @__PURE__ */ jsxs("div", { children: [