@odx/websites-react 0.0.1 → 0.0.2

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 (107) hide show
  1. package/dist/components/actions/checkbox/Checkbox.d.ts +4 -1
  2. package/dist/components/actions/checkbox/Checkbox.d.ts.map +1 -1
  3. package/dist/components/actions/checkbox/Checkbox.js +14 -3
  4. package/dist/components/actions/checkbox/Checkbox.js.map +1 -1
  5. package/dist/components/actions/form/Form.d.ts +4 -0
  6. package/dist/components/actions/form/Form.d.ts.map +1 -1
  7. package/dist/components/actions/form/Form.js +4 -1
  8. package/dist/components/actions/form/Form.js.map +1 -1
  9. package/dist/components/actions/phoneInput/PhoneInput.js +1 -1
  10. package/dist/components/actions/phoneInput/PhoneInput.js.map +1 -1
  11. package/dist/components/actions/select/Select.js +1 -1
  12. package/dist/components/actions/select/Select.js.map +1 -1
  13. package/dist/components/actions/tag/Tag.d.ts +2 -2
  14. package/dist/components/actions/tag/Tag.d.ts.map +1 -1
  15. package/dist/components/actions/tag/Tag.js +8 -9
  16. package/dist/components/actions/tag/Tag.js.map +1 -1
  17. package/dist/components/actions/text-input/TextInput.js +1 -1
  18. package/dist/components/actions/text-input/TextInput.js.map +1 -1
  19. package/dist/components/actions/textarea/Textarea.js +1 -1
  20. package/dist/components/actions/textarea/Textarea.js.map +1 -1
  21. package/dist/components/actions/toggle-button/ToggleButton.js +1 -1
  22. package/dist/components/actions/toggle-button/ToggleButton.js.map +1 -1
  23. package/dist/components/actions/tooltip/Tooltip.d.ts +10 -11
  24. package/dist/components/actions/tooltip/Tooltip.d.ts.map +1 -1
  25. package/dist/components/actions/tooltip/Tooltip.js +49 -11
  26. package/dist/components/actions/tooltip/Tooltip.js.map +1 -1
  27. package/dist/components/images-icons/logo/Logo.d.ts +1 -0
  28. package/dist/components/images-icons/logo/Logo.d.ts.map +1 -1
  29. package/dist/components/images-icons/logo/Logo.js +1 -1
  30. package/dist/components/images-icons/logo/Logo.js.map +1 -1
  31. package/dist/components/index.d.ts +3 -1
  32. package/dist/components/index.d.ts.map +1 -1
  33. package/dist/components/index.js +3 -1
  34. package/dist/components/index.js.map +1 -1
  35. package/dist/components/layout/dataTable/DataTable.d.ts +21 -0
  36. package/dist/components/layout/dataTable/DataTable.d.ts.map +1 -0
  37. package/dist/components/layout/dataTable/DataTable.js +13 -0
  38. package/dist/components/layout/dataTable/DataTable.js.map +1 -0
  39. package/dist/components/layout/dataTable/index.d.ts +2 -0
  40. package/dist/components/layout/dataTable/index.d.ts.map +1 -0
  41. package/dist/components/layout/dataTable/index.js +2 -0
  42. package/dist/components/layout/dataTable/index.js.map +1 -0
  43. package/dist/components/layout/grid/Grid.js +1 -1
  44. package/dist/components/layout/grid/Grid.js.map +1 -1
  45. package/dist/components/layout/list/List.d.ts +12 -0
  46. package/dist/components/layout/list/List.d.ts.map +1 -0
  47. package/dist/components/layout/list/List.js +20 -0
  48. package/dist/components/layout/list/List.js.map +1 -0
  49. package/dist/components/layout/list/index.d.ts +2 -0
  50. package/dist/components/layout/list/index.d.ts.map +1 -0
  51. package/dist/components/layout/list/index.js +2 -0
  52. package/dist/components/layout/list/index.js.map +1 -0
  53. package/dist/components/layout/modal/Modal.d.ts.map +1 -1
  54. package/dist/components/layout/modal/Modal.js +2 -3
  55. package/dist/components/layout/modal/Modal.js.map +1 -1
  56. package/dist/components/layout/pagination/Pagination.d.ts.map +1 -1
  57. package/dist/components/layout/pagination/Pagination.js +2 -2
  58. package/dist/components/layout/pagination/Pagination.js.map +1 -1
  59. package/dist/components/layout/sectionWrapper/SectionWrapper.d.ts.map +1 -1
  60. package/dist/components/layout/sectionWrapper/SectionWrapper.js +1 -0
  61. package/dist/components/layout/sectionWrapper/SectionWrapper.js.map +1 -1
  62. package/dist/components/navigation/flyout/Flyout.d.ts +51 -0
  63. package/dist/components/navigation/flyout/Flyout.d.ts.map +1 -0
  64. package/dist/components/navigation/flyout/Flyout.js +90 -0
  65. package/dist/components/navigation/flyout/Flyout.js.map +1 -0
  66. package/dist/components/navigation/flyout/index.d.ts +2 -0
  67. package/dist/components/navigation/flyout/index.d.ts.map +1 -0
  68. package/dist/components/navigation/flyout/index.js +2 -0
  69. package/dist/components/navigation/flyout/index.js.map +1 -0
  70. package/dist/components/navigation/footer/Footer.d.ts.map +1 -1
  71. package/dist/components/navigation/footer/Footer.js +3 -3
  72. package/dist/components/navigation/footer/Footer.js.map +1 -1
  73. package/dist/components/navigation/header/Header.d.ts +2 -1
  74. package/dist/components/navigation/header/Header.d.ts.map +1 -1
  75. package/dist/components/navigation/header/Header.js +18 -7
  76. package/dist/components/navigation/header/Header.js.map +1 -1
  77. package/dist/icons/uncolored/DraegerIconSetUncolored.d.ts.map +1 -1
  78. package/dist/icons/uncolored/DraegerIconSetUncolored.js +2 -0
  79. package/dist/icons/uncolored/DraegerIconSetUncolored.js.map +1 -1
  80. package/dist/icons/uncolored/IconInfo.d.ts.map +1 -1
  81. package/dist/icons/uncolored/IconInfo.js +1 -1
  82. package/dist/icons/uncolored/IconInfo.js.map +1 -1
  83. package/dist/icons/uncolored/IconProductSearch.d.ts +4 -0
  84. package/dist/icons/uncolored/IconProductSearch.d.ts.map +1 -0
  85. package/dist/icons/uncolored/IconProductSearch.js +4 -0
  86. package/dist/icons/uncolored/IconProductSearch.js.map +1 -0
  87. package/dist/icons/uncolored/index.d.ts +1 -0
  88. package/dist/icons/uncolored/index.d.ts.map +1 -1
  89. package/dist/icons/uncolored/index.js +1 -0
  90. package/dist/icons/uncolored/index.js.map +1 -1
  91. package/dist/web/sections/contentSection/ContentSection.d.ts +3 -1
  92. package/dist/web/sections/contentSection/ContentSection.d.ts.map +1 -1
  93. package/dist/web/sections/contentSection/ContentSection.js +3 -2
  94. package/dist/web/sections/contentSection/ContentSection.js.map +1 -1
  95. package/package.json +17 -43
  96. package/dist/components/layout/table/Table.d.ts +0 -37
  97. package/dist/components/layout/table/Table.d.ts.map +0 -1
  98. package/dist/components/layout/table/Table.js +0 -69
  99. package/dist/components/layout/table/Table.js.map +0 -1
  100. package/dist/components/layout/table/TableContext.d.ts +0 -18
  101. package/dist/components/layout/table/TableContext.d.ts.map +0 -1
  102. package/dist/components/layout/table/TableContext.js +0 -47
  103. package/dist/components/layout/table/TableContext.js.map +0 -1
  104. package/dist/components/layout/table/index.d.ts +0 -2
  105. package/dist/components/layout/table/index.d.ts.map +0 -1
  106. package/dist/components/layout/table/index.js +0 -2
  107. package/dist/components/layout/table/index.js.map +0 -1
