@qualcomm-ui/react 1.22.2 → 1.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/dist/accordion/index.js +2 -3
  2. package/dist/accordion/index.js.map +1 -7
  3. package/dist/action-group/index.js +2 -3
  4. package/dist/action-group/index.js.map +1 -7
  5. package/dist/alert-banner/index.js +2 -3
  6. package/dist/alert-banner/index.js.map +1 -7
  7. package/dist/avatar/index.js +2 -3
  8. package/dist/avatar/index.js.map +1 -7
  9. package/dist/badge/index.js +2 -3
  10. package/dist/badge/index.js.map +1 -7
  11. package/dist/breadcrumbs/index.js +2 -3
  12. package/dist/breadcrumbs/index.js.map +1 -7
  13. package/dist/button/index.js +2 -3
  14. package/dist/button/index.js.map +1 -7
  15. package/dist/card/index.js +2 -3
  16. package/dist/card/index.js.map +1 -7
  17. package/dist/checkbox/index.js +2 -3
  18. package/dist/checkbox/index.js.map +1 -7
  19. package/dist/checkbox-group/index.js +2 -3
  20. package/dist/checkbox-group/index.js.map +1 -7
  21. package/dist/checkmark/index.js +2 -3
  22. package/dist/checkmark/index.js.map +1 -7
  23. package/dist/collapsible/index.js +2 -3
  24. package/dist/collapsible/index.js.map +1 -7
  25. package/dist/combobox/index.js +2 -3
  26. package/dist/combobox/index.js.map +1 -7
  27. package/dist/dialog/index.js +2 -3
  28. package/dist/dialog/index.js.map +1 -7
  29. package/dist/divider/index.js +2 -3
  30. package/dist/divider/index.js.map +1 -7
  31. package/dist/drawer/index.js +2 -3
  32. package/dist/drawer/index.js.map +1 -7
  33. package/dist/field-group/index.js +2 -3
  34. package/dist/field-group/index.js.map +1 -7
  35. package/dist/file-input/index.js +2 -3
  36. package/dist/file-input/index.js.map +1 -7
  37. package/dist/file-upload/index.js +2 -3
  38. package/dist/file-upload/index.js.map +1 -7
  39. package/dist/footer/index.js +1 -2
  40. package/dist/header-bar/index.js +2 -3
  41. package/dist/header-bar/index.js.map +1 -7
  42. package/dist/icon/index.js +2 -3
  43. package/dist/icon/index.js.map +1 -7
  44. package/dist/inline-icon-button/index.js +2 -3
  45. package/dist/inline-icon-button/index.js.map +1 -7
  46. package/dist/inline-notification/index.js +2 -3
  47. package/dist/inline-notification/index.js.map +1 -7
  48. package/dist/input/index.js +2 -3
  49. package/dist/input/index.js.map +1 -7
  50. package/dist/kbd/index.js +2 -3
  51. package/dist/kbd/index.js.map +1 -7
  52. package/dist/link/index.js +2 -3
  53. package/dist/link/index.js.map +1 -7
  54. package/dist/menu/index.js +2 -3
  55. package/dist/menu/index.js.map +1 -7
  56. package/dist/menu/menu-button.d.ts +1 -1
  57. package/dist/menu/menu-button.d.ts.map +1 -1
  58. package/dist/menu/menu-icon-button.d.ts.map +1 -1
  59. package/dist/menu/menu-root.d.ts.map +1 -1
  60. package/dist/number-input/index.js +2 -3
  61. package/dist/number-input/index.js.map +1 -7
  62. package/dist/pagination/index.js +2 -3
  63. package/dist/pagination/index.js.map +1 -7
  64. package/dist/password-input/index.js +2 -3
  65. package/dist/password-input/index.js.map +1 -7
  66. package/dist/popover/index.js +2 -3
  67. package/dist/popover/index.js.map +1 -7
  68. package/dist/progress/index.js +2 -3
  69. package/dist/progress/index.js.map +1 -7
  70. package/dist/progress-ring/index.js +2 -3
  71. package/dist/progress-ring/index.js.map +1 -7
  72. package/dist/qds-theme/index.js +2 -3
  73. package/dist/qds-theme/index.js.map +1 -7
  74. package/dist/qui-root/index.js +2 -3
  75. package/dist/qui-root/index.js.map +1 -7
  76. package/dist/radio/index.js +2 -3
  77. package/dist/radio/index.js.map +1 -7
  78. package/dist/segmented-control/index.js +2 -3
  79. package/dist/segmented-control/index.js.map +1 -7
  80. package/dist/select/index.js +2 -3
  81. package/dist/select/index.js.map +1 -7
  82. package/dist/side-nav/index.js +2 -3
  83. package/dist/side-nav/index.js.map +1 -7
  84. package/dist/slider/index.js +2 -3
  85. package/dist/slider/index.js.map +1 -7
  86. package/dist/stepper/index.js +2 -3
  87. package/dist/stepper/index.js.map +1 -7
  88. package/dist/stepper/stepper-completed-content.d.ts +2 -1
  89. package/dist/stepper/stepper-completed-content.d.ts.map +1 -1
  90. package/dist/switch/index.js +2 -3
  91. package/dist/switch/index.js.map +1 -7
  92. package/dist/switch-group/index.js +2 -3
  93. package/dist/switch-group/index.js.map +1 -7
  94. package/dist/table/index.js +2 -3
  95. package/dist/table/index.js.map +1 -7
  96. package/dist/tabs/index.js +2 -3
  97. package/dist/tabs/index.js.map +1 -7
  98. package/dist/tag/index.js +2 -3
  99. package/dist/tag/index.js.map +1 -7
  100. package/dist/text-area/index.js +2 -3
  101. package/dist/text-area/index.js.map +1 -7
  102. package/dist/text-input/index.js +2 -3
  103. package/dist/text-input/index.js.map +1 -7
  104. package/dist/toast/index.js +2 -3
  105. package/dist/toast/index.js.map +1 -7
  106. package/dist/tooltip/index.js +2 -3
  107. package/dist/tooltip/index.js.map +1 -7
  108. package/dist/tree/index.js +2 -3
  109. package/dist/tree/index.js.map +1 -7
  110. package/dist/tsbuildinfo +1 -1
  111. package/package.json +5 -5
  112. package/dist/footer/index.js.map +0 -7
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/stepper/stepper-completed-content.tsx", "../../src/stepper/qds-stepper-context.ts", "../../src/stepper/stepper-content.tsx", "../../src/stepper/stepper-context.tsx", "../../src/stepper/stepper-hint.tsx", "../../src/stepper/stepper-indicator.tsx", "../../src/stepper/stepper-indicator-icon.tsx", "../../src/stepper/stepper-item.tsx", "../../src/stepper/stepper-label.tsx", "../../src/stepper/stepper-list.tsx", "../../src/stepper/stepper-next-trigger.tsx", "../../src/stepper/stepper-prev-trigger.tsx", "../../src/stepper/stepper-root.tsx", "../../src/stepper/stepper-separator.tsx", "../../src/stepper/stepper-trigger.tsx", "../../src/stepper/index.ts"],
4
- "sourcesContent": ["import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperCompletedContent(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getCompletedContentBindings(), props);\n t0 = jsx(CoreStepper.CompletedContent, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { createGuardedContext } from \"@qualcomm-ui/react-core/context\";\nexport const [QdsStepperContextProvider, useQdsStepperContext] = createGuardedContext({\n hookName: \"useQdsStepperContext\",\n providerName: \"<QdsStepperContextProvider>\",\n strict: true\n});", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperContent(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getContentBindings(), props);\n t0 = jsx(CoreStepper.Content, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nexport function StepperContext({\n children\n}) {\n return /* @__PURE__ */jsx(CoreStepper.Context, {\n children\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperHint(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getHintBindings(), props);\n t0 = jsx(CoreStepper.Hint, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { jsx } from \"react/jsx-runtime\";\nimport { Check, createLucideIcon } from \"lucide-react\";\nimport { StepperIndicatorAlert } from \"@qualcomm-ui/qds-core/stepper\";\nimport { IconOrNode } from \"@qualcomm-ui/react/icon\";\nimport { CoreStepper, useStepperContext, useStepperItemContext } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nconst AlertIcon = createLucideIcon(\"stepper-indicator-alert\", StepperIndicatorAlert);\nexport function StepperIndicator(t0) {\n const {\n children,\n completedIcon: t1,\n errorIcon: t2,\n ...props\n } = t0;\n const completedIcon = t1 === undefined ? Check : t1;\n const errorIcon = t2 === undefined ? AlertIcon : t2;\n const qdsContext = useQdsStepperContext();\n const stepperContext = useStepperContext();\n const itemContext = useStepperItemContext();\n const itemState = stepperContext.getItemState(itemContext);\n const mergedProps = mergeProps(qdsContext.getIndicatorBindings(), props);\n return jsx(CoreStepper.Indicator, {\n ...mergedProps,\n children: itemState.current ? jsx(\"span\", {\n children\n }) : itemState.completed ? jsx(IconOrNode, {\n icon: completedIcon\n }) : itemState.invalid ? jsx(IconOrNode, {\n icon: errorIcon\n }) : jsx(\"span\", {\n children\n })\n });\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { IconOrNode } from \"@qualcomm-ui/react/icon\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperIndicatorIcon(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getIndicatorIconBindings(), props);\n t0 = jsx(IconOrNode, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperItem(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getItemBindings(), props);\n t0 = jsx(CoreStepper.Item, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperLabel(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props);\n t0 = jsx(CoreStepper.Label, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperList(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getListBindings(), props);\n t0 = jsx(CoreStepper.List, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperNextTrigger(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getNextTriggerBindings(), props);\n t0 = jsx(CoreStepper.NextTrigger, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperPrevTrigger(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getPrevTriggerBindings(), props);\n t0 = jsx(CoreStepper.PrevTrigger, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { useMemo } from \"react\";\nimport { createQdsStepperApi } from \"@qualcomm-ui/qds-core/stepper\";\nimport { normalizeProps } from \"@qualcomm-ui/react-core/machine\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { QdsStepperContextProvider } from \"./qds-stepper-context\";\nexport function StepperRoot(t0) {\n const $ = _c(4);\n let t1;\n if ($[0] !== t0) {\n const {\n size,\n ...props\n } = t0;\n let t2;\n if ($[2] !== size) {\n t2 = createQdsStepperApi({\n size\n }, normalizeProps);\n $[2] = size;\n $[3] = t2;\n } else {\n t2 = $[3];\n }\n const qdsContext = t2;\n const mergedProps = mergeProps(qdsContext.getRootBindings(), props);\n t1 = jsx(QdsStepperContextProvider, {\n value: qdsContext,\n children: jsx(CoreStepper.Root, {\n ...mergedProps\n })\n });\n $[0] = t0;\n $[1] = t1;\n } else {\n t1 = $[1];\n }\n return t1;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperSeparator(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getSeparatorBindings(), props);\n t0 = jsx(CoreStepper.Separator, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { c as _c } from \"react/compiler-runtime\";\nimport { jsx } from \"react/jsx-runtime\";\nimport { CoreStepper } from \"@qualcomm-ui/react-core/stepper\";\nimport { mergeProps } from \"@qualcomm-ui/utils/merge-props\";\nimport { useQdsStepperContext } from \"./qds-stepper-context\";\nexport function StepperTrigger(props) {\n const $ = _c(3);\n const qdsContext = useQdsStepperContext();\n let t0;\n if ($[0] !== props || $[1] !== qdsContext) {\n const mergedProps = mergeProps(qdsContext.getTriggerBindings(), props);\n t0 = jsx(CoreStepper.Trigger, {\n ...mergedProps\n });\n $[0] = props;\n $[1] = qdsContext;\n $[2] = t0;\n } else {\n t0 = $[2];\n }\n return t0;\n}", "import { StepperCompletedContent } from \"./stepper-completed-content\";\nimport { StepperContent } from \"./stepper-content\";\nimport { StepperContext } from \"./stepper-context\";\nimport { StepperHint } from \"./stepper-hint\";\nimport { StepperIndicator } from \"./stepper-indicator\";\nimport { StepperIndicatorIcon } from \"./stepper-indicator-icon\";\nimport { StepperItem } from \"./stepper-item\";\nimport { StepperLabel } from \"./stepper-label\";\nimport { StepperList } from \"./stepper-list\";\nimport { StepperNextTrigger } from \"./stepper-next-trigger\";\nimport { StepperPrevTrigger } from \"./stepper-prev-trigger\";\nimport { StepperRoot } from \"./stepper-root\";\nimport { StepperSeparator } from \"./stepper-separator\";\nimport { StepperTrigger } from \"./stepper-trigger\";\nexport * from \"./qds-stepper-context\";\nexport const Stepper = {\n CompletedContent: StepperCompletedContent,\n Content: StepperContent,\n Context: StepperContext,\n Hint: StepperHint,\n Indicator: StepperIndicator,\n IndicatorIcon: StepperIndicatorIcon,\n Item: StepperItem,\n Label: StepperLabel,\n List: StepperList,\n NextTrigger: StepperNextTrigger,\n PrevTrigger: StepperPrevTrigger,\n Root: StepperRoot,\n Separator: StepperSeparator,\n Trigger: StepperTrigger\n};"],
5
- "mappings": ";AAAA,OAAS,KAAK,OAAU,yBACxB,OAAS,QAAW,oBACpB,OAAS,gBAAmB,kCAC5B,OAAS,eAAkB,iCCH3B,OAAS,yBAA4B,kCAC9B,GAAM,CAAC,0BAA2B,oBAAoB,EAAI,qBAAqB,CACpF,SAAU,uBACV,aAAc,8BACd,OAAQ,EACV,CAAC,EDAM,SAAS,wBAAwB,MAAO,CAC7C,IAAM,EAAI,GAAG,CAAC,EACR,WAAa,qBAAqB,EACpC,GACJ,GAAI,EAAE,CAAC,IAAM,OAAS,EAAE,CAAC,IAAM,WAAY,CACzC,IAAM,YAAc,WAAW,WAAW,4BAA4B,EAAG,KAAK,EAC9E,GAAK,IAAI,YAAY,iBAAkB,CACrC,GAAG,WACL,CAAC,EACD,EAAE,CAAC,EAAI,MAC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EACR,WAAa,qBAAqB,EACpC,GACJ,GAAI,EAAE,CAAC,IAAM,OAAS,EAAE,CAAC,IAAM,WAAY,CACzC,IAAM,YAAcC,aAAW,WAAW,mBAAmB,EAAG,KAAK,EACrE,GAAKC,MAAIC,cAAY,QAAS,CAC5B,GAAG,WACL,CAAC,EACD,EAAE,CAAC,EAAI,MACP,EAAE,CAAC,EAAI,WACP,EAAE,CAAC,EAAI,EACT,MACE,GAAK,EAAE,CAAC,EAEV,OAAO,EACT,CCNO,IAAM,QAAU,CACrB,iBAAkB,wBAClB,QAAS,eACT,QAAS,eACT,KAAM,YACN,UAAW,iBACX,cAAe,qBACf,KAAM,YACN,MAAO,aACP,KAAM,YACN,YAAa,mBACb,YAAa,mBACb,KAAM,YACN,UAAW,iBACX,QAAS,cACX",
6
- "names": ["_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "jsx", "CoreStepper", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "jsx", "CoreStepper", "mergeProps", "mergeProps", "jsx", "CoreStepper", "_c", "jsx", "IconOrNode", "mergeProps", "_c", "mergeProps", "jsx", "IconOrNode", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper", "_c", "jsx", "CoreStepper", "mergeProps", "_c", "mergeProps", "jsx", "CoreStepper"]
7
- }
1
+ {"version":3,"file":"index.js","names":["QdsStepperApi","createGuardedContext","QdsStepperContextProvider","useQdsStepperContext","hookName","providerName","strict","ReactElement","CoreStepper","CoreStepperCompletedContentProps","mergeProps","useQdsStepperContext","StepperCompletedContentProps","StepperCompletedContent","props","$","_c","qdsContext","t0","getCompletedContentBindings","mergedProps","t1","ReactElement","CoreStepper","CoreStepperContentProps","mergeProps","useQdsStepperContext","StepperContentProps","StepperContent","props","$","_c","qdsContext","t0","getContentBindings","mergedProps","t1","ReactNode","CoreStepper","CoreStepperContextProps","StepperContextProps","StepperContext","t0","$","_c","children","t1","ReactElement","CoreStepper","CoreStepperHintProps","mergeProps","useQdsStepperContext","StepperHintProps","StepperHint","props","$","_c","qdsContext","t0","getHintBindings","mergedProps","t1","ReactElement","Check","createLucideIcon","IconNode","StepperIndicatorAlert","IconOrNode","LucideIconOrElement","CoreStepper","CoreStepperIndicatorProps","useStepperContext","useStepperItemContext","mergeProps","useQdsStepperContext","StepperIndicatorProps","completedIcon","errorIcon","AlertIcon","StepperIndicator","t0","$","_c","children","t1","t2","props","undefined","qdsContext","stepperContext","itemContext","t3","getItemState","itemState","mergedProps","getIndicatorBindings","t4","completed","current","invalid","t5","ReactElement","IconOrNode","IconOrNodeProps","mergeProps","useQdsStepperContext","StepperIndicatorIconProps","Omit","StepperIndicatorIcon","props","$","_c","qdsContext","t0","getIndicatorIconBindings","mergedProps","t1","ReactElement","CoreStepper","CoreStepperItemProps","mergeProps","useQdsStepperContext","StepperItemProps","StepperItem","props","$","_c","qdsContext","t0","getItemBindings","mergedProps","t1","ReactElement","CoreStepper","CoreStepperLabelProps","mergeProps","useQdsStepperContext","StepperLabelProps","StepperLabel","props","$","_c","qdsContext","t0","getLabelBindings","mergedProps","t1","ReactElement","CoreStepper","CoreStepperListProps","mergeProps","useQdsStepperContext","StepperListProps","StepperList","props","$","_c","qdsContext","t0","getListBindings","mergedProps","t1","ReactElement","CoreStepper","CoreStepperNextTriggerProps","mergeProps","useQdsStepperContext","StepperNextTriggerProps","StepperNextTrigger","props","$","_c","qdsContext","t0","getNextTriggerBindings","mergedProps","t1","ReactElement","CoreStepper","CoreStepperPrevTriggerProps","mergeProps","useQdsStepperContext","StepperPrevTriggerProps","StepperPrevTrigger","props","$","_c","qdsContext","t0","getPrevTriggerBindings","mergedProps","t1","ReactElement","useMemo","createQdsStepperApi","QdsStepperApiProps","normalizeProps","CoreStepper","CoreStepperRootProps","mergeProps","QdsStepperContextProvider","StepperRootProps","StepperRoot","t0","$","_c","qdsContext","t1","size","props","t2","getRootBindings","mergedProps","t3","ReactElement","CoreStepper","CoreStepperSeparatorProps","mergeProps","useQdsStepperContext","StepperSeparatorProps","StepperSeparator","props","$","_c","qdsContext","t0","getSeparatorBindings","mergedProps","t1","ReactElement","CoreStepper","CoreStepperTriggerProps","mergeProps","useQdsStepperContext","StepperTriggerProps","StepperTrigger","props","$","_c","qdsContext","t0","getTriggerBindings","mergedProps","t1","StepperCompletedContent","StepperCompletedContentProps","StepperContent","StepperContentProps","StepperContext","StepperContextProps","StepperHint","StepperHintProps","StepperIndicator","StepperIndicatorProps","StepperIndicatorIcon","StepperIndicatorIconProps","StepperItem","StepperItemProps","StepperLabel","StepperLabelProps","StepperList","StepperListProps","StepperNextTrigger","StepperNextTriggerProps","StepperPrevTrigger","StepperPrevTriggerProps","StepperRoot","StepperRootProps","StepperSeparator","StepperSeparatorProps","StepperTrigger","StepperTriggerProps","StepperComponent","CompletedContent","Content","Context","Hint","Indicator","IndicatorIcon","Item","Label","List","NextTrigger","PrevTrigger","Root","Separator","Trigger","Stepper"],"sources":["../../src/stepper/qds-stepper-context.ts","../../src/stepper/stepper-completed-content.tsx","../../src/stepper/stepper-content.tsx","../../src/stepper/stepper-context.tsx","../../src/stepper/stepper-hint.tsx","../../src/stepper/stepper-indicator.tsx","../../src/stepper/stepper-indicator-icon.tsx","../../src/stepper/stepper-item.tsx","../../src/stepper/stepper-label.tsx","../../src/stepper/stepper-list.tsx","../../src/stepper/stepper-next-trigger.tsx","../../src/stepper/stepper-prev-trigger.tsx","../../src/stepper/stepper-root.tsx","../../src/stepper/stepper-separator.tsx","../../src/stepper/stepper-trigger.tsx","../../src/stepper/index.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {QdsStepperApi} from \"@qualcomm-ui/qds-core/stepper\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsStepperContextProvider, useQdsStepperContext] =\n createGuardedContext<QdsStepperApi>({\n hookName: \"useQdsStepperContext\",\n providerName: \"<QdsStepperContextProvider>\",\n strict: true,\n })\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperCompletedContentProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperCompletedContentProps extends CoreStepperCompletedContentProps {}\n\n/**\n * Content area displayed when all steps are completed. Renders a `<div>` element by\n * default.\n */\nexport function StepperCompletedContent(\n props: StepperCompletedContentProps,\n): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(\n qdsContext.getCompletedContentBindings(),\n props,\n )\n\n return <CoreStepper.CompletedContent {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperContentProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperContentProps extends CoreStepperContentProps {}\n\n/**\n * Content area for a step. Renders a `<div>` element by default.\n */\nexport function StepperContent(props: StepperContentProps): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getContentBindings(), props)\n\n return <CoreStepper.Content {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactNode} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperContextProps,\n} from \"@qualcomm-ui/react-core/stepper\"\n\nexport interface StepperContextProps extends CoreStepperContextProps {}\n\n/**\n * Render prop that provides the current stepper API context.\n */\nexport function StepperContext({children}: StepperContextProps): ReactNode {\n return <CoreStepper.Context>{children}</CoreStepper.Context>\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperHintProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperHintProps extends CoreStepperHintProps {}\n\n/**\n * Displays a step subtitle or hint. Renders a `<span>` element by default.\n */\nexport function StepperHint(props: StepperHintProps): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getHintBindings(), props)\n\n return <CoreStepper.Hint {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {Check, createLucideIcon, type IconNode} from \"lucide-react\"\n\nimport {StepperIndicatorAlert} from \"@qualcomm-ui/qds-core/stepper\"\nimport {IconOrNode} from \"@qualcomm-ui/react/icon\"\nimport type {LucideIconOrElement} from \"@qualcomm-ui/react-core/lucide\"\nimport {\n CoreStepper,\n type CoreStepperIndicatorProps,\n useStepperContext,\n useStepperItemContext,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperIndicatorProps extends CoreStepperIndicatorProps {\n /**\n * Icon to display when the step is completed.\n *\n * @default Check\n */\n completedIcon?: LucideIconOrElement\n\n /**\n * Icon to display when the step is in an error state.\n *\n * @default StepperIndicatorAlert\n */\n errorIcon?: LucideIconOrElement\n}\n\nconst AlertIcon = createLucideIcon(\n \"stepper-indicator-alert\",\n StepperIndicatorAlert as IconNode,\n)\n\n/**\n * Visual indicator for the step state. Renders a `<div>` element by default.\n *\n * By default, displays the step number or icon. When a step is completed, it shows a\n * checkmark icon. When a step is invalid, it shows an error icon.\n *\n * Rendering order:\n *\n * - errorIcon (when invalid)\n * - children (current step)\n * - completedIcon (when complete)\n * - children (not current step)\n */\nexport function StepperIndicator({\n children,\n completedIcon = Check,\n errorIcon = AlertIcon,\n ...props\n}: StepperIndicatorProps): ReactElement {\n const qdsContext = useQdsStepperContext()\n const stepperContext = useStepperContext()\n const itemContext = useStepperItemContext()\n const itemState = stepperContext.getItemState(itemContext)\n const mergedProps = mergeProps(qdsContext.getIndicatorBindings(), props)\n\n return (\n <CoreStepper.Indicator {...mergedProps}>\n {itemState.current ? (\n <span>{children}</span>\n ) : itemState.completed ? (\n <IconOrNode icon={completedIcon} />\n ) : itemState.invalid ? (\n <IconOrNode icon={errorIcon} />\n ) : (\n <span>{children}</span>\n )}\n </CoreStepper.Indicator>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {IconOrNode, type IconOrNodeProps} from \"@qualcomm-ui/react/icon\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperIndicatorIconProps extends Omit<\n IconOrNodeProps,\n \"size\"\n> {}\n\nexport function StepperIndicatorIcon(\n props: StepperIndicatorIconProps,\n): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getIndicatorIconBindings(), props)\n\n return <IconOrNode {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperItemProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperItemProps extends CoreStepperItemProps {}\n\n/**\n * Wrapper for a single step. Renders a `<div>` element by default.\n */\nexport function StepperItem(props: StepperItemProps): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getItemBindings(), props)\n\n return <CoreStepper.Item {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperLabelProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperLabelProps extends CoreStepperLabelProps {}\n\n/**\n * Displays the step title. Renders a `<span>` element by default.\n */\nexport function StepperLabel(props: StepperLabelProps): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getLabelBindings(), props)\n\n return <CoreStepper.Label {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperListProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperListProps extends CoreStepperListProps {}\n\n/**\n * Container for the step items. Renders a `<div>` element by default.\n */\nexport function StepperList(props: StepperListProps): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getListBindings(), props)\n\n return <CoreStepper.List {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperNextTriggerProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperNextTriggerProps extends CoreStepperNextTriggerProps {}\n\n/**\n * Navigates to the next step. Renders a `<button>` element by default.\n */\nexport function StepperNextTrigger(\n props: StepperNextTriggerProps,\n): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getNextTriggerBindings(), props)\n\n return <CoreStepper.NextTrigger {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperPrevTriggerProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperPrevTriggerProps extends CoreStepperPrevTriggerProps {}\n\n/**\n * Navigates to the previous step. Renders a `<button>` element by default.\n */\nexport function StepperPrevTrigger(\n props: StepperPrevTriggerProps,\n): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getPrevTriggerBindings(), props)\n\n return <CoreStepper.PrevTrigger {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type ReactElement, useMemo} from \"react\"\n\nimport {\n createQdsStepperApi,\n type QdsStepperApiProps,\n} from \"@qualcomm-ui/qds-core/stepper\"\nimport {normalizeProps} from \"@qualcomm-ui/react-core/machine\"\nimport {\n CoreStepper,\n type CoreStepperRootProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {QdsStepperContextProvider} from \"./qds-stepper-context\"\n\nexport interface StepperRootProps\n extends CoreStepperRootProps, QdsStepperApiProps {}\n\n/**\n * Groups all parts of the stepper. Renders a `<div>` element by default.\n */\nexport function StepperRoot({size, ...props}: StepperRootProps): ReactElement {\n const qdsContext = useMemo(\n () => createQdsStepperApi({size}, normalizeProps),\n [size],\n )\n\n const mergedProps = mergeProps(qdsContext.getRootBindings(), props)\n\n return (\n <QdsStepperContextProvider value={qdsContext}>\n <CoreStepper.Root {...mergedProps} />\n </QdsStepperContextProvider>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperSeparatorProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperSeparatorProps extends CoreStepperSeparatorProps {}\n\n/**\n * Visual connector between steps. Renders a `<div>` element by default.\n */\nexport function StepperSeparator(props: StepperSeparatorProps): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getSeparatorBindings(), props)\n\n return <CoreStepper.Separator {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement} from \"react\"\n\nimport {\n CoreStepper,\n type CoreStepperTriggerProps,\n} from \"@qualcomm-ui/react-core/stepper\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsStepperContext} from \"./qds-stepper-context\"\n\nexport interface StepperTriggerProps extends CoreStepperTriggerProps {}\n\n/**\n * Used to make each step item clickable. Renders a `<button>` element by default.\n */\nexport function StepperTrigger(props: StepperTriggerProps): ReactElement {\n const qdsContext = useQdsStepperContext()\n const mergedProps = mergeProps(qdsContext.getTriggerBindings(), props)\n\n return <CoreStepper.Trigger {...mergedProps} />\n}\n","import {\n StepperCompletedContent,\n type StepperCompletedContentProps,\n} from \"./stepper-completed-content\"\nimport {StepperContent, type StepperContentProps} from \"./stepper-content\"\nimport {StepperContext, type StepperContextProps} from \"./stepper-context\"\nimport {StepperHint, type StepperHintProps} from \"./stepper-hint\"\nimport {StepperIndicator, type StepperIndicatorProps} from \"./stepper-indicator\"\nimport {\n StepperIndicatorIcon,\n type StepperIndicatorIconProps,\n} from \"./stepper-indicator-icon\"\nimport {StepperItem, type StepperItemProps} from \"./stepper-item\"\nimport {StepperLabel, type StepperLabelProps} from \"./stepper-label\"\nimport {StepperList, type StepperListProps} from \"./stepper-list\"\nimport {\n StepperNextTrigger,\n type StepperNextTriggerProps,\n} from \"./stepper-next-trigger\"\nimport {\n StepperPrevTrigger,\n type StepperPrevTriggerProps,\n} from \"./stepper-prev-trigger\"\nimport {StepperRoot, type StepperRootProps} from \"./stepper-root\"\nimport {StepperSeparator, type StepperSeparatorProps} from \"./stepper-separator\"\nimport {StepperTrigger, type StepperTriggerProps} from \"./stepper-trigger\"\n\nexport * from \"./qds-stepper-context\"\nexport type {\n StepperPrevTriggerProps,\n StepperIndicatorProps,\n StepperCompletedContentProps,\n StepperRootProps,\n StepperTriggerProps,\n StepperListProps,\n StepperNextTriggerProps,\n StepperIndicatorIconProps,\n StepperHintProps,\n StepperLabelProps,\n StepperItemProps,\n StepperSeparatorProps,\n StepperContextProps,\n StepperContentProps,\n}\n\ntype StepperComponent = {\n /**\n * Content area displayed when all steps are completed. Renders a `<div>` element\n * by default.\n */\n CompletedContent: typeof StepperCompletedContent\n /**\n * Content area for a step. Renders a `<div>` element by default.\n */\n Content: typeof StepperContent\n /**\n * Render prop that provides the current stepper API context.\n */\n Context: typeof StepperContext\n /**\n * Displays a step subtitle or hint. Renders a `<span>` element by default.\n */\n Hint: typeof StepperHint\n /**\n * Visual indicator for the step state. Renders a `<div>` element by default.\n *\n * By default, displays the step number or icon. When a step is completed, it\n * shows a checkmark icon. When a step is invalid, it shows an error icon.\n *\n * Rendering order:\n *\n * - errorIcon (when invalid)\n * - children (current step)\n * - completedIcon (when complete)\n * - children (not current step)\n */\n Indicator: typeof StepperIndicator\n IndicatorIcon: typeof StepperIndicatorIcon\n /**\n * Wrapper for a single step. Renders a `<div>` element by default.\n */\n Item: typeof StepperItem\n /**\n * Displays the step title. Renders a `<span>` element by default.\n */\n Label: typeof StepperLabel\n /**\n * Container for the step items. Renders a `<div>` element by default.\n */\n List: typeof StepperList\n /**\n * Navigates to the next step. Renders a `<button>` element by default.\n */\n NextTrigger: typeof StepperNextTrigger\n /**\n * Navigates to the previous step. Renders a `<button>` element by default.\n */\n PrevTrigger: typeof StepperPrevTrigger\n /**\n * Groups all parts of the stepper. Renders a `<div>` element by default.\n */\n Root: typeof StepperRoot\n /**\n * Visual connector between steps. Renders a `<div>` element by default.\n */\n Separator: typeof StepperSeparator\n /**\n * Used to make each step item clickable. Renders a `<button>` element by default.\n */\n Trigger: typeof StepperTrigger\n}\n\nexport const Stepper: StepperComponent = {\n CompletedContent: StepperCompletedContent,\n Content: StepperContent,\n Context: StepperContext,\n Hint: StepperHint,\n Indicator: StepperIndicator,\n IndicatorIcon: StepperIndicatorIcon,\n Item: StepperItem,\n Label: StepperLabel,\n List: StepperList,\n NextTrigger: StepperNextTrigger,\n PrevTrigger: StepperPrevTrigger,\n Root: StepperRoot,\n Separator: StepperSeparator,\n Tr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,EAAAN,EAAA,IAAxCM,EAAA,EAAA,EAAA,QAAA,CAAA,GAAyBD,EAAe,CAAA,CAAAL,EAAA,GAAAK,EAAAL,EAAA,GAAAM,GAAxCA,EC0FT,IAAa4C,EAA4B,CACvCd,iBAAkB7B,wBAClB8B,QAAS5B,eACT6B,QAAS3B,eACT4B,KAAM1B,YACN2B,UAAWzB,iBACX0B,cAAexB,qBACfyB,KAAMvB,YACNwB,MAAOtB,aACPuB,KAAMrB,YACNsB,YAAapB,mBACbqB,YAAanB,mBACboB,KAAMlB,YACNmB,UAAWjB,iBACXkB,QAAShB,eACV"}
@@ -3,7 +3,8 @@ import { type CoreStepperCompletedContentProps } from "@qualcomm-ui/react-core/s
3
3
  export interface StepperCompletedContentProps extends CoreStepperCompletedContentProps {
4
4
  }
5
5
  /**
6
- * Content area displayed when all steps are completed. Renders a `<div>` element by default.
6
+ * Content area displayed when all steps are completed. Renders a `<div>` element by
7
+ * default.
7
8
  */
8
9
  export declare function StepperCompletedContent(props: StepperCompletedContentProps): ReactElement;
9
10
  //# sourceMappingURL=stepper-completed-content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stepper-completed-content.d.ts","sourceRoot":"","sources":["../../src/stepper/stepper-completed-content.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,OAAO,CAAA;AAEvC,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,iCAAiC,CAAA;AAKxC,MAAM,WAAW,4BAA6B,SAAQ,gCAAgC;CAAG;AAEzF;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,4BAA4B,GAClC,YAAY,CAQd"}
1
+ {"version":3,"file":"stepper-completed-content.d.ts","sourceRoot":"","sources":["../../src/stepper/stepper-completed-content.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,OAAO,CAAA;AAEvC,OAAO,EAEL,KAAK,gCAAgC,EACtC,MAAM,iCAAiC,CAAA;AAKxC,MAAM,WAAW,4BAA6B,SAAQ,gCAAgC;CAAG;AAEzF;;;GAGG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,4BAA4B,GAClC,YAAY,CAQd"}
@@ -1,3 +1,2 @@
1
- "use client";
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{useQdsFieldGroupContext}from"@qualcomm-ui/react/field-group";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),groupContext=useQdsFieldGroupContext(),groupSize=size??groupContext?.size,t1;$[0]!==groupSize?(t1=createQdsSwitchApi({size:groupSize},normalizeProps),$[0]=groupSize,$[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
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{mergeProps as t}from"@qualcomm-ui/utils/merge-props";import{jsx as n,jsxs as r}from"react/jsx-runtime";import{PolymorphicElement as i}from"@qualcomm-ui/react-core/system";import{AlertCircle as a}from"lucide-react";import"react";import{normalizeProps as o,useOptionalContentId as s}from"@qualcomm-ui/react-core/machine";import{useControlledId as c}from"@qualcomm-ui/react-core/state";import{createGuardedContext as l}from"@qualcomm-ui/react-core/context";import{InputErrorText as u,InputHint as d}from"@qualcomm-ui/react/input";import{useQdsFieldGroupContext as f}from"@qualcomm-ui/react/field-group";import{SwitchContextProvider as p,useSwitch as m,useSwitchControl as h,useSwitchErrorText as g,useSwitchHiddenInput as _,useSwitchHint as v,useSwitchLabel as y,useSwitchThumb as b}from"@qualcomm-ui/react-core/switch";import{splitSwitchProps as x}from"@qualcomm-ui/core/switch";import{createQdsSwitchApi as S}from"@qualcomm-ui/qds-core/switch";var[C,w]=l({hookName:`useQdsSwitchContext`,providerName:`<QdsSwitchContextProvider>`,strict:!0});function SwitchThumb(r){let a=e(3),{children:o,...s}=r,c=t(b(),w().getThumbBindings(),s),l;return a[0]!==o||a[1]!==c?(l=n(i,{as:`span`,...c,children:o}),a[0]=o,a[1]=c,a[2]=l):l=a[2],l}function SwitchControl({children:e=n(SwitchThumb,{}),...r}){return n(i,{as:`span`,...t(h(),w().getControlBindings(),r),children:e})}function SwitchErrorText(r){let i=e(5),{children:o,id:s,...c}=r,l;i[0]===s?l=i[1]:(l={id:s},i[0]=s,i[1]=l);let d=t(g(l),w().getErrorTextBindings(),c),f;return i[2]!==o||i[3]!==d?(f=n(u,{icon:a,...d,children:o}),i[2]=o,i[3]=d,i[4]=f):f=i[4],f}function SwitchHiddenInput(r){let i=e(4),{id:a,...o}=r,s;i[0]===a?s=i[1]:(s={id:a},i[0]=a,i[1]=s);let c=t(_(s),w().getHiddenInputBindings(),o),l;return i[2]===c?l=i[3]:(l=n(`input`,{...c}),i[2]=c,i[3]=l),l}function SwitchHint(r){let i=e(5),{children:a,id:o,...s}=r,c;i[0]===o?c=i[1]:(c={id:o},i[0]=o,i[1]=c);let l=t(v(c),w().getHintBindings(),s),u;return i[2]!==a||i[3]!==l?(u=n(d,{...l,children:a}),i[2]=a,i[3]=l,i[4]=u):u=i[4],u}function SwitchLabel(r){let a=e(5),{children:o,id:s,...c}=r,l;a[0]===s?l=a[1]:(l={id:s},a[0]=s,a[1]=l);let u=t(y(l),w().getLabelBindings(),c),d;return a[2]!==o||a[3]!==u?(d=n(i,{as:`span`,...u,children:o}),a[2]=o,a[3]=u,a[4]=d):d=a[4],d}function SwitchRoot(r){let a=e(11),{children:s,id:l,size:u,...d}=r,[h,g]=x(d),_=m(h),v=f(),y=u??v?.size,b;a[0]===y?b=a[1]:(b=S({size:y},o),a[0]=y,a[1]=b);let w=b,T=t(_.getRootBindings({id:c(l)}),w.getRootBindings(),g),E;a[2]!==s||a[3]!==T?(E=n(i,{as:`label`,...T,children:s}),a[2]=s,a[3]=T,a[4]=E):E=a[4];let D;a[5]!==w||a[6]!==E?(D=n(C,{value:w,children:E}),a[5]=w,a[6]=E,a[7]=D):D=a[7];let O;return a[8]!==_||a[9]!==D?(O=n(p,{value:_,children:D}),a[8]=_,a[9]=D,a[10]=O):O=a[10],O}function Switch$1(t){let i=e(52),a,o,l,u,d,f,p,m,h,g,_,v;i[0]===t?(a=i[1],o=i[2],l=i[3],u=i[4],d=i[5],f=i[6],p=i[7],m=i[8],h=i[9],g=i[10],_=i[11],v=i[12]):({"aria-label":a,"aria-labelledby":o,controlProps:l,errorText:u,errorTextProps:d,hiddenInputProps:f,hint:p,hintProps:m,label:h,labelProps:g,thumbProps:v,..._}=t,i[0]=t,i[1]=a,i[2]=o,i[3]=l,i[4]=u,i[5]=d,i[6]=f,i[7]=p,i[8]=m,i[9]=h,i[10]=g,i[11]=_,i[12]=v);let y=h||g?.children,b=u||d?.children,x=p||m?.children,S;i[13]!==a||i[14]!==o||i[15]!==f?(S={...f},a!==void 0&&(S[`aria-label`]=a),o!==void 0&&(S[`aria-labelledby`]=o),i[13]=a,i[14]=o,i[15]=f,i[16]=S):S=i[16];let C=s(b,d),w=c(S?.id),T=s(x,m),E=s(y,g),D=c(_.id),O;i[17]!==_.ids||i[18]!==C||i[19]!==w||i[20]!==T||i[21]!==E||i[22]!==D?(O={errorText:C,hiddenInput:w,hint:T,label:E,root:D,..._.ids},i[17]=_.ids,i[18]=C,i[19]=w,i[20]=T,i[21]=E,i[22]=D,i[23]=O):O=i[23];let k=O,A;i[24]!==S||i[25]!==k.hiddenInput?(A=n(SwitchHiddenInput,{...S,id:k.hiddenInput}),i[24]=S,i[25]=k.hiddenInput,i[26]=A):A=i[26];let j;i[27]===v?j=i[28]:(j=n(SwitchThumb,{...v}),i[27]=v,i[28]=j);let M;i[29]!==l||i[30]!==j?(M=n(SwitchControl,{...l,children:j}),i[29]=l,i[30]=j,i[31]=M):M=i[31];let N;i[32]!==k.label||i[33]!==y||i[34]!==g?(N=y?n(SwitchLabel,{...g,id:k.label,children:y}):null,i[32]=k.label,i[33]=y,i[34]=g,i[35]=N):N=i[35];let P;i[36]!==x||i[37]!==m||i[38]!==k.hint?(P=x?n(SwitchHint,{...m,id:k.hint,children:x}):null,i[36]=x,i[37]=m,i[38]=k.hint,i[39]=P):P=i[39];let F;i[40]!==b||i[41]!==d||i[42]!==k.errorText?(F=b?n(SwitchErrorText,{...d,id:k.errorText,children:b}):null,i[40]=b,i[41]=d,i[42]=k.errorText,i[43]=F):F=i[43];let I;return i[44]!==k||i[45]!==_||i[46]!==N||i[47]!==P||i[48]!==F||i[49]!==A||i[50]!==M?(I=r(SwitchRoot,{..._,ids:k,children:[A,M,N,P,F]}),i[44]=k,i[45]=_,i[46]=N,i[47]=P,i[48]=F,i[49]=A,i[50]=M,i[51]=I):I=i[51],I}var T=Switch$1;T.Control=SwitchControl,T.ErrorText=SwitchErrorText,T.HiddenInput=SwitchHiddenInput,T.Hint=SwitchHint,T.Label=SwitchLabel,T.Root=SwitchRoot,T.Thumb=SwitchThumb;export{C as QdsSwitchContextProvider,T as Switch,w as useQdsSwitchContext};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
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-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 { useQdsFieldGroupContext } from \"@qualcomm-ui/react/field-group\";\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 const groupContext = useQdsFieldGroupContext();\n const groupSize = size ?? groupContext?.size;\n let t1;\n if ($[0] !== groupSize) {\n t1 = createQdsSwitchApi({\n size: groupSize\n }, normalizeProps);\n $[0] = groupSize;\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,WAAW,mBAAmB,EAAG,KAAK,EACnF,OAAOD,KAAIE,oBAAoB,CAC7B,GAAI,OACJ,GAAG,YACH,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L,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
- }
1
+ {"version":3,"file":"index.js","names":["QdsSwitchApi","createGuardedContext","QdsSwitchContextProvider","useQdsSwitchContext","hookName","providerName","strict","ReactElement","ReactNode","useSwitchThumb","ElementRenderProp","PolymorphicElement","mergeProps","useQdsSwitchContext","SwitchThumbProps","children","SwitchThumb","t0","$","_c","props","contextProps","qdsContext","mergedProps","getThumbBindings","t1","ReactElement","ReactNode","useSwitchControl","ElementRenderProp","PolymorphicElement","mergeProps","useQdsSwitchContext","SwitchThumb","SwitchControlProps","children","SwitchControl","props","contextProps","qdsContext","mergedProps","getControlBindings","ReactElement","ReactNode","AlertCircle","InputErrorText","InputErrorTextProps","LucideIconOrElement","useSwitchErrorText","IdProp","mergeProps","useQdsSwitchContext","SwitchErrorTextProps","children","icon","SwitchErrorText","t0","$","_c","id","props","t1","contextProps","qdsContext","mergedProps","getErrorTextBindings","t2","ComponentPropsWithRef","ReactElement","useSwitchHiddenInput","IdProp","mergeProps","useQdsSwitchContext","SwitchHiddenInputProps","SwitchHiddenInput","t0","$","_c","id","props","t1","contextProps","qdsContext","mergedProps","getHiddenInputBindings","t2","ReactElement","ReactNode","InputHint","InputHintProps","useSwitchHint","IdProp","mergeProps","useQdsSwitchContext","SwitchHintProps","children","SwitchHint","t0","$","_c","id","props","t1","contextProps","qdsContext","mergedProps","getHintBindings","t2","ReactElement","ReactNode","useSwitchLabel","ElementRenderProp","IdProp","PolymorphicElement","mergeProps","useQdsSwitchContext","SwitchLabelProps","children","SwitchLabel","t0","$","_c","id","props","t1","contextProps","qdsContext","mergedProps","getLabelBindings","t2","ReactElement","ReactNode","useMemo","splitSwitchProps","SwitchApiProps","createQdsSwitchApi","QdsSwitchApiProps","useQdsFieldGroupContext","normalizeProps","useControlledId","SwitchContextProvider","useSwitch","ElementRenderProp","PolymorphicElement","mergeProps","QdsSwitchContextProvider","SwitchRootProps","Omit","children","SwitchRoot","t0","$","_c","id","size","props","switchProps","localProps","context","groupContext","groupSize","t1","qdsContext","mergedProps","getRootBindings","t2","t3","t4","ReactElement","ReactNode","useOptionalContentId","useControlledId","SwitchControl","SwitchControlProps","SwitchErrorText","SwitchErrorTextProps","SwitchHiddenInput","SwitchHiddenInputProps","SwitchHint","SwitchHintProps","SwitchLabel","SwitchLabelProps","SwitchRoot","SwitchRootProps","SwitchThumb","SwitchThumbProps","SwitchProps","children","controlProps","errorText","errorTextProps","hiddenInputProps","hint","hintProps","label","labelProps","thumbProps","Switch","t0","$","_c","ariaLabel","ariaLabelledBy","hiddenInputPropsProp","props","labelContent","errorTextContent","hintContent","undefined","t1","t2","id","t3","t4","t5","t6","ids","hiddenInput","root","t7","t8","t9","t10","t11","t12","t13","Switch","SimpleSwitch","SwitchControl","SwitchControlProps","SwitchErrorText","SwitchErrorTextProps","SwitchHiddenInput","SwitchHiddenInputProps","SwitchHint","SwitchHintProps","SwitchLabel","SwitchLabelProps","SwitchRoot","SwitchRootProps","SwitchThumb","SwitchThumbProps","SwitchComponent","Control","ErrorText","HiddenInput","Hint","Label","Root","Thumb"],"sources":["../../src/switch/qds-switch-context.ts","../../src/switch/switch-thumb.tsx","../../src/switch/switch-control.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/switch.tsx","../../src/switch/index.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {QdsSwitchApi} from \"@qualcomm-ui/qds-core/switch\"\nimport {createGuardedContext} from \"@qualcomm-ui/react-core/context\"\n\nexport const [QdsSwitchContextProvider, useQdsSwitchContext] =\n createGuardedContext<QdsSwitchApi>({\n hookName: \"useQdsSwitchContext\",\n providerName: \"<QdsSwitchContextProvider>\",\n strict: true,\n })\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {useSwitchThumb} from \"@qualcomm-ui/react-core/switch\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context\"\n\nexport interface SwitchThumbProps extends ElementRenderProp<\"span\"> {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: ReactNode\n}\n\n/**\n * Visual indicator that displays the switch state. Renders a `<span>` element by\n * default.\n */\nexport function SwitchThumb({\n children,\n ...props\n}: SwitchThumbProps): ReactElement {\n const contextProps = useSwitchThumb()\n const qdsContext = useQdsSwitchContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getThumbBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"span\" {...mergedProps}>\n {children}\n </PolymorphicElement>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {useSwitchControl} from \"@qualcomm-ui/react-core/switch\"\nimport {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context\"\nimport {SwitchThumb} from \"./switch-thumb\"\n\nexport interface SwitchControlProps extends ElementRenderProp<\"span\"> {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n *\n * @default `<SwitchThumb />`\n */\n children?: ReactNode\n}\n\n/**\n * Visual control that wraps the switch thumb. Renders a `<span>` element by\n * default.\n */\nexport function SwitchControl({\n children = <SwitchThumb />,\n ...props\n}: SwitchControlProps): ReactElement {\n const contextProps = useSwitchControl()\n const qdsContext = useQdsSwitchContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getControlBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"span\" {...mergedProps}>\n {children}\n </PolymorphicElement>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {AlertCircle} from \"lucide-react\"\n\nimport {\n InputErrorText,\n type InputErrorTextProps,\n} from \"@qualcomm-ui/react/input\"\nimport type {LucideIconOrElement} from \"@qualcomm-ui/react-core/lucide\"\nimport {useSwitchErrorText} from \"@qualcomm-ui/react-core/switch\"\nimport type {IdProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context\"\n\nexport interface SwitchErrorTextProps extends IdProp, InputErrorTextProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: ReactNode\n\n /**\n * An icon to display next to the error text.\n *\n * @default `<AlertCircle />`\n */\n icon?: LucideIconOrElement\n}\n\n/**\n * Error message displayed when the switch is invalid. Renders a `<div>` element by\n * default.\n */\nexport function SwitchErrorText({\n children,\n id,\n ...props\n}: SwitchErrorTextProps): ReactElement {\n const contextProps = useSwitchErrorText({id})\n const qdsContext = useQdsSwitchContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getErrorTextBindings(),\n props,\n )\n\n return (\n <InputErrorText icon={AlertCircle} {...mergedProps}>\n {children}\n </InputErrorText>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ComponentPropsWithRef, ReactElement} from \"react\"\n\nimport {useSwitchHiddenInput} from \"@qualcomm-ui/react-core/switch\"\nimport type {IdProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context\"\n\nexport interface SwitchHiddenInputProps\n extends ComponentPropsWithRef<\"input\">, IdProp {}\n\n/**\n * Hidden input element used for accessibility and form submissions. Renders an\n * `<input>` element. Note: do not apply typical input props like {@link disabled}\n * to this element. Those are applied to the root element and propagated via\n * internal context.\n */\nexport function SwitchHiddenInput({\n id,\n ...props\n}: SwitchHiddenInputProps): ReactElement {\n const contextProps = useSwitchHiddenInput({id})\n const qdsContext = useQdsSwitchContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getHiddenInputBindings(),\n props,\n )\n\n return <input {...mergedProps} />\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {InputHint, type InputHintProps} from \"@qualcomm-ui/react/input\"\nimport {useSwitchHint} from \"@qualcomm-ui/react-core/switch\"\nimport type {IdProp} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context\"\n\nexport interface SwitchHintProps extends IdProp, InputHintProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: ReactNode\n}\n\n/**\n * A help message displayed below the switch. Renders a `<div>` element by\n * default.\n */\nexport function SwitchHint({\n children,\n id,\n ...props\n}: SwitchHintProps): ReactElement {\n const contextProps = useSwitchHint({id})\n const qdsContext = useQdsSwitchContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getHintBindings(),\n props,\n )\n\n return <InputHint {...mergedProps}>{children}</InputHint>\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {useSwitchLabel} from \"@qualcomm-ui/react-core/switch\"\nimport {\n type ElementRenderProp,\n type IdProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {useQdsSwitchContext} from \"./qds-switch-context\"\n\nexport interface SwitchLabelProps extends IdProp, ElementRenderProp<\"span\"> {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: ReactNode\n}\n\n/**\n * An accessible label that is automatically associated with the switch. Renders a\n * `<span>` element by default.\n */\nexport function SwitchLabel({\n children,\n id,\n ...props\n}: SwitchLabelProps): ReactElement {\n const contextProps = useSwitchLabel({id})\n const qdsContext = useQdsSwitchContext()\n const mergedProps = mergeProps(\n contextProps,\n qdsContext.getLabelBindings(),\n props,\n )\n\n return (\n <PolymorphicElement as=\"span\" {...mergedProps}>\n {children}\n </PolymorphicElement>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {type ReactElement, type ReactNode, useMemo} from \"react\"\n\nimport {splitSwitchProps, type SwitchApiProps} from \"@qualcomm-ui/core/switch\"\nimport {\n createQdsSwitchApi,\n type QdsSwitchApiProps,\n} from \"@qualcomm-ui/qds-core/switch\"\nimport {useQdsFieldGroupContext} from \"@qualcomm-ui/react/field-group\"\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 {\n type ElementRenderProp,\n PolymorphicElement,\n} from \"@qualcomm-ui/react-core/system\"\nimport {mergeProps} from \"@qualcomm-ui/utils/merge-props\"\n\nimport {QdsSwitchContextProvider} from \"./qds-switch-context\"\n\nexport interface SwitchRootProps\n extends\n SwitchApiProps,\n QdsSwitchApiProps,\n Omit<ElementRenderProp<\"label\">, \"dir\"> {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children?: ReactNode\n}\n\n/**\n * Groups all parts of the switch. Renders a `<label>` element by default.\n */\nexport function SwitchRoot({\n children,\n id,\n size,\n ...props\n}: SwitchRootProps): ReactElement {\n const [switchProps, localProps] = splitSwitchProps(props)\n const context = useSwitch(switchProps)\n const groupContext = useQdsFieldGroupContext()\n const groupSize = size ?? groupContext?.size\n\n const qdsContext = useMemo(\n () => createQdsSwitchApi({size: groupSize}, normalizeProps),\n [groupSize],\n )\n\n const mergedProps = mergeProps(\n context.getRootBindings({id: useControlledId(id)}),\n qdsContext.getRootBindings(),\n localProps,\n )\n\n return (\n <SwitchContextProvider value={context}>\n <QdsSwitchContextProvider value={qdsContext}>\n <PolymorphicElement as=\"label\" {...mergedProps}>\n {children}\n </PolymorphicElement>\n </QdsSwitchContextProvider>\n </SwitchContextProvider>\n )\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {useOptionalContentId} from \"@qualcomm-ui/react-core/machine\"\nimport {useControlledId} from \"@qualcomm-ui/react-core/state\"\n\nimport {SwitchControl, type SwitchControlProps} from \"./switch-control\"\nimport {SwitchErrorText, type SwitchErrorTextProps} from \"./switch-error-text\"\nimport {\n SwitchHiddenInput,\n type SwitchHiddenInputProps,\n} from \"./switch-hidden-input\"\nimport {SwitchHint, type SwitchHintProps} from \"./switch-hint\"\nimport {SwitchLabel, type SwitchLabelProps} from \"./switch-label\"\nimport {SwitchRoot, type SwitchRootProps} from \"./switch-root\"\nimport {SwitchThumb, type SwitchThumbProps} from \"./switch-thumb\"\n\nexport interface SwitchProps extends SwitchRootProps {\n /**\n * {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label aria-label}\n * attribute, forwarded to the hidden input element.\n */\n \"aria-label\"?: string | undefined\n\n /**\n * {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-labelledby aria-labelledby}\n * attribute, forwarded to the hidden input element. If you provide a {@link\n * label}, omit this prop.\n */\n \"aria-labelledby\"?: string | undefined\n\n /**\n * The simple Switch doesn't support children.\n */\n children?: never\n\n /**\n * Props applied to the control element.\n */\n controlProps?: SwitchControlProps\n\n /**\n * Optional error that describes the element when {@link invalid} is true.\n */\n errorText?: string\n\n /**\n * Props applied to the error text element.\n */\n errorTextProps?: SwitchErrorTextProps\n\n /**\n * Props applied to the hidden input element.\n */\n hiddenInputProps?: SwitchHiddenInputProps\n\n /**\n * Optional hint text that describes the element.\n */\n hint?: ReactNode\n\n /**\n * Props applied to the hint element.\n */\n hintProps?: SwitchHintProps\n\n /**\n * Optional label describing the element. Recommended. This element is\n * automatically associated with the component's input element for\n * accessibility.\n */\n label?: ReactNode\n\n /**\n * Props applied to the label element.\n */\n labelProps?: SwitchLabelProps\n\n /**\n * Props applied to the thumb element.\n */\n thumbProps?: SwitchThumbProps\n}\n\nexport function Switch({\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}: SwitchProps): ReactElement {\n const labelContent = label || labelProps?.children\n const errorTextContent = errorText || errorTextProps?.children\n const hintContent = hint || hintProps?.children\n\n const hiddenInputProps = {\n ...hiddenInputPropsProp,\n }\n\n if (ariaLabel !== undefined) {\n hiddenInputProps[\"aria-label\"] = ariaLabel\n }\n if (ariaLabelledBy !== undefined) {\n hiddenInputProps[\"aria-labelledby\"] = ariaLabelledBy\n }\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\n return (\n <SwitchRoot {...props} ids={ids}>\n <SwitchHiddenInput {...hiddenInputProps} id={ids.hiddenInput} />\n <SwitchControl {...controlProps}>\n <SwitchThumb {...thumbProps} />\n </SwitchControl>\n {labelContent ? (\n <SwitchLabel {...labelProps} id={ids.label}>\n {labelContent}\n </SwitchLabel>\n ) : null}\n {hintContent ? (\n <SwitchHint {...hintProps} id={ids.hint}>\n {hintContent}\n </SwitchHint>\n ) : null}\n {errorTextContent ? (\n <SwitchErrorText {...errorTextProps} id={ids.errorText}>\n {errorTextContent}\n </SwitchErrorText>\n ) : null}\n </SwitchRoot>\n )\n}\n","import {Switch as SimpleSwitch} from \"./switch\"\nimport {SwitchControl, type SwitchControlProps} from \"./switch-control\"\nimport {SwitchErrorText, type SwitchErrorTextProps} from \"./switch-error-text\"\nimport {\n SwitchHiddenInput,\n type SwitchHiddenInputProps,\n} from \"./switch-hidden-input\"\nimport {SwitchHint, type SwitchHintProps} from \"./switch-hint\"\nimport {SwitchLabel, type SwitchLabelProps} from \"./switch-label\"\nimport {SwitchRoot, type SwitchRootProps} from \"./switch-root\"\nimport {SwitchThumb, type SwitchThumbProps} from \"./switch-thumb\"\n\nexport * from \"./qds-switch-context\"\n\nexport type {\n SwitchControlProps,\n SwitchErrorTextProps,\n SwitchHiddenInputProps,\n SwitchHintProps,\n SwitchLabelProps,\n SwitchRootProps,\n SwitchThumbProps,\n}\n\ntype SwitchComponent = typeof SimpleSwitch & {\n Control: typeof SwitchControl\n ErrorText: typeof SwitchErrorText\n HiddenInput: typeof SwitchHiddenInput\n Hint: typeof SwitchHint\n Label: typeof SwitchLabel\n Root: typeof SwitchRoot\n Thumb: typeof SwitchThumb\n}\n\nexport const Switch: SwitchComponent = SimpleSwitch as SwitchComponent\n\nSwitch.Control = SwitchControl\nSwitch.ErrorText = SwitchErrorText\nSwitch.HiddenInput = SwitchHiddenInput\nSwitch.Hint = SwitchHint\nSwitch.Label = SwitchLabel\nSwitch.Root = SwitchRoot\nSwitch.Thumb = SwitchThumb\n"],"mappings":"++BAMA,GAAa,CAACE,EAA0BC,GACtCF,EAAmC,CACjCG,SAAU,sBACVC,aAAc,6BACdC,OAAQ,GACT,CAAC,CCcJ,SAAOU,YAAAC,EAAA,CAAA,IAAAC,EAAAC,EAAA,EAAA,CAAqB,CAAAJ,WAAA,GAAAK,GAAAH,EAM1BM,EAAoBX,EAFCH,GAAgB,CAClBI,GAAqB,CAG5BW,kBAAmB,CAC7BJ,EACD,CAAAK,EAKsB,OALtBP,EAAA,KAAAH,GAAAG,EAAA,KAAAK,GAGCE,EAAA,EAAC,EAAD,CAAuB,GAAA,OAAM,GAAKF,EAC/BR,WACkB,CAAA,CAAAG,EAAA,GAAAH,EAAAG,EAAA,GAAAK,EAAAL,EAAA,GAAAO,GAAAA,EAAAP,EAAA,GAFrBO,ECVJ,SAAgBW,cAAc,CA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2
- import{jsx,jsxs}from"react/jsx-runtime";import{FieldGroupErrorText,FieldGroupHint,FieldGroupItems,FieldGroupLabel,FieldGroupRoot}from"@qualcomm-ui/react/field-group";function SwitchGroup({children,errorText,hint,label,...props}){let showHint=!!hint&&!props.invalid,showError=!!errorText&&props.invalid;return jsxs(FieldGroupRoot,{...props,children:[label&&jsx(FieldGroupLabel,{children:label}),jsx(FieldGroupItems,{children}),showHint&&jsx(FieldGroupHint,{children:hint}),showError&&jsx(FieldGroupErrorText,{children:errorText})]})}SwitchGroup.Root=FieldGroupRoot;SwitchGroup.Label=FieldGroupLabel;SwitchGroup.Items=FieldGroupItems;SwitchGroup.Hint=FieldGroupHint;SwitchGroup.ErrorText=FieldGroupErrorText;export{SwitchGroup};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{FieldGroupErrorText as r,FieldGroupHint as i,FieldGroupItems as a,FieldGroupLabel as o,FieldGroupRoot as s}from"@qualcomm-ui/react/field-group";function SwitchGroup(c){let l=e(22),u,d,f,p,m;l[0]===c?(u=l[1],d=l[2],f=l[3],p=l[4],m=l[5]):({children:u,errorText:d,hint:f,label:p,...m}=c,l[0]=c,l[1]=u,l[2]=d,l[3]=f,l[4]=p,l[5]=m);let h=!!f&&!m.invalid,g=!!d&&m.invalid,_;l[6]===p?_=l[7]:(_=p&&t(o,{children:p}),l[6]=p,l[7]=_);let v;l[8]===u?v=l[9]:(v=t(a,{children:u}),l[8]=u,l[9]=v);let y;l[10]!==f||l[11]!==h?(y=h&&t(i,{children:f}),l[10]=f,l[11]=h,l[12]=y):y=l[12];let b;l[13]!==d||l[14]!==g?(b=g&&t(r,{children:d}),l[13]=d,l[14]=g,l[15]=b):b=l[15];let x;return l[16]!==m||l[17]!==_||l[18]!==v||l[19]!==y||l[20]!==b?(x=n(s,{...m,children:[_,v,y,b]}),l[16]=m,l[17]=_,l[18]=v,l[19]=y,l[20]=b,l[21]=x):x=l[21],x}SwitchGroup.Root=s,SwitchGroup.Label=o,SwitchGroup.Items=a,SwitchGroup.Hint=i,SwitchGroup.ErrorText=r;export{SwitchGroup};
2
+ //# sourceMappingURL=index.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/switch-group/switch-group.tsx"],
4
- "sourcesContent": ["import { jsx, jsxs } from \"react/jsx-runtime\";\nimport { FieldGroupErrorText, FieldGroupHint, FieldGroupItems, FieldGroupLabel, FieldGroupRoot } from \"@qualcomm-ui/react/field-group\";\nexport function SwitchGroup({\n children,\n errorText,\n hint,\n label,\n ...props\n}) {\n const showHint = Boolean(hint) && !props.invalid;\n const showError = Boolean(errorText) && props.invalid;\n return /* @__PURE__ */jsxs(FieldGroupRoot, {\n ...props,\n children: [label && /* @__PURE__ */jsx(FieldGroupLabel, {\n children: label\n }), /* @__PURE__ */jsx(FieldGroupItems, {\n children\n }), showHint && /* @__PURE__ */jsx(FieldGroupHint, {\n children: hint\n }), showError && /* @__PURE__ */jsx(FieldGroupErrorText, {\n children: errorText\n })]\n });\n}\nSwitchGroup.Root = FieldGroupRoot;\nSwitchGroup.Label = FieldGroupLabel;\nSwitchGroup.Items = FieldGroupItems;\nSwitchGroup.Hint = FieldGroupHint;\nSwitchGroup.ErrorText = FieldGroupErrorText;"],
5
- "mappings": ";AAAA,OAAS,IAAK,SAAY,oBAC1B,OAAS,oBAAqB,eAAgB,gBAAiB,gBAAiB,mBAAsB,iCAC/F,SAAS,YAAY,CAC1B,SACA,UACA,KACA,MACA,GAAG,KACL,EAAG,CACD,IAAM,SAAW,EAAQ,MAAS,CAAC,MAAM,QACnC,UAAY,EAAQ,WAAc,MAAM,QAC9C,OAAsB,KAAK,eAAgB,CACzC,GAAG,MACH,SAAU,CAAC,OAAwB,IAAI,gBAAiB,CACtD,SAAU,KACZ,CAAC,EAAkB,IAAI,gBAAiB,CACtC,QACF,CAAC,EAAG,UAA2B,IAAI,eAAgB,CACjD,SAAU,IACZ,CAAC,EAAG,WAA4B,IAAI,oBAAqB,CACvD,SAAU,SACZ,CAAC,CAAC,CACJ,CAAC,CACH,CACA,YAAY,KAAO,eACnB,YAAY,MAAQ,gBACpB,YAAY,MAAQ,gBACpB,YAAY,KAAO,eACnB,YAAY,UAAY",
6
- "names": []
7
- }
1
+ {"version":3,"file":"index.js","names":["ReactElement","ReactNode","FieldGroupErrorText","FieldGroupHint","FieldGroupItems","FieldGroupLabel","FieldGroupRoot","FieldGroupRootProps","SwitchGroupProps","children","errorText","hint","label","SwitchGroup","t0","$","_c","props","showHint","Boolean","invalid","showError","t1","t2","t3","t4","t5","Root","Label","Items","Hint","ErrorText"],"sources":["../../src/switch-group/switch-group.tsx"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {ReactElement, ReactNode} from \"react\"\n\nimport {\n FieldGroupErrorText,\n FieldGroupHint,\n FieldGroupItems,\n FieldGroupLabel,\n FieldGroupRoot,\n type FieldGroupRootProps,\n} from \"@qualcomm-ui/react/field-group\"\n\nexport interface SwitchGroupProps extends FieldGroupRootProps {\n /**\n * React {@link https://react.dev/learn/passing-props-to-a-component#passing-jsx-as-children children} prop.\n */\n children: ReactNode\n\n /**\n * Error message displayed when invalid.\n */\n errorText?: string\n\n /**\n * Helper text displayed below items.\n */\n hint?: string\n\n /**\n * Group label text.\n */\n label?: string\n}\n\n/**\n * Groups multiple switches with a label, hint, and error text.\n */\nexport function SwitchGroup({\n children,\n errorText,\n hint,\n label,\n ...props\n}: SwitchGroupProps): ReactElement {\n const showHint = Boolean(hint) && !props.invalid\n const showError = Boolean(errorText) && props.invalid\n\n return (\n <FieldGroupRoot {...props}>\n {label && <FieldGroupLabel>{label}</FieldGroupLabel>}\n <FieldGroupItems>{children}</FieldGroupItems>\n {showHint && <FieldGroupHint>{hint}</FieldGroupHint>}\n {showError && <FieldGroupErrorText>{errorText}</FieldGroupErrorText>}\n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A,CAAAK,EAAA,IAAAL,EAAAK,EAAA,IAAAM,EAAAN,EAAA,IAAAU,GAAAA,EAAAV,EAAA,IAAA,IAAAW,EACrD,OADqDX,EAAA,MAAAE,GAAAF,EAAA,MAAAO,GAAAP,EAAA,MAAAQ,GAAAR,EAAA,MAAAS,GAAAT,EAAA,MAAAU,GAJtEC,EAAA,EAAC,EAAD,CAAe,GAAKT,WAApB,CACGK,EACDC,EACCC,EACAC,EACc,GAAAV,EAAA,IAAAE,EAAAF,EAAA,IAAAO,EAAAP,EAAA,IAAAQ,EAAAR,EAAA,IAAAS,EAAAT,EAAA,IAAAU,EAAAV,EAAA,IAAAW,GAAAA,EAAAX,EAAA,IALjBW,EASJb,YAAYc,KAAOrB,EACnBO,YAAYe,MAAQvB,EACpBQ,YAAYgB,MAAQzB,EACpBS,YAAYiB,KAAO3B,EACnBU,YAAYkB,UAAY7B"}
@@ -1,3 +1,2 @@
1
- "use client";
2
- import{jsx}from"react/jsx-runtime";import{PolymorphicElement}from"@qualcomm-ui/react-core/system";import{mergeProps}from"@qualcomm-ui/utils/merge-props";import{createQdsTableApi}from"@qualcomm-ui/qds-core/table";import{normalizeProps}from"@qualcomm-ui/react-core/machine";var qdsTableApi=createQdsTableApi(normalizeProps);function TableActionBar({children,...props}){let mergedProps=mergeProps(qdsTableApi.getActionBarBindings(),props);return jsx(PolymorphicElement,{as:"div",...mergedProps,children})}import{jsx as jsx2}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement2}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps2}from"@qualcomm-ui/utils/merge-props";function TableBody(props){let mergedProps=mergeProps2(qdsTableApi.getBodyBindings(),props);return jsx2(PolymorphicElement2,{as:"tbody",...mergedProps})}import{jsx as jsx3}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement3}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps3}from"@qualcomm-ui/utils/merge-props";function TableCell({cell,...props}){let mergedProps=mergeProps3(qdsTableApi.getCellBindings({cell}),props);return jsx3(PolymorphicElement3,{as:"td",...mergedProps})}import{jsx as jsx4}from"react/jsx-runtime";import{InlineIconButton}from"@qualcomm-ui/react/inline-icon-button";import{mergeProps as mergeProps4}from"@qualcomm-ui/utils/merge-props";function TableCellAction(props){let mergedProps=mergeProps4(qdsTableApi.getCellActionBindings(),props);return jsx4(InlineIconButton,{size:"sm",variant:"fixed",...mergedProps})}import{jsx as jsx5}from"react/jsx-runtime";import{GripVertical}from"lucide-react";import{InlineIconButton as InlineIconButton2}from"@qualcomm-ui/react/inline-icon-button";import{mergeProps as mergeProps5}from"@qualcomm-ui/utils/merge-props";function TableColumnDragHandle(props){let mergedProps=mergeProps5(qdsTableApi.getDragHandleBindings(),props);return jsx5(InlineIconButton2,{icon:GripVertical,size:"sm",variant:"fixed",...mergedProps})}import{jsx as jsx10}from"react/jsx-runtime";import{Portal}from"@qualcomm-ui/react-core/portal";import{jsx as jsx6}from"react/jsx-runtime";function flexRender(Comp,props){return Comp?isReactComponent(Comp)?jsx6(Comp,{...props}):Comp:null}function isReactComponent(component){return isClassComponent(component)||typeof component=="function"||isExoticComponent(component)}function isClassComponent(component){return typeof component=="function"&&(()=>{let proto=Object.getPrototypeOf(component);return proto.prototype&&proto.prototype.isReactComponent})()}function isExoticComponent(component){return typeof component=="object"&&typeof component.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(component.$$typeof.description)}import{Fragment,jsx as jsx7}from"react/jsx-runtime";function RenderCell({cell}){return cell.getIsPlaceholder()?null:jsx7(Fragment,{children:flexRender(cell.column.columnDef.cell,cell.getContext())})}import{Fragment as Fragment2,jsx as jsx8}from"react/jsx-runtime";function RenderFooter({footer}){return footer.isPlaceholder?null:jsx8(Fragment2,{children:flexRender(footer.column.columnDef.footer,footer.getContext())})}import{Fragment as Fragment3,jsx as jsx9}from"react/jsx-runtime";function RenderHeader({header}){return header.isPlaceholder?null:jsx9(Fragment3,{children:flexRender(header.column.columnDef.header,header.getContext())})}function TableColumnDragPreview({container,header}){return jsx10(Portal,{container,children:jsx10("div",{...qdsTableApi.getColumnDragPreviewBindings(),children:header.isPlaceholder?null:flexRender(header.column.columnDef.header,header.getContext())})})}import{jsx as jsx11}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement4}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps6}from"@qualcomm-ui/utils/merge-props";function TableColumnDropIndicator({closestEdge,columnIndex,sourceColumnIndex,...props}){let mergedProps=mergeProps6(qdsTableApi.getColumnDropIndicatorBindings({closestEdge,columnIndex,sourceColumnIndex}),props);return jsx11(PolymorphicElement4,{as:"div",...mergedProps})}import{jsx as jsx12}from"react/jsx-runtime";import{Funnel}from"lucide-react";import{InlineIconButton as InlineIconButton3}from"@qualcomm-ui/react/inline-icon-button";import{mergeProps as mergeProps7}from"@qualcomm-ui/utils/merge-props";function TableColumnFilterAction({canFilter:canFilterProp,header,isFiltered,...props}){let canFilter=canFilterProp||header?.column.getCanFilter();if(!canFilter)return null;let mergedProps=mergeProps7(qdsTableApi.getColumnFilterActionBindings({canFilter,header,isFiltered}),props);return jsx12(InlineIconButton3,{icon:Funnel,size:"sm",variant:"fixed",...mergedProps})}import{jsx as jsx13}from"react/jsx-runtime";import{InlineIconButton as InlineIconButton4}from"@qualcomm-ui/react/inline-icon-button";import{mergeProps as mergeProps8}from"@qualcomm-ui/utils/merge-props";function TableColumnHeaderAction(props){let mergedProps=mergeProps8(qdsTableApi.getColumnHeaderActionBindings(),props);return jsx13(InlineIconButton4,{size:"sm",variant:"fixed",...mergedProps})}import{jsx as jsx14}from"react/jsx-runtime";import{UnfoldHorizontal}from"lucide-react";import{InlineIconButton as InlineIconButton5}from"@qualcomm-ui/react/inline-icon-button";import{mergeProps as mergeProps9}from"@qualcomm-ui/utils/merge-props";function TableColumnResizeHandle({header,...props}){let mergedProps=mergeProps9(qdsTableApi.getColumnResizerBindings({header}),props);return jsx14(InlineIconButton5,{icon:UnfoldHorizontal,size:"sm",variant:"fixed",...mergedProps})}import{jsx as jsx15}from"react/jsx-runtime";import{ArrowDownUp,ArrowUp}from"lucide-react";import{InlineIconButton as InlineIconButton6}from"@qualcomm-ui/react/inline-icon-button";import{mergeProps as mergeProps10}from"@qualcomm-ui/utils/merge-props";function TableColumnSortAction({header,...props}){let sortDirection=header.column.getIsSorted();if(!header.column.getCanSort())return null;let mergedProps=mergeProps10(qdsTableApi.getColumnSortActionBindings({header}),props);return jsx15(InlineIconButton6,{icon:sortDirection?ArrowUp:ArrowDownUp,size:"sm",variant:"fixed",...mergedProps})}import{jsx as jsx16}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement5}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps11}from"@qualcomm-ui/utils/merge-props";function TableFooter(props){let mergedProps=mergeProps11(qdsTableApi.getFooterBindings(),props);return jsx16(PolymorphicElement5,{as:"tfoot",...mergedProps})}import{jsx as jsx17}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement6}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps12}from"@qualcomm-ui/utils/merge-props";function TableHeader(props){let mergedProps=mergeProps12(qdsTableApi.getHeaderBindings(),props);return jsx17(PolymorphicElement6,{as:"thead",...mergedProps})}import{jsx as jsx18}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement7}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps13}from"@qualcomm-ui/utils/merge-props";function TableHeaderCell({columnIndex,isDragging,isDraggingOver,isResizing,...props}){let mergedProps=mergeProps13(qdsTableApi.getHeaderCellBindings({columnIndex,isDragging,isDraggingOver,isResizing}),props);return jsx18(PolymorphicElement7,{as:"th",...mergedProps})}import{jsx as jsx19}from"react/jsx-runtime";import{Pagination}from"@qualcomm-ui/react/pagination";import{mergeProps as mergeProps14}from"@qualcomm-ui/utils/merge-props";function TablePagination({...props}){let mergedProps=mergeProps14(qdsTableApi.getPaginationBindings(),props);return jsx19(Pagination.Root,{...mergedProps})}import{jsx as jsx20}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement8}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps15}from"@qualcomm-ui/utils/merge-props";function TableRoot({showColumnDivider,size,...props}){let mergedProps=mergeProps15(qdsTableApi.getRootBindings({showColumnDivider,size}),props);return jsx20(PolymorphicElement8,{as:"div",...mergedProps})}import{jsx as jsx21}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement9}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps16}from"@qualcomm-ui/utils/merge-props";function TableRow({isDragging,isDraggingOver,isSelected,...props}){let mergedProps=mergeProps16(qdsTableApi.getRowBindings({isDragging,isDraggingOver,isSelected}),props);return jsx21(PolymorphicElement9,{as:"tr",...mergedProps})}import{jsx as jsx22}from"react/jsx-runtime";import{GripHorizontal}from"lucide-react";import{InlineIconButton as InlineIconButton7}from"@qualcomm-ui/react/inline-icon-button";import{mergeProps as mergeProps17}from"@qualcomm-ui/utils/merge-props";function TableRowDragHandle(props){let mergedProps=mergeProps17(qdsTableApi.getDragHandleBindings(),props);return jsx22(InlineIconButton7,{icon:GripHorizontal,size:"sm",variant:"fixed",...mergedProps})}import{jsx as jsx23}from"react/jsx-runtime";import{Portal as Portal2}from"@qualcomm-ui/react-core/portal";function TableRowDragPreview({container,row}){return jsx23(Portal2,{container,children:jsx23("div",{...qdsTableApi.getRowDragPreviewBindings(),children:row.getVisibleCells().map(cell=>jsx23("div",{children:flexRender(cell.column.columnDef.cell,cell.getContext())},cell.id))})})}import{jsx as jsx24}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement10}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps18}from"@qualcomm-ui/utils/merge-props";function TableRowDropIndicator({closestEdge,rowIndex,sourceIndex,...props}){let mergedProps=mergeProps18(qdsTableApi.getRowDropIndicatorBindings({closestEdge,rowIndex,sourceIndex}),props);return jsx24(PolymorphicElement10,{as:"div",...mergedProps})}import{jsx as jsx25}from"react/jsx-runtime";import{ChevronRight}from"lucide-react";import{InlineIconButton as InlineIconButton8}from"@qualcomm-ui/react/inline-icon-button";import{mergeProps as mergeProps19}from"@qualcomm-ui/utils/merge-props";function TableRowExpandButton({row,...props}){let mergedProps=mergeProps19(qdsTableApi.getRowExpandButtonBindings({row}),props);return jsx25(InlineIconButton8,{icon:ChevronRight,size:"sm",variant:"fixed",...mergedProps})}import{jsx as jsx26}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement11}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps20}from"@qualcomm-ui/utils/merge-props";function TableScrollContainer({children,...props}){let mergedProps=mergeProps20(qdsTableApi.getScrollContainerBindings(),props);return jsx26(PolymorphicElement11,{as:"div",...mergedProps,children})}import{jsx as jsx27}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement12}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps21}from"@qualcomm-ui/utils/merge-props";function TableTable(props){let mergedProps=mergeProps21(qdsTableApi.getTableBindings(),props);return jsx27(PolymorphicElement12,{as:"table",...mergedProps})}import{jsx as jsx28}from"react/jsx-runtime";import{PolymorphicElement as PolymorphicElement13}from"@qualcomm-ui/react-core/system";import{mergeProps as mergeProps22}from"@qualcomm-ui/utils/merge-props";function TableTitleBar({children,...props}){let mergedProps=mergeProps22(qdsTableApi.getTitleBarBindings(),props);return jsx28(PolymorphicElement13,{as:"div",...mergedProps,children})}import{useEffect,useRef,useState}from"react";import{createTable}from"@qualcomm-ui/core/table";function useReactTable(options){let resolvedOptions={onStateChange:()=>{},renderFallbackValue:null,state:{},...options},[tableRef]=useState(()=>({current:createTable(resolvedOptions)})),[state,setState]=useState(()=>tableRef.current.initialState),mountedRef=useRef(!1);return useEffect(()=>(mountedRef.current=!0,()=>{mountedRef.current=!1}),[]),tableRef.current.setOptions(prev=>({...prev,...options,onStateChange:updater=>{mountedRef.current&&(setState(updater),options.onStateChange?.(updater))},state:{...state,...options.state}})),tableRef.current}import{useEffect as useEffect2,useRef as useRef2,useState as useState2}from"react";import{createTable as createTable2}from"@qualcomm-ui/core/table";function useReactTableCompilerCompat_unstable(options){"use no memo";let resolvedOptions={onStateChange:()=>{},renderFallbackValue:null,state:{},...options},table=createTable2(resolvedOptions),[state,setState]=useState2(()=>table.initialState),mountedRef=useRef2(!1);return useEffect2(()=>(mountedRef.current=!0,()=>{mountedRef.current=!1}),[]),table.setOptions(prev=>({...prev,...options,onStateChange:updater=>{mountedRef.current&&(setState(updater),options.onStateChange?.(updater))},state:{...state,...options.state}})),table}import{defined}from"@qualcomm-ui/utils/guard";function useTablePagination(table,opts={}){return{count:defined(opts.totalCount)?opts.totalCount:Math.ceil(table.getPageCount()*table.getState().pagination.pageSize),onPageChange:page=>table.setPageIndex(page-1),onPageSizeChange:pageSize=>table.setPageSize(pageSize),page:table.getState().pagination.pageIndex+1,pageSize:table.getState().pagination.pageSize}}var Table={ActionBar:TableActionBar,Body:TableBody,Cell:TableCell,CellAction:TableCellAction,ColumnDragHandle:TableColumnDragHandle,ColumnDragPreview:TableColumnDragPreview,ColumnDropIndicator:TableColumnDropIndicator,ColumnFilterAction:TableColumnFilterAction,ColumnHeaderAction:TableColumnHeaderAction,ColumnResizeHandle:TableColumnResizeHandle,ColumnSortAction:TableColumnSortAction,Footer:TableFooter,Header:TableHeader,HeaderCell:TableHeaderCell,Pagination:TablePagination,Root:TableRoot,Row:TableRow,RowDragHandle:TableRowDragHandle,RowDragPreview:TableRowDragPreview,RowDropIndicator:TableRowDropIndicator,RowExpandButton:TableRowExpandButton,ScrollContainer:TableScrollContainer,Table:TableTable,TitleBar:TableTitleBar};export{RenderCell,RenderFooter,RenderHeader,Table,flexRender,qdsTableApi,useReactTable,useReactTableCompilerCompat_unstable,useTablePagination};
3
- //# sourceMappingURL=index.js.map
1
+ "use client;";import{c as e}from"react/compiler-runtime";import{mergeProps as t}from"@qualcomm-ui/utils/merge-props";import{Fragment as n,jsx as r}from"react/jsx-runtime";import{PolymorphicElement as i}from"@qualcomm-ui/react-core/system";import{ArrowDownUp as a,ArrowUp as o,ChevronRight as s,Funnel as c,GripHorizontal as l,GripVertical as u,UnfoldHorizontal as d}from"lucide-react";import{useEffect as f,useRef as p,useState as m}from"react";import{normalizeProps as h}from"@qualcomm-ui/react-core/machine";import{Portal as g}from"@qualcomm-ui/react-core/portal";import{InlineIconButton as _}from"@qualcomm-ui/react/inline-icon-button";import{createQdsTableApi as v}from"@qualcomm-ui/qds-core/table";import{Pagination as y}from"@qualcomm-ui/react/pagination";import{createTable as b}from"@qualcomm-ui/core/table";import{defined as x}from"@qualcomm-ui/utils/guard";var S=v(h);function TableActionBar(n){let a=e(6),o,s;if(a[0]!==n){let{children:e,...r}=n;o=e,s=t(S.getActionBarBindings(),r),a[0]=n,a[1]=o,a[2]=s}else o=a[1],s=a[2];let c=s,l;return a[3]!==o||a[4]!==c?(l=r(i,{as:`div`,...c,children:o}),a[3]=o,a[4]=c,a[5]=l):l=a[5],l}function TableBody(n){let a=e(4),o;a[0]===n?o=a[1]:(o=t(S.getBodyBindings(),n),a[0]=n,a[1]=o);let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`tbody`,...s}),a[2]=s,a[3]=c),c}function TableCell(n){let a=e(4),o;if(a[0]!==n){let{cell:e,...r}=n;o=t(S.getCellBindings({cell:e}),r),a[0]=n,a[1]=o}else o=a[1];let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`td`,...s}),a[2]=s,a[3]=c),c}function TableCellAction(n){let i=e(4),a;i[0]===n?a=i[1]:(a=t(S.getCellActionBindings(),n),i[0]=n,i[1]=a);let o=a,s;return i[2]===o?s=i[3]:(s=r(_,{size:`sm`,variant:`fixed`,...o}),i[2]=o,i[3]=s),s}function TableColumnDragHandle(n){let i=e(4),a;i[0]===n?a=i[1]:(a=t(S.getDragHandleBindings(),n),i[0]=n,i[1]=a);let o=a,s;return i[2]===o?s=i[3]:(s=r(_,{icon:u,size:`sm`,variant:`fixed`,...o}),i[2]=o,i[3]=s),s}function flexRender(e,t){return e?isReactComponent(e)?r(e,{...t}):e:null}function isReactComponent(e){return isClassComponent(e)||typeof e==`function`||isExoticComponent(e)}function isClassComponent(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function isExoticComponent(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function RenderCell(t){let i=e(2),{cell:a}=t,o;return i[0]===a?o=i[1]:(o=a.getIsPlaceholder()?null:r(n,{children:flexRender(a.column.columnDef.cell,a.getContext())}),i[0]=a,i[1]=o),o}function RenderFooter(t){let i=e(2),{footer:a}=t,o;return i[0]===a?o=i[1]:(o=a.isPlaceholder?null:r(n,{children:flexRender(a.column.columnDef.footer,a.getContext())}),i[0]=a,i[1]=o),o}function RenderHeader(t){let i=e(2),{header:a}=t,o;return i[0]===a?o=i[1]:(o=a.isPlaceholder?null:r(n,{children:flexRender(a.column.columnDef.header,a.getContext())}),i[0]=a,i[1]=o),o}function TableColumnDragPreview(t){let n=e(8),{container:i,header:a}=t,o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=S.getColumnDragPreviewBindings(),n[0]=o):o=n[0];let s;n[1]===a?s=n[2]:(s=a.isPlaceholder?null:flexRender(a.column.columnDef.header,a.getContext()),n[1]=a,n[2]=s);let c;n[3]===s?c=n[4]:(c=r(`div`,{...o,children:s}),n[3]=s,n[4]=c);let l;return n[5]!==i||n[6]!==c?(l=r(g,{container:i,children:c}),n[5]=i,n[6]=c,n[7]=l):l=n[7],l}function TableColumnDropIndicator(n){let a=e(4),o;if(a[0]!==n){let{closestEdge:e,columnIndex:r,sourceColumnIndex:i,...s}=n;o=t(S.getColumnDropIndicatorBindings({closestEdge:e,columnIndex:r,sourceColumnIndex:i}),s),a[0]=n,a[1]=o}else o=a[1];let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`div`,...s}),a[2]=s,a[3]=c),c}function TableColumnFilterAction(n){let i=e(5),a,o;if(i[0]!==n){o=Symbol.for(`react.early_return_sentinel`);bb0:{let{canFilter:e,header:r,isFiltered:i,...s}=n,c=e||r?.column.getCanFilter();if(!c){o=null;break bb0}a=t(S.getColumnFilterActionBindings({canFilter:c,header:r,isFiltered:i}),s)}i[0]=n,i[1]=a,i[2]=o}else a=i[1],o=i[2];if(o!==Symbol.for(`react.early_return_sentinel`))return o;let s=a,l;return i[3]===s?l=i[4]:(l=r(_,{icon:c,size:`sm`,variant:`fixed`,...s}),i[3]=s,i[4]=l),l}function TableColumnHeaderAction(n){let i=e(4),a;i[0]===n?a=i[1]:(a=t(S.getColumnHeaderActionBindings(),n),i[0]=n,i[1]=a);let o=a,s;return i[2]===o?s=i[3]:(s=r(_,{size:`sm`,variant:`fixed`,...o}),i[2]=o,i[3]=s),s}function TableColumnResizeHandle(n){let i=e(4),a;if(i[0]!==n){let{header:e,...r}=n;a=t(S.getColumnResizerBindings({header:e}),r),i[0]=n,i[1]=a}else a=i[1];let o=a,s;return i[2]===o?s=i[3]:(s=r(_,{icon:d,size:`sm`,variant:`fixed`,...o}),i[2]=o,i[3]=s),s}function TableColumnSortAction(n){let i=e(7),s,c,l;if(i[0]!==n){l=Symbol.for(`react.early_return_sentinel`);bb0:{let{header:e,...r}=n;if(s=e.column.getIsSorted(),!e.column.getCanSort()){l=null;break bb0}c=t(S.getColumnSortActionBindings({header:e}),r)}i[0]=n,i[1]=s,i[2]=c,i[3]=l}else s=i[1],c=i[2],l=i[3];if(l!==Symbol.for(`react.early_return_sentinel`))return l;let u=c,d=s?o:a,f;return i[4]!==u||i[5]!==d?(f=r(_,{icon:d,size:`sm`,variant:`fixed`,...u}),i[4]=u,i[5]=d,i[6]=f):f=i[6],f}function TableFooter(n){let a=e(4),o;a[0]===n?o=a[1]:(o=t(S.getFooterBindings(),n),a[0]=n,a[1]=o);let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`tfoot`,...s}),a[2]=s,a[3]=c),c}function TableHeader(n){let a=e(4),o;a[0]===n?o=a[1]:(o=t(S.getHeaderBindings(),n),a[0]=n,a[1]=o);let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`thead`,...s}),a[2]=s,a[3]=c),c}function TableHeaderCell(n){let a=e(4),o;if(a[0]!==n){let{columnIndex:e,isDragging:r,isDraggingOver:i,isResizing:s,...c}=n;o=t(S.getHeaderCellBindings({columnIndex:e,isDragging:r,isDraggingOver:i,isResizing:s}),c),a[0]=n,a[1]=o}else o=a[1];let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`th`,...s}),a[2]=s,a[3]=c),c}function TablePagination(n){let i=e(4),a;if(i[0]!==n){let{...e}=n;a=t(S.getPaginationBindings(),e),i[0]=n,i[1]=a}else a=i[1];let o=a,s;return i[2]===o?s=i[3]:(s=r(y.Root,{...o}),i[2]=o,i[3]=s),s}function TableRoot(n){let a=e(4),o;if(a[0]!==n){let{showColumnDivider:e,size:r,...i}=n;o=t(S.getRootBindings({showColumnDivider:e,size:r}),i),a[0]=n,a[1]=o}else o=a[1];let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`div`,...s}),a[2]=s,a[3]=c),c}function TableRow(n){let a=e(4),o;if(a[0]!==n){let{isDragging:e,isDraggingOver:r,isSelected:i,...s}=n;o=t(S.getRowBindings({isDragging:e,isDraggingOver:r,isSelected:i}),s),a[0]=n,a[1]=o}else o=a[1];let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`tr`,...s}),a[2]=s,a[3]=c),c}function TableRowDragHandle(n){let i=e(4),a;i[0]===n?a=i[1]:(a=t(S.getDragHandleBindings(),n),i[0]=n,i[1]=a);let o=a,s;return i[2]===o?s=i[3]:(s=r(_,{icon:l,size:`sm`,variant:`fixed`,...o}),i[2]=o,i[3]=s),s}function TableRowDragPreview(t){let n=e(8),{container:i,row:a}=t,o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=S.getRowDragPreviewBindings(),n[0]=o):o=n[0];let s;n[1]===a?s=n[2]:(s=a.getVisibleCells().map(_temp),n[1]=a,n[2]=s);let c;n[3]===s?c=n[4]:(c=r(`div`,{...o,children:s}),n[3]=s,n[4]=c);let l;return n[5]!==i||n[6]!==c?(l=r(g,{container:i,children:c}),n[5]=i,n[6]=c,n[7]=l):l=n[7],l}function _temp(e){return r(`div`,{children:flexRender(e.column.columnDef.cell,e.getContext())},e.id)}function TableRowDropIndicator(n){let a=e(4),o;if(a[0]!==n){let{closestEdge:e,rowIndex:r,sourceIndex:i,...s}=n;o=t(S.getRowDropIndicatorBindings({closestEdge:e,rowIndex:r,sourceIndex:i}),s),a[0]=n,a[1]=o}else o=a[1];let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`div`,...s}),a[2]=s,a[3]=c),c}function TableRowExpandButton(n){let i=e(4),a;if(i[0]!==n){let{row:e,...r}=n;a=t(S.getRowExpandButtonBindings({row:e}),r),i[0]=n,i[1]=a}else a=i[1];let o=a,c;return i[2]===o?c=i[3]:(c=r(_,{icon:s,size:`sm`,variant:`fixed`,...o}),i[2]=o,i[3]=c),c}function TableScrollContainer(n){let a=e(6),o,s;if(a[0]!==n){let{children:e,...r}=n;o=e,s=t(S.getScrollContainerBindings(),r),a[0]=n,a[1]=o,a[2]=s}else o=a[1],s=a[2];let c=s,l;return a[3]!==o||a[4]!==c?(l=r(i,{as:`div`,...c,children:o}),a[3]=o,a[4]=c,a[5]=l):l=a[5],l}function TableTable(n){let a=e(4),o;a[0]===n?o=a[1]:(o=t(S.getTableBindings(),n),a[0]=n,a[1]=o);let s=o,c;return a[2]===s?c=a[3]:(c=r(i,{as:`table`,...s}),a[2]=s,a[3]=c),c}function TableTitleBar(n){let a=e(6),o,s;if(a[0]!==n){let{children:e,...r}=n;o=e,s=t(S.getTitleBarBindings(),r),a[0]=n,a[1]=o,a[2]=s}else o=a[1],s=a[2];let c=s,l;return a[3]!==o||a[4]!==c?(l=r(i,{as:`div`,...c,children:o}),a[3]=o,a[4]=c,a[5]=l):l=a[5],l}function useReactTable(e){let t={onStateChange:()=>{},renderFallbackValue:null,state:{},...e},[n]=m(()=>({current:b(t)})),[r,i]=m(()=>n.current.initialState),a=p(!1);return f(()=>(a.current=!0,()=>{a.current=!1}),[]),n.current.setOptions(t=>({...t,...e,onStateChange:t=>{a.current&&(i(t),e.onStateChange?.(t))},state:{...r,...e.state}})),n.current}function useReactTableCompilerCompat_unstable(e){"use no memo";let t=b({onStateChange:()=>{},renderFallbackValue:null,state:{},...e}),[n,r]=m(()=>t.initialState),i=p(!1);return f(()=>(i.current=!0,()=>{i.current=!1}),[]),t.setOptions(t=>({...t,...e,onStateChange:t=>{i.current&&(r(t),e.onStateChange?.(t))},state:{...n,...e.state}})),t}function useTablePagination(e,t={}){return{count:x(t.totalCount)?t.totalCount:Math.ceil(e.getPageCount()*e.getState().pagination.pageSize),onPageChange:t=>e.setPageIndex(t-1),onPageSizeChange:t=>e.setPageSize(t),page:e.getState().pagination.pageIndex+1,pageSize:e.getState().pagination.pageSize}}var C={ActionBar:TableActionBar,Body:TableBody,Cell:TableCell,CellAction:TableCellAction,ColumnDragHandle:TableColumnDragHandle,ColumnDragPreview:TableColumnDragPreview,ColumnDropIndicator:TableColumnDropIndicator,ColumnFilterAction:TableColumnFilterAction,ColumnHeaderAction:TableColumnHeaderAction,ColumnResizeHandle:TableColumnResizeHandle,ColumnSortAction:TableColumnSortAction,Footer:TableFooter,Header:TableHeader,HeaderCell:TableHeaderCell,Pagination:TablePagination,Root:TableRoot,Row:TableRow,RowDragHandle:TableRowDragHandle,RowDragPreview:TableRowDragPreview,RowDropIndicator:TableRowDropIndicator,RowExpandButton:TableRowExpandButton,ScrollContainer:TableScrollContainer,Table:TableTable,TitleBar:TableTitleBar};export{RenderCell,RenderFooter,RenderHeader,C as Table,flexRender,S as qdsTableApi,useReactTable,useReactTableCompilerCompat_unstable,useTablePagination};
2
+ //# sourceMappingURL=index.js.map