@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,155 +0,0 @@
|
|
|
1
|
-
import { action } from '@storybook/addon-actions';
|
|
2
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
-
import { ref, watch } from 'vue-demi';
|
|
4
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
5
|
-
import { LabelVariant } from '../or-label-v3';
|
|
6
|
-
import OrCheckboxDocs from './OrCheckbox.docs.mdx';
|
|
7
|
-
import OrCheckbox from './OrCheckbox.vue';
|
|
8
|
-
|
|
9
|
-
export default {
|
|
10
|
-
title: 'Components/Checkbox',
|
|
11
|
-
component: OrCheckbox,
|
|
12
|
-
|
|
13
|
-
argTypes: {
|
|
14
|
-
// Slots
|
|
15
|
-
addon: {
|
|
16
|
-
type: {
|
|
17
|
-
name: 'string',
|
|
18
|
-
required: false,
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
control: { type: 'text' },
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
// Props
|
|
25
|
-
modelValue: {
|
|
26
|
-
control: { type: 'object' },
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
value: {
|
|
30
|
-
control: { type: 'text' },
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
label: {
|
|
34
|
-
control: { type: 'text' },
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
labelVariant: {
|
|
38
|
-
control: { type: 'select' },
|
|
39
|
-
options: Object.values(LabelVariant),
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
indeterminate: {
|
|
43
|
-
control: { type: 'boolean' },
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
required: {
|
|
47
|
-
control: { type: 'boolean' },
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
disabled: {
|
|
51
|
-
control: { type: 'boolean' },
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
// Events
|
|
55
|
-
'update:modelValue': {
|
|
56
|
-
table: { disable: true },
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
input: {
|
|
60
|
-
table: { disable: true },
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
focus: {
|
|
64
|
-
table: { disable: true },
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
blur: {
|
|
68
|
-
table: { disable: true },
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
parameters: {
|
|
73
|
-
layout: 'centered',
|
|
74
|
-
|
|
75
|
-
docs: {
|
|
76
|
-
page: OrCheckboxDocs,
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
design: {
|
|
80
|
-
type: 'figma',
|
|
81
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=202%3A12',
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
decorators: [
|
|
86
|
-
() => ({
|
|
87
|
-
template: `
|
|
88
|
-
<div class="flex flex-col gap-sm">
|
|
89
|
-
<story />
|
|
90
|
-
</div>
|
|
91
|
-
`,
|
|
92
|
-
}),
|
|
93
|
-
],
|
|
94
|
-
} as Meta<typeof OrCheckbox>;
|
|
95
|
-
|
|
96
|
-
const Template: StoryFn<typeof OrCheckbox> = (args) => ({
|
|
97
|
-
components: {
|
|
98
|
-
OrCheckbox,
|
|
99
|
-
OrIcon,
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
setup() {
|
|
103
|
-
// State
|
|
104
|
-
const model = ref<string[]>([]);
|
|
105
|
-
|
|
106
|
-
// Effects
|
|
107
|
-
watch(model, (value) => {
|
|
108
|
-
console.debug(value);
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
return {
|
|
112
|
-
args,
|
|
113
|
-
model,
|
|
114
|
-
onUpdateModelValue: action('update:modelValue'),
|
|
115
|
-
onFocus: action('focus'),
|
|
116
|
-
onBlur: action('blur'),
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
template: `
|
|
121
|
-
<div class="contents">
|
|
122
|
-
<OrCheckbox
|
|
123
|
-
v-model="model"
|
|
124
|
-
v-bind="args"
|
|
125
|
-
@update:modelValue="onUpdateModelValue"
|
|
126
|
-
@focus="onFocus"
|
|
127
|
-
@blur="onBlur"
|
|
128
|
-
>
|
|
129
|
-
<template #addon>
|
|
130
|
-
${args.addon}
|
|
131
|
-
</template>
|
|
132
|
-
</OrCheckbox>
|
|
133
|
-
|
|
134
|
-
<OrCheckbox
|
|
135
|
-
v-model="model"
|
|
136
|
-
value="checkbox-2"
|
|
137
|
-
label="Checkbox 2"
|
|
138
|
-
@update:modelValue="onUpdateModelValue"
|
|
139
|
-
@focus="onFocus"
|
|
140
|
-
@blur="onBlur"
|
|
141
|
-
/>
|
|
142
|
-
</div>
|
|
143
|
-
`,
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
export const Checkbox = Template.bind({});
|
|
147
|
-
|
|
148
|
-
Checkbox.args = {
|
|
149
|
-
// Slots
|
|
150
|
-
addon: '<OrIcon icon="info" />',
|
|
151
|
-
|
|
152
|
-
// Props
|
|
153
|
-
value: 'checkbox-1',
|
|
154
|
-
label: 'Checkbox 1',
|
|
155
|
-
};
|
|
@@ -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/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,16 +0,0 @@
|
|
|
1
|
-
import { DocsPage } from '@storybook/addon-docs';
|
|
2
|
-
|
|
3
|
-
```ts
|
|
4
|
-
import { OrConfirmV3 as OrConfirm } from '@onereach/ui-components';
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
<DocsPage />
|
|
8
|
-
|
|
9
|
-
## Migration Guide from V1
|
|
10
|
-
- property `denyButtonText` renamed to `cancelButtonText`
|
|
11
|
-
- property `confirmButtonColor` replaced with `confirmType`
|
|
12
|
-
- property `isLoading` renamed to `loading`
|
|
13
|
-
- property `isDisabled` renamed to `disabled`
|
|
14
|
-
- removed properties `showClose`, `closeOnClickOutside` and `size`
|
|
15
|
-
- added `open` event
|
|
16
|
-
- added `open()` and `close()` functions
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import { action } from '@storybook/addon-actions';
|
|
3
|
-
import Faker from 'faker';
|
|
4
|
-
import OrConfirmDocs from './OrConfirm.docs.mdx';
|
|
5
|
-
import OrConfirm from './OrConfirm.vue';
|
|
6
|
-
import { ConfirmType } from './props';
|
|
7
|
-
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
8
|
-
import { ref } from 'vue-demi';
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
title: 'Components/Confirm',
|
|
12
|
-
component: OrConfirm,
|
|
13
|
-
|
|
14
|
-
argTypes: {
|
|
15
|
-
// Slots
|
|
16
|
-
default: {
|
|
17
|
-
type: {
|
|
18
|
-
name: 'string',
|
|
19
|
-
required: true,
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
control: { type: 'text' },
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
header: {
|
|
26
|
-
type: {
|
|
27
|
-
name: 'string',
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
control: { type: 'text' },
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
footer: {
|
|
35
|
-
type: {
|
|
36
|
-
name: 'string',
|
|
37
|
-
required: false,
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
control: { type: 'text' },
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
// Props
|
|
44
|
-
titleText: {
|
|
45
|
-
control: { type: 'text' },
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
confirmButtonText: {
|
|
49
|
-
control: { type: 'text' },
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
cancelButtonText: {
|
|
53
|
-
control: { type: 'text' },
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
confirmType: {
|
|
57
|
-
control: { type: 'select' },
|
|
58
|
-
options: Object.values(ConfirmType),
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
loading: {
|
|
62
|
-
control: { type: 'boolean' },
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
disabled: {
|
|
66
|
-
control: { type: 'boolean' },
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
confirmationText: {
|
|
70
|
-
control: { type: 'text' },
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
textConfirmationLabel: {
|
|
74
|
-
control: { type: 'text' },
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
textConfirmationPlaceholder: {
|
|
78
|
-
control: { type: 'text' },
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
textConfirmationError: {
|
|
82
|
-
control: { type: 'text' },
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
parameters: {
|
|
87
|
-
layout: 'centered',
|
|
88
|
-
|
|
89
|
-
docs: {
|
|
90
|
-
page: OrConfirmDocs,
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
design: {
|
|
94
|
-
type: 'figma',
|
|
95
|
-
url: 'https://www.figma.com/file/o7DdkaznUW2PtX4wiSuhhQ/Core?node-id=3908%3A22792',
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
} as Meta<typeof OrConfirm>;
|
|
99
|
-
|
|
100
|
-
const Template: StoryFn<typeof OrConfirm> = (args) => ({
|
|
101
|
-
components: {
|
|
102
|
-
OrConfirm,
|
|
103
|
-
OrButton,
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
setup() {
|
|
107
|
-
const confirm = ref<InstanceType<typeof OrConfirm>>();
|
|
108
|
-
|
|
109
|
-
return {
|
|
110
|
-
args,
|
|
111
|
-
confirm,
|
|
112
|
-
onOpen: action('open'),
|
|
113
|
-
onClose: action('close'),
|
|
114
|
-
onConfirm: action('confirm'),
|
|
115
|
-
};
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
template: `
|
|
119
|
-
<div class="contents">
|
|
120
|
-
<OrButton @click="confirm.open()">Confirmation modal</OrButton>
|
|
121
|
-
|
|
122
|
-
<OrConfirm
|
|
123
|
-
ref="confirm"
|
|
124
|
-
v-bind="args"
|
|
125
|
-
@open="onOpen"
|
|
126
|
-
@close="onClose"
|
|
127
|
-
@confirm="onConfirm"
|
|
128
|
-
>
|
|
129
|
-
<template #default v-if="args.default">
|
|
130
|
-
${args.default}
|
|
131
|
-
</template>
|
|
132
|
-
<template #header v-if="args.header">
|
|
133
|
-
${args.header}
|
|
134
|
-
</template>
|
|
135
|
-
<template #footer v-if="args.footer">
|
|
136
|
-
${args.footer}
|
|
137
|
-
</template>
|
|
138
|
-
</OrConfirm>
|
|
139
|
-
</div>
|
|
140
|
-
`,
|
|
141
|
-
});
|
|
142
|
-
|
|
143
|
-
export const Default = Template.bind({});
|
|
144
|
-
Default.args = {
|
|
145
|
-
titleText: 'Delete permanently',
|
|
146
|
-
default: `Are you sure you want to delete <b>${Faker.commerce.productName()}</b> permanently?`,
|
|
147
|
-
confirmButtonText: 'Delete',
|
|
148
|
-
cancelButtonText: 'Keep it',
|
|
149
|
-
confirmType: ConfirmType.D,
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export const Loading = Template.bind({});
|
|
153
|
-
Loading.args = {
|
|
154
|
-
...Default.args,
|
|
155
|
-
default: `Are you sure you want to delete <b>${Faker.commerce.productName()}</b> permanently?<br/>Press ESC to close.`,
|
|
156
|
-
loading: true,
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export const Disabled = Template.bind({});
|
|
160
|
-
Disabled.args = {
|
|
161
|
-
...Default.args,
|
|
162
|
-
disabled: true,
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
const valToDelete = Faker.commerce.productName();
|
|
166
|
-
export const WithTextConfirmation = Template.bind({});
|
|
167
|
-
WithTextConfirmation.args = {
|
|
168
|
-
...Default.args,
|
|
169
|
-
default: `Are you sure you want to delete <b>${valToDelete}</b> permanently?<br/> Please enter name to confirm.`,
|
|
170
|
-
confirmationText: valToDelete,
|
|
171
|
-
textConfirmationLabel: 'Item name',
|
|
172
|
-
textConfirmationPlaceholder: 'Item to delete...',
|
|
173
|
-
textConfirmationError: 'Names do not match',
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
export const WithCustomFooter = Template.bind({});
|
|
177
|
-
WithCustomFooter.args = {
|
|
178
|
-
titleText: 'Delete permanently',
|
|
179
|
-
default: `Are you sure you want to delete <b>${Faker.commerce.productName()}</b> permanently?`,
|
|
180
|
-
footer: 'Footer content (ESC to close)',
|
|
181
|
-
confirmType: ConfirmType.D,
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
export const ConfirmButtonColor = Template.bind({});
|
|
185
|
-
ConfirmButtonColor.args = {
|
|
186
|
-
titleText: 'Confirm',
|
|
187
|
-
default: `Are you sure you want to <i>${Faker.hacker.verb()}</i> the <b>${Faker.hacker.noun()}</b>?`,
|
|
188
|
-
confirmType: ConfirmType.C,
|
|
189
|
-
confirmButtonText: 'Yes',
|
|
190
|
-
cancelButtonText: 'No',
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
const TemplateIsOpen: StoryFn<typeof OrConfirm> = (args) => ({
|
|
195
|
-
components: {
|
|
196
|
-
OrConfirm,
|
|
197
|
-
OrButton,
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
setup() {
|
|
201
|
-
const isOpen = ref(args.isOpen);
|
|
202
|
-
return {
|
|
203
|
-
args,
|
|
204
|
-
isOpen,
|
|
205
|
-
onClose: () => {
|
|
206
|
-
isOpen.value = false;
|
|
207
|
-
action('close')();
|
|
208
|
-
},
|
|
209
|
-
onConfirm: () => {
|
|
210
|
-
action('confirm')();
|
|
211
|
-
},
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
template: `
|
|
216
|
-
<div class="contents">
|
|
217
|
-
<OrButton @click="() => isOpen = true">Confirmation modal</OrButton>
|
|
218
|
-
|
|
219
|
-
<OrConfirm
|
|
220
|
-
v-bind="args"
|
|
221
|
-
:is-open="isOpen"
|
|
222
|
-
@close="onClose"
|
|
223
|
-
@confirm="onConfirm"
|
|
224
|
-
>
|
|
225
|
-
<template #default v-if="args.default">
|
|
226
|
-
${args.default}
|
|
227
|
-
</template>
|
|
228
|
-
<template #header v-if="args.header">
|
|
229
|
-
${args.header}
|
|
230
|
-
</template>
|
|
231
|
-
<template #footer v-if="args.footer">
|
|
232
|
-
${args.footer}
|
|
233
|
-
</template>
|
|
234
|
-
</OrConfirm>
|
|
235
|
-
</div>
|
|
236
|
-
`,
|
|
237
|
-
});
|
|
238
|
-
export const UsingIsOpenProp = TemplateIsOpen.bind({});
|
|
239
|
-
UsingIsOpenProp.argTypes = {
|
|
240
|
-
isOpen: {
|
|
241
|
-
control: { type: 'boolean' },
|
|
242
|
-
},
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
UsingIsOpenProp.args = {
|
|
246
|
-
isOpen: 'true',
|
|
247
|
-
titleText: 'Confirm',
|
|
248
|
-
default: `Are you sure you want to <i>${Faker.hacker.verb()}</i> the <b>${Faker.hacker.noun()}</b>?`,
|
|
249
|
-
confirmType: ConfirmType.C,
|
|
250
|
-
confirmButtonText: 'Yes',
|
|
251
|
-
cancelButtonText: 'No',
|
|
252
|
-
};
|