@veeqo/ui 14.7.1 → 14.9.0-beta-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/dist/components/Accordion/Accordion.cjs +19 -16
  2. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  3. package/dist/components/Accordion/Accordion.js +19 -16
  4. package/dist/components/Accordion/Accordion.js.map +1 -1
  5. package/dist/components/Accordion/Accordion.module.scss.cjs +9 -0
  6. package/dist/components/Accordion/Accordion.module.scss.cjs.map +1 -0
  7. package/dist/components/Accordion/Accordion.module.scss.js +7 -0
  8. package/dist/components/Accordion/Accordion.module.scss.js.map +1 -0
  9. package/dist/components/Action/Action.d.ts +4 -4
  10. package/dist/components/Card/Card.cjs +36 -9
  11. package/dist/components/Card/Card.cjs.map +1 -1
  12. package/dist/components/Card/Card.d.ts +10 -5
  13. package/dist/components/Card/Card.js +29 -2
  14. package/dist/components/Card/Card.js.map +1 -1
  15. package/dist/components/Card/Card.module.scss.cjs +9 -0
  16. package/dist/components/Card/Card.module.scss.cjs.map +1 -0
  17. package/dist/components/Card/Card.module.scss.js +7 -0
  18. package/dist/components/Card/Card.module.scss.js.map +1 -0
  19. package/dist/components/CardHeader/CardHeader.cjs +3 -3
  20. package/dist/components/CardHeader/CardHeader.cjs.map +1 -1
  21. package/dist/components/CardHeader/CardHeader.js +3 -3
  22. package/dist/components/CardHeader/CardHeader.js.map +1 -1
  23. package/dist/components/CardHeader/CardHeader.module.scss.cjs +9 -0
  24. package/dist/components/CardHeader/CardHeader.module.scss.cjs.map +1 -0
  25. package/dist/components/CardHeader/CardHeader.module.scss.js +7 -0
  26. package/dist/components/CardHeader/CardHeader.module.scss.js.map +1 -0
  27. package/dist/components/Checkbox/Checkbox.cjs +2 -2
  28. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  29. package/dist/components/Checkbox/Checkbox.js +2 -2
  30. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  31. package/dist/components/Checkbox/Checkbox.module.scss.cjs +9 -0
  32. package/dist/components/Checkbox/Checkbox.module.scss.cjs.map +1 -0
  33. package/dist/components/Checkbox/Checkbox.module.scss.js +7 -0
  34. package/dist/components/Checkbox/Checkbox.module.scss.js.map +1 -0
  35. package/dist/components/Choice/Choice.cjs +21 -11
  36. package/dist/components/Choice/Choice.cjs.map +1 -1
  37. package/dist/components/Choice/Choice.js +21 -11
  38. package/dist/components/Choice/Choice.js.map +1 -1
  39. package/dist/components/Choice/Choice.module.scss.cjs +9 -0
  40. package/dist/components/Choice/Choice.module.scss.cjs.map +1 -0
  41. package/dist/components/Choice/Choice.module.scss.js +7 -0
  42. package/dist/components/Choice/Choice.module.scss.js.map +1 -0
  43. package/dist/components/ChoiceList/ChoiceList.cjs +3 -3
  44. package/dist/components/ChoiceList/ChoiceList.cjs.map +1 -1
  45. package/dist/components/ChoiceList/ChoiceList.js +3 -3
  46. package/dist/components/ChoiceList/ChoiceList.js.map +1 -1
  47. package/dist/components/ChoiceList/ChoiceList.module.scss.cjs +9 -0
  48. package/dist/components/ChoiceList/ChoiceList.module.scss.cjs.map +1 -0
  49. package/dist/components/ChoiceList/ChoiceList.module.scss.js +7 -0
  50. package/dist/components/ChoiceList/ChoiceList.module.scss.js.map +1 -0
  51. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.cjs +4 -2
  52. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.cjs.map +1 -1
  53. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.js +4 -2
  54. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.js.map +1 -1
  55. package/dist/components/DataGrid/components/Body/LoadingBody/LoadingBodyCell.cjs +4 -2
  56. package/dist/components/DataGrid/components/Body/LoadingBody/LoadingBodyCell.cjs.map +1 -1
  57. package/dist/components/DataGrid/components/Body/LoadingBody/LoadingBodyCell.js +4 -2
  58. package/dist/components/DataGrid/components/Body/LoadingBody/LoadingBodyCell.js.map +1 -1
  59. package/dist/components/DataGrid/components/GridContainer/GridContainer.cjs +4 -2
  60. package/dist/components/DataGrid/components/GridContainer/GridContainer.cjs.map +1 -1
  61. package/dist/components/DataGrid/components/GridContainer/GridContainer.js +4 -2
  62. package/dist/components/DataGrid/components/GridContainer/GridContainer.js.map +1 -1
  63. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.cjs +4 -2
  64. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.cjs.map +1 -1
  65. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.js +4 -2
  66. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.js.map +1 -1
  67. package/dist/components/DimensionsInput/DimensionsInput.cjs +0 -1
  68. package/dist/components/DimensionsInput/DimensionsInput.cjs.map +1 -1
  69. package/dist/components/DimensionsInput/DimensionsInput.d.ts +10 -10
  70. package/dist/components/DimensionsInput/DimensionsInput.js +0 -1
  71. package/dist/components/DimensionsInput/DimensionsInput.js.map +1 -1
  72. package/dist/components/Dropdown/styled.cjs +12 -1
  73. package/dist/components/Dropdown/styled.cjs.map +1 -1
  74. package/dist/components/Dropdown/styled.js +12 -1
  75. package/dist/components/Dropdown/styled.js.map +1 -1
  76. package/dist/components/FilterTag/styled.d.ts +1 -1
  77. package/dist/components/Flex/FlexCol/FlexCol.d.ts +1 -1
  78. package/dist/components/Flex/FlexRow/FlexRow.d.ts +1 -1
  79. package/dist/components/InputAffix/InputAffix.cjs +6 -10
  80. package/dist/components/InputAffix/InputAffix.cjs.map +1 -1
  81. package/dist/components/InputAffix/InputAffix.d.ts +4 -6
  82. package/dist/components/InputAffix/InputAffix.js +6 -9
  83. package/dist/components/InputAffix/InputAffix.js.map +1 -1
  84. package/dist/components/InputAffix/InputAffix.module.scss.cjs +9 -0
  85. package/dist/components/InputAffix/InputAffix.module.scss.cjs.map +1 -0
  86. package/dist/components/InputAffix/InputAffix.module.scss.js +7 -0
  87. package/dist/components/InputAffix/InputAffix.module.scss.js.map +1 -0
  88. package/dist/components/LegacyDataTable/SpecificState/styled.d.ts +2 -2
  89. package/dist/components/Modal/components/Dialog/styles/baseStyles.cjs +1 -1
  90. package/dist/components/Modal/components/Dialog/styles/baseStyles.cjs.map +1 -1
  91. package/dist/components/Modal/components/Dialog/styles/baseStyles.js +1 -1
  92. package/dist/components/Modal/components/Dialog/styles/baseStyles.js.map +1 -1
  93. package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.cjs +2 -2
  94. package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.cjs.map +1 -1
  95. package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.js +2 -2
  96. package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.js.map +1 -1
  97. package/dist/components/Pagination/styled.d.ts +11 -11
  98. package/dist/components/PhoneInput/index.d.ts +10 -10
  99. package/dist/components/PriceInput/PriceInput.cjs +1 -1
  100. package/dist/components/PriceInput/PriceInput.cjs.map +1 -1
  101. package/dist/components/PriceInput/PriceInput.js +1 -1
  102. package/dist/components/PriceInput/PriceInput.js.map +1 -1
  103. package/dist/components/Radio/Radio.cjs +2 -2
  104. package/dist/components/Radio/Radio.cjs.map +1 -1
  105. package/dist/components/Radio/Radio.js +2 -2
  106. package/dist/components/Radio/Radio.js.map +1 -1
  107. package/dist/components/Radio/Radio.module.scss.cjs +9 -0
  108. package/dist/components/Radio/Radio.module.scss.cjs.map +1 -0
  109. package/dist/components/Radio/Radio.module.scss.js +7 -0
  110. package/dist/components/Radio/Radio.module.scss.js.map +1 -0
  111. package/dist/components/Search/Search.d.ts +10 -10
  112. package/dist/components/Search/styled.d.ts +10 -10
  113. package/dist/components/SimpleTable/SimpleTable.cjs +20 -7
  114. package/dist/components/SimpleTable/SimpleTable.cjs.map +1 -1
  115. package/dist/components/SimpleTable/SimpleTable.d.ts +9 -7
  116. package/dist/components/SimpleTable/SimpleTable.js +15 -2
  117. package/dist/components/SimpleTable/SimpleTable.js.map +1 -1
  118. package/dist/components/SimpleTable/SimpleTable.module.scss.cjs +9 -0
  119. package/dist/components/SimpleTable/SimpleTable.module.scss.cjs.map +1 -0
  120. package/dist/components/SimpleTable/SimpleTable.module.scss.js +7 -0
  121. package/dist/components/SimpleTable/SimpleTable.module.scss.js.map +1 -0
  122. package/dist/components/Text/Text.d.ts +1 -1
  123. package/dist/components/TextField/TextField.d.ts +10 -10
  124. package/dist/components/TextField/index.d.ts +10 -10
  125. package/dist/components/ToastsLayout/ToastsLayout.cjs +6 -5
  126. package/dist/components/ToastsLayout/ToastsLayout.cjs.map +1 -1
  127. package/dist/components/ToastsLayout/ToastsLayout.js +7 -6
  128. package/dist/components/ToastsLayout/ToastsLayout.js.map +1 -1
  129. package/dist/components/ToastsLayout/ToastsLayout.module.scss.cjs +9 -0
  130. package/dist/components/ToastsLayout/ToastsLayout.module.scss.cjs.map +1 -0
  131. package/dist/components/ToastsLayout/ToastsLayout.module.scss.js +7 -0
  132. package/dist/components/ToastsLayout/ToastsLayout.module.scss.js.map +1 -0
  133. package/dist/components/ToastsLayout/components/Toast.cjs +18 -7
  134. package/dist/components/ToastsLayout/components/Toast.cjs.map +1 -1
  135. package/dist/components/ToastsLayout/components/Toast.d.ts +7 -2
  136. package/dist/components/ToastsLayout/components/Toast.js +18 -7
  137. package/dist/components/ToastsLayout/components/Toast.js.map +1 -1
  138. package/dist/components/ToastsLayout/components/ToastTransitionItem.cjs +18 -0
  139. package/dist/components/ToastsLayout/components/ToastTransitionItem.cjs.map +1 -0
  140. package/dist/components/ToastsLayout/components/ToastTransitionItem.d.ts +12 -0
  141. package/dist/components/ToastsLayout/components/ToastTransitionItem.js +12 -0
  142. package/dist/components/ToastsLayout/components/ToastTransitionItem.js.map +1 -0
  143. package/dist/components/ToggleButton/ToggleButton.cjs +2 -2
  144. package/dist/components/ToggleButton/ToggleButton.cjs.map +1 -1
  145. package/dist/components/ToggleButton/ToggleButton.d.ts +2 -8
  146. package/dist/components/ToggleButton/ToggleButton.js +2 -2
  147. package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
  148. package/dist/components/ToggleButton/types.d.ts +8 -0
  149. package/dist/components/UploadFile/UploadFile.cjs +7 -2
  150. package/dist/components/UploadFile/UploadFile.cjs.map +1 -1
  151. package/dist/components/UploadFile/UploadFile.js +7 -2
  152. package/dist/components/UploadFile/UploadFile.js.map +1 -1
  153. package/dist/components/UploadFile/UploadFile.module.scss.cjs +9 -0
  154. package/dist/components/UploadFile/UploadFile.module.scss.cjs.map +1 -0
  155. package/dist/components/UploadFile/UploadFile.module.scss.js +7 -0
  156. package/dist/components/UploadFile/UploadFile.module.scss.js.map +1 -0
  157. package/dist/components/View/View.cjs +37 -9
  158. package/dist/components/View/View.cjs.map +1 -1
  159. package/dist/components/View/View.js +35 -7
  160. package/dist/components/View/View.js.map +1 -1
  161. package/dist/components/View/View.module.scss.cjs +9 -0
  162. package/dist/components/View/View.module.scss.cjs.map +1 -0
  163. package/dist/components/View/View.module.scss.js +7 -0
  164. package/dist/components/View/View.module.scss.js.map +1 -0
  165. package/dist/components/ViewTab/ViewTab.d.ts +1 -1
  166. package/dist/components/WeightInput/WeightInput.cjs +0 -1
  167. package/dist/components/WeightInput/WeightInput.cjs.map +1 -1
  168. package/dist/components/WeightInput/WeightInput.js +0 -1
  169. package/dist/components/WeightInput/WeightInput.js.map +1 -1
  170. package/dist/utils/forms/inputStyles.cjs +1 -2
  171. package/dist/utils/forms/inputStyles.cjs.map +1 -1
  172. package/dist/utils/forms/inputStyles.js +2 -2
  173. package/dist/utils/forms/inputStyles.js.map +1 -1
  174. package/package.json +1 -1
  175. package/dist/components/Accordion/styled.cjs +0 -49
  176. package/dist/components/Accordion/styled.cjs.map +0 -1
  177. package/dist/components/Accordion/styled.d.ts +0 -26
  178. package/dist/components/Accordion/styled.js +0 -34
  179. package/dist/components/Accordion/styled.js.map +0 -1
  180. package/dist/components/Card/styled.cjs +0 -50
  181. package/dist/components/Card/styled.cjs.map +0 -1
  182. package/dist/components/Card/styled.d.ts +0 -16
  183. package/dist/components/Card/styled.js +0 -40
  184. package/dist/components/Card/styled.js.map +0 -1
  185. package/dist/components/CardHeader/styled.cjs +0 -15
  186. package/dist/components/CardHeader/styled.cjs.map +0 -1
  187. package/dist/components/CardHeader/styled.d.ts +0 -2
  188. package/dist/components/CardHeader/styled.js +0 -8
  189. package/dist/components/CardHeader/styled.js.map +0 -1
  190. package/dist/components/Checkbox/styled.cjs +0 -14
  191. package/dist/components/Checkbox/styled.cjs.map +0 -1
  192. package/dist/components/Checkbox/styled.d.ts +0 -1
  193. package/dist/components/Checkbox/styled.js +0 -8
  194. package/dist/components/Checkbox/styled.js.map +0 -1
  195. package/dist/components/Choice/components/styled.cjs +0 -30
  196. package/dist/components/Choice/components/styled.cjs.map +0 -1
  197. package/dist/components/Choice/components/styled.d.ts +0 -14
  198. package/dist/components/Choice/components/styled.js +0 -18
  199. package/dist/components/Choice/components/styled.js.map +0 -1
  200. package/dist/components/ChoiceList/styled.cjs +0 -15
  201. package/dist/components/ChoiceList/styled.cjs.map +0 -1
  202. package/dist/components/ChoiceList/styled.d.ts +0 -2
  203. package/dist/components/ChoiceList/styled.js +0 -8
  204. package/dist/components/ChoiceList/styled.js.map +0 -1
  205. package/dist/components/Dropdown/styled.d.ts +0 -11
  206. package/dist/components/Radio/styled.cjs +0 -12
  207. package/dist/components/Radio/styled.cjs.map +0 -1
  208. package/dist/components/Radio/styled.d.ts +0 -1
  209. package/dist/components/Radio/styled.js +0 -6
  210. package/dist/components/Radio/styled.js.map +0 -1
  211. package/dist/components/SimpleTable/styled.cjs +0 -34
  212. package/dist/components/SimpleTable/styled.cjs.map +0 -1
  213. package/dist/components/SimpleTable/styled.d.ts +0 -15
  214. package/dist/components/SimpleTable/styled.js +0 -23
  215. package/dist/components/SimpleTable/styled.js.map +0 -1
  216. package/dist/components/ToastsLayout/components/styled.cjs +0 -58
  217. package/dist/components/ToastsLayout/components/styled.cjs.map +0 -1
  218. package/dist/components/ToastsLayout/components/styled.d.ts +0 -36
  219. package/dist/components/ToastsLayout/components/styled.js +0 -48
  220. package/dist/components/ToastsLayout/components/styled.js.map +0 -1
  221. package/dist/components/ToggleButton/styled.cjs +0 -49
  222. package/dist/components/ToggleButton/styled.cjs.map +0 -1
  223. package/dist/components/ToggleButton/styled.d.ts +0 -1
  224. package/dist/components/ToggleButton/styled.js +0 -43
  225. package/dist/components/ToggleButton/styled.js.map +0 -1
  226. package/dist/components/UploadFile/styled.cjs +0 -54
  227. package/dist/components/UploadFile/styled.cjs.map +0 -1
  228. package/dist/components/UploadFile/styled.d.ts +0 -4
  229. package/dist/components/UploadFile/styled.js +0 -48
  230. package/dist/components/UploadFile/styled.js.map +0 -1
  231. package/dist/components/View/styled.cjs +0 -53
  232. package/dist/components/View/styled.cjs.map +0 -1
  233. package/dist/components/View/styled.d.ts +0 -37
  234. package/dist/components/View/styled.js +0 -41
  235. package/dist/components/View/styled.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"DimensionsInput.cjs","sources":["../../../src/components/DimensionsInput/DimensionsInput.tsx"],"sourcesContent":["import React from 'react';\n\nimport { withLabels } from '../../hoc';\nimport { invalidCharsList } from '../../utils/invalidCharactersNumeric';\nimport { blockInvalidCharacters } from '../../utils/blockInvalidCharacters';\n\nimport { InputAffix, InputAffixProps } from '../InputAffix';\nimport { TextField, TextFieldProps } from '../TextField';\nimport { Stack } from '../Stack';\nimport { InputGroup, InputGroupProps } from '../InputGroup';\n\nimport { DimensionsProps } from './types';\n\ntype ChildComponentProps = {\n inputGroup: Partial<InputGroupProps>;\n textField: Partial<TextFieldProps>;\n inputAffix: Partial<InputAffixProps>;\n};\n\nconst blockInvalidChars = (e: React.KeyboardEvent) => blockInvalidCharacters(e, invalidCharsList);\n\nconst styles = {\n inputGroup: {\n flex: 1,\n },\n textField: {\n flex: 1,\n },\n};\n\nexport const DimensionsInput = withLabels<DimensionsProps>(\n ({\n size = 'base',\n handleChangeHeight,\n handleChangeWidth,\n handleChangeLength,\n className,\n height,\n width,\n length,\n unit = 'cm',\n hasError,\n ...rest\n }) => {\n const compact = size === 'sm';\n\n const childProps: ChildComponentProps = {\n inputGroup: {\n hasError,\n compact,\n style: styles.inputGroup,\n },\n textField: {\n type: 'number',\n min: '0',\n step: 'any',\n onKeyDown: blockInvalidChars,\n size,\n hasError,\n style: styles.textField,\n ...rest,\n },\n inputAffix: {\n compact,\n hasError,\n },\n };\n\n return (\n <Stack direction=\"horizontal\" alignY=\"center\" className={className}>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>L</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"length\"\n value={length}\n aria-label=\"Length\"\n aria-describedby=\"length-unit\"\n onChange={handleChangeLength}\n placeholder=\"0\"\n />\n <InputAffix id=\"length-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>W</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"width\"\n value={width}\n aria-label=\"Width\"\n aria-describedby=\"width-unit\"\n onChange={handleChangeWidth}\n placeholder=\"0\"\n />\n <InputAffix id=\"width-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>H</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"height\"\n value={height}\n aria-label=\"Height\"\n aria-describedby=\"height-unit\"\n onChange={handleChangeHeight}\n placeholder=\"0\"\n />\n <InputAffix id=\"height-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n </Stack>\n );\n },\n);\n\nDimensionsInput.displayName = 'DimensionsInput';\n"],"names":["blockInvalidCharacters","invalidCharsList","withLabels","React","Stack","InputGroup","InputAffix","TextField"],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAM,iBAAiB,GAAG,CAAC,CAAsB,KAAKA,6CAAsB,CAAC,CAAC,EAAEC,yC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AAA,CAAA,aAAA,CAACI,eAAS,EAAA,EAAA,GACJ,UAAU,CAAC,SAAS,EACxB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,MAAM,EAAA,YAAA,EACF,QAAQ,EAAA,kBAAA,EACF,aAAa,EAC9B,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAC,GAAG,EAAA,CACf;AACF,YAAAJ,sBAAA,CAAA,aAAA,CAACG,qBAAU,EAAA,EAAC,EAAE,EAAC,aAAa,EAAA,GAAK,UAAU,CAAC,UAAU,IACnD,IAAI,CACM,CACF,CACP;AAEZ,CAAC;AAGH,eAAe,CAAC,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"DimensionsInput.cjs","sources":["../../../src/components/DimensionsInput/DimensionsInput.tsx"],"sourcesContent":["import React from 'react';\n\nimport { withLabels } from '../../hoc';\nimport { invalidCharsList } from '../../utils/invalidCharactersNumeric';\nimport { blockInvalidCharacters } from '../../utils/blockInvalidCharacters';\n\nimport { InputAffix, InputAffixProps } from '../InputAffix';\nimport { TextField, TextFieldProps } from '../TextField';\nimport { Stack } from '../Stack';\nimport { InputGroup, InputGroupProps } from '../InputGroup';\n\nimport { DimensionsProps } from './types';\n\ntype ChildComponentProps = {\n inputGroup: Partial<InputGroupProps>;\n textField: Partial<TextFieldProps>;\n inputAffix: Partial<InputAffixProps>;\n};\n\nconst blockInvalidChars = (e: React.KeyboardEvent) => blockInvalidCharacters(e, invalidCharsList);\n\nconst styles = {\n inputGroup: {\n flex: 1,\n },\n textField: {\n flex: 1,\n },\n};\n\nexport const DimensionsInput = withLabels<DimensionsProps>(\n ({\n size = 'base',\n handleChangeHeight,\n handleChangeWidth,\n handleChangeLength,\n className,\n height,\n width,\n length,\n unit = 'cm',\n hasError,\n ...rest\n }) => {\n const compact = size === 'sm';\n\n const childProps: ChildComponentProps = {\n inputGroup: {\n hasError,\n compact,\n style: styles.inputGroup,\n },\n textField: {\n type: 'number',\n min: '0',\n step: 'any',\n onKeyDown: blockInvalidChars,\n size,\n hasError,\n style: styles.textField,\n ...rest,\n },\n inputAffix: {\n compact,\n },\n };\n\n return (\n <Stack direction=\"horizontal\" alignY=\"center\" className={className}>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>L</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"length\"\n value={length}\n aria-label=\"Length\"\n aria-describedby=\"length-unit\"\n onChange={handleChangeLength}\n placeholder=\"0\"\n />\n <InputAffix id=\"length-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>W</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"width\"\n value={width}\n aria-label=\"Width\"\n aria-describedby=\"width-unit\"\n onChange={handleChangeWidth}\n placeholder=\"0\"\n />\n <InputAffix id=\"width-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>H</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"height\"\n value={height}\n aria-label=\"Height\"\n aria-describedby=\"height-unit\"\n onChange={handleChangeHeight}\n placeholder=\"0\"\n />\n <InputAffix id=\"height-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n </Stack>\n );\n },\n);\n\nDimensionsInput.displayName = 'DimensionsInput';\n"],"names":["blockInvalidCharacters","invalidCharsList","withLabels","React","Stack","InputGroup","InputAffix","TextField"],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAM,iBAAiB,GAAG,CAAC,CAAsB,KAAKA,6CAAsB,CAAC,CAAC,EAAEC,yCAAgB,CAAC;AAEjG,MAAM,MAAM,GAAG;AACb,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,IAAI,E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F,aAAa,EAC9B,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAC,GAAG,EAAA,CACf;AACF,YAAAJ,sBAAA,CAAA,aAAA,CAACG,qBAAU,EAAA,EAAC,EAAE,EAAC,aAAa,EAAA,GAAK,UAAU,CAAC,UAAU,IACnD,IAAI,CACM,CACF,CACP;AAEZ,CAAC;AAGH,eAAe,CAAC,WAAW,GAAG,iBAAiB;;;;"}
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
2
  export declare const DimensionsInput: React.ForwardRefExoticComponent<{
3
3
  rel?: string | undefined;
4
+ placeholder?: string | undefined;
4
5
  form?: string | undefined;
5
6
  slot?: string | undefined;
6
7
  style?: React.CSSProperties | undefined;
7
8
  title?: string | undefined;
8
9
  pattern?: string | undefined;
10
+ list?: string | undefined;
9
11
  className?: string | undefined;
10
12
  children?: React.ReactNode;
11
13
  defaultChecked?: boolean | undefined;
@@ -14,7 +16,7 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
14
16
  suppressHydrationWarning?: boolean | undefined;
15
17
  accessKey?: string | undefined;
16
18
  autoFocus?: boolean | undefined;
17
- contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
19
+ contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
18
20
  contextMenu?: string | undefined;
19
21
  dir?: string | undefined;
20
22
  draggable?: (boolean | "true" | "false") | undefined;
@@ -22,10 +24,9 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
22
24
  id?: string | undefined;
23
25
  lang?: string | undefined;
24
26
  nonce?: string | undefined;
25
- placeholder?: string | undefined;
26
27
  spellCheck?: (boolean | "true" | "false") | undefined;
27
28
  tabIndex?: number | undefined;
28
- translate?: "no" | "yes" | undefined;
29
+ translate?: "yes" | "no" | undefined;
29
30
  radioGroup?: string | undefined;
30
31
  role?: React.AriaRole | undefined;
31
32
  about?: string | undefined;
@@ -61,7 +62,7 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
61
62
  'aria-colindex'?: number | undefined;
62
63
  'aria-colspan'?: number | undefined;
63
64
  'aria-controls'?: string | undefined;
64
- 'aria-current'?: boolean | "time" | "true" | "false" | "step" | "date" | "page" | "location" | undefined;
65
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
65
66
  'aria-describedby'?: string | undefined;
66
67
  'aria-details'?: string | undefined;
67
68
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
@@ -70,7 +71,7 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
70
71
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
71
72
  'aria-flowto'?: string | undefined;
72
73
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
73
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false" | undefined;
74
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
74
75
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
75
76
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
76
77
  'aria-keyshortcuts'?: string | undefined;
@@ -262,13 +263,13 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
262
263
  onAnimationIterationCapture?: (React.AnimationEventHandler<HTMLInputElement> & React.AnimationEventHandler<HTMLTextAreaElement>) | undefined;
263
264
  onTransitionEnd?: (React.TransitionEventHandler<HTMLInputElement> & React.TransitionEventHandler<HTMLTextAreaElement>) | undefined;
264
265
  onTransitionEndCapture?: (React.TransitionEventHandler<HTMLInputElement> & React.TransitionEventHandler<HTMLTextAreaElement>) | undefined;
265
- alt?: string | undefined;
266
266
  disabled?: boolean | undefined;
267
267
  formAction?: string | undefined;
268
268
  formEncType?: string | undefined;
269
269
  formMethod?: string | undefined;
270
270
  formNoValidate?: boolean | undefined;
271
271
  formTarget?: string | undefined;
272
+ alt?: string | undefined;
272
273
  autoComplete?: string | undefined;
273
274
  accept?: string | undefined;
274
275
  capture?: boolean | "user" | "environment" | undefined;
@@ -280,17 +281,16 @@ export declare const DimensionsInput: React.ForwardRefExoticComponent<{
280
281
  maxLength?: number | undefined;
281
282
  minLength?: number | undefined;
282
283
  src?: string | undefined;
283
- list?: string | undefined;
284
- name?: string | undefined;
285
284
  height?: string | number | undefined;
286
285
  max?: string | number | undefined;
287
286
  min?: string | number | undefined;
287
+ name?: string | undefined;
288
288
  width?: string | number | undefined;
289
+ wrap?: string | undefined;
290
+ step?: string | number | undefined;
289
291
  readOnly?: boolean | undefined;
290
292
  required?: boolean | undefined;
291
- step?: string | number | undefined;
292
293
  rows?: number | undefined;
293
- wrap?: string | undefined;
294
294
  } & {
295
295
  value?: string | undefined;
296
296
  type?: import("../TextField").TextFieldType | undefined;
@@ -36,7 +36,6 @@ const DimensionsInput = withLabels(({ size = 'base', handleChangeHeight, handleC
36
36
  },
37
37
  inputAffix: {
38
38
  compact,
39
- hasError,
40
39
  },
41
40
  };
42
41
  return (React__default.createElement(Stack, { direction: "horizontal", alignY: "center", className: className },
@@ -1 +1 @@
1
- {"version":3,"file":"DimensionsInput.js","sources":["../../../src/components/DimensionsInput/DimensionsInput.tsx"],"sourcesContent":["import React from 'react';\n\nimport { withLabels } from '../../hoc';\nimport { invalidCharsList } from '../../utils/invalidCharactersNumeric';\nimport { blockInvalidCharacters } from '../../utils/blockInvalidCharacters';\n\nimport { InputAffix, InputAffixProps } from '../InputAffix';\nimport { TextField, TextFieldProps } from '../TextField';\nimport { Stack } from '../Stack';\nimport { InputGroup, InputGroupProps } from '../InputGroup';\n\nimport { DimensionsProps } from './types';\n\ntype ChildComponentProps = {\n inputGroup: Partial<InputGroupProps>;\n textField: Partial<TextFieldProps>;\n inputAffix: Partial<InputAffixProps>;\n};\n\nconst blockInvalidChars = (e: React.KeyboardEvent) => blockInvalidCharacters(e, invalidCharsList);\n\nconst styles = {\n inputGroup: {\n flex: 1,\n },\n textField: {\n flex: 1,\n },\n};\n\nexport const DimensionsInput = withLabels<DimensionsProps>(\n ({\n size = 'base',\n handleChangeHeight,\n handleChangeWidth,\n handleChangeLength,\n className,\n height,\n width,\n length,\n unit = 'cm',\n hasError,\n ...rest\n }) => {\n const compact = size === 'sm';\n\n const childProps: ChildComponentProps = {\n inputGroup: {\n hasError,\n compact,\n style: styles.inputGroup,\n },\n textField: {\n type: 'number',\n min: '0',\n step: 'any',\n onKeyDown: blockInvalidChars,\n size,\n hasError,\n style: styles.textField,\n ...rest,\n },\n inputAffix: {\n compact,\n hasError,\n },\n };\n\n return (\n <Stack direction=\"horizontal\" alignY=\"center\" className={className}>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>L</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"length\"\n value={length}\n aria-label=\"Length\"\n aria-describedby=\"length-unit\"\n onChange={handleChangeLength}\n placeholder=\"0\"\n />\n <InputAffix id=\"length-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>W</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"width\"\n value={width}\n aria-label=\"Width\"\n aria-describedby=\"width-unit\"\n onChange={handleChangeWidth}\n placeholder=\"0\"\n />\n <InputAffix id=\"width-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>H</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"height\"\n value={height}\n aria-label=\"Height\"\n aria-describedby=\"height-unit\"\n onChange={handleChangeHeight}\n placeholder=\"0\"\n />\n <InputAffix id=\"height-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n </Stack>\n );\n },\n);\n\nDimensionsInput.displayName = 'DimensionsInput';\n"],"names":["React"],"mappings":";;;;;;;;;AAmBA,MAAM,iBAAiB,GAAG,CAAC,CAAsB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ACrDA,cAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GACJ,UAAU,CAAC,SAAS,EACxB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,MAAM,EAAA,YAAA,EACF,QAAQ,EAAA,kBAAA,EACF,aAAa,EAC9B,QAAQ,EAAE,kBAAkB,EAC5B,WAAW,EAAC,GAAG,EAAA,CACf;AACF,YAAAA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,EAAE,EAAC,aAAa,EAAA,GAAK,UAAU,CAAC,UAAU,IACnD,IAAI,CACM,CACF,CACP;AAEZ,CAAC;AAGH,eAAe,CAAC,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"DimensionsInput.js","sources":["../../../src/components/DimensionsInput/DimensionsInput.tsx"],"sourcesContent":["import React from 'react';\n\nimport { withLabels } from '../../hoc';\nimport { invalidCharsList } from '../../utils/invalidCharactersNumeric';\nimport { blockInvalidCharacters } from '../../utils/blockInvalidCharacters';\n\nimport { InputAffix, InputAffixProps } from '../InputAffix';\nimport { TextField, TextFieldProps } from '../TextField';\nimport { Stack } from '../Stack';\nimport { InputGroup, InputGroupProps } from '../InputGroup';\n\nimport { DimensionsProps } from './types';\n\ntype ChildComponentProps = {\n inputGroup: Partial<InputGroupProps>;\n textField: Partial<TextFieldProps>;\n inputAffix: Partial<InputAffixProps>;\n};\n\nconst blockInvalidChars = (e: React.KeyboardEvent) => blockInvalidCharacters(e, invalidCharsList);\n\nconst styles = {\n inputGroup: {\n flex: 1,\n },\n textField: {\n flex: 1,\n },\n};\n\nexport const DimensionsInput = withLabels<DimensionsProps>(\n ({\n size = 'base',\n handleChangeHeight,\n handleChangeWidth,\n handleChangeLength,\n className,\n height,\n width,\n length,\n unit = 'cm',\n hasError,\n ...rest\n }) => {\n const compact = size === 'sm';\n\n const childProps: ChildComponentProps = {\n inputGroup: {\n hasError,\n compact,\n style: styles.inputGroup,\n },\n textField: {\n type: 'number',\n min: '0',\n step: 'any',\n onKeyDown: blockInvalidChars,\n size,\n hasError,\n style: styles.textField,\n ...rest,\n },\n inputAffix: {\n compact,\n },\n };\n\n return (\n <Stack direction=\"horizontal\" alignY=\"center\" className={className}>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>L</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"length\"\n value={length}\n aria-label=\"Length\"\n aria-describedby=\"length-unit\"\n onChange={handleChangeLength}\n placeholder=\"0\"\n />\n <InputAffix id=\"length-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>W</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"width\"\n value={width}\n aria-label=\"Width\"\n aria-describedby=\"width-unit\"\n onChange={handleChangeWidth}\n placeholder=\"0\"\n />\n <InputAffix id=\"width-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n <InputGroup {...childProps.inputGroup} style={{ flex: 1 }}>\n <InputAffix {...childProps.inputAffix}>H</InputAffix>\n <TextField\n {...childProps.textField}\n name=\"height\"\n value={height}\n aria-label=\"Height\"\n aria-describedby=\"height-unit\"\n onChange={handleChangeHeight}\n placeholder=\"0\"\n />\n <InputAffix id=\"height-unit\" {...childProps.inputAffix}>\n {unit}\n </InputAffix>\n </InputGroup>\n </Stack>\n );\n },\n);\n\nDimensionsInput.displayName = 'DimensionsInput';\n"],"names":["React"],"mappings":";;;;;;;;;AAmBA,MAAM,iBAAiB,GAAG,CAAC,CAAsB,KAAK,sBAAsB,CAAC,CAAC,EAAE,gBAAgB,CAAC;AAEjG,MAAM,MAAM,GAAG;AACb,IAAA,UAAU,EAAE;AACV,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;AACD,IAAA,SAAS,EAAE;AACT,QAAA,IAAI,EAAE,CAAC;AACR,KAAA;CACF;AAEM,MAAM,eAAe,GAAG,UAAU,CACvC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,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,EAAE,EAAC,aAAa,EAAA,GAAK,UAAU,CAAC,UAAU,IACnD,IAAI,CACM,CACF,CACP;AAEZ,CAAC;AAGH,eAAe,CAAC,WAAW,GAAG,iBAAiB;;;;"}
@@ -9,7 +9,18 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
9
9
 
10
10
  var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
11
11
 
12
- const DropdownContainer = styled__default.default(framerMotion.motion(Card.Card.Surface)).withConfig({ displayName: "vui--DropdownContainer", componentId: "vui--1yrw4mw" }) `display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:${index.theme.shadows.md};border-radius:${index.theme.radius.base};padding:${index.theme.sizes.base};`;
12
+ const DropdownContainer = styled__default.default(framerMotion.motion(Card.Card.Surface)).withConfig({
13
+ shouldForwardProp: (prop) => !['useAnchorWidth', 'reversed'].includes(prop),
14
+ }) `
15
+ display: inline-flex;
16
+ flex-direction: column;
17
+ overflow: hidden;
18
+
19
+ background-color: white;
20
+ box-shadow: ${index.theme.shadows.md};
21
+ border-radius: ${index.theme.radius.base};
22
+ padding: ${index.theme.sizes.base};
23
+ `;
13
24
 
14
25
  exports.DropdownContainer = DropdownContainer;
15
26
  //# sourceMappingURL=styled.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.cjs","sources":["../../../src/components/Dropdown/styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { motion } from 'framer-motion';\nimport { theme } from '../../theme';\nimport { Card } from '../Card';\n\nexport const DropdownContainer = styled(motion(Card.Surface))`\n display: inline-flex;\n flex-direction: column;\n overflow: hidden;\n\n background-color: white;\n box-shadow: ${theme.shadows.md};\n border-radius: ${theme.radius.base};\n padding: ${theme.sizes.base};\n`;\n"],"names":["styled","motion","Card","theme"],"mappings":";;;;;;;;;;;AAMO,MAAM,iBAAiB,GAAGA,uBAAM,CAACC,mBAAM,CAACC,SAAI,CAAC,OAAO,CAAC,CAAC,mLAM7CC,WAAK,CAAC,OAAO,CAAC,EAAE,CAAA,eAAA,EACbA,WAAK,CAAC,MAAM,CAAC,IAAI,CAAA,SAAA,EACvBA,WAAK,CAAC,KAAK,CAAC,IAAI;;;;"}
1
+ {"version":3,"file":"styled.cjs","sources":["../../../src/components/Dropdown/styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { motion } from 'framer-motion';\nimport { theme } from '../../theme';\nimport { Card } from '../Card';\n\nexport const DropdownContainer = styled(motion(Card.Surface)).withConfig({\n shouldForwardProp: (prop) => !['useAnchorWidth', 'reversed'].includes(prop),\n})<{ useAnchorWidth?: boolean; reversed?: boolean }>`\n display: inline-flex;\n flex-direction: column;\n overflow: hidden;\n\n background-color: white;\n box-shadow: ${theme.shadows.md};\n border-radius: ${theme.radius.base};\n padding: ${theme.sizes.base};\n`;\n"],"names":["styled","motion","Card","theme"],"mappings":";;;;;;;;;;;AAMO,MAAM,iBAAiB,GAAGA,uBAAM,CAACC,mBAAM,CAACC,SAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC;AACvE,IAAA,iBAAiB,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC5E,CAAA,CAAC,CAAkD;;;;;;gBAMpCC,WAAK,CAAC,OAAO,CAAC,EAAE,CAAA;mBACbA,WAAK,CAAC,MAAM,CAAC,IAAI,CAAA;aACvBA,WAAK,CAAC,KAAK,CAAC,IAAI,CAAA;;;;;"}
@@ -3,7 +3,18 @@ import { motion } from 'framer-motion';
3
3
  import { theme } from '../../theme/index.js';
4
4
  import { Card } from '../Card/Card.js';
5
5
 
6
- const DropdownContainer = styled(motion(Card.Surface)).withConfig({ displayName: "vui--DropdownContainer", componentId: "vui--1yrw4mw" }) `display:inline-flex;flex-direction:column;overflow:hidden;background-color:white;box-shadow:${theme.shadows.md};border-radius:${theme.radius.base};padding:${theme.sizes.base};`;
6
+ const DropdownContainer = styled(motion(Card.Surface)).withConfig({
7
+ shouldForwardProp: (prop) => !['useAnchorWidth', 'reversed'].includes(prop),
8
+ }) `
9
+ display: inline-flex;
10
+ flex-direction: column;
11
+ overflow: hidden;
12
+
13
+ background-color: white;
14
+ box-shadow: ${theme.shadows.md};
15
+ border-radius: ${theme.radius.base};
16
+ padding: ${theme.sizes.base};
17
+ `;
7
18
 
8
19
  export { DropdownContainer };
9
20
  //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","sources":["../../../src/components/Dropdown/styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { motion } from 'framer-motion';\nimport { theme } from '../../theme';\nimport { Card } from '../Card';\n\nexport const DropdownContainer = styled(motion(Card.Surface))`\n display: inline-flex;\n flex-direction: column;\n overflow: hidden;\n\n background-color: white;\n box-shadow: ${theme.shadows.md};\n border-radius: ${theme.radius.base};\n padding: ${theme.sizes.base};\n`;\n"],"names":[],"mappings":";;;;;AAMO,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,mLAM7C,KAAK,CAAC,OAAO,CAAC,EAAE,CAAA,eAAA,EACb,KAAK,CAAC,MAAM,CAAC,IAAI,CAAA,SAAA,EACvB,KAAK,CAAC,KAAK,CAAC,IAAI;;;;"}
1
+ {"version":3,"file":"styled.js","sources":["../../../src/components/Dropdown/styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport { motion } from 'framer-motion';\nimport { theme } from '../../theme';\nimport { Card } from '../Card';\n\nexport const DropdownContainer = styled(motion(Card.Surface)).withConfig({\n shouldForwardProp: (prop) => !['useAnchorWidth', 'reversed'].includes(prop),\n})<{ useAnchorWidth?: boolean; reversed?: boolean }>`\n display: inline-flex;\n flex-direction: column;\n overflow: hidden;\n\n background-color: white;\n box-shadow: ${theme.shadows.md};\n border-radius: ${theme.radius.base};\n padding: ${theme.sizes.base};\n`;\n"],"names":[],"mappings":";;;;;AAMO,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC;AACvE,IAAA,iBAAiB,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC5E,CAAA,CAAC,CAAkD;;;;;;gBAMpC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAA;mBACb,KAAK,CAAC,MAAM,CAAC,IAAI,CAAA;aACvB,KAAK,CAAC,KAAK,CAAC,IAAI,CAAA;;;;;"}
@@ -7,7 +7,7 @@ declare const Container: import("styled-components").StyledComponent<import("rea
7
7
  declare const GroupLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
8
8
  as?: import("../Text").ValidTextTag | undefined;
9
9
  muted?: boolean | undefined;
10
- variant?: "body" | "button" | "link" | "placeholder" | "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "buttonSmall" | "linkLarge" | "linkMedium" | "linkSmall" | undefined;
10
+ variant?: "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "body" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholder" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "button" | "buttonSmall" | "linkLarge" | "linkMedium" | "link" | "linkSmall" | undefined;
11
11
  } & import("react").HTMLAttributes<HTMLElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
12
12
  declare const MainIcon: import("styled-components").StyledComponent<(props: import("react").SVGProps<SVGSVGElement>) => import("react").JSX.Element, any, {
13
13
  $shouldShow?: boolean | undefined;
@@ -5,6 +5,6 @@ export declare const FlexCol: React.ForwardRefExoticComponent<{
5
5
  alignItems?: ("baseline" | "center" | "flex-start" | "flex-end" | "stretch") | undefined;
6
6
  justifyContent?: ("center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly") | undefined;
7
7
  gap?: keyof import("../../../theme/modules/sizes").SizeScale | undefined;
8
- flexWrap?: ("wrap" | "nowrap" | "wrap-reverse") | undefined;
8
+ flexWrap?: ("nowrap" | "wrap" | "wrap-reverse") | undefined;
9
9
  flexGrow?: import("csstype").Property.FlexGrow | undefined;
10
10
  } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -5,6 +5,6 @@ export declare const FlexRow: React.ForwardRefExoticComponent<{
5
5
  alignItems?: ("baseline" | "center" | "flex-start" | "flex-end" | "stretch") | undefined;
6
6
  justifyContent?: ("center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly") | undefined;
7
7
  gap?: keyof import("../../../theme/modules/sizes").SizeScale | undefined;
8
- flexWrap?: ("wrap" | "nowrap" | "wrap-reverse") | undefined;
8
+ flexWrap?: ("nowrap" | "wrap" | "wrap-reverse") | undefined;
9
9
  flexGrow?: import("csstype").Property.FlexGrow | undefined;
10
10
  } & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -1,23 +1,19 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var styled = require('styled-components');
5
- var inputStyles = require('../../utils/forms/inputStyles.cjs');
6
- var index = require('../../theme/index.cjs');
4
+ var buildClassnames = require('../../utils/buildClassnames.cjs');
5
+ require('uid/secure');
7
6
  var Text = require('../Text/Text.cjs');
7
+ var InputAffix_module = require('./InputAffix.module.scss.cjs');
8
8
 
9
9
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
10
10
 
11
11
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
12
- var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
13
12
 
14
- const Container = styled__default.default.div.withConfig({ displayName: "vui--Container", componentId: "vui--zm6t34" }) `user-select:none;flex-shrink:0;${inputStyles.inputFullStyles} [data-input-group]:has(:disabled)&{background-color:${index.theme.colors.neutral.grey.light};}`;
15
- const StyledHint = styled__default.default(Text.Text).attrs({ variant: 'hintText' }).withConfig({ displayName: "vui--StyledHint", componentId: "vui--8xnkei" }) `font-size:${index.theme.text.body.fontSize};`;
16
- function InputAffix({ children, ...otherProps }) {
17
- return (React__default.default.createElement(Container, { ...otherProps },
18
- React__default.default.createElement(StyledHint, { variant: "hintText" }, children)));
13
+ function InputAffix({ children, compact, className, ...otherProps }) {
14
+ return (React__default.default.createElement("div", { className: buildClassnames.buildClassnames([InputAffix_module.container, compact && InputAffix_module.compact, className]), ...otherProps },
15
+ React__default.default.createElement(Text.Text, { variant: "hintText", className: InputAffix_module.hint }, children)));
19
16
  }
20
- InputAffix.Container = Container;
21
17
 
22
18
  exports.InputAffix = InputAffix;
23
19
  //# sourceMappingURL=InputAffix.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputAffix.cjs","sources":["../../../src/components/InputAffix/InputAffix.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { inputFullStyles } from '../../utils/forms/inputStyles';\nimport { theme } from '../../theme';\nimport { Text } from '../Text';\nimport { FormComponentProps } from '../types';\n\nexport type InputAffixProps = React.HTMLAttributes<HTMLDivElement> & FormComponentProps;\n\nconst Container = styled.div<InputAffixProps>`\n user-select: none;\n flex-shrink: 0;\n\n ${inputFullStyles}\n\n [data-input-group]:has(:disabled) & {\n background-color: ${theme.colors.neutral.grey.light};\n }\n`;\n\nconst StyledHint = styled(Text).attrs({ variant: 'hintText' })`\n font-size: ${theme.text.body.fontSize};\n`;\n\nexport function InputAffix({ children, ...otherProps }: InputAffixProps) {\n return (\n <Container {...otherProps}>\n <StyledHint variant=\"hintText\">{children}</StyledHint>\n </Container>\n );\n}\n\nInputAffix.Container = Container;\n"],"names":["styled","inputFullStyles","theme","Text","React"],"mappings":";;;;;;;;;;;;;AASA,MAAM,SAAS,GAAGA,uBAAM,CAAC,GAAG,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,+BAAA,EAIxBC,2BAAe,CAAA,qDAAA,EAGKC,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAEtD;AAED,MAAM,UAAU,GAAGF,uBAAM,CAACG,SAAI,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,UAAA,EAC/CD,WAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAA,CAAA,CACtC;AAEK,SAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAmB,EAAA;AACrE,IAAA,QACEE,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GAAK,UAAU,EAAA;QACvBA,sBAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAC,UAAU,IAAE,QAAQ,CAAc,CAC5C;AAEhB;AAEA,UAAU,CAAC,SAAS,GAAG,SAAS;;;;"}
1
+ {"version":3,"file":"InputAffix.cjs","sources":["../../../src/components/InputAffix/InputAffix.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport { Text } from '../Text';\n\nimport styles from './InputAffix.module.scss';\n\nexport type InputAffixProps = React.HTMLAttributes<HTMLDivElement> & {\n compact?: boolean;\n};\n\nexport function InputAffix({ children, compact, className, ...otherProps }: InputAffixProps) {\n return (\n <div\n className={buildClassnames([styles.container, compact && styles.compact, className])}\n {...otherProps}\n >\n <Text variant=\"hintText\" className={styles.hint}>\n {children}\n </Text>\n </div>\n );\n}\n"],"names":["React","buildClassnames","styles","Text"],"mappings":";;;;;;;;;;;;AAUM,SAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,UAAU,EAAmB,EAAA;IACzF,QACEA,8CACE,SAAS,EAAEC,+BAAe,CAAC,CAACC,iBAAM,CAAC,SAAS,EAAE,OAAO,IAAIA,iBAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,EAAA,GAChF,UAAU,EAAA;AAEd,QAAAF,sBAAA,CAAA,aAAA,CAACG,SAAI,EAAA,EAAC,OAAO,EAAC,UAAU,EAAC,SAAS,EAAED,iBAAM,CAAC,IAAI,EAAA,EAC5C,QAAQ,CACJ,CACH;AAEV;;;;"}
@@ -1,7 +1,5 @@
1
1
  import React from 'react';
2
- import { FormComponentProps } from '../types';
3
- export type InputAffixProps = React.HTMLAttributes<HTMLDivElement> & FormComponentProps;
4
- export declare function InputAffix({ children, ...otherProps }: InputAffixProps): React.JSX.Element;
5
- export declare namespace InputAffix {
6
- var Container: import("styled-components").StyledComponent<"div", any, React.HTMLAttributes<HTMLDivElement> & FormComponentProps, never>;
7
- }
2
+ export type InputAffixProps = React.HTMLAttributes<HTMLDivElement> & {
3
+ compact?: boolean;
4
+ };
5
+ export declare function InputAffix({ children, compact, className, ...otherProps }: InputAffixProps): React.JSX.Element;
@@ -1,16 +1,13 @@
1
1
  import React__default from 'react';
2
- import styled from 'styled-components';
3
- import { inputFullStyles } from '../../utils/forms/inputStyles.js';
4
- import { theme } from '../../theme/index.js';
2
+ import { buildClassnames } from '../../utils/buildClassnames.js';
3
+ import 'uid/secure';
5
4
  import { Text } from '../Text/Text.js';
5
+ import styles from './InputAffix.module.scss.js';
6
6
 
7
- const Container = styled.div.withConfig({ displayName: "vui--Container", componentId: "vui--zm6t34" }) `user-select:none;flex-shrink:0;${inputFullStyles} [data-input-group]:has(:disabled)&{background-color:${theme.colors.neutral.grey.light};}`;
8
- const StyledHint = styled(Text).attrs({ variant: 'hintText' }).withConfig({ displayName: "vui--StyledHint", componentId: "vui--8xnkei" }) `font-size:${theme.text.body.fontSize};`;
9
- function InputAffix({ children, ...otherProps }) {
10
- return (React__default.createElement(Container, { ...otherProps },
11
- React__default.createElement(StyledHint, { variant: "hintText" }, children)));
7
+ function InputAffix({ children, compact, className, ...otherProps }) {
8
+ return (React__default.createElement("div", { className: buildClassnames([styles.container, compact && styles.compact, className]), ...otherProps },
9
+ React__default.createElement(Text, { variant: "hintText", className: styles.hint }, children)));
12
10
  }
13
- InputAffix.Container = Container;
14
11
 
15
12
  export { InputAffix };
16
13
  //# sourceMappingURL=InputAffix.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputAffix.js","sources":["../../../src/components/InputAffix/InputAffix.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { inputFullStyles } from '../../utils/forms/inputStyles';\nimport { theme } from '../../theme';\nimport { Text } from '../Text';\nimport { FormComponentProps } from '../types';\n\nexport type InputAffixProps = React.HTMLAttributes<HTMLDivElement> & FormComponentProps;\n\nconst Container = styled.div<InputAffixProps>`\n user-select: none;\n flex-shrink: 0;\n\n ${inputFullStyles}\n\n [data-input-group]:has(:disabled) & {\n background-color: ${theme.colors.neutral.grey.light};\n }\n`;\n\nconst StyledHint = styled(Text).attrs({ variant: 'hintText' })`\n font-size: ${theme.text.body.fontSize};\n`;\n\nexport function InputAffix({ children, ...otherProps }: InputAffixProps) {\n return (\n <Container {...otherProps}>\n <StyledHint variant=\"hintText\">{children}</StyledHint>\n </Container>\n );\n}\n\nInputAffix.Container = Container;\n"],"names":["React"],"mappings":";;;;;;AASA,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,+BAAA,EAIxB,eAAe,CAAA,qDAAA,EAGK,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,IAEtD;AAED,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,UAAA,EAC/C,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAA,CAAA,CACtC;AAEK,SAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAmB,EAAA;AACrE,IAAA,QACEA,cAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAA,GAAK,UAAU,EAAA;QACvBA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,OAAO,EAAC,UAAU,IAAE,QAAQ,CAAc,CAC5C;AAEhB;AAEA,UAAU,CAAC,SAAS,GAAG,SAAS;;;;"}
1
+ {"version":3,"file":"InputAffix.js","sources":["../../../src/components/InputAffix/InputAffix.tsx"],"sourcesContent":["import React from 'react';\nimport { buildClassnames } from '../../utils';\nimport { Text } from '../Text';\n\nimport styles from './InputAffix.module.scss';\n\nexport type InputAffixProps = React.HTMLAttributes<HTMLDivElement> & {\n compact?: boolean;\n};\n\nexport function InputAffix({ children, compact, className, ...otherProps }: InputAffixProps) {\n return (\n <div\n className={buildClassnames([styles.container, compact && styles.compact, className])}\n {...otherProps}\n >\n <Text variant=\"hintText\" className={styles.hint}>\n {children}\n </Text>\n </div>\n );\n}\n"],"names":["React"],"mappings":";;;;;;AAUM,SAAU,UAAU,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,UAAU,EAAmB,EAAA;IACzF,QACEA,sCACE,SAAS,EAAE,eAAe,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,IAAI,MAAM,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,EAAA,GAChF,UAAU,EAAA;AAEd,QAAAA,cAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,OAAO,EAAC,UAAU,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAA,EAC5C,QAAQ,CACJ,CACH;AAEV;;;;"}
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var ___$insertStyle = require('../../_virtual/____insertStyle.cjs');
4
+
5
+ ___$insertStyle("._container_nmclh_1 {\n user-select: none;\n flex-shrink: 0;\n box-sizing: border-box;\n background-color: white;\n min-height: var(--sizes-10);\n padding-inline: var(--sizes-3);\n border-radius: var(--radius-base);\n border: var(--sizes-line) solid var(--border-color, var(--colors-neutral-ink-lightest));\n display: flex;\n align-items: center;\n}\n[data-input-group] > ._container_nmclh_1:first-child {\n padding-right: calc(var(--sizes-3) - var(--sizes-1));\n}\n[data-input-group] > ._container_nmclh_1:last-child {\n padding-left: var(--sizes-2);\n}\n[data-input-group] > ._container_nmclh_1:not(:first-child):not(:last-child) {\n padding-inline: var(--sizes-2);\n}\n[data-input-group]:has(:disabled) ._container_nmclh_1 {\n background-color: var(--colors-neutral-grey-light);\n}\n\n._compact_nmclh_26 {\n min-height: var(--sizes-8);\n}\n\n._hint_nmclh_30 {\n font-size: var(--text-body-font-size);\n}");
6
+ var styles = {"container":"_container_nmclh_1","compact":"_compact_nmclh_26","hint":"_hint_nmclh_30"};
7
+
8
+ module.exports = styles;
9
+ //# sourceMappingURL=InputAffix.module.scss.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputAffix.module.scss.cjs","sources":["../../../src/components/InputAffix/InputAffix.module.scss"],"sourcesContent":[".container {\n user-select: none;\n flex-shrink: 0;\n box-sizing: border-box;\n\n background-color: white;\n min-height: var(--sizes-10);\n padding-inline: var(--sizes-3);\n border-radius: var(--radius-base);\n border: var(--sizes-line) solid var(--border-color, var(--colors-neutral-ink-lightest));\n\n display: flex;\n align-items: center;\n\n [data-input-group] > &:first-child {\n padding-right: calc(var(--sizes-3) - var(--sizes-1));\n }\n\n [data-input-group] > &:last-child {\n padding-left: var(--sizes-2);\n }\n\n [data-input-group] > &:not(:first-child):not(:last-child) {\n padding-inline: var(--sizes-2);\n }\n\n [data-input-group]:has(:disabled) & {\n background-color: var(--colors-neutral-grey-light);\n }\n}\n\n.compact {\n min-height: var(--sizes-8);\n}\n\n.hint {\n font-size: var(--text-body-font-size);\n}\n"],"names":[],"mappings":";;;;AACE,eAAA,CAAA,45BAAA;AACA,aAAA,CAAA,WAAA,CAAA,oBAAA,CAAA,SAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,gBAAA;;;;"}
@@ -0,0 +1,7 @@
1
+ import insertStyle from '../../_virtual/____insertStyle.js';
2
+
3
+ insertStyle("._container_nmclh_1 {\n user-select: none;\n flex-shrink: 0;\n box-sizing: border-box;\n background-color: white;\n min-height: var(--sizes-10);\n padding-inline: var(--sizes-3);\n border-radius: var(--radius-base);\n border: var(--sizes-line) solid var(--border-color, var(--colors-neutral-ink-lightest));\n display: flex;\n align-items: center;\n}\n[data-input-group] > ._container_nmclh_1:first-child {\n padding-right: calc(var(--sizes-3) - var(--sizes-1));\n}\n[data-input-group] > ._container_nmclh_1:last-child {\n padding-left: var(--sizes-2);\n}\n[data-input-group] > ._container_nmclh_1:not(:first-child):not(:last-child) {\n padding-inline: var(--sizes-2);\n}\n[data-input-group]:has(:disabled) ._container_nmclh_1 {\n background-color: var(--colors-neutral-grey-light);\n}\n\n._compact_nmclh_26 {\n min-height: var(--sizes-8);\n}\n\n._hint_nmclh_30 {\n font-size: var(--text-body-font-size);\n}");
4
+ var styles = {"container":"_container_nmclh_1","compact":"_compact_nmclh_26","hint":"_hint_nmclh_30"};
5
+
6
+ export { styles as default };
7
+ //# sourceMappingURL=InputAffix.module.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputAffix.module.scss.js","sources":["../../../src/components/InputAffix/InputAffix.module.scss"],"sourcesContent":[".container {\n user-select: none;\n flex-shrink: 0;\n box-sizing: border-box;\n\n background-color: white;\n min-height: var(--sizes-10);\n padding-inline: var(--sizes-3);\n border-radius: var(--radius-base);\n border: var(--sizes-line) solid var(--border-color, var(--colors-neutral-ink-lightest));\n\n display: flex;\n align-items: center;\n\n [data-input-group] > &:first-child {\n padding-right: calc(var(--sizes-3) - var(--sizes-1));\n }\n\n [data-input-group] > &:last-child {\n padding-left: var(--sizes-2);\n }\n\n [data-input-group] > &:not(:first-child):not(:last-child) {\n padding-inline: var(--sizes-2);\n }\n\n [data-input-group]:has(:disabled) & {\n background-color: var(--colors-neutral-grey-light);\n }\n}\n\n.compact {\n min-height: var(--sizes-8);\n}\n\n.hint {\n font-size: var(--text-body-font-size);\n}\n"],"names":["___$insertStyle"],"mappings":";;AACEA,WAAA,CAAA,45BAAA;AACA,aAAA,CAAA,WAAA,CAAA,oBAAA,CAAA,SAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,gBAAA;;;;"}
@@ -7,11 +7,11 @@ declare const EllipseContainer: import("styled-components").StyledComponent<impo
7
7
  declare const TitleText: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
8
8
  as?: import("../../Text").ValidTextTag | undefined;
9
9
  muted?: boolean | undefined;
10
- variant?: "body" | "button" | "link" | "placeholder" | "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "buttonSmall" | "linkLarge" | "linkMedium" | "linkSmall" | undefined;
10
+ variant?: "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "body" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholder" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "button" | "buttonSmall" | "linkLarge" | "linkMedium" | "link" | "linkSmall" | undefined;
11
11
  } & import("react").HTMLAttributes<HTMLElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
12
12
  declare const SubTitleText: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
13
13
  as?: import("../../Text").ValidTextTag | undefined;
14
14
  muted?: boolean | undefined;
15
- variant?: "body" | "button" | "link" | "placeholder" | "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "buttonSmall" | "linkLarge" | "linkMedium" | "linkSmall" | undefined;
15
+ variant?: "headingXXL" | "headingXL" | "headingLarge" | "headingMedium" | "headingSmall" | "headingTable" | "subheadingLarge" | "subheadingMedium" | "subheadingSmall" | "subheadingSmallBold" | "body" | "bodySmall" | "bodyBold" | "bodyBoldDark" | "bodySmallBold" | "inputLabel" | "inputLabelSmall" | "hintText" | "placeholder" | "placeholderSmall" | "placeholderCode" | "placeholderCodeSmall" | "error" | "errorSmall" | "successSmall" | "button" | "buttonSmall" | "linkLarge" | "linkMedium" | "link" | "linkSmall" | undefined;
16
16
  } & import("react").HTMLAttributes<HTMLElement> & import("react").LabelHTMLAttributes<HTMLLabelElement> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
17
17
  export { SpecificStateContainer, EllipseContainer, TitleText, SubTitleText };
@@ -7,7 +7,7 @@ var index = require('../../../../../theme/index.cjs');
7
7
  var styled = require('../../styled.cjs');
8
8
  var constants = require('../constants.cjs');
9
9
 
10
- const baseModalStyles = styled$1.css `padding:0;border:none;border-radius:${index.theme.sizes.sm};box-shadow:${index.theme.shadows.lg};z-index:${index.theme.layers.modal};&::backdrop{animation:fadeIn 0.25s ease forwards;background-color:${color.getOpaqueHexColor(index.theme.colors.neutral.ink.base, 0.5)};width:100%;height:100%;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}& > ${Card.Card.Surface}{display:flex;flex-direction:column;${styled.MainSection}{padding-bottom:${index.theme.sizes.md};}${Card.Card.Footer}{margin-top:0;}}@media (max-width: ${({ variant }) => constants.fullScreenBreakpointMap[variant]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Card.Card.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}`;
10
+ const baseModalStyles = styled$1.css `padding:0;border:none;border-radius:${index.theme.sizes.sm};box-shadow:${index.theme.shadows.lg};z-index:${index.theme.layers.modal};&::backdrop{animation:fadeIn 0.25s ease forwards;background-color:${color.getOpaqueHexColor(index.theme.colors.neutral.ink.base, 0.5)};width:100%;height:100%;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}& > ${Card.Card.Surface.toString()}{display:flex;flex-direction:column;${styled.MainSection}{padding-bottom:${index.theme.sizes.md};}${Card.Card.Footer.toString()}{margin-top:0;}}@media (max-width: ${({ variant }) => constants.fullScreenBreakpointMap[variant]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Card.Card.Surface.toString()}{border-radius:0;height:100%;width:100%;max-height:unset;}}`;
11
11
 
12
12
  exports.baseModalStyles = baseModalStyles;
13
13
  //# sourceMappingURL=baseStyles.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseStyles.cjs","sources":["../../../../../../src/components/Modal/components/Dialog/styles/baseStyles.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { ModalVariants } from '../../../types';\nimport { getOpaqueHexColor } from '../../../../../utils/color';\nimport { Card } from '../../../../Card';\nimport { theme } from '../../../../../theme';\nimport { MainSection } from '../../styled';\nimport { fullScreenBreakpointMap } from '../constants';\n\nexport const baseModalStyles = css<{ variant: ModalVariants }>`\n padding: 0;\n border: none;\n border-radius: ${theme.sizes.sm};\n box-shadow: ${theme.shadows.lg};\n z-index: ${theme.layers.modal};\n\n &::backdrop {\n animation: fadeIn 0.25s ease forwards;\n background-color: ${getOpaqueHexColor(theme.colors.neutral.ink.base, 0.5)};\n width: 100%;\n height: 100%;\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n & > ${Card.Surface} {\n display: flex;\n flex-direction: column;\n\n ${MainSection} {\n padding-bottom: ${theme.sizes.md};\n }\n\n ${Card.Footer} {\n margin-top: 0;\n }\n }\n\n @media (max-width: ${({ variant }) => fullScreenBreakpointMap[variant]}) {\n margin: 0;\n width: 100%;\n max-width: 100vw;\n max-height: 100vh;\n\n &,\n & > ${Card.Surface} {\n border-radius: 0;\n height: 100%;\n width: 100%;\n max-height: unset;\n }\n }\n`;\n"],"names":["css","theme","getOpaqueHexColor","Card","MainSection","fullScreenBreakpointMap"],"mappings":";;;;;;;;;AAQO,MAAM,eAAe,GAAGA,YAAG,CAAA,CAAA,oCAAA,EAGfC,WAAK,CAAC,KAAK,CAAC,EAAE,CAAA,YAAA,EACjBA,WAAK,CAAC,OAAO,CAAC,EAAE,CAAA,SAAA,EACnBA,WAAK,CAAC,MAAM,CAAC,KAAK,CAAA,mEAAA,EAIPC,uBAAiB,CAACD,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA,8EAAA,EAcrEE,SAAI,CAAC,OAAO,CAAA,oCAAA,EAIdC,kBAAW,CAAA,gBAAA,EACOH,WAAK,CAAC,KAAK,CAAC,EAAE,CAAA,EAAA,EAGhCE,SAAI,CAAC,MAAM,CAAA,mCAAA,EAKM,CAAC,EAAE,OAAO,EAAE,KAAKE,iCAAuB,CAAC,OAAO,CAAC,CAAA,6DAAA,EAO9DF,SAAI,CAAC,OAAO;;;;"}
1
+ {"version":3,"file":"baseStyles.cjs","sources":["../../../../../../src/components/Modal/components/Dialog/styles/baseStyles.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { ModalVariants } from '../../../types';\nimport { getOpaqueHexColor } from '../../../../../utils/color';\nimport { Card } from '../../../../Card';\nimport { theme } from '../../../../../theme';\nimport { MainSection } from '../../styled';\nimport { fullScreenBreakpointMap } from '../constants';\n\nexport const baseModalStyles = css<{ variant: ModalVariants }>`\n padding: 0;\n border: none;\n border-radius: ${theme.sizes.sm};\n box-shadow: ${theme.shadows.lg};\n z-index: ${theme.layers.modal};\n\n &::backdrop {\n animation: fadeIn 0.25s ease forwards;\n background-color: ${getOpaqueHexColor(theme.colors.neutral.ink.base, 0.5)};\n width: 100%;\n height: 100%;\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n & > ${Card.Surface.toString()} {\n display: flex;\n flex-direction: column;\n\n ${MainSection} {\n padding-bottom: ${theme.sizes.md};\n }\n\n ${Card.Footer.toString()} {\n margin-top: 0;\n }\n }\n\n @media (max-width: ${({ variant }) => fullScreenBreakpointMap[variant]}) {\n margin: 0;\n width: 100%;\n max-width: 100vw;\n max-height: 100vh;\n\n &,\n & > ${Card.Surface.toString()} {\n border-radius: 0;\n height: 100%;\n width: 100%;\n max-height: unset;\n }\n }\n`;\n"],"names":["css","theme","getOpaqueHexColor","Card","MainSection","fullScreenBreakpointMap"],"mappings":";;;;;;;;;AAQO,MAAM,eAAe,GAAGA,YAAG,wCAGfC,WAAK,CAAC,KAAK,CAAC,EAAE,CAAA,YAAA,EACjBA,WAAK,CAAC,OAAO,CAAC,EAAE,CAAA,SAAA,EACnBA,WAAK,CAAC,MAAM,CAAC,KAAK,CAAA,mEAAA,EAIPC,uBAAiB,CAACD,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA,8EAAA,EAcrEE,SAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAA,oCAAA,EAIzBC,kBAAW,mBACOH,WAAK,CAAC,KAAK,CAAC,EAAE,CAAA,EAAA,EAGhCE,SAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAA,mCAAA,EAKL,CAAC,EAAE,OAAO,EAAE,KAAKE,iCAAuB,CAAC,OAAO,CAAC,CAAA,6DAAA,EAO9DF,SAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;;;;"}
@@ -5,7 +5,7 @@ import { theme } from '../../../../../theme/index.js';
5
5
  import { MainSection } from '../../styled.js';
6
6
  import { fullScreenBreakpointMap } from '../constants.js';
7
7
 
8
- const baseModalStyles = css `padding:0;border:none;border-radius:${theme.sizes.sm};box-shadow:${theme.shadows.lg};z-index:${theme.layers.modal};&::backdrop{animation:fadeIn 0.25s ease forwards;background-color:${getOpaqueHexColor(theme.colors.neutral.ink.base, 0.5)};width:100%;height:100%;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}& > ${Card.Surface}{display:flex;flex-direction:column;${MainSection}{padding-bottom:${theme.sizes.md};}${Card.Footer}{margin-top:0;}}@media (max-width: ${({ variant }) => fullScreenBreakpointMap[variant]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Card.Surface}{border-radius:0;height:100%;width:100%;max-height:unset;}}`;
8
+ const baseModalStyles = css `padding:0;border:none;border-radius:${theme.sizes.sm};box-shadow:${theme.shadows.lg};z-index:${theme.layers.modal};&::backdrop{animation:fadeIn 0.25s ease forwards;background-color:${getOpaqueHexColor(theme.colors.neutral.ink.base, 0.5)};width:100%;height:100%;}@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}& > ${Card.Surface.toString()}{display:flex;flex-direction:column;${MainSection}{padding-bottom:${theme.sizes.md};}${Card.Footer.toString()}{margin-top:0;}}@media (max-width: ${({ variant }) => fullScreenBreakpointMap[variant]}){margin:0;width:100%;max-width:100vw;max-height:100vh;&,& > ${Card.Surface.toString()}{border-radius:0;height:100%;width:100%;max-height:unset;}}`;
9
9
 
10
10
  export { baseModalStyles };
11
11
  //# sourceMappingURL=baseStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"baseStyles.js","sources":["../../../../../../src/components/Modal/components/Dialog/styles/baseStyles.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { ModalVariants } from '../../../types';\nimport { getOpaqueHexColor } from '../../../../../utils/color';\nimport { Card } from '../../../../Card';\nimport { theme } from '../../../../../theme';\nimport { MainSection } from '../../styled';\nimport { fullScreenBreakpointMap } from '../constants';\n\nexport const baseModalStyles = css<{ variant: ModalVariants }>`\n padding: 0;\n border: none;\n border-radius: ${theme.sizes.sm};\n box-shadow: ${theme.shadows.lg};\n z-index: ${theme.layers.modal};\n\n &::backdrop {\n animation: fadeIn 0.25s ease forwards;\n background-color: ${getOpaqueHexColor(theme.colors.neutral.ink.base, 0.5)};\n width: 100%;\n height: 100%;\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n & > ${Card.Surface} {\n display: flex;\n flex-direction: column;\n\n ${MainSection} {\n padding-bottom: ${theme.sizes.md};\n }\n\n ${Card.Footer} {\n margin-top: 0;\n }\n }\n\n @media (max-width: ${({ variant }) => fullScreenBreakpointMap[variant]}) {\n margin: 0;\n width: 100%;\n max-width: 100vw;\n max-height: 100vh;\n\n &,\n & > ${Card.Surface} {\n border-radius: 0;\n height: 100%;\n width: 100%;\n max-height: unset;\n }\n }\n`;\n"],"names":[],"mappings":";;;;;;;AAQO,MAAM,eAAe,GAAG,GAAG,CAAA,CAAA,oCAAA,EAGf,KAAK,CAAC,KAAK,CAAC,EAAE,CAAA,YAAA,EACjB,KAAK,CAAC,OAAO,CAAC,EAAE,CAAA,SAAA,EACnB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAA,mEAAA,EAIP,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA,8EAAA,EAcrE,IAAI,CAAC,OAAO,CAAA,oCAAA,EAId,WAAW,CAAA,gBAAA,EACO,KAAK,CAAC,KAAK,CAAC,EAAE,CAAA,EAAA,EAGhC,IAAI,CAAC,MAAM,CAAA,mCAAA,EAKM,CAAC,EAAE,OAAO,EAAE,KAAK,uBAAuB,CAAC,OAAO,CAAC,CAAA,6DAAA,EAO9D,IAAI,CAAC,OAAO;;;;"}
1
+ {"version":3,"file":"baseStyles.js","sources":["../../../../../../src/components/Modal/components/Dialog/styles/baseStyles.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { ModalVariants } from '../../../types';\nimport { getOpaqueHexColor } from '../../../../../utils/color';\nimport { Card } from '../../../../Card';\nimport { theme } from '../../../../../theme';\nimport { MainSection } from '../../styled';\nimport { fullScreenBreakpointMap } from '../constants';\n\nexport const baseModalStyles = css<{ variant: ModalVariants }>`\n padding: 0;\n border: none;\n border-radius: ${theme.sizes.sm};\n box-shadow: ${theme.shadows.lg};\n z-index: ${theme.layers.modal};\n\n &::backdrop {\n animation: fadeIn 0.25s ease forwards;\n background-color: ${getOpaqueHexColor(theme.colors.neutral.ink.base, 0.5)};\n width: 100%;\n height: 100%;\n }\n\n @keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n\n & > ${Card.Surface.toString()} {\n display: flex;\n flex-direction: column;\n\n ${MainSection} {\n padding-bottom: ${theme.sizes.md};\n }\n\n ${Card.Footer.toString()} {\n margin-top: 0;\n }\n }\n\n @media (max-width: ${({ variant }) => fullScreenBreakpointMap[variant]}) {\n margin: 0;\n width: 100%;\n max-width: 100vw;\n max-height: 100vh;\n\n &,\n & > ${Card.Surface.toString()} {\n border-radius: 0;\n height: 100%;\n width: 100%;\n max-height: unset;\n }\n }\n`;\n"],"names":[],"mappings":";;;;;;;AAQO,MAAM,eAAe,GAAG,GAAG,wCAGf,KAAK,CAAC,KAAK,CAAC,EAAE,CAAA,YAAA,EACjB,KAAK,CAAC,OAAO,CAAC,EAAE,CAAA,SAAA,EACnB,KAAK,CAAC,MAAM,CAAC,KAAK,CAAA,mEAAA,EAIP,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAA,8EAAA,EAcrE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAA,oCAAA,EAIzB,WAAW,mBACO,KAAK,CAAC,KAAK,CAAC,EAAE,CAAA,EAAA,EAGhC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAA,mCAAA,EAKL,CAAC,EAAE,OAAO,EAAE,KAAK,uBAAuB,CAAC,OAAO,CAAC,CAAA,6DAAA,EAO9D,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE;;;;"}
@@ -6,8 +6,8 @@ var index = require('../../../../../theme/index.cjs');
6
6
  var constants = require('../constants.cjs');
7
7
 
8
8
  const { breakpoints } = index.theme;
9
- const modalStyles = styled.css `min-width:464px;& > ${Card.Card.Surface}{max-height:${({ variant }) => constants.heightMap[variant]};}&:not([open]){display:block;position:fixed;inset:0;transform:translate(-50%, -50%);}@media (min-width: calc(${breakpoints.mobile} + 1px))and (max-width: ${breakpoints.tablet}){max-width:${({ variant }) => constants.widthMap[breakpoints.tablet][variant]};}@media (min-width: ${breakpoints.tablet})and (max-width: ${breakpoints.lgTablet}){max-width:${({ variant }) => constants.widthMap[breakpoints.lgTablet][variant]};}@media (min-width: ${breakpoints.lgTablet})and (max-width: ${breakpoints.desktop}){max-width:${({ variant }) => constants.widthMap[breakpoints.desktop][variant]};}@media (min-width: ${breakpoints.desktop}){max-width:${({ variant }) => constants.widthMap[breakpoints.lgDesktop][variant]};}`;
10
- const sideDrawerBaseStyles = styled.css `height:100%;max-height:100%;min-width:320px;width:400px;margin:0;position:fixed;transform:none;border-radius:0;overflow:visible;& > ${Card.Card.Surface}{border-radius:0;height:100%;}&:not([open]){display:block;}`;
9
+ const modalStyles = styled.css `min-width:464px;& > ${Card.Card.Surface.toString()}{max-height:${({ variant }) => constants.heightMap[variant]};}&:not([open]){display:block;position:fixed;inset:0;transform:translate(-50%, -50%);}@media (min-width: calc(${breakpoints.mobile} + 1px))and (max-width: ${breakpoints.tablet}){max-width:${({ variant }) => constants.widthMap[breakpoints.tablet][variant]};}@media (min-width: ${breakpoints.tablet})and (max-width: ${breakpoints.lgTablet}){max-width:${({ variant }) => constants.widthMap[breakpoints.lgTablet][variant]};}@media (min-width: ${breakpoints.lgTablet})and (max-width: ${breakpoints.desktop}){max-width:${({ variant }) => constants.widthMap[breakpoints.desktop][variant]};}@media (min-width: ${breakpoints.desktop}){max-width:${({ variant }) => constants.widthMap[breakpoints.lgDesktop][variant]};}`;
10
+ const sideDrawerBaseStyles = styled.css `height:100%;max-height:100%;min-width:320px;width:400px;margin:0;position:fixed;transform:none;border-radius:0;overflow:visible;& > ${Card.Card.Surface.toString()}{border-radius:0;height:100%;}&:not([open]){display:block;}`;
11
11
  const leftDrawerStyles = styled.css `${sideDrawerBaseStyles} inset:0 auto 0 0;`;
12
12
  const rightDrawerStyles = styled.css `${sideDrawerBaseStyles} inset:0 0 0 auto;`;
13
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"modalTypeStyles.cjs","sources":["../../../../../../src/components/Modal/components/Dialog/styles/modalTypeStyles.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { ModalVariants } from '../../../types';\nimport { Card } from '../../../../Card';\nimport { theme } from '../../../../../theme';\nimport { heightMap, widthMap } from '../constants';\n\nconst { breakpoints } = theme;\n\nexport const modalStyles = css<{ variant: ModalVariants }>`\n min-width: 464px;\n\n & > ${Card.Surface} {\n max-height: ${({ variant }) => heightMap[variant]};\n }\n\n &:not([open]) {\n display: block;\n position: fixed;\n inset: 0;\n transform: translate(-50%, -50%);\n }\n\n // ** Responsive Design ** //\n\n // Tablet\n @media (min-width: calc(${breakpoints.mobile} + 1px)) and (max-width: ${breakpoints.tablet}) {\n max-width: ${({ variant }) => widthMap[breakpoints.tablet][variant]};\n }\n\n // Lg Tablet\n @media (min-width: ${breakpoints.tablet}) and (max-width: ${breakpoints.lgTablet}) {\n max-width: ${({ variant }) => widthMap[breakpoints.lgTablet][variant]};\n }\n\n // Desktop\n @media (min-width: ${breakpoints.lgTablet}) and (max-width: ${breakpoints.desktop}) {\n max-width: ${({ variant }) => widthMap[breakpoints.desktop][variant]};\n }\n\n // Lg Desktop\n @media (min-width: ${breakpoints.desktop}) {\n max-width: ${({ variant }) => widthMap[breakpoints.lgDesktop][variant]};\n }\n`;\n\nconst sideDrawerBaseStyles = css`\n height: 100%;\n max-height: 100%;\n min-width: 320px;\n width: 400px;\n margin: 0;\n position: fixed;\n transform: none;\n border-radius: 0;\n overflow: visible;\n\n & > ${Card.Surface} {\n border-radius: 0;\n height: 100%;\n }\n\n &:not([open]) {\n display: block;\n }\n`;\n\nexport const leftDrawerStyles = css`\n ${sideDrawerBaseStyles}\n inset: 0 auto 0 0;\n`;\n\nexport const rightDrawerStyles = css`\n ${sideDrawerBaseStyles}\n inset: 0 0 0 auto;\n`;\n"],"names":["theme","css","Card","heightMap","widthMap"],"mappings":";;;;;;;AAMA,MAAM,EAAE,WAAW,EAAE,GAAGA,WAAK;AAEtB,MAAM,WAAW,GAAGC,UAAG,CAAA,CAAA,oBAAA,EAGtBC,SAAI,CAAC,OAAO,CAAA,YAAA,EACF,CAAC,EAAE,OAAO,EAAE,KAAKC,mBAAS,CAAC,OAAO,CAAC,CAAA,8GAAA,EAazB,WAAW,CAAC,MAAM,CAAA,wBAAA,EAA4B,WAAW,CAAC,MAAM,CAAA,YAAA,EAC3E,CAAC,EAAE,OAAO,EAAE,KAAKC,kBAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIhD,WAAW,CAAC,MAAM,CAAA,iBAAA,EAAqB,WAAW,CAAC,QAAQ,CAAA,YAAA,EACjE,CAAC,EAAE,OAAO,EAAE,KAAKA,kBAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIlD,WAAW,CAAC,QAAQ,CAAA,iBAAA,EAAqB,WAAW,CAAC,OAAO,CAAA,YAAA,EAClE,CAAC,EAAE,OAAO,EAAE,KAAKA,kBAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIjD,WAAW,CAAC,OAAO,CAAA,YAAA,EACzB,CAAC,EAAE,OAAO,EAAE,KAAKA,kBAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAA,EAAA;AAI1E,MAAM,oBAAoB,GAAGH,UAAG,CAAA,CAAA,oIAAA,EAWxBC,SAAI,CAAC,OAAO,6DAQnB;MAEY,gBAAgB,GAAGD,UAAG,CAAA,CAAA,EAC/B,oBAAoB;MAIX,iBAAiB,GAAGA,UAAG,CAAA,CAAA,EAChC,oBAAoB;;;;;;"}
1
+ {"version":3,"file":"modalTypeStyles.cjs","sources":["../../../../../../src/components/Modal/components/Dialog/styles/modalTypeStyles.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { ModalVariants } from '../../../types';\nimport { Card } from '../../../../Card';\nimport { theme } from '../../../../../theme';\nimport { heightMap, widthMap } from '../constants';\n\nconst { breakpoints } = theme;\n\nexport const modalStyles = css<{ variant: ModalVariants }>`\n min-width: 464px;\n\n & > ${Card.Surface.toString()} {\n max-height: ${({ variant }) => heightMap[variant]};\n }\n\n &:not([open]) {\n display: block;\n position: fixed;\n inset: 0;\n transform: translate(-50%, -50%);\n }\n\n // ** Responsive Design ** //\n\n // Tablet\n @media (min-width: calc(${breakpoints.mobile} + 1px)) and (max-width: ${breakpoints.tablet}) {\n max-width: ${({ variant }) => widthMap[breakpoints.tablet][variant]};\n }\n\n // Lg Tablet\n @media (min-width: ${breakpoints.tablet}) and (max-width: ${breakpoints.lgTablet}) {\n max-width: ${({ variant }) => widthMap[breakpoints.lgTablet][variant]};\n }\n\n // Desktop\n @media (min-width: ${breakpoints.lgTablet}) and (max-width: ${breakpoints.desktop}) {\n max-width: ${({ variant }) => widthMap[breakpoints.desktop][variant]};\n }\n\n // Lg Desktop\n @media (min-width: ${breakpoints.desktop}) {\n max-width: ${({ variant }) => widthMap[breakpoints.lgDesktop][variant]};\n }\n`;\n\nconst sideDrawerBaseStyles = css`\n height: 100%;\n max-height: 100%;\n min-width: 320px;\n width: 400px;\n margin: 0;\n position: fixed;\n transform: none;\n border-radius: 0;\n overflow: visible;\n\n & > ${Card.Surface.toString()} {\n border-radius: 0;\n height: 100%;\n }\n\n &:not([open]) {\n display: block;\n }\n`;\n\nexport const leftDrawerStyles = css`\n ${sideDrawerBaseStyles}\n inset: 0 auto 0 0;\n`;\n\nexport const rightDrawerStyles = css`\n ${sideDrawerBaseStyles}\n inset: 0 0 0 auto;\n`;\n"],"names":["theme","css","Card","heightMap","widthMap"],"mappings":";;;;;;;AAMA,MAAM,EAAE,WAAW,EAAE,GAAGA,WAAK;AAEtB,MAAM,WAAW,GAAGC,UAAG,CAAA,CAAA,oBAAA,EAGtBC,SAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAA,YAAA,EACb,CAAC,EAAE,OAAO,EAAE,KAAKC,mBAAS,CAAC,OAAO,CAAC,CAAA,8GAAA,EAazB,WAAW,CAAC,MAAM,CAAA,wBAAA,EAA4B,WAAW,CAAC,MAAM,CAAA,YAAA,EAC3E,CAAC,EAAE,OAAO,EAAE,KAAKC,kBAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIhD,WAAW,CAAC,MAAM,CAAA,iBAAA,EAAqB,WAAW,CAAC,QAAQ,CAAA,YAAA,EACjE,CAAC,EAAE,OAAO,EAAE,KAAKA,kBAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIlD,WAAW,CAAC,QAAQ,CAAA,iBAAA,EAAqB,WAAW,CAAC,OAAO,CAAA,YAAA,EAClE,CAAC,EAAE,OAAO,EAAE,KAAKA,kBAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIjD,WAAW,CAAC,OAAO,CAAA,YAAA,EACzB,CAAC,EAAE,OAAO,EAAE,KAAKA,kBAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAA,EAAA;AAI1E,MAAM,oBAAoB,GAAGH,UAAG,CAAA,CAAA,oIAAA,EAWxBC,SAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAA,2DAAA,CAQ9B;MAEY,gBAAgB,GAAGD,UAAG,CAAA,CAAA,EAC/B,oBAAoB;MAIX,iBAAiB,GAAGA,UAAG,CAAA,CAAA,EAChC,oBAAoB;;;;;;"}
@@ -4,8 +4,8 @@ import { theme } from '../../../../../theme/index.js';
4
4
  import { heightMap, widthMap } from '../constants.js';
5
5
 
6
6
  const { breakpoints } = theme;
7
- const modalStyles = css `min-width:464px;& > ${Card.Surface}{max-height:${({ variant }) => heightMap[variant]};}&:not([open]){display:block;position:fixed;inset:0;transform:translate(-50%, -50%);}@media (min-width: calc(${breakpoints.mobile} + 1px))and (max-width: ${breakpoints.tablet}){max-width:${({ variant }) => widthMap[breakpoints.tablet][variant]};}@media (min-width: ${breakpoints.tablet})and (max-width: ${breakpoints.lgTablet}){max-width:${({ variant }) => widthMap[breakpoints.lgTablet][variant]};}@media (min-width: ${breakpoints.lgTablet})and (max-width: ${breakpoints.desktop}){max-width:${({ variant }) => widthMap[breakpoints.desktop][variant]};}@media (min-width: ${breakpoints.desktop}){max-width:${({ variant }) => widthMap[breakpoints.lgDesktop][variant]};}`;
8
- const sideDrawerBaseStyles = css `height:100%;max-height:100%;min-width:320px;width:400px;margin:0;position:fixed;transform:none;border-radius:0;overflow:visible;& > ${Card.Surface}{border-radius:0;height:100%;}&:not([open]){display:block;}`;
7
+ const modalStyles = css `min-width:464px;& > ${Card.Surface.toString()}{max-height:${({ variant }) => heightMap[variant]};}&:not([open]){display:block;position:fixed;inset:0;transform:translate(-50%, -50%);}@media (min-width: calc(${breakpoints.mobile} + 1px))and (max-width: ${breakpoints.tablet}){max-width:${({ variant }) => widthMap[breakpoints.tablet][variant]};}@media (min-width: ${breakpoints.tablet})and (max-width: ${breakpoints.lgTablet}){max-width:${({ variant }) => widthMap[breakpoints.lgTablet][variant]};}@media (min-width: ${breakpoints.lgTablet})and (max-width: ${breakpoints.desktop}){max-width:${({ variant }) => widthMap[breakpoints.desktop][variant]};}@media (min-width: ${breakpoints.desktop}){max-width:${({ variant }) => widthMap[breakpoints.lgDesktop][variant]};}`;
8
+ const sideDrawerBaseStyles = css `height:100%;max-height:100%;min-width:320px;width:400px;margin:0;position:fixed;transform:none;border-radius:0;overflow:visible;& > ${Card.Surface.toString()}{border-radius:0;height:100%;}&:not([open]){display:block;}`;
9
9
  const leftDrawerStyles = css `${sideDrawerBaseStyles} inset:0 auto 0 0;`;
10
10
  const rightDrawerStyles = css `${sideDrawerBaseStyles} inset:0 0 0 auto;`;
11
11
 
@@ -1 +1 @@
1
- {"version":3,"file":"modalTypeStyles.js","sources":["../../../../../../src/components/Modal/components/Dialog/styles/modalTypeStyles.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { ModalVariants } from '../../../types';\nimport { Card } from '../../../../Card';\nimport { theme } from '../../../../../theme';\nimport { heightMap, widthMap } from '../constants';\n\nconst { breakpoints } = theme;\n\nexport const modalStyles = css<{ variant: ModalVariants }>`\n min-width: 464px;\n\n & > ${Card.Surface} {\n max-height: ${({ variant }) => heightMap[variant]};\n }\n\n &:not([open]) {\n display: block;\n position: fixed;\n inset: 0;\n transform: translate(-50%, -50%);\n }\n\n // ** Responsive Design ** //\n\n // Tablet\n @media (min-width: calc(${breakpoints.mobile} + 1px)) and (max-width: ${breakpoints.tablet}) {\n max-width: ${({ variant }) => widthMap[breakpoints.tablet][variant]};\n }\n\n // Lg Tablet\n @media (min-width: ${breakpoints.tablet}) and (max-width: ${breakpoints.lgTablet}) {\n max-width: ${({ variant }) => widthMap[breakpoints.lgTablet][variant]};\n }\n\n // Desktop\n @media (min-width: ${breakpoints.lgTablet}) and (max-width: ${breakpoints.desktop}) {\n max-width: ${({ variant }) => widthMap[breakpoints.desktop][variant]};\n }\n\n // Lg Desktop\n @media (min-width: ${breakpoints.desktop}) {\n max-width: ${({ variant }) => widthMap[breakpoints.lgDesktop][variant]};\n }\n`;\n\nconst sideDrawerBaseStyles = css`\n height: 100%;\n max-height: 100%;\n min-width: 320px;\n width: 400px;\n margin: 0;\n position: fixed;\n transform: none;\n border-radius: 0;\n overflow: visible;\n\n & > ${Card.Surface} {\n border-radius: 0;\n height: 100%;\n }\n\n &:not([open]) {\n display: block;\n }\n`;\n\nexport const leftDrawerStyles = css`\n ${sideDrawerBaseStyles}\n inset: 0 auto 0 0;\n`;\n\nexport const rightDrawerStyles = css`\n ${sideDrawerBaseStyles}\n inset: 0 0 0 auto;\n`;\n"],"names":[],"mappings":";;;;;AAMA,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK;AAEtB,MAAM,WAAW,GAAG,GAAG,CAAA,CAAA,oBAAA,EAGtB,IAAI,CAAC,OAAO,CAAA,YAAA,EACF,CAAC,EAAE,OAAO,EAAE,KAAK,SAAS,CAAC,OAAO,CAAC,CAAA,8GAAA,EAazB,WAAW,CAAC,MAAM,CAAA,wBAAA,EAA4B,WAAW,CAAC,MAAM,CAAA,YAAA,EAC3E,CAAC,EAAE,OAAO,EAAE,KAAK,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIhD,WAAW,CAAC,MAAM,CAAA,iBAAA,EAAqB,WAAW,CAAC,QAAQ,CAAA,YAAA,EACjE,CAAC,EAAE,OAAO,EAAE,KAAK,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIlD,WAAW,CAAC,QAAQ,CAAA,iBAAA,EAAqB,WAAW,CAAC,OAAO,CAAA,YAAA,EAClE,CAAC,EAAE,OAAO,EAAE,KAAK,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIjD,WAAW,CAAC,OAAO,CAAA,YAAA,EACzB,CAAC,EAAE,OAAO,EAAE,KAAK,QAAQ,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAA,EAAA;AAI1E,MAAM,oBAAoB,GAAG,GAAG,CAAA,CAAA,oIAAA,EAWxB,IAAI,CAAC,OAAO,6DAQnB;MAEY,gBAAgB,GAAG,GAAG,CAAA,CAAA,EAC/B,oBAAoB;MAIX,iBAAiB,GAAG,GAAG,CAAA,CAAA,EAChC,oBAAoB;;;;"}
1
+ {"version":3,"file":"modalTypeStyles.js","sources":["../../../../../../src/components/Modal/components/Dialog/styles/modalTypeStyles.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { ModalVariants } from '../../../types';\nimport { Card } from '../../../../Card';\nimport { theme } from '../../../../../theme';\nimport { heightMap, widthMap } from '../constants';\n\nconst { breakpoints } = theme;\n\nexport const modalStyles = css<{ variant: ModalVariants }>`\n min-width: 464px;\n\n & > ${Card.Surface.toString()} {\n max-height: ${({ variant }) => heightMap[variant]};\n }\n\n &:not([open]) {\n display: block;\n position: fixed;\n inset: 0;\n transform: translate(-50%, -50%);\n }\n\n // ** Responsive Design ** //\n\n // Tablet\n @media (min-width: calc(${breakpoints.mobile} + 1px)) and (max-width: ${breakpoints.tablet}) {\n max-width: ${({ variant }) => widthMap[breakpoints.tablet][variant]};\n }\n\n // Lg Tablet\n @media (min-width: ${breakpoints.tablet}) and (max-width: ${breakpoints.lgTablet}) {\n max-width: ${({ variant }) => widthMap[breakpoints.lgTablet][variant]};\n }\n\n // Desktop\n @media (min-width: ${breakpoints.lgTablet}) and (max-width: ${breakpoints.desktop}) {\n max-width: ${({ variant }) => widthMap[breakpoints.desktop][variant]};\n }\n\n // Lg Desktop\n @media (min-width: ${breakpoints.desktop}) {\n max-width: ${({ variant }) => widthMap[breakpoints.lgDesktop][variant]};\n }\n`;\n\nconst sideDrawerBaseStyles = css`\n height: 100%;\n max-height: 100%;\n min-width: 320px;\n width: 400px;\n margin: 0;\n position: fixed;\n transform: none;\n border-radius: 0;\n overflow: visible;\n\n & > ${Card.Surface.toString()} {\n border-radius: 0;\n height: 100%;\n }\n\n &:not([open]) {\n display: block;\n }\n`;\n\nexport const leftDrawerStyles = css`\n ${sideDrawerBaseStyles}\n inset: 0 auto 0 0;\n`;\n\nexport const rightDrawerStyles = css`\n ${sideDrawerBaseStyles}\n inset: 0 0 0 auto;\n`;\n"],"names":[],"mappings":";;;;;AAMA,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK;AAEtB,MAAM,WAAW,GAAG,GAAG,CAAA,CAAA,oBAAA,EAGtB,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAA,YAAA,EACb,CAAC,EAAE,OAAO,EAAE,KAAK,SAAS,CAAC,OAAO,CAAC,CAAA,8GAAA,EAazB,WAAW,CAAC,MAAM,CAAA,wBAAA,EAA4B,WAAW,CAAC,MAAM,CAAA,YAAA,EAC3E,CAAC,EAAE,OAAO,EAAE,KAAK,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIhD,WAAW,CAAC,MAAM,CAAA,iBAAA,EAAqB,WAAW,CAAC,QAAQ,CAAA,YAAA,EACjE,CAAC,EAAE,OAAO,EAAE,KAAK,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAA,qBAAA,EAIlD,WAAW,CAAC,QAAQ,CAAA,iBAAA,EAAqB,WAAW,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