@strands.gg/accui 2.1.5 → 2.1.7
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/index.d.ts +1 -6
- package/dist/js/auth-components-BJhPF4dS.js +8195 -0
- package/dist/js/auth-components-BJhPF4dS.js.br +0 -0
- package/dist/js/auth-components-BJhPF4dS.js.gz +0 -0
- package/dist/js/auth-components-CXT-W3fG.js +1 -0
- package/dist/js/auth-components-CXT-W3fG.js.br +0 -0
- package/dist/js/auth-components-CXT-W3fG.js.gz +0 -0
- package/dist/js/composables-BqIRpDGP.js +1609 -0
- package/dist/js/composables-BqIRpDGP.js.br +0 -0
- package/dist/js/composables-BqIRpDGP.js.gz +0 -0
- package/dist/js/composables-BqLSXNon.js +1 -0
- package/dist/js/composables-BqLSXNon.js.br +0 -0
- package/dist/js/composables-BqLSXNon.js.gz +0 -0
- package/dist/js/icons-CQ3z-CUv.js +398 -0
- package/dist/js/icons-CQ3z-CUv.js.br +0 -0
- package/dist/js/icons-CQ3z-CUv.js.gz +0 -0
- package/dist/js/icons-MGGFfB13.js +1 -0
- package/dist/js/index-87OecKtg.js +1 -0
- package/dist/js/index-B113vWue.js +106 -0
- package/dist/js/nuxt/module-BA8ZjBpp.js +1 -0
- package/dist/{nuxt/module.es.js → js/nuxt/module-YfdoaPCb.js} +2 -0
- package/dist/{nuxt/runtime/composables/useAuthenticatedFetch.es.js → js/nuxt/runtime/composables/useAuthenticatedFetch-DToDCO6a.js} +1 -1
- package/dist/js/nuxt/runtime/composables/useAuthenticatedFetch-qYkd06Dm.js +1 -0
- package/dist/{nuxt/runtime/composables/useStrandsAuth.es.js → js/nuxt/runtime/composables/useStrandsAuth-8b_bomlH.js} +1 -1
- package/dist/js/nuxt/runtime/composables/useStrandsAuth-Dn15YEQw.js +1 -0
- package/dist/{nuxt/runtime/middleware/auth.global.es.js → js/nuxt/runtime/middleware/auth.global-_2xq-SvK.js} +1 -1
- package/dist/js/nuxt/runtime/middleware/auth.global-dZpk-3-I.js +1 -0
- package/dist/js/nuxt/runtime/plugin.client-D7S6ulTg.js +1 -0
- package/dist/{nuxt/runtime/plugin.client.es.js → js/nuxt/runtime/plugin.client-KK_pCEfA.js} +2 -4
- package/dist/js/nuxt/runtime/plugin.server-BpSAN5Gh.js +1 -0
- package/dist/{nuxt/runtime/plugin.server.es.js → js/nuxt/runtime/plugin.server-CGdeJOoz.js} +1 -1
- package/dist/js/nuxt/runtime/plugins/auth-interceptor.client-BQu0eR16.js +1 -0
- package/dist/{nuxt/runtime/plugins/auth-interceptor.client.es.js → js/nuxt/runtime/plugins/auth-interceptor.client-DIa4pC59.js} +1 -1
- package/dist/js/nuxt-DqhAWeo-.js +1 -0
- package/dist/{nuxt.es.js → js/nuxt-MUpTW0D9.js} +3 -3
- package/dist/{nuxt-v4/module.es.js → js/nuxt-v4/module-CCvkwSrU.js} +2 -0
- package/dist/js/nuxt-v4/module-CDtxGAn8.js +1 -0
- package/dist/{nuxt-v4/runtime/composables/useAuthenticatedFetch.es.js → js/nuxt-v4/runtime/composables/useAuthenticatedFetch-I0BKB43E.js} +1 -1
- package/dist/js/nuxt-v4/runtime/composables/useAuthenticatedFetch-fAO6ieYd.js +1 -0
- package/dist/{nuxt-v4/runtime/composables/useStrandsAuth.es.js → js/nuxt-v4/runtime/composables/useStrandsAuth-BZe8CTx0.js} +1 -1
- package/dist/js/nuxt-v4/runtime/composables/useStrandsAuth-DPGVMZ-e.js +1 -0
- package/dist/js/nuxt-v4/runtime/middleware/auth.global-B0pyByUu.js +1 -0
- package/dist/{nuxt-v4/runtime/middleware/auth.global.es.js → js/nuxt-v4/runtime/middleware/auth.global-C_saJaMU.js} +1 -1
- package/dist/{nuxt-v4/runtime/plugin.client.es.js → js/nuxt-v4/runtime/plugin.client-CxLmYQfu.js} +2 -4
- package/dist/js/nuxt-v4/runtime/plugin.client-DGO53i-e.js +1 -0
- package/dist/{nuxt-v4/runtime/plugin.server.es.js → js/nuxt-v4/runtime/plugin.server-BM6HYyiZ.js} +1 -1
- package/dist/js/nuxt-v4/runtime/plugin.server-D_dUMHYo.js +1 -0
- package/dist/js/nuxt-v4/runtime/plugins/auth-interceptor.client-CUNOTFBp.js +1 -0
- package/dist/{nuxt-v4/runtime/plugins/auth-interceptor.client.es.js → js/nuxt-v4/runtime/plugins/auth-interceptor.client-Qht8QSLW.js} +1 -1
- package/dist/{nuxt-v4.es.js → js/nuxt-v4-C5JN4uyM.js} +3 -3
- package/dist/js/nuxt-v4-DuwGUuhX.js +1 -0
- package/dist/js/ui-components-BC1UK39i.js +5204 -0
- package/dist/js/ui-components-BC1UK39i.js.br +0 -0
- package/dist/js/ui-components-BC1UK39i.js.gz +0 -0
- package/dist/js/ui-components-CocLXkUI.js +1 -0
- package/dist/js/ui-components-CocLXkUI.js.br +0 -0
- package/dist/js/ui-components-CocLXkUI.js.gz +0 -0
- package/dist/js/utils-B9zcSW52.js +1 -0
- package/dist/js/utils-B9zcSW52.js.br +0 -0
- package/dist/js/utils-B9zcSW52.js.gz +0 -0
- package/dist/js/utils-BZHeJkZf.js +1080 -0
- package/dist/js/utils-BZHeJkZf.js.br +0 -0
- package/dist/js/utils-BZHeJkZf.js.gz +0 -0
- package/dist/nuxt/module.d.ts +1 -5
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.d.ts +1 -20
- package/dist/nuxt/runtime/composables/useStrandsAuth.d.ts +1 -142
- package/dist/nuxt/runtime/middleware/auth.global.d.ts +1 -3
- package/dist/nuxt/runtime/plugin.client.d.ts +1 -3
- package/dist/nuxt/runtime/plugin.server.d.ts +1 -3
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.d.ts +1 -3
- package/dist/nuxt-v4/module.d.ts +1 -5
- package/dist/nuxt-v4/runtime/composables/useAuthenticatedFetch.d.ts +1 -20
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.d.ts +1 -27
- package/dist/nuxt-v4/runtime/middleware/auth.global.d.ts +1 -3
- package/dist/nuxt-v4/runtime/plugin.client.d.ts +1 -3
- package/dist/nuxt-v4/runtime/plugin.server.d.ts +1 -3
- package/dist/nuxt-v4/runtime/plugins/auth-interceptor.client.d.ts +1 -3
- package/dist/nuxt-v4.d.ts +1 -4
- package/dist/nuxt.d.ts +1 -4
- package/dist/robots.txt +4 -0
- package/dist/sitemap.xml +9 -0
- package/dist/styles/accui-DF7zRGFD.css +1 -0
- package/dist/styles/accui-DF7zRGFD.css.br +0 -0
- package/dist/styles/accui-DF7zRGFD.css.gz +0 -0
- package/package.json +5 -1
- package/dist/accui.css +0 -1
- package/dist/nuxt/module.cjs.js +0 -1
- package/dist/nuxt/runtime/composables/useAuthenticatedFetch.cjs.js +0 -1
- package/dist/nuxt/runtime/composables/useStrandsAuth.cjs.js +0 -1
- package/dist/nuxt/runtime/middleware/auth.d.ts +0 -7
- package/dist/nuxt/runtime/middleware/auth.global.cjs.js +0 -1
- package/dist/nuxt/runtime/middleware/guest.d.ts +0 -7
- package/dist/nuxt/runtime/plugin.client.cjs.js +0 -1
- package/dist/nuxt/runtime/plugin.server.cjs.js +0 -1
- package/dist/nuxt/runtime/plugins/auth-interceptor.client.cjs.js +0 -1
- package/dist/nuxt/types.d.ts +0 -45
- package/dist/nuxt-v4/module.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/composables/useAuthenticatedFetch.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/composables/useStrandsAuth.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/middleware/auth.global.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/plugin.client.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/plugin.server.cjs.js +0 -1
- package/dist/nuxt-v4/runtime/plugins/auth-interceptor.client.cjs.js +0 -1
- package/dist/nuxt-v4/types.d.ts +0 -63
- package/dist/nuxt-v4.cjs.js +0 -1
- package/dist/nuxt.cjs.js +0 -1
- package/dist/shared/defaults.d.ts +0 -2
- package/dist/strands-auth-ui.cjs.js +0 -1
- package/dist/strands-auth-ui.es.js +0 -10561
- package/dist/types/index.d.ts +0 -236
- package/dist/useStrandsAuth-CTlaiFqK.cjs +0 -1
- package/dist/useStrandsAuth-Cev-PTun.js +0 -899
- package/dist/useStrandsConfig-Cxb360Os.js +0 -179
- package/dist/useStrandsConfig-Z9_36OcV.cjs +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/slots.d.ts +0 -1
- package/dist/utils/validation.d.ts +0 -12
- package/dist/vue/components/SignedIn.vue.d.ts +0 -54
- package/dist/vue/components/SignedOut.vue.d.ts +0 -54
- package/dist/vue/components/StrandsAuth.vue.d.ts +0 -25
- package/dist/vue/components/StrandsBackupCodesModal.vue.d.ts +0 -12
- package/dist/vue/components/StrandsCompleteSignUp.vue.d.ts +0 -21
- package/dist/vue/components/StrandsConfigProvider.vue.d.ts +0 -22
- package/dist/vue/components/StrandsConfirmModal.vue.d.ts +0 -22
- package/dist/vue/components/StrandsEmailMfaSetupModal.vue.d.ts +0 -12
- package/dist/vue/components/StrandsHardwareKeySetupModal.vue.d.ts +0 -15
- package/dist/vue/components/StrandsLogo.vue.d.ts +0 -8
- package/dist/vue/components/StrandsMFASetup.vue.d.ts +0 -16
- package/dist/vue/components/StrandsMfaModal.vue.d.ts +0 -12
- package/dist/vue/components/StrandsMfaVerification.vue.d.ts +0 -17
- package/dist/vue/components/StrandsPasswordReset.vue.d.ts +0 -15
- package/dist/vue/components/StrandsSecuredFooter.vue.d.ts +0 -22
- package/dist/vue/components/StrandsSessionsModal.vue.d.ts +0 -14
- package/dist/vue/components/StrandsSettingsModal.vue.d.ts +0 -18
- package/dist/vue/components/StrandsSignIn.vue.d.ts +0 -21
- package/dist/vue/components/StrandsSignUp.vue.d.ts +0 -19
- package/dist/vue/components/StrandsTotpSetupModal.vue.d.ts +0 -12
- package/dist/vue/components/StrandsUserButton.vue.d.ts +0 -30
- package/dist/vue/components/StrandsUserProfile.vue.d.ts +0 -26
- package/dist/vue/components/SvgIcon.vue.d.ts +0 -17
- package/dist/vue/components/VirtualList.vue.d.ts +0 -37
- package/dist/vue/components/icons/IconGithub.vue.d.ts +0 -3
- package/dist/vue/components/icons/IconGoogle.vue.d.ts +0 -3
- package/dist/vue/components/icons/index.d.ts +0 -2
- package/dist/vue/components/index.d.ts +0 -26
- package/dist/vue/composables/useAuthenticatedFetch.d.ts +0 -20
- package/dist/vue/composables/useOAuthProviders.d.ts +0 -74
- package/dist/vue/composables/useStrandsAuth.d.ts +0 -130
- package/dist/vue/composables/useStrandsConfig.d.ts +0 -11
- package/dist/vue/composables/useStrandsMfa.d.ts +0 -38
- package/dist/vue/index.d.ts +0 -12
- package/dist/vue/plugins/StrandsUIPlugin.d.ts +0 -19
- package/dist/vue/ui/UiAlert.vue.d.ts +0 -31
- package/dist/vue/ui/UiAvatarEditor.vue.d.ts +0 -25
- package/dist/vue/ui/UiButton.vue.d.ts +0 -54
- package/dist/vue/ui/UiCard.vue.d.ts +0 -29
- package/dist/vue/ui/UiInput.vue.d.ts +0 -48
- package/dist/vue/ui/UiLevelProgress.vue.d.ts +0 -19
- package/dist/vue/ui/UiLink.vue.d.ts +0 -42
- package/dist/vue/ui/UiLoader.vue.d.ts +0 -15
- package/dist/vue/ui/UiModal.vue.d.ts +0 -33
- package/dist/vue/ui/UiTabs.vue.d.ts +0 -17
- package/dist/vue/ui/UiToggle.vue.d.ts +0 -15
- package/dist/vue/ui/index.d.ts +0 -29
- package/dist/vue/utils/contrast.d.ts +0 -79
- package/dist/vue/utils/debounce.d.ts +0 -12
- package/dist/vue/utils/fontPreloader.d.ts +0 -19
- package/dist/vue/utils/iconProps.d.ts +0 -9
- package/dist/vue/utils/lazyComponents.d.ts +0 -2
- package/dist/vue/utils/levels.d.ts +0 -27
- package/dist/vue/utils/performanceInit.d.ts +0 -40
- package/dist/vue/utils/requestCache.d.ts +0 -49
- package/dist/vue/utils/sounds.d.ts +0 -56
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { User } from '../../types';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
interface Props {
|
|
4
|
-
hideUser?: boolean;
|
|
5
|
-
variant?: 'minimal' | 'compact' | 'full';
|
|
6
|
-
redirectUrl?: string;
|
|
7
|
-
user?: User;
|
|
8
|
-
menuAlign?: 'left' | 'right' | 'center';
|
|
9
|
-
menuVerticalAlign?: 'bottom' | 'top';
|
|
10
|
-
}
|
|
11
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
12
|
-
"profile-updated": () => any;
|
|
13
|
-
"signed-out": () => any;
|
|
14
|
-
"signed-in": () => any;
|
|
15
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
-
"onProfile-updated"?: (() => any) | undefined;
|
|
17
|
-
"onSigned-out"?: (() => any) | undefined;
|
|
18
|
-
"onSigned-in"?: (() => any) | undefined;
|
|
19
|
-
}>, {
|
|
20
|
-
variant: "minimal" | "compact" | "full";
|
|
21
|
-
redirectUrl: string;
|
|
22
|
-
user: User;
|
|
23
|
-
hideUser: boolean;
|
|
24
|
-
menuAlign: "left" | "right" | "center";
|
|
25
|
-
menuVerticalAlign: "bottom" | "top";
|
|
26
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
|
-
containerRef: HTMLDivElement;
|
|
28
|
-
profileButtonRef: HTMLButtonElement;
|
|
29
|
-
}, HTMLDivElement>;
|
|
30
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig } from '../composables/useStrandsConfig';
|
|
2
|
-
import { User } from '../../types';
|
|
3
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
4
|
-
interface Props {
|
|
5
|
-
user?: User;
|
|
6
|
-
config?: StrandsAuthConfig;
|
|
7
|
-
autoFetch?: boolean;
|
|
8
|
-
inModal?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
11
|
-
error: (error: string) => any;
|
|
12
|
-
"profile-updated": (user: User) => any;
|
|
13
|
-
"manage-sessions": () => any;
|
|
14
|
-
"mfa-toggle": (enabled: boolean) => any;
|
|
15
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
16
|
-
onError?: ((error: string) => any) | undefined;
|
|
17
|
-
"onProfile-updated"?: ((user: User) => any) | undefined;
|
|
18
|
-
"onManage-sessions"?: (() => any) | undefined;
|
|
19
|
-
"onMfa-toggle"?: ((enabled: boolean) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
inModal: boolean;
|
|
22
|
-
autoFetch: boolean;
|
|
23
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
24
|
-
avatarFileInput: HTMLInputElement;
|
|
25
|
-
}, HTMLDivElement>;
|
|
26
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
name: string;
|
|
4
|
-
class?: string;
|
|
5
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
-
fill?: string;
|
|
7
|
-
stroke?: string;
|
|
8
|
-
ariaHidden?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
11
|
-
fill: string;
|
|
12
|
-
class: string;
|
|
13
|
-
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
14
|
-
stroke: string;
|
|
15
|
-
ariaHidden: boolean;
|
|
16
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, SVGSVGElement>;
|
|
17
|
-
export default _default;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
items: any[];
|
|
4
|
-
itemHeight: number;
|
|
5
|
-
containerHeight: number;
|
|
6
|
-
itemKey?: string | ((item: any) => string | number);
|
|
7
|
-
overscan?: number;
|
|
8
|
-
}
|
|
9
|
-
declare function __VLS_template(): {
|
|
10
|
-
attrs: Partial<{}>;
|
|
11
|
-
slots: {
|
|
12
|
-
default?(_: {
|
|
13
|
-
item: any;
|
|
14
|
-
index: number;
|
|
15
|
-
}): any;
|
|
16
|
-
};
|
|
17
|
-
refs: {
|
|
18
|
-
scrollContainer: HTMLDivElement;
|
|
19
|
-
};
|
|
20
|
-
rootEl: HTMLDivElement;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: DefineComponent<Props, {
|
|
24
|
-
scrollToItem: (index: number, align?: "start" | "center" | "end") => void;
|
|
25
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
26
|
-
itemKey: string | ((item: any) => string | number);
|
|
27
|
-
overscan: number;
|
|
28
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
29
|
-
scrollContainer: HTMLDivElement;
|
|
30
|
-
}, HTMLDivElement>;
|
|
31
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
|
-
export default _default;
|
|
33
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
-
new (): {
|
|
35
|
-
$slots: S;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
3
|
-
export default _default;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
3
|
-
export default _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export { default as StrandsAuth } from './StrandsAuth.vue';
|
|
2
|
-
export { default as StrandsSignIn } from './StrandsSignIn.vue';
|
|
3
|
-
export { default as StrandsSignUp } from './StrandsSignUp.vue';
|
|
4
|
-
export { default as StrandsCompleteSignUp } from './StrandsCompleteSignUp.vue';
|
|
5
|
-
export { default as StrandsUserProfile } from './StrandsUserProfile.vue';
|
|
6
|
-
export { default as StrandsPasswordReset } from './StrandsPasswordReset.vue';
|
|
7
|
-
export { default as StrandsMfaVerification } from './StrandsMfaVerification.vue';
|
|
8
|
-
export { default as StrandsSessionsModal } from './StrandsSessionsModal.vue';
|
|
9
|
-
export { default as StrandsConfirmModal } from './StrandsConfirmModal.vue';
|
|
10
|
-
export { default as SignedIn } from './SignedIn.vue';
|
|
11
|
-
export { default as SignedOut } from './SignedOut.vue';
|
|
12
|
-
export { default as StrandsLogo } from './StrandsLogo.vue';
|
|
13
|
-
export { default as StrandsSecuredFooter } from './StrandsSecuredFooter.vue';
|
|
14
|
-
export { default as StrandsConfigProvider } from './StrandsConfigProvider.vue';
|
|
15
|
-
export { default as SvgIcon } from './SvgIcon.vue';
|
|
16
|
-
export { default as StrandsUserButton } from './StrandsUserButton.vue';
|
|
17
|
-
export { default as VirtualList } from './VirtualList.vue';
|
|
18
|
-
export * from './icons';
|
|
19
|
-
export { preloadCriticalComponents } from '../utils/lazyComponents';
|
|
20
|
-
export { default as StrandsMFASetup } from './StrandsMFASetup.vue';
|
|
21
|
-
export { default as StrandsMfaModal } from './StrandsMfaModal.vue';
|
|
22
|
-
export { default as StrandsTotpSetupModal } from './StrandsTotpSetupModal.vue';
|
|
23
|
-
export { default as StrandsEmailMfaSetupModal } from './StrandsEmailMfaSetupModal.vue';
|
|
24
|
-
export { default as StrandsHardwareKeySetupModal } from './StrandsHardwareKeySetupModal.vue';
|
|
25
|
-
export { default as StrandsBackupCodesModal } from './StrandsBackupCodesModal.vue';
|
|
26
|
-
export { default as StrandsSettingsModal } from './StrandsSettingsModal.vue';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AuthenticatedFetchOptions } from '../../types';
|
|
2
|
-
/**
|
|
3
|
-
* Enhanced fetch composable that automatically includes auth headers
|
|
4
|
-
* and handles token refresh for API requests (Vue version)
|
|
5
|
-
*/
|
|
6
|
-
export declare function useAuthenticatedFetch(): {
|
|
7
|
-
authenticatedFetch: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
8
|
-
get: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
9
|
-
post: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
10
|
-
put: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
11
|
-
delete: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
12
|
-
patch: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
13
|
-
};
|
|
14
|
-
export declare const $authFetch: {
|
|
15
|
-
get: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
16
|
-
post: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
17
|
-
put: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
18
|
-
delete: (url: string | URL, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
19
|
-
patch: (url: string | URL, body?: any, options?: AuthenticatedFetchOptions) => Promise<Response>;
|
|
20
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { ComputedRef } from 'vue';
|
|
2
|
-
export interface OAuthProvider {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
displayName?: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
iconUrl?: string;
|
|
8
|
-
auth_url: string;
|
|
9
|
-
scopes: string[];
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
metadata?: Record<string, string>;
|
|
12
|
-
}
|
|
13
|
-
export interface OAuthProvidersResponse {
|
|
14
|
-
providers: OAuthProvider[];
|
|
15
|
-
redirect_url: string;
|
|
16
|
-
}
|
|
17
|
-
export interface OAuthProviderDetailsResponse {
|
|
18
|
-
success: boolean;
|
|
19
|
-
data: {
|
|
20
|
-
provider: OAuthProvider;
|
|
21
|
-
authUrl: string;
|
|
22
|
-
state?: string;
|
|
23
|
-
};
|
|
24
|
-
error?: {
|
|
25
|
-
code: string;
|
|
26
|
-
message: string;
|
|
27
|
-
details?: any;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface UseOAuthProvidersOptions {
|
|
31
|
-
redirectUrl?: string;
|
|
32
|
-
scopes?: string[];
|
|
33
|
-
}
|
|
34
|
-
export declare function useOAuthProviders(options?: UseOAuthProvidersOptions): {
|
|
35
|
-
providers: ComputedRef<{
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
displayName?: string | undefined;
|
|
39
|
-
icon?: string | undefined;
|
|
40
|
-
iconUrl?: string | undefined;
|
|
41
|
-
auth_url: string;
|
|
42
|
-
scopes: string[];
|
|
43
|
-
enabled: boolean;
|
|
44
|
-
metadata?: Record<string, string> | undefined;
|
|
45
|
-
}[]>;
|
|
46
|
-
enabledProviders: ComputedRef<{
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
displayName?: string | undefined;
|
|
50
|
-
icon?: string | undefined;
|
|
51
|
-
iconUrl?: string | undefined;
|
|
52
|
-
auth_url: string;
|
|
53
|
-
scopes: string[];
|
|
54
|
-
enabled: boolean;
|
|
55
|
-
metadata?: Record<string, string> | undefined;
|
|
56
|
-
}[]>;
|
|
57
|
-
loading: ComputedRef<boolean>;
|
|
58
|
-
error: ComputedRef<string | null>;
|
|
59
|
-
fetchProviders: () => Promise<void>;
|
|
60
|
-
getProviderAuthUrl: (providerId: string, customOptions?: Partial<UseOAuthProvidersOptions>) => Promise<string>;
|
|
61
|
-
redirectToProvider: (providerId: string, customOptions?: Partial<UseOAuthProvidersOptions>) => Promise<void>;
|
|
62
|
-
getProviderById: (providerId: string) => {
|
|
63
|
-
id: string;
|
|
64
|
-
name: string;
|
|
65
|
-
displayName?: string | undefined;
|
|
66
|
-
icon?: string | undefined;
|
|
67
|
-
iconUrl?: string | undefined;
|
|
68
|
-
auth_url: string;
|
|
69
|
-
scopes: string[];
|
|
70
|
-
enabled: boolean;
|
|
71
|
-
metadata?: Record<string, string> | undefined;
|
|
72
|
-
} | undefined;
|
|
73
|
-
getProviderIcon: (provider: OAuthProvider) => string;
|
|
74
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { User, SignInCredentials, SignUpData, AuthResponse } from '../../types';
|
|
2
|
-
import { ComputedRef } from 'vue';
|
|
3
|
-
import { MfaDeviceType } from '../..';
|
|
4
|
-
export declare function useStrandsAuth(): {
|
|
5
|
-
user: ComputedRef<{
|
|
6
|
-
id: string;
|
|
7
|
-
email: string;
|
|
8
|
-
firstName: string;
|
|
9
|
-
lastName: string;
|
|
10
|
-
avatar?: string | undefined;
|
|
11
|
-
mfaEnabled: boolean;
|
|
12
|
-
emailVerified: boolean;
|
|
13
|
-
passwordUpdatedAt?: (string | Date) | undefined;
|
|
14
|
-
settings?: any;
|
|
15
|
-
xp: number;
|
|
16
|
-
level: number;
|
|
17
|
-
next_level_xp: number;
|
|
18
|
-
username?: string | undefined;
|
|
19
|
-
usernameLastChangedAt?: (string | Date) | undefined;
|
|
20
|
-
createdAt: string | Date;
|
|
21
|
-
updatedAt: string | Date;
|
|
22
|
-
} | null>;
|
|
23
|
-
currentUser: ComputedRef<{
|
|
24
|
-
id: string;
|
|
25
|
-
email: string;
|
|
26
|
-
firstName: string;
|
|
27
|
-
lastName: string;
|
|
28
|
-
avatar?: string | undefined;
|
|
29
|
-
mfaEnabled: boolean;
|
|
30
|
-
emailVerified: boolean;
|
|
31
|
-
passwordUpdatedAt?: (string | Date) | undefined;
|
|
32
|
-
settings?: any;
|
|
33
|
-
xp: number;
|
|
34
|
-
level: number;
|
|
35
|
-
next_level_xp: number;
|
|
36
|
-
username?: string | undefined;
|
|
37
|
-
usernameLastChangedAt?: (string | Date) | undefined;
|
|
38
|
-
createdAt: string | Date;
|
|
39
|
-
updatedAt: string | Date;
|
|
40
|
-
} | null>;
|
|
41
|
-
currentSession: ComputedRef<{
|
|
42
|
-
id?: string | undefined;
|
|
43
|
-
userId?: string | undefined;
|
|
44
|
-
accessToken: string;
|
|
45
|
-
refreshToken: string;
|
|
46
|
-
expiresAt: Date;
|
|
47
|
-
createdAt?: Date | undefined;
|
|
48
|
-
} | null>;
|
|
49
|
-
isAuthenticated: ComputedRef<boolean>;
|
|
50
|
-
isLoading: ComputedRef<boolean>;
|
|
51
|
-
loading: ComputedRef<boolean>;
|
|
52
|
-
loadingMessage: ComputedRef<"Loading..." | "Checking authentication..." | "Signing you in..." | "Creating your account..." | "Signing you out..." | "Refreshing session..." | "Sending verification code..." | "Verifying code..." | "Loading profile...">;
|
|
53
|
-
isInitializing: ComputedRef<boolean>;
|
|
54
|
-
isSigningIn: ComputedRef<boolean>;
|
|
55
|
-
isSigningUp: ComputedRef<boolean>;
|
|
56
|
-
isSigningOut: ComputedRef<boolean>;
|
|
57
|
-
isRefreshingToken: ComputedRef<boolean>;
|
|
58
|
-
isSendingMfaEmail: ComputedRef<boolean>;
|
|
59
|
-
isVerifyingMfa: ComputedRef<boolean>;
|
|
60
|
-
mfaRequired: ComputedRef<boolean>;
|
|
61
|
-
mfaSessionId: ComputedRef<string | null>;
|
|
62
|
-
availableMfaMethods: ComputedRef<{
|
|
63
|
-
id: string;
|
|
64
|
-
device_type: MfaDeviceType;
|
|
65
|
-
device_name: string;
|
|
66
|
-
is_active: boolean;
|
|
67
|
-
last_used_at?: (string | Date) | undefined;
|
|
68
|
-
created_at: string | Date;
|
|
69
|
-
}[]>;
|
|
70
|
-
signIn: (credentials: SignInCredentials) => Promise<AuthResponse>;
|
|
71
|
-
signUp: (userData: SignUpData) => Promise<never>;
|
|
72
|
-
signOut: () => Promise<void>;
|
|
73
|
-
refreshToken: () => Promise<boolean>;
|
|
74
|
-
fetchProfile: () => Promise<User | null>;
|
|
75
|
-
updateProfile: (profileData: Partial<User>) => Promise<{
|
|
76
|
-
id: string;
|
|
77
|
-
email: string;
|
|
78
|
-
firstName: string;
|
|
79
|
-
lastName: string;
|
|
80
|
-
avatar?: string | undefined;
|
|
81
|
-
mfaEnabled: boolean;
|
|
82
|
-
emailVerified: boolean;
|
|
83
|
-
passwordUpdatedAt?: (string | Date) | undefined;
|
|
84
|
-
settings?: any;
|
|
85
|
-
xp: number;
|
|
86
|
-
level: number;
|
|
87
|
-
next_level_xp: number;
|
|
88
|
-
username?: string | undefined;
|
|
89
|
-
usernameLastChangedAt?: (string | Date) | undefined;
|
|
90
|
-
createdAt: string | Date;
|
|
91
|
-
updatedAt: string | Date;
|
|
92
|
-
}>;
|
|
93
|
-
updateUserSettings: (settings: any) => Promise<{
|
|
94
|
-
id: string;
|
|
95
|
-
email: string;
|
|
96
|
-
firstName: string;
|
|
97
|
-
lastName: string;
|
|
98
|
-
avatar?: string | undefined;
|
|
99
|
-
mfaEnabled: boolean;
|
|
100
|
-
emailVerified: boolean;
|
|
101
|
-
passwordUpdatedAt?: (string | Date) | undefined;
|
|
102
|
-
settings?: any;
|
|
103
|
-
xp: number;
|
|
104
|
-
level: number;
|
|
105
|
-
next_level_xp: number;
|
|
106
|
-
username?: string | undefined;
|
|
107
|
-
usernameLastChangedAt?: (string | Date) | undefined;
|
|
108
|
-
createdAt: string | Date;
|
|
109
|
-
updatedAt: string | Date;
|
|
110
|
-
}>;
|
|
111
|
-
changeEmail: (newEmail: string, password: string) => Promise<any>;
|
|
112
|
-
changeUsername: (newUsername: string) => Promise<any>;
|
|
113
|
-
getUsernameCooldown: () => Promise<any>;
|
|
114
|
-
checkUsernameAvailability: (username: string) => Promise<any>;
|
|
115
|
-
getUserSessions: () => Promise<any>;
|
|
116
|
-
getSessionStats: () => Promise<any>;
|
|
117
|
-
revokeSession: (sessionId: string) => Promise<boolean>;
|
|
118
|
-
revokeAllOtherSessions: () => Promise<boolean>;
|
|
119
|
-
initialize: () => Promise<void>;
|
|
120
|
-
setAuthData: (authResponse: AuthResponse) => Promise<void>;
|
|
121
|
-
verifyMfa: (deviceId: string, code: string, isBackupCode?: boolean) => Promise<AuthResponse>;
|
|
122
|
-
sendMfaEmailCode: (deviceId: string) => Promise<any>;
|
|
123
|
-
getMfaWebAuthnChallenge: (deviceId: string) => Promise<any>;
|
|
124
|
-
registerHardwareKey: (deviceName: string, accessToken: string, deviceType?: "hardware" | "passkey") => Promise<any>;
|
|
125
|
-
completeHardwareKeyRegistration: (deviceId: string, credential: any, accessToken: string) => Promise<any>;
|
|
126
|
-
startTokenRefreshTimer: () => void;
|
|
127
|
-
stopTokenRefreshTimer: () => void;
|
|
128
|
-
getAuthHeaders: () => Record<string, string>;
|
|
129
|
-
forceReInit: () => void;
|
|
130
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { StrandsAuthConfig, StrandsAuthEndpoints } from '../../types';
|
|
2
|
-
import { ComputedRef } from 'vue';
|
|
3
|
-
export type { StrandsAuthConfig, StrandsAuthEndpoints } from '../../types';
|
|
4
|
-
export declare function provideStrandsConfig(config: StrandsAuthConfig): void;
|
|
5
|
-
export declare function useStrandsConfig(fallbackConfig?: Partial<StrandsAuthConfig>): {
|
|
6
|
-
config: ComputedRef<any>;
|
|
7
|
-
endpoints: ComputedRef<StrandsAuthEndpoints>;
|
|
8
|
-
getUrl: (endpoint: keyof StrandsAuthEndpoints | string) => string;
|
|
9
|
-
getSupportEmail: () => any;
|
|
10
|
-
};
|
|
11
|
-
export declare function setStrandsConfig(config: StrandsAuthConfig): void;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { MfaDevicesResponse, TotpSetupResponse, BackupCodesResponse } from '../../types';
|
|
2
|
-
import { ComputedRef } from 'vue';
|
|
3
|
-
import { MfaDeviceType } from '../..';
|
|
4
|
-
export declare function useStrandsMfa(): {
|
|
5
|
-
mfaDevices: ComputedRef<{
|
|
6
|
-
id: string;
|
|
7
|
-
device_type: MfaDeviceType;
|
|
8
|
-
device_name: string;
|
|
9
|
-
is_active: boolean;
|
|
10
|
-
last_used_at?: (string | Date) | undefined;
|
|
11
|
-
created_at: string | Date;
|
|
12
|
-
}[]>;
|
|
13
|
-
mfaEnabled: ComputedRef<boolean>;
|
|
14
|
-
loading: ComputedRef<boolean>;
|
|
15
|
-
hasMfaDevices: ComputedRef<boolean>;
|
|
16
|
-
activeMfaDevices: ComputedRef<{
|
|
17
|
-
id: string;
|
|
18
|
-
device_type: MfaDeviceType;
|
|
19
|
-
device_name: string;
|
|
20
|
-
is_active: boolean;
|
|
21
|
-
last_used_at?: (string | Date) | undefined;
|
|
22
|
-
created_at: string | Date;
|
|
23
|
-
}[]>;
|
|
24
|
-
fetchMfaDevices: () => Promise<MfaDevicesResponse>;
|
|
25
|
-
setupTotp: (deviceName: string) => Promise<TotpSetupResponse>;
|
|
26
|
-
verifyTotpSetup: (deviceId: string, totpCode: string) => Promise<void>;
|
|
27
|
-
setupEmailMfa: (deviceName: string) => Promise<{
|
|
28
|
-
device_id: string;
|
|
29
|
-
email: string;
|
|
30
|
-
}>;
|
|
31
|
-
sendEmailMfaCode: (deviceId: string) => Promise<void>;
|
|
32
|
-
verifyEmailMfaCode: (deviceId: string, code: string) => Promise<boolean>;
|
|
33
|
-
disableMfaDevice: (deviceId: string) => Promise<void>;
|
|
34
|
-
regenerateBackupCodes: (deviceId: string) => Promise<BackupCodesResponse>;
|
|
35
|
-
getDeviceTypeIcon: (deviceType: string) => string;
|
|
36
|
-
getDeviceTypeName: (deviceType: string) => string;
|
|
37
|
-
formatLastUsed: (lastUsedAt?: string | Date) => string;
|
|
38
|
-
};
|
package/dist/vue/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from './components/index';
|
|
2
|
-
export * from './ui/index';
|
|
3
|
-
export { default as StrandsUIPlugin, injectSquircleStyles } from './plugins/StrandsUIPlugin';
|
|
4
|
-
export * from './composables/useStrandsAuth';
|
|
5
|
-
export * from './composables/useStrandsConfig';
|
|
6
|
-
export * from './composables/useOAuthProviders';
|
|
7
|
-
export * from './composables/useAuthenticatedFetch';
|
|
8
|
-
export * from './utils/requestCache';
|
|
9
|
-
export * from './utils/debounce';
|
|
10
|
-
export * from './utils/fontPreloader';
|
|
11
|
-
export * from './utils/lazyComponents';
|
|
12
|
-
export * from './utils/performanceInit';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
|
-
import { default as StrandsUiAlert } from '../ui/UiAlert.vue';
|
|
3
|
-
import { default as StrandsUiButton } from '../ui/UiButton.vue';
|
|
4
|
-
import { default as StrandsUiCard } from '../ui/UiCard.vue';
|
|
5
|
-
import { default as StrandsUiInput } from '../ui/UiInput.vue';
|
|
6
|
-
import { default as StrandsUiLink } from '../ui/UiLink.vue';
|
|
7
|
-
import { default as StrandsUiTabs } from '../ui/UiTabs.vue';
|
|
8
|
-
import { default as StrandsUiLoader } from '../ui/UiLoader.vue';
|
|
9
|
-
declare function injectSquircleStyles(): void;
|
|
10
|
-
export interface StrandsUIOptions {
|
|
11
|
-
prefix?: string;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: {
|
|
14
|
-
install(app: App, options?: StrandsUIOptions): void;
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
export { StrandsUiAlert, StrandsUiButton, StrandsUiCard, StrandsUiInput, StrandsUiLink, StrandsUiTabs, StrandsUiLoader, };
|
|
18
|
-
export { injectSquircleStyles };
|
|
19
|
-
export type { ButtonVariant, ButtonSize, InputType, CardVariant, LinkVariant, AlertVariant, } from '../ui/index';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
variant?: 'success' | 'error' | 'warning' | 'info';
|
|
4
|
-
title?: string;
|
|
5
|
-
message?: string;
|
|
6
|
-
dismissible?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare function __VLS_template(): {
|
|
9
|
-
attrs: Partial<{}>;
|
|
10
|
-
slots: {
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
};
|
|
13
|
-
refs: {};
|
|
14
|
-
rootEl: HTMLDivElement;
|
|
15
|
-
};
|
|
16
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
17
|
-
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
|
-
dismiss: () => any;
|
|
19
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
20
|
-
onDismiss?: (() => any) | undefined;
|
|
21
|
-
}>, {
|
|
22
|
-
variant: "success" | "error" | "warning" | "info";
|
|
23
|
-
dismissible: boolean;
|
|
24
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
-
export default _default;
|
|
27
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
-
new (): {
|
|
29
|
-
$slots: S;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
size?: number;
|
|
4
|
-
previewSize?: number;
|
|
5
|
-
maxFileSize?: number;
|
|
6
|
-
uploading?: boolean;
|
|
7
|
-
preselectedFile?: File | null;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
10
|
-
error: (error: string) => any;
|
|
11
|
-
upload: (file: File) => any;
|
|
12
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
-
onError?: ((error: string) => any) | undefined;
|
|
14
|
-
onUpload?: ((file: File) => any) | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
size: number;
|
|
17
|
-
previewSize: number;
|
|
18
|
-
maxFileSize: number;
|
|
19
|
-
uploading: boolean;
|
|
20
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
21
|
-
fileInput: HTMLInputElement;
|
|
22
|
-
canvas: HTMLCanvasElement;
|
|
23
|
-
previewCanvas: HTMLCanvasElement;
|
|
24
|
-
}, HTMLDivElement>;
|
|
25
|
-
export default _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'outline';
|
|
4
|
-
size?: 'sm' | 'md' | 'lg';
|
|
5
|
-
type?: 'button' | 'submit' | 'reset';
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
loadingText?: string;
|
|
9
|
-
fullWidth?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Color prop supports multiple formats:
|
|
12
|
-
* - Base colors: 'red', 'blue', 'green', 'strands', etc.
|
|
13
|
-
* - Shades: 'red-600', 'blue-500', etc. (100-950)
|
|
14
|
-
* - Opacity: 'red/50', 'blue/80', etc. (0-100)
|
|
15
|
-
* Uses CSS relative color syntax for dynamic shading and opacity
|
|
16
|
-
*/
|
|
17
|
-
color?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Font weight for the button text
|
|
20
|
-
* Affects WCAG 3.0 APCA contrast calculation thresholds
|
|
21
|
-
* Higher weights require less contrast
|
|
22
|
-
*/
|
|
23
|
-
fontWeight?: 400 | 500 | 600 | 700;
|
|
24
|
-
}
|
|
25
|
-
declare function __VLS_template(): {
|
|
26
|
-
attrs: Partial<{}>;
|
|
27
|
-
slots: {
|
|
28
|
-
icon?(_: {}): any;
|
|
29
|
-
default?(_: {}): any;
|
|
30
|
-
};
|
|
31
|
-
refs: {};
|
|
32
|
-
rootEl: HTMLButtonElement;
|
|
33
|
-
};
|
|
34
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
35
|
-
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
36
|
-
click: (event: MouseEvent) => any;
|
|
37
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
38
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
39
|
-
}>, {
|
|
40
|
-
variant: "primary" | "secondary" | "ghost" | "outline";
|
|
41
|
-
type: "button" | "submit" | "reset";
|
|
42
|
-
size: "sm" | "md" | "lg";
|
|
43
|
-
disabled: boolean;
|
|
44
|
-
loading: boolean;
|
|
45
|
-
fullWidth: boolean;
|
|
46
|
-
fontWeight: 400 | 500 | 600 | 700;
|
|
47
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
48
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
|
-
export default _default;
|
|
50
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
-
new (): {
|
|
52
|
-
$slots: S;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
variant?: 'default' | 'modern' | 'minimal' | 'clean';
|
|
4
|
-
padding?: 'sm' | 'md' | 'lg';
|
|
5
|
-
shadow?: 'none' | 'sm' | 'md' | 'lg';
|
|
6
|
-
}
|
|
7
|
-
declare function __VLS_template(): {
|
|
8
|
-
attrs: Partial<{}>;
|
|
9
|
-
slots: {
|
|
10
|
-
header?(_: {}): any;
|
|
11
|
-
default?(_: {}): any;
|
|
12
|
-
footer?(_: {}): any;
|
|
13
|
-
};
|
|
14
|
-
refs: {};
|
|
15
|
-
rootEl: HTMLDivElement;
|
|
16
|
-
};
|
|
17
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
-
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
19
|
-
variant: "default" | "modern" | "minimal" | "clean";
|
|
20
|
-
padding: "sm" | "md" | "lg";
|
|
21
|
-
shadow: "none" | "sm" | "md" | "lg";
|
|
22
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
23
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
-
export default _default;
|
|
25
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
-
new (): {
|
|
27
|
-
$slots: S;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
interface Props {
|
|
3
|
-
modelValue?: string | number;
|
|
4
|
-
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
|
|
5
|
-
label?: string;
|
|
6
|
-
placeholder?: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
error?: string | {
|
|
10
|
-
message: string;
|
|
11
|
-
};
|
|
12
|
-
helpText?: string;
|
|
13
|
-
autocomplete?: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
inputmode?: 'text' | 'numeric' | 'decimal' | 'tel' | 'search' | 'email' | 'url';
|
|
16
|
-
maxlength?: number | string;
|
|
17
|
-
size?: 'sm' | 'md' | 'lg';
|
|
18
|
-
}
|
|
19
|
-
declare function __VLS_template(): {
|
|
20
|
-
attrs: Partial<{}>;
|
|
21
|
-
slots: {
|
|
22
|
-
icon?(_: {}): any;
|
|
23
|
-
};
|
|
24
|
-
refs: {};
|
|
25
|
-
rootEl: HTMLDivElement;
|
|
26
|
-
};
|
|
27
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
-
declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
29
|
-
"update:modelValue": (value: string) => any;
|
|
30
|
-
blur: (event: FocusEvent) => any;
|
|
31
|
-
focus: (event: FocusEvent) => any;
|
|
32
|
-
keydown: (event: KeyboardEvent) => any;
|
|
33
|
-
}, string, PublicProps, Readonly<Props> & Readonly<{
|
|
34
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
35
|
-
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
36
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
37
|
-
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
38
|
-
}>, {
|
|
39
|
-
type: "text" | "email" | "password" | "number" | "tel" | "url";
|
|
40
|
-
size: "sm" | "md" | "lg";
|
|
41
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
42
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
43
|
-
export default _default;
|
|
44
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
45
|
-
new (): {
|
|
46
|
-
$slots: S;
|
|
47
|
-
};
|
|
48
|
-
};
|