@purpur/library 9.0.8 → 9.0.10

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 (206) hide show
  1. package/CHANGELOG.json +42 -0
  2. package/CHANGELOG.md +21 -1
  3. package/dist/LICENSE.txt +7 -7
  4. package/dist/{autocomplete-DJ3zbA0m.mjs → autocomplete-Dn503hFM.mjs} +2 -2
  5. package/dist/{autocomplete-DJ3zbA0m.mjs.map → autocomplete-Dn503hFM.mjs.map} +1 -1
  6. package/dist/{autocomplete-B_OBQM2h.js → autocomplete-Dy8YL7Mo.js} +2 -2
  7. package/dist/{autocomplete-B_OBQM2h.js.map → autocomplete-Dy8YL7Mo.js.map} +1 -1
  8. package/dist/autocomplete.cjs.js +1 -1
  9. package/dist/autocomplete.es.js +1 -1
  10. package/dist/button-Cv7NlYbv.mjs +109 -0
  11. package/dist/button-Cv7NlYbv.mjs.map +1 -0
  12. package/dist/button-Dqxdc3nC.js +2 -0
  13. package/dist/button-Dqxdc3nC.js.map +1 -0
  14. package/dist/button.cjs.js +1 -1
  15. package/dist/button.es.js +1 -1
  16. package/dist/{calendar-BSdvi_DA.js → calendar-C-F-pVCe.js} +2 -2
  17. package/dist/{calendar-BSdvi_DA.js.map → calendar-C-F-pVCe.js.map} +1 -1
  18. package/dist/{calendar-9p_aA7KY.mjs → calendar-DWpnuylk.mjs} +2 -2
  19. package/dist/{calendar-9p_aA7KY.mjs.map → calendar-DWpnuylk.mjs.map} +1 -1
  20. package/dist/calendar.cjs.js +1 -1
  21. package/dist/calendar.es.js +1 -1
  22. package/dist/components/button/src/button.d.ts +66 -3
  23. package/dist/components/button/src/button.d.ts.map +1 -1
  24. package/dist/components/drawer/src/drawer-container.d.ts +2 -0
  25. package/dist/components/drawer/src/drawer-container.d.ts.map +1 -1
  26. package/dist/components/drawer/src/drawer-content.d.ts.map +1 -1
  27. package/dist/components/drawer/src/drawer-frame.d.ts +2 -1
  28. package/dist/components/drawer/src/drawer-frame.d.ts.map +1 -1
  29. package/dist/components/drawer/src/drawer-handle.d.ts +2 -1
  30. package/dist/components/drawer/src/drawer-handle.d.ts.map +1 -1
  31. package/dist/components/drawer/src/drawer-header.d.ts +2 -0
  32. package/dist/components/drawer/src/drawer-header.d.ts.map +1 -1
  33. package/dist/components/drawer/src/drawer-scroll-area.d.ts +2 -0
  34. package/dist/components/drawer/src/drawer-scroll-area.d.ts.map +1 -1
  35. package/dist/components/drawer/src/drawer.context.d.ts +6 -2
  36. package/dist/components/drawer/src/drawer.context.d.ts.map +1 -1
  37. package/dist/components/drawer/src/drawer.d.ts +3 -0
  38. package/dist/components/drawer/src/drawer.d.ts.map +1 -1
  39. package/dist/components/drawer/src/types.d.ts +1 -0
  40. package/dist/components/drawer/src/types.d.ts.map +1 -1
  41. package/dist/components/notification/src/notification.d.ts +2 -1
  42. package/dist/components/notification/src/notification.d.ts.map +1 -1
  43. package/dist/components-metadata.js +1 -0
  44. package/dist/{date-field-Ch2lM7-P.mjs → date-field-DACXrowI.mjs} +2 -2
  45. package/dist/{date-field-Ch2lM7-P.mjs.map → date-field-DACXrowI.mjs.map} +1 -1
  46. package/dist/{date-field-DTI5mQkg.js → date-field-Z3LKO4b7.js} +2 -2
  47. package/dist/{date-field-DTI5mQkg.js.map → date-field-Z3LKO4b7.js.map} +1 -1
  48. package/dist/date-field.cjs.js +1 -1
  49. package/dist/date-field.es.js +1 -1
  50. package/dist/{date-picker-Dk39IXG5.js → date-picker-5Gr_cEqA.js} +2 -2
  51. package/dist/{date-picker-Dk39IXG5.js.map → date-picker-5Gr_cEqA.js.map} +1 -1
  52. package/dist/{date-picker-Bt3IaH23.mjs → date-picker-CdVUA8NC.mjs} +4 -4
  53. package/dist/{date-picker-Bt3IaH23.mjs.map → date-picker-CdVUA8NC.mjs.map} +1 -1
  54. package/dist/date-picker.cjs.js +1 -1
  55. package/dist/date-picker.es.js +1 -1
  56. package/dist/drawer-UdK-u7IX.js +2 -0
  57. package/dist/drawer-UdK-u7IX.js.map +1 -0
  58. package/dist/drawer-Vi9H2O3N.mjs +562 -0
  59. package/dist/drawer-Vi9H2O3N.mjs.map +1 -0
  60. package/dist/drawer.cjs.js +1 -1
  61. package/dist/drawer.es.js +1 -1
  62. package/dist/{hero-banner-B5HKmkXc.mjs → hero-banner-BjwICxaJ.mjs} +2 -2
  63. package/dist/{hero-banner-B5HKmkXc.mjs.map → hero-banner-BjwICxaJ.mjs.map} +1 -1
  64. package/dist/{hero-banner-OnNSuxNT.js → hero-banner-yGRM4OlS.js} +2 -2
  65. package/dist/{hero-banner-OnNSuxNT.js.map → hero-banner-yGRM4OlS.js.map} +1 -1
  66. package/dist/hero-banner.cjs.js +1 -1
  67. package/dist/hero-banner.es.js +1 -1
  68. package/dist/illustrative-icon/assets/json/cart-checkmark-duocolor-animated.json.d.ts +1 -1
  69. package/dist/illustrative-icon/assets/json/cart-checkmark-offblack-animated.json.d.ts +1 -1
  70. package/dist/illustrative-icon/assets/json/checkmark-duocolor-animated.json.d.ts +1 -1
  71. package/dist/illustrative-icon/assets/json/checkmark-offblack-animated.json.d.ts +1 -1
  72. package/dist/illustrative-icon/assets/json/document-checkmark-duocolor-animated.json.d.ts +1 -1
  73. package/dist/illustrative-icon/assets/json/document-checkmark-offblack-animated.json.d.ts +1 -1
  74. package/dist/illustrative-icon/assets/json/support-checkmark-duocolor-animated.json.d.ts +1 -1
  75. package/dist/illustrative-icon/assets/json/support-checkmark-offblack-animated.json.d.ts +1 -1
  76. package/dist/illustrative-icon/assets/json/user-checkmark-duocolor-animated.json.d.ts +1 -1
  77. package/dist/illustrative-icon/assets/json/user-checkmark-offblack-animated.json.d.ts +1 -1
  78. package/dist/illustrative-icon/components/cart-checkmark-duocolor-animated.cjs.js +1 -1
  79. package/dist/illustrative-icon/components/cart-checkmark-duocolor-animated.cjs.js.map +1 -1
  80. package/dist/illustrative-icon/components/cart-checkmark-duocolor-animated.es.js +1 -1
  81. package/dist/illustrative-icon/components/cart-checkmark-offblack-animated.cjs.js +1 -1
  82. package/dist/illustrative-icon/components/cart-checkmark-offblack-animated.cjs.js.map +1 -1
  83. package/dist/illustrative-icon/components/cart-checkmark-offblack-animated.es.js +1 -1
  84. package/dist/illustrative-icon/components/checkmark-duocolor-animated.cjs.js +1 -1
  85. package/dist/illustrative-icon/components/checkmark-duocolor-animated.cjs.js.map +1 -1
  86. package/dist/illustrative-icon/components/checkmark-duocolor-animated.es.js +1 -1
  87. package/dist/illustrative-icon/components/checkmark-offblack-animated.cjs.js +1 -1
  88. package/dist/illustrative-icon/components/checkmark-offblack-animated.cjs.js.map +1 -1
  89. package/dist/illustrative-icon/components/checkmark-offblack-animated.es.js +1 -1
  90. package/dist/illustrative-icon/components/document-checkmark-duocolor-animated.cjs.js +2 -2
  91. package/dist/illustrative-icon/components/document-checkmark-duocolor-animated.es.js +2 -2
  92. package/dist/illustrative-icon/components/document-checkmark-offblack-animated.cjs.js +2 -2
  93. package/dist/illustrative-icon/components/document-checkmark-offblack-animated.es.js +2 -2
  94. package/dist/illustrative-icon/components/support-checkmark-duocolor-animated.cjs.js +1 -1
  95. package/dist/illustrative-icon/components/support-checkmark-duocolor-animated.cjs.js.map +1 -1
  96. package/dist/illustrative-icon/components/support-checkmark-duocolor-animated.es.js +1 -1
  97. package/dist/illustrative-icon/components/support-checkmark-offblack-animated.cjs.js +1 -1
  98. package/dist/illustrative-icon/components/support-checkmark-offblack-animated.cjs.js.map +1 -1
  99. package/dist/illustrative-icon/components/support-checkmark-offblack-animated.es.js +1 -1
  100. package/dist/illustrative-icon/components/user-checkmark-duocolor-animated.cjs.js +1 -1
  101. package/dist/illustrative-icon/components/user-checkmark-duocolor-animated.es.js +1 -1
  102. package/dist/illustrative-icon/components/user-checkmark-offblack-animated.cjs.js +1 -1
  103. package/dist/illustrative-icon/components/user-checkmark-offblack-animated.es.js +1 -1
  104. package/dist/libraries/theme/src/theme-props.d.ts +1 -0
  105. package/dist/libraries/theme/src/theme-props.d.ts.map +1 -1
  106. package/dist/libraries/tokens/dist/border/variables.d.ts +1 -0
  107. package/dist/libraries/tokens/dist/border/variables.dark.d.ts +1 -0
  108. package/dist/library.cjs.js +1 -1
  109. package/dist/library.es.js +465 -464
  110. package/dist/{modal-CQiJ98iI.js → modal-DMeRO1wE.js} +2 -2
  111. package/dist/{modal-CQiJ98iI.js.map → modal-DMeRO1wE.js.map} +1 -1
  112. package/dist/{modal-B1eJu9HN.mjs → modal-fTWvPEPW.mjs} +2 -2
  113. package/dist/{modal-B1eJu9HN.mjs.map → modal-fTWvPEPW.mjs.map} +1 -1
  114. package/dist/modal.cjs.js +1 -1
  115. package/dist/modal.es.js +1 -1
  116. package/dist/{notification-BtcM7Ndu.mjs → notification-BvoL7BIW.mjs} +60 -51
  117. package/dist/notification-BvoL7BIW.mjs.map +1 -0
  118. package/dist/notification-DE1pvk9W.js +2 -0
  119. package/dist/notification-DE1pvk9W.js.map +1 -0
  120. package/dist/{notification-banner-CbKcE7o4.mjs → notification-banner-C4gkkSlf.mjs} +2 -2
  121. package/dist/{notification-banner-CbKcE7o4.mjs.map → notification-banner-C4gkkSlf.mjs.map} +1 -1
  122. package/dist/{notification-banner-B0CUuKZn.js → notification-banner-COH7wJu2.js} +2 -2
  123. package/dist/{notification-banner-B0CUuKZn.js.map → notification-banner-COH7wJu2.js.map} +1 -1
  124. package/dist/notification-banner.cjs.js +1 -1
  125. package/dist/notification-banner.es.js +1 -1
  126. package/dist/notification.cjs.js +1 -1
  127. package/dist/notification.es.js +1 -1
  128. package/dist/{popover-D6k4-oO1.js → popover-BnUVNqSi.js} +2 -2
  129. package/dist/{popover-D6k4-oO1.js.map → popover-BnUVNqSi.js.map} +1 -1
  130. package/dist/{popover-D3b2gHm-.mjs → popover-lxTyKALA.mjs} +2 -2
  131. package/dist/{popover-D3b2gHm-.mjs.map → popover-lxTyKALA.mjs.map} +1 -1
  132. package/dist/popover.cjs.js +1 -1
  133. package/dist/popover.es.js +1 -1
  134. package/dist/purpur.css +1 -1
  135. package/dist/{quantity-selector-Bc-4Dnpc.js → quantity-selector-D28He6R8.js} +2 -2
  136. package/dist/{quantity-selector-Bc-4Dnpc.js.map → quantity-selector-D28He6R8.js.map} +1 -1
  137. package/dist/{quantity-selector-Djf8APeL.mjs → quantity-selector-w10wKMmT.mjs} +3 -3
  138. package/dist/{quantity-selector-Djf8APeL.mjs.map → quantity-selector-w10wKMmT.mjs.map} +1 -1
  139. package/dist/quantity-selector.cjs.js +1 -1
  140. package/dist/quantity-selector.es.js +1 -1
  141. package/dist/{search-field-0CBoxcNH.js → search-field-CNpJp3Tg.js} +2 -2
  142. package/dist/{search-field-0CBoxcNH.js.map → search-field-CNpJp3Tg.js.map} +1 -1
  143. package/dist/{search-field-aP_i6Nr0.mjs → search-field-CWqLnqdo.mjs} +3 -3
  144. package/dist/{search-field-aP_i6Nr0.mjs.map → search-field-CWqLnqdo.mjs.map} +1 -1
  145. package/dist/search-field.cjs.js +1 -1
  146. package/dist/search-field.es.js +1 -1
  147. package/dist/{stepper-CTdGj87I.mjs → stepper-B351hexi.mjs} +3 -3
  148. package/dist/{stepper-CTdGj87I.mjs.map → stepper-B351hexi.mjs.map} +1 -1
  149. package/dist/{stepper-BaoOY4Ea.js → stepper-Cb4_9D2h.js} +2 -2
  150. package/dist/{stepper-BaoOY4Ea.js.map → stepper-Cb4_9D2h.js.map} +1 -1
  151. package/dist/stepper.cjs.js +1 -1
  152. package/dist/stepper.es.js +1 -1
  153. package/dist/{table-TdOPMFoP.js → table-CJijBJsy.js} +2 -2
  154. package/dist/{table-TdOPMFoP.js.map → table-CJijBJsy.js.map} +1 -1
  155. package/dist/{table-D7qthqj_.mjs → table-YR-bpfU0.mjs} +5 -5
  156. package/dist/{table-D7qthqj_.mjs.map → table-YR-bpfU0.mjs.map} +1 -1
  157. package/dist/table.cjs.js +1 -1
  158. package/dist/table.es.js +1 -1
  159. package/dist/{text-field-9zPmL99g.mjs → text-field-BMDf8j-K.mjs} +2 -2
  160. package/dist/{text-field-9zPmL99g.mjs.map → text-field-BMDf8j-K.mjs.map} +1 -1
  161. package/dist/{text-field-CKCwxTJX.js → text-field-CiLEj0Fq.js} +2 -2
  162. package/dist/{text-field-CKCwxTJX.js.map → text-field-CiLEj0Fq.js.map} +1 -1
  163. package/dist/text-field.cjs.js +1 -1
  164. package/dist/text-field.es.js +1 -1
  165. package/dist/tokens/border/variables.css +1 -0
  166. package/dist/tokens/border/variables.d.ts +1 -0
  167. package/dist/tokens/border/variables.dark.css +1 -0
  168. package/dist/tokens/border/variables.dark.d.ts +1 -0
  169. package/dist/tokens/border/variables.dark.js +1 -0
  170. package/dist/tokens/border/variables.dark.json +1 -0
  171. package/dist/tokens/border/variables.dark.scss +1 -0
  172. package/dist/tokens/border/variables.js +1 -0
  173. package/dist/tokens/border/variables.json +1 -0
  174. package/dist/tokens/border/variables.scss +1 -0
  175. package/dist/tokens.cjs.js +1 -1
  176. package/dist/tokens.cjs.js.map +1 -1
  177. package/dist/tokens.es.js +337 -336
  178. package/dist/tokens.es.js.map +1 -1
  179. package/dist/{tooltip-BtGtu3ph.mjs → tooltip-BHsVKFJ3.mjs} +2 -2
  180. package/dist/{tooltip-BtGtu3ph.mjs.map → tooltip-BHsVKFJ3.mjs.map} +1 -1
  181. package/dist/{tooltip-eUP35j3v.js → tooltip-B_qTqtcF.js} +2 -2
  182. package/dist/{tooltip-eUP35j3v.js.map → tooltip-B_qTqtcF.js.map} +1 -1
  183. package/dist/tooltip.cjs.js +1 -1
  184. package/dist/tooltip.es.js +1 -1
  185. package/package.json +21 -21
  186. package/tokens/border/variables.css +1 -0
  187. package/tokens/border/variables.d.ts +1 -0
  188. package/tokens/border/variables.dark.css +1 -0
  189. package/tokens/border/variables.dark.d.ts +1 -0
  190. package/tokens/border/variables.dark.js +1 -0
  191. package/tokens/border/variables.dark.json +1 -0
  192. package/tokens/border/variables.dark.scss +1 -0
  193. package/tokens/border/variables.js +1 -0
  194. package/tokens/border/variables.json +1 -0
  195. package/tokens/border/variables.scss +1 -0
  196. package/dist/button-BxdChrq-.js +0 -2
  197. package/dist/button-BxdChrq-.js.map +0 -1
  198. package/dist/button-D-BBdNhd.mjs +0 -105
  199. package/dist/button-D-BBdNhd.mjs.map +0 -1
  200. package/dist/drawer-B6j8nfAY.mjs +0 -530
  201. package/dist/drawer-B6j8nfAY.mjs.map +0 -1
  202. package/dist/drawer-CJsLdd2x.js +0 -2
  203. package/dist/drawer-CJsLdd2x.js.map +0 -1
  204. package/dist/notification-BtcM7Ndu.mjs.map +0 -1
  205. package/dist/notification-Dsg3Vzfi.js +0 -2
  206. package/dist/notification-Dsg3Vzfi.js.map +0 -1
package/dist/table.cjs.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./table-TdOPMFoP.js");exports.Table=e.Table;exports.createColumnHelper=e.createColumnHelper;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./table-CJijBJsy.js");exports.Table=e.Table;exports.createColumnHelper=e.createColumnHelper;
2
2
  //# sourceMappingURL=table.cjs.js.map
package/dist/table.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { T as r, c as l } from "./table-D7qthqj_.mjs";
1
+ import { T as r, c as l } from "./table-YR-bpfU0.mjs";
2
2
  export {
3
3
  r as Table,
4
4
  l as createColumnHelper
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as u } from "react/jsx-runtime";
2
2
  import { useRef as T, forwardRef as k, useId as B, isValidElement as H } from "react";
3
- import { b as L } from "./button-D-BBdNhd.mjs";
3
+ import { b as L } from "./button-Cv7NlYbv.mjs";
4
4
  import { F as M } from "./field-error-text-CBSX8dGx.mjs";
5
5
  import { F as S } from "./field-helper-text-C5ee4SFV.mjs";
6
6
  import { r as D } from "./check-circle-filled.es-umBwOv5_.mjs";
@@ -182,4 +182,4 @@ export {
182
182
  C as T,
183
183
  _e as i
184
184
  };
