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
|
@@ -14,13 +14,20 @@
|
|
|
14
14
|
</script>
|
|
15
15
|
|
|
16
16
|
<template>
|
|
17
|
-
<div
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
|
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
|
|
19
|
+
<div class="sb-border-blue-light tide-padding-1">Demo</div>
|
|
21
20
|
</div>`,
|
|
22
21
|
updated: () => formatArgs(args),
|
|
23
22
|
});
|