@prokodo/ui 1.0.3 → 1.0.5

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 (95) hide show
  1. package/dist/components/RTE/RTE.css +9 -9
  2. package/dist/components/RTE/RTE.module.css +9 -9
  3. package/dist/components/RTE/RTE.module.scss.js +12 -1
  4. package/dist/components/animatedText/AnimatedText.server.js +2 -2
  5. package/dist/components/autocomplete/Autocomplete.css +1 -1
  6. package/dist/components/autocomplete/Autocomplete.module.css +1 -1
  7. package/dist/components/autocomplete/Autocomplete.module.scss.js +3 -0
  8. package/dist/components/avatar/Avatar.view.js +1 -1
  9. package/dist/components/button/Button.client.js +2 -2
  10. package/dist/components/button/Button.css +1 -3
  11. package/dist/components/button/Button.module.css +1 -3
  12. package/dist/components/button/Button.module.scss.js +3 -3
  13. package/dist/components/button/Button.server.js +9 -2
  14. package/dist/components/card/Card.client.js +0 -2
  15. package/dist/components/card/Card.view.js +1 -0
  16. package/dist/components/carousel/Carousel.client.js +14 -9
  17. package/dist/components/checkbox/Checkbox.css +2 -2
  18. package/dist/components/checkbox/Checkbox.module.css +2 -2
  19. package/dist/components/checkbox/Checkbox.module.scss.js +1 -0
  20. package/dist/components/checkbox-group/CheckboxGroup.css +5 -5
  21. package/dist/components/checkbox-group/CheckboxGroup.module.css +5 -5
  22. package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +1 -0
  23. package/dist/components/chip/Chip.css +4 -4
  24. package/dist/components/chip/Chip.module.css +4 -4
  25. package/dist/components/datePicker/DatePicker.client.js +36 -3
  26. package/dist/components/datePicker/DatePicker.css +4 -4
  27. package/dist/components/datePicker/DatePicker.module.css +4 -4
  28. package/dist/components/datePicker/DatePicker.module.scss.js +1 -0
  29. package/dist/components/datePicker/DatePicker.view.js +3 -1
  30. package/dist/components/datePicker/DatePickerDialog.view.js +3 -1
  31. package/dist/components/dialog/Dialog.client.js +8 -0
  32. package/dist/components/dialog/Dialog.css +3 -5
  33. package/dist/components/dialog/Dialog.module.css +3 -5
  34. package/dist/components/dialog/Dialog.module.scss.js +1 -1
  35. package/dist/components/dialog/Dialog.view.js +1 -1
  36. package/dist/components/drawer/Drawer.js +1 -2
  37. package/dist/components/dynamic-list/DynamicList.css +1 -1
  38. package/dist/components/dynamic-list/DynamicList.module.css +1 -1
  39. package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
  40. package/dist/components/form/FormField.client.js +7 -5
  41. package/dist/components/image/Image.client.js +8 -4
  42. package/dist/components/image/Image.server.js +6 -3
  43. package/dist/components/input/Input.css +3 -3
  44. package/dist/components/input/Input.module.css +3 -3
  45. package/dist/components/input/Input.module.scss.js +1 -0
  46. package/dist/components/input/Input.view.js +3 -3
  47. package/dist/components/label/Label.css +1 -1
  48. package/dist/components/label/Label.module.css +1 -1
  49. package/dist/components/label/Label.module.scss.js +1 -0
  50. package/dist/components/list/List.css +0 -3
  51. package/dist/components/list/List.module.css +0 -3
  52. package/dist/components/loading/Loading.js +1 -2
  53. package/dist/components/post-teaser/PostTeaser.view.js +1 -0
  54. package/dist/components/post-widget/PostWidget.view.js +1 -1
  55. package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +1 -0
  56. package/dist/components/rating/Rating.css +1 -1
  57. package/dist/components/rating/Rating.module.css +1 -1
  58. package/dist/components/rating/Rating.module.scss.js +1 -0
  59. package/dist/components/rich-text/RichText.client.js +1 -1
  60. package/dist/components/select/Select.client.js +13 -3
  61. package/dist/components/select/Select.css +14 -31
  62. package/dist/components/select/Select.module.css +14 -31
  63. package/dist/components/select/Select.module.scss.js +1 -0
  64. package/dist/components/snackbar/Snackbar.css +36 -0
  65. package/dist/components/snackbar/Snackbar.module.css +36 -0
  66. package/dist/components/snackbar/Snackbar.module.scss.js +6 -0
  67. package/dist/components/stepper/Stepper.css +11 -31
  68. package/dist/components/stepper/Stepper.module.css +11 -31
  69. package/dist/components/switch/Switch.css +6 -6
  70. package/dist/components/switch/Switch.module.css +6 -6
  71. package/dist/components/switch/Switch.module.scss.js +1 -0
  72. package/dist/components/table/Table.css +9 -0
  73. package/dist/components/table/Table.js +2 -1
  74. package/dist/components/table/Table.module.css +9 -0
  75. package/dist/components/table/Table.module.scss.js +2 -0
  76. package/dist/components/tabs/Tabs.module.scss.js +1 -0
  77. package/dist/components/tooltip/Tooltip.client.js +6 -2
  78. package/dist/constants/project.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/index.js +4 -4
  81. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +1 -1
  82. package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +1 -1
  83. package/dist/node_modules/.pnpm/quill@2.0.3/node_modules/quill/dist/quill.js +4 -4
  84. package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/index.js +6 -6
  85. package/dist/theme.css +3708 -2237
  86. package/dist/tsconfig.build.tsbuildinfo +1 -1
  87. package/dist/types/components/RTE/RTE.d.ts +1 -1
  88. package/dist/types/components/RTE/RTE.lazy.d.ts +1 -1
  89. package/dist/types/components/datePicker/DatePicker.model.d.ts +2 -1
  90. package/dist/types/components/datePicker/DatePicker.view.d.ts +3 -2
  91. package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +1 -1
  92. package/dist/types/components/form/Form.model.d.ts +5 -0
  93. package/dist/types/components/input/Input.view.d.ts +1 -1
  94. package/dist/types/components/select/Select.model.d.ts +2 -0
  95. package/package.json +22 -5
