Beta - #685
Merged
Merged
Beta#685
Conversation
…e interactive elements
…plugins and add `src/package.json` to `.gitignore`
…ops_Vitalii-Dudnik VL_UDataList-force-fallback-props_Vitalii-Dudnik
…fallback to shadow-sm
✅ Deploy Preview for vueless-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…go` to v4.0.2) in `package-lock.json`
…tended focus behavior
…ne blink on loosing focus
- Introduce `SelectOption` in ui.form-select/types.ts, composed from `BaseOption` plus any object shape, so only reserved option keys are type checked and arbitrary user data is allowed on options. - Change the `options` prop of USelect to `SelectOption[]`, removing the hard dependency on the listbox `Option` type. - Add a `listboxOptions` computed in USelect.vue that casts options to `Option[]` in a single place, and use it for `getCurrentOption` lookups and for the options passed down to the listbox.
Expose the public TypeScript surface of the library so consumers can annotate variables, wrappers and composables without reaching into internal component folders. - Re-export every component's `Props` type under a namespaced alias (`UButtonProps`, `UInputProps`, `UTableProps`, ...) in both `src/index.ts` and the `src/index.d.ts` declaration entry, keeping the runtime entry and its type declarations in sync. - Re-export the shared data-model types used in component APIs: table `Row`/`Column`/`Cell` families, listbox `Option` types, `SelectOption`, tabs, breadcrumbs, toggle, accordion, data list, checkbox, chip and avatar item types. - Group the new exports under `component props` and `component data types` sections for readability.
- Introduced generic types to `UDataList` for better slot prop inference. - Updated `Props` and slot bindings to utilize `TItem` for type flexibility. - Added `SlotItem` and `UDataListSlots` for refined slot type definitions. - Included type-level and runtime tests to validate `UDataList` generics functionality.
- Introduced `TCol` generic to `UTable` for narrowing column keys in slot bindings. - Updated `Props` and slot definitions to leverage `KeyedColumn` for stricter type checks. - Added runtime and type-level regression tests to ensure compatibility and flexibility with dynamic and empty columns.
- Introduced `TOption` generic for `UListbox` to improve slot prop inference. - Updated `Props` and slot definitions to utilize `SlotOption` and `UListboxSlots` for stricter type requirements. - Implemented runtime and type-level regression tests to validate generic functionality. - Enhanced `filterGroups` and slot binding logic to correctly handle flattened group options. - Added Storybook tests to confirm compatibility with dynamic and typed options.
…lity - Re-export additional slot and prop types for Listbox, Select, Dropdown, Tabs, Toggle, and DataList components. - Add `UListboxSlots`, `USelectSlots`, `UDropdownSlots`, `UTabsSlots`, `UToggleSlots`, `UDataListSlots`, and other related types to the package entry.
- Introduced `TItem` generic to `UToggle` for improved slot prop inference. - Updated `Props` and slot definitions to use `UToggleSlots` for stricter type checking. - Implemented dedicated type-level tests and fixtures to validate generic functionality and slot typings. - Adjusted Storybook imports and setup for consistency with new generic types.
- Introduced `TOption` generic to `UDropdown` for improved slot prop inference and flexible option typing. - Updated `Props` and slot definitions to leverage `UDropdownSlots` for stricter type checking and compatibility. - Implemented dedicated type-level tests and fixtures to validate slot and prop typings. - Adjusted Storybook and test setup to handle generic SFC typings consistently. - Improved handling of selected options and group flattening in line with `UListbox` behavior.
…nd slots - Introduced `TOption` generic to `UDropdownBadge` for refined slot prop inference and flexible option typing. - Updated `Props` and slot definitions to leverage `SlotOption` and `UDropdownBadgeSlots` for stricter type checking. - Implemented type-level tests and fixtures to validate generic behavior, slot typings, and prop typings. - Updated Storybook and test setup to handle generic SFCs consistently.
…and slots - Introduced `TOption` generic to `UDropdownButton` for improved slot prop inference and flexible option typing. - Updated `Props` and slot definitions to leverage `SlotOption` and `UDropdownButtonSlots` for stricter type checking and compatibility. - Added type-level tests and fixtures to validate slot and prop typings, including forwarded option shape and group flattening behavior. - Adjusted Storybook and test setup for consistent handling of generic SFCs.
…d slots - Introduced `TOption` generic to `UDropdownLink` for improved slot prop inference and flexible option typing. - Updated `Props` and slot definitions to leverage `SlotOption` and `UDropdownLinkSlots` for stricter type checking and compatibility. - Added type-level tests and fixtures to validate slot and prop typings, including forwarded option shape and group flattening behavior. - Adjusted Storybook and test setup for consistent handling of generic SFCs.
- Introduced `TOption` generic to `USelect` for improved slot prop inference and flexible option typing. - Updated `Props` and slot definitions to leverage `SlotOption` and `USelectSlots` for stricter type checking and compatibility. - Added type-level tests, fixtures, and runtime tests to validate generic behavior, slot typings, and prop typings. - Adjusted Storybook and test setup for consistent handling of generic SFCs. - Enhanced handling of selected options and group flattening in line with `UListbox` behavior.
- Introduced `TItem` generic to `UTabs` for improved slot prop inference and flexible option typing. - Updated `Props` and slot definitions to leverage `UTabsSlots` for stricter type checking and compatibility. - Added type-level tests and fixtures to validate generic behavior and slot typings. - Adjusted Storybook and test setup for consistent handling of generic SFCs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.