@uniformdev/design-system 20.9.1-alpha.16 → 20.10.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.
- package/dist/esm/index.js +87 -13
- package/dist/index.d.mts +20 -4
- package/dist/index.d.ts +20 -4
- package/dist/index.js +87 -13
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -8864,21 +8864,28 @@ import { forwardRef as forwardRef17 } from "react";
|
|
|
8864
8864
|
// src/components/Tiles/styles/Tile.styles.ts
|
|
8865
8865
|
import { css as css63 } from "@emotion/react";
|
|
8866
8866
|
var tileBorderSize = "1px";
|
|
8867
|
+
var tileBorderRadius = "var(--rounded-2xl)";
|
|
8868
|
+
var tileBorderColor = "var(--gray-300)";
|
|
8867
8869
|
var Tile = css63`
|
|
8868
8870
|
background: var(--white);
|
|
8869
8871
|
cursor: pointer;
|
|
8870
|
-
border: ${tileBorderSize} solid var(--
|
|
8871
|
-
display:
|
|
8872
|
+
border: ${tileBorderSize} solid var(--tile-border-color, ${tileBorderColor});
|
|
8873
|
+
display: flex;
|
|
8874
|
+
flex-direction: column;
|
|
8872
8875
|
padding: var(--spacing-base);
|
|
8873
|
-
|
|
8874
|
-
|
|
8876
|
+
align-items: center;
|
|
8877
|
+
justify-content: center;
|
|
8875
8878
|
gap: var(--spacing-sm);
|
|
8876
|
-
|
|
8877
|
-
|
|
8879
|
+
border-radius: var(--tile-border-radius, ${tileBorderRadius});
|
|
8880
|
+
transition:
|
|
8881
|
+
background-color var(--duration-fast) var(--timing-ease-out),
|
|
8882
|
+
border-color var(--duration-fast) var(--timing-ease-out);
|
|
8878
8883
|
|
|
8879
8884
|
&:hover,
|
|
8880
8885
|
&:focus {
|
|
8881
8886
|
background: var(--gray-50);
|
|
8887
|
+
border-color: var(--tile-border-color-hover, var(--accent-dark));
|
|
8888
|
+
z-index: 1;
|
|
8882
8889
|
}
|
|
8883
8890
|
|
|
8884
8891
|
&[aria-disabled='true'],
|
|
@@ -8894,27 +8901,55 @@ var TileIsSelected = css63`
|
|
|
8894
8901
|
border: calc(${tileBorderSize} + 1px) solid var(--primary-action-active);
|
|
8895
8902
|
z-index: 1; // Used to elevate active state border over other Tile borders
|
|
8896
8903
|
`;
|
|
8904
|
+
var TileHorizontal = css63`
|
|
8905
|
+
flex-direction: row;
|
|
8906
|
+
justify-content: flex-start;
|
|
8907
|
+
`;
|
|
8897
8908
|
|
|
8898
8909
|
// src/components/Tiles/LinkTile.tsx
|
|
8899
8910
|
import { jsx as jsx83 } from "@emotion/react/jsx-runtime";
|
|
8900
8911
|
var LinkTile2 = forwardRef17(
|
|
8901
|
-
({ children, ...props }, ref) => {
|
|
8912
|
+
({ orientation = "vertical", children, ...props }, ref) => {
|
|
8902
8913
|
if ("linkManagerComponent" in props) {
|
|
8903
8914
|
const { linkManagerComponent: LinkManager, ...rest } = props;
|
|
8904
|
-
return /* @__PURE__ */ jsx83(
|
|
8915
|
+
return /* @__PURE__ */ jsx83(
|
|
8916
|
+
LinkManager,
|
|
8917
|
+
{
|
|
8918
|
+
css: [
|
|
8919
|
+
Tile,
|
|
8920
|
+
LinkTile,
|
|
8921
|
+
orientation === "horizontal" ? TileHorizontal : void 0
|
|
8922
|
+
],
|
|
8923
|
+
ref,
|
|
8924
|
+
...rest,
|
|
8925
|
+
children
|
|
8926
|
+
}
|
|
8927
|
+
);
|
|
8905
8928
|
}
|
|
8906
|
-
return /* @__PURE__ */ jsx83(
|
|
8929
|
+
return /* @__PURE__ */ jsx83(
|
|
8930
|
+
"a",
|
|
8931
|
+
{
|
|
8932
|
+
ref,
|
|
8933
|
+
css: [Tile, LinkTile, orientation === "horizontal" ? TileHorizontal : void 0],
|
|
8934
|
+
...props,
|
|
8935
|
+
children
|
|
8936
|
+
}
|
|
8937
|
+
);
|
|
8907
8938
|
}
|
|
8908
8939
|
);
|
|
8909
8940
|
|
|
8910
8941
|
// src/components/Tiles/Tile.tsx
|
|
8911
8942
|
import { jsx as jsx84 } from "@emotion/react/jsx-runtime";
|
|
8912
|
-
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
8943
|
+
var Tile2 = ({ children, disabled: disabled2, isSelected, orientation = "vertical", ...props }) => {
|
|
8913
8944
|
return /* @__PURE__ */ jsx84(
|
|
8914
8945
|
"button",
|
|
8915
8946
|
{
|
|
8916
8947
|
type: "button",
|
|
8917
|
-
css: [
|
|
8948
|
+
css: [
|
|
8949
|
+
Tile,
|
|
8950
|
+
orientation === "horizontal" ? TileHorizontal : void 0,
|
|
8951
|
+
isSelected ? TileIsSelected : void 0
|
|
8952
|
+
],
|
|
8918
8953
|
disabled: disabled2,
|
|
8919
8954
|
...props,
|
|
8920
8955
|
children
|
|
@@ -8929,17 +8964,46 @@ var TileContainerWrapper = (theme, padding) => css64`
|
|
|
8929
8964
|
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
8930
8965
|
`;
|
|
8931
8966
|
var TileContainerInner = (gap, templateColumns) => css64`
|
|
8967
|
+
/* We remove the border radius from the tiles when used inside TileContainer */
|
|
8968
|
+
--tile-border-radius: 0;
|
|
8969
|
+
--tile-border-color: ${tileBorderColor};
|
|
8970
|
+
/* We don't want the tiles to change border color on hover, because of the border radius we have on the container-level */
|
|
8971
|
+
--tile-border-color-hover: ${tileBorderColor};
|
|
8972
|
+
|
|
8973
|
+
position: relative;
|
|
8932
8974
|
display: grid;
|
|
8933
8975
|
grid-template-columns: ${templateColumns};
|
|
8976
|
+
grid-auto-rows: 1fr;
|
|
8934
8977
|
gap: var(--spacing-${gap});
|
|
8978
|
+
background-color: var(--gray-5);
|
|
8935
8979
|
margin-top: ${tileBorderSize};
|
|
8936
8980
|
margin-left: ${tileBorderSize};
|
|
8981
|
+
border-radius: ${tileBorderRadius};
|
|
8982
|
+
overflow: hidden;
|
|
8983
|
+
|
|
8984
|
+
/* This is used to create a border around the tiles */
|
|
8985
|
+
&::after {
|
|
8986
|
+
content: '';
|
|
8987
|
+
position: absolute;
|
|
8988
|
+
inset: 0;
|
|
8989
|
+
border-radius: ${tileBorderRadius};
|
|
8990
|
+
border: ${tileBorderSize} solid var(--tile-border-color);
|
|
8991
|
+
pointer-events: none;
|
|
8992
|
+
z-index: 1;
|
|
8993
|
+
}
|
|
8937
8994
|
|
|
8938
8995
|
> * {
|
|
8939
8996
|
margin-top: -${tileBorderSize};
|
|
8940
8997
|
margin-left: -${tileBorderSize};
|
|
8941
8998
|
}
|
|
8942
8999
|
`;
|
|
9000
|
+
var TileContainerInnerWithoutGrouping = css64`
|
|
9001
|
+
overflow: visible;
|
|
9002
|
+
|
|
9003
|
+
&::after {
|
|
9004
|
+
display: none;
|
|
9005
|
+
}
|
|
9006
|
+
`;
|
|
8943
9007
|
|
|
8944
9008
|
// src/components/Tiles/TileContainer.tsx
|
|
8945
9009
|
import { jsx as jsx85 } from "@emotion/react/jsx-runtime";
|
|
@@ -8949,9 +9013,19 @@ var TileContainer = ({
|
|
|
8949
9013
|
gap = "base",
|
|
8950
9014
|
gridTemplateColumns = "repeat(auto-fill, minmax(13rem, 1fr))",
|
|
8951
9015
|
children,
|
|
9016
|
+
withoutGrouping = false,
|
|
8952
9017
|
...props
|
|
8953
9018
|
}) => {
|
|
8954
|
-
return /* @__PURE__ */ jsx85("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx85(
|
|
9019
|
+
return /* @__PURE__ */ jsx85("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ jsx85(
|
|
9020
|
+
"div",
|
|
9021
|
+
{
|
|
9022
|
+
css: [
|
|
9023
|
+
TileContainerInner(gap, gridTemplateColumns),
|
|
9024
|
+
withoutGrouping ? TileContainerInnerWithoutGrouping : void 0
|
|
9025
|
+
],
|
|
9026
|
+
children
|
|
9027
|
+
}
|
|
9028
|
+
) });
|
|
8955
9029
|
};
|
|
8956
9030
|
|
|
8957
9031
|
// src/components/Tiles/styles/TileText.styles.ts
|
|
@@ -10881,7 +10955,7 @@ var ObjectListItemRightSlot = css81`
|
|
|
10881
10955
|
gap: var(--spacing-sm);
|
|
10882
10956
|
`;
|
|
10883
10957
|
var ObjectListItemContainer = css81`
|
|
10884
|
-
> [role='listitem'] {
|
|
10958
|
+
> [role='listitem']:not(:first-of-type) {
|
|
10885
10959
|
border-top: 1px solid var(--gray-200);
|
|
10886
10960
|
}
|
|
10887
10961
|
`;
|
package/dist/index.d.mts
CHANGED
|
@@ -3967,9 +3967,16 @@ type ParagraphProps = {
|
|
|
3967
3967
|
*/
|
|
3968
3968
|
declare const Paragraph: ({ className, htmlContent, children, ...pAttributes }: ParagraphProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3969
3969
|
|
|
3970
|
+
type LinkOrientation = {
|
|
3971
|
+
/**
|
|
3972
|
+
* The orientation of the tile icon and content
|
|
3973
|
+
* @default 'vertical'
|
|
3974
|
+
*/
|
|
3975
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3976
|
+
};
|
|
3970
3977
|
type LinkTileProps = {
|
|
3971
3978
|
children: ReactNode;
|
|
3972
|
-
} & React.AnchorHTMLAttributes<HTMLAnchorElement
|
|
3979
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & LinkOrientation;
|
|
3973
3980
|
type LinkTileWithRefProps = {
|
|
3974
3981
|
children: ReactNode;
|
|
3975
3982
|
linkManagerComponent: LinkManagerWithRefType;
|
|
@@ -3977,7 +3984,7 @@ type LinkTileWithRefProps = {
|
|
|
3977
3984
|
href: string;
|
|
3978
3985
|
passHref: true;
|
|
3979
3986
|
legacyBehavior?: boolean;
|
|
3980
|
-
} & React.RefAttributes<HTMLAnchorElement
|
|
3987
|
+
} & React.RefAttributes<HTMLAnchorElement> & LinkOrientation;
|
|
3981
3988
|
declare const LinkTile: React$1.ForwardRefExoticComponent<(LinkTileProps | Omit<LinkTileWithRefProps, "ref">) & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
3982
3989
|
|
|
3983
3990
|
type ClassNameOptions = 'logo' | 'author';
|
|
@@ -3996,8 +4003,13 @@ type TileProps = {
|
|
|
3996
4003
|
children: ReactNode;
|
|
3997
4004
|
disabled?: boolean;
|
|
3998
4005
|
isSelected?: boolean;
|
|
4006
|
+
/**
|
|
4007
|
+
* The orientation of the tile icon and content
|
|
4008
|
+
* @default 'vertical'
|
|
4009
|
+
*/
|
|
4010
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3999
4011
|
} & HtmlHTMLAttributes<HTMLButtonElement>;
|
|
4000
|
-
declare const Tile: ({ children, disabled, isSelected, ...props }: TileProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4012
|
+
declare const Tile: ({ children, disabled, isSelected, orientation, ...props }: TileProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4001
4013
|
|
|
4002
4014
|
type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
4003
4015
|
/** sets the background colour of the outter container
|
|
@@ -4018,12 +4030,16 @@ type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
|
4018
4030
|
gap?: '0' | 'sm' | 'base' | 'md' | 'lg';
|
|
4019
4031
|
/** sets react child elements */
|
|
4020
4032
|
children: React$1.ReactNode;
|
|
4033
|
+
/** sets whether to group the tiles in a container without a contour or not
|
|
4034
|
+
* @default false
|
|
4035
|
+
*/
|
|
4036
|
+
withoutGrouping?: boolean;
|
|
4021
4037
|
};
|
|
4022
4038
|
/**
|
|
4023
4039
|
* Uniform Tile Container Component
|
|
4024
4040
|
* @example <TileContainer><div>child content</div></TileContainer>
|
|
4025
4041
|
*/
|
|
4026
|
-
declare const TileContainer: ({ bgColor, containerPadding, gap, gridTemplateColumns, children, ...props }: TileContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4042
|
+
declare const TileContainer: ({ bgColor, containerPadding, gap, gridTemplateColumns, children, withoutGrouping, ...props }: TileContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4027
4043
|
|
|
4028
4044
|
type TileTitleProps = {
|
|
4029
4045
|
as?: 'heading' | 'description';
|
package/dist/index.d.ts
CHANGED
|
@@ -3967,9 +3967,16 @@ type ParagraphProps = {
|
|
|
3967
3967
|
*/
|
|
3968
3968
|
declare const Paragraph: ({ className, htmlContent, children, ...pAttributes }: ParagraphProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3969
3969
|
|
|
3970
|
+
type LinkOrientation = {
|
|
3971
|
+
/**
|
|
3972
|
+
* The orientation of the tile icon and content
|
|
3973
|
+
* @default 'vertical'
|
|
3974
|
+
*/
|
|
3975
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3976
|
+
};
|
|
3970
3977
|
type LinkTileProps = {
|
|
3971
3978
|
children: ReactNode;
|
|
3972
|
-
} & React.AnchorHTMLAttributes<HTMLAnchorElement
|
|
3979
|
+
} & React.AnchorHTMLAttributes<HTMLAnchorElement> & LinkOrientation;
|
|
3973
3980
|
type LinkTileWithRefProps = {
|
|
3974
3981
|
children: ReactNode;
|
|
3975
3982
|
linkManagerComponent: LinkManagerWithRefType;
|
|
@@ -3977,7 +3984,7 @@ type LinkTileWithRefProps = {
|
|
|
3977
3984
|
href: string;
|
|
3978
3985
|
passHref: true;
|
|
3979
3986
|
legacyBehavior?: boolean;
|
|
3980
|
-
} & React.RefAttributes<HTMLAnchorElement
|
|
3987
|
+
} & React.RefAttributes<HTMLAnchorElement> & LinkOrientation;
|
|
3981
3988
|
declare const LinkTile: React$1.ForwardRefExoticComponent<(LinkTileProps | Omit<LinkTileWithRefProps, "ref">) & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
3982
3989
|
|
|
3983
3990
|
type ClassNameOptions = 'logo' | 'author';
|
|
@@ -3996,8 +4003,13 @@ type TileProps = {
|
|
|
3996
4003
|
children: ReactNode;
|
|
3997
4004
|
disabled?: boolean;
|
|
3998
4005
|
isSelected?: boolean;
|
|
4006
|
+
/**
|
|
4007
|
+
* The orientation of the tile icon and content
|
|
4008
|
+
* @default 'vertical'
|
|
4009
|
+
*/
|
|
4010
|
+
orientation?: 'horizontal' | 'vertical';
|
|
3999
4011
|
} & HtmlHTMLAttributes<HTMLButtonElement>;
|
|
4000
|
-
declare const Tile: ({ children, disabled, isSelected, ...props }: TileProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4012
|
+
declare const Tile: ({ children, disabled, isSelected, orientation, ...props }: TileProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4001
4013
|
|
|
4002
4014
|
type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
4003
4015
|
/** sets the background colour of the outter container
|
|
@@ -4018,12 +4030,16 @@ type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
|
4018
4030
|
gap?: '0' | 'sm' | 'base' | 'md' | 'lg';
|
|
4019
4031
|
/** sets react child elements */
|
|
4020
4032
|
children: React$1.ReactNode;
|
|
4033
|
+
/** sets whether to group the tiles in a container without a contour or not
|
|
4034
|
+
* @default false
|
|
4035
|
+
*/
|
|
4036
|
+
withoutGrouping?: boolean;
|
|
4021
4037
|
};
|
|
4022
4038
|
/**
|
|
4023
4039
|
* Uniform Tile Container Component
|
|
4024
4040
|
* @example <TileContainer><div>child content</div></TileContainer>
|
|
4025
4041
|
*/
|
|
4026
|
-
declare const TileContainer: ({ bgColor, containerPadding, gap, gridTemplateColumns, children, ...props }: TileContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4042
|
+
declare const TileContainer: ({ bgColor, containerPadding, gap, gridTemplateColumns, children, withoutGrouping, ...props }: TileContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4027
4043
|
|
|
4028
4044
|
type TileTitleProps = {
|
|
4029
4045
|
as?: 'heading' | 'description';
|
package/dist/index.js
CHANGED
|
@@ -10692,21 +10692,28 @@ var import_react97 = require("react");
|
|
|
10692
10692
|
init_emotion_jsx_shim();
|
|
10693
10693
|
var import_react96 = require("@emotion/react");
|
|
10694
10694
|
var tileBorderSize = "1px";
|
|
10695
|
+
var tileBorderRadius = "var(--rounded-2xl)";
|
|
10696
|
+
var tileBorderColor = "var(--gray-300)";
|
|
10695
10697
|
var Tile = import_react96.css`
|
|
10696
10698
|
background: var(--white);
|
|
10697
10699
|
cursor: pointer;
|
|
10698
|
-
border: ${tileBorderSize} solid var(--
|
|
10699
|
-
display:
|
|
10700
|
+
border: ${tileBorderSize} solid var(--tile-border-color, ${tileBorderColor});
|
|
10701
|
+
display: flex;
|
|
10702
|
+
flex-direction: column;
|
|
10700
10703
|
padding: var(--spacing-base);
|
|
10701
|
-
|
|
10702
|
-
|
|
10704
|
+
align-items: center;
|
|
10705
|
+
justify-content: center;
|
|
10703
10706
|
gap: var(--spacing-sm);
|
|
10704
|
-
|
|
10705
|
-
|
|
10707
|
+
border-radius: var(--tile-border-radius, ${tileBorderRadius});
|
|
10708
|
+
transition:
|
|
10709
|
+
background-color var(--duration-fast) var(--timing-ease-out),
|
|
10710
|
+
border-color var(--duration-fast) var(--timing-ease-out);
|
|
10706
10711
|
|
|
10707
10712
|
&:hover,
|
|
10708
10713
|
&:focus {
|
|
10709
10714
|
background: var(--gray-50);
|
|
10715
|
+
border-color: var(--tile-border-color-hover, var(--accent-dark));
|
|
10716
|
+
z-index: 1;
|
|
10710
10717
|
}
|
|
10711
10718
|
|
|
10712
10719
|
&[aria-disabled='true'],
|
|
@@ -10722,28 +10729,56 @@ var TileIsSelected = import_react96.css`
|
|
|
10722
10729
|
border: calc(${tileBorderSize} + 1px) solid var(--primary-action-active);
|
|
10723
10730
|
z-index: 1; // Used to elevate active state border over other Tile borders
|
|
10724
10731
|
`;
|
|
10732
|
+
var TileHorizontal = import_react96.css`
|
|
10733
|
+
flex-direction: row;
|
|
10734
|
+
justify-content: flex-start;
|
|
10735
|
+
`;
|
|
10725
10736
|
|
|
10726
10737
|
// src/components/Tiles/LinkTile.tsx
|
|
10727
10738
|
var import_jsx_runtime83 = require("@emotion/react/jsx-runtime");
|
|
10728
10739
|
var LinkTile2 = (0, import_react97.forwardRef)(
|
|
10729
|
-
({ children, ...props }, ref) => {
|
|
10740
|
+
({ orientation = "vertical", children, ...props }, ref) => {
|
|
10730
10741
|
if ("linkManagerComponent" in props) {
|
|
10731
10742
|
const { linkManagerComponent: LinkManager, ...rest } = props;
|
|
10732
|
-
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
10743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
10744
|
+
LinkManager,
|
|
10745
|
+
{
|
|
10746
|
+
css: [
|
|
10747
|
+
Tile,
|
|
10748
|
+
LinkTile,
|
|
10749
|
+
orientation === "horizontal" ? TileHorizontal : void 0
|
|
10750
|
+
],
|
|
10751
|
+
ref,
|
|
10752
|
+
...rest,
|
|
10753
|
+
children
|
|
10754
|
+
}
|
|
10755
|
+
);
|
|
10733
10756
|
}
|
|
10734
|
-
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
10757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
|
|
10758
|
+
"a",
|
|
10759
|
+
{
|
|
10760
|
+
ref,
|
|
10761
|
+
css: [Tile, LinkTile, orientation === "horizontal" ? TileHorizontal : void 0],
|
|
10762
|
+
...props,
|
|
10763
|
+
children
|
|
10764
|
+
}
|
|
10765
|
+
);
|
|
10735
10766
|
}
|
|
10736
10767
|
);
|
|
10737
10768
|
|
|
10738
10769
|
// src/components/Tiles/Tile.tsx
|
|
10739
10770
|
init_emotion_jsx_shim();
|
|
10740
10771
|
var import_jsx_runtime84 = require("@emotion/react/jsx-runtime");
|
|
10741
|
-
var Tile2 = ({ children, disabled: disabled2, isSelected, ...props }) => {
|
|
10772
|
+
var Tile2 = ({ children, disabled: disabled2, isSelected, orientation = "vertical", ...props }) => {
|
|
10742
10773
|
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
10743
10774
|
"button",
|
|
10744
10775
|
{
|
|
10745
10776
|
type: "button",
|
|
10746
|
-
css: [
|
|
10777
|
+
css: [
|
|
10778
|
+
Tile,
|
|
10779
|
+
orientation === "horizontal" ? TileHorizontal : void 0,
|
|
10780
|
+
isSelected ? TileIsSelected : void 0
|
|
10781
|
+
],
|
|
10747
10782
|
disabled: disabled2,
|
|
10748
10783
|
...props,
|
|
10749
10784
|
children
|
|
@@ -10762,17 +10797,46 @@ var TileContainerWrapper = (theme, padding) => import_react98.css`
|
|
|
10762
10797
|
padding: ${padding != "none" ? `var(--spacing-${padding})` : "0"};
|
|
10763
10798
|
`;
|
|
10764
10799
|
var TileContainerInner = (gap, templateColumns) => import_react98.css`
|
|
10800
|
+
/* We remove the border radius from the tiles when used inside TileContainer */
|
|
10801
|
+
--tile-border-radius: 0;
|
|
10802
|
+
--tile-border-color: ${tileBorderColor};
|
|
10803
|
+
/* We don't want the tiles to change border color on hover, because of the border radius we have on the container-level */
|
|
10804
|
+
--tile-border-color-hover: ${tileBorderColor};
|
|
10805
|
+
|
|
10806
|
+
position: relative;
|
|
10765
10807
|
display: grid;
|
|
10766
10808
|
grid-template-columns: ${templateColumns};
|
|
10809
|
+
grid-auto-rows: 1fr;
|
|
10767
10810
|
gap: var(--spacing-${gap});
|
|
10811
|
+
background-color: var(--gray-5);
|
|
10768
10812
|
margin-top: ${tileBorderSize};
|
|
10769
10813
|
margin-left: ${tileBorderSize};
|
|
10814
|
+
border-radius: ${tileBorderRadius};
|
|
10815
|
+
overflow: hidden;
|
|
10816
|
+
|
|
10817
|
+
/* This is used to create a border around the tiles */
|
|
10818
|
+
&::after {
|
|
10819
|
+
content: '';
|
|
10820
|
+
position: absolute;
|
|
10821
|
+
inset: 0;
|
|
10822
|
+
border-radius: ${tileBorderRadius};
|
|
10823
|
+
border: ${tileBorderSize} solid var(--tile-border-color);
|
|
10824
|
+
pointer-events: none;
|
|
10825
|
+
z-index: 1;
|
|
10826
|
+
}
|
|
10770
10827
|
|
|
10771
10828
|
> * {
|
|
10772
10829
|
margin-top: -${tileBorderSize};
|
|
10773
10830
|
margin-left: -${tileBorderSize};
|
|
10774
10831
|
}
|
|
10775
10832
|
`;
|
|
10833
|
+
var TileContainerInnerWithoutGrouping = import_react98.css`
|
|
10834
|
+
overflow: visible;
|
|
10835
|
+
|
|
10836
|
+
&::after {
|
|
10837
|
+
display: none;
|
|
10838
|
+
}
|
|
10839
|
+
`;
|
|
10776
10840
|
|
|
10777
10841
|
// src/components/Tiles/TileContainer.tsx
|
|
10778
10842
|
var import_jsx_runtime85 = require("@emotion/react/jsx-runtime");
|
|
@@ -10782,9 +10846,19 @@ var TileContainer = ({
|
|
|
10782
10846
|
gap = "base",
|
|
10783
10847
|
gridTemplateColumns = "repeat(auto-fill, minmax(13rem, 1fr))",
|
|
10784
10848
|
children,
|
|
10849
|
+
withoutGrouping = false,
|
|
10785
10850
|
...props
|
|
10786
10851
|
}) => {
|
|
10787
|
-
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
10852
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("div", { css: TileContainerWrapper(bgColor, containerPadding), ...props, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
10853
|
+
"div",
|
|
10854
|
+
{
|
|
10855
|
+
css: [
|
|
10856
|
+
TileContainerInner(gap, gridTemplateColumns),
|
|
10857
|
+
withoutGrouping ? TileContainerInnerWithoutGrouping : void 0
|
|
10858
|
+
],
|
|
10859
|
+
children
|
|
10860
|
+
}
|
|
10861
|
+
) });
|
|
10788
10862
|
};
|
|
10789
10863
|
|
|
10790
10864
|
// src/components/Tiles/TileText.tsx
|
|
@@ -12755,7 +12829,7 @@ var ObjectListItemRightSlot = import_react123.css`
|
|
|
12755
12829
|
gap: var(--spacing-sm);
|
|
12756
12830
|
`;
|
|
12757
12831
|
var ObjectListItemContainer = import_react123.css`
|
|
12758
|
-
> [role='listitem'] {
|
|
12832
|
+
> [role='listitem']:not(:first-of-type) {
|
|
12759
12833
|
border-top: 1px solid var(--gray-200);
|
|
12760
12834
|
}
|
|
12761
12835
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.10.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@storybook/theming": "^8.3.3",
|
|
27
27
|
"@types/react": "18.3.11",
|
|
28
28
|
"@types/react-dom": "18.3.1",
|
|
29
|
-
"@uniformdev/canvas": "^20.
|
|
30
|
-
"@uniformdev/richtext": "^20.
|
|
29
|
+
"@uniformdev/canvas": "^20.10.0",
|
|
30
|
+
"@uniformdev/richtext": "^20.10.0",
|
|
31
31
|
"autoprefixer": "10.4.16",
|
|
32
32
|
"hygen": "6.2.11",
|
|
33
33
|
"postcss": "8.4.47",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "a17d7e247f34bc04f8ffd1274d850484dd09716b"
|
|
81
81
|
}
|