@databricks/design-system 1.3.0 → 1.3.1

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.
@@ -3,8 +3,7 @@ import { ComponentProps } from 'react';
3
3
  import { DangerouslySetAntdProps, TypographyColor } from '../types';
4
4
  declare type AntDTypographyProps = ComponentProps<typeof AntDTypography>;
5
5
  declare type AntDTitleProps = ComponentProps<typeof AntDTypography['Title']>;
6
- export interface TitleProps extends AntDTypographyProps, Pick<AntDTitleProps, 'ellipsis' | 'id' | 'title' | 'aria-label'>, DangerouslySetAntdProps<AntDTitleProps> {
7
- level: 1 | 2 | 3;
6
+ export interface TitleProps extends AntDTypographyProps, Pick<AntDTitleProps, 'level' | 'ellipsis' | 'id' | 'title' | 'aria-label'>, DangerouslySetAntdProps<AntDTitleProps> {
8
7
  withoutMargins?: boolean;
9
8
  color?: TypographyColor;
10
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/design-system/Typography/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMpE,aAAK,mBAAmB,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;AACjE,aAAK,cAAc,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,UACf,SAAQ,mBAAmB,EACzB,IAAI,CAAC,cAAc,EAAE,UAAU,GAAG,IAAI,GAAG,OAAO,GAAG,YAAY,CAAC,EAChE,uBAAuB,CAAC,cAAc,CAAC;IACzC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAkDD,wBAAgB,KAAK,CAAC,SAAS,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAYxD"}
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/design-system/Typography/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMpE,aAAK,mBAAmB,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;AACjE,aAAK,cAAc,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,UACf,SAAQ,mBAAmB,EACzB,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,GAAG,OAAO,GAAG,YAAY,CAAC,EAC1E,uBAAuB,CAAC,cAAc,CAAC;IACzC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,eAAe,CAAC;CACzB;AAwDD,wBAAgB,KAAK,CAAC,SAAS,EAAE,UAAU,GAAG,GAAG,CAAC,OAAO,CAYxD"}
package/dist/index.js CHANGED
@@ -55312,7 +55312,6 @@ function getLevelStyles(theme, props) {
55312
55312
  case 1:
55313
55313
  return /*#__PURE__*/css$1({
55314
55314
  '&&': {
55315
- // TODO:FEINF-697 Move from XXL to XL
55316
55315
  fontSize: theme.typography.fontSizeXxl,
55317
55316
  lineHeight: theme.typography.lineHeightXxl,
55318
55317
  fontWeight: theme.typography.typographyBoldFontWeight
@@ -55322,7 +55321,6 @@ function getLevelStyles(theme, props) {
55322
55321
  case 2:
55323
55322
  return /*#__PURE__*/css$1({
55324
55323
  '&&': {
55325
- // TODO:FEINF-697 Move from XL to LG, consider moving some usages of level 2 up to level 1
55326
55324
  fontSize: theme.typography.fontSizeXl,
55327
55325
  lineHeight: theme.typography.lineHeightXl,
55328
55326
  fontWeight: theme.typography.typographyBoldFontWeight
@@ -55330,6 +55328,15 @@ function getLevelStyles(theme, props) {
55330
55328
  }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
55331
55329
 
55332
55330
  case 3:
55331
+ return /*#__PURE__*/css$1({
55332
+ '&&': {
55333
+ fontSize: theme.typography.fontSizeLg,
55334
+ lineHeight: theme.typography.lineHeightLg,
55335
+ fontWeight: theme.typography.typographyBoldFontWeight
55336
+ }
55337
+ }, process.env.NODE_ENV === "production" ? "" : ";label:getLevelStyles;");
55338
+
55339
+ case 4:
55333
55340
  default:
55334
55341
  return /*#__PURE__*/css$1({
55335
55342
  '&&': {