Select
A Select is an unstyled dropdown form element that allows users to select a value from a list.
b97c0525b
#3607 Thanks @SiTaggart! - [Select] Improved TsDoc type annotations
bc51057db
#3545 Thanks @SiTaggart! - [Select] fix the hydration issue which caused thedefaultValue
prop to not be respected.Since the React v18 upgrade, we were only rendering the children options after the component and html select wrapper had mounted. The select would mount with a
defaultValue
of a child that didn't exist, then the children would be added, so it wouldn't know what value to select. To fix the hydration anddefaultValue
together we now re-render the entire Select on mount.
b8d79200b
#3442 Thanks @TheSisb! - Removed all run-time prop-type checkingfrom Paste components. Paste now ships with only TypeScript types.ACTION NEEDED: None. This should be 100% backwards compatible.
733709127
#3395 Thanks @SiTaggart! - Modified the compile target of our JavaScript bundles fromnode
tobrowser
to minimize the risk of clashing with RequireJS. This is marked as a major out of an abundance of caution. You shouldn't need to do anything but we wanted you to be aware of the change on the off chance it has unintended consequences
- Updated dependencies [
733709127
]:- @twilio-paste/uid-library@2.0.0
- @twilio-paste/color-contrast-utils@5.0.0
- @twilio-paste/input-box@10.0.0
- @twilio-paste/box@10.0.0
- @twilio-paste/customization@8.0.0
- @twilio-paste/design-tokens@10.0.0
- @twilio-paste/icons@12.0.0
- @twilio-paste/animation-library@2.0.0
- @twilio-paste/styling-library@3.0.0
- @twilio-paste/style-props@9.0.0
- @twilio-paste/theme@11.0.0
- @twilio-paste/types@6.0.0
4d1f7c65e
#3360 Thanks @SiTaggart! - Improved types where Paste extends the base HTML element that a component is based on, so that the existing blocked styling properties are not exposed as valid properties for the component via Typescript. This leads to less confusion around what is supported by a Paste component.Existing blocked component properties include:
className
style
color
48e5f1e5c
#3225 Thanks @nkrantz! - [Button, Help Text, In Page Navigation, Input, Input Box, Label, Select, Tab, Text Area] Update color text tokens for inverse styles
ac5a84407
#3110 Thanks @SiTaggart! - [Select] Fixed a bug in dark mode on Windows where the options list was still white and the options were unreadable
3ab2bb6f4
#3114 Thanks @SiTaggart! - ### Breaking changeWe have moved
@types/react
and@types/react-dom
to peer dependencies of the library. This should allow for greater control and backwards compatibility with older versions of React as Paste is no longer bundling the type libraries.Your application likely has both of these as dependencies anyway, but it is now up to you to manage that version number.
Action needed
Ensure
@types/react
and@types/react-dom
are installed as dependencies of your application.
- Updated dependencies [
1d75f223e
,50cde4668
,bce889344
,3ab2bb6f4
,3ab2bb6f4
]:- @twilio-paste/icons@11.0.0
- @twilio-paste/theme@10.0.0
- @twilio-paste/box@9.0.0
- @twilio-paste/input-box@9.0.0
- @twilio-paste/customization@7.0.0
- @twilio-paste/style-props@8.0.0
- @twilio-paste/types@5.0.0
d97098846
#3020 Thanks @SiTaggart! - This major version included listing all the missing peer dependencies for each Paste package.If you are using a package from Paste in isolation from Core, when upgrading to this latest version, be sure to correctly install all the missing peer dependencies.
3c89fd83d
#2965 Thanks @Niznikr! - [Select] Render options after mountedUpdated dependencies [
dbd9bf992
,3c89fd83d
,d97098846
,0acdf3486
,ef094db4a
,154b02c06
,0acdf3486
]:- @twilio-paste/design-tokens@9.0.0
- @twilio-paste/input-box@8.0.0
- @twilio-paste/box@8.0.0
- @twilio-paste/customization@6.0.0
- @twilio-paste/icons@10.0.0
- @twilio-paste/animation-library@1.0.0
- @twilio-paste/styling-library@2.0.0
- @twilio-paste/uid-library@1.0.0
- @twilio-paste/style-props@7.0.0
- @twilio-paste/theme@9.0.0
- @twilio-paste/types@4.0.0
- @twilio-paste/color-contrast-utils@4.0.0
a4c9e70b0
#2763 Thanks @shleewhite! - Update ESLint rules, which changed some formatting.
b79d20d2a
#2595 Thanks @TheSisb! - [InputBox, Combobox, Select] InputBox'sInputChevronWrapper
has refreshed styling which will appear in Select and Combobox. InputBox now exports agetInputChevronIconColor()
function which returns a textColor to use for styling the icon child to theInputChevronWrapper
.
- Updated dependencies [
12c4ba22a
,364083627
,364083627
,364083627
,364083627
]:- @twilio-paste/box@7.0.0
- @twilio-paste/style-props@6.0.0
- @twilio-paste/design-tokens@8.0.0
- @twilio-paste/theme@8.0.0
- @twilio-paste/input-box@7.0.0
- @twilio-paste/icons@9.0.0
d9c3b850
#2569 Thanks @SiTaggart! - [Select] fixed the disabled select background color
ae9dd50f
#2466 Thanks @TheSisb! - [All packages] Update our ESBuild version and remove minification of identifiers in our production builds.
- Updated dependencies [
09762f0f
,09762f0f1
,09762f0f1
]:- @twilio-paste/box@6.0.0
- @twilio-paste/styling-library@1.0.0
- @twilio-paste/theme@7.0.0
- @twilio-paste/input-box@6.0.0
- @twilio-paste/icons@8.0.0
- @twilio-paste/style-props@5.0.0
- Updated dependencies [
10178f39d
]:- @twilio-paste/icons@7.0.0
8e5dfe1e6
#2298 Thanks @shleewhite! - [Button, FormPillGroup, Menu, Pagination, Select] inherit fontFamily for i18n
73c596919
#2269 Thanks @SiTaggart! - Fixed a regression with the compilation script that caused incompatible ESM module importing of JSON files.
c867e3f48
#2237 Thanks @SiTaggart! - Updated a build dependency (esbuild) which changes the output of our builds slightly, without materially changing anything about the code.
1f564a931
#2242 Thanks @shleewhite! - [Select] set the background color on the select, option, and optionGroup
- Updated dependencies [
0a52eeee
,39ab32c2
,0a52eeee
,04de0d1d
,04de0d1d
,04de0d1d
]:- @twilio-paste/design-tokens@7.0.0
- @twilio-paste/icons@6.0.0
- @twilio-paste/theme@6.0.0
- @twilio-paste/style-props@4.0.0
- @twilio-paste/input-box@5.0.0
- @twilio-paste/box@5.0.0
b7675915
#1985 Thanks @TheSisb! - For debugging purposes we now ship afilename.debug.js
unminified version of each component or library in Paste.
ed5c0a49c
#1965 Thanks @shleewhite! - Upgrade Paste to use React 17 by default, but maintain React 16 support for consumers.
01baddcd
#1925 Thanks @shleewhite! - Add displayNames to all components
7d231ec0
#1886 Thanks @andipants12! - [Select]: Enable Component to respect element customizations set on the customization provider. Component now enables setting an element name on the underlying HTML element and checks the emotion theme object to determine whether it should merge in custom styles to the ones set by the component author.
fe4a2383
#1824 Thanks @SiTaggart! - [Combobox], [Select] and [Textarea] all given a default element name to meet their PropTypes validation.
a5c17a31
#1771 Thanks @richbachman! - [Select] Added theelement
prop for customization in order to fix a Typescript error after theelement
prop was added as a required prop forInputBox
andInputChevronWrapper
. This does not include any default naming, tests, or stories. It only fixes the Typescript error.
80529764
#1431 Thanks @richbachman! - Added a margin reset (margin: space0
) to fix a bug in Safari where a 2px margin is added by the browser.
0eded1fd
#1319 Thanks @SiTaggart! - Change internal dependencies to have minor range matching on version numbers
- Updated dependencies [
514bd5aa
,514bd5aa
]:- @twilio-paste/theme@5.0.1
- @twilio-paste/icons@5.1.1
- @twilio-paste/input-box@4.0.2
- @twilio-paste/box@4.0.2
- @twilio-paste/style-props@3.0.1
- Updated dependencies [
8b5a8592
]:- @twilio-paste/icons@5.1.0
7f909087
#1251 Thanks @richbachman! - Removed required from theid
,onChange
, andvalue
props, so Select can be used as an uncontrolled component. This allows Select to be used with libraries likeReact-Hook-Form
.
- Updated dependencies [
509eba7a
]:- @twilio-paste/box@4.0.1
- @twilio-paste/input-box@4.0.1
- @twilio-paste/icons@5.0.1
- Updated dependencies [
4c9ed5ca
,26c828d8
]:- @twilio-paste/design-tokens@6.6.0
- @twilio-paste/theme@5.0.0
- @twilio-paste/input-box@4.0.0
- @twilio-paste/box@4.0.0
- @twilio-paste/icons@5.0.0
- @twilio-paste/style-props@3.0.0
- Updated dependencies [
944c3407
,af779398
]:- @twilio-paste/design-tokens@6.5.2
- @twilio-paste/icons@4.0.2
- @twilio-paste/input-box@3.0.1
- @twilio-paste/box@3.0.1
- @twilio-paste/style-props@2.0.1
- @twilio-paste/theme@4.3.1
- Updated dependencies [
7340a6a5
]:- @twilio-paste/icons@4.0.1
- Updated dependencies [
f1675586
]:- @twilio-paste/theme@4.3.0
- @twilio-paste/input-box@3.0.0
- @twilio-paste/box@3.0.0
- @twilio-paste/icons@4.0.0
- @twilio-paste/style-props@2.0.0
a12acb61
#1158 Thanks @richbachman! - Pinned all twilio-paste package versions in order to keep them in sync with core when they are updated by changesets.Updated dependencies [
a12acb61
,a12acb61
,a12acb61
,a12acb61
,a12acb61
]:- @twilio-paste/theme@4.2.2
- @twilio-paste/input-box@2.1.2
- @twilio-paste/style-props@1.9.2
- @twilio-paste/box@2.13.2
- @twilio-paste/icons@3.13.1
- Updated dependencies [
4114dac2
]:- @twilio-paste/icons@3.13.0
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
1.2.1 (2021-01-25)
Note: Version bump only for package @twilio-paste/select
1.1.28 (2021-01-15)
Note: Version bump only for package @twilio-paste/select
1.1.27 (2021-01-14)
Note: Version bump only for package @twilio-paste/select
1.1.26 (2021-01-13)
Note: Version bump only for package @twilio-paste/select
1.1.25 (2021-01-07)
Note: Version bump only for package @twilio-paste/select
1.1.24 (2020-12-17)
Note: Version bump only for package @twilio-paste/select
1.1.23 (2020-12-17)
Note: Version bump only for package @twilio-paste/select
1.1.22 (2020-12-15)
Note: Version bump only for package @twilio-paste/select
1.1.21 (2020-12-11)
Note: Version bump only for package @twilio-paste/select
1.1.20 (2020-12-11)
Note: Version bump only for package @twilio-paste/select
1.1.19 (2020-12-09)
Note: Version bump only for package @twilio-paste/select
1.1.18 (2020-12-03)
Note: Version bump only for package @twilio-paste/select
1.1.17 (2020-12-02)
Note: Version bump only for package @twilio-paste/select
1.1.16 (2020-11-16)
Note: Version bump only for package @twilio-paste/select
1.1.15 (2020-11-11)
Note: Version bump only for package @twilio-paste/select
1.1.14 (2020-11-10)
Note: Version bump only for package @twilio-paste/select
1.1.13 (2020-11-06)
Note: Version bump only for package @twilio-paste/select
1.1.12 (2020-11-05)
Note: Version bump only for package @twilio-paste/select
1.1.11 (2020-10-30)
Note: Version bump only for package @twilio-paste/select
1.1.10 (2020-10-29)
Note: Version bump only for package @twilio-paste/select
1.1.9 (2020-10-23)
Note: Version bump only for package @twilio-paste/select
1.1.8 (2020-10-21)
Note: Version bump only for package @twilio-paste/select
1.1.7 (2020-10-19)
Note: Version bump only for package @twilio-paste/select
1.1.6 (2020-10-15)
Note: Version bump only for package @twilio-paste/select
1.1.5 (2020-10-13)
Note: Version bump only for package @twilio-paste/select
1.1.4 (2020-10-09)
Note: Version bump only for package @twilio-paste/select
1.1.3 (2020-10-07)
Note: Version bump only for package @twilio-paste/select
1.1.2 (2020-10-07)
Note: Version bump only for package @twilio-paste/select
1.1.1 (2020-10-07)
Note: Version bump only for package @twilio-paste/select
- select: create the package (81076d3)