shopify-nuxt 0.0.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/README.md +275 -0
- package/dist/module.d.mts +7 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +134 -0
- package/dist/runtime/components/ShopifyAppProvider.d.vue.ts +13 -0
- package/dist/runtime/components/ShopifyAppProvider.vue +11 -0
- package/dist/runtime/components/ShopifyAppProvider.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShAppNav.d.vue.ts +13 -0
- package/dist/runtime/components/polaris/ShAppNav.vue +9 -0
- package/dist/runtime/components/polaris/ShAppNav.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShAvatar.d.vue.ts +19 -0
- package/dist/runtime/components/polaris/ShAvatar.vue +15 -0
- package/dist/runtime/components/polaris/ShAvatar.vue.d.ts +19 -0
- package/dist/runtime/components/polaris/ShBadge.d.vue.ts +20 -0
- package/dist/runtime/components/polaris/ShBadge.vue +16 -0
- package/dist/runtime/components/polaris/ShBadge.vue.d.ts +20 -0
- package/dist/runtime/components/polaris/ShBanner.d.vue.ts +19 -0
- package/dist/runtime/components/polaris/ShBanner.vue +15 -0
- package/dist/runtime/components/polaris/ShBanner.vue.d.ts +19 -0
- package/dist/runtime/components/polaris/ShBox.d.vue.ts +39 -0
- package/dist/runtime/components/polaris/ShBox.vue +35 -0
- package/dist/runtime/components/polaris/ShBox.vue.d.ts +39 -0
- package/dist/runtime/components/polaris/ShButton.d.vue.ts +28 -0
- package/dist/runtime/components/polaris/ShButton.vue +24 -0
- package/dist/runtime/components/polaris/ShButton.vue.d.ts +28 -0
- package/dist/runtime/components/polaris/ShButtonGroup.d.vue.ts +17 -0
- package/dist/runtime/components/polaris/ShButtonGroup.vue +13 -0
- package/dist/runtime/components/polaris/ShButtonGroup.vue.d.ts +17 -0
- package/dist/runtime/components/polaris/ShCheckbox.d.vue.ts +28 -0
- package/dist/runtime/components/polaris/ShCheckbox.vue +24 -0
- package/dist/runtime/components/polaris/ShCheckbox.vue.d.ts +28 -0
- package/dist/runtime/components/polaris/ShChip.d.vue.ts +17 -0
- package/dist/runtime/components/polaris/ShChip.vue +13 -0
- package/dist/runtime/components/polaris/ShChip.vue.d.ts +17 -0
- package/dist/runtime/components/polaris/ShChoice.d.vue.ts +20 -0
- package/dist/runtime/components/polaris/ShChoice.vue +16 -0
- package/dist/runtime/components/polaris/ShChoice.vue.d.ts +20 -0
- package/dist/runtime/components/polaris/ShChoiceList.d.vue.ts +23 -0
- package/dist/runtime/components/polaris/ShChoiceList.vue +19 -0
- package/dist/runtime/components/polaris/ShChoiceList.vue.d.ts +23 -0
- package/dist/runtime/components/polaris/ShClickable.d.vue.ts +48 -0
- package/dist/runtime/components/polaris/ShClickable.vue +44 -0
- package/dist/runtime/components/polaris/ShClickable.vue.d.ts +48 -0
- package/dist/runtime/components/polaris/ShClickableChip.d.vue.ts +24 -0
- package/dist/runtime/components/polaris/ShClickableChip.vue +20 -0
- package/dist/runtime/components/polaris/ShClickableChip.vue.d.ts +24 -0
- package/dist/runtime/components/polaris/ShColorField.d.vue.ts +29 -0
- package/dist/runtime/components/polaris/ShColorField.vue +25 -0
- package/dist/runtime/components/polaris/ShColorField.vue.d.ts +29 -0
- package/dist/runtime/components/polaris/ShColorPicker.d.vue.ts +19 -0
- package/dist/runtime/components/polaris/ShColorPicker.vue +15 -0
- package/dist/runtime/components/polaris/ShColorPicker.vue.d.ts +19 -0
- package/dist/runtime/components/polaris/ShDateField.d.vue.ts +34 -0
- package/dist/runtime/components/polaris/ShDateField.vue +30 -0
- package/dist/runtime/components/polaris/ShDateField.vue.d.ts +34 -0
- package/dist/runtime/components/polaris/ShDatePicker.d.vue.ts +25 -0
- package/dist/runtime/components/polaris/ShDatePicker.vue +21 -0
- package/dist/runtime/components/polaris/ShDatePicker.vue.d.ts +25 -0
- package/dist/runtime/components/polaris/ShDivider.d.vue.ts +17 -0
- package/dist/runtime/components/polaris/ShDivider.vue +13 -0
- package/dist/runtime/components/polaris/ShDivider.vue.d.ts +17 -0
- package/dist/runtime/components/polaris/ShDropZone.d.vue.ts +25 -0
- package/dist/runtime/components/polaris/ShDropZone.vue +21 -0
- package/dist/runtime/components/polaris/ShDropZone.vue.d.ts +25 -0
- package/dist/runtime/components/polaris/ShEmailField.d.vue.ts +30 -0
- package/dist/runtime/components/polaris/ShEmailField.vue +26 -0
- package/dist/runtime/components/polaris/ShEmailField.vue.d.ts +30 -0
- package/dist/runtime/components/polaris/ShGrid.d.vue.ts +50 -0
- package/dist/runtime/components/polaris/ShGrid.vue +46 -0
- package/dist/runtime/components/polaris/ShGrid.vue.d.ts +50 -0
- package/dist/runtime/components/polaris/ShGridItem.d.vue.ts +41 -0
- package/dist/runtime/components/polaris/ShGridItem.vue +37 -0
- package/dist/runtime/components/polaris/ShGridItem.vue.d.ts +41 -0
- package/dist/runtime/components/polaris/ShHeading.d.vue.ts +18 -0
- package/dist/runtime/components/polaris/ShHeading.vue +14 -0
- package/dist/runtime/components/polaris/ShHeading.vue.d.ts +18 -0
- package/dist/runtime/components/polaris/ShIcon.d.vue.ts +20 -0
- package/dist/runtime/components/polaris/ShIcon.vue +16 -0
- package/dist/runtime/components/polaris/ShIcon.vue.d.ts +20 -0
- package/dist/runtime/components/polaris/ShImage.d.vue.ts +18 -0
- package/dist/runtime/components/polaris/ShImage.vue +14 -0
- package/dist/runtime/components/polaris/ShImage.vue.d.ts +18 -0
- package/dist/runtime/components/polaris/ShLink.d.vue.ts +24 -0
- package/dist/runtime/components/polaris/ShLink.vue +20 -0
- package/dist/runtime/components/polaris/ShLink.vue.d.ts +24 -0
- package/dist/runtime/components/polaris/ShListItem.d.vue.ts +13 -0
- package/dist/runtime/components/polaris/ShListItem.vue +9 -0
- package/dist/runtime/components/polaris/ShListItem.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShMenu.d.vue.ts +16 -0
- package/dist/runtime/components/polaris/ShMenu.vue +12 -0
- package/dist/runtime/components/polaris/ShMenu.vue.d.ts +16 -0
- package/dist/runtime/components/polaris/ShModal.d.vue.ts +19 -0
- package/dist/runtime/components/polaris/ShModal.vue +15 -0
- package/dist/runtime/components/polaris/ShModal.vue.d.ts +19 -0
- package/dist/runtime/components/polaris/ShMoneyField.d.vue.ts +30 -0
- package/dist/runtime/components/polaris/ShMoneyField.vue +26 -0
- package/dist/runtime/components/polaris/ShMoneyField.vue.d.ts +30 -0
- package/dist/runtime/components/polaris/ShNumberField.d.vue.ts +34 -0
- package/dist/runtime/components/polaris/ShNumberField.vue +30 -0
- package/dist/runtime/components/polaris/ShNumberField.vue.d.ts +34 -0
- package/dist/runtime/components/polaris/ShOption.d.vue.ts +19 -0
- package/dist/runtime/components/polaris/ShOption.vue +15 -0
- package/dist/runtime/components/polaris/ShOption.vue.d.ts +19 -0
- package/dist/runtime/components/polaris/ShOptionGroup.d.vue.ts +17 -0
- package/dist/runtime/components/polaris/ShOptionGroup.vue +13 -0
- package/dist/runtime/components/polaris/ShOptionGroup.vue.d.ts +17 -0
- package/dist/runtime/components/polaris/ShOrderedList.d.vue.ts +13 -0
- package/dist/runtime/components/polaris/ShOrderedList.vue +9 -0
- package/dist/runtime/components/polaris/ShOrderedList.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShPage.d.vue.ts +17 -0
- package/dist/runtime/components/polaris/ShPage.vue +13 -0
- package/dist/runtime/components/polaris/ShPage.vue.d.ts +17 -0
- package/dist/runtime/components/polaris/ShParagraph.d.vue.ts +21 -0
- package/dist/runtime/components/polaris/ShParagraph.vue +17 -0
- package/dist/runtime/components/polaris/ShParagraph.vue.d.ts +21 -0
- package/dist/runtime/components/polaris/ShPasswordField.d.vue.ts +30 -0
- package/dist/runtime/components/polaris/ShPasswordField.vue +26 -0
- package/dist/runtime/components/polaris/ShPasswordField.vue.d.ts +30 -0
- package/dist/runtime/components/polaris/ShPopover.d.vue.ts +21 -0
- package/dist/runtime/components/polaris/ShPopover.vue +17 -0
- package/dist/runtime/components/polaris/ShPopover.vue.d.ts +21 -0
- package/dist/runtime/components/polaris/ShQueryContainer.d.vue.ts +16 -0
- package/dist/runtime/components/polaris/ShQueryContainer.vue +12 -0
- package/dist/runtime/components/polaris/ShQueryContainer.vue.d.ts +16 -0
- package/dist/runtime/components/polaris/ShSearchField.d.vue.ts +30 -0
- package/dist/runtime/components/polaris/ShSearchField.vue +26 -0
- package/dist/runtime/components/polaris/ShSearchField.vue.d.ts +30 -0
- package/dist/runtime/components/polaris/ShSection.d.vue.ts +18 -0
- package/dist/runtime/components/polaris/ShSection.vue +14 -0
- package/dist/runtime/components/polaris/ShSection.vue.d.ts +18 -0
- package/dist/runtime/components/polaris/ShSelect.d.vue.ts +26 -0
- package/dist/runtime/components/polaris/ShSelect.vue +22 -0
- package/dist/runtime/components/polaris/ShSelect.vue.d.ts +26 -0
- package/dist/runtime/components/polaris/ShSpinner.d.vue.ts +17 -0
- package/dist/runtime/components/polaris/ShSpinner.vue +13 -0
- package/dist/runtime/components/polaris/ShSpinner.vue.d.ts +17 -0
- package/dist/runtime/components/polaris/ShStack.d.vue.ts +46 -0
- package/dist/runtime/components/polaris/ShStack.vue +42 -0
- package/dist/runtime/components/polaris/ShStack.vue.d.ts +46 -0
- package/dist/runtime/components/polaris/ShSwitch.d.vue.ts +27 -0
- package/dist/runtime/components/polaris/ShSwitch.vue +23 -0
- package/dist/runtime/components/polaris/ShSwitch.vue.d.ts +27 -0
- package/dist/runtime/components/polaris/ShTable.d.vue.ts +20 -0
- package/dist/runtime/components/polaris/ShTable.vue +16 -0
- package/dist/runtime/components/polaris/ShTable.vue.d.ts +20 -0
- package/dist/runtime/components/polaris/ShTableBody.d.vue.ts +13 -0
- package/dist/runtime/components/polaris/ShTableBody.vue +9 -0
- package/dist/runtime/components/polaris/ShTableBody.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShTableCell.d.vue.ts +13 -0
- package/dist/runtime/components/polaris/ShTableCell.vue +9 -0
- package/dist/runtime/components/polaris/ShTableCell.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShTableHeader.d.vue.ts +17 -0
- package/dist/runtime/components/polaris/ShTableHeader.vue +13 -0
- package/dist/runtime/components/polaris/ShTableHeader.vue.d.ts +17 -0
- package/dist/runtime/components/polaris/ShTableHeaderRow.d.vue.ts +13 -0
- package/dist/runtime/components/polaris/ShTableHeaderRow.vue +9 -0
- package/dist/runtime/components/polaris/ShTableHeaderRow.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShTableRow.d.vue.ts +16 -0
- package/dist/runtime/components/polaris/ShTableRow.vue +12 -0
- package/dist/runtime/components/polaris/ShTableRow.vue.d.ts +16 -0
- package/dist/runtime/components/polaris/ShText.d.vue.ts +22 -0
- package/dist/runtime/components/polaris/ShText.vue +18 -0
- package/dist/runtime/components/polaris/ShText.vue.d.ts +22 -0
- package/dist/runtime/components/polaris/ShTextArea.d.vue.ts +31 -0
- package/dist/runtime/components/polaris/ShTextArea.vue +27 -0
- package/dist/runtime/components/polaris/ShTextArea.vue.d.ts +31 -0
- package/dist/runtime/components/polaris/ShTextField.d.vue.ts +33 -0
- package/dist/runtime/components/polaris/ShTextField.vue +29 -0
- package/dist/runtime/components/polaris/ShTextField.vue.d.ts +33 -0
- package/dist/runtime/components/polaris/ShThumbnail.d.vue.ts +18 -0
- package/dist/runtime/components/polaris/ShThumbnail.vue +14 -0
- package/dist/runtime/components/polaris/ShThumbnail.vue.d.ts +18 -0
- package/dist/runtime/components/polaris/ShTooltip.d.vue.ts +13 -0
- package/dist/runtime/components/polaris/ShTooltip.vue +9 -0
- package/dist/runtime/components/polaris/ShTooltip.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShUnorderedList.d.vue.ts +13 -0
- package/dist/runtime/components/polaris/ShUnorderedList.vue +9 -0
- package/dist/runtime/components/polaris/ShUnorderedList.vue.d.ts +13 -0
- package/dist/runtime/components/polaris/ShUrlField.d.vue.ts +30 -0
- package/dist/runtime/components/polaris/ShUrlField.vue +26 -0
- package/dist/runtime/components/polaris/ShUrlField.vue.d.ts +30 -0
- package/dist/runtime/components/polaris/types.d.ts +1 -0
- package/dist/runtime/components/polaris/types.js +0 -0
- package/dist/runtime/composables/useAppBridge.d.ts +8 -0
- package/dist/runtime/composables/useAppBridge.js +21 -0
- package/dist/runtime/composables/useShopifyFetch.d.ts +4 -0
- package/dist/runtime/composables/useShopifyFetch.js +32 -0
- package/dist/runtime/middleware/shopify-auth.d.ts +2 -0
- package/dist/runtime/middleware/shopify-auth.js +11 -0
- package/dist/runtime/plugin.d.ts +1 -0
- package/dist/runtime/plugin.js +1 -0
- package/dist/runtime/plugins/app-bridge.d.ts +12 -0
- package/dist/runtime/plugins/app-bridge.js +28 -0
- package/dist/runtime/plugins/polaris.d.ts +1 -0
- package/dist/runtime/plugins/polaris.js +0 -0
- package/dist/runtime/server/index.d.ts +2 -0
- package/dist/runtime/server/index.js +7 -0
- package/dist/runtime/server/routes/auth-callback.d.ts +6 -0
- package/dist/runtime/server/routes/auth-callback.js +45 -0
- package/dist/runtime/server/routes/auth-exit-iframe.d.ts +6 -0
- package/dist/runtime/server/routes/auth-exit-iframe.js +11 -0
- package/dist/runtime/server/routes/auth-session-token.d.ts +7 -0
- package/dist/runtime/server/routes/auth-session-token.js +27 -0
- package/dist/runtime/server/routes/auth.d.ts +6 -0
- package/dist/runtime/server/routes/auth.js +23 -0
- package/dist/runtime/server/services/shopify.d.ts +38 -0
- package/dist/runtime/server/services/shopify.js +89 -0
- package/dist/runtime/server/test-helpers/index.d.ts +25 -0
- package/dist/runtime/server/test-helpers/index.js +25 -0
- package/dist/runtime/server/test-helpers/package.json +4 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/runtime/server/utils/authenticate-admin.d.ts +17 -0
- package/dist/runtime/server/utils/authenticate-admin.js +197 -0
- package/dist/runtime/server/utils/authenticate-flow.d.ts +17 -0
- package/dist/runtime/server/utils/authenticate-flow.js +70 -0
- package/dist/runtime/server/utils/authenticate-fulfillment-service.d.ts +16 -0
- package/dist/runtime/server/utils/authenticate-fulfillment-service.js +54 -0
- package/dist/runtime/server/utils/authenticate-pos.d.ts +18 -0
- package/dist/runtime/server/utils/authenticate-pos.js +31 -0
- package/dist/runtime/server/utils/authenticate-public.d.ts +17 -0
- package/dist/runtime/server/utils/authenticate-public.js +31 -0
- package/dist/runtime/server/utils/authenticate-webhook.d.ts +26 -0
- package/dist/runtime/server/utils/authenticate-webhook.js +76 -0
- package/dist/runtime/server/utils/clients.d.ts +25 -0
- package/dist/runtime/server/utils/clients.js +36 -0
- package/dist/runtime/server/utils/helpers.d.ts +10 -0
- package/dist/runtime/server/utils/helpers.js +96 -0
- package/dist/runtime/server/utils/login.d.ts +17 -0
- package/dist/runtime/server/utils/login.js +44 -0
- package/dist/runtime/server/utils/register-webhooks.d.ts +19 -0
- package/dist/runtime/server/utils/register-webhooks.js +5 -0
- package/dist/runtime/server/utils/unauthenticated-admin.d.ts +21 -0
- package/dist/runtime/server/utils/unauthenticated-admin.js +15 -0
- package/dist/runtime/server/utils/unauthenticated-storefront.d.ts +24 -0
- package/dist/runtime/server/utils/unauthenticated-storefront.js +21 -0
- package/dist/runtime/types.d.ts +141 -0
- package/dist/runtime/types.js +11 -0
- package/dist/types.d.mts +3 -0
- package/package.json +66 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<s-table-header v-bind="$attrs">
|
|
3
|
+
<slot />
|
|
4
|
+
</s-table-header>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
defineOptions({ name: "ShTableHeader", inheritAttrs: false });
|
|
9
|
+
defineProps({
|
|
10
|
+
listSlot: { type: String, required: false },
|
|
11
|
+
format: { type: String, required: false }
|
|
12
|
+
});
|
|
13
|
+
</script>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
listSlot?: string;
|
|
3
|
+
format?: string;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_8: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_8) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
clickDelegate?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_8: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
clickDelegate?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_8: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_8) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
fontVariantNumeric?: 'auto' | 'normal' | 'tabular-nums';
|
|
3
|
+
color?: 'base' | 'subdued';
|
|
4
|
+
tone?: 'info' | 'success' | 'warning' | 'critical' | 'auto' | 'neutral' | 'caution';
|
|
5
|
+
type?: 'strong' | 'generic' | 'address' | 'redundant';
|
|
6
|
+
dir?: '' | 'auto' | 'ltr' | 'rtl';
|
|
7
|
+
accessibilityVisibility?: 'visible' | 'hidden' | 'exclusive';
|
|
8
|
+
interestFor?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_8: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_8) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<s-text v-bind="$attrs">
|
|
3
|
+
<slot />
|
|
4
|
+
</s-text>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
defineOptions({ name: "ShText", inheritAttrs: false });
|
|
9
|
+
defineProps({
|
|
10
|
+
fontVariantNumeric: { type: String, required: false },
|
|
11
|
+
color: { type: String, required: false },
|
|
12
|
+
tone: { type: String, required: false },
|
|
13
|
+
type: { type: String, required: false },
|
|
14
|
+
dir: { type: String, required: false },
|
|
15
|
+
accessibilityVisibility: { type: String, required: false },
|
|
16
|
+
interestFor: { type: String, required: false }
|
|
17
|
+
});
|
|
18
|
+
</script>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
fontVariantNumeric?: 'auto' | 'normal' | 'tabular-nums';
|
|
3
|
+
color?: 'base' | 'subdued';
|
|
4
|
+
tone?: 'info' | 'success' | 'warning' | 'critical' | 'auto' | 'neutral' | 'caution';
|
|
5
|
+
type?: 'strong' | 'generic' | 'address' | 'redundant';
|
|
6
|
+
dir?: '' | 'auto' | 'ltr' | 'rtl';
|
|
7
|
+
accessibilityVisibility?: 'visible' | 'hidden' | 'exclusive';
|
|
8
|
+
interestFor?: string;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_8: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_8) => any;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
maxLength?: number;
|
|
3
|
+
minLength?: number;
|
|
4
|
+
rows?: number;
|
|
5
|
+
value?: string;
|
|
6
|
+
autocomplete?: string;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
details?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
id?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
};
|
|
19
|
+
declare var __VLS_8: {};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
default?: (props: typeof __VLS_8) => any;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<s-text-area v-bind="$attrs">
|
|
3
|
+
<slot />
|
|
4
|
+
</s-text-area>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
defineOptions({ name: "ShTextArea", inheritAttrs: false });
|
|
9
|
+
defineProps({
|
|
10
|
+
maxLength: { type: Number, required: false },
|
|
11
|
+
minLength: { type: Number, required: false },
|
|
12
|
+
rows: { type: Number, required: false },
|
|
13
|
+
value: { type: String, required: false },
|
|
14
|
+
autocomplete: { type: String, required: false },
|
|
15
|
+
defaultValue: { type: String, required: false },
|
|
16
|
+
details: { type: String, required: false },
|
|
17
|
+
error: { type: String, required: false },
|
|
18
|
+
label: { type: String, required: false },
|
|
19
|
+
labelAccessibilityVisibility: { type: String, required: false },
|
|
20
|
+
placeholder: { type: String, required: false },
|
|
21
|
+
readOnly: { type: Boolean, required: false },
|
|
22
|
+
required: { type: Boolean, required: false },
|
|
23
|
+
disabled: { type: Boolean, required: false },
|
|
24
|
+
id: { type: String, required: false },
|
|
25
|
+
name: { type: String, required: false }
|
|
26
|
+
});
|
|
27
|
+
</script>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
maxLength?: number;
|
|
3
|
+
minLength?: number;
|
|
4
|
+
rows?: number;
|
|
5
|
+
value?: string;
|
|
6
|
+
autocomplete?: string;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
details?: string;
|
|
9
|
+
error?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
id?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
};
|
|
19
|
+
declare var __VLS_8: {};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
default?: (props: typeof __VLS_8) => any;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
maxLength?: number;
|
|
4
|
+
minLength?: number;
|
|
5
|
+
prefix?: string;
|
|
6
|
+
suffix?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
autocomplete?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
details?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
id?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
};
|
|
21
|
+
declare var __VLS_8: {};
|
|
22
|
+
type __VLS_Slots = {} & {
|
|
23
|
+
default?: (props: typeof __VLS_8) => any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<s-text-field v-bind="$attrs">
|
|
3
|
+
<slot />
|
|
4
|
+
</s-text-field>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
defineOptions({ name: "ShTextField", inheritAttrs: false });
|
|
9
|
+
defineProps({
|
|
10
|
+
icon: { type: String, required: false },
|
|
11
|
+
maxLength: { type: Number, required: false },
|
|
12
|
+
minLength: { type: Number, required: false },
|
|
13
|
+
prefix: { type: String, required: false },
|
|
14
|
+
suffix: { type: String, required: false },
|
|
15
|
+
value: { type: String, required: false },
|
|
16
|
+
autocomplete: { type: String, required: false },
|
|
17
|
+
defaultValue: { type: String, required: false },
|
|
18
|
+
details: { type: String, required: false },
|
|
19
|
+
error: { type: String, required: false },
|
|
20
|
+
label: { type: String, required: false },
|
|
21
|
+
labelAccessibilityVisibility: { type: String, required: false },
|
|
22
|
+
placeholder: { type: String, required: false },
|
|
23
|
+
readOnly: { type: Boolean, required: false },
|
|
24
|
+
required: { type: Boolean, required: false },
|
|
25
|
+
disabled: { type: Boolean, required: false },
|
|
26
|
+
id: { type: String, required: false },
|
|
27
|
+
name: { type: String, required: false }
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
icon?: string;
|
|
3
|
+
maxLength?: number;
|
|
4
|
+
minLength?: number;
|
|
5
|
+
prefix?: string;
|
|
6
|
+
suffix?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
autocomplete?: string;
|
|
9
|
+
defaultValue?: string;
|
|
10
|
+
details?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
readOnly?: boolean;
|
|
16
|
+
required?: boolean;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
id?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
};
|
|
21
|
+
declare var __VLS_8: {};
|
|
22
|
+
type __VLS_Slots = {} & {
|
|
23
|
+
default?: (props: typeof __VLS_8) => any;
|
|
24
|
+
};
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src?: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
size?: 'small' | 'small-100' | 'small-200' | 'base' | 'large' | 'large-100';
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<s-thumbnail v-bind="$attrs">
|
|
3
|
+
<slot />
|
|
4
|
+
</s-thumbnail>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
defineOptions({ name: "ShThumbnail", inheritAttrs: false });
|
|
9
|
+
defineProps({
|
|
10
|
+
src: { type: String, required: false },
|
|
11
|
+
alt: { type: String, required: false },
|
|
12
|
+
size: { type: String, required: false }
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
src?: string;
|
|
3
|
+
alt?: string;
|
|
4
|
+
size?: 'small' | 'small-100' | 'small-200' | 'base' | 'large' | 'large-100';
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_8: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_8) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
autocomplete?: string;
|
|
3
|
+
maxLength?: number;
|
|
4
|
+
minLength?: number;
|
|
5
|
+
value?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
details?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
id?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
18
|
+
declare var __VLS_8: {};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_8) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<s-url-field v-bind="$attrs">
|
|
3
|
+
<slot />
|
|
4
|
+
</s-url-field>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup>
|
|
8
|
+
defineOptions({ name: "ShUrlField", inheritAttrs: false });
|
|
9
|
+
defineProps({
|
|
10
|
+
autocomplete: { type: String, required: false },
|
|
11
|
+
maxLength: { type: Number, required: false },
|
|
12
|
+
minLength: { type: Number, required: false },
|
|
13
|
+
value: { type: String, required: false },
|
|
14
|
+
defaultValue: { type: String, required: false },
|
|
15
|
+
details: { type: String, required: false },
|
|
16
|
+
error: { type: String, required: false },
|
|
17
|
+
label: { type: String, required: false },
|
|
18
|
+
labelAccessibilityVisibility: { type: String, required: false },
|
|
19
|
+
placeholder: { type: String, required: false },
|
|
20
|
+
readOnly: { type: Boolean, required: false },
|
|
21
|
+
required: { type: Boolean, required: false },
|
|
22
|
+
disabled: { type: Boolean, required: false },
|
|
23
|
+
id: { type: String, required: false },
|
|
24
|
+
name: { type: String, required: false }
|
|
25
|
+
});
|
|
26
|
+
</script>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
autocomplete?: string;
|
|
3
|
+
maxLength?: number;
|
|
4
|
+
minLength?: number;
|
|
5
|
+
value?: string;
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
details?: string;
|
|
8
|
+
error?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
labelAccessibilityVisibility?: 'visible' | 'exclusive';
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
id?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
18
|
+
declare var __VLS_8: {};
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
20
|
+
default?: (props: typeof __VLS_8) => any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ShopifyGlobal } from '@shopify/app-bridge-types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the `shopify` global variable to use App Bridge APIs
|
|
4
|
+
* such as `toast` and `resourcePicker`.
|
|
5
|
+
*
|
|
6
|
+
* @returns `shopify` variable or a Proxy that throws when incorrectly accessed in a server context
|
|
7
|
+
*/
|
|
8
|
+
export declare function useAppBridge(): ShopifyGlobal;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const serverProxy = new Proxy(
|
|
2
|
+
{},
|
|
3
|
+
{
|
|
4
|
+
get(_, prop) {
|
|
5
|
+
throw new Error(
|
|
6
|
+
`shopify.${String(prop)} can't be used in a server environment. You likely need to move this code into an event handler or onMounted.`
|
|
7
|
+
);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
export function useAppBridge() {
|
|
12
|
+
if (typeof window === "undefined") {
|
|
13
|
+
return serverProxy;
|
|
14
|
+
}
|
|
15
|
+
if (!window.shopify) {
|
|
16
|
+
throw new Error(
|
|
17
|
+
"The shopify global is not defined. This likely means the App Bridge script tag was not added correctly to this page"
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
return window.shopify;
|
|
21
|
+
}
|