@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,67 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const timelineItemProps: {
|
|
4
|
+
position: {
|
|
5
|
+
type: PropType<"last" | "first" | "middle">;
|
|
6
|
+
};
|
|
7
|
+
status: {
|
|
8
|
+
type: PropType<"approved" | "canceled" | "need-approval" | "rejected" | "created">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
icon: {
|
|
12
|
+
type: PropType<string>;
|
|
13
|
+
};
|
|
14
|
+
iconVariant: {
|
|
15
|
+
type: PropType<"fill" | "outline" | "duotone">;
|
|
16
|
+
};
|
|
17
|
+
iconColor: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
declare const timelineDocumentProps: {
|
|
22
|
+
title: {
|
|
23
|
+
type: PropType<string>;
|
|
24
|
+
};
|
|
25
|
+
fileSize: {
|
|
26
|
+
type: PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
icon: {
|
|
29
|
+
type: PropType<string>;
|
|
30
|
+
};
|
|
31
|
+
iconVariant: {
|
|
32
|
+
type: PropType<"fill" | "outline" | "duotone">;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
declare const timelineAccordionProps: {
|
|
37
|
+
isOpen: {
|
|
38
|
+
type: PropType<boolean>;
|
|
39
|
+
};
|
|
40
|
+
label: {
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
required: boolean;
|
|
43
|
+
};
|
|
44
|
+
position: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
declare const timelineSeparatorProps: {
|
|
49
|
+
position: {
|
|
50
|
+
type: PropType<"last" | "first" | "middle">;
|
|
51
|
+
};
|
|
52
|
+
status: {
|
|
53
|
+
type: PropType<"approved" | "canceled" | "need-approval" | "rejected" | "created">;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
icon: {
|
|
57
|
+
type: PropType<string>;
|
|
58
|
+
};
|
|
59
|
+
iconVariant: {
|
|
60
|
+
type: PropType<"fill" | "outline" | "duotone">;
|
|
61
|
+
};
|
|
62
|
+
iconColor: {
|
|
63
|
+
type: PropType<string>;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export { timelineAccordionProps, timelineDocumentProps, timelineItemProps, timelineSeparatorProps };
|
|
@@ -0,0 +1,98 @@
|
|
|
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/modules/timeline.props.ts
|
|
21
|
+
var timeline_props_exports = {};
|
|
22
|
+
__export(timeline_props_exports, {
|
|
23
|
+
timelineAccordionProps: () => timelineAccordionProps,
|
|
24
|
+
timelineDocumentProps: () => timelineDocumentProps,
|
|
25
|
+
timelineItemProps: () => timelineItemProps,
|
|
26
|
+
timelineSeparatorProps: () => timelineSeparatorProps
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(timeline_props_exports);
|
|
29
|
+
var timelineItemProps = {
|
|
30
|
+
position: {
|
|
31
|
+
type: String
|
|
32
|
+
},
|
|
33
|
+
status: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "created"
|
|
36
|
+
},
|
|
37
|
+
icon: {
|
|
38
|
+
type: String
|
|
39
|
+
},
|
|
40
|
+
iconVariant: {
|
|
41
|
+
type: String
|
|
42
|
+
},
|
|
43
|
+
iconColor: {
|
|
44
|
+
type: String
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var timelineDocumentProps = {
|
|
48
|
+
title: {
|
|
49
|
+
type: String
|
|
50
|
+
},
|
|
51
|
+
fileSize: {
|
|
52
|
+
type: String
|
|
53
|
+
},
|
|
54
|
+
icon: {
|
|
55
|
+
type: String
|
|
56
|
+
},
|
|
57
|
+
iconVariant: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "outline"
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
var timelineAccordionProps = {
|
|
63
|
+
isOpen: {
|
|
64
|
+
type: Boolean
|
|
65
|
+
},
|
|
66
|
+
label: {
|
|
67
|
+
type: String,
|
|
68
|
+
required: true
|
|
69
|
+
},
|
|
70
|
+
position: {
|
|
71
|
+
type: String
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var timelineSeparatorProps = {
|
|
75
|
+
position: {
|
|
76
|
+
type: String
|
|
77
|
+
},
|
|
78
|
+
status: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: "created"
|
|
81
|
+
},
|
|
82
|
+
icon: {
|
|
83
|
+
type: String
|
|
84
|
+
},
|
|
85
|
+
iconVariant: {
|
|
86
|
+
type: String
|
|
87
|
+
},
|
|
88
|
+
iconColor: {
|
|
89
|
+
type: String
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
93
|
+
0 && (module.exports = {
|
|
94
|
+
timelineAccordionProps,
|
|
95
|
+
timelineDocumentProps,
|
|
96
|
+
timelineItemProps,
|
|
97
|
+
timelineSeparatorProps
|
|
98
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
timelineAccordionProps,
|
|
3
|
+
timelineDocumentProps,
|
|
4
|
+
timelineItemProps,
|
|
5
|
+
timelineSeparatorProps
|
|
6
|
+
} from "../chunk-6JLFY5TN.mjs";
|
|
7
|
+
import "../chunk-QZ7VFGWC.mjs";
|
|
8
|
+
export {
|
|
9
|
+
timelineAccordionProps,
|
|
10
|
+
timelineDocumentProps,
|
|
11
|
+
timelineItemProps,
|
|
12
|
+
timelineSeparatorProps
|
|
13
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
2
|
+
import * as vue from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const MpTimelineSeparator: vue.DefineComponent<{
|
|
5
|
+
position: {
|
|
6
|
+
type: vue.PropType<"first" | "last" | "middle">;
|
|
7
|
+
};
|
|
8
|
+
status: {
|
|
9
|
+
type: vue.PropType<"approved" | "canceled" | "need-approval" | "rejected" | "created">;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
icon: {
|
|
13
|
+
type: vue.PropType<string>;
|
|
14
|
+
};
|
|
15
|
+
iconVariant: {
|
|
16
|
+
type: vue.PropType<"fill" | "outline" | "duotone">;
|
|
17
|
+
};
|
|
18
|
+
iconColor: {
|
|
19
|
+
type: vue.PropType<string>;
|
|
20
|
+
};
|
|
21
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
22
|
+
position: {
|
|
23
|
+
type: vue.PropType<"first" | "last" | "middle">;
|
|
24
|
+
};
|
|
25
|
+
status: {
|
|
26
|
+
type: vue.PropType<"approved" | "canceled" | "need-approval" | "rejected" | "created">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
icon: {
|
|
30
|
+
type: vue.PropType<string>;
|
|
31
|
+
};
|
|
32
|
+
iconVariant: {
|
|
33
|
+
type: vue.PropType<"fill" | "outline" | "duotone">;
|
|
34
|
+
};
|
|
35
|
+
iconColor: {
|
|
36
|
+
type: vue.PropType<string>;
|
|
37
|
+
};
|
|
38
|
+
}>>, {
|
|
39
|
+
status: "approved" | "canceled" | "need-approval" | "rejected" | "created";
|
|
40
|
+
}>;
|
|
41
|
+
|
|
42
|
+
export { MpTimelineSeparator };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
2
|
+
import * as vue from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const MpTimelineSeparator: vue.DefineComponent<{
|
|
5
|
+
position: {
|
|
6
|
+
type: vue.PropType<"first" | "last" | "middle">;
|
|
7
|
+
};
|
|
8
|
+
status: {
|
|
9
|
+
type: vue.PropType<"approved" | "canceled" | "need-approval" | "rejected" | "created">;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
icon: {
|
|
13
|
+
type: vue.PropType<string>;
|
|
14
|
+
};
|
|
15
|
+
iconVariant: {
|
|
16
|
+
type: vue.PropType<"fill" | "outline" | "duotone">;
|
|
17
|
+
};
|
|
18
|
+
iconColor: {
|
|
19
|
+
type: vue.PropType<string>;
|
|
20
|
+
};
|
|
21
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
22
|
+
position: {
|
|
23
|
+
type: vue.PropType<"first" | "last" | "middle">;
|
|
24
|
+
};
|
|
25
|
+
status: {
|
|
26
|
+
type: vue.PropType<"approved" | "canceled" | "need-approval" | "rejected" | "created">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
icon: {
|
|
30
|
+
type: vue.PropType<string>;
|
|
31
|
+
};
|
|
32
|
+
iconVariant: {
|
|
33
|
+
type: vue.PropType<"fill" | "outline" | "duotone">;
|
|
34
|
+
};
|
|
35
|
+
iconColor: {
|
|
36
|
+
type: vue.PropType<string>;
|
|
37
|
+
};
|
|
38
|
+
}>>, {
|
|
39
|
+
status: "approved" | "canceled" | "need-approval" | "rejected" | "created";
|
|
40
|
+
}>;
|
|
41
|
+
|
|
42
|
+
export { MpTimelineSeparator };
|
|
@@ -0,0 +1,127 @@
|
|
|
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/separator.tsx
|
|
21
|
+
var separator_exports = {};
|
|
22
|
+
__export(separator_exports, {
|
|
23
|
+
MpTimelineSeparator: () => MpTimelineSeparator
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(separator_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 timelineSeparatorProps = {
|
|
34
|
+
position: {
|
|
35
|
+
type: String
|
|
36
|
+
},
|
|
37
|
+
status: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: "created"
|
|
40
|
+
},
|
|
41
|
+
icon: {
|
|
42
|
+
type: String
|
|
43
|
+
},
|
|
44
|
+
iconVariant: {
|
|
45
|
+
type: String
|
|
46
|
+
},
|
|
47
|
+
iconColor: {
|
|
48
|
+
type: String
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// src/separator.tsx
|
|
53
|
+
var MpTimelineSeparator = (0, import_vue2.defineComponent)({
|
|
54
|
+
name: "MpTimelineSeparator",
|
|
55
|
+
props: timelineSeparatorProps,
|
|
56
|
+
setup(props) {
|
|
57
|
+
const classes = {
|
|
58
|
+
wrapper: (0, import_patterns.flex)({
|
|
59
|
+
flexDirection: "column",
|
|
60
|
+
alignItems: "center"
|
|
61
|
+
}),
|
|
62
|
+
topConnector: (0, import_css.css)({
|
|
63
|
+
height: "6px",
|
|
64
|
+
width: "2px",
|
|
65
|
+
backgroundColor: props.position === "first" ? "transparent" : "gray.100",
|
|
66
|
+
roundedBottom: "2px"
|
|
67
|
+
}),
|
|
68
|
+
bottomConnector: (0, import_css.css)({
|
|
69
|
+
height: "100%",
|
|
70
|
+
flexGrow: 1,
|
|
71
|
+
width: "2px",
|
|
72
|
+
backgroundColor: props.position === "last" ? "transparent" : "gray.100",
|
|
73
|
+
roundedTop: "2px"
|
|
74
|
+
})
|
|
75
|
+
};
|
|
76
|
+
const iconAttrs = {
|
|
77
|
+
approved: {
|
|
78
|
+
name: "done",
|
|
79
|
+
color: "green.700",
|
|
80
|
+
variant: "fill"
|
|
81
|
+
},
|
|
82
|
+
canceled: {
|
|
83
|
+
name: "error",
|
|
84
|
+
color: "gray.400",
|
|
85
|
+
variant: "fill"
|
|
86
|
+
},
|
|
87
|
+
"need-approval": {
|
|
88
|
+
name: "time",
|
|
89
|
+
color: "orange.700",
|
|
90
|
+
variant: "fill"
|
|
91
|
+
},
|
|
92
|
+
rejected: {
|
|
93
|
+
name: "error",
|
|
94
|
+
color: "red.700",
|
|
95
|
+
variant: "fill"
|
|
96
|
+
},
|
|
97
|
+
created: {
|
|
98
|
+
name: "indicator-circle",
|
|
99
|
+
color: "blue.400",
|
|
100
|
+
variant: "fill"
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
return () => {
|
|
104
|
+
return (0, import_vue.createVNode)("div", {
|
|
105
|
+
"data-pixel-component": "MpTimelineSeparator",
|
|
106
|
+
"class": classes.wrapper
|
|
107
|
+
}, [(0, import_vue.createVNode)("div", {
|
|
108
|
+
"data-pixel-component": "MpTimelineConnector",
|
|
109
|
+
"data-connector": "top",
|
|
110
|
+
"class": classes.topConnector
|
|
111
|
+
}, null), (0, import_vue.createVNode)(import_pixel3_icon.MpIcon, {
|
|
112
|
+
"name": props.icon || iconAttrs[props.status].name,
|
|
113
|
+
"color": props.iconColor || iconAttrs[props.status].color,
|
|
114
|
+
"variant": props.iconVariant || iconAttrs[props.status].variant,
|
|
115
|
+
"size": "sm"
|
|
116
|
+
}, null), (0, import_vue.createVNode)("div", {
|
|
117
|
+
"data-connector": "bottom",
|
|
118
|
+
"data-pixel-component": "MpTimelineConnector",
|
|
119
|
+
"class": classes.bottomConnector
|
|
120
|
+
}, null)]);
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
125
|
+
0 && (module.exports = {
|
|
126
|
+
MpTimelineSeparator
|
|
127
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
type AnyObject = {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const MpTimeline: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
8
|
+
|
|
9
|
+
export { AnyObject, MpTimeline };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
type AnyObject = {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
};
|
|
7
|
+
declare const MpTimeline: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
8
|
+
|
|
9
|
+
export { AnyObject, MpTimeline };
|
package/dist/timeline.js
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
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 __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/timeline.tsx
|
|
22
|
+
var timeline_exports = {};
|
|
23
|
+
__export(timeline_exports, {
|
|
24
|
+
MpTimeline: () => MpTimeline
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(timeline_exports);
|
|
27
|
+
var import_vue = require("vue");
|
|
28
|
+
var import_css = require("@mekari/pixel3-styled-system/css");
|
|
29
|
+
var import_vue2 = require("vue");
|
|
30
|
+
var MpTimeline = (0, import_vue2.defineComponent)({
|
|
31
|
+
name: "MpTimeline",
|
|
32
|
+
setup(_props, {
|
|
33
|
+
slots
|
|
34
|
+
}) {
|
|
35
|
+
return () => {
|
|
36
|
+
const children = slots.default && slots.default();
|
|
37
|
+
const timelineItemVNode = children ? children.filter((n) => {
|
|
38
|
+
const name = n.type.name;
|
|
39
|
+
const acceptedNode = ["MpTimelineItem", "MpTimelineAccordion"];
|
|
40
|
+
return acceptedNode.includes(name);
|
|
41
|
+
}) : [];
|
|
42
|
+
const length = timelineItemVNode.length - 1;
|
|
43
|
+
const cloneTimelineItem = timelineItemVNode.map((vnode, index) => {
|
|
44
|
+
const getPosition = /* @__PURE__ */ __name((index2) => {
|
|
45
|
+
if (index2 === length)
|
|
46
|
+
return "last";
|
|
47
|
+
if (index2 === 0)
|
|
48
|
+
return "first";
|
|
49
|
+
return "middle";
|
|
50
|
+
}, "getPosition");
|
|
51
|
+
const node = (0, import_vue2.cloneVNode)(vnode, {
|
|
52
|
+
position: getPosition(index)
|
|
53
|
+
});
|
|
54
|
+
return node;
|
|
55
|
+
});
|
|
56
|
+
return (0, import_vue.createVNode)("ul", {
|
|
57
|
+
"data-pixel-component": "MpTimeline",
|
|
58
|
+
"class": (0, import_css.css)({
|
|
59
|
+
maxWidth: "sm"
|
|
60
|
+
})
|
|
61
|
+
}, [cloneTimelineItem]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
+
0 && (module.exports = {
|
|
67
|
+
MpTimeline
|
|
68
|
+
});
|
package/dist/title.d.mts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const MpTimelineTitle: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
|
|
6
|
+
export { MpTimelineTitle };
|
package/dist/title.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
declare const MpTimelineTitle: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
|
|
6
|
+
export { MpTimelineTitle };
|
package/dist/title.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
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/title.tsx
|
|
21
|
+
var title_exports = {};
|
|
22
|
+
__export(title_exports, {
|
|
23
|
+
MpTimelineTitle: () => MpTimelineTitle
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(title_exports);
|
|
26
|
+
var import_vue = require("vue");
|
|
27
|
+
var import_vue2 = require("vue");
|
|
28
|
+
var MpTimelineTitle = (0, import_vue2.defineComponent)({
|
|
29
|
+
name: "MpTimelineTitle",
|
|
30
|
+
setup(_props, {
|
|
31
|
+
slots
|
|
32
|
+
}) {
|
|
33
|
+
return () => {
|
|
34
|
+
return (0, import_vue.createVNode)("div", {
|
|
35
|
+
"data-pixel-component": "MpTimelineTitle"
|
|
36
|
+
}, [slots.default && slots.default()]);
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
MpTimelineTitle
|
|
43
|
+
});
|
package/dist/title.mjs
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mekari/pixel3-timeline",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"@mekari/pixel3-styled-system": "0.0.1",
|
|
11
|
+
"@mekari/pixel3-utils": "0.0.2",
|
|
12
|
+
"@mekari/pixel3-icon": "0.0.2",
|
|
13
|
+
"@mekari/pixel3-transition": "0.0.1"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"vue": "3.2.47"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"vue": "3.2.47"
|
|
20
|
+
},
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"module": "dist/index.mjs",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"require": "./dist/index.js",
|
|
30
|
+
"default": "./dist/index.mjs"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"clean": "rimraf dist .turbo",
|
|
35
|
+
"build": "tsup && pnpm build:types",
|
|
36
|
+
"build:fast": "tsup",
|
|
37
|
+
"build:types": "tsup src --dts-only",
|
|
38
|
+
"build:external": "tsup src/index.tsx --external @acme-org/styled-system",
|
|
39
|
+
"types:check": "tsc --noEmit",
|
|
40
|
+
"replace-config": "clean-package",
|
|
41
|
+
"restore-config": "clean-package restore"
|
|
42
|
+
}
|
|
43
|
+
}
|