@khanacademy/wonder-blocks-cell 6.1.3 → 6.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @khanacademy/wonder-blocks-cell@6.1.3 build:css /home/runner/work/wonder-blocks/wonder-blocks/packages/wonder-blocks-cell
2
+ > @khanacademy/wonder-blocks-cell@6.1.5 build:css /home/runner/work/wonder-blocks/wonder-blocks/packages/wonder-blocks-cell
3
3
  > pnpm exec wonder-blocks-tokens .
4
4
 
5
5
  CSS variables generated successfully in: /home/runner/work/wonder-blocks/wonder-blocks/packages/wonder-blocks-cell/dist/css
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @khanacademy/wonder-blocks-cell
2
2
 
3
+ ## 6.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 70d6c08: DetailCell: Use `semanticColor.core.foreground.neutral.default` for the subtitle in all themes. This removes the need for a component theme token for the subtitle color
8
+ - Updated dependencies [70d6c08]
9
+ - @khanacademy/wonder-blocks-tokens@14.1.3
10
+ - @khanacademy/wonder-blocks-clickable@8.0.5
11
+ - @khanacademy/wonder-blocks-styles@0.2.37
12
+ - @khanacademy/wonder-blocks-typography@4.2.27
13
+
14
+ ## 6.1.4
15
+
16
+ ### Patch Changes
17
+
18
+ - 8a36c70: Re-publish to publish with Trusted Publishing
19
+ - 3e0d137: Re-publishing via Trusted Publishing
20
+ - Updated dependencies [8a36c70]
21
+ - Updated dependencies [3e0d137]
22
+ - @khanacademy/wonder-blocks-clickable@8.0.4
23
+ - @khanacademy/wonder-blocks-core@12.4.2
24
+ - @khanacademy/wonder-blocks-styles@0.2.36
25
+ - @khanacademy/wonder-blocks-tokens@14.1.2
26
+ - @khanacademy/wonder-blocks-typography@4.2.26
27
+
3
28
  ## 6.1.3
4
29
 
5
30
  ### Patch Changes
package/dist/css/vars.css CHANGED
@@ -22,7 +22,6 @@
22
22
  --wb-c-cell-rule-sizing-height: var(--wb-sizing-size_020);
23
23
  --wb-c-cell-rule-shadow: inset 0px -1px 0px var(--wb-semanticColor-core-border-neutral-subtle);
24
24
  --wb-c-cell-title-font-lineHeight: var(--wb-font-body-lineHeight-medium);
25
- --wb-c-cell-subtitle-color-foreground: var(--wb-semanticColor-core-foreground-neutral-default);
26
25
  --wb-c-cell-subtitle-font-size: var(--wb-font-body-size-small);
27
26
  --wb-c-cell-subtitle-font-lineHeight: var(--wb-font-body-lineHeight-small);}
28
27
 
@@ -50,6 +49,5 @@
50
49
  --wb-c-cell-rule-sizing-height: var(--wb-sizing-size_0);
51
50
  --wb-c-cell-rule-shadow: none;
52
51
  --wb-c-cell-title-font-lineHeight: var(--wb-font-heading-lineHeight-small);
53
- --wb-c-cell-subtitle-color-foreground: var(--wb-semanticColor-core-foreground-neutral-subtle);
54
52
  --wb-c-cell-subtitle-font-size: var(--wb-font-body-size-xsmall);
55
53
  --wb-c-cell-subtitle-font-lineHeight: var(--wb-font-body-lineHeight-xsmall);}
package/dist/es/index.js CHANGED
@@ -7,7 +7,7 @@ import { View } from '@khanacademy/wonder-blocks-core';
7
7
  import { border, semanticColor, sizing, font, mapValuesToCssVars } from '@khanacademy/wonder-blocks-tokens';
8
8
  import { focusStyles } from '@khanacademy/wonder-blocks-styles';
9
9
 
