@mekari/pixel3-timeline 0.0.1
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.d.mts +28 -0
- package/dist/accordion.d.ts +28 -0
- package/dist/accordion.js +165 -0
- package/dist/accordion.mjs +9 -0
- package/dist/body.d.mts +6 -0
- package/dist/body.d.ts +6 -0
- package/dist/body.js +50 -0
- package/dist/body.mjs +7 -0
- package/dist/caption.d.mts +6 -0
- package/dist/caption.d.ts +6 -0
- package/dist/caption.js +50 -0
- package/dist/caption.mjs +7 -0
- package/dist/chunk-34WPFRDZ.mjs +63 -0
- package/dist/chunk-6JLFY5TN.mjs +71 -0
- package/dist/chunk-7DG62NMG.mjs +47 -0
- package/dist/chunk-BR4DIYFA.mjs +85 -0
- package/dist/chunk-F5W3GZXM.mjs +26 -0
- package/dist/chunk-GIZF7OP5.mjs +23 -0
- package/dist/chunk-HSNDCO4E.mjs +23 -0
- package/dist/chunk-IM7DTIFU.mjs +71 -0
- package/dist/chunk-QZ7VFGWC.mjs +6 -0
- package/dist/chunk-TT37T2C6.mjs +43 -0
- package/dist/chunk-U2PMOVHB.mjs +111 -0
- package/dist/chunk-WXCDLWFJ.mjs +19 -0
- package/dist/chunk-ZG4NN7A5.mjs +26 -0
- package/dist/content.d.mts +6 -0
- package/dist/content.d.ts +6 -0
- package/dist/content.js +47 -0
- package/dist/content.mjs +7 -0
- package/dist/document.d.mts +36 -0
- package/dist/document.d.ts +36 -0
- package/dist/document.js +110 -0
- package/dist/document.mjs +8 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +587 -0
- package/dist/index.mjs +42 -0
- package/dist/item.d.mts +42 -0
- package/dist/item.d.ts +42 -0
- package/dist/item.js +200 -0
- package/dist/item.mjs +10 -0
- package/dist/log-item.d.mts +6 -0
- package/dist/log-item.d.ts +6 -0
- package/dist/log-item.js +47 -0
- package/dist/log-item.mjs +7 -0
- package/dist/log.d.mts +6 -0
- package/dist/log.d.ts +6 -0
- package/dist/log.js +87 -0
- package/dist/log.mjs +7 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/modules/timeline.props.d.mts +67 -0
- package/dist/modules/timeline.props.d.ts +67 -0
- package/dist/modules/timeline.props.js +98 -0
- package/dist/modules/timeline.props.mjs +13 -0
- package/dist/separator.d.mts +42 -0
- package/dist/separator.d.ts +42 -0
- package/dist/separator.js +127 -0
- package/dist/separator.mjs +8 -0
- package/dist/timeline.d.mts +9 -0
- package/dist/timeline.d.ts +9 -0
- package/dist/timeline.js +68 -0
- package/dist/timeline.mjs +7 -0
- package/dist/title.d.mts +6 -0
- package/dist/title.d.ts +6 -0
- package/dist/title.js +43 -0
- package/dist/title.mjs +7 -0
- package/package.json +43 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/log-item.tsx
|
|
2
|
+
import { createVNode as _createVNode } from "vue";
|
|
3
|
+
import { css } from "@mekari/pixel3-styled-system/css";
|
|
4
|
+
import { defineComponent } from "vue";
|
|
5
|
+
var MpTimelinLogItem = defineComponent({
|
|
6
|
+
name: "MpTimelinLogItem",
|
|
7
|
+
setup(_props, {
|
|
8
|
+
slots
|
|
9
|
+
}) {
|
|
10
|
+
return () => {
|
|
11
|
+
return _createVNode("li", {
|
|
12
|
+
"data-pixel-component": "MpTimelinLogItem",
|
|
13
|
+
"class": css({
|
|
14
|
+
color: "gray.600"
|
|
15
|
+
})
|
|
16
|
+
}, [slots.default && slots.default()]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
MpTimelinLogItem
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/content.tsx
|
|
2
|
+
import { createVNode as _createVNode } from "vue";
|
|
3
|
+
import { defineComponent } from "vue";
|
|
4
|
+
import { css } from "@mekari/pixel3-styled-system/css";
|
|
5
|
+
var MpTimelineContent = defineComponent({
|
|
6
|
+
name: "MpTimelineContent",
|
|
7
|
+
setup(_props, {
|
|
8
|
+
slots
|
|
9
|
+
}) {
|
|
10
|
+
return () => {
|
|
11
|
+
return _createVNode("div", {
|
|
12
|
+
"data-pixel-component": "MpTimelineContent",
|
|
13
|
+
"class": css({
|
|
14
|
+
paddingTop: 3
|
|
15
|
+
})
|
|
16
|
+
}, [slots.default && slots.default()]);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
MpTimelineContent
|
|
23
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
timelineDocumentProps
|
|
3
|
+
} from "./chunk-6JLFY5TN.mjs";
|
|
4
|
+
|
|
5
|
+
// src/document.tsx
|
|
6
|
+
import { createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
|
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
|
+
import { defineComponent } from "vue";
|
|
11
|
+
var MpTimelineDocument = defineComponent({
|
|
12
|
+
name: "MpTimelineDocument",
|
|
13
|
+
props: timelineDocumentProps,
|
|
14
|
+
setup(props, {
|
|
15
|
+
slots
|
|
16
|
+
}) {
|
|
17
|
+
return () => {
|
|
18
|
+
return _createVNode("span", {
|
|
19
|
+
"data-pixel-component": "MpTimelineDocument",
|
|
20
|
+
"class": css({
|
|
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
|
+
})
|
|
30
|
+
}, [_createVNode(MpIcon, {
|
|
31
|
+
"name": props.icon,
|
|
32
|
+
"variant": props.iconVariant
|
|
33
|
+
}, null), _createVNode("div", {
|
|
34
|
+
"class": flex({
|
|
35
|
+
flexDirection: "column",
|
|
36
|
+
marginLeft: props.icon ? "3" : "0"
|
|
37
|
+
})
|
|
38
|
+
}, [_createVNode("p", {
|
|
39
|
+
"style": {
|
|
40
|
+
overflow: "hidden",
|
|
41
|
+
display: "-webkit-box",
|
|
42
|
+
"-webkit-box-orient": "vertical",
|
|
43
|
+
"-webkit-line-clamp": 1
|
|
44
|
+
},
|
|
45
|
+
"class": css({
|
|
46
|
+
fontSize: "sm",
|
|
47
|
+
lineHeight: "md",
|
|
48
|
+
fontWeight: "regular",
|
|
49
|
+
letterSpacing: "normal",
|
|
50
|
+
color: "dark"
|
|
51
|
+
})
|
|
52
|
+
}, [props.title]), _createVNode("div", {
|
|
53
|
+
"class": flex({
|
|
54
|
+
alignItems: "center"
|
|
55
|
+
})
|
|
56
|
+
}, [_createVNode("p", {
|
|
57
|
+
"class": css({
|
|
58
|
+
fontSize: "sm",
|
|
59
|
+
lineHeight: "md",
|
|
60
|
+
fontWeight: "regular",
|
|
61
|
+
letterSpacing: "normal",
|
|
62
|
+
color: "gray.400"
|
|
63
|
+
})
|
|
64
|
+
}, [props.fileSize, _createTextVNode(" "), slots.default && " - "]), slots.default && slots.default()])])]);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export {
|
|
70
|
+
MpTimelineDocument
|
|
71
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MpTimelineSeparator
|
|
3
|
+
} from "./chunk-BR4DIYFA.mjs";
|
|
4
|
+
import {
|
|
5
|
+
MpTimelineBody
|
|
6
|
+
} from "./chunk-F5W3GZXM.mjs";
|
|
7
|
+
import {
|
|
8
|
+
timelineItemProps
|
|
9
|
+
} from "./chunk-6JLFY5TN.mjs";
|
|
10
|
+
|
|
11
|
+
// src/item.tsx
|
|
12
|
+
import { createVNode as _createVNode } from "vue";
|
|
13
|
+
import { css } from "@mekari/pixel3-styled-system/css";
|
|
14
|
+
import { defineComponent } from "vue";
|
|
15
|
+
var MpTimelineItem = defineComponent({
|
|
16
|
+
name: "MpTimelineItem",
|
|
17
|
+
props: timelineItemProps,
|
|
18
|
+
setup(props, {
|
|
19
|
+
slots
|
|
20
|
+
}) {
|
|
21
|
+
return () => {
|
|
22
|
+
return _createVNode("li", {
|
|
23
|
+
"data-pixel-component": "MpTimelineItem",
|
|
24
|
+
"data-position": props.position,
|
|
25
|
+
"class": css({
|
|
26
|
+
display: "flex"
|
|
27
|
+
})
|
|
28
|
+
}, [_createVNode(MpTimelineSeparator, {
|
|
29
|
+
"position": props.position,
|
|
30
|
+
"status": props.status,
|
|
31
|
+
"icon": props.icon,
|
|
32
|
+
"iconVariant": props.iconVariant,
|
|
33
|
+
"iconColor": props.iconColor
|
|
34
|
+
}, null), _createVNode(MpTimelineBody, null, {
|
|
35
|
+
default: () => [slots.default && slots.default()]
|
|
36
|
+
})]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export {
|
|
42
|
+
MpTimelineItem
|
|
43
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import {
|
|
2
|
+
MpTimelineBody
|
|
3
|
+
} from "./chunk-F5W3GZXM.mjs";
|
|
4
|
+
import {
|
|
5
|
+
timelineAccordionProps
|
|
6
|
+
} from "./chunk-6JLFY5TN.mjs";
|
|
7
|
+
import {
|
|
8
|
+
__name
|
|
9
|
+
} from "./chunk-QZ7VFGWC.mjs";
|
|
10
|
+
|
|
11
|
+
// src/accordion.tsx
|
|
12
|
+
import { isVNode as _isVNode, createTextVNode as _createTextVNode, createVNode as _createVNode } from "vue";
|
|
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
|
+
import { MpAnimateHeight } from "@mekari/pixel3-transition";
|
|
17
|
+
import { cloneVNode, defineComponent, ref } from "vue";
|
|
18
|
+
function _isSlot(s) {
|
|
19
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !_isVNode(s);
|
|
20
|
+
}
|
|
21
|
+
__name(_isSlot, "_isSlot");
|
|
22
|
+
var MpTimelineAccordion = defineComponent({
|
|
23
|
+
name: "MpTimelineAccordion",
|
|
24
|
+
props: timelineAccordionProps,
|
|
25
|
+
setup(props, {
|
|
26
|
+
slots
|
|
27
|
+
}) {
|
|
28
|
+
const isOpen = ref(props.isOpen || false);
|
|
29
|
+
return () => {
|
|
30
|
+
const children = slots.default && slots.default();
|
|
31
|
+
const timelineItemVNode = children ? children.filter((n) => n.type.name === "MpTimelineItem") : [];
|
|
32
|
+
const length = timelineItemVNode.length - 1;
|
|
33
|
+
const cloneTimelineItem = timelineItemVNode.map((vnode, index) => {
|
|
34
|
+
const getPosition = /* @__PURE__ */ __name((index2) => {
|
|
35
|
+
if (props.position === "last") {
|
|
36
|
+
if (index2 === length)
|
|
37
|
+
return "last";
|
|
38
|
+
}
|
|
39
|
+
return "";
|
|
40
|
+
}, "getPosition");
|
|
41
|
+
const node = cloneVNode(vnode, {
|
|
42
|
+
position: getPosition(index)
|
|
43
|
+
});
|
|
44
|
+
return node;
|
|
45
|
+
});
|
|
46
|
+
return _createVNode("li", {
|
|
47
|
+
"data-pixel-component": "MpTimelineAccordion"
|
|
48
|
+
}, [_createVNode("div", {
|
|
49
|
+
"data-pixel-component": "MpTimelineAccordionBody",
|
|
50
|
+
"class": flex()
|
|
51
|
+
}, [_createVNode("div", {
|
|
52
|
+
"data-pixel-component": "MpTimelineAccordionSeparator",
|
|
53
|
+
"class": flex({
|
|
54
|
+
flexDirection: "column",
|
|
55
|
+
alignItems: "center"
|
|
56
|
+
})
|
|
57
|
+
}, [_createVNode("div", {
|
|
58
|
+
"data-pixel-component": "MpTimelineAccordionConnector",
|
|
59
|
+
"class": css({
|
|
60
|
+
height: "4px",
|
|
61
|
+
width: "2px",
|
|
62
|
+
backgroundColor: props.position === "first" ? "transparent" : "gray.100",
|
|
63
|
+
roundedBottom: "full"
|
|
64
|
+
})
|
|
65
|
+
}, null), _createVNode("button", {
|
|
66
|
+
"role": "button",
|
|
67
|
+
"aria-expanded": isOpen.value || void 0,
|
|
68
|
+
"onClick": () => isOpen.value = !isOpen.value
|
|
69
|
+
}, [_createVNode(MpIcon, {
|
|
70
|
+
"name": isOpen.value ? "accordion-expand" : "accordion-collapse",
|
|
71
|
+
"size": "sm",
|
|
72
|
+
"color": "gray.600",
|
|
73
|
+
"class": css({
|
|
74
|
+
my: 1,
|
|
75
|
+
cursor: "pointer"
|
|
76
|
+
})
|
|
77
|
+
}, null)]), _createVNode("div", {
|
|
78
|
+
"data-pixel-component": "MpTimelineAccordionConnector",
|
|
79
|
+
"class": css({
|
|
80
|
+
flexGrow: 1,
|
|
81
|
+
width: "2px",
|
|
82
|
+
backgroundColor: !isOpen.value && props.position === "last" ? "transparent" : "gray.100",
|
|
83
|
+
roundedTop: "full"
|
|
84
|
+
})
|
|
85
|
+
}, null)]), _createVNode(MpTimelineBody, null, {
|
|
86
|
+
default: () => [_createVNode("div", {
|
|
87
|
+
"class": css({
|
|
88
|
+
paddingTop: 1
|
|
89
|
+
}),
|
|
90
|
+
"data-pixel-component": "MpTimelineAccordionTitle"
|
|
91
|
+
}, [_createVNode("p", {
|
|
92
|
+
"class": css({
|
|
93
|
+
fontSize: "md",
|
|
94
|
+
lineHeight: "md",
|
|
95
|
+
color: "dark",
|
|
96
|
+
fontWeight: "semibold",
|
|
97
|
+
letterSpacing: "normal"
|
|
98
|
+
})
|
|
99
|
+
}, [_createTextVNode("Label")])])]
|
|
100
|
+
})]), _createVNode(MpAnimateHeight, {
|
|
101
|
+
"isOpen": isOpen.value
|
|
102
|
+
}, _isSlot(cloneTimelineItem) ? cloneTimelineItem : {
|
|
103
|
+
default: () => [cloneTimelineItem]
|
|
104
|
+
})]);
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
export {
|
|
110
|
+
MpTimelineAccordion
|
|
111
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/title.tsx
|
|
2
|
+
import { createVNode as _createVNode } from "vue";
|
|
3
|
+
import { defineComponent } from "vue";
|
|
4
|
+
var MpTimelineTitle = defineComponent({
|
|
5
|
+
name: "MpTimelineTitle",
|
|
6
|
+
setup(_props, {
|
|
7
|
+
slots
|
|
8
|
+
}) {
|
|
9
|
+
return () => {
|
|
10
|
+
return _createVNode("div", {
|
|
11
|
+
"data-pixel-component": "MpTimelineTitle"
|
|
12
|
+
}, [slots.default && slots.default()]);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
MpTimelineTitle
|
|
19
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/caption.tsx
|
|
2
|
+
import { createVNode as _createVNode } from "vue";
|
|
3
|
+
import { defineComponent } from "vue";
|
|
4
|
+
import { css } from "@mekari/pixel3-styled-system/css";
|
|
5
|
+
var MpTimelineCaption = defineComponent({
|
|
6
|
+
name: "MpTimelineItem",
|
|
7
|
+
setup(_props, {
|
|
8
|
+
slots
|
|
9
|
+
}) {
|
|
10
|
+
return () => {
|
|
11
|
+
return _createVNode("span", {
|
|
12
|
+
"data-pixel-component": "MpTimelineCaption",
|
|
13
|
+
"class": css({
|
|
14
|
+
fontSize: "sm",
|
|
15
|
+
color: "gray.400",
|
|
16
|
+
lineHeight: "sm",
|
|
17
|
+
marginTop: "0.5"
|
|
18
|
+
})
|
|
19
|
+
}, [slots.default && slots.default()]);
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
MpTimelineCaption
|
|
26
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const MpTimelineContent: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
|
|
6
|
+
export { MpTimelineContent };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const MpTimelineContent: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
|
|
6
|
+
export { MpTimelineContent };
|
package/dist/content.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/content.tsx
|
|
21
|
+
var content_exports = {};
|
|
22
|
+
__export(content_exports, {
|
|
23
|
+
MpTimelineContent: () => MpTimelineContent
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(content_exports);
|
|
26
|
+
var import_vue = require("vue");
|
|
27
|
+
var import_vue2 = require("vue");
|
|
28
|
+
var import_css = require("@mekari/pixel3-styled-system/css");
|
|
29
|
+
var MpTimelineContent = (0, import_vue2.defineComponent)({
|
|
30
|
+
name: "MpTimelineContent",
|
|
31
|
+
setup(_props, {
|
|
32
|
+
slots
|
|
33
|
+
}) {
|
|
34
|
+
return () => {
|
|
35
|
+
return (0, import_vue.createVNode)("div", {
|
|
36
|
+
"data-pixel-component": "MpTimelineContent",
|
|
37
|
+
"class": (0, import_css.css)({
|
|
38
|
+
paddingTop: 3
|
|
39
|
+
})
|
|
40
|
+
}, [slots.default && slots.default()]);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
+
0 && (module.exports = {
|
|
46
|
+
MpTimelineContent
|
|
47
|
+
});
|
package/dist/content.mjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
2
|
+
import * as vue from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const MpTimelineDocument: vue.DefineComponent<{
|
|
5
|
+
title: {
|
|
6
|
+
type: vue.PropType<string>;
|
|
7
|
+
};
|
|
8
|
+
fileSize: {
|
|
9
|
+
type: vue.PropType<string>;
|
|
10
|
+
};
|
|
11
|
+
icon: {
|
|
12
|
+
type: vue.PropType<string>;
|
|
13
|
+
};
|
|
14
|
+
iconVariant: {
|
|
15
|
+
type: vue.PropType<"fill" | "outline" | "duotone">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
19
|
+
title: {
|
|
20
|
+
type: vue.PropType<string>;
|
|
21
|
+
};
|
|
22
|
+
fileSize: {
|
|
23
|
+
type: vue.PropType<string>;
|
|
24
|
+
};
|
|
25
|
+
icon: {
|
|
26
|
+
type: vue.PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
iconVariant: {
|
|
29
|
+
type: vue.PropType<"fill" | "outline" | "duotone">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
iconVariant: "fill" | "outline" | "duotone";
|
|
34
|
+
}>;
|
|
35
|
+
|
|
36
|
+
export { MpTimelineDocument };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
2
|
+
import * as vue from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const MpTimelineDocument: vue.DefineComponent<{
|
|
5
|
+
title: {
|
|
6
|
+
type: vue.PropType<string>;
|
|
7
|
+
};
|
|
8
|
+
fileSize: {
|
|
9
|
+
type: vue.PropType<string>;
|
|
10
|
+
};
|
|
11
|
+
icon: {
|
|
12
|
+
type: vue.PropType<string>;
|
|
13
|
+
};
|
|
14
|
+
iconVariant: {
|
|
15
|
+
type: vue.PropType<"fill" | "outline" | "duotone">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
19
|
+
title: {
|
|
20
|
+
type: vue.PropType<string>;
|
|
21
|
+
};
|
|
22
|
+
fileSize: {
|
|
23
|
+
type: vue.PropType<string>;
|
|
24
|
+
};
|
|
25
|
+
icon: {
|
|
26
|
+
type: vue.PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
iconVariant: {
|
|
29
|
+
type: vue.PropType<"fill" | "outline" | "duotone">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}>>, {
|
|
33
|
+
iconVariant: "fill" | "outline" | "duotone";
|
|
34
|
+
}>;
|
|
35
|
+
|
|
36
|
+
export { MpTimelineDocument };
|
package/dist/document.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/document.tsx
|
|
21
|
+
var document_exports = {};
|
|
22
|
+
__export(document_exports, {
|
|
23
|
+
MpTimelineDocument: () => MpTimelineDocument
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(document_exports);
|
|
26
|
+
var import_vue = require("vue");
|
|
27
|
+
var import_pixel3_icon = require("@mekari/pixel3-icon");
|
|
28
|
+
var import_css = require("@mekari/pixel3-styled-system/css");
|
|
29
|
+
var import_patterns = require("@mekari/pixel3-styled-system/patterns");
|
|
30
|
+
var import_vue2 = require("vue");
|
|
31
|
+
|
|
32
|
+
// src/modules/timeline.props.ts
|
|
33
|
+
var timelineDocumentProps = {
|
|
34
|
+
title: {
|
|
35
|
+
type: String
|
|
36
|
+
},
|
|
37
|
+
fileSize: {
|
|
38
|
+
type: String
|
|
39
|
+
},
|
|
40
|
+
icon: {
|
|
41
|
+
type: String
|
|
42
|
+
},
|
|
43
|
+
iconVariant: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: "outline"
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
// src/document.tsx
|
|
50
|
+
var MpTimelineDocument = (0, import_vue2.defineComponent)({
|
|
51
|
+
name: "MpTimelineDocument",
|
|
52
|
+
props: timelineDocumentProps,
|
|
53
|
+
setup(props, {
|
|
54
|
+
slots
|
|
55
|
+
}) {
|
|
56
|
+
return () => {
|
|
57
|
+
return (0, import_vue.createVNode)("span", {
|
|
58
|
+
"data-pixel-component": "MpTimelineDocument",
|
|
59
|
+
"class": (0, import_css.css)({
|
|
60
|
+
display: "flex",
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
paddingX: "3",
|
|
63
|
+
paddingY: "2",
|
|
64
|
+
borderRadius: "lg",
|
|
65
|
+
borderWidth: "1px",
|
|
66
|
+
borderColor: "gray.100",
|
|
67
|
+
width: "full"
|
|
68
|
+
})
|
|
69
|
+
}, [(0, import_vue.createVNode)(import_pixel3_icon.MpIcon, {
|
|
70
|
+
"name": props.icon,
|
|
71
|
+
"variant": props.iconVariant
|
|
72
|
+
}, null), (0, import_vue.createVNode)("div", {
|
|
73
|
+
"class": (0, import_patterns.flex)({
|
|
74
|
+
flexDirection: "column",
|
|
75
|
+
marginLeft: props.icon ? "3" : "0"
|
|
76
|
+
})
|
|
77
|
+
}, [(0, import_vue.createVNode)("p", {
|
|
78
|
+
"style": {
|
|
79
|
+
overflow: "hidden",
|
|
80
|
+
display: "-webkit-box",
|
|
81
|
+
"-webkit-box-orient": "vertical",
|
|
82
|
+
"-webkit-line-clamp": 1
|
|
83
|
+
},
|
|
84
|
+
"class": (0, import_css.css)({
|
|
85
|
+
fontSize: "sm",
|
|
86
|
+
lineHeight: "md",
|
|
87
|
+
fontWeight: "regular",
|
|
88
|
+
letterSpacing: "normal",
|
|
89
|
+
color: "dark"
|
|
90
|
+
})
|
|
91
|
+
}, [props.title]), (0, import_vue.createVNode)("div", {
|
|
92
|
+
"class": (0, import_patterns.flex)({
|
|
93
|
+
alignItems: "center"
|
|
94
|
+
})
|
|
95
|
+
}, [(0, import_vue.createVNode)("p", {
|
|
96
|
+
"class": (0, import_css.css)({
|
|
97
|
+
fontSize: "sm",
|
|
98
|
+
lineHeight: "md",
|
|
99
|
+
fontWeight: "regular",
|
|
100
|
+
letterSpacing: "normal",
|
|
101
|
+
color: "gray.400"
|
|
102
|
+
})
|
|
103
|
+
}, [props.fileSize, (0, import_vue.createTextVNode)(" "), slots.default && " - "]), slots.default && slots.default()])])]);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
108
|
+
0 && (module.exports = {
|
|
109
|
+
MpTimelineDocument
|
|
110
|
+
});
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { MpTimelineAccordion } from './accordion.mjs';
|
|
2
|
+
export { MpTimelineCaption } from './caption.mjs';
|
|
3
|
+
export { MpTimelineContent } from './content.mjs';
|
|
4
|
+
export { MpTimelineDocument } from './document.mjs';
|
|
5
|
+
export { MpTimelineItem } from './item.mjs';
|
|
6
|
+
export { MpTimelineLog } from './log.mjs';
|
|
7
|
+
export { MpTimelinLogItem } from './log-item.mjs';
|
|
8
|
+
export { AnyObject, MpTimeline } from './timeline.mjs';
|
|
9
|
+
export { MpTimelineTitle } from './title.mjs';
|
|
10
|
+
import 'vue/jsx-runtime';
|
|
11
|
+
import 'vue';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { MpTimelineAccordion } from './accordion.js';
|
|
2
|
+
export { MpTimelineCaption } from './caption.js';
|
|
3
|
+
export { MpTimelineContent } from './content.js';
|
|
4
|
+
export { MpTimelineDocument } from './document.js';
|
|
5
|
+
export { MpTimelineItem } from './item.js';
|
|
6
|
+
export { MpTimelineLog } from './log.js';
|
|
7
|
+
export { MpTimelinLogItem } from './log-item.js';
|
|
8
|
+
export { AnyObject, MpTimeline } from './timeline.js';
|
|
9
|
+
export { MpTimelineTitle } from './title.js';
|
|
10
|
+
import 'vue/jsx-runtime';
|
|
11
|
+
import 'vue';
|