@wikicasa-dev/components 1.9.26 → 1.9.27

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.CYvEsNdp.js";
1
+ import { _ as f } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.ho5b_0cc.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,3 +1,5 @@
1
+ import { ClassType } from '@wikicasa-dev/types';
2
+
1
3
  type BreadcrumbItemsType = {
2
4
  link: string;
3
5
  label: string;
@@ -14,8 +16,12 @@ declare function __VLS_template(): {
14
16
  };
15
17
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
16
18
  items: BreadcrumbItemsType[];
19
+ listClasses?: ClassType;
20
+ listItemClasses?: ClassType;
17
21
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
18
22
  items: BreadcrumbItemsType[];
23
+ listClasses?: ClassType;
24
+ listItemClasses?: ClassType;
19
25
  }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
20
26
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
27
  export default _default;
@@ -0,0 +1,57 @@
1
+ import { defineComponent as m, computed as d, openBlock as s, createElementBlock as i, createElementVNode as n, normalizeClass as r, Fragment as o, renderList as k, renderSlot as u, toDisplayString as h, createVNode as p, unref as f } from "vue";
2
+ import { d as b } from "./ArrowIcon.B7Oqov4Y.js";
3
+ import "./PharmacyIcon.qIkuSERu.js";
4
+ const C = { "aria-label": "Breadcrumb" }, g = ["href"], y = /* @__PURE__ */ m({
5
+ __name: "BaseBreadcrumb",
6
+ props: {
7
+ items: {},
8
+ listClasses: {},
9
+ listItemClasses: {}
10
+ },
11
+ setup(a) {
12
+ const c = d(() => {
13
+ let e = 0;
14
+ const l = [];
15
+ for (; e < a.items.length; )
16
+ l.push({ ...a.items[e], idx: e }), e < a.items.length - 1 && l.push({ arrowIcon: !0 }), e++;
17
+ return l;
18
+ });
19
+ return (e, l) => (s(), i("nav", C, [
20
+ n("ol", {
21
+ class: r(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", e.listClasses])
22
+ }, [
23
+ (s(!0), i(o, null, k(c.value, (t) => (s(), i(o, null, [
24
+ t?.label ? (s(), i("li", {
25
+ key: 0,
26
+ class: r(["uikit-list-none", e.listItemClasses])
27
+ }, [
28
+ u(e.$slots, "item", {
29
+ item: t
30
+ }, () => [
31
+ n("a", {
32
+ class: r(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
33
+ href: t.link
34
+ }, h(t.label), 11, g)
35
+ ])
36
+ ], 2)) : (s(), i("li", {
37
+ key: 1,
38
+ class: r(["uikit-list-none", e.listItemClasses]),
39
+ "aria-hidden": "true"
40
+ }, [
41
+ u(e.$slots, "separator", {}, () => [
42
+ p(f(b), {
43
+ class: "-uikit-rotate-90",
44
+ "stroke-color": "#222",
45
+ width: 10,
46
+ height: 10
47
+ })
48
+ ])
49
+ ], 2))
50
+ ], 64))), 256))
51
+ ], 2)
52
+ ]));
53
+ }
54
+ });
55
+ export {
56
+ y as _
57
+ };
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ import { _ as Ie } from "./chunks/IntersectionObserver.vue_vue_type_script_setup
40
40
  import { S as we } from "./chunks/SwiperCarousel.BV6QiwmC.js";
41
41
  import { default as ke } from "./SwiperSlide.js";
42
42
  import { useValidator as De } from "./useValidator.js";
43
- import { _ as Ge } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.CYvEsNdp.js";
43
+ import { _ as Ge } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.ho5b_0cc.js";
44
44
  import './assets/index.css';export {
45
45
  I as AccessibleSelect,
46
46
  r as BaseAccordion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.9.26",
3
+ "version": "1.9.27",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,53 +0,0 @@
1
- import { defineComponent as u, computed as d, openBlock as i, createElementBlock as r, createElementVNode as o, Fragment as l, renderList as m, renderSlot as a, normalizeClass as h, toDisplayString as k, createVNode as p, unref as _ } from "vue";
2
- import { d as f } from "./ArrowIcon.B7Oqov4Y.js";
3
- import "./PharmacyIcon.qIkuSERu.js";
4
- const b = { "aria-label": "Breadcrumb" }, g = { class: "uikit-flex uikit-items-center uikit-gap-10px uikit-p-0" }, w = {
5
- key: 0,
6
- class: "uikit-list-none"
7
- }, x = ["href"], B = {
8
- key: 1,
9
- class: "uikit-list-none",
10
- "aria-hidden": "true"
11
- }, E = /* @__PURE__ */ u({
12
- __name: "BaseBreadcrumb",
13
- props: {
14
- items: {}
15
- },
16
- setup(n) {
17
- const c = d(() => {
18
- let e = 0;
19
- const s = [];
20
- for (; e < n.items.length; )
21
- s.push({ ...n.items[e], idx: e }), e < n.items.length - 1 && s.push({ arrowIcon: !0 }), e++;
22
- return s;
23
- });
24
- return (e, s) => (i(), r("nav", b, [
25
- o("ol", g, [
26
- (i(!0), r(l, null, m(c.value, (t) => (i(), r(l, null, [
27
- t?.label ? (i(), r("li", w, [
28
- a(e.$slots, "item", {
29
- item: t
30
- }, () => [
31
- o("a", {
32
- class: h(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
33
- href: t.link
34
- }, k(t.label), 11, x)
35
- ])
36
- ])) : (i(), r("li", B, [
37
- a(e.$slots, "separator", {}, () => [
38
- p(_(f), {
39
- class: "-uikit-rotate-90",
40
- "stroke-color": "#222",
41
- width: 10,
42
- height: 10
43
- })
44
- ])
45
- ]))
46
- ], 64))), 256))
47
- ])
48
- ]));
49
- }
50
- });
51
- export {
52
- E as _
53
- };