@viasat/beam-react 2.2.1 → 2.9.0
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/assets/ActionList.css +1 -1
- package/assets/Checkbox.css +1 -1
- package/assets/RadioButton.css +1 -1
- package/assets/Search.Results.css +1 -0
- package/assets/card.css +1 -1
- package/assets/panel.css +1 -0
- package/chunks/ActionList.Group.B4PX5SKS.js +111 -0
- package/chunks/ActionList.Group.C2R56u2A.js +1 -0
- package/chunks/ActionList.Item.5Y-SwzjK.js +1 -0
- package/chunks/{ActionList.Item.Dg_KHGsm.js → ActionList.Item.BFcT86lS.js} +3 -2
- package/chunks/Search.Results.Item.CLmMBPz1.js +41 -0
- package/chunks/Search.Results.Item.Dkh2yo4p.js +1 -0
- package/chunks/card.module.8KnCe1uR.js +1 -0
- package/chunks/{card.module.Dy87qmTH.js → card.module.ByBYpexJ.js} +12 -6
- package/chunks/dom.DGM-dxLe.js +21 -0
- package/chunks/dom.zgzOBFUw.js +1 -0
- package/chunks/{form.context.B1PXIJNq.js → form.context.B26th8Od.js} +1 -1
- package/chunks/{form.context.CNWjF5qA.js → form.context.CfsTSQpm.js} +1 -1
- package/chunks/panel.module.BVm3KvDs.js +40 -0
- package/chunks/panel.module.BX1x4FlX.js +1 -0
- package/chunks/tokens.BD_71qmL.js +19 -0
- package/chunks/tokens.Bc11gmpN.js +1 -0
- package/index.cjs.js +1 -1
- package/index.es.js +17 -15
- package/lib/ActionList/ActionList.Group.cjs.js +1 -1
- package/lib/ActionList/ActionList.Group.d.ts +7 -4
- package/lib/ActionList/ActionList.Group.es.js +2 -2
- package/lib/ActionList/ActionList.IconButton.cjs.js +1 -1
- package/lib/ActionList/ActionList.IconButton.es.js +1 -1
- package/lib/ActionList/ActionList.Item.cjs.js +1 -1
- package/lib/ActionList/ActionList.Item.es.js +3 -3
- package/lib/ActionList/ActionList.cjs.js +1 -1
- package/lib/ActionList/ActionList.d.ts +1 -1
- package/lib/ActionList/ActionList.es.js +54 -54
- package/lib/ActionList/useActionListChildren.cjs.js +1 -1
- package/lib/ActionList/useActionListChildren.es.js +2 -2
- package/lib/Autocomplete/Autocomplete.cjs.js +1 -1
- package/lib/Autocomplete/Autocomplete.es.js +1 -1
- package/lib/Autocomplete/AutocompleteDropdown.cjs.js +1 -1
- package/lib/Autocomplete/AutocompleteDropdown.es.js +1 -1
- package/lib/Autocomplete/useAutocompleteA11y.cjs.js +1 -1
- package/lib/Autocomplete/useAutocompleteA11y.es.js +1 -1
- package/lib/Autocomplete/useAutocompleteDropdown.cjs.js +1 -1
- package/lib/Autocomplete/useAutocompleteDropdown.es.js +1 -1
- package/lib/Box/utils.cjs.js +1 -0
- package/lib/Box/utils.d.ts +6 -0
- package/lib/Box/utils.es.js +12 -0
- package/lib/Button/Button.cjs.js +1 -1
- package/lib/Button/Button.es.js +1 -1
- package/lib/Card/Card.Body.cjs.js +1 -1
- package/lib/Card/Card.Body.es.js +1 -1
- package/lib/Card/Card.Content.cjs.js +1 -1
- package/lib/Card/Card.Content.es.js +12 -17
- package/lib/Card/Card.Footer.cjs.js +1 -1
- package/lib/Card/Card.Footer.d.ts +1 -1
- package/lib/Card/Card.Footer.es.js +1 -1
- package/lib/Card/Card.Header.cjs.js +1 -1
- package/lib/Card/Card.Header.es.js +1 -1
- package/lib/Card/Card.Media.cjs.js +1 -1
- package/lib/Card/Card.Media.es.js +1 -1
- package/lib/Card/Card.cjs.js +1 -1
- package/lib/Card/Card.d.ts +61 -18
- package/lib/Card/Card.es.js +181 -82
- package/lib/Card/CardContext.cjs.js +1 -1
- package/lib/Card/CardContext.d.ts +10 -8
- package/lib/Card/CardContext.es.js +7 -12
- package/lib/Card/CardGroup.cjs.js +1 -0
- package/lib/Card/CardGroup.d.ts +55 -0
- package/lib/Card/CardGroup.es.js +67 -0
- package/lib/Card/card.utils.cjs.js +1 -0
- package/lib/Card/card.utils.d.ts +7 -0
- package/lib/Card/card.utils.es.js +14 -0
- package/lib/Card/index.cjs.js +1 -1
- package/lib/Card/index.d.ts +9 -1
- package/lib/Card/index.es.js +4 -2
- package/lib/Card/useCardGroup.cjs.js +1 -0
- package/lib/Card/useCardGroup.d.ts +27 -0
- package/lib/Card/useCardGroup.es.js +42 -0
- package/lib/Card/useCardGroupValue.cjs.js +1 -0
- package/lib/Card/useCardGroupValue.d.ts +14 -0
- package/lib/Card/useCardGroupValue.es.js +29 -0
- package/lib/Checkbox/Checkbox.cjs.js +1 -1
- package/lib/Checkbox/Checkbox.es.js +1 -1
- package/lib/Dialog/Dialog.Trigger.cjs.js +1 -1
- package/lib/Dialog/Dialog.Trigger.es.js +7 -6
- package/lib/EmptyState/EmptyState.cjs.js +1 -1
- package/lib/EmptyState/EmptyState.es.js +1 -1
- package/lib/FileUpload/FileUpload.List.Item.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.List.Item.es.js +20 -20
- package/lib/FileUpload/FileUpload.cjs.js +1 -1
- package/lib/FileUpload/FileUpload.es.js +1 -1
- package/lib/FloatingUI/index.cjs.js +1 -1
- package/lib/FloatingUI/index.d.ts +1 -0
- package/lib/FloatingUI/index.es.js +7 -5
- package/lib/FloatingUI/useBlur.cjs.js +1 -0
- package/lib/FloatingUI/useBlur.d.ts +8 -0
- package/lib/FloatingUI/useBlur.es.js +15 -0
- package/lib/FloatingUI/useTyping.cjs.js +1 -0
- package/lib/FloatingUI/useTyping.d.ts +10 -0
- package/lib/FloatingUI/useTyping.es.js +42 -0
- package/lib/Form/Form.cjs.js +1 -1
- package/lib/Form/Form.es.js +1 -1
- package/lib/Form/contexts/form.context.cjs.js +1 -1
- package/lib/Form/contexts/form.context.es.js +1 -1
- package/lib/Form/contexts/index.cjs.js +1 -1
- package/lib/Form/contexts/index.es.js +1 -1
- package/lib/Form/hooks/index.cjs.js +1 -1
- package/lib/Form/hooks/index.es.js +1 -1
- package/lib/Form/hooks/useFieldValidator.hook.cjs.js +1 -1
- package/lib/Form/hooks/useFieldValidator.hook.es.js +2 -2
- package/lib/HelperText/HelperText.cjs.js +1 -1
- package/lib/HelperText/HelperText.es.js +1 -1
- package/lib/HelperText/index.cjs.js +1 -1
- package/lib/HelperText/index.es.js +1 -1
- package/lib/InputChoiceGroup/InputChoiceGroup.cjs.js +1 -1
- package/lib/InputChoiceGroup/InputChoiceGroup.es.js +1 -1
- package/lib/Label/Label.cjs.js +1 -1
- package/lib/Label/Label.es.js +1 -1
- package/lib/Link/Link.cjs.js +1 -1
- package/lib/Link/Link.es.js +6 -6
- package/lib/NativeSelect/NativeSelect.cjs.js +1 -1
- package/lib/NativeSelect/NativeSelect.es.js +1 -1
- package/lib/Popover/Popover.cjs.js +1 -1
- package/lib/Popover/Popover.es.js +1 -1
- package/lib/Popover/Popover.trigger.cjs.js +1 -1
- package/lib/Popover/Popover.trigger.es.js +7 -6
- package/lib/Popover/Popover.utils.cjs.js +1 -1
- package/lib/Popover/Popover.utils.es.js +1 -1
- package/lib/ProgressBar/ProgressBar.cjs.js +1 -1
- package/lib/ProgressBar/ProgressBar.es.js +1 -1
- package/lib/RadioButton/RadioButton.cjs.js +1 -1
- package/lib/RadioButton/RadioButton.es.js +1 -1
- package/lib/Select/Select.cjs.js +1 -1
- package/lib/Select/Select.es.js +1 -1
- package/lib/Select/SelectDropdown.cjs.js +1 -1
- package/lib/Select/SelectDropdown.es.js +1 -1
- package/lib/Select/useSelectA11y.cjs.js +1 -1
- package/lib/Select/useSelectA11y.es.js +1 -1
- package/lib/SideNav/SideNavActionListGroup.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListGroup.es.js +1 -1
- package/lib/SideNav/SideNavActionListItem.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItem.es.js +1 -1
- package/lib/SideNav/SideNavActionListItemExpandable.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItemExpandable.es.js +1 -1
- package/lib/SideNav/SideNavActionListItemFlyout.cjs.js +1 -1
- package/lib/SideNav/SideNavActionListItemFlyout.es.js +1 -1
- package/lib/Slider/DualSlider.cjs.js +1 -1
- package/lib/Slider/DualSlider.d.ts +1 -1
- package/lib/Slider/DualSlider.es.js +73 -72
- package/lib/Slider/SingleSlider.cjs.js +1 -1
- package/lib/Slider/SingleSlider.d.ts +1 -1
- package/lib/Slider/SingleSlider.es.js +52 -51
- package/lib/Slider/Slider.Error.cjs.js +1 -1
- package/lib/Slider/Slider.Error.es.js +1 -1
- package/lib/Slider/Slider.Thumb.cjs.js +1 -1
- package/lib/Slider/Slider.Thumb.es.js +1 -1
- package/lib/Slider/Slider.cjs.js +1 -1
- package/lib/Slider/Slider.d.ts +1 -3
- package/lib/Slider/Slider.es.js +13 -11
- package/lib/Slider/Slider.types.d.ts +1 -1
- package/lib/Slider/hooks/useSliderBase.cjs.js +1 -1
- package/lib/Slider/hooks/useSliderBase.es.js +1 -1
- package/lib/Switch/Switch.cjs.js +1 -1
- package/lib/Switch/Switch.es.js +1 -1
- package/lib/Tabs/Tabs.Group.cjs.js +1 -1
- package/lib/Tabs/Tabs.Group.es.js +1 -1
- package/lib/TextArea/TextArea.cjs.js +1 -1
- package/lib/TextArea/TextArea.es.js +1 -1
- package/lib/TextField/TextField.cjs.js +1 -1
- package/lib/TextField/TextField.es.js +1 -1
- package/lib/Tooltip/Tooltip.cjs.js +1 -1
- package/lib/Tooltip/Tooltip.es.js +9 -9
- package/lib/_Options/useSelectValue.cjs.js +1 -1
- package/lib/_Options/useSelectValue.es.js +1 -1
- package/lib/index.cjs.js +1 -1
- package/lib/index.es.js +18 -16
- package/lib/wip/Panel/Panel.Body.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Body.d.ts +11 -0
- package/lib/wip/Panel/Panel.Body.es.js +17 -0
- package/lib/wip/Panel/Panel.Footer.Actions.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Footer.Actions.d.ts +17 -0
- package/lib/wip/Panel/Panel.Footer.Actions.es.js +22 -0
- package/lib/wip/Panel/Panel.Footer.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Footer.d.ts +20 -0
- package/lib/wip/Panel/Panel.Footer.es.js +24 -0
- package/lib/wip/Panel/Panel.Header.ContentAfter.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.ContentAfter.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.ContentAfter.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.ContentBefore.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.ContentBefore.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.ContentBefore.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.Description.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.Description.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.Description.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.Heading.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.Heading.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.Heading.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.Row.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.Row.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.Row.es.js +29 -0
- package/lib/wip/Panel/Panel.Header.Subheader.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.Subheader.d.ts +11 -0
- package/lib/wip/Panel/Panel.Header.Subheader.es.js +17 -0
- package/lib/wip/Panel/Panel.Header.cjs.js +1 -0
- package/lib/wip/Panel/Panel.Header.d.ts +40 -0
- package/lib/wip/Panel/Panel.Header.es.js +34 -0
- package/lib/wip/Panel/Panel.cjs.js +1 -0
- package/lib/wip/Panel/Panel.context.cjs.js +1 -0
- package/lib/wip/Panel/Panel.context.d.ts +21 -0
- package/lib/wip/Panel/Panel.context.es.js +11 -0
- package/lib/wip/Panel/Panel.d.ts +45 -0
- package/lib/wip/Panel/Panel.es.js +117 -0
- package/lib/wip/Panel/Panel.helpers.cjs.js +1 -0
- package/lib/wip/Panel/Panel.helpers.d.ts +13 -0
- package/lib/wip/Panel/Panel.helpers.es.js +40 -0
- package/lib/wip/Panel/Panel.types.cjs.js +1 -0
- package/lib/wip/Panel/Panel.types.d.ts +76 -0
- package/lib/wip/Panel/Panel.types.es.js +1 -0
- package/lib/wip/Panel/index.cjs.js +1 -0
- package/lib/wip/Panel/index.d.ts +12 -0
- package/lib/wip/Panel/index.es.js +4 -0
- package/lib/wip/Search/Search.Results.Item.cjs.js +1 -0
- package/lib/wip/Search/Search.Results.Item.d.ts +8 -0
- package/lib/wip/Search/Search.Results.Item.es.js +12 -0
- package/lib/wip/Search/Search.Results.cjs.js +1 -0
- package/lib/wip/Search/Search.Results.d.ts +12 -0
- package/lib/wip/Search/Search.Results.es.js +19 -0
- package/lib/wip/Search/Search.cjs.js +1 -0
- package/lib/wip/Search/Search.d.ts +88 -0
- package/lib/wip/Search/Search.es.js +157 -0
- package/lib/wip/Search/SearchDropdown.cjs.js +1 -0
- package/lib/wip/Search/SearchDropdown.d.ts +19 -0
- package/lib/wip/Search/SearchDropdown.es.js +71 -0
- package/lib/wip/Search/index.cjs.js +1 -0
- package/lib/wip/Search/index.d.ts +1 -0
- package/lib/wip/Search/index.es.js +4 -0
- package/lib/wip/Search/useSearchDropdown.cjs.js +1 -0
- package/lib/wip/Search/useSearchDropdown.d.ts +875 -0
- package/lib/wip/Search/useSearchDropdown.es.js +92 -0
- package/lib/wip/index.cjs.js +1 -1
- package/lib/wip/index.d.ts +2 -0
- package/lib/wip/index.es.js +6 -1
- package/package.json +6 -6
- package/utils/hooks/index.cjs.js +1 -1
- package/utils/hooks/index.d.ts +1 -0
- package/utils/hooks/index.es.js +33 -31
- package/utils/hooks/useDebounced.cjs.js +1 -0
- package/utils/hooks/useDebounced.d.ts +5 -0
- package/utils/hooks/useDebounced.es.js +18 -0
- package/utils/hooks/useEffectAfterMount.cjs.js +1 -0
- package/utils/hooks/useEffectAfterMount.d.ts +2 -0
- package/utils/hooks/useEffectAfterMount.es.js +14 -0
- package/utils/hooks/useInteractiveProps.cjs.js +1 -0
- package/utils/hooks/useInteractiveProps.d.ts +24 -0
- package/utils/hooks/useInteractiveProps.es.js +31 -0
- package/chunks/ActionList.Group.Bv9vgU22.js +0 -1
- package/chunks/ActionList.Group.DuNxYNZQ.js +0 -107
- package/chunks/ActionList.Item.D7Rg5iMb.js +0 -1
- package/chunks/card.module.BG9mkRao.js +0 -1
- package/chunks/dom.CVmkHCnh.js +0 -21
- package/chunks/dom.PCrm8EUc.js +0 -1
- package/chunks/tokens.Bgac_JPh.js +0 -1
- package/chunks/tokens.CXaNS8Cf.js +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
var _e=require("../../assets/NativeSelect.css");Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),le=require("react"),S=require("clsx"),h=require("../../chunks/form.context.
|
|
1
|
+
var _e=require("../../assets/NativeSelect.css");Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("react/jsx-runtime"),le=require("react"),S=require("clsx"),h=require("../../chunks/form.context.B26th8Od.js"),re=require("../../chunks/constants.hwjHOsvT.js"),ne=require("../../chunks/classNames.DAeKwerT.js"),ce=require("../../chunks/helpers.COm6C5Gf.js"),oe=require("../Form/contexts/label.context.cjs.js"),de=require("../Form/contexts/helperText.context.cjs.js"),ue=require("../Form/hooks/useUniversalRef.hook.cjs.js"),y=require("../Form/hooks/useAccessibleId.hook.cjs.js");function be(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const g=be(le),fe=(e,s)=>{if(!ce.isMobileDevice()||!e)return;const{options:t=[]}=e;Array.prototype.forEach.call(t,i=>{const{disabled:b,dataset:d}=i,{disabled:f}=d;f||(i.dataset.disabled=String(b));const{disabled:u}=d;i.disabled=s||u===String(!0)})},me=e=>{const s=!!e.match(new RegExp("^\\p{L}$","u")),t=[" ","ArrowUp","ArrowDown"].includes(e);return s||t},l={"bm-light":"bm-light","bm-dark":"bm-dark","bm-inverse":"bm-inverse","bm-native-select":"bm-native-select","bm-native-select--disabled":"bm-native-select--disabled","bm-native-select--fluid":"bm-native-select--fluid","bm-native-select--ellipsis":"bm-native-select--ellipsis","bm-native-select__field":"bm-native-select__field","bm-native-select__input":"bm-native-select__input","bm-native-select--error":"bm-native-select--error","bm-native-select--read-only":"bm-native-select--read-only"},{baseClassNamePrefix:ve,subElementClassPrefix:E,classModifierPrefix:o}=ne.getBEMClassNames("native-select"),P=g.forwardRef(function({theme:e,width:s,error:t,children:i,label:b=null,fluid:d=!1,ellipse:f=!0,helperText:u=null,validationRules:w=[],className:A,hideRequiredMarker:M=!1,disabled:k=!1,readOnly:F=!1,required:T=!1,...$},C){const{id:q,name:m,onKeyDown:v,onMouseDown:_,defaultValue:V,"aria-invalid":H,"aria-describedby":B,...U}=$,{refFn:L,ref:x}=ue.useUniversalRef(C),{ctxDisabled:z,ctxReadOnly:W,ctxRequired:G,ctxInitialValues:J,ctxRegister:K}=g.useContext(h.FormContext),{id:D}=y.useAccessibleId(),{id:j}=y.useAccessibleId(),{id:I}=y.useAccessibleId(),{showErrors:Q,setErrors:X,isInvalid:Y,errorShown:Z}=h.useFieldValidator(),N=!!(t!=null&&t.length),ee=S(u&&j,N&&D,Z&&I,B),O=!!t||Y,n=k||z,r=F||W,R=T||G,te=V||J[m];!n&&K(m,w,X);const se=S(l[ve],e&&re.themeClassName(e),d&&l[`${o}fluid`],O&&l[`${o}error`],f&&l[`${o}ellipsis`],n&&l[`${o}disabled`],r&&l[`${o}read-only`],A);g.useEffect(()=>{const{current:a}=x;fe(a,r)},[r,x]);const ie=a=>{const{key:p}=a;v==null||v(a),r&&me(p)&&a.preventDefault()},ae=a=>{if(_==null||_(a),!r)return;a.preventDefault();const{current:p}=x;p.focus()};return c.jsxs("div",{className:se,style:{maxWidth:s},children:[c.jsx(oe.LabelProvider,{ctxHtmlFor:q,ctxDisabled:n,ctxRequired:R&&!M,children:b}),c.jsx("div",{className:l[`${E}field`],children:c.jsx("select",{id:q,name:m,ref:L,disabled:n,required:R,"aria-readonly":r,onKeyDown:ie,defaultValue:te,onMouseDown:ae,"aria-describedby":ee,"aria-disabled":n||r,"aria-invalid":O||H,className:l[`${E}input`],...U,children:i})}),c.jsxs(de.HelperTextProvider,{ctxId:j,ctxDisabled:n,children:[u,N&&c.jsx(h.HelperText,{id:D,appearance:"negative",children:t})]}),Q(I)]})});exports.NativeSelect=P;exports.default=P;
|
|
@@ -2,7 +2,7 @@ import "../../assets/NativeSelect.css";
|
|
|
2
2
|
import { jsxs as $, jsx as m } from "react/jsx-runtime";
|
|
3
3
|
import * as y from "react";
|
|
4
4
|
import C from "clsx";
|
|
5
|
-
import { F as ie, u as le, H as re } from "../../chunks/form.context.
|
|
5
|
+
import { F as ie, u as le, H as re } from "../../chunks/form.context.CfsTSQpm.js";
|
|
6
6
|
import { t as ne } from "../../chunks/constants.BBi77pmH.js";
|
|
7
7
|
import { g as de } from "../../chunks/classNames.DNsS4J__.js";
|
|
8
8
|
import { i as ce } from "../../chunks/helpers.Wv7n4ip7.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),b=require("./Popover.content.cjs.js"),t=require("./Popover.trigger.cjs.js"),m=require("../FloatingUI/FloatingUI.root.cjs.js"),C=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const x=require("../../utils/hooks/index.cjs.js"),F=require("../../chunks/CSSLookup.DESAWWRT.js"),I=require("../../chunks/tokens.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),b=require("./Popover.content.cjs.js"),t=require("./Popover.trigger.cjs.js"),m=require("../FloatingUI/FloatingUI.root.cjs.js"),C=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const x=require("../../utils/hooks/index.cjs.js"),F=require("../../chunks/CSSLookup.DESAWWRT.js"),I=require("../../chunks/tokens.Bc11gmpN.js"),T=require("../../chunks/popover.module.Dum8SaSU.js"),U=require("./Popover.context.cjs.js"),j=require("./Popover.utils.cjs.js"),w=require("../FloatingUI/FloatingUI.treeWrapper.cjs.js"),s=({children:i,openOnClick:n=!0,hideArrow:l=!1,offset:a,trapFocus:u=!1,focusConfiguration:o,appearance:c="default",theme:g,role:d,...p})=>{const{subElementClassPrefix:_}=C.getBEMClassNames("popover"),P=x.useCSSLookup(I.bmSemSpace100),v={edgePadding:F.parseSizeString(P),hide:l,className:T.popoverStyles[`${_}arrow`]},f=j.usePopOverOffSet(a),q={modal:!!(u||o&&o.modal),...o},S=d??{enabled:!0,role:"dialog"};return r.jsx(w.FloatingUITreeWrapper,{children:r.jsx(m.FloatingUIRoot,{openOnClick:n,arrow:v,offset:f,focusConfiguration:q,transitionConfig:{duration:0},role:S,...p,children:r.jsx(U.PopoverProvider,{theme:g,appearance:c,children:i})})})},e=s;e.Content=b.Content;e.Trigger=t.Trigger;e.CloseTrigger=t.CloseTrigger;exports.Popover=e;exports.Root=s;exports.default=e;
|
|
@@ -6,7 +6,7 @@ import { g as T } from "../../chunks/classNames.DNsS4J__.js";
|
|
|
6
6
|
import "../../chunks/constants.BBi77pmH.js";
|
|
7
7
|
import { useCSSLookup as b } from "../../utils/hooks/index.es.js";
|
|
8
8
|
import { p as E } from "../../chunks/CSSLookup.Cjf6o2Gz.js";
|
|
9
|
-
import { b as h } from "../../chunks/tokens.
|
|
9
|
+
import { b as h } from "../../chunks/tokens.BD_71qmL.js";
|
|
10
10
|
import { p as x } from "../../chunks/popover.module.C6KFea25.js";
|
|
11
11
|
import { PopoverProvider as F } from "./Popover.context.es.js";
|
|
12
12
|
import { usePopOverOffSet as I } from "./Popover.utils.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime");require("../../chunks/FloatingUI.context.BULqADss.js");const t=require("../FloatingUI/FloatingUI.trigger.cjs.js"),s=require("../FloatingUI/FloatingUI.trigger.close.cjs.js");require("../FloatingUI/FloatingUI.content.cjs.js");const g=({children:e,...r})=>i.jsx(t.Trigger,{...r,children:e});g.displayName="Popover.Trigger";const o=({children:e,...r})=>i.jsx(s.CloseTrigger,{...r,children:e});o.displayName="Popover.CloseTrigger";exports.CloseTrigger=o;exports.Trigger=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime");require("../../chunks/FloatingUI.context.BULqADss.js");const t=require("../FloatingUI/FloatingUI.trigger.cjs.js"),s=require("../FloatingUI/FloatingUI.trigger.close.cjs.js");require("../FloatingUI/FloatingUI.content.cjs.js");require("react");const g=({children:e,...r})=>i.jsx(t.Trigger,{...r,children:e});g.displayName="Popover.Trigger";const o=({children:e,...r})=>i.jsx(s.CloseTrigger,{...r,children:e});o.displayName="Popover.CloseTrigger";exports.CloseTrigger=o;exports.Trigger=g;
|
|
@@ -3,11 +3,12 @@ import "../../chunks/FloatingUI.context.2kPXcTvi.js";
|
|
|
3
3
|
import { Trigger as g } from "../FloatingUI/FloatingUI.trigger.es.js";
|
|
4
4
|
import { CloseTrigger as i } from "../FloatingUI/FloatingUI.trigger.close.es.js";
|
|
5
5
|
import "../FloatingUI/FloatingUI.content.es.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import "react";
|
|
7
|
+
const m = ({ children: r, ...o }) => /* @__PURE__ */ e(g, { ...o, children: r });
|
|
8
|
+
m.displayName = "Popover.Trigger";
|
|
9
|
+
const p = ({ children: r, ...o }) => /* @__PURE__ */ e(i, { ...o, children: r });
|
|
10
|
+
p.displayName = "Popover.CloseTrigger";
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
p as CloseTrigger,
|
|
13
|
+
m as Trigger
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../utils/hooks/index.cjs.js"),i=require("../../chunks/constants.hwjHOsvT.js"),o=require("../../chunks/CSSLookup.DESAWWRT.js"),s=require("../../chunks/tokens.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../utils/hooks/index.cjs.js"),i=require("../../chunks/constants.hwjHOsvT.js"),o=require("../../chunks/CSSLookup.DESAWWRT.js"),s=require("../../chunks/tokens.Bc11gmpN.js"),t=require("react"),c=e=>{const n=u.useCSSLookup(s.bmCompPopoverSpaceOffset),r=t.useMemo(()=>{if(e!==void 0&&typeof e=="number"&&i.SpacingValuesAsNumbers.includes(e))return o.convertRemToPixels(e/100)},[e]);return t.useMemo(()=>e===void 0?o.parseSizeString(n):r!==void 0?r:typeof e=="number"?o.convertRemToPixels(e):e,[e,n,r])};exports.usePopOverOffSet=c;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useCSSLookup as n } from "../../utils/hooks/index.es.js";
|
|
2
2
|
import { S as t } from "../../chunks/constants.BBi77pmH.js";
|
|
3
3
|
import { c as i, p as u } from "../../chunks/CSSLookup.Cjf6o2Gz.js";
|
|
4
|
-
import { c as p } from "../../chunks/tokens.
|
|
4
|
+
import { c as p } from "../../chunks/tokens.BD_71qmL.js";
|
|
5
5
|
import { useMemo as m } from "react";
|
|
6
6
|
const b = (r) => {
|
|
7
7
|
const o = n(p), e = m(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var T=require("../../assets/ProgressBar.css");Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),k=require("../../chunks/constants.hwjHOsvT.js"),j=require("../../chunks/classNames.DAeKwerT.js"),P=require("clsx"),M=require("../../chunks/form.context.
|
|
1
|
+
var T=require("../../assets/ProgressBar.css");Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),k=require("../../chunks/constants.hwjHOsvT.js"),j=require("../../chunks/classNames.DAeKwerT.js"),P=require("clsx"),M=require("../../chunks/form.context.B26th8Od.js"),c=require("../../utils/hooks/useId.cjs.js");function q(r,s){if(r==="error")return Math.max(4,s??4);if(r==="success")return 100;if(s!==void 0)return Math.max(0,Math.min(100,s))}function y(r){return r==="success"?{appearance:"positive",hideIcon:!1}:r==="error"?{appearance:"negative",hideIcon:!1}:{appearance:"info",hideIcon:!0}}const e={"bm-light":"bm-light","bm-dark":"bm-dark","bm-inverse":"bm-inverse","bm-progress-bar":"bm-progress-bar","bm-progress-bar__label":"bm-progress-bar__label","bm-progress-bar__track":"bm-progress-bar__track","bm-progress-bar__status":"bm-progress-bar__status","bm-progress-bar--sm":"bm-progress-bar--sm","bm-progress-bar--lg":"bm-progress-bar--lg","bm-progress-bar--full-width":"bm-progress-bar--full-width","bm-progress-bar--active":"bm-progress-bar--active","bm-progress-bar__indicator":"bm-progress-bar__indicator","bm-progress-bar--success":"bm-progress-bar--success","bm-progress-bar--error":"bm-progress-bar--error","bm-progress-bar--determinate":"bm-progress-bar--determinate","bm-progress-bar--indeterminate":"bm-progress-bar--indeterminate","bm-progress-bar-indeterminate-indicator-animation":"bm-progress-bar-indeterminate-indicator-animation"},{baseClassNamePrefix:w,classModifierPrefix:t,subElementClassPrefix:i}=j.getBEMClassNames("progress-bar");function _({state:r="active",size:s="md",label:o,helperText:b,fullWidth:f=!1,theme:l,value:n,className:h,"aria-label":v,"aria-labelledby":x,...$}){const d=c.useId(),p=c.useId(),u=c.useId(),m=r!=="success"&&n===void 0?"indeterminate":"determinate",g=q(r,n),N=y(r),I=P(e[w],l&&k.themeClassName(l),e[`${t}${m}`],e[`${t}${r}`],s&&e[`${t}${s}`],f&&e[`${t}full-width`],h);return a.jsxs("div",{className:I,...$,children:[o&&a.jsx("label",{id:d,htmlFor:p,className:e[`${i}label`],children:o}),a.jsxs("div",{id:p,role:"progressbar","aria-label":v,"aria-labelledby":x??(o?d:void 0),"aria-describedby":b?u:void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,className:e[`${i}track`],children:[m==="determinate"&&a.jsx("div",{className:e[`${i}indicator`],style:g!==void 0&&{width:`${g}%`}||void 0}),m==="indeterminate"&&a.jsx("div",{className:e[`${i}indicator`]})]}),b&&a.jsx(M.HelperText,{id:u,className:e[`${i}status`],...N,children:b})]})}exports.ProgressBar=_;exports.default=_;
|
|
@@ -3,7 +3,7 @@ import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
|
3
3
|
import { t as I } from "../../chunks/constants.BBi77pmH.js";
|
|
4
4
|
import { g as P } from "../../chunks/classNames.DNsS4J__.js";
|
|
5
5
|
import w from "clsx";
|
|
6
|
-
import { H as y } from "../../chunks/form.context.
|
|
6
|
+
import { H as y } from "../../chunks/form.context.CfsTSQpm.js";
|
|
7
7
|
import { useId as c } from "../../utils/hooks/useId.es.js";
|
|
8
8
|
function M(r, e) {
|
|
9
9
|
if (r === "error")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var re=require("../../assets/RadioButton.css");Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),z=require("react"),L=require("clsx"),J=require("../Form/hooks/useUniversalRef.hook.cjs.js"),Q=require("../../chunks/constants.hwjHOsvT.js"),W=require("../../chunks/form.context.
|
|
1
|
+
var re=require("../../assets/RadioButton.css");Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react/jsx-runtime"),z=require("react"),L=require("clsx"),J=require("../Form/hooks/useUniversalRef.hook.cjs.js"),Q=require("../../chunks/constants.hwjHOsvT.js"),W=require("../../chunks/form.context.B26th8Od.js"),X=require("../../chunks/classNames.DAeKwerT.js");require("../Form/contexts/label.context.cjs.js");require("../Form/contexts/helperText.context.cjs.js");const Y=require("../InputChoiceGroup/InputChoiceGroup.context.cjs.js");function Z(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(r,o,a.get?a:{enumerable:!0,get:()=>e[o]})}}return r.default=e,Object.freeze(r)}const l=Z(z),t={"bm-light":"bm-light","bm-dark":"bm-dark","bm-inverse":"bm-inverse","bm-radio-button":"bm-radio-button","bm-radio-button--read-only":"bm-radio-button--read-only","bm-radio-button--disabled":"bm-radio-button--disabled","bm-radio-button__label":"bm-radio-button__label","bm-radio-button--error":"bm-radio-button--error","bm-radio-button__input":"bm-radio-button__input","bm-radio-button--with-label":"bm-radio-button--with-label"},{baseClassNamePrefix:ee,subElementClassPrefix:y,classModifierPrefix:c}=X.getBEMClassNames("radio-button"),R=l.forwardRef(function({label:e,theme:r,className:o,error:a=!1,readOnly:C=!1,disabled:g=!1,required:q=!1,...v},w){const{value:u,name:O,onKeyDown:d,"aria-invalid":te,defaultChecked:j,...k}=v,{refFn:N}=J.useUniversalRef(w),f=l.useRef(null),{ctxDisabled:D,ctxReadOnly:P,ctxRequired:B,ctxInitialValues:p}=l.useContext(W.FormContext),{ctxName:I,ctxError:E,ctxDisabled:F,ctxReadOnly:$,ctxRequired:M}=l.useContext(Y.InputChoiceGroupContext),s=O||I,A=a||E,x=g||F||D,S=q||M||B,_=C||$||P,T=s&&s in p?!!u&&p[s]===u:void 0,G=j||T,U=L(t[ee],r&&Q.themeClassName(r),A&&t[`${c}error`],e&&t[`${c}with-label`],x&&t[`${c}disabled`],_&&t[`${c}read-only`],o),h=n=>{const{target:b}=n,{current:m}=f;b===m&&n.stopPropagation()},H=n=>{const{target:b,key:m}=n,{readOnly:K}=b,V=[" ","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(m);d==null||d(n),K&&V&&n.preventDefault()};return i.jsx("div",{className:U,children:i.jsxs("label",{tabIndex:-1,ref:f,onBlur:h,onFocus:h,className:t[`${y}label`],children:[i.jsx("input",{ref:N,name:s,type:"radio",value:u,required:S,disabled:x,readOnly:_,defaultChecked:G,onKeyDown:H,className:t[`${y}input`],...k}),e&&i.jsx("span",{children:e})]})})});exports.RadioButton=R;exports.default=R;
|
|
@@ -4,7 +4,7 @@ import * as r from "react";
|
|
|
4
4
|
import J from "clsx";
|
|
5
5
|
import { useUniversalRef as Q } from "../Form/hooks/useUniversalRef.hook.es.js";
|
|
6
6
|
import { t as S } from "../../chunks/constants.BBi77pmH.js";
|
|
7
|
-
import { F as T } from "../../chunks/form.context.
|
|
7
|
+
import { F as T } from "../../chunks/form.context.CfsTSQpm.js";
|
|
8
8
|
import { g as W } from "../../chunks/classNames.DNsS4J__.js";
|
|
9
9
|
import "../Form/contexts/label.context.es.js";
|
|
10
10
|
import "../Form/contexts/helperText.context.es.js";
|
package/lib/Select/Select.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),n=require("react"),De=require("../../chunks/classNames.DAeKwerT.js"),Fe=require("../../chunks/constants.hwjHOsvT.js"),i=require("../../chunks/combobox.module.XIDBRMf_.js"),D=require("clsx"),F=require("../../chunks/form.context.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),n=require("react"),De=require("../../chunks/classNames.DAeKwerT.js"),Fe=require("../../chunks/constants.hwjHOsvT.js"),i=require("../../chunks/combobox.module.XIDBRMf_.js"),D=require("clsx"),F=require("../../chunks/form.context.B26th8Od.js"),Le=require("../Form/contexts/label.context.cjs.js"),Ae=require("../Form/contexts/helperText.context.cjs.js"),L=require("../ActionList/ActionList.cjs.js"),Ve=require("./useSelectDropdown.cjs.js"),ke=require("./SelectDropdown.cjs.js"),Ee=require("./useSelectChips.cjs.js"),Re=require("./useSelectKeyboardManager.cjs.js"),Te=require("./useClearSelection.cjs.js"),He=require("../_Options/OptionChips.cjs.js"),Ke=require("./SelectField.cjs.js"),Ge=require("./useSelectA11y.cjs.js"),A=require("../_Options/Option.context.cjs.js"),We=require("../_Options/Option.cjs.js"),ze=require("../_Options/useSelectValue.cjs.js"),Je=require("../_Options/strategies/SelectionStrategy.cjs.js"),{baseClassNamePrefix:Qe,subElementClassPrefix:v,classModifierPrefix:c}=De.getBEMClassNames("combobox"),Ue=n.forwardRef(({theme:h,width:V,error:a,children:k,label:q=null,contentBefore:E,contentAfter:R,fluid:T=!1,helperText:C=null,validationRules:H=[],className:K,hideRequiredMarker:G=!1,disabled:W=!1,readOnly:z=!1,required:J=!1,placeholder:Q="",onChange:b,...x},U)=>{const{id:g,name:X,"aria-describedby":Y,multiple:e=!1,clearable:Z=e,...ee}=x,{showErrors:te,isInvalid:se,errorShown:le,disabled:l,readOnly:o,required:P}=F.useFormField({name:X,validationRules:H,disabledProp:W,readOnlyProp:z,requiredProp:J}),{aria:_,ids:ie}=Ge.useSelectA11y({helperText:C,externalDescribedBy:Y,error:a,errorShown:le,invalid:!!a||se}),{helperTextId:re,errorId:oe,validationErrorsId:ne,labelId:j}=ie,ce=!!(a!=null&&a.length),ae=n.useCallback(r=>{b==null||b(r)},[b]),{value:d,setValue:I,selectProps:de,handleBlur:M,singleValue:S}=ze.useSelectValue({onChange:ae,...x},U),f=!d||Array.isArray(d)&&!d.length,{optionsContext:ue,optionIds:u,optionsProps:p,selectedOptionsProps:N,deselectOptionValue:$}=A.useCreateOptionsContext(d,I,e),y=n.useMemo(()=>{if(!S)return;const r=u.map(t=>p.get(t)).findIndex(t=>(t==null?void 0:t.value)===S);return r!==-1?r:void 0},[u,p,S]),pe=n.useMemo(()=>{if(y===void 0)return;const r=p.get(u[y]);return r==null?void 0:r.label},[y,u,p]),{getFieldProps:be,dropdownProps:xe,refs:_e,open:w,setOpen:O,status:Se}=Ve.useSelectDropdown({disabled:l,readOnly:o,lastSelectedOptionIndex:y}),ye=D(i.styles[Qe],h&&Fe.themeClassName(h),T&&i.styles[`${c}fluid`],_.invalid&&i.styles[`${c}error`],l&&i.styles[`${c}disabled`],o&&i.styles[`${c}read-only`],f&&i.styles[`${c}empty`],e&&i.styles[`${c}multiple`],i.styles[`${c}dropdown-${Se}`],K),{canClear:me,handleClear:he}=Te.useClearSelection({multiple:e,clearable:Z,isEmpty:f,disabled:l,readOnly:o,setValue:I,setOpen:O}),{chipGroupProps:fe,handleBlur:B,selectedChip:Oe,setSelectedChip:ve,enabled:qe,selectPreviousChip:Ce,selectNextChip:ge,options:Pe,deselectOptionValue:je}=Ee.useSelectChips({multiple:e,disabled:l,readOnly:o,open:w,setOpen:O,options:N,deselectOptionValue:$,fieldRef:_e.domReference}),{getKeyboardProps:Ie}=Re.useSelectKeyboardManager({multiple:e,disabled:l,readOnly:o,open:w,setOpen:O,chips:{enabled:qe,selectedChip:Oe,setSelectedChip:ve,selectPreviousChip:Ce,selectNextChip:ge,options:Pe,deselectOptionValue:je}}),Me=n.useMemo(()=>Je.createSelectionStrategy(e),[e]),Ne=n.useCallback(()=>{M(),B()},[M,B]),{ref:$e,...we}=Ie(be());return s.jsxs(A.OptionsProvider,{value:ue,children:[s.jsxs("div",{className:ye,style:{maxWidth:V},children:[s.jsx(Le.LabelProvider,{ctxHtmlFor:g,ctxDisabled:l,ctxRequired:P&&!G,ctxId:j,children:q}),s.jsx(Ke.SelectField,{id:g,disabled:l,readOnly:o,required:P,invalid:_.invalid,errorMessage:_.errorMessage,labelId:!x.ariaLabel&&q?j:void 0,ariaLabel:x.ariaLabel,describedBy:_.describedBy,contentBefore:E,contentAfter:R,chips:s.jsx(He.OptionChips,{multiple:e,disabled:l,readOnly:o,selectedOptions:N,deselectOptionValue:$,chipGroupProps:fe,input:s.jsx("input",{className:i.styles[`${v}field__input`],placeholder:e&&!f?"":Q,disabled:l,readOnly:!0,autoComplete:"off",tabIndex:-1,autoFocus:!1,value:e?"":pe??S})}),hasClearButton:me,onClear:he,onBlur:Ne,...we,ref:$e}),s.jsxs(Ae.HelperTextProvider,{ctxId:re,ctxDisabled:l,children:[C,ce&&s.jsx(F.HelperText,{id:oe,appearance:"negative",children:a})]}),te(ne)]}),s.jsxs("select",{...ee,...de,hidden:!0,multiple:e,children:[s.jsx("option",{value:"",children:"empty"}),k]}),s.jsx(ke.SelectDropdown,{...xe,className:i.styles[`${v}dropdown`],disabled:l,readOnly:o,theme:h,multiple:e,children:s.jsx(L.ActionList,{role:"listbox",children:u.map(r=>{const t=p.get(r);if(!t)return null;const Be=Me.isSelected(t.value,d);return n.createElement(L.ActionList.Item,{...t,className:D(i.styles[`${v}option`],t.className),defaultSelected:Be,key:`opt-${t.value??t.label}`,kind:e?"checkbox":"singleCheckMark",role:"option"})})})})]})}),m=Ue;m.Option=We.Option;m.displayName="Select";exports.Select=m;exports.default=m;
|
package/lib/Select/Select.es.js
CHANGED
|
@@ -4,7 +4,7 @@ import { g as Le } from "../../chunks/classNames.DNsS4J__.js";
|
|
|
4
4
|
import { t as Re } from "../../chunks/constants.BBi77pmH.js";
|
|
5
5
|
import { s as r } from "../../chunks/combobox.module.DNJ3sGlK.js";
|
|
6
6
|
import F from "clsx";
|
|
7
|
-
import { b as qe, H as Ae } from "../../chunks/form.context.
|
|
7
|
+
import { b as qe, H as Ae } from "../../chunks/form.context.CfsTSQpm.js";
|
|
8
8
|
import { LabelProvider as He } from "../Form/contexts/label.context.es.js";
|
|
9
9
|
import { HelperTextProvider as je } from "../Form/contexts/helperText.context.es.js";
|
|
10
10
|
import { ActionList as L } from "../ActionList/ActionList.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@floating-ui/react"),B=require("../Box/Box.cjs.js"),C=require("clsx"),a=require("../../chunks/classNames.DAeKwerT.js"),P=require("../../chunks/constants.hwjHOsvT.js");require("../_Options/Option.context.cjs.js");const v=require("../_Options/Option.cjs.js"),y=require("react");require("../../chunks/form.context.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@floating-ui/react"),B=require("../Box/Box.cjs.js"),C=require("clsx"),a=require("../../chunks/classNames.DAeKwerT.js"),P=require("../../chunks/constants.hwjHOsvT.js");require("../_Options/Option.context.cjs.js");const v=require("../_Options/Option.cjs.js"),y=require("react");require("../../chunks/form.context.B26th8Od.js");require("../Form/contexts/label.context.cjs.js");require("../Form/contexts/helperText.context.cjs.js");const S=require("../ActionList/ActionList.context.cjs.js"),O=require("../../chunks/floatingui.module.D3Aw_aYe.js"),M=require("../../chunks/popover.module.Dum8SaSU.js"),{baseClassNamePrefix:w}=a.getBEMClassNames("floatingui"),{baseClassNamePrefix:A}=a.getBEMClassNames("popover"),L=[v.Option],T=({setOpen:t,isMounted:n,status:l,nodeId:c,context:u,getFloatingProps:d,floatingStyles:x,labelsRef:f,elementsRef:q,getItemProps:g,setFloating:p,disabled:m,readOnly:N,theme:o,className:b,children:F,multiple:i,activeIndex:_,onItemClick:s})=>{const j=y.useCallback(h=>{s==null||s(h),!i&&t(!1)},[i,s,t]);return n?e.jsx(r.FloatingTree,{children:e.jsx(r.FloatingNode,{id:c,children:e.jsx(r.FloatingPortal,{children:e.jsx(r.FloatingFocusManager,{context:u,modal:!1,initialFocus:0,disabled:m||N,closeOnFocusOut:!0,restoreFocus:!0,returnFocus:!0,guards:!0,order:["content","reference"],children:e.jsx(B.Box,{"data-status":l,className:C(o&&P.themeClassName(o),O.floatinguiStyles[w],M.popoverStyles[A],b),...d(),style:x,ref:p,children:e.jsx(S.ActionListContextProvider,{allowChildrenTypes:L,getItemProps:g,itemsFocusable:!1,onItemClick:j,labelsRef:f,elementsRef:q,activeIndex:_,children:F})})})})})}):null};exports.SelectDropdown=T;
|
|
@@ -7,7 +7,7 @@ import { t as O } from "../../chunks/constants.BBi77pmH.js";
|
|
|
7
7
|
import "../_Options/Option.context.es.js";
|
|
8
8
|
import { Option as T } from "../_Options/Option.es.js";
|
|
9
9
|
import { useCallback as j } from "react";
|
|
10
|
-
import "../../chunks/form.context.
|
|
10
|
+
import "../../chunks/form.context.CfsTSQpm.js";
|
|
11
11
|
import "../Form/contexts/label.context.es.js";
|
|
12
12
|
import "../Form/contexts/helperText.context.es.js";
|
|
13
13
|
import { ActionListContextProvider as A } from "../ActionList/ActionList.context.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("react"),e=require("../Form/hooks/useAccessibleId.hook.cjs.js");require("react/jsx-runtime");require("../../chunks/form.context.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const _=require("react"),e=require("../Form/hooks/useAccessibleId.hook.cjs.js");require("react/jsx-runtime");require("../../chunks/form.context.B26th8Od.js");const l=require("clsx");function n({helperText:a,externalDescribedBy:b,error:s,errorShown:I,invalid:t}){const{id:c}=e.useAccessibleId(),{id:i}=e.useAccessibleId(),{id:o}=e.useAccessibleId(),{id:d}=e.useAccessibleId(),A=!!(s!=null&&s.length),r=l(a&&i,b)||void 0,u=l(A&&c,I&&o)||void 0;return _.useMemo(()=>({ids:{helperTextId:i,errorId:c,validationErrorsId:o,labelId:d},aria:{describedBy:r,errorMessage:u,invalid:t}}),[i,c,o,d,r,u,t])}exports.default=n;exports.useSelectA11y=n;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMemo as f } from "react";
|
|
2
2
|
import { useAccessibleId as e } from "../Form/hooks/useAccessibleId.hook.es.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
|
-
import "../../chunks/form.context.
|
|
4
|
+
import "../../chunks/form.context.CfsTSQpm.js";
|
|
5
5
|
import m from "clsx";
|
|
6
6
|
function M({
|
|
7
7
|
helperText: a,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),d=require("clsx"),u=require("../../chunks/sideNav.module.B3wMOMTH.js"),l=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const p=require("../../chunks/ActionList.Group.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),d=require("clsx"),u=require("../../chunks/sideNav.module.B3wMOMTH.js"),l=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const p=require("../../chunks/ActionList.Group.C2R56u2A.js"),N=require("../../utils/extractSpecifiedComponents.cjs.js"),i=require("./SideNavActionListGroupHeading.cjs.js"),{baseClassNamePrefix:g}=l.getBEMClassNames("side-nav__group"),e=({children:s,className:t,...n})=>{const[{heading:o},r]=N.extractSpecifiedComponents(s,{heading:i.SideNavActionListGroupHeading}),a=d(u.styles[`${g}`],t);return c.jsx(p.ActionListGroup,{...n,kind:"action",className:a,role:"group",heading:o,children:r})};e.displayName="SideNav.ActionList.Group";e.Heading=i.SideNavActionListGroupHeading;exports.SideNavActionListGroup=e;
|
|
@@ -3,7 +3,7 @@ import p from "clsx";
|
|
|
3
3
|
import { s as c } from "../../chunks/sideNav.module.DBN2ryFs.js";
|
|
4
4
|
import { g as d } from "../../chunks/classNames.DNsS4J__.js";
|
|
5
5
|
import "../../chunks/constants.BBi77pmH.js";
|
|
6
|
-
import { A as l } from "../../chunks/ActionList.Group.
|
|
6
|
+
import { A as l } from "../../chunks/ActionList.Group.B4PX5SKS.js";
|
|
7
7
|
import { extractSpecifiedComponents as f } from "../../utils/extractSpecifiedComponents.es.js";
|
|
8
8
|
import { SideNavActionListGroupHeading as o } from "./SideNavActionListGroupHeading.es.js";
|
|
9
9
|
const { baseClassNamePrefix: g } = d("side-nav__group"), i = ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),I=require("react"),x=require("clsx"),S=require("../../chunks/sideNav.module.B3wMOMTH.js"),_=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const y=require("../../utils/extractSpecifiedComponents.cjs.js"),f=require("../../chunks/ActionList.Item.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),I=require("react"),x=require("clsx"),S=require("../../chunks/sideNav.module.B3wMOMTH.js"),_=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const y=require("../../utils/extractSpecifiedComponents.cjs.js"),f=require("../../chunks/ActionList.Item.5Y-SwzjK.js"),p=require("./SideNavActionListItemLabel.cjs.js"),l=require("./SideNavActionListItemFlyout.cjs.js"),r=require("./SideNavActionListItemExpandable.cjs.js"),q=require("./SideNavExpandableContext.cjs.js"),{baseClassNamePrefix:E,classModifierPrefix:h}=_.getBEMClassNames("side-nav__action"),F=I.forwardRef((L,a)=>{const{className:s,selected:t,children:d,...o}=L,{indent:u}=q.useSideNavExpandableContext(),[{label:i,flyout:m,expandable:v}]=y.extractSpecifiedComponents(d,{label:p.SideNavActionListItemLabel,flyout:l.SideNavActionListItemFlyout,expandable:r.SideNavActionListItemExpandable}),N=i&&m,b=i&&v;N&&b&&console.warn("SideNav.ActionList.Item: You cannot use both Flyout and Expandable components at the same time. Defaulting to Flyout.");const n=x(S.styles[`${E}`],t&&S.styles[`${h}selected`]);if(N)return c.jsx(l.Flyout,{className:s,baseClassName:n,ref:a,label:i,flyout:m,"aria-checked":void 0,"aria-selected":void 0,"aria-current":t?!0:void 0,...o});if(b)return c.jsx(r.Expandable,{label:i,expandable:v,baseClassName:n,className:s,indent:u,ref:a,"aria-current":t?!0:void 0,"aria-checked":void 0,"aria-selected":void 0,...o});{const A=x(n,s);return c.jsx(f.ActionListItem,{className:A,tabIndex:0,ref:a,tooltipPlacement:"right",indent:u,"aria-checked":void 0,"aria-selected":void 0,"aria-current":t?!0:void 0,...o,children:d})}}),e=F;e.Label=p.SideNavActionListItemLabel;e.Flyout=l.SideNavActionListItemFlyout;e.Expandable=r.SideNavActionListItemExpandable;e.displayName="SideNav.ActionList.Item";exports.SideNavActionListItem=e;
|
|
@@ -5,7 +5,7 @@ import { s as v } from "../../chunks/sideNav.module.DBN2ryFs.js";
|
|
|
5
5
|
import { g as A } from "../../chunks/classNames.DNsS4J__.js";
|
|
6
6
|
import "../../chunks/constants.BBi77pmH.js";
|
|
7
7
|
import { extractSpecifiedComponents as I } from "../../utils/extractSpecifiedComponents.es.js";
|
|
8
|
-
import { A as S } from "../../chunks/ActionList.Item.
|
|
8
|
+
import { A as S } from "../../chunks/ActionList.Item.BFcT86lS.js";
|
|
9
9
|
import { SideNavActionListItemLabel as b } from "./SideNavActionListItemLabel.es.js";
|
|
10
10
|
import { Flyout as E, SideNavActionListItemFlyout as x } from "./SideNavActionListItemFlyout.es.js";
|
|
11
11
|
import { Expandable as F, SideNavActionListItemExpandable as N } from "./SideNavActionListItemExpandable.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),v=require("clsx"),d=require("../../chunks/sideNav.module.B3wMOMTH.js"),p=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const _=require("../Accordion/Accordion.cjs.js"),N=require("../Accordion/AccordionGroup.cjs.js"),f=require("../../chunks/ActionList.Item.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),v=require("clsx"),d=require("../../chunks/sideNav.module.B3wMOMTH.js"),p=require("../../chunks/classNames.DAeKwerT.js");require("../../chunks/constants.hwjHOsvT.js");const _=require("../Accordion/Accordion.cjs.js"),N=require("../Accordion/AccordionGroup.cjs.js"),f=require("../../chunks/ActionList.Item.5Y-SwzjK.js"),g=require("./SideNavExpandableContext.cjs.js"),y=require("./SideNavLayoutContext.cjs.js"),u=require("./SideNavActionListItemFlyout.cjs.js"),S=require("../Button/Button.cjs.js"),j=require("../Icon/Icon.cjs.js");function C(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return i.default=e,Object.freeze(i)}const b=C(s),q=e=>b.createElement("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 8C10 8.23607 9.9012 8.45836 9.73333 8.6L7.06667 10.85C6.86465 11.0204 6.59438 11.0479 6.36852 10.9208C6.14267 10.7938 6 10.5341 6 10.25L6 5.75C6 5.46592 6.14267 5.20623 6.36852 5.07918C6.59438 4.95214 6.86465 4.97956 7.06667 5.15L9.73333 7.4C9.9012 7.54164 10 7.76393 10 8Z",fill:"currentColor"})),A=e=>t.jsx(_.Accordion,{...e}),{baseClassNamePrefix:L,classModifierPrefix:I}=p.getBEMClassNames("side-nav__action"),h=s.forwardRef((e,i)=>{const{label:n,expandable:o,baseClassName:c,className:l,onClick:r,...a}=e,{currentLayout:m}=y.useSideNavLayoutContext();if(m==="rail")return t.jsx(u.Flyout,{className:l,baseClassName:c,ref:i,label:n,flyout:t.jsx(u.SideNavActionListItemFlyout,{children:o.props.children}),...a});const x=v(c,d.styles[`${I}expandable`],l);return t.jsx(g.SideNavExpandableContextProvider,{children:t.jsx(N.AccordionGroup,{children:s.cloneElement(o,{role:void 0,"aria-controls":void 0,tabIndex:void 0,heading:t.jsxs(t.Fragment,{children:[t.jsx(S.Button,{iconOnly:!0,iconBefore:t.jsx(j.Icon,{icon:q}),appearance:"neutral-subtle",kind:"bare",size:"sm",tabIndex:r?0:-1,"aria-label":`Toggle ${n.props.children}`,"aria-disabled":void 0,disabled:e.disabled,role:"menuitem",style:{pointerEvents:r?"unset":"none",marginInlineStart:typeof a.indent=="number"?`${a.indent+.5}rem`:0},className:d.styles[`${L}__expandable-icon`]}),t.jsx(f.ActionListItem,{className:x,ref:i,"aria-checked":void 0,"aria-disabled":void 0,disabled:e.disabled,onClick:r,...a,children:n})]})})})})});exports.Expandable=h;exports.SideNavActionListItemExpandable=A;
|
|
@@ -7,7 +7,7 @@ import { g as C } from "../../chunks/classNames.DNsS4J__.js";
|
|
|
7
7
|
import "../../chunks/constants.BBi77pmH.js";
|
|
8
8
|
import { Accordion as N } from "../Accordion/Accordion.es.js";
|
|
9
9
|
import { AccordionGroup as g } from "../Accordion/AccordionGroup.es.js";
|
|
10
|
-
import { A as h } from "../../chunks/ActionList.Item.
|
|
10
|
+
import { A as h } from "../../chunks/ActionList.Item.BFcT86lS.js";
|
|
11
11
|
import { SideNavExpandableContextProvider as y } from "./SideNavExpandableContext.es.js";
|
|
12
12
|
import { useSideNavLayoutContext as E } from "./SideNavLayoutContext.es.js";
|
|
13
13
|
import { Flyout as L, SideNavActionListItemFlyout as w } from "./SideNavActionListItemFlyout.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),x=require("../../chunks/ActionList.Item.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),x=require("../../chunks/ActionList.Item.5Y-SwzjK.js"),t=require("../Menu/Menu.cjs.js"),M=require("../Menu/Menu.context.cjs.js"),_=require("./SideNavContext.cjs.js"),v=require("clsx"),N=t.Menu.PopoverContent,b=m.forwardRef((o,s)=>{const{className:i,label:r,flyout:u,baseClassName:c,...l}=o,{isRTL:n}=_.useSideNavContext(),a=M.useMenuContext()!==void 0,d=v(a?"":c,i);return e.jsxs(t.Menu,{placement:n?"left-start":"right-start",listNavigation:{focusItemOnOpen:!0,nested:!0,rtl:n},children:[e.jsx(t.Menu.Trigger,{children:e.jsx(x.ActionListItem,{className:d,tabIndex:0,kind:"flyout",ref:s,tooltipPlacement:"right",...l,children:r})}),e.jsx(t.Menu.PopoverContent,{dir:n?"rtl":"ltr",children:u})]})});exports.Flyout=b;exports.SideNavActionListItemFlyout=N;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import { A as d } from "../../chunks/ActionList.Item.
|
|
3
|
+
import { A as d } from "../../chunks/ActionList.Item.BFcT86lS.js";
|
|
4
4
|
import { Menu as t } from "../Menu/Menu.es.js";
|
|
5
5
|
import { useMenuContext as x } from "../Menu/Menu.context.es.js";
|
|
6
6
|
import { useSideNavContext as C } from "./SideNavContext.es.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),m=require("react"),W=require("@floating-ui/react"),P=require("../../chunks/slider.module.Ds7jMW6I.js"),Y=require("../Label/Label.cjs.js"),Z=require("./Slider.TickMarks.cjs.js"),b=require("./Slider.ValueAxisLabels.cjs.js"),ee=require("./Slider.Error.cjs.js"),A=require("./Slider.TextField.cjs.js"),I=require("./Slider.Thumb.cjs.js"),le=require("./hooks/useDualSliderLogic.cjs.js");require("../../chunks/constants.hwjHOsvT.js");require("../../chunks/form.context.B26th8Od.js");const re=require("../Form/contexts/label.context.cjs.js"),ie=require("../Form/contexts/helperText.context.cjs.js");require("../../chunks/CSSLookup.DESAWWRT.js");require("../../utils/hooks/useId.cjs.js");const ae=require("./utils/slider.validation.utils.cjs.js"),R=require("./utils/slider.rendering.utils.cjs.js"),S=require("./slider.constants.cjs.js"),$=require("./hooks/useSliderEvents.cjs.js"),C=m.forwardRef(function({base:e,value:N,defaultValue:F,marksSource:w="none",restrictToValueAxis:x=!1,showTextField:L=!1,textFieldWidth:y=S.DEFAULT_TEXT_FIELD_WIDTH,persistentTooltip:T=!1,disabledTooltip:z=!1,helperText:B,contentBefore:q,contentAfter:p,minGap:g,onChange:H,...X},U){const G=W.useMergeRefs([e.containerRef,U]),_=ae.validateDualSliderDefaultValue(F,e.normalizedMin,e.normalizedMax),[t,u]=m.useState(!1),{value:i,setValue:a,markValues:j,step:n,getValidValue:s}=le.useDualSliderLogic({value:N,defaultValue:_,range:e.normalizedRange,min:e.normalizedMin,max:e.normalizedMax,step:e.normalizedStep,valueAxis:e.valueAxis,restrictToValueAxis:x,onChange:H,minGap:g});$.useSliderFormReset(e.internalInputRef,_??[e.normalizedMin??e.normalizedRange[0],e.normalizedMax??e.normalizedRange[1]],a,[_,e.normalizedMin,e.normalizedMax,e.normalizedRange,a]);const J=m.useCallback(l=>{if(e.disabled||e.readOnly)return;const[o,c]=i,f=Math.abs(l-o),h=Math.abs(l-c);f<h?a([l,c]):a([o,l])},[e.disabled,e.readOnly,a,i]),D=m.useCallback((l,o)=>{if(e.disabled||e.readOnly||!e.trackRef.current)return;const c=e.trackRef.current.getBoundingClientRect(),[f,h]=e.normalizedRange,d=R.clientXToValue(l,c,f,h,e.isRTL),[v,M]=i;if(o==="left")a([d,M]);else if(o==="right")a([v,d]);else{const K=Math.abs(d-v),Q=Math.abs(d-M);K<Q?(a([d,M]),u("left")):(a([v,d]),u("right"))}},[e.disabled,e.readOnly,e.normalizedRange,e.isRTL,a,i]);$.useSliderPointerEvents(t,D,()=>u(!1),()=>[t==="left"?"left":t==="right"?"right":void 0]);const[V,k]=e.normalizedRange,E=R.calculatePercentage(i[0],V,k),O=R.calculatePercentage(i[1],V,k);return r.jsxs("div",{ref:G,className:e.classNames.container,...X,children:[r.jsx(re.LabelProvider,{ctxHtmlFor:e.ids.input,ctxRequired:e.required,ctxDisabled:e.disabled,ctxId:e.aria.labelledBy,children:e.label&&typeof e.label=="string"?r.jsx(Y.Label,{children:e.label}):e.label}),r.jsxs("div",{className:e.classNames.contentContainer,role:"group",children:[q&&r.jsx("div",{className:P.styles[`${e.bem.subElementClassPrefix}content-before`],children:q}),L&&r.jsx(A.SliderTextField,{value:i[0],readOnly:e.readOnly,disabled:e.disabled,error:e.hasError,getValidValue:s,setValue:l=>{e.isRTL?a([i[0],l]):a([l,i[1]])},textFieldWidth:y,min:e.normalizedMin,max:e.normalizedMax,step:n,errorId:e.ids.error,ariaLabelledby:e.aria.labelledBy,ariaLabel:e.isRTL?e.aria.label?`${e.aria.label} (maximum)`:"Maximum value":e.aria.label?`${e.aria.label} (minimum)`:"Minimum value"}),r.jsxs("div",{style:{width:"100%"},children:[r.jsxs("div",{ref:e.trackRef,className:e.classNames.track,onPointerDown:l=>{e.disabled||e.readOnly||D(l.clientX)},children:[r.jsx("div",{className:e.classNames.fill,style:{[e.bem.variable("min-percentage")]:S.toCqw(E),[e.bem.variable("max-percentage")]:S.toCqw(O)}}),r.jsx(Z.SliderTickMarks,{valueAxis:e.valueAxis,markValues:j,range:e.normalizedRange,step:n,marksSource:w}),r.jsx(I.SliderThumb,{isRTL:e.isRTL,error:e.hasError,isDragging:t==="left",setIsDragging:l=>u(l?"left":!1),currentPercentage:E,disabled:e.disabled,readOnly:e.readOnly,value:i[0],range:e.normalizedRange,min:e.normalizedMin,max:e.normalizedMax,step:n,persistentTooltip:T,disabledTooltip:z,getValidValue:s,setValue:l=>a([l,i[1]]),ariaLabelledby:e.aria.labelledBy,ariaLabel:e.aria.label?`${e.aria.label} (minimum)`:"Minimum value",valueAxis:e.valueAxis,restrictToValueAxis:x,thumbSide:"left",otherThumbValue:i[1],minGap:g??n}),r.jsx(I.SliderThumb,{isRTL:e.isRTL,error:e.hasError,isDragging:t==="right",setIsDragging:l=>u(l?"right":!1),currentPercentage:O,disabled:e.disabled,readOnly:e.readOnly,value:i[1],range:e.normalizedRange,min:e.normalizedMin,max:e.normalizedMax,step:n,persistentTooltip:T,disabledTooltip:z,getValidValue:s,setValue:l=>a([i[0],l]),ariaLabelledby:e.aria.labelledBy,ariaLabel:e.aria.label?`${e.aria.label} (maximum)`:"Maximum value",valueAxis:e.valueAxis,restrictToValueAxis:x,thumbSide:"right",otherThumbValue:i[0],minGap:g??n})]}),r.jsx(b.SliderValueAxisLabels,{valueAxis:e.valueAxis,markValues:j,range:e.normalizedRange,showValueAxisLabels:e.showValueAxisLabels,onMarkClick:J,isRTL:e.isRTL})]}),L&&r.jsx(A.SliderTextField,{value:i[1],readOnly:e.readOnly,disabled:e.disabled,error:e.hasError,getValidValue:s,setValue:l=>{e.isRTL?a([l,i[1]]):a([i[0],l])},textFieldWidth:y,min:e.normalizedMin,max:e.normalizedMax,step:n,errorId:e.ids.error,ariaLabelledby:e.aria.labelledBy,ariaLabel:e.isRTL?e.aria.label?`${e.aria.label} (minimum)`:"Minimum value":e.aria.label?`${e.aria.label} (maximum)`:"Maximum value"}),p&&r.jsx("div",{className:P.styles[`${e.bem.subElementClassPrefix}content-after`],children:p})]}),e.name&&r.jsxs(r.Fragment,{children:[r.jsx("input",{type:"hidden",ref:e.internalInputRef,id:`${e.ids.input}-min`,name:`${e.name}-min`,value:i[0],disabled:e.disabled}),r.jsx("input",{type:"hidden",id:`${e.ids.input}-max`,name:`${e.name}-max`,value:i[1],disabled:e.disabled})]}),r.jsxs(ie.HelperTextProvider,{ctxId:e.ids.helperText,ctxDisabled:e.disabled,children:[B,r.jsx(ee.SliderError,{error:e.error,errorId:e.ids.error})]}),e.showErrors(e.ids.validationErrors)]})});exports.DualSlider=C;exports.default=C;
|
|
@@ -4,5 +4,5 @@ import { DualSliderProps } from './Slider.types';
|
|
|
4
4
|
interface DualSliderInternalProps extends Omit<DualSliderProps, 'name' | 'validationRules' | 'disabled' | 'readOnly' | 'required' | 'className' | 'range' | 'step' | 'min' | 'max' | 'label' | 'valueAxis' | 'showValueAxisLabels' | 'error' | 'aria-label' | 'aria-labelledby'> {
|
|
5
5
|
base: UseSliderBaseReturn;
|
|
6
6
|
}
|
|
7
|
-
export declare const DualSlider: React.ForwardRefExoticComponent<
|
|
7
|
+
export declare const DualSlider: React.ForwardRefExoticComponent<DualSliderInternalProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
export default DualSlider;
|