@jobber/components 6.54.1 → 6.55.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.
@@ -1,2 +1,2 @@
1
1
  import { TilesProps } from "./types";
2
- export declare function Tiles({ children, minSize, gap, autoWidth, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }: TilesProps): JSX.Element;
2
+ export declare function Tiles({ children, minSize, gap, autoWidth, as: Tag, dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align, }: TilesProps): JSX.Element;
@@ -1,14 +1,22 @@
1
1
  import { type CommonAllowedElements, type CommonAtlantisProps, type GapSpacing } from "../sharedHelpers/types";
2
2
  export interface TilesProps extends CommonAtlantisProps {
3
3
  readonly children: React.ReactNode;
4
- /** The minimum size of the tiles. */
5
- readonly minSize: string;
6
- /** The amount of space between the tiles. Semantic tokens are available. */
4
+ /** The minimum size of the tiles.
5
+ * @default "30ch"
6
+ */
7
+ readonly minSize?: string;
8
+ /** The amount of space between the tiles. Semantic tokens are available.
9
+ * @default "base"
10
+ */
7
11
  readonly gap?: GapSpacing;
8
12
  /** Whether to allow the tiles to take the width of the content. Defaults to 100% */
9
13
  readonly autoWidth?: boolean;
10
14
  /** The HTML tag to render the container as. Defaults to `div`. */
11
15
  as?: CommonAllowedElements;
16
+ /** The vertical alignment of the tiles within the container.
17
+ * @default "start"
18
+ */
19
+ readonly align?: "start" | "center" | "end";
12
20
  /** **Use at your own risk:** Custom class names for specific elements. This should only be used as a
13
21
  * **last resort**. Using this may result in unexpected side effects.
14
22
  * More information in the [Customizing components Guide](https://atlantis.getjobber.com/guides/customizing-components).
package/dist/Tiles-cjs.js CHANGED
@@ -6,8 +6,8 @@ var getMappedAtlantisSpaceToken = require('./getMappedAtlantisSpaceToken-cjs.js'
6
6
 
7
7
  var styles = {"tiles":"jC1GzRIJp74-","spinning":"Ou05ff3MXU8-"};
8
8
 
9
- function Tiles({ children, minSize = "30ch", gap = "base", autoWidth = false, as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }) {
10
- return (React.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--public-tile-min-size": minSize, "--public-tile-space": getMappedAtlantisSpaceToken.getMappedAtlantisSpaceToken(gap), "--public-tiles-width": autoWidth ? "auto" : "100%" }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.tiles, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
9
+ function Tiles({ children, minSize = "30ch", gap = "base", autoWidth = false, as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align = "start", }) {
10
+ return (React.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--public-tile-min-size": minSize, "--public-tile-space": getMappedAtlantisSpaceToken.getMappedAtlantisSpaceToken(gap), "--public-tiles-width": autoWidth ? "auto" : "100%", "--public-tiles-align": align }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.tiles, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
11
11
  }
12
12
 
13
13
  exports.Tiles = Tiles;
package/dist/Tiles-es.js CHANGED
@@ -4,8 +4,8 @@ import { g as getMappedAtlantisSpaceToken } from './getMappedAtlantisSpaceToken-
4
4
 
5
5
  var styles = {"tiles":"jC1GzRIJp74-","spinning":"Ou05ff3MXU8-"};
6
6
 
7
- function Tiles({ children, minSize = "30ch", gap = "base", autoWidth = false, as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, }) {
8
- return (React__default.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--public-tile-min-size": minSize, "--public-tile-space": getMappedAtlantisSpaceToken(gap), "--public-tiles-width": autoWidth ? "auto" : "100%" }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.tiles, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
7
+ function Tiles({ children, minSize = "30ch", gap = "base", autoWidth = false, as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align = "start", }) {
8
+ return (React__default.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--public-tile-min-size": minSize, "--public-tile-space": getMappedAtlantisSpaceToken(gap), "--public-tiles-width": autoWidth ? "auto" : "100%", "--public-tiles-align": align }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.tiles, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
9
9
  }
10
10
 
11
11
  export { Tiles as T };