@onereach/ui-components 2.74.1-beta.2291.0 → 2.74.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/dist/bundled/v2/{OrAvatar-586e417b.js → OrAvatar-f2b1ee1c.js} +1 -1
- package/dist/bundled/v2/{OrCardCollection-1affb682.js → OrCardCollection-f48af015.js} +4 -4
- package/dist/bundled/v2/{OrConfirm-bdf57b45.js → OrConfirm-d3a9f7b9.js} +1 -1
- package/dist/bundled/v2/{OrErrorTag-97a9112b.js → OrErrorTag-4675604d.js} +1 -1
- package/dist/bundled/v2/{OrExpansionPanel-96b8f568.js → OrExpansionPanel-8968da49.js} +1 -1
- package/dist/bundled/v2/{OrFab-ed69dee1.js → OrFab-a2e49eaa.js} +1 -1
- package/dist/bundled/v2/{OrIcon-458206aa.js → OrIcon-2efd1925.js} +3 -1
- package/dist/bundled/v2/{OrIconButton-837d57f8.js → OrIconButton-876b6351.js} +1 -1
- package/dist/bundled/v2/{OrInlineInput-8fec2947.js → OrInlineInput-7a230176.js} +3 -3
- package/dist/bundled/v2/{OrInlineTextarea-e7cdb4fb.js → OrInlineTextarea-97334f79.js} +3 -3
- package/dist/bundled/v2/{OrInput-46039629.js → OrInput-d615d473.js} +5 -6
- package/dist/bundled/v2/{OrInputBox-9a31d211.js → OrInputBox-e54dcef9.js} +12 -2
- package/dist/bundled/v2/{OrMenuItem-e2693a5f.js → OrMenuItem-f295292e.js} +1 -1
- package/dist/bundled/v2/{OrModal-78f5d49e.js → OrModal-83900091.js} +1 -1
- package/dist/bundled/v2/{OrNotification-458fe937.js → OrNotification-708ce1db.js} +2 -2
- package/dist/bundled/v2/{OrPagination-daf25de2.js → OrPagination-e34482ef.js} +2 -2
- package/dist/bundled/v2/{OrSearch-05cc6c14.js → OrSearch-2828c54c.js} +2 -2
- package/dist/bundled/v2/{OrSelect-bfe76fb7.js → OrSelect-783d01b9.js} +10 -11
- package/dist/bundled/v2/{OrSidebar-a2bc21b9.js → OrSidebar-dc3c9664.js} +1 -1
- package/dist/bundled/v2/{OrSidebarCollapseButton-8297ef86.js → OrSidebarCollapseButton-e2e30766.js} +1 -1
- package/dist/bundled/v2/{OrSortHeader-565ace92.js → OrSortHeader-b1b961fc.js} +1 -1
- package/dist/bundled/v2/{OrTabs-d69780fc.js → OrTabs-9fc1ac93.js} +2 -2
- package/dist/bundled/v2/{OrTag-4085e8a7.js → OrTag-3e442bf6.js} +1 -1
- package/dist/bundled/v2/{OrTextarea-a02951f4.js → OrTextarea-1201353b.js} +3 -4
- package/dist/bundled/v2/components/index.js +25 -26
- package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +7 -8
- package/dist/bundled/v2/components/or-confirm-v3/index.js +5 -6
- package/dist/bundled/v2/components/or-error-tag-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-fab-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-icon-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/bundled/v2/components/or-input-box-v3/index.js +1 -2
- package/dist/bundled/v2/components/or-input-v3/index.js +4 -5
- package/dist/bundled/v2/components/or-menu-item-v3/index.js +2 -2
- 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/index.js +3 -3
- package/dist/bundled/v2/components/or-search-v3/index.js +5 -6
- package/dist/bundled/v2/components/or-select-v3/index.js +8 -9
- 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-sort-header-v3/index.js +2 -2
- 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/index.js +2 -3
- package/dist/bundled/v2/components/or-toast-v3/index.js +3 -3
- package/dist/bundled/v2/index.js +26 -27
- package/dist/bundled/v2/{types-309b7b94.js → types-b0d25b49.js} +1 -1
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-582e74ae.js → OrAvatar.vue_vue_type_script_lang-75c23e62.js} +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-c01a1d75.js → OrCardCollection.vue_vue_type_script_lang-010f8e48.js} +7 -7
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-a131670a.js → OrConfirm.vue_vue_type_script_lang-20309110.js} +2 -2
- package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-e2fe7ca9.js → OrErrorTag.vue_vue_type_script_lang-bfa4c580.js} +2 -2
- package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-2cc8964c.js → OrExpansionPanel.vue_vue_type_script_lang-cd3b6d36.js} +2 -2
- package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-0fe4a921.js → OrFab.vue_vue_type_script_lang-8f76f6b1.js} +2 -2
- package/dist/bundled/v3/{OrIcon-1a5c9091.js → OrIcon-0239fc17.js} +1 -1
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-bdbaad94.js → OrIcon.vue_vue_type_script_lang-6a85c6c6.js} +3 -1
- package/dist/bundled/v3/{OrIconButton-e0566ecf.js → OrIconButton-59bc1d54.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-7d1c3fe1.js → OrIconButton.vue_vue_type_script_lang-efefd119.js} +2 -2
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-66598185.js → OrInlineInput.vue_vue_type_script_lang-da4198ec.js} +4 -4
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-85adcaf9.js → OrInlineTextarea.vue_vue_type_script_lang-a7f62f75.js} +4 -4
- package/dist/bundled/v3/{OrInput-37811348.js → OrInput-9813fef6.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-de00e237.js → OrInput.vue_vue_type_script_lang-882358b4.js} +8 -9
- package/dist/bundled/v3/{OrInputBox-44f37541.js → OrInputBox-358d4856.js} +1 -1
- package/dist/{esm/v2/OrInputBox.vue_rollup-plugin-vue_script-4ba46db4.js → bundled/v3/OrInputBox.vue_vue_type_script_lang-b387d4ba.js} +1 -1
- package/dist/bundled/v3/{OrMenuItem-807e2a49.js → OrMenuItem-1917f51a.js} +1 -1
- package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-2400ec2a.js → OrMenuItem.vue_vue_type_script_lang-0b643c00.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-6b1dc231.js → OrModal.vue_vue_type_script_lang-07249365.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-d0afc1d7.js → OrNotification.vue_vue_type_script_lang-f308ec11.js} +4 -4
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f64827ef.js → OrPagination.vue_vue_type_script_lang-4d27d8b8.js} +4 -4
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-b34af2a0.js → OrSearch.vue_vue_type_script_lang-f6230fc2.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-b14e4b6b.js → OrSelect.vue_vue_type_script_lang-7a0e1dd9.js} +14 -15
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-7f3f1a16.js → OrSidebar.vue_vue_type_script_lang-35abe546.js} +1 -1
- package/dist/bundled/v3/{OrSidebarCollapseButton.vue_vue_type_script_lang-9aeba2d4.js → OrSidebarCollapseButton.vue_vue_type_script_lang-271a2fbf.js} +2 -2
- package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-a20eae87.js → OrSortHeader.vue_vue_type_script_lang-85238e0a.js} +2 -2
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-cb550e87.js → OrTabs.vue_vue_type_script_lang-f3b84f9d.js} +4 -4
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-a25a49ee.js → OrTag.vue_vue_type_script_lang-89d99975.js} +2 -2
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-d0256fc2.js → OrTextarea.vue_vue_type_script_lang-de99a858.js} +4 -5
- package/dist/bundled/v3/{OrToastContainer-6fe12712.js → OrToastContainer-3dfed0e6.js} +1 -1
- package/dist/bundled/v3/components/index.js +30 -31
- package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +12 -13
- package/dist/bundled/v3/components/or-confirm-v3/index.js +9 -10
- package/dist/bundled/v3/components/or-error-tag-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-expansion-panel-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-fab-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-icon-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-input-box-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-input-v3/index.js +7 -8
- package/dist/bundled/v3/components/or-menu-item-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-modal-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-notification-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-pagination-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-search-v3/index.js +9 -10
- package/dist/bundled/v3/components/or-select-v3/index.js +13 -14
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +6 -6
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +5 -5
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +5 -5
- package/dist/bundled/v3/components/or-sort-header-v3/index.js +3 -3
- package/dist/bundled/v3/components/or-tabs-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-tag-v3/index.js +5 -5
- package/dist/bundled/v3/components/or-textarea-v3/index.js +3 -4
- package/dist/bundled/v3/components/or-toast-v3/index.js +6 -6
- package/dist/bundled/v3/index.js +47 -48
- package/dist/bundled/v3/{types-22fbf9d6.js → types-dd2c3bf1.js} +2 -2
- package/dist/esm/v2/{OrAvatar-379ac72f.js → OrAvatar-ca3a1268.js} +1 -1
- package/dist/esm/v2/{OrCardCollection-413eeef9.js → OrCardCollection-49c63e89.js} +5 -5
- package/dist/esm/v2/{OrConfirm-2f8d9405.js → OrConfirm-d2aec18c.js} +1 -1
- package/dist/esm/v2/{OrErrorTag-80f82cdf.js → OrErrorTag-7cd5dc68.js} +1 -1
- package/dist/esm/v2/{OrExpansionPanel-729eb1e7.js → OrExpansionPanel-0a12d957.js} +1 -1
- package/dist/esm/v2/{OrFab-1d095e33.js → OrFab-d5a37b22.js} +1 -1
- package/dist/esm/v2/{OrIcon-f34e0e6f.js → OrIcon-c434985a.js} +3 -1
- package/dist/esm/v2/{OrIconButton-04a3566d.js → OrIconButton-c8bb635e.js} +1 -1
- package/dist/esm/v2/{OrInlineInput-c66ed0c0.js → OrInlineInput-d9bbdaf2.js} +3 -3
- package/dist/esm/v2/{OrInlineTextarea-3cc2fdc2.js → OrInlineTextarea-f7378459.js} +3 -3
- package/dist/esm/v2/{OrInput-cacd21a4.js → OrInput-6b064fd7.js} +5 -6
- package/dist/{bundled/v3/OrInputBox.vue_vue_type_script_lang-c4f9c8ef.js → esm/v2/OrInputBox-53d1f66d.js} +53 -3
- package/dist/esm/v2/{OrMenuItem-7b7fbf8a.js → OrMenuItem-4f810513.js} +1 -1
- package/dist/esm/v2/{OrModal-4e79e0d5.js → OrModal-7ca36163.js} +1 -1
- package/dist/esm/v2/{OrNotification-eac3867f.js → OrNotification-2013cadf.js} +2 -2
- package/dist/esm/v2/{OrPagination-1adbcadb.js → OrPagination-c2653bd1.js} +2 -2
- package/dist/esm/v2/{OrSearch-1c30f3fd.js → OrSearch-fb321813.js} +2 -2
- package/dist/esm/v2/{OrSelect-bbba5e3a.js → OrSelect-3a78ffcc.js} +10 -11
- package/dist/esm/v2/{OrSidebar-27236fbd.js → OrSidebar-a45b594d.js} +1 -1
- package/dist/esm/v2/{OrSidebarCollapseButton-cfe51a60.js → OrSidebarCollapseButton-9aa87e80.js} +1 -1
- package/dist/esm/v2/{OrSortHeader-592727dc.js → OrSortHeader-ffe6bc57.js} +1 -1
- package/dist/esm/v2/{OrTabs-96b0473d.js → OrTabs-2992f88f.js} +2 -2
- package/dist/esm/v2/{OrTag-b2906865.js → OrTag-920c6371.js} +1 -1
- package/dist/esm/v2/{OrTextarea-e1aad345.js → OrTextarea-373d0554.js} +3 -4
- package/dist/esm/v2/components/index.js +25 -26
- package/dist/esm/v2/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -8
- package/dist/esm/v2/components/or-confirm-v3/index.js +5 -6
- package/dist/esm/v2/components/or-error-tag-v3/index.js +2 -2
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/esm/v2/components/or-fab-v3/index.js +2 -2
- package/dist/esm/v2/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/v2/components/or-icon-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-input-v3/index.js +3 -3
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -3
- package/dist/esm/v2/components/or-input-v3/index.js +4 -5
- package/dist/esm/v2/components/or-menu-item-v3/index.js +2 -2
- 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/index.js +3 -3
- package/dist/esm/v2/components/or-search-v3/index.js +5 -6
- package/dist/esm/v2/components/or-select-v3/index.js +8 -9
- 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-sort-header-v3/index.js +2 -2
- 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/index.js +2 -3
- package/dist/esm/v2/components/or-toast-v3/index.js +3 -3
- package/dist/esm/v2/index.js +25 -26
- package/dist/esm/v2/{types-1f95d710.js → types-38818808.js} +1 -1
- package/dist/esm/v3/{OrAvatar-6444e693.js → OrAvatar-0dbd8be8.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-005964d2.js → OrCardCollection-e091f1a2.js} +4 -4
- package/dist/esm/v3/{OrConfirm-c35b430f.js → OrConfirm-a7f9404b.js} +1 -1
- package/dist/esm/v3/{OrErrorTag-308119de.js → OrErrorTag-0025b17c.js} +1 -1
- package/dist/esm/v3/{OrExpansionPanel-3a4282da.js → OrExpansionPanel-541cc4c1.js} +1 -1
- package/dist/esm/v3/{OrFab-61131b31.js → OrFab-588291bf.js} +1 -1
- package/dist/esm/v3/{OrIcon-34f59f73.js → OrIcon-ea40e58c.js} +3 -1
- package/dist/esm/v3/{OrIconButton-2dcfb83e.js → OrIconButton-3d32cdcf.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-4591c44d.js → OrInlineInput-72effa88.js} +3 -3
- package/dist/esm/v3/{OrInlineTextarea-22807fd6.js → OrInlineTextarea-0bb8ef1c.js} +3 -3
- package/dist/esm/v3/{OrInput-4b51848c.js → OrInput-bf9dd89f.js} +4 -4
- package/dist/esm/v3/{OrMenuItem-58707d47.js → OrMenuItem-de91aded.js} +1 -1
- package/dist/esm/v3/{OrModal-4219a6dc.js → OrModal-a5fa8240.js} +1 -1
- package/dist/esm/v3/{OrNotification-0e682c7f.js → OrNotification-8f34d624.js} +2 -2
- package/dist/esm/v3/{OrPagination-da9e5017.js → OrPagination-7b240dec.js} +2 -2
- package/dist/esm/v3/{OrSearch-b6c48f3f.js → OrSearch-d6ff7e2d.js} +1 -1
- package/dist/esm/v3/{OrSelect-35f70776.js → OrSelect-484cb336.js} +9 -9
- package/dist/esm/v3/{OrSidebar-61d84c3e.js → OrSidebar-cf07fd69.js} +1 -1
- package/dist/esm/v3/{OrSidebarCollapseButton-1b9c83ef.js → OrSidebarCollapseButton-684445f0.js} +1 -1
- package/dist/esm/v3/{OrSortHeader-a39f77f9.js → OrSortHeader-f66dcb37.js} +1 -1
- package/dist/esm/v3/{OrTabs-328d41b9.js → OrTabs-80cbb3b9.js} +2 -2
- package/dist/esm/v3/{OrTag-148ff9ae.js → OrTag-1d3fa09e.js} +1 -1
- package/dist/esm/v3/{OrTextarea-8b060a1b.js → OrTextarea-42d21f77.js} +2 -2
- package/dist/esm/v3/components/index.js +24 -24
- package/dist/esm/v3/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/v3/components/or-card-collection-v3/index.js +6 -6
- package/dist/esm/v3/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v3/components/or-error-tag-v3/index.js +2 -2
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +2 -2
- package/dist/esm/v3/components/or-fab-v3/index.js +2 -2
- package/dist/esm/v3/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/v3/components/or-icon-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-input-v3/index.js +3 -3
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +3 -3
- package/dist/esm/v3/components/or-input-v3/index.js +3 -3
- package/dist/esm/v3/components/or-menu-item-v3/index.js +2 -2
- 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/index.js +3 -3
- package/dist/esm/v3/components/or-search-v3/index.js +4 -4
- package/dist/esm/v3/components/or-select-v3/index.js +7 -7
- 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-sort-header-v3/index.js +2 -2
- 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/index.js +1 -1
- package/dist/esm/v3/components/or-toast-v3/index.js +3 -3
- package/dist/esm/v3/index.js +24 -24
- package/dist/esm/v3/{types-b79e4387.js → types-4e316bd3.js} +1 -1
- package/package.json +4 -3
- package/src/components/or-icon-v3/styles.ts +3 -0
- package/src/components/or-inline-input-v3/styles.ts +2 -2
- package/src/components/or-inline-textarea-v3/styles.ts +2 -2
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -4
- package/src/components/or-select-v3/styles.ts +4 -4
- package/src/components/or-textarea-v3/styles.ts +2 -2
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
- package/dist/bundled/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -107
- package/dist/bundled/v2/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +0 -148
- package/dist/bundled/v2/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/bundled/v2/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/bundled/v2/props-78496a2d.js +0 -12
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
- package/dist/bundled/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -107
- package/dist/bundled/v3/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +0 -130
- package/dist/bundled/v3/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/bundled/v3/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/bundled/v3/props-78496a2d.js +0 -12
- package/dist/esm/v2/OrInputBox-5c4b3104.js +0 -43
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
- package/dist/esm/v2/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -107
- package/dist/esm/v2/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-combined-input-v3/index.js +0 -145
- package/dist/esm/v2/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/esm/v2/components/or-combined-input-v3/styles.d.ts +0 -2
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.stories3.d.ts +0 -27
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +0 -107
- package/dist/esm/v3/components/or-combined-input-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +0 -129
- package/dist/esm/v3/components/or-combined-input-v3/props.d.ts +0 -1
- package/dist/esm/v3/components/or-combined-input-v3/styles.d.ts +0 -2
- package/src/components/or-combined-input-v3/OrCombinedInput.docs.mdx +0 -7
- package/src/components/or-combined-input-v3/OrCombinedInput.stories3.ts +0 -201
- package/src/components/or-combined-input-v3/OrCombinedInput.vue +0 -130
- package/src/components/or-combined-input-v3/index.ts +0 -2
- package/src/components/or-combined-input-v3/props.ts +0 -1
- package/src/components/or-combined-input-v3/styles.ts +0 -25
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue-demi';
|
|
2
|
-
import { CombinedInputSize } from './props';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
-
controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
8
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
9
|
-
size: {
|
|
10
|
-
type: PropType<CombinedInputSize>;
|
|
11
|
-
default: CombinedInputSize;
|
|
12
|
-
};
|
|
13
|
-
label: {
|
|
14
|
-
type: StringConstructor;
|
|
15
|
-
default: undefined;
|
|
16
|
-
};
|
|
17
|
-
hint: {
|
|
18
|
-
type: StringConstructor;
|
|
19
|
-
default: undefined;
|
|
20
|
-
};
|
|
21
|
-
error: {
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
default: undefined;
|
|
24
|
-
};
|
|
25
|
-
required: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
readonly: {
|
|
30
|
-
type: BooleanConstructor;
|
|
31
|
-
default: boolean;
|
|
32
|
-
};
|
|
33
|
-
disabled: {
|
|
34
|
-
type: BooleanConstructor;
|
|
35
|
-
default: boolean;
|
|
36
|
-
};
|
|
37
|
-
disableDefaultStyles: {
|
|
38
|
-
type: BooleanConstructor;
|
|
39
|
-
default: boolean;
|
|
40
|
-
};
|
|
41
|
-
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
42
|
-
size: {
|
|
43
|
-
type: PropType<CombinedInputSize>;
|
|
44
|
-
default: CombinedInputSize;
|
|
45
|
-
};
|
|
46
|
-
label: {
|
|
47
|
-
type: StringConstructor;
|
|
48
|
-
default: undefined;
|
|
49
|
-
};
|
|
50
|
-
hint: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: undefined;
|
|
53
|
-
};
|
|
54
|
-
error: {
|
|
55
|
-
type: StringConstructor;
|
|
56
|
-
default: undefined;
|
|
57
|
-
};
|
|
58
|
-
required: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
};
|
|
62
|
-
readonly: {
|
|
63
|
-
type: BooleanConstructor;
|
|
64
|
-
default: boolean;
|
|
65
|
-
};
|
|
66
|
-
disabled: {
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
default: boolean;
|
|
69
|
-
};
|
|
70
|
-
disableDefaultStyles: {
|
|
71
|
-
type: BooleanConstructor;
|
|
72
|
-
default: boolean;
|
|
73
|
-
};
|
|
74
|
-
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
75
|
-
size: CombinedInputSize;
|
|
76
|
-
label: string;
|
|
77
|
-
hint: string;
|
|
78
|
-
error: string;
|
|
79
|
-
required: boolean;
|
|
80
|
-
readonly: boolean;
|
|
81
|
-
disabled: boolean;
|
|
82
|
-
disableDefaultStyles: boolean;
|
|
83
|
-
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
84
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
85
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
86
|
-
controlGroup: import("@vue/composition-api").ComputedRef<string[]>;
|
|
87
|
-
invalid: import("@vue/composition-api").ComputedRef<boolean>;
|
|
88
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
89
|
-
size: CombinedInputSize;
|
|
90
|
-
label: string;
|
|
91
|
-
hint: string;
|
|
92
|
-
error: string;
|
|
93
|
-
required: boolean;
|
|
94
|
-
readonly: boolean;
|
|
95
|
-
disabled: boolean;
|
|
96
|
-
disableDefaultStyles: boolean;
|
|
97
|
-
} & {}, {
|
|
98
|
-
size: CombinedInputSize;
|
|
99
|
-
label: string;
|
|
100
|
-
hint: string;
|
|
101
|
-
error: string;
|
|
102
|
-
required: boolean;
|
|
103
|
-
readonly: boolean;
|
|
104
|
-
disabled: boolean;
|
|
105
|
-
disableDefaultStyles: boolean;
|
|
106
|
-
}, true>);
|
|
107
|
-
export default _default;
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { s as script$1 } from '../../OrError-19198748.js';
|
|
3
|
-
import { s as script$2 } from '../../OrHint-6863124f.js';
|
|
4
|
-
import { s as script$3 } from '../../OrLabel-f700f9fb.js';
|
|
5
|
-
import { a as InputBoxSize } from '../../OrInputBox-2467d7e4.js';
|
|
6
|
-
export { a as CombinedInputSize } from '../../OrInputBox-2467d7e4.js';
|
|
7
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, Fragment } from 'vue';
|
|
8
|
-
|
|
9
|
-
const CombinedInputRoot = [
|
|
10
|
-
// Layout
|
|
11
|
-
'layout-column',
|
|
12
|
-
// Spacing
|
|
13
|
-
'gap-xs'];
|
|
14
|
-
const CombinedInputControlGroup = [
|
|
15
|
-
// Layout
|
|
16
|
-
'layout-row',
|
|
17
|
-
// Box
|
|
18
|
-
'w-full',
|
|
19
|
-
// Shape (.or-input-box)
|
|
20
|
-
'[&_.or-input-box]:first-child:rounded-r-0', '[&_.or-input-box]:intermediate-child:rounded-0', '[&_.or-input-box]:last-child:rounded-l-0',
|
|
21
|
-
// Spacing (.or-input-box)
|
|
22
|
-
'[&_.or-input-box]:first-child:mr-[-1px]', '[&_.or-input-box]:intermediate-child:border-x-0', '[&_.or-input-box]:last-child:ml-[-1px]'];
|
|
23
|
-
|
|
24
|
-
var script = defineComponent({
|
|
25
|
-
name: 'OrCombinedInput',
|
|
26
|
-
components: {
|
|
27
|
-
OrError: script$1,
|
|
28
|
-
OrHint: script$2,
|
|
29
|
-
OrLabel: script$3
|
|
30
|
-
},
|
|
31
|
-
props: {
|
|
32
|
-
size: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: InputBoxSize.M
|
|
35
|
-
},
|
|
36
|
-
label: {
|
|
37
|
-
type: String,
|
|
38
|
-
default: undefined
|
|
39
|
-
},
|
|
40
|
-
hint: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: undefined
|
|
43
|
-
},
|
|
44
|
-
error: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: undefined
|
|
47
|
-
},
|
|
48
|
-
required: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
default: false
|
|
51
|
-
},
|
|
52
|
-
readonly: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
default: false
|
|
55
|
-
},
|
|
56
|
-
disabled: {
|
|
57
|
-
type: Boolean,
|
|
58
|
-
default: false
|
|
59
|
-
},
|
|
60
|
-
disableDefaultStyles: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: false
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
setup(props, context) {
|
|
66
|
-
// Refs
|
|
67
|
-
const root = ref();
|
|
68
|
-
// Styles
|
|
69
|
-
const rootStyles = computed(() => ['or-combined-input', ...CombinedInputRoot]);
|
|
70
|
-
const controlGroup = computed(() => [...CombinedInputControlGroup]);
|
|
71
|
-
// State
|
|
72
|
-
const invalid = computed(() => !!props.error);
|
|
73
|
-
return {
|
|
74
|
-
root,
|
|
75
|
-
rootStyles,
|
|
76
|
-
controlGroup,
|
|
77
|
-
invalid
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
83
|
-
const _component_OrLabel = resolveComponent("OrLabel");
|
|
84
|
-
const _component_OrHint = resolveComponent("OrHint");
|
|
85
|
-
const _component_OrError = resolveComponent("OrError");
|
|
86
|
-
return openBlock(), createElementBlock("div", {
|
|
87
|
-
ref: "root",
|
|
88
|
-
class: normalizeClass(_ctx.rootStyles)
|
|
89
|
-
}, [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
90
|
-
key: 0,
|
|
91
|
-
variant: 'input',
|
|
92
|
-
required: _ctx.required,
|
|
93
|
-
disabled: _ctx.disabled
|
|
94
|
-
}, {
|
|
95
|
-
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
96
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label) + " ", 1 /* TEXT */)]),
|
|
97
|
-
|
|
98
|
-
_: 3 /* FORWARDED */
|
|
99
|
-
}, 8 /* PROPS */, ["required", "disabled"])) : createCommentVNode("v-if", true), createElementVNode("div", {
|
|
100
|
-
class: normalizeClass(_ctx.controlGroup)
|
|
101
|
-
}, [renderSlot(_ctx.$slots, "default", {
|
|
102
|
-
size: _ctx.size,
|
|
103
|
-
required: _ctx.required,
|
|
104
|
-
readonly: _ctx.readonly,
|
|
105
|
-
disabled: _ctx.disabled,
|
|
106
|
-
disableDefaultStyles: _ctx.disableDefaultStyles
|
|
107
|
-
})], 2 /* CLASS */), !_ctx.invalid ? (openBlock(), createElementBlock(Fragment, {
|
|
108
|
-
key: 1
|
|
109
|
-
}, [_ctx.hint ? (openBlock(), createBlock(_component_OrHint, {
|
|
110
|
-
key: 0,
|
|
111
|
-
disabled: _ctx.disabled
|
|
112
|
-
}, {
|
|
113
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)]),
|
|
114
|
-
|
|
115
|
-
_: 1 /* STABLE */
|
|
116
|
-
}, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createBlock(_component_OrError, {
|
|
117
|
-
key: 2,
|
|
118
|
-
disabled: _ctx.disabled
|
|
119
|
-
}, {
|
|
120
|
-
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
|
|
121
|
-
|
|
122
|
-
_: 1 /* STABLE */
|
|
123
|
-
}, 8 /* PROPS */, ["disabled"]))], 2 /* CLASS */);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
script.render = render;
|
|
127
|
-
script.__file = "src/components/or-combined-input-v3/OrCombinedInput.vue";
|
|
128
|
-
|
|
129
|
-
export { script as OrCombinedInputV3 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
|
|
@@ -1,201 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
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
|
-
:required="required"
|
|
24
|
-
:readonly="readonly"
|
|
25
|
-
:disabled="disabled"
|
|
26
|
-
:disable-default-styles="disableDefaultStyles"
|
|
27
|
-
/>
|
|
28
|
-
</div>
|
|
29
|
-
|
|
30
|
-
<template v-if="!invalid">
|
|
31
|
-
<template v-if="hint">
|
|
32
|
-
<OrHint :disabled="disabled">
|
|
33
|
-
{{ hint }}
|
|
34
|
-
</OrHint>
|
|
35
|
-
</template>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<template v-else>
|
|
39
|
-
<OrError :disabled="disabled">
|
|
40
|
-
{{ error }}
|
|
41
|
-
</OrError>
|
|
42
|
-
</template>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script lang="ts">
|
|
47
|
-
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
48
|
-
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
49
|
-
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
50
|
-
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
51
|
-
import { CombinedInputSize } from './props';
|
|
52
|
-
import { CombinedInputControlGroup, CombinedInputRoot } from './styles';
|
|
53
|
-
|
|
54
|
-
export default defineComponent({
|
|
55
|
-
name: 'OrCombinedInput',
|
|
56
|
-
|
|
57
|
-
components: {
|
|
58
|
-
OrError,
|
|
59
|
-
OrHint,
|
|
60
|
-
OrLabel,
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
props: {
|
|
64
|
-
size: {
|
|
65
|
-
type: String as PropType<CombinedInputSize>,
|
|
66
|
-
default: CombinedInputSize.M,
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
label: {
|
|
70
|
-
type: String,
|
|
71
|
-
default: undefined,
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
hint: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: undefined,
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
error: {
|
|
80
|
-
type: String,
|
|
81
|
-
default: undefined,
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
required: {
|
|
85
|
-
type: Boolean,
|
|
86
|
-
default: false,
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
readonly: {
|
|
90
|
-
type: Boolean,
|
|
91
|
-
default: false,
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
disabled: {
|
|
95
|
-
type: Boolean,
|
|
96
|
-
default: false,
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
disableDefaultStyles: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
default: false,
|
|
102
|
-
},
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
setup(props, context) {
|
|
106
|
-
// Refs
|
|
107
|
-
const root = ref<HTMLElement>();
|
|
108
|
-
|
|
109
|
-
// Styles
|
|
110
|
-
const rootStyles = computed(() => [
|
|
111
|
-
'or-combined-input',
|
|
112
|
-
...CombinedInputRoot,
|
|
113
|
-
]);
|
|
114
|
-
|
|
115
|
-
const controlGroup = computed(() => [
|
|
116
|
-
...CombinedInputControlGroup,
|
|
117
|
-
]);
|
|
118
|
-
|
|
119
|
-
// State
|
|
120
|
-
const invalid = computed(() => !!props.error);
|
|
121
|
-
|
|
122
|
-
return {
|
|
123
|
-
root,
|
|
124
|
-
rootStyles,
|
|
125
|
-
controlGroup,
|
|
126
|
-
invalid,
|
|
127
|
-
};
|
|
128
|
-
},
|
|
129
|
-
});
|
|
130
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { InputBoxSize as CombinedInputSize } from '../or-input-box-v3';
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
];
|