10
- var themeDefault = {root:{border:{width:{default:border.width.medium,selected:border.width.thick},radius:{default:border.radius.radius_0,focus:border.radius.radius_040,press:border.radius.radius_0,focusPress:border.radius.radius_040}},color:{press:{border:semanticColor.core.border.instructive.default},selected:{foreground:semanticColor.core.foreground.instructive.default,border:semanticColor.core.border.instructive.default},disabled:{foreground:semanticColor.core.foreground.disabled.default}},layout:{gap:{default:sizing.size_160,detail:sizing.size_020},padding:{block:{default:sizing.size_120,detail:sizing.size_160},inline:{default:sizing.size_160,detail:sizing.size_160}}},sizing:{minHeight:sizing.size_480}},accessoryLeft:{color:{default:{foreground:"inherit"}}},accessoryRight:{color:{default:{foreground:semanticColor.core.foreground.neutral.default},selected:{foreground:semanticColor.core.foreground.instructive.subtle},disabled:{foreground:semanticColor.core.foreground.neutral.strong}}},rule:{sizing:{height:sizing.size_020},shadow:`inset 0px -1px 0px ${semanticColor.core.border.neutral.subtle}`},title:{font:{lineHeight:font.body.lineHeight.medium}},subtitle:{color:{foreground:semanticColor.core.foreground.neutral.default},font:{size:font.body.size.small,lineHeight:font.body.lineHeight.small}}};
10
+ var themeDefault = {root:{border:{width:{default:border.width.medium,selected:border.width.thick},radius:{default:border.radius.radius_0,focus:border.radius.radius_040,press:border.radius.radius_0,focusPress:border.radius.radius_040}},color:{press:{border:semanticColor.core.border.instructive.default},selected:{foreground:semanticColor.core.foreground.instructive.default,border:semanticColor.core.border.instructive.default},disabled:{foreground:semanticColor.core.foreground.disabled.default}},layout:{gap:{default:sizing.size_160,detail:sizing.size_020},padding:{block:{default:sizing.size_120,detail:sizing.size_160},inline:{default:sizing.size_160,detail:sizing.size_160}}},sizing:{minHeight:sizing.size_480}},accessoryLeft:{color:{default:{foreground:"inherit"}}},accessoryRight:{color:{default:{foreground:semanticColor.core.foreground.neutral.default},selected:{foreground:semanticColor.core.foreground.instructive.subtle},disabled:{foreground:semanticColor.core.foreground.neutral.strong}}},rule:{sizing:{height:sizing.size_020},shadow:`inset 0px -1px 0px ${semanticColor.core.border.neutral.subtle}`},title:{font:{lineHeight:font.body.lineHeight.medium}},subtitle:{font:{size:font.body.size.small,lineHeight:font.body.lineHeight.small}}};
11
11
 
12
12
  var theme = mapValuesToCssVars(themeDefault,"--wb-c-cell-");
13
13
 
