@uniformdev/design-system 19.66.1 → 19.69.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 +50 -12
- package/dist/index.d.mts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +47 -9
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -1980,12 +1980,13 @@ var commonLineHeight = css10`
|
|
|
1980
1980
|
import { jsx as jsx9 } from "@emotion/react/jsx-runtime";
|
|
1981
1981
|
var Heading = ({
|
|
1982
1982
|
level = 2,
|
|
1983
|
+
as,
|
|
1983
1984
|
asSpan,
|
|
1984
1985
|
withMarginBottom = true,
|
|
1985
1986
|
children,
|
|
1986
1987
|
...hAttributes
|
|
1987
1988
|
}) => {
|
|
1988
|
-
const Heading2 = asSpan ? "span" : `h${level}`;
|
|
1989
|
+
const Heading2 = (as != null ? as : asSpan) ? "span" : `h${level}`;
|
|
1989
1990
|
const headingStyle = {
|
|
1990
1991
|
1: h1,
|
|
1991
1992
|
2: h2,
|
|
@@ -14504,7 +14505,7 @@ var imgLoading = css54`
|
|
|
14504
14505
|
opacity: 0;
|
|
14505
14506
|
`;
|
|
14506
14507
|
var imgLoaded = css54`
|
|
14507
|
-
animation: ${fadeIn} var(--duration-
|
|
14508
|
+
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
14508
14509
|
opacity: 1;
|
|
14509
14510
|
`;
|
|
14510
14511
|
var brokenImage = css54`
|
|
@@ -14557,7 +14558,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
14557
14558
|
|
|
14558
14559
|
// src/components/Image/Image.tsx
|
|
14559
14560
|
import { Fragment as Fragment11, jsx as jsx65, jsxs as jsxs41 } from "@emotion/react/jsx-runtime";
|
|
14560
|
-
var MIN_LOADING_MS =
|
|
14561
|
+
var MIN_LOADING_MS = 100;
|
|
14561
14562
|
function Image({
|
|
14562
14563
|
alt,
|
|
14563
14564
|
src,
|
|
@@ -18733,7 +18734,7 @@ var ParameterToggleInner = forwardRef17(
|
|
|
18733
18734
|
);
|
|
18734
18735
|
|
|
18735
18736
|
// src/components/ProgressBar/ProgressBar.styles.ts
|
|
18736
|
-
import { css as css85 } from "@emotion/react";
|
|
18737
|
+
import { css as css85, keyframes as keyframes4 } from "@emotion/react";
|
|
18737
18738
|
var container = css85`
|
|
18738
18739
|
background: var(--gray-50);
|
|
18739
18740
|
margin-block: var(--spacing-sm);
|
|
@@ -18745,12 +18746,40 @@ var container = css85`
|
|
|
18745
18746
|
`;
|
|
18746
18747
|
var themeMap = {
|
|
18747
18748
|
primary: css85`
|
|
18748
|
-
|
|
18749
|
+
--progress-color: var(--accent-light);
|
|
18749
18750
|
`,
|
|
18750
18751
|
secondary: css85`
|
|
18751
|
-
|
|
18752
|
+
--progress-color: var(--accent-alt-light);
|
|
18753
|
+
`,
|
|
18754
|
+
destructive: css85`
|
|
18755
|
+
--progress-color: var(--brand-secondary-5);
|
|
18752
18756
|
`
|
|
18753
18757
|
};
|
|
18758
|
+
var slidingBackgroundPosition = keyframes4`
|
|
18759
|
+
from {
|
|
18760
|
+
background-position: 0 0;
|
|
18761
|
+
}
|
|
18762
|
+
to {
|
|
18763
|
+
background-position: 64px 0;
|
|
18764
|
+
}
|
|
18765
|
+
`;
|
|
18766
|
+
var determinate = css85`
|
|
18767
|
+
background-color: var(--progress-color);
|
|
18768
|
+
`;
|
|
18769
|
+
var indeterminate = css85`
|
|
18770
|
+
background-image: linear-gradient(
|
|
18771
|
+
45deg,
|
|
18772
|
+
var(--progress-color) 25%,
|
|
18773
|
+
transparent 25%,
|
|
18774
|
+
transparent 50%,
|
|
18775
|
+
var(--progress-color) 50%,
|
|
18776
|
+
var(--progress-color) 75%,
|
|
18777
|
+
transparent 75%,
|
|
18778
|
+
transparent
|
|
18779
|
+
);
|
|
18780
|
+
background-size: 64px 64px;
|
|
18781
|
+
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
18782
|
+
`;
|
|
18754
18783
|
var bar = css85`
|
|
18755
18784
|
position: absolute;
|
|
18756
18785
|
inset: 0;
|
|
@@ -18760,13 +18789,18 @@ var bar = css85`
|
|
|
18760
18789
|
|
|
18761
18790
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
18762
18791
|
import { jsx as jsx108 } from "@emotion/react/jsx-runtime";
|
|
18763
|
-
function ProgressBar({
|
|
18792
|
+
function ProgressBar({
|
|
18793
|
+
current,
|
|
18794
|
+
max,
|
|
18795
|
+
theme = "primary",
|
|
18796
|
+
variant = "determinate",
|
|
18797
|
+
...props
|
|
18798
|
+
}) {
|
|
18764
18799
|
const valueNow = Math.min(current, max);
|
|
18765
18800
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
18766
18801
|
return /* @__PURE__ */ jsx108(
|
|
18767
18802
|
"div",
|
|
18768
18803
|
{
|
|
18769
|
-
className,
|
|
18770
18804
|
css: container,
|
|
18771
18805
|
role: "progressbar",
|
|
18772
18806
|
"aria-busy": valuePercentage !== 100,
|
|
@@ -18774,10 +18808,15 @@ function ProgressBar({ className, current, max, theme = "primary" }) {
|
|
|
18774
18808
|
"aria-valuemin": 0,
|
|
18775
18809
|
"aria-valuemax": max,
|
|
18776
18810
|
"aria-valuenow": valueNow,
|
|
18811
|
+
...props,
|
|
18777
18812
|
children: /* @__PURE__ */ jsx108(
|
|
18778
18813
|
"div",
|
|
18779
18814
|
{
|
|
18780
|
-
css: [
|
|
18815
|
+
css: [
|
|
18816
|
+
themeMap[theme],
|
|
18817
|
+
variant === "indeterminate" ? indeterminate : determinate,
|
|
18818
|
+
bar
|
|
18819
|
+
],
|
|
18781
18820
|
style: {
|
|
18782
18821
|
transform: `scaleX(${valuePercentage / 100})`
|
|
18783
18822
|
},
|
|
@@ -19100,8 +19139,8 @@ var SegmentedControl = ({
|
|
|
19100
19139
|
};
|
|
19101
19140
|
|
|
19102
19141
|
// src/components/Skeleton/Skeleton.styles.ts
|
|
19103
|
-
import { css as css90, keyframes as
|
|
19104
|
-
var lightFadingOut =
|
|
19142
|
+
import { css as css90, keyframes as keyframes5 } from "@emotion/react";
|
|
19143
|
+
var lightFadingOut = keyframes5`
|
|
19105
19144
|
from { opacity: 0.1; }
|
|
19106
19145
|
to { opacity: 0.025; }
|
|
19107
19146
|
`;
|
|
@@ -19202,7 +19241,6 @@ var SwitchInputLabel = css91`
|
|
|
19202
19241
|
align-items: center;
|
|
19203
19242
|
color: var(--brand-secondary-1);
|
|
19204
19243
|
display: inline-flex;
|
|
19205
|
-
font-weight: var(--fw-bold);
|
|
19206
19244
|
line-height: 1.25;
|
|
19207
19245
|
padding-inline: var(--spacing-2xl) 0;
|
|
19208
19246
|
|
package/dist/index.d.mts
CHANGED
|
@@ -22675,16 +22675,16 @@ type PopoverProps = PopoverProps$1 & {
|
|
|
22675
22675
|
};
|
|
22676
22676
|
declare const Popover: ({ iconColor, icon, iconSize, buttonText, ariaLabel, placement, testId, trigger, children, ...otherProps }: PopoverProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22677
22677
|
|
|
22678
|
-
interface ProgressBarProps {
|
|
22679
|
-
className?: string;
|
|
22678
|
+
interface ProgressBarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
22680
22679
|
current: number;
|
|
22681
22680
|
max: number;
|
|
22682
|
-
theme?: 'primary' | 'secondary';
|
|
22681
|
+
theme?: 'primary' | 'secondary' | 'destructive';
|
|
22682
|
+
variant?: 'determinate' | 'indeterminate';
|
|
22683
22683
|
}
|
|
22684
22684
|
/**
|
|
22685
22685
|
* @deprecated unstable - props and functionality is likely to change
|
|
22686
22686
|
*/
|
|
22687
|
-
declare function ProgressBar({
|
|
22687
|
+
declare function ProgressBar({ current, max, theme, variant, ...props }: ProgressBarProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22688
22688
|
|
|
22689
22689
|
type ProgressListItemStatus = 'completed' | 'inProgress' | 'queued';
|
|
22690
22690
|
type ProgressListProps = React__default.HTMLAttributes<HTMLOListElement> & {
|
|
@@ -23047,12 +23047,14 @@ declare function Tooltip({ children, title, placement, visible, withoutPortal, .
|
|
|
23047
23047
|
/** Available heading weights e.g. 1 - 6 */
|
|
23048
23048
|
type LevelProps = 1 | 2 | 3 | 4 | 5 | 6;
|
|
23049
23049
|
type HeadingProps = {
|
|
23050
|
-
/** sets the type of heading
|
|
23050
|
+
/** sets the type of heading between h1 to h6, defaults to <h2>
|
|
23051
23051
|
* @default 2
|
|
23052
23052
|
*/
|
|
23053
23053
|
level?: LevelProps;
|
|
23054
|
+
/** override the underlying html tag */
|
|
23055
|
+
as?: React$1.ElementType;
|
|
23054
23056
|
/** sets whether to display a span with the defined heading styles
|
|
23055
|
-
* @
|
|
23057
|
+
* @deprecated use as="span"
|
|
23056
23058
|
*/
|
|
23057
23059
|
asSpan?: boolean;
|
|
23058
23060
|
/** sets the title value */
|
|
@@ -23066,7 +23068,7 @@ type HeadingProps = {
|
|
|
23066
23068
|
* Component that sets the heading tag
|
|
23067
23069
|
* @example <Heading level={1}>Blog Post Title</Heading>
|
|
23068
23070
|
*/
|
|
23069
|
-
declare const Heading: ({ level, asSpan, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23071
|
+
declare const Heading: ({ level, as, asSpan, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23070
23072
|
|
|
23071
23073
|
type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
23072
23074
|
/** sets the title text of the integration */
|
package/dist/index.d.ts
CHANGED
|
@@ -22675,16 +22675,16 @@ type PopoverProps = PopoverProps$1 & {
|
|
|
22675
22675
|
};
|
|
22676
22676
|
declare const Popover: ({ iconColor, icon, iconSize, buttonText, ariaLabel, placement, testId, trigger, children, ...otherProps }: PopoverProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22677
22677
|
|
|
22678
|
-
interface ProgressBarProps {
|
|
22679
|
-
className?: string;
|
|
22678
|
+
interface ProgressBarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
22680
22679
|
current: number;
|
|
22681
22680
|
max: number;
|
|
22682
|
-
theme?: 'primary' | 'secondary';
|
|
22681
|
+
theme?: 'primary' | 'secondary' | 'destructive';
|
|
22682
|
+
variant?: 'determinate' | 'indeterminate';
|
|
22683
22683
|
}
|
|
22684
22684
|
/**
|
|
22685
22685
|
* @deprecated unstable - props and functionality is likely to change
|
|
22686
22686
|
*/
|
|
22687
|
-
declare function ProgressBar({
|
|
22687
|
+
declare function ProgressBar({ current, max, theme, variant, ...props }: ProgressBarProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22688
22688
|
|
|
22689
22689
|
type ProgressListItemStatus = 'completed' | 'inProgress' | 'queued';
|
|
22690
22690
|
type ProgressListProps = React__default.HTMLAttributes<HTMLOListElement> & {
|
|
@@ -23047,12 +23047,14 @@ declare function Tooltip({ children, title, placement, visible, withoutPortal, .
|
|
|
23047
23047
|
/** Available heading weights e.g. 1 - 6 */
|
|
23048
23048
|
type LevelProps = 1 | 2 | 3 | 4 | 5 | 6;
|
|
23049
23049
|
type HeadingProps = {
|
|
23050
|
-
/** sets the type of heading
|
|
23050
|
+
/** sets the type of heading between h1 to h6, defaults to <h2>
|
|
23051
23051
|
* @default 2
|
|
23052
23052
|
*/
|
|
23053
23053
|
level?: LevelProps;
|
|
23054
|
+
/** override the underlying html tag */
|
|
23055
|
+
as?: React$1.ElementType;
|
|
23054
23056
|
/** sets whether to display a span with the defined heading styles
|
|
23055
|
-
* @
|
|
23057
|
+
* @deprecated use as="span"
|
|
23056
23058
|
*/
|
|
23057
23059
|
asSpan?: boolean;
|
|
23058
23060
|
/** sets the title value */
|
|
@@ -23066,7 +23068,7 @@ type HeadingProps = {
|
|
|
23066
23068
|
* Component that sets the heading tag
|
|
23067
23069
|
* @example <Heading level={1}>Blog Post Title</Heading>
|
|
23068
23070
|
*/
|
|
23069
|
-
declare const Heading: ({ level, asSpan, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23071
|
+
declare const Heading: ({ level, as, asSpan, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23070
23072
|
|
|
23071
23073
|
type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
23072
23074
|
/** sets the title text of the integration */
|
package/dist/index.js
CHANGED
|
@@ -3576,12 +3576,13 @@ var commonLineHeight = import_react16.css`
|
|
|
3576
3576
|
var import_jsx_runtime8 = require("@emotion/react/jsx-runtime");
|
|
3577
3577
|
var Heading = ({
|
|
3578
3578
|
level = 2,
|
|
3579
|
+
as,
|
|
3579
3580
|
asSpan,
|
|
3580
3581
|
withMarginBottom = true,
|
|
3581
3582
|
children,
|
|
3582
3583
|
...hAttributes
|
|
3583
3584
|
}) => {
|
|
3584
|
-
const Heading2 = asSpan ? "span" : `h${level}`;
|
|
3585
|
+
const Heading2 = (as != null ? as : asSpan) ? "span" : `h${level}`;
|
|
3585
3586
|
const headingStyle = {
|
|
3586
3587
|
1: h1,
|
|
3587
3588
|
2: h2,
|
|
@@ -16237,7 +16238,7 @@ var imgLoading = import_react71.css`
|
|
|
16237
16238
|
opacity: 0;
|
|
16238
16239
|
`;
|
|
16239
16240
|
var imgLoaded = import_react71.css`
|
|
16240
|
-
animation: ${fadeIn} var(--duration-
|
|
16241
|
+
animation: ${fadeIn} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
16241
16242
|
opacity: 1;
|
|
16242
16243
|
`;
|
|
16243
16244
|
var brokenImage = import_react71.css`
|
|
@@ -16291,7 +16292,7 @@ var ImageBroken = ({ width, height, ...props }) => {
|
|
|
16291
16292
|
|
|
16292
16293
|
// src/components/Image/Image.tsx
|
|
16293
16294
|
var import_jsx_runtime65 = require("@emotion/react/jsx-runtime");
|
|
16294
|
-
var MIN_LOADING_MS =
|
|
16295
|
+
var MIN_LOADING_MS = 100;
|
|
16295
16296
|
function Image({
|
|
16296
16297
|
alt,
|
|
16297
16298
|
src,
|
|
@@ -20541,12 +20542,40 @@ var container = import_react123.css`
|
|
|
20541
20542
|
`;
|
|
20542
20543
|
var themeMap = {
|
|
20543
20544
|
primary: import_react123.css`
|
|
20544
|
-
|
|
20545
|
+
--progress-color: var(--accent-light);
|
|
20545
20546
|
`,
|
|
20546
20547
|
secondary: import_react123.css`
|
|
20547
|
-
|
|
20548
|
+
--progress-color: var(--accent-alt-light);
|
|
20549
|
+
`,
|
|
20550
|
+
destructive: import_react123.css`
|
|
20551
|
+
--progress-color: var(--brand-secondary-5);
|
|
20548
20552
|
`
|
|
20549
20553
|
};
|
|
20554
|
+
var slidingBackgroundPosition = import_react123.keyframes`
|
|
20555
|
+
from {
|
|
20556
|
+
background-position: 0 0;
|
|
20557
|
+
}
|
|
20558
|
+
to {
|
|
20559
|
+
background-position: 64px 0;
|
|
20560
|
+
}
|
|
20561
|
+
`;
|
|
20562
|
+
var determinate = import_react123.css`
|
|
20563
|
+
background-color: var(--progress-color);
|
|
20564
|
+
`;
|
|
20565
|
+
var indeterminate = import_react123.css`
|
|
20566
|
+
background-image: linear-gradient(
|
|
20567
|
+
45deg,
|
|
20568
|
+
var(--progress-color) 25%,
|
|
20569
|
+
transparent 25%,
|
|
20570
|
+
transparent 50%,
|
|
20571
|
+
var(--progress-color) 50%,
|
|
20572
|
+
var(--progress-color) 75%,
|
|
20573
|
+
transparent 75%,
|
|
20574
|
+
transparent
|
|
20575
|
+
);
|
|
20576
|
+
background-size: 64px 64px;
|
|
20577
|
+
animation: ${slidingBackgroundPosition} 1s linear infinite;
|
|
20578
|
+
`;
|
|
20550
20579
|
var bar = import_react123.css`
|
|
20551
20580
|
position: absolute;
|
|
20552
20581
|
inset: 0;
|
|
@@ -20556,13 +20585,18 @@ var bar = import_react123.css`
|
|
|
20556
20585
|
|
|
20557
20586
|
// src/components/ProgressBar/ProgressBar.tsx
|
|
20558
20587
|
var import_jsx_runtime108 = require("@emotion/react/jsx-runtime");
|
|
20559
|
-
function ProgressBar({
|
|
20588
|
+
function ProgressBar({
|
|
20589
|
+
current,
|
|
20590
|
+
max,
|
|
20591
|
+
theme = "primary",
|
|
20592
|
+
variant = "determinate",
|
|
20593
|
+
...props
|
|
20594
|
+
}) {
|
|
20560
20595
|
const valueNow = Math.min(current, max);
|
|
20561
20596
|
const valuePercentage = max > 0 ? Math.ceil(100 / max * valueNow) : 0;
|
|
20562
20597
|
return /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
20563
20598
|
"div",
|
|
20564
20599
|
{
|
|
20565
|
-
className,
|
|
20566
20600
|
css: container,
|
|
20567
20601
|
role: "progressbar",
|
|
20568
20602
|
"aria-busy": valuePercentage !== 100,
|
|
@@ -20570,10 +20604,15 @@ function ProgressBar({ className, current, max, theme = "primary" }) {
|
|
|
20570
20604
|
"aria-valuemin": 0,
|
|
20571
20605
|
"aria-valuemax": max,
|
|
20572
20606
|
"aria-valuenow": valueNow,
|
|
20607
|
+
...props,
|
|
20573
20608
|
children: /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
20574
20609
|
"div",
|
|
20575
20610
|
{
|
|
20576
|
-
css: [
|
|
20611
|
+
css: [
|
|
20612
|
+
themeMap[theme],
|
|
20613
|
+
variant === "indeterminate" ? indeterminate : determinate,
|
|
20614
|
+
bar
|
|
20615
|
+
],
|
|
20577
20616
|
style: {
|
|
20578
20617
|
transform: `scaleX(${valuePercentage / 100})`
|
|
20579
20618
|
},
|
|
@@ -21008,7 +21047,6 @@ var SwitchInputLabel = import_react131.css`
|
|
|
21008
21047
|
align-items: center;
|
|
21009
21048
|
color: var(--brand-secondary-1);
|
|
21010
21049
|
display: inline-flex;
|
|
21011
|
-
font-weight: var(--fw-bold);
|
|
21012
21050
|
line-height: 1.25;
|
|
21013
21051
|
padding-inline: var(--spacing-2xl) 0;
|
|
21014
21052
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.69.0",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@storybook/react": "6.5.16",
|
|
24
24
|
"@types/react": "18.2.21",
|
|
25
25
|
"@types/react-dom": "18.2.7",
|
|
26
|
-
"@uniformdev/canvas": "^19.
|
|
27
|
-
"@uniformdev/richtext": "^19.
|
|
26
|
+
"@uniformdev/canvas": "^19.69.0",
|
|
27
|
+
"@uniformdev/richtext": "^19.69.0",
|
|
28
28
|
"autoprefixer": "10.4.16",
|
|
29
29
|
"hygen": "6.2.11",
|
|
30
30
|
"postcss": "8.4.31",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "327658d8c6e5735499845ebb29d74906f2a43dad"
|
|
69
69
|
}
|