@primer/react 38.31.1-rc.fbf889cc5 → 38.32.0-rc.07044f1e1

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/dist/ActionList/{ActionList-65f7daac.css → ActionList-1ff5220c.css} +2 -2
  3. package/dist/ActionList/ActionList-1ff5220c.css.map +1 -0
  4. package/dist/ActionList/ActionList.module.css.js +1 -1
  5. package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css → Breadcrumbs-16d81430.css} +2 -2
  6. package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css.map → Breadcrumbs-16d81430.css.map} +1 -1
  7. package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
  8. package/dist/Breadcrumbs/Breadcrumbs.module.css.js +2 -2
  9. package/dist/PageHeader/PageHeader-b12247c8.css +2 -0
  10. package/dist/PageHeader/PageHeader-b12247c8.css.map +1 -0
  11. package/dist/PageHeader/PageHeader.js +64 -23
  12. package/dist/PageHeader/PageHeader.module.css.js +1 -1
  13. package/dist/PageLayout/PageLayout.d.ts +6 -0
  14. package/dist/PageLayout/PageLayout.js +549 -535
  15. package/dist/SegmentedControl/SegmentedControl-a004561f.css +2 -0
  16. package/dist/SegmentedControl/SegmentedControl-a004561f.css.map +1 -0
  17. package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
  18. package/dist/SplitPageLayout/SplitPageLayout.js +11 -0
  19. package/dist/Stack/Stack.js +2 -0
  20. package/dist/StateLabel/StateLabel.js +1 -0
  21. package/dist/SubNav/SubNav.js +3 -0
  22. package/dist/TabNav/TabNav.js +3 -1
  23. package/dist/Text/Text.js +1 -0
  24. package/dist/Textarea/Textarea.js +1 -0
  25. package/dist/ThemeProvider.js +1 -0
  26. package/dist/ToggleSwitch/ToggleSwitch.js +167 -186
  27. package/dist/experimental/SelectPanel2/SelectPanel-917fdaef.css +2 -0
  28. package/dist/experimental/SelectPanel2/{SelectPanel-608e207e.css.map → SelectPanel-917fdaef.css.map} +1 -1
  29. package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
  30. package/dist/hooks/useMedia.js +44 -43
  31. package/package.json +3 -3
  32. package/dist/ActionList/ActionList-65f7daac.css.map +0 -1
  33. package/dist/PageHeader/PageHeader-5e969745.css +0 -2
  34. package/dist/PageHeader/PageHeader-5e969745.css.map +0 -1
  35. package/dist/SegmentedControl/SegmentedControl-622e61a4.css +0 -2
  36. package/dist/SegmentedControl/SegmentedControl-622e61a4.css.map +0 -1
  37. package/dist/experimental/SelectPanel2/SelectPanel-608e207e.css +0 -2
