@mekari/pixel3-tabs 0.0.14-dev.0 → 0.0.14-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/chunk-BL274B26.mjs +36 -0
- package/dist/{chunk-SMPQ5Z7S.mjs → chunk-NAYD3AQO.mjs} +2 -2
- package/dist/{chunk-D6AW4HES.mjs → chunk-PK7I5463.mjs} +9 -1
- package/dist/{chunk-46QYKUG3.mjs → chunk-XFNUNL7H.mjs} +9 -1
- package/dist/index.js +44 -3
- package/dist/index.mjs +4 -3
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/modules/tabs.hooks.d.mts +3 -3
- package/dist/modules/tabs.hooks.d.ts +3 -3
- package/dist/modules/tabs.utils.d.mts +9 -0
- package/dist/modules/tabs.utils.d.ts +9 -0
- package/dist/modules/tabs.utils.js +57 -0
- package/dist/modules/tabs.utils.mjs +7 -0
- package/dist/tab-list.js +35 -1
- package/dist/tab-list.mjs +2 -1
- package/dist/tab-panels.js +35 -1
- package/dist/tab-panels.mjs +2 -1
- package/dist/tab.d.mts +1 -1
- package/dist/tab.d.ts +1 -1
- package/dist/tab.js +1 -1
- package/dist/tab.mjs +1 -1
- package/dist/tabs.d.mts +1 -1
- package/dist/tabs.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__name
|
|
3
|
+
} from "./chunk-QZ7VFGWC.mjs";
|
|
4
|
+
|
|
5
|
+
// src/modules/tabs.utils.ts
|
|
6
|
+
var isValidChild = /* @__PURE__ */ __name((node, {
|
|
7
|
+
nodeName,
|
|
8
|
+
allowedNodes
|
|
9
|
+
}) => {
|
|
10
|
+
const name = node.type.name;
|
|
11
|
+
const isValid = allowedNodes.includes(name);
|
|
12
|
+
if (!isValid) {
|
|
13
|
+
console.warn(`[Pixel]: Invalid child component of ${nodeName}. Only ${allowedNodes.join(" and ")} are allowed.`);
|
|
14
|
+
}
|
|
15
|
+
return isValid;
|
|
16
|
+
}, "isValidChild");
|
|
17
|
+
var getValidChildrens = /* @__PURE__ */ __name((children, options) => {
|
|
18
|
+
const validChildrens = [];
|
|
19
|
+
children.forEach((child) => {
|
|
20
|
+
const isVueFragment = typeof child.type === "symbol" && Symbol.keyFor(child.type) === "v-fgt";
|
|
21
|
+
if (isVueFragment) {
|
|
22
|
+
child.children.forEach((subChild) => {
|
|
23
|
+
if (isValidChild(subChild, options))
|
|
24
|
+
validChildrens.push(subChild);
|
|
25
|
+
});
|
|
26
|
+
} else {
|
|
27
|
+
if (isValidChild(child, options))
|
|
28
|
+
validChildrens.push(child);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
return validChildrens;
|
|
32
|
+
}, "getValidChildrens");
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
getValidChildrens
|
|
36
|
+
};
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
// src/tab.tsx
|
|
13
13
|
import { createVNode as _createVNode } from "vue";
|
|
14
14
|
import { defineComponent, unref } from "vue";
|
|
15
|
-
import {
|
|
15
|
+
import { tabSelectedBorderRecipe } from "@mekari/pixel3-styled-system/recipes";
|
|
16
16
|
var MpTab = defineComponent({
|
|
17
17
|
name: "MpTab",
|
|
18
18
|
props: tabProps,
|
|
@@ -41,7 +41,7 @@ var MpTabSelectedBorder = defineComponent({
|
|
|
41
41
|
} = rootProps;
|
|
42
42
|
return () => {
|
|
43
43
|
return _createVNode("div", {
|
|
44
|
-
"class":
|
|
44
|
+
"class": tabSelectedBorderRecipe({
|
|
45
45
|
isSelected: props.isSelected,
|
|
46
46
|
variantColor: unref(variantColor)
|
|
47
47
|
}),
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getValidChildrens
|
|
3
|
+
} from "./chunk-BL274B26.mjs";
|
|
1
4
|
import {
|
|
2
5
|
useTabPanels
|
|
3
6
|
} from "./chunk-LHXOFCTX.mjs";
|
|
@@ -15,7 +18,12 @@ var MpTabPanels = defineComponent({
|
|
|
15
18
|
selectedTab
|
|
16
19
|
} = useTabPanels();
|
|
17
20
|
return () => {
|
|
18
|
-
const
|
|
21
|
+
const children = slots.default && slots.default();
|
|
22
|
+
const validChildrens = getValidChildrens(children || [], {
|
|
23
|
+
nodeName: "MpTabPanels",
|
|
24
|
+
allowedNodes: ["MpTabPanel"]
|
|
25
|
+
});
|
|
26
|
+
const clones = validChildrens.map((vnode, index) => {
|
|
19
27
|
const clone = cloneVNode(vnode, {
|
|
20
28
|
isSelected: selectedTab.value === index
|
|
21
29
|
});
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getValidChildrens
|
|
3
|
+
} from "./chunk-BL274B26.mjs";
|
|
1
4
|
import {
|
|
2
5
|
useTabList
|
|
3
6
|
} from "./chunk-LHXOFCTX.mjs";
|
|
@@ -17,7 +20,12 @@ var MpTabList = defineComponent({
|
|
|
17
20
|
selectedTab
|
|
18
21
|
} = useTabList();
|
|
19
22
|
return () => {
|
|
20
|
-
const
|
|
23
|
+
const children = slots.default && slots.default();
|
|
24
|
+
const validChildrens = getValidChildrens(children || [], {
|
|
25
|
+
nodeName: "MpTabList",
|
|
26
|
+
allowedNodes: ["MpTab"]
|
|
27
|
+
});
|
|
28
|
+
const clones = validChildrens.map((vnode, index) => {
|
|
21
29
|
const clone = cloneVNode(vnode, {
|
|
22
30
|
isSelected: selectedTab.value === index,
|
|
23
31
|
index,
|
package/dist/index.js
CHANGED
|
@@ -252,6 +252,37 @@ var MpTabs = (0, import_vue3.defineComponent)({
|
|
|
252
252
|
// src/tab-list.tsx
|
|
253
253
|
var import_vue5 = require("vue");
|
|
254
254
|
var import_vue6 = require("vue");
|
|
255
|
+
|
|
256
|
+
// src/modules/tabs.utils.ts
|
|
257
|
+
var isValidChild = /* @__PURE__ */ __name((node, {
|
|
258
|
+
nodeName,
|
|
259
|
+
allowedNodes
|
|
260
|
+
}) => {
|
|
261
|
+
const name = node.type.name;
|
|
262
|
+
const isValid = allowedNodes.includes(name);
|
|
263
|
+
if (!isValid) {
|
|
264
|
+
console.warn(`[Pixel]: Invalid child component of ${nodeName}. Only ${allowedNodes.join(" and ")} are allowed.`);
|
|
265
|
+
}
|
|
266
|
+
return isValid;
|
|
267
|
+
}, "isValidChild");
|
|
268
|
+
var getValidChildrens = /* @__PURE__ */ __name((children, options) => {
|
|
269
|
+
const validChildrens = [];
|
|
270
|
+
children.forEach((child) => {
|
|
271
|
+
const isVueFragment = typeof child.type === "symbol" && Symbol.keyFor(child.type) === "v-fgt";
|
|
272
|
+
if (isVueFragment) {
|
|
273
|
+
child.children.forEach((subChild) => {
|
|
274
|
+
if (isValidChild(subChild, options))
|
|
275
|
+
validChildrens.push(subChild);
|
|
276
|
+
});
|
|
277
|
+
} else {
|
|
278
|
+
if (isValidChild(child, options))
|
|
279
|
+
validChildrens.push(child);
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
return validChildrens;
|
|
283
|
+
}, "getValidChildrens");
|
|
284
|
+
|
|
285
|
+
// src/tab-list.tsx
|
|
255
286
|
var MpTabList = (0, import_vue6.defineComponent)({
|
|
256
287
|
name: "MpTabList",
|
|
257
288
|
setup(props, {
|
|
@@ -264,7 +295,12 @@ var MpTabList = (0, import_vue6.defineComponent)({
|
|
|
264
295
|
selectedTab
|
|
265
296
|
} = useTabList();
|
|
266
297
|
return () => {
|
|
267
|
-
const
|
|
298
|
+
const children = slots.default && slots.default();
|
|
299
|
+
const validChildrens = getValidChildrens(children || [], {
|
|
300
|
+
nodeName: "MpTabList",
|
|
301
|
+
allowedNodes: ["MpTab"]
|
|
302
|
+
});
|
|
303
|
+
const clones = validChildrens.map((vnode, index) => {
|
|
268
304
|
const clone = (0, import_vue6.cloneVNode)(vnode, {
|
|
269
305
|
isSelected: selectedTab.value === index,
|
|
270
306
|
index,
|
|
@@ -312,7 +348,7 @@ var MpTabSelectedBorder = (0, import_vue8.defineComponent)({
|
|
|
312
348
|
} = rootProps;
|
|
313
349
|
return () => {
|
|
314
350
|
return (0, import_vue7.createVNode)("div", {
|
|
315
|
-
"class": (0, import_recipes2.
|
|
351
|
+
"class": (0, import_recipes2.tabSelectedBorderRecipe)({
|
|
316
352
|
isSelected: props.isSelected,
|
|
317
353
|
variantColor: (0, import_vue8.unref)(variantColor)
|
|
318
354
|
}),
|
|
@@ -335,7 +371,12 @@ var MpTabPanels = (0, import_vue10.defineComponent)({
|
|
|
335
371
|
selectedTab
|
|
336
372
|
} = useTabPanels();
|
|
337
373
|
return () => {
|
|
338
|
-
const
|
|
374
|
+
const children = slots.default && slots.default();
|
|
375
|
+
const validChildrens = getValidChildrens(children || [], {
|
|
376
|
+
nodeName: "MpTabPanels",
|
|
377
|
+
allowedNodes: ["MpTabPanel"]
|
|
378
|
+
});
|
|
379
|
+
const clones = validChildrens.map((vnode, index) => {
|
|
339
380
|
const clone = (0, import_vue10.cloneVNode)(vnode, {
|
|
340
381
|
isSelected: selectedTab.value === index
|
|
341
382
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MpTabList
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XFNUNL7H.mjs";
|
|
4
4
|
import {
|
|
5
5
|
MpTabPanel
|
|
6
6
|
} from "./chunk-BNHJW7SW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
MpTabPanels
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PK7I5463.mjs";
|
|
10
|
+
import "./chunk-BL274B26.mjs";
|
|
10
11
|
import {
|
|
11
12
|
MpTab
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NAYD3AQO.mjs";
|
|
13
14
|
import {
|
|
14
15
|
MpTabs
|
|
15
16
|
} from "./chunk-VC24XC6J.mjs";
|
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/tabs.props.ts":{"bytes":1691,"imports":[],"format":"esm"},"src/modules/tabs.context.ts":{"bytes":559,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/modules/tabs.hooks.ts":{"bytes":2855,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./tabs.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/tabs.tsx":{"bytes":838,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./modules/tabs.context"}],"format":"esm"},"src/tab-list.tsx":{"bytes":
|
|
1
|
+
{"inputs":{"src/modules/tabs.props.ts":{"bytes":1691,"imports":[],"format":"esm"},"src/modules/tabs.context.ts":{"bytes":559,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/modules/tabs.hooks.ts":{"bytes":2855,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./tabs.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/tabs.tsx":{"bytes":838,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./modules/tabs.context"}],"format":"esm"},"src/modules/tabs.utils.ts":{"bytes":1474,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/tab-list.tsx":{"bytes":1170,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.utils.ts","kind":"import-statement","original":"./modules/tabs.utils"}],"format":"esm"},"src/tab.tsx":{"bytes":1328,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./modules/tabs.context"}],"format":"esm"},"src/tab-panels.tsx":{"bytes":963,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.utils.ts","kind":"import-statement","original":"./modules/tabs.utils"}],"format":"esm"},"src/tab-panel.tsx":{"bytes":744,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"}],"format":"esm"},"src/index.ts":{"bytes":218,"imports":[{"path":"src/tabs.tsx","kind":"import-statement","original":"./tabs"},{"path":"src/tab-list.tsx","kind":"import-statement","original":"./tab-list"},{"path":"src/tab.tsx","kind":"import-statement","original":"./tab"},{"path":"src/tab-panels.tsx","kind":"import-statement","original":"./tab-panels"},{"path":"src/tab-panel.tsx","kind":"import-statement","original":"./tab-panel"}],"format":"esm"}},"outputs":{"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":235},"src/tabs.tsx":{"bytesInOutput":623},"src/modules/tabs.props.ts":{"bytesInOutput":746},"src/modules/tabs.hooks.ts":{"bytesInOutput":2884},"src/modules/tabs.context.ts":{"bytesInOutput":159},"src/tab-list.tsx":{"bytesInOutput":993},"src/modules/tabs.utils.ts":{"bytesInOutput":891},"src/tab.tsx":{"bytesInOutput":1140},"src/tab-panels.tsx":{"bytesInOutput":778},"src/tab-panel.tsx":{"bytesInOutput":556}},"bytes":10351},"dist/tab-list.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/tab-list.tsx","inputs":{"src/tab-list.tsx":{"bytesInOutput":1131},"src/modules/tabs.hooks.ts":{"bytesInOutput":778},"src/modules/tabs.context.ts":{"bytesInOutput":159},"src/modules/tabs.utils.ts":{"bytesInOutput":891}},"bytes":4115},"dist/tab-panel.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/tab-panel.tsx","inputs":{"src/tab-panel.tsx":{"bytesInOutput":693},"src/modules/tabs.hooks.ts":{"bytesInOutput":485},"src/modules/tabs.context.ts":{"bytesInOutput":159},"src/modules/tabs.props.ts":{"bytesInOutput":155}},"bytes":2651},"dist/tab-panels.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/tab-panels.tsx","inputs":{"src/tab-panels.tsx":{"bytesInOutput":923},"src/modules/tabs.hooks.ts":{"bytesInOutput":449},"src/modules/tabs.context.ts":{"bytesInOutput":159},"src/modules/tabs.utils.ts":{"bytesInOutput":891}},"bytes":3584},"dist/tab.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/tab.tsx","inputs":{"src/tab.tsx":{"bytesInOutput":1255},"src/modules/tabs.props.ts":{"bytesInOutput":289},"src/modules/tabs.hooks.ts":{"bytesInOutput":908},"src/modules/tabs.context.ts":{"bytesInOutput":159}},"bytes":3753},"dist/tabs.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/tabs.tsx","inputs":{"src/tabs.tsx":{"bytesInOutput":743},"src/modules/tabs.props.ts":{"bytesInOutput":302},"src/modules/tabs.hooks.ts":{"bytesInOutput":916},"src/modules/tabs.context.ts":{"bytesInOutput":159}},"bytes":3265},"dist/modules/tabs.context.js":{"imports":[{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/tabs.context.ts","inputs":{"src/modules/tabs.context.ts":{"bytesInOutput":355}},"bytes":1310},"dist/modules/tabs.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/tabs.hooks.ts","inputs":{"src/modules/tabs.hooks.ts":{"bytesInOutput":3150},"src/modules/tabs.context.ts":{"bytesInOutput":159}},"bytes":4446},"dist/modules/tabs.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/tabs.props.ts","inputs":{"src/modules/tabs.props.ts":{"bytesInOutput":1006}},"bytes":1990},"dist/modules/tabs.utils.js":{"imports":[],"exports":[],"entryPoint":"src/modules/tabs.utils.ts","inputs":{"src/modules/tabs.utils.ts":{"bytesInOutput":1051}},"bytes":2081}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"src/modules/tabs.props.ts":{"bytes":1691,"imports":[],"format":"esm"},"src/modules/tabs.context.ts":{"bytes":559,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/modules/tabs.hooks.ts":{"bytes":2855,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./tabs.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/tabs.tsx":{"bytes":838,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./modules/tabs.context"}],"format":"esm"},"src/tab-list.tsx":{"bytes":919,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"}],"format":"esm"},"src/tab.tsx":{"bytes":1322,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./modules/tabs.context"}],"format":"esm"},"src/tab-panels.tsx":{"bytes":705,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"}],"format":"esm"},"src/tab-panel.tsx":{"bytes":744,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"}],"format":"esm"},"src/index.ts":{"bytes":218,"imports":[{"path":"src/tabs.tsx","kind":"import-statement","original":"./tabs"},{"path":"src/tab-list.tsx","kind":"import-statement","original":"./tab-list"},{"path":"src/tab.tsx","kind":"import-statement","original":"./tab"},{"path":"src/tab-panels.tsx","kind":"import-statement","original":"./tab-panels"},{"path":"src/tab-panel.tsx","kind":"import-statement","original":"./tab-panel"}],"format":"esm"}},"outputs":{"dist/modules/tabs.props.mjs":{"imports":[{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["selectedBorderProps","tabPanelProps","tabProps","tabsProps"],"entryPoint":"src/modules/tabs.props.ts","inputs":{},"bytes":213},"dist/index.mjs":{"imports":[{"path":"dist/chunk-46QYKUG3.mjs","kind":"import-statement"},{"path":"dist/chunk-BNHJW7SW.mjs","kind":"import-statement"},{"path":"dist/chunk-D6AW4HES.mjs","kind":"import-statement"},{"path":"dist/chunk-SMPQ5Z7S.mjs","kind":"import-statement"},{"path":"dist/chunk-VC24XC6J.mjs","kind":"import-statement"},{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTab","MpTabList","MpTabPanel","MpTabPanels","MpTabs"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":452},"dist/tab-list.mjs":{"imports":[{"path":"dist/chunk-46QYKUG3.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTabList"],"entryPoint":"src/tab-list.tsx","inputs":{},"bytes":169},"dist/chunk-46QYKUG3.mjs":{"imports":[{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpTabList"],"inputs":{"src/tab-list.tsx":{"bytesInOutput":767}},"bytes":866},"dist/tab-panel.mjs":{"imports":[{"path":"dist/chunk-BNHJW7SW.mjs","kind":"import-statement"},{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTabPanel"],"entryPoint":"src/tab-panel.tsx","inputs":{},"bytes":202},"dist/chunk-BNHJW7SW.mjs":{"imports":[{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpTabPanel"],"inputs":{"src/tab-panel.tsx":{"bytesInOutput":544}},"bytes":702},"dist/tab-panels.mjs":{"imports":[{"path":"dist/chunk-D6AW4HES.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTabPanels"],"entryPoint":"src/tab-panels.tsx","inputs":{},"bytes":173},"dist/chunk-D6AW4HES.mjs":{"imports":[{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpTabPanels"],"inputs":{"src/tab-panels.tsx":{"bytesInOutput":558}},"bytes":663},"dist/tab.mjs":{"imports":[{"path":"dist/chunk-SMPQ5Z7S.mjs","kind":"import-statement"},{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTab"],"entryPoint":"src/tab.tsx","inputs":{},"bytes":192},"dist/chunk-SMPQ5Z7S.mjs":{"imports":[{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["MpTab"],"inputs":{"src/tab.tsx":{"bytesInOutput":1052}},"bytes":1269},"dist/tabs.mjs":{"imports":[{"path":"dist/chunk-VC24XC6J.mjs","kind":"import-statement"},{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTabs"],"entryPoint":"src/tabs.tsx","inputs":{},"bytes":194},"dist/chunk-VC24XC6J.mjs":{"imports":[{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpTabs"],"inputs":{"src/tabs.tsx":{"bytesInOutput":591}},"bytes":787},"dist/chunk-S4TZOCG7.mjs":{"imports":[],"exports":["selectedBorderProps","tabPanelProps","tabProps","tabsProps"],"inputs":{"src/modules/tabs.props.ts":{"bytesInOutput":746}},"bytes":852},"dist/modules/tabs.context.mjs":{"imports":[{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["TabsProvider","useTabsContext"],"entryPoint":"src/modules/tabs.context.ts","inputs":{},"bytes":151},"dist/modules/tabs.hooks.mjs":{"imports":[{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useTab","useTabList","useTabPanel","useTabPanels","useTabs"],"entryPoint":"src/modules/tabs.hooks.ts","inputs":{},"bytes":247},"dist/chunk-LHXOFCTX.mjs":{"imports":[{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["useTab","useTabList","useTabPanel","useTabPanels","useTabs"],"inputs":{"src/modules/tabs.hooks.ts":{"bytesInOutput":2664}},"bytes":2878},"dist/chunk-S5AGDSR2.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["TabsProvider","useTabsContext"],"inputs":{"src/modules/tabs.context.ts":{"bytesInOutput":137}},"bytes":214},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
|
1
|
+
{"inputs":{"src/modules/tabs.props.ts":{"bytes":1691,"imports":[],"format":"esm"},"src/modules/tabs.context.ts":{"bytes":559,"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"format":"esm"},"src/modules/tabs.hooks.ts":{"bytes":2855,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./tabs.context"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/tabs.tsx":{"bytes":838,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./modules/tabs.context"}],"format":"esm"},"src/modules/tabs.utils.ts":{"bytes":1474,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/tab-list.tsx":{"bytes":1170,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.utils.ts","kind":"import-statement","original":"./modules/tabs.utils"}],"format":"esm"},"src/tab.tsx":{"bytes":1328,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.context.ts","kind":"import-statement","original":"./modules/tabs.context"}],"format":"esm"},"src/tab-panels.tsx":{"bytes":963,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.utils.ts","kind":"import-statement","original":"./modules/tabs.utils"}],"format":"esm"},"src/tab-panel.tsx":{"bytes":744,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"src/modules/tabs.hooks.ts","kind":"import-statement","original":"./modules/tabs.hooks"},{"path":"src/modules/tabs.props.ts","kind":"import-statement","original":"./modules/tabs.props"}],"format":"esm"},"src/index.ts":{"bytes":218,"imports":[{"path":"src/tabs.tsx","kind":"import-statement","original":"./tabs"},{"path":"src/tab-list.tsx","kind":"import-statement","original":"./tab-list"},{"path":"src/tab.tsx","kind":"import-statement","original":"./tab"},{"path":"src/tab-panels.tsx","kind":"import-statement","original":"./tab-panels"},{"path":"src/tab-panel.tsx","kind":"import-statement","original":"./tab-panel"}],"format":"esm"}},"outputs":{"dist/modules/tabs.props.mjs":{"imports":[{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["selectedBorderProps","tabPanelProps","tabProps","tabsProps"],"entryPoint":"src/modules/tabs.props.ts","inputs":{},"bytes":213},"dist/modules/tabs.utils.mjs":{"imports":[{"path":"dist/chunk-BL274B26.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["getValidChildrens"],"entryPoint":"src/modules/tabs.utils.ts","inputs":{},"bytes":125},"dist/index.mjs":{"imports":[{"path":"dist/chunk-XFNUNL7H.mjs","kind":"import-statement"},{"path":"dist/chunk-BNHJW7SW.mjs","kind":"import-statement"},{"path":"dist/chunk-PK7I5463.mjs","kind":"import-statement"},{"path":"dist/chunk-BL274B26.mjs","kind":"import-statement"},{"path":"dist/chunk-NAYD3AQO.mjs","kind":"import-statement"},{"path":"dist/chunk-VC24XC6J.mjs","kind":"import-statement"},{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTab","MpTabList","MpTabPanel","MpTabPanels","MpTabs"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":483},"dist/tab-list.mjs":{"imports":[{"path":"dist/chunk-XFNUNL7H.mjs","kind":"import-statement"},{"path":"dist/chunk-BL274B26.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTabList"],"entryPoint":"src/tab-list.tsx","inputs":{},"bytes":200},"dist/chunk-XFNUNL7H.mjs":{"imports":[{"path":"dist/chunk-BL274B26.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpTabList"],"inputs":{"src/tab-list.tsx":{"bytesInOutput":961}},"bytes":1120},"dist/tab-panel.mjs":{"imports":[{"path":"dist/chunk-BNHJW7SW.mjs","kind":"import-statement"},{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTabPanel"],"entryPoint":"src/tab-panel.tsx","inputs":{},"bytes":202},"dist/chunk-BNHJW7SW.mjs":{"imports":[{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpTabPanel"],"inputs":{"src/tab-panel.tsx":{"bytesInOutput":544}},"bytes":702},"dist/tab-panels.mjs":{"imports":[{"path":"dist/chunk-PK7I5463.mjs","kind":"import-statement"},{"path":"dist/chunk-BL274B26.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTabPanels"],"entryPoint":"src/tab-panels.tsx","inputs":{},"bytes":204},"dist/chunk-PK7I5463.mjs":{"imports":[{"path":"dist/chunk-BL274B26.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpTabPanels"],"inputs":{"src/tab-panels.tsx":{"bytesInOutput":759}},"bytes":924},"dist/chunk-BL274B26.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["getValidChildrens"],"inputs":{"src/modules/tabs.utils.ts":{"bytesInOutput":891}},"bytes":1003},"dist/tab.mjs":{"imports":[{"path":"dist/chunk-NAYD3AQO.mjs","kind":"import-statement"},{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTab"],"entryPoint":"src/tab.tsx","inputs":{},"bytes":192},"dist/chunk-NAYD3AQO.mjs":{"imports":[{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true}],"exports":["MpTab"],"inputs":{"src/tab.tsx":{"bytesInOutput":1058}},"bytes":1275},"dist/tabs.mjs":{"imports":[{"path":"dist/chunk-VC24XC6J.mjs","kind":"import-statement"},{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpTabs"],"entryPoint":"src/tabs.tsx","inputs":{},"bytes":194},"dist/chunk-VC24XC6J.mjs":{"imports":[{"path":"dist/chunk-S4TZOCG7.mjs","kind":"import-statement"},{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true}],"exports":["MpTabs"],"inputs":{"src/tabs.tsx":{"bytesInOutput":591}},"bytes":787},"dist/chunk-S4TZOCG7.mjs":{"imports":[],"exports":["selectedBorderProps","tabPanelProps","tabProps","tabsProps"],"inputs":{"src/modules/tabs.props.ts":{"bytesInOutput":746}},"bytes":852},"dist/modules/tabs.context.mjs":{"imports":[{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["TabsProvider","useTabsContext"],"entryPoint":"src/modules/tabs.context.ts","inputs":{},"bytes":151},"dist/modules/tabs.hooks.mjs":{"imports":[{"path":"dist/chunk-LHXOFCTX.mjs","kind":"import-statement"},{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useTab","useTabList","useTabPanel","useTabPanels","useTabs"],"entryPoint":"src/modules/tabs.hooks.ts","inputs":{},"bytes":247},"dist/chunk-LHXOFCTX.mjs":{"imports":[{"path":"dist/chunk-S5AGDSR2.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["useTab","useTabList","useTabPanel","useTabPanels","useTabs"],"inputs":{"src/modules/tabs.hooks.ts":{"bytesInOutput":2664}},"bytes":2878},"dist/chunk-S5AGDSR2.mjs":{"imports":[{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true}],"exports":["TabsProvider","useTabsContext"],"inputs":{"src/modules/tabs.context.ts":{"bytesInOutput":137}},"bytes":214},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
|
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { TabsProps, TabsEmits, TabProps, TabPanelProps } from './tabs.props.mjs';
|
|
3
3
|
|
|
4
4
|
declare function useTabs(props: TabsProps, emit: TabsEmits): {
|
|
5
|
-
selectedTab: vue.
|
|
5
|
+
selectedTab: vue.ComputedRef<number | undefined> | vue.Ref<number>;
|
|
6
6
|
onChangeTab: (value: number) => void;
|
|
7
7
|
rootAttrs: vue.ComputedRef<{
|
|
8
8
|
'data-pixel-component': string;
|
|
@@ -13,7 +13,7 @@ declare function useTabs(props: TabsProps, emit: TabsEmits): {
|
|
|
13
13
|
declare function useTabList(): {
|
|
14
14
|
tabsProps: vue.ToRefs<TabsProps>;
|
|
15
15
|
onChangeTab: (value: number) => void;
|
|
16
|
-
selectedTab: vue.
|
|
16
|
+
selectedTab: vue.ComputedRef<number | undefined> | vue.Ref<number>;
|
|
17
17
|
rootAttrs: {
|
|
18
18
|
'data-border': boolean;
|
|
19
19
|
class: string;
|
|
@@ -42,7 +42,7 @@ declare function useTabPanels(): {
|
|
|
42
42
|
rootAttrs: vue.ComputedRef<{
|
|
43
43
|
'data-pixel-component': string;
|
|
44
44
|
}>;
|
|
45
|
-
selectedTab: vue.
|
|
45
|
+
selectedTab: vue.ComputedRef<number | undefined> | vue.Ref<number>;
|
|
46
46
|
};
|
|
47
47
|
declare function useTabPanel(props: TabPanelProps): {
|
|
48
48
|
rootAttrs: vue.ComputedRef<{
|
|
@@ -2,7 +2,7 @@ import * as vue from 'vue';
|
|
|
2
2
|
import { TabsProps, TabsEmits, TabProps, TabPanelProps } from './tabs.props.js';
|
|
3
3
|
|
|
4
4
|
declare function useTabs(props: TabsProps, emit: TabsEmits): {
|
|
5
|
-
selectedTab: vue.
|
|
5
|
+
selectedTab: vue.ComputedRef<number | undefined> | vue.Ref<number>;
|
|
6
6
|
onChangeTab: (value: number) => void;
|
|
7
7
|
rootAttrs: vue.ComputedRef<{
|
|
8
8
|
'data-pixel-component': string;
|
|
@@ -13,7 +13,7 @@ declare function useTabs(props: TabsProps, emit: TabsEmits): {
|
|
|
13
13
|
declare function useTabList(): {
|
|
14
14
|
tabsProps: vue.ToRefs<TabsProps>;
|
|
15
15
|
onChangeTab: (value: number) => void;
|
|
16
|
-
selectedTab: vue.
|
|
16
|
+
selectedTab: vue.ComputedRef<number | undefined> | vue.Ref<number>;
|
|
17
17
|
rootAttrs: {
|
|
18
18
|
'data-border': boolean;
|
|
19
19
|
class: string;
|
|
@@ -42,7 +42,7 @@ declare function useTabPanels(): {
|
|
|
42
42
|
rootAttrs: vue.ComputedRef<{
|
|
43
43
|
'data-pixel-component': string;
|
|
44
44
|
}>;
|
|
45
|
-
selectedTab: vue.
|
|
45
|
+
selectedTab: vue.ComputedRef<number | undefined> | vue.Ref<number>;
|
|
46
46
|
};
|
|
47
47
|
declare function useTabPanel(props: TabPanelProps): {
|
|
48
48
|
rootAttrs: vue.ComputedRef<{
|
|
@@ -0,0 +1,57 @@
|
|
|
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/modules/tabs.utils.ts
|
|
22
|
+
var tabs_utils_exports = {};
|
|
23
|
+
__export(tabs_utils_exports, {
|
|
24
|
+
getValidChildrens: () => getValidChildrens
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(tabs_utils_exports);
|
|
27
|
+
var isValidChild = /* @__PURE__ */ __name((node, {
|
|
28
|
+
nodeName,
|
|
29
|
+
allowedNodes
|
|
30
|
+
}) => {
|
|
31
|
+
const name = node.type.name;
|
|
32
|
+
const isValid = allowedNodes.includes(name);
|
|
33
|
+
if (!isValid) {
|
|
34
|
+
console.warn(`[Pixel]: Invalid child component of ${nodeName}. Only ${allowedNodes.join(" and ")} are allowed.`);
|
|
35
|
+
}
|
|
36
|
+
return isValid;
|
|
37
|
+
}, "isValidChild");
|
|
38
|
+
var getValidChildrens = /* @__PURE__ */ __name((children, options) => {
|
|
39
|
+
const validChildrens = [];
|
|
40
|
+
children.forEach((child) => {
|
|
41
|
+
const isVueFragment = typeof child.type === "symbol" && Symbol.keyFor(child.type) === "v-fgt";
|
|
42
|
+
if (isVueFragment) {
|
|
43
|
+
child.children.forEach((subChild) => {
|
|
44
|
+
if (isValidChild(subChild, options))
|
|
45
|
+
validChildrens.push(subChild);
|
|
46
|
+
});
|
|
47
|
+
} else {
|
|
48
|
+
if (isValidChild(child, options))
|
|
49
|
+
validChildrens.push(child);
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
return validChildrens;
|
|
53
|
+
}, "getValidChildrens");
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
getValidChildrens
|
|
57
|
+
});
|
package/dist/tab-list.js
CHANGED
|
@@ -70,6 +70,35 @@ function useTabList() {
|
|
|
70
70
|
}
|
|
71
71
|
__name(useTabList, "useTabList");
|
|
72
72
|
|
|
73
|
+
// src/modules/tabs.utils.ts
|
|
74
|
+
var isValidChild = /* @__PURE__ */ __name((node, {
|
|
75
|
+
nodeName,
|
|
76
|
+
allowedNodes
|
|
77
|
+
}) => {
|
|
78
|
+
const name = node.type.name;
|
|
79
|
+
const isValid = allowedNodes.includes(name);
|
|
80
|
+
if (!isValid) {
|
|
81
|
+
console.warn(`[Pixel]: Invalid child component of ${nodeName}. Only ${allowedNodes.join(" and ")} are allowed.`);
|
|
82
|
+
}
|
|
83
|
+
return isValid;
|
|
84
|
+
}, "isValidChild");
|
|
85
|
+
var getValidChildrens = /* @__PURE__ */ __name((children, options) => {
|
|
86
|
+
const validChildrens = [];
|
|
87
|
+
children.forEach((child) => {
|
|
88
|
+
const isVueFragment = typeof child.type === "symbol" && Symbol.keyFor(child.type) === "v-fgt";
|
|
89
|
+
if (isVueFragment) {
|
|
90
|
+
child.children.forEach((subChild) => {
|
|
91
|
+
if (isValidChild(subChild, options))
|
|
92
|
+
validChildrens.push(subChild);
|
|
93
|
+
});
|
|
94
|
+
} else {
|
|
95
|
+
if (isValidChild(child, options))
|
|
96
|
+
validChildrens.push(child);
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
return validChildrens;
|
|
100
|
+
}, "getValidChildrens");
|
|
101
|
+
|
|
73
102
|
// src/tab-list.tsx
|
|
74
103
|
var MpTabList = (0, import_vue3.defineComponent)({
|
|
75
104
|
name: "MpTabList",
|
|
@@ -83,7 +112,12 @@ var MpTabList = (0, import_vue3.defineComponent)({
|
|
|
83
112
|
selectedTab
|
|
84
113
|
} = useTabList();
|
|
85
114
|
return () => {
|
|
86
|
-
const
|
|
115
|
+
const children = slots.default && slots.default();
|
|
116
|
+
const validChildrens = getValidChildrens(children || [], {
|
|
117
|
+
nodeName: "MpTabList",
|
|
118
|
+
allowedNodes: ["MpTab"]
|
|
119
|
+
});
|
|
120
|
+
const clones = validChildrens.map((vnode, index) => {
|
|
87
121
|
const clone = (0, import_vue3.cloneVNode)(vnode, {
|
|
88
122
|
isSelected: selectedTab.value === index,
|
|
89
123
|
index,
|
package/dist/tab-list.mjs
CHANGED
package/dist/tab-panels.js
CHANGED
|
@@ -53,6 +53,35 @@ function useTabPanels() {
|
|
|
53
53
|
}
|
|
54
54
|
__name(useTabPanels, "useTabPanels");
|
|
55
55
|
|
|
56
|
+
// src/modules/tabs.utils.ts
|
|
57
|
+
var isValidChild = /* @__PURE__ */ __name((node, {
|
|
58
|
+
nodeName,
|
|
59
|
+
allowedNodes
|
|
60
|
+
}) => {
|
|
61
|
+
const name = node.type.name;
|
|
62
|
+
const isValid = allowedNodes.includes(name);
|
|
63
|
+
if (!isValid) {
|
|
64
|
+
console.warn(`[Pixel]: Invalid child component of ${nodeName}. Only ${allowedNodes.join(" and ")} are allowed.`);
|
|
65
|
+
}
|
|
66
|
+
return isValid;
|
|
67
|
+
}, "isValidChild");
|
|
68
|
+
var getValidChildrens = /* @__PURE__ */ __name((children, options) => {
|
|
69
|
+
const validChildrens = [];
|
|
70
|
+
children.forEach((child) => {
|
|
71
|
+
const isVueFragment = typeof child.type === "symbol" && Symbol.keyFor(child.type) === "v-fgt";
|
|
72
|
+
if (isVueFragment) {
|
|
73
|
+
child.children.forEach((subChild) => {
|
|
74
|
+
if (isValidChild(subChild, options))
|
|
75
|
+
validChildrens.push(subChild);
|
|
76
|
+
});
|
|
77
|
+
} else {
|
|
78
|
+
if (isValidChild(child, options))
|
|
79
|
+
validChildrens.push(child);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
return validChildrens;
|
|
83
|
+
}, "getValidChildrens");
|
|
84
|
+
|
|
56
85
|
// src/tab-panels.tsx
|
|
57
86
|
var MpTabPanels = (0, import_vue3.defineComponent)({
|
|
58
87
|
name: "MpTabPanels",
|
|
@@ -64,7 +93,12 @@ var MpTabPanels = (0, import_vue3.defineComponent)({
|
|
|
64
93
|
selectedTab
|
|
65
94
|
} = useTabPanels();
|
|
66
95
|
return () => {
|
|
67
|
-
const
|
|
96
|
+
const children = slots.default && slots.default();
|
|
97
|
+
const validChildrens = getValidChildrens(children || [], {
|
|
98
|
+
nodeName: "MpTabPanels",
|
|
99
|
+
allowedNodes: ["MpTabPanel"]
|
|
100
|
+
});
|
|
101
|
+
const clones = validChildrens.map((vnode, index) => {
|
|
68
102
|
const clone = (0, import_vue3.cloneVNode)(vnode, {
|
|
69
103
|
isSelected: selectedTab.value === index
|
|
70
104
|
});
|
package/dist/tab-panels.mjs
CHANGED
package/dist/tab.d.mts
CHANGED
package/dist/tab.d.ts
CHANGED
package/dist/tab.js
CHANGED
|
@@ -123,7 +123,7 @@ var MpTabSelectedBorder = (0, import_vue3.defineComponent)({
|
|
|
123
123
|
} = rootProps;
|
|
124
124
|
return () => {
|
|
125
125
|
return (0, import_vue2.createVNode)("div", {
|
|
126
|
-
"class": (0, import_recipes2.
|
|
126
|
+
"class": (0, import_recipes2.tabSelectedBorderRecipe)({
|
|
127
127
|
isSelected: props.isSelected,
|
|
128
128
|
variantColor: (0, import_vue3.unref)(variantColor)
|
|
129
129
|
}),
|
package/dist/tab.mjs
CHANGED
package/dist/tabs.d.mts
CHANGED
|
@@ -46,8 +46,8 @@ declare const MpTabs: vue.DefineComponent<{
|
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
}>> & {
|
|
49
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
49
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
variantColor: "blue" | "green" | "orange" | "red" | "gray";
|
|
53
53
|
defaultValue: number;
|
package/dist/tabs.d.ts
CHANGED
|
@@ -46,8 +46,8 @@ declare const MpTabs: vue.DefineComponent<{
|
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
48
|
}>> & {
|
|
49
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
50
49
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
variantColor: "blue" | "green" | "orange" | "red" | "gray";
|
|
53
53
|
defaultValue: number;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-tabs",
|
|
3
3
|
"description": "Tabs component for mekari pixel 3",
|
|
4
|
-
"version": "0.0.14-dev.
|
|
4
|
+
"version": "0.0.14-dev.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@mekari/pixel3-styled-system": "0.1.0-dev.
|
|
11
|
+
"@mekari/pixel3-styled-system": "0.1.0-dev.2",
|
|
12
12
|
"@mekari/pixel3-utils": "0.0.6"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|