@astral/ui 1.12.0 → 1.13.0

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.
@@ -7,6 +7,6 @@ export declare type DescriptionProps = {
7
7
  };
8
8
  export declare const Description: {
9
9
  ({ children }: DescriptionProps): JSX.Element;
10
- Name: ({ children, ...props }: import("./Name").NameProps) => JSX.Element;
10
+ Name: ({ children, color, ...props }: import("./Name").NameProps) => JSX.Element;
11
11
  Value: ({ children, stub, ...props }: import("./Value").ValueProps) => JSX.Element;
12
12
  };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { TypographyProps } from '../../Typography';
3
3
  export declare type NameProps = Pick<TypographyProps, 'color' | 'variant' | 'children'>;
4
- export declare const Name: ({ children, ...props }: NameProps) => JSX.Element;
4
+ export declare const Name: ({ children, color, ...props }: NameProps) => JSX.Element;
@@ -26,7 +26,7 @@ exports.Name = void 0;
26
26
  var jsx_runtime_1 = require("react/jsx-runtime");
27
27
  var Typography_1 = require("../../Typography");
28
28
  var Name = function (_a) {
29
- var children = _a.children, props = __rest(_a, ["children"]);
30
- return ((0, jsx_runtime_1.jsxs)(Typography_1.Typography, __assign({}, props, { children: [children, ":\u00A0"] })));
29
+ var children = _a.children, _b = _a.color, color = _b === void 0 ? 'textSecondary' : _b, props = __rest(_a, ["children", "color"]);
30
+ return ((0, jsx_runtime_1.jsxs)(Typography_1.Typography, __assign({}, props, { color: color }, { children: [children, ":\u00A0"] })));
31
31
  };
32
32
  exports.Name = Name;
@@ -6,8 +6,11 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.DescriptionWrapper = void 0;
8
8
  var styles_1 = require("../styles");
9
- exports.DescriptionWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n ", " {\n flex-direction: column;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n ", " {\n flex-direction: column;\n }\n"])), function (_a) {
9
+ exports.DescriptionWrapper = styles_1.styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n\n ", " {\n flex-direction: column;\n\n .MuiTypography-root {\n font-size: ", ";\n }\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n\n ", " {\n flex-direction: column;\n\n .MuiTypography-root {\n font-size: ", ";\n }\n }\n"])), function (_a) {
10
10
  var theme = _a.theme;
11
11
  return theme.breakpoints.down('sm');
12
+ }, function (_a) {
13
+ var theme = _a.theme;
14
+ return theme.typography.fontSize;
12
15
  });
13
16
  var templateObject_1;
@@ -7,6 +7,6 @@ export declare type DescriptionProps = {
7
7
  };
8
8
  export declare const Description: {
9
9
  ({ children }: DescriptionProps): JSX.Element;
10
- Name: ({ children, ...props }: import("./Name").NameProps) => JSX.Element;
10
+ Name: ({ children, color, ...props }: import("./Name").NameProps) => JSX.Element;
11
11
  Value: ({ children, stub, ...props }: import("./Value").ValueProps) => JSX.Element;
12
12
  };
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { TypographyProps } from '../../Typography';
3
3
  export declare type NameProps = Pick<TypographyProps, 'color' | 'variant' | 'children'>;
4
- export declare const Name: ({ children, ...props }: NameProps) => JSX.Element;
4
+ export declare const Name: ({ children, color, ...props }: NameProps) => JSX.Element;
@@ -23,6 +23,6 @@ var __rest = (this && this.__rest) || function (s, e) {
23
23
  import { jsxs as _jsxs } from "react/jsx-runtime";
24
24
  import { Typography } from '../../Typography';
25
25
  export var Name = function (_a) {
26
- var children = _a.children, props = __rest(_a, ["children"]);
27
- return (_jsxs(Typography, __assign({}, props, { children: [children, ":\u00A0"] })));
26
+ var children = _a.children, _b = _a.color, color = _b === void 0 ? 'textSecondary' : _b, props = __rest(_a, ["children", "color"]);
27
+ return (_jsxs(Typography, __assign({}, props, { color: color }, { children: [children, ":\u00A0"] })));
28
28
  };
@@ -3,8 +3,11 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import { styled } from '../styles';
6
- export var DescriptionWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n ", " {\n flex-direction: column;\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n ", " {\n flex-direction: column;\n }\n"])), function (_a) {
6
+ export var DescriptionWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n\n ", " {\n flex-direction: column;\n\n .MuiTypography-root {\n font-size: ", ";\n }\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n\n ", " {\n flex-direction: column;\n\n .MuiTypography-root {\n font-size: ", ";\n }\n }\n"])), function (_a) {
7
7
  var theme = _a.theme;
8
8
  return theme.breakpoints.down('sm');
9
+ }, function (_a) {
10
+ var theme = _a.theme;
11
+ return theme.typography.fontSize;
9
12
  });
10
13
  var templateObject_1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "1.12.0",
3
+ "version": "1.13.0",
4
4
  "browser": "./src/index.ts",
5
5
  "jest": {
6
6
  "moduleNameMapper": {
@@ -8,7 +8,7 @@
8
8
  }
9
9
  },
10
10
  "dependencies": {
11
- "@astral/icons": "^1.12.0",
11
+ "@astral/icons": "^1.13.0",
12
12
  "@emotion/cache": "11.7.1",
13
13
  "@emotion/react": "11.9.0",
14
14
  "@emotion/server": "11.4.0",