@primer/react 38.31.1-rc.db2c6d5fe → 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.
- package/CHANGELOG.md +22 -1
- package/dist/ActionList/{ActionList-65f7daac.css → ActionList-1ff5220c.css} +2 -2
- package/dist/ActionList/ActionList-1ff5220c.css.map +1 -0
- package/dist/ActionList/ActionList.module.css.js +1 -1
- package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css → Breadcrumbs-16d81430.css} +2 -2
- package/dist/Breadcrumbs/{Breadcrumbs-54395fc6.css.map → Breadcrumbs-16d81430.css.map} +1 -1
- package/dist/Breadcrumbs/Breadcrumbs.js +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.module.css.js +2 -2
- package/dist/PageHeader/PageHeader-b12247c8.css +2 -0
- package/dist/PageHeader/PageHeader-b12247c8.css.map +1 -0
- package/dist/PageHeader/PageHeader.js +64 -23
- package/dist/PageHeader/PageHeader.module.css.js +1 -1
- package/dist/PageLayout/PageLayout.d.ts +6 -0
- package/dist/PageLayout/PageLayout.js +549 -535
- package/dist/SegmentedControl/SegmentedControl-a004561f.css +2 -0
- package/dist/SegmentedControl/SegmentedControl-a004561f.css.map +1 -0
- package/dist/SegmentedControl/SegmentedControl.module.css.js +1 -1
- package/dist/SplitPageLayout/SplitPageLayout.js +11 -0
- package/dist/Stack/Stack.js +2 -0
- package/dist/StateLabel/StateLabel.js +1 -0
- package/dist/SubNav/SubNav.js +3 -0
- package/dist/TabNav/TabNav.js +3 -1
- package/dist/Text/Text.js +1 -0
- package/dist/Textarea/Textarea.js +1 -0
- package/dist/ThemeProvider.js +1 -0
- package/dist/ToggleSwitch/ToggleSwitch.js +167 -186
- package/dist/experimental/SelectPanel2/SelectPanel-917fdaef.css +2 -0
- package/dist/experimental/SelectPanel2/{SelectPanel-608e207e.css.map → SelectPanel-917fdaef.css.map} +1 -1
- package/dist/experimental/SelectPanel2/SelectPanel.module.css.js +1 -1
- package/dist/hooks/useMedia.js +44 -43
- package/package.json +3 -3
- package/dist/ActionList/ActionList-65f7daac.css.map +0 -1
- package/dist/PageHeader/PageHeader-5e969745.css +0 -2
- package/dist/PageHeader/PageHeader-5e969745.css.map +0 -1
- package/dist/SegmentedControl/SegmentedControl-622e61a4.css +0 -2
- package/dist/SegmentedControl/SegmentedControl-622e61a4.css.map +0 -1
- 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"]}
|
|
@@ -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,
|
package/dist/Stack/Stack.js
CHANGED
|
@@ -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,
|
package/dist/SubNav/SubNav.js
CHANGED
|
@@ -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;
|
package/dist/TabNav/TabNav.js
CHANGED
|
@@ -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,
|
package/dist/ThemeProvider.js
CHANGED
|
@@ -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(
|
|
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] !==
|
|
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 (
|
|
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] =
|
|
155
|
-
$[23] =
|
|
156
|
-
$[24] =
|
|
157
|
-
|
|
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 ($[
|
|
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
|
-
|
|
172
|
+
t7 = [
|
|
192
173
|
loading,
|
|
193
174
|
isLoadingLabelVisible,
|
|
194
175
|
loadingLabelDelay,
|
|
195
176
|
safeSetTimeout
|
|
196
177
|
];
|
|
197
|
-
$[
|
|
198
|
-
$[
|
|
199
|
-
$[
|
|
200
|
-
$[
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
178
|
+
$[26] = isLoadingLabelVisible;
|
|
179
|
+
$[27] = loading;
|
|
180
|
+
$[28] = loadingLabelDelay;
|
|
181
|
+
$[29] = safeSetTimeout;
|
|
182
|
+
$[30] = t6;
|
|
183
|
+
$[31] = t7;
|
|
203
184
|
} else {
|
|
204
|
-
|
|
205
|
-
|
|
185
|
+
t6 = $[30];
|
|
186
|
+
t7 = $[31];
|
|
206
187
|
}
|
|
207
|
-
useEffect(
|
|
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 ($[
|
|
212
|
-
t10 =
|
|
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:
|
|
203
|
+
children: t9
|
|
223
204
|
}) });
|
|
224
|
-
$[
|
|
225
|
-
$[
|
|
226
|
-
$[
|
|
227
|
-
} else
|
|
228
|
-
let
|
|
229
|
-
if ($[
|
|
230
|
-
|
|
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
|
-
$[
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
} else
|
|
242
|
-
const
|
|
243
|
-
const
|
|
244
|
-
const
|
|
245
|
-
let
|
|
246
|
-
if ($[
|
|
247
|
-
|
|
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":
|
|
250
|
-
children:
|
|
230
|
+
"data-hidden": t13,
|
|
231
|
+
children: t14
|
|
251
232
|
});
|
|
252
|
-
$[
|
|
253
|
-
$[
|
|
254
|
-
$[
|
|
255
|
-
} else
|
|
256
|
-
const
|
|
257
|
-
let
|
|
258
|
-
if ($[
|
|
259
|
-
|
|
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:
|
|
243
|
+
children: t16
|
|
263
244
|
});
|
|
264
|
-
$[
|
|
265
|
-
$[
|
|
266
|
-
$[
|
|
267
|
-
} else
|
|
268
|
-
let
|
|
269
|
-
if ($[
|
|
270
|
-
|
|
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":
|
|
254
|
+
"data-disabled": t12,
|
|
274
255
|
"aria-hidden": "true",
|
|
275
256
|
onClick: handleToggleClick,
|
|
276
|
-
children: [
|
|
257
|
+
children: [t15, t17]
|
|
277
258
|
});
|
|
278
|
-
$[
|
|
279
|
-
$[
|
|
280
|
-
$[
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
} else
|
|
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 =
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
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":
|
|
301
|
-
children:
|
|
281
|
+
"data-disabled": t22,
|
|
282
|
+
children: t23
|
|
302
283
|
});
|
|
303
|
-
$[
|
|
304
|
-
$[
|
|
305
|
-
$[
|
|
306
|
-
$[
|
|
307
|
-
} else
|
|
308
|
-
const
|
|
309
|
-
let
|
|
310
|
-
if ($[
|
|
311
|
-
|
|
312
|
-
$[
|
|
313
|
-
$[
|
|
314
|
-
} else
|
|
315
|
-
let
|
|
316
|
-
if ($[
|
|
317
|
-
|
|
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":
|
|
321
|
-
children:
|
|
301
|
+
"data-disabled": t25,
|
|
302
|
+
children: t26
|
|
322
303
|
});
|
|
323
|
-
$[
|
|
324
|
-
$[
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
327
|
-
} else
|
|
328
|
-
let
|
|
329
|
-
if ($[
|
|
330
|
-
|
|
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: [
|
|
314
|
+
children: [t24, t27]
|
|
334
315
|
});
|
|
335
|
-
$[
|
|
336
|
-
$[
|
|
337
|
-
$[
|
|
338
|
-
} else
|
|
339
|
-
const
|
|
340
|
-
let
|
|
341
|
-
if ($[
|
|
342
|
-
|
|
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":
|
|
326
|
+
"data-disabled": t29,
|
|
346
327
|
"aria-hidden": "true"
|
|
347
328
|
});
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
} else
|
|
352
|
-
let
|
|
353
|
-
if ($[
|
|
354
|
-
|
|
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":
|
|
341
|
+
"data-disabled": t19,
|
|
361
342
|
onClick: handleToggleClick,
|
|
362
343
|
"aria-labelledby": ariaLabelledby,
|
|
363
|
-
"aria-describedby":
|
|
344
|
+
"aria-describedby": t20,
|
|
364
345
|
"aria-pressed": isOn,
|
|
365
|
-
"aria-disabled":
|
|
366
|
-
children: [
|
|
346
|
+
"aria-disabled": t21,
|
|
347
|
+
children: [t28, t30]
|
|
367
348
|
});
|
|
368
|
-
$[
|
|
369
|
-
$[
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
} else
|
|
381
|
-
let
|
|
382
|
-
if ($[
|
|
383
|
-
|
|
384
|
-
className:
|
|
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
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
369
|
+
t10,
|
|
370
|
+
t11,
|
|
371
|
+
t18,
|
|
372
|
+
t31
|
|
392
373
|
]
|
|
393
374
|
});
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
396
|
-
$[
|
|
397
|
-
$[
|
|
398
|
-
$[
|
|
399
|
-
$[
|
|
400
|
-
$[
|
|
401
|
-
$[
|
|
402
|
-
} else
|
|
403
|
-
return
|
|
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
|