185
- //# sourceMappingURL=text-field-9zPmL99g.mjs.map
185
+ //# sourceMappingURL=text-field-BMDf8j-K.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field-9zPmL99g.mjs","sources":["../../../components/text-field/src/utils.ts","../../../components/text-field/src/text-field.tsx"],"sourcesContent":["import { type MutableRefObject, useRef } from \"react\";\n\nexport const useMutableRefObject = <T>(value: T): MutableRefObject<T> => {\n return useRef<T>(value) as MutableRefObject<T>;\n};\n","import React, {\n forwardRef,\n type HTMLInputTypeAttribute,\n isValidElement,\n type ReactElement,\n type ReactNode,\n useId,\n} from \"react\";\nimport { Button } from \"@purpur/button\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { FieldErrorText } from \"@purpur/field-error-text\";\nimport { FieldHelperText } from \"@purpur/field-helper-text\";\nimport { IconCheckCircleFilled } from \"@purpur/icon/check-circle-filled\";\nimport { IconClose } from \"@purpur/icon/close\";\nimport { Label } from \"@purpur/label\";\nimport { Spinner } from \"@purpur/spinner\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./text-field.module.scss\";\nimport { useMutableRefObject } from \"./utils\";\n\ntype TextFieldBaseProps = {\n /**\n * Use to display e.g. a button before the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n beforeField?: ReactNode;\n /**\n * Use to display e.g. a button after the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n afterField?: ReactNode;\n /**\n * Use to display e.g. an icon at the end inside of the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n endAdornment?: ReactNode;\n /**\n * Use to render error message below the text field. The text field renders with error appearance.\n * */\n errorText?: string;\n /**\n * Use to give context about the field's input. Renders below the field.\n * */\n helperText?: string;\n /**\n * The label of the text field.\n * */\n label?: string;\n /**\n * Use to render a spinner at the end inside of the text field.\n */\n loading?: boolean;\n /**\n * Hide the asterisk for required fields.\n * This is useful when the field is required but the context already indicates that.\n */\n hideRequiredAsterisk?: boolean;\n /**\n * Use to display e.g. an icon at the start inside of the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n startAdornment?: ReactNode;\n /**\n * Use to set the type of the field.\n */\n type?: Extract<\n HTMLInputTypeAttribute,\n \"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\"\n >;\n /**\n * Use to render text field with valid appearance. A check\n * icon will render at the start inside of the input.\n */\n valid?: boolean;\n negative?: boolean;\n};\n\ntype TextFieldClearProps =\n | {\n /**\n * An accessible label for the clear button.\n * */\n clearButtonAriaLabel: string;\n /**\n * Event handler called when the clear button is clicked.\n * */\n onClear: () => void;\n }\n | {\n /**\n * An accessible label for the clear button.\n * */\n clearButtonAriaLabel?: never;\n /**\n * Event handler called when the clear button is clicked.\n * */\n onClear?: never;\n };\n\nexport type TextFieldProps = Omit<BaseProps<\"input\">, \"type\"> &\n TextFieldBaseProps &\n TextFieldClearProps;\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-text-field\";\n\nexport const TextField = forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n [\"data-testid\"]: dataTestId,\n className,\n clearButtonAriaLabel,\n beforeField,\n afterField,\n endAdornment,\n errorText,\n helperText,\n hideRequiredAsterisk = false,\n label,\n loading = false,\n onClear,\n startAdornment,\n valid = false,\n negative = false,\n ...inputProps\n },\n ref\n ) => {\n const randomId = useId();\n const inputId = inputProps.id ?? randomId;\n const getTestId = (name: string) => (dataTestId ? `${dataTestId}-${name}` : undefined);\n const isValid = valid && !errorText;\n const helperTextId = helperText ? `${inputId}-helper-text` : undefined;\n const startAdornments: ReactNode[] = [startAdornment].filter((adornment) => !!adornment);\n const hasValue =\n typeof inputProps.value === \"number\"\n ? inputProps.value !== undefined\n : inputProps.value?.length;\n const hasClearButton =\n hasValue &&\n !inputProps.disabled &&\n !inputProps.readOnly &&\n !loading &&\n onClear &&\n clearButtonAriaLabel;\n\n const internalRef = useMutableRefObject<HTMLInputElement | null>(null);\n const setRef = (node: HTMLInputElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n };\n const handleClear = () => {\n onClear?.();\n internalRef.current?.focus();\n };\n\n const localEndAdornments: ReactNode[] = [\n loading && (\n <Spinner\n key=\"spinner\"\n disabled={inputProps.disabled}\n size=\"xs\"\n data-testid={getTestId(\"spinner\")}\n negative={negative}\n />\n ),\n hasClearButton && (\n <Button\n negative={negative}\n key=\"clear-button\"\n variant=\"tertiary-purple\"\n onClick={handleClear}\n iconOnly\n aria-label={clearButtonAriaLabel ?? \"\"}\n data-testid={getTestId(\"clear-button\")}\n tabIndex={-1}\n >\n <IconClose size=\"xs\" />\n </Button>\n ),\n isValid && (\n <IconCheckCircleFilled\n key=\"valid-icon\"\n data-testid={getTestId(\"valid-icon\")}\n className={cx(`${rootClassName}__valid-icon`, {\n [`${rootClassName}__valid-icon--negative`]: negative,\n })}\n />\n ),\n ].filter((adornment) => !!adornment);\n\n const inputContainerClassnames = cx(`${rootClassName}__input-container`, {\n [`${rootClassName}__input-container--start-adornment`]: startAdornments.length,\n [`${rootClassName}__input-container--end-adornment`]:\n localEndAdornments.length || endAdornment,\n [`${rootClassName}__input-container--disabled`]: inputProps.disabled,\n [`${rootClassName}__input-container--has-clear-button`]: hasClearButton,\n [`${rootClassName}__input-container--readonly`]: inputProps.readOnly && !inputProps.disabled,\n [`${rootClassName}__input-container--negative`]: negative,\n });\n\n return (\n <div className={cx(className, rootClassName)}>\n {label && (\n <Label\n htmlFor={inputId}\n className={cx(`${rootClassName}__label`)}\n data-testid={getTestId(\"label\")}\n disabled={inputProps.disabled}\n negative={negative}\n >\n {inputProps.required && !hideRequiredAsterisk && <span aria-hidden>*</span>}\n {label}\n </Label>\n )}\n <div className={cx(`${rootClassName}__field-row`)}>\n {!!beforeField && beforeField}\n <div className={inputContainerClassnames}>\n {!!startAdornments.length && (\n <div\n data-testid={getTestId(\"start-adornments\")}\n className={cx(`${rootClassName}__adornment-container`)}\n >\n {startAdornments}\n </div>\n )}\n <input\n {...inputProps}\n id={inputId}\n ref={setRef}\n data-testid={getTestId(\"input\")}\n aria-describedby={inputProps[\"aria-describedby\"] || helperTextId}\n aria-invalid={inputProps[\"aria-invalid\"] || !!errorText}\n className={cx([\n `${rootClassName}__input`,\n {\n [`${rootClassName}__input--valid`]: isValid,\n [`${rootClassName}__input--error`]: !!errorText,\n [`${rootClassName}__input--negative`]: negative,\n },\n ])}\n />\n <div\n className={cx(`${rootClassName}__frame`, {\n [`${rootClassName}__frame--negative`]: negative,\n })}\n />\n {(!!localEndAdornments.length || endAdornment) && (\n <div\n data-testid={getTestId(\"end-adornments\")}\n className={cx(`${rootClassName}__adornment-container`)}\n >\n {localEndAdornments}\n {endAdornment}\n </div>\n )}\n </div>\n {!!afterField && afterField}\n </div>\n {helperTextId && (\n <FieldHelperText\n data-testid={getTestId(\"helper-text\")}\n id={helperTextId}\n negative={negative}\n disabled={inputProps.disabled}\n >\n {helperText}\n </FieldHelperText>\n )}\n {errorText && (\n <FieldErrorText data-testid={getTestId(\"error-text\")} negative={negative}>\n {errorText}\n </FieldErrorText>\n )}\n </div>\n );\n }\n);\n\nTextField.displayName = \"TextField\";\n\nexport const isTextField = (child?: ReactNode): child is ReactElement<TextFieldProps> =>\n isValidElement<TextFieldProps>(child) &&\n (child.type as any).displayName === TextField.displayName; // eslint-disable-line @typescript-eslint/no-explicit-any\n"],"names":["useMutableRefObject","value","useRef","cx","c","styles","rootClassName","TextField","forwardRef","dataTestId","className","clearButtonAriaLabel","beforeField","afterField","endAdornment","errorText","helperText","hideRequiredAsterisk","label","loading","onClear","startAdornment","valid","negative","inputProps","ref","randomId","useId","inputId","getTestId","name","isValid","helperTextId","startAdornments","adornment","hasClearButton","internalRef","setRef","node","handleClear","localEndAdornments","jsx","Spinner","Button","IconClose","IconCheckCircleFilled","inputContainerClassnames","jsxs","Label","FieldHelperText","FieldErrorText","isTextField","child","isValidElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEaA,IAAsB,CAAIC,MAC9BC,EAAUD,CAAK,GCyGl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;AAAA,UAAA;AAAA,WAED,CAAC,CAACiB,EAAmB,UAAU1B,MAC/B,gBAAAiC;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,eAAalB,EAAU,gBAAgB;AAAA,cACvC,WAAW1B,EAAG,GAAGG,CAAa,uBAAuB;AAAA,cAEpD,UAAA;AAAA,gBAAAkC;AAAA,gBACA1B;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACH,GAEJ;AAAA,QACC,CAAC,CAACD,KAAcA;AAAA,MAAA,GACnB;AAAA,MACCmB,KACC,gBAAAS;AAAA,QAACQ;AAAA,QAAA;AAAA,UACC,eAAapB,EAAU,aAAa;AAAA,UACpC,IAAIG;AAAA,UACJ,UAAAT;AAAA,UACA,UAAUC,EAAW;AAAA,UAEpB,UAAAR;AAAA,QAAA;AAAA,MAAA;AAAA,MAGJD,uBACEmC,GAAA,EAAe,eAAarB,EAAU,YAAY,GAAG,UAAAN,GACnD,UAAAR,EAAA,CACH;AAAA,IAAA,GAEJ;AAAA,EAEJ;AACF;AAEAR,EAAU,cAAc;AAEjB,MAAM4C,KAAc,CAACC,MAC1BC,EAA+BD,CAAK,KACnCA,EAAM,KAAa,gBAAgB7C,EAAU;"}
1
+ {"version":3,"file":"text-field-BMDf8j-K.mjs","sources":["../../../components/text-field/src/utils.ts","../../../components/text-field/src/text-field.tsx"],"sourcesContent":["import { type MutableRefObject, useRef } from \"react\";\n\nexport const useMutableRefObject = <T>(value: T): MutableRefObject<T> => {\n return useRef<T>(value) as MutableRefObject<T>;\n};\n","import React, {\n forwardRef,\n type HTMLInputTypeAttribute,\n isValidElement,\n type ReactElement,\n type ReactNode,\n useId,\n} from \"react\";\nimport { Button } from \"@purpur/button\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { FieldErrorText } from \"@purpur/field-error-text\";\nimport { FieldHelperText } from \"@purpur/field-helper-text\";\nimport { IconCheckCircleFilled } from \"@purpur/icon/check-circle-filled\";\nimport { IconClose } from \"@purpur/icon/close\";\nimport { Label } from \"@purpur/label\";\nimport { Spinner } from \"@purpur/spinner\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./text-field.module.scss\";\nimport { useMutableRefObject } from \"./utils\";\n\ntype TextFieldBaseProps = {\n /**\n * Use to display e.g. a button before the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n beforeField?: ReactNode;\n /**\n * Use to display e.g. a button after the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n afterField?: ReactNode;\n /**\n * Use to display e.g. an icon at the end inside of the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n endAdornment?: ReactNode;\n /**\n * Use to render error message below the text field. The text field renders with error appearance.\n * */\n errorText?: string;\n /**\n * Use to give context about the field's input. Renders below the field.\n * */\n helperText?: string;\n /**\n * The label of the text field.\n * */\n label?: string;\n /**\n * Use to render a spinner at the end inside of the text field.\n */\n loading?: boolean;\n /**\n * Hide the asterisk for required fields.\n * This is useful when the field is required but the context already indicates that.\n */\n hideRequiredAsterisk?: boolean;\n /**\n * Use to display e.g. an icon at the start inside of the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n startAdornment?: ReactNode;\n /**\n * Use to set the type of the field.\n */\n type?: Extract<\n HTMLInputTypeAttribute,\n \"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\"\n >;\n /**\n * Use to render text field with valid appearance. A check\n * icon will render at the start inside of the input.\n */\n valid?: boolean;\n negative?: boolean;\n};\n\ntype TextFieldClearProps =\n | {\n /**\n * An accessible label for the clear button.\n * */\n clearButtonAriaLabel: string;\n /**\n * Event handler called when the clear button is clicked.\n * */\n onClear: () => void;\n }\n | {\n /**\n * An accessible label for the clear button.\n * */\n clearButtonAriaLabel?: never;\n /**\n * Event handler called when the clear button is clicked.\n * */\n onClear?: never;\n };\n\nexport type TextFieldProps = Omit<BaseProps<\"input\">, \"type\"> &\n TextFieldBaseProps &\n TextFieldClearProps;\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-text-field\";\n\nexport const TextField = forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n [\"data-testid\"]: dataTestId,\n className,\n clearButtonAriaLabel,\n beforeField,\n afterField,\n endAdornment,\n errorText,\n helperText,\n hideRequiredAsterisk = false,\n label,\n loading = false,\n onClear,\n startAdornment,\n valid = false,\n negative = false,\n ...inputProps\n },\n ref\n ) => {\n const randomId = useId();\n const inputId = inputProps.id ?? randomId;\n const getTestId = (name: string) => (dataTestId ? `${dataTestId}-${name}` : undefined);\n const isValid = valid && !errorText;\n const helperTextId = helperText ? `${inputId}-helper-text` : undefined;\n const startAdornments: ReactNode[] = [startAdornment].filter((adornment) => !!adornment);\n const hasValue =\n typeof inputProps.value === \"number\"\n ? inputProps.value !== undefined\n : inputProps.value?.length;\n const hasClearButton =\n hasValue &&\n !inputProps.disabled &&\n !inputProps.readOnly &&\n !loading &&\n onClear &&\n clearButtonAriaLabel;\n\n const internalRef = useMutableRefObject<HTMLInputElement | null>(null);\n const setRef = (node: HTMLInputElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n };\n const handleClear = () => {\n onClear?.();\n internalRef.current?.focus();\n };\n\n const localEndAdornments: ReactNode[] = [\n loading && (\n <Spinner\n key=\"spinner\"\n disabled={inputProps.disabled}\n size=\"xs\"\n data-testid={getTestId(\"spinner\")}\n negative={negative}\n />\n ),\n hasClearButton && (\n <Button\n negative={negative}\n key=\"clear-button\"\n variant=\"tertiary-purple\"\n onClick={handleClear}\n iconOnly\n aria-label={clearButtonAriaLabel ?? \"\"}\n data-testid={getTestId(\"clear-button\")}\n tabIndex={-1}\n >\n <IconClose size=\"xs\" />\n </Button>\n ),\n isValid && (\n <IconCheckCircleFilled\n key=\"valid-icon\"\n data-testid={getTestId(\"valid-icon\")}\n className={cx(`${rootClassName}__valid-icon`, {\n [`${rootClassName}__valid-icon--negative`]: negative,\n })}\n />\n ),\n ].filter((adornment) => !!adornment);\n\n const inputContainerClassnames = cx(`${rootClassName}__input-container`, {\n [`${rootClassName}__input-container--start-adornment`]: startAdornments.length,\n [`${rootClassName}__input-container--end-adornment`]:\n localEndAdornments.length || endAdornment,\n [`${rootClassName}__input-container--disabled`]: inputProps.disabled,\n [`${rootClassName}__input-container--has-clear-button`]: hasClearButton,\n [`${rootClassName}__input-container--readonly`]: inputProps.readOnly && !inputProps.disabled,\n [`${rootClassName}__input-container--negative`]: negative,\n });\n\n return (\n <div className={cx(className, rootClassName)}>\n {label && (\n <Label\n htmlFor={inputId}\n className={cx(`${rootClassName}__label`)}\n data-testid={getTestId(\"label\")}\n disabled={inputProps.disabled}\n negative={negative}\n >\n {inputProps.required && !hideRequiredAsterisk && <span aria-hidden>*</span>}\n {label}\n </Label>\n )}\n <div className={cx(`${rootClassName}__field-row`)}>\n {!!beforeField && beforeField}\n <div className={inputContainerClassnames}>\n {!!startAdornments.length && (\n <div\n data-testid={getTestId(\"start-adornments\")}\n className={cx(`${rootClassName}__adornment-container`)}\n >\n {startAdornments}\n </div>\n )}\n <input\n {...inputProps}\n id={inputId}\n ref={setRef}\n data-testid={getTestId(\"input\")}\n aria-describedby={inputProps[\"aria-describedby\"] || helperTextId}\n aria-invalid={inputProps[\"aria-invalid\"] || !!errorText}\n className={cx([\n `${rootClassName}__input`,\n {\n [`${rootClassName}__input--valid`]: isValid,\n [`${rootClassName}__input--error`]: !!errorText,\n [`${rootClassName}__input--negative`]: negative,\n },\n ])}\n />\n <div\n className={cx(`${rootClassName}__frame`, {\n [`${rootClassName}__frame--negative`]: negative,\n })}\n />\n {(!!localEndAdornments.length || endAdornment) && (\n <div\n data-testid={getTestId(\"end-adornments\")}\n className={cx(`${rootClassName}__adornment-container`)}\n >\n {localEndAdornments}\n {endAdornment}\n </div>\n )}\n </div>\n {!!afterField && afterField}\n </div>\n {helperTextId && (\n <FieldHelperText\n data-testid={getTestId(\"helper-text\")}\n id={helperTextId}\n negative={negative}\n disabled={inputProps.disabled}\n >\n {helperText}\n </FieldHelperText>\n )}\n {errorText && (\n <FieldErrorText data-testid={getTestId(\"error-text\")} negative={negative}>\n {errorText}\n </FieldErrorText>\n )}\n </div>\n );\n }\n);\n\nTextField.displayName = \"TextField\";\n\nexport const isTextField = (child?: ReactNode): child is ReactElement<TextFieldProps> =>\n isValidElement<TextFieldProps>(child) &&\n (child.type as any).displayName === TextField.displayName; // eslint-disable-line @typescript-eslint/no-explicit-any\n"],"names":["useMutableRefObject","value","useRef","cx","c","styles","rootClassName","TextField","forwardRef","dataTestId","className","clearButtonAriaLabel","beforeField","afterField","endAdornment","errorText","helperText","hideRequiredAsterisk","label","loading","onClear","startAdornment","valid","negative","inputProps","ref","randomId","useId","inputId","getTestId","name","isValid","helperTextId","startAdornments","adornment","hasClearButton","internalRef","setRef","node","handleClear","localEndAdornments","jsx","Spinner","Button","IconClose","IconCheckCircleFilled","inputContainerClassnames","jsxs","Label","FieldHelperText","FieldErrorText","isTextField","child","isValidElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEaA,IAAsB,CAAIC,MAC9BC,EAAUD,CAAK,GCyGlBE,IAAKC,EAAE,KAAKC,CAAM,GAClBC,IAAgB,qBAETC,IAAYC;AAAA,EACvB,CACE;AAAA,IACE,CAAC,gBAAgBC;AAAA,IACjB,WAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,sBAAAC,IAAuB;AAAA,IACvB,OAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,SAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,OAAAC,IAAQ;AAAA,IACR,UAAAC,IAAW;AAAA,IACX,GAAGC;AAAA,EAAA,GAELC,MACG;AACH,UAAMC,IAAWC,EAAA,GACXC,IAAUJ,EAAW,MAAME,GAC3BG,IAAY,CAACC,MAAkBrB,IAAa,GAAGA,CAAU,IA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EmC,GAAA,EAAe,eAAarB,EAAU,YAAY,GAAG,UAAAN,GACnD,UAAAR,EAAA,CACH;AAAA,IAAA,GAEJ;AAAA,EAEJ;AACF;AAEAR,EAAU,cAAc;AAEjB,MAAM4C,KAAc,CAACC,MAC1BC,EAA+BD,CAAK,KACnCA,EAAM,KAAa,gBAAgB7C,EAAU;"}
@@ -1,2 +1,2 @@
1
- "use strict";const n=require("react/jsx-runtime"),s=require("react"),k=require("./button-BxdChrq-.js"),z=require("./field-error-text-FhQulSV5.js"),H=require("./field-helper-text-DSKO-Tce.js"),B=require("./check-circle-filled.es-5-GXE9l4.js"),M=require("./close.es-VL3lKi1O.js"),S=require("./label-yHK80hhV.js"),D=require("./spinner-tKunS_o-.js"),G=require("./bind-DeUYJ6m9.js"),J={"purpur-text-field":"_purpur-text-field_1n0q1_1","purpur-text-field__label":"_purpur-text-field__label_1n0q1_7","purpur-text-field__label-text":"_purpur-text-field__label-text_1n0q1_12","purpur-text-field__field-row":"_purpur-text-field__field-row_1n0q1_15","purpur-text-field__frame":"_purpur-text-field__frame_1n0q1_19","purpur-text-field__frame--negative":"_purpur-text-field__frame--negative_1n0q1_26","purpur-text-field__input-container":"_purpur-text-field__input-container_1n0q1_29","purpur-text-field__input-container--disabled":"_purpur-text-field__input-container--disabled_1n0q1_40","purpur-text-field__input-container--readonly":"_purpur-text-field__input-container--readonly_1n0q1_43","purpur-text-field__input-container--has-clear-button":"_purpur-text-field__input-container--has-clear-button_1n0q1_46","purpur-text-field__input-container--end-adornment":"_purpur-text-field__input-container--end-adornment_1n0q1_49","purpur-text-field__input":"_purpur-text-field__input_1n0q1_29","purpur-text-field__input-container--start-adornment":"_purpur-text-field__input-container--start-adornment_1n0q1_55","purpur-text-field__input-container--negative":"_purpur-text-field__input-container--negative_1n0q1_61","purpur-text-field__input--valid":"_purpur-text-field__input--valid_1n0q1_109","purpur-text-field__input--error":"_purpur-text-field__input--error_1n0q1_109","purpur-text-field__input--negative":"_purpur-text-field__input--negative_1n0q1_130","purpur-text-field__adornment-container":"_purpur-text-field__adornment-container_1n0q1_146","purpur-text-field__valid-icon":"_purpur-text-field__valid-icon_1n0q1_151","purpur-text-field__valid-icon--negative":"_purpur-text-field__valid-icon--negative_1n0q1_154"},K=d=>s.useRef(d),_=G.c.bind(J),e="purpur-text-field",m=s.forwardRef(({["data-testid"]:d,className:R,clearButtonAriaLabel:b,beforeField:q,afterField:v,endAdornment:p,errorText:l,helperText:h,hideRequiredAsterisk:C=!1,label:$,loading:j=!1,onClear:y,startAdornment:I,valid:T=!1,negative:i=!1,...t},u)=>{const w=s.useId(),c=t.id??w,r=a=>d?`${d}-${a}`:void 0,N=T&&!l,o=h?`${c}-helper-text`:void 0,x=[I].filter(a=>!!a),g=(typeof t.value=="number"?t.value!==void 0:t.value?.length)&&!t.disabled&&!t.readOnly&&!j&&y&&b,F=K(null),E=a=>{F.current=a,typeof u=="function"?u(a):u&&(u.current=a)},O=()=>{y?.(),F.current?.focus()},f=[j&&n.jsx(D.Spinner,{disabled:t.disabled,size:"xs","data-testid":r("spinner"),negative:i},"spinner"),g&&n.jsx(k.Button,{negative:i,variant:"tertiary-purple",onClick:O,iconOnly:!0,"aria-label":b??"","data-testid":r("clear-button"),tabIndex:-1,children:n.jsx(M.r,{size:"xs"})},"clear-button"),N&&n.jsx(B.r,{"data-testid":r("valid-icon"),className:_(`${e}__valid-icon`,{[`${e}__valid-icon--negative`]:i})},"valid-icon")].filter(a=>!!a),V=_(`${e}__input-container`,{[`${e}__input-container--start-adornment`]:x.length,[`${e}__input-container--end-adornment`]:f.length||p,[`${e}__input-container--disabled`]:t.disabled,[`${e}__input-container--has-clear-button`]:g,[`${e}__input-container--readonly`]:t.readOnly&&!t.disabled,[`${e}__input-container--negative`]:i});return n.jsxs("div",{className:_(R,e),children:[$&&n.jsxs(S.Label,{htmlFor:c,className:_(`${e}__label`),"data-testid":r("label"),disabled:t.disabled,negative:i,children:[t.required&&!C&&n.jsx("span",{"aria-hidden":!0,children:"*"}),$]}),n.jsxs("div",{className:_(`${e}__field-row`),children:[!!q&&q,n.jsxs("div",{className:V,children:[!!x.length&&n.jsx("div",{"data-testid":r("start-adornments"),className:_(`${e}__adornment-container`),children:x}),n.jsx("input",{...t,id:c,ref:E,"data-testid":r("input"),"aria-describedby":t["aria-describedby"]||o,"aria-invalid":t["aria-invalid"]||!!l,className:_([`${e}__input`,{[`${e}__input--valid`]:N,[`${e}__input--error`]:!!l,[`${e}__input--negative`]:i}])}),n.jsx("div",{className:_(`${e}__frame`,{[`${e}__frame--negative`]:i})}),(!!f.length||p)&&n.jsxs("div",{"data-testid":r("end-adornments"),className:_(`${e}__adornment-container`),children:[f,p]})]}),!!v&&v]}),o&&n.jsx(H.FieldHelperText,{"data-testid":r("helper-text"),id:o,negative:i,disabled:t.disabled,children:h}),l&&n.jsx(z.FieldErrorText,{"data-testid":r("error-text"),negative:i,children:l})]})});m.displayName="TextField";const L=d=>s.isValidElement(d)&&d.type.displayName===m.displayName;exports.TextField=m;exports.isTextField=L;
2
- //# sourceMappingURL=text-field-CKCwxTJX.js.map
1
+ "use strict";const n=require("react/jsx-runtime"),s=require("react"),k=require("./button-Dqxdc3nC.js"),z=require("./field-error-text-FhQulSV5.js"),H=require("./field-helper-text-DSKO-Tce.js"),B=require("./check-circle-filled.es-5-GXE9l4.js"),M=require("./close.es-VL3lKi1O.js"),S=require("./label-yHK80hhV.js"),D=require("./spinner-tKunS_o-.js"),G=require("./bind-DeUYJ6m9.js"),J={"purpur-text-field":"_purpur-text-field_1n0q1_1","purpur-text-field__label":"_purpur-text-field__label_1n0q1_7","purpur-text-field__label-text":"_purpur-text-field__label-text_1n0q1_12","purpur-text-field__field-row":"_purpur-text-field__field-row_1n0q1_15","purpur-text-field__frame":"_purpur-text-field__frame_1n0q1_19","purpur-text-field__frame--negative":"_purpur-text-field__frame--negative_1n0q1_26","purpur-text-field__input-container":"_purpur-text-field__input-container_1n0q1_29","purpur-text-field__input-container--disabled":"_purpur-text-field__input-container--disabled_1n0q1_40","purpur-text-field__input-container--readonly":"_purpur-text-field__input-container--readonly_1n0q1_43","purpur-text-field__input-container--has-clear-button":"_purpur-text-field__input-container--has-clear-button_1n0q1_46","purpur-text-field__input-container--end-adornment":"_purpur-text-field__input-container--end-adornment_1n0q1_49","purpur-text-field__input":"_purpur-text-field__input_1n0q1_29","purpur-text-field__input-container--start-adornment":"_purpur-text-field__input-container--start-adornment_1n0q1_55","purpur-text-field__input-container--negative":"_purpur-text-field__input-container--negative_1n0q1_61","purpur-text-field__input--valid":"_purpur-text-field__input--valid_1n0q1_109","purpur-text-field__input--error":"_purpur-text-field__input--error_1n0q1_109","purpur-text-field__input--negative":"_purpur-text-field__input--negative_1n0q1_130","purpur-text-field__adornment-container":"_purpur-text-field__adornment-container_1n0q1_146","purpur-text-field__valid-icon":"_purpur-text-field__valid-icon_1n0q1_151","purpur-text-field__valid-icon--negative":"_purpur-text-field__valid-icon--negative_1n0q1_154"},K=d=>s.useRef(d),_=G.c.bind(J),e="purpur-text-field",m=s.forwardRef(({["data-testid"]:d,className:R,clearButtonAriaLabel:b,beforeField:q,afterField:v,endAdornment:p,errorText:l,helperText:h,hideRequiredAsterisk:C=!1,label:$,loading:j=!1,onClear:y,startAdornment:I,valid:T=!1,negative:i=!1,...t},u)=>{const w=s.useId(),c=t.id??w,r=a=>d?`${d}-${a}`:void 0,N=T&&!l,o=h?`${c}-helper-text`:void 0,x=[I].filter(a=>!!a),g=(typeof t.value=="number"?t.value!==void 0:t.value?.length)&&!t.disabled&&!t.readOnly&&!j&&y&&b,F=K(null),E=a=>{F.current=a,typeof u=="function"?u(a):u&&(u.current=a)},O=()=>{y?.(),F.current?.focus()},f=[j&&n.jsx(D.Spinner,{disabled:t.disabled,size:"xs","data-testid":r("spinner"),negative:i},"spinner"),g&&n.jsx(k.Button,{negative:i,variant:"tertiary-purple",onClick:O,iconOnly:!0,"aria-label":b??"","data-testid":r("clear-button"),tabIndex:-1,children:n.jsx(M.r,{size:"xs"})},"clear-button"),N&&n.jsx(B.r,{"data-testid":r("valid-icon"),className:_(`${e}__valid-icon`,{[`${e}__valid-icon--negative`]:i})},"valid-icon")].filter(a=>!!a),V=_(`${e}__input-container`,{[`${e}__input-container--start-adornment`]:x.length,[`${e}__input-container--end-adornment`]:f.length||p,[`${e}__input-container--disabled`]:t.disabled,[`${e}__input-container--has-clear-button`]:g,[`${e}__input-container--readonly`]:t.readOnly&&!t.disabled,[`${e}__input-container--negative`]:i});return n.jsxs("div",{className:_(R,e),children:[$&&n.jsxs(S.Label,{htmlFor:c,className:_(`${e}__label`),"data-testid":r("label"),disabled:t.disabled,negative:i,children:[t.required&&!C&&n.jsx("span",{"aria-hidden":!0,children:"*"}),$]}),n.jsxs("div",{className:_(`${e}__field-row`),children:[!!q&&q,n.jsxs("div",{className:V,children:[!!x.length&&n.jsx("div",{"data-testid":r("start-adornments"),className:_(`${e}__adornment-container`),children:x}),n.jsx("input",{...t,id:c,ref:E,"data-testid":r("input"),"aria-describedby":t["aria-describedby"]||o,"aria-invalid":t["aria-invalid"]||!!l,className:_([`${e}__input`,{[`${e}__input--valid`]:N,[`${e}__input--error`]:!!l,[`${e}__input--negative`]:i}])}),n.jsx("div",{className:_(`${e}__frame`,{[`${e}__frame--negative`]:i})}),(!!f.length||p)&&n.jsxs("div",{"data-testid":r("end-adornments"),className:_(`${e}__adornment-container`),children:[f,p]})]}),!!v&&v]}),o&&n.jsx(H.FieldHelperText,{"data-testid":r("helper-text"),id:o,negative:i,disabled:t.disabled,children:h}),l&&n.jsx(z.FieldErrorText,{"data-testid":r("error-text"),negative:i,children:l})]})});m.displayName="TextField";const L=d=>s.isValidElement(d)&&d.type.displayName===m.displayName;exports.TextField=m;exports.isTextField=L;
2
+ //# sourceMappingURL=text-field-CiLEj0Fq.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-field-CKCwxTJX.js","sources":["../../../components/text-field/src/utils.ts","../../../components/text-field/src/text-field.tsx"],"sourcesContent":["import { type MutableRefObject, useRef } from \"react\";\n\nexport const useMutableRefObject = <T>(value: T): MutableRefObject<T> => {\n return useRef<T>(value) as MutableRefObject<T>;\n};\n","import React, {\n forwardRef,\n type HTMLInputTypeAttribute,\n isValidElement,\n type ReactElement,\n type ReactNode,\n useId,\n} from \"react\";\nimport { Button } from \"@purpur/button\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { FieldErrorText } from \"@purpur/field-error-text\";\nimport { FieldHelperText } from \"@purpur/field-helper-text\";\nimport { IconCheckCircleFilled } from \"@purpur/icon/check-circle-filled\";\nimport { IconClose } from \"@purpur/icon/close\";\nimport { Label } from \"@purpur/label\";\nimport { Spinner } from \"@purpur/spinner\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./text-field.module.scss\";\nimport { useMutableRefObject } from \"./utils\";\n\ntype TextFieldBaseProps = {\n /**\n * Use to display e.g. a button before the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n beforeField?: ReactNode;\n /**\n * Use to display e.g. a button after the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n afterField?: ReactNode;\n /**\n * Use to display e.g. an icon at the end inside of the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n endAdornment?: ReactNode;\n /**\n * Use to render error message below the text field. The text field renders with error appearance.\n * */\n errorText?: string;\n /**\n * Use to give context about the field's input. Renders below the field.\n * */\n helperText?: string;\n /**\n * The label of the text field.\n * */\n label?: string;\n /**\n * Use to render a spinner at the end inside of the text field.\n */\n loading?: boolean;\n /**\n * Hide the asterisk for required fields.\n * This is useful when the field is required but the context already indicates that.\n */\n hideRequiredAsterisk?: boolean;\n /**\n * Use to display e.g. an icon at the start inside of the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n startAdornment?: ReactNode;\n /**\n * Use to set the type of the field.\n */\n type?: Extract<\n HTMLInputTypeAttribute,\n \"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\"\n >;\n /**\n * Use to render text field with valid appearance. A check\n * icon will render at the start inside of the input.\n */\n valid?: boolean;\n negative?: boolean;\n};\n\ntype TextFieldClearProps =\n | {\n /**\n * An accessible label for the clear button.\n * */\n clearButtonAriaLabel: string;\n /**\n * Event handler called when the clear button is clicked.\n * */\n onClear: () => void;\n }\n | {\n /**\n * An accessible label for the clear button.\n * */\n clearButtonAriaLabel?: never;\n /**\n * Event handler called when the clear button is clicked.\n * */\n onClear?: never;\n };\n\nexport type TextFieldProps = Omit<BaseProps<\"input\">, \"type\"> &\n TextFieldBaseProps &\n TextFieldClearProps;\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-text-field\";\n\nexport const TextField = forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n [\"data-testid\"]: dataTestId,\n className,\n clearButtonAriaLabel,\n beforeField,\n afterField,\n endAdornment,\n errorText,\n helperText,\n hideRequiredAsterisk = false,\n label,\n loading = false,\n onClear,\n startAdornment,\n valid = false,\n negative = false,\n ...inputProps\n },\n ref\n ) => {\n const randomId = useId();\n const inputId = inputProps.id ?? randomId;\n const getTestId = (name: string) => (dataTestId ? `${dataTestId}-${name}` : undefined);\n const isValid = valid && !errorText;\n const helperTextId = helperText ? `${inputId}-helper-text` : undefined;\n const startAdornments: ReactNode[] = [startAdornment].filter((adornment) => !!adornment);\n const hasValue =\n typeof inputProps.value === \"number\"\n ? inputProps.value !== undefined\n : inputProps.value?.length;\n const hasClearButton =\n hasValue &&\n !inputProps.disabled &&\n !inputProps.readOnly &&\n !loading &&\n onClear &&\n clearButtonAriaLabel;\n\n const internalRef = useMutableRefObject<HTMLInputElement | null>(null);\n const setRef = (node: HTMLInputElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n };\n const handleClear = () => {\n onClear?.();\n internalRef.current?.focus();\n };\n\n const localEndAdornments: ReactNode[] = [\n loading && (\n <Spinner\n key=\"spinner\"\n disabled={inputProps.disabled}\n size=\"xs\"\n data-testid={getTestId(\"spinner\")}\n negative={negative}\n />\n ),\n hasClearButton && (\n <Button\n negative={negative}\n key=\"clear-button\"\n variant=\"tertiary-purple\"\n onClick={handleClear}\n iconOnly\n aria-label={clearButtonAriaLabel ?? \"\"}\n data-testid={getTestId(\"clear-button\")}\n tabIndex={-1}\n >\n <IconClose size=\"xs\" />\n </Button>\n ),\n isValid && (\n <IconCheckCircleFilled\n key=\"valid-icon\"\n data-testid={getTestId(\"valid-icon\")}\n className={cx(`${rootClassName}__valid-icon`, {\n [`${rootClassName}__valid-icon--negative`]: negative,\n })}\n />\n ),\n ].filter((adornment) => !!adornment);\n\n const inputContainerClassnames = cx(`${rootClassName}__input-container`, {\n [`${rootClassName}__input-container--start-adornment`]: startAdornments.length,\n [`${rootClassName}__input-container--end-adornment`]:\n localEndAdornments.length || endAdornment,\n [`${rootClassName}__input-container--disabled`]: inputProps.disabled,\n [`${rootClassName}__input-container--has-clear-button`]: hasClearButton,\n [`${rootClassName}__input-container--readonly`]: inputProps.readOnly && !inputProps.disabled,\n [`${rootClassName}__input-container--negative`]: negative,\n });\n\n return (\n <div className={cx(className, rootClassName)}>\n {label && (\n <Label\n htmlFor={inputId}\n className={cx(`${rootClassName}__label`)}\n data-testid={getTestId(\"label\")}\n disabled={inputProps.disabled}\n negative={negative}\n >\n {inputProps.required && !hideRequiredAsterisk && <span aria-hidden>*</span>}\n {label}\n </Label>\n )}\n <div className={cx(`${rootClassName}__field-row`)}>\n {!!beforeField && beforeField}\n <div className={inputContainerClassnames}>\n {!!startAdornments.length && (\n <div\n data-testid={getTestId(\"start-adornments\")}\n className={cx(`${rootClassName}__adornment-container`)}\n >\n {startAdornments}\n </div>\n )}\n <input\n {...inputProps}\n id={inputId}\n ref={setRef}\n data-testid={getTestId(\"input\")}\n aria-describedby={inputProps[\"aria-describedby\"] || helperTextId}\n aria-invalid={inputProps[\"aria-invalid\"] || !!errorText}\n className={cx([\n `${rootClassName}__input`,\n {\n [`${rootClassName}__input--valid`]: isValid,\n [`${rootClassName}__input--error`]: !!errorText,\n [`${rootClassName}__input--negative`]: negative,\n },\n ])}\n />\n <div\n className={cx(`${rootClassName}__frame`, {\n [`${rootClassName}__frame--negative`]: negative,\n })}\n />\n {(!!localEndAdornments.length || endAdornment) && (\n <div\n data-testid={getTestId(\"end-adornments\")}\n className={cx(`${rootClassName}__adornment-container`)}\n >\n {localEndAdornments}\n {endAdornment}\n </div>\n )}\n </div>\n {!!afterField && afterField}\n </div>\n {helperTextId && (\n <FieldHelperText\n data-testid={getTestId(\"helper-text\")}\n id={helperTextId}\n negative={negative}\n disabled={inputProps.disabled}\n >\n {helperText}\n </FieldHelperText>\n )}\n {errorText && (\n <FieldErrorText data-testid={getTestId(\"error-text\")} negative={negative}>\n {errorText}\n </FieldErrorText>\n )}\n </div>\n );\n }\n);\n\nTextField.displayName = \"TextField\";\n\nexport const isTextField = (child?: ReactNode): child is ReactElement<TextFieldProps> =>\n isValidElement<TextFieldProps>(child) &&\n (child.type as any).displayName === TextField.displayName; // eslint-disable-line @typescript-eslint/no-explicit-any\n"],"names":["useMutableRefObject","value","useRef","cx","c","styles","rootClassName","TextField","forwardRef","dataTestId","className","clearButtonAriaLabel","beforeField","afterField","endAdornment","errorText","helperText","hideRequiredAsterisk","label","loading","onClear","startAdornment","valid","negative","inputProps","ref","randomId","useId","inputId","getTestId","name","isValid","helperTextId","startAdornments","adornment","hasClearButton","internalRef","setRef","node","handleClear","localEndAdornments","jsx","Spinner","Button","IconClose","IconCheckCircleFilled","inputContainerClassnames","jsxs","Label","FieldHelperText","FieldErrorText","isTextField","child","isValidElement"],"mappings":"0jEAEaA,EAA0BC,GAC9BC,EAAAA,OAAUD,CAAK,ECyGlBE,EAAKC,EAAAA,EAAE,KAAKC,CAAM,EAClBC,EAAgB,oBAETC,EAAYC,EAAAA,WACvB,CACE,CACE,CAAC,eAAgBC,EACjB,UAAAC,EACA,qBAAAC,EACA,YAAAC,EACA,WAAAC,EACA,aAAAC,EACA,UAAAC,EACA,WAAAC,EACA,qBA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,cAAc,GAAK,CAAC,CAACT,EAC9C,UAAWZ,EAAG,CACZ,GAAGG,CAAa,UAChB,CACE,CAAC,GAAGA,CAAa,gBAAgB,EAAGyB,EACpC,CAAC,GAAGzB,CAAa,gBAAgB,EAAG,CAAC,CAACS,EACtC,CAAC,GAAGT,CAAa,mBAAmB,EAAGiB,CAAA,CACzC,CACD,CAAA,CAAA,EAEHkB,EAAAA,IAAC,MAAA,CACC,UAAWtC,EAAG,GAAGG,CAAa,UAAW,CACvC,CAAC,GAAGA,CAAa,mBAAmB,EAAGiB,CAAA,CACxC,CAAA,CAAA,GAED,CAAC,CAACiB,EAAmB,QAAU1B,IAC/BiC,EAAAA,KAAC,MAAA,CACC,cAAalB,EAAU,gBAAgB,EACvC,UAAW1B,EAAG,GAAGG,CAAa,uBAAuB,EAEpD,SAAA,CAAAkC,EACA1B,CAAA,CAAA,CAAA,CACH,EAEJ,EACC,CAAC,CAACD,GAAcA,CAAA,EACnB,EACCmB,GACCS,EAAAA,IAACQ,EAAAA,gBAAA,CACC,cAAapB,EAAU,aAAa,EACpC,GAAIG,EACJ,SAAAT,EACA,SAAUC,EAAW,SAEpB,SAAAR,CAAA,CAAA,EAGJD,SACEmC,EAAAA,eAAA,CAAe,cAAarB,EAAU,YAAY,EAAG,SAAAN,EACnD,SAAAR,CAAA,CACH,CAAA,EAEJ,CAEJ,CACF,EAEAR,EAAU,YAAc,YAEjB,MAAM4C,EAAeC,GAC1BC,iBAA+BD,CAAK,GACnCA,EAAM,KAAa,cAAgB7C,EAAU"}
1
+ {"version":3,"file":"text-field-CiLEj0Fq.js","sources":["../../../components/text-field/src/utils.ts","../../../components/text-field/src/text-field.tsx"],"sourcesContent":["import { type MutableRefObject, useRef } from \"react\";\n\nexport const useMutableRefObject = <T>(value: T): MutableRefObject<T> => {\n return useRef<T>(value) as MutableRefObject<T>;\n};\n","import React, {\n forwardRef,\n type HTMLInputTypeAttribute,\n isValidElement,\n type ReactElement,\n type ReactNode,\n useId,\n} from \"react\";\nimport { Button } from \"@purpur/button\";\nimport type { BaseProps } from \"@purpur/common-types\";\nimport { FieldErrorText } from \"@purpur/field-error-text\";\nimport { FieldHelperText } from \"@purpur/field-helper-text\";\nimport { IconCheckCircleFilled } from \"@purpur/icon/check-circle-filled\";\nimport { IconClose } from \"@purpur/icon/close\";\nimport { Label } from \"@purpur/label\";\nimport { Spinner } from \"@purpur/spinner\";\nimport c from \"classnames/bind\";\n\nimport styles from \"./text-field.module.scss\";\nimport { useMutableRefObject } from \"./utils\";\n\ntype TextFieldBaseProps = {\n /**\n * Use to display e.g. a button before the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n beforeField?: ReactNode;\n /**\n * Use to display e.g. a button after the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n afterField?: ReactNode;\n /**\n * Use to display e.g. an icon at the end inside of the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n endAdornment?: ReactNode;\n /**\n * Use to render error message below the text field. The text field renders with error appearance.\n * */\n errorText?: string;\n /**\n * Use to give context about the field's input. Renders below the field.\n * */\n helperText?: string;\n /**\n * The label of the text field.\n * */\n label?: string;\n /**\n * Use to render a spinner at the end inside of the text field.\n */\n loading?: boolean;\n /**\n * Hide the asterisk for required fields.\n * This is useful when the field is required but the context already indicates that.\n */\n hideRequiredAsterisk?: boolean;\n /**\n * Use to display e.g. an icon at the start inside of the text field.\n *\n * _NOTE: Should ideally only be used by other purpur components!_\n */\n startAdornment?: ReactNode;\n /**\n * Use to set the type of the field.\n */\n type?: Extract<\n HTMLInputTypeAttribute,\n \"email\" | \"number\" | \"password\" | \"search\" | \"tel\" | \"text\"\n >;\n /**\n * Use to render text field with valid appearance. A check\n * icon will render at the start inside of the input.\n */\n valid?: boolean;\n negative?: boolean;\n};\n\ntype TextFieldClearProps =\n | {\n /**\n * An accessible label for the clear button.\n * */\n clearButtonAriaLabel: string;\n /**\n * Event handler called when the clear button is clicked.\n * */\n onClear: () => void;\n }\n | {\n /**\n * An accessible label for the clear button.\n * */\n clearButtonAriaLabel?: never;\n /**\n * Event handler called when the clear button is clicked.\n * */\n onClear?: never;\n };\n\nexport type TextFieldProps = Omit<BaseProps<\"input\">, \"type\"> &\n TextFieldBaseProps &\n TextFieldClearProps;\n\nconst cx = c.bind(styles);\nconst rootClassName = \"purpur-text-field\";\n\nexport const TextField = forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n [\"data-testid\"]: dataTestId,\n className,\n clearButtonAriaLabel,\n beforeField,\n afterField,\n endAdornment,\n errorText,\n helperText,\n hideRequiredAsterisk = false,\n label,\n loading = false,\n onClear,\n startAdornment,\n valid = false,\n negative = false,\n ...inputProps\n },\n ref\n ) => {\n const randomId = useId();\n const inputId = inputProps.id ?? randomId;\n const getTestId = (name: string) => (dataTestId ? `${dataTestId}-${name}` : undefined);\n const isValid = valid && !errorText;\n const helperTextId = helperText ? `${inputId}-helper-text` : undefined;\n const startAdornments: ReactNode[] = [startAdornment].filter((adornment) => !!adornment);\n const hasValue =\n typeof inputProps.value === \"number\"\n ? inputProps.value !== undefined\n : inputProps.value?.length;\n const hasClearButton =\n hasValue &&\n !inputProps.disabled &&\n !inputProps.readOnly &&\n !loading &&\n onClear &&\n clearButtonAriaLabel;\n\n const internalRef = useMutableRefObject<HTMLInputElement | null>(null);\n const setRef = (node: HTMLInputElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref) {\n ref.current = node;\n }\n };\n const handleClear = () => {\n onClear?.();\n internalRef.current?.focus();\n };\n\n const localEndAdornments: ReactNode[] = [\n loading && (\n <Spinner\n key=\"spinner\"\n disabled={inputProps.disabled}\n size=\"xs\"\n data-testid={getTestId(\"spinner\")}\n negative={negative}\n />\n ),\n hasClearButton && (\n <Button\n negative={negative}\n key=\"clear-button\"\n variant=\"tertiary-purple\"\n onClick={handleClear}\n iconOnly\n aria-label={clearButtonAriaLabel ?? \"\"}\n data-testid={getTestId(\"clear-button\")}\n tabIndex={-1}\n >\n <IconClose size=\"xs\" />\n </Button>\n ),\n isValid && (\n <IconCheckCircleFilled\n key=\"valid-icon\"\n data-testid={getTestId(\"valid-icon\")}\n className={cx(`${rootClassName}__valid-icon`, {\n [`${rootClassName}__valid-icon--negative`]: negative,\n })}\n />\n ),\n ].filter((adornment) => !!adornment);\n\n const inputContainerClassnames = cx(`${rootClassName}__input-container`, {\n [`${rootClassName}__input-container--start-adornment`]: startAdornments.length,\n [`${rootClassName}__input-container--end-adornment`]:\n localEndAdornments.length || endAdornment,\n [`${rootClassName}__input-container--disabled`]: inputProps.disabled,\n [`${rootClassName}__input-container--has-clear-button`]: hasClearButton,\n [`${rootClassName}__input-container--readonly`]: inputProps.readOnly && !inputProps.disabled,\n [`${rootClassName}__input-container--negative`]: negative,\n });\n\n return (\n <div className={cx(className, rootClassName)}>\n {label && (\n <Label\n htmlFor={inputId}\n className={cx(`${rootClassName}__label`)}\n data-testid={getTestId(\"label\")}\n disabled={inputProps.disabled}\n negative={negative}\n >\n {inputProps.required && !hideRequiredAsterisk && <span aria-hidden>*</span>}\n {label}\n </Label>\n )}\n <div className={cx(`${rootClassName}__field-row`)}>\n {!!beforeField && beforeField}\n <div className={inputContainerClassnames}>\n {!!startAdornments.length && (\n <div\n data-testid={getTestId(\"start-adornments\")}\n className={cx(`${rootClassName}__adornment-container`)}\n >\n {startAdornments}\n </div>\n )}\n <input\n {...inputProps}\n id={inputId}\n ref={setRef}\n data-testid={getTestId(\"input\")}\n aria-describedby={inputProps[\"aria-describedby\"] || helperTextId}\n aria-invalid={inputProps[\"aria-invalid\"] || !!errorText}\n className={cx([\n `${rootClassName}__input`,\n {\n [`${rootClassName}__input--valid`]: isValid,\n [`${rootClassName}__input--error`]: !!errorText,\n [`${rootClassName}__input--negative`]: negative,\n },\n ])}\n />\n <div\n className={cx(`${rootClassName}__frame`, {\n [`${rootClassName}__frame--negative`]: negative,\n })}\n />\n {(!!localEndAdornments.length || endAdornment) && (\n <div\n data-testid={getTestId(\"end-adornments\")}\n className={cx(`${rootClassName}__adornment-container`)}\n >\n {localEndAdornments}\n {endAdornment}\n </div>\n )}\n </div>\n {!!afterField && afterField}\n </div>\n {helperTextId && (\n <FieldHelperText\n data-testid={getTestId(\"helper-text\")}\n id={helperTextId}\n negative={negative}\n disabled={inputProps.disabled}\n >\n {helperText}\n </FieldHelperText>\n )}\n {errorText && (\n <FieldErrorText data-testid={getTestId(\"error-text\")} negative={negative}>\n {errorText}\n </FieldErrorText>\n )}\n </div>\n );\n }\n);\n\nTextField.displayName = \"TextField\";\n\nexport const isTextField = (child?: ReactNode): child is ReactElement<TextFieldProps> =>\n isValidElement<TextFieldProps>(child) &&\n (child.type as any).displayName === TextField.displayName; // eslint-disable-line @typescript-eslint/no-explicit-any\n"],"names":["useMutableRefObject","value","useRef","cx","c","styles","rootClassName","TextField","forwardRef","dataTestId","className","clearButtonAriaLabel","beforeField","afterField","endAdornment","errorText","helperText","hideRequiredAsterisk","label","loading","onClear","startAdornment","valid","negative","inputProps","ref","randomId","useId","inputId","getTestId","name","isValid","helperTextId","startAdornments","adornment","hasClearButton","internalRef","setRef","node","handleClear","localEndAdornments","jsx","Spinner","Button","IconClose","IconCheckCircleFilled","inputContainerClassnames","jsxs","Label","FieldHelperText","FieldErrorText","isTextField","child","isValidElement"],"mappings":"0jEAEaA,EAA0BC,GAC9BC,EAAAA,OAAUD,CAAK,ECyGlBE,EAAKC,EAAAA,EAAE,KAAKC,CAAM,EAClBC,EAAgB,oBAETC,EAAYC,EAAAA,WACvB,CACE,CACE,CAAC,eAAgBC,EACjB,UAAAC,EACA,qBAAAC,EACA,YAAAC,EACA,WAAAC,EACA,aAAAC,EACA,UAAAC,EACA,WAAAC,EACA,qBAAAC,EAAuB,GAAA,MACvBC,EACA,QAAAC,EAAU,GACV,QAAAC,EACA,eAAAC,EACA,MAAAC,EAAQ,GACR,SAAAC,EAAW,GACX,GAAGC,CAAA,EAELC,IACG,CACH,MAAMC,EAAWC,EAAAA,MAAA,E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ACtC,CAAC,GAAGT,CAAa,mBAAmB,EAAGiB,CAAA,CACzC,CACD,CAAA,CAAA,EAEHkB,EAAAA,IAAC,MAAA,CACC,UAAWtC,EAAG,GAAGG,CAAa,UAAW,CACvC,CAAC,GAAGA,CAAa,mBAAmB,EAAGiB,CAAA,CACxC,CAAA,CAAA,GAED,CAAC,CAACiB,EAAmB,QAAU1B,IAC/BiC,EAAAA,KAAC,MAAA,CACC,cAAalB,EAAU,gBAAgB,EACvC,UAAW1B,EAAG,GAAGG,CAAa,uBAAuB,EAEpD,SAAA,CAAAkC,EACA1B,CAAA,CAAA,CAAA,CACH,EAEJ,EACC,CAAC,CAACD,GAAcA,CAAA,EACnB,EACCmB,GACCS,EAAAA,IAACQ,EAAAA,gBAAA,CACC,cAAapB,EAAU,aAAa,EACpC,GAAIG,EACJ,SAAAT,EACA,SAAUC,EAAW,SAEpB,SAAAR,CAAA,CAAA,EAGJD,SACEmC,EAAAA,eAAA,CAAe,cAAarB,EAAU,YAAY,EAAG,SAAAN,EACnD,SAAAR,CAAA,CACH,CAAA,EAEJ,CAEJ,CACF,EAEAR,EAAU,YAAc,YAEjB,MAAM4C,EAAeC,GAC1BC,iBAA+BD,CAAK,GACnCA,EAAM,KAAa,cAAgB7C,EAAU"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./text-field-CKCwxTJX.js");exports.TextField=e.TextField;exports.isTextField=e.isTextField;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./text-field-CiLEj0Fq.js");exports.TextField=e.TextField;exports.isTextField=e.isTextField;
2
2
  //# sourceMappingURL=text-field.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { T as s, i as t } from "./text-field-9zPmL99g.mjs";
1
+ import { T as s, i as t } from "./text-field-BMDf8j-K.mjs";
2
2
  export {
3
3
  s as TextField,
4
4
  t as isTextField
@@ -4,6 +4,7 @@
4
4
  --purpur-border-radius-sm: 4px;
5
5
  --purpur-border-radius-md: 8px;
6
6
  --purpur-border-radius-lg: 16px;
7
+ --purpur-border-radius-xl: 24px;
7
8
  --purpur-border-radius-full: 999px;
8
9
  --purpur-border-width-xs: 1px;
9
10
  --purpur-border-width-sm: 2px;
@@ -2,6 +2,7 @@ export const purpurBorderRadiusXs: string;
2
2
  export const purpurBorderRadiusSm: string;
3
3
  export const purpurBorderRadiusMd: string;
4
4
  export const purpurBorderRadiusLg: string;
5
+ export const purpurBorderRadiusXl: string;
5
6
  export const purpurBorderRadiusFull: string;
6
7
  export const purpurBorderWidthXs: string;
7
8
  export const purpurBorderWidthSm: string;
@@ -3,6 +3,7 @@
3
3
  --purpur-border-radius-sm: 4px;
4
4
  --purpur-border-radius-md: 8px;
5
5
  --purpur-border-radius-lg: 16px;
6
+ --purpur-border-radius-xl: 24px;
6
7
  --purpur-border-radius-full: 999px;
7
8
  --purpur-border-width-xs: 1px;
8
9
  --purpur-border-width-sm: 2px;
@@ -2,6 +2,7 @@ export const purpurBorderRadiusXs: string;
2
2
  export const purpurBorderRadiusSm: string;
3
3
  export const purpurBorderRadiusMd: string;
4
4
  export const purpurBorderRadiusLg: string;
5
+ export const purpurBorderRadiusXl: string;
5
6
  export const purpurBorderRadiusFull: string;
6
7
  export const purpurBorderWidthXs: string;
7
8
  export const purpurBorderWidthSm: string;
@@ -2,6 +2,7 @@ export const purpurBorderRadiusXs = "2px";
2
2
  export const purpurBorderRadiusSm = "4px";
3
3
  export const purpurBorderRadiusMd = "8px";
4
4
  export const purpurBorderRadiusLg = "16px";
5
+ export const purpurBorderRadiusXl = "24px";
5
6
  export const purpurBorderRadiusFull = "999px";
6
7
  export const purpurBorderWidthXs = "1px";
7
8
  export const purpurBorderWidthSm = "2px";
@@ -5,6 +5,7 @@
5
5
  "sm": "4px",
6
6
  "md": "8px",
7
7
  "lg": "16px",
8
+ "xl": "24px",
8
9
  "full": "999px"
9
10
  },
10
11
  "width": {
@@ -2,6 +2,7 @@ $purpur-border-radius-xs: 2px;
2
2
  $purpur-border-radius-sm: 4px;
3
3
  $purpur-border-radius-md: 8px;
4
4
  $purpur-border-radius-lg: 16px;
5
+ $purpur-border-radius-xl: 24px;
5
6
  $purpur-border-radius-full: 999px;
6
7
  $purpur-border-width-xs: 1px;
7
8
  $purpur-border-width-sm: 2px;
@@ -2,6 +2,7 @@ export const purpurBorderRadiusXs = "2px";
2
2
  export const purpurBorderRadiusSm = "4px";
3
3
  export const purpurBorderRadiusMd = "8px";
4
4
  export const purpurBorderRadiusLg = "16px";
5
+ export const purpurBorderRadiusXl = "24px";
5
6
  export const purpurBorderRadiusFull = "999px";
6
7
  export const purpurBorderWidthXs = "1px";
7
8
  export const purpurBorderWidthSm = "2px";
@@ -5,6 +5,7 @@
5
5
  "sm": "4px",
6
6
  "md": "8px",
7
7
  "lg": "16px",
8
+ "xl": "24px",
8
9
  "full": "999px"
9
10
  },
10
11
  "width": {
@@ -2,6 +2,7 @@ $purpur-border-radius-xs: 2px;
2
2
  $purpur-border-radius-sm: 4px;
3
3
  $purpur-border-radius-md: 8px;
4
4
  $purpur-border-radius-lg: 16px;
5
+ $purpur-border-radius-xl: 24px;
5
6
  $purpur-border-radius-full: 999px;
6
7
  $purpur-border-width-xs: 1px;
7
8
  $purpur-border-width-sm: 2px;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./variables-Buqm4JZc.js"),r=require("./variables-CMzMXeor.js"),u=require("./variables-BSBunpiY.js"),o="2px",e="4px",a="8px",t="16px",n="999px",i="1px",l="2px",c="3px",C="6px",g="blur(24px)",d="linear-gradient(289deg, #3694d3 -13%, #8c07d0 58%)",s="linear-gradient(289deg, #62b2e7 -13%, #e4b6fb 58%)",v="linear-gradient(291deg, #3694d3 -15%, #990ae3 44%)",B="linear-gradient(291deg, #62b2e7 -15%, #990ae3 44%)",T="linear-gradient(291deg, #3694d3 -15%, #4e0174 44%, #b12df4 133%)",S="linear-gradient(280deg, #62b2e7 -15%, #f4e0ff 23%, #f4e0ff 68%, #d58df9 112%)",y="linear-gradient(352deg, #62b2e7 -69%, #1f002e 15%, #1f002e 87%, #d58df9 183%)",m="linear-gradient(289deg, #3694d3 -13%, #8c07d0 58%)",k="linear-gradient(289deg, #62b2e7 -13%, #e4b6fb 58%)",I="0rem 0rem 0rem 0rem rgba(0, 0, 0, 0.1)",x="0rem 0.0625rem 0.25rem 0rem rgba(0, 0, 0, 0.1)",h="0rem 0.25rem 0.75rem 0rem rgba(0, 0, 0, 0.1)",P="0rem 0.75rem 1.5rem 0rem rgba(0, 0, 0, 0.1)",N="0rem",G="0.0625rem",O="0.125rem",M="0.25rem",W="0.5rem",A="0.75rem",E="1rem",D="1.25rem",R="1.5rem",H="2rem",f="3rem",L="4rem",b="5rem",F="6rem",X="8rem",w="1rem",q="1.5rem",Q="1.5rem",$="1.5rem",j="1rem",z="1.5rem",J="3rem",K="3rem",U="TeliaSans, Helvetica, Arial, 'Lucida Grande', sans-serif",V="TeliaSansHeading, Helvetica, Arial, 'Lucida Grande', sans-serif",Y="400",Z="500",_="700",rr="100%",ur="110%",pr="125%",or="150%",er="175%",ar="0.75rem",tr="0.875rem",nr="1rem",ir="1.125rem",lr="1.25rem",cr="1.375rem",Cr="1.5rem",gr="1.75rem",dr="2rem",sr="2.25rem",vr="2.5rem",Br="3rem",Tr="3.5rem",Sr="4rem",yr="5rem",mr="6rem";exports.purpurBreakpointLg=p.purpurBreakpointLg;exports.purpurBreakpointMd=p.purpurBreakpointMd;exports.purpurBreakpointRelativeLg=p.purpurBreakpointRelativeLg;exports.purpurBreakpointRelativeMd=p.purpurBreakpointRelativeMd;exports.purpurBreakpointRelativeSm=p.purpurBreakpointRelativeSm;exports.purpurBreakpointRelativeXl=p.purpurBreakpointRelativeXl;exports.purpurBreakpointSm=p.purpurBreakpointSm;exports.purpurBreakpointXl=p.purpurBreakpointXl;exports.purpurColorBackgroundInteractiveAutoFill=r.purpurColorBackgroundInteractiveAutoFill;exports.purpurColorBackgroundInteractiveDestructive=r.purpurColorBackgroundInteractiveDestructive;exports.purpurColorBackgroundInteractiveDestructiveActive=r.purpurColorBackgroundInteractiveDestructiveActive;exports.purpurColorBackgroundInteractiveDestructiveHover=r.purpurColorBackgroundInteractiveDestructiveHover;exports.purpurColorBackgroundInteractiveDisabled=r.purpurColorBackgroundInteractiveDisabled;exports.purpurColorBackgroundInteractiveDisabledNegative=r.purpurColorBackgroundInteractiveDisabledNegative;exports.purpurColorBackgroundInteractiveExpressive=r.purpurColorBackgroundInteractiveExpressive;exports.purpurColorBackgroundInteractiveExpressiveActive=r.purpurColorBackgroundInteractiveExpressiveActive;exports.purpurColorBackgroundInteractiveExpressiveActiveNegative=r.purpurColorBackgroundInteractiveExpressiveActiveNegative;exports.purpurColorBackgroundInteractiveExpressiveHover=r.purpurColorBackgroundInteractiveExpressiveHover;exports.purpurColorBackgroundInteractiveExpressiveHoverNegative=r.purpurColorBackgroundInteractiveExpressiveHoverNegative;exports.purpurColorBackgroundInteractiveExpressiveNegative=r.purpurColorBackgroundInteractiveExpressiveNegative;exports.purpurColorBackgroundInteractiveInactive=r.purpurColorBackgroundInteractiveInactive;exports.purpurColorBackgroundInteractiveInactiveNegative=r.purpurColorBackgroundInteractiveInactiveNegative;exports.purpurColorBackgroundInteractivePrimary=r.purpurColorBackgroundInteractivePrimary;exports.purpurColorBackgroundInteractivePrimaryActive=r.purpurColorBackgroundInteractivePrimaryActive;exports.purpurColorBackgroundInteractivePrimaryActiveNegative=r.purpurColorBackgroundInteractivePrimaryActiveNegative;exports.purpurColorBackgroundInteractivePrimaryHover=r.purpurColorBackgroundInteractivePrimaryHover;exports.purpurColorBackgroundInteractivePrimaryHoverNegative=r.purpurColorBackgroundInteractivePrimaryHoverNegative;exports.purpurColorBackgroundInteractivePrimaryNegative=r.purpurColorBackgroundInteractivePrimaryNegative;exports.purpurColorBackgroundInteractiveReadOnly=r.purpurColorBackgroundInteractiveReadOnly;exports.purpurColorBackgroundInteractiveReadOnlyNegative=r.purpurColorBackgroundInteractiveReadOnlyNegative;exports.purpurColorBackgroundInteractiveTransparentActive=r.purpurColorBackgroundInteractiveTransparentActive;exports.purpurColorBackgroundInteractiveTransparentActiveNegative=r.purpurColorBackgroundInteractiveTransparentActiveNegative;exports.purpurColorBackgroundInteractiveTransparentHover=r.purpurColorBackgroundInteractiveTransparentHover;exports.purpurColorBackgroundInteractiveTransparentHoverNegative=r.purpurColorBackgroundInteractiveTransparentHoverNegative;exports.purpurColorBackgroundOnImage=r.purpurColorBackgroundOnImage;exports.purpurColorBackgroundOnImageNegative=r.purpurColorBackgroundOnImageNegative;exports.purpurColorBackgroundPrimary=r.purpurColorBackgroundPrimary;exports.purpurColorBackgroundPrimaryNegative=r.purpurColorBackgroundPrimaryNegative;exports.purpurColorBackgroundSecondary=r.purpurColorBackgroundSecondary;exports.purpurColorBackgroundSecondaryNegative=r.purpurColorBackgroundSecondaryNegative;exports.purpurColorBackgroundStatusAttention=r.purpurColorBackgroundStatusAttention;exports.purpurColorBackgroundStatusBlackFriday=r.purpurColorBackgroundStatusBlackFriday;exports.purpurColorBackgroundStatusErrorMedium=r.purpurColorBackgroundStatusErrorMedium;exports.purpurColorBackgroundStatusErrorStrong=r.purpurColorBackgroundStatusErrorStrong;exports.purpurColorBackgroundStatusErrorStrongNegative=r.purpurColorBackgroundStatusErrorStrongNegative;exports.purpurColorBackgroundStatusInfoMedium=r.purpurColorBackgroundStatusInfoMedium;exports.purpurColorBackgroundStatusInfoStrong=r.purpurColorBackgroundStatusInfoStrong;exports.purpurColorBackgroundStatusNeutral=r.purpurColorBackgroundStatusNeutral;exports.purpurColorBackgroundStatusSpecial=r.purpurColorBackgroundStatusSpecial;exports.purpurColorBackgroundStatusSuccessMedium=r.purpurColorBackgroundStatusSuccessMedium;exports.purpurColorBackgroundStatusSuccessStrong=r.purpurColorBackgroundStatusSuccessStrong;exports.purpurColorBackgroundStatusSuccessStrongNegative=r.purpurColorBackgroundStatusSuccessStrongNegative;exports.purpurColorBackgroundStatusWarningMedium=r.purpurColorBackgroundStatusWarningMedium;exports.purpurColorBackgroundStatusWarningStrong=r.purpurColorBackgroundStatusWarningStrong;exports.purpurColorBackgroundStatusWarningStrongNegative=r.purpurColorBackgroundStatusWarningStrongNegative;exports.purpurColorBackgroundToneOnTonePrimary=r.purpurColorBackgroundToneOnTonePrimary;exports.purpurColorBackgroundToneOnToneQuaternary=r.purpurColorBackgroundToneOnToneQuaternary;exports.purpurColorBackgroundToneOnToneSecondary=r.purpurColorBackgroundToneOnToneSecondary;exports.purpurColorBackgroundToneOnToneTertiary=r.purpurColorBackgroundToneOnToneTertiary;exports.purpurColorBeige100=r.purpurColorBeige100;exports.purpurColorBeige200=r.purpurColorBeige200;exports.purpurColorBeige300=r.purpurColorBeige300;exports.purpurColorBeige400=r.purpurColorBeige400;exports.purpurColorBeige50=r.purpurColorBeige50;exports.purpurColorBeige500=r.purpurColorBeige500;exports.purpurColorBeige600=r.purpurColorBeige600;exports.purpurColorBeige700=r.purpurColorBeige700;exports.purpurColorBeige800=r.purpurColorBeige800;exports.purpurColorBeige900=r.purpurColorBeige900;exports.purpurColorBeige950=r.purpurColorBeige950;exports.purpurColorBlue100=r.purpurColorBlue100;exports.purpurColorBlue200=r.purpurColorBlue200;exports.purpurColorBlue300=r.purpurColorBlue300;exports.purpurColorBlue400=r.purpurColorBlue400;exports.purpurColorBlue50=r.purpurColorBlue50;exports.purpurColorBlue500=r.purpurColorBlue500;exports.purpurColorBlue600=r.purpurColorBlue600;exports.purpurColorBlue700=r.purpurColorBlue700;exports.purpurColorBlue800=r.purpurColorBlue800;exports.purpurColorBlue900=r.purpurColorBlue900;exports.purpurColorBlue950=r.purpurColorBlue950;exports.purpurColorBorderInteractiveExpressive=r.purpurColorBorderInteractiveExpressive;exports.purpurColorBorderInteractiveFocus=r.purpurColorBorderInteractiveFocus;exports.purpurColorBorderInteractivePrimary=r.purpurColorBorderInteractivePrimary;exports.purpurColorBorderInteractivePrimaryActive=r.purpurColorBorderInteractivePrimaryActive;exports.purpurColorBorderInteractivePrimaryActiveNegative=r.purpurColorBorderInteractivePrimaryActiveNegative;exports.purpurColorBorderInteractivePrimaryHover=r.purpurColorBorderInteractivePrimaryHover;exports.purpurColorBorderInteractivePrimaryHoverNegative=r.purpurColorBorderInteractivePrimaryHoverNegative;exports.purpurColorBorderInteractivePrimaryNegative=r.purpurColorBorderInteractivePrimaryNegative;exports.purpurColorBorderInteractiveSelected=r.purpurColorBorderInteractiveSelected;exports.purpurColorBorderInteractiveSubtle=r.purpurColorBorderInteractiveSubtle;exports.purpurColorBorderInteractiveSubtleHover=r.purpurColorBorderInteractiveSubtleHover;exports.purpurColorBorderInteractiveSubtleHoverNegative=r.purpurColorBorderInteractiveSubtleHoverNegative;exports.purpurColorBorderInteractiveSubtleNegative=r.purpurColorBorderInteractiveSubtleNegative;exports.purpurColorBorderMedium=r.purpurColorBorderMedium;exports.purpurColorBorderMediumNegative=r.purpurColorBorderMediumNegative;exports.purpurColorBorderStatusError=r.purpurColorBorderStatusError;exports.purpurColorBorderStatusErrorNegative=r.purpurColorBorderStatusErrorNegative;exports.purpurColorBorderStatusInfo=r.purpurColorBorderStatusInfo;exports.purpurColorBorderStatusSuccess=r.purpurColorBorderStatusSuccess;exports.purpurColorBorderStatusSuccessNegative=r.purpurColorBorderStatusSuccessNegative;exports.purpurColorBorderStatusWarning=r.purpurColorBorderStatusWarning;exports.purpurColorBorderStrong=r.purpurColorBorderStrong;exports.purpurColorBorderStrongNegative=r.purpurColorBorderStrongNegative;exports.purpurColorBorderWeak=r.purpurColorBorderWeak;exports.purpurColorBorderWeakNegative=r.purpurColorBorderWeakNegative;exports.purpurColorBrandBeige=r.purpurColorBrandBeige;exports.purpurColorBrandCorePurple=r.purpurColorBrandCorePurple;exports.purpurColorBrandDeepBeige=r.purpurColorBrandDeepBeige;exports.purpurColorBrandDeepPurple=r.purpurColorBrandDeepPurple;exports.purpurColorBrandLightBeige=r.purpurColorBrandLightBeige;exports.purpurColorBrandLightPurple=r.purpurColorBrandLightPurple;exports.purpurColorBrandOffBlack=r.purpurColorBrandOffBlack;exports.purpurColorBrandWhite=r.purpurColorBrandWhite;exports.purpurColorFunctionalBlack=r.purpurColorFunctionalBlack;exports.purpurColorFunctionalTransparent=r.purpurColorFunctionalTransparent;exports.purpurColorFunctionalWhite=r.purpurColorFunctionalWhite;exports.purpurColorGradientAiBottom=r.purpurColorGradientAiBottom;exports.purpurColorGradientAiBottomNegative=r.purpurColorGradientAiBottomNegative;exports.purpurColorGradientAiTop=r.purpurColorGradientAiTop;exports.purpurColorGradientAiTopNegative=r.purpurColorGradientAiTopNegative;exports.purpurColorGray100=r.purpurColorGray100;exports.purpurColorGray150=r.purpurColorGray150;exports.purpurColorGray200=r.purpurColorGray200;exports.purpurColorGray300=r.purpurColorGray300;exports.purpurColorGray400=r.purpurColorGray400;exports.purpurColorGray50=r.purpurColorGray50;exports.purpurColorGray500=r.purpurColorGray500;exports.purpurColorGray600=r.purpurColorGray600;exports.purpurColorGray700=r.purpurColorGray700;exports.purpurColorGray800=r.purpurColorGray800;exports.purpurColorGray850=r.purpurColorGray850;exports.purpurColorGray900=r.purpurColorGray900;exports.purpurColorGray950=r.purpurColorGray950;exports.purpurColorGreen100=r.purpurColorGreen100;exports.purpurColorGreen200=r.purpurColorGreen200;exports.purpurColorGreen300=r.purpurColorGreen300;exports.purpurColorGreen400=r.purpurColorGreen400;exports.purpurColorGreen50=r.purpurColorGreen50;exports.purpurColorGreen500=r.purpurColorGreen500;exports.purpurColorGreen600=r.purpurColorGreen600;exports.purpurColorGreen700=r.purpurColorGreen700;exports.purpurColorGreen800=r.purpurColorGreen800;exports.purpurColorGreen900=r.purpurColorGreen900;exports.purpurColorGreen950=r.purpurColorGreen950;exports.purpurColorOrange100=r.purpurColorOrange100;exports.purpurColorOrange200=r.purpurColorOrange200;exports.purpurColorOrange300=r.purpurColorOrange300;exports.purpurColorOrange400=r.purpurColorOrange400;exports.purpurColorOrange50=r.purpurColorOrange50;exports.purpurColorOrange500=r.purpurColorOrange500;exports.purpurColorOrange600=r.purpurColorOrange600;exports.purpurColorOrange700=r.purpurColorOrange700;exports.purpurColorOrange800=r.purpurColorOrange800;exports.purpurColorOrange900=r.purpurColorOrange900;exports.purpurColorOrange950=r.purpurColorOrange950;exports.purpurColorOverlayDefault=r.purpurColorOverlayDefault;exports.purpurColorPurple100=r.purpurColorPurple100;exports.purpurColorPurple200=r.purpurColorPurple200;exports.purpurColorPurple300=r.purpurColorPurple300;exports.purpurColorPurple400=r.purpurColorPurple400;exports.purpurColorPurple50=r.purpurColorPurple50;exports.purpurColorPurple500=r.purpurColorPurple500;exports.purpurColorPurple550=r.purpurColorPurple550;exports.purpurColorPurple600=r.purpurColorPurple600;exports.purpurColorPurple700=r.purpurColorPurple700;exports.purpurColorPurple800=r.purpurColorPurple800;exports.purpurColorPurple900=r.purpurColorPurple900;exports.purpurColorPurple950=r.purpurColorPurple950;exports.purpurColorRed100=r.purpurColorRed100;exports.purpurColorRed200=r.purpurColorRed200;exports.purpurColorRed300=r.purpurColorRed300;exports.purpurColorRed400=r.purpurColorRed400;exports.purpurColorRed50=r.purpurColorRed50;exports.purpurColorRed500=r.purpurColorRed500;exports.purpurColorRed600=r.purpurColorRed600;exports.purpurColorRed700=r.purpurColorRed700;exports.purpurColorRed800=r.purpurColorRed800;exports.purpurColorRed900=r.purpurColorRed900;exports.purpurColorRed950=r.purpurColorRed950;exports.purpurColorTeal100=r.purpurColorTeal100;exports.purpurColorTeal200=r.purpurColorTeal200;exports.purpurColorTeal300=r.purpurColorTeal300;exports.purpurColorTeal400=r.purpurColorTeal400;exports.purpurColorTeal50=r.purpurColorTeal50;exports.purpurColorTeal500=r.purpurColorTeal500;exports.purpurColorTeal600=r.purpurColorTeal600;exports.purpurColorTeal700=r.purpurColorTeal700;exports.purpurColorTeal800=r.purpurColorTeal800;exports.purpurColorTeal900=r.purpurColorTeal900;exports.purpurColorTeal950=r.purpurColorTeal950;exports.purpurColorTextDefault=r.purpurColorTextDefault;exports.purpurColorTextDefaultNegative=r.purpurColorTextDefaultNegative;exports.purpurColorTextInteractiveOnDestructive=r.purpurColorTextInteractiveOnDestructive;exports.purpurColorTextInteractiveOnExpressive=r.purpurColorTextInteractiveOnExpressive;exports.purpurColorTextInteractiveOnExpressiveActive=r.purpurColorTextInteractiveOnExpressiveActive;exports.purpurColorTextInteractiveOnExpressiveActiveNegative=r.purpurColorTextInteractiveOnExpressiveActiveNegative;exports.purpurColorTextInteractiveOnExpressiveHover=r.purpurColorTextInteractiveOnExpressiveHover;exports.purpurColorTextInteractiveOnExpressiveHoverNegative=r.purpurColorTextInteractiveOnExpressiveHoverNegative;exports.purpurColorTextInteractiveOnExpressiveNegative=r.purpurColorTextInteractiveOnExpressiveNegative;exports.purpurColorTextInteractiveOnPrimary=r.purpurColorTextInteractiveOnPrimary;exports.purpurColorTextInteractiveOnPrimaryNegative=r.purpurColorTextInteractiveOnPrimaryNegative;exports.purpurColorTextInteractivePrimary=r.purpurColorTextInteractivePrimary;exports.purpurColorTextInteractivePrimaryActive=r.purpurColorTextInteractivePrimaryActive;exports.purpurColorTextInteractivePrimaryActiveNegative=r.purpurColorTextInteractivePrimaryActiveNegative;exports.purpurColorTextInteractivePrimaryHover=r.purpurColorTextInteractivePrimaryHover;exports.purpurColorTextInteractivePrimaryHoverNegative=r.purpurColorTextInteractivePrimaryHoverNegative;exports.purpurColorTextInteractivePrimaryNegative=r.purpurColorTextInteractivePrimaryNegative;exports.purpurColorTextInteractiveSelected=r.purpurColorTextInteractiveSelected;exports.purpurColorTextMedium=r.purpurColorTextMedium;exports.purpurColorTextMediumNegative=r.purpurColorTextMediumNegative;exports.purpurColorTextStatusAttention=r.purpurColorTextStatusAttention;exports.purpurColorTextStatusBlackFriday=r.purpurColorTextStatusBlackFriday;exports.purpurColorTextStatusDiscount=r.purpurColorTextStatusDiscount;exports.purpurColorTextStatusErrorMedium=r.purpurColorTextStatusErrorMedium;exports.purpurColorTextStatusErrorMediumNegative=r.purpurColorTextStatusErrorMediumNegative;exports.purpurColorTextStatusErrorStrong=r.purpurColorTextStatusErrorStrong;exports.purpurColorTextStatusErrorStrongNegative=r.purpurColorTextStatusErrorStrongNegative;exports.purpurColorTextStatusInfoMedium=r.purpurColorTextStatusInfoMedium;exports.purpurColorTextStatusInfoStrong=r.purpurColorTextStatusInfoStrong;exports.purpurColorTextStatusNeutral=r.purpurColorTextStatusNeutral;exports.purpurColorTextStatusSpecial=r.purpurColorTextStatusSpecial;exports.purpurColorTextStatusSuccessMedium=r.purpurColorTextStatusSuccessMedium;exports.purpurColorTextStatusSuccessMediumNegative=r.purpurColorTextStatusSuccessMediumNegative;exports.purpurColorTextStatusSuccessStrong=r.purpurColorTextStatusSuccessStrong;exports.purpurColorTextStatusSuccessStrongNegative=r.purpurColorTextStatusSuccessStrongNegative;exports.purpurColorTextStatusWarningMedium=r.purpurColorTextStatusWarningMedium;exports.purpurColorTextStatusWarningMediumNegative=r.purpurColorTextStatusWarningMediumNegative;exports.purpurColorTextStatusWarningStrong=r.purpurColorTextStatusWarningStrong;exports.purpurColorTextToneOnTonePrimary=r.purpurColorTextToneOnTonePrimary;exports.purpurColorTextToneOnToneSecondary=r.purpurColorTextToneOnToneSecondary;exports.purpurColorTextToneOnToneTertiary=r.purpurColorTextToneOnToneTertiary;exports.purpurColorTextWeak=r.purpurColorTextWeak;exports.purpurColorTextWeakNegative=r.purpurColorTextWeakNegative;exports.purpurColorTransparentBlack100=r.purpurColorTransparentBlack100;exports.purpurColorTransparentBlack150=r.purpurColorTransparentBlack150;exports.purpurColorTransparentBlack200=r.purpurColorTransparentBlack200;exports.purpurColorTransparentBlack300=r.purpurColorTransparentBlack300;exports.purpurColorTransparentBlack400=r.purpurColorTransparentBlack400;exports.purpurColorTransparentBlack50=r.purpurColorTransparentBlack50;exports.purpurColorTransparentBlack500=r.purpurColorTransparentBlack500;exports.purpurColorTransparentBlack600=r.purpurColorTransparentBlack600;exports.purpurColorTransparentBlack700=r.purpurColorTransparentBlack700;exports.purpurColorTransparentBlack800=r.purpurColorTransparentBlack800;exports.purpurColorTransparentBlack850=r.purpurColorTransparentBlack850;exports.purpurColorTransparentBlack900=r.purpurColorTransparentBlack900;exports.purpurColorTransparentBlack950=r.purpurColorTransparentBlack950;exports.purpurColorTransparentWhite100=r.purpurColorTransparentWhite100;exports.purpurColorTransparentWhite150=r.purpurColorTransparentWhite150;exports.purpurColorTransparentWhite200=r.purpurColorTransparentWhite200;exports.purpurColorTransparentWhite300=r.purpurColorTransparentWhite300;exports.purpurColorTransparentWhite400=r.purpurColorTransparentWhite400;exports.purpurColorTransparentWhite50=r.purpurColorTransparentWhite50;exports.purpurColorTransparentWhite500=r.purpurColorTransparentWhite500;exports.purpurColorTransparentWhite600=r.purpurColorTransparentWhite600;exports.purpurColorTransparentWhite700=r.purpurColorTransparentWhite700;exports.purpurColorTransparentWhite800=r.purpurColorTransparentWhite800;exports.purpurColorTransparentWhite850=r.purpurColorTransparentWhite850;exports.purpurColorTransparentWhite900=r.purpurColorTransparentWhite900;exports.purpurColorTransparentWhite950=r.purpurColorTransparentWhite950;exports.purpurMotionDuration100=u.purpurMotionDuration100;exports.purpurMotionDuration150=u.purpurMotionDuration150;exports.purpurMotionDuration1500=u.purpurMotionDuration1500;exports.purpurMotionDuration200=u.purpurMotionDuration200;exports.purpurMotionDuration2000=u.purpurMotionDuration2000;exports.purpurMotionDuration300=u.purpurMotionDuration300;exports.purpurMotionDuration400=u.purpurMotionDuration400;exports.purpurMotionDuration500=u.purpurMotionDuration500;exports.purpurMotionEasingEaseIn=u.purpurMotionEasingEaseIn;exports.purpurMotionEasingEaseInOut=u.purpurMotionEasingEaseInOut;exports.purpurMotionEasingEaseOut=u.purpurMotionEasingEaseOut;exports.purpurBorderRadiusFull=n;exports.purpurBorderRadiusLg=t;exports.purpurBorderRadiusMd=a;exports.purpurBorderRadiusSm=e;exports.purpurBorderRadiusXs=o;exports.purpurBorderWidthLg=C;exports.purpurBorderWidthMd=c;exports.purpurBorderWidthSm=l;exports.purpurBorderWidthXs=i;exports.purpurFilterBlurOnImage=g;exports.purpurGradientAiBackgroundInteractiveExpressive=v;exports.purpurGradientAiBackgroundInteractiveExpressiveNegative=B;exports.purpurGradientAiBackgroundInteractivePrimary=T;exports.purpurGradientAiBackgroundInteractivePrimaryNegative=S;exports.purpurGradientAiBackgroundPrimaryNegative=y;exports.purpurGradientAiBorderInteractivePrimary=m;exports.purpurGradientAiBorderInteractivePrimaryNegative=k;exports.purpurGradientAiTextInteractivePrimary=d;exports.purpurGradientAiTextInteractivePrimaryNegative=s;exports.purpurShadowLg=P;exports.purpurShadowMd=h;exports.purpurShadowNone=I;exports.purpurShadowSm=x;exports.purpurSpacing0=N;exports.purpurSpacing10=G;exports.purpurSpacing100=W;exports.purpurSpacing1000=b;exports.purpurSpacing1200=F;exports.purpurSpacing150=A;exports.purpurSpacing1600=X;exports.purpurSpacing200=E;exports.purpurSpacing25=O;exports.purpurSpacing250=D;exports.purpurSpacing300=R;exports.purpurSpacing400=H;exports.purpurSpacing50=M;exports.purpurSpacing600=f;exports.purpurSpacing800=L;exports.purpurSpacingGutterLg=Q;exports.purpurSpacingGutterMd=q;exports.purpurSpacingGutterSm=w;exports.purpurSpacingGutterXl=$;exports.purpurSpacingPagePaddingLg=J;exports.purpurSpacingPagePaddingMd=z;exports.purpurSpacingPagePaddingSm=j;exports.purpurSpacingPagePaddingXl=K;exports.purpurTypographyFamilyDefault=U;exports.purpurTypographyFamilyDisplay=V;exports.purpurTypographyLineHeightDefault=pr;exports.purpurTypographyLineHeightLoose=or;exports.purpurTypographyLineHeightLooser=er;exports.purpurTypographyLineHeightSnug=ur;exports.purpurTypographyLineHeightTight=rr;exports.purpurTypographyScale100=nr;exports.purpurTypographyScale1000=yr;exports.purpurTypographyScale1100=mr;exports.purpurTypographyScale150=ir;exports.purpurTypographyScale200=lr;exports.purpurTypographyScale300=cr;exports.purpurTypographyScale400=Cr;exports.purpurTypographyScale50=ar;exports.purpurTypographyScale500=gr;exports.purpurTypographyScale600=dr;exports.purpurTypographyScale650=sr;exports.purpurTypographyScale700=vr;exports.purpurTypographyScale75=tr;exports.purpurTypographyScale800=Br;exports.purpurTypographyScale850=Tr;exports.purpurTypographyScale900=Sr;exports.purpurTypographyWeightBold=_;exports.purpurTypographyWeightMedium=Z;exports.purpurTypographyWeightNormal=Y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./variables-Buqm4JZc.js"),r=require("./variables-CMzMXeor.js"),u=require("./variables-BSBunpiY.js"),o="2px",e="4px",a="8px",t="16px",n="24px",i="999px",l="1px",c="2px",C="3px",g="6px",d="blur(24px)",s="linear-gradient(289deg, #3694d3 -13%, #8c07d0 58%)",v="linear-gradient(289deg, #62b2e7 -13%, #e4b6fb 58%)",B="linear-gradient(291deg, #3694d3 -15%, #990ae3 44%)",T="linear-gradient(291deg, #62b2e7 -15%, #990ae3 44%)",S="linear-gradient(291deg, #3694d3 -15%, #4e0174 44%, #b12df4 133%)",y="linear-gradient(280deg, #62b2e7 -15%, #f4e0ff 23%, #f4e0ff 68%, #d58df9 112%)",m="linear-gradient(352deg, #62b2e7 -69%, #1f002e 15%, #1f002e 87%, #d58df9 183%)",k="linear-gradient(289deg, #3694d3 -13%, #8c07d0 58%)",I="linear-gradient(289deg, #62b2e7 -13%, #e4b6fb 58%)",x="0rem 0rem 0rem 0rem rgba(0, 0, 0, 0.1)",h="0rem 0.0625rem 0.25rem 0rem rgba(0, 0, 0, 0.1)",P="0rem 0.25rem 0.75rem 0rem rgba(0, 0, 0, 0.1)",N="0rem 0.75rem 1.5rem 0rem rgba(0, 0, 0, 0.1)",G="0rem",O="0.0625rem",M="0.125rem",W="0.25rem",A="0.5rem",E="0.75rem",D="1rem",R="1.25rem",H="1.5rem",f="2rem",L="3rem",b="4rem",F="5rem",X="6rem",w="8rem",q="1rem",Q="1.5rem",$="1.5rem",j="1.5rem",z="1rem",J="1.5rem",K="3rem",U="3rem",V="TeliaSans, Helvetica, Arial, 'Lucida Grande', sans-serif",Y="TeliaSansHeading, Helvetica, Arial, 'Lucida Grande', sans-serif",Z="400",_="500",rr="700",ur="100%",pr="110%",or="125%",er="150%",ar="175%",tr="0.75rem",nr="0.875rem",ir="1rem",lr="1.125rem",cr="1.25rem",Cr="1.375rem",gr="1.5rem",dr="1.75rem",sr="2rem",vr="2.25rem",Br="2.5rem",Tr="3rem",Sr="3.5rem",yr="4rem",mr="5rem",kr="6rem";exports.purpurBreakpointLg=p.purpurBreakpointLg;exports.purpurBreakpointMd=p.purpurBreakpointMd;exports.purpurBreakpointRelativeLg=p.purpurBreakpointRelativeLg;exports.purpurBreakpointRelativeMd=p.purpurBreakpointRelativeMd;exports.purpurBreakpointRelativeSm=p.purpurBreakpointRelativeSm;exports.purpurBreakpointRelativeXl=p.purpurBreakpointRelativeXl;exports.purpurBreakpointSm=p.purpurBreakpointSm;exports.purpurBreakpointXl=p.purpurBreakpointXl;exports.purpurColorBackgroundInteractiveAutoFill=r.purpurColorBackgroundInteractiveAutoFill;exports.purpurColorBackgroundInteractiveDestructive=r.purpurColorBackgroundInteractiveDestructive;exports.purpurColorBackgroundInteractiveDestructiveActive=r.purpurColorBackgroundInteractiveDestructiveActive;exports.purpurColorBackgroundInteractiveDestructiveHover=r.purpurColorBackgroundInteractiveDestructiveHover;exports.purpurColorBackgroundInteractiveDisabled=r.purpurColorBackgroundInteractiveDisabled;exports.purpurColorBackgroundInteractiveDisabledNegative=r.purpurColorBackgroundInteractiveDisabledNegative;exports.purpurColorBackgroundInteractiveExpressive=r.purpurColorBackgroundInteractiveExpressive;exports.purpurColorBackgroundInteractiveExpressiveActive=r.purpurColorBackgroundInteractiveExpressiveActive;exports.purpurColorBackgroundInteractiveExpressiveActiveNegative=r.purpurColorBackgroundInteractiveExpressiveActiveNegative;exports.purpurColorBackgroundInteractiveExpressiveHover=r.purpurColorBackgroundInteractiveExpressiveHover;exports.purpurColorBackgroundInteractiveExpressiveHoverNegative=r.purpurColorBackgroundInteractiveExpressiveHoverNegative;exports.purpurColorBackgroundInteractiveExpressiveNegative=r.purpurColorBackgroundInteractiveExpressiveNegative;exports.purpurColorBackgroundInteractiveInactive=r.purpurColorBackgroundInteractiveInactive;exports.purpurColorBackgroundInteractiveInactiveNegative=r.purpurColorBackgroundInteractiveInactiveNegative;exports.purpurColorBackgroundInteractivePrimary=r.purpurColorBackgroundInteractivePrimary;exports.purpurColorBackgroundInteractivePrimaryActive=r.purpurColorBackgroundInteractivePrimaryActive;exports.purpurColorBackgroundInteractivePrimaryActiveNegative=r.purpurColorBackgroundInteractivePrimaryActiveNegative;exports.purpurColorBackgroundInteractivePrimaryHover=r.purpurColorBackgroundInteractivePrimaryHover;exports.purpurColorBackgroundInteractivePrimaryHoverNegative=r.purpurColorBackgroundInteractivePrimaryHoverNegative;exports.purpurColorBackgroundInteractivePrimaryNegative=r.purpurColorBackgroundInteractivePrimaryNegative;exports.purpurColorBackgroundInteractiveReadOnly=r.purpurColorBackgroundInteractiveReadOnly;exports.purpurColorBackgroundInteractiveReadOnlyNegative=r.purpurColorBackgroundInteractiveReadOnlyNegative;exports.purpurColorBackgroundInteractiveTransparentActive=r.purpurColorBackgroundInteractiveTransparentActive;exports.purpurColorBackgroundInteractiveTransparentActiveNegative=r.purpurColorBackgroundInteractiveTransparentActiveNegative;exports.purpurColorBackgroundInteractiveTransparentHover=r.purpurColorBackgroundInteractiveTransparentHover;exports.purpurColorBackgroundInteractiveTransparentHoverNegative=r.purpurColorBackgroundInteractiveTransparentHoverNegative;exports.purpurColorBackgroundOnImage=r.purpurColorBackgroundOnImage;exports.purpurColorBackgroundOnImageNegative=r.purpurColorBackgroundOnImageNegative;exports.purpurColorBackgroundPrimary=r.purpurColorBackgroundPrimary;exports.purpurColorBackgroundPrimaryNegative=r.purpurColorBackgroundPrimaryNegative;exports.purpurColorBackgroundSecondary=r.purpurColorBackgroundSecondary;exports.purpurColorBackgroundSecondaryNegative=r.purpurColorBackgroundSecondaryNegative;exports.purpurColorBackgroundStatusAttention=r.purpurColorBackgroundStatusAttention;exports.purpurColorBackgroundStatusBlackFriday=r.purpurColorBackgroundStatusBlackFriday;exports.purpurColorBackgroundStatusErrorMedium=r.purpurColorBackgroundStatusErrorMedium;exports.purpurColorBackgroundStatusErrorStrong=r.purpurColorBackgroundStatusErrorStrong;exports.purpurColorBackgroundStatusErrorStrongNegative=r.purpurColorBackgroundStatusErrorStrongNegative;exports.purpurColorBackgroundStatusInfoMedium=r.purpurColorBackgroundStatusInfoMedium;exports.purpurColorBackgroundStatusInfoStrong=r.purpurColorBackgroundStatusInfoStrong;exports.purpurColorBackgroundStatusNeutral=r.purpurColorBackgroundStatusNeutral;exports.purpurColorBackgroundStatusSpecial=r.purpurColorBackgroundStatusSpecial;exports.purpurColorBackgroundStatusSuccessMedium=r.purpurColorBackgroundStatusSuccessMedium;exports.purpurColorBackgroundStatusSuccessStrong=r.purpurColorBackgroundStatusSuccessStrong;exports.purpurColorBackgroundStatusSuccessStrongNegative=r.purpurColorBackgroundStatusSuccessStrongNegative;exports.purpurColorBackgroundStatusWarningMedium=r.purpurColorBackgroundStatusWarningMedium;exports.purpurColorBackgroundStatusWarningStrong=r.purpurColorBackgroundStatusWarningStrong;exports.purpurColorBackgroundStatusWarningStrongNegative=r.purpurColorBackgroundStatusWarningStrongNegative;exports.purpurColorBackgroundToneOnTonePrimary=r.purpurColorBackgroundToneOnTonePrimary;exports.purpurColorBackgroundToneOnToneQuaternary=r.purpurColorBackgroundToneOnToneQuaternary;exports.purpurColorBackgroundToneOnToneSecondary=r.purpurColorBackgroundToneOnToneSecondary;exports.purpurColorBackgroundToneOnToneTertiary=r.purpurColorBackgroundToneOnToneTertiary;exports.purpurColorBeige100=r.purpurColorBeige100;exports.purpurColorBeige200=r.purpurColorBeige200;exports.purpurColorBeige300=r.purpurColorBeige300;exports.purpurColorBeige400=r.purpurColorBeige400;exports.purpurColorBeige50=r.purpurColorBeige50;exports.purpurColorBeige500=r.purpurColorBeige500;exports.purpurColorBeige600=r.purpurColorBeige600;exports.purpurColorBeige700=r.purpurColorBeige700;exports.purpurColorBeige800=r.purpurColorBeige800;exports.purpurColorBeige900=r.purpurColorBeige900;exports.purpurColorBeige950=r.purpurColorBeige950;exports.purpurColorBlue100=r.purpurColorBlue100;exports.purpurColorBlue200=r.purpurColorBlue200;exports.purpurColorBlue300=r.purpurColorBlue300;exports.purpurColorBlue400=r.purpurColorBlue400;exports.purpurColorBlue50=r.purpurColorBlue50;exports.purpurColorBlue500=r.purpurColorBlue500;exports.purpurColorBlue600=r.purpurColorBlue600;exports.purpurColorBlue700=r.purpurColorBlue700;exports.purpurColorBlue800=r.purpurColorBlue800;exports.purpurColorBlue900=r.purpurColorBlue900;exports.purpurColorBlue950=r.purpurColorBlue950;exports.purpurColorBorderInteractiveExpressive=r.purpurColorBorderInteractiveExpressive;exports.purpurColorBorderInteractiveFocus=r.purpurColorBorderInteractiveFocus;exports.purpurColorBorderInteractivePrimary=r.purpurColorBorderInteractivePrimary;exports.purpurColorBorderInteractivePrimaryActive=r.purpurColorBorderInteractivePrimaryActive;exports.purpurColorBorderInteractivePrimaryActiveNegative=r.purpurColorBorderInteractivePrimaryActiveNegative;exports.purpurColorBorderInteractivePrimaryHover=r.purpurColorBorderInteractivePrimaryHover;exports.purpurColorBorderInteractivePrimaryHoverNegative=r.purpurColorBorderInteractivePrimaryHoverNegative;exports.purpurColorBorderInteractivePrimaryNegative=r.purpurColorBorderInteractivePrimaryNegative;exports.purpurColorBorderInteractiveSelected=r.purpurColorBorderInteractiveSelected;exports.purpurColorBorderInteractiveSubtle=r.purpurColorBorderInteractiveSubtle;exports.purpurColorBorderInteractiveSubtleHover=r.purpurColorBorderInteractiveSubtleHover;exports.purpurColorBorderInteractiveSubtleHoverNegative=r.purpurColorBorderInteractiveSubtleHoverNegative;exports.purpurColorBorderInteractiveSubtleNegative=r.purpurColorBorderInteractiveSubtleNegative;exports.purpurColorBorderMedium=r.purpurColorBorderMedium;exports.purpurColorBorderMediumNegative=r.purpurColorBorderMediumNegative;exports.purpurColorBorderStatusError=r.purpurColorBorderStatusError;exports.purpurColorBorderStatusErrorNegative=r.purpurColorBorderStatusErrorNegative;exports.purpurColorBorderStatusInfo=r.purpurColorBorderStatusInfo;exports.purpurColorBorderStatusSuccess=r.purpurColorBorderStatusSuccess;exports.purpurColorBorderStatusSuccessNegative=r.purpurColorBorderStatusSuccessNegative;exports.purpurColorBorderStatusWarning=r.purpurColorBorderStatusWarning;exports.purpurColorBorderStrong=r.purpurColorBorderStrong;exports.purpurColorBorderStrongNegative=r.purpurColorBorderStrongNegative;exports.purpurColorBorderWeak=r.purpurColorBorderWeak;exports.purpurColorBorderWeakNegative=r.purpurColorBorderWeakNegative;exports.purpurColorBrandBeige=r.purpurColorBrandBeige;exports.purpurColorBrandCorePurple=r.purpurColorBrandCorePurple;exports.purpurColorBrandDeepBeige=r.purpurColorBrandDeepBeige;exports.purpurColorBrandDeepPurple=r.purpurColorBrandDeepPurple;exports.purpurColorBrandLightBeige=r.purpurColorBrandLightBeige;exports.purpurColorBrandLightPurple=r.purpurColorBrandLightPurple;exports.purpurColorBrandOffBlack=r.purpurColorBrandOffBlack;exports.purpurColorBrandWhite=r.purpurColorBrandWhite;exports.purpurColorFunctionalBlack=r.purpurColorFunctionalBlack;exports.purpurColorFunctionalTransparent=r.purpurColorFunctionalTransparent;exports.purpurColorFunctionalWhite=r.purpurColorFunctionalWhite;exports.purpurColorGradientAiBottom=r.purpurColorGradientAiBottom;exports.purpurColorGradientAiBottomNegative=r.purpurColorGradientAiBottomNegative;exports.purpurColorGradientAiTop=r.purpurColorGradientAiTop;exports.purpurColorGradientAiTopNegative=r.purpurColorGradientAiTopNegative;exports.purpurColorGray100=r.purpurColorGray100;exports.purpurColorGray150=r.purpurColorGray150;exports.purpurColorGray200=r.purpurColorGray200;exports.purpurColorGray300=r.purpurColorGray300;exports.purpurColorGray400=r.purpurColorGray400;exports.purpurColorGray50=r.purpurColorGray50;exports.purpurColorGray500=r.purpurColorGray500;exports.purpurColorGray600=r.purpurColorGray600;exports.purpurColorGray700=r.purpurColorGray700;exports.purpurColorGray800=r.purpurColorGray800;exports.purpurColorGray850=r.purpurColorGray850;exports.purpurColorGray900=r.purpurColorGray900;exports.purpurColorGray950=r.purpurColorGray950;exports.purpurColorGreen100=r.purpurColorGreen100;exports.purpurColorGreen200=r.purpurColorGreen200;exports.purpurColorGreen300=r.purpurColorGreen300;exports.purpurColorGreen400=r.purpurColorGreen400;exports.purpurColorGreen50=r.purpurColorGreen50;exports.purpurColorGreen500=r.purpurColorGreen500;exports.purpurColorGreen600=r.purpurColorGreen600;exports.purpurColorGreen700=r.purpurColorGreen700;exports.purpurColorGreen800=r.purpurColorGreen800;exports.purpurColorGreen900=r.purpurColorGreen900;exports.purpurColorGreen950=r.purpurColorGreen950;exports.purpurColorOrange100=r.purpurColorOrange100;exports.purpurColorOrange200=r.purpurColorOrange200;exports.purpurColorOrange300=r.purpurColorOrange300;exports.purpurColorOrange400=r.purpurColorOrange400;exports.purpurColorOrange50=r.purpurColorOrange50;exports.purpurColorOrange500=r.purpurColorOrange500;exports.purpurColorOrange600=r.purpurColorOrange600;exports.purpurColorOrange700=r.purpurColorOrange700;exports.purpurColorOrange800=r.purpurColorOrange800;exports.purpurColorOrange900=r.purpurColorOrange900;exports.purpurColorOrange950=r.purpurColorOrange950;exports.purpurColorOverlayDefault=r.purpurColorOverlayDefault;exports.purpurColorPurple100=r.purpurColorPurple100;exports.purpurColorPurple200=r.purpurColorPurple200;exports.purpurColorPurple300=r.purpurColorPurple300;exports.purpurColorPurple400=r.purpurColorPurple400;exports.purpurColorPurple50=r.purpurColorPurple50;exports.purpurColorPurple500=r.purpurColorPurple500;exports.purpurColorPurple550=r.purpurColorPurple550;exports.purpurColorPurple600=r.purpurColorPurple600;exports.purpurColorPurple700=r.purpurColorPurple700;exports.purpurColorPurple800=r.purpurColorPurple800;exports.purpurColorPurple900=r.purpurColorPurple900;exports.purpurColorPurple950=r.purpurColorPurple950;exports.purpurColorRed100=r.purpurColorRed100;exports.purpurColorRed200=r.purpurColorRed200;exports.purpurColorRed300=r.purpurColorRed300;exports.purpurColorRed400=r.purpurColorRed400;exports.purpurColorRed50=r.purpurColorRed50;exports.purpurColorRed500=r.purpurColorRed500;exports.purpurColorRed600=r.purpurColorRed600;exports.purpurColorRed700=r.purpurColorRed700;exports.purpurColorRed800=r.purpurColorRed800;exports.purpurColorRed900=r.purpurColorRed900;exports.purpurColorRed950=r.purpurColorRed950;exports.purpurColorTeal100=r.purpurColorTeal100;exports.purpurColorTeal200=r.purpurColorTeal200;exports.purpurColorTeal300=r.purpurColorTeal300;exports.purpurColorTeal400=r.purpurColorTeal400;exports.purpurColorTeal50=r.purpurColorTeal50;exports.purpurColorTeal500=r.purpurColorTeal500;exports.purpurColorTeal600=r.purpurColorTeal600;exports.purpurColorTeal700=r.purpurColorTeal700;exports.purpurColorTeal800=r.purpurColorTeal800;exports.purpurColorTeal900=r.purpurColorTeal900;exports.purpurColorTeal950=r.purpurColorTeal950;exports.purpurColorTextDefault=r.purpurColorTextDefault;exports.purpurColorTextDefaultNegative=r.purpurColorTextDefaultNegative;exports.purpurColorTextInteractiveOnDestructive=r.purpurColorTextInteractiveOnDestructive;exports.purpurColorTextInteractiveOnExpressive=r.purpurColorTextInteractiveOnExpressive;exports.purpurColorTextInteractiveOnExpressiveActive=r.purpurColorTextInteractiveOnExpressiveActive;exports.purpurColorTextInteractiveOnExpressiveActiveNegative=r.purpurColorTextInteractiveOnExpressiveActiveNegative;exports.purpurColorTextInteractiveOnExpressiveHover=r.purpurColorTextInteractiveOnExpressiveHover;exports.purpurColorTextInteractiveOnExpressiveHoverNegative=r.purpurColorTextInteractiveOnExpressiveHoverNegative;exports.purpurColorTextInteractiveOnExpressiveNegative=r.purpurColorTextInteractiveOnExpressiveNegative;exports.purpurColorTextInteractiveOnPrimary=r.purpurColorTextInteractiveOnPrimary;exports.purpurColorTextInteractiveOnPrimaryNegative=r.purpurColorTextInteractiveOnPrimaryNegative;exports.purpurColorTextInteractivePrimary=r.purpurColorTextInteractivePrimary;exports.purpurColorTextInteractivePrimaryActive=r.purpurColorTextInteractivePrimaryActive;exports.purpurColorTextInteractivePrimaryActiveNegative=r.purpurColorTextInteractivePrimaryActiveNegative;exports.purpurColorTextInteractivePrimaryHover=r.purpurColorTextInteractivePrimaryHover;exports.purpurColorTextInteractivePrimaryHoverNegative=r.purpurColorTextInteractivePrimaryHoverNegative;exports.purpurColorTextInteractivePrimaryNegative=r.purpurColorTextInteractivePrimaryNegative;exports.purpurColorTextInteractiveSelected=r.purpurColorTextInteractiveSelected;exports.purpurColorTextMedium=r.purpurColorTextMedium;exports.purpurColorTextMediumNegative=r.purpurColorTextMediumNegative;exports.purpurColorTextStatusAttention=r.purpurColorTextStatusAttention;exports.purpurColorTextStatusBlackFriday=r.purpurColorTextStatusBlackFriday;exports.purpurColorTextStatusDiscount=r.purpurColorTextStatusDiscount;exports.purpurColorTextStatusErrorMedium=r.purpurColorTextStatusErrorMedium;exports.purpurColorTextStatusErrorMediumNegative=r.purpurColorTextStatusErrorMediumNegative;exports.purpurColorTextStatusErrorStrong=r.purpurColorTextStatusErrorStrong;exports.purpurColorTextStatusErrorStrongNegative=r.purpurColorTextStatusErrorStrongNegative;exports.purpurColorTextStatusInfoMedium=r.purpurColorTextStatusInfoMedium;exports.purpurColorTextStatusInfoStrong=r.purpurColorTextStatusInfoStrong;exports.purpurColorTextStatusNeutral=r.purpurColorTextStatusNeutral;exports.purpurColorTextStatusSpecial=r.purpurColorTextStatusSpecial;exports.purpurColorTextStatusSuccessMedium=r.purpurColorTextStatusSuccessMedium;exports.purpurColorTextStatusSuccessMediumNegative=r.purpurColorTextStatusSuccessMediumNegative;exports.purpurColorTextStatusSuccessStrong=r.purpurColorTextStatusSuccessStrong;exports.purpurColorTextStatusSuccessStrongNegative=r.purpurColorTextStatusSuccessStrongNegative;exports.purpurColorTextStatusWarningMedium=r.purpurColorTextStatusWarningMedium;exports.purpurColorTextStatusWarningMediumNegative=r.purpurColorTextStatusWarningMediumNegative;exports.purpurColorTextStatusWarningStrong=r.purpurColorTextStatusWarningStrong;exports.purpurColorTextToneOnTonePrimary=r.purpurColorTextToneOnTonePrimary;exports.purpurColorTextToneOnToneSecondary=r.purpurColorTextToneOnToneSecondary;exports.purpurColorTextToneOnToneTertiary=r.purpurColorTextToneOnToneTertiary;exports.purpurColorTextWeak=r.purpurColorTextWeak;exports.purpurColorTextWeakNegative=r.purpurColorTextWeakNegative;exports.purpurColorTransparentBlack100=r.purpurColorTransparentBlack100;exports.purpurColorTransparentBlack150=r.purpurColorTransparentBlack150;exports.purpurColorTransparentBlack200=r.purpurColorTransparentBlack200;exports.purpurColorTransparentBlack300=r.purpurColorTransparentBlack300;exports.purpurColorTransparentBlack400=r.purpurColorTransparentBlack400;exports.purpurColorTransparentBlack50=r.purpurColorTransparentBlack50;exports.purpurColorTransparentBlack500=r.purpurColorTransparentBlack500;exports.purpurColorTransparentBlack600=r.purpurColorTransparentBlack600;exports.purpurColorTransparentBlack700=r.purpurColorTransparentBlack700;exports.purpurColorTransparentBlack800=r.purpurColorTransparentBlack800;exports.purpurColorTransparentBlack850=r.purpurColorTransparentBlack850;exports.purpurColorTransparentBlack900=r.purpurColorTransparentBlack900;exports.purpurColorTransparentBlack950=r.purpurColorTransparentBlack950;exports.purpurColorTransparentWhite100=r.purpurColorTransparentWhite100;exports.purpurColorTransparentWhite150=r.purpurColorTransparentWhite150;exports.purpurColorTransparentWhite200=r.purpurColorTransparentWhite200;exports.purpurColorTransparentWhite300=r.purpurColorTransparentWhite300;exports.purpurColorTransparentWhite400=r.purpurColorTransparentWhite400;exports.purpurColorTransparentWhite50=r.purpurColorTransparentWhite50;exports.purpurColorTransparentWhite500=r.purpurColorTransparentWhite500;exports.purpurColorTransparentWhite600=r.purpurColorTransparentWhite600;exports.purpurColorTransparentWhite700=r.purpurColorTransparentWhite700;exports.purpurColorTransparentWhite800=r.purpurColorTransparentWhite800;exports.purpurColorTransparentWhite850=r.purpurColorTransparentWhite850;exports.purpurColorTransparentWhite900=r.purpurColorTransparentWhite900;exports.purpurColorTransparentWhite950=r.purpurColorTransparentWhite950;exports.purpurMotionDuration100=u.purpurMotionDuration100;exports.purpurMotionDuration150=u.purpurMotionDuration150;exports.purpurMotionDuration1500=u.purpurMotionDuration1500;exports.purpurMotionDuration200=u.purpurMotionDuration200;exports.purpurMotionDuration2000=u.purpurMotionDuration2000;exports.purpurMotionDuration300=u.purpurMotionDuration300;exports.purpurMotionDuration400=u.purpurMotionDuration400;exports.purpurMotionDuration500=u.purpurMotionDuration500;exports.purpurMotionEasingEaseIn=u.purpurMotionEasingEaseIn;exports.purpurMotionEasingEaseInOut=u.purpurMotionEasingEaseInOut;exports.purpurMotionEasingEaseOut=u.purpurMotionEasingEaseOut;exports.purpurBorderRadiusFull=i;exports.purpurBorderRadiusLg=t;exports.purpurBorderRadiusMd=a;exports.purpurBorderRadiusSm=e;exports.purpurBorderRadiusXl=n;exports.purpurBorderRadiusXs=o;exports.purpurBorderWidthLg=g;exports.purpurBorderWidthMd=C;exports.purpurBorderWidthSm=c;exports.purpurBorderWidthXs=l;exports.purpurFilterBlurOnImage=d;exports.purpurGradientAiBackgroundInteractiveExpressive=B;exports.purpurGradientAiBackgroundInteractiveExpressiveNegative=T;exports.purpurGradientAiBackgroundInteractivePrimary=S;exports.purpurGradientAiBackgroundInteractivePrimaryNegative=y;exports.purpurGradientAiBackgroundPrimaryNegative=m;exports.purpurGradientAiBorderInteractivePrimary=k;exports.purpurGradientAiBorderInteractivePrimaryNegative=I;exports.purpurGradientAiTextInteractivePrimary=s;exports.purpurGradientAiTextInteractivePrimaryNegative=v;exports.purpurShadowLg=N;exports.purpurShadowMd=P;exports.purpurShadowNone=x;exports.purpurShadowSm=h;exports.purpurSpacing0=G;exports.purpurSpacing10=O;exports.purpurSpacing100=A;exports.purpurSpacing1000=F;exports.purpurSpacing1200=X;exports.purpurSpacing150=E;exports.purpurSpacing1600=w;exports.purpurSpacing200=D;exports.purpurSpacing25=M;exports.purpurSpacing250=R;exports.purpurSpacing300=H;exports.purpurSpacing400=f;exports.purpurSpacing50=W;exports.purpurSpacing600=L;exports.purpurSpacing800=b;exports.purpurSpacingGutterLg=$;exports.purpurSpacingGutterMd=Q;exports.purpurSpacingGutterSm=q;exports.purpurSpacingGutterXl=j;exports.purpurSpacingPagePaddingLg=K;exports.purpurSpacingPagePaddingMd=J;exports.purpurSpacingPagePaddingSm=z;exports.purpurSpacingPagePaddingXl=U;exports.purpurTypographyFamilyDefault=V;exports.purpurTypographyFamilyDisplay=Y;exports.purpurTypographyLineHeightDefault=or;exports.purpurTypographyLineHeightLoose=er;exports.purpurTypographyLineHeightLooser=ar;exports.purpurTypographyLineHeightSnug=pr;exports.purpurTypographyLineHeightTight=ur;exports.purpurTypographyScale100=ir;exports.purpurTypographyScale1000=mr;exports.purpurTypographyScale1100=kr;exports.purpurTypographyScale150=lr;exports.purpurTypographyScale200=cr;exports.purpurTypographyScale300=Cr;exports.purpurTypographyScale400=gr;exports.purpurTypographyScale50=tr;exports.purpurTypographyScale500=dr;exports.purpurTypographyScale600=sr;exports.purpurTypographyScale650=vr;exports.purpurTypographyScale700=Br;exports.purpurTypographyScale75=nr;exports.purpurTypographyScale800=Tr;exports.purpurTypographyScale850=Sr;exports.purpurTypographyScale900=yr;exports.purpurTypographyWeightBold=rr;exports.purpurTypographyWeightMedium=_;exports.purpurTypographyWeightNormal=Z;
2
2
  //# sourceMappingURL=tokens.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.cjs.js","sources":["../../tokens/dist/border/variables.js","../../tokens/dist/filter/variables.js","../../tokens/dist/gradient/variables.js","../../tokens/dist/shadow/variables.js","../../tokens/dist/spacing/variables.js","../../tokens/dist/typography/variables.js"],"sourcesContent":["export const purpurBorderRadiusXs = \"2px\";\nexport const purpurBorderRadiusSm = \"4px\";\nexport const purpurBorderRadiusMd = \"8px\";\nexport const purpurBorderRadiusLg = \"16px\";\nexport const purpurBorderRadiusFull = \"999px\";\nexport const purpurBorderWidthXs = \"1px\";\nexport const purpurBorderWidthSm = \"2px\";\nexport const purpurBorderWidthMd = \"3px\";\nexport const purpurBorderWidthLg = \"6px\";\n","export const purpurFilterBlurOnImage = \"blur(24px)\";\n","export const purpurGradientAiTextInteractivePrimary =\n \"linear-gradient(289deg, #3694d3 -13%, #8c07d0 58%)\";\nexport const purpurGradientAiTextInteractivePrimaryNegative =\n \"linear-gradient(289deg, #62b2e7 -13%, #e4b6fb 58%)\";\nexport const purpurGradientAiBackgroundInteractiveExpressive =\n \"linear-gradient(291deg, #3694d3 -15%, #990ae3 44%)\";\nexport const purpurGradientAiBackgroundInteractiveExpressiveNegative =\n \"linear-gradient(291deg, #62b2e7 -15%, #990ae3 44%)\";\nexport const purpurGradientAiBackgroundInteractivePrimary =\n \"linear-gradient(291deg, #3694d3 -15%, #4e0174 44%, #b12df4 133%)\";\nexport const purpurGradientAiBackgroundInteractivePrimaryNegative =\n \"linear-gradient(280deg, #62b2e7 -15%, #f4e0ff 23%, #f4e0ff 68%, #d58df9 112%)\";\nexport const purpurGradientAiBackgroundPrimaryNegative =\n \"linear-gradient(352deg, #62b2e7 -69%, #1f002e 15%, #1f002e 87%, #d58df9 183%)\";\nexport const purpurGradientAiBorderInteractivePrimary =\n \"linear-gradient(289deg, #3694d3 -13%, #8c07d0 58%)\";\nexport const purpurGradientAiBorderInteractivePrimaryNegative =\n \"linear-gradient(289deg, #62b2e7 -13%, #e4b6fb 58%)\";\n","export const purpurShadowNone = \"0rem 0rem 0rem 0rem rgba(0, 0, 0, 0.1)\";\nexport const purpurShadowSm = \"0rem 0.0625rem 0.25rem 0rem rgba(0, 0, 0, 0.1)\";\nexport const purpurShadowMd = \"0rem 0.25rem 0.75rem 0rem rgba(0, 0, 0, 0.1)\";\nexport const purpurShadowLg = \"0rem 0.75rem 1.5rem 0rem rgba(0, 0, 0, 0.1)\";\n","export const purpurSpacing0 = \"0rem\";\nexport const purpurSpacing10 = \"0.0625rem\";\nexport const purpurSpacing25 = \"0.125rem\";\nexport const purpurSpacing50 = \"0.25rem\";\nexport const purpurSpacing100 = \"0.5rem\";\nexport const purpurSpacing150 = \"0.75rem\";\nexport const purpurSpacing200 = \"1rem\";\nexport const purpurSpacing250 = \"1.25rem\";\nexport const purpurSpacing300 = \"1.5rem\";\nexport const purpurSpacing400 = \"2rem\";\nexport const purpurSpacing600 = \"3rem\";\nexport const purpurSpacing800 = \"4rem\";\nexport const purpurSpacing1000 = \"5rem\";\nexport const purpurSpacing1200 = \"6rem\";\nexport const purpurSpacing1600 = \"8rem\";\nexport const purpurSpacingGutterSm = \"1rem\";\nexport const purpurSpacingGutterMd = \"1.5rem\";\nexport const purpurSpacingGutterLg = \"1.5rem\";\nexport const purpurSpacingGutterXl = \"1.5rem\";\nexport const purpurSpacingPagePaddingSm = \"1rem\";\nexport const purpurSpacingPagePaddingMd = \"1.5rem\";\nexport const purpurSpacingPagePaddingLg = \"3rem\";\nexport const purpurSpacingPagePaddingXl = \"3rem\";\n","export const purpurTypographyFamilyDefault =\n \"TeliaSans, Helvetica, Arial, 'Lucida Grande', sans-serif\";\nexport const purpurTypographyFamilyDisplay =\n \"TeliaSansHeading, Helvetica, Arial, 'Lucida Grande', sans-serif\";\nexport const purpurTypographyWeightNormal = \"400\";\nexport const purpurTypographyWeightMedium = \"500\";\nexport const purpurTypographyWeightBold = \"700\";\nexport const purpurTypographyLineHeightTight = \"100%\";\nexport const purpurTypographyLineHeightSnug = \"110%\";\nexport const purpurTypographyLineHeightDefault = \"125%\";\nexport const purpurTypographyLineHeightLoose = \"150%\";\nexport const purpurTypographyLineHeightLooser = \"175%\";\nexport const purpurTypographyScale50 = \"0.75rem\";\nexport const purpurTypographyScale75 = \"0.875rem\";\nexport const purpurTypographyScale100 = \"1rem\";\nexport const purpurTypographyScale150 = \"1.125rem\";\nexport const purpurTypographyScale200 = \"1.25rem\";\nexport const purpurTypographyScale300 = \"1.375rem\";\nexport const purpurTypographyScale400 = \"1.5rem\";\nexport const purpurTypographyScale500 = \"1.75rem\";\nexport const purpurTypographyScale600 = \"2rem\";\nexport const purpurTypographyScale650 = \"2.25rem\";\nexport const purpurTypographyScale700 = \"2.5rem\";\nexport const purpurTypographyScale800 = \"3rem\";\nexport const purpurTypographyScale850 = \"3.5rem\";\nexport const purpurTypographyScale900 = \"4rem\";\nexport const purpurTypographyScale1000 = \"5rem\";\nexport const purpurTypographyScale1100 = \"6rem\";\n"],"names":["purpurBorderRadiusXs","purpurBorderRadiusSm","purpurBorderRadiusMd","purpurBorderRadiusLg","purpurBorderRadiusFull","purpurBorderWidthXs","purpurBorderWidthSm","purpurBorderWidthMd","purpurBorderWidthLg","purpurFilterBlurOnImage","purpurGradientAiTextInteractivePrimary","purpurGradientAiTextInteractivePrimaryNegative","purpurGradientAiBackgroundInteractiveExpressive","purpurGradientAiBackgroundInteractiveExpressiveNegative","purpurGradientAiBackgroundInteractivePrimary","purpurGradientAiBackgroundInteractivePrimaryNegative","purpurGradientAiBackgroundPrimaryNegative","purpurGradientAiBorderInteractivePrimary","purpurGradientAiBorderInteractivePrimaryNegative","purpurShadowNone","purpurShadowSm","purpurShadowMd","purpurShadowLg","purpurSpacing0","purpurSpacing10","purpurSpacing25","purpurSpacing50","purpurSpacing100","purpurSpacing150","purpurSpacing200","purpurSpacing250","purpurSpacing300","purpurSpacing400","purpurSpacing600","purpurSpacing800","purpurSpacing1000","purpurSpacing1200","purpurSpacing1600","purpurSpacingGutterSm","purpurSpacingGutterMd","purpurSpacingGutterLg","purpurSpacingGutterXl","purpurSpacingPagePaddingSm","purpurSpacingPagePaddingMd","purpurSpacingPagePaddingLg","purpurSpacingPagePaddingXl","purpurTypographyFamilyDefault","purpurTypographyFamilyDisplay","purpurTypographyWeightNormal","purpurTypographyWeightMedium","purpurTypographyWeightBold","purpurTypographyLineHeightTight","purpurTypographyLineHeightSnug","purpurTypographyLineHeightDefault","purpurTypographyLineHeightLoose","purpurTypographyLineHeightLooser","purpurTypographyScale50","purpurTypographyScale75","purpurTypographyScale100","purpurTypographyScale150","purpurTypographyScale200","purpurTypographyScale300","purpurTypographyScale400","purpurTypographyScale500","purpurTypographyScale600","purpurTypographyScale650","purpurTypographyScale700","purpurTypographyScale800","purpurTypographyScale850","purpurTypographyScale900","purpurTypographyScale1000","purpurTypographyScale1100"],"mappings":"qMAAaA,EAAuB,MACvBC,EAAuB,MACvBC,EAAuB,MACvBC,EAAuB,OACvBC,EAAyB,QACzBC,EAAsB,MACtBC,EAAsB,MACtBC,EAAsB,MACtBC,EAAsB,MCRtBC,EAA0B,aCA1BC,EACX,qDACWC,EACX,qDACWC,EACX,qDACWC,EACX,qDACWC,EACX,mEACWC,EACX,gFACWC,EACX,gFACWC,EACX,qDACWC,EACX,qDCjBWC,EAAmB,yCACnBC,EAAiB,iDACjBC,EAAiB,+CACjBC,EAAiB,8CCHjBC,EAAiB,OACjBC,EAAkB,YAClBC,EAAkB,WAClBC,EAAkB,UAClBC,EAAmB,SACnBC,EAAmB,UACnBC,EAAmB,OACnBC,EAAmB,UACnBC,EAAmB,SACnBC,EAAmB,OACnBC,EAAmB,OACnBC,EAAmB,OACnBC,EAAoB,OACpBC,EAAoB,OACpBC,EAAoB,OACpBC,EAAwB,OACxBC,EAAwB,SACxBC,EAAwB,SACxBC,EAAwB,SACxBC,EAA6B,OAC7BC,EAA6B,SAC7BC,EAA6B,OAC7BC,EAA6B,OCtB7BC,EACX,2DACWC,EACX,kEACWC,EAA+B,MAC/BC,EAA+B,MAC/BC,EAA6B,MAC7BC,GAAkC,OAClCC,GAAiC,OACjCC,GAAoC,OACpCC,GAAkC,OAClCC,GAAmC,OACnCC,GAA0B,UAC1BC,GAA0B,WAC1BC,GAA2B,OAC3BC,GAA2B,WAC3BC,GAA2B,UAC3BC,GAA2B,WAC3BC,GAA2B,SAC3BC,GAA2B,UAC3BC,GAA2B,OAC3BC,GAA2B,UAC3BC,GAA2B,SAC3BC,GAA2B,OAC3BC,GAA2B,SAC3BC,GAA2B,OAC3BC,GAA4B,OAC5BC,GAA4B"}
1
+ {"version":3,"file":"tokens.cjs.js","sources":["../../tokens/dist/border/variables.js","../../tokens/dist/filter/variables.js","../../tokens/dist/gradient/variables.js","../../tokens/dist/shadow/variables.js","../../tokens/dist/spacing/variables.js","../../tokens/dist/typography/variables.js"],"sourcesContent":["export const purpurBorderRadiusXs = \"2px\";\nexport const purpurBorderRadiusSm = \"4px\";\nexport const purpurBorderRadiusMd = \"8px\";\nexport const purpurBorderRadiusLg = \"16px\";\nexport const purpurBorderRadiusXl = \"24px\";\nexport const purpurBorderRadiusFull = \"999px\";\nexport const purpurBorderWidthXs = \"1px\";\nexport const purpurBorderWidthSm = \"2px\";\nexport const purpurBorderWidthMd = \"3px\";\nexport const purpurBorderWidthLg = \"6px\";\n","export const purpurFilterBlurOnImage = \"blur(24px)\";\n","export const purpurGradientAiTextInteractivePrimary =\n \"linear-gradient(289deg, #3694d3 -13%, #8c07d0 58%)\";\nexport const purpurGradientAiTextInteractivePrimaryNegative =\n \"linear-gradient(289deg, #62b2e7 -13%, #e4b6fb 58%)\";\nexport const purpurGradientAiBackgroundInteractiveExpressive =\n \"linear-gradient(291deg, #3694d3 -15%, #990ae3 44%)\";\nexport const purpurGradientAiBackgroundInteractiveExpressiveNegative =\n \"linear-gradient(291deg, #62b2e7 -15%, #990ae3 44%)\";\nexport const purpurGradientAiBackgroundInteractivePrimary =\n \"linear-gradient(291deg, #3694d3 -15%, #4e0174 44%, #b12df4 133%)\";\nexport const purpurGradientAiBackgroundInteractivePrimaryNegative =\n \"linear-gradient(280deg, #62b2e7 -15%, #f4e0ff 23%, #f4e0ff 68%, #d58df9 112%)\";\nexport const purpurGradientAiBackgroundPrimaryNegative =\n \"linear-gradient(352deg, #62b2e7 -69%, #1f002e 15%, #1f002e 87%, #d58df9 183%)\";\nexport const purpurGradientAiBorderInteractivePrimary =\n \"linear-gradient(289deg, #3694d3 -13%, #8c07d0 58%)\";\nexport const purpurGradientAiBorderInteractivePrimaryNegative =\n \"linear-gradient(289deg, #62b2e7 -13%, #e4b6fb 58%)\";\n","export const purpurShadowNone = \"0rem 0rem 0rem 0rem rgba(0, 0, 0, 0.1)\";\nexport const purpurShadowSm = \"0rem 0.0625rem 0.25rem 0rem rgba(0, 0, 0, 0.1)\";\nexport const purpurShadowMd = \"0rem 0.25rem 0.75rem 0rem rgba(0, 0, 0, 0.1)\";\nexport const purpurShadowLg = \"0rem 0.75rem 1.5rem 0rem rgba(0, 0, 0, 0.1)\";\n","export const purpurSpacing0 = \"0rem\";\nexport const purpurSpacing10 = \"0.0625rem\";\nexport const purpurSpacing25 = \"0.125rem\";\nexport const purpurSpacing50 = \"0.25rem\";\nexport const purpurSpacing100 = \"0.5rem\";\nexport const purpurSpacing150 = \"0.75rem\";\nexport const purpurSpacing200 = \"1rem\";\nexport const purpurSpacing250 = \"1.25rem\";\nexport const purpurSpacing300 = \"1.5rem\";\nexport const purpurSpacing400 = \"2rem\";\nexport const purpurSpacing600 = \"3rem\";\nexport const purpurSpacing800 = \"4rem\";\nexport const purpurSpacing1000 = \"5rem\";\nexport const purpurSpacing1200 = \"6rem\";\nexport const purpurSpacing1600 = \"8rem\";\nexport const purpurSpacingGutterSm = \"1rem\";\nexport const purpurSpacingGutterMd = \"1.5rem\";\nexport const purpurSpacingGutterLg = \"1.5rem\";\nexport const purpurSpacingGutterXl = \"1.5rem\";\nexport const purpurSpacingPagePaddingSm = \"1rem\";\nexport const purpurSpacingPagePaddingMd = \"1.5rem\";\nexport const purpurSpacingPagePaddingLg = \"3rem\";\nexport const purpurSpacingPagePaddingXl = \"3rem\";\n","export const purpurTypographyFamilyDefault =\n \"TeliaSans, Helvetica, Arial, 'Lucida Grande', sans-serif\";\nexport const purpurTypographyFamilyDisplay =\n \"TeliaSansHeading, Helvetica, Arial, 'Lucida Grande', sans-serif\";\nexport const purpurTypographyWeightNormal = \"400\";\nexport const purpurTypographyWeightMedium = \"500\";\nexport const purpurTypographyWeightBold = \"700\";\nexport const purpurTypographyLineHeightTight = \"100%\";\nexport const purpurTypographyLineHeightSnug = \"110%\";\nexport const purpurTypographyLineHeightDefault = \"125%\";\nexport const purpurTypographyLineHeightLoose = \"150%\";\nexport const purpurTypographyLineHeightLooser = \"175%\";\nexport const purpurTypographyScale50 = \"0.75rem\";\nexport const purpurTypographyScale75 = \"0.875rem\";\nexport const purpurTypographyScale100 = \"1rem\";\nexport const purpurTypographyScale150 = \"1.125rem\";\nexport const purpurTypographyScale200 = \"1.25rem\";\nexport const purpurTypographyScale300 = \"1.375rem\";\nexport const purpurTypographyScale400 = \"1.5rem\";\nexport const purpurTypographyScale500 = \"1.75rem\";\nexport const purpurTypographyScale600 = \"2rem\";\nexport const purpurTypographyScale650 = \"2.25rem\";\nexport const purpurTypographyScale700 = \"2.5rem\";\nexport const purpurTypographyScale800 = \"3rem\";\nexport const purpurTypographyScale850 = \"3.5rem\";\nexport const purpurTypographyScale900 = \"4rem\";\nexport const purpurTypographyScale1000 = \"5rem\";\nexport const purpurTypographyScale1100 = \"6rem\";\n"],"names":["purpurBorderRadiusXs","purpurBorderRadiusSm","purpurBorderRadiusMd","purpurBorderRadiusLg","purpurBorderRadiusXl","purpurBorderRadiusFull","purpurBorderWidthXs","purpurBorderWidthSm","purpurBorderWidthMd","purpurBorderWidthLg","purpurFilterBlurOnImage","purpurGradientAiTextInteractivePrimary","purpurGradientAiTextInteractivePrimaryNegative","purpurGradientAiBackgroundInteractiveExpressive","purpurGradientAiBackgroundInteractiveExpressiveNegative","purpurGradientAiBackgroundInteractivePrimary","purpurGradientAiBackgroundInteractivePrimaryNegative","purpurGradientAiBackgroundPrimaryNegative","purpurGradientAiBorderInteractivePrimary","purpurGradientAiBorderInteractivePrimaryNegative","purpurShadowNone","purpurShadowSm","purpurShadowMd","purpurShadowLg","purpurSpacing0","purpurSpacing10","purpurSpacing25","purpurSpacing50","purpurSpacing100","purpurSpacing150","purpurSpacing200","purpurSpacing250","purpurSpacing300","purpurSpacing400","purpurSpacing600","purpurSpacing800","purpurSpacing1000","purpurSpacing1200","purpurSpacing1600","purpurSpacingGutterSm","purpurSpacingGutterMd","purpurSpacingGutterLg","purpurSpacingGutterXl","purpurSpacingPagePaddingSm","purpurSpacingPagePaddingMd","purpurSpacingPagePaddingLg","purpurSpacingPagePaddingXl","purpurTypographyFamilyDefault","purpurTypographyFamilyDisplay","purpurTypographyWeightNormal","purpurTypographyWeightMedium","purpurTypographyWeightBold","purpurTypographyLineHeightTight","purpurTypographyLineHeightSnug","purpurTypographyLineHeightDefault","purpurTypographyLineHeightLoose","purpurTypographyLineHeightLooser","purpurTypographyScale50","purpurTypographyScale75","purpurTypographyScale100","purpurTypographyScale150","purpurTypographyScale200","purpurTypographyScale300","purpurTypographyScale400","purpurTypographyScale500","purpurTypographyScale600","purpurTypographyScale650","purpurTypographyScale700","purpurTypographyScale800","purpurTypographyScale850","purpurTypographyScale900","purpurTypographyScale1000","purpurTypographyScale1100"],"mappings":"qMAAaA,EAAuB,MACvBC,EAAuB,MACvBC,EAAuB,MACvBC,EAAuB,OACvBC,EAAuB,OACvBC,EAAyB,QACzBC,EAAsB,MACtBC,EAAsB,MACtBC,EAAsB,MACtBC,EAAsB,MCTtBC,EAA0B,aCA1BC,EACX,qDACWC,EACX,qDACWC,EACX,qDACWC,EACX,qDACWC,EACX,mEACWC,EACX,gFACWC,EACX,gFACWC,EACX,qDACWC,EACX,qDCjBWC,EAAmB,yCACnBC,EAAiB,iDACjBC,EAAiB,+CACjBC,EAAiB,8CCHjBC,EAAiB,OACjBC,EAAkB,YAClBC,EAAkB,WAClBC,EAAkB,UAClBC,EAAmB,SACnBC,EAAmB,UACnBC,EAAmB,OACnBC,EAAmB,UACnBC,EAAmB,SACnBC,EAAmB,OACnBC,EAAmB,OACnBC,EAAmB,OACnBC,EAAoB,OACpBC,EAAoB,OACpBC,EAAoB,OACpBC,EAAwB,OACxBC,EAAwB,SACxBC,EAAwB,SACxBC,EAAwB,SACxBC,EAA6B,OAC7BC,EAA6B,SAC7BC,EAA6B,OAC7BC,EAA6B,OCtB7BC,EACX,2DACWC,EACX,kEACWC,EAA+B,MAC/BC,EAA+B,MAC/BC,GAA6B,MAC7BC,GAAkC,OAClCC,GAAiC,OACjCC,GAAoC,OACpCC,GAAkC,OAClCC,GAAmC,OACnCC,GAA0B,UAC1BC,GAA0B,WAC1BC,GAA2B,OAC3BC,GAA2B,WAC3BC,GAA2B,UAC3BC,GAA2B,WAC3BC,GAA2B,SAC3BC,GAA2B,UAC3BC,GAA2B,OAC3BC,GAA2B,UAC3BC,GAA2B,SAC3BC,GAA2B,OAC3BC,GAA2B,SAC3BC,GAA2B,OAC3BC,GAA4B,OAC5BC,GAA4B"}