@@ -0,0 +1,2 @@
1
+ .prc-SegmentedControl-SegmentedControl-lqIXp{--segmented-control-icon-width:32px;background-color:var(--controlTrack-bgColor-rest,#e6eaef);border:var(--borderWidth-thin,.0625rem) solid var(--controlTrack-borderColor-rest,transparent);border-radius:var(--borderRadius-medium,.375rem);display:inline-flex;font-size:var(--text-body-size-medium,.875rem);height:32px;margin:0;padding:0}.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width=true]{display:flex;width:100%;--segmented-control-icon-width:100%}.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width=false]{display:inline-flex;width:auto;--segmented-control-icon-width:32px}@media (max-width:calc(48rem - 0.02px)){.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width-narrow=true]{display:flex;width:100%;--segmented-control-icon-width:100%}.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width-narrow=false]{display:inline-flex;width:auto;--segmented-control-icon-width:32px}}@media (min-width:48rem){.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width-regular=true]{display:flex;width:100%;--segmented-control-icon-width:100%}.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width-regular=false]{display:inline-flex;width:auto;--segmented-control-icon-width:32px}}@media (min-width:87.5rem){.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width-wide=true]{display:flex;width:100%;--segmented-control-icon-width:100%}.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width-regular=true]:not([data-full-width-wide=true]),.prc-SegmentedControl-SegmentedControl-lqIXp[data-full-width-wide=false]{display:inline-flex;width:auto;--segmented-control-icon-width:32px}}.prc-SegmentedControl-SegmentedControl-lqIXp[data-variant=dropdown],.prc-SegmentedControl-SegmentedControl-lqIXp[data-variant=hideLabels] .prc-SegmentedControl-Text-7S2y2{display:none}@media (max-width:calc(48rem - 0.02px)){.prc-SegmentedControl-SegmentedControl-lqIXp[data-variant-narrow=dropdown],.prc-SegmentedControl-SegmentedControl-lqIXp[data-variant-narrow=hideLabels] .prc-SegmentedControl-Text-7S2y2{display:none}}@media (min-width:48rem){.prc-SegmentedControl-SegmentedControl-lqIXp[data-variant-regular=dropdown],.prc-SegmentedControl-SegmentedControl-lqIXp[data-variant-regular=hideLabels] .prc-SegmentedControl-Text-7S2y2{display:none}}@media (min-width:87.5rem){.prc-SegmentedControl-SegmentedControl-lqIXp[data-variant-wide=dropdown],.prc-SegmentedControl-SegmentedControl-lqIXp[data-variant-wide=hideLabels] .prc-SegmentedControl-Text-7S2y2{display:none}}.prc-SegmentedControl-SegmentedControl-lqIXp:where([data-size=small]){font-size:var(--text-body-size-small,.75rem);height:28px}.prc-SegmentedControl-DropdownContainer-ZaPMn{display:none}.prc-SegmentedControl-DropdownContainer-ZaPMn[data-variant=dropdown]{display:block}@media (max-width:calc(48rem - 0.02px)){.prc-SegmentedControl-DropdownContainer-ZaPMn[data-variant-narrow=dropdown]{display:block}}@media (min-width:48rem){.prc-SegmentedControl-DropdownContainer-ZaPMn[data-variant-regular=dropdown]{display:block}}@media (min-width:87.5rem){.prc-SegmentedControl-DropdownContainer-ZaPMn[data-variant-wide=dropdown]{display:block}}.prc-SegmentedControl-Item-tSCQh{display:block;flex-grow:1;margin-bottom:-1px;margin-top:-1px;position:relative}.prc-SegmentedControl-Item-tSCQh:not(:last-child){margin-right:1px}.prc-SegmentedControl-Item-tSCQh:not(:last-child):after{background-color:var(--borderColor-default,#d1d9e0);bottom:var(--base-size-8,.5rem);content:"";position:absolute;right:calc(var(--base-size-2,.125rem)*-1);top:var(--base-size-8,.5rem);width:1px}.prc-SegmentedControl-Item-tSCQh:not(:last-child):has(+[data-selected]):after,.prc-SegmentedControl-Item-tSCQh:not(:last-child):where([data-selected]):after{background-color:transparent}.prc-SegmentedControl-Item-tSCQh:first-child{margin-left:-1px}.prc-SegmentedControl-Item-tSCQh:last-child{margin-right:-1px}.prc-SegmentedControl-Item-tSCQh .prc-SegmentedControl-Counter-GmZOI{align-items:center;display:flex;margin-inline-start:var(--base-size-8,.5rem)}.prc-SegmentedControl-Button-E48xz{--segmented-control-button-inner-padding:12px;--segmented-control-button-bg-inset:4px;--segmented-control-outer-radius:var(--borderRadius-medium,0.375rem);background-color:transparent;border-color:transparent;border-radius:var(--segmented-control-outer-radius);border-width:0;color:currentColor;cursor:pointer;font-family:inherit;font-size:inherit;font-weight:var(--base-text-weight-normal,400);height:100%;padding:var(--segmented-control-button-bg-inset);width:100%}.prc-SegmentedControl-Button-E48xz svg{fill:var(--fgColor-muted,#59636e);color:var(--fgColor-muted,#59636e)}.prc-SegmentedControl-Button-E48xz:focus:not(:disabled){box-shadow:none;outline:var(--base-size-2,.125rem) solid var(--fgColor-accent,#0969da);outline-offset:-1px}.prc-SegmentedControl-Button-E48xz:focus:not(:disabled):not(:focus-visible){outline:1px solid transparent}.prc-SegmentedControl-Button-E48xz:focus-visible:not(:disabled){box-shadow:none;outline:var(--base-size-2,.125rem) solid var(--fgColor-accent,#0969da);outline-offset:-1px}.prc-SegmentedControl-Button-E48xz:focus:focus-visible:not(:last-child):after{width:0}.prc-SegmentedControl-Button-E48xz[aria-disabled=true]:not([aria-current=true]){background-color:transparent;color:var(--fgColor-disabled,#818b98);cursor:not-allowed}.prc-SegmentedControl-Button-E48xz[aria-disabled=true]:not([aria-current=true]) svg{fill:var(--fgColor-disabled,#818b98);color:var(--fgColor-disabled,#818b98)}@media (pointer:coarse){.prc-SegmentedControl-Button-E48xz:before{content:"";left:0;min-height:44px;position:absolute;right:0;top:50%;transform:translateY(-50%)}}.prc-SegmentedControl-IconButton-tlzDE{width:var(--segmented-control-icon-width,32px)}.prc-SegmentedControl-Content-1COlk{align-items:center;border-color:transparent;border-radius:calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset)/2);border-style:solid;border-width:var(--borderWidth-thin,.0625rem);display:flex;height:100%;justify-content:center;padding-left:calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset));padding-right:calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset))}.prc-SegmentedControl-Button-E48xz[aria-current=true]{font-weight:var(--base-text-weight-semibold,600);padding:0}.prc-SegmentedControl-Button-E48xz[aria-current=true] .prc-SegmentedControl-Content-1COlk{background-color:var(--controlKnob-bgColor-rest,#fff);border-color:var(--controlKnob-borderColor-rest,#d1d9e0);border-radius:var(--segmented-control-outer-radius);padding-left:var(--segmented-control-button-inner-padding);padding-right:var(--segmented-control-button-inner-padding)}.prc-SegmentedControl-Button-E48xz:not([aria-current=true],[aria-disabled=true]):hover .prc-SegmentedControl-Content-1COlk{background-color:var(--controlTrack-bgColor-hover,#e0e6eb)}.prc-SegmentedControl-Button-E48xz:not([aria-current=true],[aria-disabled=true]):active .prc-SegmentedControl-Content-1COlk{background-color:var(--controlTrack-bgColor-active,#dae0e7)}.prc-SegmentedControl-Text-7S2y2:after{content:attr(data-text);display:block;font-weight:var(--base-text-weight-semibold,600);height:0;overflow:hidden;pointer-events:none;-webkit-user-select:none;user-select:none;visibility:hidden}.prc-SegmentedControl-LeadingIcon-74n5s{margin-right:var(--base-size-4,.25rem)}
2
+ /*# sourceMappingURL=SegmentedControl-a004561f.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/SegmentedControl/SegmentedControl.module.css.js"],"names":[],"mappings":"AAAA,6CAEE,mCAAoC,CASpC,yDAAkD,CAClD,8FAAuF,CACvF,gDAAyC,CATzC,mBAAoB,CAMpB,8CAAuC,CAHvC,WAAY,CAEZ,QAAS,CADT,SA0HF,CAlHE,mEACE,YAAa,CACb,UAAW,CAEX,mCACF,CAEA,oEACE,mBAAoB,CACpB,UAAW,CAEX,mCACF,CAEA,wCACE,0EACE,YAAa,CACb,UAAW,CAEX,mCACF,CAEA,2EACE,mBAAoB,CACpB,UAAW,CAEX,mCACF,CACF,CAEA,yBACE,2EACE,YAAa,CACb,UAAW,CAEX,mCACF,CAEA,4EACE,mBAAoB,CACpB,UAAW,CAEX,mCACF,CACF,CAEA,2BACE,wEACE,YAAa,CACb,UAAW,CAEX,mCACF,CASA,qLACE,mBAAoB,CACpB,UAAW,CAEX,mCACF,CACF,CAQA,2KACE,YACF,CAEA,wCAKE,yLACE,YACF,CACF,CAEA,yBAKE,2LACE,YACF,CACF,CAEA,2BAKE,qLACE,YACF,CACF,CAEA,sEAGE,4CAAsC,CADtC,WAEF,CAGF,8CACE,YAwBF,CArBE,qEACE,aACF,CAEA,wCACE,4EACE,aACF,CACF,CAEA,yBACE,6EACE,aACF,CACF,CAEA,2BACE,0EACE,aACF,CACF,CAGF,iCAEE,aAAc,CAKd,WAAY,CADZ,kBAAmB,CAFnB,eAAgB,CAHhB,iBA6CF,CArCE,kDAEE,gBAkBF,CAhBE,wDAQE,mDAA4C,CAJ5C,+BAA0B,CAE1B,UAAW,CALX,iBAAkB,CAElB,yCAAoC,CADpC,4BAAuB,CAGvB,SAIF,CAGA,6JAEE,4BACF,CAGF,6CAEE,gBACF,CAEA,4CAEE,iBACF,CAEA,qEAGE,kBAAmB,CADnB,YAAa,CADb,4CAGF,CAGF,mCAEE,6CAA8C,CAC9C,uCAAwC,CACxC,oEAA4D,CAW5D,4BAA6B,CAC7B,wBAAyB,CAGzB,mDAAoD,CAFpD,cAAe,CAJf,kBAAmB,CACnB,cAAe,CAJf,mBAAoB,CACpB,iBAAkB,CAClB,8CAA2C,CAL3C,WAAY,CAEZ,gDAAiD,CAHjD,UAmEF,CApDE,uCACE,iCAA0B,CAC1B,kCACF,CAGA,wDAGE,eAAgB,CAFhB,sEAAuD,CACvD,mBAOF,CAHE,4EACE,6BACF,CAIF,gEAGE,eAAgB,CAFhB,sEAAuD,CACvD,mBAEF,CAGA,8EAEE,OACF,CAEA,gFAGE,4BAA6B,CAD7B,qCAA8B,CAD9B,kBAQF,CAJE,oFACE,oCAA6B,CAC7B,qCACF,CAGF,wBACE,0CAME,UAAW,CAFX,MAAO,CACP,eAAgB,CAJhB,iBAAkB,CAElB,OAAQ,CADR,OAAQ,CAKR,0BACF,CACF,CAGF,uCACE,8CACF,CAEA,oCAiBE,kBAAmB,CAVnB,wBAAyB,CASzB,sGAAyG,CARzG,kBAAmB,CACnB,6CAAqC,CARrC,YAAa,CACb,WAAY,CAgBZ,sBAAuB,CAZvB,2GAA4G,CAF5G,4GAeF,CAEA,sDAEE,gDAA6C,CAD7C,SAaF,CAVE,0FAKE,qDAAiD,CACjD,wDAAiD,CAEjD,mDAAoD,CAJpD,0DAA2D,CAF3D,2DAOF,CAIA,2HACE,0DACF,CAEA,4HACE,2DACF,CAGF,uCAOE,uBAAwB,CANxB,aAAc,CAGd,gDAA6C,CAF7C,QAAS,CACT,eAAgB,CAEhB,mBAAoB,CAGpB,wBAAiB,CAAjB,gBAAiB,CAFjB,iBAGF,CAEA,wCACE,sCACF","file":"SegmentedControl-a004561f.css","sourcesContent":[".SegmentedControl {\n /* TODO: use primitive `control.medium.size` when it is available instead of '32px' */\n --segmented-control-icon-width: 32px;\n\n display: inline-flex;\n\n /* TODO: use primitive `control.{small|medium}.size` when it is available */\n height: 32px;\n padding: 0;\n margin: 0;\n font-size: var(--text-body-size-medium);\n background-color: var(--controlTrack-bgColor-rest);\n border: var(--borderWidth-thin) solid var(--controlTrack-borderColor-rest, transparent);\n border-radius: var(--borderRadius-medium);\n\n /* Responsive full-width */\n &[data-full-width='true'] {\n display: flex;\n width: 100%;\n\n --segmented-control-icon-width: 100%;\n }\n\n &[data-full-width='false'] {\n display: inline-flex;\n width: auto;\n\n --segmented-control-icon-width: 32px;\n }\n\n @media (--viewportRange-narrow) {\n &[data-full-width-narrow='true'] {\n display: flex;\n width: 100%;\n\n --segmented-control-icon-width: 100%;\n }\n\n &[data-full-width-narrow='false'] {\n display: inline-flex;\n width: auto;\n\n --segmented-control-icon-width: 32px;\n }\n }\n\n @media (--viewportRange-regular) {\n &[data-full-width-regular='true'] {\n display: flex;\n width: 100%;\n\n --segmented-control-icon-width: 100%;\n }\n\n &[data-full-width-regular='false'] {\n display: inline-flex;\n width: auto;\n\n --segmented-control-icon-width: 32px;\n }\n }\n\n @media (--viewportRange-wide) {\n &[data-full-width-wide='true'] {\n display: flex;\n width: 100%;\n\n --segmented-control-icon-width: 100%;\n }\n\n &[data-full-width-wide='false'] {\n display: inline-flex;\n width: auto;\n\n --segmented-control-icon-width: 32px;\n }\n\n &[data-full-width-regular='true']:not([data-full-width-wide='true']) {\n display: inline-flex;\n width: auto;\n\n --segmented-control-icon-width: 32px;\n }\n }\n\n /* Hide when dropdown variant is active */\n &[data-variant='dropdown'] {\n display: none;\n }\n\n /* Handle hideLabels variant - hide button text */\n &[data-variant='hideLabels'] .Text {\n display: none;\n }\n\n @media (--viewportRange-narrow) {\n &[data-variant-narrow='dropdown'] {\n display: none;\n }\n\n &[data-variant-narrow='hideLabels'] .Text {\n display: none;\n }\n }\n\n @media (--viewportRange-regular) {\n &[data-variant-regular='dropdown'] {\n display: none;\n }\n\n &[data-variant-regular='hideLabels'] .Text {\n display: none;\n }\n }\n\n @media (--viewportRange-wide) {\n &[data-variant-wide='dropdown'] {\n display: none;\n }\n\n &[data-variant-wide='hideLabels'] .Text {\n display: none;\n }\n }\n\n &:where([data-size='small']) {\n /* TODO: use primitive `control.{small|medium}.size` when it is available */\n height: 28px;\n font-size: var(--text-body-size-small);\n }\n}\n\n.DropdownContainer {\n display: none;\n\n /* Show when dropdown variant is active */\n &[data-variant='dropdown'] {\n display: block;\n }\n\n @media (--viewportRange-narrow) {\n &[data-variant-narrow='dropdown'] {\n display: block;\n }\n }\n\n @media (--viewportRange-regular) {\n &[data-variant-regular='dropdown'] {\n display: block;\n }\n }\n\n @media (--viewportRange-wide) {\n &[data-variant-wide='dropdown'] {\n display: block;\n }\n }\n}\n\n.Item {\n position: relative;\n display: block;\n /* stylelint-disable-next-line primer/spacing */\n margin-top: -1px;\n /* stylelint-disable-next-line primer/spacing */\n margin-bottom: -1px;\n flex-grow: 1;\n\n &:not(:last-child) {\n /* stylelint-disable-next-line primer/spacing */\n margin-right: 1px;\n\n &::after {\n position: absolute;\n top: var(--base-size-8);\n right: calc(-1 * var(--base-size-2));\n bottom: var(--base-size-8);\n width: 1px;\n content: '';\n /* stylelint-disable-next-line primer/colors */\n background-color: var(--borderColor-default);\n }\n\n /* stylelint-disable-next-line selector-pseudo-class-disallowed-list -- scoped to CSS Module, audited (github/github-ui#17224) */\n &:has(+ [data-selected])::after,\n &:where([data-selected])::after {\n background-color: transparent;\n }\n }\n\n &:first-child {\n /* stylelint-disable-next-line primer/spacing */\n margin-left: -1px;\n }\n\n &:last-child {\n /* stylelint-disable-next-line primer/spacing */\n margin-right: -1px;\n }\n\n .Counter {\n margin-inline-start: var(--base-size-8);\n display: flex;\n align-items: center;\n }\n}\n\n.Button {\n /* TODO: use primitive `primer.control.medium.paddingInline.normal` when it is available */\n --segmented-control-button-inner-padding: 12px;\n --segmented-control-button-bg-inset: 4px;\n --segmented-control-outer-radius: var(--borderRadius-medium);\n\n width: 100%;\n height: 100%;\n /* stylelint-disable-next-line primer/spacing */\n padding: var(--segmented-control-button-bg-inset);\n font-family: inherit;\n font-size: inherit;\n font-weight: var(--base-text-weight-normal);\n color: currentColor;\n cursor: pointer;\n background-color: transparent;\n border-color: transparent;\n border-width: 0;\n /* stylelint-disable-next-line primer/borders */\n border-radius: var(--segmented-control-outer-radius);\n\n & svg {\n fill: var(--fgColor-muted);\n color: var(--fgColor-muted);\n }\n\n /* fallback :focus state */\n &:focus:not(:disabled) {\n outline: var(--base-size-2) solid var(--fgColor-accent);\n outline-offset: -1px;\n box-shadow: none;\n\n /* remove fallback :focus if :focus-visible is supported */\n &:not(:focus-visible) {\n outline: solid 1px transparent;\n }\n }\n\n /* default focus state */\n &:focus-visible:not(:disabled) {\n outline: var(--base-size-2) solid var(--fgColor-accent);\n outline-offset: -1px;\n box-shadow: none;\n }\n\n /* stylelint-disable-next-line selector-max-specificity */\n &:focus:focus-visible:not(:last-child)::after {\n /* fixes an issue where the focus outline shows over the pseudo-element */\n width: 0;\n }\n\n &[aria-disabled='true']:not([aria-current='true']) {\n cursor: not-allowed;\n color: var(--fgColor-disabled);\n background-color: transparent;\n\n & svg {\n fill: var(--fgColor-disabled);\n color: var(--fgColor-disabled);\n }\n }\n\n @media (pointer: coarse) {\n &::before {\n position: absolute;\n top: 50%;\n right: 0;\n left: 0;\n min-height: 44px;\n content: '';\n transform: translateY(-50%);\n }\n }\n}\n\n.IconButton {\n width: var(--segmented-control-icon-width, 32px);\n}\n\n.Content {\n display: flex;\n height: 100%;\n /* stylelint-disable-next-line primer/spacing */\n padding-right: calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset));\n /* stylelint-disable-next-line primer/spacing */\n padding-left: calc(var(--segmented-control-button-inner-padding) - var(--segmented-control-button-bg-inset));\n border-color: transparent;\n border-style: solid;\n border-width: var(--borderWidth-thin);\n\n /*\n innerRadius = outerRadius - distance/2\n https://stackoverflow.com/questions/2932146/math-problem-determine-the-corner-radius-of-an-inner-border-based-on-outer-corn\n */\n /* stylelint-disable-next-line primer/borders */\n border-radius: calc(var(--segmented-control-outer-radius) - var(--segmented-control-button-bg-inset) / 2);\n align-items: center;\n justify-content: center;\n}\n\n.Button[aria-current='true'] {\n padding: 0;\n font-weight: var(--base-text-weight-semibold);\n\n .Content {\n /* stylelint-disable-next-line primer/spacing */\n padding-right: var(--segmented-control-button-inner-padding);\n /* stylelint-disable-next-line primer/spacing */\n padding-left: var(--segmented-control-button-inner-padding);\n background-color: var(--controlKnob-bgColor-rest);\n border-color: var(--controlKnob-borderColor-rest);\n /* stylelint-disable-next-line primer/borders */\n border-radius: var(--segmented-control-outer-radius);\n }\n}\n\n.Button:not([aria-current='true'], [aria-disabled='true']) {\n &:hover .Content {\n background-color: var(--controlTrack-bgColor-hover);\n }\n\n &:active .Content {\n background-color: var(--controlTrack-bgColor-active);\n }\n}\n\n.Text::after {\n display: block;\n height: 0;\n overflow: hidden;\n font-weight: var(--base-text-weight-semibold);\n pointer-events: none;\n visibility: hidden;\n content: attr(data-text);\n user-select: none;\n}\n\n.LeadingIcon {\n margin-right: var(--base-size-4);\n}\n"]}
@@ -1,4 +1,4 @@
1
- import "./SegmentedControl-622e61a4.css";
1
+ import "./SegmentedControl-a004561f.css";
2
2
  //#region src/SegmentedControl/SegmentedControl.module.css.js
