@mixd-id/web-scaffold 0.1.230406175 → 0.1.230406176

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406175",
4
+ "version": "0.1.230406176",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -411,6 +411,38 @@
411
411
  </div>
412
412
  </div>
413
413
 
414
+ <div>
415
+ <label class="text-text-400">Text Align</label>
416
+ <div v-for="(_, index) in viewTypes"
417
+ v-show="_.value === viewType">
418
+ <Dropdown v-model="textAlign[index]" @change="apply">
419
+ <option value="">
420
+ {{ emptyComponentText('textAlign', index) }}
421
+ </option>
422
+ <option v-for="opt in components.textAlign"
423
+ :value="`${viewType}${opt[1]}`">
424
+ {{ opt[0] }}
425
+ </option>
426
+ </Dropdown>
427
+ </div>
428
+ </div>
429
+
430
+ <div>
431
+ <label class="text-text-400">Vertical Align</label>
432
+ <div v-for="(_, index) in viewTypes"
433
+ v-show="_.value === viewType">
434
+ <Dropdown v-model="verticalAlign[index]" @change="apply">
435
+ <option value="">
436
+ {{ emptyComponentText('verticalAlign', index) }}
437
+ </option>
438
+ <option v-for="opt in components.verticalAlign"
439
+ :value="`${viewType}${opt[1]}`">
440
+ {{ opt[0] }}
441
+ </option>
442
+ </Dropdown>
443
+ </div>
444
+ </div>
445
+
414
446
  </div>
415
447
  </div>
416
448
 
@@ -1210,6 +1242,20 @@ export default{
1210
1242
  return this.item.props.top
1211
1243
  },
1212
1244
 
1245
+ textAlign(){
1246
+ if(!Array.isArray(this.item.props.textAlign))
1247
+ this.item.props.textAlign = []
1248
+
1249
+ return this.item.props.textAlign
1250
+ },
1251
+
1252
+ verticalAlign(){
1253
+ if(!Array.isArray(this.item.props.verticalAlign))
1254
+ this.item.props.verticalAlign = []
1255
+
1256
+ return this.item.props.verticalAlign
1257
+ },
1258
+
1213
1259
  whitespace(){
1214
1260
  if(!Array.isArray(this.item.props.whitespace))
1215
1261
  this.item.props.whitespace = []
@@ -1686,6 +1732,23 @@ export default{
1686
1732
  [ '1', 'stroke-1' ],
1687
1733
  [ '2', 'stroke-2' ],
1688
1734
  ],
1735
+ textAlign: [
1736
+ [ 'Left', 'text-left' ],
1737
+ [ 'Center', 'text-center' ],
1738
+ [ 'Right', 'text-right' ],
1739
+ [ 'Justify', 'text-justify' ],
1740
+ [ 'End', 'text-end' ],
1741
+ ],
1742
+ verticalAlign: [
1743
+ [ 'Baseline', 'align-baseline' ],
1744
+ [ 'Top', 'align-top' ],
1745
+ [ 'Middle', 'align-middle' ],
1746
+ [ 'Bottom', 'align-bottom' ],
1747
+ [ 'Text Top', 'align-text-top' ],
1748
+ [ 'Text Bottom', 'align-text-bottom' ],
1749
+ [ 'Sub', 'align-sub' ],
1750
+ [ 'Super', 'align-super' ],
1751
+ ],
1689
1752
 
1690
1753
 
1691
1754
  },
@@ -1490,6 +1490,7 @@ export default{
1490
1490
  'divideSize', 'divideColor', 'divideStyle',
1491
1491
  'outlineWidth', 'outlineColor', 'outlineStyle',
1492
1492
  'bgColors', 'bgSize', 'bgPosition', 'bgRepeat',
1493
+ 'textAlign', 'verticalAlign',
1493
1494
  'gap',
1494
1495
  'padding', 'margin',
1495
1496
  'direction', 'columns', 'rows', 'display', 'wrap',
@@ -88,6 +88,10 @@ module.exports = {
88
88
  'text-xs', 'text-sm', 'text-base', 'text-lg', 'text-xl', 'text-2xl', 'text-3xl',
89
89
  'text-4xl', 'text-5xl', 'text-6xl',
90
90
 
91
+ 'text-left', 'text-center', 'text-right', 'text-justify', 'text-start', 'text-end',
92
+
93
+ 'align-baseline', 'align-top', 'align-middle', 'align-bottom', 'align-text-top', 'align-text-bottom', 'align-sub', 'align-super',
94
+
91
95
  'font-thin', 'font-extralight', 'font-light', 'font-normal', 'font-medium', 'font-semibold', 'font-bold', 'font-extrabold', 'font-black',
92
96
 
93
97
  'leading-3', 'leading-4', 'leading-5', 'leading-6', 'leading-7', 'leading-8', 'leading-9',
@@ -293,6 +297,10 @@ module.exports = {
293
297
  'md:text-xs', 'md:text-sm', 'md:text-base', 'md:text-lg', 'md:text-xl', 'md:text-2xl', 'md:text-3xl',
294
298
  'md:text-4xl', 'md:text-5xl', 'md:text-6xl',
295
299
 
300
+ 'md:text-left', 'md:text-center', 'md:text-right', 'md:text-justify', 'md:text-start', 'md:text-end',
301
+
302
+ 'md:align-baseline', 'md:align-top', 'md:align-middle', 'md:align-bottom', 'md:align-md:text-top', 'md:align-md:text-bottom', 'md:align-sub', 'md:align-super',
303
+
296
304
  'md:font-thin', 'md:font-extralight', 'md:font-light', 'md:font-normal', 'md:font-medium', 'md:font-semibold', 'md:font-bold', 'md:font-extrabold', 'md:font-black',
297
305
 
298
306
  'md:leading-3', 'md:leading-4', 'md:leading-5', 'md:leading-6', 'md:leading-7', 'md:leading-8', 'md:leading-9',