tide-design-system 2.2.2 → 2.2.3

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
@@ -61,7 +61,7 @@
61
61
  "main": "dist/tide-design-system.cjs",
62
62
  "module": "dist/tide-design-system.esm.js",
63
63
  "types": "dist/tide-design-system.esm.d.ts",
64
- "version": "2.2.2",
64
+ "version": "2.2.3",
65
65
  "dependencies": {
66
66
  "@floating-ui/vue": "^1.1.6"
67
67
  }
@@ -14,13 +14,20 @@
14
14
  </script>
15
15
 
16
16
  <template>
17
- <div
18
- :class="[
19
- 'tide-divider',
20
- CSS.BORDER.COLOR.LOW,
21
- props.orientation === ORIENTATION.HORIZONTAL
22
- ? [CSS.MARGIN.Y.HALF, CSS.BORDER.BOTTOM.ONE]
23
- : [CSS.MARGIN.X.HALF, CSS.BORDER.RIGHT.ONE],
24
- ]"
25
- />
17
+ <div :class="['tide-divider']">
18
+ <div
19
+ :class="[
20
+ CSS.BORDER.COLOR.LOW,
21
+ props.orientation === ORIENTATION.HORIZONTAL
22
+ ? [CSS.MARGIN.Y.HALF, CSS.BORDER.BOTTOM.ONE, CSS.WIDTH.FULL]
23
+ : [CSS.MARGIN.X.HALF, CSS.BORDER.RIGHT.ONE, CSS.HEIGHT.FULL],
24
+ ]"
25
+ />
26
+ </div>
26
27
  </template>
28
+
29
+ <style scoped>
30
+ .tide-divider {
31
+ align-self: stretch;
32
+ }
33
+ </style>
@@ -4,7 +4,6 @@ import { disabledArgType, formatArgType, parameters, prependNoneAsUndefined } fr
4
4
 
5
5
  const formatArgs = (args: any) => {
6
6
  args.flexDirection = args.orientation === ORIENTATION.VERTICAL ? 'tide-flex-row' : 'tide-flex-column';
7
- args.divTemplate = `<div class="sb-border-blue-light sb-font-blue-light tide-display-flex tide-axis1-center tide-axis2-center tide-padding-1 tide-width-full" style="min-width: 100px; min-height:100px;" />`;
8
7
 
9
8
  return { args };
10
9
  };
@@ -12,12 +11,12 @@ const formatArgs = (args: any) => {
12
11
  const render = (args: any) => ({
13
12
  components: { TideDivider },
14
13
  setup: () => formatArgs(args),
15
- template: `<div :class="['tide-display-flex', args.flexDirection]">
16
- <div class="sb-border-blue-light sb-font-blue-light tide-display-flex tide-axis1-center tide-axis2-center tide-padding-1 tide-width-full" style="min-width: 100px; min-height:100px;" />
14
+ template: `<div :class="['tide-display-inline-flex', args.flexDirection]">
15
+ <div class="sb-border-blue-light tide-padding-1">Demo</div>
17
16
 
18
17
  <TideDivider :orientation="args.orientation" />
19
18
 
20
- <div class="sb-border-blue-light sb-font-blue-light tide-display-flex tide-axis1-center tide-axis2-center tide-padding-1 tide-width-full" style="min-width: 100px; height:100px;" />
19
+ <div class="sb-border-blue-light tide-padding-1">Demo</div>
21
20
  </div>`,
22
21
  updated: () => formatArgs(args),
23
22
  });