@trafilea/afrodita-components 4.0.1-beta.1 → 4.0.1-beta.2

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.
@@ -0,0 +1,7 @@
1
+ import { Story } from '@storybook/react';
2
+ declare const _default: {
3
+ title: string;
4
+ component: null;
5
+ };
6
+ export default _default;
7
+ export declare const Demo: Story<{}>;
@@ -23,7 +23,7 @@ declare type TextDisplayProps = {
23
23
  };
24
24
  declare type TextHeadingProps = {
25
25
  variant: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
26
- weight: 'bold' | 'demi' | 'regular';
26
+ weight?: 'bold' | 'demi' | 'regular';
27
27
  size?: 'regular';
28
28
  underline?: never;
29
29
  disabled?: never;
@@ -5,7 +5,7 @@ export declare const ThemeProvider: FC<{
5
5
  }>;
6
6
  export declare const useTheme: () => Theme;
7
7
  export declare const ThemeVariables: FC<{
8
- theme: any;
8
+ theme: Theme;
9
9
  Container?: ElementType;
10
10
  }>;
11
11
  export declare const AssetsProvider: FC<{
package/build/index.d.ts CHANGED
@@ -991,7 +991,7 @@ declare type TextDisplayProps = {
991
991
  };
992
992
  declare type TextHeadingProps = {
993
993
  variant: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
994
- weight: 'bold' | 'demi' | 'regular';
994
+ weight?: 'bold' | 'demi' | 'regular';
995
995
  size?: 'regular';
996
996
  underline?: never;
997
997
  disabled?: never;
@@ -1088,7 +1088,7 @@ declare const ThemeProvider: FC<{
1088
1088
  }>;
1089
1089
  declare const useTheme: () => Theme;
1090
1090
  declare const ThemeVariables: FC<{
1091
- theme: any;
1091
+ theme: Theme;
1092
1092
  Container?: ElementType;
1093
1093
  }>;
1094
1094
  declare const AssetsProvider: FC<{
@@ -3308,7 +3308,7 @@ var variablesToObject = function (variables, theme) {
3308
3308
  for (var i = 0; i < path.length; i++) {
3309
3309
  var segment = path[i];
3310
3310
  var isLast = i === path.length - 1;
3311
- var isArray = new RegExp("".concat(segment, "-0$")).test(key);
3311
+ var isArray = new RegExp("".concat(segment, "-0[-\\w]*$")).test(key);
3312
3312
  var segmentValue = isLast ? variables[key] : isArray ? [] : {};
3313
3313
  if (segment in target === false) {
3314
3314
  // @ts-ignore
@@ -12510,6 +12510,15 @@ var Text = function (_a) {
12510
12510
  return (jsx(Tag, __assign({}, props, { css: commonCSS, href: href }, { children: children }), void 0));
12511
12511
  };
12512
12512
  var DEFAULTS = {
12513
+ heading1: {
12514
+ weight: 'bold',
12515
+ },
12516
+ heading2: {
12517
+ weight: 'bold',
12518
+ },
12519
+ heading3: {
12520
+ weight: 'bold',
12521
+ },
12513
12522
  hero1: {
12514
12523
  weight: 'heavy',
12515
12524
  },