@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "5.0.1
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@codemirror/lang-json": "6.0.1",
|
|
40
40
|
"@codemirror/lang-markdown": "6.1.1",
|
|
41
41
|
"@floating-ui/dom": "0.3.1",
|
|
42
|
-
"@onereach/styles": "^3.0.1
|
|
42
|
+
"@onereach/styles": "^3.0.1",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
45
45
|
"@types/uuid": "8.3.1",
|
|
@@ -57,13 +57,7 @@
|
|
|
57
57
|
"@onereach/rollup-vue-lib-config": "2.2.2",
|
|
58
58
|
"@rollup/plugin-replace": "4.0.0",
|
|
59
59
|
"@rollup/plugin-url": "^8.0.1",
|
|
60
|
-
"@storybook/addon-actions": "6.5.16",
|
|
61
|
-
"@storybook/jest": "^0.0.10",
|
|
62
|
-
"@storybook/testing-library": "^0.0.13",
|
|
63
|
-
"@storybook/vue3": "6.5.16",
|
|
64
|
-
"@types/faker": "5.5.9",
|
|
65
60
|
"@vue/composition-api": "1.7.1",
|
|
66
|
-
"faker": "5.5.3",
|
|
67
61
|
"glob": "9.3.0",
|
|
68
62
|
"sass": "1.32.8",
|
|
69
63
|
"typescript": "4.9.5",
|
|
@@ -154,5 +148,6 @@
|
|
|
154
148
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
155
149
|
},
|
|
156
150
|
"./package.json": "./package.json"
|
|
157
|
-
}
|
|
151
|
+
},
|
|
152
|
+
"gitHead": "2e8d5960aa8a5eb10a8b620363cde863018fd76f"
|
|
158
153
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<div
|
|
3
3
|
ref="root"
|
|
4
4
|
:class="rootStyles"
|
|
5
|
-
:selected="selected ? '' : null"
|
|
6
5
|
:disabled="disabled ? '' : null"
|
|
7
6
|
>
|
|
8
7
|
<label
|
|
@@ -23,9 +22,11 @@
|
|
|
23
22
|
<script lang="ts">
|
|
24
23
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
25
24
|
import { LabelVariant } from './props';
|
|
26
|
-
import {
|
|
25
|
+
import { LabelAddon, LabelRoot, LabelRootVariants, LabelText } from './styles';
|
|
27
26
|
|
|
28
27
|
export default defineComponent({
|
|
28
|
+
name: 'OrLabel',
|
|
29
|
+
|
|
29
30
|
props: {
|
|
30
31
|
controlId: {
|
|
31
32
|
type: String,
|
|
@@ -37,11 +38,6 @@ export default defineComponent({
|
|
|
37
38
|
default: LabelVariant.Input,
|
|
38
39
|
},
|
|
39
40
|
|
|
40
|
-
selected: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: false,
|
|
43
|
-
},
|
|
44
|
-
|
|
45
41
|
required: {
|
|
46
42
|
type: Boolean,
|
|
47
43
|
default: false,
|
|
@@ -64,8 +60,8 @@ export default defineComponent({
|
|
|
64
60
|
// Styles
|
|
65
61
|
const rootStyles = computed(() => [
|
|
66
62
|
'or-label-v3',
|
|
67
|
-
...
|
|
68
|
-
...
|
|
63
|
+
...LabelRoot,
|
|
64
|
+
...LabelRootVariants[props.variant],
|
|
69
65
|
]);
|
|
70
66
|
|
|
71
67
|
const textStyles = computed(() => [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LabelVariant } from './props';
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const LabelRoot: string[] = [
|
|
4
4
|
// Layout
|
|
5
5
|
'layout-row justify-between',
|
|
6
6
|
|
|
@@ -8,8 +8,8 @@ export const Label: string[] = [
|
|
|
8
8
|
'gap-sm',
|
|
9
9
|
];
|
|
10
10
|
|
|
11
|
-
export const
|
|
12
|
-
|
|
11
|
+
export const LabelRootVariants: Record<LabelVariant, string[]> = {
|
|
12
|
+
'input': [
|
|
13
13
|
// Typography
|
|
14
14
|
'typography-caption-regular',
|
|
15
15
|
|
|
@@ -18,7 +18,7 @@ export const LabelVariants: Record<LabelVariant, string[]> = {
|
|
|
18
18
|
'dark:theme-foreground-outline-dark',
|
|
19
19
|
],
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
'toggle': [
|
|
22
22
|
// Typography
|
|
23
23
|
'typography-body-2-regular',
|
|
24
24
|
|
|
@@ -26,18 +26,6 @@ export const LabelVariants: Record<LabelVariant, string[]> = {
|
|
|
26
26
|
'theme-foreground-default',
|
|
27
27
|
'dark:theme-foreground-default-dark',
|
|
28
28
|
],
|
|
29
|
-
|
|
30
|
-
[LabelVariant.MenuItem]: [
|
|
31
|
-
// Typography
|
|
32
|
-
'typography-body-2-regular',
|
|
33
|
-
|
|
34
|
-
// Typography (selected)
|
|
35
|
-
'selected:typography-body-2-semibold',
|
|
36
|
-
|
|
37
|
-
// Theme
|
|
38
|
-
'theme-foreground-default',
|
|
39
|
-
'dark:theme-foreground-default-dark',
|
|
40
|
-
],
|
|
41
29
|
};
|
|
42
30
|
|
|
43
31
|
export const LabelText: string[] = [
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
@blur="$emit('blur', $event)"
|
|
40
40
|
>
|
|
41
41
|
<template v-if="multiple">
|
|
42
|
-
<template v-if="
|
|
42
|
+
<template v-if="proxyModelValue && proxyModelValue.length > 0">
|
|
43
43
|
<slot
|
|
44
44
|
name="valueTemplate"
|
|
45
45
|
:model="proxyModelValue"
|
|
46
46
|
>
|
|
47
47
|
<OrTag
|
|
48
|
-
v-for="option in selection"
|
|
49
|
-
:key="
|
|
48
|
+
v-for="(option, i) in selection"
|
|
49
|
+
:key="i"
|
|
50
50
|
:variant="'reset'"
|
|
51
51
|
:disabled="disabled || readonly"
|
|
52
52
|
@reset="deselect(option)"
|
|
@@ -54,80 +54,27 @@
|
|
|
54
54
|
{{ option.label }}
|
|
55
55
|
</OrTag>
|
|
56
56
|
</slot>
|
|
57
|
-
|
|
58
|
-
<template v-if="popoverState === 'open' && enableSearch">
|
|
59
|
-
<OrInput
|
|
60
|
-
ref="searchControl"
|
|
61
|
-
v-model="searchText"
|
|
62
|
-
:class="searchControlStyles"
|
|
63
|
-
:type="'search'"
|
|
64
|
-
:placeholder="'Search'"
|
|
65
|
-
:size="size"
|
|
66
|
-
:disable-default-styles="true"
|
|
67
|
-
@click.stop
|
|
68
|
-
/>
|
|
69
|
-
</template>
|
|
70
57
|
</template>
|
|
71
58
|
|
|
72
59
|
<template v-else>
|
|
73
|
-
<
|
|
74
|
-
<OrInput
|
|
75
|
-
ref="searchControl"
|
|
76
|
-
v-model="searchText"
|
|
77
|
-
:class="searchControlStyles"
|
|
78
|
-
:type="'search'"
|
|
79
|
-
:placeholder="'Search'"
|
|
80
|
-
:size="size"
|
|
81
|
-
:disable-default-styles="true"
|
|
82
|
-
@click.stop
|
|
83
|
-
/>
|
|
84
|
-
</template>
|
|
85
|
-
|
|
86
|
-
<template v-else>
|
|
87
|
-
<span
|
|
88
|
-
:class="placeholderStyles"
|
|
89
|
-
:disabled="disabled ? '' : null"
|
|
90
|
-
>
|
|
91
|
-
{{ placeholder }}
|
|
92
|
-
</span>
|
|
93
|
-
</template>
|
|
60
|
+
<span :class="placeholderStyles">{{ placeholder }}</span>
|
|
94
61
|
</template>
|
|
95
62
|
</template>
|
|
96
63
|
|
|
97
64
|
<template v-else>
|
|
98
|
-
<template v-if="
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
@click.stop
|
|
108
|
-
/>
|
|
65
|
+
<template v-if="!isEmptyModelValue">
|
|
66
|
+
<slot
|
|
67
|
+
name="valueTemplate"
|
|
68
|
+
:model="proxyModelValue"
|
|
69
|
+
>
|
|
70
|
+
<span class="truncate">
|
|
71
|
+
{{ selection && selection.label }}
|
|
72
|
+
</span>
|
|
73
|
+
</slot>
|
|
109
74
|
</template>
|
|
110
75
|
|
|
111
76
|
<template v-else>
|
|
112
|
-
<
|
|
113
|
-
<slot
|
|
114
|
-
name="valueTemplate"
|
|
115
|
-
:model="proxyModelValue"
|
|
116
|
-
>
|
|
117
|
-
<span class="truncate">
|
|
118
|
-
{{ selection && selection.label }}
|
|
119
|
-
</span>
|
|
120
|
-
</slot>
|
|
121
|
-
</template>
|
|
122
|
-
|
|
123
|
-
<template v-else>
|
|
124
|
-
<span
|
|
125
|
-
:class="placeholderStyles"
|
|
126
|
-
:disabled="disabled ? '' : null"
|
|
127
|
-
>
|
|
128
|
-
{{ placeholder }}
|
|
129
|
-
</span>
|
|
130
|
-
</template>
|
|
77
|
+
<span :class="placeholderStyles">{{ placeholder }}</span>
|
|
131
78
|
</template>
|
|
132
79
|
</template>
|
|
133
80
|
</div>
|
|
@@ -137,12 +84,12 @@
|
|
|
137
84
|
</template>
|
|
138
85
|
|
|
139
86
|
<div :class="['layout-inline-row', 'gap-sm']">
|
|
140
|
-
<template v-if="
|
|
87
|
+
<template v-if="!multiple && proxyModelValue">
|
|
141
88
|
<OrIconButton
|
|
142
89
|
:icon="'close'"
|
|
143
90
|
:color="'inherit'"
|
|
144
91
|
:disabled="readonly || disabled"
|
|
145
|
-
@click.stop="$emit('update:modelValue',
|
|
92
|
+
@click.stop="$emit('update:modelValue', undefined)"
|
|
146
93
|
/>
|
|
147
94
|
</template>
|
|
148
95
|
|
|
@@ -160,16 +107,14 @@
|
|
|
160
107
|
:full-width="true"
|
|
161
108
|
:custom-styles="dropdownStyles"
|
|
162
109
|
:disable-default-styles="true"
|
|
163
|
-
@open="focusSearchControl()"
|
|
164
|
-
@close="clearSearchControl()"
|
|
165
110
|
>
|
|
166
|
-
<template v-if="
|
|
111
|
+
<template v-if="enableSearch">
|
|
167
112
|
<OrInput
|
|
168
|
-
ref="mobileSearchControl"
|
|
169
113
|
v-model="searchText"
|
|
170
|
-
:class="searchControlStyles"
|
|
171
114
|
:type="'search'"
|
|
172
115
|
:placeholder="'Search'"
|
|
116
|
+
:size="'s'"
|
|
117
|
+
:disable-default-styles="true"
|
|
173
118
|
/>
|
|
174
119
|
</template>
|
|
175
120
|
|
|
@@ -184,7 +129,6 @@
|
|
|
184
129
|
<OrMenuItem
|
|
185
130
|
v-for="(option, i) in group"
|
|
186
131
|
:key="i"
|
|
187
|
-
:selected="proxyModelValue && proxyModelValue.includes(option.value)"
|
|
188
132
|
>
|
|
189
133
|
<slot
|
|
190
134
|
name="optionTemplate"
|
|
@@ -195,7 +139,7 @@
|
|
|
195
139
|
v-model="proxyModelValue"
|
|
196
140
|
:value="option.value"
|
|
197
141
|
:label="option.label"
|
|
198
|
-
:label-variant="'
|
|
142
|
+
:label-variant="'input'"
|
|
199
143
|
/>
|
|
200
144
|
</slot>
|
|
201
145
|
</OrMenuItem>
|
|
@@ -205,8 +149,6 @@
|
|
|
205
149
|
<OrMenuItem
|
|
206
150
|
v-for="(option, i) in group"
|
|
207
151
|
:key="i"
|
|
208
|
-
:class="dropdownItemStyles"
|
|
209
|
-
:selected="proxyModelValue === option.value"
|
|
210
152
|
@click.stop="proxyModelValue = option.value; close()"
|
|
211
153
|
>
|
|
212
154
|
<slot
|
|
@@ -226,13 +168,12 @@
|
|
|
226
168
|
<OrMenuItem
|
|
227
169
|
v-for="(option, i) in resolvedSearchOptions"
|
|
228
170
|
:key="i"
|
|
229
|
-
:selected="proxyModelValue && proxyModelValue.includes(option.value)"
|
|
230
171
|
>
|
|
231
172
|
<OrCheckbox
|
|
232
173
|
v-model="proxyModelValue"
|
|
233
174
|
:value="option.value"
|
|
234
175
|
:label="option.label"
|
|
235
|
-
:label-variant="'
|
|
176
|
+
:label-variant="'input'"
|
|
236
177
|
>
|
|
237
178
|
<slot
|
|
238
179
|
name="optionTemplate"
|
|
@@ -247,8 +188,6 @@
|
|
|
247
188
|
<OrMenuItem
|
|
248
189
|
v-for="(option, i) in resolvedSearchOptions"
|
|
249
190
|
:key="i"
|
|
250
|
-
:class="dropdownItemStyles"
|
|
251
|
-
:selected="proxyModelValue === option.value"
|
|
252
191
|
@click.stop="proxyModelValue = option.value; close()"
|
|
253
192
|
>
|
|
254
193
|
<slot
|
|
@@ -298,7 +237,7 @@
|
|
|
298
237
|
<script lang="ts">
|
|
299
238
|
import { computed, defineComponent, getCurrentInstance, onMounted, PropType, ref, toRef, watch } from 'vue-demi';
|
|
300
239
|
import { DropdownClose, DropdownOpen } from '../../directives';
|
|
301
|
-
import { useOverflow, useProxyModelValue
|
|
240
|
+
import { useOverflow, useProxyModelValue } from '../../hooks';
|
|
302
241
|
import { isEmptyValue } from '../../utils/isEmptyValue';
|
|
303
242
|
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3';
|
|
304
243
|
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
@@ -313,10 +252,12 @@ import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
|
313
252
|
import { OrPopoverV3 as OrPopover } from '../or-popover-v3';
|
|
314
253
|
import { OrTagV3 as OrTag } from '../or-tag-v3';
|
|
315
254
|
import { SelectSize } from './props';
|
|
316
|
-
import {
|
|
255
|
+
import { SelectControl, SelectDropdown, SelectDropdownDefault, SelectDropdownFlipped, SelectNoSearchResults, SelectPlaceholder, SelectRoot } from './styles';
|
|
317
256
|
import { SelectGroupByFunction, SelectOption, SelectSearchFunction } from './types';
|
|
318
257
|
|
|
319
258
|
export default defineComponent({
|
|
259
|
+
name: 'OrSelect',
|
|
260
|
+
|
|
320
261
|
components: {
|
|
321
262
|
OrCheckbox,
|
|
322
263
|
OrError,
|
|
@@ -451,9 +392,6 @@ export default defineComponent({
|
|
|
451
392
|
|
|
452
393
|
const control = ref<HTMLElement>();
|
|
453
394
|
|
|
454
|
-
const searchControl = ref<HTMLElement>();
|
|
455
|
-
const mobileSearchControl = ref<HTMLElement>();
|
|
456
|
-
|
|
457
395
|
const popover = ref<InstanceType<typeof OrPopover>>();
|
|
458
396
|
const popoverRoot = computed(() => popover.value?.root);
|
|
459
397
|
const popoverState = computed(() => popover.value?.state);
|
|
@@ -461,17 +399,13 @@ export default defineComponent({
|
|
|
461
399
|
// Styles
|
|
462
400
|
const rootStyles = computed(() => [
|
|
463
401
|
'or-select-v3',
|
|
464
|
-
...
|
|
402
|
+
...SelectRoot,
|
|
465
403
|
]);
|
|
466
404
|
|
|
467
405
|
const controlStyles = computed(() => [
|
|
468
406
|
...SelectControl,
|
|
469
407
|
]);
|
|
470
408
|
|
|
471
|
-
const searchControlStyles = computed(() => [
|
|
472
|
-
...SelectSearchControl,
|
|
473
|
-
]);
|
|
474
|
-
|
|
475
409
|
const placeholderStyles = computed(() => [
|
|
476
410
|
...SelectPlaceholder,
|
|
477
411
|
]);
|
|
@@ -481,10 +415,6 @@ export default defineComponent({
|
|
|
481
415
|
...popover.value?.isFlipped ? SelectDropdownFlipped : SelectDropdownDefault,
|
|
482
416
|
]);
|
|
483
417
|
|
|
484
|
-
const dropdownItemStyles = computed(() => [
|
|
485
|
-
...SelectDropdownItem,
|
|
486
|
-
]);
|
|
487
|
-
|
|
488
418
|
const noSearchResultsStyles = computed(() => [
|
|
489
419
|
...SelectNoSearchResults,
|
|
490
420
|
]);
|
|
@@ -512,9 +442,7 @@ export default defineComponent({
|
|
|
512
442
|
const modelValue = proxyModelValue.value;
|
|
513
443
|
|
|
514
444
|
if (Array.isArray(modelValue)) {
|
|
515
|
-
return modelValue
|
|
516
|
-
.map((value) => props.options.find((option) => option.value === value))
|
|
517
|
-
.filter((value) => !!value);
|
|
445
|
+
return modelValue.map((value) => props.options.find((option) => option.value === value));
|
|
518
446
|
}
|
|
519
447
|
|
|
520
448
|
return props.options.find((option) => option.value === modelValue);
|
|
@@ -593,41 +521,20 @@ export default defineComponent({
|
|
|
593
521
|
}
|
|
594
522
|
}
|
|
595
523
|
|
|
596
|
-
function focusSearchControl(): void {
|
|
597
|
-
setTimeout(() => {
|
|
598
|
-
if (isMobile.value) {
|
|
599
|
-
mobileSearchControl.value?.focus();
|
|
600
|
-
} else {
|
|
601
|
-
searchControl.value?.focus();
|
|
602
|
-
}
|
|
603
|
-
});
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
function clearSearchControl(): void {
|
|
607
|
-
searchText.value = '';
|
|
608
|
-
}
|
|
609
|
-
|
|
610
524
|
const { innerItems, outerItems } = useOverflow(control);
|
|
611
525
|
|
|
612
|
-
// Utils
|
|
613
|
-
const { isMobile } = useResponsive();
|
|
614
|
-
|
|
615
526
|
return {
|
|
616
527
|
root,
|
|
617
528
|
inputBox,
|
|
618
529
|
inputBoxRoot,
|
|
619
530
|
control,
|
|
620
|
-
searchControl,
|
|
621
|
-
mobileSearchControl,
|
|
622
531
|
popover,
|
|
623
532
|
popoverRoot,
|
|
624
533
|
popoverState,
|
|
625
534
|
rootStyles,
|
|
626
535
|
controlStyles,
|
|
627
|
-
searchControlStyles,
|
|
628
536
|
placeholderStyles,
|
|
629
537
|
dropdownStyles,
|
|
630
|
-
dropdownItemStyles,
|
|
631
538
|
noSearchResultsStyles,
|
|
632
539
|
controlId,
|
|
633
540
|
proxyModelValue,
|
|
@@ -641,11 +548,8 @@ export default defineComponent({
|
|
|
641
548
|
toggle,
|
|
642
549
|
close,
|
|
643
550
|
deselect,
|
|
644
|
-
focusSearchControl,
|
|
645
|
-
clearSearchControl,
|
|
646
551
|
innerItems,
|
|
647
552
|
outerItems,
|
|
648
|
-
isMobile,
|
|
649
553
|
};
|
|
650
554
|
},
|
|
651
555
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const SelectRoot: string[] = [
|
|
2
2
|
// Layout
|
|
3
3
|
'layout-column',
|
|
4
4
|
|
|
@@ -23,15 +23,6 @@ export const SelectControl: string[] = [
|
|
|
23
23
|
'typography-inherit',
|
|
24
24
|
];
|
|
25
25
|
|
|
26
|
-
export const SelectSearchControl: string[] = [
|
|
27
|
-
// Layout
|
|
28
|
-
'grow',
|
|
29
|
-
|
|
30
|
-
// Spacing
|
|
31
|
-
'!mx-lg md:!mx-none',
|
|
32
|
-
'!my-sm md:!my-none',
|
|
33
|
-
];
|
|
34
|
-
|
|
35
26
|
export const SelectPlaceholder: string[] = [
|
|
36
27
|
// Theme
|
|
37
28
|
'theme-foreground-outline',
|
|
@@ -75,14 +66,6 @@ export const SelectDropdownFlipped: string[] = [
|
|
|
75
66
|
'!border-b-0',
|
|
76
67
|
];
|
|
77
68
|
|
|
78
|
-
export const SelectDropdownItem: string[] = [
|
|
79
|
-
// Typography
|
|
80
|
-
'!typography-body-2-regular',
|
|
81
|
-
|
|
82
|
-
// Typography (selected)
|
|
83
|
-
'selected:!typography-body-2-semibold',
|
|
84
|
-
];
|
|
85
|
-
|
|
86
69
|
export const SelectNoSearchResults: string[] = [
|
|
87
70
|
// Layout
|
|
88
71
|
'layout-row justify-center',
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
export enum PositionsX {
|
|
2
2
|
right = 'right',
|
|
3
3
|
left = 'left',
|
|
4
|
-
center = 'center'
|
|
4
|
+
center = 'center',
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export enum PositionsY {
|
|
8
8
|
top = 'top',
|
|
9
|
-
bottom = 'bottom'
|
|
9
|
+
bottom = 'bottom',
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
export enum TransitionType {
|
|
13
13
|
slide = 'slide',
|
|
14
|
-
fade = 'fade'
|
|
14
|
+
fade = 'fade',
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export enum ToastType {
|
|
18
18
|
success='success',
|
|
19
19
|
error='error',
|
|
20
|
-
loading='loading'
|
|
20
|
+
loading='loading',
|
|
21
21
|
}
|
|
@@ -2,6 +2,9 @@ import { DirectiveBinding, DirectiveHook, isVue3 } from 'vue-demi';
|
|
|
2
2
|
|
|
3
3
|
const created: DirectiveHook = (element: HTMLElement, binding: DirectiveBinding<(event: Event) => void>) => {
|
|
4
4
|
element.addEventListener('keydown', (event) => {
|
|
5
|
+
event.preventDefault();
|
|
6
|
+
event.stopPropagation();
|
|
7
|
+
|
|
5
8
|
if (['Escape'].includes(event.key)) {
|
|
6
9
|
binding.value(event);
|
|
7
10
|
}
|
|
@@ -2,14 +2,17 @@ import { DirectiveBinding, DirectiveHook, isVue3 } from 'vue-demi';
|
|
|
2
2
|
|
|
3
3
|
const created: DirectiveHook = (element: HTMLElement, binding: DirectiveBinding<(event: Event) => void>) => {
|
|
4
4
|
element.addEventListener('keydown', (event) => {
|
|
5
|
+
event.preventDefault();
|
|
6
|
+
event.stopPropagation();
|
|
7
|
+
|
|
5
8
|
if (['Enter', ' '].includes(event.key)) {
|
|
6
9
|
binding.value(event);
|
|
7
10
|
}
|
|
8
11
|
});
|
|
9
12
|
|
|
10
13
|
element.addEventListener('click', (event) => {
|
|
11
|
-
event.stopPropagation();
|
|
12
14
|
event.preventDefault();
|
|
15
|
+
event.stopPropagation();
|
|
13
16
|
|
|
14
17
|
binding.value(event);
|
|
15
18
|
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Option } from './types';
|
|
2
|
-
export declare function getTestOption(): Option;
|
|
3
|
-
export declare function getLongTestOption(): Option;
|
|
4
|
-
export declare function searchInOptions(search: string, options: Option[]): Option[];
|
|
5
|
-
export declare function getSlotLabel(value: string, options: Option[]): string;
|
|
6
|
-
export declare function getSlotOptionStyle(isActive: boolean): Record<string, string>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Option } from './types';
|
|
2
|
-
export declare function getTestOption(): Option;
|
|
3
|
-
export declare function getLongTestOption(): Option;
|
|
4
|
-
export declare function searchInOptions(search: string, options: Option[]): Option[];
|
|
5
|
-
export declare function getSlotLabel(value: string, options: Option[]): string;
|
|
6
|
-
export declare function getSlotOptionStyle(isActive: boolean): Record<string, string>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Option } from './types';
|
|
2
|
-
export declare function getTestOption(): Option;
|
|
3
|
-
export declare function getLongTestOption(): Option;
|
|
4
|
-
export declare function searchInOptions(search: string, options: Option[]): Option[];
|
|
5
|
-
export declare function getSlotLabel(value: string, options: Option[]): string;
|
|
6
|
-
export declare function getSlotOptionStyle(isActive: boolean): Record<string, string>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Option } from './types';
|
|
2
|
-
export declare function getTestOption(): Option;
|
|
3
|
-
export declare function getLongTestOption(): Option;
|
|
4
|
-
export declare function searchInOptions(search: string, options: Option[]): Option[];
|
|
5
|
-
export declare function getSlotLabel(value: string, options: Option[]): string;
|
|
6
|
-
export declare function getSlotOptionStyle(isActive: boolean): Record<string, string>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import OrAvatar from './OrAvatar.vue';
|
|
2
|
-
import { OR_AVATAR_SIZE } from './constants';
|
|
3
|
-
import { ArgTypes, Story } from '@storybook/vue';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'Components/OrAvatar',
|
|
7
|
-
|
|
8
|
-
component: OrAvatar,
|
|
9
|
-
|
|
10
|
-
argTypes: {
|
|
11
|
-
size: {
|
|
12
|
-
control: 'select',
|
|
13
|
-
options: Object.values(OR_AVATAR_SIZE),
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const defaultTemplate = '<or-avatar v-bind="$props"/>';
|
|
19
|
-
|
|
20
|
-
const defaultMixin = (argTypes: ArgTypes) => ({
|
|
21
|
-
props: Object.keys(argTypes),
|
|
22
|
-
|
|
23
|
-
components: { OrAvatar },
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const Template: Story = (_args, { argTypes }) => ({
|
|
27
|
-
mixins: [defaultMixin(argTypes)],
|
|
28
|
-
template: defaultTemplate,
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export const Default = Template.bind({});
|
|
32
|
-
Default.args = {};
|
|
33
|
-
|
|
34
|
-
export const Large = Template.bind({});
|
|
35
|
-
Large.args = { size: OR_AVATAR_SIZE.LARGE };
|
|
36
|
-
|
|
37
|
-
export const WithSrc = Template.bind({});
|
|
38
|
-
WithSrc.args = { src: 'https://onereach.gitlab.io/platform/ui-next/or-favicon.ico' };
|
|
39
|
-
|
|
40
|
-
export const InvalidSrc = Template.bind({});
|
|
41
|
-
InvalidSrc.args = { src: 'invalid' };
|
|
42
|
-
|
|
43
|
-
export const WithIcon = Template.bind({});
|
|
44
|
-
WithIcon.args = { icon: 'face' };
|