@blocklet/ui-react 3.0.7 → 3.0.8

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.
Files changed (90) hide show
  1. package/lib/@types/index.d.ts +204 -3
  2. package/lib/BlockletStudio/index.d.ts +27 -26
  3. package/lib/ComponentInstaller/index.d.ts +15 -15
  4. package/lib/ComponentInstaller/installer-item.d.ts +10 -10
  5. package/lib/ComponentInstaller/locales.d.ts +2 -2
  6. package/lib/ComponentInstaller/use-component-installed.d.ts +2 -2
  7. package/lib/ComponentManager/components/add-component.d.ts +16 -13
  8. package/lib/ComponentManager/components/check-component.d.ts +2 -2
  9. package/lib/ComponentManager/components/publish-component.d.ts +10 -7
  10. package/lib/ComponentManager/components/resource-dialog.d.ts +13 -11
  11. package/lib/ComponentManager/index.d.ts +3 -4
  12. package/lib/ComponentManager/libs/locales.d.ts +14 -19
  13. package/lib/Dashboard/index.d.ts +16 -13
  14. package/lib/Footer/brand.d.ts +8 -8
  15. package/lib/Footer/copyright.d.ts +7 -7
  16. package/lib/Footer/index.d.ts +2 -2
  17. package/lib/Footer/internal-footer.d.ts +25 -22
  18. package/lib/Footer/layout/plain.d.ts +15 -12
  19. package/lib/Footer/layout/row.d.ts +7 -7
  20. package/lib/Footer/layout/standard.d.ts +16 -13
  21. package/lib/Footer/links.d.ts +15 -12
  22. package/lib/Footer/social-media.d.ts +8 -8
  23. package/lib/Header/index.d.ts +23 -13
  24. package/lib/Icon/index.d.ts +9 -7
  25. package/lib/Notifications/Snackbar.d.ts +16 -8
  26. package/lib/Notifications/hooks/use-title.d.ts +48 -9
  27. package/lib/Notifications/hooks/use-width.d.ts +2 -2
  28. package/lib/Notifications/utils.d.ts +69 -9
  29. package/lib/UserCenter/components/config-inviter.d.ts +4 -4
  30. package/lib/UserCenter/components/config-profile.d.ts +5 -5
  31. package/lib/UserCenter/components/danger-zone.d.ts +1 -2
  32. package/lib/UserCenter/components/editable-field.d.ts +34 -30
  33. package/lib/UserCenter/components/nft.d.ts +4 -4
  34. package/lib/UserCenter/components/notification.d.ts +5 -5
  35. package/lib/UserCenter/components/passport.d.ts +5 -5
  36. package/lib/UserCenter/components/privacy.d.ts +11 -5
  37. package/lib/UserCenter/components/settings.d.ts +10 -8
  38. package/lib/UserCenter/components/status-dialog/date-picker.d.ts +10 -9
  39. package/lib/UserCenter/components/status-dialog/index.d.ts +12 -9
  40. package/lib/UserCenter/components/status-selector/duration-menu.d.ts +7 -7
  41. package/lib/UserCenter/components/status-selector/index.d.ts +9 -8
  42. package/lib/UserCenter/components/status-selector/menu-item.d.ts +24 -9
  43. package/lib/UserCenter/components/storage/action.d.ts +9 -7
  44. package/lib/UserCenter/components/storage/connected.d.ts +5 -4
  45. package/lib/UserCenter/components/storage/delete.d.ts +6 -5
  46. package/lib/UserCenter/components/storage/disconnect.d.ts +2 -2
  47. package/lib/UserCenter/components/storage/index.d.ts +2 -2
  48. package/lib/UserCenter/components/storage/preview-nft.d.ts +5 -5
  49. package/lib/UserCenter/components/third-party-login/index.d.ts +4 -4
  50. package/lib/UserCenter/components/third-party-login/third-party-item.d.ts +13 -4
  51. package/lib/UserCenter/components/user-center.d.ts +16 -15
  52. package/lib/UserCenter/components/user-info/address.d.ts +16 -7
  53. package/lib/UserCenter/components/user-info/index.d.ts +4 -5
  54. package/lib/UserCenter/components/user-info/link-preview-input.d.ts +5 -6
  55. package/lib/UserCenter/components/user-info/metadata.d.ts +10 -7
  56. package/lib/UserCenter/components/user-info/switch-role.d.ts +7 -6
  57. package/lib/UserCenter/components/user-info/timezone-select.d.ts +8 -7
  58. package/lib/UserCenter/components/user-info/user-basic-info.d.ts +13 -12
  59. package/lib/UserCenter/components/user-info/user-info-item.d.ts +11 -6
  60. package/lib/UserCenter/components/user-info/user-info.d.ts +6 -6
  61. package/lib/UserCenter/components/user-info/user-status.d.ts +9 -9
  62. package/lib/UserCenter/components/user-info/utils.d.ts +33 -15
  63. package/lib/UserCenter/components/webhook-item.d.ts +2 -10
  64. package/lib/UserCenter/index.d.ts +1 -2
  65. package/lib/UserCenter/libs/locales.d.ts +345 -513
  66. package/lib/UserCenter/libs/utils.d.ts +4 -3
  67. package/lib/UserSessions/components/user-session-info.d.ts +5 -5
  68. package/lib/UserSessions/components/user-sessions.d.ts +20 -8
  69. package/lib/UserSessions/index.d.ts +1 -2
  70. package/lib/UserSessions/libs/locales.d.ts +60 -88
  71. package/lib/UserSessions/libs/utils.d.ts +2 -3
  72. package/lib/blocklets.d.ts +9 -10
  73. package/lib/common/domain-warning.d.ts +7 -7
  74. package/lib/common/header-addons.d.ts +9 -9
  75. package/lib/common/link-blocker.d.ts +6 -3
  76. package/lib/common/notification-addon.d.ts +6 -6
  77. package/lib/common/overridable-theme-provider.d.ts +10 -7
  78. package/lib/common/wallet-hidden-topbar.d.ts +1 -2
  79. package/lib/common/ws.d.ts +3 -4
  80. package/lib/contexts/config-user-space.d.ts +27 -7
  81. package/lib/hooks/use-mobile.d.ts +3 -3
  82. package/lib/index.d.ts +10 -12
  83. package/lib/libs/client.d.ts +2 -3
  84. package/lib/libs/constant.d.ts +1 -2
  85. package/lib/libs/spaces.d.ts +2 -3
  86. package/lib/libs/with-hide-when-embed.d.ts +2 -3
  87. package/lib/types.d.ts +31 -32
  88. package/lib/utils.d.ts +10 -11
  89. package/package.json +6 -6
  90. package/lib/UserCenter/components/storage/icons/empty-spaces-nft.svg.d.ts +0 -3
