@redsift/design-system 7.4.0-alpha.0 → 7.4.0-alpha.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.
package/index.d.ts CHANGED
@@ -772,7 +772,7 @@ type IconSize = ValueOf<typeof IconSize>;
772
772
  /**
773
773
  * Component props.
774
774
  */
775
- interface IconProps extends ComponentProps<'span'>, StylingProps {
775
+ interface IconProps extends ComponentProps<'span'>, Omit<StylingProps, 'width' | 'height'> {
776
776
  /** Indicates whether the element is exposed to an accessibility API. */
777
777
  'aria-hidden'?: boolean | 'false' | 'true';
778
778
  /** A screen reader only label for the Icon. */
@@ -880,7 +880,7 @@ type BadgeVariant = ValueOf<typeof BadgeVariant>;
880
880
  /**
881
881
  * Component props.
882
882
  */
883
- interface BadgeProps extends ComponentProps<'div'>, StylingProps {
883
+ interface BadgeProps extends ComponentProps<'div'>, Omit<StylingProps, 'width' | 'height'> {
884
884
  /** Whether the badge should automatically break content. */
885
885
  autoBreak?: boolean;
886
886
  /** Color variant. The product colors are available but should only be used to display the Badge in the color of another product. To display a Badge with a color of the current product, use `default`. */
package/index.js CHANGED
@@ -768,6 +768,12 @@ const baseGrid = css`
768
768
  }}
769
769
  `;
770
770
  const baseStyling = css`
771
+ font-family: var(--redsift-typography-body-font-family);
772
+ font-size: var(--redsift-typography-body-font-size);
773
+ font-weight: var(--redsift-typography-body-font-weight);
774
+ line-height: var(--redsift-typography-body-line-height);
775
+ color: var(--redsift-color-neutral-black);
776
+
771
777
  ${baseLayout}
772
778
  ${baseSpacing}
773
779
  ${baseSizing}
@@ -790,8 +796,10 @@ const baseContainer = css`
790
796
  * Component style.
791
797
  */
792
798
  const StyledIcon = styled.span`
793
- font-style: normal;
794
799
  position: relative;
800
+ ${baseStyling}
801
+
802
+ font-style: normal;
795
803
 
796
804
  svg {
797
805
  vertical-align: -0.125em;
@@ -911,7 +919,6 @@ const StyledIcon = styled.span`
911
919
  `;
912
920
  }
913
921
  }}
914
- ${baseStyling}
915
922
  `;
916
923
 
917
924
  const _excluded$D = ["aria-hidden", "aria-label", "badge", "className", "color", "icon", "size", "svgProps"];
@@ -1422,6 +1429,13 @@ const HeadingVariant = {
1422
1429
  * Component style.
1423
1430
  */
1424
1431
  const StyledHeading = styled.span`
1432
+ margin: 0;
1433
+ padding: 0;
1434
+ border: 0;
1435
+ font-size: 100%;
1436
+ font: inherit;
1437
+ vertical-align: baseline;
1438
+
1425
1439
  ${baseStyling}
1426
1440
 
1427
1441
  ${_ref => {
@@ -1782,7 +1796,13 @@ const AppBar = /*#__PURE__*/forwardRef((props, ref) => {
1782
1796
  onPress: appContainerState.collapseSidePanel,
1783
1797
  ref: expandIconButtonRef,
1784
1798
  variant: IconButtonVariant.primary
1785
- }))) : null, propsTitle && typeof propsTitle !== 'string' ? /*#__PURE__*/React.createElement(React.Fragment, null, propsTitle) : typeof propsTitle === 'string' ? /*#__PURE__*/React.createElement("h1", null, propsTitle) : appContainerState && appContainerState.title ? /*#__PURE__*/React.createElement("h1", null, appContainerState.title) : fallbackTitle ? /*#__PURE__*/React.createElement("h1", null, fallbackTitle) : null), /*#__PURE__*/React.createElement("div", {
1799
+ }))) : null, propsTitle && typeof propsTitle !== 'string' ? /*#__PURE__*/React.createElement(React.Fragment, null, propsTitle) : typeof propsTitle === 'string' ? /*#__PURE__*/React.createElement(Heading, {
1800
+ as: "h1"
1801
+ }, propsTitle) : appContainerState && appContainerState.title ? /*#__PURE__*/React.createElement(Heading, {
1802
+ as: "h1"
1803
+ }, appContainerState.title) : fallbackTitle ? /*#__PURE__*/React.createElement(Heading, {
1804
+ as: "h1"
1805
+ }, fallbackTitle) : null), /*#__PURE__*/React.createElement("div", {
1786
1806
  className: `${AppBar.className}__right`
1787
1807
  }, children));
1788
1808
  });
@@ -2223,6 +2243,8 @@ const BadgeVariant = {
2223
2243
  * Component style.
2224
2244
  */
2225
2245
  const StyledBadge = styled.div`
2246
+ ${baseStyling}
2247
+
2226
2248
  ${_ref => {
2227
2249
  let {
2228
2250
  $color,
@@ -2283,7 +2305,6 @@ const StyledBadge = styled.div`
2283
2305
  `;
2284
2306
  }
2285
2307
  }}
2286
- ${baseStyling}
2287
2308
  `;
2288
2309
 
2289
2310
  const _excluded$s = ["autoBreak", "children", "className", "color", "isReversed", "variant"];
@@ -3257,6 +3278,7 @@ BreadcrumbItem.displayName = COMPONENT_NAME$n;
3257
3278
  */
3258
3279
  const StyledBreadcrumbs = styled.nav`
3259
3280
  ${baseStyling}
3281
+
3260
3282
  ol {
3261
3283
  display: inline-flex;
3262
3284
  list-style: none;