@astral/ui 1.48.0 → 1.50.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.
@@ -8,6 +8,6 @@ const Profile_1 = require("../../Profile");
8
8
  const styles_1 = require("./styles");
9
9
  exports.Header = (0, react_1.forwardRef)((props, ref) => {
10
10
  const { productSwitcher: ProductSwitcher, product, profile } = props;
11
- return ((0, jsx_runtime_1.jsxs)(styles_1.HeaderRoot, Object.assign({ ref: ref }, { children: [(0, jsx_runtime_1.jsxs)(styles_1.HeaderNav, { children: [ProductSwitcher && (0, jsx_runtime_1.jsx)(ProductSwitcher, {}), (0, jsx_runtime_1.jsx)(Product_1.Product, Object.assign({}, product))] }), profile && (0, jsx_runtime_1.jsx)(Profile_1.Profile, Object.assign({}, profile))] })));
11
+ return ((0, jsx_runtime_1.jsxs)(styles_1.HeaderRoot, Object.assign({ ref: ref }, { children: [(0, jsx_runtime_1.jsxs)(styles_1.HeaderNav, Object.assign({ container: true, autoFlow: "column", component: "nav" }, { children: [ProductSwitcher && (0, jsx_runtime_1.jsx)(ProductSwitcher, {}), (0, jsx_runtime_1.jsx)(Product_1.Product, Object.assign({}, product))] })), profile && (0, jsx_runtime_1.jsx)(Profile_1.Profile, Object.assign({}, profile))] })));
12
12
  });
13
13
  exports.default = exports.Header;
