@uniformdev/design-system 18.6.0 → 18.7.1-alpha.11
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 +98 -46
- package/dist/index.d.ts +16 -3
- package/dist/index.js +107 -53
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -333,6 +333,14 @@ var buttonGhost = css`
|
|
|
333
333
|
|
|
334
334
|
${buttonRippleEffect({ hoverColor: "var(--white)", activeColor: "var(--gray-100)" })}
|
|
335
335
|
`;
|
|
336
|
+
var buttonGhostDestructive = css`
|
|
337
|
+
${buttonGhost}
|
|
338
|
+
color: var(--brand-secondary-5);
|
|
339
|
+
|
|
340
|
+
&:hover {
|
|
341
|
+
border-color: var(--brand-secondary-5);
|
|
342
|
+
}
|
|
343
|
+
`;
|
|
336
344
|
var buttonTertiary = css`
|
|
337
345
|
background: var(--brand-secondary-3);
|
|
338
346
|
color: var(--white);
|
|
@@ -1916,6 +1924,7 @@ var Button = React5.forwardRef(
|
|
|
1916
1924
|
secondary: buttonSecondary,
|
|
1917
1925
|
secondaryInvert: buttonSecondaryInvert,
|
|
1918
1926
|
ghost: buttonGhost,
|
|
1927
|
+
ghostDestructive: buttonGhostDestructive,
|
|
1919
1928
|
unimportant: buttonUnimportant,
|
|
1920
1929
|
tertiary: buttonTertiary
|
|
1921
1930
|
};
|
|
@@ -2790,7 +2799,7 @@ var drawerStyles = (bgColor = "var(--white)") => css27`
|
|
|
2790
2799
|
flex-direction: column;
|
|
2791
2800
|
position: absolute;
|
|
2792
2801
|
inset: 0;
|
|
2793
|
-
padding: var(--spacing-
|
|
2802
|
+
padding-top: var(--spacing-sm);
|
|
2794
2803
|
height: 100%;
|
|
2795
2804
|
`;
|
|
2796
2805
|
var drawerCloseButtonStyles = css27`
|
|
@@ -2799,19 +2808,22 @@ var drawerCloseButtonStyles = css27`
|
|
|
2799
2808
|
border: none;
|
|
2800
2809
|
display: block;
|
|
2801
2810
|
padding: var(--spacing-xs);
|
|
2811
|
+
margin-right: var(--spacing-sm);
|
|
2802
2812
|
`;
|
|
2803
2813
|
var drawerHeaderStyles = css27`
|
|
2804
2814
|
font-size: var(--fs-lg);
|
|
2805
2815
|
font-weight: var(--fw-bold);
|
|
2816
|
+
padding-inline: var(--spacing-base);
|
|
2806
2817
|
`;
|
|
2807
2818
|
var drawerRendererStyles = (position) => css27`
|
|
2808
2819
|
position: ${position};
|
|
2809
2820
|
inset: 0;
|
|
2810
2821
|
overflow: hidden;
|
|
2811
|
-
z-index:
|
|
2822
|
+
z-index: 40;
|
|
2812
2823
|
`;
|
|
2813
2824
|
var drawerInnerStyles = css27`
|
|
2814
2825
|
height: 100%;
|
|
2826
|
+
padding: var(--spacing-base);
|
|
2815
2827
|
overflow: auto;
|
|
2816
2828
|
${scrollbarStyles}
|
|
2817
2829
|
`;
|
|
@@ -2844,8 +2856,7 @@ var drawerWrapperStyles = css27`
|
|
|
2844
2856
|
var drawerWrapperOverlayStyles = css27`
|
|
2845
2857
|
position: absolute;
|
|
2846
2858
|
inset: 0;
|
|
2847
|
-
background: rgba(
|
|
2848
|
-
backdrop-filter: blur(2px);
|
|
2859
|
+
background: rgba(31, 43, 52, 0.4);
|
|
2849
2860
|
animation: ${fadeIn} var(--duration-fast) ease-out;
|
|
2850
2861
|
`;
|
|
2851
2862
|
|
|
@@ -3625,7 +3636,7 @@ var InputKeywordSearch = ({
|
|
|
3625
3636
|
placeholder,
|
|
3626
3637
|
showLabel: false,
|
|
3627
3638
|
value,
|
|
3628
|
-
icon: value ? /* @__PURE__ */ jsx41("button", { onClick: onClear, children: /* @__PURE__ */ jsx41(Icon, { icon: "close", css: inputSearchCloseIcon }) }) : /* @__PURE__ */ jsxs25(
|
|
3639
|
+
icon: value ? /* @__PURE__ */ jsx41("button", { onClick: onClear, css: { pointerEvents: "all" }, children: /* @__PURE__ */ jsx41(Icon, { icon: "close", css: inputSearchCloseIcon }) }) : /* @__PURE__ */ jsxs25(
|
|
3629
3640
|
"svg",
|
|
3630
3641
|
{
|
|
3631
3642
|
width: "26",
|
|
@@ -4750,12 +4761,51 @@ var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
|
4750
4761
|
] });
|
|
4751
4762
|
};
|
|
4752
4763
|
|
|
4764
|
+
// src/components/Skeleton/Skeleton.styles.ts
|
|
4765
|
+
import { css as css51, keyframes as keyframes4 } from "@emotion/react";
|
|
4766
|
+
var lightFadingOut = keyframes4`
|
|
4767
|
+
from { opacity: 0.1; }
|
|
4768
|
+
to { opacity: 0.025; }
|
|
4769
|
+
`;
|
|
4770
|
+
var skeletonStyles = css51`
|
|
4771
|
+
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
4772
|
+
background-color: var(--gray-900);
|
|
4773
|
+
`;
|
|
4774
|
+
|
|
4775
|
+
// src/components/Skeleton/Skeleton.tsx
|
|
4776
|
+
import { jsx as jsx63 } from "@emotion/react/jsx-runtime";
|
|
4777
|
+
var Skeleton = ({
|
|
4778
|
+
width = "100%",
|
|
4779
|
+
height = "1.25rem",
|
|
4780
|
+
inline = false,
|
|
4781
|
+
circle = false,
|
|
4782
|
+
children,
|
|
4783
|
+
...otherProps
|
|
4784
|
+
}) => /* @__PURE__ */ jsx63(
|
|
4785
|
+
"div",
|
|
4786
|
+
{
|
|
4787
|
+
css: [
|
|
4788
|
+
skeletonStyles,
|
|
4789
|
+
{
|
|
4790
|
+
width: circle ? height : width,
|
|
4791
|
+
height,
|
|
4792
|
+
display: inline ? "inline-block" : "block",
|
|
4793
|
+
borderRadius: circle ? "var(--rounded-full)" : "var(--rounded-md)"
|
|
4794
|
+
}
|
|
4795
|
+
],
|
|
4796
|
+
...otherProps,
|
|
4797
|
+
"aria-busy": "true",
|
|
4798
|
+
"aria-label": "Loading...",
|
|
4799
|
+
children
|
|
4800
|
+
}
|
|
4801
|
+
);
|
|
4802
|
+
|
|
4753
4803
|
// src/components/Switch/Switch.tsx
|
|
4754
4804
|
import * as React14 from "react";
|
|
4755
4805
|
|
|
4756
4806
|
// src/components/Switch/Switch.styles.ts
|
|
4757
|
-
import { css as
|
|
4758
|
-
var SwitchInputContainer =
|
|
4807
|
+
import { css as css52 } from "@emotion/react";
|
|
4808
|
+
var SwitchInputContainer = css52`
|
|
4759
4809
|
cursor: pointer;
|
|
4760
4810
|
display: inline-block;
|
|
4761
4811
|
position: relative;
|
|
@@ -4764,7 +4814,7 @@ var SwitchInputContainer = css51`
|
|
|
4764
4814
|
vertical-align: middle;
|
|
4765
4815
|
user-select: none;
|
|
4766
4816
|
`;
|
|
4767
|
-
var SwitchInput =
|
|
4817
|
+
var SwitchInput = css52`
|
|
4768
4818
|
appearance: none;
|
|
4769
4819
|
border-radius: var(--rounded-full);
|
|
4770
4820
|
background-color: var(--white);
|
|
@@ -4802,7 +4852,7 @@ var SwitchInput = css51`
|
|
|
4802
4852
|
cursor: not-allowed;
|
|
4803
4853
|
}
|
|
4804
4854
|
`;
|
|
4805
|
-
var SwitchInputDisabled =
|
|
4855
|
+
var SwitchInputDisabled = css52`
|
|
4806
4856
|
opacity: var(--opacity-50);
|
|
4807
4857
|
cursor: not-allowed;
|
|
4808
4858
|
|
|
@@ -4810,7 +4860,7 @@ var SwitchInputDisabled = css51`
|
|
|
4810
4860
|
cursor: not-allowed;
|
|
4811
4861
|
}
|
|
4812
4862
|
`;
|
|
4813
|
-
var SwitchInputLabel =
|
|
4863
|
+
var SwitchInputLabel = css52`
|
|
4814
4864
|
align-items: center;
|
|
4815
4865
|
color: var(--brand-secondary-1);
|
|
4816
4866
|
display: inline-flex;
|
|
@@ -4832,14 +4882,14 @@ var SwitchInputLabel = css51`
|
|
|
4832
4882
|
top: 0;
|
|
4833
4883
|
}
|
|
4834
4884
|
`;
|
|
4835
|
-
var SwitchText =
|
|
4885
|
+
var SwitchText = css52`
|
|
4836
4886
|
color: var(--gray-500);
|
|
4837
4887
|
font-size: var(--fs-sm);
|
|
4838
4888
|
padding-inline: var(--spacing-2xl) 0;
|
|
4839
4889
|
`;
|
|
4840
4890
|
|
|
4841
4891
|
// src/components/Switch/Switch.tsx
|
|
4842
|
-
import { Fragment as Fragment9, jsx as
|
|
4892
|
+
import { Fragment as Fragment9, jsx as jsx64, jsxs as jsxs44 } from "@emotion/react/jsx-runtime";
|
|
4843
4893
|
var Switch = React14.forwardRef(
|
|
4844
4894
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
4845
4895
|
let additionalText = infoText;
|
|
@@ -4848,10 +4898,10 @@ var Switch = React14.forwardRef(
|
|
|
4848
4898
|
}
|
|
4849
4899
|
return /* @__PURE__ */ jsxs44(Fragment9, { children: [
|
|
4850
4900
|
/* @__PURE__ */ jsxs44("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
4851
|
-
/* @__PURE__ */
|
|
4852
|
-
/* @__PURE__ */
|
|
4901
|
+
/* @__PURE__ */ jsx64("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
4902
|
+
/* @__PURE__ */ jsx64("span", { css: SwitchInputLabel, children: label })
|
|
4853
4903
|
] }),
|
|
4854
|
-
additionalText ? /* @__PURE__ */
|
|
4904
|
+
additionalText ? /* @__PURE__ */ jsx64("p", { css: SwitchText, children: additionalText }) : null,
|
|
4855
4905
|
children
|
|
4856
4906
|
] });
|
|
4857
4907
|
}
|
|
@@ -4861,64 +4911,64 @@ var Switch = React14.forwardRef(
|
|
|
4861
4911
|
import * as React15 from "react";
|
|
4862
4912
|
|
|
4863
4913
|
// src/components/Table/Table.styles.ts
|
|
4864
|
-
import { css as
|
|
4865
|
-
var table =
|
|
4914
|
+
import { css as css53 } from "@emotion/react";
|
|
4915
|
+
var table = css53`
|
|
4866
4916
|
border-bottom: 1px solid var(--gray-400);
|
|
4867
4917
|
border-collapse: collapse;
|
|
4868
4918
|
min-width: 100%;
|
|
4869
4919
|
table-layout: auto;
|
|
4870
4920
|
`;
|
|
4871
|
-
var tableHead =
|
|
4921
|
+
var tableHead = css53`
|
|
4872
4922
|
background: var(--gray-100);
|
|
4873
4923
|
color: var(--brand-secondary-1);
|
|
4874
4924
|
text-align: left;
|
|
4875
4925
|
`;
|
|
4876
|
-
var tableRow =
|
|
4926
|
+
var tableRow = css53`
|
|
4877
4927
|
border-bottom: 1px solid var(--gray-200);
|
|
4878
4928
|
`;
|
|
4879
|
-
var tableCellHead =
|
|
4929
|
+
var tableCellHead = css53`
|
|
4880
4930
|
font-size: var(--fs-sm);
|
|
4881
4931
|
padding: var(--spacing-base) var(--spacing-md);
|
|
4882
4932
|
text-transform: uppercase;
|
|
4883
4933
|
font-weight: var(--fw-bold);
|
|
4884
4934
|
`;
|
|
4885
|
-
var tableCellData =
|
|
4935
|
+
var tableCellData = css53`
|
|
4886
4936
|
padding: var(--spacing-base) var(--spacing-md);
|
|
4887
4937
|
`;
|
|
4888
4938
|
|
|
4889
4939
|
// src/components/Table/Table.tsx
|
|
4890
|
-
import { jsx as
|
|
4940
|
+
import { jsx as jsx65 } from "@emotion/react/jsx-runtime";
|
|
4891
4941
|
var Table = React15.forwardRef(({ children, ...otherProps }, ref) => {
|
|
4892
|
-
return /* @__PURE__ */
|
|
4942
|
+
return /* @__PURE__ */ jsx65("table", { ref, css: table, ...otherProps, children });
|
|
4893
4943
|
});
|
|
4894
4944
|
var TableHead = React15.forwardRef(
|
|
4895
4945
|
({ children, ...otherProps }, ref) => {
|
|
4896
|
-
return /* @__PURE__ */
|
|
4946
|
+
return /* @__PURE__ */ jsx65("thead", { ref, css: tableHead, ...otherProps, children });
|
|
4897
4947
|
}
|
|
4898
4948
|
);
|
|
4899
4949
|
var TableBody = React15.forwardRef(
|
|
4900
4950
|
({ children, ...otherProps }, ref) => {
|
|
4901
|
-
return /* @__PURE__ */
|
|
4951
|
+
return /* @__PURE__ */ jsx65("tbody", { ref, ...otherProps, children });
|
|
4902
4952
|
}
|
|
4903
4953
|
);
|
|
4904
4954
|
var TableFoot = React15.forwardRef(
|
|
4905
4955
|
({ children, ...otherProps }, ref) => {
|
|
4906
|
-
return /* @__PURE__ */
|
|
4956
|
+
return /* @__PURE__ */ jsx65("tfoot", { ref, ...otherProps, children });
|
|
4907
4957
|
}
|
|
4908
4958
|
);
|
|
4909
4959
|
var TableRow = React15.forwardRef(
|
|
4910
4960
|
({ children, ...otherProps }, ref) => {
|
|
4911
|
-
return /* @__PURE__ */
|
|
4961
|
+
return /* @__PURE__ */ jsx65("tr", { ref, css: tableRow, ...otherProps, children });
|
|
4912
4962
|
}
|
|
4913
4963
|
);
|
|
4914
4964
|
var TableCellHead = React15.forwardRef(
|
|
4915
4965
|
({ children, ...otherProps }, ref) => {
|
|
4916
|
-
return /* @__PURE__ */
|
|
4966
|
+
return /* @__PURE__ */ jsx65("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
4917
4967
|
}
|
|
4918
4968
|
);
|
|
4919
4969
|
var TableCellData = React15.forwardRef(
|
|
4920
4970
|
({ children, ...otherProps }, ref) => {
|
|
4921
|
-
return /* @__PURE__ */
|
|
4971
|
+
return /* @__PURE__ */ jsx65("td", { ref, css: tableCellData, ...otherProps, children });
|
|
4922
4972
|
}
|
|
4923
4973
|
);
|
|
4924
4974
|
|
|
@@ -4932,8 +4982,8 @@ import {
|
|
|
4932
4982
|
} from "reakit/Tab";
|
|
4933
4983
|
|
|
4934
4984
|
// src/components/Tabs/Tabs.styles.ts
|
|
4935
|
-
import { css as
|
|
4936
|
-
var tabButtonStyles =
|
|
4985
|
+
import { css as css54 } from "@emotion/react";
|
|
4986
|
+
var tabButtonStyles = css54`
|
|
4937
4987
|
align-items: center;
|
|
4938
4988
|
border: 0;
|
|
4939
4989
|
height: 2.5rem;
|
|
@@ -4950,13 +5000,13 @@ var tabButtonStyles = css53`
|
|
|
4950
5000
|
-webkit-text-stroke-width: thin;
|
|
4951
5001
|
}
|
|
4952
5002
|
`;
|
|
4953
|
-
var tabButtonGroupStyles =
|
|
5003
|
+
var tabButtonGroupStyles = css54`
|
|
4954
5004
|
display: flex;
|
|
4955
5005
|
gap: var(--spacing-base);
|
|
4956
5006
|
`;
|
|
4957
5007
|
|
|
4958
5008
|
// src/components/Tabs/Tabs.tsx
|
|
4959
|
-
import { jsx as
|
|
5009
|
+
import { jsx as jsx66 } from "@emotion/react/jsx-runtime";
|
|
4960
5010
|
var CurrentTabContext = createContext4(null);
|
|
4961
5011
|
var useCurrentTab = () => {
|
|
4962
5012
|
const context = useContext5(CurrentTabContext);
|
|
@@ -4974,24 +5024,24 @@ var Tabs = ({ children, onSelectedIdChange, ...props }) => {
|
|
|
4974
5024
|
useEffect8(() => {
|
|
4975
5025
|
tab.setSelectedId(props.selectedId);
|
|
4976
5026
|
}, [props.selectedId]);
|
|
4977
|
-
return /* @__PURE__ */
|
|
5027
|
+
return /* @__PURE__ */ jsx66(CurrentTabContext.Provider, { value: tab, children });
|
|
4978
5028
|
};
|
|
4979
5029
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
4980
5030
|
const currentTab = useCurrentTab();
|
|
4981
|
-
return /* @__PURE__ */
|
|
5031
|
+
return /* @__PURE__ */ jsx66(ReakitTabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
4982
5032
|
};
|
|
4983
5033
|
var TabButton = ({ children, id, ...props }) => {
|
|
4984
5034
|
const currentTab = useCurrentTab();
|
|
4985
|
-
return /* @__PURE__ */
|
|
5035
|
+
return /* @__PURE__ */ jsx66(ReakitTab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
4986
5036
|
};
|
|
4987
5037
|
var TabContent = ({ children, ...props }) => {
|
|
4988
5038
|
const currentTab = useCurrentTab();
|
|
4989
|
-
return /* @__PURE__ */
|
|
5039
|
+
return /* @__PURE__ */ jsx66(ReakitTabPanel, { ...props, ...currentTab, children });
|
|
4990
5040
|
};
|
|
4991
5041
|
|
|
4992
5042
|
// src/components/Validation/StatusBullet.styles.ts
|
|
4993
|
-
import { css as
|
|
4994
|
-
var StatusBulletContainer =
|
|
5043
|
+
import { css as css55 } from "@emotion/react";
|
|
5044
|
+
var StatusBulletContainer = css55`
|
|
4995
5045
|
align-items: center;
|
|
4996
5046
|
align-self: center;
|
|
4997
5047
|
color: var(--gray-500);
|
|
@@ -5011,18 +5061,18 @@ var StatusBulletContainer = css54`
|
|
|
5011
5061
|
height: var(--fs-xs);
|
|
5012
5062
|
}
|
|
5013
5063
|
`;
|
|
5014
|
-
var StatusDraft =
|
|
5064
|
+
var StatusDraft = css55`
|
|
5015
5065
|
&:before {
|
|
5016
5066
|
background: var(--white);
|
|
5017
5067
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
5018
5068
|
}
|
|
5019
5069
|
`;
|
|
5020
|
-
var StatusModified =
|
|
5070
|
+
var StatusModified = css55`
|
|
5021
5071
|
&:before {
|
|
5022
5072
|
background: var(--brand-primary-1);
|
|
5023
5073
|
}
|
|
5024
5074
|
`;
|
|
5025
|
-
var StatusError =
|
|
5075
|
+
var StatusError = css55`
|
|
5026
5076
|
color: var(--error);
|
|
5027
5077
|
&:before {
|
|
5028
5078
|
background: var(--error);
|
|
@@ -5038,19 +5088,19 @@ var StatusError = css54`
|
|
|
5038
5088
|
rotate: -45deg;
|
|
5039
5089
|
}
|
|
5040
5090
|
`;
|
|
5041
|
-
var StatusPublished =
|
|
5091
|
+
var StatusPublished = css55`
|
|
5042
5092
|
&:before {
|
|
5043
5093
|
background: var(--brand-secondary-3);
|
|
5044
5094
|
}
|
|
5045
5095
|
`;
|
|
5046
|
-
var StatusOrphan =
|
|
5096
|
+
var StatusOrphan = css55`
|
|
5047
5097
|
&:before {
|
|
5048
5098
|
background: var(--brand-secondary-5);
|
|
5049
5099
|
}
|
|
5050
5100
|
`;
|
|
5051
5101
|
|
|
5052
5102
|
// src/components/Validation/StatusBullet.tsx
|
|
5053
|
-
import { jsx as
|
|
5103
|
+
import { jsx as jsx67 } from "@emotion/react/jsx-runtime";
|
|
5054
5104
|
var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
5055
5105
|
const currentStateStyles = {
|
|
5056
5106
|
Error: StatusError,
|
|
@@ -5060,7 +5110,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
5060
5110
|
Published: StatusPublished,
|
|
5061
5111
|
Draft: StatusDraft
|
|
5062
5112
|
};
|
|
5063
|
-
return /* @__PURE__ */
|
|
5113
|
+
return /* @__PURE__ */ jsx67(
|
|
5064
5114
|
"span",
|
|
5065
5115
|
{
|
|
5066
5116
|
css: [StatusBulletContainer, currentStateStyles[status]],
|
|
@@ -5129,6 +5179,7 @@ export {
|
|
|
5129
5179
|
ScrollableListItem,
|
|
5130
5180
|
ShortcutContext,
|
|
5131
5181
|
ShortcutRevealer,
|
|
5182
|
+
Skeleton,
|
|
5132
5183
|
StatusBullet,
|
|
5133
5184
|
Switch,
|
|
5134
5185
|
TabButton,
|
|
@@ -5151,6 +5202,7 @@ export {
|
|
|
5151
5202
|
breakpoints,
|
|
5152
5203
|
button,
|
|
5153
5204
|
buttonGhost,
|
|
5205
|
+
buttonGhostDestructive,
|
|
5154
5206
|
buttonPrimary,
|
|
5155
5207
|
buttonRippleEffect,
|
|
5156
5208
|
buttonSecondary,
|
package/dist/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ declare const buttonSecondary: _emotion_react.SerializedStyles;
|
|
|
64
64
|
declare const buttonSecondaryInvert: _emotion_react.SerializedStyles;
|
|
65
65
|
declare const buttonUnimportant: _emotion_react.SerializedStyles;
|
|
66
66
|
declare const buttonGhost: _emotion_react.SerializedStyles;
|
|
67
|
+
declare const buttonGhostDestructive: _emotion_react.SerializedStyles;
|
|
67
68
|
declare const buttonTertiary: _emotion_react.SerializedStyles;
|
|
68
69
|
|
|
69
70
|
declare const labelText: _emotion_react.SerializedStyles;
|
|
@@ -205,7 +206,7 @@ declare const UniformBadge: ({ theme, ...props }: React__default.SVGAttributes<S
|
|
|
205
206
|
declare const UniformLogo: ({ theme, ...props }: UniformLogoProps & React.SVGAttributes<SVGElement>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
206
207
|
|
|
207
208
|
/** Button themes that are available to use with our brand */
|
|
208
|
-
type ButtonThemeProps$1 = 'primary' | 'secondary' | 'tertiary' | 'unimportant' | 'ghost' | 'secondaryInvert';
|
|
209
|
+
type ButtonThemeProps$1 = 'primary' | 'secondary' | 'tertiary' | 'unimportant' | 'ghost' | 'ghostDestructive' | 'secondaryInvert';
|
|
209
210
|
/** Button sizes that are available to use with our brand */
|
|
210
211
|
type ButtonSizeProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
211
212
|
type ButtonProps = ButtonProps$1 & {
|
|
@@ -737,7 +738,7 @@ type InputSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
|
|
|
737
738
|
*/
|
|
738
739
|
declare const InputSelect: ({ label, defaultOption, options, caption, errorMessage, warningMessage, showLabel, labelCta, compact, classNameContainer, classNameControl, classNameLabel, ...props }: InputSelectProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
739
740
|
|
|
740
|
-
type InputToggleProps = React$1.
|
|
741
|
+
type InputToggleProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
741
742
|
/** sets the label value */
|
|
742
743
|
label: string;
|
|
743
744
|
/** sets the type of input to use, either radio or checkbox */
|
|
@@ -1006,6 +1007,18 @@ type UseShortcutOptions = {
|
|
|
1006
1007
|
declare function macifyShortcut(shortcut: string | null): string | null;
|
|
1007
1008
|
declare function useShortcut({ handler, shortcut, macShortcut, doNotPreventDefault, activeWhenEditing, }: UseShortcutOptions): void;
|
|
1008
1009
|
|
|
1010
|
+
type SkeletonProps = React__default.PropsWithChildren<React__default.HTMLAttributes<HTMLDivElement>> & {
|
|
1011
|
+
width?: string;
|
|
1012
|
+
height?: string;
|
|
1013
|
+
inline?: boolean;
|
|
1014
|
+
circle?: boolean;
|
|
1015
|
+
};
|
|
1016
|
+
/**
|
|
1017
|
+
* A loading skeleton
|
|
1018
|
+
* @example <Skeleton width="50%" height="32px" />
|
|
1019
|
+
*/
|
|
1020
|
+
declare const Skeleton: ({ width, height, inline, circle, children, ...otherProps }: SkeletonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1021
|
+
|
|
1009
1022
|
type SwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
1010
1023
|
/** sets the label value */
|
|
1011
1024
|
label: string;
|
|
@@ -1339,4 +1352,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
1339
1352
|
};
|
|
1340
1353
|
declare const StatusBullet: ({ status, hideText, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1341
1354
|
|
|
1342
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, StatusBullet, StatusBulletProps, StatusTypeProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, UniformBadge, UniformLogo, UniformLogoProps, UseShortcutOptions, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeOutBottom, growSubtle, input, inputError, inputSelect, isMacLike, labelText, macifyShortcut, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useShortcut };
|
|
1355
|
+
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, ArrowPositionProps, Badge, BadgeProps, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, ComboBoxGroupBase, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, DashedBox, DashedBoxProps, Details, DetailsProps, Drawer, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, Icon, IconColor, IconName, IconProps, IconType, IconsProvider, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, Label, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkProps, LinkWithRef, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, Menu, MenuContext, MenuItem, MenuItemProps, MenuItemSeparator, MenuItemTextThemeProps, MenuProps, PageHeaderSection, PageHeaderSectionProps, Paragraph, ParagraphProps, RegisterDrawerProps, ResolveIcon, ResolveIconProps, ScrollableItemProps, ScrollableList, ScrollableListInputItem, ScrollableListItem, ScrollableListItemProps, ScrollableListProps, ShortcutContext, ShortcutRevealer, Skeleton, SkeletonProps, StatusBullet, StatusBulletProps, StatusTypeProps, Switch, SwitchProps, TabButton, TabButtonGroup, TabButtonProps, TabContent, TabContentProps, Table, TableBody, TableBodyProps, TableCellData, TableCellDataProps, TableCellHead, TableCellHeadProps, TableFoot, TableFootProps, TableHead, TableHeadProps, TableProps, TableRow, TableRowProps, Tabs, TabsProps, TextAlignProps, Textarea, TextareaProps, Theme, ThemeProps, TileContainer, TileContainerProps, UniformBadge, UniformLogo, UniformLogoProps, UseShortcutOptions, WarningMessage, WarningMessageProps, breakpoints, button, buttonGhost, buttonGhostDestructive, buttonPrimary, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonUnimportant, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeOutBottom, growSubtle, input, inputError, inputSelect, isMacLike, labelText, macifyShortcut, mq, ripple, scrollbarStyles, skeletonLoading, supports, useBreakpoint, useCurrentTab, useDrawer, useIconContext, useMenuContext, useOutsideClick, useShortcut };
|
package/dist/index.js
CHANGED
|
@@ -84,6 +84,7 @@ __export(src_exports, {
|
|
|
84
84
|
ScrollableListItem: () => ScrollableListItem,
|
|
85
85
|
ShortcutContext: () => ShortcutContext,
|
|
86
86
|
ShortcutRevealer: () => ShortcutRevealer,
|
|
87
|
+
Skeleton: () => Skeleton,
|
|
87
88
|
StatusBullet: () => StatusBullet,
|
|
88
89
|
Switch: () => Switch,
|
|
89
90
|
TabButton: () => TabButton,
|
|
@@ -106,6 +107,7 @@ __export(src_exports, {
|
|
|
106
107
|
breakpoints: () => breakpoints,
|
|
107
108
|
button: () => button,
|
|
108
109
|
buttonGhost: () => buttonGhost,
|
|
110
|
+
buttonGhostDestructive: () => buttonGhostDestructive,
|
|
109
111
|
buttonPrimary: () => buttonPrimary,
|
|
110
112
|
buttonRippleEffect: () => buttonRippleEffect,
|
|
111
113
|
buttonSecondary: () => buttonSecondary,
|
|
@@ -474,6 +476,14 @@ var buttonGhost = import_react3.css`
|
|
|
474
476
|
|
|
475
477
|
${buttonRippleEffect({ hoverColor: "var(--white)", activeColor: "var(--gray-100)" })}
|
|
476
478
|
`;
|
|
479
|
+
var buttonGhostDestructive = import_react3.css`
|
|
480
|
+
${buttonGhost}
|
|
481
|
+
color: var(--brand-secondary-5);
|
|
482
|
+
|
|
483
|
+
&:hover {
|
|
484
|
+
border-color: var(--brand-secondary-5);
|
|
485
|
+
}
|
|
486
|
+
`;
|
|
477
487
|
var buttonTertiary = import_react3.css`
|
|
478
488
|
background: var(--brand-secondary-3);
|
|
479
489
|
color: var(--white);
|
|
@@ -2057,6 +2067,7 @@ var Button = React5.forwardRef(
|
|
|
2057
2067
|
secondary: buttonSecondary,
|
|
2058
2068
|
secondaryInvert: buttonSecondaryInvert,
|
|
2059
2069
|
ghost: buttonGhost,
|
|
2070
|
+
ghostDestructive: buttonGhostDestructive,
|
|
2060
2071
|
unimportant: buttonUnimportant,
|
|
2061
2072
|
tertiary: buttonTertiary
|
|
2062
2073
|
};
|
|
@@ -2927,7 +2938,7 @@ var drawerStyles = (bgColor = "var(--white)") => import_react34.css`
|
|
|
2927
2938
|
flex-direction: column;
|
|
2928
2939
|
position: absolute;
|
|
2929
2940
|
inset: 0;
|
|
2930
|
-
padding: var(--spacing-
|
|
2941
|
+
padding-top: var(--spacing-sm);
|
|
2931
2942
|
height: 100%;
|
|
2932
2943
|
`;
|
|
2933
2944
|
var drawerCloseButtonStyles = import_react34.css`
|
|
@@ -2936,19 +2947,22 @@ var drawerCloseButtonStyles = import_react34.css`
|
|
|
2936
2947
|
border: none;
|
|
2937
2948
|
display: block;
|
|
2938
2949
|
padding: var(--spacing-xs);
|
|
2950
|
+
margin-right: var(--spacing-sm);
|
|
2939
2951
|
`;
|
|
2940
2952
|
var drawerHeaderStyles = import_react34.css`
|
|
2941
2953
|
font-size: var(--fs-lg);
|
|
2942
2954
|
font-weight: var(--fw-bold);
|
|
2955
|
+
padding-inline: var(--spacing-base);
|
|
2943
2956
|
`;
|
|
2944
2957
|
var drawerRendererStyles = (position) => import_react34.css`
|
|
2945
2958
|
position: ${position};
|
|
2946
2959
|
inset: 0;
|
|
2947
2960
|
overflow: hidden;
|
|
2948
|
-
z-index:
|
|
2961
|
+
z-index: 40;
|
|
2949
2962
|
`;
|
|
2950
2963
|
var drawerInnerStyles = import_react34.css`
|
|
2951
2964
|
height: 100%;
|
|
2965
|
+
padding: var(--spacing-base);
|
|
2952
2966
|
overflow: auto;
|
|
2953
2967
|
${scrollbarStyles}
|
|
2954
2968
|
`;
|
|
@@ -2981,8 +2995,7 @@ var drawerWrapperStyles = import_react34.css`
|
|
|
2981
2995
|
var drawerWrapperOverlayStyles = import_react34.css`
|
|
2982
2996
|
position: absolute;
|
|
2983
2997
|
inset: 0;
|
|
2984
|
-
background: rgba(
|
|
2985
|
-
backdrop-filter: blur(2px);
|
|
2998
|
+
background: rgba(31, 43, 52, 0.4);
|
|
2986
2999
|
animation: ${fadeIn} var(--duration-fast) ease-out;
|
|
2987
3000
|
`;
|
|
2988
3001
|
|
|
@@ -3762,7 +3775,7 @@ var InputKeywordSearch = ({
|
|
|
3762
3775
|
placeholder,
|
|
3763
3776
|
showLabel: false,
|
|
3764
3777
|
value,
|
|
3765
|
-
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("button", { onClick: onClear, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { icon: "close", css: inputSearchCloseIcon }) }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
3778
|
+
icon: value ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("button", { onClick: onClear, css: { pointerEvents: "all" }, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Icon, { icon: "close", css: inputSearchCloseIcon }) }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
3766
3779
|
"svg",
|
|
3767
3780
|
{
|
|
3768
3781
|
width: "26",
|
|
@@ -4887,12 +4900,51 @@ var IntegrationModalHeader = ({ icon, name, menu: menu2, children }) => {
|
|
|
4887
4900
|
] });
|
|
4888
4901
|
};
|
|
4889
4902
|
|
|
4903
|
+
// src/components/Skeleton/Skeleton.styles.ts
|
|
4904
|
+
var import_react63 = require("@emotion/react");
|
|
4905
|
+
var lightFadingOut = import_react63.keyframes`
|
|
4906
|
+
from { opacity: 0.1; }
|
|
4907
|
+
to { opacity: 0.025; }
|
|
4908
|
+
`;
|
|
4909
|
+
var skeletonStyles = import_react63.css`
|
|
4910
|
+
animation: ${lightFadingOut} 1s ease-out infinite alternate;
|
|
4911
|
+
background-color: var(--gray-900);
|
|
4912
|
+
`;
|
|
4913
|
+
|
|
4914
|
+
// src/components/Skeleton/Skeleton.tsx
|
|
4915
|
+
var import_jsx_runtime62 = require("@emotion/react/jsx-runtime");
|
|
4916
|
+
var Skeleton = ({
|
|
4917
|
+
width = "100%",
|
|
4918
|
+
height = "1.25rem",
|
|
4919
|
+
inline = false,
|
|
4920
|
+
circle = false,
|
|
4921
|
+
children,
|
|
4922
|
+
...otherProps
|
|
4923
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4924
|
+
"div",
|
|
4925
|
+
{
|
|
4926
|
+
css: [
|
|
4927
|
+
skeletonStyles,
|
|
4928
|
+
{
|
|
4929
|
+
width: circle ? height : width,
|
|
4930
|
+
height,
|
|
4931
|
+
display: inline ? "inline-block" : "block",
|
|
4932
|
+
borderRadius: circle ? "var(--rounded-full)" : "var(--rounded-md)"
|
|
4933
|
+
}
|
|
4934
|
+
],
|
|
4935
|
+
...otherProps,
|
|
4936
|
+
"aria-busy": "true",
|
|
4937
|
+
"aria-label": "Loading...",
|
|
4938
|
+
children
|
|
4939
|
+
}
|
|
4940
|
+
);
|
|
4941
|
+
|
|
4890
4942
|
// src/components/Switch/Switch.tsx
|
|
4891
4943
|
var React14 = __toESM(require("react"));
|
|
4892
4944
|
|
|
4893
4945
|
// src/components/Switch/Switch.styles.ts
|
|
4894
|
-
var
|
|
4895
|
-
var SwitchInputContainer =
|
|
4946
|
+
var import_react64 = require("@emotion/react");
|
|
4947
|
+
var SwitchInputContainer = import_react64.css`
|
|
4896
4948
|
cursor: pointer;
|
|
4897
4949
|
display: inline-block;
|
|
4898
4950
|
position: relative;
|
|
@@ -4901,7 +4953,7 @@ var SwitchInputContainer = import_react63.css`
|
|
|
4901
4953
|
vertical-align: middle;
|
|
4902
4954
|
user-select: none;
|
|
4903
4955
|
`;
|
|
4904
|
-
var SwitchInput =
|
|
4956
|
+
var SwitchInput = import_react64.css`
|
|
4905
4957
|
appearance: none;
|
|
4906
4958
|
border-radius: var(--rounded-full);
|
|
4907
4959
|
background-color: var(--white);
|
|
@@ -4939,7 +4991,7 @@ var SwitchInput = import_react63.css`
|
|
|
4939
4991
|
cursor: not-allowed;
|
|
4940
4992
|
}
|
|
4941
4993
|
`;
|
|
4942
|
-
var SwitchInputDisabled =
|
|
4994
|
+
var SwitchInputDisabled = import_react64.css`
|
|
4943
4995
|
opacity: var(--opacity-50);
|
|
4944
4996
|
cursor: not-allowed;
|
|
4945
4997
|
|
|
@@ -4947,7 +4999,7 @@ var SwitchInputDisabled = import_react63.css`
|
|
|
4947
4999
|
cursor: not-allowed;
|
|
4948
5000
|
}
|
|
4949
5001
|
`;
|
|
4950
|
-
var SwitchInputLabel =
|
|
5002
|
+
var SwitchInputLabel = import_react64.css`
|
|
4951
5003
|
align-items: center;
|
|
4952
5004
|
color: var(--brand-secondary-1);
|
|
4953
5005
|
display: inline-flex;
|
|
@@ -4969,26 +5021,26 @@ var SwitchInputLabel = import_react63.css`
|
|
|
4969
5021
|
top: 0;
|
|
4970
5022
|
}
|
|
4971
5023
|
`;
|
|
4972
|
-
var SwitchText =
|
|
5024
|
+
var SwitchText = import_react64.css`
|
|
4973
5025
|
color: var(--gray-500);
|
|
4974
5026
|
font-size: var(--fs-sm);
|
|
4975
5027
|
padding-inline: var(--spacing-2xl) 0;
|
|
4976
5028
|
`;
|
|
4977
5029
|
|
|
4978
5030
|
// src/components/Switch/Switch.tsx
|
|
4979
|
-
var
|
|
5031
|
+
var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
|
|
4980
5032
|
var Switch = React14.forwardRef(
|
|
4981
5033
|
({ label, infoText, toggleText, children, ...inputProps }, ref) => {
|
|
4982
5034
|
let additionalText = infoText;
|
|
4983
5035
|
if (infoText && toggleText) {
|
|
4984
5036
|
additionalText = inputProps.checked ? toggleText : infoText;
|
|
4985
5037
|
}
|
|
4986
|
-
return /* @__PURE__ */ (0,
|
|
4987
|
-
/* @__PURE__ */ (0,
|
|
4988
|
-
/* @__PURE__ */ (0,
|
|
4989
|
-
/* @__PURE__ */ (0,
|
|
5038
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
|
|
5039
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("label", { css: [SwitchInputContainer, inputProps.disabled ? SwitchInputDisabled : void 0], children: [
|
|
5040
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("input", { type: "checkbox", css: SwitchInput, ...inputProps, ref }),
|
|
5041
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { css: SwitchInputLabel, children: label })
|
|
4990
5042
|
] }),
|
|
4991
|
-
additionalText ? /* @__PURE__ */ (0,
|
|
5043
|
+
additionalText ? /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { css: SwitchText, children: additionalText }) : null,
|
|
4992
5044
|
children
|
|
4993
5045
|
] });
|
|
4994
5046
|
}
|
|
@@ -4998,74 +5050,74 @@ var Switch = React14.forwardRef(
|
|
|
4998
5050
|
var React15 = __toESM(require("react"));
|
|
4999
5051
|
|
|
5000
5052
|
// src/components/Table/Table.styles.ts
|
|
5001
|
-
var
|
|
5002
|
-
var table =
|
|
5053
|
+
var import_react65 = require("@emotion/react");
|
|
5054
|
+
var table = import_react65.css`
|
|
5003
5055
|
border-bottom: 1px solid var(--gray-400);
|
|
5004
5056
|
border-collapse: collapse;
|
|
5005
5057
|
min-width: 100%;
|
|
5006
5058
|
table-layout: auto;
|
|
5007
5059
|
`;
|
|
5008
|
-
var tableHead =
|
|
5060
|
+
var tableHead = import_react65.css`
|
|
5009
5061
|
background: var(--gray-100);
|
|
5010
5062
|
color: var(--brand-secondary-1);
|
|
5011
5063
|
text-align: left;
|
|
5012
5064
|
`;
|
|
5013
|
-
var tableRow =
|
|
5065
|
+
var tableRow = import_react65.css`
|
|
5014
5066
|
border-bottom: 1px solid var(--gray-200);
|
|
5015
5067
|
`;
|
|
5016
|
-
var tableCellHead =
|
|
5068
|
+
var tableCellHead = import_react65.css`
|
|
5017
5069
|
font-size: var(--fs-sm);
|
|
5018
5070
|
padding: var(--spacing-base) var(--spacing-md);
|
|
5019
5071
|
text-transform: uppercase;
|
|
5020
5072
|
font-weight: var(--fw-bold);
|
|
5021
5073
|
`;
|
|
5022
|
-
var tableCellData =
|
|
5074
|
+
var tableCellData = import_react65.css`
|
|
5023
5075
|
padding: var(--spacing-base) var(--spacing-md);
|
|
5024
5076
|
`;
|
|
5025
5077
|
|
|
5026
5078
|
// src/components/Table/Table.tsx
|
|
5027
|
-
var
|
|
5079
|
+
var import_jsx_runtime64 = require("@emotion/react/jsx-runtime");
|
|
5028
5080
|
var Table = React15.forwardRef(({ children, ...otherProps }, ref) => {
|
|
5029
|
-
return /* @__PURE__ */ (0,
|
|
5081
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("table", { ref, css: table, ...otherProps, children });
|
|
5030
5082
|
});
|
|
5031
5083
|
var TableHead = React15.forwardRef(
|
|
5032
5084
|
({ children, ...otherProps }, ref) => {
|
|
5033
|
-
return /* @__PURE__ */ (0,
|
|
5085
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("thead", { ref, css: tableHead, ...otherProps, children });
|
|
5034
5086
|
}
|
|
5035
5087
|
);
|
|
5036
5088
|
var TableBody = React15.forwardRef(
|
|
5037
5089
|
({ children, ...otherProps }, ref) => {
|
|
5038
|
-
return /* @__PURE__ */ (0,
|
|
5090
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tbody", { ref, ...otherProps, children });
|
|
5039
5091
|
}
|
|
5040
5092
|
);
|
|
5041
5093
|
var TableFoot = React15.forwardRef(
|
|
5042
5094
|
({ children, ...otherProps }, ref) => {
|
|
5043
|
-
return /* @__PURE__ */ (0,
|
|
5095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tfoot", { ref, ...otherProps, children });
|
|
5044
5096
|
}
|
|
5045
5097
|
);
|
|
5046
5098
|
var TableRow = React15.forwardRef(
|
|
5047
5099
|
({ children, ...otherProps }, ref) => {
|
|
5048
|
-
return /* @__PURE__ */ (0,
|
|
5100
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("tr", { ref, css: tableRow, ...otherProps, children });
|
|
5049
5101
|
}
|
|
5050
5102
|
);
|
|
5051
5103
|
var TableCellHead = React15.forwardRef(
|
|
5052
5104
|
({ children, ...otherProps }, ref) => {
|
|
5053
|
-
return /* @__PURE__ */ (0,
|
|
5105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("th", { ref, css: tableCellHead, ...otherProps, children });
|
|
5054
5106
|
}
|
|
5055
5107
|
);
|
|
5056
5108
|
var TableCellData = React15.forwardRef(
|
|
5057
5109
|
({ children, ...otherProps }, ref) => {
|
|
5058
|
-
return /* @__PURE__ */ (0,
|
|
5110
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("td", { ref, css: tableCellData, ...otherProps, children });
|
|
5059
5111
|
}
|
|
5060
5112
|
);
|
|
5061
5113
|
|
|
5062
5114
|
// src/components/Tabs/Tabs.tsx
|
|
5063
|
-
var
|
|
5115
|
+
var import_react67 = require("react");
|
|
5064
5116
|
var import_Tab = require("reakit/Tab");
|
|
5065
5117
|
|
|
5066
5118
|
// src/components/Tabs/Tabs.styles.ts
|
|
5067
|
-
var
|
|
5068
|
-
var tabButtonStyles =
|
|
5119
|
+
var import_react66 = require("@emotion/react");
|
|
5120
|
+
var tabButtonStyles = import_react66.css`
|
|
5069
5121
|
align-items: center;
|
|
5070
5122
|
border: 0;
|
|
5071
5123
|
height: 2.5rem;
|
|
@@ -5082,16 +5134,16 @@ var tabButtonStyles = import_react65.css`
|
|
|
5082
5134
|
-webkit-text-stroke-width: thin;
|
|
5083
5135
|
}
|
|
5084
5136
|
`;
|
|
5085
|
-
var tabButtonGroupStyles =
|
|
5137
|
+
var tabButtonGroupStyles = import_react66.css`
|
|
5086
5138
|
display: flex;
|
|
5087
5139
|
gap: var(--spacing-base);
|
|
5088
5140
|
`;
|
|
5089
5141
|
|
|
5090
5142
|
// src/components/Tabs/Tabs.tsx
|
|
5091
|
-
var
|
|
5092
|
-
var CurrentTabContext = (0,
|
|
5143
|
+
var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
|
|
5144
|
+
var CurrentTabContext = (0, import_react67.createContext)(null);
|
|
5093
5145
|
var useCurrentTab = () => {
|
|
5094
|
-
const context = (0,
|
|
5146
|
+
const context = (0, import_react67.useContext)(CurrentTabContext);
|
|
5095
5147
|
if (!context) {
|
|
5096
5148
|
throw new Error("This component can only be used inside <Tabs>");
|
|
5097
5149
|
}
|
|
@@ -5099,31 +5151,31 @@ var useCurrentTab = () => {
|
|
|
5099
5151
|
};
|
|
5100
5152
|
var Tabs = ({ children, onSelectedIdChange, ...props }) => {
|
|
5101
5153
|
const tab = (0, import_Tab.useTabState)(props);
|
|
5102
|
-
(0,
|
|
5154
|
+
(0, import_react67.useEffect)(() => {
|
|
5103
5155
|
var _a;
|
|
5104
5156
|
onSelectedIdChange == null ? void 0 : onSelectedIdChange((_a = tab.selectedId) != null ? _a : void 0);
|
|
5105
5157
|
}, [tab.selectedId, onSelectedIdChange]);
|
|
5106
|
-
(0,
|
|
5158
|
+
(0, import_react67.useEffect)(() => {
|
|
5107
5159
|
tab.setSelectedId(props.selectedId);
|
|
5108
5160
|
}, [props.selectedId]);
|
|
5109
|
-
return /* @__PURE__ */ (0,
|
|
5161
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(CurrentTabContext.Provider, { value: tab, children });
|
|
5110
5162
|
};
|
|
5111
5163
|
var TabButtonGroup = ({ children, ...props }) => {
|
|
5112
5164
|
const currentTab = useCurrentTab();
|
|
5113
|
-
return /* @__PURE__ */ (0,
|
|
5165
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Tab.TabList, { ...props, ...currentTab, css: tabButtonGroupStyles, children });
|
|
5114
5166
|
};
|
|
5115
5167
|
var TabButton = ({ children, id, ...props }) => {
|
|
5116
5168
|
const currentTab = useCurrentTab();
|
|
5117
|
-
return /* @__PURE__ */ (0,
|
|
5169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Tab.Tab, { type: "button", id, ...currentTab, ...props, css: tabButtonStyles, children });
|
|
5118
5170
|
};
|
|
5119
5171
|
var TabContent = ({ children, ...props }) => {
|
|
5120
5172
|
const currentTab = useCurrentTab();
|
|
5121
|
-
return /* @__PURE__ */ (0,
|
|
5173
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_Tab.TabPanel, { ...props, ...currentTab, children });
|
|
5122
5174
|
};
|
|
5123
5175
|
|
|
5124
5176
|
// src/components/Validation/StatusBullet.styles.ts
|
|
5125
|
-
var
|
|
5126
|
-
var StatusBulletContainer =
|
|
5177
|
+
var import_react68 = require("@emotion/react");
|
|
5178
|
+
var StatusBulletContainer = import_react68.css`
|
|
5127
5179
|
align-items: center;
|
|
5128
5180
|
align-self: center;
|
|
5129
5181
|
color: var(--gray-500);
|
|
@@ -5143,18 +5195,18 @@ var StatusBulletContainer = import_react67.css`
|
|
|
5143
5195
|
height: var(--fs-xs);
|
|
5144
5196
|
}
|
|
5145
5197
|
`;
|
|
5146
|
-
var StatusDraft =
|
|
5198
|
+
var StatusDraft = import_react68.css`
|
|
5147
5199
|
&:before {
|
|
5148
5200
|
background: var(--white);
|
|
5149
5201
|
box-shadow: inset 0 0 0 0.125rem var(--brand-primary-1);
|
|
5150
5202
|
}
|
|
5151
5203
|
`;
|
|
5152
|
-
var StatusModified =
|
|
5204
|
+
var StatusModified = import_react68.css`
|
|
5153
5205
|
&:before {
|
|
5154
5206
|
background: var(--brand-primary-1);
|
|
5155
5207
|
}
|
|
5156
5208
|
`;
|
|
5157
|
-
var StatusError =
|
|
5209
|
+
var StatusError = import_react68.css`
|
|
5158
5210
|
color: var(--error);
|
|
5159
5211
|
&:before {
|
|
5160
5212
|
background: var(--error);
|
|
@@ -5170,19 +5222,19 @@ var StatusError = import_react67.css`
|
|
|
5170
5222
|
rotate: -45deg;
|
|
5171
5223
|
}
|
|
5172
5224
|
`;
|
|
5173
|
-
var StatusPublished =
|
|
5225
|
+
var StatusPublished = import_react68.css`
|
|
5174
5226
|
&:before {
|
|
5175
5227
|
background: var(--brand-secondary-3);
|
|
5176
5228
|
}
|
|
5177
5229
|
`;
|
|
5178
|
-
var StatusOrphan =
|
|
5230
|
+
var StatusOrphan = import_react68.css`
|
|
5179
5231
|
&:before {
|
|
5180
5232
|
background: var(--brand-secondary-5);
|
|
5181
5233
|
}
|
|
5182
5234
|
`;
|
|
5183
5235
|
|
|
5184
5236
|
// src/components/Validation/StatusBullet.tsx
|
|
5185
|
-
var
|
|
5237
|
+
var import_jsx_runtime66 = require("@emotion/react/jsx-runtime");
|
|
5186
5238
|
var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
5187
5239
|
const currentStateStyles = {
|
|
5188
5240
|
Error: StatusError,
|
|
@@ -5192,7 +5244,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
5192
5244
|
Published: StatusPublished,
|
|
5193
5245
|
Draft: StatusDraft
|
|
5194
5246
|
};
|
|
5195
|
-
return /* @__PURE__ */ (0,
|
|
5247
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5196
5248
|
"span",
|
|
5197
5249
|
{
|
|
5198
5250
|
css: [StatusBulletContainer, currentStateStyles[status]],
|
|
@@ -5262,6 +5314,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
5262
5314
|
ScrollableListItem,
|
|
5263
5315
|
ShortcutContext,
|
|
5264
5316
|
ShortcutRevealer,
|
|
5317
|
+
Skeleton,
|
|
5265
5318
|
StatusBullet,
|
|
5266
5319
|
Switch,
|
|
5267
5320
|
TabButton,
|
|
@@ -5284,6 +5337,7 @@ var StatusBullet = ({ status, hideText = false, message, ...props }) => {
|
|
|
5284
5337
|
breakpoints,
|
|
5285
5338
|
button,
|
|
5286
5339
|
buttonGhost,
|
|
5340
|
+
buttonGhostDestructive,
|
|
5287
5341
|
buttonPrimary,
|
|
5288
5342
|
buttonRippleEffect,
|
|
5289
5343
|
buttonSecondary,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.7.1-alpha.11+7cf93b7e6",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "7cf93b7e693ac5a98f87d00f0028c43be13733da"
|
|
52
52
|
}
|