@onereach/ui-components 2.75.2-beta.2392.0 → 2.75.2-beta.2399.0
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/bundled/v2/{OrButton-304116b7.js → OrButton-0242b4c0.js} +6 -8
- package/dist/bundled/v2/{OrCardCollection-edfc29b5.js → OrCardCollection-e3986f07.js} +5 -5
- package/dist/bundled/v2/{OrCheckbox-aac23c1e.js → OrCheckbox-384760cb.js} +2 -2
- package/dist/bundled/v2/{OrConfirm-e105dd13.js → OrConfirm-498fa802.js} +8 -6
- package/dist/bundled/v2/{OrEmptyState-8a7feb99.js → OrEmptyState-9fb413f9.js} +2 -2
- package/dist/bundled/v2/{OrError-8aa16f11.js → OrError-52f668a4.js} +3 -1
- package/dist/bundled/v2/{OrErrorTag-244bed5b.js → OrErrorTag-4675604d.js} +3 -1
- package/dist/bundled/v2/{OrHint-39fc2173.js → OrHint-fde53334.js} +3 -1
- package/dist/bundled/v2/{OrIconButton-4734d7be.js → OrIconButton-deec1d4d.js} +2 -2
- package/dist/bundled/v2/{OrInlineInput-09e0f70e.js → OrInlineInput-5f0b99f9.js} +29 -15
- package/dist/bundled/v2/{OrInlineTextarea-ebea7861.js → OrInlineTextarea-975b8706.js} +29 -15
- package/dist/bundled/v2/{OrInput-e1e402a5.js → OrInput-822eb9f5.js} +32 -17
- package/dist/bundled/v2/{OrInputBox-e54dcef9.js → OrInputBox-9a31d211.js} +2 -12
- package/dist/bundled/v2/{OrLabel-c44e9f7d.js → OrLabel-aff09c39.js} +1 -1
- package/dist/bundled/v2/{OrLink-a7b23576.js → OrLink-0d952e87.js} +2 -6
- package/dist/bundled/v2/{OrMenu-ef3406b1.js → OrMenu-82c77b2c.js} +15 -10
- package/dist/bundled/v2/{OrModal-03f89deb.js → OrModal-d845da2d.js} +1 -1
- package/dist/bundled/v2/{OrNotification-3b01294e.js → OrNotification-e102f0d7.js} +1 -1
- package/dist/bundled/v2/{OrPagination-7de5298c.js → OrPagination-166592a5.js} +24 -62
- package/dist/bundled/v2/{OrProgress-d1ad4637.js → OrProgress-01123d1f.js} +3 -3
- package/dist/bundled/v2/{OrRadio-cf867aeb.js → OrRadio-2d05cea7.js} +2 -2
- package/dist/bundled/v2/{OrSearch-6385e22f.js → OrSearch-f9d46a70.js} +2 -2
- package/dist/bundled/v2/{OrSelect-369fc98e.js → OrSelect-0c0c01d4.js} +33 -16
- package/dist/bundled/v2/{OrSidebar-49886551.js → OrSidebar-5ddf0e24.js} +3 -3
- package/dist/bundled/v2/{OrSidebarCollapseButton-bccb6427.js → OrSidebarCollapseButton-d6ebc2aa.js} +1 -1
- package/dist/bundled/v2/{OrSwitch-644a0729.js → OrSwitch-aa0da6b9.js} +2 -2
- package/dist/bundled/v2/{OrTab-39162e26.js → OrTab-8c5acf8a.js} +1 -1
- package/dist/bundled/v2/{OrTabs-78160924.js → OrTabs-ff22ddce.js} +3 -3
- package/dist/bundled/v2/{OrTag-f9430b52.js → OrTag-dee4c7e4.js} +7 -3
- package/dist/bundled/v2/{OrTextarea-c2ac90b2.js → OrTextarea-c56f19db.js} +30 -15
- package/dist/bundled/v2/{OrTooltip-6dceb10b.js → OrTooltip-87c2e375.js} +1 -1
- package/dist/bundled/v2/components/index.js +34 -33
- package/dist/bundled/v2/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +12 -11
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +162 -0
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-confirm-v3/index.js +10 -9
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-error-tag-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-error-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-fab-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-hint-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v2/components/or-input-v3/OrInput.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-input-v3/index.js +8 -7
- package/dist/bundled/v2/components/or-label-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-link-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
- package/dist/bundled/v2/components/or-menu-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-menu-v3/styles.d.ts +1 -0
- package/dist/bundled/v2/components/or-modal-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-notification-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -4
- package/dist/bundled/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-progress-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-progress-v3/styles.d.ts +1 -1
- package/dist/bundled/v2/components/or-radio-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +9 -8
- package/dist/bundled/v2/components/or-select-v3/OrSelect.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-select-v3/index.js +11 -10
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +4 -4
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +3 -3
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
- package/dist/bundled/v2/components/or-switch-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-tab-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-tabs-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-tag-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
- package/dist/bundled/v2/components/or-textarea-v3/index.js +6 -5
- package/dist/bundled/v2/components/or-toast-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-tooltip-v3/index.js +1 -1
- package/dist/bundled/v2/index.js +35 -34
- package/dist/bundled/v2/props-78496a2d.js +12 -0
- package/dist/bundled/v2/{types-1baef7d6.js → types-e494517f.js} +1 -1
- package/dist/bundled/v3/{OrButton-3844dcde.js → OrButton-452d3149.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-3234f823.js → OrButton.vue_vue_type_script_lang-7d4f420c.js} +6 -8
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-f68e9fa9.js → OrCardCollection.vue_vue_type_script_lang-f2fdaa33.js} +8 -8
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-2f40f250.js → OrCheckbox.vue_vue_type_script_lang-08f64a02.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-92615ca9.js → OrConfirm.vue_vue_type_script_lang-2bb4e530.js} +10 -8
- package/dist/bundled/v3/{OrEmptyState.vue_vue_type_script_lang-8e58c67c.js → OrEmptyState.vue_vue_type_script_lang-da7d6c42.js} +2 -2
- package/dist/bundled/v3/{OrError.vue_vue_type_script_lang-c97f9dd7.js → OrError.vue_vue_type_script_lang-53648a65.js} +3 -1
- package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-e052a480.js → OrErrorTag.vue_vue_type_script_lang-bfa4c580.js} +2 -0
- package/dist/bundled/v3/{OrHint-4d1a5982.js → OrHint-5d5e4d99.js} +2 -2
- package/dist/bundled/v3/{OrHint.vue_vue_type_script_lang-3d9a3b91.js → OrHint.vue_vue_type_script_lang-e322f61e.js} +3 -1
- package/dist/bundled/v3/{OrIconButton-7e142abb.js → OrIconButton-8f4c68e9.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-7c2615be.js → OrIconButton.vue_vue_type_script_lang-8670c49e.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-b9be61f1.js → OrInlineInput.vue_vue_type_script_lang-18853dd7.js} +9 -11
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-f05fdd34.js → OrInlineTextarea.vue_vue_type_script_lang-3cb238d6.js} +9 -11
- package/dist/bundled/v3/{OrInput-b951e2e1.js → OrInput-13a84d53.js} +13 -10
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-0b7193c1.js → OrInput.vue_vue_type_script_lang-09a6138d.js} +13 -14
- package/dist/bundled/v3/{OrInputBox-358d4856.js → OrInputBox-44f37541.js} +1 -1
- package/dist/{esm/v2/OrInputBox-53d1f66d.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js} +3 -53
- package/dist/bundled/v3/{OrLabel-66e5b331.js → OrLabel-c556887e.js} +1 -1
- package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-563df945.js → OrLabel.vue_vue_type_script_lang-191d2304.js} +1 -1
- package/dist/bundled/v3/{OrLink.vue_vue_type_script_lang-c08a577b.js → OrLink.vue_vue_type_script_lang-05d4897b.js} +2 -6
- package/dist/bundled/v3/{OrMenu-8b83138c.js → OrMenu-c982d515.js} +10 -9
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-165f8e69.js → OrMenu.vue_vue_type_script_lang-cefb0eca.js} +8 -5
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-f578de92.js → OrModal.vue_vue_type_script_lang-3f3ce339.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-6462f3c0.js → OrNotification.vue_vue_type_script_lang-7dd0d85f.js} +2 -2
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-b5b74d1c.js → OrPagination.vue_vue_type_script_lang-a79c359c.js} +20 -37
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-2977ac52.js → OrProgress.vue_vue_type_script_lang-c387db0b.js} +3 -3
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-0732e87f.js → OrRadio.vue_vue_type_script_lang-5d88f0b4.js} +3 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-4e35dbea.js → OrSearch.vue_vue_type_script_lang-9028a3c5.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-82c579a4.js → OrSelect.vue_vue_type_script_lang-30c61027.js} +17 -16
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-a91d5474.js → OrSidebar.vue_vue_type_script_lang-4639bf0e.js} +3 -3
- package/dist/bundled/v3/{OrSidebarCollapseButton.vue_vue_type_script_lang-fe9a139e.js → OrSidebarCollapseButton.vue_vue_type_script_lang-a46ed51a.js} +2 -2
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-8f9398f8.js → OrSwitch.vue_vue_type_script_lang-fd43080e.js} +3 -3
- package/dist/bundled/v3/{OrTab.vue_vue_type_script_lang-b2dc97c2.js → OrTab.vue_vue_type_script_lang-f791efa0.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-b9279206.js → OrTabs.vue_vue_type_script_lang-c8df52e6.js} +4 -4
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-a03d1c69.js → OrTag.vue_vue_type_script_lang-b716ad27.js} +7 -3
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-7889c03a.js → OrTextarea.vue_vue_type_script_lang-b2899ba6.js} +11 -12
- package/dist/bundled/v3/{OrToastContainer-5017cbf9.js → OrToastContainer-6a85ebf8.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-a51714f9.js → OrTooltip.vue_vue_type_script_lang-a17ed18c.js} +1 -1
- package/dist/bundled/v3/components/index.js +41 -40
- package/dist/bundled/v3/components/or-button-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +19 -18
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +131 -0
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-confirm-v3/index.js +16 -15
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-error-tag-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-error-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-fab-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-hint-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +7 -7
- package/dist/bundled/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -1
- package/dist/bundled/v3/components/or-input-v3/OrInput.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-input-v3/index.js +12 -11
- package/dist/bundled/v3/components/or-label-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-link-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
- package/dist/bundled/v3/components/or-menu-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-menu-v3/styles.d.ts +1 -0
- package/dist/bundled/v3/components/or-modal-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-notification-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -4
- package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-progress-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-progress-v3/styles.d.ts +1 -1
- package/dist/bundled/v3/components/or-radio-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-search-v3/index.js +14 -13
- package/dist/bundled/v3/components/or-select-v3/OrSelect.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-select-v3/index.js +16 -15
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
- package/dist/bundled/v3/components/or-switch-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tab-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-tabs-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-tag-v3/index.js +4 -4
- package/dist/bundled/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
- package/dist/bundled/v3/components/or-textarea-v3/index.js +9 -8
- package/dist/bundled/v3/components/or-toast-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +1 -1
- package/dist/bundled/v3/index.js +191 -202
- package/dist/bundled/v3/props-78496a2d.js +12 -0
- package/dist/bundled/v3/{types-1d9f9c3f.js → types-661a05a5.js} +2 -2
- package/dist/esm/v2/{OrButton-eaa2c409.js → OrButton-c5ec96e7.js} +6 -8
- package/dist/esm/v2/{OrCardCollection-230b25c0.js → OrCardCollection-59455d23.js} +6 -6
- package/dist/esm/v2/{OrCheckbox-ac3cc642.js → OrCheckbox-49d7d6b1.js} +2 -2
- package/dist/esm/v2/{OrConfirm-4e5c2906.js → OrConfirm-b31e3d3d.js} +8 -6
- package/dist/esm/v2/{OrEmptyState-ab1a044d.js → OrEmptyState-2481f13f.js} +2 -2
- package/dist/esm/v2/{OrError-9e7976ef.js → OrError-13845bb0.js} +3 -1
- package/dist/esm/v2/{OrErrorTag-32ba5c0c.js → OrErrorTag-7cd5dc68.js} +3 -1
- package/dist/esm/v2/{OrHint-272790e7.js → OrHint-78b399cb.js} +3 -1
- package/dist/esm/v2/{OrIconButton-75e7b80c.js → OrIconButton-fa9bff07.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-6a3472f3.js → OrInlineInput-36d79e50.js} +29 -15
- package/dist/esm/v2/{OrInlineTextarea-2c6f14da.js → OrInlineTextarea-e2d61e44.js} +29 -15
- package/dist/esm/v2/{OrInput-eb2cf391.js → OrInput-06003aad.js} +32 -17
- package/dist/esm/v2/OrInputBox-5c4b3104.js +43 -0
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js → esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js} +1 -1
- package/dist/esm/v2/{OrLabel-49398089.js → OrLabel-0945a4d9.js} +1 -1
- package/dist/esm/v2/{OrLink-e2fd196e.js → OrLink-597e0e18.js} +2 -6
- package/dist/esm/v2/{OrMenu-40013a4a.js → OrMenu-bb6e93bc.js} +15 -10
- package/dist/esm/v2/{OrModal-7e85a919.js → OrModal-370cfc3b.js} +1 -1
- package/dist/esm/v2/{OrNotification-32a7774e.js → OrNotification-76498693.js} +1 -1
- package/dist/esm/v2/{OrPagination-67635368.js → OrPagination-a9233838.js} +24 -63
- package/dist/esm/v2/{OrProgress-59293ca5.js → OrProgress-ff999494.js} +3 -3
- package/dist/esm/v2/{OrRadio-ffd31026.js → OrRadio-06a54f1e.js} +2 -2
- package/dist/esm/v2/{OrSearch-7612e05b.js → OrSearch-44645202.js} +2 -2
- package/dist/esm/v2/{OrSelect-6b2528f2.js → OrSelect-a51044ed.js} +33 -16
- package/dist/esm/v2/{OrSidebar-5f5a5962.js → OrSidebar-89711112.js} +3 -3
- package/dist/esm/v2/{OrSidebarCollapseButton-81b32e0d.js → OrSidebarCollapseButton-81c77db0.js} +1 -1
- package/dist/esm/v2/{OrSwitch-6309430f.js → OrSwitch-6129b63d.js} +2 -2
- package/dist/esm/v2/{OrTab-8e1e3751.js → OrTab-1ff87c76.js} +1 -1
- package/dist/esm/v2/{OrTabs-411fc919.js → OrTabs-b501239f.js} +3 -3
- package/dist/esm/v2/{OrTag-7663d423.js → OrTag-d559f34c.js} +7 -3
- package/dist/esm/v2/{OrTextarea-6604925a.js → OrTextarea-5fa93c9a.js} +30 -15
- package/dist/esm/v2/{OrTooltip-5a02f34c.js → OrTooltip-d9424f71.js} +1 -1
- package/dist/esm/v2/components/index.js +34 -33
- package/dist/esm/v2/components/or-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-card-collection-v3/index.js +12 -11
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-combined-input-v3/index.js +159 -0
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-confirm-v3/index.js +10 -9
- package/dist/esm/v2/components/or-empty-state-v3/index.js +1 -1
- package/dist/esm/v2/components/or-error-tag-v3/index.js +1 -1
- package/dist/esm/v2/components/or-error-v3/index.js +1 -1
- package/dist/esm/v2/components/or-fab-v3/index.js +1 -1
- package/dist/esm/v2/components/or-hint-v3/index.js +1 -1
- package/dist/esm/v2/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-inline-input-v3/index.js +5 -5
- package/dist/esm/v2/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/esm/v2/components/or-input-box-v3/index.js +3 -2
- package/dist/esm/v2/components/or-input-v3/OrInput.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-input-v3/index.js +8 -7
- package/dist/esm/v2/components/or-label-v3/index.js +1 -1
- package/dist/esm/v2/components/or-link-v3/index.js +1 -1
- package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
- package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
- package/dist/esm/v2/components/or-menu-v3/styles.d.ts +1 -0
- package/dist/esm/v2/components/or-modal-v3/index.js +3 -3
- package/dist/esm/v2/components/or-notification-v3/index.js +3 -3
- package/dist/esm/v2/components/or-pagination-v3/OrPagination.vue.d.ts +0 -4
- package/dist/esm/v2/components/or-pagination-v3/index.js +5 -5
- package/dist/esm/v2/components/or-progress-v3/index.js +1 -1
- package/dist/esm/v2/components/or-progress-v3/styles.d.ts +1 -1
- package/dist/esm/v2/components/or-radio-v3/index.js +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +9 -8
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-select-v3/index.js +11 -10
- package/dist/esm/v2/components/or-sidebar-v3/index.js +4 -4
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +3 -3
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tab-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tag-v3/index.js +3 -3
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
- package/dist/esm/v2/components/or-textarea-v3/index.js +6 -5
- package/dist/esm/v2/components/or-toast-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tooltip-v3/index.js +1 -1
- package/dist/esm/v2/index.js +34 -33
- package/dist/esm/v2/{types-a12f6aef.js → types-e9a54dcf.js} +1 -1
- package/dist/esm/v3/{OrButton-769333b2.js → OrButton-9f059df6.js} +6 -8
- package/dist/esm/v3/{OrCardCollection-18cc099f.js → OrCardCollection-5c0d53e0.js} +5 -5
- package/dist/esm/v3/{OrCheckbox-78b08b59.js → OrCheckbox-a8388252.js} +2 -2
- package/dist/esm/v3/{OrConfirm-1d16ec0e.js → OrConfirm-c7304c10.js} +8 -6
- package/dist/esm/v3/{OrEmptyState-cd3a4026.js → OrEmptyState-bb8e3145.js} +2 -2
- package/dist/esm/v3/{OrError-5e926d62.js → OrError-19198748.js} +3 -1
- package/dist/esm/v3/{OrErrorTag-71fe44c2.js → OrErrorTag-0025b17c.js} +3 -1
- package/dist/esm/v3/{OrHint-031f9265.js → OrHint-6863124f.js} +3 -1
- package/dist/esm/v3/{OrIconButton-bbed669a.js → OrIconButton-385e997c.js} +2 -2
- package/dist/esm/v3/{OrInlineInput-7127bbf7.js → OrInlineInput-651c9155.js} +18 -18
- package/dist/esm/v3/{OrInlineTextarea-6b166438.js → OrInlineTextarea-d16af66a.js} +18 -18
- package/dist/esm/v3/{OrInput-98b85380.js → OrInput-b3939d15.js} +19 -18
- package/dist/esm/v3/{OrLabel-5a2f55fd.js → OrLabel-f700f9fb.js} +1 -1
- package/dist/esm/v3/{OrLink-3e5e13d3.js → OrLink-07f6f27d.js} +2 -6
- package/dist/esm/v3/{OrMenu-8c333ea1.js → OrMenu-b4e8136c.js} +17 -13
- package/dist/esm/v3/{OrModal-80c32c22.js → OrModal-f9f2279b.js} +1 -1
- package/dist/esm/v3/{OrNotification-6e4a7e5c.js → OrNotification-aab2e22a.js} +1 -1
- package/dist/esm/v3/{OrPagination-6ff8d71e.js → OrPagination-183803e7.js} +26 -66
- package/dist/esm/v3/{OrProgress-2fea3fd7.js → OrProgress-f881a58a.js} +3 -3
- package/dist/esm/v3/{OrRadio-2ab7b845.js → OrRadio-97fb105f.js} +2 -2
- package/dist/esm/v3/{OrSearch-bae250ab.js → OrSearch-d16d0331.js} +1 -1
- package/dist/esm/v3/{OrSelect-6cacedb9.js → OrSelect-19c2e7d2.js} +22 -19
- package/dist/esm/v3/{OrSidebar-08e628b7.js → OrSidebar-64703ef6.js} +3 -3
- package/dist/esm/v3/{OrSidebarCollapseButton-95365ca6.js → OrSidebarCollapseButton-506fc73c.js} +1 -1
- package/dist/esm/v3/{OrSwitch-00d21fb8.js → OrSwitch-2a23a9b8.js} +2 -2
- package/dist/esm/v3/{OrTab-2206d2dc.js → OrTab-d3785ea4.js} +1 -1
- package/dist/esm/v3/{OrTabs-d6c6bc39.js → OrTabs-e639e96f.js} +3 -3
- package/dist/esm/v3/{OrTag-cd21a1bc.js → OrTag-330457a7.js} +7 -3
- package/dist/esm/v3/{OrTextarea-f23cfc20.js → OrTextarea-dfc6a453.js} +17 -16
- package/dist/esm/v3/{OrTooltip-adece7b6.js → OrTooltip-e5fe74d6.js} +1 -1
- package/dist/esm/v3/components/index.js +32 -32
- package/dist/esm/v3/components/or-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-card-collection-v3/index.js +10 -10
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +105 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-combined-input-v3/index.js +130 -0
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-confirm-v3/index.js +8 -8
- package/dist/esm/v3/components/or-empty-state-v3/index.js +1 -1
- package/dist/esm/v3/components/or-error-tag-v3/index.js +1 -1
- package/dist/esm/v3/components/or-error-v3/index.js +1 -1
- package/dist/esm/v3/components/or-fab-v3/index.js +1 -1
- package/dist/esm/v3/components/or-hint-v3/index.js +1 -1
- package/dist/esm/v3/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-inline-input-v3/index.js +5 -5
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-input-v3/index.js +6 -6
- package/dist/esm/v3/components/or-label-v3/index.js +1 -1
- package/dist/esm/v3/components/or-link-v3/index.js +1 -1
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
- package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
- package/dist/esm/v3/components/or-menu-v3/styles.d.ts +1 -0
- package/dist/esm/v3/components/or-modal-v3/index.js +3 -3
- package/dist/esm/v3/components/or-notification-v3/index.js +3 -3
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +0 -4
- package/dist/esm/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/esm/v3/components/or-progress-v3/index.js +1 -1
- package/dist/esm/v3/components/or-progress-v3/styles.d.ts +1 -1
- package/dist/esm/v3/components/or-radio-v3/index.js +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +7 -7
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-select-v3/index.js +9 -9
- package/dist/esm/v3/components/or-sidebar-v3/index.js +4 -4
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +3 -3
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +3 -3
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tab-v3/index.js +1 -1
- package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tag-v3/index.js +3 -3
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +5 -7
- package/dist/esm/v3/components/or-textarea-v3/index.js +4 -4
- package/dist/esm/v3/components/or-toast-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tooltip-v3/index.js +1 -1
- package/dist/esm/v3/index.js +32 -32
- package/dist/esm/v3/{types-872260a9.js → types-b9717ff2.js} +1 -1
- package/package.json +2 -2
- package/src/components/or-button-v3/styles.ts +8 -11
- package/src/components/or-card-collection-v3/styles.ts +1 -1
- package/src/components/or-checkbox-v3/styles.ts +2 -1
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +7 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +201 -0
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +133 -0
- package/src/components/or-combined-input-v3/index.ts +2 -0
- package/src/components/or-combined-input-v3/props.ts +1 -0
- package/src/components/or-combined-input-v3/styles.ts +25 -0
- package/src/components/or-confirm-v3/styles.ts +11 -5
- package/src/components/or-empty-state-v3/styles.ts +2 -2
- package/src/components/or-error-tag-v3/OrErrorTag.vue +1 -1
- package/src/components/or-error-tag-v3/styles.ts +3 -0
- package/src/components/or-error-v3/styles.ts +4 -1
- package/src/components/or-fab-v3/styles.ts +3 -3
- package/src/components/or-hint-v3/styles.ts +4 -1
- package/src/components/or-icon-button-v3/styles.ts +1 -1
- package/src/components/or-inline-input-v3/OrInlineInput.vue +12 -9
- package/src/components/or-inline-input-v3/styles.ts +3 -3
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.vue +12 -9
- package/src/components/or-inline-textarea-v3/styles.ts +3 -3
- package/src/components/or-input-v3/OrInput.vue +13 -10
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-label-v3/styles.ts +1 -1
- package/src/components/or-link-v3/styles.ts +4 -8
- package/src/components/or-menu-v3/OrMenu.vue +26 -22
- package/src/components/or-menu-v3/styles.ts +5 -0
- package/src/components/or-pagination-v3/OrPagination.vue +42 -89
- package/src/components/or-pagination-v3/styles.ts +1 -1
- package/src/components/or-progress-v3/styles.ts +4 -4
- package/src/components/or-radio-v3/styles.ts +1 -1
- package/src/components/or-select-v3/OrSelect.stories3.ts +4 -0
- package/src/components/or-select-v3/OrSelect.vue +13 -9
- package/src/components/or-select-v3/styles.ts +4 -1
- package/src/components/or-sidebar-v3/styles.ts +2 -2
- package/src/components/or-switch-v3/styles.ts +1 -1
- package/src/components/or-tab-v3/styles.ts +1 -1
- package/src/components/or-tabs-v3/styles.ts +2 -2
- package/src/components/or-tag-v3/OrTag.stories3.ts +5 -5
- package/src/components/or-tag-v3/OrTag.vue +1 -1
- package/src/components/or-tag-v3/styles.ts +11 -0
- package/src/components/or-textarea-v3/OrTextarea.vue +12 -9
- package/src/components/or-textarea-v3/styles.ts +2 -2
- package/src/components/or-tooltip-v3/styles.ts +1 -1
- package/dist/bundled/v2/{OrFab-85bd9427.js → OrFab-a2e49eaa.js} +2 -2
- package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-a4e3eef8.js → OrFab.vue_vue_type_script_lang-8f76f6b1.js} +2 -2
- package/dist/esm/v2/{OrFab-f71daa4f.js → OrFab-d5a37b22.js} +2 -2
- package/dist/esm/v3/{OrFab-6266b4de.js → OrFab-588291bf.js} +2 -2
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import { ref, watch } from 'vue-demi';
|
|
3
|
+
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
4
|
+
import { OrInputV3 as OrInput } from '../or-input-v3';
|
|
5
|
+
import { OrSelectV3 as OrSelect, SelectOption } from '../or-select-v3';
|
|
6
|
+
import OrCombinedInputDocs from './OrCombinedInput.docs.mdx';
|
|
7
|
+
import OrCombinedInput from './OrCombinedInput.vue';
|
|
8
|
+
import { CombinedInputSize } from './props';
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
title: 'Components/Forms/Combined Input',
|
|
12
|
+
component: OrCombinedInput,
|
|
13
|
+
|
|
14
|
+
argTypes: {
|
|
15
|
+
// Slots
|
|
16
|
+
default: {
|
|
17
|
+
type: {
|
|
18
|
+
name: 'string',
|
|
19
|
+
required: true,
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
control: { type: 'text' },
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
addon: {
|
|
26
|
+
type: {
|
|
27
|
+
name: 'string',
|
|
28
|
+
required: false,
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
control: { type: 'text' },
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
// Props
|
|
35
|
+
size: {
|
|
36
|
+
control: { type: 'select' },
|
|
37
|
+
options: Object.values(CombinedInputSize),
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
label: {
|
|
41
|
+
control: { type: 'text' },
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
hint: {
|
|
45
|
+
control: { type: 'text' },
|
|
46
|
+
},
|
|
47
|
+
|
|
48
|
+
error: {
|
|
49
|
+
control: { type: 'text' },
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
required: {
|
|
53
|
+
control: { type: 'boolean' },
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
readonly: {
|
|
57
|
+
control: { type: 'boolean' },
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
disabled: {
|
|
61
|
+
control: { type: 'boolean' },
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
disableDefaultStyles: {
|
|
65
|
+
control: { type: 'boolean' },
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
parameters: {
|
|
70
|
+
docs: {
|
|
71
|
+
page: OrCombinedInputDocs,
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
design: {
|
|
75
|
+
type: 'figma',
|
|
76
|
+
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=4423%3A39753&t=grpHUrgJi4X2W67L-4',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
} as Meta<typeof OrCombinedInput>;
|
|
80
|
+
|
|
81
|
+
const Template: StoryFn<typeof OrCombinedInput> = (args) => ({
|
|
82
|
+
components: {
|
|
83
|
+
OrCombinedInput,
|
|
84
|
+
OrIcon,
|
|
85
|
+
OrInput,
|
|
86
|
+
OrSelect,
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
setup() {
|
|
90
|
+
// State
|
|
91
|
+
const options = Array.from<string, SelectOption>([
|
|
92
|
+
'Alfa',
|
|
93
|
+
'Bravo',
|
|
94
|
+
'Charlie',
|
|
95
|
+
'Delta',
|
|
96
|
+
'Echo',
|
|
97
|
+
'Foxtrot',
|
|
98
|
+
'Golf',
|
|
99
|
+
'Hotel',
|
|
100
|
+
'India',
|
|
101
|
+
'Juliett',
|
|
102
|
+
'Kilo',
|
|
103
|
+
'Lima',
|
|
104
|
+
'Mike',
|
|
105
|
+
'November',
|
|
106
|
+
'Oscar',
|
|
107
|
+
'Papa',
|
|
108
|
+
'Quebec',
|
|
109
|
+
'Romeo',
|
|
110
|
+
'Sierra',
|
|
111
|
+
'Tango',
|
|
112
|
+
'Uniform',
|
|
113
|
+
'Victor',
|
|
114
|
+
'Whiskey',
|
|
115
|
+
'X-Ray',
|
|
116
|
+
'Yankee',
|
|
117
|
+
'Zulu',
|
|
118
|
+
], (item) => ({
|
|
119
|
+
value: item.toLowerCase(),
|
|
120
|
+
label: item,
|
|
121
|
+
}));
|
|
122
|
+
|
|
123
|
+
const selectModel = ref<string>();
|
|
124
|
+
const inputModel = ref<string>();
|
|
125
|
+
|
|
126
|
+
// Effects
|
|
127
|
+
watch([selectModel, inputModel], (values) => {
|
|
128
|
+
console.debug(values);
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
args,
|
|
133
|
+
options,
|
|
134
|
+
selectModel,
|
|
135
|
+
inputModel,
|
|
136
|
+
};
|
|
137
|
+
},
|
|
138
|
+
|
|
139
|
+
template: `
|
|
140
|
+
<OrCombinedInput v-bind="args">
|
|
141
|
+
${args.default}
|
|
142
|
+
${args.addon}
|
|
143
|
+
</OrCombinedInput>
|
|
144
|
+
`,
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
export const Default = Template.bind({});
|
|
148
|
+
|
|
149
|
+
Default.args = {
|
|
150
|
+
// Slots
|
|
151
|
+
default: `
|
|
152
|
+
<template v-slot="props">
|
|
153
|
+
<OrSelect
|
|
154
|
+
class="basis-1/4"
|
|
155
|
+
v-model="selectModel"
|
|
156
|
+
v-bind="props"
|
|
157
|
+
:options="options"
|
|
158
|
+
/>
|
|
159
|
+
|
|
160
|
+
<OrInput
|
|
161
|
+
class="basis-3/4"
|
|
162
|
+
v-model="inputModel"
|
|
163
|
+
v-bind="props"
|
|
164
|
+
/>
|
|
165
|
+
</template>
|
|
166
|
+
`,
|
|
167
|
+
|
|
168
|
+
// Props
|
|
169
|
+
label: 'Combined Input',
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export const Addon = Template.bind({});
|
|
173
|
+
|
|
174
|
+
Addon.args = {
|
|
175
|
+
...Default.args,
|
|
176
|
+
|
|
177
|
+
// Slots
|
|
178
|
+
addon: `
|
|
179
|
+
<template v-slot:addon>
|
|
180
|
+
<OrIcon icon="info" />
|
|
181
|
+
</template>
|
|
182
|
+
`,
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export const Hint = Template.bind({});
|
|
186
|
+
|
|
187
|
+
Hint.args = {
|
|
188
|
+
...Default.args,
|
|
189
|
+
|
|
190
|
+
// Props
|
|
191
|
+
hint: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export const Error = Template.bind({});
|
|
195
|
+
|
|
196
|
+
Error.args = {
|
|
197
|
+
...Default.args,
|
|
198
|
+
|
|
199
|
+
// Props
|
|
200
|
+
error: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
|
|
201
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
5
|
+
>
|
|
6
|
+
<template v-if="label">
|
|
7
|
+
<OrLabel
|
|
8
|
+
:variant="'input'"
|
|
9
|
+
:required="required"
|
|
10
|
+
:disabled="disabled"
|
|
11
|
+
>
|
|
12
|
+
{{ label }}
|
|
13
|
+
|
|
14
|
+
<template v-slot:addon>
|
|
15
|
+
<slot name="addon" />
|
|
16
|
+
</template>
|
|
17
|
+
</OrLabel>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<div :class="controlGroup">
|
|
21
|
+
<slot
|
|
22
|
+
:size="size"
|
|
23
|
+
:error="!!error"
|
|
24
|
+
:required="required"
|
|
25
|
+
:readonly="readonly"
|
|
26
|
+
:disabled="disabled"
|
|
27
|
+
:disable-default-styles="disableDefaultStyles"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
<div
|
|
32
|
+
v-show="!error"
|
|
33
|
+
:class="['contents']"
|
|
34
|
+
>
|
|
35
|
+
<template v-if="hint">
|
|
36
|
+
<OrHint :disabled="disabled">
|
|
37
|
+
{{ hint }}
|
|
38
|
+
</OrHint>
|
|
39
|
+
</template>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<div
|
|
43
|
+
v-show="typeof error === 'string'"
|
|
44
|
+
:class="['contents']"
|
|
45
|
+
>
|
|
46
|
+
<OrError :disabled="disabled">
|
|
47
|
+
{{ error }}
|
|
48
|
+
</OrError>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script lang="ts">
|
|
54
|
+
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
55
|
+
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
56
|
+
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
57
|
+
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
58
|
+
import { CombinedInputSize } from './props';
|
|
59
|
+
import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
|
|
60
|
+
|
|
61
|
+
export default defineComponent({
|
|
62
|
+
name: 'OrCombinedInput',
|
|
63
|
+
|
|
64
|
+
components: {
|
|
65
|
+
OrError,
|
|
66
|
+
OrHint,
|
|
67
|
+
OrLabel,
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
props: {
|
|
71
|
+
size: {
|
|
72
|
+
type: String as PropType<CombinedInputSize>,
|
|
73
|
+
default: CombinedInputSize.M,
|
|
74
|
+
},
|
|
75
|
+
|
|
76
|
+
label: {
|
|
77
|
+
type: String,
|
|
78
|
+
default: undefined,
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
hint: {
|
|
82
|
+
type: String,
|
|
83
|
+
default: undefined,
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
error: {
|
|
87
|
+
type: [String, Boolean],
|
|
88
|
+
default: undefined,
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
required: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: false,
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
readonly: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: false,
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
disabled: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: false,
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
disableDefaultStyles: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: false,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
|
|
112
|
+
setup(props, context) {
|
|
113
|
+
// Refs
|
|
114
|
+
const root = ref<HTMLElement>();
|
|
115
|
+
|
|
116
|
+
// Styles
|
|
117
|
+
const rootStyles = computed(() => [
|
|
118
|
+
'or-combined-input',
|
|
119
|
+
...CombinedInputRoot,
|
|
120
|
+
]);
|
|
121
|
+
|
|
122
|
+
const controlGroup = computed(() => [
|
|
123
|
+
...CombinedInputControlGroup,
|
|
124
|
+
]);
|
|
125
|
+
|
|
126
|
+
return {
|
|
127
|
+
root,
|
|
128
|
+
rootStyles,
|
|
129
|
+
controlGroup,
|
|
130
|
+
};
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
</script>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const CombinedInputRoot: string[] = [
|
|
2
|
+
// Layout
|
|
3
|
+
'layout-column',
|
|
4
|
+
|
|
5
|
+
// Spacing
|
|
6
|
+
'gap-xs',
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export const CombinedInputControlGroup: string[] = [
|
|
10
|
+
// Layout
|
|
11
|
+
'layout-row',
|
|
12
|
+
|
|
13
|
+
// Box
|
|
14
|
+
'w-full',
|
|
15
|
+
|
|
16
|
+
// Shape (.or-input-box)
|
|
17
|
+
'[&_.or-input-box]:first-child:rounded-r-0',
|
|
18
|
+
'[&_.or-input-box]:intermediate-child:rounded-0',
|
|
19
|
+
'[&_.or-input-box]:last-child:rounded-l-0',
|
|
20
|
+
|
|
21
|
+
// Spacing (.or-input-box)
|
|
22
|
+
'[&_.or-input-box]:first-child:mr-[-1px]',
|
|
23
|
+
'[&_.or-input-box]:intermediate-child:border-x-0',
|
|
24
|
+
'[&_.or-input-box]:last-child:ml-[-1px]',
|
|
25
|
+
];
|
|
@@ -40,7 +40,9 @@ export const ConfirmRoot: string[] = [
|
|
|
40
40
|
|
|
41
41
|
export const ConfirmHeader: string[] = [
|
|
42
42
|
// Layout
|
|
43
|
-
'
|
|
43
|
+
'flex',
|
|
44
|
+
'items-center',
|
|
45
|
+
'justify-between',
|
|
44
46
|
|
|
45
47
|
// Typography
|
|
46
48
|
'typography-headline-3',
|
|
@@ -55,6 +57,11 @@ export const ConfirmInput: string[] = [
|
|
|
55
57
|
];
|
|
56
58
|
|
|
57
59
|
export const ConfirmFooter: string[] = [
|
|
60
|
+
// Layout
|
|
61
|
+
'flex',
|
|
62
|
+
'items-center',
|
|
63
|
+
'justify-between',
|
|
64
|
+
|
|
58
65
|
// Spacing
|
|
59
66
|
'gap-md',
|
|
60
67
|
];
|
|
@@ -62,18 +69,17 @@ export const ConfirmFooter: string[] = [
|
|
|
62
69
|
export const ConfirmFooterTypes: Record<ConfirmType, string[]> = {
|
|
63
70
|
[ConfirmType.C]: [
|
|
64
71
|
// Layout
|
|
65
|
-
'
|
|
72
|
+
'flex-row',
|
|
66
73
|
],
|
|
67
|
-
|
|
68
74
|
[ConfirmType.D]: [
|
|
69
75
|
// Layout
|
|
70
|
-
'
|
|
76
|
+
'flex-row-reverse',
|
|
71
77
|
],
|
|
72
78
|
};
|
|
73
79
|
|
|
74
80
|
export const ConfirmFooterButtons: string[] = [
|
|
75
81
|
// Layout
|
|
76
|
-
'
|
|
82
|
+
'grow',
|
|
77
83
|
|
|
78
84
|
// Box
|
|
79
85
|
'w-auto md:w-[128px]',
|
|
@@ -14,13 +14,16 @@ export const ErrorRoot: string[] = [
|
|
|
14
14
|
];
|
|
15
15
|
|
|
16
16
|
export const ErrorText: string[] = [
|
|
17
|
+
// Layout
|
|
18
|
+
'grow',
|
|
19
|
+
|
|
17
20
|
// Interactivity
|
|
18
21
|
'interactivity-none',
|
|
19
22
|
];
|
|
20
23
|
|
|
21
24
|
export const ErrorAddon: string[] = [
|
|
22
25
|
// Layout
|
|
23
|
-
'layout-
|
|
26
|
+
'layout-row empty:hidden',
|
|
24
27
|
|
|
25
28
|
// Typography
|
|
26
29
|
'whitespace-nowrap',
|
|
@@ -4,13 +4,13 @@ export const FabRoot: string[] = [
|
|
|
4
4
|
// Layout
|
|
5
5
|
'layout-inline-row justify-center',
|
|
6
6
|
|
|
7
|
+
// Shape
|
|
8
|
+
'rounded-full',
|
|
9
|
+
|
|
7
10
|
// Box
|
|
8
11
|
'w-[56px]',
|
|
9
12
|
'h-[56px]',
|
|
10
13
|
|
|
11
|
-
// Shape
|
|
12
|
-
'rounded-full',
|
|
13
|
-
|
|
14
14
|
// Elevation
|
|
15
15
|
'enabled:shadow-button',
|
|
16
16
|
'dark:enabled:shadow-button-dark',
|
|
@@ -14,13 +14,16 @@ export const HintRoot: string[] = [
|
|
|
14
14
|
];
|
|
15
15
|
|
|
16
16
|
export const HintText: string[] = [
|
|
17
|
+
// Layout
|
|
18
|
+
'grow',
|
|
19
|
+
|
|
17
20
|
// Interactivity
|
|
18
21
|
'interactivity-none',
|
|
19
22
|
];
|
|
20
23
|
|
|
21
24
|
export const HintAddon: string[] = [
|
|
22
25
|
// Layout
|
|
23
|
-
'layout-
|
|
26
|
+
'layout-row empty:hidden',
|
|
24
27
|
|
|
25
28
|
// Typography
|
|
26
29
|
'whitespace-nowrap',
|
|
@@ -85,7 +85,7 @@ export const IconButtonRootColors: Record<IconButtonColor, string[]> = {
|
|
|
85
85
|
'dark:theme-preset-3-primary-dark',
|
|
86
86
|
|
|
87
87
|
'theme-foreground-inherit',
|
|
88
|
-
'dark:theme-foreground-inherit
|
|
88
|
+
'dark:theme-foreground-inherit',
|
|
89
89
|
|
|
90
90
|
// Theme (hover)
|
|
91
91
|
'hover:outline-primary-opacity-0-08',
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div :class="['layout-row', 'gap-sm+']">
|
|
7
7
|
<OrInlineInputBox
|
|
8
8
|
:size="size"
|
|
9
|
-
:invalid="
|
|
9
|
+
:invalid="!!error"
|
|
10
10
|
>
|
|
11
11
|
<input
|
|
12
12
|
ref="control"
|
|
@@ -40,7 +40,10 @@
|
|
|
40
40
|
</template>
|
|
41
41
|
</div>
|
|
42
42
|
|
|
43
|
-
<
|
|
43
|
+
<div
|
|
44
|
+
v-show="!error"
|
|
45
|
+
:class="['contents']"
|
|
46
|
+
>
|
|
44
47
|
<template v-if="hint || maxLength">
|
|
45
48
|
<OrHint>
|
|
46
49
|
{{ hint }}
|
|
@@ -53,9 +56,12 @@
|
|
|
53
56
|
</template>
|
|
54
57
|
</OrHint>
|
|
55
58
|
</template>
|
|
56
|
-
</
|
|
59
|
+
</div>
|
|
57
60
|
|
|
58
|
-
<
|
|
61
|
+
<div
|
|
62
|
+
v-show="typeof error === 'string'"
|
|
63
|
+
:class="['contents']"
|
|
64
|
+
>
|
|
59
65
|
<OrError>
|
|
60
66
|
{{ error }}
|
|
61
67
|
|
|
@@ -66,7 +72,7 @@
|
|
|
66
72
|
{{ currentLength }} / {{ maxLength }}
|
|
67
73
|
</template>
|
|
68
74
|
</OrError>
|
|
69
|
-
</
|
|
75
|
+
</div>
|
|
70
76
|
</div>
|
|
71
77
|
</template>
|
|
72
78
|
|
|
@@ -127,7 +133,7 @@ export default defineComponent({
|
|
|
127
133
|
},
|
|
128
134
|
|
|
129
135
|
error: {
|
|
130
|
-
type: String,
|
|
136
|
+
type: [String, Boolean],
|
|
131
137
|
default: undefined,
|
|
132
138
|
},
|
|
133
139
|
},
|
|
@@ -188,8 +194,6 @@ export default defineComponent({
|
|
|
188
194
|
const currentLength = computed(() => draftModelValue.value?.toString().length ?? 0);
|
|
189
195
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
190
196
|
|
|
191
|
-
const invalid = computed(() => !!props.error);
|
|
192
|
-
|
|
193
197
|
const activated = ref(false);
|
|
194
198
|
|
|
195
199
|
// Handlers
|
|
@@ -248,7 +252,6 @@ export default defineComponent({
|
|
|
248
252
|
draftModelValue,
|
|
249
253
|
currentLength,
|
|
250
254
|
maxLength,
|
|
251
|
-
invalid,
|
|
252
255
|
activated,
|
|
253
256
|
onFocus,
|
|
254
257
|
onBlur,
|
|
@@ -9,8 +9,8 @@ export const InlineInputRoot: string[] = [
|
|
|
9
9
|
];
|
|
10
10
|
|
|
11
11
|
export const InlineInputControl: string[] = [
|
|
12
|
-
//
|
|
13
|
-
'
|
|
12
|
+
// Box
|
|
13
|
+
'w-full',
|
|
14
14
|
|
|
15
15
|
// Typography
|
|
16
16
|
'typography-inherit',
|
|
@@ -22,7 +22,7 @@ export const InlineInputControl: string[] = [
|
|
|
22
22
|
|
|
23
23
|
export const InlineInputAction: string[] = [
|
|
24
24
|
// Layout
|
|
25
|
-
'layout-
|
|
25
|
+
'layout-row self-start',
|
|
26
26
|
|
|
27
27
|
// Spacing
|
|
28
28
|
'gap-sm+',
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div :class="['layout-row', 'gap-sm+']">
|
|
7
7
|
<OrInlineInputBox
|
|
8
8
|
:size="'s'"
|
|
9
|
-
:invalid="
|
|
9
|
+
:invalid="!!error"
|
|
10
10
|
>
|
|
11
11
|
<textarea
|
|
12
12
|
ref="control"
|
|
@@ -39,7 +39,10 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
</div>
|
|
41
41
|
|
|
42
|
-
<
|
|
42
|
+
<div
|
|
43
|
+
v-show="!error"
|
|
44
|
+
:class="['contents']"
|
|
45
|
+
>
|
|
43
46
|
<template v-if="hint || maxLength">
|
|
44
47
|
<OrHint>
|
|
45
48
|
{{ hint }}
|
|
@@ -52,9 +55,12 @@
|
|
|
52
55
|
</template>
|
|
53
56
|
</OrHint>
|
|
54
57
|
</template>
|
|
55
|
-
</
|
|
58
|
+
</div>
|
|
56
59
|
|
|
57
|
-
<
|
|
60
|
+
<div
|
|
61
|
+
v-show="typeof error === 'string'"
|
|
62
|
+
:class="['contents']"
|
|
63
|
+
>
|
|
58
64
|
<OrError>
|
|
59
65
|
{{ error }}
|
|
60
66
|
|
|
@@ -65,7 +71,7 @@
|
|
|
65
71
|
{{ currentLength }} / {{ maxLength }}
|
|
66
72
|
</template>
|
|
67
73
|
</OrError>
|
|
68
|
-
</
|
|
74
|
+
</div>
|
|
69
75
|
</div>
|
|
70
76
|
</template>
|
|
71
77
|
|
|
@@ -115,7 +121,7 @@ export default defineComponent({
|
|
|
115
121
|
},
|
|
116
122
|
|
|
117
123
|
error: {
|
|
118
|
-
type: String,
|
|
124
|
+
type: [String, Boolean],
|
|
119
125
|
default: undefined,
|
|
120
126
|
},
|
|
121
127
|
},
|
|
@@ -175,8 +181,6 @@ export default defineComponent({
|
|
|
175
181
|
const currentLength = computed(() => draftModelValue.value?.toString().length ?? 0);
|
|
176
182
|
const maxLength = computed(() => controlAttributes.maxlength);
|
|
177
183
|
|
|
178
|
-
const invalid = computed(() => !!props.error);
|
|
179
|
-
|
|
180
184
|
const activated = ref(false);
|
|
181
185
|
|
|
182
186
|
// Handlers
|
|
@@ -235,7 +239,6 @@ export default defineComponent({
|
|
|
235
239
|
draftModelValue,
|
|
236
240
|
currentLength,
|
|
237
241
|
maxLength,
|
|
238
|
-
invalid,
|
|
239
242
|
activated,
|
|
240
243
|
onFocus,
|
|
241
244
|
onBlur,
|
|
@@ -7,8 +7,8 @@ export const InlineTextareaRoot: string[] = [
|
|
|
7
7
|
];
|
|
8
8
|
|
|
9
9
|
export const InlineTextareaControl: string[] = [
|
|
10
|
-
//
|
|
11
|
-
'
|
|
10
|
+
// Box
|
|
11
|
+
'w-full',
|
|
12
12
|
|
|
13
13
|
// Typography
|
|
14
14
|
'typography-inherit',
|
|
@@ -20,7 +20,7 @@ export const InlineTextareaControl: string[] = [
|
|
|
20
20
|
|
|
21
21
|
export const InlineTextareaAction: string[] = [
|
|
22
22
|
// Layout
|
|
23
|
-
'layout-
|
|
23
|
+
'layout-row self-start',
|
|
24
24
|
|
|
25
25
|
// Spacing
|
|
26
26
|
'px-none',
|