@mekari/pixel3-timeline 0.0.11-dev.0 → 0.0.11-dev.2
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/dist/accordion.js +15 -41
- package/dist/accordion.mjs +2 -2
- package/dist/body.js +3 -7
- package/dist/body.mjs +1 -1
- package/dist/caption.js +3 -7
- package/dist/caption.mjs +1 -1
- package/dist/{chunk-ZG4NN7A5.mjs → chunk-4PZZ5B6I.mjs} +3 -7
- package/dist/{chunk-7DG62NMG.mjs → chunk-7AOF43E4.mjs} +3 -4
- package/dist/{chunk-QSWQT234.mjs → chunk-EYEK6NTK.mjs} +13 -35
- package/dist/{chunk-GIZF7OP5.mjs → chunk-GA2OEUXW.mjs} +3 -4
- package/dist/{chunk-R27QQWNW.mjs → chunk-ILY3Y465.mjs} +5 -6
- package/dist/{chunk-XJGZTB4V.mjs → chunk-MRPVYAVX.mjs} +10 -33
- package/dist/{chunk-EO6SLNZK.mjs → chunk-PFNAOR6K.mjs} +5 -22
- package/dist/{chunk-F5W3GZXM.mjs → chunk-QHPZK7ZV.mjs} +3 -7
- package/dist/{chunk-HSNDCO4E.mjs → chunk-RBX3CCVL.mjs} +3 -4
- package/dist/{chunk-C3OMXGFW.mjs → chunk-RUNJ5QTL.mjs} +7 -25
- package/dist/content.js +3 -4
- package/dist/content.mjs +1 -1
- package/dist/document.d.mts +2 -2
- package/dist/document.d.ts +2 -2
- package/dist/document.js +10 -33
- package/dist/document.mjs +1 -1
- package/dist/index.js +52 -144
- package/dist/index.mjs +10 -10
- package/dist/item.d.mts +2 -2
- package/dist/item.d.ts +2 -2
- package/dist/item.js +11 -33
- package/dist/item.mjs +3 -3
- package/dist/log-item.js +3 -4
- package/dist/log-item.mjs +1 -1
- package/dist/log.js +7 -25
- package/dist/log.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/timeline.props.d.mts +3 -3
- package/dist/modules/timeline.props.d.ts +3 -3
- package/dist/separator.d.mts +2 -2
- package/dist/separator.d.ts +2 -2
- package/dist/separator.js +5 -22
- package/dist/separator.mjs +1 -1
- package/dist/timeline.js +3 -4
- package/dist/timeline.mjs +1 -1
- package/package.json +4 -4
package/dist/accordion.js
CHANGED
|
@@ -26,29 +26,23 @@ __export(accordion_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(accordion_exports);
|
|
27
27
|
var import_vue3 = require("vue");
|
|
28
28
|
var import_pixel3_icon = require("@mekari/pixel3-icon");
|
|
29
|
-
var import_css2 = require("@mekari/pixel3-styled-system/css");
|
|
30
|
-
var import_patterns = require("@mekari/pixel3-styled-system/patterns");
|
|
31
29
|
var import_pixel3_transition = require("@mekari/pixel3-transition");
|
|
32
30
|
var import_vue4 = require("vue");
|
|
33
31
|
|
|
34
32
|
// src/body.tsx
|
|
35
33
|
var import_vue = require("vue");
|
|
36
34
|
var import_vue2 = require("vue");
|
|
37
|
-
var
|
|
35
|
+
var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
38
36
|
var MpTimelineBody = (0, import_vue2.defineComponent)({
|
|
39
37
|
name: "MpTimelineBody",
|
|
40
38
|
setup(_props, {
|
|
41
39
|
slots
|
|
42
40
|
}) {
|
|
41
|
+
const classes = (0, import_recipes.timelineSlotRecipe)();
|
|
43
42
|
return () => {
|
|
44
43
|
return (0, import_vue.createVNode)("div", {
|
|
45
44
|
"data-pixel-component": "MpTimelineBody",
|
|
46
|
-
"class":
|
|
47
|
-
marginLeft: "3",
|
|
48
|
-
paddingTop: "6px",
|
|
49
|
-
paddingBottom: "3",
|
|
50
|
-
width: "full"
|
|
51
|
-
})
|
|
45
|
+
"class": classes.body
|
|
52
46
|
}, [slots.default && slots.default()]);
|
|
53
47
|
};
|
|
54
48
|
}
|
|
@@ -69,6 +63,7 @@ var timelineAccordionProps = {
|
|
|
69
63
|
};
|
|
70
64
|
|
|
71
65
|
// src/accordion.tsx
|
|
66
|
+
var import_recipes2 = require("@mekari/pixel3-styled-system/recipes");
|
|
72
67
|
function _isSlot(s) {
|
|
73
68
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !(0, import_vue3.isVNode)(s);
|
|
74
69
|
}
|
|
@@ -81,6 +76,7 @@ var MpTimelineAccordion = (0, import_vue4.defineComponent)({
|
|
|
81
76
|
}) {
|
|
82
77
|
const isOpen = (0, import_vue4.ref)(props.isOpen || false);
|
|
83
78
|
return () => {
|
|
79
|
+
const classes = (0, import_recipes2.timelineAccordionSlotRecipe)();
|
|
84
80
|
const children = slots.default && slots.default();
|
|
85
81
|
const timelineItemVNode = children ? children.filter((n) => n.type.name === "MpTimelineItem") : [];
|
|
86
82
|
const length = timelineItemVNode.length - 1;
|
|
@@ -101,21 +97,14 @@ var MpTimelineAccordion = (0, import_vue4.defineComponent)({
|
|
|
101
97
|
"data-pixel-component": "MpTimelineAccordion"
|
|
102
98
|
}, [(0, import_vue3.createVNode)("div", {
|
|
103
99
|
"data-pixel-component": "MpTimelineAccordionBody",
|
|
104
|
-
"class":
|
|
100
|
+
"class": classes.body
|
|
105
101
|
}, [(0, import_vue3.createVNode)("div", {
|
|
106
102
|
"data-pixel-component": "MpTimelineAccordionSeparator",
|
|
107
|
-
"class":
|
|
108
|
-
flexDirection: "column",
|
|
109
|
-
alignItems: "center"
|
|
110
|
-
})
|
|
103
|
+
"class": classes.separator
|
|
111
104
|
}, [(0, import_vue3.createVNode)("div", {
|
|
112
105
|
"data-pixel-component": "MpTimelineAccordionConnector",
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
width: "2px",
|
|
116
|
-
backgroundColor: props.position === "first" ? "transparent" : "gray.100",
|
|
117
|
-
roundedBottom: "full"
|
|
118
|
-
})
|
|
106
|
+
"data-position": props.position,
|
|
107
|
+
"class": classes.topConnector
|
|
119
108
|
}, null), (0, import_vue3.createVNode)("button", {
|
|
120
109
|
"role": "button",
|
|
121
110
|
"aria-expanded": isOpen.value || void 0,
|
|
@@ -124,33 +113,18 @@ var MpTimelineAccordion = (0, import_vue4.defineComponent)({
|
|
|
124
113
|
"name": isOpen.value ? "accordion-expand" : "accordion-collapse",
|
|
125
114
|
"size": "sm",
|
|
126
115
|
"color": "gray.600",
|
|
127
|
-
"class":
|
|
128
|
-
my: 1,
|
|
129
|
-
cursor: "pointer"
|
|
130
|
-
})
|
|
116
|
+
"class": classes.icon
|
|
131
117
|
}, null)]), (0, import_vue3.createVNode)("div", {
|
|
132
118
|
"data-pixel-component": "MpTimelineAccordionConnector",
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
width: "2px",
|
|
136
|
-
backgroundColor: !isOpen.value && props.position === "last" ? "transparent" : "gray.100",
|
|
137
|
-
roundedTop: "full"
|
|
138
|
-
})
|
|
119
|
+
"data-position": !isOpen.value && props.position === "last" ? "last" : void 0,
|
|
120
|
+
"class": classes.bottomConnector
|
|
139
121
|
}, null)]), (0, import_vue3.createVNode)(MpTimelineBody, null, {
|
|
140
122
|
default: () => [(0, import_vue3.createVNode)("div", {
|
|
141
|
-
"class":
|
|
142
|
-
paddingTop: 1
|
|
143
|
-
}),
|
|
123
|
+
"class": classes.title,
|
|
144
124
|
"data-pixel-component": "MpTimelineAccordionTitle"
|
|
145
125
|
}, [(0, import_vue3.createVNode)("p", {
|
|
146
|
-
"class":
|
|
147
|
-
|
|
148
|
-
lineHeight: "md",
|
|
149
|
-
color: "dark",
|
|
150
|
-
fontWeight: "semibold",
|
|
151
|
-
letterSpacing: "normal"
|
|
152
|
-
})
|
|
153
|
-
}, [(0, import_vue3.createTextVNode)("Label")])])]
|
|
126
|
+
"class": classes.label
|
|
127
|
+
}, [(0, import_vue3.createTextVNode)(" "), props.label, (0, import_vue3.createTextVNode)(" ")])])]
|
|
154
128
|
})]), (0, import_vue3.createVNode)(import_pixel3_transition.MpAnimateHeight, {
|
|
155
129
|
"isOpen": isOpen.value
|
|
156
130
|
}, _isSlot(cloneTimelineItem) ? cloneTimelineItem : {
|
package/dist/accordion.mjs
CHANGED
package/dist/body.js
CHANGED
|
@@ -25,21 +25,17 @@ __export(body_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(body_exports);
|
|
26
26
|
var import_vue = require("vue");
|
|
27
27
|
var import_vue2 = require("vue");
|
|
28
|
-
var
|
|
28
|
+
var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
29
29
|
var MpTimelineBody = (0, import_vue2.defineComponent)({
|
|
30
30
|
name: "MpTimelineBody",
|
|
31
31
|
setup(_props, {
|
|
32
32
|
slots
|
|
33
33
|
}) {
|
|
34
|
+
const classes = (0, import_recipes.timelineSlotRecipe)();
|
|
34
35
|
return () => {
|
|
35
36
|
return (0, import_vue.createVNode)("div", {
|
|
36
37
|
"data-pixel-component": "MpTimelineBody",
|
|
37
|
-
"class":
|
|
38
|
-
marginLeft: "3",
|
|
39
|
-
paddingTop: "6px",
|
|
40
|
-
paddingBottom: "3",
|
|
41
|
-
width: "full"
|
|
42
|
-
})
|
|
38
|
+
"class": classes.body
|
|
43
39
|
}, [slots.default && slots.default()]);
|
|
44
40
|
};
|
|
45
41
|
}
|
package/dist/body.mjs
CHANGED
package/dist/caption.js
CHANGED
|
@@ -25,21 +25,17 @@ __export(caption_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(caption_exports);
|
|
26
26
|
var import_vue = require("vue");
|
|
27
27
|
var import_vue2 = require("vue");
|
|
28
|
-
var
|
|
28
|
+
var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
29
29
|
var MpTimelineCaption = (0, import_vue2.defineComponent)({
|
|
30
30
|
name: "MpTimelineItem",
|
|
31
31
|
setup(_props, {
|
|
32
32
|
slots
|
|
33
33
|
}) {
|
|
34
|
+
const classes = (0, import_recipes.timelineSlotRecipe)();
|
|
34
35
|
return () => {
|
|
35
36
|
return (0, import_vue.createVNode)("span", {
|
|
36
37
|
"data-pixel-component": "MpTimelineCaption",
|
|
37
|
-
"class":
|
|
38
|
-
fontSize: "sm",
|
|
39
|
-
color: "gray.400",
|
|
40
|
-
lineHeight: "sm",
|
|
41
|
-
marginTop: "0.5"
|
|
42
|
-
})
|
|
38
|
+
"class": classes.caption
|
|
43
39
|
}, [slots.default && slots.default()]);
|
|
44
40
|
};
|
|
45
41
|
}
|
package/dist/caption.mjs
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
// src/caption.tsx
|
|
2
2
|
import { createVNode as _createVNode } from "vue";
|
|
3
3
|
import { defineComponent } from "vue";
|
|
4
|
-
import {
|
|
4
|
+
import { timelineSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
5
5
|
var MpTimelineCaption = defineComponent({
|
|
6
6
|
name: "MpTimelineItem",
|
|
7
7
|
setup(_props, {
|
|
8
8
|
slots
|
|
9
9
|
}) {
|
|
10
|
+
const classes = timelineSlotRecipe();
|
|
10
11
|
return () => {
|
|
11
12
|
return _createVNode("span", {
|
|
12
13
|
"data-pixel-component": "MpTimelineCaption",
|
|
13
|
-
"class":
|
|
14
|
-
fontSize: "sm",
|
|
15
|
-
color: "gray.400",
|
|
16
|
-
lineHeight: "sm",
|
|
17
|
-
marginTop: "0.5"
|
|
18
|
-
})
|
|
14
|
+
"class": classes.caption
|
|
19
15
|
}, [slots.default && slots.default()]);
|
|
20
16
|
};
|
|
21
17
|
}
|
|
@@ -4,13 +4,14 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/timeline.tsx
|
|
6
6
|
import { createVNode as _createVNode } from "vue";
|
|
7
|
-
import { css } from "@mekari/pixel3-styled-system/css";
|
|
8
7
|
import { cloneVNode, defineComponent } from "vue";
|
|
8
|
+
import { timelineSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
9
9
|
var MpTimeline = defineComponent({
|
|
10
10
|
name: "MpTimeline",
|
|
11
11
|
setup(_props, {
|
|
12
12
|
slots
|
|
13
13
|
}) {
|
|
14
|
+
const classes = timelineSlotRecipe();
|
|
14
15
|
return () => {
|
|
15
16
|
const children = slots.default && slots.default();
|
|
16
17
|
const timelineItemVNode = children ? children.filter((n) => {
|
|
@@ -34,9 +35,7 @@ var MpTimeline = defineComponent({
|
|
|
34
35
|
});
|
|
35
36
|
return _createVNode("ul", {
|
|
36
37
|
"data-pixel-component": "MpTimeline",
|
|
37
|
-
"class":
|
|
38
|
-
maxWidth: "sm"
|
|
39
|
-
})
|
|
38
|
+
"class": classes.root
|
|
40
39
|
}, [cloneTimelineItem]);
|
|
41
40
|
};
|
|
42
41
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpTimelineBody
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QHPZK7ZV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
timelineAccordionProps
|
|
6
6
|
} from "./chunk-3X4C56WA.mjs";
|
|
@@ -11,10 +11,9 @@ import {
|
|
|
11
11
|
// src/accordion.tsx
|
|
12
12
|
import { isVNode as _isVNode, createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
|
13
13
|
import { MpIcon } from "@mekari/pixel3-icon";
|
|
14
|
-
import { css } from "@mekari/pixel3-styled-system/css";
|
|
15
|
-
import { flex } from "@mekari/pixel3-styled-system/patterns";
|
|
16
14
|
import { MpAnimateHeight } from "@mekari/pixel3-transition";
|
|
17
15
|
import { cloneVNode, defineComponent, ref } from "vue";
|
|
16
|
+
import { timelineAccordionSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
18
17
|
function _isSlot(s) {
|
|
19
18
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !_isVNode(s);
|
|
20
19
|
}
|
|
@@ -27,6 +26,7 @@ var MpTimelineAccordion = defineComponent({
|
|
|
27
26
|
}) {
|
|
28
27
|
const isOpen = ref(props.isOpen || false);
|
|
29
28
|
return () => {
|
|
29
|
+
const classes = timelineAccordionSlotRecipe();
|
|
30
30
|
const children = slots.default && slots.default();
|
|
31
31
|
const timelineItemVNode = children ? children.filter((n) => n.type.name === "MpTimelineItem") : [];
|
|
32
32
|
const length = timelineItemVNode.length - 1;
|
|
@@ -47,21 +47,14 @@ var MpTimelineAccordion = defineComponent({
|
|
|
47
47
|
"data-pixel-component": "MpTimelineAccordion"
|
|
48
48
|
}, [_createVNode("div", {
|
|
49
49
|
"data-pixel-component": "MpTimelineAccordionBody",
|
|
50
|
-
"class":
|
|
50
|
+
"class": classes.body
|
|
51
51
|
}, [_createVNode("div", {
|
|
52
52
|
"data-pixel-component": "MpTimelineAccordionSeparator",
|
|
53
|
-
"class":
|
|
54
|
-
flexDirection: "column",
|
|
55
|
-
alignItems: "center"
|
|
56
|
-
})
|
|
53
|
+
"class": classes.separator
|
|
57
54
|
}, [_createVNode("div", {
|
|
58
55
|
"data-pixel-component": "MpTimelineAccordionConnector",
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
width: "2px",
|
|
62
|
-
backgroundColor: props.position === "first" ? "transparent" : "gray.100",
|
|
63
|
-
roundedBottom: "full"
|
|
64
|
-
})
|
|
56
|
+
"data-position": props.position,
|
|
57
|
+
"class": classes.topConnector
|
|
65
58
|
}, null), _createVNode("button", {
|
|
66
59
|
"role": "button",
|
|
67
60
|
"aria-expanded": isOpen.value || void 0,
|
|
@@ -70,33 +63,18 @@ var MpTimelineAccordion = defineComponent({
|
|
|
70
63
|
"name": isOpen.value ? "accordion-expand" : "accordion-collapse",
|
|
71
64
|
"size": "sm",
|
|
72
65
|
"color": "gray.600",
|
|
73
|
-
"class":
|
|
74
|
-
my: 1,
|
|
75
|
-
cursor: "pointer"
|
|
76
|
-
})
|
|
66
|
+
"class": classes.icon
|
|
77
67
|
}, null)]), _createVNode("div", {
|
|
78
68
|
"data-pixel-component": "MpTimelineAccordionConnector",
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
width: "2px",
|
|
82
|
-
backgroundColor: !isOpen.value && props.position === "last" ? "transparent" : "gray.100",
|
|
83
|
-
roundedTop: "full"
|
|
84
|
-
})
|
|
69
|
+
"data-position": !isOpen.value && props.position === "last" ? "last" : void 0,
|
|
70
|
+
"class": classes.bottomConnector
|
|
85
71
|
}, null)]), _createVNode(MpTimelineBody, null, {
|
|
86
72
|
default: () => [_createVNode("div", {
|
|
87
|
-
"class":
|
|
88
|
-
paddingTop: 1
|
|
89
|
-
}),
|
|
73
|
+
"class": classes.title,
|
|
90
74
|
"data-pixel-component": "MpTimelineAccordionTitle"
|
|
91
75
|
}, [_createVNode("p", {
|
|
92
|
-
"class":
|
|
93
|
-
|
|
94
|
-
lineHeight: "md",
|
|
95
|
-
color: "dark",
|
|
96
|
-
fontWeight: "semibold",
|
|
97
|
-
letterSpacing: "normal"
|
|
98
|
-
})
|
|
99
|
-
}, [_createTextVNode("Label")])])]
|
|
76
|
+
"class": classes.label
|
|
77
|
+
}, [_createTextVNode(" "), props.label, _createTextVNode(" ")])])]
|
|
100
78
|
})]), _createVNode(MpAnimateHeight, {
|
|
101
79
|
"isOpen": isOpen.value
|
|
102
80
|
}, _isSlot(cloneTimelineItem) ? cloneTimelineItem : {
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
// src/log-item.tsx
|
|
2
2
|
import { createVNode as _createVNode } from "vue";
|
|
3
|
-
import { css } from "@mekari/pixel3-styled-system/css";
|
|
4
3
|
import { defineComponent } from "vue";
|
|
4
|
+
import { timelineLogSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
5
5
|
var MpTimelinLogItem = defineComponent({
|
|
6
6
|
name: "MpTimelinLogItem",
|
|
7
7
|
setup(_props, {
|
|
8
8
|
slots
|
|
9
9
|
}) {
|
|
10
|
+
const classes = timelineLogSlotRecipe();
|
|
10
11
|
return () => {
|
|
11
12
|
return _createVNode("li", {
|
|
12
13
|
"data-pixel-component": "MpTimelinLogItem",
|
|
13
|
-
"class":
|
|
14
|
-
color: "gray.600"
|
|
15
|
-
})
|
|
14
|
+
"class": classes.logItem
|
|
16
15
|
}, [slots.default && slots.default()]);
|
|
17
16
|
};
|
|
18
17
|
}
|
|
@@ -1,30 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpTimelineSeparator
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PFNAOR6K.mjs";
|
|
4
4
|
import {
|
|
5
5
|
MpTimelineBody
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QHPZK7ZV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
timelineItemProps
|
|
9
9
|
} from "./chunk-3X4C56WA.mjs";
|
|
10
10
|
|
|
11
11
|
// src/item.tsx
|
|
12
12
|
import { createVNode as _createVNode } from "vue";
|
|
13
|
-
import { css } from "@mekari/pixel3-styled-system/css";
|
|
14
13
|
import { defineComponent } from "vue";
|
|
14
|
+
import { timelineSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
15
15
|
var MpTimelineItem = defineComponent({
|
|
16
16
|
name: "MpTimelineItem",
|
|
17
17
|
props: timelineItemProps,
|
|
18
18
|
setup(props, {
|
|
19
19
|
slots
|
|
20
20
|
}) {
|
|
21
|
+
const classes = timelineSlotRecipe();
|
|
21
22
|
return () => {
|
|
22
23
|
return _createVNode("li", {
|
|
23
24
|
"data-pixel-component": "MpTimelineItem",
|
|
24
25
|
"data-position": props.position,
|
|
25
|
-
"class":
|
|
26
|
-
display: "flex"
|
|
27
|
-
})
|
|
26
|
+
"class": classes.item
|
|
28
27
|
}, [_createVNode(MpTimelineSeparator, {
|
|
29
28
|
"position": props.position,
|
|
30
29
|
"status": props.status,
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
// src/document.tsx
|
|
6
6
|
import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
|
7
7
|
import { MpIcon } from "@mekari/pixel3-icon";
|
|
8
|
-
import { css } from "@mekari/pixel3-styled-system/css";
|
|
9
|
-
import { flex } from "@mekari/pixel3-styled-system/patterns";
|
|
10
8
|
import { defineComponent } from "vue";
|
|
9
|
+
import { timelineDocumentSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
10
|
+
import { isUndef } from "@mekari/pixel3-utils";
|
|
11
11
|
var MpTimelineDocument = defineComponent({
|
|
12
12
|
name: "MpTimelineDocument",
|
|
13
13
|
props: timelineDocumentProps,
|
|
@@ -15,26 +15,17 @@ var MpTimelineDocument = defineComponent({
|
|
|
15
15
|
slots
|
|
16
16
|
}) {
|
|
17
17
|
return () => {
|
|
18
|
+
const classes = timelineDocumentSlotRecipe({
|
|
19
|
+
icon: !isUndef(props.icon)
|
|
20
|
+
});
|
|
18
21
|
return _createVNode("span", {
|
|
19
22
|
"data-pixel-component": "MpTimelineDocument",
|
|
20
|
-
"class":
|
|
21
|
-
display: "flex",
|
|
22
|
-
alignItems: "center",
|
|
23
|
-
paddingX: "3",
|
|
24
|
-
paddingY: "2",
|
|
25
|
-
borderRadius: "lg",
|
|
26
|
-
borderWidth: "1px",
|
|
27
|
-
borderColor: "gray.100",
|
|
28
|
-
width: "full"
|
|
29
|
-
})
|
|
23
|
+
"class": classes.root
|
|
30
24
|
}, [_createVNode(MpIcon, {
|
|
31
25
|
"name": props.icon,
|
|
32
26
|
"variant": props.iconVariant
|
|
33
27
|
}, null), _createVNode("div", {
|
|
34
|
-
"class":
|
|
35
|
-
flexDirection: "column",
|
|
36
|
-
marginLeft: props.icon ? "3" : "0"
|
|
37
|
-
})
|
|
28
|
+
"class": classes.content
|
|
38
29
|
}, [_createVNode("p", {
|
|
39
30
|
"style": {
|
|
40
31
|
overflow: "hidden",
|
|
@@ -42,25 +33,11 @@ var MpTimelineDocument = defineComponent({
|
|
|
42
33
|
"-webkit-box-orient": "vertical",
|
|
43
34
|
"-webkit-line-clamp": 1
|
|
44
35
|
},
|
|
45
|
-
"class":
|
|
46
|
-
fontSize: "sm",
|
|
47
|
-
lineHeight: "md",
|
|
48
|
-
fontWeight: "regular",
|
|
49
|
-
letterSpacing: "normal",
|
|
50
|
-
color: "dark"
|
|
51
|
-
})
|
|
36
|
+
"class": classes.title
|
|
52
37
|
}, [props.title]), _createVNode("div", {
|
|
53
|
-
"class":
|
|
54
|
-
alignItems: "center"
|
|
55
|
-
})
|
|
38
|
+
"class": classes.description
|
|
56
39
|
}, [_createVNode("p", {
|
|
57
|
-
"class":
|
|
58
|
-
fontSize: "sm",
|
|
59
|
-
lineHeight: "md",
|
|
60
|
-
fontWeight: "regular",
|
|
61
|
-
letterSpacing: "normal",
|
|
62
|
-
color: "gray.400"
|
|
63
|
-
})
|
|
40
|
+
"class": classes.fileSize
|
|
64
41
|
}, [props.fileSize, _createTextVNode(" "), slots.default && " - "]), slots.default && slots.default()])])]);
|
|
65
42
|
};
|
|
66
43
|
}
|
|
@@ -5,32 +5,12 @@ import {
|
|
|
5
5
|
// src/separator.tsx
|
|
6
6
|
import { createVNode as _createVNode } from "vue";
|
|
7
7
|
import { MpIcon } from "@mekari/pixel3-icon";
|
|
8
|
-
import { css } from "@mekari/pixel3-styled-system/css";
|
|
9
|
-
import { flex } from "@mekari/pixel3-styled-system/patterns";
|
|
10
8
|
import { defineComponent } from "vue";
|
|
9
|
+
import { timelineSeparatorSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
11
10
|
var MpTimelineSeparator = defineComponent({
|
|
12
11
|
name: "MpTimelineSeparator",
|
|
13
12
|
props: timelineSeparatorProps,
|
|
14
13
|
setup(props) {
|
|
15
|
-
const classes = {
|
|
16
|
-
wrapper: flex({
|
|
17
|
-
flexDirection: "column",
|
|
18
|
-
alignItems: "center"
|
|
19
|
-
}),
|
|
20
|
-
topConnector: css({
|
|
21
|
-
height: "6px",
|
|
22
|
-
width: "2px",
|
|
23
|
-
backgroundColor: props.position === "first" ? "transparent" : "gray.100",
|
|
24
|
-
roundedBottom: "2px"
|
|
25
|
-
}),
|
|
26
|
-
bottomConnector: css({
|
|
27
|
-
height: "100%",
|
|
28
|
-
flexGrow: 1,
|
|
29
|
-
width: "2px",
|
|
30
|
-
backgroundColor: props.position === "last" ? "transparent" : "gray.100",
|
|
31
|
-
roundedTop: "2px"
|
|
32
|
-
})
|
|
33
|
-
};
|
|
34
14
|
const iconAttrs = {
|
|
35
15
|
approved: {
|
|
36
16
|
name: "done",
|
|
@@ -59,12 +39,14 @@ var MpTimelineSeparator = defineComponent({
|
|
|
59
39
|
}
|
|
60
40
|
};
|
|
61
41
|
return () => {
|
|
42
|
+
const classes = timelineSeparatorSlotRecipe();
|
|
62
43
|
return _createVNode("div", {
|
|
63
44
|
"data-pixel-component": "MpTimelineSeparator",
|
|
64
|
-
"class": classes.
|
|
45
|
+
"class": classes.root
|
|
65
46
|
}, [_createVNode("div", {
|
|
66
47
|
"data-pixel-component": "MpTimelineConnector",
|
|
67
48
|
"data-connector": "top",
|
|
49
|
+
"data-position": props.position,
|
|
68
50
|
"class": classes.topConnector
|
|
69
51
|
}, null), _createVNode(MpIcon, {
|
|
70
52
|
"name": props.icon || iconAttrs[props.status].name,
|
|
@@ -74,6 +56,7 @@ var MpTimelineSeparator = defineComponent({
|
|
|
74
56
|
}, null), _createVNode("div", {
|
|
75
57
|
"data-connector": "bottom",
|
|
76
58
|
"data-pixel-component": "MpTimelineConnector",
|
|
59
|
+
"data-position": props.position,
|
|
77
60
|
"class": classes.bottomConnector
|
|
78
61
|
}, null)]);
|
|
79
62
|
};
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
// src/body.tsx
|
|
2
2
|
import { createVNode as _createVNode } from "vue";
|
|
3
3
|
import { defineComponent } from "vue";
|
|
4
|
-
import {
|
|
4
|
+
import { timelineSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
5
5
|
var MpTimelineBody = defineComponent({
|
|
6
6
|
name: "MpTimelineBody",
|
|
7
7
|
setup(_props, {
|
|
8
8
|
slots
|
|
9
9
|
}) {
|
|
10
|
+
const classes = timelineSlotRecipe();
|
|
10
11
|
return () => {
|
|
11
12
|
return _createVNode("div", {
|
|
12
13
|
"data-pixel-component": "MpTimelineBody",
|
|
13
|
-
"class":
|
|
14
|
-
marginLeft: "3",
|
|
15
|
-
paddingTop: "6px",
|
|
16
|
-
paddingBottom: "3",
|
|
17
|
-
width: "full"
|
|
18
|
-
})
|
|
14
|
+
"class": classes.body
|
|
19
15
|
}, [slots.default && slots.default()]);
|
|
20
16
|
};
|
|
21
17
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
// src/content.tsx
|
|
2
2
|
import { createVNode as _createVNode } from "vue";
|
|
3
3
|
import { defineComponent } from "vue";
|
|
4
|
-
import {
|
|
4
|
+
import { timelineSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
5
5
|
var MpTimelineContent = defineComponent({
|
|
6
6
|
name: "MpTimelineContent",
|
|
7
7
|
setup(_props, {
|
|
8
8
|
slots
|
|
9
9
|
}) {
|
|
10
|
+
const classes = timelineSlotRecipe();
|
|
10
11
|
return () => {
|
|
11
12
|
return _createVNode("div", {
|
|
12
13
|
"data-pixel-component": "MpTimelineContent",
|
|
13
|
-
"class":
|
|
14
|
-
paddingTop: 3
|
|
15
|
-
})
|
|
14
|
+
"class": classes.content
|
|
16
15
|
}, [slots.default && slots.default()]);
|
|
17
16
|
};
|
|
18
17
|
}
|
|
@@ -5,45 +5,30 @@ import {
|
|
|
5
5
|
// src/log.tsx
|
|
6
6
|
import { createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
|
|
7
7
|
import { MpIcon } from "@mekari/pixel3-icon";
|
|
8
|
-
import { css } from "@mekari/pixel3-styled-system/css";
|
|
9
|
-
import { flex } from "@mekari/pixel3-styled-system/patterns";
|
|
10
8
|
import { MpAnimateHeight } from "@mekari/pixel3-transition";
|
|
11
9
|
import { defineComponent, ref } from "vue";
|
|
10
|
+
import { timelineLogSlotRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
12
11
|
var MpTimelineLog = defineComponent({
|
|
13
12
|
name: "MpTimelineLog",
|
|
14
13
|
props: timelineLogProps,
|
|
15
14
|
setup(props, {
|
|
16
15
|
slots
|
|
17
16
|
}) {
|
|
17
|
+
const classes = timelineLogSlotRecipe();
|
|
18
18
|
const isOpen = ref(props.isOpen);
|
|
19
19
|
return () => {
|
|
20
20
|
return _createVNode("div", {
|
|
21
|
-
"class":
|
|
22
|
-
display: "flex",
|
|
23
|
-
flexDirection: "column"
|
|
24
|
-
})
|
|
21
|
+
"class": classes.root
|
|
25
22
|
}, [_createVNode("button", {
|
|
26
23
|
"data-pixel-component": "MpTimelineLog",
|
|
27
24
|
"aria-expanded": isOpen.value || void 0,
|
|
28
|
-
"class": ["group",
|
|
29
|
-
cursor: "pointer"
|
|
30
|
-
})],
|
|
25
|
+
"class": ["group", classes.log],
|
|
31
26
|
"onClick": () => isOpen.value = !isOpen.value
|
|
32
27
|
}, [_createVNode("p", {
|
|
33
|
-
"class":
|
|
34
|
-
color: "gray.400",
|
|
35
|
-
_groupHover: {
|
|
36
|
-
color: "blue.500"
|
|
37
|
-
}
|
|
38
|
-
})
|
|
28
|
+
"class": classes.logText
|
|
39
29
|
}, [_createTextVNode("Change log")]), _createVNode(MpIcon, {
|
|
40
30
|
"name": "caret-down",
|
|
41
|
-
"class":
|
|
42
|
-
color: "gray.400",
|
|
43
|
-
_groupHover: {
|
|
44
|
-
color: "blue.500"
|
|
45
|
-
}
|
|
46
|
-
}),
|
|
31
|
+
"class": classes.logIcon,
|
|
47
32
|
"style": {
|
|
48
33
|
transition: "transform 0.2s",
|
|
49
34
|
transformOrigin: "center",
|
|
@@ -52,10 +37,7 @@ var MpTimelineLog = defineComponent({
|
|
|
52
37
|
}, null)]), _createVNode(MpAnimateHeight, {
|
|
53
38
|
"isOpen": isOpen.value,
|
|
54
39
|
"as": "ul",
|
|
55
|
-
"class":
|
|
56
|
-
listStyleType: "disc",
|
|
57
|
-
paddingLeft: 5
|
|
58
|
-
})
|
|
40
|
+
"class": classes.content
|
|
59
41
|
}, {
|
|
60
42
|
default: () => [slots.default && slots.default()]
|
|
61
43
|
})]);
|
package/dist/content.js
CHANGED
|
@@ -25,18 +25,17 @@ __export(content_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(content_exports);
|
|
26
26
|
var import_vue = require("vue");
|
|
27
27
|
var import_vue2 = require("vue");
|
|
28
|
-
var
|
|
28
|
+
var import_recipes = require("@mekari/pixel3-styled-system/recipes");
|
|
29
29
|
var MpTimelineContent = (0, import_vue2.defineComponent)({
|
|
30
30
|
name: "MpTimelineContent",
|
|
31
31
|
setup(_props, {
|
|
32
32
|
slots
|
|
33
33
|
}) {
|
|
34
|
+
const classes = (0, import_recipes.timelineSlotRecipe)();
|
|
34
35
|
return () => {
|
|
35
36
|
return (0, import_vue.createVNode)("div", {
|
|
36
37
|
"data-pixel-component": "MpTimelineContent",
|
|
37
|
-
"class":
|
|
38
|
-
paddingTop: 3
|
|
39
|
-
})
|
|
38
|
+
"class": classes.content
|
|
40
39
|
}, [slots.default && slots.default()]);
|
|
41
40
|
};
|
|
42
41
|
}
|