Skip to content

Commit d6e8cac

Browse files
Merge branch 'main' into feat-ai-typewriter-animation
2 parents d62b979 + 2e22b6a commit d6e8cac

File tree

21 files changed

+258
-21
lines changed

21 files changed

+258
-21
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@twilio-paste/select": patch
3+
"@twilio-paste/core": patch
4+
---
5+
6+
[Select]: Fix wrong background color during disabled state

.changeset/nervous-lies-drive.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@twilio-paste/core": minor
3+
"@twilio-paste/icons": minor
4+
---
5+
6+
[Icons] added 4 new icons FeedbackIcon, TextIcon, CarouselIcon and CardIcon
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@twilio-paste/in-page-navigation": minor
3+
"@twilio-paste/core": minor
4+
---
5+
6+
[InPageNavigation] modified vertical items to wrap text as opposed to using ellipses

cypress/integration/sitemap-vrt/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export const SITEMAP = [
340340
"/tokens/",
341341
];
342342

343-
const SITEMAP_CHUNKS: string[][] = [];
343+
const SITEMAP_CHUNKS = [];
344344
const CHUNK_SIZE = 25;
345345

346346
for (let i = 0, len = SITEMAP.length; i < len; i += CHUNK_SIZE) {

packages/paste-core/components/in-page-navigation/src/InPageNavigationItem.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const VERTICAL_BASE_STYLES: BoxStyleProps = {
6363
paddingRight: "space50",
6464
borderBottomRightRadius: "borderRadius30",
6565
borderTopRightRadius: "borderRadius30",
66+
whiteSpace: "break-spaces",
6667
_focus: {
6768
boxShadow: "shadowFocusInset",
6869
outline: "none",

packages/paste-core/components/select/src/Select.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export const SelectElement = React.forwardRef<HTMLSelectElement, SelectProps>(
110110
width="100%"
111111
_disabled={{
112112
color: variant === "inverse" ? "colorTextInverseWeakest" : "colorTextWeaker",
113+
backgroundColor: "transparent",
113114
cursor: "not-allowed",
114115
opacity: 1,
115116
}}

packages/paste-icons/__test__/__snapshots__/icons.spec.tsx.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Array [
3535
"CallIncomingIcon",
3636
"CallOutgoingIcon",
3737
"CallTransferIcon",
38+
"CardIcon",
39+
"CarouselIcon",
3840
"CartIcon",
3941
"ChatIcon",
4042
"CheckboxCheckIcon",
@@ -100,6 +102,7 @@ Array [
100102
"ExportIcon",
101103
"FaxCapableIcon",
102104
"FeedIcon",
105+
"FeedbackIcon",
103106
"FileAudioIcon",
104107
"FileIcon",
105108
"FileImageIcon",
@@ -298,6 +301,7 @@ Array [
298301
"TextFormatClearIcon",
299302
"TextFormatIcon",
300303
"TextHighlightIcon",
304+
"TextIcon",
301305
"ThemeIcon",
302306
"ThumbsDownIcon",
303307
"ThumbsUpIcon",

packages/paste-icons/build.icon-list.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/paste-icons/json/icons.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { useUID } from "@twilio-paste/uid-library";
2+
/**
3+
* This file was automatically generated with @twilio-labs/svg-to-react
4+
*/
5+
import * as React from "react";
6+
7+
import { IconWrapper } from "./helpers/IconWrapper";
8+
import type { IconWrapperProps } from "./helpers/IconWrapper";
9+
10+
export interface CardIconProps extends IconWrapperProps {
11+
title?: string;
12+
decorative: boolean;
13+
}
14+
15+
const CardIcon = React.forwardRef<HTMLElement, CardIconProps>(
16+
({ as, display, element = "ICON", size, color, title, decorative }, ref) => {
17+
const titleId = `CardIcon-${useUID()}`;
18+
19+
if (!decorative && title == null) {
20+
throw new Error("[CardIcon]: Missing a title for non-decorative icon.");
21+
}
22+
23+
return (
24+
<IconWrapper as={as} display={display} element={element} size={size} color={color} ref={ref}>
25+
<svg
26+
role="img"
27+
aria-hidden={decorative}
28+
fill="none"
29+
xmlns="http://www.w3.org/2000/svg"
30+
width="100%"
31+
height="100%"
32+
viewBox="0 0 20 20"
33+
aria-labelledby={titleId}
34+
>
35+
{title ? <title id={titleId}>{title}</title> : null}
36+
<path
37+
fill="currentColor"
38+
fillRule="evenodd"
39+
clipRule="evenodd"
40+
d="M3 3.505V16.5c0 .163.04.251.072.3a.38.38 0 00.152.128.732.732 0 00.28.072H16.5c.163 0 .251-.04.3-.072a.38.38 0 00.128-.152.731.731 0 00.071-.269l.001-.012V3.5a.524.524 0 00-.072-.3.378.378 0 00-.152-.128.73.73 0 00-.269-.071L16.495 3H3.5a.524.524 0 00-.3.072.38.38 0 00-.128.152.73.73 0 00-.071.269L3 3.505zM16.5 2.5V2h-13c-.337 0-.624.086-.855.24a1.377 1.377 0 00-.467.536A1.728 1.728 0 002 3.472V3.5l.5.001H2v13c0 .337.086.624.24.855.153.229.352.375.536.467a1.729 1.729 0 00.696.178H3.5l.001-.5v.5h13c.337 0 .624-.086.855-.24.229-.153.375-.352.467-.536a1.73 1.73 0 00.178-.696V16.5l-.5-.001h.5v-13c0-.337-.086-.624-.24-.855a1.378 1.378 0 00-.536-.467A1.73 1.73 0 0016.528 2H16.5l-.001.5z"
41+
/>
42+
<path
43+
fill="currentColor"
44+
fillRule="evenodd"
45+
clipRule="evenodd"
46+
d="M7 6.528v2.944a.255.255 0 00.122.028h5.82a.255.255 0 00.121-.028V6.528a.255.255 0 00-.122-.028H7.122A.255.255 0 007 6.528zm-.622-.786c.208-.158.472-.242.744-.242h5.82c.271 0 .536.084.743.242a.926.926 0 01.378.734v3.048c0 .32-.17.575-.378.734a1.226 1.226 0 01-.744.242H7.122c-.272 0-.536-.084-.744-.242A.926.926 0 016 9.524V6.476c0-.32.17-.575.378-.734zM5 12.5a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5zm0 2a.5.5 0 01.5-.5h9a.5.5 0 010 1h-9a.5.5 0 01-.5-.5z"
47+
/>
48+
</svg>
49+
</IconWrapper>
50+
);
51+
},
52+
);
53+
54+
CardIcon.displayName = "CardIcon";
55+
export { CardIcon };

0 commit comments

Comments
 (0)