@leaflink/stash 48.16.1 → 48.16.2
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/Accordion.js +1 -1
- package/dist/Accordion.js.map +1 -1
- package/dist/Accordion.vue.d.ts +8 -9
- package/dist/ActionsDropdown.js.map +1 -1
- package/dist/ActionsDropdown.vue.d.ts +7 -8
- package/dist/AddressSelect.js +42 -38
- package/dist/AddressSelect.js.map +1 -1
- package/dist/AddressSelect.vue.d.ts +10 -11
- package/dist/Alert.js.map +1 -1
- package/dist/Alert.vue.d.ts +6 -7
- package/dist/AppNavigationItem.js +2 -2
- package/dist/AppNavigationItem.js.map +1 -1
- package/dist/AppNavigationItem.vue.d.ts +7 -8
- package/dist/AppSidebar.js +42 -42
- package/dist/AppSidebar.js.map +1 -1
- package/dist/AppSidebar.vue.d.ts +8 -9
- package/dist/AppTopbar.js +16 -16
- package/dist/AppTopbar.js.map +1 -1
- package/dist/AppTopbar.vue.d.ts +8 -9
- package/dist/Avatar.js.map +1 -1
- package/dist/Avatar.vue.d.ts +7 -8
- package/dist/Backdrop.vue.d.ts +3 -5
- package/dist/Badge.js +1 -1
- package/dist/Badge.js.map +1 -1
- package/dist/Badge.vue.d.ts +7 -8
- package/dist/Box.vue.d.ts +6 -7
- package/dist/Box.vue_vue_type_script_setup_true_lang-69e5176b.js.map +1 -1
- package/dist/Button.js.map +1 -1
- package/dist/Button.vue.d.ts +7 -8
- package/dist/ButtonGroup.js +29 -29
- package/dist/ButtonGroup.js.map +1 -1
- package/dist/ButtonGroup.vue.d.ts +8 -9
- package/dist/Card.js.map +1 -1
- package/dist/Card.vue.d.ts +6 -7
- package/dist/CardContent.vue.d.ts +3 -5
- package/dist/CardFooter.vue.d.ts +3 -5
- package/dist/CardHeader.js.map +1 -1
- package/dist/CardHeader.vue.d.ts +3 -4
- package/dist/CardMedia.js +6 -6
- package/dist/CardMedia.js.map +1 -1
- package/dist/CardMedia.vue.d.ts +3 -4
- package/dist/Carousel.js +249 -249
- package/dist/Carousel.js.map +1 -1
- package/dist/Carousel.vue.d.ts +9 -9
- package/dist/Checkbox.js +27 -27
- package/dist/Checkbox.js.map +1 -1
- package/dist/Checkbox.vue.d.ts +11 -12
- package/dist/ChevronToggle.js +1 -1
- package/dist/ChevronToggle.vue.d.ts +8 -9
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js → ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js} +11 -11
- package/dist/{ChevronToggle.vue_vue_type_script_setup_true_lang-1591294c.js.map → ChevronToggle.vue_vue_type_script_setup_true_lang-fcdf0c19.js.map} +1 -1
- package/dist/Chip.js +30 -30
- package/dist/Chip.js.map +1 -1
- package/dist/Chip.vue.d.ts +9 -10
- package/dist/ConfirmationCodeInput.js +25 -25
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ConfirmationCodeInput.vue.d.ts +8 -9
- package/dist/ContextSwitcher.js +18 -18
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/ContextSwitcher.vue.d.ts +9 -10
- package/dist/Copy.js.map +1 -1
- package/dist/Copy.vue.d.ts +6 -7
- package/dist/CurrencyInput.js +93 -93
- package/dist/CurrencyInput.js.map +1 -1
- package/dist/CurrencyInput.vue.d.ts +10 -11
- package/dist/CustomRender.vue.d.ts +3 -15
- package/dist/DataView.js +97 -97
- package/dist/DataView.js.map +1 -1
- package/dist/DataView.vue.d.ts +9 -10
- package/dist/DataViewFilters.js +153 -150
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewFilters.vue.d.ts +9 -10
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DataViewSortButton.vue.d.ts +6 -7
- package/dist/DataViewToolbar.js +27 -27
- package/dist/DataViewToolbar.js.map +1 -1
- package/dist/DataViewToolbar.vue.d.ts +8 -9
- package/dist/DatePicker.js +738 -738
- package/dist/DatePicker.js.map +1 -1
- package/dist/DatePicker.vue.d.ts +11 -12
- package/dist/DescriptionList.js.map +1 -1
- package/dist/DescriptionList.vue.d.ts +6 -7
- package/dist/DescriptionListDetail.vue.d.ts +3 -5
- package/dist/DescriptionListGroup.vue.d.ts +3 -5
- package/dist/DescriptionListTerm.vue.d.ts +3 -5
- package/dist/Dialog.js +44 -44
- package/dist/Dialog.js.map +1 -1
- package/dist/Dialog.vue.d.ts +10 -11
- package/dist/Divider.vue.d.ts +3 -5
- package/dist/Dropdown.js +38 -38
- package/dist/Dropdown.js.map +1 -1
- package/dist/Dropdown.vue.d.ts +9 -10
- package/dist/EmptyState.js +20 -20
- package/dist/EmptyState.js.map +1 -1
- package/dist/EmptyState.vue.d.ts +6 -7
- package/dist/Expand.js +1 -1
- package/dist/Expand.vue.d.ts +8 -9
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js → Expand.vue_vue_type_script_setup_true_lang-0f236267.js} +19 -19
- package/dist/Expand.vue_vue_type_script_setup_true_lang-0f236267.js.map +1 -0
- package/dist/Field.vue.d.ts +6 -7
- package/dist/Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js.map +1 -1
- package/dist/FileUpload.js +65 -65
- package/dist/FileUpload.js.map +1 -1
- package/dist/FileUpload.vue.d.ts +10 -11
- package/dist/FilterChip.js +27 -27
- package/dist/FilterChip.js.map +1 -1
- package/dist/FilterChip.vue.d.ts +8 -9
- package/dist/FilterDrawerItem.js +26 -26
- package/dist/FilterDrawerItem.js.map +1 -1
- package/dist/FilterDrawerItem.vue.d.ts +5 -6
- package/dist/FilterDropdown.js +49 -49
- package/dist/FilterDropdown.js.map +1 -1
- package/dist/FilterDropdown.vue.d.ts +8 -9
- package/dist/FilterSelect.js +23 -23
- package/dist/FilterSelect.js.map +1 -1
- package/dist/FilterSelect.vue.d.ts +8 -9
- package/dist/Filters.js +112 -104
- package/dist/Filters.js.map +1 -1
- package/dist/Filters.vue.d.ts +2204 -65
- package/dist/HttpError.js +42 -42
- package/dist/HttpError.js.map +1 -1
- package/dist/HttpError.vue.d.ts +6 -7
- package/dist/Icon.js.map +1 -1
- package/dist/Icon.vue.d.ts +7 -8
- package/dist/IconLabel.js.map +1 -1
- package/dist/IconLabel.vue.d.ts +8 -9
- package/dist/Illustration.vue.d.ts +6 -7
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-e26c3841.js.map +1 -1
- package/dist/Image.js +47 -47
- package/dist/Image.js.map +1 -1
- package/dist/Image.vue.d.ts +6 -7
- package/dist/InlineEdit.js +34 -34
- package/dist/InlineEdit.js.map +1 -1
- package/dist/InlineEdit.vue.d.ts +9 -10
- package/dist/Input.js +35 -35
- package/dist/Input.js.map +1 -1
- package/dist/Input.vue.d.ts +13 -14
- package/dist/InputOptions.js +33 -33
- package/dist/InputOptions.js.map +1 -1
- package/dist/InputOptions.vue.d.ts +8 -9
- package/dist/IntegrationIcon.js.map +1 -1
- package/dist/IntegrationIcon.vue.d.ts +7 -8
- package/dist/Label.vue.d.ts +6 -7
- package/dist/Label.vue_vue_type_script_setup_true_lang-4b02087f.js.map +1 -1
- package/dist/LicenseChip.js.map +1 -1
- package/dist/LicenseChip.vue.d.ts +6 -7
- package/dist/ListItem.vue.d.ts +225 -95
- package/dist/ListItemCell.vue.d.ts +4 -16
- package/dist/ListView.js +1 -1
- package/dist/ListView.vue.d.ts +5072 -470
- package/dist/Loading.js +16 -16
- package/dist/Loading.js.map +1 -1
- package/dist/Loading.vue.d.ts +3 -5
- package/dist/Logo.js +1 -1
- package/dist/Logo.vue.d.ts +9 -10
- package/dist/Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js +196 -0
- package/dist/Logo.vue_vue_type_script_setup_true_lang-2a2597cb.js.map +1 -0
- package/dist/Menu.vue.d.ts +3 -5
- package/dist/MenuItem.vue.d.ts +3 -5
- package/dist/Metric.js.map +1 -1
- package/dist/Metric.vue.d.ts +6 -7
- package/dist/Modal.js +29 -29
- package/dist/Modal.js.map +1 -1
- package/dist/Modal.vue.d.ts +8 -9
- package/dist/Modals.js +8 -7
- package/dist/Modals.js.map +1 -1
- package/dist/Modals.vue.d.ts +3 -5
- package/dist/Module.js.map +1 -1
- package/dist/Module.vue.d.ts +7 -8
- package/dist/ModuleContent.vue.d.ts +3 -5
- package/dist/ModuleFooter.vue.d.ts +3 -5
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/ModuleHeader.vue.d.ts +6 -7
- package/dist/ObfuscateText.js +1 -1
- package/dist/ObfuscateText.js.map +1 -1
- package/dist/ObfuscateText.vue.d.ts +6 -7
- package/dist/PageContent.vue.d.ts +3 -5
- package/dist/PageHeader.js.map +1 -1
- package/dist/PageHeader.vue.d.ts +6 -7
- package/dist/PageNavigation.js +30 -27
- package/dist/PageNavigation.js.map +1 -1
- package/dist/PageNavigation.vue.d.ts +8 -9
- package/dist/Paginate.js +32 -32
- package/dist/Paginate.js.map +1 -1
- package/dist/Paginate.vue.d.ts +8 -9
- package/dist/PlaidLink.js +29 -29
- package/dist/PlaidLink.js.map +1 -1
- package/dist/PlaidLink.vue.d.ts +11 -12
- package/dist/QuickAction.js.map +1 -1
- package/dist/QuickAction.vue.d.ts +4 -5
- package/dist/Radio.vue.d.ts +20 -1
- package/dist/RadioGroup.js +123 -123
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioGroup.vue.d.ts +10 -11
- package/dist/RadioNew.js +102 -102
- package/dist/RadioNew.js.map +1 -1
- package/dist/RadioNew.vue.d.ts +10 -11
- package/dist/RangeInput.vue.d.ts +3 -5
- package/dist/SearchBar.js +36 -36
- package/dist/SearchBar.js.map +1 -1
- package/dist/SearchBar.vue.d.ts +9 -10
- package/dist/Select.js +792 -774
- package/dist/Select.js.map +1 -1
- package/dist/Select.vue.d.ts +14 -15
- package/dist/SelectStatus.js +27 -27
- package/dist/SelectStatus.js.map +1 -1
- package/dist/SelectStatus.vue.d.ts +12 -13
- package/dist/Skeleton.js.map +1 -1
- package/dist/Skeleton.vue.d.ts +7 -8
- package/dist/Step.js.map +1 -1
- package/dist/Step.vue.d.ts +7 -8
- package/dist/Stepper.js +19 -19
- package/dist/Stepper.js.map +1 -1
- package/dist/Stepper.vue.d.ts +9 -10
- package/dist/Switch.js +25 -25
- package/dist/Switch.js.map +1 -1
- package/dist/Switch.vue.d.ts +11 -12
- package/dist/Tab.js +2 -2
- package/dist/Tab.vue.d.ts +3 -4
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-69d1b046.js → Tab.vue_vue_type_script_setup_true_lang-9aa53203.js} +5 -3
- package/dist/Tab.vue_vue_type_script_setup_true_lang-9aa53203.js.map +1 -0
- package/dist/Table.js +3 -3
- package/dist/Table.js.map +1 -1
- package/dist/{Table.keys-cf93df19.js → Table.keys-83e4f09b.js} +11 -11
- package/dist/{Table.keys-cf93df19.js.map → Table.keys-83e4f09b.js.map} +1 -1
- package/dist/Table.vue.d.ts +6 -7
- package/dist/TableCell.js +1 -1
- package/dist/TableCell.js.map +1 -1
- package/dist/TableCell.vue.d.ts +6 -7
- package/dist/TableHeaderCell.js +12 -12
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderCell.vue.d.ts +6 -7
- package/dist/TableHeaderRow.js +21 -21
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableHeaderRow.vue.d.ts +8 -9
- package/dist/TableRow.js +42 -42
- package/dist/TableRow.js.map +1 -1
- package/dist/TableRow.vue.d.ts +8 -9
- package/dist/Tabs.js +2 -2
- package/dist/Tabs.vue.d.ts +8 -9
- package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js → Tabs.vue_used_vue_type_style_index_0_lang.module-3aa36673.js} +37 -37
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-3aa36673.js.map +1 -0
- package/dist/TextEditor.js +565 -565
- package/dist/TextEditor.js.map +1 -1
- package/dist/TextEditor.vue.d.ts +12 -13
- package/dist/Textarea.js +28 -28
- package/dist/Textarea.js.map +1 -1
- package/dist/Textarea.vue.d.ts +10 -11
- package/dist/Timeline.js.map +1 -1
- package/dist/Timeline.vue.d.ts +6 -7
- package/dist/TimelineItem.js +21 -21
- package/dist/TimelineItem.js.map +1 -1
- package/dist/TimelineItem.vue.d.ts +13 -6
- package/dist/Toast.js +134 -134
- package/dist/Toast.js.map +1 -1
- package/dist/Toast.vue.d.ts +6 -7
- package/dist/Toasts.vue.d.ts +3 -5
- package/dist/components.css +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tailwind-base.js.map +1 -1
- package/dist/usePlaidLink.d.ts +1 -6
- package/dist/useScriptTag.d.ts +3 -8
- package/dist/useStepper.d.ts +7 -2
- package/package.json +1 -1
- package/tailwind-base.ts +13 -6
- package/dist/Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js.map +0 -1
- package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js +0 -196
- package/dist/Logo.vue_vue_type_script_setup_true_lang-d7da48a0.js.map +0 -1
- package/dist/Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map +0 -1
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js.map +0 -1
package/dist/PlaidLink.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaidLink.js","sources":["../src/components/PlaidLink/PlaidLink.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import logger from '@leaflink/snitch';\n import { computed, ref } from 'vue';\n\n import { LinkTokenResponse, Plaid } from '../../../types/plaid';\n import usePlaidLink from '../../composables/usePlaidLink/usePlaidLink';\n\n export interface PlaidLinkProps {\n /**\n * @deprecated Plaid does not support other URLs for loading its SDK\n * Plaid initialization script url to be used\n */\n initScriptUrl?: string;\n\n /**\n * Key to be used in session storage for OAuth flow\n */\n storageKey?: string;\n\n /**\n * Url to be used to redirect the user from the OAuth flow\n */\n returnTo?: string;\n\n /**\n * Plaid link token\n */\n token?: string;\n\n /**\n * Plaid environment to connect\n */\n env?: Plaid.Environment;\n\n /**\n * Function that returns a link token object to be used with Plaid.\n * `link_token` takes precedence over `token` if informed.\n */\n createToken?: () => Promise<LinkTokenResponse>;\n }\n\n const props = withDefaults(defineProps<PlaidLinkProps>(), {\n initScriptUrl: 'https://cdn.plaid.com/link/v2/stable/link-initialize.js',\n storageKey: undefined,\n returnTo: window.location.href,\n env: 'sandbox',\n token: undefined,\n createToken: undefined,\n });\n\n const internalStorageKey = computed(() => {\n if (props.storageKey) {\n return props.storageKey;\n }\n\n // returns up to the last 3 parts of the host. e.g. for `subdomain.my.domain.com` it will return `my.domain.com`\n const host = window.location.host.split('.').splice(-3).join('.');\n\n return `${host}-plaid`;\n });\n\n const emit
|
|
1
|
+
{"version":3,"file":"PlaidLink.js","sources":["../src/components/PlaidLink/PlaidLink.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import logger from '@leaflink/snitch';\n import { computed, ref } from 'vue';\n\n import { LinkTokenResponse, Plaid } from '../../../types/plaid';\n import usePlaidLink from '../../composables/usePlaidLink/usePlaidLink';\n\n export interface PlaidLinkProps {\n /**\n * @deprecated Plaid does not support other URLs for loading its SDK\n * Plaid initialization script url to be used\n */\n initScriptUrl?: string;\n\n /**\n * Key to be used in session storage for OAuth flow\n */\n storageKey?: string;\n\n /**\n * Url to be used to redirect the user from the OAuth flow\n */\n returnTo?: string;\n\n /**\n * Plaid link token\n */\n token?: string;\n\n /**\n * Plaid environment to connect\n */\n env?: Plaid.Environment;\n\n /**\n * Function that returns a link token object to be used with Plaid.\n * `link_token` takes precedence over `token` if informed.\n */\n createToken?: () => Promise<LinkTokenResponse>;\n }\n\n const props = withDefaults(defineProps<PlaidLinkProps>(), {\n initScriptUrl: 'https://cdn.plaid.com/link/v2/stable/link-initialize.js',\n storageKey: undefined,\n returnTo: window.location.href,\n env: 'sandbox',\n token: undefined,\n createToken: undefined,\n });\n\n const internalStorageKey = computed(() => {\n if (props.storageKey) {\n return props.storageKey;\n }\n\n // returns up to the last 3 parts of the host. e.g. for `subdomain.my.domain.com` it will return `my.domain.com`\n const host = window.location.host.split('.').splice(-3).join('.');\n\n return `${host}-plaid`;\n });\n\n const emit = defineEmits<{\n /**\n * Emitted whenever the exit event contains errors\n */\n (e: 'error', error: Plaid.Error | null | Error, metadata?: Plaid.OnExitMetaData): void;\n /**\n * Emitted whenever the user successfully links an item\n */\n (e: 'success', public_token: string, metadata: Plaid.OnSuccessMetaData): void;\n /**\n * Emitted whenever the user exits the Link flow\n */\n (e: 'exit', metadata: Plaid.OnExitMetaData): void;\n /**\n * Emitted when the Link is ready to be opened\n */\n (e: 'load'): void;\n /**\n * Emitted at specific points during the Link flow\n */\n (e: 'event', eventName: Plaid.EventName, metadata: Plaid.OnEventMetaData): void;\n }>();\n\n const isPlaidModalOpen = ref(false);\n\n const onExit: Plaid.OnExit = (error: Plaid.Error | null, metadata: Plaid.OnExitMetaData) => {\n isPlaidModalOpen.value = false;\n\n if (error) {\n logger.error(new Error('Plaid: Error trying to link an account'), {\n tags: { plaid: true },\n extra: { PlaidError: error },\n });\n emit('error', error, metadata);\n }\n\n sessionStorage.removeItem(internalStorageKey.value);\n\n emit('exit', metadata);\n };\n\n const onSuccess: Plaid.OnSuccess = (public_token: string, metadata: Plaid.OnSuccessMetaData) => {\n isPlaidModalOpen.value = false;\n\n sessionStorage.removeItem(internalStorageKey.value);\n\n emit('success', public_token, metadata);\n };\n\n const onLoad: Plaid.OnLoad = (...args) => emit('load', ...args);\n\n const onEvent: Plaid.OnEvent = (...args) => emit('event', ...args);\n\n const plaidLinkOptions = ref<Plaid.CreateConfig>({\n env: props.env,\n onSuccess,\n onEvent,\n onLoad,\n onExit,\n });\n\n const { open: openPlaidLink } = usePlaidLink(plaidLinkOptions);\n\n async function handleClick() {\n if (isPlaidModalOpen.value === true) {\n return;\n }\n\n isPlaidModalOpen.value = true;\n\n if (typeof props.createToken === 'function') {\n try {\n const { link_token } = await props.createToken();\n\n plaidLinkOptions.value.token = link_token;\n } catch (err) {\n const error = new Error('Plaid: Error trying to invoke createToken');\n\n logger.error(error, {\n tags: { plaid: true },\n extra: { error: err },\n });\n\n emit('error', error);\n }\n } else if (props.token) {\n plaidLinkOptions.value.token = props.token;\n }\n\n if (!plaidLinkOptions.value.token) {\n const error = new Error('Plaid: link token not found');\n\n logger.error(error, { tags: { plaid: true } });\n emit('error', error);\n\n isPlaidModalOpen.value = false;\n\n return;\n }\n\n sessionStorage.setItem(\n internalStorageKey.value,\n JSON.stringify({ token: plaidLinkOptions.value.token, returnTo: props.returnTo, env: props.env }),\n );\n\n openPlaidLink();\n }\n\n defineExpose({\n handleClick,\n });\n</script>\n\n<template>\n <span data-test=\"stash-plaid-link\" @click=\"handleClick\">\n <!-- @slot Default slot to trigger Plaid's modal -->\n <slot :open=\"isPlaidModalOpen\"></slot>\n </span>\n</template>\n"],"names":["props","__props","internalStorageKey","computed","emit","__emit","isPlaidModalOpen","ref","onExit","error","metadata","logger","onSuccess","public_token","onLoad","args","onEvent","plaidLinkOptions","openPlaidLink","usePlaidLink","handleClick","link_token","err","__expose"],"mappings":";;;;;;;;;;;;;;;;AAyCE,UAAMA,IAAQC,GASRC,IAAqBC,EAAS,MAC9BH,EAAM,aACDA,EAAM,aAMR,GAFM,OAAO,SAAS,KAAK,MAAM,GAAG,EAAE,OAAO,EAAE,EAAE,KAAK,GAAG,SAGjE,GAEKI,IAAOC,GAuBPC,IAAmBC,EAAI,EAAK,GAE5BC,IAAuB,CAACC,GAA2BC,MAAmC;AAC1F,MAAAJ,EAAiB,QAAQ,IAErBG,MACFE,EAAO,MAAM,IAAI,MAAM,wCAAwC,GAAG;AAAA,QAChE,MAAM,EAAE,OAAO,GAAK;AAAA,QACpB,OAAO,EAAE,YAAYF,EAAM;AAAA,MAAA,CAC5B,GACIL,EAAA,SAASK,GAAOC,CAAQ,IAGhB,eAAA,WAAWR,EAAmB,KAAK,GAElDE,EAAK,QAAQM,CAAQ;AAAA,IAAA,GAGjBE,IAA6B,CAACC,GAAsBH,MAAsC;AAC9F,MAAAJ,EAAiB,QAAQ,IAEV,eAAA,WAAWJ,EAAmB,KAAK,GAE7CE,EAAA,WAAWS,GAAcH,CAAQ;AAAA,IAAA,GAGlCI,IAAuB,IAAIC,MAASX,EAAK,QAAQ,GAAGW,CAAI,GAExDC,IAAyB,IAAID,MAASX,EAAK,SAAS,GAAGW,CAAI,GAE3DE,IAAmBV,EAAwB;AAAA,MAC/C,KAAKP,EAAM;AAAA,MACX,WAAAY;AAAA,MACA,SAAAI;AAAA,MACA,QAAAF;AAAA,MACA,QAAAN;AAAA,IAAA,CACD,GAEK,EAAE,MAAMU,EAAc,IAAIC,EAAaF,CAAgB;AAE7D,mBAAeG,IAAc;AACvB,UAAAd,EAAiB,UAAU,IAM3B;AAAA,YAFJA,EAAiB,QAAQ,IAErB,OAAON,EAAM,eAAgB;AAC3B,cAAA;AACF,kBAAM,EAAE,YAAAqB,EAAe,IAAA,MAAMrB,EAAM,YAAY;AAE/C,YAAAiB,EAAiB,MAAM,QAAQI;AAAA,mBACxBC;AACD,kBAAAb,IAAQ,IAAI,MAAM,2CAA2C;AAEnE,YAAAE,EAAO,MAAMF,GAAO;AAAA,cAClB,MAAM,EAAE,OAAO,GAAK;AAAA,cACpB,OAAO,EAAE,OAAOa,EAAI;AAAA,YAAA,CACrB,GAEDlB,EAAK,SAASK,CAAK;AAAA,UACrB;AAAA;AACF,UAAWT,EAAM,UACEiB,EAAA,MAAM,QAAQjB,EAAM;AAGnC,YAAA,CAACiB,EAAiB,MAAM,OAAO;AAC3B,gBAAAR,IAAQ,IAAI,MAAM,6BAA6B;AAE9C,UAAAE,EAAA,MAAMF,GAAO,EAAE,MAAM,EAAE,OAAO,MAAQ,GAC7CL,EAAK,SAASK,CAAK,GAEnBH,EAAiB,QAAQ;AAEzB;AAAA;AAGa,uBAAA;AAAA,UACbJ,EAAmB;AAAA,UACnB,KAAK,UAAU,EAAE,OAAOe,EAAiB,MAAM,OAAO,UAAUjB,EAAM,UAAU,KAAKA,EAAM,KAAK;AAAA,QAAA,GAGpFkB;;IAChB;AAEa,WAAAK,EAAA;AAAA,MACX,aAAAH;AAAA,IAAA,CACD;;;;;;;;"}
|
package/dist/PlaidLink.vue.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
|
2
|
-
import { ComponentCustomProps } from 'vue';
|
|
3
1
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
4
3
|
import { DefineComponent } from 'vue';
|
|
5
4
|
import { ExtractPropTypes } from 'vue';
|
|
6
5
|
import { Plaid } from 'plaid-link';
|
|
7
6
|
import { PropType } from 'vue';
|
|
8
|
-
import {
|
|
7
|
+
import { PublicProps } from 'vue';
|
|
9
8
|
|
|
10
9
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
10
|
|
|
@@ -34,42 +33,42 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
34
33
|
};
|
|
35
34
|
};
|
|
36
35
|
|
|
37
|
-
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaidLinkProps>, {
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaidLinkProps>, {
|
|
38
37
|
initScriptUrl: string;
|
|
39
38
|
storageKey: undefined;
|
|
40
39
|
returnTo: string;
|
|
41
40
|
env: string;
|
|
42
41
|
token: undefined;
|
|
43
42
|
createToken: undefined;
|
|
44
|
-
}
|
|
43
|
+
}>>, {
|
|
45
44
|
handleClick: typeof handleClick;
|
|
46
|
-
},
|
|
45
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
47
46
|
error: (error: Error | Plaid.Error | null, metadata?: Plaid.OnExitMetaData | undefined) => void;
|
|
48
47
|
success: (public_token: string, metadata: Plaid.OnSuccessMetaData) => void;
|
|
49
48
|
exit: (metadata: Plaid.OnExitMetaData) => void;
|
|
50
49
|
load: () => void;
|
|
51
50
|
event: (eventName: Plaid.EventName, metadata: Plaid.OnEventMetaData) => void;
|
|
52
|
-
}, string,
|
|
51
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaidLinkProps>, {
|
|
53
52
|
initScriptUrl: string;
|
|
54
53
|
storageKey: undefined;
|
|
55
54
|
returnTo: string;
|
|
56
55
|
env: string;
|
|
57
56
|
token: undefined;
|
|
58
57
|
createToken: undefined;
|
|
59
|
-
}>>> & {
|
|
60
|
-
onLoad?: (() => any) | undefined;
|
|
58
|
+
}>>> & Readonly<{
|
|
61
59
|
onError?: ((error: Error | Plaid.Error | null, metadata?: Plaid.OnExitMetaData | undefined) => any) | undefined;
|
|
60
|
+
onLoad?: (() => any) | undefined;
|
|
61
|
+
onSuccess?: ((public_token: string, metadata: Plaid.OnSuccessMetaData) => any) | undefined;
|
|
62
62
|
onEvent?: ((eventName: Plaid.EventName, metadata: Plaid.OnEventMetaData) => any) | undefined;
|
|
63
63
|
onExit?: ((metadata: Plaid.OnExitMetaData) => any) | undefined;
|
|
64
|
-
|
|
65
|
-
}, {
|
|
64
|
+
}>, {
|
|
66
65
|
initScriptUrl: string;
|
|
67
66
|
storageKey: string;
|
|
68
67
|
returnTo: string;
|
|
69
68
|
token: string;
|
|
70
69
|
env: Plaid.Environment;
|
|
71
70
|
createToken: () => Promise<LinkTokenResponse>;
|
|
72
|
-
}, {}>, {
|
|
71
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
73
72
|
default?(_: {
|
|
74
73
|
open: boolean;
|
|
75
74
|
}): any;
|
package/dist/QuickAction.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuickAction.js","sources":["../src/components/QuickAction/QuickAction.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import {computed, useCssModule} from 'vue';\n import { type RouteLocationRaw } from 'vue-router';\n\n import { IconName } from '../Icon/Icon.types';\n import Icon from '../Icon/Icon.vue';\n\n export interface QuickActionProps {\n /**\n * The title prop will show the first line of text\n */\n title: string;\n\n /**\n * The subtitle prop will show the second line of text\n */\n subtitle: string;\n\n /**\n * The `to` prop for vue-router's `RouterLink` component\n */\n to?: RouteLocationRaw;\n\n /**\n * If defined, the quick action will render as an `<a />` tag.\n */\n href?: string;\n\n /**\n * Icon to render on the left side\n */\n icon: IconName;\n }\n\n const props = defineProps<QuickActionProps>();\n const classes = useCssModule();\n\n const is = computed(() => {\n if (props.to) {\n return 'router-link';\n }\n\n if (props.href) {\n return 'a';\n }\n\n return 'div';\n });\n\n const linkAttrs = computed(() => {\n if (props.to) {\n return {\n to: props.to,\n };\n }\n\n if (props.href) {\n return {\n href: props.href
|
|
1
|
+
{"version":3,"file":"QuickAction.js","sources":["../src/components/QuickAction/QuickAction.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, useCssModule } from 'vue';\n import { type RouteLocationRaw } from 'vue-router';\n\n import { IconName } from '../Icon/Icon.types';\n import Icon from '../Icon/Icon.vue';\n\n export interface QuickActionProps {\n /**\n * The title prop will show the first line of text\n */\n title: string;\n\n /**\n * The subtitle prop will show the second line of text\n */\n subtitle: string;\n\n /**\n * The `to` prop for vue-router's `RouterLink` component\n */\n to?: RouteLocationRaw;\n\n /**\n * If defined, the quick action will render as an `<a />` tag.\n */\n href?: string;\n\n /**\n * Icon to render on the left side\n */\n icon: IconName;\n }\n\n const props = defineProps<QuickActionProps>();\n const classes = useCssModule();\n\n const is = computed(() => {\n if (props.to) {\n return 'router-link';\n }\n\n if (props.href) {\n return 'a';\n }\n\n return 'div';\n });\n\n const linkAttrs = computed(() => {\n if (props.to) {\n return {\n to: props.to,\n };\n }\n\n if (props.href) {\n return {\n href: props.href,\n };\n }\n\n return {};\n });\n</script>\n\n<template>\n <component\n :is=\"is\"\n v-bind=\"linkAttrs\"\n class=\"stash-quick-action tw-rounded tw-p-3 tw-shadow\"\n :class=\"classes.root\"\n data-test=\"stash-quick-action\"\n >\n <div class=\"tw-flex tw-items-center tw-gap-3\">\n <div class=\"tw-flex tw-items-center tw-justify-center tw-rounded tw-bg-blue-100 tw-p-3\">\n <Icon :name=\"props.icon\" class=\"tw-text-blue-500\" />\n </div>\n <div class=\"tw-flex-1\">\n <h4 class=\"tw-text-blue-500\">{{ props.title }}</h4>\n <p class=\"tw-text-xs tw-font-normal tw-text-ice-700 lg:tw-mb-0\">\n {{ props.subtitle }}\n </p>\n </div>\n <Icon name=\"arrow-right\" class=\"tw-text-blue-500\" />\n </div>\n </component>\n</template>\n\n<style module>\n .root {\n background-color: #fff;\n border: 1px solid transparent; /* it prevents layout size shifting of extra height/width when hover */\n cursor: pointer;\n display: inline-block;\n }\n\n .root:hover,\n .root:active,\n .root:focus {\n border: 1px solid var(--color-blue-500);\n text-decoration: none;\n }\n</style>\n"],"names":["props","__props","classes","useCssModule","is","computed","linkAttrs"],"mappings":";;;;;;;;;;;;;;;;AAkCE,UAAMA,IAAQC,GACRC,IAAUC,KAEVC,IAAKC,EAAS,MACdL,EAAM,KACD,gBAGLA,EAAM,OACD,MAGF,KACR,GAEKM,IAAYD,EAAS,MACrBL,EAAM,KACD;AAAA,MACL,IAAIA,EAAM;AAAA,IAAA,IAIVA,EAAM,OACD;AAAA,MACL,MAAMA,EAAM;AAAA,IAAA,IAIT,EACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { AllowedComponentProps } from 'vue';
|
|
2
|
-
import { ComponentCustomProps } from 'vue';
|
|
3
1
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
4
3
|
import { DefineComponent } from 'vue';
|
|
5
4
|
import { ExtractPropTypes } from 'vue';
|
|
6
5
|
import { PropType } from 'vue';
|
|
6
|
+
import { PublicProps } from 'vue';
|
|
7
7
|
import { RouteLocationRaw } from 'vue-router';
|
|
8
|
-
import { VNodeProps } from 'vue';
|
|
9
8
|
|
|
10
9
|
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
10
|
|
|
@@ -18,10 +17,10 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
|
|
21
|
-
declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<QuickActionProps
|
|
20
|
+
declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<QuickActionProps>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<QuickActionProps>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
22
21
|
export default _default;
|
|
23
22
|
|
|
24
|
-
declare type IconName = typeof iconNames[number];
|
|
23
|
+
declare type IconName = (typeof iconNames)[number];
|
|
25
24
|
|
|
26
25
|
declare const iconNames: readonly ["action-dots", "activity", "alert-bell", "archive", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "badge-discount", "badge-seller-elite", "badge-seller-power", "badge-seller-verified", "book-customer", "building-office", "bulk-add", "calendar-reschedule", "calendar", "caret-down", "caret-up", "change-log", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle-check", "circle-close", "circle-dollar", "circle-info", "circle-partial", "circle-percent", "circle-question-mark", "circle-status", "circle-warning", "clipboard-checkmark", "clipboard-inventory", "close", "combine", "compass", "contact", "contract", "copy", "credit-card", "credit-profile", "dashboard", "document-accept", "document-invoice", "document-recieved", "document-sent", "document-view", "document", "dolly", "download", "edit", "ellipsis", "envelope-open", "envelope", "equals", "export", "figma", "file-csv", "file", "filter-funnel", "filter-line", "flag", "folder", "folder-bar-graph", "folder-orders", "font-bold", "font-clear-format", "font-italic", "font-underline", "gear", "github", "globe", "graph-bar-chart", "graph-line-chart", "graph-pie-chart", "hazard", "hazard-outline", "headset-agent", "headset-mic", "heart-filled", "heart-outline", "help-question-mark", "hide", "history", "image", "keyboard-return", "license-approved", "license-certificate", "lightbulb", "link-add", "link-unlink", "link", "list-bulleted", "list-items", "list-numbered", "loading-big", "loading-empty", "loading-small", "location", "lock-unlock", "lock", "logo-facebook", "logo-instagram", "logo-linkedin", "logo-ll", "logo-metrc", "logo-plaid", "logo-x", "logo-youtube", "logout", "medical", "megaphone-sound", "megaphone", "menu", "message-dispute", "message-reply", "message", "minus", "mj-leaf", "money", "note-add", "note", "open-in-new", "paperclip", "paper-plane", "performance", "phone", "plus", "preview", "print", "product-menu-manage", "product-menu-search", "product-menu", "queue-add", "queue", "recent", "refresh", "register", "reply", "report-download", "sample", "save", "scale-law", "scale-weight", "search", "seed-cycle", "share", "shop-bag-browse", "shop-bag-reorder", "shop-bag", "shop-basket", "shop-cart-add", "shop-cart", "show", "sign-dollar", "sign-percent", "sort", "split", "star-filled", "star-outline", "storefront", "submit", "swap-horizontal", "swap-vertical", "tag-star", "tag", "test-results", "ticket-star", "ticket", "tool-dropper", "tool-wrench", "transfer", "trashcan", "truck", "upload", "user-add", "user-admin", "user-check", "user", "view-card", "view-detailed", "view-list", "warehouse", "working"];
|
|
27
26
|
|
package/dist/Radio.vue.d.ts
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { PublicProps } from 'vue';
|
|
5
|
+
|
|
6
|
+
declare const _default: DefineComponent<any, {
|
|
7
|
+
classes: Record<string, string>;
|
|
8
|
+
}, {}, {
|
|
9
|
+
internalValue: {
|
|
10
|
+
get(): any;
|
|
11
|
+
set(value: any): void;
|
|
12
|
+
};
|
|
13
|
+
}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "update:checked"[], "update:checked", PublicProps, Readonly<any> & Readonly<{
|
|
14
|
+
"onUpdate:checked"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
label: string;
|
|
17
|
+
hasError: boolean;
|
|
18
|
+
modelValue: string | number | null;
|
|
19
|
+
checked: string | number;
|
|
20
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2
21
|
export default _default;
|
|
3
22
|
|
|
4
23
|
export { }
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, inject as k, useCssModule as V, openBlock as
|
|
1
|
+
import { defineComponent as $, inject as k, useCssModule as V, openBlock as l, createElementBlock as n, normalizeClass as p, unref as e, Fragment as B, renderList as R, createElementVNode as i, toDisplayString as h, provide as C, computed as v, createBlock as I, withCtx as M, renderSlot as T, resolveDynamicComponent as G } from "vue";
|
|
2
2
|
import E from "lodash-es/uniqueId";
|
|
3
3
|
import { _ as O } from "./Field.vue_vue_type_script_setup_true_lang-e1e4ff03.js";
|
|
4
4
|
import { R as y } from "./RadioGroup.keys-974818d6.js";
|
|
@@ -9,31 +9,31 @@ import "lodash-es/get";
|
|
|
9
9
|
const W = ["id", "name", "value", "checked", "disabled"], j = ["for"], q = /* @__PURE__ */ $({
|
|
10
10
|
__name: "VariantButton",
|
|
11
11
|
setup(u) {
|
|
12
|
-
const
|
|
13
|
-
if (!
|
|
12
|
+
const r = k(y.key);
|
|
13
|
+
if (!r)
|
|
14
14
|
throw new Error("VariantButton must be used with a RadioGroup instance.");
|
|
15
|
-
const { name:
|
|
16
|
-
return (g,
|
|
17
|
-
class:
|
|
15
|
+
const { name: s, disabled: a, fullWidth: f, modelValue: d, options: m, update: o } = r, c = V();
|
|
16
|
+
return (g, _) => (l(), n("div", {
|
|
17
|
+
class: p(["tw-flex", e(c).root])
|
|
18
18
|
}, [
|
|
19
|
-
(
|
|
20
|
-
key: `${e(
|
|
21
|
-
class:
|
|
19
|
+
(l(!0), n(B, null, R(e(m), (t) => (l(), n("div", {
|
|
20
|
+
key: `${e(s)}-${t.id}`,
|
|
21
|
+
class: p([{ "tw-w-full": e(f) }])
|
|
22
22
|
}, [
|
|
23
|
-
|
|
24
|
-
id: `${e(
|
|
23
|
+
i("input", {
|
|
24
|
+
id: `${e(s)}-${t.id}`,
|
|
25
25
|
class: "tw-sr-only",
|
|
26
26
|
type: "radio",
|
|
27
|
-
name: e(
|
|
28
|
-
value:
|
|
29
|
-
checked: e(
|
|
30
|
-
disabled: e(
|
|
31
|
-
onInput:
|
|
32
|
-
(...b) => e(
|
|
27
|
+
name: e(s),
|
|
28
|
+
value: t.value,
|
|
29
|
+
checked: e(d) === t.value,
|
|
30
|
+
disabled: e(a) || t.disabled,
|
|
31
|
+
onInput: _[0] || (_[0] = //@ts-ignore
|
|
32
|
+
(...b) => e(o) && e(o)(...b))
|
|
33
33
|
}, null, 40, W),
|
|
34
|
-
|
|
35
|
-
for: `${e(
|
|
36
|
-
}, h(
|
|
34
|
+
i("label", {
|
|
35
|
+
for: `${e(s)}-${t.id}`
|
|
36
|
+
}, h(t.text), 9, j)
|
|
37
37
|
], 2))), 128))
|
|
38
38
|
], 2));
|
|
39
39
|
}
|
|
@@ -44,31 +44,31 @@ const W = ["id", "name", "value", "checked", "disabled"], j = ["for"], q = /* @_
|
|
|
44
44
|
}, N = /* @__PURE__ */ x(q, [["__cssModules", L]]), z = ["id", "name", "value", "checked", "disabled"], A = ["for"], F = /* @__PURE__ */ $({
|
|
45
45
|
__name: "VariantChip",
|
|
46
46
|
setup(u) {
|
|
47
|
-
const
|
|
48
|
-
if (!
|
|
47
|
+
const r = k(y.key);
|
|
48
|
+
if (!r)
|
|
49
49
|
throw new Error("VariantChip must be used with a RadioGroup instance.");
|
|
50
|
-
const { name:
|
|
51
|
-
return (g,
|
|
52
|
-
class:
|
|
50
|
+
const { name: s, disabled: a, fullWidth: f, modelValue: d, options: m, update: o } = r, c = V();
|
|
51
|
+
return (g, _) => (l(), n("div", {
|
|
52
|
+
class: p(["tw-my-1.5 tw-flex tw-flex-wrap", e(c).root])
|
|
53
53
|
}, [
|
|
54
|
-
(
|
|
55
|
-
key: `${e(
|
|
56
|
-
class:
|
|
54
|
+
(l(!0), n(B, null, R(e(m), (t) => (l(), n("div", {
|
|
55
|
+
key: `${e(s)}-${t.id}`,
|
|
56
|
+
class: p([{ "tw-w-full": e(f) }])
|
|
57
57
|
}, [
|
|
58
|
-
|
|
59
|
-
id: `${e(
|
|
58
|
+
i("input", {
|
|
59
|
+
id: `${e(s)}-${t.id}`,
|
|
60
60
|
class: "tw-sr-only",
|
|
61
61
|
type: "radio",
|
|
62
|
-
name: e(
|
|
63
|
-
value:
|
|
64
|
-
checked: e(
|
|
65
|
-
disabled: e(
|
|
66
|
-
onInput:
|
|
67
|
-
(...b) => e(
|
|
62
|
+
name: e(s),
|
|
63
|
+
value: t.value,
|
|
64
|
+
checked: e(d) === t.value,
|
|
65
|
+
disabled: e(a) || t.disabled,
|
|
66
|
+
onInput: _[0] || (_[0] = //@ts-ignore
|
|
67
|
+
(...b) => e(o) && e(o)(...b))
|
|
68
68
|
}, null, 40, z),
|
|
69
|
-
|
|
70
|
-
for: `${e(
|
|
71
|
-
}, h(
|
|
69
|
+
i("label", {
|
|
70
|
+
for: `${e(s)}-${t.id}`
|
|
71
|
+
}, h(t.text), 9, A)
|
|
72
72
|
], 2))), 128))
|
|
73
73
|
], 2));
|
|
74
74
|
}
|
|
@@ -79,30 +79,30 @@ const W = ["id", "name", "value", "checked", "disabled"], j = ["for"], q = /* @_
|
|
|
79
79
|
}, H = /* @__PURE__ */ x(F, [["__cssModules", U]]), K = ["id", "name", "value", "checked", "disabled"], Q = ["for"], X = /* @__PURE__ */ $({
|
|
80
80
|
__name: "VariantRadio",
|
|
81
81
|
setup(u) {
|
|
82
|
-
const
|
|
83
|
-
if (!
|
|
82
|
+
const r = k(y.key);
|
|
83
|
+
if (!r)
|
|
84
84
|
throw new Error("VariantRadio must be used with a RadioGroup instance.");
|
|
85
|
-
const { name:
|
|
86
|
-
return (g,
|
|
87
|
-
class:
|
|
85
|
+
const { name: s, disabled: a, fullWidth: f, modelValue: d, options: m, update: o } = r, c = V();
|
|
86
|
+
return (g, _) => (l(), n("div", {
|
|
87
|
+
class: p(["tw-flex tw-flex-wrap", e(c).root])
|
|
88
88
|
}, [
|
|
89
|
-
(
|
|
90
|
-
key: `${e(
|
|
91
|
-
class:
|
|
89
|
+
(l(!0), n(B, null, R(e(m), (t) => (l(), n("div", {
|
|
90
|
+
key: `${e(s)}-${t.id}`,
|
|
91
|
+
class: p([{ "tw-w-full": e(f) }])
|
|
92
92
|
}, [
|
|
93
|
-
|
|
94
|
-
id: `${e(
|
|
93
|
+
i("input", {
|
|
94
|
+
id: `${e(s)}-${t.id}`,
|
|
95
95
|
type: "radio",
|
|
96
|
-
name: e(
|
|
97
|
-
value:
|
|
98
|
-
checked: e(
|
|
99
|
-
disabled: e(
|
|
100
|
-
onInput:
|
|
101
|
-
(...b) => e(
|
|
96
|
+
name: e(s),
|
|
97
|
+
value: t.value,
|
|
98
|
+
checked: e(d) === t.value,
|
|
99
|
+
disabled: e(a) || t.disabled,
|
|
100
|
+
onInput: _[0] || (_[0] = //@ts-ignore
|
|
101
|
+
(...b) => e(o) && e(o)(...b))
|
|
102
102
|
}, null, 40, K),
|
|
103
|
-
|
|
104
|
-
for: `${e(
|
|
105
|
-
}, h(
|
|
103
|
+
i("label", {
|
|
104
|
+
for: `${e(s)}-${t.id}`
|
|
105
|
+
}, h(t.text), 9, Q)
|
|
106
106
|
], 2))), 128))
|
|
107
107
|
], 2));
|
|
108
108
|
}
|
|
@@ -110,56 +110,56 @@ const W = ["id", "name", "value", "checked", "disabled"], j = ["for"], q = /* @_
|
|
|
110
110
|
root: Y
|
|
111
111
|
}, ee = {
|
|
112
112
|
$style: Z
|
|
113
|
-
}, te = /* @__PURE__ */ x(X, [["__cssModules", ee]]), ae = ["for"], se = ["id", "name", "value", "checked", "disabled"],
|
|
113
|
+
}, te = /* @__PURE__ */ x(X, [["__cssModules", ee]]), ae = ["for"], se = ["id", "name", "value", "checked", "disabled"], oe = { class: "tw-m-0 tw-text-ice-900" }, le = { class: "tw-m-0 tw-text-ice-700" }, re = /* @__PURE__ */ $({
|
|
114
114
|
__name: "VariantTile",
|
|
115
115
|
setup(u) {
|
|
116
|
-
const
|
|
117
|
-
if (!
|
|
116
|
+
const r = k(y.key);
|
|
117
|
+
if (!r)
|
|
118
118
|
throw new Error("VariantTile must be used with a RadioGroup instance.");
|
|
119
|
-
const { name:
|
|
120
|
-
return (g,
|
|
121
|
-
class:
|
|
119
|
+
const { name: s, disabled: a, fullWidth: f, modelValue: d, options: m, update: o } = r, c = V();
|
|
120
|
+
return (g, _) => (l(), n("div", {
|
|
121
|
+
class: p(["tw-flex tw-flex-wrap", e(c).root])
|
|
122
122
|
}, [
|
|
123
|
-
(
|
|
124
|
-
key: `${e(
|
|
125
|
-
class:
|
|
126
|
-
for: `${e(
|
|
123
|
+
(l(!0), n(B, null, R(e(m), (t) => (l(), n("label", {
|
|
124
|
+
key: `${e(s)}-${t.id}`,
|
|
125
|
+
class: p([e(c)["tile-container"], { "tw-w-full": e(f) }]),
|
|
126
|
+
for: `${e(s)}-${t.id}`
|
|
127
127
|
}, [
|
|
128
|
-
|
|
129
|
-
class:
|
|
130
|
-
e(
|
|
128
|
+
i("div", {
|
|
129
|
+
class: p(["tw-flex tw-border", [
|
|
130
|
+
e(c)["tile-header"],
|
|
131
131
|
{
|
|
132
|
-
"tw-border-blue-500 tw-bg-blue-100 tw-text-ice-900": e(
|
|
133
|
-
"tw-border-ice-500 tw-bg-ice-100 tw-text-ice-700": e(
|
|
132
|
+
"tw-border-blue-500 tw-bg-blue-100 tw-text-ice-900": e(d) === t.value,
|
|
133
|
+
"tw-border-ice-500 tw-bg-ice-100 tw-text-ice-700": e(d) !== t.value
|
|
134
134
|
}
|
|
135
135
|
]])
|
|
136
136
|
}, [
|
|
137
|
-
|
|
138
|
-
id: `${e(
|
|
137
|
+
i("input", {
|
|
138
|
+
id: `${e(s)}-${t.id}`,
|
|
139
139
|
class: "tw-sr-only",
|
|
140
140
|
type: "radio",
|
|
141
|
-
name: e(
|
|
142
|
-
value:
|
|
143
|
-
checked: e(
|
|
144
|
-
disabled: e(
|
|
145
|
-
onInput:
|
|
146
|
-
(...b) => e(
|
|
141
|
+
name: e(s),
|
|
142
|
+
value: t.value,
|
|
143
|
+
checked: e(d) === t.value,
|
|
144
|
+
disabled: e(a) || t.disabled,
|
|
145
|
+
onInput: _[0] || (_[0] = //@ts-ignore
|
|
146
|
+
(...b) => e(o) && e(o)(...b))
|
|
147
147
|
}, null, 40, se),
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
i("div", null, [
|
|
149
|
+
i("span", null, h(t.text), 1)
|
|
150
150
|
])
|
|
151
151
|
], 2),
|
|
152
|
-
|
|
153
|
-
class:
|
|
154
|
-
e(
|
|
152
|
+
i("div", {
|
|
153
|
+
class: p(["tw-border-x tw-border-b", [
|
|
154
|
+
e(c)["tile-body"],
|
|
155
155
|
{
|
|
156
|
-
"tw-border-ice-500": e(
|
|
157
|
-
"tw-border-blue-500": e(
|
|
156
|
+
"tw-border-ice-500": e(d) !== t.value,
|
|
157
|
+
"tw-border-blue-500": e(d) === t.value
|
|
158
158
|
}
|
|
159
159
|
]])
|
|
160
160
|
}, [
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
i("p", oe, h(t.subTitle), 1),
|
|
162
|
+
i("p", le, h(t.subText), 1)
|
|
163
163
|
], 2)
|
|
164
164
|
], 10, ae))), 128))
|
|
165
165
|
], 2));
|
|
@@ -191,60 +191,60 @@ const ce = /* @__PURE__ */ $({
|
|
|
191
191
|
showOptionalInLabel: { type: Boolean }
|
|
192
192
|
},
|
|
193
193
|
emits: ["update:modelValue"],
|
|
194
|
-
setup(u, { emit:
|
|
195
|
-
const
|
|
194
|
+
setup(u, { emit: r }) {
|
|
195
|
+
const s = {
|
|
196
196
|
[w.Button]: N,
|
|
197
197
|
[w.Chip]: H,
|
|
198
198
|
[w.Radio]: te,
|
|
199
199
|
[w.Tile]: ue
|
|
200
|
-
};
|
|
201
|
-
function
|
|
202
|
-
|
|
200
|
+
}, a = u, f = r;
|
|
201
|
+
function d(o) {
|
|
202
|
+
f("update:modelValue", o.target.value);
|
|
203
203
|
}
|
|
204
|
-
const
|
|
204
|
+
const m = E("radio-group-field-error-");
|
|
205
205
|
return C(y.key, {
|
|
206
|
-
name: v(() =>
|
|
207
|
-
disabled: v(() =>
|
|
208
|
-
fullWidth: v(() =>
|
|
209
|
-
modelValue: v(() =>
|
|
210
|
-
options: v(() =>
|
|
211
|
-
variant: v(() =>
|
|
212
|
-
update:
|
|
213
|
-
}), (
|
|
206
|
+
name: v(() => a.name),
|
|
207
|
+
disabled: v(() => a.disabled),
|
|
208
|
+
fullWidth: v(() => a.fullWidth),
|
|
209
|
+
modelValue: v(() => a.modelValue),
|
|
210
|
+
options: v(() => a.options),
|
|
211
|
+
variant: v(() => a.variant),
|
|
212
|
+
update: d
|
|
213
|
+
}), (o, c) => (l(), I(O, {
|
|
214
214
|
class: "stash-radio-group",
|
|
215
215
|
"data-test": "stash-radio-group",
|
|
216
|
-
"aria-errormessage": e(
|
|
217
|
-
"aria-invalid": !!
|
|
216
|
+
"aria-errormessage": e(m),
|
|
217
|
+
"aria-invalid": !!a.errorText,
|
|
218
218
|
role: "radiogroup",
|
|
219
219
|
fieldset: "",
|
|
220
|
-
label:
|
|
221
|
-
"add-bottom-space":
|
|
222
|
-
"error-id": e(
|
|
223
|
-
"error-text":
|
|
224
|
-
"hint-text":
|
|
225
|
-
"show-optional-in-label":
|
|
226
|
-
"is-required":
|
|
227
|
-
"is-read-only":
|
|
220
|
+
label: a.label,
|
|
221
|
+
"add-bottom-space": a.addBottomSpace,
|
|
222
|
+
"error-id": e(m),
|
|
223
|
+
"error-text": a.errorText,
|
|
224
|
+
"hint-text": a.hintText,
|
|
225
|
+
"show-optional-in-label": a.showOptionalInLabel,
|
|
226
|
+
"is-required": a.isRequired,
|
|
227
|
+
"is-read-only": a.isReadOnly
|
|
228
228
|
}, {
|
|
229
229
|
default: M(() => [
|
|
230
|
-
|
|
231
|
-
(
|
|
232
|
-
], !0) : (
|
|
230
|
+
a.options ? T(o.$slots, "default", { key: 0 }, () => [
|
|
231
|
+
(l(), I(G(s[a.variant])))
|
|
232
|
+
], !0) : (l(), n("div", {
|
|
233
233
|
key: 1,
|
|
234
|
-
class:
|
|
235
|
-
"tw-flex-wrap":
|
|
236
|
-
"tw-gap-x-1.5 tw-gap-y-3":
|
|
237
|
-
"tw-gap-6":
|
|
234
|
+
class: p(["tw-flex", {
|
|
235
|
+
"tw-flex-wrap": a.variant !== e(w).Button,
|
|
236
|
+
"tw-gap-x-1.5 tw-gap-y-3": a.variant === e(w).Chip,
|
|
237
|
+
"tw-gap-6": a.variant === e(w).Radio || a.variant === e(w).Tile
|
|
238
238
|
}])
|
|
239
239
|
}, [
|
|
240
|
-
T(
|
|
240
|
+
T(o.$slots, "default", {}, void 0, !0)
|
|
241
241
|
], 2))
|
|
242
242
|
]),
|
|
243
243
|
_: 3
|
|
244
244
|
}, 8, ["aria-errormessage", "aria-invalid", "label", "add-bottom-space", "error-id", "error-text", "hint-text", "show-optional-in-label", "is-required", "is-read-only"]));
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
|
-
const $e = /* @__PURE__ */ x(ce, [["__scopeId", "data-v-
|
|
247
|
+
const $e = /* @__PURE__ */ x(ce, [["__scopeId", "data-v-f44396f6"]]);
|
|
248
248
|
export {
|
|
249
249
|
y as RADIO_GROUP_INJECTION,
|
|
250
250
|
w as RadioGroupVariant,
|