@@ -20,6 +20,7 @@ import { IconMail } from './IconMail';
20
20
  import { IconMenu } from './IconMenu';
21
21
  import { IconPhone } from './IconPhone';
22
22
  import { IconPlaceholder } from './IconPlaceholder';
23
+ import { IconProductSearch } from './IconProductSearch';
23
24
  import { IconSearch } from './IconSearch';
24
25
  import { IconStairs } from './IconStairs';
25
26
  import { IconTwitter } from './IconTwitter';
@@ -57,5 +58,6 @@ export const DraegerIconSetUncolored = [
57
58
  { name: 'IconUserTrainer', component: IconUserTrainer },
58
59
  { name: 'IconXing', component: IconXing },
59
60
  { name: 'IconYoutube', component: IconYoutube },
61
+ { name: 'IconProductSearch', component: IconProductSearch },
60
62
  ];
61
63
  //# sourceMappingURL=DraegerIconSetUncolored.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DraegerIconSetUncolored.js","sourceRoot":"","sources":["../../../src/icons/uncolored/DraegerIconSetUncolored.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACpD,OAAO,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IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,eAAe,EAAC;IACrD,EAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAC;IACvC,EAAC,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAC;IAC7C,EAAC,IAAI,EAAE,mBAAmB,EAAE,SAAS,EAAE,iBAAiB,EAAC;CAC1D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"IconInfo.d.ts","sourceRoot":"","sources":["../../../src/icons/uncolored/IconInfo.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACpC,QAAA,MAAM,QAAQ,2BAA0B,SAAS,aAAa,CAAC,4CAU9D,CAAC;AACF,OAAO,EAAC,QAAQ,EAAC,CAAC"}