@@ -17,6 +17,6 @@ const LeftAccessory=({leftAccessory,style,disabled})=>{if(!leftAccessory){return
17
17
 
18
18
  const CompactCell=function(props){const{title,...coreProps}=props;return jsx(CellCore,{...coreProps,children:typeof title==="string"?jsx(BodyText,{weight:"semi",style:{lineHeight:theme.title.font.lineHeight},children:title}):title})};
19
19
 
20
- const Subtitle=({subtitle,disabled})=>{if(!subtitle){return null}if(typeof subtitle==="string"){return jsx(BodyText,{size:"small",tag:"span",style:[!disabled&&styles.subtitle,{fontSize:theme.subtitle.font.size,lineHeight:theme.subtitle.font.lineHeight}],children:subtitle})}return subtitle};const DetailCell=function(props){const{title,subtitle1,subtitle2,...coreProps}=props;return jsxs(CellCore,{...coreProps,innerStyle:styles.innerWrapper,contentStyle:{gap:theme.root.layout.gap.detail},children:[jsx(Subtitle,{subtitle:subtitle1,disabled:coreProps.disabled}),typeof title==="string"?jsx(BodyText,{weight:"semi",style:{lineHeight:theme.title.font.lineHeight},children:title}):title,jsx(Subtitle,{subtitle:subtitle2,disabled:coreProps.disabled})]})};const styles=StyleSheet.create({subtitle:{color:theme.subtitle.color.foreground},innerWrapper:{paddingBlock:theme.root.layout.padding.block.detail,paddingInline:theme.root.layout.padding.inline.detail}});
20
+ const Subtitle=({subtitle,disabled})=>{if(!subtitle){return null}if(typeof subtitle==="string"){return jsx(BodyText,{size:"small",tag:"span",style:[!disabled&&styles.subtitle,{fontSize:theme.subtitle.font.size,lineHeight:theme.subtitle.font.lineHeight}],children:subtitle})}return subtitle};const DetailCell=function(props){const{title,subtitle1,subtitle2,...coreProps}=props;return jsxs(CellCore,{...coreProps,innerStyle:styles.innerWrapper,contentStyle:{gap:theme.root.layout.gap.detail},children:[jsx(Subtitle,{subtitle:subtitle1,disabled:coreProps.disabled}),typeof title==="string"?jsx(BodyText,{weight:"semi",style:{lineHeight:theme.title.font.lineHeight},children:title}):title,jsx(Subtitle,{subtitle:subtitle2,disabled:coreProps.disabled})]})};const styles=StyleSheet.create({subtitle:{color:semanticColor.core.foreground.neutral.default},innerWrapper:{paddingBlock:theme.root.layout.padding.block.detail,paddingInline:theme.root.layout.padding.inline.detail}});
21
21
 
22
22
  export { CompactCell, DetailCell };
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
15
15
 
16
16
  var Clickable__default = /*#__PURE__*/_interopDefaultLegacy(Clickable);
17
17
 
18
- var themeDefault = {root:{border:{width:{default:wonderBlocksTokens.border.width.medium,selected:wonderBlocksTokens.border.width.thick},radius:{default:wonderBlocksTokens.border.radius.radius_0,focus:wonderBlocksTokens.border.radius.radius_040,press:wonderBlocksTokens.border.radius.radius_0,focusPress:wonderBlocksTokens.border.radius.radius_040}},color:{press:{border:wonderBlocksTokens.semanticColor.core.border.instructive.default},selected:{foreground:wonderBlocksTokens.semanticColor.core.foreground.instructive.default,border:wonderBlocksTokens.semanticColor.core.border.instructive.default},disabled:{foreground:wonderBlocksTokens.semanticColor.core.foreground.disabled.default}},layout:{gap:{default:wonderBlocksTokens.sizing.size_160,detail:wonderBlocksTokens.sizing.size_020},padding:{block:{default:wonderBlocksTokens.sizing.size_120,detail:wonderBlocksTokens.sizing.size_160},inline:{default:wonderBlocksTokens.sizing.size_160,detail:wonderBlocksTokens.sizing.size_160}}},sizing:{minHeight:wonderBlocksTokens.sizing.size_480}},accessoryLeft:{color:{default:{foreground:"inherit"}}},accessoryRight:{color:{default:{foreground:wonderBlocksTokens.semanticColor.core.foreground.neutral.default},selected:{foreground:wonderBlocksTokens.semanticColor.core.foreground.instructive.subtle},disabled:{foreground:wonderBlocksTokens.semanticColor.core.foreground.neutral.strong}}},rule:{sizing:{height:wonderBlocksTokens.sizing.size_020},shadow:`inset 0px -1px 0px ${wonderBlocksTokens.semanticColor.core.border.neutral.subtle}`},title:{font:{lineHeight:wonderBlocksTokens.font.body.lineHeight.medium}},subtitle:{color:{foreground:wonderBlocksTokens.semanticColor.core.foreground.neutral.default},font:{size:wonderBlocksTokens.font.body.size.small,lineHeight:wonderBlocksTokens.font.body.lineHeight.small}}};
18
+ var themeDefault = {root:{border:{width:{default:wonderBlocksTokens.border.width.medium,selected:wonderBlocksTokens.border.width.thick},radius:{default:wonderBlocksTokens.border.radius.radius_0,focus:wonderBlocksTokens.border.radius.radius_040,press:wonderBlocksTokens.border.radius.radius_0,focusPress:wonderBlocksTokens.border.radius.radius_040}},color:{press:{border:wonderBlocksTokens.semanticColor.core.border.instructive.default},selected:{foreground:wonderBlocksTokens.semanticColor.core.foreground.instructive.default,border:wonderBlocksTokens.semanticColor.core.border.instructive.default},disabled:{foreground:wonderBlocksTokens.semanticColor.core.foreground.disabled.default}},layout:{gap:{default:wonderBlocksTokens.sizing.size_160,detail:wonderBlocksTokens.sizing.size_020},padding:{block:{default:wonderBlocksTokens.sizing.size_120,detail:wonderBlocksTokens.sizing.size_160},inline:{default:wonderBlocksTokens.sizing.size_160,detail:wonderBlocksTokens.sizing.size_160}}},sizing:{minHeight:wonderBlocksTokens.sizing.size_480}},accessoryLeft:{color:{default:{foreground:"inherit"}}},accessoryRight:{color:{default:{foreground:wonderBlocksTokens.semanticColor.core.foreground.neutral.default},selected:{foreground:wonderBlocksTokens.semanticColor.core.foreground.instructive.subtle},disabled:{foreground:wonderBlocksTokens.semanticColor.core.foreground.neutral.strong}}},rule:{sizing:{height:wonderBlocksTokens.sizing.size_020},shadow:`inset 0px -1px 0px ${wonderBlocksTokens.semanticColor.core.border.neutral.subtle}`},title:{font:{lineHeight:wonderBlocksTokens.font.body.lineHeight.medium}},subtitle:{font:{size:wonderBlocksTokens.font.body.size.small,lineHeight:wonderBlocksTokens.font.body.lineHeight.small}}};
19
19
 
20
20
  var theme = wonderBlocksTokens.mapValuesToCssVars(themeDefault,"--wb-c-cell-");
21
21
 
@@ -25,7 +25,7 @@ const LeftAccessory=({leftAccessory,style,disabled})=>{if(!leftAccessory){return
25
25
 
26
26
  const CompactCell=function(props){const{title,...coreProps}=props;return jsxRuntime.jsx(CellCore,{...coreProps,children:typeof title==="string"?jsxRuntime.jsx(wonderBlocksTypography.BodyText,{weight:"semi",style:{lineHeight:theme.title.font.lineHeight},children:title}):title})};
27
27
 
28
- const Subtitle=({subtitle,disabled})=>{if(!subtitle){return null}if(typeof subtitle==="string"){return jsxRuntime.jsx(wonderBlocksTypography.BodyText,{size:"small",tag:"span",style:[!disabled&&styles.subtitle,{fontSize:theme.subtitle.font.size,lineHeight:theme.subtitle.font.lineHeight}],children:subtitle})}return subtitle};const DetailCell=function(props){const{title,subtitle1,subtitle2,...coreProps}=props;return jsxRuntime.jsxs(CellCore,{...coreProps,innerStyle:styles.innerWrapper,contentStyle:{gap:theme.root.layout.gap.detail},children:[jsxRuntime.jsx(Subtitle,{subtitle:subtitle1,disabled:coreProps.disabled}),typeof title==="string"?jsxRuntime.jsx(wonderBlocksTypography.BodyText,{weight:"semi",style:{lineHeight:theme.title.font.lineHeight},children:title}):title,jsxRuntime.jsx(Subtitle,{subtitle:subtitle2,disabled:coreProps.disabled})]})};const styles=aphrodite.StyleSheet.create({subtitle:{color:theme.subtitle.color.foreground},innerWrapper:{paddingBlock:theme.root.layout.padding.block.detail,paddingInline:theme.root.layout.padding.inline.detail}});
28
+ const Subtitle=({subtitle,disabled})=>{if(!subtitle){return null}if(typeof subtitle==="string"){return jsxRuntime.jsx(wonderBlocksTypography.BodyText,{size:"small",tag:"span",style:[!disabled&&styles.subtitle,{fontSize:theme.subtitle.font.size,lineHeight:theme.subtitle.font.lineHeight}],children:subtitle})}return subtitle};const DetailCell=function(props){const{title,subtitle1,subtitle2,...coreProps}=props;return jsxRuntime.jsxs(CellCore,{...coreProps,innerStyle:styles.innerWrapper,contentStyle:{gap:theme.root.layout.gap.detail},children:[jsxRuntime.jsx(Subtitle,{subtitle:subtitle1,disabled:coreProps.disabled}),typeof title==="string"?jsxRuntime.jsx(wonderBlocksTypography.BodyText,{weight:"semi",style:{lineHeight:theme.title.font.lineHeight},children:title}):title,jsxRuntime.jsx(Subtitle,{subtitle:subtitle2,disabled:coreProps.disabled})]})};const styles=aphrodite.StyleSheet.create({subtitle:{color:wonderBlocksTokens.semanticColor.core.foreground.neutral.default},innerWrapper:{paddingBlock:theme.root.layout.padding.block.detail,paddingInline:theme.root.layout.padding.inline.detail}});
29
29
 
30
30
  exports.CompactCell = CompactCell;
31
31
  exports.DetailCell = DetailCell;
@@ -76,9 +76,6 @@ declare const _default: {
76
76
  };
77
77
  };
78
78
  subtitle: {
79
- color: {
80
- foreground: string;
81
- };
82
79
  font: {
83
80
  size: string;
84
81
  lineHeight: string;
@@ -76,9 +76,6 @@ declare const _default: {
76
76
  };
77
77
  };
78
78
  subtitle: {
79
- color: {
80
- foreground: string;
81
- };
82
79
  font: {
83
80
  size: string;
84
81
  lineHeight: string;
@@ -76,9 +76,6 @@ declare const _default: {
76
76
  };
77
77
  };
78
78
  subtitle: {
79
- color: {
80
- foreground: string;
81
- };
82
79
  font: {
83
80
  size: string;
84
81
  lineHeight: string;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "",
4
4
  "author": "Khan Academy",
5
5
  "license": "MIT",
6
- "version": "6.1.3",
6
+ "version": "6.1.5",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -28,11 +28,11 @@
28
28
  "./styles.css": "./dist/css/vars.css"
29
29
  },
30
30
  "dependencies": {
31
- "@khanacademy/wonder-blocks-clickable": "8.0.3",
32
- "@khanacademy/wonder-blocks-core": "12.4.1",
33
- "@khanacademy/wonder-blocks-styles": "0.2.35",
34
- "@khanacademy/wonder-blocks-tokens": "14.1.1",
35
- "@khanacademy/wonder-blocks-typography": "4.2.25"
31
+ "@khanacademy/wonder-blocks-clickable": "8.0.5",
32
+ "@khanacademy/wonder-blocks-core": "12.4.2",
33
+ "@khanacademy/wonder-blocks-styles": "0.2.37",
34
+ "@khanacademy/wonder-blocks-tokens": "14.1.3",
35
+ "@khanacademy/wonder-blocks-typography": "4.2.27"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "aphrodite": "^1.2.5",