Text
The Text component is a primitive of the system and can output any supported text style provided by our design tokens. Coupled with Box, it underpins most of our components.
Change Log
11.0.1
Patch Changes
262c1b715#4281 Thanks @PixeledCode! - [all packages]: add use client directive to the components and icons. This will make paste library compatible with server components
11.0.0
Major Changes
f48211e56#4258 Thanks @PixeledCode! - [all packages]: Upgrade to React 19 and drop support for React 16. Paste only supports the three latest versions of React. If you're using Paste in a React 17, 18, or 19 app, you should be able to upgrade with full backwards compatibility. If you experience any issues, please let us know on Github.
Patch Changes
- Updated dependencies [
f48211e56]:- @twilio-paste/customization@9.0.0
- @twilio-paste/animation-library@3.0.0
- @twilio-paste/styling-library@4.0.0
- @twilio-paste/style-props@10.0.0
- @twilio-paste/theme@12.0.0
- @twilio-paste/types@7.0.0
10.1.1
Patch Changes
b97c0525b#3607 Thanks @SiTaggart! - [Text] Improved TsDoc type annotations
10.1.0
Minor Changes
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.
10.0.0
Major Changes
733709127#3395 Thanks @SiTaggart! - Modified the compile target of our JavaScript bundles fromnodetobrowserto 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
Patch Changes
- Updated dependencies [
733709127]:- @twilio-paste/color-contrast-utils@5.0.0
- @twilio-paste/customization@8.0.0
- @twilio-paste/design-tokens@10.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
9.0.3
Patch Changes
b9d9e7123#3328 Thanks @SiTaggart! - [Text] Add transistionDelay CSS property to accompany transistion style prop
9.0.2
Patch Changes
c05f8686a#3319 Thanks @SiTaggart! - [Text] exposing missing typography style properties that are allowed via typescript, but aren't actually implemented on the component. These include list-style-type, textOverflow and overflowWrap
9.0.1
Patch Changes
e801b776b#3173 Thanks @SiTaggart! - [Box, Text]: inject the Paste Core version into the DOM for better debugging in consumer applications and remote inspection
9.0.0
Major Changes
3ab2bb6f4#3114 Thanks @SiTaggart! - ### Breaking changeWe have moved
@types/reactand@types/react-domto 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/reactand@types/react-domare installed as dependencies of your application.
Patch Changes
3ab2bb6f4#3114 Thanks @SiTaggart! - [Box, Sibling-Box, Text] improved backwards compat with React 17 typesUpdated dependencies [
bce889344,3ab2bb6f4]:- @twilio-paste/theme@10.0.0
- @twilio-paste/customization@7.0.0
- @twilio-paste/style-props@8.0.0
- @twilio-paste/types@5.0.0
8.0.0
Major Changes
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.
Minor Changes
0acdf3486#3049 Thanks @SiTaggart! - [Box, Text, Style Props, Theme]: remove checking and warning for deprecated design tokens and themes that have been removed from the system
Patch Changes
- Updated dependencies [
dbd9bf992,3c89fd83d,d97098846,0acdf3486,ef094db4a,0acdf3486]:- @twilio-paste/design-tokens@9.0.0
- @twilio-paste/customization@6.0.0
- @twilio-paste/animation-library@1.0.0
- @twilio-paste/styling-library@2.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
7.0.2
Patch Changes
7.0.1
Patch Changes
a4c9e70b0#2763 Thanks @shleewhite! - Update ESLint rules, which changed some formatting.
7.0.0
Patch Changes
- Updated dependencies [
12c4ba22a,364083627,364083627,364083627,364083627]:- @twilio-paste/style-props@6.0.0
- @twilio-paste/design-tokens@8.0.0
- @twilio-paste/theme@8.0.0
- @twilio-paste/customization@5.0.0
6.0.1
Patch Changes
ae9dd50f#2466 Thanks @TheSisb! - [All packages] Update our ESBuild version and remove minification of identifiers in our production builds.
6.0.0
Minor Changes
09762f0f#2376 Thanks @andipants12! - [Text] Update tests to account forstylisparser change in jest emotion matchers.
Patch Changes
- Updated dependencies [
09762f0f1,09762f0f1]:- @twilio-paste/styling-library@1.0.0
- @twilio-paste/theme@7.0.0
- @twilio-paste/customization@4.0.0
- @twilio-paste/style-props@5.0.0
5.2.0
Minor Changes
28d87c14b#2383 Thanks @andipants12! - [Box, Text, Style-props] CSS types package dependency upgrade
5.1.0
Minor Changes
cf5878d8#2285 Thanks @SiTaggart! - [Box, Text] Prevented styling props from being forwarded to their HTML DOM nodes in the browser for a cleaner DOM inspector view
5.0.2
Patch Changes
73c596919#2269 Thanks @SiTaggart! - Fixed a regression with the compilation script that caused incompatible ESM module importing of JSON files.
5.0.1
Patch Changes
c867e3f48#2237 Thanks @SiTaggart! - Updated a build dependency (esbuild) which changes the output of our builds slightly, without materially changing anything about the code.
5.0.0
Patch Changes
- Updated dependencies [
0a52eeee,0a52eeee,04de0d1d,04de0d1d,04de0d1d]:- @twilio-paste/design-tokens@7.0.0
- @twilio-paste/theme@6.0.0
- @twilio-paste/style-props@4.0.0
- @twilio-paste/customization@3.0.0
4.1.5
Patch Changes
b7675915#1985 Thanks @TheSisb! - For debugging purposes we now ship afilename.debug.jsunminified 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.
4.1.4
Patch Changes
130d817b#1975 Thanks @TheSisb! - [Text] Add missing style props "whiteSpace" and "fontVariantNumeric"
4.1.3
Patch Changes
9d32315e#1879 Thanks @SiTaggart! - Added three new pseudo selectors to be used on Box and Text. You can now style selected and hover, selected and focus and selected and focus-visible
4.1.2
Patch Changes
7a1ed203#1785 Thanks @SiTaggart! - [Text] Text now handles the case where a variant being set on the component, does not appear in the elements object set on the Customization Provider
4.1.1
Patch Changes
bf5ad8d6#1656 Thanks @SiTaggart! - [Text] Allow datetime html attribute to be a valid prop
4.1.0
Minor Changes
035bb7d8#1599 Thanks @SiTaggart! - [Text] Enable Text to respect element customizations set on the customization provider. Text 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.
4.0.4
Patch Changes
b98b3713#1426 Thanks @SiTaggart! - Add the ability to warn consumers that they are using a deprecated Design Token using prop type validation on the Box and Text component
4.0.3
Patch Changes
25a1f632#1404 Thanks @SiTaggart! - update internal usage of design tokens to reflect new strong / weak nomenclature
4.0.2
Patch Changes
0eded1fd#1319 Thanks @SiTaggart! - Change internal dependencies to have minor range matching on version numbers
4.0.1
Patch Changes
- Updated dependencies [
514bd5aa]:- @twilio-paste/theme@5.0.1
- @twilio-paste/style-props@3.0.1
4.0.0
Patch Changes
- Updated dependencies [
4c9ed5ca,26c828d8]:- @twilio-paste/design-tokens@6.6.0
- @twilio-paste/theme@5.0.0
- @twilio-paste/style-props@3.0.0
3.0.1
Patch Changes
- Updated dependencies [
944c3407]:- @twilio-paste/design-tokens@6.5.2
- @twilio-paste/style-props@2.0.1
- @twilio-paste/theme@4.3.1
3.0.0
Patch Changes
- Updated dependencies [
f1675586]:- @twilio-paste/theme@4.3.0
- @twilio-paste/style-props@2.0.0
2.5.2
Patch Changes
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]:- @twilio-paste/theme@4.2.2
- @twilio-paste/style-props@1.9.2
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
2.5.1 (2021-01-25)
Note: Version bump only for package @twilio-paste/text
2.5.0 (2021-01-21)
Features
2.4.3 (2021-01-15)
Note: Version bump only for package @twilio-paste/text
2.4.2 (2021-01-07)
Note: Version bump only for package @twilio-paste/text
2.4.1 (2020-12-17)
Note: Version bump only for package @twilio-paste/text
2.4.0 (2020-12-15)
Features
- text: remove propType checking (cea3898)
2.3.20 (2020-12-11)
Note: Version bump only for package @twilio-paste/text
2.3.19 (2020-12-11)
Note: Version bump only for package @twilio-paste/text
2.3.18 (2020-12-09)
Note: Version bump only for package @twilio-paste/text
2.3.17 (2020-12-02)
Note: Version bump only for package @twilio-paste/text
2.3.16 (2020-11-11)
Note: Version bump only for package @twilio-paste/text
2.3.15 (2020-11-06)
Note: Version bump only for package @twilio-paste/text
2.3.14 (2020-11-05)
Note: Version bump only for package @twilio-paste/text
2.3.13 (2020-10-23)
Note: Version bump only for package @twilio-paste/text
2.3.12 (2020-10-15)
Note: Version bump only for package @twilio-paste/text
2.3.11 (2020-10-13)
Note: Version bump only for package @twilio-paste/text
2.3.10 (2020-10-07)
Note: Version bump only for package @twilio-paste/text
2.3.9 (2020-10-07)
Note: Version bump only for package @twilio-paste/text
2.3.8 (2020-10-07)
Note: Version bump only for package @twilio-paste/text
2.3.7 (2020-10-07)
Note: Version bump only for package @twilio-paste/text
2.3.6 (2020-09-22)
Note: Version bump only for package @twilio-paste/text
2.3.5 (2020-09-21)
Note: Version bump only for package @twilio-paste/text
2.3.4 (2020-09-15)
Note: Version bump only for package @twilio-paste/text
2.3.3 (2020-09-15)
Note: Version bump only for package @twilio-paste/text
2.3.2 (2020-09-08)
Note: Version bump only for package @twilio-paste/text
2.3.1 (2020-09-08)
Note: Version bump only for package @twilio-paste/text
2.3.0 (2020-09-03)
Features
- text: add support for word-break prop (abba70d)
2.2.17 (2020-08-31)
Note: Version bump only for package @twilio-paste/text
2.2.16 (2020-08-31)
Note: Version bump only for package @twilio-paste/text
2.2.15 (2020-08-31)
Note: Version bump only for package @twilio-paste/text
2.2.14 (2020-08-24)
Note: Version bump only for package @twilio-paste/text
2.2.13 (2020-08-19)
Note: Version bump only for package @twilio-paste/text
2.2.12 (2020-08-12)
Note: Version bump only for package @twilio-paste/text
2.2.11 (2020-08-12)
Note: Version bump only for package @twilio-paste/text
2.2.10 (2020-08-06)
Note: Version bump only for package @twilio-paste/text
2.2.9 (2020-08-04)
Note: Version bump only for package @twilio-paste/text
2.2.8 (2020-08-04)
Note: Version bump only for package @twilio-paste/text
2.2.7 (2020-07-30)
Note: Version bump only for package @twilio-paste/text
2.2.6 (2020-07-29)
Note: Version bump only for package @twilio-paste/text
2.2.5 (2020-07-22)
Note: Version bump only for package @twilio-paste/text
2.2.4 (2020-07-15)
Note: Version bump only for package @twilio-paste/text
2.2.3 (2020-07-14)
Note: Version bump only for package @twilio-paste/text
2.2.2 (2020-07-14)
Note: Version bump only for package @twilio-paste/text
2.2.1 (2020-07-01)
Note: Version bump only for package @twilio-paste/text
2.2.0 (2020-06-29)
Features
- text: accept textTransform css prop (b50505e)
2.1.16 (2020-06-25)
Note: Version bump only for package @twilio-paste/text
2.1.15 (2020-06-22)
Note: Version bump only for package @twilio-paste/text
2.1.14 (2020-06-18)
Note: Version bump only for package @twilio-paste/text
2.1.13 (2020-06-16)
Note: Version bump only for package @twilio-paste/text
2.1.12 (2020-06-12)
Note: Version bump only for package @twilio-paste/text
2.1.11 (2020-06-10)
Bug Fixes
- text: enable the transition prop (85a58fe)
2.1.10 (2020-06-05)
Note: Version bump only for package @twilio-paste/text
2.1.9 (2020-06-01)
Note: Version bump only for package @twilio-paste/text
2.1.8 (2020-06-01)
Note: Version bump only for package @twilio-paste/text
2.1.7 (2020-05-20)
Note: Version bump only for package @twilio-paste/text
2.1.6 (2020-05-07)
Note: Version bump only for package @twilio-paste/text
2.1.5 (2020-05-07)
Note: Version bump only for package @twilio-paste/text
2.1.4 (2020-05-04)
Bug Fixes
- text: switch to new spacing prop validators (affc204)
2.1.3 (2020-05-01)
Note: Version bump only for package @twilio-paste/text
2.1.2 (2020-04-25)
Note: Version bump only for package @twilio-paste/text
2.1.1 (2020-04-22)
Note: Version bump only for package @twilio-paste/text
2.1.0 (2020-04-17)
Features
- components: promote text components, spinner and primitive to prod (5605adc)
2.0.3 (2020-04-15)
Note: Version bump only for package @twilio-paste/text
2.0.2 (2020-04-08)
Bug Fixes
- text: package dependencies updated to be correct (89af01f)
2.0.1 (2020-04-07)
Note: Version bump only for package @twilio-paste/text
2.0.0 (2020-04-07)
Bug Fixes
- text: change textColor to color prop, setup pseudo styles (e6ad527)
BREAKING CHANGES
- text: Change in the component API.
textColorprop has been changed tocolor.
1.2.4 (2020-04-02)
Note: Version bump only for package @twilio-paste/text
1.2.3 (2020-03-24)
Bug Fixes
- text: switch from theme-tokens to theme package dep (304ab00)
1.2.2 (2020-03-17)
Note: Version bump only for package @twilio-paste/text
1.2.1 (2020-03-17)
Note: Version bump only for package @twilio-paste/text
1.2.0 (2020-03-11)
Features
- text: add cursor style prop (3cfd1c2)
1.1.13 (2020-03-06)
Note: Version bump only for package @twilio-paste/text
1.1.12 (2020-03-02)
Note: Version bump only for package @twilio-paste/text
1.1.11 (2020-02-28)
Note: Version bump only for package @twilio-paste/text
1.1.10 (2020-02-26)
Bug Fixes
1.1.9 (2020-02-14)
Bug Fixes
- text: add missing peer deps (03d0402)
1.1.8 (2020-02-13)
Note: Version bump only for package @twilio-paste/text
1.1.7 (2020-02-11)
Note: Version bump only for package @twilio-paste/text
1.1.6 (2020-02-11)
Note: Version bump only for package @twilio-paste/text
1.1.5 (2020-02-11)
Note: Version bump only for package @twilio-paste/text
1.1.4 (2020-02-03)
Note: Version bump only for package @twilio-paste/text
1.1.3 (2020-01-24)
Note: Version bump only for package @twilio-paste/text
1.1.2 (2020-01-17)
Note: Version bump only for package @twilio-paste/text
1.1.1 (2019-12-20)
Note: Version bump only for package @twilio-paste/text
1.1.0 (2019-12-19)
Features
- text: use style-props package, create method to safelySpreadProps (29da81f)
1.0.4 (2019-12-05)
Note: Version bump only for package @twilio-paste/text
1.0.3 (2019-11-20)
Bug Fixes
1.0.2 (2019-11-18)
Bug Fixes
- design-tokens: update some blues, reds, and focus shadow (#185) (98d70cc)
- website: remove vague anchor do dont (#177) (8530c56)
1.0.1 (2019-11-12)
Bug Fixes
- prettier updated, updating formatting (8644831)
1.0.0 (2019-11-11)
Features
- icons: delete old icons, add new streamline icons (#129) (571791d)
- typography: heading component (#149) (4e033e6)
- enable theme switching on the docsite (#124) (df797e5)
BREAKING CHANGES
icons: removed all the inherited icons since we're moving to a new system
chore(icons): update icon list for storybook
fix(spinner): use new icon
fix(storybook): use new icon for story
fix(story): button icons should be 24px
fix: adjust icon size tokens
feat: add iconSizes as separate key in theme-tokens
feat(icons): icons package to use tokens and update icons
fix(spinner): update to use tokens and new icons
fix(button): use correct spinner size
fix(icons): major icons package fixes
- huge overhaul to build process
- now uses rollup
- builds into cjs and esm directories
- made the package publishable to npm
- moved svg folder out of src, now src only holds react stuff
- updated scripts to use new paths and cleaned up the code
- programmatically generates rollup config from the icon-list command
chore: add new icons dist folders to gitignore
fix: spinner and button icon usage
feat(icons): add rollup icon list cache file
fix(core-bundle): sort packages for consistent builds
chore: use
esminstead ofesin rollup for correctnesschore: yarn.lock
fix(spinner): lint error
chore(icons): move rollup icon list
chore(spinner): use types package in story
fix(spinner): swap out destructured props for explicit props
0.6.0 (2019-10-31)
Features
0.5.0 (2019-10-29)
Features
0.4.1 (2019-09-16)
Note: Version bump only for package @twilio-paste/text
0.4.0 (2019-08-15)
Bug Fixes
- change @paste scope to @twilio-paste (#2) (1d8d2ff)