1
+ {"version":3,"file":"IconInfo.d.ts","sourceRoot":"","sources":["../../../src/icons/uncolored/IconInfo.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACpC,QAAA,MAAM,QAAQ,2BAA0B,SAAS,aAAa,CAAC,4CAQ9D,CAAC;AACF,OAAO,EAAC,QAAQ,EAAC,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- const IconInfo = ({ children, ...props }) => (_jsxs("svg", { ...props, viewBox: "0 0 42 42", children: [children, _jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M35.8499 6.15C27.6487 -2.05039 14.3526 -2.04994 6.15197 6.15101C-2.0487 14.352 -2.0487 27.648 6.15197 35.849C14.3526 44.0499 27.6487 44.0504 35.8499 35.85C39.7887 31.9117 42.0015 26.5699 42.0015 21C42.0015 15.4301 39.7887 10.0883 35.8499 6.15ZM23.57 34.76H18.42V15H23.57V34.76ZM21 12.26C20.2355 12.3007 19.4868 12.0322 18.9225 11.5149C18.3582 10.9976 18.0257 10.2751 18 9.51C18.0702 7.92276 19.4126 6.69225 21 6.76C21.7533 6.73575 22.4853 7.01194 23.0349 7.52775C23.5845 8.04355 23.9065 8.75666 23.93 9.51C23.9145 10.2661 23.595 10.984 23.0436 11.5015C22.4922 12.019 21.7555 12.2925 21 12.26Z", clipRule: "evenodd" })] }));
2
+ const IconInfo = ({ children, ...props }) => (_jsxs("svg", { ...props, viewBox: "0 0 24 25", children: [children, _jsx("path", { fill: "currentColor", d: "M12 2.02197C6.49 2.02197 2 6.51197 2 12.022C2 17.532 6.49 22.022 12 22.022C17.51 22.022 22 17.532 22 12.022C22 6.51197 17.51 2.02197 12 2.02197ZM12 20.022C7.59 20.022 4 16.432 4 12.022C4 7.61197 7.59 4.02197 12 4.02197C16.41 4.02197 20 7.61197 20 12.022C20 16.432 16.41 20.022 12 20.022ZM12 6.78197C12.69 6.78197 13.25 7.34197 13.25 8.02197V8.04197C13.25 8.73197 12.69 9.28197 12 9.28197C11.31 9.28197 10.75 8.72197 10.75 8.04197V8.02197C10.75 7.33197 11.31 6.78197 12 6.78197ZM11 10.522H13V17.022H11V10.522Z" })] }));
3
3
  export { IconInfo };
4
4
  //# sourceMappingURL=IconInfo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconInfo.js","sourceRoot":"","sources":["../../../src/icons/uncolored/IconInfo.tsx"],"names":[],"mappings":";AAEA,MAAM,QAAQ,GAAG,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAA0B,EAAE,EAAE,CAAC,CAClE,kBAAS,KAAK,EAAE,OAAO,EAAC,WAAW,aAChC,QAAQ,EACT,eACE,IAAI,EAAC,cAAc,EACnB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,klBAAklB,EACplB,QAAQ,EAAC,SAAS,GAClB,IACE,CACP,CAAC;AACF,OAAO,EAAC,QAAQ,EAAC,CAAC"}
