@odx/websites-react 0.1.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/components/actions/autocomplete/Autocomplete.d.ts +16 -0
  2. package/dist/components/actions/autocomplete/Autocomplete.d.ts.map +1 -0
  3. package/dist/components/actions/autocomplete/Autocomplete.js +47 -0
  4. package/dist/components/actions/autocomplete/Autocomplete.js.map +1 -0
  5. package/dist/components/actions/autocomplete/index.d.ts +2 -0
  6. package/dist/components/actions/autocomplete/index.d.ts.map +1 -0
  7. package/dist/components/actions/autocomplete/index.js +2 -0
  8. package/dist/components/actions/autocomplete/index.js.map +1 -0
  9. package/dist/components/actions/button/Button.d.ts +2 -2
  10. package/dist/components/actions/button/Button.d.ts.map +1 -1
  11. package/dist/components/actions/button/Button.js +12 -11
  12. package/dist/components/actions/button/Button.js.map +1 -1
  13. package/dist/components/actions/checkbox/Checkbox.d.ts +1 -5
  14. package/dist/components/actions/checkbox/Checkbox.d.ts.map +1 -1
  15. package/dist/components/actions/checkbox/Checkbox.js +11 -17
  16. package/dist/components/actions/checkbox/Checkbox.js.map +1 -1
  17. package/dist/components/actions/checkboxGroup/CheckboxGroup.d.ts +2 -1
  18. package/dist/components/actions/checkboxGroup/CheckboxGroup.d.ts.map +1 -1
  19. package/dist/components/actions/checkboxGroup/CheckboxGroup.js +7 -2
  20. package/dist/components/actions/checkboxGroup/CheckboxGroup.js.map +1 -1
  21. package/dist/components/actions/dropdown/Dropdown.d.ts.map +1 -1
  22. package/dist/components/actions/dropdown/Dropdown.js +1 -2
  23. package/dist/components/actions/dropdown/Dropdown.js.map +1 -1
  24. package/dist/components/actions/floatingButton/FloatingButton.js +4 -4
  25. package/dist/components/actions/floatingButton/FloatingButton.js.map +1 -1
  26. package/dist/components/actions/link/Link.d.ts +2 -1
  27. package/dist/components/actions/link/Link.d.ts.map +1 -1
  28. package/dist/components/actions/link/Link.js +13 -6
  29. package/dist/components/actions/link/Link.js.map +1 -1
  30. package/dist/components/actions/multiselect/Multiselect.js +1 -1
  31. package/dist/components/actions/multiselect/Multiselect.js.map +1 -1
  32. package/dist/components/actions/radioGroup/RadioGroup.d.ts.map +1 -1
  33. package/dist/components/actions/radioGroup/RadioGroup.js +1 -1
  34. package/dist/components/actions/radioGroup/RadioGroup.js.map +1 -1
  35. package/dist/components/actions/select/Select.d.ts.map +1 -1
  36. package/dist/components/actions/select/Select.js +1 -1
  37. package/dist/components/actions/select/Select.js.map +1 -1
  38. package/dist/components/actions/tag/Tag.js +2 -2
  39. package/dist/components/actions/tag/Tag.js.map +1 -1
  40. package/dist/components/actions/text-input/TextInput.d.ts.map +1 -1
  41. package/dist/components/actions/text-input/TextInput.js +1 -1
  42. package/dist/components/actions/text-input/TextInput.js.map +1 -1
  43. package/dist/components/actions/textarea/Textarea.d.ts.map +1 -1
  44. package/dist/components/actions/textarea/Textarea.js +2 -2
  45. package/dist/components/actions/textarea/Textarea.js.map +1 -1
  46. package/dist/components/actions/toggle-button/ToggleButton.js +1 -1
  47. package/dist/components/actions/toggle-button/ToggleButton.js.map +1 -1
  48. package/dist/components/index.d.ts +2 -1
  49. package/dist/components/index.d.ts.map +1 -1
  50. package/dist/components/index.js +2 -1
  51. package/dist/components/index.js.map +1 -1
  52. package/dist/components/layout/card/Card.d.ts.map +1 -1
  53. package/dist/components/layout/card/Card.js +2 -2
  54. package/dist/components/layout/card/Card.js.map +1 -1
  55. package/dist/components/layout/dataTable/DataTable.js +1 -1
  56. package/dist/components/layout/dataTable/DataTable.js.map +1 -1
  57. package/dist/components/layout/modal/Modal.js +1 -1
  58. package/dist/components/navigation/breadcrumbs/Breadcrumbs.js +1 -1
  59. package/dist/components/navigation/breadcrumbs/Breadcrumbs.js.map +1 -1
  60. package/dist/components/navigation/footer/Footer.d.ts.map +1 -1
  61. package/dist/components/navigation/footer/Footer.js +4 -3
  62. package/dist/components/navigation/footer/Footer.js.map +1 -1
  63. package/dist/components/navigation/header/AnimatedHeader.js +4 -2
  64. package/dist/components/navigation/header/AnimatedHeader.js.map +1 -1
  65. package/dist/components/navigation/header/Header.d.ts.map +1 -1
  66. package/dist/components/navigation/header/Header.js +4 -4
  67. package/dist/components/navigation/header/Header.js.map +1 -1
  68. package/dist/components/navigation/searchInput/SearchInput.d.ts +4 -12
  69. package/dist/components/navigation/searchInput/SearchInput.d.ts.map +1 -1
  70. package/dist/components/navigation/searchInput/SearchInput.js +13 -80
  71. package/dist/components/navigation/searchInput/SearchInput.js.map +1 -1
  72. package/dist/components/typography/bodyText/BodyText.d.ts +1 -1
  73. package/dist/components/typography/bodyText/BodyText.d.ts.map +1 -1
  74. package/dist/components/typography/bodyText/BodyText.js +1 -0
  75. package/dist/components/typography/bodyText/BodyText.js.map +1 -1
  76. package/dist/utils/utils.d.ts.map +1 -1
  77. package/dist/utils/utils.js +5 -1
  78. package/dist/utils/utils.js.map +1 -1
  79. package/dist/web/sections/contentBlock/ContentBlock.js +2 -2
  80. package/dist/web/sections/contentBlock/ContentBlock.js.map +1 -1
  81. package/dist/web/sections/stageSection/StageSection.js +1 -1
  82. package/dist/web/sections/stageSection/StageSection.js.map +1 -1
  83. package/package.json +4 -4
  84. package/dist/components/actions/combobox/Combobox.d.ts +0 -13
  85. package/dist/components/actions/combobox/Combobox.d.ts.map +0 -1
  86. package/dist/components/actions/combobox/Combobox.js +0 -45
  87. package/dist/components/actions/combobox/Combobox.js.map +0 -1
  88. package/dist/components/actions/combobox/index.d.ts +0 -2
  89. package/dist/components/actions/combobox/index.d.ts.map +0 -1
  90. package/dist/components/actions/combobox/index.js +0 -2
  91. package/dist/components/actions/combobox/index.js.map +0 -1
  92. package/dist/components/layout/contentArea/ContentArea.d.ts +0 -11
  93. package/dist/components/layout/contentArea/ContentArea.d.ts.map +0 -1
  94. package/dist/components/layout/contentArea/ContentArea.js +0 -22
  95. package/dist/components/layout/contentArea/ContentArea.js.map +0 -1
  96. package/dist/components/layout/contentArea/index.d.ts +0 -2
  97. package/dist/components/layout/contentArea/index.d.ts.map +0 -1
  98. package/dist/components/layout/contentArea/index.js +0 -2
  99. package/dist/components/layout/contentArea/index.js.map +0 -1
  100. package/dist/components/layout/fullWidth/FullWidth.d.ts +0 -6
  101. package/dist/components/layout/fullWidth/FullWidth.d.ts.map +0 -1
  102. package/dist/components/layout/fullWidth/FullWidth.js +0 -5
  103. package/dist/components/layout/fullWidth/FullWidth.js.map +0 -1
  104. package/dist/components/layout/fullWidth/index.d.ts +0 -2
  105. package/dist/components/layout/fullWidth/index.d.ts.map +0 -1
  106. package/dist/components/layout/fullWidth/index.js +0 -2
  107. package/dist/components/layout/fullWidth/index.js.map +0 -1
  108. package/dist/components/layout/grid/Grid.d.ts +0 -13
  109. package/dist/components/layout/grid/Grid.d.ts.map +0 -1
  110. package/dist/components/layout/grid/Grid.js +0 -21
  111. package/dist/components/layout/grid/Grid.js.map +0 -1
  112. package/dist/components/layout/grid/index.d.ts +0 -2
  113. package/dist/components/layout/grid/index.d.ts.map +0 -1
  114. package/dist/components/layout/grid/index.js +0 -2
  115. package/dist/components/layout/grid/index.js.map +0 -1
  116. package/dist/components/typography/sectionHeaderWithSubtitle/SectionHeaderWithSubtitle.d.ts +0 -8
  117. package/dist/components/typography/sectionHeaderWithSubtitle/SectionHeaderWithSubtitle.d.ts.map +0 -1
  118. package/dist/components/typography/sectionHeaderWithSubtitle/SectionHeaderWithSubtitle.js +0 -7
  119. package/dist/components/typography/sectionHeaderWithSubtitle/SectionHeaderWithSubtitle.js.map +0 -1
  120. package/dist/components/typography/textFormat/TextFormat.d.ts +0 -9
  121. package/dist/components/typography/textFormat/TextFormat.d.ts.map +0 -1
  122. package/dist/components/typography/textFormat/TextFormat.js +0 -27
  123. package/dist/components/typography/textFormat/TextFormat.js.map +0 -1
  124. package/dist/components/typography/textFormat/index.d.ts +0 -2
  125. package/dist/components/typography/textFormat/index.d.ts.map +0 -1
  126. package/dist/components/typography/textFormat/index.js +0 -2
  127. package/dist/components/typography/textFormat/index.js.map +0 -1
  128. package/dist/web/boxes/accordionBox/AccordionBox.d.ts +0 -17
  129. package/dist/web/boxes/accordionBox/AccordionBox.d.ts.map +0 -1
  130. package/dist/web/boxes/accordionBox/AccordionBox.js +0 -8
  131. package/dist/web/boxes/accordionBox/AccordionBox.js.map +0 -1
  132. package/dist/web/boxes/accordionBox/index.d.ts +0 -2
  133. package/dist/web/boxes/accordionBox/index.d.ts.map +0 -1
  134. package/dist/web/boxes/accordionBox/index.js +0 -2
  135. package/dist/web/boxes/accordionBox/index.js.map +0 -1
  136. package/dist/web/boxes/contentSliderBox/ContentSliderBox.d.ts +0 -7
  137. package/dist/web/boxes/contentSliderBox/ContentSliderBox.d.ts.map +0 -1
  138. package/dist/web/boxes/contentSliderBox/ContentSliderBox.js +0 -47
  139. package/dist/web/boxes/contentSliderBox/ContentSliderBox.js.map +0 -1
  140. package/dist/web/boxes/contentSliderBox/index.d.ts +0 -2
  141. package/dist/web/boxes/contentSliderBox/index.d.ts.map +0 -1
  142. package/dist/web/boxes/contentSliderBox/index.js +0 -2
  143. package/dist/web/boxes/contentSliderBox/index.js.map +0 -1
  144. package/dist/web/boxes/downloadBox/DownloadBox.d.ts +0 -11
  145. package/dist/web/boxes/downloadBox/DownloadBox.d.ts.map +0 -1
  146. package/dist/web/boxes/downloadBox/DownloadBox.js +0 -15
  147. package/dist/web/boxes/downloadBox/DownloadBox.js.map +0 -1
  148. package/dist/web/boxes/downloadBox/DownloadBoxItem.d.ts +0 -14
  149. package/dist/web/boxes/downloadBox/DownloadBoxItem.d.ts.map +0 -1
  150. package/dist/web/boxes/downloadBox/DownloadBoxItem.js +0 -11
  151. package/dist/web/boxes/downloadBox/DownloadBoxItem.js.map +0 -1
  152. package/dist/web/boxes/downloadBox/index.d.ts +0 -3
  153. package/dist/web/boxes/downloadBox/index.d.ts.map +0 -1
  154. package/dist/web/boxes/downloadBox/index.js +0 -3
  155. package/dist/web/boxes/downloadBox/index.js.map +0 -1
  156. package/dist/web/boxes/linkListBox/index.d.ts +0 -2
  157. package/dist/web/boxes/linkListBox/index.d.ts.map +0 -1
  158. package/dist/web/boxes/linkListBox/index.js +0 -2
  159. package/dist/web/boxes/linkListBox/index.js.map +0 -1
  160. package/dist/web/boxes/linkListBox/linkListBox.d.ts +0 -9
  161. package/dist/web/boxes/linkListBox/linkListBox.d.ts.map +0 -1
  162. package/dist/web/boxes/linkListBox/linkListBox.js +0 -9
  163. package/dist/web/boxes/linkListBox/linkListBox.js.map +0 -1
  164. package/dist/web/boxes/mediaTeaserBox/MediaTeaserBox.d.ts +0 -34
  165. package/dist/web/boxes/mediaTeaserBox/MediaTeaserBox.d.ts.map +0 -1
  166. package/dist/web/boxes/mediaTeaserBox/MediaTeaserBox.js +0 -27
  167. package/dist/web/boxes/mediaTeaserBox/MediaTeaserBox.js.map +0 -1
  168. package/dist/web/boxes/mediaTeaserBox/index.d.ts +0 -2
  169. package/dist/web/boxes/mediaTeaserBox/index.d.ts.map +0 -1
  170. package/dist/web/boxes/mediaTeaserBox/index.js +0 -2
  171. package/dist/web/boxes/mediaTeaserBox/index.js.map +0 -1
  172. package/dist/web/boxes/multiColumnTableBox/MultiColumnTableBox.d.ts +0 -10
  173. package/dist/web/boxes/multiColumnTableBox/MultiColumnTableBox.d.ts.map +0 -1
  174. package/dist/web/boxes/multiColumnTableBox/MultiColumnTableBox.js +0 -12
  175. package/dist/web/boxes/multiColumnTableBox/MultiColumnTableBox.js.map +0 -1
  176. package/dist/web/boxes/multiColumnTableBox/index.d.ts +0 -2
  177. package/dist/web/boxes/multiColumnTableBox/index.d.ts.map +0 -1
  178. package/dist/web/boxes/multiColumnTableBox/index.js +0 -2
  179. package/dist/web/boxes/multiColumnTableBox/index.js.map +0 -1
  180. package/dist/web/boxes/productBox/ProductBox.d.ts +0 -11
  181. package/dist/web/boxes/productBox/ProductBox.d.ts.map +0 -1
  182. package/dist/web/boxes/productBox/ProductBox.js +0 -7
  183. package/dist/web/boxes/productBox/ProductBox.js.map +0 -1
  184. package/dist/web/boxes/productBox/index.d.ts +0 -2
  185. package/dist/web/boxes/productBox/index.d.ts.map +0 -1
  186. package/dist/web/boxes/productBox/index.js +0 -2
  187. package/dist/web/boxes/productBox/index.js.map +0 -1
  188. package/dist/web/boxes/smallImageTextBox/SmallImageTextBox.d.ts +0 -16
  189. package/dist/web/boxes/smallImageTextBox/SmallImageTextBox.d.ts.map +0 -1
  190. package/dist/web/boxes/smallImageTextBox/SmallImageTextBox.js +0 -24
  191. package/dist/web/boxes/smallImageTextBox/SmallImageTextBox.js.map +0 -1
  192. package/dist/web/boxes/smallImageTextBox/index.d.ts +0 -2
  193. package/dist/web/boxes/smallImageTextBox/index.d.ts.map +0 -1
  194. package/dist/web/boxes/smallImageTextBox/index.js +0 -2
  195. package/dist/web/boxes/smallImageTextBox/index.js.map +0 -1
  196. package/dist/web/boxes/teaserCardBox/TeaserCardBox.d.ts +0 -8
  197. package/dist/web/boxes/teaserCardBox/TeaserCardBox.d.ts.map +0 -1
  198. package/dist/web/boxes/teaserCardBox/TeaserCardBox.js +0 -6
  199. package/dist/web/boxes/teaserCardBox/TeaserCardBox.js.map +0 -1
  200. package/dist/web/boxes/teaserCardBox/index.d.ts +0 -2
  201. package/dist/web/boxes/teaserCardBox/index.d.ts.map +0 -1
  202. package/dist/web/boxes/teaserCardBox/index.js +0 -2
  203. package/dist/web/boxes/teaserCardBox/index.js.map +0 -1
  204. package/dist/web/boxes/textBox/TextBox.d.ts +0 -12
  205. package/dist/web/boxes/textBox/TextBox.d.ts.map +0 -1
  206. package/dist/web/boxes/textBox/TextBox.js +0 -13
  207. package/dist/web/boxes/textBox/TextBox.js.map +0 -1
  208. package/dist/web/boxes/textBox/index.d.ts +0 -2
  209. package/dist/web/boxes/textBox/index.d.ts.map +0 -1
  210. package/dist/web/boxes/textBox/index.js +0 -2
  211. package/dist/web/boxes/textBox/index.js.map +0 -1
  212. package/dist/web/pageTemplates/sitemap/Sitemap.d.ts +0 -13
  213. package/dist/web/pageTemplates/sitemap/Sitemap.d.ts.map +0 -1
  214. package/dist/web/pageTemplates/sitemap/Sitemap.js +0 -11
  215. package/dist/web/pageTemplates/sitemap/Sitemap.js.map +0 -1
  216. package/dist/web/pageTemplates/sitemap/index.d.ts +0 -2
  217. package/dist/web/pageTemplates/sitemap/index.d.ts.map +0 -1
  218. package/dist/web/pageTemplates/sitemap/index.js +0 -2
  219. package/dist/web/pageTemplates/sitemap/index.js.map +0 -1
  220. package/dist/web/sections/mediaGallerySection/MediaGallerySection.d.ts +0 -11
  221. package/dist/web/sections/mediaGallerySection/MediaGallerySection.d.ts.map +0 -1
  222. package/dist/web/sections/mediaGallerySection/MediaGallerySection.js +0 -7
  223. package/dist/web/sections/mediaGallerySection/MediaGallerySection.js.map +0 -1
  224. package/dist/web/sections/mediaGallerySection/index.d.ts +0 -2
  225. package/dist/web/sections/mediaGallerySection/index.d.ts.map +0 -1
  226. package/dist/web/sections/mediaGallerySection/index.js +0 -2
  227. package/dist/web/sections/mediaGallerySection/index.js.map +0 -1
  228. package/dist/web/sections/newsroomSection/NewsroomSection.d.ts +0 -14
  229. package/dist/web/sections/newsroomSection/NewsroomSection.d.ts.map +0 -1
  230. package/dist/web/sections/newsroomSection/NewsroomSection.js +0 -7
  231. package/dist/web/sections/newsroomSection/NewsroomSection.js.map +0 -1
  232. package/dist/web/sections/newsroomSection/index.d.ts +0 -2
  233. package/dist/web/sections/newsroomSection/index.d.ts.map +0 -1
  234. package/dist/web/sections/newsroomSection/index.js +0 -2
  235. package/dist/web/sections/newsroomSection/index.js.map +0 -1
  236. package/dist/web/sections/productHeroSection/ProductHeroSection.d.ts +0 -11
  237. package/dist/web/sections/productHeroSection/ProductHeroSection.d.ts.map +0 -1
  238. package/dist/web/sections/productHeroSection/ProductHeroSection.js +0 -9
  239. package/dist/web/sections/productHeroSection/ProductHeroSection.js.map +0 -1
  240. package/dist/web/sections/productHeroSection/index.d.ts +0 -2
  241. package/dist/web/sections/productHeroSection/index.d.ts.map +0 -1
  242. package/dist/web/sections/productHeroSection/index.js +0 -2
  243. package/dist/web/sections/productHeroSection/index.js.map +0 -1
