@qualcomm-ui/react 1.10.1 → 1.11.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/dist/checkbox/checkbox-hint.d.ts +15 -0
- package/dist/checkbox/checkbox-hint.d.ts.map +1 -0
- package/dist/checkbox/checkbox.d.ts +11 -1
- package/dist/checkbox/checkbox.d.ts.map +1 -1
- package/dist/checkbox/index.d.ts +3 -1
- package/dist/checkbox/index.d.ts.map +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/checkbox/index.js.map +4 -4
- package/dist/input/index.js +1 -1
- package/dist/input/index.js.map +2 -2
- package/dist/number-input/index.d.ts +4 -1
- package/dist/number-input/index.d.ts.map +1 -1
- package/dist/number-input/index.js +1 -1
- package/dist/number-input/index.js.map +4 -4
- package/dist/number-input/number-input-unit-select.d.ts +6 -0
- package/dist/number-input/number-input-unit-select.d.ts.map +1 -0
- package/dist/number-input/number-input.d.ts +6 -1
- package/dist/number-input/number-input.d.ts.map +1 -1
- package/dist/radio/index.d.ts +3 -1
- package/dist/radio/index.d.ts.map +1 -1
- package/dist/radio/index.js +1 -1
- package/dist/radio/index.js.map +4 -4
- package/dist/radio/radio-group/index.d.ts +3 -1
- package/dist/radio/radio-group/index.d.ts.map +1 -1
- package/dist/radio/radio-group/radio-group-hint.d.ts +10 -0
- package/dist/radio/radio-group/radio-group-hint.d.ts.map +1 -0
- package/dist/radio/radio-hint.d.ts +15 -0
- package/dist/radio/radio-hint.d.ts.map +1 -0
- package/dist/radio/radio.d.ts +11 -1
- package/dist/radio/radio.d.ts.map +1 -1
- package/dist/switch/index.d.ts +3 -1
- package/dist/switch/index.d.ts.map +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/switch/index.js.map +4 -4
- package/dist/switch/switch-hint.d.ts +15 -0
- package/dist/switch/switch-hint.d.ts.map +1 -0
- package/dist/switch/switch.d.ts +10 -1
- package/dist/switch/switch.d.ts.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,WAAW,EAAC,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACpE,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAC,SAAS,EAAE,KAAK,cAAc,EAAC,MAAM,cAAc,CAAA;AAE3D,cAAc,eAAe,CAAA;AAE7B,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,cAAc,GACf,CAAA;AAED,KAAK,cAAc,GAAG,OAAO,WAAW,GAAG;IACzC,OAAO,EAAE,OAAO,YAAY,CAAA;IAC5B,WAAW,EAAE,OAAO,gBAAgB,CAAA;IACpC,KAAK,EAAE,OAAO,UAAU,CAAA;IACxB,IAAI,EAAE,OAAO,SAAS,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,cAA8C,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,IAAI,WAAW,EAAC,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACpE,OAAO,EACL,gBAAgB,EAChB,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAC,SAAS,EAAE,KAAK,cAAc,EAAC,MAAM,cAAc,CAAA;AAC3D,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAC,SAAS,EAAE,KAAK,cAAc,EAAC,MAAM,cAAc,CAAA;AAE3D,cAAc,eAAe,CAAA;AAE7B,YAAY,EACV,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,cAAc,GACf,CAAA;AAED,KAAK,cAAc,GAAG,OAAO,WAAW,GAAG;IACzC,OAAO,EAAE,OAAO,YAAY,CAAA;IAC5B,WAAW,EAAE,OAAO,gBAAgB,CAAA;IACpC,IAAI,EAAE,OAAO,SAAS,CAAA;IACtB,KAAK,EAAE,OAAO,UAAU,CAAA;IACxB,IAAI,EAAE,OAAO,SAAS,CAAA;CACvB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,cAA8C,CAAA"}
|
package/dist/radio/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as
|
|
2
|
+
import{jsx as jsx6,jsxs}from"react/jsx-runtime";import{jsx}from"react/jsx-runtime";import{useRadioItemControl}from"@qualcomm-ui/react-core/radio";import{PolymorphicElement}from"@qualcomm-ui/react-core/system";import{mergeProps}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsRadioContextProvider,useQdsRadioContext]=createGuardedContext({hookName:"useQdsRadioContext",providerName:"<QdsRadioContextProvider>",strict:!0});function RadioControl(t0){let{...props}=t0,contextProps=useRadioItemControl(),qdsContext=useQdsRadioContext(),mergedProps=mergeProps(contextProps,qdsContext.getItemControlBindings(),props);return jsx(PolymorphicElement,{as:"span",...mergedProps})}import{c as _c}from"react/compiler-runtime";import{jsx as jsx2}from"react/jsx-runtime";import{useRadioItemHiddenInput}from"@qualcomm-ui/react-core/radio";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";function RadioHiddenInput(t0){let $=_c(2),{id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useRadioItemHiddenInput(t1),qdsContext=useQdsRadioContext(),mergedProps=mergeProps2(contextProps,qdsContext.getItemHiddenInputBindings(),props);return jsx2("input",{...mergedProps})}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx3}from"react/jsx-runtime";import{InputHint}from"@qualcomm-ui/react/input";import{useRadioItemHint}from"@qualcomm-ui/react-core/radio";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function RadioHint(t0){let $=_c2(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useRadioItemHint(t1),qdsContext=useQdsRadioContext(),mergedProps=mergeProps3(contextProps,qdsContext.getItemHintBindings(),props);return jsx3(InputHint,{...mergedProps,children})}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx4}from"react/jsx-runtime";import{useRadioItemLabel}from"@qualcomm-ui/react-core/radio";import{PolymorphicElement as PolymorphicElement2}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function RadioLabel(t0){let $=_c3(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useRadioItemLabel(t1),qdsContext=useQdsRadioContext(),mergedProps=mergeProps4(contextProps,qdsContext.getItemLabelBindings(),props);return jsx4(PolymorphicElement2,{as:"span",...mergedProps,children})}import{c as _c4}from"react/compiler-runtime";import{jsx as jsx5}from"react/jsx-runtime";import"react";import{createQdsRadioApi}from"@qualcomm-ui/qds-core/radio";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{RadioItemContextProvider,useRadioItem}from"@qualcomm-ui/react-core/radio";import{PolymorphicElement as PolymorphicElement3}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function RadioRoot(t0){let $=_c4(6),{children,disabled,id,size,value,...props}=t0,t1;$[0]!==disabled||$[1]!==id||$[2]!==value?(t1={disabled,id,value},$[0]=disabled,$[1]=id,$[2]=value,$[3]=t1):t1=$[3];let{bindings,itemContext}=useRadioItem(t1),parentContext=useQdsRadioContext(!1),t2=size||parentContext.size,t3;$[4]!==t2?(t3=createQdsRadioApi({size:t2},normalizeProps),$[4]=t2,$[5]=t3):t3=$[5];let qdsContext=t3,mergedProps=mergeProps5(bindings,qdsContext.getItemBindings(),props);return jsx5(QdsRadioContextProvider,{value:qdsContext,children:jsx5(RadioItemContextProvider,{value:itemContext,children:jsx5(PolymorphicElement3,{as:"label",...mergedProps,children})})})}function Radio({"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,controlProps,hiddenInputProps:hiddenInputPropsProp,hint,hintProps,label,labelProps,...props}){let labelContent=label||labelProps?.children,hintContent=hint||hintProps?.children,hiddenInputProps={...hiddenInputPropsProp};return ariaLabel!==void 0&&(hiddenInputProps["aria-label"]=ariaLabel),ariaLabelledBy!==void 0&&(hiddenInputProps["aria-labelledby"]=ariaLabelledBy),jsxs(RadioRoot,{...props,children:[jsx6(RadioHiddenInput,{...hiddenInputProps}),jsx6(RadioControl,{...controlProps}),labelContent?jsx6(RadioLabel,{...labelProps,children:labelContent}):null,hintContent?jsx6(RadioHint,{...hintProps,children:hintContent}):null]})}import{c as _c5}from"react/compiler-runtime";import{useRadioContext}from"@qualcomm-ui/react-core/radio";import{renderProp}from"@qualcomm-ui/react-core/system";function RadioContext(t0){let $=_c5(3),{children}=t0,context=useRadioContext(),t1;return $[0]!==children||$[1]!==context?(t1=renderProp(children,context),$[0]=children,$[1]=context,$[2]=t1):t1=$[2],t1}import{jsx as jsx10,jsxs as jsxs2}from"react/jsx-runtime";import{jsx as jsx7}from"react/jsx-runtime";import{useRadioGroupItems}from"@qualcomm-ui/react-core/radio";import{PolymorphicElement as PolymorphicElement4}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function RadioGroupItems(t0){let{children,...props}=t0,contextProps=useRadioGroupItems(),qdsContext=useQdsRadioContext(),mergedProps=mergeProps6(contextProps,qdsContext.getGroupItemsBindings(),props);return jsx7(PolymorphicElement4,{as:"div",...mergedProps,children})}import{c as _c6}from"react/compiler-runtime";import{jsx as jsx8}from"react/jsx-runtime";import{useRadioGroupLabel}from"@qualcomm-ui/react-core/radio";import{PolymorphicElement as PolymorphicElement5}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function RadioGroupLabel(t0){let $=_c6(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useRadioGroupLabel(t1),qdsContext=useQdsRadioContext(),mergedProps=mergeProps7(contextProps,qdsContext.getGroupLabelBindings(),props);return jsx8(PolymorphicElement5,{as:"div",...mergedProps,children})}import{c as _c7}from"react/compiler-runtime";import{jsx as jsx9}from"react/jsx-runtime";import"react";import{splitRadioProps}from"@qualcomm-ui/core/radio";import{createQdsRadioApi as createQdsRadioApi2}from"@qualcomm-ui/qds-core/radio";import{normalizeProps as normalizeProps2}from"@qualcomm-ui/react-core/machine";import{RadioContextProvider,useRadio}from"@qualcomm-ui/react-core/radio";import{useControlledId}from"@qualcomm-ui/react-core/state";import{PolymorphicElement as PolymorphicElement6}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function RadioGroupRoot(t0){let $=_c7(3),{children,id,indented,size,...props}=t0,[radioProps,localProps]=splitRadioProps(props),context=useRadio(radioProps),t1;$[0]!==indented||$[1]!==size?(t1=createQdsRadioApi2({indented,size},normalizeProps2),$[0]=indented,$[1]=size,$[2]=t1):t1=$[2];let qdsContext=t1,mergedProps=mergeProps8(context.getGroupBindings({id:useControlledId(id)}),qdsContext.getGroupBindings(),localProps);return jsx9(QdsRadioContextProvider,{value:qdsContext,children:jsx9(RadioContextProvider,{value:context,children:jsx9(PolymorphicElement6,{as:"fieldset",...mergedProps,children})})})}function RadioGroup({children,itemsProps,label,labelProps,...props}){let labelContent=label||labelProps?.children;return jsxs2(RadioGroupRoot,{...props,children:[labelContent?jsx10(RadioGroupLabel,{...labelProps,children:labelContent}):null,jsx10(RadioGroupItems,{...itemsProps,children})]})}import{c as _c8}from"react/compiler-runtime";import{jsx as jsx11}from"react/jsx-runtime";import{AlertCircle}from"lucide-react";import{InputErrorText}from"@qualcomm-ui/react/input";import{useRadioGroupErrorText}from"@qualcomm-ui/react-core/radio";import{mergeProps as mergeProps9}from"@qualcomm-ui/utils/merge-props";function RadioGroupErrorText(t0){let $=_c8(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useRadioGroupErrorText(t1),qdsContext=useQdsRadioContext(),mergedProps=mergeProps9(contextProps,qdsContext.getGroupErrorTextBindings(),props);return jsx11(InputErrorText,{icon:AlertCircle,...mergedProps,children})}import{c as _c9}from"react/compiler-runtime";import{jsx as jsx12}from"react/jsx-runtime";import{InputHint as InputHint2}from"@qualcomm-ui/react/input";import{useRadioGroupHint}from"@qualcomm-ui/react-core/radio";import{mergeProps as mergeProps10}from"@qualcomm-ui/utils/merge-props";function RadioGroupHint(t0){let $=_c9(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useRadioGroupHint(t1),qdsContext=useQdsRadioContext(),mergedProps=mergeProps10(contextProps,qdsContext.getGroupHintBindings(),props);return jsx12(InputHint2,{...mergedProps,children})}var RadioGroup2=RadioGroup;RadioGroup2.RadioContext=RadioContext;RadioGroup2.ErrorText=RadioGroupErrorText;RadioGroup2.Hint=RadioGroupHint;RadioGroup2.Items=RadioGroupItems;RadioGroup2.Label=RadioGroupLabel;RadioGroup2.Root=RadioGroupRoot;var Radio2=Radio;Radio2.Control=RadioControl;Radio2.HiddenInput=RadioHiddenInput;Radio2.Hint=RadioHint;Radio2.Label=RadioLabel;Radio2.Root=RadioRoot;export{Radio2 as Radio,RadioGroup2 as RadioGroup};
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/radio/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/radio/radio.tsx", "../../src/radio/radio-control.tsx", "../../src/radio/qds-radio-context.ts", "../../src/radio/radio-hidden-input.tsx", "../../src/radio/radio-label.tsx", "../../src/radio/radio-root.tsx", "../../src/radio/radio-group/radio-context.tsx", "../../src/radio/radio-group/radio-group.tsx", "../../src/radio/radio-group/radio-group-items.tsx", "../../src/radio/radio-group/radio-group-label.tsx", "../../src/radio/radio-group/radio-group-root.tsx", "../../src/radio/radio-group/radio-group-error-text.tsx", "../../src/radio/radio-group/index.ts", "../../src/radio/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { RadioControl } from \"./radio-control\";\nimport { RadioHiddenInput } from \"./radio-hidden-input\";\nimport { RadioLabel } from \"./radio-label\";\nimport { RadioRoot } from \"./radio-root\";\nexport function Radio({\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n controlProps,\n hiddenInputProps: hiddenInputPropsProp,\n label,\n labelProps,\n ...props\n}) {\n const labelContent = label || labelProps?.children;\n const hiddenInputProps = {\n ...hiddenInputPropsProp\n };\n if (ariaLabel !== void 0) {\n hiddenInputProps[\"aria-label\"] = ariaLabel;\n }\n if (ariaLabelledBy !== void 0) {\n hiddenInputProps[\"aria-labelledby\"] = ariaLabelledBy;\n }\n return /* @__PURE__ */jsxs(RadioRoot, {\n ...props,\n children: [/* @__PURE__ */jsx(RadioHiddenInput, {\n ...hiddenInputProps\n }), /* @__PURE__ */jsx(RadioControl, {\n ...controlProps\n }), labelContent ? /* @__PURE__ */jsx(RadioLabel, {\n ...labelProps,\n children: labelContent\n }) : null]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { useRadioItemControl } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioControl(t0) {\n const {\n ...props\n } = t0;\n const contextProps = useRadioItemControl();\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getItemControlBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsRadioContextProvider, useQdsRadioContext] = createGuardedContext({\n hookName: \"useQdsRadioContext\",\n providerName: \"<QdsRadioContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useRadioItemHiddenInput } from \"@qualcomm-ui/react-core/radio\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioHiddenInput(t0) {\n const $ = _c(2);\n const {\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioItemHiddenInput(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getItemHiddenInputBindings(), props);\n return jsx(\"input\", {\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useRadioItemLabel } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioLabel(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioItemLabel(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getItemLabelBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsRadioApi } from \"@qualcomm-ui/qds-core/radio\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { RadioItemContextProvider, useRadioItem } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsRadioContextProvider, useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioRoot(t0) {\n const $ = _c(6);\n const {\n children,\n disabled,\n id,\n size,\n value,\n ...props\n } = t0;\n let t1;\n if ($[0] !== disabled || $[1] !== id || $[2] !== value) {\n t1 = {\n disabled,\n id,\n value\n };\n $[0] = disabled;\n $[1] = id;\n $[2] = value;\n $[3] = t1;\n } else {\n t1 = $[3];\n }\n const {\n bindings,\n itemContext\n } = useRadioItem(t1);\n const parentContext = useQdsRadioContext(false);\n const t2 = size || parentContext.size;\n let t3;\n if ($[4] !== t2) {\n t3 = createQdsRadioApi({\n size: t2\n }, normalizeProps);\n $[4] = t2;\n $[5] = t3;\n } else {\n t3 = $[5];\n }\n const qdsContext = t3;\n const mergedProps = mergeProps(bindings, qdsContext.getItemBindings(), props);\n return jsx(QdsRadioContextProvider, {\n value: qdsContext,\n children: jsx(RadioItemContextProvider, {\n value: itemContext,\n children: jsx(PolymorphicElement, {\n as: \"label\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useRadioContext } from \"@qualcomm-ui/react-core/radio\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nexport function RadioContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const context = useRadioContext();\n let t1;\n if ($[0] !== children || $[1] !== context) {\n t1 = renderProp(children, context);\n $[0] = children;\n $[1] = context;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n}", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { RadioGroupItems } from \"./radio-group-items\";\nimport { RadioGroupLabel } from \"./radio-group-label\";\nimport { RadioGroupRoot } from \"./radio-group-root\";\nexport function RadioGroup({\n children,\n itemsProps,\n label,\n labelProps,\n ...props\n}) {\n const labelContent = label || labelProps?.children;\n return /* @__PURE__ */jsxs(RadioGroupRoot, {\n ...props,\n children: [labelContent ? /* @__PURE__ */jsx(RadioGroupLabel, {\n ...labelProps,\n children: labelContent\n }) : null, /* @__PURE__ */jsx(RadioGroupItems, {\n ...itemsProps,\n children\n })]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { useRadioGroupItems } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"../qds-radio-context\";\nexport function RadioGroupItems(t0) {\n const {\n children,\n ...props\n } = t0;\n const contextProps = useRadioGroupItems();\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getGroupItemsBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useRadioGroupLabel } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"../qds-radio-context\";\nexport function RadioGroupLabel(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioGroupLabel(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getGroupLabelBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { splitRadioProps } from \"@qualcomm-ui/core/radio\";\nimport { createQdsRadioApi } from \"@qualcomm-ui/qds-core/radio\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { RadioContextProvider, useRadio } from \"@qualcomm-ui/react-core/radio\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsRadioContextProvider } from \"../qds-radio-context\";\nexport function RadioGroupRoot(t0) {\n const $ = _c(3);\n const {\n children,\n id,\n indented,\n size,\n ...props\n } = t0;\n const [radioProps, localProps] = splitRadioProps(props);\n const context = useRadio(radioProps);\n let t1;\n if ($[0] !== indented || $[1] !== size) {\n t1 = createQdsRadioApi({\n indented,\n size\n }, normalizeProps);\n $[0] = indented;\n $[1] = size;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n const qdsContext = t1;\n const mergedProps = mergeProps(context.getGroupBindings({\n id: useControlledId(id)\n }), qdsContext.getGroupBindings(), localProps);\n return jsx(QdsRadioContextProvider, {\n value: qdsContext,\n children: jsx(RadioContextProvider, {\n value: context,\n children: jsx(PolymorphicElement, {\n as: \"fieldset\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { AlertCircle } from \"lucide-react\";\nimport { InputErrorText } from \"@qualcomm-ui/react/input\";\nimport { useRadioGroupErrorText } from \"@qualcomm-ui/react-core/radio\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"../qds-radio-context\";\nexport function RadioGroupErrorText(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioGroupErrorText(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getErrorTextBindings(), props);\n return jsx(InputErrorText, {\n icon: AlertCircle,\n ...mergedProps,\n children\n });\n}", "import { RadioContext } from \"./radio-context\";\nimport { RadioGroup as SimpleRadioGroup } from \"./radio-group\";\nimport { RadioGroupErrorText } from \"./radio-group-error-text\";\nimport { RadioGroupItems } from \"./radio-group-items\";\nimport { RadioGroupLabel } from \"./radio-group-label\";\nimport { RadioGroupRoot } from \"./radio-group-root\";\nexport const RadioGroup = SimpleRadioGroup;\nRadioGroup.RadioContext = RadioContext;\nRadioGroup.ErrorText = RadioGroupErrorText;\nRadioGroup.Items = RadioGroupItems;\nRadioGroup.Label = RadioGroupLabel;\nRadioGroup.Root = RadioGroupRoot;", "import { Radio as SimpleRadio } from \"./radio\";\nimport { RadioControl } from \"./radio-control\";\nimport { RadioHiddenInput } from \"./radio-hidden-input\";\nimport { RadioLabel } from \"./radio-label\";\nimport { RadioRoot } from \"./radio-root\";\nexport * from \"./radio-group\";\nexport const Radio = SimpleRadio;\nRadio.Control = RadioControl;\nRadio.HiddenInput = RadioHiddenInput;\nRadio.Label = RadioLabel;\nRadio.Root = RadioRoot;"],
|
|
5
|
-
"mappings": ";AAAA,OAAS,OAAAA,KAAK,SAAY,oBCA1B,OAAS,QAAW,oBACpB,OAAS,wBAA2B,gCACpC,OAAS,uBAA0B,iCACnC,OAAS,eAAkB,iCCH3B,OAAS,yBAA4B,kCAC9B,GAAM,CAAC,wBAAyB,kBAAkB,EAAI,qBAAqB,CAChF,SAAU,qBACV,aAAc,4BACd,OAAQ,EACV,CAAC,EDAM,SAAS,aAAa,GAAI,CAC/B,GAAM,CACJ,GAAG,KACL,EAAI,GACE,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AAyB,8BAClC,OAAS,mBAAsB,kCAC/B,OAAS,yBAA0B,iBAAoB,gCACvD,OAAS,sBAAAC,wBAA0B,iCACnC,OAAS,cAAAC,gBAAkB,iCAEpB,SAAS,UAAU,GAAI,CAC5B,IAAM,EAAIC,IAAG,CAAC,EACR,CACJ,SACA,SACA,GACA,KACA,MACA,GAAG,KACL,EAAI,GACA,GACA,EAAE,CAAC,IAAM,UAAY,EAAE,CAAC,IAAM,IAAM,EAAE,CAAC,IAAM,OAC/C,GAAK,CACH,SACA,GACA,KACF,EACA,EAAE,CAAC,EAAI,SACP,EAAE,CAAC,EAAI,GACP,EAAE,CAAC,EAAI,MACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEV,GAAM,CACJ,SACA,WACF,EAAI,aAAa,EAAE,EACb,cAAgB,mBAAmB,EAAK,EACxC,GAAK,MAAQ,cAAc,KAC7B,GACA,EAAE,CAAC,IAAM,IACX,GAAK,kBAAkB,CACrB,KAAM,EACR,EAAG,cAAc,EACjB,EAAE,CAAC,EAAI,GACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEV,IAAM,WAAa,GACb,YAAcC,YAAW,SAAU,WAAW,gBAAgB,EAAG,KAAK,EAC5E,OAAOC,KAAI,wBAAyB,CAClC,MAAO,WACP,SAAUA,KAAI,yBAA0B,CACtC,MAAO,YACP,SAAUA,KAAIC,oBAAoB,CAChC,GAAI,QACJ,GAAG,YACH,QACF,CAAC,CACH,CAAC,CACH,CAAC,CACH,
|
|
6
|
-
"names": ["jsx", "jsx", "mergeProps", "mergeProps", "jsx", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "jsx", "_c", "jsx", "jsxs", "jsx", "PolymorphicElement", "mergeProps", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "createQdsRadioApi", "normalizeProps", "PolymorphicElement", "mergeProps", "_c", "createQdsRadioApi", "normalizeProps", "mergeProps", "jsx", "PolymorphicElement", "jsxs", "jsx", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "RadioGroup", "Radio"]
|
|
3
|
+
"sources": ["../../src/radio/radio.tsx", "../../src/radio/radio-control.tsx", "../../src/radio/qds-radio-context.ts", "../../src/radio/radio-hidden-input.tsx", "../../src/radio/radio-hint.tsx", "../../src/radio/radio-label.tsx", "../../src/radio/radio-root.tsx", "../../src/radio/radio-group/radio-context.tsx", "../../src/radio/radio-group/radio-group.tsx", "../../src/radio/radio-group/radio-group-items.tsx", "../../src/radio/radio-group/radio-group-label.tsx", "../../src/radio/radio-group/radio-group-root.tsx", "../../src/radio/radio-group/radio-group-error-text.tsx", "../../src/radio/radio-group/radio-group-hint.tsx", "../../src/radio/radio-group/index.ts", "../../src/radio/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { RadioControl } from \"./radio-control\";\nimport { RadioHiddenInput } from \"./radio-hidden-input\";\nimport { RadioHint } from \"./radio-hint\";\nimport { RadioLabel } from \"./radio-label\";\nimport { RadioRoot } from \"./radio-root\";\nexport function Radio({\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n controlProps,\n hiddenInputProps: hiddenInputPropsProp,\n hint,\n hintProps,\n label,\n labelProps,\n ...props\n}) {\n const labelContent = label || labelProps?.children;\n const hintContent = hint || hintProps?.children;\n const hiddenInputProps = {\n ...hiddenInputPropsProp\n };\n if (ariaLabel !== void 0) {\n hiddenInputProps[\"aria-label\"] = ariaLabel;\n }\n if (ariaLabelledBy !== void 0) {\n hiddenInputProps[\"aria-labelledby\"] = ariaLabelledBy;\n }\n return /* @__PURE__ */jsxs(RadioRoot, {\n ...props,\n children: [/* @__PURE__ */jsx(RadioHiddenInput, {\n ...hiddenInputProps\n }), /* @__PURE__ */jsx(RadioControl, {\n ...controlProps\n }), labelContent ? /* @__PURE__ */jsx(RadioLabel, {\n ...labelProps,\n children: labelContent\n }) : null, hintContent ? /* @__PURE__ */jsx(RadioHint, {\n ...hintProps,\n children: hintContent\n }) : null]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { useRadioItemControl } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioControl(t0) {\n const {\n ...props\n } = t0;\n const contextProps = useRadioItemControl();\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getItemControlBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsRadioContextProvider, useQdsRadioContext] = createGuardedContext({\n hookName: \"useQdsRadioContext\",\n providerName: \"<QdsRadioContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useRadioItemHiddenInput } from \"@qualcomm-ui/react-core/radio\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioHiddenInput(t0) {\n const $ = _c(2);\n const {\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioItemHiddenInput(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getItemHiddenInputBindings(), props);\n return jsx(\"input\", {\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { InputHint } from \"@qualcomm-ui/react/input\";\nimport { useRadioItemHint } from \"@qualcomm-ui/react-core/radio\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioHint(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioItemHint(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getItemHintBindings(), props);\n return jsx(InputHint, {\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useRadioItemLabel } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioLabel(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioItemLabel(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getItemLabelBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsRadioApi } from \"@qualcomm-ui/qds-core/radio\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { RadioItemContextProvider, useRadioItem } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsRadioContextProvider, useQdsRadioContext } from \"./qds-radio-context\";\nexport function RadioRoot(t0) {\n const $ = _c(6);\n const {\n children,\n disabled,\n id,\n size,\n value,\n ...props\n } = t0;\n let t1;\n if ($[0] !== disabled || $[1] !== id || $[2] !== value) {\n t1 = {\n disabled,\n id,\n value\n };\n $[0] = disabled;\n $[1] = id;\n $[2] = value;\n $[3] = t1;\n } else {\n t1 = $[3];\n }\n const {\n bindings,\n itemContext\n } = useRadioItem(t1);\n const parentContext = useQdsRadioContext(false);\n const t2 = size || parentContext.size;\n let t3;\n if ($[4] !== t2) {\n t3 = createQdsRadioApi({\n size: t2\n }, normalizeProps);\n $[4] = t2;\n $[5] = t3;\n } else {\n t3 = $[5];\n }\n const qdsContext = t3;\n const mergedProps = mergeProps(bindings, qdsContext.getItemBindings(), props);\n return jsx(QdsRadioContextProvider, {\n value: qdsContext,\n children: jsx(RadioItemContextProvider, {\n value: itemContext,\n children: jsx(PolymorphicElement, {\n as: \"label\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { useRadioContext } from \"@qualcomm-ui/react-core/radio\";\nimport { renderProp } from \"@qualcomm-ui/react-core/system\";\nexport function RadioContext(t0) {\n const $ = _c(3);\n const {\n children\n } = t0;\n const context = useRadioContext();\n let t1;\n if ($[0] !== children || $[1] !== context) {\n t1 = renderProp(children, context);\n $[0] = children;\n $[1] = context;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n return t1;\n}", "import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { RadioGroupItems } from \"./radio-group-items\";\nimport { RadioGroupLabel } from \"./radio-group-label\";\nimport { RadioGroupRoot } from \"./radio-group-root\";\nexport function RadioGroup({\n children,\n itemsProps,\n label,\n labelProps,\n ...props\n}) {\n const labelContent = label || labelProps?.children;\n return /* @__PURE__ */jsxs(RadioGroupRoot, {\n ...props,\n children: [labelContent ? /* @__PURE__ */jsx(RadioGroupLabel, {\n ...labelProps,\n children: labelContent\n }) : null, /* @__PURE__ */jsx(RadioGroupItems, {\n ...itemsProps,\n children\n })]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { useRadioGroupItems } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"../qds-radio-context\";\nexport function RadioGroupItems(t0) {\n const {\n children,\n ...props\n } = t0;\n const contextProps = useRadioGroupItems();\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getGroupItemsBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useRadioGroupLabel } from \"@qualcomm-ui/react-core/radio\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"../qds-radio-context\";\nexport function RadioGroupLabel(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioGroupLabel(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getGroupLabelBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"div\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { splitRadioProps } from \"@qualcomm-ui/core/radio\";\nimport { createQdsRadioApi } from \"@qualcomm-ui/qds-core/radio\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { RadioContextProvider, useRadio } from \"@qualcomm-ui/react-core/radio\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsRadioContextProvider } from \"../qds-radio-context\";\nexport function RadioGroupRoot(t0) {\n const $ = _c(3);\n const {\n children,\n id,\n indented,\n size,\n ...props\n } = t0;\n const [radioProps, localProps] = splitRadioProps(props);\n const context = useRadio(radioProps);\n let t1;\n if ($[0] !== indented || $[1] !== size) {\n t1 = createQdsRadioApi({\n indented,\n size\n }, normalizeProps);\n $[0] = indented;\n $[1] = size;\n $[2] = t1;\n } else {\n t1 = $[2];\n }\n const qdsContext = t1;\n const mergedProps = mergeProps(context.getGroupBindings({\n id: useControlledId(id)\n }), qdsContext.getGroupBindings(), localProps);\n return jsx(QdsRadioContextProvider, {\n value: qdsContext,\n children: jsx(RadioContextProvider, {\n value: context,\n children: jsx(PolymorphicElement, {\n as: \"fieldset\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { AlertCircle } from \"lucide-react\";\nimport { InputErrorText } from \"@qualcomm-ui/react/input\";\nimport { useRadioGroupErrorText } from \"@qualcomm-ui/react-core/radio\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"../qds-radio-context\";\nexport function RadioGroupErrorText(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioGroupErrorText(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getGroupErrorTextBindings(), props);\n return jsx(InputErrorText, {\n icon: AlertCircle,\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { InputHint } from \"@qualcomm-ui/react/input\";\nimport { useRadioGroupHint } from \"@qualcomm-ui/react-core/radio\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsRadioContext } from \"../qds-radio-context\";\nexport function RadioGroupHint(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useRadioGroupHint(t1);\n const qdsContext = useQdsRadioContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getGroupHintBindings(), props);\n return jsx(InputHint, {\n ...mergedProps,\n children\n });\n}", "import { RadioContext } from \"./radio-context\";\nimport { RadioGroup as SimpleRadioGroup } from \"./radio-group\";\nimport { RadioGroupErrorText } from \"./radio-group-error-text\";\nimport { RadioGroupHint } from \"./radio-group-hint\";\nimport { RadioGroupItems } from \"./radio-group-items\";\nimport { RadioGroupLabel } from \"./radio-group-label\";\nimport { RadioGroupRoot } from \"./radio-group-root\";\nexport const RadioGroup = SimpleRadioGroup;\nRadioGroup.RadioContext = RadioContext;\nRadioGroup.ErrorText = RadioGroupErrorText;\nRadioGroup.Hint = RadioGroupHint;\nRadioGroup.Items = RadioGroupItems;\nRadioGroup.Label = RadioGroupLabel;\nRadioGroup.Root = RadioGroupRoot;", "import { Radio as SimpleRadio } from \"./radio\";\nimport { RadioControl } from \"./radio-control\";\nimport { RadioHiddenInput } from \"./radio-hidden-input\";\nimport { RadioHint } from \"./radio-hint\";\nimport { RadioLabel } from \"./radio-label\";\nimport { RadioRoot } from \"./radio-root\";\nexport * from \"./radio-group\";\nexport const Radio = SimpleRadio;\nRadio.Control = RadioControl;\nRadio.HiddenInput = RadioHiddenInput;\nRadio.Hint = RadioHint;\nRadio.Label = RadioLabel;\nRadio.Root = RadioRoot;"],
|
|
5
|
+
"mappings": ";AAAA,OAAS,OAAAA,KAAK,SAAY,oBCA1B,OAAS,QAAW,oBACpB,OAAS,wBAA2B,gCACpC,OAAS,uBAA0B,iCACnC,OAAS,eAAkB,iCCH3B,OAA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A,EAAE,CAAC,IAAM,IACX,GAAK,CACH,EACF,EACA,EAAE,CAAC,EAAI,GACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEV,IAAM,aAAe,uBAAuB,EAAE,EACxC,WAAa,mBAAmB,EAChC,YAAcC,YAAW,aAAc,WAAW,0BAA0B,EAAG,KAAK,EAC1F,OAAOC,MAAI,eAAgB,CACzB,KAAM,YACN,GAAG,YACH,QACF,CAAC,CACH,CChCA,OAAS,KAAKC,QAAU,yBACxB,OAAS,OAAAC,UAAW,oBACpB,OAAS,aAAAC,eAAiB,2BAC1B,OAAS,sBAAyB,gCAClC,OAAS,cAAAC,iBAAkB,iCAEpB,SAAS,eAAe,GAAI,CACjC,IAAM,EAAIC,IAAG,CAAC,EACR,CACJ,SACA,GACA,GAAG,KACL,EAAI,GACA,GACA,EAAE,CAAC,IAAM,IACX,GAAK,CACH,EACF,EACA,EAAE,CAAC,EAAI,GACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEV,IAAM,aAAe,kBAAkB,EAAE,EACnC,WAAa,mBAAmB,EAChC,YAAcC,aAAW,aAAc,WAAW,qBAAqB,EAAG,KAAK,EACrF,OAAOC,MAAIC,WAAW,CACpB,GAAG,YACH,QACF,CAAC,CACH,CCvBO,IAAMC,YAAa,WAC1BA,YAAW,aAAe,aAC1BA,YAAW,UAAY,oBACvBA,YAAW,KAAO,eAClBA,YAAW,MAAQ,gBACnBA,YAAW,MAAQ,gBACnBA,YAAW,KAAO,eCNX,IAAMC,OAAQ,MACrBA,OAAM,QAAU,aAChBA,OAAM,YAAc,iBACpBA,OAAM,KAAO,UACbA,OAAM,MAAQ,WACdA,OAAM,KAAO",
|
|
6
|
+
"names": ["jsx", "jsx", "mergeProps", "mergeProps", "jsx", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "jsx", "_c", "jsx", "jsxs", "jsx", "PolymorphicElement", "mergeProps", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "createQdsRadioApi", "normalizeProps", "PolymorphicElement", "mergeProps", "_c", "createQdsRadioApi", "normalizeProps", "mergeProps", "jsx", "PolymorphicElement", "jsxs", "jsx", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "InputHint", "mergeProps", "_c", "mergeProps", "jsx", "InputHint", "RadioGroup", "Radio"]
|
|
7
7
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { RadioContext, type RadioContextProps } from "./radio-context";
|
|
2
2
|
import { RadioGroup as SimpleRadioGroup } from "./radio-group";
|
|
3
3
|
import { RadioGroupErrorText, type RadioGroupErrorTextProps } from "./radio-group-error-text";
|
|
4
|
+
import { RadioGroupHint, type RadioGroupHintProps } from "./radio-group-hint";
|
|
4
5
|
import { RadioGroupItems, type RadioGroupItemsProps } from "./radio-group-items";
|
|
5
6
|
import { RadioGroupLabel, type RadioGroupLabelProps } from "./radio-group-label";
|
|
6
7
|
import { RadioGroupRoot, type RadioGroupRootProps } from "./radio-group-root";
|
|
7
|
-
export type { RadioContextProps, RadioGroupErrorTextProps, RadioGroupItemsProps, RadioGroupLabelProps, RadioGroupRootProps, };
|
|
8
|
+
export type { RadioContextProps, RadioGroupErrorTextProps, RadioGroupHintProps, RadioGroupItemsProps, RadioGroupLabelProps, RadioGroupRootProps, };
|
|
8
9
|
type RadioGroupComponent = typeof SimpleRadioGroup & {
|
|
9
10
|
ErrorText: typeof RadioGroupErrorText;
|
|
11
|
+
Hint: typeof RadioGroupHint;
|
|
10
12
|
Items: typeof RadioGroupItems;
|
|
11
13
|
Label: typeof RadioGroupLabel;
|
|
12
14
|
RadioContext: typeof RadioContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radio/radio-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAC,MAAM,eAAe,CAAA;AAC5D,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAC,cAAc,EAAE,KAAK,mBAAmB,EAAC,MAAM,oBAAoB,CAAA;AAE3E,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,GACpB,CAAA;AAED,KAAK,mBAAmB,GAAG,OAAO,gBAAgB,GAAG;IACnD,SAAS,EAAE,OAAO,mBAAmB,CAAA;IACrC,KAAK,EAAE,OAAO,eAAe,CAAA;IAC7B,KAAK,EAAE,OAAO,eAAe,CAAA;IAC7B,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,IAAI,EAAE,OAAO,cAAc,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,mBACgB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/radio/radio-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,KAAK,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAAC,UAAU,IAAI,gBAAgB,EAAC,MAAM,eAAe,CAAA;AAC5D,OAAO,EACL,mBAAmB,EACnB,KAAK,wBAAwB,EAC9B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAC,cAAc,EAAE,KAAK,mBAAmB,EAAC,MAAM,oBAAoB,CAAA;AAC3E,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAAC,cAAc,EAAE,KAAK,mBAAmB,EAAC,MAAM,oBAAoB,CAAA;AAE3E,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,GACpB,CAAA;AAED,KAAK,mBAAmB,GAAG,OAAO,gBAAgB,GAAG;IACnD,SAAS,EAAE,OAAO,mBAAmB,CAAA;IACrC,IAAI,EAAE,OAAO,cAAc,CAAA;IAC3B,KAAK,EAAE,OAAO,eAAe,CAAA;IAC7B,KAAK,EAAE,OAAO,eAAe,CAAA;IAC7B,YAAY,EAAE,OAAO,YAAY,CAAA;IACjC,IAAI,EAAE,OAAO,cAAc,CAAA;CAC5B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,mBACgB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { type InputHintProps } from "@qualcomm-ui/react/input";
|
|
3
|
+
export interface RadioGroupHintProps extends InputHintProps {
|
|
4
|
+
/**
|
|
5
|
+
* React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare function RadioGroupHint({ children, id, ...props }: RadioGroupHintProps): ReactElement;
|
|
10
|
+
//# sourceMappingURL=radio-group-hint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group-hint.d.ts","sourceRoot":"","sources":["../../../src/radio/radio-group/radio-group-hint.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EAAY,KAAK,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAMvE,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,mBAAmB,GAAG,YAAY,CAUpC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { type InputHintProps } from "@qualcomm-ui/react/input";
|
|
3
|
+
import type { IdProp } from "@qualcomm-ui/react-core/system";
|
|
4
|
+
export interface RadioHintProps extends IdProp, InputHintProps {
|
|
5
|
+
/**
|
|
6
|
+
* React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
|
|
7
|
+
*/
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A help message displayed below the radio. Renders a `<div>` element by
|
|
12
|
+
* default.
|
|
13
|
+
*/
|
|
14
|
+
export declare function RadioHint({ children, id, ...props }: RadioHintProps): ReactElement;
|
|
15
|
+
//# sourceMappingURL=radio-hint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-hint.d.ts","sourceRoot":"","sources":["../../src/radio/radio-hint.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EAAY,KAAK,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAEvE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAA;AAK1D,MAAM,WAAW,cAAe,SAAQ,MAAM,EAAE,cAAc;IAC5D;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,cAAc,GAAG,YAAY,CAU/B"}
|
package/dist/radio/radio.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from "react";
|
|
2
2
|
import { type RadioControlProps } from "./radio-control";
|
|
3
3
|
import { type RadioHiddenInputProps } from "./radio-hidden-input";
|
|
4
|
+
import { type RadioHintProps } from "./radio-hint";
|
|
4
5
|
import { type RadioLabelProps } from "./radio-label";
|
|
5
6
|
import { type RadioRootProps } from "./radio-root";
|
|
6
7
|
export interface RadioProps extends RadioRootProps {
|
|
@@ -29,6 +30,15 @@ export interface RadioProps extends RadioRootProps {
|
|
|
29
30
|
* @inheritDoc
|
|
30
31
|
*/
|
|
31
32
|
hiddenInputProps?: RadioHiddenInputProps;
|
|
33
|
+
/**
|
|
34
|
+
* Optional hint text that describes the element.
|
|
35
|
+
*/
|
|
36
|
+
hint?: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* Props applied to the hint element.
|
|
39
|
+
* @inheritDoc
|
|
40
|
+
*/
|
|
41
|
+
hintProps?: RadioHintProps;
|
|
32
42
|
/**
|
|
33
43
|
* Optional label describing the element. Recommended. This element is
|
|
34
44
|
* automatically associated with the component's input element for
|
|
@@ -41,5 +51,5 @@ export interface RadioProps extends RadioRootProps {
|
|
|
41
51
|
*/
|
|
42
52
|
labelProps?: RadioLabelProps;
|
|
43
53
|
}
|
|
44
|
-
export declare function Radio({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, controlProps, hiddenInputProps: hiddenInputPropsProp, label, labelProps, ...props }: RadioProps): ReactElement;
|
|
54
|
+
export declare function Radio({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, controlProps, hiddenInputProps: hiddenInputPropsProp, hint, hintProps, label, labelProps, ...props }: RadioProps): ReactElement;
|
|
45
55
|
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EAAe,KAAK,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAa,KAAK,eAAe,EAAC,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAY,KAAK,cAAc,EAAC,MAAM,cAAc,CAAA;AAE3D,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAEjC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAA;IAEhB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAEhC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAA;IAExC;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,eAAe,CAAA;CAC7B;AAED,wBAAgB,KAAK,CAAC,EACpB,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,YAAY,EACZ,gBAAgB,EAAE,oBAAoB,EACtC,KAAK,EACL,UAAU,EACV,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/radio/radio.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EAAe,KAAK,iBAAiB,EAAC,MAAM,iBAAiB,CAAA;AACpE,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAY,KAAK,cAAc,EAAC,MAAM,cAAc,CAAA;AAC3D,OAAO,EAAa,KAAK,eAAe,EAAC,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAY,KAAK,cAAc,EAAC,MAAM,cAAc,CAAA;AAE3D,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAEjC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAA;IAEhB;;;OAGG;IACH,YAAY,CAAC,EAAE,iBAAiB,CAAA;IAEhC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,qBAAqB,CAAA;IAExC;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAA;IAEhB;;;OAGG;IACH,SAAS,CAAC,EAAE,cAAc,CAAA;IAE1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;;OAGG;IACH,UAAU,CAAC,EAAE,eAAe,CAAA;CAC7B;AAED,wBAAgB,KAAK,CAAC,EACpB,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,YAAY,EACZ,gBAAgB,EAAE,oBAAoB,EACtC,IAAI,EACJ,SAAS,EACT,KAAK,EACL,UAAU,EACV,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,YAAY,CAyB3B"}
|
package/dist/switch/index.d.ts
CHANGED
|
@@ -2,15 +2,17 @@ import { Switch as SimpleSwitch } from "./switch";
|
|
|
2
2
|
import { SwitchControl, type SwitchControlProps } from "./switch-control";
|
|
3
3
|
import { SwitchErrorText, type SwitchErrorTextProps } from "./switch-error-text";
|
|
4
4
|
import { SwitchHiddenInput, type SwitchHiddenInputProps } from "./switch-hidden-input";
|
|
5
|
+
import { SwitchHint, type SwitchHintProps } from "./switch-hint";
|
|
5
6
|
import { SwitchLabel, type SwitchLabelProps } from "./switch-label";
|
|
6
7
|
import { SwitchRoot, type SwitchRootProps } from "./switch-root";
|
|
7
8
|
import { SwitchThumb, type SwitchThumbProps } from "./switch-thumb";
|
|
8
9
|
export * from "./qds-switch-context";
|
|
9
|
-
export type { SwitchControlProps, SwitchErrorTextProps, SwitchHiddenInputProps, SwitchLabelProps, SwitchRootProps, SwitchThumbProps, };
|
|
10
|
+
export type { SwitchControlProps, SwitchErrorTextProps, SwitchHiddenInputProps, SwitchHintProps, SwitchLabelProps, SwitchRootProps, SwitchThumbProps, };
|
|
10
11
|
type SwitchComponent = typeof SimpleSwitch & {
|
|
11
12
|
Control: typeof SwitchControl;
|
|
12
13
|
ErrorText: typeof SwitchErrorText;
|
|
13
14
|
HiddenInput: typeof SwitchHiddenInput;
|
|
15
|
+
Hint: typeof SwitchHint;
|
|
14
16
|
Label: typeof SwitchLabel;
|
|
15
17
|
Root: typeof SwitchRoot;
|
|
16
18
|
Thumb: typeof SwitchThumb;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/switch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,IAAI,YAAY,EAAC,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAC,aAAa,EAAE,KAAK,kBAAkB,EAAC,MAAM,kBAAkB,CAAA;AACvE,OAAO,EAAC,eAAe,EAAE,KAAK,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAC,UAAU,EAAE,KAAK,eAAe,EAAC,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAC,WAAW,EAAE,KAAK,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AAEjE,cAAc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eAAe,GAAG,OAAO,YAAY,GAAG;IAC3C,OAAO,EAAE,OAAO,aAAa,CAAA;IAC7B,SAAS,EAAE,OAAO,eAAe,CAAA;IACjC,WAAW,EAAE,OAAO,iBAAiB,CAAA;IACrC,IAAI,EAAE,OAAO,UAAU,CAAA;IACvB,KAAK,EAAE,OAAO,WAAW,CAAA;IACzB,IAAI,EAAE,OAAO,UAAU,CAAA;IACvB,KAAK,EAAE,OAAO,WAAW,CAAA;CAC1B,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,eAAiD,CAAA"}
|
package/dist/switch/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as
|
|
2
|
+
import{jsx as jsx8,jsxs}from"react/jsx-runtime";import{useOptionalContentId}from"@qualcomm-ui/react-core/machine";import{useControlledId as useControlledId2}from"@qualcomm-ui/react-core/state";import{jsx as jsx2}from"react/jsx-runtime";import{useSwitchControl}from"@qualcomm-ui/react-core/switch";import{PolymorphicElement as PolymorphicElement2}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";import{createGuardedContext}from"@qualcomm-ui/react-core/context";var[QdsSwitchContextProvider,useQdsSwitchContext]=createGuardedContext({hookName:"useQdsSwitchContext",providerName:"<QdsSwitchContextProvider>",strict:!0});import{jsx}from"react/jsx-runtime";import{useSwitchThumb}from"@qualcomm-ui/react-core/switch";import{PolymorphicElement}from"@qualcomm-ui/react-core/system";import{mergeProps}from"@qualcomm-ui/utils/merge-props";function SwitchThumb(t0){let{children,...props}=t0,contextProps=useSwitchThumb(),qdsContext=useQdsSwitchContext(),mergedProps=mergeProps(contextProps,qdsContext.getThumbBindings(),props);return jsx(PolymorphicElement,{as:"span",...mergedProps,children})}function SwitchControl(t0){let{children:t1,...props}=t0,children=t1===void 0?jsx2(SwitchThumb,{}):t1,contextProps=useSwitchControl(),qdsContext=useQdsSwitchContext(),mergedProps=mergeProps2(contextProps,qdsContext.getControlBindings(),props);return jsx2(PolymorphicElement2,{as:"span",...mergedProps,children})}import{c as _c}from"react/compiler-runtime";import{jsx as jsx3}from"react/jsx-runtime";import{AlertCircle}from"lucide-react";import{InputErrorText}from"@qualcomm-ui/react/input";import{useSwitchErrorText}from"@qualcomm-ui/react-core/switch";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function SwitchErrorText(t0){let $=_c(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useSwitchErrorText(t1),qdsContext=useQdsSwitchContext(),mergedProps=mergeProps3(contextProps,qdsContext.getErrorTextBindings(),props);return jsx3(InputErrorText,{icon:AlertCircle,...mergedProps,children})}import{c as _c2}from"react/compiler-runtime";import{jsx as jsx4}from"react/jsx-runtime";import{useSwitchHiddenInput}from"@qualcomm-ui/react-core/switch";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function SwitchHiddenInput(t0){let $=_c2(2),{id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useSwitchHiddenInput(t1),qdsContext=useQdsSwitchContext(),mergedProps=mergeProps4(contextProps,qdsContext.getHiddenInputBindings(),props);return jsx4("input",{...mergedProps})}import{c as _c3}from"react/compiler-runtime";import{jsx as jsx5}from"react/jsx-runtime";import{InputHint}from"@qualcomm-ui/react/input";import{useSwitchHint}from"@qualcomm-ui/react-core/switch";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function SwitchHint(t0){let $=_c3(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useSwitchHint(t1),qdsContext=useQdsSwitchContext(),mergedProps=mergeProps5(contextProps,qdsContext.getHintBindings(),props);return jsx5(InputHint,{...mergedProps,children})}import{c as _c4}from"react/compiler-runtime";import{jsx as jsx6}from"react/jsx-runtime";import{useSwitchLabel}from"@qualcomm-ui/react-core/switch";import{PolymorphicElement as PolymorphicElement3}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function SwitchLabel(t0){let $=_c4(2),{children,id,...props}=t0,t1;$[0]!==id?(t1={id},$[0]=id,$[1]=t1):t1=$[1];let contextProps=useSwitchLabel(t1),qdsContext=useQdsSwitchContext(),mergedProps=mergeProps6(contextProps,qdsContext.getLabelBindings(),props);return jsx6(PolymorphicElement3,{as:"span",...mergedProps,children})}import{c as _c5}from"react/compiler-runtime";import{jsx as jsx7}from"react/jsx-runtime";import"react";import{splitSwitchProps}from"@qualcomm-ui/core/switch";import{createQdsSwitchApi}from"@qualcomm-ui/qds-core/switch";import{normalizeProps}from"@qualcomm-ui/react-core/machine";import{useControlledId}from"@qualcomm-ui/react-core/state";import{SwitchContextProvider,useSwitch}from"@qualcomm-ui/react-core/switch";import{PolymorphicElement as PolymorphicElement4}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function SwitchRoot(t0){let $=_c5(2),{children,id,size,...props}=t0,[switchProps,localProps]=splitSwitchProps(props),context=useSwitch(switchProps),t1;$[0]!==size?(t1=createQdsSwitchApi({size},normalizeProps),$[0]=size,$[1]=t1):t1=$[1];let qdsContext=t1,mergedProps=mergeProps7(context.getRootBindings({id:useControlledId(id)}),qdsContext.getRootBindings(),localProps);return jsx7(SwitchContextProvider,{value:context,children:jsx7(QdsSwitchContextProvider,{value:qdsContext,children:jsx7(PolymorphicElement4,{as:"label",...mergedProps,children})})})}function Switch(t0){let{"aria-label":ariaLabel,"aria-labelledby":ariaLabelledBy,controlProps,errorText,errorTextProps,hiddenInputProps:hiddenInputPropsProp,hint,hintProps,label,labelProps,thumbProps,...props}=t0,labelContent=label||labelProps?.children,errorTextContent=errorText||errorTextProps?.children,hintContent=hint||hintProps?.children,hiddenInputProps={...hiddenInputPropsProp};ariaLabel!==void 0&&(hiddenInputProps["aria-label"]=ariaLabel),ariaLabelledBy!==void 0&&(hiddenInputProps["aria-labelledby"]=ariaLabelledBy);let ids={errorText:useOptionalContentId(errorTextContent,errorTextProps),hiddenInput:useControlledId2(hiddenInputProps?.id),hint:useOptionalContentId(hintContent,hintProps),label:useOptionalContentId(labelContent,labelProps),root:useControlledId2(props.id),...props.ids};return jsxs(SwitchRoot,{...props,ids,children:[jsx8(SwitchHiddenInput,{...hiddenInputProps,id:ids.hiddenInput}),jsx8(SwitchControl,{...controlProps,children:jsx8(SwitchThumb,{...thumbProps})}),labelContent?jsx8(SwitchLabel,{...labelProps,id:ids.label,children:labelContent}):null,hintContent?jsx8(SwitchHint,{...hintProps,id:ids.hint,children:hintContent}):null,errorTextContent?jsx8(SwitchErrorText,{...errorTextProps,id:ids.errorText,children:errorTextContent}):null]})}var Switch2=Switch;Switch2.Control=SwitchControl;Switch2.ErrorText=SwitchErrorText;Switch2.HiddenInput=SwitchHiddenInput;Switch2.Hint=SwitchHint;Switch2.Label=SwitchLabel;Switch2.Root=SwitchRoot;Switch2.Thumb=SwitchThumb;export{QdsSwitchContextProvider,Switch2 as Switch,useQdsSwitchContext};
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/switch/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/switch/switch.tsx", "../../src/switch/switch-control.tsx", "../../src/switch/qds-switch-context.ts", "../../src/switch/switch-thumb.tsx", "../../src/switch/switch-error-text.tsx", "../../src/switch/switch-hidden-input.tsx", "../../src/switch/switch-label.tsx", "../../src/switch/switch-root.tsx", "../../src/switch/index.ts"],
|
|
4
|
-
"sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useOptionalContentId } from \"@qualcomm-ui/react-core/machine\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { SwitchControl } from \"./switch-control\";\nimport { SwitchErrorText } from \"./switch-error-text\";\nimport { SwitchHiddenInput } from \"./switch-hidden-input\";\nimport { SwitchLabel } from \"./switch-label\";\nimport { SwitchRoot } from \"./switch-root\";\nimport { SwitchThumb } from \"./switch-thumb\";\nexport function Switch(t0) {\n const {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n controlProps,\n errorText,\n errorTextProps,\n hiddenInputProps: hiddenInputPropsProp,\n label,\n labelProps,\n thumbProps,\n ...props\n } = t0;\n const labelContent = label || labelProps?.children;\n const errorTextContent = errorText || errorTextProps?.children;\n const hiddenInputProps = {\n ...hiddenInputPropsProp\n };\n if (ariaLabel !== void 0) {\n hiddenInputProps[\"aria-label\"] = ariaLabel;\n }\n if (ariaLabelledBy !== void 0) {\n hiddenInputProps[\"aria-labelledby\"] = ariaLabelledBy;\n }\n const ids = {\n errorText: useOptionalContentId(errorTextContent, errorTextProps),\n hiddenInput: useControlledId(hiddenInputProps?.id),\n label: useOptionalContentId(labelContent, labelProps),\n root: useControlledId(props.id),\n ...props.ids\n };\n return jsxs(SwitchRoot, {\n ...props,\n ids,\n children: [jsx(SwitchHiddenInput, {\n ...hiddenInputProps,\n id: ids.hiddenInput\n }), jsx(SwitchControl, {\n ...controlProps,\n children: jsx(SwitchThumb, {\n ...thumbProps\n })\n }), labelContent ? jsx(SwitchLabel, {\n ...labelProps,\n id: ids.label,\n children: labelContent\n }) : null, errorTextContent ? jsx(SwitchErrorText, {\n ...errorTextProps,\n id: ids.errorText,\n children: errorTextContent\n }) : null]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { useSwitchControl } from \"@qualcomm-ui/react-core/switch\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nimport { SwitchThumb } from \"./switch-thumb\";\nexport function SwitchControl(t0) {\n const {\n children: t1,\n ...props\n } = t0;\n const children = t1 === undefined ? jsx(SwitchThumb, {}) : t1;\n const contextProps = useSwitchControl();\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getControlBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsSwitchContextProvider, useQdsSwitchContext] = createGuardedContext({\n hookName: \"useQdsSwitchContext\",\n providerName: \"<QdsSwitchContextProvider>\",\n strict: true\n});", "import { jsx } from \"react/jsx-runtime\";\nimport { useSwitchThumb } from \"@qualcomm-ui/react-core/switch\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchThumb(t0) {\n const {\n children,\n ...props\n } = t0;\n const contextProps = useSwitchThumb();\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getThumbBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { AlertCircle } from \"lucide-react\";\nimport { InputErrorText } from \"@qualcomm-ui/react/input\";\nimport { useSwitchErrorText } from \"@qualcomm-ui/react-core/switch\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchErrorText(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useSwitchErrorText(t1);\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getErrorTextBindings(), props);\n return jsx(InputErrorText, {\n icon: AlertCircle,\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useSwitchHiddenInput } from \"@qualcomm-ui/react-core/switch\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchHiddenInput(t0) {\n const $ = _c(2);\n const {\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useSwitchHiddenInput(t1);\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getHiddenInputBindings(), props);\n return jsx(\"input\", {\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useSwitchLabel } from \"@qualcomm-ui/react-core/switch\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchLabel(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useSwitchLabel(t1);\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getLabelBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { splitSwitchProps } from \"@qualcomm-ui/core/switch\";\nimport { createQdsSwitchApi } from \"@qualcomm-ui/qds-core/switch\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { SwitchContextProvider, useSwitch } from \"@qualcomm-ui/react-core/switch\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsSwitchContextProvider } from \"./qds-switch-context\";\nexport function SwitchRoot(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n size,\n ...props\n } = t0;\n const [switchProps, localProps] = splitSwitchProps(props);\n const context = useSwitch(switchProps);\n let t1;\n if ($[0] !== size) {\n t1 = createQdsSwitchApi({\n size\n }, normalizeProps);\n $[0] = size;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const qdsContext = t1;\n const mergedProps = mergeProps(context.getRootBindings({\n id: useControlledId(id)\n }), qdsContext.getRootBindings(), localProps);\n return jsx(SwitchContextProvider, {\n value: context,\n children: jsx(QdsSwitchContextProvider, {\n value: qdsContext,\n children: jsx(PolymorphicElement, {\n as: \"label\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { Switch as SimpleSwitch } from \"./switch\";\nimport { SwitchControl } from \"./switch-control\";\nimport { SwitchErrorText } from \"./switch-error-text\";\nimport { SwitchHiddenInput } from \"./switch-hidden-input\";\nimport { SwitchLabel } from \"./switch-label\";\nimport { SwitchRoot } from \"./switch-root\";\nimport { SwitchThumb } from \"./switch-thumb\";\nexport * from \"./qds-switch-context\";\nexport const Switch = SimpleSwitch;\nSwitch.Control = SwitchControl;\nSwitch.ErrorText = SwitchErrorText;\nSwitch.HiddenInput = SwitchHiddenInput;\nSwitch.Label = SwitchLabel;\nSwitch.Root = SwitchRoot;\nSwitch.Thumb = SwitchThumb;"],
|
|
5
|
-
"mappings": ";AAAA,OAAS,OAAAA,KAAK,SAAY,oBAC1B,OAAS,yBAA4B,kCACrC,OAAS,mBAAAC,qBAAuB,gCCFhC,OAAS,OAAAC,SAAW,oBACpB,OAAS,qBAAwB,iCACjC,OAAS,sBAAAC,wBAA0B,iCACnC,OAAS,cAAAC,gBAAkB,iCCH3B,OAAS,yBAA4B,kCAC9B,GAAM,CAAC,yBAA0B,mBAAmB,EAAI,qBAAqB,CAClF,SAAU,sBACV,aAAc,6BACd,OAAQ,EACV,CAAC,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G,KACL,EAAI,GACE,CAAC,YAAa,UAAU,EAAI,iBAAiB,KAAK,EAClD,QAAU,UAAU,WAAW,EACjC,GACA,EAAE,CAAC,IAAM,MACX,GAAK,mBAAmB,CACtB,IACF,EAAG,cAAc,EACjB,EAAE,CAAC,EAAI,KACP,EAAE,CAAC,EAAI,IAEP,GAAK,EAAE,CAAC,EAEV,IAAM,WAAa,GACb,YAAcC,YAAW,QAAQ,gBAAgB,CACrD,GAAI,gBAAgB,EAAE,CACxB,CAAC,EAAG,WAAW,gBAAgB,EAAG,UAAU,EAC5C,OAAOC,KAAI,sBAAuB,CAChC,MAAO,QACP,SAAUA,KAAI,yBAA0B,CACtC,MAAO,WACP,SAAUA,KAAIC,oBAAoB,CAChC,GAAI,QACJ,GAAG,YACH,QACF,CAAC,CACH,CAAC,CACH,CAAC,CACH,
|
|
6
|
-
"names": ["jsx", "useControlledId", "jsx", "PolymorphicElement", "mergeProps", "jsx", "mergeProps", "PolymorphicElement", "jsx", "mergeProps", "mergeProps", "jsx", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "useControlledId", "jsx", "Switch"]
|
|
3
|
+
"sources": ["../../src/switch/switch.tsx", "../../src/switch/switch-control.tsx", "../../src/switch/qds-switch-context.ts", "../../src/switch/switch-thumb.tsx", "../../src/switch/switch-error-text.tsx", "../../src/switch/switch-hidden-input.tsx", "../../src/switch/switch-hint.tsx", "../../src/switch/switch-label.tsx", "../../src/switch/switch-root.tsx", "../../src/switch/index.ts"],
|
|
4
|
+
"sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { useOptionalContentId } from \"@qualcomm-ui/react-core/machine\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { SwitchControl } from \"./switch-control\";\nimport { SwitchErrorText } from \"./switch-error-text\";\nimport { SwitchHiddenInput } from \"./switch-hidden-input\";\nimport { SwitchHint } from \"./switch-hint\";\nimport { SwitchLabel } from \"./switch-label\";\nimport { SwitchRoot } from \"./switch-root\";\nimport { SwitchThumb } from \"./switch-thumb\";\nexport function Switch(t0) {\n const {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n controlProps,\n errorText,\n errorTextProps,\n hiddenInputProps: hiddenInputPropsProp,\n hint,\n hintProps,\n label,\n labelProps,\n thumbProps,\n ...props\n } = t0;\n const labelContent = label || labelProps?.children;\n const errorTextContent = errorText || errorTextProps?.children;\n const hintContent = hint || hintProps?.children;\n const hiddenInputProps = {\n ...hiddenInputPropsProp\n };\n if (ariaLabel !== void 0) {\n hiddenInputProps[\"aria-label\"] = ariaLabel;\n }\n if (ariaLabelledBy !== void 0) {\n hiddenInputProps[\"aria-labelledby\"] = ariaLabelledBy;\n }\n const ids = {\n errorText: useOptionalContentId(errorTextContent, errorTextProps),\n hiddenInput: useControlledId(hiddenInputProps?.id),\n hint: useOptionalContentId(hintContent, hintProps),\n label: useOptionalContentId(labelContent, labelProps),\n root: useControlledId(props.id),\n ...props.ids\n };\n return jsxs(SwitchRoot, {\n ...props,\n ids,\n children: [jsx(SwitchHiddenInput, {\n ...hiddenInputProps,\n id: ids.hiddenInput\n }), jsx(SwitchControl, {\n ...controlProps,\n children: jsx(SwitchThumb, {\n ...thumbProps\n })\n }), labelContent ? jsx(SwitchLabel, {\n ...labelProps,\n id: ids.label,\n children: labelContent\n }) : null, hintContent ? jsx(SwitchHint, {\n ...hintProps,\n id: ids.hint,\n children: hintContent\n }) : null, errorTextContent ? jsx(SwitchErrorText, {\n ...errorTextProps,\n id: ids.errorText,\n children: errorTextContent\n }) : null]\n });\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { useSwitchControl } from \"@qualcomm-ui/react-core/switch\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nimport { SwitchThumb } from \"./switch-thumb\";\nexport function SwitchControl(t0) {\n const {\n children: t1,\n ...props\n } = t0;\n const children = t1 === undefined ? jsx(SwitchThumb, {}) : t1;\n const contextProps = useSwitchControl();\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getControlBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsSwitchContextProvider, useQdsSwitchContext] = createGuardedContext({\n hookName: \"useQdsSwitchContext\",\n providerName: \"<QdsSwitchContextProvider>\",\n strict: true\n});", "import { jsx } from \"react/jsx-runtime\";\nimport { useSwitchThumb } from \"@qualcomm-ui/react-core/switch\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchThumb(t0) {\n const {\n children,\n ...props\n } = t0;\n const contextProps = useSwitchThumb();\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getThumbBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { AlertCircle } from \"lucide-react\";\nimport { InputErrorText } from \"@qualcomm-ui/react/input\";\nimport { useSwitchErrorText } from \"@qualcomm-ui/react-core/switch\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchErrorText(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useSwitchErrorText(t1);\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getErrorTextBindings(), props);\n return jsx(InputErrorText, {\n icon: AlertCircle,\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useSwitchHiddenInput } from \"@qualcomm-ui/react-core/switch\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchHiddenInput(t0) {\n const $ = _c(2);\n const {\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useSwitchHiddenInput(t1);\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getHiddenInputBindings(), props);\n return jsx(\"input\", {\n ...mergedProps\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { InputHint } from \"@qualcomm-ui/react/input\";\nimport { useSwitchHint } from \"@qualcomm-ui/react-core/switch\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchHint(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useSwitchHint(t1);\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getHintBindings(), props);\n return jsx(InputHint, {\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useSwitchLabel } from \"@qualcomm-ui/react-core/switch\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsSwitchContext } from \"./qds-switch-context\";\nexport function SwitchLabel(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n ...props\n } = t0;\n let t1;\n if ($[0] !== id) {\n t1 = {\n id\n };\n $[0] = id;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const contextProps = useSwitchLabel(t1);\n const qdsContext = useQdsSwitchContext();\n const mergedProps = mergeProps(contextProps, qdsContext.getLabelBindings(), props);\n return jsx(PolymorphicElement, {\n as: \"span\",\n ...mergedProps,\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { splitSwitchProps } from \"@qualcomm-ui/core/switch\";\nimport { createQdsSwitchApi } from \"@qualcomm-ui/qds-core/switch\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { useControlledId } from \"@qualcomm-ui/react-core/state\";\nimport { SwitchContextProvider, useSwitch } from \"@qualcomm-ui/react-core/switch\";\nimport { PolymorphicElement } from \"@qualcomm-ui/react-core/system\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsSwitchContextProvider } from \"./qds-switch-context\";\nexport function SwitchRoot(t0) {\n const $ = _c(2);\n const {\n children,\n id,\n size,\n ...props\n } = t0;\n const [switchProps, localProps] = splitSwitchProps(props);\n const context = useSwitch(switchProps);\n let t1;\n if ($[0] !== size) {\n t1 = createQdsSwitchApi({\n size\n }, normalizeProps);\n $[0] = size;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n const qdsContext = t1;\n const mergedProps = mergeProps(context.getRootBindings({\n id: useControlledId(id)\n }), qdsContext.getRootBindings(), localProps);\n return jsx(SwitchContextProvider, {\n value: context,\n children: jsx(QdsSwitchContextProvider, {\n value: qdsContext,\n children: jsx(PolymorphicElement, {\n as: \"label\",\n ...mergedProps,\n children\n })\n })\n });\n}", "import { Switch as SimpleSwitch } from \"./switch\";\nimport { SwitchControl } from \"./switch-control\";\nimport { SwitchErrorText } from \"./switch-error-text\";\nimport { SwitchHiddenInput } from \"./switch-hidden-input\";\nimport { SwitchHint } from \"./switch-hint\";\nimport { SwitchLabel } from \"./switch-label\";\nimport { SwitchRoot } from \"./switch-root\";\nimport { SwitchThumb } from \"./switch-thumb\";\nexport * from \"./qds-switch-context\";\nexport const Switch = SimpleSwitch;\nSwitch.Control = SwitchControl;\nSwitch.ErrorText = SwitchErrorText;\nSwitch.HiddenInput = SwitchHiddenInput;\nSwitch.Hint = SwitchHint;\nSwitch.Label = SwitchLabel;\nSwitch.Root = SwitchRoot;\nSwitch.Thumb = SwitchThumb;"],
|
|
5
|
+
"mappings": ";AAAA,OAAS,OAAAA,KAAK,SAAY,oBAC1B,OAAS,yBAA4B,kCACrC,OAAS,mBAAAC,qBAAuB,gCCFhC,OAAS,OAAAC,SAAW,oBACpB,OAAS,qBAAwB,iCACjC,OAAS,sBAAAC,wBAA0B,iCACnC,OAAS,cAAAC,gBAAkB,iCCH3B,OAAS,yBAA4B,kCAC9B,GAAM,CAAC,yBAA0B,mBAAmB,EAAI,qBAAqB,CAClF,SAAU,sBACV,aAAc,6BACd,OAAQ,EACV,CAAC,ECLD,OAAS,QAAW,oBACpB,OAAS,mBAAsB,iCAC/B,OAAS,uBAA0B,iCACnC,OAAS,eAAkB,iCAEpB,SAAS,YAAY,GAAI,CAC9B,GAAM,CACJ,SACA,GAAG,KACL,EAAI,GACE,aAAe,eAAe,EAC9B,WAAa,oBAAoB,EACjC,YAAc,WAAW,aAAc,WAAW,iBAAiB,EAAG,KAAK,EACjF,OAAO,IAAI,mBAAoB,CAC7B,GAAI,OACJ,GAAG,YACH,QACF,CAAC,CACH,CFZO,SAAS,cAAc,GAAI,CAChC,GAAM,CACJ,SAAU,GACV,GAAG,KACL,EAAI,GACE,SAAW,KAAO,OAAYC,KAAI,YAAa,CAAC,CAAC,EAAI,GACrD,aAAe,iBAAiB,EAChC,WAAa,oBAAoB,EACjC,YAAcC,YAAW,aAAc,W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,GAAG,UACL,CAAC,CACH,CAAC,EAAG,aAAeA,KAAI,YAAa,CAClC,GAAG,WACH,GAAI,IAAI,MACR,SAAU,YACZ,CAAC,EAAI,KAAM,YAAcA,KAAI,WAAY,CACvC,GAAG,UACH,GAAI,IAAI,KACR,SAAU,WACZ,CAAC,EAAI,KAAM,iBAAmBA,KAAI,gBAAiB,CACjD,GAAG,eACH,GAAI,IAAI,UACR,SAAU,gBACZ,CAAC,EAAI,IAAI,CACX,CAAC,CACH,CS7DO,IAAMC,QAAS,OACtBA,QAAO,QAAU,cACjBA,QAAO,UAAY,gBACnBA,QAAO,YAAc,kBACrBA,QAAO,KAAO,WACdA,QAAO,MAAQ,YACfA,QAAO,KAAO,WACdA,QAAO,MAAQ",
|
|
6
|
+
"names": ["jsx", "useControlledId", "jsx", "PolymorphicElement", "mergeProps", "jsx", "mergeProps", "PolymorphicElement", "jsx", "mergeProps", "mergeProps", "jsx", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "mergeProps", "_c", "mergeProps", "jsx", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "_c", "jsx", "PolymorphicElement", "mergeProps", "_c", "mergeProps", "jsx", "PolymorphicElement", "useControlledId", "jsx", "Switch"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import { type InputHintProps } from "@qualcomm-ui/react/input";
|
|
3
|
+
import type { IdProp } from "@qualcomm-ui/react-core/system";
|
|
4
|
+
export interface SwitchHintProps extends IdProp, InputHintProps {
|
|
5
|
+
/**
|
|
6
|
+
* React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.
|
|
7
|
+
*/
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A help message displayed below the switch. Renders a `<div>` element by
|
|
12
|
+
* default.
|
|
13
|
+
*/
|
|
14
|
+
export declare function SwitchHint({ children, id, ...props }: SwitchHintProps): ReactElement;
|
|
15
|
+
//# sourceMappingURL=switch-hint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch-hint.d.ts","sourceRoot":"","sources":["../../src/switch/switch-hint.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAElD,OAAO,EAAY,KAAK,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAEvE,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,gCAAgC,CAAA;AAK1D,MAAM,WAAW,eAAgB,SAAQ,MAAM,EAAE,cAAc;IAC7D;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,EAAE,EACF,GAAG,KAAK,EACT,EAAE,eAAe,GAAG,YAAY,CAUhC"}
|
package/dist/switch/switch.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { ReactElement, ReactNode } from "react";
|
|
|
2
2
|
import { type SwitchControlProps } from "./switch-control";
|
|
3
3
|
import { type SwitchErrorTextProps } from "./switch-error-text";
|
|
4
4
|
import { type SwitchHiddenInputProps } from "./switch-hidden-input";
|
|
5
|
+
import { type SwitchHintProps } from "./switch-hint";
|
|
5
6
|
import { type SwitchLabelProps } from "./switch-label";
|
|
6
7
|
import { type SwitchRootProps } from "./switch-root";
|
|
7
8
|
import { type SwitchThumbProps } from "./switch-thumb";
|
|
@@ -37,6 +38,14 @@ export interface SwitchProps extends SwitchRootProps {
|
|
|
37
38
|
* Props applied to the hidden input element.
|
|
38
39
|
*/
|
|
39
40
|
hiddenInputProps?: SwitchHiddenInputProps;
|
|
41
|
+
/**
|
|
42
|
+
* Optional hint text that describes the element.
|
|
43
|
+
*/
|
|
44
|
+
hint?: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* Props applied to the hint element.
|
|
47
|
+
*/
|
|
48
|
+
hintProps?: SwitchHintProps;
|
|
40
49
|
/**
|
|
41
50
|
* Optional label describing the element. Recommended. This element is
|
|
42
51
|
* automatically associated with the component's input element for
|
|
@@ -52,5 +61,5 @@ export interface SwitchProps extends SwitchRootProps {
|
|
|
52
61
|
*/
|
|
53
62
|
thumbProps?: SwitchThumbProps;
|
|
54
63
|
}
|
|
55
|
-
export declare function Switch({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, controlProps, errorText, errorTextProps, hiddenInputProps: hiddenInputPropsProp, label, labelProps, thumbProps, ...props }: SwitchProps): ReactElement;
|
|
64
|
+
export declare function Switch({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, controlProps, errorText, errorTextProps, hiddenInputProps: hiddenInputPropsProp, hint, hintProps, label, labelProps, thumbProps, ...props }: SwitchProps): ReactElement;
|
|
56
65
|
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/switch/switch.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAE,SAAS,EAAC,MAAM,OAAO,CAAA;AAKlD,OAAO,EAAgB,KAAK,kBAAkB,EAAC,MAAM,kBAAkB,CAAA;AACvE,OAAO,EAAkB,KAAK,oBAAoB,EAAC,MAAM,qBAAqB,CAAA;AAC9E,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAc,KAAK,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AACjE,OAAO,EAAa,KAAK,eAAe,EAAC,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAc,KAAK,gBAAgB,EAAC,MAAM,gBAAgB,CAAA;AAEjE,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAEjC;;;;OAIG;IACH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