1
+ {"version":3,"file":"IconInfo.js","sourceRoot":"","sources":["../../../src/icons/uncolored/IconInfo.tsx"],"names":[],"mappings":";AAEA,MAAM,QAAQ,GAAG,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAA0B,EAAE,EAAE,CAAC,CAClE,kBAAS,KAAK,EAAE,OAAO,EAAC,WAAW,aAChC,QAAQ,EACT,eACE,IAAI,EAAC,cAAc,EACnB,CAAC,EAAC,8fAA8f,GAChgB,IACE,CACP,CAAC;AACF,OAAO,EAAC,QAAQ,EAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SVGProps } from 'react';
2
+ declare const IconProductSearch: ({ children, ...props }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export { IconProductSearch };
4
+ //# sourceMappingURL=IconProductSearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconProductSearch.d.ts","sourceRoot":"","sources":["../../../src/icons/uncolored/IconProductSearch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AACpC,QAAA,MAAM,iBAAiB,2BAA0B,SAAS,aAAa,CAAC,4CAQvE,CAAC;AACF,OAAO,EAAC,iBAAiB,EAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ const IconProductSearch = ({ children, ...props }) => (_jsxs("svg", { ...props, viewBox: "0 0 32 32", children: [children, _jsx("path", { d: "M12 12H6.66669V6.66668H12V12ZM20 20H18.6667L14.6667 24V25.3333H20V20ZM26.6667 20H21.3334V25.3333H26.6667V20ZM12 13.3333H6.66669V18.6667L12 13.3333ZM27.9067 11.3733C27.8988 12.8226 27.4616 14.237 26.6505 15.4379C25.8393 16.6389 24.6904 17.5726 23.349 18.1211C22.0076 18.6696 20.5337 18.8084 19.1134 18.5199C17.6932 18.2313 16.3903 17.5284 15.3692 16.4999C14.3482 15.4714 13.6548 14.1635 13.3765 12.7412C13.0983 11.3189 13.2478 9.84602 13.806 8.50859C14.3642 7.17117 15.3062 6.02914 16.5131 5.2267C17.7199 4.42426 19.1374 3.9974 20.5867 4.00001C21.5525 3.99999 22.5087 4.19108 23.4003 4.56227C24.2919 4.93347 25.1012 5.47743 25.7817 6.16281C26.4621 6.8482 27.0002 7.66145 27.3649 8.55572C27.7296 9.44999 27.9137 10.4076 27.9067 11.3733ZM26.2134 11.3733C26.2134 10.2605 25.8834 9.17264 25.2651 8.24734C24.6468 7.32204 23.7681 6.60085 22.7399 6.17498C21.7118 5.74911 20.5805 5.63769 19.489 5.85479C18.3975 6.0719 17.3949 6.60779 16.608 7.39469C15.8211 8.18159 15.2852 9.18417 15.0681 10.2756C14.851 11.3671 14.9625 12.4984 15.3883 13.5266C15.8142 14.5547 16.5354 15.4335 17.4607 16.0517C18.386 16.67 19.4738 17 20.5867 17C22.079 17 23.5101 16.4072 24.5653 15.352C25.6206 14.2968 26.2134 12.8656 26.2134 11.3733ZM21.3334 15.6C21.9999 15.4935 22.6325 15.2332 23.181 14.8398C23.7295 14.4464 24.1788 13.9306 24.4934 13.3333H21.3334V15.6ZM21.3334 7.06668V12H24.9334C24.976 11.7803 24.9983 11.5571 25 11.3333C24.9992 10.3015 24.629 9.30396 23.9564 8.52136C23.2838 7.73875 22.3534 7.22274 21.3334 7.06668ZM20 7.06668C18.98 7.22274 18.0495 7.73875 17.377 8.52136C16.7044 9.30396 16.3342 10.3015 16.3334 11.3333C16.335 11.5571 16.3574 11.7803 16.4 12H20V7.06668ZM20 15.6V13.3333H16.84C17.1546 13.9306 17.6039 14.4464 18.1524 14.8398C18.7009 15.2332 19.3335 15.4935 20 15.6ZM12.7067 16.2667L3.69336 25.3333L6.66669 28.2667L15.68 19.2533L12.7067 16.2667Z", fill: "currentColor" })] }));
3
+ export { IconProductSearch };
4
+ //# sourceMappingURL=IconProductSearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IconProductSearch.js","sourceRoot":"","sources":["../../../src/icons/uncolored/IconProductSearch.tsx"],"names":[],"mappings":";AAEA,MAAM,iBAAiB,GAAG,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAA0B,EAAE,EAAE,CAAC,CAC3E,kBAAS,KAAK,EAAE,OAAO,EAAC,WAAW,aAChC,QAAQ,EACT,eACE,CAAC,EAAC,izDAAizD,EACnzD,IAAI,EAAC,cAAc,GACnB,IACE,CACP,CAAC;AACF,OAAO,EAAC,iBAAiB,EAAC,CAAC"}
@@ -27,4 +27,5 @@ export * from './IconUnlock';
27
27
  export * from './IconUserTrainer';
28
28
  export * from './IconXing';
29
29
  export * from './IconYoutube';
30
+ export * from './IconProductSearch';
30
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/uncolored/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/icons/uncolored/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -27,4 +27,5 @@ export * from './IconUnlock';
27
27
  export * from './IconUserTrainer';
28
28
  export * from './IconXing';
29
29
  export * from './IconYoutube';
30
+ export * from './IconProductSearch';
30
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/icons/uncolored/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oB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AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
@@ -1,10 +1,12 @@
1
1
  import * as React from 'react';
2
+ import { type ContentAreaProps } from '../../../components';
2
3
  import { type SectionWrapperProps } from '../../../components/layout/sectionWrapper';
3
4
  export interface ContentSectionProps {
4
5
  headline: string;
5
6
  copy?: string;
6
- children?: React.ReactNode[];
7
+ children?: React.ReactNode;
7
8
  sectionProps?: SectionWrapperProps;
9
+ contentAreaProps?: ContentAreaProps;
8
10
  }
9
11
  declare const ContentSection: React.FC<ContentSectionProps>;
10
12
  export { ContentSection };
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSection.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/contentSection/ContentSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,2CAA2C,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IAC7B,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAcjD,CAAC;AAEF,OAAO,EAAC,cAAc,EAAC,CAAC"}
1
+ {"version":3,"file":"ContentSection.d.ts","sourceRoot":"","sources":["../../../../src/web/sections/contentSection/ContentSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAc,KAAK,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACvE,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,2CAA2C,CAAC;AAGnD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACrC;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAkBjD,CAAC;AAEF,OAAO,EAAC,cAAc,EAAC,CAAC"}
@@ -2,8 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { SectionHeaderWithSubtitle } from '../../../components/typography/sectionHeaderWithSubtitle/SectionHeaderWithSubtitle';
3
3
  import { ContentArea } from '../../../components';
4
4
  import { SectionWrapper, } from '../../../components/layout/sectionWrapper';
5
- const ContentSection = ({ headline, copy, children, sectionProps, }) => {
6
- return (_jsxs(SectionWrapper, { ...sectionProps, children: [_jsx(ContentArea, { className: "flex flex-col gap-y-20", children: _jsx(SectionHeaderWithSubtitle, { header: headline, subtitle: copy }) }), children] }));
5
+ import { cn } from '../../../utils';
6
+ const ContentSection = ({ headline, copy, children, sectionProps, contentAreaProps, }) => {
7
+ return (_jsxs(SectionWrapper, { ...sectionProps, children: [_jsx(ContentArea, { ...contentAreaProps, className: cn('flex flex-col gap-y-20', contentAreaProps?.className), children: _jsx(SectionHeaderWithSubtitle, { header: headline, subtitle: copy }) }), children] }));
7
8
  };
8
9
  export { ContentSection };
9
10
  //# sourceMappingURL=ContentSection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentSection.js","sourceRoot":"","sources":["../../../../src/web/sections/contentSection/ContentSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,yBAAyB,EAAC,MAAM,oFAAoF,CAAC;AAC7H,OAAO,EAAC,WAAW,EAAC,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAEL,cAAc,GACf,MAAM,2CAA2C,CAAC;AASnD,MAAM,cAAc,GAAkC,CAAC,EACrD,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,YAAY,GACb,EAAE,EAAE;IACH,OAAO,CACL,MAAC,cAAc,OAAK,YAAY,aAC9B,KAAC,WAAW,IAAC,SAAS,EAAC,wBAAwB,YAC7C,KAAC,yBAAyB,IAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,GAAI,GACnD,EACb,QAAQ,IACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,cAAc,EAAC,CAAC"}
1
+ {"version":3,"file":"ContentSection.js","sourceRoot":"","sources":["../../../../src/web/sections/contentSection/ContentSection.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,yBAAyB,EAAC,MAAM,oFAAoF,CAAC;AAC7H,OAAO,EAAC,WAAW,EAAwB,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAEL,cAAc,GACf,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAUlC,MAAM,cAAc,GAAkC,CAAC,EACrD,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,gBAAgB,GACjB,EAAE,EAAE;IACH,OAAO,CACL,MAAC,cAAc,OAAK,YAAY,aAC9B,KAAC,WAAW,OACN,gBAAgB,EACpB,SAAS,EAAE,EAAE,CAAC,wBAAwB,EAAE,gBAAgB,EAAE,SAAS,CAAC,YAEpE,KAAC,yBAAyB,IAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,GAAI,GACnD,EACb,QAAQ,IACM,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,cAAc,EAAC,CAAC"}
package/package.json CHANGED
@@ -1,62 +1,36 @@
1
1
  {
2
2
  "name": "@odx/websites-react",
3
3
  "author": "Drägerwerk AG & Co. KGaA",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "description": "ODX React component library for websites",
7
7
  "type": "module",
8
8
  "exports": {
9
- "./components": "./src/components/index.ts",
10
- "./web": "./src/web/index.ts",
11
- "./icons": "./src/icons/index.ts",
12
- "./hooks": "./src/hooks/index.ts",
13
- "./package.json": "./package.json"
9
+ "./components": "./dist/components/index.js",
10
+ "./web": "./dist/web/index.js",
11
+ "./icons": "./dist/icons/index.js",
12
+ "./hooks": "./dist/hooks/index.js",
13
+ "./package.json": "./package.json",
14
+ "./tailwind-lib-content": "./tailwind-lib-content.js"
14
15
  },
15
16
  "typesVersions": {
16
17
  "*": {
17
- "*": [
18
- "./src/*"
19
- ],
20
18
  "components": [
21
- "./src/components/index.ts"
19
+ "./dist/components/index.d.ts"
22
20
  ],
23
21
  "web": [
24
- "./src/web/index.ts"
22
+ "./dist/web/index.d.ts"
25
23
  ],
26
24
  "icons": [
27
- "./src/icons/index.ts"
25
+ "./dist/icons/index.d.ts"
28
26
  ],
29
27
  "hooks": [
30
- "./src/hooks/index.ts"
28
+ "./dist/hooks/index.d.ts"
31
29
  ]
32
30
  }
33
31
  },
34
32
  "publishConfig": {
35
- "access": "public",
36
- "exports": {
37
- "./components": "./dist/components/index.js",
38
- "./web": "./dist/web/index.js",
39
- "./icons": "./dist/icons/index.js",
40
- "./hooks": "./dist/hooks/index.js",
41
- "./package.json": "./package.json",
42
- "./tailwind-lib-content": "./tailwind-lib-content.js"
43
- },
44
- "typesVersions": {
45
- "*": {
46
- "components": [
47
- "./dist/components/index.d.ts"
48
- ],
49
- "web": [
50
- "./dist/web/index.d.ts"
51
- ],
52
- "icons": [
53
- "./dist/icons/index.d.ts"
54
- ],
55
- "hooks": [
56
- "./dist/hooks/index.d.ts"
57
- ]
58
- }
59
- }
33
+ "access": "public"
60
34
  },
61
35
  "sideEffects": false,
62
36
  "files": [
@@ -81,9 +55,6 @@
81
55
  },
82
56
  "devDependencies": {
83
57
  "@floating-ui/react": "^0.26.15",
84
- "@odx/eslint-config-websites": "workspace:*",
85
- "@odx/websites-tsconfig": "workspace:*",
86
- "@odx/websites-ui": "workspace:*",
87
58
  "@svgr/core": "^8.1.0",
88
59
  "@svgr/plugin-jsx": "^8.1.0",
89
60
  "@svgr/plugin-prettier": "^8.1.0",
@@ -107,7 +78,10 @@
107
78
  "ts-jest": "^29.1.1",
108
79
  "ts-node": "^10.9.2",
109
80
  "tsup": "^8.0.1",
110
- "typescript": "^5.3.2"
81
+ "typescript": "^5.3.2",
82
+ "@odx/eslint-config-websites": "0.0.0",
83
+ "@odx/websites-tsconfig": "0.0.0",
84
+ "@odx/websites-ui": "0.0.1"
111
85
  },
112
86
  "peerDependencies": {
113
87
  "@odx/websites-ui": ">=0.0.1",
@@ -115,4 +89,4 @@
115
89
  "react-dom": "^18.2.0",
116
90
  "tailwindcss": "^3.3.5"
117
91
  }
118
- }
92
+ }
@@ -1,37 +0,0 @@
1
- import { VariantProps } from 'class-variance-authority';
2
- import * as React from 'react';
3
- declare const tableCellVariants: (props?: ({
4
- color?: "paleBlue" | "blue" | "gray" | "whiteBlue" | "lightGray" | "whiteGray" | null | undefined;
5
- borderRight?: 0 | "white" | "paleBlue" | "blue" | "gray" | "lightGray" | null | undefined;
6
- borderBottom?: 0 | "white" | "paleBlue" | "blue" | "gray" | "lightGray" | null | undefined;
7
- align?: "left" | "right" | "center" | null | undefined;
8
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
- export interface TableCellProps extends Omit<React.HTMLAttributes<HTMLTableCellElement>, 'color'>, VariantProps<typeof tableCellVariants> {
10
- value: {
11
- col: number;
12
- row: number;
13
- };
14
- minWidth?: string;
15
- heading?: boolean;
16
- }
17
- declare const TableCell: React.FC<TableCellProps>;
18
- export interface TableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
19
- highlight: boolean;
20
- }
21
- declare const TableRow: React.FC<TableRowProps>;
22
- export interface TableContainerProps extends React.HTMLAttributes<HTMLDivElement> {
23
- }
24
- declare const TableContainer: React.FC<TableContainerProps>;
25
- export interface TableSectionProps extends React.HTMLAttributes<HTMLTableSectionElement> {
26
- }
27
- declare const TableBody: React.FC<TableSectionProps>;
28
- declare const TableHead: React.FC<TableSectionProps>;
29
- export interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
30
- color: 'blue' | 'gray';
31
- firstColumnHighlight: boolean;
32
- zebraStriping: boolean;
33
- containerProps?: TableContainerProps;
34
- }
35
- declare const Table: React.FC<TableProps>;
36
- export { Table, TableContainer, TableHead, TableBody, TableRow, TableCell };
37
- //# sourceMappingURL=Table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAM,MAAM,0BAA0B,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,QAAA,MAAM,iBAAiB;;;;;mFA4CtB,CAAC;AAEF,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC,EAC/D,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACxC,KAAK,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAMvC,CAAC;AAqCF,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC;IACjD,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAWrC,CAAC;AAEF,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEjD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAQjD,CAAC;AAEF,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC;CAAG;AAE1D,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAE1C,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAE1C,CAAC;AAEF,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACxE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,CAAC,EAAE,mBAAmB,CAAC;CACtC;AAED,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAiB/B,CAAC;AAEF,OAAO,EAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAC,CAAC"}
@@ -1,69 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cva } from 'class-variance-authority';
3
- import { cn } from '../../../utils';
4
- import { TableCellContext, TableContext, TableRowContext, useTableCellContext, } from './TableContext';
5
- const tableCellVariants = cva('font-text pt-3 pl-4 border-b-2 border-r-2 pb-2.5 pr-3.5 min-w-64', {
6
- variants: {
7
- color: {
8
- blue: 'bg-draeger-light-blue-150 border-draeger-light-blue-150 text-draeger-dark-blue',
9
- paleBlue: 'bg-draeger-pale-blue border-draeger-pale-blue text-draeger-dark-blue',
10
- whiteBlue: 'bg-draeger-white border-draeger-white text-draeger-dark-blue',
11
- gray: 'bg-draeger-warm-grey-500 border-draeger-warm-grey-500 text-draeger-white',
12
- lightGray: 'bg-draeger-warm-grey-150 text-draeger-warm-grey-750',
13
- whiteGray: 'bg-draeger-white border-draeger-white text-draeger-warm-grey-750',
14
- },
15
- borderRight: {
16
- blue: 'border-r-draeger-light-blue-150',
17
- paleBlue: 'border-r-draeger-pale-blue',
18
- gray: 'border-r-draeger-warm-grey-250',
19
- lightGray: 'border-r-draeger-warm-grey-150',
20
- white: 'border-r-draeger-white',
21
- 0: 'border-r-0',
22
- },
23
- borderBottom: {
24
- blue: 'border-b-draeger-light-blue-150',
25
- paleBlue: 'border-b-draeger-pale-blue',
26
- gray: 'border-b-draeger-warm-grey-250',
27
- lightGray: 'border-b-draeger-warm-grey-150',
28
- white: 'border-b-draeger-white',
29
- 0: 'border-b-0',
30
- },
31
- align: {
32
- center: 'text-center',
33
- left: 'text-left',
34
- right: 'text-right',
35
- },
36
- },
37
- defaultVariants: {
38
- color: 'paleBlue',
39
- align: 'left',
40
- borderRight: 'white',
41
- borderBottom: 'white',
42
- },
43
- });
44
- const TableCell = ({ value, children, ...props }) => {
45
- return (_jsx(TableCellContext.Provider, { value: value, children: _jsx(TableCellWrapper, { ...props, children: children }) }));
46
- };
47
- const TableCellWrapper = ({ color, align, borderBottom, borderRight, className, children, minWidth, heading, ...props }) => {
48
- const { cellColor } = useTableCellContext();
49
- const colorToUse = color ? color : cellColor;
50
- const Comp = heading ? 'th' : 'td';
51
- return (_jsx(Comp, { className: cn(tableCellVariants({
52
- color: colorToUse,
53
- align,
54
- borderBottom,
55
- borderRight,
56
- className,
57
- })), style: {
58
- minWidth,
59
- }, ...props, children: children }));
60
- };
61
- const TableRow = ({ highlight, children, className, ...props }) => (_jsx(TableRowContext.Provider, { value: highlight, children: _jsx("tr", { className: className, ...props, children: children }) }));
62
- const TableContainer = ({ children, className, ...props }) => (_jsx("div", { className: cn('overflow-x-auto', className), ...props, children: children }));
63
- const TableBody = ({ children, ...args }) => (_jsx("tbody", { ...args, children: children }));
64
- const TableHead = ({ children, ...args }) => (_jsx("thead", { ...args, children: children }));
65
- const Table = ({ containerProps, color, firstColumnHighlight, zebraStriping, children, ...props }) => {
66
- return (_jsx(TableContainer, { ...containerProps, children: _jsx(TableContext.Provider, { value: { color, firstColumnHighlight, zebraStriping }, children: _jsx("table", { ...props, children: children }) }) }));
67
- };
68
- export { Table, TableContainer, TableHead, TableBody, TableRow, TableCell };
69
- //# sourceMappingURL=Table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../src/components/layout/table/Table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,GAAG,EAAC,MAAM,0BAA0B,CAAC;AAE3D,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EACL,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAExB,MAAM,iBAAiB,GAAG,GAAG,CAC3B,kEAAkE,EAClE;IACE,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,gFAAgF;YACtF,QAAQ,EACN,sEAAsE;YACxE,SAAS,EACP,8DAA8D;YAChE,IAAI,EAAE,0EAA0E;YAChF,SAAS,EAAE,qDAAqD;YAChE,SAAS,EACP,kEAAkE;SACrE;QACD,WAAW,EAAE;YACX,IAAI,EAAE,iCAAiC;YACvC,QAAQ,EAAE,4BAA4B;YACtC,IAAI,EAAE,gCAAgC;YACtC,SAAS,EAAE,gCAAgC;YAC3C,KAAK,EAAE,wBAAwB;YAC/B,CAAC,EAAE,YAAY;SAChB;QACD,YAAY,EAAE;YACZ,IAAI,EAAE,iCAAiC;YACvC,QAAQ,EAAE,4BAA4B;YACtC,IAAI,EAAE,gCAAgC;YACtC,SAAS,EAAE,gCAAgC;YAC3C,KAAK,EAAE,wBAAwB;YAC/B,CAAC,EAAE,YAAY;SAChB;QACD,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;YACrB,IAAI,EAAE,WAAW;YACjB,KAAK,EAAE,YAAY;SACpB;KACF;IACD,eAAe,EAAE;QAC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B,CAAC;AAKF,MAAM,cAAc,GAAkC,CAAC,EACrD,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,EAAE,CAAC,CACJ,cAAK,SAAS,EAAE,EAAE,CAAC,iBAAiB,EAAE,SAAS,CAAC,KAAM,KAAK,YACxD,QAAQ,GACL,CACP,CAAC;AAKF,MAAM,SAAS,GAAgC,CAAC,EAAC,QAAQ,EAAE,GAAG,IAAI,EAAC,EAAE,EAAE,CAAC,CACtE,mBAAW,IAAI,YAAG,QAAQ,GAAS,CACpC,CAAC;AAEF,MAAM,SAAS,GAAgC,CAAC,EAAC,QAAQ,EAAE,GAAG,IAAI,EAAC,EAAE,EAAE,CAAC,CACtE,mBAAW,IAAI,YAAG,QAAQ,GAAS,CACpC,CAAC;AASF,MAAM,KAAK,GAAyB,CAAC,EACnC,cAAc,EACd,KAAK,EACL,oBAAoB,EACpB,aAAa,EACb,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,KAAC,cAAc,OAAK,cAAc,YAChC,KAAC,YAAY,CAAC,QAAQ,IACpB,KAAK,EAAE,EAAC,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAC,YAEnD,mBAAW,KAAK,YAAG,QAAQ,GAAS,GACd,GACT,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAC,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- import * as React from 'react';
2
- interface TableContextType {
3
- color: 'blue' | 'gray';
4
- firstColumnHighlight: boolean;
5
- zebraStriping: boolean;
6
- }
7
- export declare const TableContext: React.Context<TableContextType>;
8
- export declare const TableRowContext: React.Context<boolean>;
9
- interface TableCellContextType {
10
- col: number;
11
- row: number;
12
- }
13
- export declare const TableCellContext: React.Context<TableCellContextType>;
14
- export declare const useTableCellContext: () => {
15
- cellColor: "paleBlue" | "blue" | "gray" | "whiteBlue" | "lightGray" | "whiteGray";
16
- };
17
- export {};
18
- //# sourceMappingURL=TableContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableContext.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/table/TableContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,YAAY,iCAIvB,CAAC;AAEH,eAAO,MAAM,eAAe,wBAA6B,CAAC;AAE1D,UAAU,oBAAoB;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,gBAAgB,qCAG3B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;CAoC/B,CAAC"}
@@ -1,47 +0,0 @@
1
- import * as React from 'react';
2
- export const TableContext = React.createContext({
3
- color: 'blue',
4
- firstColumnHighlight: false,
5
- zebraStriping: false,
6
- });
7
- export const TableRowContext = React.createContext(false);
8
- export const TableCellContext = React.createContext({
9
- col: 0,
10
- row: 0,
11
- });
12
- export const useTableCellContext = () => {
13
- const { color, firstColumnHighlight, zebraStriping } = React.useContext(TableContext);
14
- const rowHighlight = React.useContext(TableRowContext);
15
- const { col, row } = React.useContext(TableCellContext);
16
- let cellColor;
17
- if (color === 'blue') {
18
- if (rowHighlight) {
19
- cellColor = 'blue';
20
- }
21
- else if (col === 0 && firstColumnHighlight) {
22
- cellColor = 'blue';
23
- }
24
- else if (zebraStriping && row % 2 === 0) {
25
- cellColor = 'paleBlue';
26
- }
27
- else {
28
- cellColor = 'whiteBlue';
29
- }
30
- }
31
- else {
32
- if (rowHighlight) {
33
- cellColor = 'gray';
34
- }
35
- else if (col === 0 && firstColumnHighlight) {
36
- cellColor = 'gray';
37
- }
38
- else if (zebraStriping && row % 2 === 0) {
39
- cellColor = 'lightGray';
40
- }
41
- else {
42
- cellColor = 'whiteGray';
43
- }
44
- }
45
- return { cellColor };
46
- };
47
- //# sourceMappingURL=TableContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableContext.js","sourceRoot":"","sources":["../../../../src/components/layout/table/TableContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAmB;IAChE,KAAK,EAAE,MAAM;IACb,oBAAoB,EAAE,KAAK;IAC3B,aAAa,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,eAAe,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;AAO1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,aAAa,CAAuB;IACxE,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;CACP,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,EAAC,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAC,GAChD,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC;IACjC,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC;IACvD,MAAM,EAAC,GAAG,EAAE,GAAG,EAAC,GAAG,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAEtD,IAAI,SAMW,CAAC;IAEhB,IAAI,KAAK,KAAK,MAAM,EAAE,CAAC;QACrB,IAAI,YAAY,EAAE,CAAC;YACjB,SAAS,GAAG,MAAM,CAAC;QACrB,CAAC;aAAM,IAAI,GAAG,KAAK,CAAC,IAAI,oBAAoB,EAAE,CAAC;YAC7C,SAAS,GAAG,MAAM,CAAC;QACrB,CAAC;aAAM,IAAI,aAAa,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1C,SAAS,GAAG,UAAU,CAAC;QACzB,CAAC;aAAM,CAAC;YACN,SAAS,GAAG,WAAW,CAAC;QAC1B,CAAC;IACH,CAAC;SAAM,CAAC;QACN,IAAI,YAAY,EAAE,CAAC;YACjB,SAAS,GAAG,MAAM,CAAC;QACrB,CAAC;aAAM,IAAI,GAAG,KAAK,CAAC,IAAI,oBAAoB,EAAE,CAAC;YAC7C,SAAS,GAAG,MAAM,CAAC;QACrB,CAAC;aAAM,IAAI,aAAa,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1C,SAAS,GAAG,WAAW,CAAC;QAC1B,CAAC;aAAM,CAAC;YACN,SAAS,GAAG,WAAW,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,OAAO,EAAC,SAAS,EAAC,CAAC;AACrB,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Table';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './Table';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/table/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}