@@ -3,7 +3,8 @@ export declare const HeaderRoot: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
6
- export declare const HeaderNav: import("@emotion/styled").StyledComponent<{
6
+ export declare const HeaderNav: import("@emotion/styled").StyledComponent<import("../../Grid").GridContainerProps & import("../../Grid").GridElementsProps & {
7
+ children?: import("react").ReactNode;
8
+ } & import("react").RefAttributes<HTMLElement> & {
7
9
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
10
+ }, {}, {}>;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HeaderNav = exports.HeaderRoot = void 0;
4
+ const Grid_1 = require("../../Grid");
4
5
  const styles_1 = require("../../styles");
5
6
  exports.HeaderRoot = styles_1.styled.header `
6
7
  z-index: ${({ theme }) => theme.zIndex.appBar};
@@ -14,7 +15,6 @@ exports.HeaderRoot = styles_1.styled.header `
14
15
  background-color: ${({ theme }) => theme.palette.background.default};
15
16
  box-shadow: ${({ theme }) => theme.elevation[200]};
16
17
  `;
17
- exports.HeaderNav = styles_1.styled.nav `
18
- display: flex;
19
- align-items: center;
18
+ exports.HeaderNav = (0, styles_1.styled)(Grid_1.Grid) `
19
+ column-gap: ${({ theme }) => theme.spacing(1)};
20
20
  `;
package/Grid/Grid.d.ts CHANGED
@@ -1,3 +1,8 @@
1
- /// <reference types="react" />
2
- import { GridProps } from './types';
3
- export declare const Grid: ({ container, templateColumns, templateRows, templateAreas, columnSpacing, rowSpacing, spacing, autoColumns, autoRows, autoFlow, column, row, area, component, children, ...props }: GridProps) => JSX.Element;
1
+ import { ReactNode } from 'react';
2
+ import { GridContainerProps, GridElementsProps } from './types';
3
+ export type GridProps = GridContainerProps & GridElementsProps & {
4
+ children?: ReactNode;
5
+ };
6
+ export declare const Grid: import("react").ForwardRefExoticComponent<GridContainerProps & GridElementsProps & {
7
+ children?: ReactNode;
8
+ } & import("react").RefAttributes<HTMLElement>>;
package/Grid/Grid.js CHANGED
@@ -13,9 +13,9 @@ var __rest = (this && this.__rest) || function (s, e) {
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.Grid = void 0;
15
15
  const jsx_runtime_1 = require("react/jsx-runtime");
16
+ const react_1 = require("react");
16
17
  const styled_1 = require("./styled");
17
- const Grid = (_a) => {
18
+ exports.Grid = (0, react_1.forwardRef)((_a, ref) => {
18
19
  var { container = false, templateColumns, templateRows, templateAreas, columnSpacing, rowSpacing, spacing, autoColumns, autoRows, autoFlow, column, row, area, component = 'div', children } = _a, props = __rest(_a, ["container", "templateColumns", "templateRows", "templateAreas", "columnSpacing", "rowSpacing", "spacing", "autoColumns", "autoRows", "autoFlow", "column", "row", "area", "component", "children"]);
19
- return ((0, jsx_runtime_1.jsx)(styled_1.StyledGrid, Object.assign({ container: container, gridTemplateColumns: templateColumns, gridTemplateRows: templateRows, gridTemplateAreas: templateAreas, columnGap: columnSpacing, rowGap: rowSpacing, gap: spacing, gridAutoColumns: autoColumns, gridAutoRows: autoRows, gridAutoFlow: autoFlow, gridColumn: column, gridRow: row, gridArea: area, component: component }, props, { children: children })));
20
- };
21
- exports.Grid = Grid;
20
+ return ((0, jsx_runtime_1.jsx)(styled_1.StyledGrid, Object.assign({ ref: ref, container: container, gridTemplateColumns: templateColumns, gridTemplateRows: templateRows, gridTemplateAreas: templateAreas, columnGap: columnSpacing, rowGap: rowSpacing, gap: spacing, gridAutoColumns: autoColumns, gridAutoRows: autoRows, gridAutoFlow: autoFlow, gridColumn: column, gridRow: row, gridArea: area, component: component }, props, { children: children })));
21
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsx_runtime_1 = require("react/jsx-runtime");
4
+ const tests_1 = require("@astral/tests");
5
+ const vitest_1 = require("vitest");
6
+ const react_1 = require("react");
7
+ const Grid_1 = require("./Grid");
8
+ (0, vitest_1.describe)('Grid', () => {
9
+ (0, vitest_1.it)('Prop:ref: is present', () => {
10
+ const resultRef = { current: null };
11
+ const GridWithRef = () => {
12
+ const ref = (0, react_1.useRef)(null);
13
+ (0, react_1.useEffect)(() => {
14
+ resultRef.current = ref.current;
15
+ }, []);
16
+ return (0, jsx_runtime_1.jsx)(Grid_1.Grid, Object.assign({ ref: ref }, { children: "Grid" }));
17
+ };
18
+ (0, tests_1.renderWithTheme)((0, jsx_runtime_1.jsx)(GridWithRef, {}));
19
+ (0, vitest_1.expect)(resultRef === null || resultRef === void 0 ? void 0 : resultRef.current).not.toBeNull();
20
+ });
21
+ });
package/Grid/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ElementType, ReactNode } from 'react';
1
+ import { CSSProperties, ElementType } from 'react';
2
2
  import { Breakpoint } from '@mui/material/styles';
3
3
  type StyleCSSType<Type extends keyof CSSProperties> = CSSProperties[Type] | Partial<Record<Breakpoint, CSSProperties[Type]>>;
4
4
  export type GridContainerProps = {
@@ -25,7 +25,4 @@ export type GridElementsProps = {
25
25
  justifySelf?: StyleCSSType<'justifySelf'>;
26
26
  alignSelf?: StyleCSSType<'alignSelf'>;
27
27
  };
28
- export type GridProps = GridContainerProps & GridElementsProps & {
29
- children?: ReactNode;
30
- };
31
28
  export {};
@@ -14,9 +14,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.Product = void 0;
15
15
  const jsx_runtime_1 = require("react/jsx-runtime");
16
16
  const react_1 = require("react");
17
- const Button_1 = require("../Button");
17
+ const styles_1 = require("./styles");
18
18
  exports.Product = (0, react_1.forwardRef)((props, ref) => {
19
19
  const { logo: Logo, name, variant = 'text' } = props, restProps = __rest(props, ["logo", "name", "variant"]);
20
- return ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ ref: ref }, restProps, { variant: variant, startIcon: (0, jsx_runtime_1.jsx)(Logo, {}) }, { children: name })));
20
+ return ((0, jsx_runtime_1.jsx)(styles_1.ProductButton, Object.assign({ ref: ref }, restProps, { variant: variant, startIcon: (0, jsx_runtime_1.jsx)(Logo, {}) }, { children: name })));
21
21
  });
22
22
  exports.default = exports.Product;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const ProductButton: import("@emotion/styled").StyledComponent<Pick<import("../Button").ButtonProps, "disabled" | "action" | "color" | "translate" | "href" | "onFocusVisible" | "tabIndex" | "type" | "children" | "form" | "slot" | "title" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "variant" | "size" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement> & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ }, {}, {}>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProductButton = void 0;