@@ -1,93 +1,26 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from 'react';
4
4
  import { Button } from '../../actions/button';
5
5
  import { SvgIcon } from '../../images-icons/svg-icon';
6
6
  import { IconClose, IconSearch } from '../../../icons';
7
- import { Combobox, Transition } from '@headlessui/react';
8
7
  import { cn } from '../../../utils';
9
- import { cva } from 'class-variance-authority';
10
8
  import { useBreakpoint } from '../../../hooks/useBreakpoint';
11
- const baseClasses = 'justify-end w-[280px] flex h-10 bg-transparent p-2 text-xl transition-[max-width] appearance-none font-text';
12
- const focusClasses = 'focus-visible:outline-none focus-visible:shadow-draeger-white';
13
- const searchInputVariants = cva('', {
14
- variants: {
15
- borderVariant: {
16
- underlined: 'border-b-2',
17
- outlined: 'border-2',
18
- },
19
- colorVariant: {
20
- dark: 'border-draeger-dark-blue placeholder:text-draeger-dark-blue text-draeger-dark-blue',
21
- light: 'border-draeger-white placeholder:text-draeger-white text-draeger-white',
22
- },
23
- },
24
- defaultVariants: {
25
- borderVariant: 'outlined',
26
- colorVariant: 'dark',
27
- },
28
- });
29
- export const SearchInput = ({ onSubmit, onValueChange, searchResultOptions = [], placeholder, customSearchValueText = 'Search for:', borderVariant, colorVariant, showSearchButton = false, }) => {
30
- const inputRef = React.useRef(null);
31
- const [selectedValue, setSelectedValue] = React.useState('');
9
+ import { Autocomplete } from '../../actions/autocomplete';
10
+ import { Transition } from '@headlessui/react';
11
+ export const SearchInput = ({ onSubmit, options = [], placeholder, freeTextSearchLabel, query, setQuery, }) => {
32
12
  const [showSearchInput, setShowSearchInput] = React.useState(false);
33
- const [query, setQuery] = React.useState('');
34
- /**
35
- * Handles the default change event for the Combobox
36
- * @param value - The submitted value
37
- */
38
- const onSelectedValueChange = (value) => {
39
- if (value?.length > 0) {
40
- setSelectedValue(value);
41
- onSubmit && onSubmit(value);
13
+ const isMobile = useBreakpoint('lg');
14
+ const handleChange = (selectedOption) => {
15
+ if (selectedOption) {
16
+ onSubmit(selectedOption.value);
42
17
  }
43
18
  };
44
- /**
45
- * Handles the search event
46
- */
47
- const handleSearch = () => {
48
- if (query?.length > 0) {
49
- onSubmit && onSubmit(query);
50
- setQuery('');
51
- }
52
- };
53
- /**
54
- * Handles the enter key down event for custom search value that is not in the search options
55
- * @param event - Keyboard event
56
- * @param isSearchByExistingOption - Boolean value to check if the search is by existing option. Is true if the `activeIndex` of the Render Prop inside the Combobox is defined
57
- */
58
- const handleEnterKeyDown = (event, isSearchByExistingOption) => {
59
- // Fire the onSubmit callback if the enter key is pressed and the search is not by existing option
60
- if (event.key === 'Enter' && !isSearchByExistingOption) {
61
- event.preventDefault();
62
- handleSearch();
63
- }
64
- };
65
- const isDesktop = useBreakpoint('lg');
66
- const lightInputScrolledStyles = 'text-draeger-white placeholder:text-draeger-white border-draeger-white focus-visible:shadow-draeger-white text-lg';
67
- const darkInputScrolledStyles = 'text-text-draeger-dark-blue placeholder:text-draeger-dark-blue border-draeger-dark-blue focus-visible:shadow-draeger-dark-blue text-lg';
68
- const darkIconScrolledStyles = 'draeger-dark-blue';
69
- const lightIconScrolledStyles = 'draeger-white';
70
- return (_jsxs("div", { className: "relative flex flex-col items-end h-full overflow-visible font-semibold font-text", children: [_jsx(Transition, { as: "div", className: "flex items-center justify-end w-full h-7", show: isDesktop, children: _jsx(Button, { variant: 'ghost-inherit', size: 'sm', onClick: () => setShowSearchInput(!showSearchInput), "aria-label": 'Search Input Toggle Button', slim: true, children: _jsx(SvgIcon, { icon: showSearchInput ? IconClose : IconSearch, size: 'md', color: colorVariant === 'light'
71
- ? lightIconScrolledStyles
72
- : darkIconScrolledStyles }) }) }), _jsx(Transition, { as: React.Fragment, show: !isDesktop || (isDesktop && showSearchInput), enter: "transform transition duration-[400ms]", enterFrom: "opacity-0", enterTo: "opacity-100", leave: "transform duration-200 transition ease-in-out", leaveFrom: "opacity-100", leaveTo: "opacity-0", children: _jsxs("div", { className: cn('flex items-center', isDesktop &&
73
- 'fixed w-full bg-draeger-white left-0 pb-5 px-5 top-[83px] z-10'), children: [_jsx(Combobox, { onChange: onSelectedValueChange, value: selectedValue, nullable: true, children: ({ activeIndex, open }) => (_jsx(_Fragment, { children: _jsxs("div", { className: cn('relative flex flex-col items-end', isDesktop && 'w-full'), children: [_jsx(Combobox.Input, { ref: inputRef, autoComplete: "off", name: 'search', placeholder: placeholder, onKeyDown: e => handleEnterKeyDown(e, !!activeIndex), className: cn(searchInputVariants({ borderVariant, colorVariant }), baseClasses, focusClasses, isDesktop && 'w-full', open && 'delay-100', colorVariant === 'light' && lightInputScrolledStyles, colorVariant === 'dark' && darkInputScrolledStyles), onChange: event => {
74
- setQuery(event.target.value);
75
- onValueChange && onValueChange(event.target.value);
76
- } }), _jsx(Transition, { as: React.Fragment, leave: "transition ease-in duration-100", leaveFrom: "opacity-100", leaveTo: "opacity-0", afterLeave: () => {
77
- setQuery('');
78
- }, children: _jsxs(Combobox.Options, { className: 'w-full shadow-md overflow-y-auto overflow-x-hidden absolute top-full bg-draeger-white text-draeger-dark-blue', children: [query.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Combobox.Option, { value: undefined }), _jsxs(Combobox.Option, { value: query, className: ({ active }) => cn('relative cursor-pointer select-none py-2 pl-4 pr-4', active &&
79
- 'bg-draeger-air-blue text-draeger-white'), children: [customSearchValueText, " \"", query, "\""] })] })), searchResultOptions.map((searchResult, i) => (_jsx(Combobox.Option, { className: ({ active }) => cn('relative cursor-pointer select-none py-2 pl-4 pr-4', active && 'bg-draeger-air-blue text-draeger-white'), value: searchResult, children: _jsx("span", { className: 'block truncate', children: searchResult }) }, i)))] }) }), (query?.length > 0 || selectedValue?.length > 0) && (_jsx("div", { className: "absolute top-0 bottom-0 flex items-center cursor-pointer right-2", onMouseDown: e => {
80
- e.preventDefault();
81
- setQuery('');
82
- setSelectedValue('');
83
- if (inputRef?.current) {
84
- inputRef.current.value = '';
85
- }
86
- }, children: _jsx(SvgIcon, { icon: IconClose, size: 'md', color: colorVariant === 'light'
87
- ? lightIconScrolledStyles
88
- : darkIconScrolledStyles }) }))] }) })) }), showSearchButton && (_jsx("div", { className: "flex items-center w-full h-full ml-2 h-7", children: _jsx(Button, { variant: 'ghost-inherit', size: 'sm', onClick: handleSearch, "aria-label": 'Search Input Button', children: _jsx(SvgIcon, { icon: IconSearch, color: colorVariant === 'light'
89
- ? lightIconScrolledStyles
90
- : darkIconScrolledStyles }) }) }))] }) })] }));
19
+ return (_jsxs("div", { className: "flex flex-col items-end justify-center h-full overflow-visible font-text", children: [isMobile && (_jsx("div", { className: "flex items-center justify-end w-full h-7 text-draeger-dark-blue", children: _jsx(Button, { variant: 'ghost-inherit', size: 'sm', onClick: () => setShowSearchInput(!showSearchInput), "aria-label": 'Search Input Toggle Button', slim: true, children: _jsx(SvgIcon, { icon: showSearchInput ? IconClose : IconSearch, size: 'md' }) }) })), _jsx(Transition, { as: React.Fragment, show: !isMobile || (isMobile && showSearchInput), enter: "transform transition duration-[400ms]", enterFrom: "opacity-0", enterTo: "opacity-100", leave: "transform duration-200 transition ease-in-out", leaveFrom: "opacity-100", leaveTo: "opacity-0", children: _jsx("div", { className: cn('flex items-center', isMobile &&
20
+ 'absolute w-full bg-draeger-white left-0 pb-5 px-5 top-[83px]'), children: _jsx(Autocomplete, { onChange: handleChange, placeholder: placeholder, options: options.map(option => ({
21
+ value: option,
22
+ label: option,
23
+ })), freeTextSearchAllowed: true, freeTextSearchLabel: freeTextSearchLabel, selected: { value: query, label: query }, wrapperClassName: "max-w-[286px]", query: query, setQuery: setQuery }) }) })] }));
91
24
  };
