wacomm 2.3.0 → 2.4.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.
- package/dist/avatar/Avatar.d.ts +3 -3
- package/dist/avatar/Avatar.stories.d.ts +8 -0
- package/dist/avatar/AvatarTag.d.ts +3 -7
- package/dist/avatar/AvatarTag.stories.d.ts +8 -0
- package/dist/avatar/AvatarTimeTag.d.ts +3 -8
- package/dist/{index-HaJYIQzq.mjs → index-BONsIJ7l.mjs} +18 -14
- package/dist/{index-DiV-fP3Y.js → index-D0i8sIu-.js} +2 -2
- package/dist/{mapbox-gl-DZ9xIJMO.mjs → mapbox-gl-Ds-5kyuT.mjs} +1 -1
- package/dist/{mapbox-gl-Brd14VcL.js → mapbox-gl-KoEJyeRf.js} +1 -1
- package/dist/{maplibre-gl-CoHO8evQ.js → maplibre-gl-COmr1Ku8.js} +1 -1
- package/dist/{maplibre-gl-BlljZNyQ.mjs → maplibre-gl-dxNQRD4I.mjs} +1 -1
- package/dist/wacomm.cjs.js +1 -1
- package/dist/wacomm.css +1 -1
- package/dist/wacomm.es.js +1 -1
- package/package.json +1 -1
- package/dist/avatar/StaticAvatar.d.ts +0 -7
- package/dist/avatar/StaticAvatarTag.d.ts +0 -8
package/dist/avatar/Avatar.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ZeroFuncType } from 'waujs';
|
|
2
|
-
interface AvatarProps {
|
|
3
|
-
|
|
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({
|
|
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 {
|
|
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({
|
|
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 {
|
|
2
|
-
interface AvatarTimeTagProps {
|
|
3
|
-
name: string;
|
|
1
|
+
import { AvatarTagProps } from './AvatarTag';
|
|
2
|
+
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({
|
|
5
|
+
declare function AvatarTimeTag({ label, date, onClick, className, avatarClassName, imgSrc, fallbackImgSrc }: AvatarTimeTagProps): import("react/jsx-runtime").JSX.Element;
|
|
11
6
|
export default 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-
|
|
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-
|
|
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
|
-
|
|
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
|
|
58521
|
+
letter: e
|
|
58522
58522
|
}
|
|
58523
58523
|
);
|
|
58524
58524
|
}
|
|
58525
58525
|
function vq({
|
|
58526
|
-
|
|
58526
|
+
label: e = "N",
|
|
58527
58527
|
onClick: t = Ao,
|
|
58528
58528
|
className: i = "",
|
|
58529
|
-
|
|
58530
|
-
|
|
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:
|
|
58537
|
+
className: p,
|
|
58537
58538
|
onClick: t,
|
|
58538
|
-
|
|
58539
|
-
imgSrc:
|
|
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
|
-
|
|
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
|
-
|
|
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: [
|