Skip to content

Commit

Permalink
fix(AISkeleton): export ai skeleton, update dark theme tokens (carbon…
Browse files Browse the repository at this point in the history
…-design-system#15991)

* fix(AISkeleton): export AI Skeleton components

* fix(AISkeleton): update tokens in dark themes

* test(AISkeleton): update snapshots

* chore(eslint): fix linting error
  • Loading branch information
tw15egan authored and preetibansalui committed Apr 24, 2024
1 parent 10fec51 commit b5db13d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 5 deletions.
36 changes: 36 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9700,6 +9700,42 @@ Map {
},
},
},
"unstable__AiSkeletonIcon" => Object {
"propTypes": Object {
"className": Object {
"type": "string",
},
"style": Object {
"type": "object",
},
},
},
"unstable__AiSkeletonPlaceholder" => Object {
"propTypes": Object {
"className": Object {
"type": "string",
},
},
},
"unstable__AiSkeletonText" => Object {
"propTypes": Object {
"className": Object {
"type": "string",
},
"heading": Object {
"type": "bool",
},
"lineCount": Object {
"type": "number",
},
"paragraph": Object {
"type": "bool",
},
"width": Object {
"type": "string",
},
},
},
"unstable__ChatButton" => Object {
"$$typeof": Symbol(react.forward_ref),
"propTypes": Object {
Expand Down
3 changes: 3 additions & 0 deletions packages/react/src/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ describe('Carbon Components React', () => {
"unstable_Pagination",
"unstable_Text",
"unstable_TextDirection",
"unstable__AiSkeletonIcon",
"unstable__AiSkeletonPlaceholder",
"unstable__AiSkeletonText",
"unstable__ChatButton",
"unstable__ChatButtonSkeleton",
"unstable__FluidComboBox",
Expand Down
5 changes: 5 additions & 0 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ export {
ChatButton as unstable__ChatButton,
ChatButtonSkeleton as unstable__ChatButtonSkeleton,
} from './components/ChatButton';
export {
AiSkeletonText as unstable__AiSkeletonText,
AiSkeletonIcon as unstable__AiSkeletonIcon,
AiSkeletonPlaceholder as unstable__AiSkeletonPlaceholder,
} from './components/AiSkeleton';
export * from './components/Stack';
export * from './components/Tooltip';
export {
Expand Down
4 changes: 2 additions & 2 deletions packages/themes/src/g100.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ export const aiPopoverShadowOuter01 = rgba(black, 0.12);
export const aiPopoverShadowOuter02 = rgba(black, 0.08);

// AI skeleton
export const aiSkeletonBackground = blue30;
export const aiSkeletonElementBackground = blue80;
export const aiSkeletonBackground = rgba(blue40, 0.5);
export const aiSkeletonElementBackground = rgba(blue40, 0.3);

// AI Modal tokens
export const aiOverlay = rgba(black, 0.5);
Expand Down
5 changes: 2 additions & 3 deletions packages/themes/src/g90.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
blue40,
blue60,
blue70,
blue80,

// Gray
gray10,
Expand Down Expand Up @@ -229,8 +228,8 @@ export const aiPopoverShadowOuter01 = rgba(black, 0.12);
export const aiPopoverShadowOuter02 = rgba(black, 0.08);

// AI skeleton
export const aiSkeletonBackground = blue30;
export const aiSkeletonElementBackground = blue80;
export const aiSkeletonBackground = rgba(blue40, 0.5);
export const aiSkeletonElementBackground = rgba(blue40, 0.3);

// AI Modal tokens
export const aiOverlay = rgba(black, 0.5);
Expand Down

0 comments on commit b5db13d

Please sign in to comment.