92
25
  SearchInput.displayName = 'SearchInput';
93
26
  //# sourceMappingURL=SearchInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../../src/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E,gBAAgB,YAC9B,YAAY,GACR,IAXF,CAAC,CAYU,CACnB,CAAC,IACe,GACR,EACZ,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,IAAI,aAAa,EAAE,MAAM,GAAG,CAAC,CAAC,IAAI,CACnD,cACE,SAAS,EAAC,kEAAkE,EAC5E,WAAW,EAAE,CAAC,CAAC,EAAE;gDACf,CAAC,CAAC,cAAc,EAAE,CAAC;gDACnB,QAAQ,CAAC,EAAE,CAAC,CAAC;gDACb,gBAAgB,CAAC,EAAE,CAAC,CAAC;gDACrB,IAAI,QAAQ,EAAE,OAAO,EAAE,CAAC;oDACtB,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC;gDAC9B,CAAC;4CACH,CAAC,YAED,KAAC,OAAO,IACN,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,IAAI,EACV,KAAK,EACH,YAAY,KAAK,OAAO;oDACtB,CAAC,CAAC,uBAAuB;oDACzB,CAAC,CAAC,sBAAsB,GAE5B,GACE,CACP,IACG,GACL,CACJ,GACQ,EACV,gBAAgB,IAAI,CACnB,cAAK,SAAS,EAAC,0CAA0C,YACvD,KAAC,MAAM,IACL,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,YAAY,gBACT,qBAAqB,YAEjC,KAAC,OAAO,IACN,IAAI,EAAE,UAAU,EAChB,KAAK,EACH,YAAY,KAAK,OAAO;wCACtB,CAAC,CAAC,uBAAuB;wCACzB,CAAC,CAAC,sBAAsB,GAE5B,GACK,GACL,CACP,IACG,GACK,IACT,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../../src/components/navigation/searchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,MAAM,EAAC,MA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Q,EAClB,IAAI,EAAE,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,eAAe,CAAC,EAChD,KAAK,EAAC,uCAAuC,EAC7C,SAAS,EAAC,WAAW,EACrB,OAAO,EAAC,aAAa,EACrB,KAAK,EAAC,+CAA+C,EACrD,SAAS,EAAC,aAAa,EACvB,OAAO,EAAC,WAAW,YAEnB,cACE,SAAS,EAAE,EAAE,CACX,mBAAmB,EACnB,QAAQ;wBACN,8DAA8D,CACjE,YAED,KAAC,YAAY,IACX,QAAQ,EAAE,YAAY,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;4BAC9B,KAAK,EAAE,MAAM;4BACb,KAAK,EAAE,MAAM;yBACd,CAAC,CAAC,EACH,qBAAqB,QACrB,mBAAmB,EAAE,mBAAmB,EACxC,QAAQ,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAC,EACtC,gBAAgB,EAAC,eAAe,EAChC,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,GAClB,GACE,GACK,IACT,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const bodyTextVariants: (props?: ({
