@onereach/ui-components 20.2.0 → 20.3.0-beta.5250.0

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.
@@ -129,10 +129,11 @@ var script = defineComponent({
129
129
  const control = ref();
130
130
  const controlStyles = computed(() => [...TextareaControl, ...TextareaControlSizes[props.size], ...(_(props.rows) ? ['resize-none'] : [])]);
131
131
  const controlInlineStyles = computed(() => {
132
+ var _a, _b, _c, _d, _e, _f;
132
133
  if (control.value) {
133
- const paddingTop = Number(getComputedStyle(control.value).getPropertyValue('padding-top').match(/^(?<value>\d+)px$/).groups.value);
134
- const paddingBottom = Number(getComputedStyle(control.value).getPropertyValue('padding-bottom').match(/^(?<value>\d+)px$/).groups.value);
135
- const lineHeight = Number(getComputedStyle(control.value).getPropertyValue('line-height').match(/^(?<value>\d+)px$/).groups.value);
134
+ const paddingTop = Number(((_b = (_a = getComputedStyle(control.value).getPropertyValue('padding-top').match(/^(?<value>\d+)px$/)) === null || _a === void 0 ? void 0 : _a.groups) === null || _b === void 0 ? void 0 : _b.value) || 0);
135
+ const paddingBottom = Number(((_d = (_c = getComputedStyle(control.value).getPropertyValue('padding-bottom').match(/^(?<value>\d+)px$/)) === null || _c === void 0 ? void 0 : _c.groups) === null || _d === void 0 ? void 0 : _d.value) || 0);
136
+ const lineHeight = Number(((_f = (_e = getComputedStyle(control.value).getPropertyValue('line-height').match(/^(?<value>\d+)px$/)) === null || _e === void 0 ? void 0 : _e.groups) === null || _f === void 0 ? void 0 : _f.value) || 0);
136
137
  return {
137
138
  minHeight: `${paddingTop + paddingBottom + (_(props.rows) ? props.rows.min : props.rows) * lineHeight}px`,
138
139
  maxHeight: _(props.rows) && props.rows.max ? `${paddingTop + paddingBottom + props.rows.max * lineHeight}px` : undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "20.2.0",
3
+ "version": "20.3.0-beta.5250.0",
4
4
  "description": "Vue components library for v3",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -29,9 +29,7 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "build": "rollup --config rollup.config.js --preserveSymlinks --bundleConfigAsCjs",
32
- "dev": "ROLLUP_WATCH=true pnpm build -w",
33
- "make-symlinks": "./scripts/make-symlinks.sh",
34
- "prepare": "pnpm make-symlinks"
32
+ "dev": "ROLLUP_WATCH=true pnpm build -w"
35
33
  },
36
34
  "dependencies": {
37
35
  "@codemirror/commands": "6.2.4",
@@ -106,6 +104,5 @@
106
104
  "publishConfig": {
107
105
  "access": "public"
108
106
  },
109
- "npmUnpacked": "4.15.2",
110
- "gitHead": "1b353dbcacd7ee2de511ccbef960b71b41b774ad"
107
+ "npmUnpacked": "4.15.2"
111
108
  }