@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.
- package/build/dts/components/Demo.stories.d.ts +7 -0
- package/build/dts/components/text/Text.d.ts +1 -1
- package/build/dts/core/theme/Theme.d.ts +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.esm.js +10 -1
- package/build/index.esm.js.map +1 -1
- package/build/index.js +10 -1
- package/build/index.js.map +1 -1
- package/build/theme/truekind.theme.js +78 -35
- package/package.json +15 -11
|
@@ -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
|
|
26
|
+
weight?: 'bold' | 'demi' | 'regular';
|
|
27
27
|
size?: 'regular';
|
|
28
28
|
underline?: never;
|
|
29
29
|
disabled?: never;
|
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
|
|
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:
|
|
1091
|
+
theme: Theme;
|
|
1092
1092
|
Container?: ElementType;
|
|
1093
1093
|
}>;
|
|
1094
1094
|
declare const AssetsProvider: FC<{
|
package/build/index.esm.js
CHANGED
|
@@ -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
|
|
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
|
},
|