3
3
  var SegmentedControl_module_css_default = {
4
4
  "SegmentedControl": "prc-SegmentedControl-SegmentedControl-lqIXp",
@@ -16,6 +16,7 @@ const Root = (props) => {
16
16
  let t1;
17
17
  if ($[1] !== props) {
18
18
  t1 = /*#__PURE__*/ jsx(PageLayout, {
19
+ "data-component": "SplitPageLayout",
19
20
  containerWidth: "full",
20
21
  padding: "none",
21
22
  columnGap: "none",
@@ -50,6 +51,7 @@ const Header = (t0) => {
50
51
  let t3;
51
52
  if ($[4] !== divider || $[5] !== padding || $[6] !== props) {
52
53
  t3 = /*#__PURE__*/ jsx(PageLayout.Header, {
54
+ "data-component": "SplitPageLayout.Header",
53
55
  padding,
54
56
  divider,
55
57
  ...props
@@ -83,6 +85,7 @@ const Content = (t0) => {
83
85
  let t3;
84
86
  if ($[4] !== padding || $[5] !== props || $[6] !== width) {
85
87
  t3 = /*#__PURE__*/ jsx(PageLayout.Content, {
88
+ "data-component": "SplitPageLayout.Content",
86
89
  width,
87
90
  padding,
88
91
  ...props
@@ -124,6 +127,7 @@ const Pane = (t0) => {
124
127
  let t5;
125
128
  if ($[6] !== divider || $[7] !== padding || $[8] !== position || $[9] !== props || $[10] !== sticky) {
126
129
  t5 = /*#__PURE__*/ jsx(PageLayout.Pane, {
130
+ "data-component": "SplitPageLayout.Pane",
127
131
  position,
128
132
  sticky,
129
133
  padding,
@@ -165,6 +169,7 @@ const Sidebar = (t0) => {
165
169
  let t4;
166
170
  if ($[5] !== divider || $[6] !== padding || $[7] !== position || $[8] !== props) {
167
171
  t4 = /*#__PURE__*/ jsx(PageLayout.Sidebar, {
172
+ "data-component": "SplitPageLayout.Sidebar",
168
173
  position,
169
174
  padding,
170
175
  divider,
@@ -200,6 +205,7 @@ const Footer = (t0) => {
200
205
  let t3;
201
206
  if ($[4] !== divider || $[5] !== padding || $[6] !== props) {
202
207
  t3 = /*#__PURE__*/ jsx(PageLayout.Footer, {
208
+ "data-component": "SplitPageLayout.Footer",
203
209
  padding,
204
210
  divider,
205
211
  ...props
@@ -212,6 +218,11 @@ const Footer = (t0) => {
212
218
  return t3;
213
219
  };
214
220
  Footer.displayName = "SplitPageLayout.Footer";
221
+ Header.__SLOT__ = PageLayout.Header.__SLOT__;
222
+ Content.__SLOT__ = PageLayout.Content.__SLOT__;
223
+ Pane.__SLOT__ = PageLayout.Pane.__SLOT__;
224
+ Sidebar.__SLOT__ = PageLayout.Sidebar.__SLOT__;
225
+ Footer.__SLOT__ = PageLayout.Footer.__SLOT__;
215
226
  const SplitPageLayout = Object.assign(Root, {
216
227
  Header,
217
228
  Content,
@@ -113,6 +113,7 @@ const Stack = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
113
113
  t16 = /*#__PURE__*/ jsx(Component, {
114
114
  ref: forwardedRef,
115
115
  ...rest,
116
+ "data-component": "Stack",
116
117
  className: t7,
117
118
  ...t8,
118
119
  ...t9,
@@ -190,6 +191,7 @@ const StackItem = /*#__PURE__*/ forwardRef((t0, forwardedRef) => {
190
191
  t5 = /*#__PURE__*/ jsx(Component, {
191
192
  ref: forwardedRef,
192
193
  ...rest,
194
+ "data-component": "StackItem",
193
195
  className: t2,
194
196
  ...t3,
195
197
  ...t4,
@@ -96,6 +96,7 @@ const StateLabel = /*#__PURE__*/ forwardRef((t0, ref) => {
96
96
  ...rest,
97
97
  ref,
98
98
  className: t1,
99
+ "data-component": "StateLabel",
99
100
  "data-size": inferredSize,
100
101
  "data-status": status,
101
102
  children: [t2, children]
@@ -62,6 +62,7 @@ const SubNav = /*#__PURE__*/ React.forwardRef(function SubNav(t0, forwardRef) {
62
62
  className: t1,
63
63
  "aria-label": label,
64
64
  ...rest,
65
+ "data-component": "SubNav",
65
66
  children: [t3, t4]
66
67
  });
67
68
  $[13] = forwardRef;
@@ -103,6 +104,7 @@ const SubNavLinks = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
103
104
  ref: forwardRef,
104
105
  className: t1,
105
106
  ...rest,
107
+ "data-component": "SubNav.Links",
106
108
  children
107
109
  });
108
110
  $[6] = children;
@@ -144,6 +146,7 @@ const SubNavLink = /*#__PURE__*/ React.forwardRef((t0, forwardRef) => {
144
146
  "data-selected": rest.selected,
145
147
  "aria-current": rest.selected,
146
148
  ...rest,
149
+ "data-component": "SubNav.Link",
147
150
  children
148
151
  });
149
152
  $[6] = children;
@@ -102,6 +102,7 @@ function TabNav(t0) {
102
102
  t10 = /*#__PURE__*/ jsx("div", {
103
103
  ...rest,
104
104
  ref: t7,
105
+ "data-component": "TabNav",
105
106
  children: t9
106
107
  });
107
108
  $[16] = rest;
@@ -159,7 +160,8 @@ const TabNavLink = /*#__PURE__*/ React.forwardRef(function TabNavLink(t0, ref) {
159
160
  tabIndex: -1,
160
161
  "aria-selected": t2,
161
162
  className: t5,
162
- ...rest
163
+ ...rest,
164
+ "data-component": "TabNav.Link"
163
165
  });
164
166
  $[9] = Component;
165
167
  $[10] = ref;
package/dist/Text/Text.js CHANGED
@@ -40,6 +40,7 @@ function Text(props, ref) {
40
40
  if ($[9] !== Component || $[10] !== ref || $[11] !== rest || $[12] !== size || $[13] !== t1 || $[14] !== weight || $[15] !== whiteSpace) {
41
41
  t2 = /*#__PURE__*/ jsx(Component, {
42
42
  className: t1,
43
+ "data-component": "Text",
43
44
  "data-size": size,
44
45
  "data-weight": weight,
45
46
  "data-white-space": whiteSpace,
@@ -132,6 +132,7 @@ const Textarea = /*#__PURE__*/ React.forwardRef((t0, ref) => {
132
132
  t10 = /*#__PURE__*/ jsx("textarea", {
133
133
  value,
134
134
  defaultValue,
135
+ "data-component": "Textarea",
135
136
  "data-resize": resize,
136
137
  "aria-required": required,
137
138
  "aria-invalid": t7,
@@ -96,6 +96,7 @@ const ThemeProvider = (t0) => {
96
96
  let t5;
97
97
  if ($[26] !== children || $[27] !== dayScheme || $[28] !== nightScheme || $[29] !== t4) {
98
98
  t5 = /*#__PURE__*/ jsx("div", {
99
+ "data-component": "ThemeProvider",
99
100
  "data-color-mode": t4,
100
101
  "data-light-theme": dayScheme,
101
102
  "data-dark-theme": nightScheme,
@@ -72,7 +72,7 @@ const LineIcon = (t0) => {
72
72
  };
73
73
  const ToggleSwitch = /*#__PURE__*/ React.forwardRef(function ToggleSwitch(props, ref) {
74
74
  var _buttonLabelOn, _buttonLabelOff;
75
- const $ = c(95);
75
+ const $ = c(90);
76
76
  let ariaDescribedby;
77
77
  let ariaLabelledby;
78
78
  let buttonLabelOff;
@@ -141,93 +141,74 @@ const ToggleSwitch = /*#__PURE__*/ React.forwardRef(function ToggleSwitch(props,
141
141
  const loadingLabelId = useId$1("loadingLabel");
142
142
  const { safeSetTimeout } = useSafeTimeout();
143
143
  let t5;
144
- if ($[18] !== disabled || $[19] !== isControlled || $[20] !== isOn || $[21] !== loading || $[22] !== onClick || $[23] !== setIsOn) {
144
+ if ($[18] !== disabled || $[19] !== isControlled || $[20] !== isOn || $[21] !== loading || $[22] !== onChange || $[23] !== onClick || $[24] !== setIsOn) {
145
145
  t5 = (e) => {
146
146
  if (disabled || loading) return;
147
- if (!isControlled) setIsOn(!isOn);
147
+ if (isControlled) {
148
+ var _onChange;
149
+ (_onChange = onChange) === null || _onChange === void 0 || _onChange(!isOn);
150
+ } else setIsOn(!isOn);
148
151
  onClick && onClick(e);
149
152
  };
150
153
  $[18] = disabled;
151
154
  $[19] = isControlled;
152
155
  $[20] = isOn;
153
156
  $[21] = loading;
154
- $[22] = onClick;
155
- $[23] = setIsOn;
156
- $[24] = t5;
157
- } else t5 = $[24];
157
+ $[22] = onChange;
158
+ $[23] = onClick;
159
+ $[24] = setIsOn;
160
+ $[25] = t5;
161
+ } else t5 = $[25];
158
162
  const handleToggleClick = t5;
159
163
  let t6;
160
164
  let t7;
161
- if ($[25] !== checked || $[26] !== disabled || $[27] !== isControlled || $[28] !== onChange) {
165
+ if ($[26] !== isLoadingLabelVisible || $[27] !== loading || $[28] !== loadingLabelDelay || $[29] !== safeSetTimeout) {
162
166
  t6 = () => {
163
- if (onChange && isControlled && !disabled) onChange(Boolean(checked));
164
- };
165
- t7 = [
166
- onChange,
167
- checked,
168
- isControlled,
169
- disabled
170
- ];
171
- $[25] = checked;
172
- $[26] = disabled;
173
- $[27] = isControlled;
174
- $[28] = onChange;
175
- $[29] = t6;
176
- $[30] = t7;
177
- } else {
178
- t6 = $[29];
179
- t7 = $[30];
180
- }
181
- useEffect(t6, t7);
182
- let t8;
183
- let t9;
184
- if ($[31] !== isLoadingLabelVisible || $[32] !== loading || $[33] !== loadingLabelDelay || $[34] !== safeSetTimeout) {
185
- t8 = () => {
186
167
  if (!loading && isLoadingLabelVisible) setIsLoadingLabelVisible(false);
187
168
  else if (loading && !isLoadingLabelVisible) safeSetTimeout(() => {
188
169
  setIsLoadingLabelVisible(true);
189
170
  }, loadingLabelDelay);
190
171
  };
191
- t9 = [
172
+ t7 = [
192
173
  loading,
193
174
  isLoadingLabelVisible,
194
175
  loadingLabelDelay,
195
176
  safeSetTimeout
196
177
  ];
197
- $[31] = isLoadingLabelVisible;
198
- $[32] = loading;
199
- $[33] = loadingLabelDelay;
200
- $[34] = safeSetTimeout;
201
- $[35] = t8;
202
- $[36] = t9;
178
+ $[26] = isLoadingLabelVisible;
179
+ $[27] = loading;
180
+ $[28] = loadingLabelDelay;
181
+ $[29] = safeSetTimeout;
182
+ $[30] = t6;
183
+ $[31] = t7;
203
184
  } else {
204
- t8 = $[35];
205
- t9 = $[36];
185
+ t6 = $[30];
186
+ t7 = $[31];
206
187
  }
207
- useEffect(t8, t9);
188
+ useEffect(t6, t7);
208
189
  let switchButtonDescribedBy = loadingLabelId;
209
190
  if (ariaDescribedby) switchButtonDescribedBy = `${switchButtonDescribedBy} ${ariaDescribedby}`;
191
+ let t8;
192
+ if ($[32] !== className) {
193
+ t8 = clsx(ToggleSwitch_module_css_default.ToggleSwitch, className);
194
+ $[32] = className;
195
+ $[33] = t8;
196
+ } else t8 = $[33];
197
+ const t9 = isLoadingLabelVisible && loadingLabel;
210
198
  let t10;
211
- if ($[37] !== className) {
212
- t10 = clsx(ToggleSwitch_module_css_default.ToggleSwitch, className);
213
- $[37] = className;
214
- $[38] = t10;
215
- } else t10 = $[38];
216
- const t11 = isLoadingLabelVisible && loadingLabel;
217
- let t12;
218
- if ($[39] !== loadingLabelId || $[40] !== t11) {
219
- t12 = /*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
199
+ if ($[34] !== loadingLabelId || $[35] !== t9) {
200
+ t10 = /*#__PURE__*/ jsx(VisuallyHidden, { children: /*#__PURE__*/ jsx(AriaStatus, {
220
201
  announceOnShow: true,
221
202
  id: loadingLabelId,
222
- children: t11
203
+ children: t9
223
204
  }) });
224
- $[39] = loadingLabelId;
225
- $[40] = t11;
226
- $[41] = t12;
227
- } else t12 = $[41];
228
- let t13;
229
- if ($[42] !== loading || $[43] !== statusLabelPosition) {
230
- t13 = loading ? /*#__PURE__*/ jsx("div", {
205
+ $[34] = loadingLabelId;
206
+ $[35] = t9;
207
+ $[36] = t10;
208
+ } else t10 = $[36];
209
+ let t11;
210
+ if ($[37] !== loading || $[38] !== statusLabelPosition) {
211
+ t11 = loading ? /*#__PURE__*/ jsx("div", {
231
212
  className: ToggleSwitch_module_css_default.LoadingSpinner,
232
213
  "data-status-label-position": statusLabelPosition,
233
214
  children: /*#__PURE__*/ jsx(Spinner, {
@@ -235,172 +216,172 @@ const ToggleSwitch = /*#__PURE__*/ React.forwardRef(function ToggleSwitch(props,
235
216
  srText: null
236
217
  })
237
218
  }) : null;
238
- $[42] = loading;
239
- $[43] = statusLabelPosition;
240
- $[44] = t13;
241
- } else t13 = $[44];
242
- const t14 = !acceptsInteraction;
243
- const t15 = !isOn;
244
- const t16 = (_buttonLabelOn = buttonLabelOn) !== null && _buttonLabelOn !== void 0 ? _buttonLabelOn : "On";
245
- let t17;
246
- if ($[45] !== t15 || $[46] !== t16) {
247
- t17 = /*#__PURE__*/ jsx("span", {
219
+ $[37] = loading;
220
+ $[38] = statusLabelPosition;
221
+ $[39] = t11;
222
+ } else t11 = $[39];
223
+ const t12 = !acceptsInteraction;
224
+ const t13 = !isOn;
225
+ const t14 = (_buttonLabelOn = buttonLabelOn) !== null && _buttonLabelOn !== void 0 ? _buttonLabelOn : "On";
226
+ let t15;
227
+ if ($[40] !== t13 || $[41] !== t14) {
228
+ t15 = /*#__PURE__*/ jsx("span", {
248
229
  className: ToggleSwitch_module_css_default.StatusTextItem,
249
- "data-hidden": t15,
250
- children: t16
230
+ "data-hidden": t13,
231
+ children: t14
251
232
  });
252
- $[45] = t15;
253
- $[46] = t16;
254
- $[47] = t17;
255
- } else t17 = $[47];
256
- const t18 = (_buttonLabelOff = buttonLabelOff) !== null && _buttonLabelOff !== void 0 ? _buttonLabelOff : "Off";
257
- let t19;
258
- if ($[48] !== isOn || $[49] !== t18) {
259
- t19 = /*#__PURE__*/ jsx("span", {
233
+ $[40] = t13;
234
+ $[41] = t14;
235
+ $[42] = t15;
236
+ } else t15 = $[42];
237
+ const t16 = (_buttonLabelOff = buttonLabelOff) !== null && _buttonLabelOff !== void 0 ? _buttonLabelOff : "Off";
238
+ let t17;
239
+ if ($[43] !== isOn || $[44] !== t16) {
240
+ t17 = /*#__PURE__*/ jsx("span", {
260
241
  className: ToggleSwitch_module_css_default.StatusTextItem,
261
242
  "data-hidden": isOn,
262
- children: t18
243
+ children: t16
263
244
  });
264
- $[48] = isOn;
265
- $[49] = t18;
266
- $[50] = t19;
267
- } else t19 = $[50];
268
- let t20;
269
- if ($[51] !== handleToggleClick || $[52] !== size || $[53] !== t14 || $[54] !== t17 || $[55] !== t19) {
270
- t20 = /*#__PURE__*/ jsxs("span", {
245
+ $[43] = isOn;
246
+ $[44] = t16;
247
+ $[45] = t17;
248
+ } else t17 = $[45];
249
+ let t18;
250
+ if ($[46] !== handleToggleClick || $[47] !== size || $[48] !== t12 || $[49] !== t15 || $[50] !== t17) {
251
+ t18 = /*#__PURE__*/ jsxs("span", {
271
252
  className: ToggleSwitch_module_css_default.StatusText,
272
253
  "data-size": size,
273
- "data-disabled": t14,
254
+ "data-disabled": t12,
274
255
  "aria-hidden": "true",
275
256
  onClick: handleToggleClick,
276
- children: [t17, t19]
257
+ children: [t15, t17]
277
258
  });
278
- $[51] = handleToggleClick;
279
- $[52] = size;
280
- $[53] = t14;
281
- $[54] = t17;
282
- $[55] = t19;
283
- $[56] = t20;
284
- } else t20 = $[56];
259
+ $[46] = handleToggleClick;
260
+ $[47] = size;
261
+ $[48] = t12;
262
+ $[49] = t15;
263
+ $[50] = t17;
264
+ $[51] = t18;
265
+ } else t18 = $[51];
266
+ const t19 = !acceptsInteraction;
267
+ const t20 = isLoadingLabelVisible || ariaDescribedby ? switchButtonDescribedBy : void 0;
285
268
  const t21 = !acceptsInteraction;
286
- const t22 = isLoadingLabelVisible || ariaDescribedby ? switchButtonDescribedBy : void 0;
287
- const t23 = !acceptsInteraction;
288
- const t24 = !acceptsInteraction;
289
- let t25;
290
- if ($[57] !== size) {
291
- t25 = /*#__PURE__*/ jsx(LineIcon, { size });
292
- $[57] = size;
293
- $[58] = t25;
294
- } else t25 = $[58];
295
- let t26;
296
- if ($[59] !== isOn || $[60] !== t24 || $[61] !== t25) {
297
- t26 = /*#__PURE__*/ jsx("div", {
269
+ const t22 = !acceptsInteraction;
270
+ let t23;
271
+ if ($[52] !== size) {
272
+ t23 = /*#__PURE__*/ jsx(LineIcon, { size });
273
+ $[52] = size;
274
+ $[53] = t23;
275
+ } else t23 = $[53];
276
+ let t24;
277
+ if ($[54] !== isOn || $[55] !== t22 || $[56] !== t23) {
278
+ t24 = /*#__PURE__*/ jsx("div", {
298
279
  className: `${ToggleSwitch_module_css_default.IconContainer} ${ToggleSwitch_module_css_default.LineIconContainer}`,
299
280
  "data-checked": isOn,
300
- "data-disabled": t24,
301
- children: t25
281
+ "data-disabled": t22,
282
+ children: t23
302
283
  });
303
- $[59] = isOn;
304
- $[60] = t24;
305
- $[61] = t25;
306
- $[62] = t26;
307
- } else t26 = $[62];
308
- const t27 = !acceptsInteraction;
309
- let t28;
310
- if ($[63] !== size) {
311
- t28 = /*#__PURE__*/ jsx(CircleIcon, { size });
312
- $[63] = size;
313
- $[64] = t28;
314
- } else t28 = $[64];
315
- let t29;
316
- if ($[65] !== isOn || $[66] !== t27 || $[67] !== t28) {
317
- t29 = /*#__PURE__*/ jsx("div", {
284
+ $[54] = isOn;
285
+ $[55] = t22;
286
+ $[56] = t23;
287
+ $[57] = t24;
288
+ } else t24 = $[57];
289
+ const t25 = !acceptsInteraction;
290
+ let t26;
291
+ if ($[58] !== size) {
292
+ t26 = /*#__PURE__*/ jsx(CircleIcon, { size });
293
+ $[58] = size;
294
+ $[59] = t26;
295
+ } else t26 = $[59];
296
+ let t27;
297
+ if ($[60] !== isOn || $[61] !== t25 || $[62] !== t26) {
298
+ t27 = /*#__PURE__*/ jsx("div", {
318
299
  className: `${ToggleSwitch_module_css_default.IconContainer} ${ToggleSwitch_module_css_default.CircleIconContainer}`,
319
300
  "data-checked": isOn,
320
- "data-disabled": t27,
321
- children: t28
301
+ "data-disabled": t25,
302
+ children: t26
322
303
  });
323
- $[65] = isOn;
324
- $[66] = t27;
325
- $[67] = t28;
326
- $[68] = t29;
327
- } else t29 = $[68];
328
- let t30;
329
- if ($[69] !== t26 || $[70] !== t29) {
330
- t30 = /*#__PURE__*/ jsxs("div", {
304
+ $[60] = isOn;
305
+ $[61] = t25;
306
+ $[62] = t26;
307
+ $[63] = t27;
308
+ } else t27 = $[63];
309
+ let t28;
310
+ if ($[64] !== t24 || $[65] !== t27) {
311
+ t28 = /*#__PURE__*/ jsxs("div", {
331
312
  className: ToggleSwitch_module_css_default.SwitchButtonContent,
332
313
  "aria-hidden": "true",
333
- children: [t26, t29]
314
+ children: [t24, t27]
334
315
  });
335
- $[69] = t26;
336
- $[70] = t29;
337
- $[71] = t30;
338
- } else t30 = $[71];
339
- const t31 = !acceptsInteraction;
340
- let t32;
341
- if ($[72] !== isOn || $[73] !== t31) {
342
- t32 = /*#__PURE__*/ jsx("div", {
316
+ $[64] = t24;
317
+ $[65] = t27;
318
+ $[66] = t28;
319
+ } else t28 = $[66];
320
+ const t29 = !acceptsInteraction;
321
+ let t30;
322
+ if ($[67] !== isOn || $[68] !== t29) {
323
+ t30 = /*#__PURE__*/ jsx("div", {
343
324
  className: ToggleSwitch_module_css_default.ToggleKnob,
344
325
  "data-checked": isOn,
345
- "data-disabled": t31,
326
+ "data-disabled": t29,
346
327
  "aria-hidden": "true"
347
328
  });
348
- $[72] = isOn;
349
- $[73] = t31;
350
- $[74] = t32;
351
- } else t32 = $[74];
352
- let t33;
353
- if ($[75] !== ariaLabelledby || $[76] !== buttonType || $[77] !== handleToggleClick || $[78] !== isOn || $[79] !== ref || $[80] !== size || $[81] !== t21 || $[82] !== t22 || $[83] !== t23 || $[84] !== t30 || $[85] !== t32) {
354
- t33 = /*#__PURE__*/ jsxs("button", {
329
+ $[67] = isOn;
330
+ $[68] = t29;
331
+ $[69] = t30;
332
+ } else t30 = $[69];
333
+ let t31;
334
+ if ($[70] !== ariaLabelledby || $[71] !== buttonType || $[72] !== handleToggleClick || $[73] !== isOn || $[74] !== ref || $[75] !== size || $[76] !== t19 || $[77] !== t20 || $[78] !== t21 || $[79] !== t28 || $[80] !== t30) {
335
+ t31 = /*#__PURE__*/ jsxs("button", {
355
336
  ref,
356
337
  type: buttonType,
357
338
  className: ToggleSwitch_module_css_default.SwitchButton,
358
339
  "data-size": size,
359
340
  "data-checked": isOn,
360
- "data-disabled": t21,
341
+ "data-disabled": t19,
361
342
  onClick: handleToggleClick,
362
343
  "aria-labelledby": ariaLabelledby,
363
- "aria-describedby": t22,
344
+ "aria-describedby": t20,
364
345
  "aria-pressed": isOn,
365
- "aria-disabled": t23,
366
- children: [t30, t32]
346
+ "aria-disabled": t21,
347
+ children: [t28, t30]
367
348
  });
368
- $[75] = ariaLabelledby;
369
- $[76] = buttonType;
370
- $[77] = handleToggleClick;
371
- $[78] = isOn;
372
- $[79] = ref;
373
- $[80] = size;
374
- $[81] = t21;
375
- $[82] = t22;
376
- $[83] = t23;
377
- $[84] = t30;
378
- $[85] = t32;
379
- $[86] = t33;
380
- } else t33 = $[86];
381
- let t34;
382
- if ($[87] !== rest || $[88] !== statusLabelPosition || $[89] !== t10 || $[90] !== t12 || $[91] !== t13 || $[92] !== t20 || $[93] !== t33) {
383
- t34 = /*#__PURE__*/ jsxs("div", {
384
- className: t10,
349
+ $[70] = ariaLabelledby;
350
+ $[71] = buttonType;
351
+ $[72] = handleToggleClick;
352
+ $[73] = isOn;
353
+ $[74] = ref;
354
+ $[75] = size;
355
+ $[76] = t19;
356
+ $[77] = t20;
357
+ $[78] = t21;
358
+ $[79] = t28;
359
+ $[80] = t30;
360
+ $[81] = t31;
361
+ } else t31 = $[81];
362
+ let t32;
363
+ if ($[82] !== rest || $[83] !== statusLabelPosition || $[84] !== t10 || $[85] !== t11 || $[86] !== t18 || $[87] !== t31 || $[88] !== t8) {
364
+ t32 = /*#__PURE__*/ jsxs("div", {
365
+ className: t8,
385
366
  "data-status-label-position": statusLabelPosition,
386
367
  ...rest,
387
368
  children: [
388
- t12,
389
- t13,
390
- t20,
391
- t33
369
+ t10,
370
+ t11,
371
+ t18,
372
+ t31
392
373
  ]
393
374
  });
394
- $[87] = rest;
395
- $[88] = statusLabelPosition;
396
- $[89] = t10;
397
- $[90] = t12;
398
- $[91] = t13;
399
- $[92] = t20;
400
- $[93] = t33;
401
- $[94] = t34;
402
- } else t34 = $[94];
403
- return t34;
375
+ $[82] = rest;
376
+ $[83] = statusLabelPosition;
377
+ $[84] = t10;
378
+ $[85] = t11;
379
+ $[86] = t18;
380
+ $[87] = t31;
381
+ $[88] = t8;
382
+ $[89] = t32;
383
+ } else t32 = $[89];
384
+ return t32;
404
385
  });
405
386
  ToggleSwitch.displayName = "ToggleSwitch";
406
387
  //#endregion