@onereach/ui-components 4.5.0-beta.2726.0 → 4.5.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/{OrDateTimePickerMonthSelect-5fa6caa0.js → OrDateTimePickerMonthSelect-75089f80.js} +6 -3
- package/dist/bundled/v2/{OrDateTimePickerTimeSelect-aa60911c.js → OrDateTimePickerTimeSelect-3d0ef650.js} +6 -3
- package/dist/bundled/v2/components/OrCode/OrCode.js +3792 -6
- package/dist/bundled/v2/components/OrCode/index.js +2 -6
- package/dist/bundled/v2/components/OrCode/lang.js +3 -3941
- package/dist/bundled/v2/components/OrCode/theme.js +1 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +0 -1
- package/dist/bundled/v2/components/OrConfirm/index.js +0 -1
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +12 -1
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +13 -2
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -2
- package/dist/bundled/v2/components/OrModal/OrModal.js +1346 -3
- package/dist/bundled/v2/components/OrModal/index.js +0 -1
- package/dist/bundled/v2/components/OrTabsV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +12 -1
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/index.d.ts +2 -1
- package/dist/bundled/v2/components/index.js +10 -22
- package/dist/bundled/v2/{index-0d224ae5.js → index-cf2c3c27.js} +115 -3
- package/dist/bundled/v2/index.js +13 -25
- package/dist/bundled/{v3/index-e9f6b2d8.js → v2/lang-0fb8f78b.js} +4009 -73
- package/dist/bundled/v3/{index-d92d0b48.js → OrCode.vue_vue_type_script_lang-74060519.js} +235 -14
- package/dist/bundled/v3/OrCombinedInput.vue_vue_type_script_lang-cb7a88f3.js +66 -0
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ae9422fb.js → OrConfirm.vue_vue_type_script_lang-e5a8f92a.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-33719f37.js → OrDatePicker.vue_vue_type_script_lang-d071d109.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-ef95eeb6.js → OrDateTimePicker.vue_vue_type_script_lang-8aa80833.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-fe878127.js → OrDateTimePickerMonthSelect-387c2096.js} +6 -4
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-b962e4d5.js → OrDateTimePickerTimeSelect-8bdb97b7.js} +6 -4
- package/dist/bundled/{v2/useFocusTrap-104d095b.js → v3/OrModal.vue_vue_type_script_lang-ae842e5b.js} +106 -3
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-dd7222e8.js → OrTimePicker.vue_vue_type_script_lang-c52a2a0b.js} +1 -1
- package/dist/bundled/v3/components/OrCode/OrCode.js +6 -10
- package/dist/bundled/v3/components/OrCode/index.js +4 -8
- package/dist/bundled/v3/components/OrCode/lang.js +3 -3941
- package/dist/bundled/v3/components/OrCode/theme.js +1 -2
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +11 -66
- package/dist/bundled/v3/components/OrCombinedInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +3 -4
- package/dist/bundled/v3/components/OrConfirm/index.js +2 -3
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +6 -6
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +7 -7
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrModal/OrModal.js +2 -3
- package/dist/bundled/v3/components/OrModal/index.js +1 -2
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTabsV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +6 -6
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/index.d.ts +2 -1
- package/dist/bundled/v3/components/index.js +16 -29
- package/dist/bundled/v3/{index-0d224ae5.js → index-cf2c3c27.js} +115 -3
- package/dist/bundled/v3/index.js +25 -37
- package/dist/bundled/{v2/index-e9f6b2d8.js → v3/lang-0fb8f78b.js} +4009 -73
- package/dist/esm/v2/OrCombinedInput-5994d9fc.js +158 -0
- package/dist/esm/v2/{OrDatePicker-a8c95da8.js → OrDatePicker-b6ebf44a.js} +12 -1
- package/dist/esm/v2/{OrDateTimePicker-9271659e.js → OrDateTimePicker-85c08b90.js} +13 -2
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-a3a0fb4e.js → OrDateTimePickerMonthSelect-e35404a7.js} +6 -3
- package/dist/esm/v2/{OrDateTimePickerTimeSelect-0b70d0df.js → OrDateTimePickerTimeSelect-aed7d33d.js} +6 -3
- package/dist/esm/v2/{OrTabs-b9908867.js → OrTabs-653258a2.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-0c6a05f1.js → OrTimePicker-696e29ed.js} +12 -1
- package/dist/esm/v2/components/index.d.ts +2 -1
- package/dist/esm/v2/components/index.js +10 -33
- package/dist/esm/v2/components/or-combined-input-v3/index.js +6 -158
- package/dist/esm/v2/components/or-date-picker-v3/index.js +2 -2
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v2/components/or-time-picker-v3/index.js +2 -2
- package/dist/esm/v2/index.js +10 -33
- package/dist/esm/v3/OrCombinedInput-14c23a04.js +129 -0
- package/dist/esm/v3/{OrDatePicker-759653a5.js → OrDatePicker-f144d074.js} +4 -4
- package/dist/esm/v3/{OrDateTimePicker-4768a411.js → OrDateTimePicker-2214cd85.js} +5 -5
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-c07806a0.js → OrDateTimePickerMonthSelect-5a7b7b5c.js} +6 -4
- package/dist/esm/v3/{OrDateTimePickerTimeSelect-9309c434.js → OrDateTimePickerTimeSelect-e404e826.js} +6 -4
- package/dist/esm/v3/{OrTabs-f9f0892e.js → OrTabs-a2d87627.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-ba6e6857.js → OrTimePicker-68de86d9.js} +4 -4
- package/dist/esm/v3/components/index.d.ts +2 -1
- package/dist/esm/v3/components/index.js +9 -32
- package/dist/esm/v3/components/or-combined-input-v3/index.js +6 -129
- package/dist/esm/v3/components/or-date-picker-v3/index.js +2 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tabs-v3/index.js +1 -1
- package/dist/esm/v3/components/or-time-picker-v3/index.js +2 -2
- package/dist/esm/v3/index.js +9 -32
- package/package.json +4 -24
- package/src/components/index.ts +2 -1
- package/src/components/or-button/OrButton.stories.ts +8 -0
- package/src/components/or-date-picker-v3/OrDatePicker.vue +2 -0
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +2 -0
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue +7 -2
- package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue +7 -2
- package/src/components/or-tabs-v3/styles.ts +1 -1
- package/src/components/or-time-picker-v3/OrTimePicker.vue +2 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -2200
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -220
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -70
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +0 -4
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +0 -7
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -46
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v2/index-418d5c0d.js +0 -9633
- package/dist/bundled/v2/index-85c2efe8.js +0 -7122
- package/dist/bundled/v2/index-d92d0b48.js +0 -3805
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v2/markdown-7c7c4ca6.js +0 -17980
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-a5b8c6ca.js +0 -237
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-28541a68.js +0 -108
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-55b73340.js +0 -1890
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -284
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -145
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -86
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +0 -4
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +0 -7
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -46
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v3/index-418d5c0d.js +0 -9633
- package/dist/bundled/v3/index-85c2efe8.js +0 -7122
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/markdown-7c7c4ca6.js +0 -17980
- package/dist/bundled/v3/useFocusTrap-104d095b.js +0 -1348
- package/dist/esm/v2/OrRichTextEditor-8c43bb27.js +0 -923
- package/dist/esm/v2/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -220
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -59
- package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +0 -4
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/dist/esm/v3/OrRichTextEditor-b20efab9.js +0 -856
- package/dist/esm/v3/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -145
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -57
- package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +0 -4
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.docs.mdx +0 -7
- package/src/components/or-bottom-sheet-v3/OrBottomSheet.stories3.ts +0 -110
- package/src/components/or-button-v3/OrButton.docs.mdx +0 -14
- package/src/components/or-button-v3/OrButton.stories3.ts +0 -130
- package/src/components/or-card-collection-v3/OrCardCollection.docs.mdx +0 -7
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +0 -378
- package/src/components/or-card-v3/OrCard.docs.mdx +0 -10
- package/src/components/or-card-v3/OrCard.stories3.ts +0 -74
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.docs.mdx +0 -7
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.stories3.ts +0 -399
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.docs.mdx +0 -7
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.stories3.ts +0 -112
- package/src/components/or-checkbox-v3/OrCheckbox.docs.mdx +0 -12
- package/src/components/or-checkbox-v3/OrCheckbox.stories3.ts +0 -155
- 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-confirm-v3/OrConfirm.docs.mdx +0 -16
- package/src/components/or-confirm-v3/OrConfirm.stories3.ts +0 -252
- package/src/components/or-date-picker-v3/OrDatePicker.docs.mdx +0 -7
- package/src/components/or-date-picker-v3/OrDatePicker.stories3.ts +0 -174
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.docs.mdx +0 -7
- package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +0 -183
- package/src/components/or-empty-state-v3/OrEmptyState.stories3.ts +0 -87
- package/src/components/or-error-tag-v3/OrErrorTag.docs.mdx +0 -8
- package/src/components/or-error-tag-v3/OrErrorTag.stories3.ts +0 -56
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.docs.mdx +0 -7
- package/src/components/or-expansion-panel-v3/OrExpansionPanel.stories3.ts +0 -137
- package/src/components/or-fab-v3/OrFab.docs.mdx +0 -7
- package/src/components/or-fab-v3/OrFab.stories3.ts +0 -81
- package/src/components/or-form-group-v3/OrFormGroup.stories3.ts +0 -114
- package/src/components/or-icon-button-v3/OrIconButton.docs.mdx +0 -14
- package/src/components/or-icon-button-v3/OrIconButton.stories3.ts +0 -105
- package/src/components/or-icon-v3/OrIcon.docs.mdx +0 -12
- package/src/components/or-icon-v3/OrIcon.stories3.ts +0 -53
- package/src/components/or-inline-input-v3/OrInlineInput.docs.mdx +0 -7
- package/src/components/or-inline-input-v3/OrInlineInput.stories3.ts +0 -137
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.docs.mdx +0 -7
- package/src/components/or-inline-textarea-v3/OrInlineTextarea.stories3.ts +0 -126
- package/src/components/or-input-v3/OrInput.docs.mdx +0 -16
- package/src/components/or-input-v3/OrInput.stories3.ts +0 -222
- package/src/components/or-link-v3/OrLink.docs.mdx +0 -7
- package/src/components/or-link-v3/OrLink.stories3.ts +0 -163
- package/src/components/or-loader-v3/OrLoader.docs.mdx +0 -14
- package/src/components/or-loader-v3/OrLoader.stories3.ts +0 -86
- package/src/components/or-menu-item-v3/OrMenuItem.docs.mdx +0 -7
- package/src/components/or-menu-item-v3/OrMenuItem.stories3.ts +0 -90
- package/src/components/or-menu-v3/OrMenu.docs.mdx +0 -7
- package/src/components/or-menu-v3/OrMenu.stories3.ts +0 -167
- package/src/components/or-modal-v3/OrModal.docs.mdx +0 -10
- package/src/components/or-modal-v3/OrModal.stories3.ts +0 -278
- package/src/components/or-notification-v3/OrNotification.docs.mdx +0 -7
- package/src/components/or-notification-v3/OrNotification.stories3.ts +0 -122
- package/src/components/or-overlay-v3/OrOverlay.docs.mdx +0 -11
- package/src/components/or-overlay-v3/OrOverlay.stories3.ts +0 -61
- package/src/components/or-pagination-v3/OrPagination.docs.mdx +0 -7
- package/src/components/or-pagination-v3/OrPagination.stories3.ts +0 -81
- package/src/components/or-popover-v3/OrPopover.docs.mdx +0 -11
- package/src/components/or-popover-v3/OrPopover.stories3.ts +0 -115
- package/src/components/or-progress-v3/OrProgress.docs.mdx +0 -12
- package/src/components/or-progress-v3/OrProgress.stories3.ts +0 -220
- package/src/components/or-radio-group-v3/OrRadioGroup.stories3.ts +0 -81
- package/src/components/or-radio-v3/OrRadio.docs.mdx +0 -11
- package/src/components/or-radio-v3/OrRadio.stories3.ts +0 -151
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -7
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -142
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -766
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/props.ts +0 -4
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -54
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +0 -40
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +0 -254
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +0 -213
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +0 -22
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +0 -120
- package/src/components/or-search-v3/OrSearch.docs.mdx +0 -16
- package/src/components/or-search-v3/OrSearch.stories3.ts +0 -126
- package/src/components/or-segmented-control-v3/OrSegmentedControl.docs.mdx +0 -7
- package/src/components/or-segmented-control-v3/OrSegmentedControl.stories3.ts +0 -100
- package/src/components/or-select-v3/OrSelect.docs.mdx +0 -17
- package/src/components/or-select-v3/OrSelect.stories3.ts +0 -508
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -13
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +0 -415
- package/src/components/or-skeleton-v3/OrSkeleton.docs.mdx +0 -14
- package/src/components/or-skeleton-v3/OrSkeleton.stories3.ts +0 -144
- package/src/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.docs.mdx +0 -7
- package/src/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.stories3.ts +0 -59
- package/src/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.docs.mdx +0 -6
- package/src/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.stories3.ts +0 -80
- package/src/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.docs.mdx +0 -7
- package/src/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.stories3.ts +0 -88
- package/src/components/or-switch-v3/OrSwitch.docs.mdx +0 -7
- package/src/components/or-switch-v3/OrSwitch.stories3.ts +0 -155
- package/src/components/or-tab-v3/OrTab.docs.mdx +0 -7
- package/src/components/or-tab-v3/OrTab.stories3.ts +0 -74
- package/src/components/or-tabs-v3/OrTabs.docs.mdx +0 -7
- package/src/components/or-tabs-v3/OrTabs.stories3.ts +0 -140
- package/src/components/or-tag-v3/OrTag.docs.mdx +0 -13
- package/src/components/or-tag-v3/OrTag.stories3.ts +0 -213
- package/src/components/or-tags-v3/OrTags.docs.mdx +0 -7
- package/src/components/or-tags-v3/OrTags.stories3.ts +0 -101
- package/src/components/or-teleport-v3/OrTeleport.docs.mdx +0 -7
- package/src/components/or-teleport-v3/OrTeleport.stories3.ts +0 -60
- package/src/components/or-text-v3/OrText.docs.mdx +0 -7
- package/src/components/or-text-v3/OrText.stories3.ts +0 -124
- package/src/components/or-textarea-v3/OrTextarea.docs.mdx +0 -14
- package/src/components/or-textarea-v3/OrTextarea.stories3.ts +0 -164
- package/src/components/or-time-picker-v3/OrTimePicker.docs.mdx +0 -7
- package/src/components/or-time-picker-v3/OrTimePicker.stories3.ts +0 -170
- package/src/components/or-toast-v3/OrToast.stories3.ts +0 -67
- package/src/components/or-toast-v3/or-toast-container-v3/OrToastContainer.docs.mdx +0 -123
- package/src/components/or-toast-v3/or-toast-container-v3/OrToastContainer.stories3.ts +0 -119
- package/src/components/or-tooltip-v3/OrTooltip.docs.mdx +0 -10
- package/src/components/or-tooltip-v3/OrTooltip.stories3.ts +0 -84
- /package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-b3f213b0.js → OrTabs.vue_vue_type_script_lang-9d4221f1.js} +0 -0
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { action } from '@storybook/addon-actions';
|
|
2
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
-
import { ref } from 'vue-demi';
|
|
4
|
-
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
5
|
-
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
6
|
-
import OrBottomSheetDocs from './OrBottomSheet.docs.mdx';
|
|
7
|
-
import OrBottomSheet from './OrBottomSheet.vue';
|
|
8
|
-
import { BottomSheetVariant } from './props';
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
title: 'Components/Bottom Sheet',
|
|
12
|
-
component: OrBottomSheet,
|
|
13
|
-
|
|
14
|
-
argTypes: {
|
|
15
|
-
// Slots
|
|
16
|
-
header: {
|
|
17
|
-
type: {
|
|
18
|
-
name: 'string',
|
|
19
|
-
required: false,
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
control: { type: 'text' },
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
default: {
|
|
26
|
-
type: {
|
|
27
|
-
name: 'string',
|
|
28
|
-
required: true,
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
control: { type: 'text' },
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// Props
|
|
35
|
-
variant: {
|
|
36
|
-
control: { type: 'select' },
|
|
37
|
-
options: Object.values(BottomSheetVariant),
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
// Events
|
|
41
|
-
'update:state': {
|
|
42
|
-
table: { disable: true },
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
parameters: {
|
|
47
|
-
layout: 'centered',
|
|
48
|
-
|
|
49
|
-
docs: {
|
|
50
|
-
page: OrBottomSheetDocs,
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
design: {
|
|
54
|
-
type: 'figma',
|
|
55
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=2793%3A15600',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
} as Meta<typeof OrBottomSheet>;
|
|
59
|
-
|
|
60
|
-
const Template: StoryFn<typeof OrBottomSheet> = (args) => ({
|
|
61
|
-
components: {
|
|
62
|
-
OrBottomSheet,
|
|
63
|
-
OrButton,
|
|
64
|
-
OrMenuItem,
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
setup() {
|
|
68
|
-
// Refs
|
|
69
|
-
const bottomSheet = ref<InstanceType<typeof OrBottomSheet>>();
|
|
70
|
-
|
|
71
|
-
return {
|
|
72
|
-
args,
|
|
73
|
-
bottomSheet,
|
|
74
|
-
onUpdateState: action('update:state'),
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
template: `
|
|
79
|
-
<div class="contents">
|
|
80
|
-
<OrButton @click="bottomSheet.open()">Open</OrButton>
|
|
81
|
-
|
|
82
|
-
<OrBottomSheet
|
|
83
|
-
ref="bottomSheet"
|
|
84
|
-
v-bind="args"
|
|
85
|
-
@update:state="onUpdateState"
|
|
86
|
-
>
|
|
87
|
-
<template #header>
|
|
88
|
-
${args.header}
|
|
89
|
-
</template>
|
|
90
|
-
|
|
91
|
-
${args.default}
|
|
92
|
-
</OrBottomSheet>
|
|
93
|
-
</div>
|
|
94
|
-
`,
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
export const BottomSheet = Template.bind({});
|
|
98
|
-
|
|
99
|
-
BottomSheet.args = {
|
|
100
|
-
// Slots
|
|
101
|
-
header: 'Title',
|
|
102
|
-
|
|
103
|
-
default: `
|
|
104
|
-
<OrMenuItem>Item 1</OrMenuItem>
|
|
105
|
-
<OrMenuItem>Item 2</OrMenuItem>
|
|
106
|
-
<OrMenuItem>Item 3</OrMenuItem>
|
|
107
|
-
<OrMenuItem>Item 4</OrMenuItem>
|
|
108
|
-
<OrMenuItem>Item 5</OrMenuItem>
|
|
109
|
-
`,
|
|
110
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DocsPage } from '@storybook/addon-docs';
|
|
2
|
-
|
|
3
|
-
```ts
|
|
4
|
-
import { OrButtonV3 as OrButton } from '@onereach/ui-components';
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
<DocsPage />
|
|
8
|
-
|
|
9
|
-
## Migration Guide from V1
|
|
10
|
-
- property `type` renamed to `variant`
|
|
11
|
-
- property `htmlButtonType` renamed to `type`
|
|
12
|
-
- property `isDisabled` renamed to `disabled`
|
|
13
|
-
- property `isLoading` renamed to `loading`
|
|
14
|
-
- removed properties `content`, `size`, `icon`, `iconPosition`, and `loadingType`
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { action } from '@storybook/addon-actions';
|
|
2
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
4
|
-
import OrButtonDocs from './OrButton.docs.mdx';
|
|
5
|
-
import OrButton from './OrButton.vue';
|
|
6
|
-
import { ButtonColor, ButtonType, ButtonVariant } from './props';
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Components/Buttons/Button',
|
|
10
|
-
component: OrButton,
|
|
11
|
-
|
|
12
|
-
argTypes: {
|
|
13
|
-
// Slots
|
|
14
|
-
default: {
|
|
15
|
-
type: {
|
|
16
|
-
name: 'string',
|
|
17
|
-
required: true,
|
|
18
|
-
},
|
|
19
|
-
|
|
20
|
-
control: { type: 'text' },
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
// Props
|
|
24
|
-
type: {
|
|
25
|
-
control: { type: 'select' },
|
|
26
|
-
options: Object.values(ButtonType),
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
variant: {
|
|
30
|
-
control: { type: 'select' },
|
|
31
|
-
options: Object.values(ButtonVariant),
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
color: {
|
|
35
|
-
control: { type: 'select' },
|
|
36
|
-
options: Object.values(ButtonColor),
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
activated: {
|
|
40
|
-
table: { disable: true },
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
disabled: {
|
|
44
|
-
control: { type: 'boolean' },
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
loading: {
|
|
48
|
-
control: { type: 'boolean' },
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
loadingText: {
|
|
52
|
-
control: { type: 'text' },
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
parameters: {
|
|
57
|
-
layout: 'centered',
|
|
58
|
-
|
|
59
|
-
docs: {
|
|
60
|
-
page: OrButtonDocs,
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
design: {
|
|
64
|
-
type: 'figma',
|
|
65
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=202%3A9',
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
} as Meta<typeof OrButton>;
|
|
69
|
-
|
|
70
|
-
const Template: StoryFn<typeof OrButton> = (args) => ({
|
|
71
|
-
components: {
|
|
72
|
-
OrButton,
|
|
73
|
-
OrIcon,
|
|
74
|
-
},
|
|
75
|
-
|
|
76
|
-
setup() {
|
|
77
|
-
return {
|
|
78
|
-
args,
|
|
79
|
-
handleClick: action('click'),
|
|
80
|
-
handleFocus: action('focus'),
|
|
81
|
-
handleBlur: action('blur'),
|
|
82
|
-
handleMouseover: action('mouseover'),
|
|
83
|
-
handleMouseout: action('moouseout'),
|
|
84
|
-
handleMousemove: action('moousemove'),
|
|
85
|
-
handleMouseenter: action('mouseenter'),
|
|
86
|
-
handleMouseleave: action('museleave'),
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
template: `
|
|
91
|
-
<OrButton
|
|
92
|
-
v-bind="args"
|
|
93
|
-
@click="handleClick"
|
|
94
|
-
@focus="handleFocus"
|
|
95
|
-
@blur="handleBlur"
|
|
96
|
-
@mouseover="handleMouseover"
|
|
97
|
-
@mouseout="handleMouseout"
|
|
98
|
-
@mousemove="handleMousemove"
|
|
99
|
-
@mouseenter="handleMouseenter"
|
|
100
|
-
@mouseleave="handleMouseleave"
|
|
101
|
-
class="test-class"
|
|
102
|
-
>
|
|
103
|
-
${args.default}
|
|
104
|
-
</OrButton>
|
|
105
|
-
`,
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
export const Default = Template.bind({});
|
|
109
|
-
|
|
110
|
-
Default.args = {
|
|
111
|
-
// Slots
|
|
112
|
-
default: 'Button',
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
export const WithIcons = Template.bind({});
|
|
116
|
-
|
|
117
|
-
WithIcons.args = {
|
|
118
|
-
// Slots
|
|
119
|
-
default: '<OrIcon icon="photo" /> Button',
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export const Link = Template.bind({});
|
|
123
|
-
|
|
124
|
-
Link.args = {
|
|
125
|
-
// Slots
|
|
126
|
-
default: 'Link <OrIcon icon="arrow_drop_down" />',
|
|
127
|
-
|
|
128
|
-
// Props
|
|
129
|
-
variant: ButtonVariant.Link,
|
|
130
|
-
};
|
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
import { action } from '@storybook/addon-actions';
|
|
2
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
-
import { ref } from 'vue-demi';
|
|
4
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
5
|
-
import OrCardCollectionDocs from './OrCardCollection.docs.mdx';
|
|
6
|
-
import OrCardCollection from './OrCardCollection.vue';
|
|
7
|
-
import { defaultViewModes } from './props';
|
|
8
|
-
import { OrCardV3 as OrCard } from '../or-card-v3';
|
|
9
|
-
import { CardCollectionItem } from './types';
|
|
10
|
-
|
|
11
|
-
export default {
|
|
12
|
-
title: 'Components/Card Collection',
|
|
13
|
-
component: OrCardCollection,
|
|
14
|
-
|
|
15
|
-
argTypes: {
|
|
16
|
-
// Slots
|
|
17
|
-
item: {
|
|
18
|
-
type: {
|
|
19
|
-
name: 'string',
|
|
20
|
-
required: true,
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
control: { type: 'text' },
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
header: {
|
|
27
|
-
type: {
|
|
28
|
-
name: 'string',
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
control: { type: 'text' },
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
// Props
|
|
35
|
-
items: {
|
|
36
|
-
control: { type: 'object' },
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
view: {
|
|
40
|
-
control: { type: 'select' },
|
|
41
|
-
options: defaultViewModes.map(mode => mode.view),
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
sort: {
|
|
45
|
-
control: { type: 'object' },
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
sortOptions: {
|
|
49
|
-
control: { type: 'object' },
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
search: {
|
|
53
|
-
control: { type: 'text' },
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
searchPlaceholder: {
|
|
57
|
-
control: { type: 'text' },
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
searchDebounce: {
|
|
61
|
-
control: { type: 'number' },
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
// Events
|
|
65
|
-
viewChange: {
|
|
66
|
-
table: { disable: true },
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
sortChange: {
|
|
70
|
-
table: { disable: true },
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
searchChange: {
|
|
74
|
-
table: { disable: true },
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
parameters: {
|
|
79
|
-
docs: {
|
|
80
|
-
page: OrCardCollectionDocs,
|
|
81
|
-
},
|
|
82
|
-
layout: 'fullscreen',
|
|
83
|
-
},
|
|
84
|
-
} as Meta<typeof OrCardCollection>;
|
|
85
|
-
|
|
86
|
-
const Template: StoryFn<typeof OrCardCollection> = (args) => ({
|
|
87
|
-
components: {
|
|
88
|
-
OrCardCollection,
|
|
89
|
-
OrCard,
|
|
90
|
-
OrIcon,
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
setup() {
|
|
94
|
-
const sort = ref(args.sort);
|
|
95
|
-
const onSortChange = (newSort: string) => {
|
|
96
|
-
sort.value = newSort;
|
|
97
|
-
action('searchChange')(newSort);
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
return {
|
|
101
|
-
args,
|
|
102
|
-
sort,
|
|
103
|
-
onSortChange,
|
|
104
|
-
onViewChange: action('viewChange'),
|
|
105
|
-
onSearchChange: action('searchChange'),
|
|
106
|
-
};
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
template: `
|
|
110
|
-
<div class="p-md bg-surface-1 dark:bg-surface-1-dark">
|
|
111
|
-
<OrCardCollection
|
|
112
|
-
v-bind="args"
|
|
113
|
-
:sort="sort"
|
|
114
|
-
@viewChange="onViewChange"
|
|
115
|
-
@sortChange="onSortChange"
|
|
116
|
-
@searchChange="onSearchChange"
|
|
117
|
-
>
|
|
118
|
-
<template #item="{item, mode}">
|
|
119
|
-
<OrCard>${args.item} ({{mode}})</OrCard>
|
|
120
|
-
</template>
|
|
121
|
-
<template #addon>${args.addon}</template>
|
|
122
|
-
</OrCardCollection>
|
|
123
|
-
</div>
|
|
124
|
-
`,
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
export const Default = Template.bind({});
|
|
128
|
-
|
|
129
|
-
Default.args = {
|
|
130
|
-
// Slots
|
|
131
|
-
item: '{{ item.label }}',
|
|
132
|
-
addon: '<OrIcon icon="info" />',
|
|
133
|
-
|
|
134
|
-
// Props
|
|
135
|
-
items: Array.from<string, CardCollectionItem>([
|
|
136
|
-
'Alfa',
|
|
137
|
-
'Bravo',
|
|
138
|
-
'Charlie',
|
|
139
|
-
'Delta',
|
|
140
|
-
'Echo',
|
|
141
|
-
'Foxtrot',
|
|
142
|
-
'Golf',
|
|
143
|
-
'Hotel',
|
|
144
|
-
'India',
|
|
145
|
-
'Juliett',
|
|
146
|
-
'Kilo',
|
|
147
|
-
'Lima',
|
|
148
|
-
'Mike',
|
|
149
|
-
'November',
|
|
150
|
-
'Oscar',
|
|
151
|
-
'Papa',
|
|
152
|
-
'Quebec',
|
|
153
|
-
'Romeo',
|
|
154
|
-
'Sierra',
|
|
155
|
-
'Tango',
|
|
156
|
-
'Uniform',
|
|
157
|
-
'Victor',
|
|
158
|
-
'Whiskey',
|
|
159
|
-
'X-Ray',
|
|
160
|
-
'Yankee',
|
|
161
|
-
'Zulu',
|
|
162
|
-
], (item) => ({
|
|
163
|
-
key: item.toLowerCase(),
|
|
164
|
-
label: item,
|
|
165
|
-
})),
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
export const WithSorting = Template.bind({});
|
|
169
|
-
|
|
170
|
-
WithSorting.args = {
|
|
171
|
-
...Default.args,
|
|
172
|
-
|
|
173
|
-
// Props
|
|
174
|
-
sort: 'bar',
|
|
175
|
-
sortOptions: [
|
|
176
|
-
{
|
|
177
|
-
label: 'Foo',
|
|
178
|
-
value: 'foo',
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
label: 'Bar',
|
|
182
|
-
value: 'bar',
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
label: 'Baz',
|
|
186
|
-
value: 'baz',
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
label: 'Qux',
|
|
190
|
-
value: 'qux',
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export const OverrideViewContainer: StoryFn<typeof OrCardCollection> = (args) => ({
|
|
197
|
-
components: {
|
|
198
|
-
OrCardCollection,
|
|
199
|
-
OrCard,
|
|
200
|
-
},
|
|
201
|
-
|
|
202
|
-
setup() {
|
|
203
|
-
return {
|
|
204
|
-
args,
|
|
205
|
-
onViewChange: action('viewChange'),
|
|
206
|
-
onSortChange: action('sortChange'),
|
|
207
|
-
onSearchChange: action('searchChange'),
|
|
208
|
-
};
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
template: `
|
|
212
|
-
<div class="p-md bg-surface-1 dark:bg-surface-1-dark">
|
|
213
|
-
<OrCardCollection
|
|
214
|
-
v-bind="args"
|
|
215
|
-
@viewChange="onViewChange"
|
|
216
|
-
@sortChange="onSortChange"
|
|
217
|
-
@searchChange="onSearchChange"
|
|
218
|
-
>
|
|
219
|
-
<template #header="{mode}">
|
|
220
|
-
${args.header}
|
|
221
|
-
</template>
|
|
222
|
-
<template #grid="{items}">
|
|
223
|
-
<div class="grid grid-cols-3">
|
|
224
|
-
<OrCard
|
|
225
|
-
v-for="item in items"
|
|
226
|
-
:key="item.key"
|
|
227
|
-
>
|
|
228
|
-
{{ item.label }}
|
|
229
|
-
</OrCard>
|
|
230
|
-
</div>
|
|
231
|
-
</template>
|
|
232
|
-
<template #list="{items}">
|
|
233
|
-
<ul>
|
|
234
|
-
<li
|
|
235
|
-
v-for="item in items"
|
|
236
|
-
:key="item.key"
|
|
237
|
-
>
|
|
238
|
-
- {{ item.label }}
|
|
239
|
-
</li>
|
|
240
|
-
</ul>
|
|
241
|
-
</template>
|
|
242
|
-
</OrCardCollection>
|
|
243
|
-
</div>
|
|
244
|
-
`,
|
|
245
|
-
});
|
|
246
|
-
|
|
247
|
-
OverrideViewContainer.args = {
|
|
248
|
-
...Default.args,
|
|
249
|
-
header: '<div class="typography-headline-3">Custom {{ mode }}</div>',
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
export const ExtraViewMode: StoryFn<typeof OrCardCollection> = (args) => ({
|
|
253
|
-
components: {
|
|
254
|
-
OrCardCollection,
|
|
255
|
-
OrCard,
|
|
256
|
-
},
|
|
257
|
-
|
|
258
|
-
setup() {
|
|
259
|
-
return {
|
|
260
|
-
args,
|
|
261
|
-
defaultViewModes,
|
|
262
|
-
onViewChange: action('viewChange'),
|
|
263
|
-
onSearchChange: action('searchChange'),
|
|
264
|
-
};
|
|
265
|
-
},
|
|
266
|
-
|
|
267
|
-
template: `
|
|
268
|
-
<div class="p-md bg-surface-1 dark:bg-surface-1-dark">
|
|
269
|
-
<OrCardCollection
|
|
270
|
-
v-bind="args"
|
|
271
|
-
:view-modes="[...defaultViewModes, {view: 'mymode', icon: 'timeline'}]"
|
|
272
|
-
@viewChange="onViewChange"
|
|
273
|
-
@searchChange="onSearchChange"
|
|
274
|
-
>
|
|
275
|
-
<template #item="{item, mode}">
|
|
276
|
-
<OrCard>${args.item} ({{mode}})</OrCard>
|
|
277
|
-
</template>
|
|
278
|
-
<template #mymode="{items}">
|
|
279
|
-
<div class="typography-headline-3">My view mode</div>
|
|
280
|
-
<div class="grid grid-cols-3">
|
|
281
|
-
<OrCard
|
|
282
|
-
v-for="item in items"
|
|
283
|
-
:key="item.key"
|
|
284
|
-
>
|
|
285
|
-
{{ item.label }} (timeline)
|
|
286
|
-
</OrCard>
|
|
287
|
-
</div>
|
|
288
|
-
</template>
|
|
289
|
-
</OrCardCollection>
|
|
290
|
-
</div>
|
|
291
|
-
`,
|
|
292
|
-
});
|
|
293
|
-
|
|
294
|
-
ExtraViewMode.args = {
|
|
295
|
-
...Default.args,
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
export const WithLink: StoryFn<typeof OrCardCollection> = (args) => ({
|
|
299
|
-
components: {
|
|
300
|
-
OrCardCollection,
|
|
301
|
-
OrCard,
|
|
302
|
-
OrIcon,
|
|
303
|
-
},
|
|
304
|
-
|
|
305
|
-
setup() {
|
|
306
|
-
return {
|
|
307
|
-
args,
|
|
308
|
-
onViewChange: action('viewChange'),
|
|
309
|
-
onSortChange: action('sortChange'),
|
|
310
|
-
onSearchChange: action('searchChange'),
|
|
311
|
-
};
|
|
312
|
-
},
|
|
313
|
-
|
|
314
|
-
template: `
|
|
315
|
-
<div class="p-md bg-surface-1 dark:bg-surface-1-dark">
|
|
316
|
-
<OrCardCollection
|
|
317
|
-
v-bind="args"
|
|
318
|
-
@viewChange="onViewChange"
|
|
319
|
-
@sortChange="onSortChange"
|
|
320
|
-
@searchChange="onSearchChange"
|
|
321
|
-
>
|
|
322
|
-
<template #item="{item}">
|
|
323
|
-
<a href="#" @click.prevent><OrCard>${args.item}</OrCard></a>
|
|
324
|
-
</template>
|
|
325
|
-
</OrCardCollection>
|
|
326
|
-
</div>
|
|
327
|
-
`,
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
WithLink.args = {
|
|
331
|
-
...Default.args,
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
export const EmptySearchResults: StoryFn<typeof OrCardCollection> = (args) => ({
|
|
335
|
-
components: {
|
|
336
|
-
OrCardCollection,
|
|
337
|
-
OrCard,
|
|
338
|
-
OrIcon,
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
setup() {
|
|
342
|
-
return {
|
|
343
|
-
args,
|
|
344
|
-
onViewChange: action('viewChange'),
|
|
345
|
-
onSortChange: action('sortChange'),
|
|
346
|
-
onSearchChange: action('searchChange'),
|
|
347
|
-
};
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
template: `
|
|
351
|
-
<div class="p-md h-screen bg-surface-1 dark:bg-surface-1-dark">
|
|
352
|
-
<OrCardCollection
|
|
353
|
-
v-bind="args"
|
|
354
|
-
@viewChange="onViewChange"
|
|
355
|
-
@sortChange="onSortChange"
|
|
356
|
-
@searchChange="onSearchChange"
|
|
357
|
-
>
|
|
358
|
-
<template #noSearchResults="{search}">
|
|
359
|
-
<p class="text-center typography-headline-3">No results for "{{search}}"</p>
|
|
360
|
-
</template>
|
|
361
|
-
</OrCardCollection>
|
|
362
|
-
</div>
|
|
363
|
-
`,
|
|
364
|
-
});
|
|
365
|
-
|
|
366
|
-
EmptySearchResults.args = {
|
|
367
|
-
...Default.args,
|
|
368
|
-
search: 'My favorite ..',
|
|
369
|
-
items: [],
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
export const CustomizeSearch = Template.bind({});
|
|
373
|
-
|
|
374
|
-
CustomizeSearch.args = {
|
|
375
|
-
...Default.args,
|
|
376
|
-
searchPlaceholder: 'What you want to find today?',
|
|
377
|
-
searchDebounce: 0,
|
|
378
|
-
};
|