@primer/react 0.0.0-20260508173920 → 0.0.0-20260508182458
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 +10 -2
- package/dist/ActionList/Item.js +2 -2
- package/dist/ActionList/index.d.ts +11 -0
- package/dist/ActionList/index.d.ts.map +1 -1
- package/dist/ActionList/index.js +3 -0
- package/dist/AnchoredOverlay/{AnchoredOverlay-0c26c5f8.css → AnchoredOverlay-ec9e15fc.css} +2 -2
- package/dist/AnchoredOverlay/AnchoredOverlay-ec9e15fc.css.map +1 -0
- package/dist/AnchoredOverlay/AnchoredOverlay.d.ts.map +1 -1
- package/dist/AnchoredOverlay/AnchoredOverlay.js +63 -26
- package/dist/AnchoredOverlay/AnchoredOverlay.module.css.js +1 -1
- package/dist/Blankslate/Blankslate.d.ts.map +1 -1
- package/dist/Blankslate/Blankslate.js +0 -6
- package/dist/BranchName/BranchName.js +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +0 -3
- package/dist/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.js +0 -1
- package/dist/Checkbox/Checkbox.d.ts +0 -1
- package/dist/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/Checkbox/Checkbox.js +5 -10
- package/dist/CheckboxGroup/CheckboxGroup.js +0 -1
- package/dist/CircleBadge/CircleBadge.d.ts.map +1 -1
- package/dist/CircleBadge/CircleBadge.js +28 -44
- package/dist/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -1
- package/dist/ConfirmationDialog/ConfirmationDialog.js +0 -1
- package/dist/CounterLabel/CounterLabel.d.ts +0 -2
- package/dist/CounterLabel/CounterLabel.d.ts.map +1 -1
- package/dist/CounterLabel/CounterLabel.js +90 -25
- package/dist/Dialog/Dialog.d.ts +0 -1
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +14 -28
- package/dist/FeatureFlags/DefaultFeatureFlags.d.ts.map +1 -1
- package/dist/FeatureFlags/DefaultFeatureFlags.js +2 -1
- package/dist/TreeView/useRovingTabIndex.d.ts +9 -6
- package/dist/TreeView/useRovingTabIndex.d.ts.map +1 -1
- package/dist/TreeView/useRovingTabIndex.js +91 -47
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.d.ts.map +1 -1
- package/dist/internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroup.js +1 -3
- package/package.json +1 -1
- package/dist/AnchoredOverlay/AnchoredOverlay-0c26c5f8.css.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
# @primer/react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-20260508182458
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
- [#
|
|
7
|
+
- [#7817](https://github.com/primer/react/pull/7817) [`6cb12d0`](https://github.com/primer/react/commit/6cb12d0cb2cbffd80667e0683d29d6844887eaa9) Thanks [@francinelucca](https://github.com/francinelucca)! - - ActionList: Expand `selectableRoles` and `listRoleTypes` to include `treeitem` and `tree`.
|
|
8
|
+
- Export `ActionListContainerContext` as `ActionList.ContainerContext`.
|
|
9
|
+
- Export `useRovingTabIndex` from the public API with additional configuration options (`preventScroll`, `focusOutBehavior`, `wrapAround`, and `dependencies`).
|
|
8
10
|
|
|
9
11
|
### Patch Changes
|
|
10
12
|
|
|
13
|
+
- [#7805](https://github.com/primer/react/pull/7805) [`8f8844e`](https://github.com/primer/react/commit/8f8844ef69a52b0462bf76cee389e61bb02de2d7) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Disables CSS anchor positioning if `portalContainerName` is true. (behind `primer_react_css_anchor_positioning` feature flag)
|
|
14
|
+
|
|
11
15
|
- Fake entry to force publishing
|
|
12
16
|
|
|
17
|
+
- [#7800](https://github.com/primer/react/pull/7800) [`ce88bdf`](https://github.com/primer/react/commit/ce88bdf3191aaee0ad662803f285a4e77810ce9e) Thanks [@francinelucca](https://github.com/francinelucca)! - chore: add `primer_react_styled_react_use_primer_theme_providers` feature flag to DefaultFeatureFlags
|
|
18
|
+
|
|
19
|
+
- [#7802](https://github.com/primer/react/pull/7802) [`872bf46`](https://github.com/primer/react/commit/872bf464c0cdf2144b680ffe309ef4ad2ac1b5ac) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Ensure overlay fits within viewport by calculating viewport height + width (behind `primer_react_css_anchor_positioning` feature flag)
|
|
20
|
+
|
|
13
21
|
## 38.22.0
|
|
14
22
|
|
|
15
23
|
### Minor Changes
|
package/dist/ActionList/Item.js
CHANGED
|
@@ -154,8 +154,8 @@ const slotsConfig = {
|
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
// Pre-allocated array for selectableRoles check, avoids per-render allocation
|
|
157
|
-
const selectableRoles = ['menuitemradio', 'menuitemcheckbox', 'option'];
|
|
158
|
-
const listRoleTypes = ['listbox', 'menu', 'list'];
|
|
157
|
+
const selectableRoles = ['menuitemradio', 'menuitemcheckbox', 'option', 'treeitem'];
|
|
158
|
+
const listRoleTypes = ['listbox', 'menu', 'list', 'tree'];
|
|
159
159
|
const UnwrappedItem = (t0, forwardedRef) => {
|
|
160
160
|
var _slots$trailingVisual, _slots$description$pr, _slots$description;
|
|
161
161
|
const $ = c(159);
|
|
@@ -31,6 +31,17 @@ export declare const ActionList: (<As extends React.ElementType = "ul">(props: (
|
|
|
31
31
|
} ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
|
|
32
32
|
as?: As | undefined;
|
|
33
33
|
} & import("react").RefAttributes<unknown>) => React.ReactNode) & {
|
|
34
|
+
/** Context for the `ActionList` container. */
|
|
35
|
+
ContainerContext: import("react").Context<{
|
|
36
|
+
container?: string;
|
|
37
|
+
listRole?: import("../utils/types").AriaRole;
|
|
38
|
+
selectionVariant?: "single" | "multiple" | "radio";
|
|
39
|
+
selectionAttribute?: "aria-selected" | "aria-checked";
|
|
40
|
+
listLabelledBy?: string;
|
|
41
|
+
afterSelect?: Function;
|
|
42
|
+
enableFocusZone?: boolean;
|
|
43
|
+
defaultTrailingVisual?: React.ReactElement<any>;
|
|
44
|
+
}>;
|
|
34
45
|
/** Collects related `Items` in an `ActionList`. */
|
|
35
46
|
Group: import("../utils/types").FCWithSlotMarker<import("react").PropsWithChildren<import("./Group").ActionListGroupProps>>;
|
|
36
47
|
/** An actionable or selectable `Item` */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ActionList/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ActionList/index.ts"],"names":[],"mappings":"AAWA,YAAY,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;AAC7C,YAAY,EAAC,oBAAoB,EAAE,2BAA2B,EAAC,MAAM,SAAS,CAAA;AAC9E,YAAY,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAA;AACjD,YAAY,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAA;AACvD,YAAY,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AACrD,YAAY,EAAC,0BAA0B,EAAC,MAAM,eAAe,CAAA;AAC7D,YAAY,EAAC,4BAA4B,EAAE,6BAA6B,EAAC,MAAM,WAAW,CAAA;AAC1F,YAAY,EAAC,sBAAsB,EAAC,MAAM,WAAW,CAAA;AACrD,YAAY,EAAC,6BAA6B,EAAC,MAAM,kBAAkB,CAAA;AAEnE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;IACrB,8CAA8C;;;;;;;;;;;IAE9C,mDAAmD;;IAGnD,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGzC,+DAA+D;;;;;;;;;;;;;;;;;;;;;;;;;;IAG/D,iEAAiE;;IAGjE,4EAA4E;;IAG5E,uDAAuD;;IAGvD,sDAAsD;;IAGtD,mCAAmC;;IAGnC,gGAAgG;;;;IAGhG,qCAAqC;;IAGrC,uBAAuB;;CAEvB,CAAA"}
|
package/dist/ActionList/index.js
CHANGED
|
@@ -7,11 +7,14 @@ import { Description } from './Description.js';
|
|
|
7
7
|
import { TrailingAction } from './TrailingAction.js';
|
|
8
8
|
import { TrailingVisual, LeadingVisual } from './Visuals.js';
|
|
9
9
|
import { Heading } from './Heading.js';
|
|
10
|
+
import { ActionListContainerContext } from './ActionListContainerContext.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Collection of list-related components.
|
|
13
14
|
*/
|
|
14
15
|
const ActionList = Object.assign(List, {
|
|
16
|
+
/** Context for the `ActionList` container. */
|
|
17
|
+
ContainerContext: ActionListContainerContext,
|
|
15
18
|
/** Collects related `Items` in an `ActionList`. */
|
|
16
19
|
Group,
|
|
17
20
|
/** An actionable or selectable `Item` */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.prc-AnchoredOverlay-ResponsiveCloseButtonContainer-nuium{position:relative}.prc-AnchoredOverlay-ResponsiveCloseButton-z-2rx{display:none;position:absolute;right:var(--base-size-8,.5rem);top:var(--base-size-8,.5rem)}@media screen and (max-width:calc(48rem - 0.02px)){.prc-AnchoredOverlay-ResponsiveCloseButton-z-2rx{display:inline-grid}}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z{position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position-visibility:anchors-visible;position:fixed!important;z-index:100}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[popover]{border:0;inset:auto;margin:0;max-width:none;padding:0}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-bottom]{left:anchor(left);top:calc(anchor(bottom) + var(--base-size-4,.25rem))}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-bottom][data-align=left]{left:auto;right:calc(anchor(right) - var(--anchored-overlay-anchor-offset-left))}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-top]{bottom:anchor(top);left:anchor(left);margin-bottom:var(--base-size-4,.25rem)}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-top][data-align=left]{left:auto;right:anchor(right)}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-left]{margin-right:var(--base-size-4,.25rem);right:anchor(left);top:anchor(top);position-try-fallbacks:flip-inline,flip-block,flip-start,--outside-left-to-bottom}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-right]{left:anchor(right);margin-left:var(--base-size-4,.25rem);top:anchor(top);position-try-fallbacks:flip-inline,flip-block,flip-start,--outside-right-to-bottom}@position-try --outside-left-to-bottom{margin:0;right:anchor(right);top:calc(anchor(bottom) + var(--base-size-4,.25rem));width:auto}@position-try --outside-right-to-bottom{left:anchor(left);margin:0;top:calc(anchor(bottom) + var(--base-size-4,.25rem));width:auto}
|
|
2
|
-
/*# sourceMappingURL=AnchoredOverlay-
|
|
1
|
+
.prc-AnchoredOverlay-ResponsiveCloseButtonContainer-nuium{position:relative}.prc-AnchoredOverlay-ResponsiveCloseButton-z-2rx{display:none;position:absolute;right:var(--base-size-8,.5rem);top:var(--base-size-8,.5rem)}@media screen and (max-width:calc(48rem - 0.02px)){.prc-AnchoredOverlay-ResponsiveCloseButton-z-2rx{display:inline-grid}}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z{position-try-fallbacks:flip-block,flip-inline,flip-block flip-inline;position-visibility:anchors-visible;position:fixed!important;z-index:100}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[popover]{border:0;inset:auto;margin:0;max-width:none;padding:0}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-bottom]{left:anchor(left);top:calc(anchor(bottom) + var(--base-size-4,.25rem))}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-bottom][data-align=left]{left:auto;right:calc(anchor(right) - var(--anchored-overlay-anchor-offset-left))}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-top]{bottom:anchor(top);left:anchor(left);margin-bottom:var(--base-size-4,.25rem)}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-top][data-align=left]{left:auto;right:anchor(right)}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-left]{margin-right:var(--base-size-4,.25rem);right:anchor(left);top:var(--anchored-overlay-top-override,anchor(top));position-try-fallbacks:flip-inline,flip-block,flip-start,--outside-left-to-bottom}.prc-AnchoredOverlay-AnchoredOverlay-fYg9Z[data-side=outside-right]{left:anchor(right);margin-left:var(--base-size-4,.25rem);top:var(--anchored-overlay-top-override,anchor(top));position-try-fallbacks:flip-inline,flip-block,flip-start,--outside-right-to-bottom}@position-try --outside-left-to-bottom{margin:0;right:anchor(right);top:calc(anchor(bottom) + var(--base-size-4,.25rem));width:auto}@position-try --outside-right-to-bottom{left:anchor(left);margin:0;top:calc(anchor(bottom) + var(--base-size-4,.25rem));width:auto}
|
|
2
|
+
/*# sourceMappingURL=AnchoredOverlay-ec9e15fc.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/AnchoredOverlay/AnchoredOverlay.module.css.js"],"names":[],"mappings":"AAAA,0DACE,iBACF,CAEA,iDAIE,YAAa,CAHb,iBAAkB,CAElB,8BAAyB,CADzB,4BAOF,CAHE,mDANF,iDAOI,mBAEJ,CADE,CAGF,2CACE,oEAGwB,CACxB,mCAAoC,CAEpC,wBAA0B,CAD1B,WAsDF,CAnDE,oDAIE,QAAS,CAHT,UAAW,CACX,QAAS,CAGT,cAAe,CAFf,SAGF,CAEA,qEAGE,iBAAkB,CADlB,oDAOF,CAJE,sFACE,SAAU,CACV,sEACF,CAGF,kEAEE,kBAAmB,CACnB,iBAAkB,CAFlB,uCAQF,CAJE,mFACE,SAAU,CACV,mBACF,CAGF,mEAWE,sCAAgC,CAVhC,kBAAmB,CASnB,oDAAsD,CAEtD,iFACF,CAEA,oEACE,kBAAmB,CAEnB,qCAA+B,CAD/B,oDAAsD,CAEtD,kFACF,CAGF,uCAGE,QAAS,CAFT,mBAAoB,CACpB,oDAA8C,CAE9C,UACF,CAEA,wCACE,iBAAkB,CAElB,QAAS,CADT,oDAA8C,CAE9C,UACF","file":"AnchoredOverlay-ec9e15fc.css","sourcesContent":[".ResponsiveCloseButtonContainer {\n position: relative;\n}\n\n.ResponsiveCloseButton {\n position: absolute;\n top: var(--base-size-8);\n right: var(--base-size-8);\n display: none;\n\n @media screen and (--viewportRange-narrow) {\n display: inline-grid;\n }\n}\n\n.AnchoredOverlay {\n position-try-fallbacks:\n flip-block,\n flip-inline,\n flip-block flip-inline;\n position-visibility: anchors-visible;\n z-index: 100;\n position: fixed !important;\n\n &[popover] {\n inset: auto;\n margin: 0;\n padding: 0;\n border: 0;\n max-width: none;\n }\n\n &[data-side='outside-bottom'] {\n /* stylelint-disable primer/spacing */\n top: calc(anchor(bottom) + var(--base-size-4));\n left: anchor(left);\n\n &[data-align='left'] {\n left: auto;\n right: calc(anchor(right) - var(--anchored-overlay-anchor-offset-left));\n }\n }\n\n &[data-side='outside-top'] {\n margin-bottom: var(--base-size-4);\n bottom: anchor(top);\n left: anchor(left);\n\n &[data-align='left'] {\n left: auto;\n right: anchor(right);\n }\n }\n\n &[data-side='outside-left'] {\n right: anchor(left);\n /* Falls back to `anchor(top)` when JS hasn't overridden it. JS sets the\n override when the overlay's bottom would overflow the viewport so we\n can lift it up to keep the bottom edge on screen, mirroring the JS\n anchored-positioning code path.\n\n This override only applies when CSS cannot find space using the default position -\n or any of its defined fallbacks.\n */\n top: var(--anchored-overlay-top-override, anchor(top));\n margin-right: var(--base-size-4);\n position-try-fallbacks: flip-inline, flip-block, flip-start, --outside-left-to-bottom;\n }\n\n &[data-side='outside-right'] {\n left: anchor(right);\n top: var(--anchored-overlay-top-override, anchor(top));\n margin-left: var(--base-size-4);\n position-try-fallbacks: flip-inline, flip-block, flip-start, --outside-right-to-bottom;\n }\n}\n\n@position-try --outside-left-to-bottom {\n right: anchor(right);\n top: calc(anchor(bottom) + var(--base-size-4));\n margin: 0;\n width: auto;\n}\n\n@position-try --outside-right-to-bottom {\n left: anchor(left);\n top: calc(anchor(bottom) + var(--base-size-4));\n margin: 0;\n width: auto;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnchoredOverlay.d.ts","sourceRoot":"","sources":["../../src/AnchoredOverlay/AnchoredOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAmC,KAAK,GAAG,EAAC,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAE5C,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,uBAAuB,CAAA;AAEhE,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,uBAAuB,CAAA;AAIhE,OAAO,KAAK,EAAC,cAAc,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAA;AACvE,OAAO,EAAC,KAAK,eAAe,EAAC,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAa,KAAK,eAAe,EAAC,MAAM,WAAW,CAAA;AAO1D,UAAU,8BAA8B;IACtC;;;OAGG;IACH,YAAY,EAAE,CAAC,CAAC,SAAS,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,YAAY,GAAG,iBAAiB,CAAC,EAChG,KAAK,EAAE,CAAC,KACL,GAAG,CAAC,OAAO,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IA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AAE,OAAO,CAAA;IACzB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC,UAAU,EAAE,UAAU,GAAG,YAAY,CAAC,CAAA;IAChE;;OAEG;IACH,gBAAgB,CAAC,EAAE,CAAC,EAAC,QAAQ,EAAC,EAAE;QAAC,QAAQ,EAAE,cAAc,CAAA;KAAC,KAAK,IAAI,CAAA;IACnE;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IAC3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAChC;AAED,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GACzD,CAAC,8BAA8B,GAAG,iCAAiC,CAAC,GACpE,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,MAAM,GAAG,cAAc,GAAG,iBAAiB,GAAG,mBAAmB,CAAC,CAAC,CAAA;AAS9G;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAoRnF,CAAA"}
|
|
@@ -54,7 +54,7 @@ const AnchoredOverlay = ({
|
|
|
54
54
|
// Lazy initial state so feature detection runs once per mount on the client.
|
|
55
55
|
// Guarded for SSR where `document` is undefined.
|
|
56
56
|
const [supportsNativeCSSAnchorPositioning] = useState(() => typeof document !== 'undefined' && 'anchorName' in document.documentElement.style);
|
|
57
|
-
const cssAnchorPositioning = cssAnchorPositioningFlag && supportsNativeCSSAnchorPositioning;
|
|
57
|
+
const cssAnchorPositioning = cssAnchorPositioningFlag && supportsNativeCSSAnchorPositioning && !(overlayProps !== null && overlayProps !== void 0 && overlayProps.portalContainerName);
|
|
58
58
|
// Only use Popover API when both CSS anchor positioning is enabled AND renderAs is true
|
|
59
59
|
const shouldRenderAsPopover = cssAnchorPositioning && renderAs === 'popover';
|
|
60
60
|
const anchorRef = useProvidedRefOrCreate(externalAnchorRef);
|
|
@@ -133,28 +133,51 @@ const AnchoredOverlay = ({
|
|
|
133
133
|
});
|
|
134
134
|
const popoverId = useId();
|
|
135
135
|
const id = popoverId.replaceAll(':', '_'); // popoverId can contain colons which are invalid in CSS custom property names, so we replace them with underscores
|
|
136
|
+
const anchorName = `--anchored-overlay-anchor-${id}`;
|
|
136
137
|
|
|
138
|
+
// Manage `anchor-name` on the anchor independently of `open`/`width` so a
|
|
139
|
+
// parent re-render that re-runs the positioning effect below doesn't
|
|
140
|
+
// briefly flicker the anchor link off and back on.
|
|
141
|
+
useEffect(() => {
|
|
142
|
+
if (!cssAnchorPositioning || !anchorElement) return;
|
|
143
|
+
if (anchorElement.style.getPropertyValue('anchor-name')) return;
|
|
144
|
+
anchorElement.style.setProperty('anchor-name', anchorName);
|
|
145
|
+
return () => {
|
|
146
|
+
if (anchorElement.style.getPropertyValue('anchor-name') === anchorName) {
|
|
147
|
+
anchorElement.style.removeProperty('anchor-name');
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}, [cssAnchorPositioning, anchorElement, anchorName]);
|
|
137
151
|
useEffect(() => {
|
|
138
152
|
if (!cssAnchorPositioning || !anchorElement) return;
|
|
139
153
|
const currentOverlay = overlayRef.current;
|
|
140
|
-
|
|
141
|
-
// Link the anchor and the overlay (when present) via CSS anchor positioning.
|
|
142
|
-
anchorElement.style.setProperty('anchor-name', `--anchored-overlay-anchor-${id}`);
|
|
154
|
+
const resolvedAnchorName = anchorElement.style.getPropertyValue('anchor-name') || anchorName;
|
|
143
155
|
let pendingPositionFrame = null;
|
|
144
156
|
if (open && currentOverlay) {
|
|
145
|
-
currentOverlay.style.setProperty('position-anchor',
|
|
157
|
+
currentOverlay.style.setProperty('position-anchor', resolvedAnchorName);
|
|
146
158
|
|
|
147
159
|
// Defer the getBoundingClientRect read into a `requestAnimationFrame` so the style write above
|
|
148
160
|
// does not force a synchronous layout.
|
|
149
161
|
pendingPositionFrame = requestAnimationFrame(() => {
|
|
150
162
|
pendingPositionFrame = null;
|
|
151
|
-
const
|
|
152
|
-
const result = getDefaultPosition(anchorElement,
|
|
163
|
+
const fallbackWidth = width ? parseInt(widthMap[width]) : parseInt(widthMap.small);
|
|
164
|
+
const result = getDefaultPosition(anchorElement, currentOverlay, fallbackWidth);
|
|
153
165
|
currentOverlay.setAttribute('data-align', result.horizontal);
|
|
154
|
-
|
|
155
|
-
|
|
166
|
+
if (result.suggestedSide) {
|
|
167
|
+
currentOverlay.setAttribute('data-side', result.suggestedSide);
|
|
168
|
+
}
|
|
156
169
|
const offset = result.horizontal === 'left' ? result.leftOffset : result.rightOffset;
|
|
157
170
|
currentOverlay.style.setProperty(`--anchored-overlay-anchor-offset-${result.horizontal}`, `${offset || 0}px`);
|
|
171
|
+
|
|
172
|
+
// Set y-axis offset to prevent overflow if needed.
|
|
173
|
+
const settledRect = currentOverlay.getBoundingClientRect();
|
|
174
|
+
const overflowBottom = settledRect.bottom - window.innerHeight;
|
|
175
|
+
if (overflowBottom > 0) {
|
|
176
|
+
const clampedTop = Math.max(0, settledRect.top - overflowBottom - 8);
|
|
177
|
+
currentOverlay.style.setProperty('--anchored-overlay-top-override', `${clampedTop}px`);
|
|
178
|
+
} else {
|
|
179
|
+
currentOverlay.style.removeProperty('--anchored-overlay-top-override');
|
|
180
|
+
}
|
|
158
181
|
});
|
|
159
182
|
|
|
160
183
|
// Only call showPopover when shouldRenderAsPopover is enabled
|
|
@@ -170,7 +193,6 @@ const AnchoredOverlay = ({
|
|
|
170
193
|
}
|
|
171
194
|
return () => {
|
|
172
195
|
if (pendingPositionFrame !== null) cancelAnimationFrame(pendingPositionFrame);
|
|
173
|
-
anchorElement.style.removeProperty('anchor-name');
|
|
174
196
|
// The overlay may no longer be in the DOM at this point, so we need to check for its presence before trying to update it.
|
|
175
197
|
if (currentOverlay) {
|
|
176
198
|
currentOverlay.style.removeProperty('position-anchor');
|
|
@@ -257,30 +279,45 @@ const AnchoredOverlay = ({
|
|
|
257
279
|
}) : null]
|
|
258
280
|
});
|
|
259
281
|
};
|
|
260
|
-
function getDefaultPosition(anchorElement,
|
|
261
|
-
const
|
|
282
|
+
function getDefaultPosition(anchorElement, overlayElement, fallbackWidth) {
|
|
283
|
+
const anchorRect = anchorElement.getBoundingClientRect();
|
|
284
|
+
const overlayRect = overlayElement.getBoundingClientRect();
|
|
262
285
|
const vw = window.innerWidth;
|
|
263
|
-
const
|
|
264
|
-
const
|
|
265
|
-
const
|
|
286
|
+
const vh = window.innerHeight;
|
|
287
|
+
const margin = 8;
|
|
288
|
+
const overlayWidth = overlayRect.width || fallbackWidth;
|
|
289
|
+
const spaceLeft = anchorRect.left;
|
|
290
|
+
const spaceRight = vw - anchorRect.right;
|
|
266
291
|
const horizontal = spaceLeft > spaceRight ? 'left' : 'right';
|
|
267
292
|
|
|
268
|
-
//
|
|
269
|
-
//
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
293
|
+
// Suggest a flip when the overlay is currently overflowing both axes:
|
|
294
|
+
// prefer the side of the anchor with enough room, otherwise fall back to
|
|
295
|
+
// outside-bottom and let the offsets keep it inside the viewport.
|
|
296
|
+
const overflowsX = overlayRect.right > vw || overlayRect.left < 0;
|
|
297
|
+
const overflowsY = overlayRect.bottom > vh || overlayRect.top < 0;
|
|
298
|
+
let suggestedSide;
|
|
299
|
+
if (overflowsX && overflowsY) {
|
|
300
|
+
if (spaceLeft >= overlayWidth + margin) {
|
|
301
|
+
suggestedSide = 'outside-left';
|
|
302
|
+
} else if (spaceRight >= overlayWidth + margin) {
|
|
303
|
+
suggestedSide = 'outside-right';
|
|
304
|
+
} else {
|
|
305
|
+
suggestedSide = 'outside-bottom';
|
|
306
|
+
}
|
|
274
307
|
}
|
|
275
308
|
|
|
276
|
-
// If the viewport is too narrow to fit the overlay on either side, calculate offsets to prevent overflow
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
309
|
+
// If the viewport is too narrow to fit the overlay on either side, calculate offsets to prevent overflow.
|
|
310
|
+
let leftOffset;
|
|
311
|
+
let rightOffset;
|
|
312
|
+
if (spaceLeft < overlayWidth + margin && spaceRight < overlayWidth + margin) {
|
|
313
|
+
leftOffset = Math.max(0, overlayWidth - anchorRect.right + margin);
|
|
314
|
+
rightOffset = Math.max(0, anchorRect.left + overlayWidth - vw + margin);
|
|
315
|
+
}
|
|
280
316
|
return {
|
|
281
317
|
horizontal,
|
|
282
318
|
leftOffset,
|
|
283
|
-
rightOffset
|
|
319
|
+
rightOffset,
|
|
320
|
+
suggestedSide
|
|
284
321
|
};
|
|
285
322
|
}
|
|
286
323
|
function assignRef(ref, value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './AnchoredOverlay-
|
|
1
|
+
import './AnchoredOverlay-ec9e15fc.css';
|
|
2
2
|
|
|
3
3
|
var classes = {"ResponsiveCloseButtonContainer":"prc-AnchoredOverlay-ResponsiveCloseButtonContainer-nuium","ResponsiveCloseButton":"prc-AnchoredOverlay-ResponsiveCloseButton-z-2rx","AnchoredOverlay":"prc-AnchoredOverlay-AnchoredOverlay-fYg9Z"};
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blankslate.d.ts","sourceRoot":"","sources":["../../src/Blankslate/Blankslate.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,GAAG;IACzD;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE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AAE,GAAG,IAAI,EAAC,EAAE,sBAAsB,qBAM5F;AAED,KAAK,0BAA0B,GAAG,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAA;AAEnE,iBAAS,WAAW,CAAC,EAAC,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAC,EAAE,0BAA0B,qBAM9E;AAED,KAAK,4BAA4B,GAC7B,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAA;CACb,CAAC,GACA,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,GAC3C,KAAK,CAAC,iBAAiB,CAAC;IACtB,IAAI,EAAE,MAAM,CAAA;CACb,CAAC,CAAA;AAEN,iBAAS,aAAa,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAC,EAAE,4BAA4B,qBAe9E;AAED,KAAK,8BAA8B,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC5D,IAAI,EAAE,MAAM,CAAA;CACb,CAAC,CAAA;AAEF,iBAAS,eAAe,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,EAAE,8BAA8B,qBAMxE;AAED,OAAO,EAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAC,CAAA;AACjF,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,4BAA4B,EAC5B,8BAA8B,GAC/B,CAAA"}
|
|
@@ -70,7 +70,6 @@ function Blankslate(t0) {
|
|
|
70
70
|
if ($[12] !== children || $[13] !== size || $[14] !== t3 || $[15] !== t4 || $[16] !== t5 || $[17] !== t6) {
|
|
71
71
|
t7 = /*#__PURE__*/jsx("div", {
|
|
72
72
|
className: t3,
|
|
73
|
-
"data-component": "Blankslate",
|
|
74
73
|
"data-border": t4,
|
|
75
74
|
"data-narrow": t5,
|
|
76
75
|
"data-spacious": t6,
|
|
@@ -147,7 +146,6 @@ function Visual(t0) {
|
|
|
147
146
|
t2 = /*#__PURE__*/jsx("span", {
|
|
148
147
|
...rest,
|
|
149
148
|
className: t1,
|
|
150
|
-
"data-component": "Blankslate.Visual",
|
|
151
149
|
children: children
|
|
152
150
|
});
|
|
153
151
|
$[6] = children;
|
|
@@ -197,7 +195,6 @@ function Heading(t0) {
|
|
|
197
195
|
t3 = /*#__PURE__*/jsx(Component, {
|
|
198
196
|
...rest,
|
|
199
197
|
className: t2,
|
|
200
|
-
"data-component": "Blankslate.Heading",
|
|
201
198
|
children: children
|
|
202
199
|
});
|
|
203
200
|
$[7] = Component;
|
|
@@ -243,7 +240,6 @@ function Description(t0) {
|
|
|
243
240
|
t2 = /*#__PURE__*/jsx("p", {
|
|
244
241
|
...rest,
|
|
245
242
|
className: t1,
|
|
246
|
-
"data-component": "Blankslate.Description",
|
|
247
243
|
children: children
|
|
248
244
|
});
|
|
249
245
|
$[6] = children;
|
|
@@ -291,7 +287,6 @@ function PrimaryAction(t0) {
|
|
|
291
287
|
if ($[5] !== children || $[6] !== href || $[7] !== props || $[8] !== t2 || $[9] !== t3) {
|
|
292
288
|
t4 = /*#__PURE__*/jsx("div", {
|
|
293
289
|
className: t1,
|
|
294
|
-
"data-component": "Blankslate.PrimaryAction",
|
|
295
290
|
children: /*#__PURE__*/jsx(ButtonComponent, {
|
|
296
291
|
...props,
|
|
297
292
|
as: t2,
|
|
@@ -329,7 +324,6 @@ function SecondaryAction(t0) {
|
|
|
329
324
|
if ($[1] !== children || $[2] !== href) {
|
|
330
325
|
t2 = /*#__PURE__*/jsx("div", {
|
|
331
326
|
className: t1,
|
|
332
|
-
"data-component": "Blankslate.SecondaryAction",
|
|
333
327
|
children: /*#__PURE__*/jsx(Link, {
|
|
334
328
|
href: href,
|
|
335
329
|
children: children
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],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AE,QAAQ,EAAE,KAAK,EAAE,QAAiB,EAAE,OAAkB,EAAC,EAAE,gBAAgB,qBAmMzG;kBAnMQ,WAAW;;;AA+MpB,KAAK,0BAA0B,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,gBAAgB,CACpF,EAAE,EACF,GAAG,EACH;IACE,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CACF,CAAA;AAsBD,MAAM,MAAM,oBAAoB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,0BAA0B,CAAC,EAAE,CAAC,CAAA;;YAnBlG,EAAE,SAAS,KAAK,CAAC,WAAW;aANtB,EAAE;mBACI,OAAO;;aADb,EAAE;mBACI,OAAO;;;;;;;AA2BtB,wBAAiF;AAEjF;;GAEG;AACH,eAAO,MAAM,UAAU;WA3BpB,EAAE,SAAS,KAAK,CAAC,WAAW;aANtB,EAAE;mBACI,OAAO;;aADb,EAAE;mBACI,OAAO;;;;CAgCuD,CAAA;AAE7E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAA;AAE9C;;GAEG;AACH,MAAM,MAAM,mBAAmB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,GAAG,GAAG,IAAI,oBAAoB,CAAC,EAAE,CAAC,CAAA"}
|
|
@@ -323,7 +323,6 @@ function Breadcrumbs({
|
|
|
323
323
|
if (overflow === 'wrap' || menuItems.length === 0) {
|
|
324
324
|
return React.Children.map(children, child_0 => /*#__PURE__*/jsx("li", {
|
|
325
325
|
className: classes.ItemWrapper,
|
|
326
|
-
"data-component": "Breadcrumbs.ItemWrapper",
|
|
327
326
|
children: child_0
|
|
328
327
|
}));
|
|
329
328
|
}
|
|
@@ -363,7 +362,6 @@ function Breadcrumbs({
|
|
|
363
362
|
ref: containerRef,
|
|
364
363
|
"data-overflow": overflow,
|
|
365
364
|
"data-variant": variant,
|
|
366
|
-
"data-component": "Breadcrumbs",
|
|
367
365
|
children: /*#__PURE__*/jsx(BreadcrumbsList, {
|
|
368
366
|
children: finalChildren
|
|
369
367
|
})
|
|
@@ -405,7 +403,6 @@ const BreadcrumbsItem = fixedForwardRef((props, ref) => {
|
|
|
405
403
|
className: clsx(className, classes.Item, selected && 'selected'),
|
|
406
404
|
"aria-current": selected ? 'page' : undefined,
|
|
407
405
|
ref: ref,
|
|
408
|
-
"data-component": "Breadcrumbs.Item",
|
|
409
406
|
...rest
|
|
410
407
|
});
|
|
411
408
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/ButtonGroup/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAKnD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAE/F,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAC/C,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;AAEF,QAAA,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../../src/ButtonGroup/ButtonGroup.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAC,KAAK,iBAAiB,EAAC,MAAM,OAAO,CAAA;AAKnD,OAAO,KAAK,EAAC,mBAAmB,IAAI,8BAA8B,EAAC,MAAM,sBAAsB,CAAA;AAE/F,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;IAC/C,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC,CAAA;AAEF,QAAA,MAAM,WAAW,EAoBX,8BAA8B,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAA;AAI7D,eAAe,WAAW,CAAA"}
|
|
@@ -27,7 +27,6 @@ export type CheckboxProps = {
|
|
|
27
27
|
* Used during form submission and to identify which checkbox inputs are selected
|
|
28
28
|
*/
|
|
29
29
|
value?: string;
|
|
30
|
-
'data-component'?: string;
|
|
31
30
|
} & Exclude<InputHTMLAttributes<HTMLInputElement>, 'value'>;
|
|
32
31
|
/**
|
|
33
32
|
* An accessible, native checkbox component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAiD,KAAK,mBAAmB,EAAoB,MAAM,OAAO,CAAA;AAExH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAA;AAI7E,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAElD,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../src/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAiD,KAAK,mBAAmB,EAAoB,MAAM,OAAO,CAAA;AAExH,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,qCAAqC,CAAA;AAI7E,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAElD,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAA;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,GAAG,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAA;AAE3D;;GAEG;AACH,QAAA,MAAM,QAAQ,qGAqDb,CAAA;wBAK0B,cAAc,CAAC,OAAO,QAAQ,CAAC;AAA1D,wBAA0D"}
|
|
@@ -20,7 +20,6 @@ const Checkbox = /*#__PURE__*/React.forwardRef(({
|
|
|
20
20
|
required,
|
|
21
21
|
validationStatus,
|
|
22
22
|
value,
|
|
23
|
-
['data-component']: dataComponent,
|
|
24
23
|
...rest
|
|
25
24
|
}, ref
|
|
26
25
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -67,15 +66,11 @@ const Checkbox = /*#__PURE__*/React.forwardRef(({
|
|
|
67
66
|
checkbox.setAttribute('aria-checked', checkbox.checked ? 'true' : 'false');
|
|
68
67
|
}
|
|
69
68
|
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"data-component": dataComponent !== null && dataComponent !== void 0 ? dataComponent : 'Checkbox',
|
|
76
|
-
className: clsx(className, sharedClasses.Input, classes.Checkbox)
|
|
77
|
-
})
|
|
78
|
-
);
|
|
69
|
+
// @ts-expect-error inputProp needs a non nullable ref
|
|
70
|
+
return /*#__PURE__*/jsx("input", {
|
|
71
|
+
...inputProps,
|
|
72
|
+
className: clsx(className, sharedClasses.Input, classes.Checkbox)
|
|
73
|
+
});
|
|
79
74
|
});
|
|
80
75
|
Checkbox.displayName = 'Checkbox';
|
|
81
76
|
Checkbox.__SLOT__ = Symbol('Checkbox');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/CircleBadge/CircleBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAGlD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAG5C,QAAA,MAAM,YAAY;;;;CAIjB,CAAA;AAED,MAAM,MAAM,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAA;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,WAAW,SAAS,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"CircleBadge.d.ts","sourceRoot":"","sources":["../../src/CircleBadge/CircleBadge.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAGlD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAG5C,QAAA,MAAM,YAAY;;;;CAIjB,CAAA;AAED,MAAM,MAAM,gBAAgB,CAAC,EAAE,SAAS,KAAK,CAAC,WAAW,IAAI;IAC3D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,OAAO,YAAY,CAAA;IACnC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,KAAK,CAAC,qBAAqB,CAAC,KAAK,CAAC,WAAW,SAAS,EAAE,GAAG,GAAG,GAAG,EAAE,CAAC,CAAA;AAmBxE,QAAA,MAAM,eAAe;YAAW,YAAY;;CAA8D,CAAA;AAI1G,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAA;AAEzE;;;GAGG;0BAlBkB,EAAE,SAAS,KAAK,CAAC,WAAW,+BAAqC,gBAAgB,CAAC,EAAE,CAAC;;gBAS1E,YAAY;;;;AAU5C,wBAAkE"}
|
|
@@ -21,85 +21,69 @@ const sizeStyles = ({
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
const CircleBadge = t0 => {
|
|
24
|
-
const $ = c(
|
|
24
|
+
const $ = c(12);
|
|
25
25
|
let T0;
|
|
26
26
|
let t1;
|
|
27
27
|
let t2;
|
|
28
28
|
let t3;
|
|
29
29
|
let t4;
|
|
30
|
-
let t5;
|
|
31
30
|
if ($[0] !== t0) {
|
|
32
31
|
const {
|
|
33
|
-
as:
|
|
32
|
+
as: t5,
|
|
34
33
|
...props
|
|
35
34
|
} = t0;
|
|
36
|
-
const Component =
|
|
35
|
+
const Component = t5 === undefined ? "div" : t5;
|
|
37
36
|
T0 = Component;
|
|
38
37
|
t1 = props;
|
|
39
|
-
t2 =
|
|
40
|
-
t3 =
|
|
41
|
-
t4 = props
|
|
42
|
-
t5 = sizeStyles(props);
|
|
38
|
+
t2 = clsx(styles.CircleBadge, props.className);
|
|
39
|
+
t3 = props.inline ? "" : undefined;
|
|
40
|
+
t4 = sizeStyles(props);
|
|
43
41
|
$[0] = t0;
|
|
44
42
|
$[1] = T0;
|
|
45
43
|
$[2] = t1;
|
|
46
44
|
$[3] = t2;
|
|
47
45
|
$[4] = t3;
|
|
48
46
|
$[5] = t4;
|
|
49
|
-
$[6] = t5;
|
|
50
47
|
} else {
|
|
51
48
|
T0 = $[1];
|
|
52
49
|
t1 = $[2];
|
|
53
50
|
t2 = $[3];
|
|
54
51
|
t3 = $[4];
|
|
55
52
|
t4 = $[5];
|
|
56
|
-
t5 = $[6];
|
|
57
53
|
}
|
|
58
|
-
let
|
|
59
|
-
if ($[
|
|
60
|
-
|
|
54
|
+
let t5;
|
|
55
|
+
if ($[6] !== T0 || $[7] !== t1 || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
|
|
56
|
+
t5 = /*#__PURE__*/jsx(T0, {
|
|
61
57
|
...t1,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
style: t5
|
|
58
|
+
className: t2,
|
|
59
|
+
"data-inline": t3,
|
|
60
|
+
style: t4
|
|
66
61
|
});
|
|
67
|
-
$[
|
|
68
|
-
$[
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
$[13] = t6;
|
|
62
|
+
$[6] = T0;
|
|
63
|
+
$[7] = t1;
|
|
64
|
+
$[8] = t2;
|
|
65
|
+
$[9] = t3;
|
|
66
|
+
$[10] = t4;
|
|
67
|
+
$[11] = t5;
|
|
74
68
|
} else {
|
|
75
|
-
|
|
69
|
+
t5 = $[11];
|
|
76
70
|
}
|
|
77
|
-
return
|
|
71
|
+
return t5;
|
|
78
72
|
};
|
|
79
73
|
const CircleBadgeIcon = props => {
|
|
80
|
-
const $ = c(
|
|
74
|
+
const $ = c(2);
|
|
81
75
|
let t0;
|
|
82
|
-
if ($[0] !== props
|
|
83
|
-
t0 =
|
|
84
|
-
|
|
76
|
+
if ($[0] !== props) {
|
|
77
|
+
t0 = /*#__PURE__*/jsx(Octicon, {
|
|
78
|
+
className: styles.CircleBadgeIcon,
|
|
79
|
+
...props
|
|
80
|
+
});
|
|
81
|
+
$[0] = props;
|
|
85
82
|
$[1] = t0;
|
|
86
83
|
} else {
|
|
87
84
|
t0 = $[1];
|
|
88
85
|
}
|
|
89
|
-
|
|
90
|
-
if ($[2] !== props || $[3] !== t0) {
|
|
91
|
-
t1 = /*#__PURE__*/jsx(Octicon, {
|
|
92
|
-
...props,
|
|
93
|
-
"data-component": "CircleBadge.Icon",
|
|
94
|
-
className: t0
|
|
95
|
-
});
|
|
96
|
-
$[2] = props;
|
|
97
|
-
$[3] = t0;
|
|
98
|
-
$[4] = t1;
|
|
99
|
-
} else {
|
|
100
|
-
t1 = $[4];
|
|
101
|
-
}
|
|
102
|
-
return t1;
|
|
86
|
+
return t0;
|
|
103
87
|
};
|
|
104
88
|
CircleBadgeIcon.displayName = 'CircleBadge.Icon';
|
|
105
89
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../src/ConfirmationDialog/ConfirmationDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAoB,WAAW,EAAE,YAAY,EAAC,MAAM,WAAW,CAAA;AAI3E;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,KAAK,IAAI,CAAA;IAE5E;;;OAGG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IAEtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAErC;;OAEG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAEtC;;OAEG;IACH,iBAAiB,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAA;IAEnD;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAE7B;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAE9B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAE1C;;OAEG;IACH,SAAS,CAA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AO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,CAoDzF,CAAA;AAGD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC,GAAG;IAAC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;CAAC,CAAA;AAyBlG;;;;GAIG;AACH,wBAAgB,UAAU,cACa,cAAc,sBAIpD"}
|
|
@@ -5,14 +5,12 @@ export type CounterLabelProps = React.PropsWithChildren<HTMLAttributes<HTMLSpanE
|
|
|
5
5
|
scheme?: 'primary' | 'secondary';
|
|
6
6
|
variant?: 'primary' | 'secondary';
|
|
7
7
|
className?: string;
|
|
8
|
-
'data-component'?: string;
|
|
9
8
|
}>;
|
|
10
9
|
declare const CounterLabel: React.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & {
|
|
11
10
|
/** @deprecated use variant instead */
|
|
12
11
|
scheme?: "primary" | "secondary";
|
|
13
12
|
variant?: "primary" | "secondary";
|
|
14
13
|
className?: string;
|
|
15
|
-
'data-component'?: string;
|
|
16
14
|
} & {
|
|
17
15
|
children?: React.ReactNode | undefined;
|
|
18
16
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/CounterLabel/CounterLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CACrD,cAAc,CAAC,eAAe,CAAC,GAAG;IAChC,sCAAsC;IACtC,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IAChC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"CounterLabel.d.ts","sourceRoot":"","sources":["../../src/CounterLabel/CounterLabel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CACrD,cAAc,CAAC,eAAe,CAAC,GAAG;IAChC,sCAAsC;IACtC,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IAChC,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAA;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CACF,CAAA;AAED,QAAA,MAAM,YAAY;IAPd,sCAAsC;aAC7B,SAAS,GAAG,WAAW;cACtB,SAAS,GAAG,WAAW;gBACrB,MAAM;;;yCA0BrB,CAAA;AAID,eAAe,YAAY,CAAA"}
|