@primer/react 0.0.0-20260304205704 → 0.0.0-20260304213041
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 +3 -7
- package/dist/ActionBar/ActionBar.d.ts +1 -1
- package/dist/ActionBar/index.d.ts +1 -1
- package/dist/Button/types.d.ts +1 -1
- package/dist/Button/types.d.ts.map +1 -1
- package/dist/Dialog/Dialog-b8e961f6.css +2 -0
- package/dist/Dialog/Dialog-b8e961f6.css.map +1 -0
- package/dist/Dialog/Dialog.d.ts +0 -11
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +1 -10
- package/dist/Dialog/Dialog.module.css.js +1 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.d.ts.map +1 -1
- package/dist/TextInputWithTokens/TextInputWithTokens.js +331 -262
- package/dist/Timeline/{Timeline-19bef8c5.css → Timeline-116393ee.css} +2 -2
- package/dist/Timeline/{Timeline-19bef8c5.css.map → Timeline-116393ee.css.map} +1 -1
- package/dist/Timeline/Timeline.module.css.js +1 -1
- package/dist/TooltipV2/Tooltip.d.ts +1 -1
- package/dist/TooltipV2/Tooltip.d.ts.map +1 -1
- package/dist/TooltipV2/Tooltip.js +9 -14
- package/generated/components.json +0 -21
- package/package.json +1 -1
- package/dist/Dialog/Dialog-2d417a89.css +0 -2
- package/dist/Dialog/Dialog-2d417a89.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260304213041
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#7623](https://github.com/primer/react/pull/7623) [`d83f1db`](https://github.com/primer/react/commit/d83f1db01ebb81a484f5a75920b4294ff2b20cf6) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - `IconButton`: `keybindingHint` now accepts `string[]` in addition to `string`. Multiple hints are rendered joined with "or".
|
|
8
|
-
|
|
9
7
|
- [#7524](https://github.com/primer/react/pull/7524) [`f7bdd1c`](https://github.com/primer/react/commit/f7bdd1c04f8cbb17b6a913ba55f7d0855c8eebf1) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: always render ActionMenu in viewport when inside Dialog under feature flag
|
|
10
8
|
|
|
11
|
-
- [#7594](https://github.com/primer/react/pull/7594) [`1e54bdf`](https://github.com/primer/react/commit/1e54bdf72c9466f23c567cfdc73b7b5c243782a4) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Add `align` and `style` props to Dialog component
|
|
12
|
-
|
|
13
9
|
### Patch Changes
|
|
14
10
|
|
|
15
11
|
- Fake entry to force publishing
|
|
@@ -18,10 +14,10 @@
|
|
|
18
14
|
|
|
19
15
|
- Improves initial render performance for `ActionBar`
|
|
20
16
|
|
|
21
|
-
- [#7617](https://github.com/primer/react/pull/7617) [`79c855a`](https://github.com/primer/react/commit/79c855abeb6f46d3fefafb236f00ea65dfcd1ed4) Thanks [@llastflowers](https://github.com/llastflowers)! - Push margin-top of TimelineBody +1px
|
|
22
|
-
|
|
23
17
|
- [#7550](https://github.com/primer/react/pull/7550) [`9585669`](https://github.com/primer/react/commit/958566907a580b54b484ff2339b32315b8a3b4b7) Thanks [@hectahertz](https://github.com/hectahertz)! - perf(Spinner): replace Web Animations API with CSS animation-delay sync
|
|
24
18
|
|
|
19
|
+
- [#7618](https://github.com/primer/react/pull/7618) [`aac5e43`](https://github.com/primer/react/commit/aac5e4334945a562c11ecc5d7268b71d0562bb27) Thanks [@liuliu-dev](https://github.com/liuliu-dev)! - TextInputWithTokens: announce selected token values for screen readers.
|
|
20
|
+
|
|
25
21
|
- [#7588](https://github.com/primer/react/pull/7588) [`e649da3`](https://github.com/primer/react/commit/e649da3c89b38f477fb574acf5bb06a49b41ee9d) Thanks [@lukasoppermann](https://github.com/lukasoppermann)! - ToggleSwitch: Updated with a 1px space around the knob to work better with updated primitives.
|
|
26
22
|
|
|
27
23
|
## 38.14.0
|
|
@@ -118,7 +118,7 @@ export declare const ActionBarMenu: React.ForwardRefExoticComponent<{
|
|
|
118
118
|
description?: string;
|
|
119
119
|
tooltipDirection?: import("../TooltipV2").TooltipDirection;
|
|
120
120
|
keyshortcuts?: string;
|
|
121
|
-
keybindingHint?: string
|
|
121
|
+
keybindingHint?: string;
|
|
122
122
|
} & Omit<import("..").ButtonBaseProps, "aria-label" | "aria-labelledby"> & React.RefAttributes<unknown>>;
|
|
123
123
|
export declare const VerticalDivider: () => React.JSX.Element | null;
|
|
124
124
|
export {};
|
|
@@ -20,7 +20,7 @@ declare const ActionBar: import("react").FC<import("react").PropsWithChildren<im
|
|
|
20
20
|
description?: string;
|
|
21
21
|
tooltipDirection?: import("../TooltipV2").TooltipDirection;
|
|
22
22
|
keyshortcuts?: string;
|
|
23
|
-
keybindingHint?: string
|
|
23
|
+
keybindingHint?: string;
|
|
24
24
|
} & Omit<import("..").ButtonBaseProps, "aria-label" | "aria-labelledby"> & import("react").RefAttributes<unknown>>;
|
|
25
25
|
};
|
|
26
26
|
export default ActionBar;
|
package/dist/Button/types.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export type IconButtonProps = ButtonA11yProps & {
|
|
|
75
75
|
tooltipDirection?: TooltipDirection;
|
|
76
76
|
/** @deprecated Use `keybindingHint` instead. */
|
|
77
77
|
keyshortcuts?: string;
|
|
78
|
-
keybindingHint?: string
|
|
78
|
+
keybindingHint?: string;
|
|
79
79
|
} & Omit<ButtonBaseProps, 'aria-label' | 'aria-labelledby'>;
|
|
80
80
|
export type LinkButtonProps = {
|
|
81
81
|
download?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/Button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAC,gBAAgB,EAAC,M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M,eAAe,GAAG,eAAe,GAAG;IAC9C,IAAI,EAAE,KAAK,CAAC,WAAW,CAAA;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,IAAI,CAAC,eAAe,EAAE,YAAY,GAAG,iBAAiB,CAAC,CAAA;AAG3D,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,CAAA;CACjF,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@property --prc-dialog-scrollgutter{initial-value:0;inherits:false;syntax:"<length>"}@keyframes prc-Dialog-dialog-backdrop-appear-tCG2K{0%{opacity:0}to{opacity:1}}@keyframes prc-Dialog-Overlay--motion-scaleFade-mE6-C{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes prc-Dialog-Overlay--motion-slideUp-tPElO{0%{transform:translateY(100%)}}@keyframes prc-Dialog-Overlay--motion-slideInRight-BR-CZ{0%{transform:translateX(-100%)}}@keyframes prc-Dialog-Overlay--motion-slideInLeft-ISmQZ{0%{transform:translateX(100%)}}@keyframes prc-Dialog-detect-scroll-b3i8Q{0%,to{--can-scroll:1}}.prc-Dialog-Backdrop-5Nt2U{animation:prc-Dialog-dialog-backdrop-appear-tCG2K .2s cubic-bezier(.33,1,.68,1);background-color:var(--overlay-backdrop-bgColor,var(--color-overlay-backdrop));bottom:0;display:flex;left:0;position:fixed;right:0;top:0}.prc-Dialog-Backdrop-5Nt2U,.prc-Dialog-Backdrop-5Nt2U[data-position-regular=center]{align-items:center;justify-content:center}.prc-Dialog-Backdrop-5Nt2U[data-position-regular=left]{align-items:center;justify-content:flex-start}.prc-Dialog-Backdrop-5Nt2U[data-position-regular=right]{align-items:center;justify-content:flex-end}@media (max-width:767px){.prc-Dialog-Backdrop-5Nt2U[data-position-narrow=center]{align-items:center;justify-content:center}.prc-Dialog-Backdrop-5Nt2U[data-position-narrow=bottom]{align-items:end;justify-content:center}}.prc-Dialog-Dialog-G8cDF{background-color:var(--overlay-bgColor,var(--color-canvas-overlay));border-radius:var(--borderRadius-large,.75rem);border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));box-shadow:var(--shadow-floating-small,var(--color-overlay-shadow));display:flex;flex-direction:column;height:auto;max-height:calc(100dvh - 64px);max-width:calc(100dvw - 64px);min-width:296px;opacity:1;width:640px}.prc-Dialog-Dialog-G8cDF:where([data-width=small]){width:296px}.prc-Dialog-Dialog-G8cDF:where([data-width=medium]){width:320px}.prc-Dialog-Dialog-G8cDF:where([data-width=large]){width:480px}.prc-Dialog-Dialog-G8cDF:where([data-height=small]){height:480px}.prc-Dialog-Dialog-G8cDF:where([data-height=large]){height:640px}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF{animation:prc-Dialog-Overlay--motion-scaleFade-mE6-C .2s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}.prc-Dialog-Dialog-G8cDF[data-position-regular=center]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem))}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-regular=center]{animation:prc-Dialog-Overlay--motion-scaleFade-mE6-C .2s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}.prc-Dialog-Dialog-G8cDF[data-position-regular=left]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));border-bottom-left-radius:0;border-top-left-radius:0;height:100dvh;max-height:unset}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-regular=left]{animation:prc-Dialog-Overlay--motion-slideInRight-BR-CZ .25s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}.prc-Dialog-Dialog-G8cDF[data-position-regular=right]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));border-bottom-right-radius:0;border-top-right-radius:0;height:100dvh;max-height:unset}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-regular=right]{animation:prc-Dialog-Overlay--motion-slideInLeft-ISmQZ .25s cubic-bezier(.33,1,.68,1) 0s 1 normal none running}}@media (max-width:767px){.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));height:auto;width:640px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-width=small]){width:296px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-width=medium]){width:320px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-width=large]){width:480px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-height=small]){height:480px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-height=large]){height:640px}@media (max-height:280px){.prc-Dialog-Dialog-G8cDF{max-height:calc(100dvh - 12px);max-width:calc(100dvw - 12px)}}.prc-Dialog-Dialog-G8cDF[data-position-narrow=bottom]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));border-bottom-left-radius:0;border-bottom-right-radius:0;height:auto;max-height:calc(100dvh - 64px);max-width:100dvw;width:100dvw}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-narrow=bottom]{animation:prc-Dialog-Overlay--motion-slideUp-tPElO .25s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}.prc-Dialog-Dialog-G8cDF[data-position-narrow=fullscreen]{border-radius:unset!important;flex-grow:1;height:100%;max-height:100dvh;max-width:100dvw;width:100%}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-narrow=fullscreen]{animation:prc-Dialog-Overlay--motion-scaleFade-mE6-C .2s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}}body:not([data-dialog-scroll-optimized]):has(.prc-Dialog-Dialog-G8cDF.prc-Dialog-DisableScroll-UkWFM){overflow:hidden!important;padding-right:var(--prc-dialog-scrollgutter)!important}body[data-dialog-scroll-disabled]{overflow:hidden!important;padding-right:var(--prc-dialog-scrollgutter)!important}.prc-Dialog-DialogOverflowWrapper-JvHzz{flex-grow:1}.prc-Dialog-Dialog-G8cDF:has(.prc-Dialog-Footer-PMeQk){--can-scroll:0}.prc-Dialog-Dialog-G8cDF:has(.prc-Dialog-Footer-PMeQk) .prc-Dialog-DialogOverflowWrapper-JvHzz{animation:prc-Dialog-detect-scroll-b3i8Q;border-bottom:var(--borderWidth-default,.0625rem) solid var(--borderColor-default,var(--color-border-default));animation-timeline:scroll(self)}@supports (animation-timeline:scroll(self)){.prc-Dialog-Dialog-G8cDF:has(.prc-Dialog-Footer-PMeQk) .prc-Dialog-DialogOverflowWrapper-JvHzz{border-bottom:calc(var(--borderWidth-thin,.0625rem)*var(--can-scroll)) solid var(--borderColor-default,var(--color-border-default))}}.prc-Dialog-Header-f7Me-{box-shadow:0 1px 0 var(--borderColor-default,var(--color-border-default));flex-shrink:0;max-height:35vh;overflow-y:auto;padding:var(--base-size-8,.5rem);z-index:1}.prc-Dialog-HeaderInner-H-fFY{display:flex}.prc-Dialog-HeaderContent-mjAsn{display:flex;flex-direction:column;flex-grow:1;padding-block:var(--base-size-6,.375rem);padding-inline:var(--base-size-8,.5rem)}.prc-Dialog-Title-M-iPn{font-size:var(--text-body-size-medium,.875rem);font-weight:var(--text-title-weight-large,600);margin:0}.prc-Dialog-Subtitle-aBFSq{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-normal,400);margin:0;margin-top:var(--base-size-4,.25rem)}.prc-Dialog-Body-bB903{flex-grow:1;overflow:auto}.prc-Dialog-Body-bB903,.prc-Dialog-Footer-PMeQk{padding:var(--base-size-16,1rem)}.prc-Dialog-Footer-PMeQk{display:flex;flex-flow:wrap;flex-shrink:0;gap:var(--base-size-8,.5rem);justify-content:flex-end;z-index:1}@media (max-height:325px){.prc-Dialog-Footer-PMeQk{flex-direction:row;flex-wrap:nowrap;justify-content:unset;overflow-x:scroll}}
|
|
2
|
+
/*# sourceMappingURL=Dialog-b8e961f6.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Dialog/Dialog.module.css.js"],"names":[],"mappings":"AAOA,oCACE,eAAgB,CAChB,cAAe,CACf,iBACF,CAEA,mDACE,GACE,SACF,CAEA,GACE,SACF,CACF,CAEA,sDACE,GACE,SAAU,CACV,mBACF,CAEA,GACE,SAAU,CACV,kBACF,CACF,CAEA,oDACE,GACE,0BACF,CACF,CAEA,yDACE,GACE,2BACF,CACF,CAEA,wDACE,GACE,0BACF,CACF,CAGA,0CACE,MAEE,cACF,CACF,CAEA,2BAQE,+EAAsE,CADtE,8EAAiD,CAHjD,QAAS,CAET,YAAa,CADb,MAAO,CAJP,cAAe,CAEf,OAAQ,CADR,KAoCF,CA1BE,oFAHA,kBAAmB,CACnB,sBAKA,CAEA,uDACE,kBAAmB,CACnB,0BACF,CAEA,wDACE,kBAAmB,CACnB,wBACF,CAEA,yBACE,wDACE,kBAAmB,CACnB,sBACF,CAEA,wDACE,eAAgB,CAChB,sBACF,CACF,CAGF,yBASE,mEAAwC,CACxC,8CAAwC,CACxC,wEAAmE,CACnE,mEAAwC,CAXxC,YAAa,CAOb,qBAAsB,CAFtB,WA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CAEA,gCACE,YAAa,CAGb,qBAAsB,CACtB,WAAY,CAFZ,wCAAiC,CADjC,uCAIF,CAEA,wBAEE,8CAAuC,CACvC,8CAA2C,CAF3C,QAGF,CAEA,2BAKE,gDAA2B,CAF3B,4CAAsC,CACtC,8CAA2C,CAH3C,QAAS,CACT,oCAIF,CAEA,uBAGE,WAAY,CADZ,aAEF,CAEA,gDALE,gCAoBF,CAfA,yBAEE,YAAa,CACb,cAAe,CAIf,aAAc,CADd,4BAAuB,CAFvB,wBAAyB,CAHzB,SAcF,CANE,0BATF,yBAYI,kBAAmB,CAFnB,gBAAiB,CAGjB,qBAAsB,CAFtB,iBAIJ,CADE","file":"Dialog-b8e961f6.css","sourcesContent":["/* The --prc-dialog-scrollgutter property is used only on the body element to\n * simulate scrollbar-gutter:stable. This property is not and should not\n * be used elsewhere in the DOM. There is a performance penalty to\n * setting inherited properties which can cause a large style recalc to\n * occur, so it benefits us to prevent inheritance for this property.\n * See https://web.dev/blog/at-property-performance\n */\n@property --prc-dialog-scrollgutter {\n initial-value: 0;\n inherits: false;\n syntax: '<length>';\n}\n\n@keyframes dialog-backdrop-appear {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes Overlay--motion-scaleFade {\n 0% {\n opacity: 0;\n transform: scale(0.5);\n }\n\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes Overlay--motion-slideUp {\n from {\n transform: translateY(100%);\n }\n}\n\n@keyframes Overlay--motion-slideInRight {\n from {\n transform: translateX(-100%);\n }\n}\n\n@keyframes Overlay--motion-slideInLeft {\n from {\n transform: translateX(100%);\n }\n}\n\n/* Used to determine whether there should be a border between the body and footer */\n@keyframes detect-scroll {\n from,\n to {\n --can-scroll: 1;\n }\n}\n\n.Backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n background-color: var(--overlay-backdrop-bgColor);\n animation: dialog-backdrop-appear 200ms cubic-bezier(0.33, 1, 0.68, 1);\n align-items: center;\n justify-content: center;\n\n &[data-position-regular='center'] {\n align-items: center;\n justify-content: center;\n }\n\n &[data-position-regular='left'] {\n align-items: center;\n justify-content: flex-start;\n }\n\n &[data-position-regular='right'] {\n align-items: center;\n justify-content: flex-end;\n }\n\n @media (max-width: 767px) {\n &[data-position-narrow='center'] {\n align-items: center;\n justify-content: center;\n }\n\n &[data-position-narrow='bottom'] {\n align-items: end;\n justify-content: center;\n }\n }\n}\n\n.Dialog {\n display: flex;\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 640px;\n min-width: 296px;\n max-width: calc(100dvw - 64px);\n height: auto;\n max-height: calc(100dvh - 64px);\n flex-direction: column;\n background-color: var(--overlay-bgColor);\n border-radius: var(--borderRadius-large);\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n box-shadow: var(--shadow-floating-small);\n opacity: 1;\n\n &:where([data-width='small']) {\n width: 296px;\n }\n\n &:where([data-width='medium']) {\n width: 320px;\n }\n\n &:where([data-width='large']) {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 480px;\n }\n\n &:where([data-height='small']) {\n height: 480px;\n }\n\n &:where([data-height='large']) {\n height: 640px;\n }\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-scaleFade 0.2s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n\n &[data-position-regular='center'] {\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-scaleFade 0.2s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n }\n\n &[data-position-regular='left'] {\n height: 100dvh;\n max-height: unset;\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-slideInRight 0.25s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n }\n\n &[data-position-regular='right'] {\n height: 100dvh;\n max-height: unset;\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-slideInLeft 0.25s cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running;\n }\n }\n\n @media (max-width: 767px) {\n &[data-position-narrow='center'] {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 640px;\n height: auto;\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n\n &:where([data-width='small']) {\n width: 296px;\n }\n\n &:where([data-width='medium']) {\n width: 320px;\n }\n\n &:where([data-width='large']) {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 480px;\n }\n\n &:where([data-height='small']) {\n height: 480px;\n }\n\n &:where([data-height='large']) {\n height: 640px;\n }\n }\n\n @media (max-height: 280px) {\n max-height: calc(100dvh - 12px);\n max-width: calc(100dvw - 12px);\n }\n\n &[data-position-narrow='bottom'] {\n width: 100dvw;\n max-width: 100dvw;\n height: auto;\n max-height: calc(100dvh - 64px);\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-slideUp 0.25s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n }\n\n &[data-position-narrow='fullscreen'] {\n width: 100%;\n max-width: 100dvw;\n height: 100%;\n max-height: 100dvh;\n border-radius: unset !important;\n flex-grow: 1;\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-scaleFade 0.2s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n }\n }\n}\n\n/* DisableScroll class is added to Dialog when scroll should be disabled on body */\n.DisableScroll {\n /* This class is used as a selector target for the legacy :has() CSS selector */\n}\n\n/*\n * LEGACY: Scoped :has() selector with negation guard\n * Only evaluates when data-dialog-scroll-optimized is NOT present on body.\n * When the attribute IS present (flag ON), browser skips :has() evaluation\n * because the :not() check fails first (O(1) attribute lookup).\n */\n/* stylelint-disable-next-line selector-no-qualifying-type */\nbody:not([data-dialog-scroll-optimized]):has(.Dialog.DisableScroll) {\n /* stylelint-disable-next-line primer/spacing */\n padding-right: var(--prc-dialog-scrollgutter) !important;\n overflow: hidden !important;\n}\n\n/*\n * PERFORMANCE OPTIMIZATION: Direct attribute on body - O(1) lookup\n * Active when primer_react_css_has_selector_perf flag is ON\n */\n/* stylelint-disable-next-line selector-no-qualifying-type */\nbody[data-dialog-scroll-disabled] {\n /* stylelint-disable-next-line primer/spacing */\n padding-right: var(--prc-dialog-scrollgutter) !important;\n overflow: hidden !important;\n}\n\n.DialogOverflowWrapper {\n flex-grow: 1;\n}\n\n/*\nAdd a border between the body and footer if:\n- the dialog has a footer\n- the dialog has a body that can scroll\n- the browser supports the `animation-timeline` property and its `scroll()` function\n*/\n.Dialog:has(.Footer) {\n --can-scroll: 0;\n\n .DialogOverflowWrapper {\n /* If the browser does not support the `animation-timeline` property, always show a border */\n border-bottom: var(--borderWidth-default) solid var(--borderColor-default);\n animation: detect-scroll;\n animation-timeline: scroll(self);\n\n @supports (animation-timeline: scroll(self)) {\n border-bottom: calc(var(--borderWidth-thin) * var(--can-scroll)) solid var(--borderColor-default);\n }\n }\n}\n\n.Header {\n z-index: 1;\n max-height: 35vh;\n padding: var(--base-size-8);\n overflow-y: auto;\n /* stylelint-disable-next-line primer/box-shadow */\n box-shadow: 0 1px 0 var(--borderColor-default);\n flex-shrink: 0;\n}\n\n.HeaderInner {\n display: flex;\n}\n\n.HeaderContent {\n display: flex;\n padding-inline: var(--base-size-8);\n padding-block: var(--base-size-6);\n flex-direction: column;\n flex-grow: 1;\n}\n\n.Title {\n margin: 0; /* override default margin */\n font-size: var(--text-body-size-medium);\n font-weight: var(--text-title-weight-large);\n}\n\n.Subtitle {\n margin: 0; /* override default margin */\n margin-top: var(--base-size-4);\n font-size: var(--text-body-size-small);\n font-weight: var(--base-text-weight-normal);\n color: var(--fgColor-muted);\n}\n\n.Body {\n padding: var(--base-size-16);\n overflow: auto;\n flex-grow: 1;\n}\n\n.Footer {\n z-index: 1;\n display: flex;\n flex-flow: wrap;\n justify-content: flex-end;\n padding: var(--base-size-16);\n gap: var(--base-size-8);\n flex-shrink: 0;\n\n @media (max-height: 325px) {\n flex-wrap: nowrap;\n overflow-x: scroll;\n flex-direction: row;\n justify-content: unset;\n }\n}\n"]}
|
package/dist/Dialog/Dialog.d.ts
CHANGED
|
@@ -100,13 +100,6 @@ export interface DialogProps {
|
|
|
100
100
|
* The position of the dialog
|
|
101
101
|
*/
|
|
102
102
|
position?: 'center' | 'left' | 'right' | ResponsiveValue<'left' | 'right' | 'bottom' | 'fullscreen' | 'center'>;
|
|
103
|
-
/**
|
|
104
|
-
* The vertical alignment of the dialog. Only applies when position is 'center' (the default).
|
|
105
|
-
* top: positions the Dialog ~4rem from the top of the screen, horizontally centered
|
|
106
|
-
* center: (default) vertically centers the Dialog on the screen
|
|
107
|
-
* bottom: positions the Dialog near the bottom of the screen, horizontally centered
|
|
108
|
-
*/
|
|
109
|
-
align?: 'top' | 'center' | 'bottom';
|
|
110
103
|
/**
|
|
111
104
|
* Return focus to this element when the Dialog closes,
|
|
112
105
|
* instead of the element that had focus immediately before the Dialog opened
|
|
@@ -120,10 +113,6 @@ export interface DialogProps {
|
|
|
120
113
|
* Additional class names to apply to the dialog
|
|
121
114
|
*/
|
|
122
115
|
className?: string;
|
|
123
|
-
/**
|
|
124
|
-
* Additional styles to apply to the dialog
|
|
125
|
-
*/
|
|
126
|
-
style?: React.CSSProperties;
|
|
127
116
|
}
|
|
128
117
|
/**
|
|
129
118
|
* Props that are passed to a component that serves as a dialog header
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsE,MAAM,OAA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,CAAA;AAGV,QAAA,MAAM,QAAQ;;;;;CAKJ,CAAA;AAEV,MAAM,MAAM,WAAW,GAAG,MAAM,OAAO,QAAQ,CAAA;AAC/C,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,SAAS,CAAA;AA+CjD,eAAO,MAAM,aAAa,mCAAqD,CAAA;AAmP/E,eAAO,MAAM,MAAM;;;;;;;;;;iBAhEuC,iBAAiB,EAAE;;;iBAkCf,MAAM,IAAI;;CAuCtE,CAAA"}
|
package/dist/Dialog/Dialog.js
CHANGED
|
@@ -91,11 +91,9 @@ const _Dialog = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
|
|
91
91
|
height = 'auto',
|
|
92
92
|
footerButtons = defaultFooterButtons,
|
|
93
93
|
position = defaultPosition,
|
|
94
|
-
align,
|
|
95
94
|
returnFocusRef,
|
|
96
95
|
initialFocusRef,
|
|
97
|
-
className
|
|
98
|
-
style
|
|
96
|
+
className
|
|
99
97
|
} = props;
|
|
100
98
|
const dialogLabelId = useId();
|
|
101
99
|
const dialogDescriptionId = useId();
|
|
@@ -181,9 +179,6 @@ const _Dialog = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
|
|
181
179
|
ref: backdropRef,
|
|
182
180
|
className: classes.Backdrop,
|
|
183
181
|
...positionDataAttributes,
|
|
184
|
-
...(align && {
|
|
185
|
-
'data-align': align
|
|
186
|
-
}),
|
|
187
182
|
onClick: onBackdropClick,
|
|
188
183
|
onMouseDown: e => {
|
|
189
184
|
setLastMouseDownIsBackdrop(e.target === e.currentTarget);
|
|
@@ -195,13 +190,9 @@ const _Dialog = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
|
|
|
195
190
|
"aria-describedby": dialogDescriptionId,
|
|
196
191
|
"aria-modal": true,
|
|
197
192
|
...positionDataAttributes,
|
|
198
|
-
...(align && {
|
|
199
|
-
'data-align': align
|
|
200
|
-
}),
|
|
201
193
|
"data-width": width,
|
|
202
194
|
"data-height": height,
|
|
203
195
|
className: clsx(className, classes.Dialog),
|
|
204
|
-
style: style,
|
|
205
196
|
children: [header, /*#__PURE__*/jsx(ScrollableRegion, {
|
|
206
197
|
"aria-labelledby": dialogLabelId,
|
|
207
198
|
className: classes.DialogOverflowWrapper,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Dialog-
|
|
1
|
+
import './Dialog-b8e961f6.css';
|
|
2
2
|
|
|
3
3
|
var classes = {"Backdrop":"prc-Dialog-Backdrop-5Nt2U","dialog-backdrop-appear":"prc-Dialog-dialog-backdrop-appear-tCG2K","Dialog":"prc-Dialog-Dialog-G8cDF","Overlay--motion-scaleFade":"prc-Dialog-Overlay--motion-scaleFade-mE6-C","Overlay--motion-slideInRight":"prc-Dialog-Overlay--motion-slideInRight-BR-CZ","Overlay--motion-slideInLeft":"prc-Dialog-Overlay--motion-slideInLeft-ISmQZ","Overlay--motion-slideUp":"prc-Dialog-Overlay--motion-slideUp-tPElO","DisableScroll":"prc-Dialog-DisableScroll-UkWFM","DialogOverflowWrapper":"prc-Dialog-DialogOverflowWrapper-JvHzz","Footer":"prc-Dialog-Footer-PMeQk","detect-scroll":"prc-Dialog-detect-scroll-b3i8Q","Header":"prc-Dialog-Header-f7Me-","HeaderInner":"prc-Dialog-HeaderInner-H-fFY","HeaderContent":"prc-Dialog-HeaderContent-mjAsn","Title":"prc-Dialog-Title-M-iPn","Subtitle":"prc-Dialog-Subtitle-aBFSq","Body":"prc-Dialog-Body-bB903"};
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputWithTokens.d.ts","sourceRoot":"","sources":["../../src/TextInputWithTokens/TextInputWithTokens.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAA6D,SAAS,EAAC,MAAM,OAAO,CAAA;AAChG,OAAO,KAAyB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TextInputWithTokens.d.ts","sourceRoot":"","sources":["../../src/TextInputWithTokens/TextInputWithTokens.tsx"],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GAAG,MAAM,KAAK,IAAI;IACjD;;OAEG;;IAEH;;;OAGG;gBACS,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC;IAC5C;;OAEG;2BACoB,OAAO;IAC9B;;OAEG;WACI,aAAa;IACpB;;OAEG;6BACsB,OAAO;IAChC;;OAEG;wBACiB,MAAM;yEAwSmD,CAAA;AAK/E;;GAEG;wBACmC,cAAc,CAAC,OAAO,mBAAmB,CAAC;AAAhF,wBAAgF"}
|
|
@@ -5,7 +5,9 @@ import React, { useRef, useState } from 'react';
|
|
|
5
5
|
import { isValidElementType } from 'react-is';
|
|
6
6
|
import { useRefObjectAsForwardedRef } from '../hooks/useRefObjectAsForwardedRef.js';
|
|
7
7
|
import { useFocusZone } from '../hooks/useFocusZone.js';
|
|
8
|
+
import { useId } from '../hooks/useId.js';
|
|
8
9
|
import Token from '../Token/Token.js';
|
|
10
|
+
import VisuallyHidden from '../_VisuallyHidden.js';
|
|
9
11
|
import { TextInputWrapper } from '../internal/components/TextInputWrapper.js';
|
|
10
12
|
import UnstyledTextInput from '../internal/components/UnstyledTextInput.js';
|
|
11
13
|
import TextInputInnerVisualSlot from '../internal/components/TextInputInnerVisualSlot.js';
|
|
@@ -23,7 +25,7 @@ const overflowCountClassMap = {
|
|
|
23
25
|
|
|
24
26
|
// using forwardRef is important so that other components (ex. Autocomplete) can use the ref
|
|
25
27
|
function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
26
|
-
const $ = c(
|
|
28
|
+
const $ = c(151);
|
|
27
29
|
let IconComponent;
|
|
28
30
|
let LeadingVisual;
|
|
29
31
|
let TrailingVisual;
|
|
@@ -131,46 +133,77 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
131
133
|
const preventTokenWrapping = t3 === undefined ? false : t3;
|
|
132
134
|
const size = t4 === undefined ? "xlarge" : t4;
|
|
133
135
|
const hideTokenRemoveButtons = t5 === undefined ? false : t5;
|
|
136
|
+
let ariaDescribedByProp;
|
|
134
137
|
let inputPropsRest;
|
|
135
138
|
let onBlur;
|
|
136
139
|
let onFocus;
|
|
137
140
|
let onKeyDown;
|
|
141
|
+
let role;
|
|
138
142
|
if ($[25] !== rest) {
|
|
139
143
|
({
|
|
140
144
|
onBlur,
|
|
141
145
|
onFocus,
|
|
142
146
|
onKeyDown,
|
|
147
|
+
"aria-describedby": ariaDescribedByProp,
|
|
148
|
+
role,
|
|
143
149
|
...inputPropsRest
|
|
144
150
|
} = rest);
|
|
145
151
|
$[25] = rest;
|
|
146
|
-
$[26] =
|
|
147
|
-
$[27] =
|
|
148
|
-
$[28] =
|
|
149
|
-
$[29] =
|
|
152
|
+
$[26] = ariaDescribedByProp;
|
|
153
|
+
$[27] = inputPropsRest;
|
|
154
|
+
$[28] = onBlur;
|
|
155
|
+
$[29] = onFocus;
|
|
156
|
+
$[30] = onKeyDown;
|
|
157
|
+
$[31] = role;
|
|
150
158
|
} else {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
159
|
+
ariaDescribedByProp = $[26];
|
|
160
|
+
inputPropsRest = $[27];
|
|
161
|
+
onBlur = $[28];
|
|
162
|
+
onFocus = $[29];
|
|
163
|
+
onKeyDown = $[30];
|
|
164
|
+
role = $[31];
|
|
155
165
|
}
|
|
156
166
|
const ref = useRef(null);
|
|
167
|
+
const selectedValuesDescriptionId = useId();
|
|
157
168
|
useRefObjectAsForwardedRef(forwardedRef, ref);
|
|
158
169
|
const [selectedTokenIndex, setSelectedTokenIndex] = useState();
|
|
159
170
|
const [tokensAreTruncated, setTokensAreTruncated] = useState(Boolean(visibleTokenCount));
|
|
160
171
|
let t6;
|
|
161
|
-
if ($[
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
$[
|
|
172
|
+
if ($[32] !== tokens) {
|
|
173
|
+
const selectedTokenTexts = tokens.map(_temp).filter(_temp2);
|
|
174
|
+
t6 = selectedTokenTexts.length ? `Selected: ${selectedTokenTexts.join(", ")}` : "";
|
|
175
|
+
$[32] = tokens;
|
|
176
|
+
$[33] = t6;
|
|
165
177
|
} else {
|
|
166
|
-
t6 = $[
|
|
178
|
+
t6 = $[33];
|
|
179
|
+
}
|
|
180
|
+
const selectedValuesDescription = t6;
|
|
181
|
+
const shouldExposeSelectedValuesDescription = role === "combobox" && Boolean(selectedValuesDescription);
|
|
182
|
+
const t7 = shouldExposeSelectedValuesDescription ? selectedValuesDescriptionId : undefined;
|
|
183
|
+
let t8;
|
|
184
|
+
if ($[34] !== ariaDescribedByProp || $[35] !== t7) {
|
|
185
|
+
t8 = [ariaDescribedByProp, t7].filter(Boolean);
|
|
186
|
+
$[34] = ariaDescribedByProp;
|
|
187
|
+
$[35] = t7;
|
|
188
|
+
$[36] = t8;
|
|
189
|
+
} else {
|
|
190
|
+
t8 = $[36];
|
|
191
|
+
}
|
|
192
|
+
const ariaDescribedBy = t8.join(" ");
|
|
193
|
+
let t9;
|
|
194
|
+
if ($[37] !== selectedTokenIndex) {
|
|
195
|
+
t9 = [selectedTokenIndex];
|
|
196
|
+
$[37] = selectedTokenIndex;
|
|
197
|
+
$[38] = t9;
|
|
198
|
+
} else {
|
|
199
|
+
t9 = $[38];
|
|
167
200
|
}
|
|
168
201
|
const {
|
|
169
|
-
containerRef:
|
|
202
|
+
containerRef: t10
|
|
170
203
|
} = useFocusZone({
|
|
171
204
|
focusOutBehavior: "wrap",
|
|
172
205
|
bindKeys: FocusKeys.ArrowHorizontal | FocusKeys.HomeAndEnd,
|
|
173
|
-
focusableElementFilter:
|
|
206
|
+
focusableElementFilter: _temp3,
|
|
174
207
|
getNextFocusable: direction => {
|
|
175
208
|
var _containerRef$current;
|
|
176
209
|
if (!selectedTokenIndex && selectedTokenIndex !== 0) {
|
|
@@ -188,16 +221,16 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
188
221
|
}
|
|
189
222
|
return (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.children[nextIndex];
|
|
190
223
|
}
|
|
191
|
-
},
|
|
192
|
-
const containerRef =
|
|
193
|
-
let
|
|
194
|
-
if ($[
|
|
195
|
-
|
|
224
|
+
}, t9);
|
|
225
|
+
const containerRef = t10;
|
|
226
|
+
let t11;
|
|
227
|
+
if ($[39] !== containerRef || $[40] !== onTokenRemove || $[41] !== selectedTokenIndex) {
|
|
228
|
+
t11 = tokenId => {
|
|
196
229
|
onTokenRemove(tokenId);
|
|
197
230
|
setTimeout(() => {
|
|
198
231
|
var _containerRef$current2, _containerRef$current3;
|
|
199
232
|
const nextElementToFocus = (_containerRef$current2 = containerRef.current) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.children[selectedTokenIndex || 0];
|
|
200
|
-
const firstFocusable = nextElementToFocus && isFocusable(nextElementToFocus) ? nextElementToFocus : Array.from(((_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.children) || []).find(
|
|
233
|
+
const firstFocusable = nextElementToFocus && isFocusable(nextElementToFocus) ? nextElementToFocus : Array.from(((_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.children) || []).find(_temp4);
|
|
201
234
|
if (firstFocusable) {
|
|
202
235
|
firstFocusable.focus();
|
|
203
236
|
} else {
|
|
@@ -206,30 +239,30 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
206
239
|
}
|
|
207
240
|
}, 0);
|
|
208
241
|
};
|
|
209
|
-
$[
|
|
210
|
-
$[
|
|
211
|
-
$[
|
|
212
|
-
$[
|
|
242
|
+
$[39] = containerRef;
|
|
243
|
+
$[40] = onTokenRemove;
|
|
244
|
+
$[41] = selectedTokenIndex;
|
|
245
|
+
$[42] = t11;
|
|
213
246
|
} else {
|
|
214
|
-
|
|
247
|
+
t11 = $[42];
|
|
215
248
|
}
|
|
216
|
-
const handleTokenRemove =
|
|
217
|
-
let
|
|
218
|
-
if ($[
|
|
219
|
-
|
|
249
|
+
const handleTokenRemove = t11;
|
|
250
|
+
let t12;
|
|
251
|
+
if ($[43] !== disabled) {
|
|
252
|
+
t12 = tokenIndex => () => {
|
|
220
253
|
if (!disabled) {
|
|
221
254
|
setSelectedTokenIndex(tokenIndex);
|
|
222
255
|
}
|
|
223
256
|
};
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
257
|
+
$[43] = disabled;
|
|
258
|
+
$[44] = t12;
|
|
226
259
|
} else {
|
|
227
|
-
|
|
260
|
+
t12 = $[44];
|
|
228
261
|
}
|
|
229
|
-
const handleTokenFocus =
|
|
230
|
-
let
|
|
231
|
-
if ($[
|
|
232
|
-
|
|
262
|
+
const handleTokenFocus = t12;
|
|
263
|
+
let t13;
|
|
264
|
+
if ($[45] !== containerRef || $[46] !== visibleTokenCount) {
|
|
265
|
+
t13 = () => {
|
|
233
266
|
setSelectedTokenIndex(undefined);
|
|
234
267
|
setTimeout(() => {
|
|
235
268
|
var _containerRef$current4;
|
|
@@ -238,43 +271,43 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
238
271
|
}
|
|
239
272
|
}, 0);
|
|
240
273
|
};
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
274
|
+
$[45] = containerRef;
|
|
275
|
+
$[46] = visibleTokenCount;
|
|
276
|
+
$[47] = t13;
|
|
244
277
|
} else {
|
|
245
|
-
|
|
278
|
+
t13 = $[47];
|
|
246
279
|
}
|
|
247
|
-
const handleTokenBlur =
|
|
248
|
-
let
|
|
249
|
-
if ($[
|
|
250
|
-
|
|
280
|
+
const handleTokenBlur = t13;
|
|
281
|
+
let t14;
|
|
282
|
+
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
283
|
+
t14 = event => {
|
|
251
284
|
if (event.key === "Escape") {
|
|
252
285
|
var _ref$current2;
|
|
253
286
|
(_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.focus();
|
|
254
287
|
}
|
|
255
288
|
};
|
|
256
|
-
$[
|
|
289
|
+
$[48] = t14;
|
|
257
290
|
} else {
|
|
258
|
-
|
|
291
|
+
t14 = $[48];
|
|
259
292
|
}
|
|
260
|
-
const handleTokenKeyUp =
|
|
261
|
-
let
|
|
262
|
-
if ($[
|
|
263
|
-
|
|
293
|
+
const handleTokenKeyUp = t14;
|
|
294
|
+
let t15;
|
|
295
|
+
if ($[49] !== onFocus || $[50] !== visibleTokenCount) {
|
|
296
|
+
t15 = event_0 => {
|
|
264
297
|
onFocus && onFocus(event_0);
|
|
265
298
|
setSelectedTokenIndex(undefined);
|
|
266
299
|
visibleTokenCount && setTokensAreTruncated(false);
|
|
267
300
|
};
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
$[
|
|
301
|
+
$[49] = onFocus;
|
|
302
|
+
$[50] = visibleTokenCount;
|
|
303
|
+
$[51] = t15;
|
|
271
304
|
} else {
|
|
272
|
-
|
|
305
|
+
t15 = $[51];
|
|
273
306
|
}
|
|
274
|
-
const handleInputFocus =
|
|
275
|
-
let
|
|
276
|
-
if ($[
|
|
277
|
-
|
|
307
|
+
const handleInputFocus = t15;
|
|
308
|
+
let t16;
|
|
309
|
+
if ($[52] !== containerRef || $[53] !== onBlur || $[54] !== visibleTokenCount) {
|
|
310
|
+
t16 = event_1 => {
|
|
278
311
|
onBlur && onBlur(event_1);
|
|
279
312
|
setTimeout(() => {
|
|
280
313
|
var _containerRef$current5;
|
|
@@ -283,17 +316,17 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
283
316
|
}
|
|
284
317
|
}, 0);
|
|
285
318
|
};
|
|
286
|
-
$[
|
|
287
|
-
$[
|
|
288
|
-
$[
|
|
289
|
-
$[
|
|
319
|
+
$[52] = containerRef;
|
|
320
|
+
$[53] = onBlur;
|
|
321
|
+
$[54] = visibleTokenCount;
|
|
322
|
+
$[55] = t16;
|
|
290
323
|
} else {
|
|
291
|
-
|
|
324
|
+
t16 = $[55];
|
|
292
325
|
}
|
|
293
|
-
const handleInputBlur =
|
|
294
|
-
let
|
|
295
|
-
if ($[
|
|
296
|
-
|
|
326
|
+
const handleInputBlur = t16;
|
|
327
|
+
let t17;
|
|
328
|
+
if ($[56] !== handleTokenRemove || $[57] !== onKeyDown || $[58] !== tokens) {
|
|
329
|
+
t17 = e => {
|
|
297
330
|
var _ref$current3;
|
|
298
331
|
if (onKeyDown) {
|
|
299
332
|
onKeyDown(e);
|
|
@@ -313,148 +346,175 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
313
346
|
}, 0);
|
|
314
347
|
}
|
|
315
348
|
};
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
$[
|
|
349
|
+
$[56] = handleTokenRemove;
|
|
350
|
+
$[57] = onKeyDown;
|
|
351
|
+
$[58] = tokens;
|
|
352
|
+
$[59] = t17;
|
|
320
353
|
} else {
|
|
321
|
-
|
|
354
|
+
t17 = $[59];
|
|
322
355
|
}
|
|
323
|
-
const handleInputKeyDown =
|
|
324
|
-
let
|
|
325
|
-
if ($[
|
|
326
|
-
|
|
356
|
+
const handleInputKeyDown = t17;
|
|
357
|
+
let t18;
|
|
358
|
+
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
359
|
+
t18 = () => {
|
|
327
360
|
var _ref$current5;
|
|
328
361
|
(_ref$current5 = ref.current) === null || _ref$current5 === void 0 ? void 0 : _ref$current5.focus();
|
|
329
362
|
};
|
|
330
|
-
$[
|
|
363
|
+
$[60] = t18;
|
|
331
364
|
} else {
|
|
332
|
-
|
|
365
|
+
t18 = $[60];
|
|
333
366
|
}
|
|
334
|
-
const focusInput =
|
|
335
|
-
const preventTokenClickPropagation =
|
|
336
|
-
let
|
|
337
|
-
if ($[
|
|
338
|
-
|
|
339
|
-
$[
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
367
|
+
const focusInput = t18;
|
|
368
|
+
const preventTokenClickPropagation = _temp5;
|
|
369
|
+
let t19;
|
|
370
|
+
if ($[61] !== tokens || $[62] !== tokensAreTruncated || $[63] !== visibleTokenCount) {
|
|
371
|
+
t19 = tokensAreTruncated ? tokens.slice(0, visibleTokenCount) : tokens;
|
|
372
|
+
$[61] = tokens;
|
|
373
|
+
$[62] = tokensAreTruncated;
|
|
374
|
+
$[63] = visibleTokenCount;
|
|
375
|
+
$[64] = t19;
|
|
343
376
|
} else {
|
|
344
|
-
|
|
377
|
+
t19 = $[64];
|
|
345
378
|
}
|
|
346
|
-
const visibleTokens =
|
|
347
|
-
let
|
|
348
|
-
if ($[
|
|
349
|
-
|
|
379
|
+
const visibleTokens = t19;
|
|
380
|
+
let t20;
|
|
381
|
+
if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
|
|
382
|
+
t20 = {
|
|
350
383
|
small: "small",
|
|
351
384
|
medium: "small",
|
|
352
385
|
large: "medium",
|
|
353
386
|
xlarge: "medium"
|
|
354
387
|
};
|
|
355
|
-
$[
|
|
388
|
+
$[65] = t20;
|
|
356
389
|
} else {
|
|
357
|
-
|
|
390
|
+
t20 = $[65];
|
|
358
391
|
}
|
|
359
|
-
const inputSizeMap =
|
|
392
|
+
const inputSizeMap = t20;
|
|
360
393
|
const showLeadingLoadingIndicator = loading && (loaderPosition === "leading" || Boolean(LeadingVisual && loaderPosition !== "trailing"));
|
|
361
394
|
const showTrailingLoadingIndicator = loading && (loaderPosition === "trailing" || loaderPosition === "auto" && !LeadingVisual);
|
|
362
|
-
const
|
|
363
|
-
const
|
|
364
|
-
const
|
|
365
|
-
const
|
|
366
|
-
let
|
|
367
|
-
if ($[
|
|
368
|
-
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
395
|
+
const t21 = Boolean(LeadingVisual || showLeadingLoadingIndicator);
|
|
396
|
+
const t22 = Boolean(TrailingVisual || showTrailingLoadingIndicator);
|
|
397
|
+
const t23 = inputSizeMap[size];
|
|
398
|
+
const t24 = Boolean(preventTokenWrapping || maxHeight) || undefined;
|
|
399
|
+
let t25;
|
|
400
|
+
if ($[66] !== className) {
|
|
401
|
+
t25 = clsx(className, styles.TextInputWrapper);
|
|
402
|
+
$[66] = className;
|
|
403
|
+
$[67] = t25;
|
|
371
404
|
} else {
|
|
372
|
-
|
|
405
|
+
t25 = $[67];
|
|
373
406
|
}
|
|
374
|
-
let
|
|
375
|
-
if ($[
|
|
376
|
-
|
|
407
|
+
let t26;
|
|
408
|
+
if ($[68] !== maxHeight || $[69] !== style) {
|
|
409
|
+
t26 = maxHeight ? {
|
|
377
410
|
maxHeight,
|
|
378
411
|
...style
|
|
379
412
|
} : style;
|
|
380
|
-
$[
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
413
|
+
$[68] = maxHeight;
|
|
414
|
+
$[69] = style;
|
|
415
|
+
$[70] = t26;
|
|
383
416
|
} else {
|
|
384
|
-
|
|
417
|
+
t26 = $[70];
|
|
385
418
|
}
|
|
386
|
-
let
|
|
387
|
-
if ($[
|
|
388
|
-
|
|
419
|
+
let t27;
|
|
420
|
+
if ($[71] !== IconComponent || $[72] !== LeadingVisual) {
|
|
421
|
+
t27 = IconComponent && !LeadingVisual && /*#__PURE__*/jsx(IconComponent, {
|
|
389
422
|
className: "TextInput-icon"
|
|
390
423
|
});
|
|
391
|
-
$[
|
|
392
|
-
$[
|
|
393
|
-
$[
|
|
424
|
+
$[71] = IconComponent;
|
|
425
|
+
$[72] = LeadingVisual;
|
|
426
|
+
$[73] = t27;
|
|
394
427
|
} else {
|
|
395
|
-
|
|
428
|
+
t27 = $[73];
|
|
396
429
|
}
|
|
397
|
-
const
|
|
398
|
-
let
|
|
399
|
-
if ($[
|
|
400
|
-
|
|
401
|
-
$[
|
|
402
|
-
$[
|
|
430
|
+
const t28 = typeof loading === "boolean";
|
|
431
|
+
let t29;
|
|
432
|
+
if ($[74] !== LeadingVisual) {
|
|
433
|
+
t29 = typeof LeadingVisual !== "string" && isValidElementType(LeadingVisual) ? /*#__PURE__*/jsx(LeadingVisual, {}) : LeadingVisual;
|
|
434
|
+
$[74] = LeadingVisual;
|
|
435
|
+
$[75] = t29;
|
|
403
436
|
} else {
|
|
404
|
-
|
|
437
|
+
t29 = $[75];
|
|
405
438
|
}
|
|
406
|
-
let
|
|
407
|
-
if ($[
|
|
408
|
-
|
|
409
|
-
hasLoadingIndicator:
|
|
439
|
+
let t30;
|
|
440
|
+
if ($[76] !== showLeadingLoadingIndicator || $[77] !== t28 || $[78] !== t29) {
|
|
441
|
+
t30 = /*#__PURE__*/jsx(TextInputInnerVisualSlot, {
|
|
442
|
+
hasLoadingIndicator: t28,
|
|
410
443
|
visualPosition: "leading",
|
|
411
444
|
showLoadingIndicator: showLeadingLoadingIndicator,
|
|
412
|
-
children:
|
|
445
|
+
children: t29
|
|
446
|
+
});
|
|
447
|
+
$[76] = showLeadingLoadingIndicator;
|
|
448
|
+
$[77] = t28;
|
|
449
|
+
$[78] = t29;
|
|
450
|
+
$[79] = t30;
|
|
451
|
+
} else {
|
|
452
|
+
t30 = $[79];
|
|
453
|
+
}
|
|
454
|
+
const t31 = containerRef;
|
|
455
|
+
const t32 = validationStatus === "error" ? "true" : "false";
|
|
456
|
+
const t33 = ariaDescribedBy || undefined;
|
|
457
|
+
let t34;
|
|
458
|
+
if ($[80] !== disabled || $[81] !== handleInputBlur || $[82] !== handleInputFocus || $[83] !== handleInputKeyDown || $[84] !== inputPropsRest || $[85] !== role || $[86] !== t32 || $[87] !== t33) {
|
|
459
|
+
t34 = /*#__PURE__*/jsx(UnstyledTextInput, {
|
|
460
|
+
ref: ref,
|
|
461
|
+
disabled: disabled,
|
|
462
|
+
onFocus: handleInputFocus,
|
|
463
|
+
onBlur: handleInputBlur,
|
|
464
|
+
onKeyDown: handleInputKeyDown,
|
|
465
|
+
type: "text",
|
|
466
|
+
className: styles.UnstyledTextInput,
|
|
467
|
+
"aria-invalid": t32,
|
|
468
|
+
role: role,
|
|
469
|
+
"aria-describedby": t33,
|
|
470
|
+
...inputPropsRest
|
|
413
471
|
});
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
472
|
+
$[80] = disabled;
|
|
473
|
+
$[81] = handleInputBlur;
|
|
474
|
+
$[82] = handleInputFocus;
|
|
475
|
+
$[83] = handleInputKeyDown;
|
|
476
|
+
$[84] = inputPropsRest;
|
|
477
|
+
$[85] = role;
|
|
478
|
+
$[86] = t32;
|
|
479
|
+
$[87] = t33;
|
|
480
|
+
$[88] = t34;
|
|
418
481
|
} else {
|
|
419
|
-
|
|
482
|
+
t34 = $[88];
|
|
420
483
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
484
|
+
let t35;
|
|
485
|
+
if ($[89] !== selectedValuesDescription || $[90] !== selectedValuesDescriptionId || $[91] !== shouldExposeSelectedValuesDescription) {
|
|
486
|
+
t35 = shouldExposeSelectedValuesDescription ? /*#__PURE__*/jsx(VisuallyHidden, {
|
|
487
|
+
id: selectedValuesDescriptionId,
|
|
488
|
+
children: selectedValuesDescription
|
|
489
|
+
}) : null;
|
|
490
|
+
$[89] = selectedValuesDescription;
|
|
491
|
+
$[90] = selectedValuesDescriptionId;
|
|
492
|
+
$[91] = shouldExposeSelectedValuesDescription;
|
|
493
|
+
$[92] = t35;
|
|
494
|
+
} else {
|
|
495
|
+
t35 = $[92];
|
|
496
|
+
}
|
|
497
|
+
let t36;
|
|
498
|
+
if ($[93] !== t34 || $[94] !== t35) {
|
|
499
|
+
t36 = /*#__PURE__*/jsxs("div", {
|
|
426
500
|
className: styles.InputWrapper,
|
|
427
|
-
children:
|
|
428
|
-
ref: ref,
|
|
429
|
-
disabled: disabled,
|
|
430
|
-
onFocus: handleInputFocus,
|
|
431
|
-
onBlur: handleInputBlur,
|
|
432
|
-
onKeyDown: handleInputKeyDown,
|
|
433
|
-
type: "text",
|
|
434
|
-
className: styles.UnstyledTextInput,
|
|
435
|
-
"aria-invalid": t29,
|
|
436
|
-
...inputPropsRest
|
|
437
|
-
})
|
|
501
|
+
children: [t34, t35]
|
|
438
502
|
});
|
|
439
|
-
$[
|
|
440
|
-
$[
|
|
441
|
-
$[
|
|
442
|
-
$[76] = handleInputKeyDown;
|
|
443
|
-
$[77] = inputPropsRest;
|
|
444
|
-
$[78] = t29;
|
|
445
|
-
$[79] = t30;
|
|
503
|
+
$[93] = t34;
|
|
504
|
+
$[94] = t35;
|
|
505
|
+
$[95] = t36;
|
|
446
506
|
} else {
|
|
447
|
-
|
|
507
|
+
t36 = $[95];
|
|
448
508
|
}
|
|
449
|
-
let
|
|
450
|
-
if ($[
|
|
451
|
-
let
|
|
452
|
-
if ($[
|
|
453
|
-
|
|
509
|
+
let t37;
|
|
510
|
+
if ($[96] !== TokenComponent || $[97] !== disabled || $[98] !== handleTokenBlur || $[99] !== handleTokenFocus || $[100] !== handleTokenRemove || $[101] !== hideTokenRemoveButtons || $[102] !== selectedTokenIndex || $[103] !== size || $[104] !== visibleTokens) {
|
|
511
|
+
let t38;
|
|
512
|
+
if ($[106] !== TokenComponent || $[107] !== disabled || $[108] !== handleTokenBlur || $[109] !== handleTokenFocus || $[110] !== handleTokenRemove || $[111] !== hideTokenRemoveButtons || $[112] !== selectedTokenIndex || $[113] !== size) {
|
|
513
|
+
t38 = (t39, i) => {
|
|
454
514
|
const {
|
|
455
515
|
id,
|
|
456
516
|
...tokenRest
|
|
457
|
-
} =
|
|
517
|
+
} = t39;
|
|
458
518
|
return /*#__PURE__*/jsx(TokenComponent, {
|
|
459
519
|
disabled: disabled,
|
|
460
520
|
onFocus: handleTokenFocus(i),
|
|
@@ -471,140 +531,149 @@ function TextInputWithTokensInnerComponent(t0, forwardedRef) {
|
|
|
471
531
|
...tokenRest
|
|
472
532
|
}, id);
|
|
473
533
|
};
|
|
474
|
-
$[
|
|
475
|
-
$[
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
$[
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
534
|
+
$[106] = TokenComponent;
|
|
535
|
+
$[107] = disabled;
|
|
536
|
+
$[108] = handleTokenBlur;
|
|
537
|
+
$[109] = handleTokenFocus;
|
|
538
|
+
$[110] = handleTokenRemove;
|
|
539
|
+
$[111] = hideTokenRemoveButtons;
|
|
540
|
+
$[112] = selectedTokenIndex;
|
|
541
|
+
$[113] = size;
|
|
542
|
+
$[114] = t38;
|
|
483
543
|
} else {
|
|
484
|
-
|
|
544
|
+
t38 = $[114];
|
|
485
545
|
}
|
|
486
|
-
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
546
|
+
t37 = visibleTokens.map(t38);
|
|
547
|
+
$[96] = TokenComponent;
|
|
548
|
+
$[97] = disabled;
|
|
549
|
+
$[98] = handleTokenBlur;
|
|
550
|
+
$[99] = handleTokenFocus;
|
|
551
|
+
$[100] = handleTokenRemove;
|
|
552
|
+
$[101] = hideTokenRemoveButtons;
|
|
553
|
+
$[102] = selectedTokenIndex;
|
|
554
|
+
$[103] = size;
|
|
555
|
+
$[104] = visibleTokens;
|
|
556
|
+
$[105] = t37;
|
|
497
557
|
} else {
|
|
498
|
-
|
|
558
|
+
t37 = $[105];
|
|
499
559
|
}
|
|
500
|
-
let
|
|
501
|
-
if ($[
|
|
502
|
-
|
|
560
|
+
let t38;
|
|
561
|
+
if ($[115] !== size || $[116] !== tokens.length || $[117] !== tokensAreTruncated || $[118] !== visibleTokens.length) {
|
|
562
|
+
t38 = tokensAreTruncated && tokens.length - visibleTokens.length ? /*#__PURE__*/jsxs(Text, {
|
|
503
563
|
className: overflowCountClassMap[size],
|
|
504
564
|
children: ["+", tokens.length - visibleTokens.length]
|
|
505
565
|
}) : null;
|
|
506
|
-
$[
|
|
507
|
-
$[
|
|
508
|
-
$[
|
|
509
|
-
$[
|
|
510
|
-
$[
|
|
566
|
+
$[115] = size;
|
|
567
|
+
$[116] = tokens.length;
|
|
568
|
+
$[117] = tokensAreTruncated;
|
|
569
|
+
$[118] = visibleTokens.length;
|
|
570
|
+
$[119] = t38;
|
|
511
571
|
} else {
|
|
512
|
-
|
|
572
|
+
t38 = $[119];
|
|
513
573
|
}
|
|
514
|
-
let
|
|
515
|
-
if ($[
|
|
516
|
-
|
|
517
|
-
ref:
|
|
574
|
+
let t39;
|
|
575
|
+
if ($[120] !== preventTokenWrapping || $[121] !== t31 || $[122] !== t36 || $[123] !== t37 || $[124] !== t38) {
|
|
576
|
+
t39 = /*#__PURE__*/jsxs("div", {
|
|
577
|
+
ref: t31,
|
|
518
578
|
className: styles.Container,
|
|
519
579
|
"data-prevent-token-wrapping": preventTokenWrapping,
|
|
520
|
-
children: [
|
|
580
|
+
children: [t36, t37, t38]
|
|
521
581
|
});
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
525
|
-
$[
|
|
526
|
-
$[
|
|
527
|
-
$[
|
|
582
|
+
$[120] = preventTokenWrapping;
|
|
583
|
+
$[121] = t31;
|
|
584
|
+
$[122] = t36;
|
|
585
|
+
$[123] = t37;
|
|
586
|
+
$[124] = t38;
|
|
587
|
+
$[125] = t39;
|
|
528
588
|
} else {
|
|
529
|
-
|
|
589
|
+
t39 = $[125];
|
|
530
590
|
}
|
|
531
|
-
const
|
|
532
|
-
let
|
|
533
|
-
if ($[
|
|
534
|
-
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
591
|
+
const t40 = typeof loading === "boolean";
|
|
592
|
+
let t41;
|
|
593
|
+
if ($[126] !== TrailingVisual) {
|
|
594
|
+
t41 = typeof TrailingVisual !== "string" && isValidElementType(TrailingVisual) ? /*#__PURE__*/jsx(TrailingVisual, {}) : TrailingVisual;
|
|
595
|
+
$[126] = TrailingVisual;
|
|
596
|
+
$[127] = t41;
|
|
537
597
|
} else {
|
|
538
|
-
|
|
598
|
+
t41 = $[127];
|
|
539
599
|
}
|
|
540
|
-
let
|
|
541
|
-
if ($[
|
|
542
|
-
|
|
543
|
-
hasLoadingIndicator:
|
|
600
|
+
let t42;
|
|
601
|
+
if ($[128] !== showTrailingLoadingIndicator || $[129] !== t40 || $[130] !== t41) {
|
|
602
|
+
t42 = /*#__PURE__*/jsx(TextInputInnerVisualSlot, {
|
|
603
|
+
hasLoadingIndicator: t40,
|
|
544
604
|
visualPosition: "trailing",
|
|
545
605
|
showLoadingIndicator: showTrailingLoadingIndicator,
|
|
546
|
-
children:
|
|
606
|
+
children: t41
|
|
547
607
|
});
|
|
548
|
-
$[
|
|
549
|
-
$[
|
|
550
|
-
$[
|
|
551
|
-
$[
|
|
608
|
+
$[128] = showTrailingLoadingIndicator;
|
|
609
|
+
$[129] = t40;
|
|
610
|
+
$[130] = t41;
|
|
611
|
+
$[131] = t42;
|
|
552
612
|
} else {
|
|
553
|
-
|
|
613
|
+
t42 = $[131];
|
|
554
614
|
}
|
|
555
|
-
let
|
|
556
|
-
if ($[
|
|
557
|
-
|
|
615
|
+
let t43;
|
|
616
|
+
if ($[132] !== block || $[133] !== contrast || $[134] !== disabled || $[135] !== maxWidthProp || $[136] !== minWidthProp || $[137] !== t21 || $[138] !== t22 || $[139] !== t23 || $[140] !== t24 || $[141] !== t25 || $[142] !== t26 || $[143] !== t27 || $[144] !== t30 || $[145] !== t39 || $[146] !== t42 || $[147] !== validationStatus || $[148] !== variantProp || $[149] !== widthProp) {
|
|
617
|
+
t43 = /*#__PURE__*/jsxs(TextInputWrapper, {
|
|
558
618
|
block: block,
|
|
559
619
|
contrast: contrast,
|
|
560
620
|
disabled: disabled,
|
|
561
|
-
hasLeadingVisual:
|
|
562
|
-
hasTrailingVisual:
|
|
621
|
+
hasLeadingVisual: t21,
|
|
622
|
+
hasTrailingVisual: t22,
|
|
563
623
|
width: widthProp,
|
|
564
624
|
minWidth: minWidthProp,
|
|
565
625
|
maxWidth: maxWidthProp,
|
|
566
|
-
size:
|
|
626
|
+
size: t23,
|
|
567
627
|
validationStatus: validationStatus,
|
|
568
628
|
variant: variantProp,
|
|
569
629
|
onClick: focusInput,
|
|
570
|
-
"data-token-wrapping":
|
|
571
|
-
className:
|
|
572
|
-
style:
|
|
573
|
-
children: [
|
|
630
|
+
"data-token-wrapping": t24,
|
|
631
|
+
className: t25,
|
|
632
|
+
style: t26,
|
|
633
|
+
children: [t27, t30, t39, t42]
|
|
574
634
|
});
|
|
575
|
-
$[
|
|
576
|
-
$[
|
|
577
|
-
$[
|
|
578
|
-
$[
|
|
579
|
-
$[
|
|
580
|
-
$[
|
|
581
|
-
$[
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
$[
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
593
|
-
$[
|
|
635
|
+
$[132] = block;
|
|
636
|
+
$[133] = contrast;
|
|
637
|
+
$[134] = disabled;
|
|
638
|
+
$[135] = maxWidthProp;
|
|
639
|
+
$[136] = minWidthProp;
|
|
640
|
+
$[137] = t21;
|
|
641
|
+
$[138] = t22;
|
|
642
|
+
$[139] = t23;
|
|
643
|
+
$[140] = t24;
|
|
644
|
+
$[141] = t25;
|
|
645
|
+
$[142] = t26;
|
|
646
|
+
$[143] = t27;
|
|
647
|
+
$[144] = t30;
|
|
648
|
+
$[145] = t39;
|
|
649
|
+
$[146] = t42;
|
|
650
|
+
$[147] = validationStatus;
|
|
651
|
+
$[148] = variantProp;
|
|
652
|
+
$[149] = widthProp;
|
|
653
|
+
$[150] = t43;
|
|
594
654
|
} else {
|
|
595
|
-
|
|
655
|
+
t43 = $[150];
|
|
596
656
|
}
|
|
597
|
-
return
|
|
657
|
+
return t43;
|
|
598
658
|
}
|
|
599
|
-
function
|
|
659
|
+
function _temp5(event_2) {
|
|
600
660
|
event_2.stopPropagation();
|
|
601
661
|
}
|
|
602
|
-
function
|
|
662
|
+
function _temp4(el) {
|
|
603
663
|
return isFocusable(el);
|
|
604
664
|
}
|
|
605
|
-
function
|
|
665
|
+
function _temp3(element) {
|
|
606
666
|
return !element.getAttributeNames().includes("aria-hidden");
|
|
607
667
|
}
|
|
668
|
+
function _temp2(tokenText) {
|
|
669
|
+
return tokenText !== null;
|
|
670
|
+
}
|
|
671
|
+
function _temp(token) {
|
|
672
|
+
if ("text" in token && typeof token.text === "string" && token.text.trim().length) {
|
|
673
|
+
return token.text;
|
|
674
|
+
}
|
|
675
|
+
return null;
|
|
676
|
+
}
|
|
608
677
|
const TextInputWithTokens = /*#__PURE__*/React.forwardRef(TextInputWithTokensInnerComponent);
|
|
609
678
|
TextInputWithTokens.displayName = 'TextInputWithTokens';
|
|
610
679
|
TextInputWithTokens.__SLOT__ = Symbol('TextInputWithTokens');
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.prc-Timeline-Timeline-awSoC{display:flex;flex-direction:column}.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar]) .prc-Timeline-TimelineItem-QwDVH:first-child{padding-top:0}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar]) .prc-Timeline-TimelineItem-QwDVH:first-child):where([data-condensed]):before{top:var(--base-size-12,.75rem)}.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar]) .prc-Timeline-TimelineItem-QwDVH:last-child{padding-bottom:0}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar]) .prc-Timeline-TimelineItem-QwDVH:last-child):where([data-condensed]):before{height:var(--base-size-12,.75rem)}.prc-Timeline-TimelineItem-QwDVH{display:flex;margin-left:var(--base-size-16,1rem);padding:var(--base-size-16,1rem) 0;position:relative}.prc-Timeline-TimelineItem-QwDVH:before{background-color:var(--borderColor-muted,var(--color-border-muted));bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:2px}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]){padding-bottom:0;padding-top:var(--base-size-4,.25rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]):last-child{padding-bottom:var(--base-size-16,1rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]) .prc-Timeline-TimelineBadge-u0qSm{background-color:var(--bgColor-default,var(--color-canvas-default));border:0;color:var(--fgColor-muted,var(--color-fg-muted));height:16px;margin-bottom:var(--base-size-8,.5rem);margin-top:var(--base-size-8,.5rem)}.prc-Timeline-TimelineBadgeWrapper-SZw4k{position:relative;z-index:1}.prc-Timeline-TimelineBadge-u0qSm{align-items:center;background-color:var(--timelineBadge-bgColor,var(--color-timeline-badge-bg));border-color:var(--bgColor-default,var(--color-canvas-default));border-radius:50%;border-style:solid;border-width:var(--borderWidth-thick,.125rem);display:flex;flex-shrink:0;height:32px;justify-content:center;margin-left:-15px;margin-right:var(--base-size-8,.5rem);overflow:hidden;width:32px}.prc-Timeline-TimelineBadge-u0qSm,.prc-Timeline-TimelineBody-tjOtb{color:var(--fgColor-muted,var(--color-fg-muted))}.prc-Timeline-TimelineBody-tjOtb{flex:auto;font-size:var(--text-body-size-medium,.875rem);margin-top:
|
|
2
|
-
/*# sourceMappingURL=Timeline-
|
|
1
|
+
.prc-Timeline-Timeline-awSoC{display:flex;flex-direction:column}.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar]) .prc-Timeline-TimelineItem-QwDVH:first-child{padding-top:0}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar]) .prc-Timeline-TimelineItem-QwDVH:first-child):where([data-condensed]):before{top:var(--base-size-12,.75rem)}.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar]) .prc-Timeline-TimelineItem-QwDVH:last-child{padding-bottom:0}:is(.prc-Timeline-Timeline-awSoC:where([data-clip-sidebar]) .prc-Timeline-TimelineItem-QwDVH:last-child):where([data-condensed]):before{height:var(--base-size-12,.75rem)}.prc-Timeline-TimelineItem-QwDVH{display:flex;margin-left:var(--base-size-16,1rem);padding:var(--base-size-16,1rem) 0;position:relative}.prc-Timeline-TimelineItem-QwDVH:before{background-color:var(--borderColor-muted,var(--color-border-muted));bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:2px}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]){padding-bottom:0;padding-top:var(--base-size-4,.25rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]):last-child{padding-bottom:var(--base-size-16,1rem)}.prc-Timeline-TimelineItem-QwDVH:where([data-condensed]) .prc-Timeline-TimelineBadge-u0qSm{background-color:var(--bgColor-default,var(--color-canvas-default));border:0;color:var(--fgColor-muted,var(--color-fg-muted));height:16px;margin-bottom:var(--base-size-8,.5rem);margin-top:var(--base-size-8,.5rem)}.prc-Timeline-TimelineBadgeWrapper-SZw4k{position:relative;z-index:1}.prc-Timeline-TimelineBadge-u0qSm{align-items:center;background-color:var(--timelineBadge-bgColor,var(--color-timeline-badge-bg));border-color:var(--bgColor-default,var(--color-canvas-default));border-radius:50%;border-style:solid;border-width:var(--borderWidth-thick,.125rem);display:flex;flex-shrink:0;height:32px;justify-content:center;margin-left:-15px;margin-right:var(--base-size-8,.5rem);overflow:hidden;width:32px}.prc-Timeline-TimelineBadge-u0qSm,.prc-Timeline-TimelineBody-tjOtb{color:var(--fgColor-muted,var(--color-fg-muted))}.prc-Timeline-TimelineBody-tjOtb{flex:auto;font-size:var(--text-body-size-medium,.875rem);margin-top:var(--base-size-4,.25rem);max-width:100%;min-width:0}.prc-Timeline-TimelineBreak-X8eti{background-color:var(--bgColor-default,var(--color-canvas-default));border:0;border-top:var(--borderWidth-thicker,.25rem) solid var(--borderColor-default,var(--color-border-default));height:var(--base-size-24,1.5rem);margin:0;margin-bottom:calc(var(--base-size-16,1rem)*-1);margin-left:0;position:relative;z-index:1}.prc-Timeline-TimelineBreak-X8eti:has(+[data-condensed]){margin-bottom:calc(var(--base-size-12,.75rem)*-1)}
|
|
2
|
+
/*# sourceMappingURL=Timeline-116393ee.css.map */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Timeline/Timeline.module.css.js"],"names":[],"mappings":"AAAA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C,+DAAoC,CAGpC,iBAAkB,CAFlB,kBAAmB,CACnB,6CAAsC,CAftC,YAAa,CAMb,aAAc,CAJd,WAAY,CAgBZ,sBAAuB,CAbvB,iBAAkB,CAFlB,qCAAgC,CAIhC,eAAgB,CANhB,UAkBF,CAEA,mEAbE,gDAoBF,CAPA,iCAME,SAAU,CAFV,8CAAuC,CADvC,oCAA8B,CAD9B,cAAe,CADf,WAMF,CAEA,kCAOE,mEAAwC,CACxC,QAAS,CACT,yGAAuE,CANvE,iCAA2B,CAC3B,QAAS,CACT,+CAA6C,CAC7C,aAAc,CALd,iBAAkB,CAClB,SAYF,CAHE,yDACE,iDACF","file":"Timeline-116393ee.css","sourcesContent":[".Timeline {\n display: flex;\n flex-direction: column;\n\n &:where([data-clip-sidebar]) {\n .TimelineItem:first-child {\n padding-top: 0;\n\n &:where([data-condensed])::before {\n top: var(--base-size-12);\n }\n }\n\n .TimelineItem:last-child {\n padding-bottom: 0;\n\n &:where([data-condensed])::before {\n height: var(--base-size-12);\n }\n }\n }\n}\n\n.TimelineItem {\n position: relative;\n display: flex;\n padding: var(--base-size-16) 0;\n margin-left: var(--base-size-16);\n\n &::before {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n display: block;\n width: 2px;\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--borderColor-muted);\n }\n\n &:where([data-condensed]) {\n padding-top: var(--base-size-4);\n padding-bottom: 0;\n\n &:last-child {\n padding-bottom: var(--base-size-16);\n }\n\n .TimelineBadge {\n height: 16px;\n margin-top: var(--base-size-8);\n margin-bottom: var(--base-size-8);\n color: var(--fgColor-muted);\n background-color: var(--bgColor-default);\n border: 0;\n }\n }\n}\n\n.TimelineBadgeWrapper {\n position: relative;\n z-index: 1;\n}\n\n.TimelineBadge {\n display: flex;\n width: 32px;\n height: 32px;\n margin-right: var(--base-size-8);\n /* stylelint-disable-next-line primer/spacing */\n margin-left: -15px;\n flex-shrink: 0;\n overflow: hidden;\n color: var(--fgColor-muted);\n\n /* TODOl not quite sure if this is the correct migration for this line */\n background-color: var(--timelineBadge-bgColor);\n /* stylelint-disable-next-line primer/colors */\n border-color: var(--bgColor-default);\n border-style: solid;\n border-width: var(--borderWidth-thick);\n border-radius: 50%;\n align-items: center;\n justify-content: center;\n}\n\n.TimelineBody {\n min-width: 0;\n max-width: 100%;\n margin-top: var(--base-size-4);\n font-size: var(--text-body-size-medium);\n color: var(--fgColor-muted);\n flex: auto;\n}\n\n.TimelineBreak {\n position: relative;\n z-index: 1;\n height: var(--base-size-24);\n margin: 0;\n margin-bottom: calc(-1 * var(--base-size-16));\n margin-left: 0;\n background-color: var(--bgColor-default);\n border: 0;\n border-top: var(--borderWidth-thicker) solid var(--borderColor-default);\n\n &:has(+ [data-condensed]) {\n margin-bottom: calc(-1 * var(--base-size-12));\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Timeline-
|
|
1
|
+
import './Timeline-116393ee.css';
|
|
2
2
|
|
|
3
3
|
var classes = {"Timeline":"prc-Timeline-Timeline-awSoC","TimelineItem":"prc-Timeline-TimelineItem-QwDVH","TimelineBadge":"prc-Timeline-TimelineBadge-u0qSm","TimelineBadgeWrapper":"prc-Timeline-TimelineBadgeWrapper-SZw4k","TimelineBody":"prc-Timeline-TimelineBody-tjOtb","TimelineBreak":"prc-Timeline-TimelineBreak-X8eti"};
|
|
4
4
|
|
|
@@ -6,7 +6,7 @@ export type TooltipProps = React.PropsWithChildren<{
|
|
|
6
6
|
direction?: TooltipDirection;
|
|
7
7
|
text: string;
|
|
8
8
|
type?: 'label' | 'description';
|
|
9
|
-
keybindingHint?: KeybindingHintProps['keys']
|
|
9
|
+
keybindingHint?: KeybindingHintProps['keys'];
|
|
10
10
|
/**
|
|
11
11
|
* Delay in milliseconds before showing the tooltip
|
|
12
12
|
* @default short (50ms)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../src/TooltipV2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KG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IACnC;;;;;;;;OAQG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAC,GACA,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAiEnC,eAAO,MAAM,cAAc;gBAAoC,MAAM;EAAM,CAAA;AAE3E,eAAO,MAAM,OAAO,EAAE,yBAAyB,CAC7C,KAAK,CAAC,eAAe,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CACvE,GACC,UAgRD,CAAA"}
|
|
@@ -196,9 +196,6 @@ const Tooltip = /*#__PURE__*/React.forwardRef(({
|
|
|
196
196
|
}, [isPopoverOpen]);
|
|
197
197
|
const isMacOS = useIsMacOS();
|
|
198
198
|
const hasAriaLabel = 'aria-label' in rest;
|
|
199
|
-
|
|
200
|
-
// Normalize keybindingHint to an array for uniform rendering, treating empty arrays as undefined
|
|
201
|
-
const keybindingHints = keybindingHint ? Array.isArray(keybindingHint) ? keybindingHint.length > 0 ? keybindingHint : undefined : [keybindingHint] : undefined;
|
|
202
199
|
return /*#__PURE__*/jsx(TooltipContext.Provider, {
|
|
203
200
|
value: value,
|
|
204
201
|
children: /*#__PURE__*/jsxs(Fragment, {
|
|
@@ -286,24 +283,22 @@ const Tooltip = /*#__PURE__*/React.forwardRef(({
|
|
|
286
283
|
onMouseLeave: closeTooltip
|
|
287
284
|
// If there is an aria-label prop, always assign the ID to the parent so the accessible label can be overridden
|
|
288
285
|
,
|
|
289
|
-
id: hasAriaLabel || !
|
|
290
|
-
children:
|
|
286
|
+
id: hasAriaLabel || !keybindingHint ? tooltipId : undefined,
|
|
287
|
+
children: keybindingHint ? /*#__PURE__*/jsxs(Fragment, {
|
|
291
288
|
children: [/*#__PURE__*/jsxs("span", {
|
|
292
289
|
id: hasAriaLabel ? undefined : tooltipId,
|
|
293
290
|
children: [text, /*#__PURE__*/jsxs(VisuallyHidden, {
|
|
294
|
-
children: ["(",
|
|
291
|
+
children: ["(", getAccessibleKeybindingHintString(keybindingHint, isMacOS), ")"]
|
|
295
292
|
})]
|
|
296
293
|
}), /*#__PURE__*/jsx("span", {
|
|
297
294
|
className: clsx(classes.KeybindingHintContainer, text && classes.HasTextBefore),
|
|
298
295
|
"aria-hidden": true,
|
|
299
|
-
children:
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
})]
|
|
306
|
-
}, `${i}-${hint}`))
|
|
296
|
+
children: /*#__PURE__*/jsx(KeybindingHint, {
|
|
297
|
+
keys: keybindingHint,
|
|
298
|
+
format: "condensed",
|
|
299
|
+
variant: "onEmphasis",
|
|
300
|
+
size: "small"
|
|
301
|
+
})
|
|
307
302
|
})]
|
|
308
303
|
}) : text
|
|
309
304
|
})]
|
|
@@ -3003,14 +3003,6 @@
|
|
|
3003
3003
|
{
|
|
3004
3004
|
"id": "components-dialog-features--retains-focus-trap-with-dynamic-content",
|
|
3005
3005
|
"code": "() => {\n const [isOpen, setIsOpen] = useState(false)\n const [secondOpen, setSecondOpen] = useState(false)\n const [expandContent, setExpandContent] = useState(false)\n const [changeBodyContent, setChangeBodyContent] = useState(false)\n const buttonRef = useRef<HTMLButtonElement>(null)\n const onDialogClose = useCallback(() => setIsOpen(false), [])\n const onSecondDialogClose = useCallback(() => setSecondOpen(false), [])\n const openSecondDialog = useCallback(() => setSecondOpen(true), [])\n const renderFooterConditionally = () => {\n if (!changeBodyContent) return null\n return (\n <Dialog.Footer>\n <Button variant=\"primary\">Submit</Button>\n </Dialog.Footer>\n )\n }\n return (\n <>\n <Button ref={buttonRef} onClick={() => setIsOpen(!isOpen)}>\n Show dialog\n </Button>\n {isOpen && (\n <Dialog\n title=\"My Dialog\"\n onClose={onDialogClose}\n renderFooter={renderFooterConditionally}\n >\n <Button onClick={() => setExpandContent(!expandContent)}>\n Click me to dynamically {expandContent ? 'remove' : 'render'}{' '}\n content\n </Button>\n <Button onClick={() => setChangeBodyContent(!changeBodyContent)}>\n Click me to {changeBodyContent ? 'remove' : 'add'} a footer\n </Button>\n <Button onClick={openSecondDialog}>\n Click me to open a new dialog\n </Button>\n {expandContent && (\n <Stack gap=\"normal\" direction=\"vertical\">\n {lipsum}\n <Button>Dialog Button Example 1</Button>\n <Button>Dialog Button Example 2</Button>\n </Stack>\n )}\n {secondOpen && (\n <Dialog\n title=\"Inner dialog!\"\n onClose={onSecondDialogClose}\n width=\"small\"\n >\n Hello world\n </Dialog>\n )}\n </Dialog>\n )}\n </>\n )\n}"
|
|
3006
|
-
},
|
|
3007
|
-
{
|
|
3008
|
-
"id": "components-dialog-features--align-top",
|
|
3009
|
-
"code": "() => {\n const [isOpen, setIsOpen] = useState(true)\n const buttonRef = useRef<HTMLButtonElement>(null)\n const onDialogClose = useCallback(() => setIsOpen(false), [])\n return (\n <>\n <Button ref={buttonRef} onClick={() => setIsOpen(true)}>\n Show dialog\n </Button>\n {isOpen && (\n <Dialog title=\"My Dialog\" onClose={onDialogClose} align=\"top\">\n {bodyContent}\n </Dialog>\n )}\n </>\n )\n}"
|
|
3010
|
-
},
|
|
3011
|
-
{
|
|
3012
|
-
"id": "components-dialog-features--align-bottom",
|
|
3013
|
-
"code": "() => {\n const [isOpen, setIsOpen] = useState(true)\n const buttonRef = useRef<HTMLButtonElement>(null)\n const onDialogClose = useCallback(() => setIsOpen(false), [])\n return (\n <>\n <Button ref={buttonRef} onClick={() => setIsOpen(true)}>\n Show dialog\n </Button>\n {isOpen && (\n <Dialog title=\"My Dialog\" onClose={onDialogClose} align=\"bottom\">\n {bodyContent}\n </Dialog>\n )}\n </>\n )\n}"
|
|
3014
3006
|
}
|
|
3015
3007
|
],
|
|
3016
3008
|
"importPath": "@primer/react",
|
|
@@ -3082,24 +3074,11 @@
|
|
|
3082
3074
|
"description": "The position of the dialog",
|
|
3083
3075
|
"defaultValue": ""
|
|
3084
3076
|
},
|
|
3085
|
-
{
|
|
3086
|
-
"name": "align",
|
|
3087
|
-
"type": "'top' | 'center' | 'bottom'",
|
|
3088
|
-
"required": false,
|
|
3089
|
-
"description": "The vertical alignment of the dialog. Only applies when position is 'center' (the default). 'top' positions the Dialog ~4rem from the top of the screen, 'center' (default) vertically centers the Dialog, 'bottom' positions the Dialog near the bottom of the screen.",
|
|
3090
|
-
"defaultValue": ""
|
|
3091
|
-
},
|
|
3092
3077
|
{
|
|
3093
3078
|
"name": "className",
|
|
3094
3079
|
"type": "string | undefined",
|
|
3095
3080
|
"defaultValue": "",
|
|
3096
3081
|
"description": "CSS string"
|
|
3097
|
-
},
|
|
3098
|
-
{
|
|
3099
|
-
"name": "style",
|
|
3100
|
-
"type": "React.CSSProperties | undefined",
|
|
3101
|
-
"defaultValue": "",
|
|
3102
|
-
"description": "React CSS properties"
|
|
3103
3082
|
}
|
|
3104
3083
|
],
|
|
3105
3084
|
"subcomponents": [
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@property --prc-dialog-scrollgutter{initial-value:0;inherits:false;syntax:"<length>"}@keyframes prc-Dialog-dialog-backdrop-appear-tCG2K{0%{opacity:0}to{opacity:1}}@keyframes prc-Dialog-Overlay--motion-scaleFade-mE6-C{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes prc-Dialog-Overlay--motion-slideUp-tPElO{0%{transform:translateY(100%)}}@keyframes prc-Dialog-Overlay--motion-slideInRight-BR-CZ{0%{transform:translateX(-100%)}}@keyframes prc-Dialog-Overlay--motion-slideInLeft-ISmQZ{0%{transform:translateX(100%)}}@keyframes prc-Dialog-detect-scroll-b3i8Q{0%,to{--can-scroll:1}}.prc-Dialog-Backdrop-5Nt2U{animation:prc-Dialog-dialog-backdrop-appear-tCG2K .2s cubic-bezier(.33,1,.68,1);background-color:var(--overlay-backdrop-bgColor,var(--color-overlay-backdrop));bottom:0;display:flex;left:0;position:fixed;right:0;top:0}.prc-Dialog-Backdrop-5Nt2U,.prc-Dialog-Backdrop-5Nt2U[data-position-regular=center]{align-items:center;justify-content:center}.prc-Dialog-Backdrop-5Nt2U[data-position-regular=left]{align-items:center;justify-content:flex-start}.prc-Dialog-Backdrop-5Nt2U[data-position-regular=right]{align-items:center;justify-content:flex-end}.prc-Dialog-Backdrop-5Nt2U[data-align=top]:where(:not([data-position-regular=left]):not([data-position-regular=right])){align-items:flex-start}.prc-Dialog-Backdrop-5Nt2U[data-align=center]:where(:not([data-position-regular=left]):not([data-position-regular=right])){align-items:center}.prc-Dialog-Backdrop-5Nt2U[data-align=bottom]:where(:not([data-position-regular=left]):not([data-position-regular=right])){align-items:flex-end}@media (max-width:767px){.prc-Dialog-Backdrop-5Nt2U[data-position-narrow=center]{align-items:center;justify-content:center}.prc-Dialog-Backdrop-5Nt2U[data-position-narrow=center][data-align=top]{align-items:flex-start}.prc-Dialog-Backdrop-5Nt2U[data-position-narrow=center][data-align=center]{align-items:center}.prc-Dialog-Backdrop-5Nt2U[data-position-narrow=center][data-align=bottom]{align-items:flex-end}.prc-Dialog-Backdrop-5Nt2U[data-position-narrow=bottom]{align-items:end;justify-content:center}}.prc-Dialog-Dialog-G8cDF{background-color:var(--overlay-bgColor,var(--color-canvas-overlay));border-radius:var(--borderRadius-large,.75rem);border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));box-shadow:var(--shadow-floating-small,var(--color-overlay-shadow));display:flex;flex-direction:column;height:auto;max-height:calc(100dvh - 64px);max-width:calc(100dvw - 64px);min-width:296px;opacity:1;width:640px}.prc-Dialog-Dialog-G8cDF:where([data-width=small]){width:296px}.prc-Dialog-Dialog-G8cDF:where([data-width=medium]){width:320px}.prc-Dialog-Dialog-G8cDF:where([data-width=large]){width:480px}.prc-Dialog-Dialog-G8cDF:where([data-height=small]){height:480px}.prc-Dialog-Dialog-G8cDF:where([data-height=large]){height:640px}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF{animation:prc-Dialog-Overlay--motion-scaleFade-mE6-C .2s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}.prc-Dialog-Dialog-G8cDF[data-position-regular=center]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem))}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-regular=center]{animation:prc-Dialog-Overlay--motion-scaleFade-mE6-C .2s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}.prc-Dialog-Dialog-G8cDF[data-position-regular=center][data-align=top]{margin-top:var(--base-size-64,4rem)}.prc-Dialog-Dialog-G8cDF[data-position-regular=center][data-align=bottom]{margin-bottom:var(--base-size-64,4rem)}.prc-Dialog-Dialog-G8cDF[data-position-regular=left]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));border-bottom-left-radius:0;border-top-left-radius:0;height:100dvh;max-height:unset}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-regular=left]{animation:prc-Dialog-Overlay--motion-slideInRight-BR-CZ .25s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}.prc-Dialog-Dialog-G8cDF[data-position-regular=right]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));border-bottom-right-radius:0;border-top-right-radius:0;height:100dvh;max-height:unset}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-regular=right]{animation:prc-Dialog-Overlay--motion-slideInLeft-ISmQZ .25s cubic-bezier(.33,1,.68,1) 0s 1 normal none running}}@media (max-width:767px){.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));height:auto;width:640px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-width=small]){width:296px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-width=medium]){width:320px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-width=large]){width:480px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-height=small]){height:480px}.prc-Dialog-Dialog-G8cDF[data-position-narrow=center]:where([data-height=large]){height:640px}@media (max-height:280px){.prc-Dialog-Dialog-G8cDF{max-height:calc(100dvh - 12px);max-width:calc(100dvw - 12px)}}.prc-Dialog-Dialog-G8cDF[data-position-narrow=bottom]{border-radius:var(--borderRadius-large,var(--borderRadius-large,.75rem));border-bottom-left-radius:0;border-bottom-right-radius:0;height:auto;max-height:calc(100dvh - 64px);max-width:100dvw;width:100dvw}.prc-Dialog-Dialog-G8cDF[data-position-narrow=bottom][data-align]{margin-bottom:0;margin-top:0}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-narrow=bottom]{animation:prc-Dialog-Overlay--motion-slideUp-tPElO .25s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}.prc-Dialog-Dialog-G8cDF[data-position-narrow=fullscreen]{border-radius:unset!important;flex-grow:1;height:100%;max-height:100dvh;max-width:100dvw;width:100%}.prc-Dialog-Dialog-G8cDF[data-position-narrow=fullscreen][data-align]{margin-bottom:0;margin-top:0}@media screen and (prefers-reduced-motion:no-preference){.prc-Dialog-Dialog-G8cDF[data-position-narrow=fullscreen]{animation:prc-Dialog-Overlay--motion-scaleFade-mE6-C .2s cubic-bezier(.33,1,.68,1) 1ms 1 normal none running}}}body:not([data-dialog-scroll-optimized]):has(.prc-Dialog-Dialog-G8cDF.prc-Dialog-DisableScroll-UkWFM){overflow:hidden!important;padding-right:var(--prc-dialog-scrollgutter)!important}body[data-dialog-scroll-disabled]{overflow:hidden!important;padding-right:var(--prc-dialog-scrollgutter)!important}.prc-Dialog-DialogOverflowWrapper-JvHzz{flex-grow:1}.prc-Dialog-Dialog-G8cDF:has(.prc-Dialog-Footer-PMeQk){--can-scroll:0}.prc-Dialog-Dialog-G8cDF:has(.prc-Dialog-Footer-PMeQk) .prc-Dialog-DialogOverflowWrapper-JvHzz{animation:prc-Dialog-detect-scroll-b3i8Q;border-bottom:var(--borderWidth-default,.0625rem) solid var(--borderColor-default,var(--color-border-default));animation-timeline:scroll(self)}@supports (animation-timeline:scroll(self)){.prc-Dialog-Dialog-G8cDF:has(.prc-Dialog-Footer-PMeQk) .prc-Dialog-DialogOverflowWrapper-JvHzz{border-bottom:calc(var(--borderWidth-thin,.0625rem)*var(--can-scroll)) solid var(--borderColor-default,var(--color-border-default))}}.prc-Dialog-Header-f7Me-{box-shadow:0 1px 0 var(--borderColor-default,var(--color-border-default));flex-shrink:0;max-height:35vh;overflow-y:auto;padding:var(--base-size-8,.5rem);z-index:1}.prc-Dialog-HeaderInner-H-fFY{display:flex}.prc-Dialog-HeaderContent-mjAsn{display:flex;flex-direction:column;flex-grow:1;padding-block:var(--base-size-6,.375rem);padding-inline:var(--base-size-8,.5rem)}.prc-Dialog-Title-M-iPn{font-size:var(--text-body-size-medium,.875rem);font-weight:var(--text-title-weight-large,600);margin:0}.prc-Dialog-Subtitle-aBFSq{color:var(--fgColor-muted,var(--color-fg-muted));font-size:var(--text-body-size-small,.75rem);font-weight:var(--base-text-weight-normal,400);margin:0;margin-top:var(--base-size-4,.25rem)}.prc-Dialog-Body-bB903{flex-grow:1;overflow:auto}.prc-Dialog-Body-bB903,.prc-Dialog-Footer-PMeQk{padding:var(--base-size-16,1rem)}.prc-Dialog-Footer-PMeQk{display:flex;flex-flow:wrap;flex-shrink:0;gap:var(--base-size-8,.5rem);justify-content:flex-end;z-index:1}@media (max-height:325px){.prc-Dialog-Footer-PMeQk{flex-direction:row;flex-wrap:nowrap;justify-content:unset;overflow-x:scroll}}
|
|
2
|
-
/*# sourceMappingURL=Dialog-2d417a89.css.map */
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Dialog/Dialog.module.css.js"],"names":[],"mappings":"AAOA,oCACE,eAAgB,CAChB,cAAe,CACf,iBACF,CAEA,mDACE,GACE,SACF,CAEA,GACE,SACF,CACF,CAEA,sDACE,GACE,SAAU,CACV,mBACF,CAEA,GACE,SAAU,CACV,kBACF,CACF,CAEA,oDACE,G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E,YACF,CAGF,0BA9GJ,yBA+GM,8BAA+B,CAC/B,6BA0CN,CAzCI,CAEA,sDAKE,wEAAmE,CAEnE,2BAA4B,CAD5B,4BAA6B,CAH7B,WAAY,CACZ,8BAA+B,CAF/B,gBAAiB,CADjB,YAiBF,CARE,kEAEE,eAAgB,CADhB,YAEF,CAEA,yDAfF,sDAgBI,2GAEJ,CADE,CAGF,0DAKE,6BAA+B,CAC/B,WAAY,CAHZ,WAAY,CACZ,iBAAkB,CAFlB,gBAAiB,CADjB,UAgBF,CARE,sEAEE,eAAgB,CADhB,YAEF,CAEA,yDAdF,0DAeI,4GAEJ,CADE,CAEJ,CAeF,sGAGE,yBAA2B,CAD3B,sDAEF,CAOA,kCAGE,yBAA2B,CAD3B,sDAEF,CAEA,wCACE,WACF,CAQA,uDACE,cAYF,CAVE,+FAGE,wCAAwB,CADxB,8GAA0E,CAE1E,+BAKF,CAHE,4CANF,+FAOI,mIAEJ,CADE,CAIJ,yBAME,yEAA8C,CAC9C,aAAc,CALd,eAAgB,CAEhB,eAAgB,CADhB,gCAA2B,CAF3B,SAOF,CAEA,8BACE,YACF,CAEA,gCACE,YAAa,CAGb,qBAAsB,CACtB,WAAY,CAFZ,wCAAiC,CADjC,uCAIF,CAEA,wBAEE,8CAAuC,CACvC,8CAA2C,CAF3C,QAGF,CAEA,2BAKE,gDAA2B,CAF3B,4CAAsC,CACtC,8CAA2C,CAH3C,QAAS,CACT,oCAIF,CAEA,uBAGE,WAAY,CADZ,aAEF,CAEA,gDALE,gCAoBF,CAfA,yBAEE,YAAa,CACb,cAAe,CAIf,aAAc,CADd,4BAAuB,CAFvB,wBAAyB,CAHzB,SAcF,CANE,0BATF,yBAYI,kBAAmB,CAFnB,gBAAiB,CAGjB,qBAAsB,CAFtB,iBAIJ,CADE","file":"Dialog-2d417a89.css","sourcesContent":["/* The --prc-dialog-scrollgutter property is used only on the body element to\n * simulate scrollbar-gutter:stable. This property is not and should not\n * be used elsewhere in the DOM. There is a performance penalty to\n * setting inherited properties which can cause a large style recalc to\n * occur, so it benefits us to prevent inheritance for this property.\n * See https://web.dev/blog/at-property-performance\n */\n@property --prc-dialog-scrollgutter {\n initial-value: 0;\n inherits: false;\n syntax: '<length>';\n}\n\n@keyframes dialog-backdrop-appear {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes Overlay--motion-scaleFade {\n 0% {\n opacity: 0;\n transform: scale(0.5);\n }\n\n 100% {\n opacity: 1;\n transform: scale(1);\n }\n}\n\n@keyframes Overlay--motion-slideUp {\n from {\n transform: translateY(100%);\n }\n}\n\n@keyframes Overlay--motion-slideInRight {\n from {\n transform: translateX(-100%);\n }\n}\n\n@keyframes Overlay--motion-slideInLeft {\n from {\n transform: translateX(100%);\n }\n}\n\n/* Used to determine whether there should be a border between the body and footer */\n@keyframes detect-scroll {\n from,\n to {\n --can-scroll: 1;\n }\n}\n\n.Backdrop {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n background-color: var(--overlay-backdrop-bgColor);\n animation: dialog-backdrop-appear 200ms cubic-bezier(0.33, 1, 0.68, 1);\n align-items: center;\n justify-content: center;\n\n &[data-position-regular='center'] {\n align-items: center;\n justify-content: center;\n }\n\n &[data-position-regular='left'] {\n align-items: center;\n justify-content: flex-start;\n }\n\n &[data-position-regular='right'] {\n align-items: center;\n justify-content: flex-end;\n }\n\n /* align only applies when regular position is center (or absent).\n * :where() zeroes out the :not() specificity so narrow-position rules (coming later)\n * always win when data-position-narrow is bottom or fullscreen. */\n &:where(:not([data-position-regular='left']):not([data-position-regular='right'])) {\n &[data-align='top'] {\n align-items: flex-start;\n }\n\n &[data-align='center'] {\n align-items: center;\n }\n\n &[data-align='bottom'] {\n align-items: flex-end;\n }\n }\n\n @media (max-width: 767px) {\n &[data-position-narrow='center'] {\n align-items: center;\n justify-content: center;\n\n /* align still applies when narrow position is center */\n &[data-align='top'] {\n align-items: flex-start;\n }\n\n &[data-align='center'] {\n align-items: center;\n }\n\n &[data-align='bottom'] {\n align-items: flex-end;\n }\n }\n\n &[data-position-narrow='bottom'] {\n align-items: end;\n justify-content: center;\n }\n }\n}\n\n.Dialog {\n display: flex;\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 640px;\n min-width: 296px;\n max-width: calc(100dvw - 64px);\n height: auto;\n max-height: calc(100dvh - 64px);\n flex-direction: column;\n background-color: var(--overlay-bgColor);\n border-radius: var(--borderRadius-large);\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n box-shadow: var(--shadow-floating-small);\n opacity: 1;\n\n &:where([data-width='small']) {\n width: 296px;\n }\n\n &:where([data-width='medium']) {\n width: 320px;\n }\n\n &:where([data-width='large']) {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 480px;\n }\n\n &:where([data-height='small']) {\n height: 480px;\n }\n\n &:where([data-height='large']) {\n height: 640px;\n }\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-scaleFade 0.2s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n\n &[data-position-regular='center'] {\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-scaleFade 0.2s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n\n /* align margins only apply when regular position is center */\n &[data-align='top'] {\n margin-top: var(--base-size-64);\n }\n\n &[data-align='bottom'] {\n margin-bottom: var(--base-size-64);\n }\n }\n\n &[data-position-regular='left'] {\n height: 100dvh;\n max-height: unset;\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-slideInRight 0.25s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n }\n\n &[data-position-regular='right'] {\n height: 100dvh;\n max-height: unset;\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-slideInLeft 0.25s cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running;\n }\n }\n\n @media (max-width: 767px) {\n &[data-position-narrow='center'] {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 640px;\n height: auto;\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n\n &:where([data-width='small']) {\n width: 296px;\n }\n\n &:where([data-width='medium']) {\n width: 320px;\n }\n\n &:where([data-width='large']) {\n /* stylelint-disable-next-line primer/responsive-widths */\n width: 480px;\n }\n\n &:where([data-height='small']) {\n height: 480px;\n }\n\n &:where([data-height='large']) {\n height: 640px;\n }\n }\n\n @media (max-height: 280px) {\n max-height: calc(100dvh - 12px);\n max-width: calc(100dvw - 12px);\n }\n\n &[data-position-narrow='bottom'] {\n width: 100dvw;\n max-width: 100dvw;\n height: auto;\n max-height: calc(100dvh - 64px);\n border-radius: var(--borderRadius-large, var(--borderRadius-large));\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n\n /* reset align margins since position wins at narrow */\n &[data-align] {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-slideUp 0.25s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n }\n\n &[data-position-narrow='fullscreen'] {\n width: 100%;\n max-width: 100dvw;\n height: 100%;\n max-height: 100dvh;\n border-radius: unset !important;\n flex-grow: 1;\n\n /* reset align margins since fullscreen wins at narrow */\n &[data-align] {\n margin-top: 0;\n margin-bottom: 0;\n }\n\n @media screen and (prefers-reduced-motion: no-preference) {\n animation: Overlay--motion-scaleFade 0.2s cubic-bezier(0.33, 1, 0.68, 1) 1ms 1 normal none running;\n }\n }\n }\n}\n\n/* DisableScroll class is added to Dialog when scroll should be disabled on body */\n.DisableScroll {\n /* This class is used as a selector target for the legacy :has() CSS selector */\n}\n\n/*\n * LEGACY: Scoped :has() selector with negation guard\n * Only evaluates when data-dialog-scroll-optimized is NOT present on body.\n * When the attribute IS present (flag ON), browser skips :has() evaluation\n * because the :not() check fails first (O(1) attribute lookup).\n */\n/* stylelint-disable-next-line selector-no-qualifying-type */\nbody:not([data-dialog-scroll-optimized]):has(.Dialog.DisableScroll) {\n /* stylelint-disable-next-line primer/spacing */\n padding-right: var(--prc-dialog-scrollgutter) !important;\n overflow: hidden !important;\n}\n\n/*\n * PERFORMANCE OPTIMIZATION: Direct attribute on body - O(1) lookup\n * Active when primer_react_css_has_selector_perf flag is ON\n */\n/* stylelint-disable-next-line selector-no-qualifying-type */\nbody[data-dialog-scroll-disabled] {\n /* stylelint-disable-next-line primer/spacing */\n padding-right: var(--prc-dialog-scrollgutter) !important;\n overflow: hidden !important;\n}\n\n.DialogOverflowWrapper {\n flex-grow: 1;\n}\n\n/*\nAdd a border between the body and footer if:\n- the dialog has a footer\n- the dialog has a body that can scroll\n- the browser supports the `animation-timeline` property and its `scroll()` function\n*/\n.Dialog:has(.Footer) {\n --can-scroll: 0;\n\n .DialogOverflowWrapper {\n /* If the browser does not support the `animation-timeline` property, always show a border */\n border-bottom: var(--borderWidth-default) solid var(--borderColor-default);\n animation: detect-scroll;\n animation-timeline: scroll(self);\n\n @supports (animation-timeline: scroll(self)) {\n border-bottom: calc(var(--borderWidth-thin) * var(--can-scroll)) solid var(--borderColor-default);\n }\n }\n}\n\n.Header {\n z-index: 1;\n max-height: 35vh;\n padding: var(--base-size-8);\n overflow-y: auto;\n /* stylelint-disable-next-line primer/box-shadow */\n box-shadow: 0 1px 0 var(--borderColor-default);\n flex-shrink: 0;\n}\n\n.HeaderInner {\n display: flex;\n}\n\n.HeaderContent {\n display: flex;\n padding-inline: var(--base-size-8);\n padding-block: var(--base-size-6);\n flex-direction: column;\n flex-grow: 1;\n}\n\n.Title {\n margin: 0; /* override default margin */\n font-size: var(--text-body-size-medium);\n font-weight: var(--text-title-weight-large);\n}\n\n.Subtitle {\n margin: 0; /* override default margin */\n margin-top: var(--base-size-4);\n font-size: var(--text-body-size-small);\n font-weight: var(--base-text-weight-normal);\n color: var(--fgColor-muted);\n}\n\n.Body {\n padding: var(--base-size-16);\n overflow: auto;\n flex-grow: 1;\n}\n\n.Footer {\n z-index: 1;\n display: flex;\n flex-flow: wrap;\n justify-content: flex-end;\n padding: var(--base-size-16);\n gap: var(--base-size-8);\n flex-shrink: 0;\n\n @media (max-height: 325px) {\n flex-wrap: nowrap;\n overflow-x: scroll;\n flex-direction: row;\n justify-content: unset;\n }\n}\n"]}
|