wacomm 2.3.0 → 2.5.0

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,10 +1,10 @@
1
1
  import { ZeroFuncType } from 'waujs';
2
- interface AvatarProps {
3
- letter?: string;
2
+ export interface AvatarProps {
3
+ label?: string;
4
4
  className?: string;
5
5
  imgSrc?: string;
6
6
  fallbackImgSrc?: string;
7
7
  onClick?: ZeroFuncType;
8
8
  }
9
- declare function Avatar({ letter, className, imgSrc, fallbackImgSrc, onClick }: AvatarProps): import("react/jsx-runtime").JSX.Element;
9
+ declare function Avatar({ label, className, imgSrc, fallbackImgSrc, onClick }: AvatarProps): import("react/jsx-runtime").JSX.Element;
10
10
  export default Avatar;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Avatar } from './Avatar';
3
+ declare const meta: Meta<typeof Avatar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithImage: Story;
8
+ export declare const WithFallback: Story;
@@ -1,10 +1,6 @@
1
- import { ZeroFuncType } from 'waujs';
2
- interface AvatarTagProps {
3
- name: string;
4
- onClick?: ZeroFuncType;
5
- className?: string;
1
+ import { AvatarProps } from './Avatar';
2
+ export interface AvatarTagProps extends AvatarProps {
6
3
  avatarClassName?: string;
7
- imgSrc?: string;
8
4
  }
9
- declare function AvatarTag({ name, onClick, className, avatarClassName, imgSrc }: AvatarTagProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function AvatarTag({ label, onClick, className, imgSrc, fallbackImgSrc, avatarClassName, }: AvatarTagProps): import("react/jsx-runtime").JSX.Element;
10
6
  export default AvatarTag;
@@ -0,0 +1,8 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as AvatarTag } from './AvatarTag';
3
+ declare const meta: Meta<typeof AvatarTag>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Default: Story;
7
+ export declare const WithImage: Story;
8
+ export declare const WithFallback: Story;
@@ -1,11 +1,6 @@
1
- import { ZeroFuncType } from 'waujs';
2
- interface AvatarTimeTagProps {
3
- name: string;
1
+ import { AvatarTagProps } from './AvatarTag';
2
+ export interface AvatarTimeTagProps extends AvatarTagProps {
4
3
  date: string;
5
- onClick?: ZeroFuncType;
6
- className?: string;
7
- avatarClassName?: string;
8
- imgSrc?: string;
9
4
  }
10
- declare function AvatarTimeTag({ name, date, onClick, className, avatarClassName, imgSrc }: AvatarTimeTagProps): import("react/jsx-runtime").JSX.Element;
5
+ declare function AvatarTimeTag({ label, date, onClick, className, avatarClassName, imgSrc, fallbackImgSrc }: AvatarTimeTagProps): import("react/jsx-runtime").JSX.Element;
11
6
  export default AvatarTimeTag;
@@ -1,3 +1,6 @@
1
1
  export { default as Avatar } from './Avatar';
2
+ export type { AvatarProps } from './Avatar';
2
3
  export { default as AvatarTag } from './AvatarTag';
4
+ export type { AvatarTagProps } from './AvatarTag';
3
5
  export { default as AvatarTimeTag } from './AvatarTimeTag';
6
+ export type { AvatarTimeTagProps } from './AvatarTimeTag';
@@ -50588,11 +50588,11 @@ function iz(e) {
50588
50588
  }, [c]), null;
50589
50589
  }
50590
50590
  const TQ = la(iz);
50591
- const az = import("./maplibre-gl-BlljZNyQ.mjs").then((e) => e.m), Az = Y.forwardRef(function(t, i) {
50591
+ const az = import("./maplibre-gl-dxNQRD4I.mjs").then((e) => e.m), Az = Y.forwardRef(function(t, i) {
50592
50592
  return L4(t, i, az);
50593
50593
  }), lz = N4;
50594
50594
  const cz = sz;
50595
- const uz = import("./mapbox-gl-DZ9xIJMO.mjs").then((e) => e.m), PQ = Y.forwardRef(function(t, i) {
50595
+ const uz = import("./mapbox-gl-Ds-5kyuT.mjs").then((e) => e.m), PQ = Y.forwardRef(function(t, i) {
50596
50596
  return L4(t, i, uz);
50597
50597
  }), dz = N4;
50598
50598
  function pz({ locations: e }) {
@@ -58498,7 +58498,7 @@ function XW({ letter: e, className: t = "", onClick: i }) {
58498
58498
  );
58499
58499
  }
58500
58500
  function M5({
58501
- letter: e = "N",
58501
+ label: e = "N",
58502
58502
  className: t = "w-full h-full",
58503
58503
  imgSrc: i = "",
58504
58504
  fallbackImgSrc: A = "",
@@ -58518,37 +58518,40 @@ function M5({
58518
58518
  {
58519
58519
  className: `LetterAvatar ${t}`,
58520
58520
  onClick: c,
58521
- letter: e.charAt(0)
58521
+ letter: e
58522
58522
  }
58523
58523
  );
58524
58524
  }
58525
58525
  function vq({
58526
- name: e,
58526
+ label: e = "N",
58527
58527
  onClick: t = Ao,
58528
58528
  className: i = "",
58529
- avatarClassName: A = "w-8 h-8",
58530
- imgSrc: c = ""
58529
+ imgSrc: A = "",
58530
+ fallbackImgSrc: c = "",
58531
+ avatarClassName: p = "w-8 h-8"
58531
58532
  }) {
58532
58533
  return /* @__PURE__ */ j.jsxs(dn, { className: ut("AvatarTag bg-white rounded-lg py-1", i), children: [
58533
58534
  /* @__PURE__ */ j.jsx(
58534
58535
  M5,
58535
58536
  {
58536
- className: A,
58537
+ className: p,
58537
58538
  onClick: t,
58538
- letter: e == null ? void 0 : e.charAt(0).toUpperCase(),
58539
- imgSrc: c
58539
+ label: e == null ? void 0 : e.charAt(0).toUpperCase(),
58540
+ imgSrc: A,
58541
+ fallbackImgSrc: c
58540
58542
  }
58541
58543
  ),
58542
58544
  /* @__PURE__ */ j.jsx(V2, { label: e })
58543
58545
  ] });
58544
58546
  }
58545
58547
  function wq({
58546
- name: e,
58548
+ label: e = "N",
58547
58549
  date: t,
58548
58550
  onClick: i = Ao,
58549
58551
  className: A = "",
58550
58552
  avatarClassName: c = "h-11 w-11",
58551
- imgSrc: p = ""
58553
+ imgSrc: p = "",
58554
+ fallbackImgSrc: m
58552
58555
  }) {
58553
58556
  return /* @__PURE__ */ j.jsxs(dn, { className: ut("AvatarTimeTag bg-white rounded-lg py-1", A), children: [
58554
58557
  /* @__PURE__ */ j.jsx("div", { className: ut("rounded-full overflow-hidden", c), children: /* @__PURE__ */ j.jsx(
@@ -58556,8 +58559,9 @@ function wq({
58556
58559
  {
58557
58560
  className: "w-full h-full",
58558
58561
  onClick: i,
58559
- letter: e == null ? void 0 : e.charAt(0).toUpperCase(),
58560
- imgSrc: p
58562
+ label: e == null ? void 0 : e.charAt(0).toUpperCase(),
58563
+ imgSrc: p,
58564
+ fallbackImgSrc: m
58561
58565
  }
58562
58566
  ) }),
58563
58567
  /* @__PURE__ */ j.jsxs(mA, { className: "gap-0", children: [