4
- textColor?: "inherit" | "white" | "airBlue" | "paleBlue" | "darkBlue" | null | undefined;
4
+ textColor?: "none" | "inherit" | "white" | "airBlue" | "paleBlue" | "darkBlue" | null | undefined;
5
5
  variant?: "small" | "medium" | "large" | null | undefined;
6
6
  weight?: "bold" | "medium" | "normal" | null | undefined;
7
7
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"BodyText.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/bodyText/BodyText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,KAAK,YAAY,EAAM,MAAM,0BAA0B,CAAC;AAIhE,QAAA,MAAM,gBAAgB;;;;mFAyBpB,CAAC;AAEH,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAChD,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAkB5C,CAAC"}
1
+ {"version":3,"file":"BodyText.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/bodyText/BodyText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,KAAK,YAAY,EAAM,MAAM,0BAA0B,CAAC;AAIhE,QAAA,MAAM,gBAAgB;;;;mFA0BpB,CAAC;AAEH,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAChD,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAkB5C,CAAC"}
@@ -10,6 +10,7 @@ const bodyTextVariants = cva('font-text', {
10
10
  paleBlue: 'text-draeger-pale-blue',
11
11
  darkBlue: 'text-draeger-dark-blue',
12
12
  inherit: 'text-inherit',
13
+ none: '',
13
14
  },
14
15
  variant: {
15
16
  small: 'text-[1rem] leading-[136%] tracking-[0.015rem]',
@@ -1 +1 @@
1
- {"version":3,"file":"BodyText.js","sourceRoot":"","sources":["../../../../src/components/typography/bodyText/BodyText.tsx"],"names":[],"mappings":";AACA,OAAO,EAAoB,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,IAAI,EAAC,MAAM,sBAAsB,CAAC;AAE1C,MAAM,gBAAgB,GAAG,GAAG,CAAC,WAAW,EAAE;IACxC,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,KAAK,EAAE,oBAAoB;YAC3B,OAAO,EAAE,uBAAuB;YAChC,QAAQ,EAAE,wBAAwB;YAClC,QAAQ,EAAE,wBAAwB;YAClC,OAAO,EAAE,cAAc;SACxB;QACD,OAAO,EAAE;YACP,KAAK,EAAE,gDAAgD;YACvD,MAAM,EAAE,gCAAgC;YACxC,KAAK,EAAE,kDAAkD;SAC1D;QACD,MAAM,EAAE;YACN,MAAM,EAAE,aAAa;YACrB,MAAM,EAAE,aAAa;YACrB,IAAI,EAAE,eAAe;SACtB;KACF;IACD,eAAe,EAAE;QACf,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE,QAAQ;QACjB,MAAM,EAAE,QAAQ;KACjB;CACF,CAAC,CAAC;AASH,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,OAAO,EACP,SAAS,EACT,SAAS,EACT,MAAM,EACN,QAAQ,EACR,OAAO,GAAG,KAAK,EACf,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACpC,OAAO,CACL,KAAC,IAAI,IACH,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAAC,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAC,CAAC,CAAC,KACpE,KAAK,YAER,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"BodyText.js","sourceRoot":"","sources":["../../../../src/components/typography/bodyText/BodyText.tsx"],"names":[],"mappings":";AACA,OAAO,EAA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AAG,SAAS,EAAE,MAAM,IAAI,CAAC,CAwB7C"}
@@ -3,7 +3,11 @@ import { extendTailwindMerge } from 'tailwind-merge';
3
3
  const twMerge = extendTailwindMerge({
4
4
  extend: {
5
5
  classGroups: {
6
- 'font-size': ['text-label-sm'],
6
+ 'font-size': [
7
+ 'text-label-sm',
8
+ 'text-button-text-large',
9
+ 'text-button-text-small',
10
+ ],
7
11
  h: [
8
12
  'element-height-xs',
9
13
  'element-height-sm',
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAkB,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAC,mBAAmB,EAAC,MAAM,gBAAgB,CAAC;AAEnD,MAAM,OAAO,GAAG,mBAAmB,CAAC;IAClC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,WAAW,EAAE,CAAC,eAAe,CAAC;YAC9B,CAAC,EAAE;gBACD,mBAAmB;gBACnB,mBAAmB;gBACnB,mBAAmB;gBACnB,mBAAmB;aACpB;SACF;KACF;CACF,CAAC,CAAC;AAEH,MAAM,UAAU,EAAE,CAAC,GAAG,MAAoB;IACxC,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,UAAU,QAAQ,CACtB,QAAW,EACX,OAAe;IAEf,IAAI,KAAoC,CAAC;IAEzC,OAAO,CAAC,GAAG,IAAmB,EAAE,EAAE;QAChC,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;YACtB,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;QACpB,CAAC,EAAE,OAAO,CAAC,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,QAAQ,CACtB,EAAwB,EACxB,KAAa;IAEb,IAAI,IAAI,GAAG,KAAK,CAAC;IACjB,IAAI,OAA2B,CAAC;IA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pB,KAAK,GAAG,UAAU,CAAC,GAAG,EAAE;YACtB,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;QACpB,CAAC,EAAE,OAAO,CAAC,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,QAAQ,CACtB,EAAwB,EACxB,KAAa;IAEb,IAAI,IAAI,GAAG,KAAK,CAAC;IACjB,IAAI,OAA2B,CAAC;IAChC,IAAI,SAAS,GAAG,KAAK,CAAC;IAEtB,OAAO;QACL,CAAC,GAAG,IAAO,EAAE,EAAE;YACb,IAAI,SAAS;gBAAE,OAAO,SAAS,CAAC;YAChC,IAAI,IAAI;gBAAE,OAAO,SAAS,CAAC;YAE3B,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;YAEZ,IAAI,GAAG,IAAI,CAAC;YAEZ,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE;gBAC/B,IAAI,GAAG,KAAK,CAAC;gBACb,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;YACd,CAAC,EAAE,KAAK,CAAC,CAAC;QACZ,CAAC;QACD,GAAG,EAAE;YACH,SAAS,GAAG,IAAI,CAAC;YACjB,YAAY,CAAC,OAAO,CAAC,CAAC;QACxB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -2,8 +2,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { Block } from '../../../components/layout/block';
3
3
  import { cn } from '../../../utils';
4
4
  import { ContentHeadings } from '../../layout/contentHeadings';
5
- const ContentBlock = ({ children, disableGutters = false, headline, text, ...props }) => (_jsxs(_Fragment, { children: [_jsx(Block, { className: cn(!disableGutters &&
6
- 'pt-section-padding-top-2xl pb-section-padding-bottom-2xl'), elementWidth: 'medium', ...props, children: (headline || text) && (_jsx(ContentHeadings, { type: "block", headline: headline, text: text })) }), _jsx(Block, { wrapperBlockProps: { 'data-name': 'ContentBlock-Grid' }, "data-name": "ContentBlock-Children-Width", className: cn(!disableGutters &&
5
+ const ContentBlock = ({ children, disableGutters = false, headline, text, ...props }) => (_jsxs(_Fragment, { children: [(headline || text) && (_jsx(Block, { className: cn(!disableGutters &&
6
+ 'pt-section-padding-top-2xl pb-section-padding-bottom-2xl'), elementWidth: 'medium', ...props, children: _jsx(ContentHeadings, { type: "block", headline: headline, text: text }) })), _jsx(Block, { wrapperBlockProps: { 'data-name': 'ContentBlock-Grid' }, "data-name": "ContentBlock-Children-Width", className: cn(!disableGutters &&
7
7
  'pt-section-padding-top-2xl pb-section-padding-bottom-2xl'), ...props, children: children })] }));
8
8
  export { ContentBlock };
9
9
  //# sourceMappingURL=ContentBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentBlock.js","sourceRoot":"","sources":["../../../../src/web/sections/contentBlock/ContentBlock.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,KAAK,EAAkB,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAQ7D,MAAM,YAAY,GAAgC,CAAC,EACjD,QAAQ,EACR,cAAc,GAAG,KAAK,EACtB,QAAQ,EACR,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,8BACE,KAAC,KAAK,IACJ,SAAS,EAAE,EAAE,CACX,CAAC,cAAc;gBACb,0DAA0D,CAC7D,EACD,YAAY,EAAE,QAAQ,KAClB,KAAK,YAER,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CACrB,KAAC,eAAe,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAI,CACjE,GACK,EACR,KAAC,KAAK,IACJ,iBAAiB,EAAE,EAAC,WAAW,EAAE,mBAAmB,EAAC,eAC3C,6BAA6B,EACvC,SAAS,EAAE,EAAE,CACX,CAAC,cAAc;gBACb,0DAA0D,CAC7D,KACG,KAAK,YAER,QAAQ,GACH,IACP,CACJ,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC"}
1
+ {"version":3,"file":"ContentBlock.js","sourceRoot":"","sources":["../../../../src/web/sections/contentBlock/ContentBlock.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,KAAK,EAAkB,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAQ7D,MAAM,YAAY,GAAgC,CAAC,EACjD,QAAQ,EACR,cAAc,GAAG,KAAK,EACtB,QAAQ,EACR,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,8BACG,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CACrB,KAAC,KAAK,IACJ,SAAS,EAAE,EAAE,CACX,CAAC,cAAc;gBACb,0DAA0D,CAC7D,EACD,YAAY,EAAE,QAAQ,KAClB,KAAK,YAET,KAAC,eAAe,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAI,GAC1D,CACT,EACD,KAAC,KAAK,IACJ,iBAAiB,EAAE,EAAC,WAAW,EAAE,mBAAmB,EAAC,eAC3C,6BAA6B,EACvC,SAAS,EAAE,EAAE,CACX,CAAC,cAAc;gBACb,0DAA0D,CAC7D,KACG,KAAK,YAER,QAAQ,GACH,IACP,CACJ,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC"}
@@ -3,7 +3,7 @@ import { Block, Headline, SectionWrapper, } from '../../../components';
3
3
  import { Container } from '../../../components/layout/container';
4
4
  // TODO adjust the text element layout after the usage of Container/Block is completed for this component
5
5
  const StageSection = ({ button, image, headline, headlineColoredPart, sectionProps, }) => {
6
- return (_jsxs(SectionWrapper, { ...sectionProps, children: [_jsx("div", { className: "w-full -z-10", children: image }), _jsx(Container, { className: "relative", children: _jsxs(Block, { className: "flex flex-col items-start py-12 gap-y-16 lg:-mt-40 px-block-horizontal-padding", background: 'darkBlue', elementWidth: 'medium', children: [_jsxs(Headline, { headingLevel: "h1", className: "text-draeger-white", children: [headline, headlineColoredPart && (_jsxs("span", { className: 'text-draeger-air-blue', children: ["\u00A0", headlineColoredPart] }))] }), button] }) })] }));
6
+ return (_jsxs(SectionWrapper, { ...sectionProps, children: [_jsx("div", { className: "w-full -z-10", children: image }), _jsx(Container, { className: "relative", children: _jsxs(Block, { className: "flex flex-col items-start py-12 gap-y-16 lg:-mt-40 px-layout-spacing-3", background: 'darkBlue', elementWidth: 'medium', children: [_jsxs(Headline, { headingLevel: "h1", className: "text-draeger-white", children: [headline, headlineColoredPart && (_jsxs("span", { className: 'text-draeger-air-blue', children: ["\u00A0", headlineColoredPart] }))] }), button] }) })] }));
7
7
  };
8
8
  export { StageSection };
9
9
  //# sourceMappingURL=StageSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StageSection.js","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,cAAc,GAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAU/D,yGAAyG;AACzG,MAAM,YAAY,GAAgC,CAAC,EACjD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,YAAY,GACb,EAAE,EAAE;IACH,OAAO,CACL,MAAC,cAAc,OAAK,YAAY,aAC9B,cAAK,SAAS,EAAC,cAAc,YAAE,KAAK,GAAO,EAC3C,KAAC,SAAS,IAAC,SAAS,EAAC,UAAU,YAC7B,MAAC,KAAK,IACJ,SAAS,EAAC,gFAAgF,EAC1F,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,QAAQ,aAEtB,MAAC,QAAQ,IAAC,YAAY,EAAC,IAAI,EAAC,SAAS,EAAC,oBAAoB,aACvD,QAAQ,EACR,mBAAmB,IAAI,CACtB,gBAAM,SAAS,EAAE,uBAAuB,uBAC/B,mBAAmB,IACrB,CACR,IACQ,EACV,MAAM,IACD,GACE,IACG,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC"}
1
+ {"version":3,"file":"StageSection.js","sourceRoot":"","sources":["../../../../src/web/sections/stageSection/StageSection.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,KAAK,EACL,QAAQ,EACR,cAAc,GAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAC,SAAS,EAAC,MAAM,sCAAsC,CAAC;AAU/D,yGAAyG;AACzG,MAAM,YAAY,GAAgC,CAAC,EACjD,MAAM,EACN,KAAK,EACL,QAAQ,EACR,mBAAmB,EACnB,YAAY,GACb,EAAE,EAAE;IACH,OAAO,CACL,MAAC,cAAc,OAAK,YAAY,aAC9B,cAAK,SAAS,EAAC,cAAc,YAAE,KAAK,GAAO,EAC3C,KAAC,SAAS,IAAC,SAAS,EAAC,UAAU,YAC7B,MAAC,KAAK,IACJ,SAAS,EAAC,wEAAwE,EAClF,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,QAAQ,aAEtB,MAAC,QAAQ,IAAC,YAAY,EAAC,IAAI,EAAC,SAAS,EAAC,oBAAoB,aACvD,QAAQ,EACR,mBAAmB,IAAI,CACtB,gBAAM,SAAS,EAAE,uBAAuB,uBAC/B,mBAAmB,IACrB,CACR,IACQ,EACV,MAAM,IACD,GACE,IACG,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,YAAY,EAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@odx/websites-react",
3
3
  "author": "Drägerwerk AG & Co. KGaA",
4
- "version": "0.1.0",
4
+ "version": "1.0.0",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "description": "ODX React component library for websites",
7
7
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "tailwind-lib-content.js"
39
39
  ],
40
40
  "dependencies": {
41
- "@headlessui/react": "2.1.2",
41
+ "@headlessui/react": "2.1.3",
42
42
  "@radix-ui/react-checkbox": "^1.0.4",
43
43
  "@radix-ui/react-dialog": "^1.1.1",
44
44
  "@radix-ui/react-dropdown-menu": "^2.0.6",
@@ -84,10 +84,10 @@
84
84
  "typescript": "^5.3.2",
85
85
  "@odx/eslint-config-websites": "0.0.0",
86
86
  "@odx/websites-tsconfig": "0.0.0",
87
- "@odx/websites-ui": "0.1.0"
87
+ "@odx/websites-ui": "0.2.0"
88
88
  },
89
89
  "peerDependencies": {
90
- "@odx/websites-ui": ">=0.1.0",
90
+ "@odx/websites-ui": ">=0.2.0",
91
91
  "react": "^18.2.0",
92
92
  "react-dom": "^18.2.0",
93
93
  "tailwindcss": "^3.3.5"
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import { type FormField, type FormFieldWrapperVariants } from '../formField';
3
- import { SelectorOption } from '../..';
4
- export interface ComboboxProps extends FormFieldWrapperVariants, FormField {
5
- options: SelectorOption[];
6
- selected?: SelectorOption | null;
7
- placeholder: string;
8
- onChange: (value: SelectorOption | null) => void;
9
- filterFunction?: (option: SelectorOption, query: string) => boolean;
10
- }
11
- declare const Combobox: React.FC<ComboboxProps>;
12
- export { Combobox };
13
- //# sourceMappingURL=Combobox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/combobox/Combobox.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,EAML,KAAK,SAAS,EACd,KAAK,wBAAwB,EAC9B,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,cAAc,EAIf,MAAM,OAAO,CAAC;AAIf,MAAM,WAAW,aAAc,SAAQ,wBAAwB,EAAE,SAAS;IACxE,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,cAAc,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC;CACrE;AAoDD,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyIrC,CAAC;AAEF,OAAO,EAAC,QAAQ,EAAC,CAAC"}
@@ -1,45 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import * as React from 'react';
4
- import { Combobox as ComboboxPrimitive, ComboboxInput as ComboboxPrimitiveInput, ComboboxOption as ComboboxPrimitiveOption, ComboboxOptions as ComboboxPrimitiveOptions, ComboboxButton as ComboboxPrimitiveButton, Transition, } from '@headlessui/react';
5
- import { IconCheck, IconChevronDown, IconClose, IconFeedbackWarning, IconSearch, } from '../../../icons';
6
- import { FormFieldHelperText, FormFieldIcon, FormFieldIconsContainer, FormFieldLabel, formFieldWrapperVariants, } from '../formField';
7
- import { SvgIcon, optionVariants, optionsVariants, } from '../..';
8
- import { useFieldId } from '../../../hooks';
9
- import { cn } from '../../../utils';
10
- const ComboboxOption = ({ option, size, ...props }) => {
11
- const { label, disabled } = option;
12
- return (_jsx(ComboboxPrimitiveOption, { disabled: disabled, value: option, ...props, children: ({ selected, focus, disabled }) => (_jsxs("div", { title: label, className: cn(optionVariants({ size }), focus && 'bg-draeger-cool-gray-100', disabled
13
- ? 'text-draeger-warm-gray-150 cursor-not-allowed'
14
- : 'hover:bg-draeger-cool-gray-100', 'justify-between'), children: [_jsx("span", { className: "truncate", children: label }), selected && (_jsx(SvgIcon, { className: "shrink-0", icon: IconCheck, size: "md" }))] })) }));
15
- };
16
- const defaultFilterFunction = ({ label }, query) => label.toLowerCase().includes(query.toLowerCase());
17
- const filterOptions = (options, query = '', filterFunction) => query === ''
18
- ? options
19
- : options.filter(option => (filterFunction ?? defaultFilterFunction)(option, query));
20
- const Combobox = ({ options, selected, onChange, disabled, label, helperText, invalidText, invalid = false, placeholder, filterFunction, size, wrapperClassName, }) => {
21
- const [query, setQuery] = React.useState('');
22
- const [focused, setFocused] = React.useState(false);
23
- const { id, labelId, helperTextId } = useFieldId();
24
- const inputRef = React.useRef(null);
25
- const filteredOptions = filterOptions(options, query, filterFunction);
26
- const hasQuery = Boolean(query?.length);
27
- return (_jsx("div", { className: cn('font-text relative', wrapperClassName), children: _jsxs(ComboboxPrimitive, { as: "div", className: 'group', value: selected, onChange: value => {
28
- onChange(value);
29
- setQuery(value?.label ?? '');
30
- }, disabled: disabled, immediate: true, children: [label && (_jsx(FormFieldLabel, { id: labelId, htmlFor: id, label: label, disabled: disabled })), _jsxs("div", { className: "relative inline-block w-full", children: [_jsx(ComboboxPrimitiveInput, { id: id, autoComplete: "off", ref: inputRef, displayValue: option => option?.label, onBlur: () => {
31
- setQuery('');
32
- setFocused(false);
33
- }, onFocus: () => setFocused(true), onChange: event => setQuery(event.target.value), onKeyDown: e => e.key === 'Enter' && setQuery(''), placeholder: placeholder, "data-invalid": invalid, "aria-labelledby": label && labelId, "aria-describedby": helperText && helperTextId, className: cn(formFieldWrapperVariants({ size }), 'pl-16 pr-14', (hasQuery || invalid) && 'pr-24', hasQuery && invalid && 'pr-32') }), _jsx(FormFieldIconsContainer, { align: 'left', children: _jsx(FormFieldIcon, { className: "pointer-events-auto", icon: IconSearch }) }), _jsxs(FormFieldIconsContainer, { children: [invalid && (_jsx(FormFieldIcon, { className: "pointer-events-auto", icon: IconFeedbackWarning })), focused && (hasQuery || selected?.value) && (_jsxs(_Fragment, { children: [_jsx(FormFieldIcon, { className: "w-5 cursor-pointer pointer-events-auto text-draeger-cool-gray-750", onMouseDown: e => e.preventDefault(), onMouseUp: () => {
34
- if (!inputRef.current)
35
- return;
36
- onChange(null);
37
- inputRef.current.blur();
38
- requestAnimationFrame(() => {
39
- inputRef.current.focus();
40
- inputRef.current.value = '';
41
- });
42
- }, icon: IconClose }), _jsx("div", { className: "w-px h-full bg-draeger-cool-gray-150 mx-0.5" })] })), _jsx(ComboboxPrimitiveButton, { "aria-label": "Expand", children: _jsx(FormFieldIcon, { className: cn('cursor-pointer pointer-events-auto text-draeger-cool-gray-750 group-data-[headlessui-state=open]:rotate-180 transition-all duration-100', disabled && 'cursor-not-allowed text-draeger-cool-gray-250 '), icon: IconChevronDown }) })] })] }), _jsx(Transition, { enter: "duration-200 ease-out", enterFrom: "scale-95 opacity-0", enterTo: "scale-100 opacity-100", leave: "duration-300 ease-out", leaveFrom: "scale-100 opacity-100", leaveTo: "scale-95 opacity-0", children: _jsx(ComboboxPrimitiveOptions, { anchor: { to: 'bottom' }, className: cn(optionsVariants({ size }), 'w-[var(--input-width)] origin-top transition'), children: filteredOptions.map(option => (_jsx(ComboboxOption, { option: option, size: size }, option.label))) }) }), _jsx(FormFieldHelperText, { id: helperTextId, helperText: helperText, invalidText: invalidText, invalid: invalid, disabled: disabled })] }) }));
43
- };
44
- export { Combobox };
45
- //# sourceMappingURL=Combobox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Combobox.js","sourceRoot":"","sources":["../../../../src/components/actions/combobox/Combobox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,QAAQ,IAAI,iBAAiB,EAC7B,aAAa,IAAI,sBAAsB,EACvC,cAAc,IAAI,uBAAuB,EACzC,eAAe,IAAI,wBAAwB,EAC3C,cAAc,IAAI,uBAAuB,EACzC,UAAU,GACX,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,SAAS,EACT,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,UAAU,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,mBAAmB,EACnB,aAAa,EACb,uBAAuB,EACvB,cAAc,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,GAChB,EACb,KAAC,mBAAmB,IAClB,EAAE,EAAE,YAAY,EAChB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,GAClB,IACgB,GAChB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,QAAQ,EAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Combobox';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Combobox';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/actions/combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,11 +0,0 @@
1
- import * as React from 'react';
2
- import { type VariantProps } from 'class-variance-authority';
3
- declare const widthBoxVariants: (props?: ({
4
- width?: 1 | 2 | null | undefined;
5
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
6
- export interface ContentAreaProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof widthBoxVariants> {
7
- children?: React.ReactNode;
8
- }
9
- declare const ContentArea: React.ForwardRefExoticComponent<ContentAreaProps & React.RefAttributes<HTMLDivElement>>;
10
- export { ContentArea };
11
- //# sourceMappingURL=ContentArea.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentArea.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/contentArea/ContentArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAM,KAAK,YAAY,EAAC,MAAM,0BAA0B,CAAC;AAMhE,QAAA,MAAM,gBAAgB;;mFAUpB,CAAC;AAEH,MAAM,WAAW,gBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,gBAAgB,CAAC;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,WAAW,yFAiBhB,CAAC;AAGF,OAAO,EAAC,WAAW,EAAC,CAAC"}
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from 'react';
3
- import { cn } from '../../../utils';
4
- import { cva } from 'class-variance-authority';
5
- /*
6
- Note: ContentArea 2 takes 7/9 of subgrid columns on lg breakpoint
7
- */
8
- const widthBoxVariants = cva('w-full', {
9
- variants: {
10
- width: {
11
- 1: 'xl:max-w-content-1',
12
- 2: 'lg:max-w-[min(calc(77.25%),theme(maxWidth.content-2))]',
13
- },
14
- },
15
- defaultVariants: {
16
- width: 1,
17
- },
18
- });
19
- const ContentArea = React.forwardRef(({ width = 1, children, className, ...props }, ref) => (_jsx("div", { "data-name": `content-area-${width}`, className: 'font-text flex justify-center mx-auto w-full px-3 md:px-6 lg:px-9', children: _jsx("div", { ref: ref, className: cn(widthBoxVariants({ width, className })), ...props, children: children }) })));
20
- ContentArea.displayName = 'ContentArea';
21
- export { ContentArea };
22
- //# sourceMappingURL=ContentArea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContentArea.js","sourceRoot":"","sources":["../../../../src/components/layout/contentArea/ContentArea.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,GAAG,EAAoB,MAAM,0BAA0B,CAAC;AAEhE;;EAEE;AAEF,MAAM,gBAAgB,GAAG,GAAG,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,CAAC,EAAE,oBAAoB;YACvB,CAAC,EAAE,wDAAwD;SAC5D;KACF;IACD,eAAe,EAAE;QACf,KAAK,EAAE,CAAC;KACT;CACF,CAAC,CAAC;AAQH,MAAM,WAAW,GAAG,KAAK,CAAC,UAAU,CAClC,CAAC,EAAC,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAC,EAAE,GAAG,EAAE,EAAE,CAAC,CACnD,2BACa,gBAAgB,KAAK,EAAE,EAClC,SAAS,EACP,mEAAmE,YAGrE,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAAC,KAAK,EAAE,SAAS,EAAC,CAAC,CAAC,KAC/C,KAAK,YAER,QAAQ,GACL,GACF,CACP,CACF,CAAC;AACF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC,OAAO,EAAC,WAAW,EAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './ContentArea';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/contentArea/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './ContentArea';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/contentArea/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -1,6 +0,0 @@
1
- import * as React from 'react';
2
- export interface FullWidthProps extends React.HTMLAttributes<HTMLElement> {
3
- }
4
- declare const FullWidth: React.FC<FullWidthProps>;
5
- export { FullWidth };
6
- //# sourceMappingURL=FullWidth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FullWidth.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/fullWidth/FullWidth.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;CAAG;AAE5E,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAQvC,CAAC;AAEF,OAAO,EAAC,SAAS,EAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '../../../utils';
3
- const FullWidth = ({ className, children, ...props }) => (_jsx("div", { "data-name": 'full-width', className: cn('w-full', className), ...props, children: children }));
4
- export { FullWidth };
5
- //# sourceMappingURL=FullWidth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FullWidth.js","sourceRoot":"","sources":["../../../../src/components/layout/fullWidth/FullWidth.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAIlC,MAAM,SAAS,GAA6B,CAAC,EAC3C,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,2BAAgB,YAAY,EAAE,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,KAAM,KAAK,YACxE,QAAQ,GACL,CACP,CAAC;AAEF,OAAO,EAAC,SAAS,EAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './FullWidth';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/fullWidth/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './FullWidth';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/fullWidth/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -1,13 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from 'react';
3
- export interface GridProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof gridVariants> {
4
- }
5
- export interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
6
- }
7
- declare const gridVariants: (props?: ({
8
- cols?: 1 | 2 | 3 | 4 | "1+3" | null | undefined;
9
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
10
- declare const Grid: React.FC<GridProps>;
11
- declare const GridItem: React.FC<GridItemProps>;
12
- export { Grid, GridItem };
13
- //# sourceMappingURL=Grid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAM,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,SACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAC1C,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAExC,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE9E,QAAA,MAAM,YAAY;;mFAchB,CAAC;AAEH,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAQ7B,CAAC;AAEF,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAIrC,CAAC;AAEF,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC"}
@@ -1,21 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cva } from 'class-variance-authority';
3
- import { cn } from '../../../utils';
4
- const gridVariants = cva('font-text grid grid-cols-1', {
5
- variants: {
6
- cols: {
7
- 1: '',
8
- 2: 'lg:grid-cols-2 gap-4 md:gap-6 ',
9
- 3: 'md:grid-cols-2 xl:grid-cols-3 gap-y-4 gap-x-4 md:gap-y-6 md:gap-x-4 xl:gap-x-6',
10
- 4: 'md:grid-cols-2 xl:grid-cols-4 gap-y-6 gap-x-6 md:gap-y-6 md:gap-x-4 xl:gap-x-6',
11
- '1+3': 'xl:grid-cols-[calc(33%-12px)_repeat(3,1fr)] md:grid-cols-[repeat(3,minmax(0,1fr))] md:[&>*:first-child]:col-span-3 xl:[&>*:first-child]:col-span-1 gap-4 lg:gap-6',
12
- },
13
- },
14
- defaultVariants: {
15
- cols: 1,
16
- },
17
- });
18
- const Grid = ({ cols, className, children, ...props }) => (_jsx("div", { "data-name": `${cols}-grid`, className: cn(gridVariants({ cols, className })), ...props, children: children }));
19
- const GridItem = ({ className, children, ...props }) => (_jsx("div", { "data-name": "column", className: cn(className), ...props, children: children }));
20
- export { Grid, GridItem };
21
- //# sourceMappingURL=Grid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../../../src/components/layout/grid/Grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAQlC,MAAM,YAAY,GAAG,GAAG,CAAC,4BAA4B,EAAE;IACrD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,gCAAgC;YACnC,CAAC,EAAE,gFAAgF;YACnF,CAAC,EAAE,gFAAgF;YACnF,KAAK,EACH,mKAAmK;SACtK;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC;AAEH,MAAM,IAAI,GAAwB,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,EAAE,CAAC,CAC3E,2BACa,GAAG,IAAI,OAAO,EACzB,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,EAAC,IAAI,EAAE,SAAS,EAAC,CAAC,CAAC,KAC1C,KAAK,YAER,QAAQ,GACL,CACP,CAAC;AAEF,MAAM,QAAQ,GAA4B,CAAC,EAAC,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,EAAE,CAAC,CAC7E,2BAAe,QAAQ,EAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,KAAM,KAAK,YACxD,QAAQ,GACL,CACP,CAAC;AAEF,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Grid';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Grid';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/grid/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1,8 +0,0 @@
1
- import * as React from 'react';
2
- export interface SectionHeaderWithSubtitleProps extends React.HTMLAttributes<HTMLDivElement> {
3
- header: string;
4
- subtitle?: string;
5
- }
6
- declare const SectionHeaderWithSubtitle: React.FC<SectionHeaderWithSubtitleProps>;
7
- export { SectionHeaderWithSubtitle };
8
- //# sourceMappingURL=SectionHeaderWithSubtitle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionHeaderWithSubtitle.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/sectionHeaderWithSubtitle/SectionHeaderWithSubtitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,8BACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,QAAA,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAcvE,CAAC;AAEF,OAAO,EAAC,yBAAyB,EAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '../../../utils';
3
- import { BodyText } from '../bodyText';
4
- import { Headline } from '../headline';
5
- const SectionHeaderWithSubtitle = ({ header, subtitle, className, ...props }) => (_jsxs("div", { className: cn('font-text', className), ...props, children: [_jsxs(Headline, { headingLevel: "h2", className: cn('pb-6'), children: [header, _jsx("br", {}), _jsx("span", { className: "leading-[0.8] xl:leading-[0.85]", children: "\u2014" })] }), subtitle && _jsx(BodyText, { variant: "large", children: subtitle })] }));
6
- export { SectionHeaderWithSubtitle };
7
- //# sourceMappingURL=SectionHeaderWithSubtitle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SectionHeaderWithSubtitle.js","sourceRoot":"","sources":["../../../../src/components/typography/sectionHeaderWithSubtitle/SectionHeaderWithSubtitle.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAQrC,MAAM,yBAAyB,GAA6C,CAAC,EAC3E,MAAM,EACN,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,eAAK,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,KAAM,KAAK,aACnD,MAAC,QAAQ,IAAC,YAAY,EAAC,IAAI,EAAC,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,aAC9C,MAAM,EACP,cAAM,EACN,eAAM,SAAS,EAAC,iCAAiC,uBAAe,IACvD,EACV,QAAQ,IAAI,KAAC,QAAQ,IAAC,OAAO,EAAC,OAAO,YAAE,QAAQ,GAAY,IACxD,CACP,CAAC;AAEF,OAAO,EAAC,yBAAyB,EAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- export interface TextFormatProps extends React.HTMLAttributes<HTMLDivElement> {
3
- variant: 'contentSectionTitle' | 'boxTitleBodyStandardRegular' | 'boxTitleBodyStandardMedium' | 'boxTitleBodySmallMedium' | 'h4BodySmallRegular' | 'h6BodySmall';
4
- heading: string;
5
- bodyText: string;
6
- }
7
- declare const TextFormat: React.FC<TextFormatProps>;
8
- export { TextFormat };
9
- //# sourceMappingURL=TextFormat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextFormat.d.ts","sourceRoot":"","sources":["../../../../src/components/typography/textFormat/TextFormat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,OAAO,EACH,qBAAqB,GACrB,6BAA6B,GAC7B,4BAA4B,GAC5B,yBAAyB,GACzB,oBAAoB,GACpB,aAAa,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAyDzC,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,CAAC"}