wacomm 2.25.3 → 2.26.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/buttons/DeleteAccountButton.d.ts +8 -0
- package/dist/buttons/{CloseAccountButton.stories.d.ts → DeleteAccountButton.stories.d.ts} +2 -2
- package/dist/buttons/SaveCancelButtons.d.ts +4 -1
- package/dist/buttons/StyledButton.d.ts +2 -1
- package/dist/buttons/index.d.ts +1 -1
- package/dist/wacomm.cjs.js +2 -2
- package/dist/wacomm.css +1 -1
- package/dist/wacomm.es.js +25 -16
- package/package.json +1 -1
- package/dist/buttons/CloseAccountButton.d.ts +0 -8
- /package/dist/buttons/{CloseAccountButton.test.d.ts → DeleteAccountButton.test.d.ts} +0 -0
package/dist/wacomm.es.js
CHANGED
|
@@ -15659,13 +15659,13 @@ function Co({ id: e, onClick: t, label: n, isHighlighted: r, disabled: i = !1 })
|
|
|
15659
15659
|
//#endregion
|
|
15660
15660
|
//#region src/buttons/StyledButton.tsx
|
|
15661
15661
|
var wo = (e, t) => e ? "bg-blue-500 border-0" : t ? "bg-gray-300 border-gray-300 cursor-not-allowed" : "bg-white border-blue-500", To = (e, t) => e ? "text-white text-sm" : t ? "text-gray-500 text-sm" : "text-blue-500 text-sm";
|
|
15662
|
-
function Eo({ isHighlighted: e = !1, isLoading: t = !1, disabled: n = !1, className: r = "",
|
|
15662
|
+
function Eo({ isHighlighted: e = !1, isLoading: t = !1, disabled: n = !1, className: r = "", labelClassName: i = "", onClick: a, label: o }) {
|
|
15663
15663
|
return /* @__PURE__ */ C(uo, {
|
|
15664
15664
|
className: G("w-fit h-fit", wo(e, n), r),
|
|
15665
|
-
labelClassName: G("text-sm", To(e, n)),
|
|
15665
|
+
labelClassName: G("text-sm", To(e, n), i),
|
|
15666
15666
|
isLoading: t,
|
|
15667
|
-
label:
|
|
15668
|
-
onClick:
|
|
15667
|
+
label: o,
|
|
15668
|
+
onClick: a,
|
|
15669
15669
|
disabled: n
|
|
15670
15670
|
});
|
|
15671
15671
|
}
|
|
@@ -15828,46 +15828,54 @@ function Po({ label: e, onClick: t }) {
|
|
|
15828
15828
|
}
|
|
15829
15829
|
//#endregion
|
|
15830
15830
|
//#region src/buttons/SaveCancelButtons.tsx
|
|
15831
|
-
function Fo({ saveLabel: e = "Save", cancelLabel: t = "Cancel", onSave: n = Yt, onCancel: r = Yt, isSaveDisabled: i = !1, isCancelDisabled: a = !1, className: o = "" }) {
|
|
15831
|
+
function Fo({ saveLabel: e = "Save", cancelLabel: t = "Cancel", onSave: n = Yt, onCancel: r = Yt, isSaveDisabled: i = !1, isCancelDisabled: a = !1, className: o = "", saveClassName: s = "", cancelClassName: c = "", cancelLabelClassName: l = "" }) {
|
|
15832
15832
|
return /* @__PURE__ */ w(Uo, {
|
|
15833
15833
|
className: G("SaveCancelButtons w-full justify-end gap-2", o),
|
|
15834
15834
|
children: [/* @__PURE__ */ C(Eo, {
|
|
15835
15835
|
isHighlighted: !0,
|
|
15836
15836
|
label: e,
|
|
15837
15837
|
onClick: n,
|
|
15838
|
-
disabled: i
|
|
15838
|
+
disabled: i,
|
|
15839
|
+
className: s
|
|
15839
15840
|
}), /* @__PURE__ */ C(Eo, {
|
|
15840
15841
|
isHighlighted: !1,
|
|
15841
15842
|
label: t,
|
|
15842
15843
|
onClick: r,
|
|
15843
|
-
disabled: a
|
|
15844
|
+
disabled: a,
|
|
15845
|
+
className: c,
|
|
15846
|
+
labelClassName: l
|
|
15844
15847
|
})]
|
|
15845
15848
|
});
|
|
15846
15849
|
}
|
|
15847
15850
|
//#endregion
|
|
15848
|
-
//#region src/buttons/
|
|
15849
|
-
function Io({ onConfirm: e = Yt, message: t = "Are you sure you want to
|
|
15851
|
+
//#region src/buttons/DeleteAccountButton.tsx
|
|
15852
|
+
function Io({ onConfirm: e = Yt, message: t = "Are you sure you want to delete your account?", className: n = "" }) {
|
|
15850
15853
|
let [r, i] = x(!1);
|
|
15851
15854
|
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(mo, {
|
|
15852
15855
|
icon: {
|
|
15853
15856
|
Svg: sa,
|
|
15854
|
-
size: q.sm
|
|
15857
|
+
size: q.sm,
|
|
15858
|
+
className: "text-red-400"
|
|
15855
15859
|
},
|
|
15856
|
-
label: "
|
|
15860
|
+
label: "Delete Account",
|
|
15861
|
+
labelClassName: "ml-2 text-red-400",
|
|
15857
15862
|
onClick: () => i(!0),
|
|
15858
|
-
className: G("
|
|
15863
|
+
className: G("DeleteAccountButton", n)
|
|
15859
15864
|
}), /* @__PURE__ */ C(Ao, {
|
|
15860
15865
|
isOpen: r,
|
|
15861
15866
|
onClose: () => i(!1),
|
|
15862
15867
|
title: "",
|
|
15863
15868
|
isHeaderHidden: !0,
|
|
15864
|
-
content: /* @__PURE__ */ w(
|
|
15865
|
-
className: "
|
|
15869
|
+
content: /* @__PURE__ */ w(Wo, {
|
|
15870
|
+
className: "gap-4",
|
|
15866
15871
|
children: [/* @__PURE__ */ C("div", {
|
|
15867
|
-
className: "text-
|
|
15872
|
+
className: "text-red-400",
|
|
15868
15873
|
children: t
|
|
15869
15874
|
}), /* @__PURE__ */ C(Fo, {
|
|
15870
15875
|
saveLabel: "Confirm",
|
|
15876
|
+
saveClassName: "bg-red-400",
|
|
15877
|
+
cancelClassName: "border-gray-300",
|
|
15878
|
+
cancelLabelClassName: "text-gray-600",
|
|
15871
15879
|
onSave: () => {
|
|
15872
15880
|
i(!1), e();
|
|
15873
15881
|
},
|
|
@@ -16202,6 +16210,7 @@ function is({ className: e = "", ref: t = null, inputValue: n, options: r, onSel
|
|
|
16202
16210
|
ref: t,
|
|
16203
16211
|
options: r,
|
|
16204
16212
|
getOptionLabel: (e) => e.value,
|
|
16213
|
+
getOptionKey: (e) => e.id,
|
|
16205
16214
|
isOptionEqualToValue: (e, t) => e.id === t.id,
|
|
16206
16215
|
filterOptions: (e) => e,
|
|
16207
16216
|
popupIcon: null,
|
|
@@ -35786,4 +35795,4 @@ function PA({ imageUrl: e, fallbackImageUrl: t, onSubmit: n, onSelect: r, error:
|
|
|
35786
35795
|
})] });
|
|
35787
35796
|
}
|
|
35788
35797
|
//#endregion
|
|
35789
|
-
export { Ua as A, Ha as ATarget, Po as AddButton, Jo as AlertWrapper, nC as ArenaTag, is as Autocomplete, Bk as Avatar, Vk as AvatarTag, Hk as AvatarTimeTag, $S as BlockTag, IS as BuddyTag, uo as Button, Co as CacheButton, RS as CalendarTag, Rk as Carousel, $o as ChatAlert, cs as CheckboxGroup, mC as CityTag, Ba as ClickableDiv,
|
|
35798
|
+
export { Ua as A, Ha as ATarget, Po as AddButton, Jo as AlertWrapper, nC as ArenaTag, is as Autocomplete, Bk as Avatar, Vk as AvatarTag, Hk as AvatarTimeTag, $S as BlockTag, IS as BuddyTag, uo as Button, Co as CacheButton, RS as CalendarTag, Rk as Carousel, $o as ChatAlert, cs as CheckboxGroup, mC as CityTag, Ba as ClickableDiv, La as CloseIcon, sC as CoachTag, rC as CollectionTag, Vo as Column, as as CommentEditor, GS as CommentTag, wC as CommentsSection, Ho as Container, Ls as Coordinates, zs as CoordinatesUpdater, VS as CopyTag, Us as Copyright, fC as CreatePostTag, zS as CreateTag, bC as DashedLine, Cy as DateDisplay, Fv as DatePicker, Sy as DateRange, xy as DateTimePicker, Ko as Deletable, Io as DeleteAccountButton, os as DuelVersus, Ia as EditIcon, Go as EditableBlock, Qa as EmailInput, Ck as ErrorBoundary, xk as ErrorMessage, iC as EventTag, Hs as ExpandableContainer, FS as ExploreTag, Ro as Form, cC as GameTag, KS as GoBackTag, Wa as Heading, NS as HomeTag, PA as ImageCropper, Qk as ImageGrid, tA as ImageGridUpload, uC as ImageTag, zo as Img, Tk as LazyErrorBoundary, lC as LeaderboardTag, xC as LikeSection, Ja as List, ao as LoadingIcon, oo as LoadingIndicator, gC as LocationPointTag, US as LogoutTag, BS as MapTag, aC as MarketTag, Jk as MediaUpload, AS as MenuTooltip, es as MessageAlert, qS as MessageTag, vC as MiddleDot, Ao as Modal, No as ModalButton, Mo as ModalItem, Iv as MonthPicker, Bs as MyGeolocationUpdater, rs as NavArrows, MS as Navbar, gb as NavigationControlPosition, PS as NearbyTag, LS as NewsfeedTag, wk as NotFound, Qo as NotificationAlert, yC as OrDivider, mk as OrderLabels, gk as OrderPicker, hb as OsmMap, Ga as P, to as PasswordInput, ro as PasswordSetup, pk as Picker, dC as PollTag, pC as PostTag, HS as PrivateTag, us as RadioGroup, jo as RedStar, TC as RepliesSection, XS as ReportTag, Va as Row, Fo as SaveCancelButtons, qo as SearchBar, Ra as SendIcon, eC as SettingsTag, Lk as ShowMore, Bo as SmartImage, Is as SocialMediaIcon, qa as Span, Wo as StaticColumn, Uo as StaticRow, hC as StreetTag, Eo as StyledButton, Ek as SuccessMessage, mo as SvgButton, q as SvgSize, Zo as SvgTag, kS as SvgTooltip, ts as Tabs, Pk as Tag, Fk as Tags, tC as TeamTag, Ik as Text, Za as TextInput, Ns as TextUpdater, Ka as Textarea, Ms as TextareaAutosize, Fs as TimeAgo, og as TimePicker, Ok as Toaster, xo as ToggleButton, OS as Tooltip, WS as UpArrowTag, oC as UserTag, _C as VerticalLine };
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ZeroFuncType } from 'waujs';
|
|
2
|
-
interface CloseAccountButtonProps {
|
|
3
|
-
onConfirm?: ZeroFuncType;
|
|
4
|
-
message?: string;
|
|
5
|
-
className?: string;
|
|
6
|
-
}
|
|
7
|
-
declare function CloseAccountButton({ onConfirm, message, className }: CloseAccountButtonProps): import("react").JSX.Element;
|
|
8
|
-
export default CloseAccountButton;
|
|
File without changes
|