Closed csandman closed 2 months ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
File | Before | After |
---|---|---|
dist/index.cjs |
17.2 kB |
-1.83%β16.9 kB |
dist/index.cjs.map |
81.3 kB |
-2.64%β79.2 kB |
dist/index.d.cts |
21.1 kB |
-5.71%β19.9 kB |
dist/index.d.ts |
21.1 kB |
-5.71%β19.9 kB |
dist/index.js |
16.0 kB |
-1.97%β15.7 kB |
dist/index.js.map |
81.7 kB |
-2.63%β79.5 kB |
package.json |
3.3 kB |
0.2%β3.3 kB |
README.md |
46.3 kB |
3%β47.6 kB |
Total (Includes all files) | 289.2 kB |
-2.11%β283.1 kB |
Tarball size | 67.0 kB |
-3.9%β64.4 kB |
π€ This report was automatically generated by pkg-size-action
This PR makes a few changes to the custom props this package offers which will be breaking changes.
useBasicStyles
prop, and defaults the styles to those that were previously provided by it. This is a change I've been meaning to make for a while, as I came to really dislike the default styles I gave the dropdown indicator. Originally, it was styled to match theInputRightAddon
component, in order to create a visual separation between the dropdown indicator and the clear indicator. However, I grew to strongly dislike the way it visually clashed with the built-in select menu. Also, the original CodeSandbox example I provided for showing how to style the select more closely to the original Chakra select had more views than any other example sandbox that was provided, showing that this is how many people would prefer it to look anyway.selectedOptionColor
prop. A new prop was added a while ago to replace that one,selectedOptionColorScheme
, as some people were getting confused by the meaning of the original. So I took this opportunity to finally remove the old prop it replaced.hasStickyGroupHeaders
prop. I removed this from the documentation a long time ago, as it was only ever really an experimental way to style the grouped option headers so they'd stay in view while you scroll the list of options. It also had some problems with using the keyboard to navigate between options. They would disappear behind the header when you used the up arrow. So this change is also a long time coming.colorScheme
prop totagColorScheme
. There has been some confusion around what this prop actually means, and I realized the original name the prop had wasn't specific enough to it's purpose. It didn't make sense to have a specific prop forselectedOptionColorScheme
, and not be specific with the naming for thetagColorScheme
.All of these changes can be made automatically using the Codemod provided here