4
+ const styles_1 = require("../styles");
5
+ const Button_1 = require("../Button");
6
+ exports.ProductButton = (0, styles_1.styled)(Button_1.Button) `
7
+ font-size: ${({ theme }) => theme.typography.h5.fontSize};
8
+ `;
@@ -5,6 +5,6 @@ import { Profile } from '../../Profile';
5
5
  import { HeaderNav, HeaderRoot } from './styles';
6
6
  export const Header = forwardRef((props, ref) => {
7
7
  const { productSwitcher: ProductSwitcher, product, profile } = props;
8
- return (_jsxs(HeaderRoot, Object.assign({ ref: ref }, { children: [_jsxs(HeaderNav, { children: [ProductSwitcher && _jsx(ProductSwitcher, {}), _jsx(Product, Object.assign({}, product))] }), profile && _jsx(Profile, Object.assign({}, profile))] })));
8
+ return (_jsxs(HeaderRoot, Object.assign({ ref: ref }, { children: [_jsxs(HeaderNav, Object.assign({ container: true, autoFlow: "column", component: "nav" }, { children: [ProductSwitcher && _jsx(ProductSwitcher, {}), _jsx(Product, Object.assign({}, product))] })), profile && _jsx(Profile, Object.assign({}, profile))] })));
9
9
  });
10
10
  export default Header;
