@primer/react 38.0.0-rc.3 → 38.0.0-rc.4
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/CHANGELOG.md +66 -0
- package/dist/ActionBar/ActionBar.d.ts.map +1 -1
- package/dist/ActionBar/ActionBar.js +6 -2
- package/dist/ActionList/Description.d.ts.map +1 -1
- package/dist/ActionList/Description.js +0 -1
- package/dist/ActionList/Visuals.js +2 -2
- package/dist/Autocomplete/AutocompleteMenu.js +2 -2
- package/dist/BaseStyles.d.ts +1 -2
- package/dist/BaseStyles.d.ts.map +1 -1
- package/dist/BaseStyles.js +1 -3
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +34 -48
- package/dist/Button/ButtonBase.js +6 -6
- package/dist/Button/LinkButton.d.ts +3 -3
- package/dist/Button/LinkButton.d.ts.map +1 -1
- package/dist/Button/LinkButton.js +0 -3
- package/dist/Button/index.d.ts +1 -0
- package/dist/Button/index.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +41 -36
- package/dist/Checkbox/Checkbox.d.ts +1 -2
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox/Checkbox.js +48 -79
- package/dist/CheckboxGroup/CheckboxGroup.d.ts +2 -3
- package/dist/CheckboxGroup/CheckboxGroup.d.ts.map +1 -1
- package/dist/CounterLabel/CounterLabel.d.ts +2 -3
- package/dist/CounterLabel/CounterLabel.d.ts.map +1 -1
- package/dist/CounterLabel/CounterLabel.js +1 -3
- package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css +2 -0
- package/dist/FilteredActionList/FilteredActionList-e1eb1b75.css.map +1 -0
- package/dist/FilteredActionList/FilteredActionList.d.ts +2 -3
- package/dist/FilteredActionList/FilteredActionList.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionList.js +10 -9
- package/dist/FilteredActionList/FilteredActionList.module.css.js +2 -2
- package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css +2 -0
- package/dist/FilteredActionList/FilteredActionListLoaders-a46a8ea4.css.map +1 -0
- package/dist/FilteredActionList/FilteredActionListLoaders.d.ts.map +1 -1
- package/dist/FilteredActionList/FilteredActionListLoaders.js +12 -29
- package/dist/FilteredActionList/FilteredActionListLoaders.module.css.js +2 -2
- package/dist/Flash/Flash.d.ts +1 -2
- package/dist/Flash/Flash.d.ts.map +1 -1
- package/dist/Flash/Flash.js +38 -45
- package/dist/Header/Header.d.ts +3 -4
- package/dist/Header/Header.d.ts.map +1 -1
- package/dist/Header/Header.js +10 -13
- package/dist/InlineMessage/InlineMessage.d.ts +1 -2
- package/dist/InlineMessage/InlineMessage.d.ts.map +1 -1
- package/dist/InlineMessage/InlineMessage.js +49 -65
- package/dist/PageHeader/PageHeader.d.ts +5 -5
- package/dist/PageHeader/PageHeader.d.ts.map +1 -1
- package/dist/PageHeader/PageHeader.js +330 -507
- package/dist/Pagehead/Pagehead.d.ts +2 -3
- package/dist/Pagehead/Pagehead.d.ts.map +1 -1
- package/dist/Pagehead/Pagehead.js +2 -2
- package/dist/ProgressBar/{ProgressBar-181186d4.css → ProgressBar-d27aca1d.css} +2 -2
- package/dist/ProgressBar/ProgressBar-d27aca1d.css.map +1 -0
- package/dist/ProgressBar/ProgressBar.d.ts +4 -9
- package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/ProgressBar/ProgressBar.js +9 -14
- package/dist/ProgressBar/ProgressBar.module.css.js +1 -1
- package/dist/ProgressBar/index.d.ts +2 -2
- package/dist/Radio/Radio.d.ts +1 -2
- package/dist/Radio/Radio.d.ts.map +1 -1
- package/dist/Radio/Radio.js +1 -3
- package/dist/RadioGroup/RadioGroup.d.ts +3 -4
- package/dist/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/RadioGroup/index.d.ts +1 -0
- package/dist/RadioGroup/index.d.ts.map +1 -1
- package/dist/RelativeTime/RelativeTime.d.ts +1 -3
- package/dist/RelativeTime/RelativeTime.d.ts.map +1 -1
- package/dist/Spinner/Spinner.d.ts +4 -5
- package/dist/Spinner/Spinner.d.ts.map +1 -1
- package/dist/Spinner/Spinner.js +49 -81
- package/dist/Timeline/Timeline.d.ts +11 -18
- package/dist/Timeline/Timeline.d.ts.map +1 -1
- package/dist/Timeline/Timeline.js +5 -6
- package/dist/ToggleSwitch/ToggleSwitch.d.ts +4 -0
- package/dist/ToggleSwitch/ToggleSwitch.d.ts.map +1 -1
- package/dist/ToggleSwitch/ToggleSwitch.js +195 -182
- package/dist/TreeView/TreeView-bdf34914.css +2 -0
- package/dist/TreeView/TreeView-bdf34914.css.map +1 -0
- package/dist/TreeView/TreeView.d.ts +15 -0
- package/dist/TreeView/TreeView.d.ts.map +1 -1
- package/dist/TreeView/TreeView.js +241 -10
- package/dist/TreeView/TreeView.module.css.js +2 -2
- package/dist/Truncate/Truncate.d.ts +1 -2
- package/dist/Truncate/Truncate.d.ts.map +1 -1
- package/dist/Truncate/Truncate.js +2 -6
- package/dist/UnderlineNav/UnderlineNav-78db938f.css +2 -0
- package/dist/UnderlineNav/UnderlineNav-78db938f.css.map +1 -0
- package/dist/UnderlineNav/UnderlineNav.d.ts +0 -3
- package/dist/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNav.js +8 -25
- package/dist/UnderlineNav/UnderlineNav.module.css.js +5 -0
- package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css +2 -0
- package/dist/UnderlineNav/UnderlineNavItem-b65e8fd3.css.map +1 -0
- package/dist/UnderlineNav/UnderlineNavItem.d.ts +1 -2
- package/dist/UnderlineNav/UnderlineNavItem.d.ts.map +1 -1
- package/dist/UnderlineNav/UnderlineNavItem.js +49 -69
- package/dist/UnderlineNav/UnderlineNavItem.module.css.js +5 -0
- package/dist/UnderlineNav/styles.d.ts +1 -1
- package/dist/UnderlineNav/styles.js +1 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css +2 -0
- package/dist/deprecated/FilteredSearch/FilteredSearch-d30f5bbc.css.map +1 -0
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts +3 -4
- package/dist/deprecated/FilteredSearch/FilteredSearch.d.ts.map +1 -1
- package/dist/deprecated/FilteredSearch/FilteredSearch.js +48 -7
- package/dist/deprecated/FilteredSearch/FilteredSearch.module.css.js +5 -0
- package/dist/deprecated/index.d.ts +0 -2
- package/dist/deprecated/index.d.ts.map +1 -1
- package/dist/deprecated/index.js +0 -1
- package/dist/experimental/SelectPanel2/SelectPanel.js +2 -2
- package/dist/experimental/index.d.ts +2 -3
- package/dist/experimental/index.d.ts.map +1 -1
- package/dist/experimental/index.js +1 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/internal/components/TextInputInnerVisualSlot.js +2 -2
- package/dist/utils/create-component.d.ts +1 -3
- package/dist/utils/create-component.d.ts.map +1 -1
- package/dist/utils/create-component.js +3 -8
- package/generated/components.json +35 -242
- package/package.json +1 -1
- package/dist/DropdownStyles.d.ts +0 -4
- package/dist/DropdownStyles.d.ts.map +0 -1
- package/dist/FilteredActionList/FilteredActionList-96b126d7.css +0 -2
- package/dist/FilteredActionList/FilteredActionList-96b126d7.css.map +0 -1
- package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css +0 -2
- package/dist/FilteredActionList/FilteredActionListLoaders-6f14c45b.css.map +0 -1
- package/dist/PointerBox/PointerBox.d.ts +0 -28
- package/dist/PointerBox/PointerBox.d.ts.map +0 -1
- package/dist/PointerBox/PointerBox.js +0 -65
- package/dist/PointerBox/index.d.ts +0 -3
- package/dist/PointerBox/index.d.ts.map +0 -1
- package/dist/ProgressBar/ProgressBar-181186d4.css.map +0 -1
- package/dist/TreeView/TreeView-cd08cabc.css +0 -2
- package/dist/TreeView/TreeView-cd08cabc.css.map +0 -1
- package/dist/internal/components/Caret-e686f04c.css +0 -2
- package/dist/internal/components/Caret-e686f04c.css.map +0 -1
- package/dist/internal/components/Caret.js +0 -87
- package/dist/internal/components/Caret.module.css.js +0 -5
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
|
|
3
|
-
declare const Pagehead: ({ className, ...rest }: PageheadProps) => React.JSX.Element;
|
|
2
|
+
declare const Pagehead: ({ as: BaseComponent, className, ...rest }: PageheadProps) => React.JSX.Element;
|
|
4
3
|
/**
|
|
5
4
|
* @deprecated
|
|
6
5
|
*/
|
|
7
|
-
export type PageheadProps =
|
|
6
|
+
export type PageheadProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
8
7
|
as?: React.ElementType;
|
|
9
8
|
};
|
|
10
9
|
export default Pagehead;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagehead.d.ts","sourceRoot":"","sources":["../../src/Pagehead/Pagehead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Pagehead.d.ts","sourceRoot":"","sources":["../../src/Pagehead/Pagehead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,QAAA,MAAM,QAAQ,GAAI,2CAAiD,aAAa,sBAE/E,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAClE,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAA;CACvB,CAAA;AACD,eAAe,QAAQ,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { clsx } from 'clsx';
|
|
2
2
|
import classes from './Pagehead.module.css.js';
|
|
3
|
-
import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
|
|
4
3
|
import { jsx } from 'react/jsx-runtime';
|
|
5
4
|
|
|
6
5
|
const Pagehead = ({
|
|
6
|
+
as: BaseComponent = 'div',
|
|
7
7
|
className,
|
|
8
8
|
...rest
|
|
9
9
|
}) => {
|
|
10
|
-
return /*#__PURE__*/jsx(
|
|
10
|
+
return /*#__PURE__*/jsx(BaseComponent, {
|
|
11
11
|
className: clsx(classes.Pagehead, className),
|
|
12
12
|
...rest
|
|
13
13
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@keyframes prc-ProgressBar-shimmer-i1RxN{0%{mask-position:200%}to{mask-position:0}}.prc-ProgressBar-ProgressBarItem-stL6O{--progress-width: ;--progress-bg: ;background-color:var(--progress-bg);width:var(--progress-width)}@media (prefers-reduced-motion:no-preference){.prc-ProgressBar-ProgressBarItem-stL6O[data-animated=true]{animation-duration:1s;animation-iteration-count:infinite;animation-name:prc-ProgressBar-shimmer-i1RxN;mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,.65) 80%);mask-size:200%}}.prc-ProgressBar-ProgressBarContainer-E-z8S{background-color:var(--progressBar-track-bgColor);border-radius:var(--borderRadius-small,.1875rem);display:flex;gap:2px;outline:solid 1px var(--progressBar-track-borderColor);outline-offset:-1px;overflow:hidden}.prc-ProgressBar-ProgressBarContainer-E-z8S:where([data-progress-display=inline]){display:inline-flex}.prc-ProgressBar-ProgressBarContainer-E-z8S:where([data-progress-bar-size=default]){height:8px}.prc-ProgressBar-ProgressBarContainer-E-z8S:where([data-progress-bar-size=small]){height:5px}.prc-ProgressBar-ProgressBarContainer-E-z8S:where([data-progress-bar-size=large]){height:10px}
|
|
2
|
-
/*# sourceMappingURL=ProgressBar-
|
|
1
|
+
@keyframes prc-ProgressBar-shimmer-i1RxN{0%{mask-position:200%}to{mask-position:0}}.prc-ProgressBar-ProgressBarItem-stL6O{--progress-width: ;--progress-bg: ;background-color:var(--progress-bg);width:var(--progress-width)}@media (prefers-reduced-motion:no-preference){.prc-ProgressBar-ProgressBarItem-stL6O[data-animated=true]{animation-duration:1s;animation-iteration-count:infinite;animation-name:prc-ProgressBar-shimmer-i1RxN;mask-image:linear-gradient(75deg,#000 30%,rgba(0,0,0,.65) 80%);mask-size:200%}}.prc-ProgressBar-ProgressBarContainer-E-z8S{background-color:var(--progressBar-track-bgColor);border-radius:var(--borderRadius-small,.1875rem);display:flex;gap:2px;outline:solid 1px var(--progressBar-track-borderColor);outline-offset:-1px;overflow:hidden}.prc-ProgressBar-ProgressBarContainer-E-z8S:where([data-progress-display=inline]){display:inline-flex}.prc-ProgressBar-ProgressBarContainer-E-z8S:where([data-progress-bar-size=default]){height:8px}.prc-ProgressBar-ProgressBarContainer-E-z8S:where([data-progress-bar-size=small]){height:5px}.prc-ProgressBar-ProgressBarContainer-E-z8S:where([data-progress-bar-size=large]){height:10px}@media (forced-colors:active){:root{--progress-bg:LinkText;--progressBar-track-bgColor:CanvasText}.prc-ProgressBar-ProgressBarContainer-E-z8S,.prc-ProgressBar-ProgressBarItem-stL6O{forced-color-adjust:none}}
|
|
2
|
+
/*# sourceMappingURL=ProgressBar-d27aca1d.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/ProgressBar/ProgressBar.module.css"],"names":[],"mappings":"AAAA,yCACE,GACE,kBACF,CAEA,GACE,eACF,CACF,CAEA,uCAEE,kBAAkB,CAClB,eAAe,CAIf,mCAAoC,CAFpC,2BAaF,CATE,8CACE,2DAIE,qBAAsB,CACtB,kCAAmC,CAFnC,4CAAuB,CAFvB,8DAAqE,CACrE,cAIF,CACF,CAGF,4CAIE,iDAAkD,CAClD,gDAAwC,CAJxC,YAAa,CAKb,OAAQ,CACR,sDAAuD,CACvD,mBAAoB,CANpB,eAuBF,CAfE,kFACE,mBACF,CAEA,oFACE,UACF,CAEA,kFACE,UACF,CAEA,kFACE,WACF,CAGF,8BACE,MACE,sBAAuB,CACvB,sCACF,CAEA,mFAEE,wBACF,CACF","file":"ProgressBar-d27aca1d.css","sourcesContent":["@keyframes shimmer {\n from {\n mask-position: 200%;\n }\n\n to {\n mask-position: 0%;\n }\n}\n\n.ProgressBarItem {\n /* these are passed from the component */\n --progress-width: ;\n --progress-bg: ;\n\n width: var(--progress-width);\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--progress-bg);\n\n @media (prefers-reduced-motion: no-preference) {\n &[data-animated='true'] {\n mask-image: linear-gradient(75deg, #000 30%, rgba(0, 0, 0, 0.65) 80%);\n mask-size: 200%;\n animation-name: shimmer;\n animation-duration: 1s;\n animation-iteration-count: infinite;\n }\n }\n}\n\n.ProgressBarContainer {\n display: flex;\n overflow: hidden;\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--progressBar-track-bgColor);\n border-radius: var(--borderRadius-small);\n gap: 2px;\n outline: solid 1px var(--progressBar-track-borderColor);\n outline-offset: -1px;\n\n &:where([data-progress-display='inline']) {\n display: inline-flex;\n }\n\n &:where([data-progress-bar-size='default']) {\n height: 8px;\n }\n\n &:where([data-progress-bar-size='small']) {\n height: 5px;\n }\n\n &:where([data-progress-bar-size='large']) {\n height: 10px;\n }\n}\n\n@media (forced-colors: active) {\n :root {\n --progress-bg: LinkText;\n --progressBar-track-bgColor: CanvasText;\n }\n\n .ProgressBarContainer,\n .ProgressBarItem {\n forced-color-adjust: none;\n }\n}\n"]}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { SxProp } from '../sx';
|
|
3
2
|
type ProgressProp = {
|
|
4
3
|
className?: string;
|
|
5
4
|
progress?: string | number;
|
|
@@ -9,15 +8,15 @@ type StyledProgressContainerProps = {
|
|
|
9
8
|
inline?: boolean;
|
|
10
9
|
barSize?: 'small' | 'default' | 'large';
|
|
11
10
|
animated?: boolean;
|
|
12
|
-
}
|
|
11
|
+
};
|
|
13
12
|
export type ProgressBarItemProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
14
13
|
'aria-label'?: string;
|
|
15
14
|
className?: string;
|
|
16
|
-
} & ProgressProp
|
|
15
|
+
} & ProgressProp;
|
|
17
16
|
export declare const Item: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
18
17
|
'aria-label'?: string;
|
|
19
18
|
className?: string;
|
|
20
|
-
} & ProgressProp &
|
|
19
|
+
} & ProgressProp & React.RefAttributes<HTMLSpanElement>>;
|
|
21
20
|
export type ProgressBarProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
22
21
|
bg?: string;
|
|
23
22
|
className?: string;
|
|
@@ -25,10 +24,6 @@ export type ProgressBarProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
|
25
24
|
export declare const ProgressBar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & {
|
|
26
25
|
bg?: string;
|
|
27
26
|
className?: string;
|
|
28
|
-
} &
|
|
29
|
-
inline?: boolean;
|
|
30
|
-
barSize?: "small" | "default" | "large";
|
|
31
|
-
animated?: boolean;
|
|
32
|
-
} & SxProp & ProgressProp & React.RefAttributes<HTMLSpanElement>>;
|
|
27
|
+
} & StyledProgressContainerProps & ProgressProp & React.RefAttributes<HTMLSpanElement>>;
|
|
33
28
|
export {};
|
|
34
29
|
//# sourceMappingURL=ProgressBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../src/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["../../src/ProgressBar/ProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,KAAK,YAAY,GAAG;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,KAAK,4BAA4B,GAAG;IAClC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG;IACzE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,YAAY,CAAA;AAEhB,eAAO,MAAM,IAAI;mBAJA,MAAM;gBACT,MAAM;wDAgDnB,CAAA;AAID,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,GAAG;IACrE,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,4BAA4B,GAC9B,YAAY,CAAA;AAEd,eAAO,MAAM,WAAW;SALjB,MAAM;gBACC,MAAM;uFAoDnB,CAAA"}
|
|
@@ -2,11 +2,10 @@ import { c } from 'react-compiler-runtime';
|
|
|
2
2
|
import React, { forwardRef } from 'react';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import classes from './ProgressBar.module.css.js';
|
|
5
|
-
import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
const Item = /*#__PURE__*/forwardRef((t0, forwardRef) => {
|
|
9
|
-
const $ = c(
|
|
8
|
+
const $ = c(32);
|
|
10
9
|
let ariaLabel;
|
|
11
10
|
let ariaValueNow;
|
|
12
11
|
let ariaValueText;
|
|
@@ -112,28 +111,25 @@ const Item = /*#__PURE__*/forwardRef((t0, forwardRef) => {
|
|
|
112
111
|
t4 = $[24];
|
|
113
112
|
}
|
|
114
113
|
let t5;
|
|
115
|
-
if ($[25] !== ariaAttributes || $[26] !== ariaLabel || $[27] !== forwardRef || $[28] !==
|
|
116
|
-
t5 = /*#__PURE__*/jsx(
|
|
117
|
-
as: "span",
|
|
114
|
+
if ($[25] !== ariaAttributes || $[26] !== ariaLabel || $[27] !== forwardRef || $[28] !== rest || $[29] !== t3 || $[30] !== t4) {
|
|
115
|
+
t5 = /*#__PURE__*/jsx("span", {
|
|
118
116
|
className: t3,
|
|
119
117
|
...rest,
|
|
120
118
|
role: "progressbar",
|
|
121
119
|
"aria-label": ariaLabel,
|
|
122
120
|
ref: forwardRef,
|
|
123
|
-
progress: progress,
|
|
124
121
|
style: t4,
|
|
125
122
|
...ariaAttributes
|
|
126
123
|
});
|
|
127
124
|
$[25] = ariaAttributes;
|
|
128
125
|
$[26] = ariaLabel;
|
|
129
126
|
$[27] = forwardRef;
|
|
130
|
-
$[28] =
|
|
131
|
-
$[29] =
|
|
132
|
-
$[30] =
|
|
133
|
-
$[31] =
|
|
134
|
-
$[32] = t5;
|
|
127
|
+
$[28] = rest;
|
|
128
|
+
$[29] = t3;
|
|
129
|
+
$[30] = t4;
|
|
130
|
+
$[31] = t5;
|
|
135
131
|
} else {
|
|
136
|
-
t5 = $[
|
|
132
|
+
t5 = $[31];
|
|
137
133
|
}
|
|
138
134
|
return t5;
|
|
139
135
|
});
|
|
@@ -237,8 +233,7 @@ const ProgressBar = /*#__PURE__*/forwardRef((t0, forwardRef) => {
|
|
|
237
233
|
}
|
|
238
234
|
let t7;
|
|
239
235
|
if ($[25] !== barSize || $[26] !== forwardRef || $[27] !== rest || $[28] !== t4 || $[29] !== t5 || $[30] !== t6) {
|
|
240
|
-
t7 = /*#__PURE__*/jsx(
|
|
241
|
-
as: "span",
|
|
236
|
+
t7 = /*#__PURE__*/jsx("span", {
|
|
242
237
|
ref: forwardRef,
|
|
243
238
|
className: t4,
|
|
244
239
|
"data-progress-display": t5,
|
|
@@ -9,7 +9,7 @@ export declare const ProgressBar: import("react").ForwardRefExoticComponent<impo
|
|
|
9
9
|
inline?: boolean;
|
|
10
10
|
barSize?: "small" | "default" | "large";
|
|
11
11
|
animated?: boolean;
|
|
12
|
-
} &
|
|
12
|
+
} & {
|
|
13
13
|
className?: string;
|
|
14
14
|
progress?: string | number;
|
|
15
15
|
bg?: string;
|
|
@@ -21,6 +21,6 @@ export declare const ProgressBar: import("react").ForwardRefExoticComponent<impo
|
|
|
21
21
|
className?: string;
|
|
22
22
|
progress?: string | number;
|
|
23
23
|
bg?: string;
|
|
24
|
-
} & import("
|
|
24
|
+
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/Radio/Radio.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { SxProp } from '../sx';
|
|
4
3
|
export type RadioProps = {
|
|
5
4
|
/**
|
|
6
5
|
* A unique value that is never shown to the user.
|
|
@@ -27,7 +26,7 @@ export type RadioProps = {
|
|
|
27
26
|
* Indicates whether the radio button must be checked before the form can be submitted
|
|
28
27
|
*/
|
|
29
28
|
required?: boolean;
|
|
30
|
-
} & InputHTMLAttributes<HTMLInputElement
|
|
29
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
31
30
|
/**
|
|
32
31
|
* An accessible, native radio component for selecting one option from a list.
|
|
33
32
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,mBAAmB,EAAe,MAAM,OAAO,CAAA;AAChF,OAAO,KAAmB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../src/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,mBAAmB,EAAe,MAAM,OAAO,CAAA;AAChF,OAAO,KAAmB,MAAM,OAAO,CAAA;AAMvC,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,CAAA;AAEzC;;GAEG;AACH,QAAA,MAAM,KAAK,kGA6CV,CAAA;AAID,eAAe,KAAK,CAAA"}
|
package/dist/Radio/Radio.js
CHANGED
|
@@ -4,7 +4,6 @@ import { RadioGroupContext } from '../RadioGroup/RadioGroup.js';
|
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import sharedClasses from '../Checkbox/shared.module.css.js';
|
|
6
6
|
import classes from './Radio.module.css.js';
|
|
7
|
-
import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
|
|
8
7
|
import { jsx } from 'react/jsx-runtime';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -84,8 +83,7 @@ const Radio = /*#__PURE__*/React.forwardRef((t0, ref) => {
|
|
|
84
83
|
}
|
|
85
84
|
let t5;
|
|
86
85
|
if ($[15] !== checked || $[16] !== disabled || $[17] !== handleOnChange || $[18] !== name || $[19] !== ref || $[20] !== required || $[21] !== rest || $[22] !== t3 || $[23] !== t4 || $[24] !== value) {
|
|
87
|
-
t5 = /*#__PURE__*/jsx(
|
|
88
|
-
as: "input",
|
|
86
|
+
t5 = /*#__PURE__*/jsx("input", {
|
|
89
87
|
type: "radio",
|
|
90
88
|
value: value,
|
|
91
89
|
name: name,
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { ChangeEvent, ChangeEventHandler, FC } from 'react';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
import type { CheckboxOrRadioGroupProps } from '../internal/components/CheckboxOrRadioGroup';
|
|
4
|
-
|
|
5
|
-
type RadioGroupProps = {
|
|
4
|
+
export type RadioGroupProps = {
|
|
6
5
|
/**
|
|
7
6
|
* An onChange handler that gets called when the selection changes
|
|
8
7
|
*/
|
|
@@ -11,14 +10,14 @@ type RadioGroupProps = {
|
|
|
11
10
|
* The name used to identify this group of radios
|
|
12
11
|
*/
|
|
13
12
|
name: string;
|
|
14
|
-
} & CheckboxOrRadioGroupProps
|
|
13
|
+
} & CheckboxOrRadioGroupProps;
|
|
15
14
|
export declare const RadioGroupContext: React.Context<{
|
|
16
15
|
disabled?: boolean;
|
|
17
16
|
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
18
17
|
name: string;
|
|
19
18
|
} | null>;
|
|
20
19
|
declare const _default: FC<React.PropsWithChildren<RadioGroupProps>> & {
|
|
21
|
-
Caption: FC<SxProp & {
|
|
20
|
+
Caption: FC<import("..").SxProp & {
|
|
22
21
|
children?: React.ReactNode | undefined;
|
|
23
22
|
} & {
|
|
24
23
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,kBAAkB,EAAE,EAAE,EAAC,MAAM,OAAO,CAAA;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,6CAA6C,CAAA;
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../src/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,kBAAkB,EAAE,EAAE,EAAC,MAAM,OAAO,CAAA;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,6CAA6C,CAAA;AAO1F,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAA;IAC/E;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;CACb,GAAG,yBAAyB,CAAA;AAE7B,eAAO,MAAM,iBAAiB;eACjB,OAAO;eACP,kBAAkB,CAAC,gBAAgB,CAAC;UACzC,MAAM;SACC,CAAA;;;;;;;;;;AAkCf,wBAIE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/RadioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,iBAAiB,EAAC,MAAM,cAAc,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/RadioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,iBAAiB,EAAC,MAAM,cAAc,CAAA;AAEvD,YAAY,EAAC,eAAe,EAAC,MAAM,cAAc,CAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { RelativeTimeElement } from '@github/relative-time-element';
|
|
2
2
|
import type { ComponentProps } from '../utils/types';
|
|
3
|
-
declare const RelativeTimeComponent:
|
|
4
|
-
displayName: string;
|
|
5
|
-
};
|
|
3
|
+
declare const RelativeTimeComponent: import("@lit-labs/react").ReactWebComponent<RelativeTimeElement, {}>;
|
|
6
4
|
declare function RelativeTime({ date, datetime, children, noTitle, ...props }: RelativeTimeProps): import("react").JSX.Element;
|
|
7
5
|
export type RelativeTimeProps = ComponentProps<typeof RelativeTimeComponent>;
|
|
8
6
|
export default RelativeTime;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/RelativeTime/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAGlD,QAAA,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"RelativeTime.d.ts","sourceRoot":"","sources":["../../src/RelativeTime/RelativeTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAGlD,QAAA,MAAM,qBAAqB,sEAAwD,CAAA;AAGnF,iBAAS,YAAY,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,EAAC,EAAE,iBAAiB,+BAOrF;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAC5E,eAAe,YAAY,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
-
import { type SxProp } from '../sx';
|
|
3
2
|
import type { HTMLDataAttributes } from '../internal/internal-types';
|
|
4
3
|
declare const sizeMap: {
|
|
5
4
|
small: string;
|
|
@@ -15,10 +14,10 @@ export type SpinnerProps = {
|
|
|
15
14
|
'aria-label'?: string;
|
|
16
15
|
className?: string;
|
|
17
16
|
style?: React.CSSProperties;
|
|
18
|
-
} & HTMLDataAttributes
|
|
19
|
-
declare function
|
|
20
|
-
declare namespace
|
|
17
|
+
} & HTMLDataAttributes;
|
|
18
|
+
declare function Spinner({ size: sizeKey, srText, 'aria-label': ariaLabel, className, style, ...props }: SpinnerProps): React.JSX.Element;
|
|
19
|
+
declare namespace Spinner {
|
|
21
20
|
var displayName: string;
|
|
22
21
|
}
|
|
23
|
-
export default
|
|
22
|
+
export default Spinner;
|
|
24
23
|
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../../src/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,4BAA4B,CAAA;AAKlE,QAAA,MAAM,OAAO;;;;CAIZ,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,OAAO,OAAO,CAAA;IAC3B,0KAA0K;IAC1K,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B,GAAG,kBAAkB,CAAA;AAEtB,iBAAS,OAAO,CAAC,EACf,IAAI,EAAE,OAAkB,EACxB,MAAkB,EAClB,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,YAAY,qBAwCd;kBA/CQ,OAAO;;;AAmDhB,eAAe,OAAO,CAAA"}
|
package/dist/Spinner/Spinner.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { c } from 'react-compiler-runtime';
|
|
2
2
|
import classes from './Spinner.module.css.js';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
|
-
import {
|
|
5
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
6
5
|
import { useId } from '../hooks/useId.js';
|
|
7
6
|
import { VisuallyHidden } from '../VisuallyHidden/VisuallyHidden.js';
|
|
8
7
|
|
|
@@ -13,7 +12,7 @@ const sizeMap = {
|
|
|
13
12
|
};
|
|
14
13
|
function Spinner(t0) {
|
|
15
14
|
var _ariaLabel;
|
|
16
|
-
const $ = c(
|
|
15
|
+
const $ = c(25);
|
|
17
16
|
let ariaLabel;
|
|
18
17
|
let className;
|
|
19
18
|
let props;
|
|
@@ -52,9 +51,17 @@ function Spinner(t0) {
|
|
|
52
51
|
const t3 = (_ariaLabel = ariaLabel) !== null && _ariaLabel !== void 0 ? _ariaLabel : undefined;
|
|
53
52
|
const t4 = hasHiddenLabel ? labelId : undefined;
|
|
54
53
|
let t5;
|
|
54
|
+
if ($[7] !== className) {
|
|
55
|
+
t5 = clsx(className, classes.SpinnerAnimation);
|
|
56
|
+
$[7] = className;
|
|
57
|
+
$[8] = t5;
|
|
58
|
+
} else {
|
|
59
|
+
t5 = $[8];
|
|
60
|
+
}
|
|
55
61
|
let t6;
|
|
56
|
-
|
|
57
|
-
|
|
62
|
+
let t7;
|
|
63
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
64
|
+
t6 = /*#__PURE__*/jsx("circle", {
|
|
58
65
|
cx: "8",
|
|
59
66
|
cy: "8",
|
|
60
67
|
r: "7",
|
|
@@ -63,22 +70,22 @@ function Spinner(t0) {
|
|
|
63
70
|
strokeWidth: "2",
|
|
64
71
|
vectorEffect: "non-scaling-stroke"
|
|
65
72
|
});
|
|
66
|
-
|
|
73
|
+
t7 = /*#__PURE__*/jsx("path", {
|
|
67
74
|
d: "M15 8a7.002 7.002 0 00-7-7",
|
|
68
75
|
stroke: "currentColor",
|
|
69
76
|
strokeWidth: "2",
|
|
70
77
|
strokeLinecap: "round",
|
|
71
78
|
vectorEffect: "non-scaling-stroke"
|
|
72
79
|
});
|
|
73
|
-
$[
|
|
74
|
-
$[
|
|
80
|
+
$[9] = t6;
|
|
81
|
+
$[10] = t7;
|
|
75
82
|
} else {
|
|
76
|
-
|
|
77
|
-
|
|
83
|
+
t6 = $[9];
|
|
84
|
+
t7 = $[10];
|
|
78
85
|
}
|
|
79
|
-
let
|
|
80
|
-
if ($[
|
|
81
|
-
|
|
86
|
+
let t8;
|
|
87
|
+
if ($[11] !== props || $[12] !== size || $[13] !== style || $[14] !== t3 || $[15] !== t4 || $[16] !== t5) {
|
|
88
|
+
t8 = /*#__PURE__*/jsxs("svg", {
|
|
82
89
|
height: size,
|
|
83
90
|
width: size,
|
|
84
91
|
viewBox: "0 0 16 16",
|
|
@@ -86,87 +93,48 @@ function Spinner(t0) {
|
|
|
86
93
|
"aria-hidden": true,
|
|
87
94
|
"aria-label": t3,
|
|
88
95
|
"aria-labelledby": t4,
|
|
89
|
-
className:
|
|
96
|
+
className: t5,
|
|
90
97
|
style: style,
|
|
91
98
|
...props,
|
|
92
|
-
children: [
|
|
99
|
+
children: [t6, t7]
|
|
93
100
|
});
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
+
$[11] = props;
|
|
102
|
+
$[12] = size;
|
|
103
|
+
$[13] = style;
|
|
104
|
+
$[14] = t3;
|
|
105
|
+
$[15] = t4;
|
|
106
|
+
$[16] = t5;
|
|
107
|
+
$[17] = t8;
|
|
101
108
|
} else {
|
|
102
|
-
|
|
109
|
+
t8 = $[17];
|
|
103
110
|
}
|
|
104
|
-
let
|
|
105
|
-
if ($[
|
|
106
|
-
|
|
111
|
+
let t9;
|
|
112
|
+
if ($[18] !== hasHiddenLabel || $[19] !== labelId || $[20] !== srText) {
|
|
113
|
+
t9 = hasHiddenLabel ? /*#__PURE__*/jsx(VisuallyHidden, {
|
|
107
114
|
id: labelId,
|
|
108
115
|
children: srText
|
|
109
116
|
}) : null;
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
113
|
-
$[
|
|
117
|
+
$[18] = hasHiddenLabel;
|
|
118
|
+
$[19] = labelId;
|
|
119
|
+
$[20] = srText;
|
|
120
|
+
$[21] = t9;
|
|
114
121
|
} else {
|
|
115
|
-
|
|
122
|
+
t9 = $[21];
|
|
116
123
|
}
|
|
117
|
-
let
|
|
118
|
-
if ($[
|
|
119
|
-
|
|
124
|
+
let t10;
|
|
125
|
+
if ($[22] !== t8 || $[23] !== t9) {
|
|
126
|
+
t10 = /*#__PURE__*/jsxs("span", {
|
|
120
127
|
className: classes.Box,
|
|
121
|
-
children: [
|
|
122
|
-
});
|
|
123
|
-
$[20] = t7;
|
|
124
|
-
$[21] = t8;
|
|
125
|
-
$[22] = t9;
|
|
126
|
-
} else {
|
|
127
|
-
t9 = $[22];
|
|
128
|
-
}
|
|
129
|
-
return t9;
|
|
130
|
-
}
|
|
131
|
-
function StyledSpinner(t0) {
|
|
132
|
-
const $ = c(8);
|
|
133
|
-
let className;
|
|
134
|
-
let props;
|
|
135
|
-
if ($[0] !== t0) {
|
|
136
|
-
({
|
|
137
|
-
className,
|
|
138
|
-
...props
|
|
139
|
-
} = t0);
|
|
140
|
-
$[0] = t0;
|
|
141
|
-
$[1] = className;
|
|
142
|
-
$[2] = props;
|
|
143
|
-
} else {
|
|
144
|
-
className = $[1];
|
|
145
|
-
props = $[2];
|
|
146
|
-
}
|
|
147
|
-
let t1;
|
|
148
|
-
if ($[3] !== className) {
|
|
149
|
-
t1 = clsx(className, classes.SpinnerAnimation);
|
|
150
|
-
$[3] = className;
|
|
151
|
-
$[4] = t1;
|
|
152
|
-
} else {
|
|
153
|
-
t1 = $[4];
|
|
154
|
-
}
|
|
155
|
-
let t2;
|
|
156
|
-
if ($[5] !== props || $[6] !== t1) {
|
|
157
|
-
t2 = /*#__PURE__*/jsx(BoxWithFallback, {
|
|
158
|
-
as: Spinner,
|
|
159
|
-
className: t1,
|
|
160
|
-
...props
|
|
128
|
+
children: [t8, t9]
|
|
161
129
|
});
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
130
|
+
$[22] = t8;
|
|
131
|
+
$[23] = t9;
|
|
132
|
+
$[24] = t10;
|
|
165
133
|
} else {
|
|
166
|
-
|
|
134
|
+
t10 = $[24];
|
|
167
135
|
}
|
|
168
|
-
return
|
|
136
|
+
return t10;
|
|
169
137
|
}
|
|
170
|
-
|
|
138
|
+
Spinner.displayName = 'Spinner';
|
|
171
139
|
|
|
172
|
-
export {
|
|
140
|
+
export { Spinner as default };
|
|
@@ -1,39 +1,32 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { SxProp } from '../sx';
|
|
3
2
|
type StyledTimelineProps = {
|
|
4
3
|
clipSidebar?: boolean;
|
|
5
4
|
className?: string;
|
|
6
|
-
}
|
|
5
|
+
};
|
|
7
6
|
export type TimelineProps = StyledTimelineProps & React.ComponentPropsWithoutRef<'div'>;
|
|
8
7
|
type StyledTimelineItemProps = {
|
|
9
8
|
condensed?: boolean;
|
|
10
9
|
className?: string;
|
|
11
|
-
}
|
|
10
|
+
};
|
|
12
11
|
/**
|
|
13
12
|
* @deprecated Use the `TimelineItemProps` type instead
|
|
14
13
|
*/
|
|
15
|
-
export type TimelineItemsProps = StyledTimelineItemProps &
|
|
16
|
-
export type TimelineItemProps = StyledTimelineItemProps &
|
|
14
|
+
export type TimelineItemsProps = StyledTimelineItemProps & React.ComponentPropsWithoutRef<'div'>;
|
|
15
|
+
export type TimelineItemProps = StyledTimelineItemProps & React.ComponentPropsWithoutRef<'div'>;
|
|
17
16
|
export type TimelineBadgeProps = {
|
|
18
17
|
children?: React.ReactNode;
|
|
19
18
|
className?: string;
|
|
20
|
-
} &
|
|
19
|
+
} & React.ComponentPropsWithoutRef<'div'>;
|
|
21
20
|
export type TimelineBodyProps = {
|
|
22
21
|
/** Class name for custom styling */
|
|
23
22
|
className?: string;
|
|
24
|
-
} &
|
|
23
|
+
} & React.ComponentPropsWithoutRef<'div'>;
|
|
25
24
|
export type TimelineBreakProps = {
|
|
26
25
|
/** Class name for custom styling */
|
|
27
26
|
className?: string;
|
|
28
|
-
} &
|
|
29
|
-
declare const _default: React.ForwardRefExoticComponent<{
|
|
30
|
-
|
|
31
|
-
className?: string;
|
|
32
|
-
} & SxProp & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
33
|
-
Item: React.ForwardRefExoticComponent<{
|
|
34
|
-
condensed?: boolean;
|
|
35
|
-
className?: string;
|
|
36
|
-
} & SxProp & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
} & React.ComponentPropsWithoutRef<'div'>;
|
|
28
|
+
declare const _default: React.ForwardRefExoticComponent<StyledTimelineProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
29
|
+
Item: React.ForwardRefExoticComponent<StyledTimelineItemProps & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
37
30
|
Badge: {
|
|
38
31
|
({ className, ...props }: TimelineBadgeProps): React.JSX.Element;
|
|
39
32
|
displayName: string;
|
|
@@ -41,11 +34,11 @@ declare const _default: React.ForwardRefExoticComponent<{
|
|
|
41
34
|
Body: React.ForwardRefExoticComponent<{
|
|
42
35
|
/** Class name for custom styling */
|
|
43
36
|
className?: string;
|
|
44
|
-
} &
|
|
37
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
45
38
|
Break: React.ForwardRefExoticComponent<{
|
|
46
39
|
/** Class name for custom styling */
|
|
47
40
|
className?: string;
|
|
48
|
-
} &
|
|
41
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
49
42
|
};
|
|
50
43
|
export default _default;
|
|
51
44
|
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../../src/Timeline/Timeline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,KAAK,mBAAmB,GAAG;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAEtE,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAevF,KAAK,uBAAuB,GAAG;IAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAExE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAEhG,MAAM,MAAM,iBAAiB,GAAG,uBAAuB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAiB/F,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAYzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAQzC,MAAM,MAAM,kBAAkB,GAAG;IAC/B,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAA;;;;kCAxBK,kBAAkB;;;;QAW9D,oCAAoC;oBACxB,MAAM;;;QAUlB,oCAAoC;oBACxB,MAAM;;;AASpB,wBAKE"}
|
|
@@ -2,7 +2,6 @@ import { c } from 'react-compiler-runtime';
|
|
|
2
2
|
import { clsx } from 'clsx';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import classes from './Timeline.module.css.js';
|
|
5
|
-
import { BoxWithFallback } from '../internal/components/BoxWithFallback.js';
|
|
6
5
|
import { jsx } from 'react/jsx-runtime';
|
|
7
6
|
|
|
8
7
|
const Timeline = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
@@ -36,7 +35,7 @@ const Timeline = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
36
35
|
const t2 = clipSidebar ? "" : undefined;
|
|
37
36
|
let t3;
|
|
38
37
|
if ($[6] !== forwardRef || $[7] !== props || $[8] !== t1 || $[9] !== t2) {
|
|
39
|
-
t3 = /*#__PURE__*/jsx(
|
|
38
|
+
t3 = /*#__PURE__*/jsx("div", {
|
|
40
39
|
...props,
|
|
41
40
|
className: t1,
|
|
42
41
|
ref: forwardRef,
|
|
@@ -89,7 +88,7 @@ const TimelineItem = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
89
88
|
const t2 = condensed ? "" : undefined;
|
|
90
89
|
let t3;
|
|
91
90
|
if ($[6] !== forwardRef || $[7] !== props || $[8] !== t1 || $[9] !== t2) {
|
|
92
|
-
t3 = /*#__PURE__*/jsx(
|
|
91
|
+
t3 = /*#__PURE__*/jsx("div", {
|
|
93
92
|
...props,
|
|
94
93
|
className: t1,
|
|
95
94
|
ref: forwardRef,
|
|
@@ -134,7 +133,7 @@ const TimelineBadge = t0 => {
|
|
|
134
133
|
if ($[5] !== props || $[6] !== t1) {
|
|
135
134
|
t2 = /*#__PURE__*/jsx("div", {
|
|
136
135
|
className: classes.TimelineBadgeWrapper,
|
|
137
|
-
children: /*#__PURE__*/jsx(
|
|
136
|
+
children: /*#__PURE__*/jsx("div", {
|
|
138
137
|
...props,
|
|
139
138
|
className: t1
|
|
140
139
|
})
|
|
@@ -174,7 +173,7 @@ const TimelineBody = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
174
173
|
}
|
|
175
174
|
let t2;
|
|
176
175
|
if ($[5] !== forwardRef || $[6] !== props || $[7] !== t1) {
|
|
177
|
-
t2 = /*#__PURE__*/jsx(
|
|
176
|
+
t2 = /*#__PURE__*/jsx("div", {
|
|
178
177
|
...props,
|
|
179
178
|
className: t1,
|
|
180
179
|
ref: forwardRef
|
|
@@ -215,7 +214,7 @@ const TimelineBreak = /*#__PURE__*/React.forwardRef((t0, forwardRef) => {
|
|
|
215
214
|
}
|
|
216
215
|
let t2;
|
|
217
216
|
if ($[5] !== forwardRef || $[6] !== props || $[7] !== t1) {
|
|
218
|
-
t2 = /*#__PURE__*/jsx(
|
|
217
|
+
t2 = /*#__PURE__*/jsx("div", {
|
|
219
218
|
...props,
|
|
220
219
|
className: t1,
|
|
221
220
|
ref: forwardRef
|
|
@@ -34,6 +34,10 @@ export interface ToggleSwitchProps extends Omit<React.HTMLAttributes<HTMLDivElem
|
|
|
34
34
|
loadingLabel?: string;
|
|
35
35
|
/** type of button to account for behavior when added to a form*/
|
|
36
36
|
buttonType?: 'button' | 'submit' | 'reset';
|
|
37
|
+
/** Text to display when the toggle switch is in the 'on' position. Defaults to 'On'. Only customize this label if there is a more specific label for the context. For example, you might use 'Show' if the setting is 'Show images'. */
|
|
38
|
+
buttonLabelOn?: string;
|
|
39
|
+
/** Text to display when the toggle switch is in the 'off' position. Defaults to 'Off'. Only customize this label if there is a more specific label for the context. For example, you might use 'Hide' if the setting is 'Show images'. */
|
|
40
|
+
buttonLabelOff?: string;
|
|
37
41
|
}
|
|
38
42
|
declare const ToggleSwitch: React.ForwardRefExoticComponent<ToggleSwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
39
43
|
export default ToggleSwitch;
|