@@ -1,8 +1,9 @@
1
- export { L as default };
2
- declare function L({ data: e, open: a, onSelect: i, anchorEl: u, selected: r }: {
3
- data: any;
4
- open: any;
5
- onSelect: any;
6
- anchorEl?: undefined;
7
- selected: any;
8
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { PopoverProps } from '@mui/material';
2
+ import { BaseStatusProps, StatusItem } from './menu-item';
3
+ interface StatusSelectorProps extends BaseStatusProps {
4
+ data: Array<StatusItem>;
5
+ open: boolean;
6
+ anchorEl?: PopoverProps['anchorEl'];
7
+ }
8
+ declare function StatusSelector({ data, open, onSelect, anchorEl, selected }: StatusSelectorProps): import("react/jsx-runtime").JSX.Element;
9
+ export default StatusSelector;
@@ -1,9 +1,24 @@
1
- import { default as a } from 'react';
2
- declare const h: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
3
- declare function c({ icon: e, selected: t, onClick: o, children: r }: {
4
- icon?: undefined;
5
- selected?: undefined;
6
- onClick: any;
7
- children: any;
8
- }): a.ReactElement<unknown, string | a.JSXElementConstructor<any>>;
9
- export { h as StyledMenu, c as default };
1
+ import { SvgIconProps } from '@mui/material';
2
+ import { default as React } from 'react';
3
+ import { UserMetadata } from '../../../@types';
4
+ interface StatusMenuItemProps {
5
+ icon?: React.FC<SvgIconProps>;
6
+ selected?: boolean;
7
+ onClick: (e: React.MouseEvent<HTMLElement>) => void;
8
+ children: React.ReactNode;
9
+ }
10
+ export default function StatusMenuItem({ icon, selected, onClick, children, }: StatusMenuItemProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare const StyledMenu: import('@emotion/styled').StyledComponent<import('@mui/material').MenuProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
12
+ export interface StatusItem {
13
+ id: string;
14
+ name: string;
15
+ icon?: React.FC<SvgIconProps>;
16
+ duration?: string;
17
+ durationName?: string;
18
+ children?: Array<StatusItem>;
19
+ }
20
+ export interface BaseStatusProps {
21
+ selected: UserMetadata['status'];
22
+ onSelect: (v: UserMetadata['status']) => void;
23
+ }
24
+ export {};
@@ -1,7 +1,9 @@
1
- export { y as default };
2
- declare function y({ session: r, spaceGateway: i, spaceStatus: p, refresh: m }: {
3
- session: any;
4
- spaceGateway: any;
5
- spaceStatus: any;
6
- refresh: any;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { DIDSpaceGateway, DIDSpaceStatus } from '@blocklet/did-space-react';
2
+ import { Session } from '../../../@types';
3
+ declare function Action({ session, spaceGateway, spaceStatus, refresh, }: {
4
+ session: Session;
5
+ spaceGateway: DIDSpaceGateway;
6
+ spaceStatus: DIDSpaceStatus;
7
+ refresh: Function;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export default Action;
@@ -1,4 +1,5 @@
1
- export { I as default };
2
- declare function I({ spaceGateway: o }: {
3
- spaceGateway: any;
4
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { SpaceGateway } from '../../../contexts/config-user-space';
2
+ declare function Connected({ spaceGateway }: {
3
+ spaceGateway: SpaceGateway | undefined;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default Connected;
@@ -1,5 +1,6 @@
1
- export { S as default };
2
- declare function S({ spaceGateway: t, onDeleteSpace: s }: {
3
- spaceGateway: any;
4
- onDeleteSpace: any;
5
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { SpaceGateway } from '../../../contexts/config-user-space';
2
+ declare function SpaceDelete({ spaceGateway, onDeleteSpace, }: {
3
+ spaceGateway: SpaceGateway;
4
+ onDeleteSpace: (spaceGateway: SpaceGateway) => Promise<void>;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export default SpaceDelete;
@@ -1,2 +1,2 @@
1
- export { S as default };
2
- declare function S(): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ declare function Disconnect(): import("react/jsx-runtime").JSX.Element;
2
+ export default Disconnect;
@@ -1,2 +1,2 @@
1
- export { P as default };
2
- declare function P(): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ declare function DidSpace(): import("react/jsx-runtime").JSX.Element;
2
+ export default DidSpace;
@@ -1,5 +1,5 @@
1
- export { k as default };
2
- declare function k({ src: t, alt: p }: {
3
- src: any;
4
- alt: any;
5
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ declare function PreviewSpaceNft({ src, alt }: {
2
+ src: string;
3
+ alt: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default PreviewSpaceNft;
@@ -1,4 +1,4 @@
1
- export { q as default };
2
- declare function q({ user: r }: {
3
- user: any;
4
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User } from '../../../@types';
2
+ export default function ThirdPartyLogin({ user }: {
3
+ user: User;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,13 @@
1
- export { Uo as default };
2
- declare function Uo({ item: o }: {
3
- item: any;
4
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { OAuthAccount } from '../../../@types';
2
+ export default function ThirdPartyItem({ item, }: {
3
+ item: {
4
+ provider: string;
5
+ did: string;
6
+ pk: string;
7
+ userInfo?: OAuthAccount['userInfo'];
8
+ id: string;
9
+ _bind?: boolean;
10
+ _rawProvider?: string;
11
+ _mainProvider?: boolean;
12
+ };
13
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,15 +1,16 @@
1
- export { Le as default };
2
- declare function Le({ children: v, notLoginContent: N, currentTab: x, contentProps: _, disableAutoRedirect: E, hideFooter: cr, headerProps: pr, footerProps: mr, userDid: S, stickySidebar: O, embed: Q, onlyProfile: b }: {
3
- children: any;
4
- notLoginContent?: null | undefined;
5
- currentTab: any;
6
- contentProps?: {} | undefined;
7
- disableAutoRedirect?: boolean | undefined;
8
- hideFooter?: boolean | undefined;
9
- headerProps?: {} | undefined;
10
- footerProps?: {} | undefined;
11
- userDid?: undefined;
12
- stickySidebar?: boolean | undefined;
13
- embed?: boolean | undefined;
14
- onlyProfile?: boolean | undefined;
15
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | null;
1
+ import { BoxProps } from '@mui/material';
2
+ export default function UserCenter({ children, notLoginContent, currentTab, contentProps, disableAutoRedirect, hideFooter, headerProps, footerProps, userDid, stickySidebar, embed, onlyProfile, }: {
3
+ readonly children: any;
4
+ readonly notLoginContent?: any;
5
+ readonly currentTab: string;
6
+ readonly contentProps?: BoxProps;
7
+ readonly disableAutoRedirect?: boolean;
8
+ readonly autoPopupSetting?: boolean;
9
+ readonly hideFooter?: boolean;
10
+ readonly headerProps?: any;
11
+ readonly footerProps?: any;
12
+ readonly userDid?: string;
13
+ readonly stickySidebar?: boolean;
14
+ readonly embed?: boolean;
15
+ readonly onlyProfile?: boolean;
16
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +1,16 @@
1
- export { I as default };
2
- declare function I({ address: r, errors: t, handleChange: i, defaultCountry: d }: {
3
- address: any;
4
- errors: any;
5
- handleChange: any;
6
- defaultCountry: any;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { UserAddress } from '../../../@types';
2
+ interface AddressErrors {
3
+ country?: string;
4
+ province?: string;
5
+ city?: string;
6
+ line1?: string;
7
+ line2?: string;
8
+ postalCode?: string;
9
+ }
10
+ export default function AddressEditor({ address, errors, handleChange, defaultCountry, }: {
11
+ address: UserAddress;
12
+ errors: AddressErrors;
13
+ handleChange: (field: keyof UserAddress, value: string) => void;
14
+ defaultCountry: string;
15
+ }): import("react/jsx-runtime").JSX.Element;
16
+ export {};
@@ -1,5 +1,4 @@
1
- import { default as m } from './switch-role.js';
2
- import { default as f } from './user-basic-info.js';
3
- import { default as s } from './user-info.js';
4
- import { default as t } from './user-info-item.js';
5
- export { m as SwitchRole, f as UserBasicInfo, s as UserInfo, t as UserInfoItem };
1
+ export { default as UserBasicInfo } from './user-basic-info';
2
+ export { default as UserInfoItem } from './user-info-item';
3
+ export { default as UserInfo } from './user-info';
4
+ export { default as SwitchRole } from './switch-role';
@@ -1,6 +1,5 @@
1
- export { oe as LinkPreviewInput };
2
- declare function oe({ editable: e, links: n, onChange: i }: {
3
- editable?: boolean | undefined;
4
- links?: any[] | undefined;
5
- onChange: any;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ export declare function LinkPreviewInput({ editable, links, onChange, }: {
2
+ editable?: boolean;
3
+ links?: string[];
4
+ onChange: (links: string[]) => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,10 @@
1
- export { se as default };
2
- declare function se({ isMyself: m, user: o, onSave: V, isMobile: b }: {
3
- isMyself: any;
4
- user: any;
5
- onSave: any;
6
- isMobile: any;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User, UserAddress, UserMetadata } from '../../../@types';
2
+ export default function UserMetadataComponent({ isMyself, user, onSave, isMobile, }: {
3
+ isMobile: boolean;
4
+ isMyself: boolean;
5
+ user: User;
6
+ onSave: (v: {
7
+ metadata: UserMetadata;
8
+ address: UserAddress;
9
+ }) => void;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
- export { k as default };
2
- declare const k: import('react').MemoExoticComponent<typeof f>;
3
- declare function f({ user: o, switchPassport: i }: {
4
- user: any;
5
- switchPassport: any;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { User } from '../../../@types';
2
+ declare function SwitchRole({ user, switchPassport }: {
3
+ user: User;
4
+ switchPassport: () => void;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare const _default: import('react').MemoExoticComponent<typeof SwitchRole>;
7
+ export default _default;
@@ -1,7 +1,8 @@
1
- export { P as TimezoneSelect };
2
- declare function P({ value: s, onChange: u, disabled: l, mode: c }: {
3
- value: any;
4
- onChange: any;
5
- disabled?: boolean | undefined;
6
- mode?: string | undefined;
7
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ interface TimezoneSelectProps {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ disabled?: boolean;
5
+ mode?: 'drawer' | 'self';
6
+ }
7
+ export declare function TimezoneSelect({ value, onChange, disabled, mode }: TimezoneSelectProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -1,12 +1,13 @@
1
- export { St as default };
2
- declare function St({ user: t, isMyself: a, showFullDid: x, switchPassport: A, switchProfile: b, isMobile: e, onlyProfile: p, refreshProfile: h, ...m }: {
3
- [x: string]: any;
4
- user: any;
5
- isMyself?: boolean | undefined;
6
- showFullDid?: boolean | undefined;
7
- switchPassport: any;
8
- switchProfile: any;
9
- isMobile?: boolean | undefined;
10
- onlyProfile?: boolean | undefined;
11
- refreshProfile: any;
12
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>> | null;
1
+ import { BoxProps } from '@mui/material';
2
+ import { User } from '../../../@types';
3
+ export default function UserBasicInfo({ user, isMyself, showFullDid, switchPassport, switchProfile, isMobile, onlyProfile, refreshProfile, ...rest }: {
4
+ user: User;
5
+ isMyself?: boolean;
6
+ showFullDid?: boolean;
7
+ switchPassport: () => void;
8
+ switchProfile: () => void;
9
+ size?: number;
10
+ isMobile?: boolean;
11
+ onlyProfile?: boolean;
12
+ refreshProfile: () => void;
13
+ } & BoxProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,11 @@
1
- export { x as default };
2
- declare function x({ data: e, verified: s, ...r }: {
3
- [x: string]: any;
4
- data: any;
5
- verified?: boolean | undefined;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { BoxProps } from '@mui/material';
2
+ type TUserInfoItemProps = {
3
+ data: {
4
+ icon: any;
5
+ title: string;
6
+ content: any;
7
+ };
8
+ verified?: boolean;
9
+ };
10
+ export default function UserInfoItem({ data, verified, ...rest }: TUserInfoItemProps & BoxProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -1,6 +1,6 @@
1
- export { V as default };
2
- declare function V({ user: o, isMySelf: l, ...c }: {
3
- [x: string]: any;
4
- user: any;
5
- isMySelf?: boolean | undefined;
6
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { BoxProps } from '@mui/material';
2
+ import { User } from '../../../@types';
3
+ export default function UserInfo({ user, isMySelf, ...rest }: {
4
+ user: User;
5
+ isMySelf?: boolean;
6
+ } & BoxProps): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
- export { ye as default };
2
- declare function ye({ isMobile: o, size: R, isMyself: g, status: e, onChange: s, timezone: W }: {
3
- isMobile?: undefined;
4
- size: any;
5
- isMyself: any;
6
- status: any;
7
- onChange: any;
8
- timezone?: undefined;
9
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { UserMetadata } from '../../../@types';
2
+ export default function UserStatus({ isMobile, size, isMyself, status, onChange, timezone, }: {
3
+ isMobile?: boolean;
4
+ size: number;
5
+ isMyself: boolean;
6
+ status: UserMetadata['status'];
7
+ onChange: (v: UserMetadata['status']) => void;
8
+ timezone?: string;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,33 +1,51 @@
1
- declare const M: string;
2
- declare const w: {
1
+ import { UserMetadata } from '../../../@types';
2
+ export declare const currentTimezone: string;
3
+ export declare const getTimezones: () => {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ export declare const isValidUrl: (url: string) => boolean;
8
+ /**
9
+ * 根据 duration 类型,计算出date range
10
+ * @param status
11
+ * @returns
12
+ */
13
+ export declare const getStatusDuration: (status: UserMetadata["status"]) => Date[];
14
+ /**
15
+ * 根据状态的 duration,判断是否在时间范围内
16
+ * @param status
17
+ * @returns
18
+ */
19
+ export declare const isWithinTimeRange: (dateRange: [Date, Date]) => boolean;
20
+ /**
21
+ * 判断状态持续时间是否为不可清除
22
+ * @param status
23
+ * @returns
24
+ */
25
+ export declare const isNotClear: (status: UserMetadata["status"]) => boolean;
26
+ /**
27
+ * 获取当前时间距离结束时间还有多久
28
+ */
29
+ export declare const getTimeRemaining: (date: Date) => number;
30
+ export declare const defaultButtonStyle: {
3
31
  color: string;
4
32
  borderColor: string;
5
33
  backgroundColor: string;
6
- "&:hover": {
34
+ '&:hover': {
7
35
  borderColor: string;
8
36
  backgroundColor: string;
9
37
  };
10
38
  py: number;
11
39
  borderRadius: number;
12
40
  };
13
- declare function _(r: any): any;
14
- declare function v(r: any): number;
15
- declare function I(): {
16
- label: string;
17
- value: string;
18
- }[];
19
- declare function Z(r: any): boolean;
20
- declare function N(r: any): boolean;
21
- declare function E(r: any): boolean;
22
- declare const B: {
41
+ export declare const primaryButtonStyle: {
23
42
  color: string;
24
43
  borderColor: string;
25
44
  backgroundColor: string;
26
- "&:hover": {
45
+ '&:hover': {
27
46
  borderColor: string;
28
47
  backgroundColor: string;
29
48
  };
30
49
  py: number;
31
50
  borderRadius: number;
32
51
  };
33
- export { M as currentTimezone, w as defaultButtonStyle, _ as getStatusDuration, v as getTimeRemaining, I as getTimezones, Z as isNotClear, N as isValidUrl, E as isWithinTimeRange, B as primaryButtonStyle };
@@ -1,10 +1,2 @@
1
- export { or as default };
2
- declare function or({ onTest: x, onDelete: h, onSave: b, onCancel: y, type: c, url: u, edit: C }: {
3
- onTest?: ((...args: any[]) => void) | undefined;
4
- onDelete?: ((...args: any[]) => void) | undefined;
5
- onSave?: ((...args: any[]) => void) | undefined;
6
- onCancel?: ((...args: any[]) => void) | undefined;
7
- type?: string | undefined;
8
- url?: string | undefined;
9
- edit?: boolean | undefined;
10
- }): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
1
+ import { WebhookItemProps } from '../../@types';
2
+ export default function WebhookItem({ onTest, onDelete, onSave, onCancel, type, url, edit, }: WebhookItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1 @@
1
- import { default as t } from './components/user-center.js';
2
- export { t as UserCenter };
1
+ export { default as UserCenter } from './components/user-center';