@@ -3,7 +3,8 @@ export declare const HeaderRoot: import("@emotion/styled").StyledComponent<{
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
6
- export declare const HeaderNav: import("@emotion/styled").StyledComponent<{
6
+ export declare const HeaderNav: import("@emotion/styled").StyledComponent<import("../../Grid").GridContainerProps & import("../../Grid").GridElementsProps & {
7
+ children?: import("react").ReactNode;
8
+ } & import("react").RefAttributes<HTMLElement> & {
7
9
  theme?: import("@emotion/react").Theme | undefined;
8
- as?: import("react").ElementType<any> | undefined;
9
- }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
10
+ }, {}, {}>;
@@ -1,3 +1,4 @@
1
+ import { Grid } from '../../Grid';
1
2
  import { styled } from '../../styles';
2
3
  export const HeaderRoot = styled.header `
3
4
  z-index: ${({ theme }) => theme.zIndex.appBar};
@@ -11,7 +12,6 @@ export const HeaderRoot = styled.header `
11
12
  background-color: ${({ theme }) => theme.palette.background.default};
12
13
  box-shadow: ${({ theme }) => theme.elevation[200]};
13
14
  `;
14
- export const HeaderNav = styled.nav `
15
- display: flex;
16
- align-items: center;
15
+ export const HeaderNav = styled(Grid) `
16
+ column-gap: ${({ theme }) => theme.spacing(1)};
17
17
  `;
@@ -1,3 +1,8 @@
1
- /// <reference types="react" />
2
- import { GridProps } from './types';
3
- export declare const Grid: ({ container, templateColumns, templateRows, templateAreas, columnSpacing, rowSpacing, spacing, autoColumns, autoRows, autoFlow, column, row, area, component, children, ...props }: GridProps) => JSX.Element;
1
+ import { ReactNode } from 'react';
2
+ import { GridContainerProps, GridElementsProps } from './types';
3
+ export type GridProps = GridContainerProps & GridElementsProps & {
4
+ children?: ReactNode;
5
+ };
6
+ export declare const Grid: import("react").ForwardRefExoticComponent<GridContainerProps & GridElementsProps & {
7
+ children?: ReactNode;
8
+ } & import("react").RefAttributes<HTMLElement>>;
package/esm/Grid/Grid.js CHANGED
@@ -10,8 +10,9 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { forwardRef } from 'react';
13
14
  import { StyledGrid } from './styled';
14
- export const Grid = (_a) => {
15
+ export const Grid = forwardRef((_a, ref) => {
15
16
  var { container = false, templateColumns, templateRows, templateAreas, columnSpacing, rowSpacing, spacing, autoColumns, autoRows, autoFlow, column, row, area, component = 'div', children } = _a, props = __rest(_a, ["container", "templateColumns", "templateRows", "templateAreas", "columnSpacing", "rowSpacing", "spacing", "autoColumns", "autoRows", "autoFlow", "column", "row", "area", "component", "children"]);
16
- return (_jsx(StyledGrid, Object.assign({ container: container, gridTemplateColumns: templateColumns, gridTemplateRows: templateRows, gridTemplateAreas: templateAreas, columnGap: columnSpacing, rowGap: rowSpacing, gap: spacing, gridAutoColumns: autoColumns, gridAutoRows: autoRows, gridAutoFlow: autoFlow, gridColumn: column, gridRow: row, gridArea: area, component: component }, props, { children: children })));
17
- };
17
+ return (_jsx(StyledGrid, Object.assign({ ref: ref, container: container, gridTemplateColumns: templateColumns, gridTemplateRows: templateRows, gridTemplateAreas: templateAreas, columnGap: columnSpacing, rowGap: rowSpacing, gap: spacing, gridAutoColumns: autoColumns, gridAutoRows: autoRows, gridAutoFlow: autoFlow, gridColumn: column, gridRow: row, gridArea: area, component: component }, props, { children: children })));
18
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { renderWithTheme } from '@astral/tests';
3
+ import { describe, expect, it } from 'vitest';
4
+ import { useEffect, useRef } from 'react';
5
+ import { Grid } from './Grid';
6
+ describe('Grid', () => {
7
+ it('Prop:ref: is present', () => {
8
+ const resultRef = { current: null };
9
+ const GridWithRef = () => {
10
+ const ref = useRef(null);
11
+ useEffect(() => {
12
+ resultRef.current = ref.current;
13
+ }, []);
14
+ return _jsx(Grid, Object.assign({ ref: ref }, { children: "Grid" }));
15
+ };
16
+ renderWithTheme(_jsx(GridWithRef, {}));
17
+ expect(resultRef === null || resultRef === void 0 ? void 0 : resultRef.current).not.toBeNull();
18
+ });
19
+ });
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ElementType, ReactNode } from 'react';
1
+ import { CSSProperties, ElementType } from 'react';
2
2
  import { Breakpoint } from '@mui/material/styles';
3
3
  type StyleCSSType<Type extends keyof CSSProperties> = CSSProperties[Type] | Partial<Record<Breakpoint, CSSProperties[Type]>>;
4
4
  export type GridContainerProps = {
@@ -25,7 +25,4 @@ export type GridElementsProps = {
25
25
  justifySelf?: StyleCSSType<'justifySelf'>;
26
26
  alignSelf?: StyleCSSType<'alignSelf'>;
27
27
  };
28
- export type GridProps = GridContainerProps & GridElementsProps & {
29
- children?: ReactNode;
30
- };
31
28
  export {};
@@ -11,9 +11,9 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { forwardRef } from 'react';
14
- import { Button } from '../Button';
14
+ import { ProductButton } from './styles';
15
15
  export const Product = forwardRef((props, ref) => {
16
16
  const { logo: Logo, name, variant = 'text' } = props, restProps = __rest(props, ["logo", "name", "variant"]);
17
- return (_jsx(Button, Object.assign({ ref: ref }, restProps, { variant: variant, startIcon: _jsx(Logo, {}) }, { children: name })));
17
+ return (_jsx(ProductButton, Object.assign({ ref: ref }, restProps, { variant: variant, startIcon: _jsx(Logo, {}) }, { children: name })));
18
18
  });
19
19
  export default Product;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const ProductButton: import("@emotion/styled").StyledComponent<Pick<import("../Button").ButtonProps, "disabled" | "action" | "color" | "translate" | "href" | "onFocusVisible" | "tabIndex" | "type" | "children" | "form" | "slot" | "title" | "key" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "variant" | "size" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement> & {
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ }, {}, {}>;
@@ -0,0 +1,5 @@
1
+ import { styled } from '../styles';
2
+ import { Button } from '../Button';
3
+ export const ProductButton = styled(Button) `
4
+ font-size: ${({ theme }) => theme.typography.h5.fontSize};
5
+ `;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "1.48.0",
3
+ "version": "1.50.0",
4
4
  "browser": "./esm/index.js",
5
5
  "main": "./index.js",
6
6
  "dependencies": {
7
- "@astral/icons": "^1.48.0",
7
+ "@astral/icons": "^1.50.0",
8
8
  "@emotion/cache": "11.7.1",
9
9
  "@emotion/react": "11.9.0",
10
10
  "@emotion/server": "11.4.0",