@@ -6,8 +6,10 @@ const styles = {
6
6
  "prokodo-Table__table": "prokodo-Table__table",
7
7
  "prokodo-Table__table__wrapper": "prokodo-Table__table__wrapper",
8
8
  "prokodo-Table__head__row": "prokodo-Table__head__row",
9
+ "prokodo-Table__head__row--double": "prokodo-Table__head__row--double",
9
10
  "prokodo-Table__head__cell": "prokodo-Table__head__cell",
10
11
  "prokodo-Table__body__row": "prokodo-Table__body__row",
12
+ "prokodo-Table__body__row--double": "prokodo-Table__body__row--double",
11
13
  "prokodo-Table__body__row--has-link": "prokodo-Table__body__row--has-link",
12
14
  "prokodo-Table__caption": "prokodo-Table__caption",
13
15
  "prokodo-TableCell": "prokodo-TableCell",
@@ -1,5 +1,6 @@
1
1
  const styles = {
2
2
  "prokodo-Tabs": "prokodo-Tabs",
3
+ "pk-theme-dark": "pk-theme-dark",
3
4
  "prokodo-Tabs--vertical": "prokodo-Tabs--vertical",
4
5
  "prokodo-Tabs__list": "prokodo-Tabs__list",
5
6
  "prokodo-Tabs__list--vertical": "prokodo-Tabs__list--vertical",
@@ -2,7 +2,7 @@
2
2
  var __defProp = Object.defineProperty;
3
3
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
4
4
  import { jsxs, Fragment, jsx } from "react/jsx-runtime";
5
- import { memo, useState, useRef, useCallback, useMemo, useLayoutEffect } from "react";
5
+ import { memo, useState, useRef, useEffect, useCallback, useMemo, useLayoutEffect } from "react";
6
6
  import { createPortal } from "react-dom";
7
7
  import { create } from "../../helpers/bem.js";
8
8
  import styles from "./Tooltip.module.scss.js";
@@ -169,6 +169,10 @@ function TooltipClient(props) {
169
169
  void 0
170
170
  );
171
171
  const [effectivePlacement, setEffectivePlacement] = useState(placement);
172
+ const [isMounted, setIsMounted] = useState(false);
173
+ useEffect(() => {
174
+ setIsMounted(true);
175
+ }, []);
172
176
  const openTimer = useRef(null);
173
177
  const closeTimer = useRef(null);
174
178
  const clearTimers = useCallback(() => {
@@ -372,7 +376,7 @@ function TooltipClient(props) {
372
376
  },
373
377
  [portal, open, compute]
374
378
  );
375
- const overlayRoot = typeof document !== "undefined" && portal ? getOverlayRoot(overlayRootId, zIndex) : null;
379
+ const overlayRoot = isMounted && portal ? getOverlayRoot(overlayRootId, zIndex) : null;
376
380
  const portalOpen = open && Boolean(bubbleStyle);
377
381
  return /* @__PURE__ */ jsxs(Fragment, { children: [
378
382
  /* @__PURE__ */ jsx(
@@ -1,4 +1,4 @@
1
- const PROKODO_UI_VERSION = "1.0.3";
1
+ const PROKODO_UI_VERSION = "1.0.5";
2
2
  export {
3
3
  PROKODO_UI_VERSION
4
4
  };
package/dist/index.js CHANGED
@@ -39,9 +39,9 @@ import { PostWidget } from "./components/post-widget/PostWidget.js";
39
39
  import { PostWidgetCarousel } from "./components/post-widget-carousel/PostWidgetCarousel.js";
40
40
  import { ProgressBar } from "./components/progressBar/ProgressBar.js";
41
41
  import { Quote } from "./components/quote/Quote.js";
42
+ import { RTE } from "./components/RTE/RTE.js";
42
43
  import { Rating } from "./components/rating/Rating.js";
43
44
  import { RichText } from "./components/rich-text/RichText.js";
44
- import { RTE } from "./components/RTE/RTE.js";
45
45
  import { Select } from "./components/select/Select.js";
46
46
  import { SideNav } from "./components/sidenav/SideNav.js";
47
47
  import { Skeleton } from "./components/skeleton/Skeleton.js";
@@ -7,7 +7,7 @@ var hasRequiredLib;
7
7
  function requireLib() {
8
8
  if (hasRequiredLib) return lib.exports;
9
9
  hasRequiredLib = 1;
10
- (function(module, exports) {
10
+ (function(module, exports$1) {
11
11
  var DEFAULT = /* @__PURE__ */ require_default();
12
12
  var FilterCSS = /* @__PURE__ */ requireCss();
13
13
  function filterCSS(html, options) {
@@ -15,9 +15,9 @@ function requireLib() {
15
15
  return xss.process(html);
16
16
  }
17
17
  __name(filterCSS, "filterCSS");
18
- exports = module.exports = filterCSS;
19
- exports.FilterCSS = FilterCSS;
20
- for (var i in DEFAULT) exports[i] = DEFAULT[i];
18
+ exports$1 = module.exports = filterCSS;
19
+ exports$1.FilterCSS = FilterCSS;
20
+ for (var i in DEFAULT) exports$1[i] = DEFAULT[i];
21
21
  if (typeof window !== "undefined") {
22
22
  window.filterCSS = module.exports;
23
23
  }
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { isMdAsciiPunct, isPunctChar, isWhiteSpace } from "../common/utils.js";
3
+ import { isWhiteSpace, isMdAsciiPunct, isPunctChar } from "../common/utils.js";
4
4
  const QUOTE_TEST_RE = /['"]/;
5
5
  const QUOTE_RE = /['"]/g;
6
6
  const APOSTROPHE = "’";
@@ -1,6 +1,6 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
- import { fromCodePoint, isValidEntityCode } from "../common/utils.js";
3
+ import { isValidEntityCode, fromCodePoint } from "../common/utils.js";
4
4
  import { decodeHTML } from "../../../../../entities@4.5.0/node_modules/entities/lib/esm/decode.js";
5
5
  const DIGITAL_RE = /^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i;
6
6
  const NAMED_RE = /^&([a-z][a-z0-9]{1,31});/i;
@@ -10,7 +10,7 @@ var hasRequiredQuill;
10
10
  function requireQuill() {
11
11
  if (hasRequiredQuill) return quill.exports;
12
12
  hasRequiredQuill = 1;
13
- (function(module, exports) {
13
+ (function(module, exports$1) {
14
14
  !function(t, e) {
15
15
  module.exports = e();
16
16
  }(self, function() {
@@ -3730,7 +3730,7 @@ ${(0, l.X)(this.code(t3, e3))}
3730
3730
  return new r2.A(e3).set(new r2.A(t3)), e3;
3731
3731
  };
3732
3732
  }, 3812: function(t2, e2, n2) {
3733
- var r2 = n2(5507), i = exports && !exports.nodeType && exports, s = i && true && module && !module.nodeType && module, o = s && s.exports === i ? r2.A.Buffer : void 0, l = o ? o.allocUnsafe : void 0;
3733
+ var r2 = n2(5507), i = exports$1 && !exports$1.nodeType && exports$1, s = i && true && module && !module.nodeType && module, o = s && s.exports === i ? r2.A.Buffer : void 0, l = o ? o.allocUnsafe : void 0;
3734
3734
  e2.A = function(t3, e3) {
3735
3735
  if (e3) return t3.slice();
3736
3736
  var n3 = t3.length, r3 = l ? l(n3) : new t3.constructor(n3);
@@ -3860,7 +3860,7 @@ ${(0, l.X)(this.code(t3, e3))}
3860
3860
  return t3 === ("function" == typeof e3 && e3.prototype || n2);
3861
3861
  };
3862
3862
  }, 8795: function(t2, e2, n2) {
3863
- var r2 = n2(9646), i = exports && !exports.nodeType && exports, s = i && true && module && !module.nodeType && module, o = s && s.exports === i && r2.A.process, l = function() {
3863
+ var r2 = n2(9646), i = exports$1 && !exports$1.nodeType && exports$1, s = i && true && module && !module.nodeType && module, o = s && s.exports === i && r2.A.process, l = function() {
3864
3864
  try {
3865
3865
  return s && s.require && s.require("util").types || o && o.binding && o.binding("util");
3866
3866
  } catch (t3) {
@@ -4012,7 +4012,7 @@ ${(0, l.X)(this.code(t3, e3))}
4012
4012
  n2.d(e2, { A: /* @__PURE__ */ __name(function() {
4013
4013
  return l;
4014
4014
  }, "A") });
4015
- var r2 = n2(5507), i = exports && !exports.nodeType && exports, s = i && true && module && !module.nodeType && module, o = s && s.exports === i ? r2.A.Buffer : void 0, l = (o ? o.isBuffer : void 0) || function() {
4015
+ var r2 = n2(5507), i = exports$1 && !exports$1.nodeType && exports$1, s = i && true && module && !module.nodeType && module, o = s && s.exports === i ? r2.A.Buffer : void 0, l = (o ? o.isBuffer : void 0) || function() {
4016
4016
  return false;
4017
4017
  };
4018
4018
  }, 5123: function(t2, e2, n2) {
@@ -8,7 +8,7 @@ var hasRequiredLib;
8
8
  function requireLib() {
9
9
  if (hasRequiredLib) return lib.exports;
10
10
  hasRequiredLib = 1;
11
- (function(module, exports) {
11
+ (function(module, exports$1) {
12
12
  var DEFAULT = /* @__PURE__ */ require_default();
13
13
  var parser = /* @__PURE__ */ requireParser();
14
14
  var FilterXSS = /* @__PURE__ */ requireXss();
@@ -17,15 +17,15 @@ function requireLib() {
17
17
  return xss.process(html);
18
18
  }
19
19
  __name(filterXSS, "filterXSS");
20
- exports = module.exports = filterXSS;
21
- exports.filterXSS = filterXSS;
22
- exports.FilterXSS = FilterXSS;
20
+ exports$1 = module.exports = filterXSS;
21
+ exports$1.filterXSS = filterXSS;
22
+ exports$1.FilterXSS = FilterXSS;
23
23
  (function() {
24
24
  for (var i in DEFAULT) {
25
- exports[i] = DEFAULT[i];
25
+ exports$1[i] = DEFAULT[i];
26
26
  }
27
27
  for (var j in parser) {
28
- exports[j] = parser[j];
28
+ exports$1[j] = parser[j];
29
29
  }
30
30
  })();
31
31
  if (typeof window !== "undefined") {