@onereach/ui-components 5.0.1-beta.3131.0 → 5.0.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/components/OrCheckboxV3/OrCheckbox.js +2 -3
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.vue.d.ts +5 -5
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +1 -1
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v2/components/OrLabelV3/OrLabel.js +3 -7
- package/dist/bundled/v2/components/OrLabelV3/OrLabel.vue.d.ts +5 -16
- package/dist/bundled/v2/components/OrLabelV3/props.d.ts +1 -2
- package/dist/bundled/v2/components/OrLabelV3/props.js +0 -1
- package/dist/bundled/v2/components/OrLabelV3/styles.d.ts +2 -2
- package/dist/bundled/v2/components/OrLabelV3/styles.js +5 -14
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +24 -142
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.vue.d.ts +0 -14
- package/dist/bundled/v2/components/OrSelectV3/styles.d.ts +1 -3
- package/dist/bundled/v2/components/OrSelectV3/styles.js +2 -12
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/directives/dropdown-close.js +2 -0
- package/dist/bundled/v2/directives/dropdown-open.js +3 -1
- package/dist/bundled/v2/index.js +2 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-c93da401.js → OrCardCollection.vue_vue_type_script_lang-40124ef0.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-38736023.js → OrCheckbox.vue_vue_type_script_lang-eeb6b419.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-51bbd047.js → OrCheckboxGroup.vue_vue_type_script_lang-3b25afe5.js} +2 -2
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-e67747a4.js → OrCheckboxTree.vue_vue_type_script_lang-ab30a5c4.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-0e34e3c4.js → OrCode.vue_vue_type_script_lang-a99a2768.js} +1 -1
- package/dist/bundled/v3/{OrCombinedInput.vue_vue_type_script_lang-230d4d9c.js → OrCombinedInput.vue_vue_type_script_lang-cb7a88f3.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-383e286f.js → OrConfirm.vue_vue_type_script_lang-3f6484d7.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-ae3aabc6.js → OrDatePicker.vue_vue_type_script_lang-15cde361.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-911a50a3.js → OrDateTimePicker.vue_vue_type_script_lang-e3f9a844.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-eff1f44b.js → OrDateTimePickerPopoverHeader-d9eef487.js} +1 -1
- package/dist/bundled/v3/{OrFormGroup.vue_vue_type_script_lang-d67479fc.js → OrFormGroup.vue_vue_type_script_lang-1c6844d6.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-ec80afeb.js → OrInput.vue_vue_type_script_lang-0ddddd27.js} +1 -1
- package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-fcdfd80d.js → OrLabel.vue_vue_type_script_lang-3e11ab8a.js} +3 -6
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-08ab2220.js → OrRadio.vue_vue_type_script_lang-48c2bc6b.js} +1 -1
- package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-d84948fc.js → OrRadioGroup.vue_vue_type_script_lang-d7f6f8ca.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-12bbade9.js → OrSearch.vue_vue_type_script_lang-495149b0.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-5f42a363.js → OrSelect.vue_vue_type_script_lang-cb556343.js} +8 -36
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-14b4ec0a.js → OrSwitch.vue_vue_type_script_lang-ee55263f.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-00010fb4.js → OrTagInput.vue_vue_type_script_lang-9f594179.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-a7cfbe82.js → OrTextarea.vue_vue_type_script_lang-7562cca1.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-a3554386.js → OrTimePicker.vue_vue_type_script_lang-7de3a004.js} +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +5 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +4 -4
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +6 -6
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +5 -5
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +4 -4
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +3 -3
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +4 -5
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +3 -3
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +3 -3
- package/dist/bundled/v3/components/OrCodeV3/index.js +2 -2
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +3 -3
- package/dist/bundled/v3/components/OrCombinedInputV3/index.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +4 -4
- package/dist/bundled/v3/components/OrConfirmV3/index.js +3 -3
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +4 -4
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -4
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +3 -3
- package/dist/bundled/v3/components/OrFormGroupV3/index.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +3 -3
- package/dist/bundled/v3/components/OrInputV3/index.js +2 -2
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.js +3 -4
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +3 -12
- package/dist/bundled/v3/components/OrLabelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrLabelV3/props.d.ts +1 -2
- package/dist/bundled/v3/components/OrLabelV3/props.js +0 -1
- package/dist/bundled/v3/components/OrLabelV3/styles.d.ts +2 -2
- package/dist/bundled/v3/components/OrLabelV3/styles.js +5 -14
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +5 -5
- package/dist/bundled/v3/components/OrRadioGroupV3/index.js +4 -4
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +3 -3
- package/dist/bundled/v3/components/OrRadioV3/index.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +4 -4
- package/dist/bundled/v3/components/OrSearchV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +43 -93
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +0 -7
- package/dist/bundled/v3/components/OrSelectV3/index.js +4 -4
- package/dist/bundled/v3/components/OrSelectV3/styles.d.ts +1 -3
- package/dist/bundled/v3/components/OrSelectV3/styles.js +2 -12
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +3 -3
- package/dist/bundled/v3/components/OrSwitchV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +3 -3
- package/dist/bundled/v3/components/OrTagInputV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +3 -3
- package/dist/bundled/v3/components/OrTextareaV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +4 -4
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/index.js +21 -21
- package/dist/bundled/v3/directives/dropdown-close.js +2 -0
- package/dist/bundled/v3/directives/dropdown-open.js +3 -1
- package/dist/bundled/v3/index.js +22 -22
- package/dist/esm/v2/{OrCardCollection-10ae5e3a.js → OrCardCollection-9aaa7a3c.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-ae903071.js → OrCheckbox-db66b4ea.js} +3 -4
- package/dist/esm/v2/{OrCheckboxGroup-74dc7c1d.js → OrCheckboxGroup-a04f27fe.js} +2 -2
- package/dist/esm/v2/{OrCheckboxTree-19f5d69b.js → OrCheckboxTree-f48db82f.js} +1 -1
- package/dist/esm/v2/{OrCode-65f78f9f.js → OrCode-dd915faf.js} +1 -1
- package/dist/esm/v2/{OrCombinedInput-2639e3e1.js → OrCombinedInput-45187323.js} +1 -1
- package/dist/esm/v2/{OrConfirm-d2ae622a.js → OrConfirm-a0875502.js} +1 -1
- package/dist/esm/v2/{OrDatePicker-3eef3059.js → OrDatePicker-0b119ef4.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-aeebd5ea.js → OrDateTimePicker-061c7472.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-5044ee23.js → OrDateTimePicker.vue_rollup-plugin-vue_script-18dea32e.js} +3 -3
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-83eb5ad1.js → OrDateTimePickerPopoverHeader-30ec0bf4.js} +1 -1
- package/dist/esm/v2/{OrFormGroup-9000fcdf.js → OrFormGroup-29a514db.js} +1 -1
- package/dist/esm/v2/{OrInput-fbed0b61.js → OrInput-99ccfff7.js} +3 -3
- package/dist/esm/v2/{OrLabel-4a3d8904.js → OrLabel-63380256.js} +6 -18
- package/dist/esm/v2/{OrRadio-0fc3ae14.js → OrRadio-b32dfbfe.js} +1 -1
- package/dist/esm/v2/{OrRadioGroup-1108883d.js → OrRadioGroup-d1c2e460.js} +2 -2
- package/dist/esm/v2/{OrSearch-598dee09.js → OrSearch-f49e5f70.js} +1 -1
- package/dist/esm/v2/{OrSelect-36461157.js → OrSelect-5e9508c9.js} +27 -156
- package/dist/esm/v2/{OrSwitch-a3da6bec.js → OrSwitch-e49ce2d8.js} +1 -1
- package/dist/esm/v2/{OrTagInput-400f0605.js → OrTagInput-5b1ac86e.js} +1 -1
- package/dist/esm/v2/{OrTextarea-6fe8b65f.js → OrTextarea-824f7048.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-b6c79be1.js → OrTimePicker-d73ce31e.js} +4 -4
- package/dist/esm/v2/components/index.js +23 -23
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +5 -5
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +5 -5
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v2/components/or-code-v3/index.js +2 -2
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-picker-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-form-group-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-label-v3/OrLabel.vue.d.ts +5 -16
- package/dist/esm/v2/components/or-label-v3/index.js +1 -1
- package/dist/esm/v2/components/or-label-v3/props.d.ts +1 -2
- package/dist/esm/v2/components/or-label-v3/styles.d.ts +2 -2
- package/dist/esm/v2/components/or-radio-group-v3/index.js +4 -4
- package/dist/esm/v2/components/or-radio-v3/index.js +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +3 -3
- package/dist/esm/v2/components/or-select-v3/OrSelect.vue.d.ts +0 -14
- package/dist/esm/v2/components/or-select-v3/index.js +6 -6
- package/dist/esm/v2/components/or-select-v3/styles.d.ts +1 -3
- package/dist/esm/v2/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v2/directives/index.js +1 -1
- package/dist/esm/{v3/dropdown-open-06d651cf.js → v2/dropdown-open-e1f90e0a.js} +5 -1
- package/dist/esm/v2/index.js +23 -23
- package/dist/esm/v3/{OrCardCollection-7d647b53.js → OrCardCollection-5a10ca80.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-a571fc90.js → OrCheckbox-09f62aab.js} +2 -3
- package/dist/esm/v3/{OrCheckboxGroup-7fe25d85.js → OrCheckboxGroup-6c054793.js} +2 -2
- package/dist/esm/v3/{OrCheckboxTree-bea23696.js → OrCheckboxTree-bb32455e.js} +1 -1
- package/dist/esm/v3/{OrCode-fd372d76.js → OrCode-98aceeef.js} +1 -1
- package/dist/esm/v3/{OrCombinedInput-6dd0f75d.js → OrCombinedInput-2800ee8b.js} +1 -1
- package/dist/esm/v3/{OrConfirm-de678c6c.js → OrConfirm-8d0351b9.js} +1 -1
- package/dist/esm/v3/{OrDatePicker-10c4e1ea.js → OrDatePicker-819007d7.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-044dd6fb.js → OrDateTimePicker-7b08665c.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-ae493df9.js → OrDateTimePickerPopoverHeader-c3900e9a.js} +1 -1
- package/dist/esm/v3/{OrFormGroup-c4631ef0.js → OrFormGroup-9f581536.js} +1 -1
- package/dist/esm/v3/{OrInput-487c7632.js → OrInput-cfc9d445.js} +1 -1
- package/dist/esm/v3/{OrLabel-d4c46bb6.js → OrLabel-4da56db0.js} +7 -19
- package/dist/esm/v3/{OrRadio-48cd02a9.js → OrRadio-7b722b16.js} +1 -1
- package/dist/esm/v3/{OrRadioGroup-82d10aa8.js → OrRadioGroup-58c0214c.js} +2 -2
- package/dist/esm/v3/{OrSearch-998e4390.js → OrSearch-c823ee5e.js} +1 -1
- package/dist/esm/v3/{OrSelect-1ef6f9d9.js → OrSelect-d4bbddf1.js} +47 -135
- package/dist/esm/v3/{OrSwitch-f4d9e196.js → OrSwitch-a6efd081.js} +1 -1
- package/dist/esm/v3/{OrTagInput-65e725b0.js → OrTagInput-b5f6be7c.js} +1 -1
- package/dist/esm/v3/{OrTextarea-f3412790.js → OrTextarea-6c471ccd.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-ef98ec36.js → OrTimePicker-27be4172.js} +4 -4
- package/dist/esm/v3/components/index.js +22 -22
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +5 -5
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v3/components/or-code-v3/index.js +2 -2
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-form-group-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +3 -12
- package/dist/esm/v3/components/or-label-v3/index.js +1 -1
- package/dist/esm/v3/components/or-label-v3/props.d.ts +1 -2
- package/dist/esm/v3/components/or-label-v3/styles.d.ts +2 -2
- package/dist/esm/v3/components/or-radio-group-v3/index.js +4 -4
- package/dist/esm/v3/components/or-radio-v3/index.js +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +0 -7
- package/dist/esm/v3/components/or-select-v3/index.js +6 -6
- package/dist/esm/v3/components/or-select-v3/styles.d.ts +1 -3
- package/dist/esm/v3/components/or-switch-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v3/directives/index.js +1 -1
- package/dist/esm/{v2/dropdown-open-06d651cf.js → v3/dropdown-open-e1f90e0a.js} +5 -1
- package/dist/esm/v3/index.js +22 -22
- package/package.json +4 -9
- package/src/components/or-checkbox-v3/OrCheckbox.vue +0 -1
- package/src/components/or-input-v3/OrInput.vue +0 -1
- package/src/components/or-label-v3/OrLabel.vue +5 -9
- package/src/components/or-label-v3/props.ts +0 -1
- package/src/components/or-label-v3/styles.ts +4 -16
- package/src/components/or-select-v3/OrSelect.vue +27 -123
- package/src/components/or-select-v3/styles.ts +1 -18
- package/src/components/or-toast/constants.ts +4 -4
- package/src/directives/dropdown-close.ts +3 -0
- package/src/directives/dropdown-open.ts +4 -1
- package/dist/bundled/v2/components/OrSelect/stories.helpers.d.ts +0 -6
- package/dist/bundled/v3/components/OrSelect/stories.helpers.d.ts +0 -6
- package/dist/esm/v2/components/or-select/stories.helpers.d.ts +0 -6
- package/dist/esm/v3/components/or-select/stories.helpers.d.ts +0 -6
- package/src/components/or-avatar/OrAvatar.stories.ts +0 -44
- package/src/components/or-button/OrButton.stories.ts +0 -364
- package/src/components/or-button-v2/OrButton.stories.ts +0 -136
- package/src/components/or-card/OrCard.stories.ts +0 -58
- package/src/components/or-card-collection/OrCardCollection.stories.ts +0 -110
- package/src/components/or-checkbox/OrCheckbox.stories.ts +0 -383
- package/src/components/or-chips/OrChips.stories.ts +0 -96
- package/src/components/or-chips/or-chip/OrChip.stories.ts +0 -59
- package/src/components/or-code/OrCode.stories.ts +0 -328
- package/src/components/or-collapse/OrCollapse.stories.ts +0 -654
- package/src/components/or-color-picker/OrColorPicker.stories.ts +0 -48
- package/src/components/or-confirm/OrConfirm.stories.ts +0 -175
- package/src/components/or-date-time-picker/OrDateTimePicker.stories.ts +0 -162
- package/src/components/or-error/OrError.stories.ts +0 -35
- package/src/components/or-floating/OrFloating.stories.ts +0 -81
- package/src/components/or-hint/OrHint.stories.ts +0 -26
- package/src/components/or-icon/OrIcon.stories.ts +0 -74
- package/src/components/or-icon/or-icon-tips.stories.mdx +0 -26
- package/src/components/or-icon-button-v2/OrIconButton.stories.ts +0 -134
- package/src/components/or-inline-text-edit/OrInlineTextEdit.stories.ts +0 -187
- package/src/components/or-input/OrInput.stories.ts +0 -375
- package/src/components/or-input/or-textbox-migration.stories.mdx +0 -32
- package/src/components/or-label/OrLabel.stories.ts +0 -64
- package/src/components/or-list/OrList.stories.ts +0 -229
- package/src/components/or-list-of-inputs/OrListOfInputs.stories.ts +0 -164
- package/src/components/or-loader/OrLoader.stories.ts +0 -43
- package/src/components/or-modal/OrModal.stories.ts +0 -215
- package/src/components/or-notification/OrNotification.stories.ts +0 -98
- package/src/components/or-number-input/OrNumberInput.stories.ts +0 -354
- package/src/components/or-overflow-menu/OrOverflowMenu.stories.ts +0 -167
- package/src/components/or-overlay/OrOverlay.stories.ts +0 -53
- package/src/components/or-password/OrPassword.stories.ts +0 -367
- package/src/components/or-progress/OrProgress.stories.ts +0 -162
- package/src/components/or-radio/OrRadio.stories.ts +0 -143
- package/src/components/or-search/OrSearch.stories.ts +0 -402
- package/src/components/or-select/OrSelect.stories.ts +0 -330
- package/src/components/or-select/partials/OrSelectContent.stories.ts +0 -191
- package/src/components/or-select/partials/OrSelectInput.stories.ts +0 -115
- package/src/components/or-select/stories.helpers.ts +0 -40
- package/src/components/or-sidebar/OrSidebar.stories.ts +0 -242
- package/src/components/or-skeleton/OrSkeleton.stories.ts +0 -120
- package/src/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.stories.ts +0 -35
- package/src/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.stories.ts +0 -53
- package/src/components/or-skeleton/or-skeleton-text/OrSkeletonText.stories.ts +0 -52
- package/src/components/or-slider/OrSlider.stories.ts +0 -49
- package/src/components/or-stepper/OrStepper.stories.ts +0 -50
- package/src/components/or-switch/OrSwitch.stories.ts +0 -194
- package/src/components/or-tabs/OrTabs.stories.ts +0 -166
- package/src/components/or-tag/OrTag.stories.ts +0 -87
- package/src/components/or-teleport/OrTeleport.stories.ts +0 -54
- package/src/components/or-textarea/OrTextarea.stories.ts +0 -367
- package/src/components/or-textbox/OrTextbox.stories.ts +0 -596
- package/src/components/or-toast/OrToast.stories.ts +0 -59
- package/src/components/or-toast/or-toast-container/OrToastContainer.stories.mdx +0 -101
- package/src/components/or-toast/or-toast-container/OrToastContainer.stories.ts +0 -96
- package/src/components/or-tooltip/OrTooltip.stories.ts +0 -205
- package/src/hooks/useResponsive/useResponsive.stories.mdx +0 -26
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-f3d67e5d.js → OrDateTimePickerPopoverHeader-a4f77733.js} +0 -0
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { OrProgress, OrProgressColors, OrProgressTypes } from './index';
|
|
2
|
-
import { Story } from '@storybook/vue';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'Components/OrProgress',
|
|
6
|
-
|
|
7
|
-
component: OrProgress,
|
|
8
|
-
|
|
9
|
-
argTypes: {
|
|
10
|
-
progress: {
|
|
11
|
-
control: {
|
|
12
|
-
type: 'range',
|
|
13
|
-
min: 0,
|
|
14
|
-
max: 1,
|
|
15
|
-
step: 0.0001,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
color: {
|
|
19
|
-
options: Object.values(OrProgressColors),
|
|
20
|
-
control: 'select',
|
|
21
|
-
},
|
|
22
|
-
type: {
|
|
23
|
-
options: Object.values(OrProgressTypes),
|
|
24
|
-
control: 'select',
|
|
25
|
-
},
|
|
26
|
-
header: {
|
|
27
|
-
control: 'text',
|
|
28
|
-
description: 'Header Slot content',
|
|
29
|
-
},
|
|
30
|
-
label: {
|
|
31
|
-
control: 'text',
|
|
32
|
-
description: 'Header Label Slot content',
|
|
33
|
-
},
|
|
34
|
-
percent: {
|
|
35
|
-
control: 'text',
|
|
36
|
-
description: 'Header Percent Slot content',
|
|
37
|
-
},
|
|
38
|
-
footer: {
|
|
39
|
-
control: 'text',
|
|
40
|
-
description: 'Footer Slot content',
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const Template: Story = (args, { argTypes }) => ({
|
|
46
|
-
props: Object.keys(argTypes),
|
|
47
|
-
components: {
|
|
48
|
-
OrProgress,
|
|
49
|
-
},
|
|
50
|
-
template: `
|
|
51
|
-
<div>
|
|
52
|
-
<or-progress v-bind="$props">
|
|
53
|
-
<template v-if="${!!args.header}" v-slot:header>
|
|
54
|
-
${args.header}
|
|
55
|
-
</template>
|
|
56
|
-
<template v-if="${!!args.label}" v-slot:label>
|
|
57
|
-
${args.label}
|
|
58
|
-
</template>
|
|
59
|
-
<template v-if="${!!args.percent}" v-slot:percent="{ value }">
|
|
60
|
-
${args.percent}
|
|
61
|
-
</template>
|
|
62
|
-
<template v-if="${!!args.footer}" v-slot:footer="{ value }">
|
|
63
|
-
${args.footer}
|
|
64
|
-
</template>
|
|
65
|
-
</or-progress>
|
|
66
|
-
</div>
|
|
67
|
-
`,
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export const Default = Template.bind({});
|
|
71
|
-
Default.args = {
|
|
72
|
-
progress: 0.5,
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
export const Circle = Template.bind({});
|
|
76
|
-
Circle.args = {
|
|
77
|
-
progress: 0.5,
|
|
78
|
-
type: OrProgressTypes.circle,
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export const WithValue = Template.bind({});
|
|
82
|
-
WithValue.args = {
|
|
83
|
-
maxValue: 200,
|
|
84
|
-
value: 100,
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export const CircleWithValue = Template.bind({});
|
|
88
|
-
CircleWithValue.args = {
|
|
89
|
-
...Circle.args,
|
|
90
|
-
maxValue: 200,
|
|
91
|
-
value: 100,
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export const Loading = Template.bind({});
|
|
95
|
-
Loading.args = {
|
|
96
|
-
...Default.args,
|
|
97
|
-
isLoading: true,
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export const CircleLoading = Template.bind({});
|
|
101
|
-
CircleLoading.args = {
|
|
102
|
-
...Circle.args,
|
|
103
|
-
isLoading: true,
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export const WithColor = Template.bind({});
|
|
107
|
-
WithColor.args = {
|
|
108
|
-
progress: 0.75,
|
|
109
|
-
color: OrProgressColors.warning,
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export const CircleWithColor = Template.bind({});
|
|
113
|
-
CircleWithColor.args = {
|
|
114
|
-
type: OrProgressTypes.circle,
|
|
115
|
-
progress: 0.75,
|
|
116
|
-
color: OrProgressColors.primary,
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export const WithHeaderText = Template.bind({});
|
|
120
|
-
WithHeaderText.args = {
|
|
121
|
-
...Default.args,
|
|
122
|
-
headerText: 'Progress',
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
export const WithFooterText = Template.bind({});
|
|
126
|
-
WithFooterText.args = {
|
|
127
|
-
...Default.args,
|
|
128
|
-
footerText: 'Progress',
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
export const WithHeaderAndPrecision = Template.bind({});
|
|
132
|
-
WithHeaderAndPrecision.args = {
|
|
133
|
-
...WithHeaderText.args,
|
|
134
|
-
progress: 0.54321,
|
|
135
|
-
precision: 3,
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export const WithHeaderSlot = Template.bind({});
|
|
139
|
-
WithHeaderSlot.args = {
|
|
140
|
-
...Default.args,
|
|
141
|
-
header: '<div>Custom <i>header</i></div>',
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
export const WithFooterSlot = Template.bind({});
|
|
145
|
-
WithFooterSlot.args = {
|
|
146
|
-
...Default.args,
|
|
147
|
-
footer: '<div>Custom <i>footer</i></div>',
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
export const WithLabelSlot = Template.bind({});
|
|
151
|
-
WithLabelSlot.args = {
|
|
152
|
-
...Default.args,
|
|
153
|
-
label: '<div style="font-weight: normal"><b>Storage</b> usage</div>',
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
export const ScopedSlots = Template.bind({});
|
|
157
|
-
ScopedSlots.args = {
|
|
158
|
-
...WithValue.args,
|
|
159
|
-
headerText: 'Service',
|
|
160
|
-
percent: '{{value}} used',
|
|
161
|
-
footer: '<b>{{value}}</b> of {{$props.maxValue}} Mb',
|
|
162
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import OrRadio from './OrRadio.vue';
|
|
2
|
-
import { OrRadioGroup } from '../or-radio-group';
|
|
3
|
-
import { ArgTypes, Story } from '@storybook/vue';
|
|
4
|
-
import { action } from '@storybook/addon-actions';
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Components/OrRadio',
|
|
8
|
-
component: OrRadio,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const defaultMixin = (argTypes: ArgTypes) => ({
|
|
12
|
-
props: Object.keys(argTypes),
|
|
13
|
-
|
|
14
|
-
components: {
|
|
15
|
-
OrRadio,
|
|
16
|
-
OrRadioGroup,
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
modelValue: '',
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
methods: {
|
|
26
|
-
action: action('update:modelValue'),
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const Template: Story = (_args, { argTypes }) => ({
|
|
31
|
-
mixins: [defaultMixin(argTypes)],
|
|
32
|
-
|
|
33
|
-
template: `
|
|
34
|
-
<or-radio v-model="modelValue" v-bind="$props" @update:modelValue="action"/>
|
|
35
|
-
`,
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
const TemplateGroup: Story = (_args, { argTypes }) => ({
|
|
39
|
-
mixins: [defaultMixin(argTypes)],
|
|
40
|
-
|
|
41
|
-
template: `
|
|
42
|
-
<div>
|
|
43
|
-
<or-radio-group v-bind="$props" v-model="modelValue" @update:modelValue="action">
|
|
44
|
-
<or-radio label="Radio 1" value="value 1"/>
|
|
45
|
-
<or-radio label="Radio 2" value="value 2"/>
|
|
46
|
-
<or-radio label="Radio 3" value="value 3"/>
|
|
47
|
-
<or-radio label="Radio 4" value="value 4"/>
|
|
48
|
-
</or-radio-group>
|
|
49
|
-
</div>
|
|
50
|
-
`,
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
const TemplateGroupWithValue: Story = (_args, { argTypes }) => ({
|
|
54
|
-
mixins: [defaultMixin(argTypes)],
|
|
55
|
-
|
|
56
|
-
data() {
|
|
57
|
-
return {
|
|
58
|
-
modelValue: {
|
|
59
|
-
a: 1,
|
|
60
|
-
b: { a: [1, 2, 3] },
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
template: `
|
|
66
|
-
<div>
|
|
67
|
-
<or-radio-group v-bind="$props" v-model="modelValue" @update:modelValue="action">
|
|
68
|
-
<or-radio label="Radio 1" :value="{a: 1,b: { a: [1, 2, 3] }}"/>
|
|
69
|
-
<or-radio label="Radio 2" :value="{a: 2, b: { b: [1, 2, 3] }}"/>
|
|
70
|
-
<or-radio label="Radio 3" :value="{a: 3, b: { c: [1, 2, 3] }}"/>
|
|
71
|
-
<or-radio label="Radio 4" :value="{a: 4, b: { d: [1, 2, 3] }}"/>
|
|
72
|
-
</or-radio-group>
|
|
73
|
-
</div>
|
|
74
|
-
`,
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
const TemplateWithValue: Story = (_args, { argTypes }) => ({
|
|
78
|
-
mixins: [defaultMixin(argTypes)],
|
|
79
|
-
|
|
80
|
-
data() {
|
|
81
|
-
return {
|
|
82
|
-
modelValue: {
|
|
83
|
-
a: 1,
|
|
84
|
-
b: { a: [1, 2, 3] },
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
template: '<or-radio v-model="modelValue" v-bind="$props" @update:modelValue="action"/>',
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
export const Default = Template.bind({});
|
|
93
|
-
Default.args = {
|
|
94
|
-
label: 'Radio Button',
|
|
95
|
-
value: {
|
|
96
|
-
a: 1,
|
|
97
|
-
b: { a: [1, 2, 3] },
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
export const Disabled = Template.bind({});
|
|
102
|
-
Disabled.args = {
|
|
103
|
-
...Default.args,
|
|
104
|
-
isDisabled: true,
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export const Active = TemplateWithValue.bind({});
|
|
108
|
-
Active.args = {
|
|
109
|
-
...Default.args,
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
export const ActiveDisabled = TemplateWithValue.bind({});
|
|
113
|
-
ActiveDisabled.args = {
|
|
114
|
-
...Default.args,
|
|
115
|
-
isDisabled: true,
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export const IsUncheckable = TemplateWithValue.bind({});
|
|
119
|
-
IsUncheckable.args = {
|
|
120
|
-
...Default.args,
|
|
121
|
-
isUncheckable: true,
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
export const Group = TemplateGroup.bind({});
|
|
125
|
-
export const GroupDisabled = TemplateGroup.bind({});
|
|
126
|
-
GroupDisabled.args = {
|
|
127
|
-
isDisabled: true,
|
|
128
|
-
};
|
|
129
|
-
export const GroupRow = TemplateGroup.bind({});
|
|
130
|
-
GroupRow.args = {
|
|
131
|
-
isColumn: false,
|
|
132
|
-
isRow: true,
|
|
133
|
-
};
|
|
134
|
-
export const GroupIsUncheckable = TemplateGroup.bind({});
|
|
135
|
-
GroupIsUncheckable.args = {
|
|
136
|
-
isUncheckable: true,
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
export const GroupValue = TemplateGroupWithValue.bind({});
|
|
140
|
-
export const GroupValueDisabled = TemplateGroupWithValue.bind({});
|
|
141
|
-
GroupValueDisabled.args = {
|
|
142
|
-
...GroupDisabled.args,
|
|
143
|
-
};
|
|
@@ -1,402 +0,0 @@
|
|
|
1
|
-
import { ArgTypes, Story } from '@storybook/vue';
|
|
2
|
-
|
|
3
|
-
import { action } from '@storybook/addon-actions';
|
|
4
|
-
|
|
5
|
-
import OrSearch from './OrSearch.vue';
|
|
6
|
-
import { OrIcon } from '../or-icon';
|
|
7
|
-
import { OrSwitch } from '../or-switch';
|
|
8
|
-
import { OrIconButton } from '../or-button-v2';
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
title: 'Components/OrInputs/OrSearch',
|
|
12
|
-
component: OrSearch,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const defaultMixin = (argTypes: ArgTypes) => ({
|
|
16
|
-
props: Object.keys(argTypes),
|
|
17
|
-
|
|
18
|
-
components: {
|
|
19
|
-
OrSearch,
|
|
20
|
-
OrIcon,
|
|
21
|
-
OrSwitch,
|
|
22
|
-
OrIconButton,
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
data() {
|
|
26
|
-
return {
|
|
27
|
-
inputValue: '',
|
|
28
|
-
defaultValue: 'Default value',
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
methods: {
|
|
33
|
-
action: action('update:modelValue'),
|
|
34
|
-
onFocus: action('focus'),
|
|
35
|
-
onBlur: action('blur'),
|
|
36
|
-
actionClick: action('click'),
|
|
37
|
-
clear: action('clear'),
|
|
38
|
-
search: action('search'),
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
const Template: Story = (_args, { argTypes }) => ({
|
|
43
|
-
mixins: [defaultMixin(argTypes)],
|
|
44
|
-
|
|
45
|
-
template: `
|
|
46
|
-
<div>
|
|
47
|
-
<or-search
|
|
48
|
-
v-model="inputValue"
|
|
49
|
-
v-bind="$props"
|
|
50
|
-
@update:modelValue="action"
|
|
51
|
-
@focus="onFocus"
|
|
52
|
-
@blur="onBlur"
|
|
53
|
-
@clear="clear"
|
|
54
|
-
@search="search"
|
|
55
|
-
/>
|
|
56
|
-
</div>
|
|
57
|
-
`,
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
const TemplateWithoutVModel: Story = (_args, { argTypes }) => ({
|
|
61
|
-
mixins: [defaultMixin(argTypes)],
|
|
62
|
-
|
|
63
|
-
template: `
|
|
64
|
-
<div>
|
|
65
|
-
<or-search
|
|
66
|
-
v-bind="$props"
|
|
67
|
-
@update:modelValue="action"
|
|
68
|
-
@focus="onFocus"
|
|
69
|
-
@blur="onBlur"
|
|
70
|
-
@clear="clear"
|
|
71
|
-
@search="search"
|
|
72
|
-
/>
|
|
73
|
-
</div>
|
|
74
|
-
`,
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
const TemplateLabelAppend: Story = (_args, { argTypes }) => ({
|
|
78
|
-
mixins: [defaultMixin(argTypes)],
|
|
79
|
-
|
|
80
|
-
template: `
|
|
81
|
-
<or-search
|
|
82
|
-
v-model="inputValue"
|
|
83
|
-
v-bind="$props"
|
|
84
|
-
@update:modelValue="action"
|
|
85
|
-
@focus="onFocus"
|
|
86
|
-
@blur="onBlur"
|
|
87
|
-
@search="search"
|
|
88
|
-
>
|
|
89
|
-
<or-icon slot="label-append" icon="code"/>
|
|
90
|
-
</or-search>
|
|
91
|
-
`,
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
const TemplateLabelSlot: Story = (_args, { argTypes }) => ({
|
|
95
|
-
mixins: [defaultMixin(argTypes)],
|
|
96
|
-
|
|
97
|
-
template: `
|
|
98
|
-
<or-search
|
|
99
|
-
v-model="inputValue"
|
|
100
|
-
v-bind="$props"
|
|
101
|
-
@update:modelValue="action"
|
|
102
|
-
@focus="onFocus"
|
|
103
|
-
@blur="onBlur"
|
|
104
|
-
@search="search"
|
|
105
|
-
>
|
|
106
|
-
<div slot="label-default">
|
|
107
|
-
<div>Label Slot</div>
|
|
108
|
-
</div>
|
|
109
|
-
</or-search>
|
|
110
|
-
`,
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
const TemplateSlotPrepend: Story = (_args, { argTypes }) => ({
|
|
114
|
-
mixins: [defaultMixin(argTypes)],
|
|
115
|
-
|
|
116
|
-
template: `
|
|
117
|
-
<or-search
|
|
118
|
-
v-model="inputValue"
|
|
119
|
-
v-bind="$props"
|
|
120
|
-
@update:modelValue="action"
|
|
121
|
-
@focus="onFocus"
|
|
122
|
-
@blur="onBlur"
|
|
123
|
-
@search="search"
|
|
124
|
-
>
|
|
125
|
-
<or-icon-button
|
|
126
|
-
slot="prepend"
|
|
127
|
-
type="icon"
|
|
128
|
-
icon="clear"
|
|
129
|
-
@click="actionClick"
|
|
130
|
-
/>
|
|
131
|
-
</or-search>
|
|
132
|
-
`,
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
const TemplateSlotAppend: Story = (_args, { argTypes }) => ({
|
|
136
|
-
mixins: [defaultMixin(argTypes)],
|
|
137
|
-
|
|
138
|
-
template: `
|
|
139
|
-
<or-search
|
|
140
|
-
v-model="inputValue"
|
|
141
|
-
v-bind="$props"
|
|
142
|
-
@update:modelValue="action"
|
|
143
|
-
@focus="onFocus"
|
|
144
|
-
@blur="onBlur"
|
|
145
|
-
@search="search"
|
|
146
|
-
>
|
|
147
|
-
<or-icon-button
|
|
148
|
-
slot="append"
|
|
149
|
-
type="icon"
|
|
150
|
-
icon="clear"
|
|
151
|
-
@click="actionClick"
|
|
152
|
-
/>
|
|
153
|
-
</or-search>
|
|
154
|
-
`,
|
|
155
|
-
});
|
|
156
|
-
|
|
157
|
-
const TemplateWithValue: Story = (_args, { argTypes }) => ({
|
|
158
|
-
mixins: [defaultMixin(argTypes)],
|
|
159
|
-
|
|
160
|
-
template: `
|
|
161
|
-
<or-search
|
|
162
|
-
v-bind="$props"
|
|
163
|
-
v-model="defaultValue"
|
|
164
|
-
@update:modelValue="action"
|
|
165
|
-
@focus="onFocus"
|
|
166
|
-
@blur="onBlur"
|
|
167
|
-
@search="search"
|
|
168
|
-
/>
|
|
169
|
-
`,
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
const TemplateDynamicError: Story = (_args, { argTypes }) => ({
|
|
173
|
-
mixins: [defaultMixin(argTypes)],
|
|
174
|
-
|
|
175
|
-
computed: {
|
|
176
|
-
hasError() {
|
|
177
|
-
return (this as any).inputValue.length !== 4;
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
template: `
|
|
182
|
-
<div>
|
|
183
|
-
<or-search
|
|
184
|
-
v-bind="$props"
|
|
185
|
-
v-model="inputValue"
|
|
186
|
-
:is-invalid="hasError"
|
|
187
|
-
@update:modelValue="action"
|
|
188
|
-
@focus="onFocus"
|
|
189
|
-
@blur="onBlur"
|
|
190
|
-
@search="search"
|
|
191
|
-
/>
|
|
192
|
-
|
|
193
|
-
<or-search
|
|
194
|
-
v-bind="$props"
|
|
195
|
-
v-model="inputValue"
|
|
196
|
-
:is-invalid="hasError"
|
|
197
|
-
@update:modelValue="action"
|
|
198
|
-
@focus="onFocus"
|
|
199
|
-
@blur="onBlur"
|
|
200
|
-
@search="search"
|
|
201
|
-
/>
|
|
202
|
-
</div>
|
|
203
|
-
`,
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
const TemplateToggleErrorMessage: Story = (_args, { argTypes }) => ({
|
|
207
|
-
mixins: [defaultMixin(argTypes)],
|
|
208
|
-
|
|
209
|
-
data() {
|
|
210
|
-
return {
|
|
211
|
-
hasError: false,
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
template: `
|
|
216
|
-
<div>
|
|
217
|
-
<or-switch style="display: block; margin-bottom: 20px;" v-model="hasError" :label="'Has Error: ' + hasError"/>
|
|
218
|
-
|
|
219
|
-
<or-search
|
|
220
|
-
v-bind="$props"
|
|
221
|
-
v-model="inputValue"
|
|
222
|
-
:is-invalid="hasError"
|
|
223
|
-
error="Something went wrong"
|
|
224
|
-
@update:modelValue="action"
|
|
225
|
-
@focus="onFocus"
|
|
226
|
-
@blur="onBlur"
|
|
227
|
-
@search="search"
|
|
228
|
-
/>
|
|
229
|
-
|
|
230
|
-
<or-search
|
|
231
|
-
v-bind="$props"
|
|
232
|
-
v-model="inputValue"
|
|
233
|
-
:is-invalid="hasError"
|
|
234
|
-
error="Something went wrong"
|
|
235
|
-
@update:modelValue="action"
|
|
236
|
-
@focus="onFocus"
|
|
237
|
-
@blur="onBlur"
|
|
238
|
-
@search="search"
|
|
239
|
-
/>
|
|
240
|
-
|
|
241
|
-
<or-search
|
|
242
|
-
v-bind="$props"
|
|
243
|
-
v-model="inputValue"
|
|
244
|
-
:is-invalid="hasError"
|
|
245
|
-
error="Something went wrong"
|
|
246
|
-
@update:modelValue="action"
|
|
247
|
-
@focus="onFocus"
|
|
248
|
-
@blur="onBlur"
|
|
249
|
-
@search="search"
|
|
250
|
-
/>
|
|
251
|
-
</div>
|
|
252
|
-
`,
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
const TemplateToggleHint: Story = (_args, { argTypes }) => ({
|
|
256
|
-
mixins: [defaultMixin(argTypes)],
|
|
257
|
-
|
|
258
|
-
data() {
|
|
259
|
-
return {
|
|
260
|
-
isActive: false,
|
|
261
|
-
};
|
|
262
|
-
},
|
|
263
|
-
|
|
264
|
-
template: `
|
|
265
|
-
<div>
|
|
266
|
-
<or-switch style="display: block;" v-model="isActive" :label="'Has Hint: ' + isActive"/>
|
|
267
|
-
<or-search
|
|
268
|
-
v-bind="$props"
|
|
269
|
-
:hint="isActive ? $props.hint : ''"
|
|
270
|
-
v-model="inputValue"
|
|
271
|
-
@update:modelValue="action"
|
|
272
|
-
@focus="onFocus"
|
|
273
|
-
@blur="onBlur"
|
|
274
|
-
@search="search"
|
|
275
|
-
/>
|
|
276
|
-
</div>
|
|
277
|
-
`,
|
|
278
|
-
});
|
|
279
|
-
|
|
280
|
-
export const Default = Template.bind({});
|
|
281
|
-
Default.args = {};
|
|
282
|
-
|
|
283
|
-
export const WithoutVModel = TemplateWithoutVModel.bind({});
|
|
284
|
-
WithoutVModel.args = {};
|
|
285
|
-
|
|
286
|
-
export const Small = Template.bind({});
|
|
287
|
-
Small.args = { isSmall: true };
|
|
288
|
-
|
|
289
|
-
export const Placeholder = Template.bind({});
|
|
290
|
-
Placeholder.args = { placeholder: 'Placeholder' };
|
|
291
|
-
|
|
292
|
-
export const Label = Template.bind({});
|
|
293
|
-
Label.args = {
|
|
294
|
-
label: 'Label',
|
|
295
|
-
|
|
296
|
-
...Placeholder.args,
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
export const Required = Template.bind({});
|
|
300
|
-
Required.args = {
|
|
301
|
-
isRequired: true,
|
|
302
|
-
|
|
303
|
-
...Label.args,
|
|
304
|
-
...Placeholder.args,
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
export const LabelAppendSlot = TemplateLabelAppend.bind({});
|
|
308
|
-
LabelAppendSlot.args = { ...Label.args };
|
|
309
|
-
|
|
310
|
-
export const LabelSlot = TemplateLabelSlot.bind({});
|
|
311
|
-
LabelSlot.args = {
|
|
312
|
-
id: 'input-id',
|
|
313
|
-
|
|
314
|
-
...Placeholder.args,
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
export const Disabled = Template.bind({});
|
|
318
|
-
Disabled.args = {
|
|
319
|
-
isDisabled: true,
|
|
320
|
-
|
|
321
|
-
...Placeholder.args,
|
|
322
|
-
...Label.args,
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
export const DefaultValue = TemplateWithValue.bind({});
|
|
326
|
-
DefaultValue.args = {};
|
|
327
|
-
|
|
328
|
-
export const Readonly = TemplateWithValue.bind({});
|
|
329
|
-
Readonly.args = {
|
|
330
|
-
isReadonly: true,
|
|
331
|
-
label: 'Label',
|
|
332
|
-
};
|
|
333
|
-
|
|
334
|
-
export const MaxLength = Template.bind({});
|
|
335
|
-
MaxLength.args = { maxLength: 10 };
|
|
336
|
-
|
|
337
|
-
export const MaxLengthDefaultValue = TemplateWithValue.bind({});
|
|
338
|
-
MaxLengthDefaultValue.args = {
|
|
339
|
-
maxLength: 10,
|
|
340
|
-
hint: 'If the length of value > max length then should trim the value',
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
export const Hint = Template.bind({});
|
|
344
|
-
Hint.args = { hint: 'Message has to be at least 6 characters long and must contain at least more than one digit.' };
|
|
345
|
-
|
|
346
|
-
export const HintToggle = TemplateToggleHint.bind({});
|
|
347
|
-
HintToggle.args = { ...Hint.args };
|
|
348
|
-
|
|
349
|
-
export const HintAndCounter = Template.bind({});
|
|
350
|
-
HintAndCounter.args = {
|
|
351
|
-
...MaxLength.args,
|
|
352
|
-
...Hint.args,
|
|
353
|
-
};
|
|
354
|
-
|
|
355
|
-
export const Invalid = Template.bind({});
|
|
356
|
-
Invalid.args = { isInvalid: true };
|
|
357
|
-
|
|
358
|
-
export const InvalidAndCounter = Template.bind({});
|
|
359
|
-
InvalidAndCounter.args = {
|
|
360
|
-
...Invalid.args,
|
|
361
|
-
...MaxLength.args,
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
export const InvalidAndErrorText = Template.bind({});
|
|
365
|
-
InvalidAndErrorText.args = {
|
|
366
|
-
...Invalid.args,
|
|
367
|
-
error: 'Something went wrong',
|
|
368
|
-
};
|
|
369
|
-
|
|
370
|
-
export const InvalidErrorToggle = TemplateToggleErrorMessage.bind({});
|
|
371
|
-
InvalidErrorToggle.args = {};
|
|
372
|
-
|
|
373
|
-
export const InvalidErrorAndHint = TemplateToggleErrorMessage.bind({});
|
|
374
|
-
InvalidErrorAndHint.args = {
|
|
375
|
-
hint: 'Message has to be at least 6 characters long and must contain at least more than one digit.',
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
export const InvalidErrorAndCounter = TemplateToggleErrorMessage.bind({});
|
|
379
|
-
InvalidErrorAndCounter.args = {
|
|
380
|
-
...Default.args,
|
|
381
|
-
...MaxLength.args,
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
export const InvalidDynamicError = TemplateDynamicError.bind({});
|
|
385
|
-
InvalidDynamicError.args = {
|
|
386
|
-
hint: 'Good Good Good Good Good Good Good Good Good Good Good Good',
|
|
387
|
-
error: 'Should be 4 symbols',
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export const SlotPrepend = TemplateSlotPrepend.bind({});
|
|
391
|
-
SlotPrepend.args = {
|
|
392
|
-
...MaxLength.args,
|
|
393
|
-
...Label.args,
|
|
394
|
-
label: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit',
|
|
395
|
-
isInvalid: true,
|
|
396
|
-
error: 'Text error',
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
export const SlotAppend = TemplateSlotAppend.bind({});
|
|
400
|
-
SlotAppend.args = {
|
|
401
|
-
...MaxLength.args,
|
|
402
|
-
};
|