kdpa-components 1.0.0 → 1.2.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 (149) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/Accordion/index.js +17 -19
  3. package/dist/Alert/index.js +19 -20
  4. package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
  5. package/dist/Avatar/index.js +7 -8
  6. package/dist/Badge/index.js +22 -24
  7. package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
  8. package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
  9. package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
  10. package/dist/Buttons/index.js +28 -30
  11. package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
  12. package/dist/Cards/index.d.ts +2 -0
  13. package/dist/Cards/index.d.ts.map +1 -1
  14. package/dist/Cards/index.js +150 -1
  15. package/dist/CheckBox/index.js +13 -14
  16. package/dist/Chip/index.js +17 -19
  17. package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
  18. package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
  19. package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
  20. package/dist/Collapse/index.js +10 -12
  21. package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
  22. package/dist/CopyToClipboard/index.js +24 -26
  23. package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
  24. package/dist/Divider/index.js +7 -8
  25. package/dist/DropZone/index.js +34 -36
  26. package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
  27. package/dist/FormControl/index.js +12 -13
  28. package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
  29. package/dist/FullScreenDialog/index.js +20 -22
  30. package/dist/Grid/index.js +9 -10
  31. package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
  32. package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
  33. package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
  34. package/dist/Input/index.js +27 -29
  35. package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
  36. package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
  37. package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
  38. package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
  39. package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
  40. package/dist/KdpaChip-10899788.js +51 -0
  41. package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
  42. package/dist/KdpaCollapse-2d23c312.js +12 -0
  43. package/dist/KdpaCollapse-73c03e02.js +23 -0
  44. package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
  45. package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
  46. package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
  47. package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
  48. package/dist/KdpaFormControl-135b070d.js +10 -0
  49. package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
  50. package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
  51. package/dist/KdpaGrid-2a3f9346.js +12 -0
  52. package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
  53. package/dist/KdpaIconButton-a0ee669c.js +35 -0
  54. package/dist/KdpaInputMultiline-231a2be1.js +68 -0
  55. package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
  56. package/dist/KdpaMenuItem-99cde871.js +56 -0
  57. package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
  58. package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
  59. package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
  60. package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
  61. package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
  62. package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
  63. package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
  64. package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
  65. package/dist/KdpaTabs-ab618f36.js +50 -0
  66. package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
  67. package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
  68. package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
  69. package/dist/KdpaTypography-763c3238.js +10 -0
  70. package/dist/KdpaZoom-1b0f3404.js +22 -0
  71. package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
  72. package/dist/LazyDrop/index.js +24 -24
  73. package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
  74. package/dist/Loading/KdpaProgress/index.js +12 -13
  75. package/dist/Loading/index.js +11 -12
  76. package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
  77. package/dist/Modal/index.d.ts +0 -2
  78. package/dist/Modal/index.d.ts.map +1 -1
  79. package/dist/Modal/index.js +3 -17
  80. package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
  81. package/dist/PaginationGrid/index.js +33 -34
  82. package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
  83. package/dist/Pickers/index.d.ts +2 -1
  84. package/dist/Pickers/index.d.ts.map +1 -1
  85. package/dist/Pickers/index.js +43 -45
  86. package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
  87. package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
  88. package/dist/Radio/index.js +14 -15
  89. package/dist/Selects/index.js +39 -40
  90. package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
  91. package/dist/Slider/index.js +8 -9
  92. package/dist/Switch/index.js +12 -13
  93. package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
  94. package/dist/Tabs/index.js +16 -17
  95. package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
  96. package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
  97. package/dist/ThemeProvider/index.js +7 -8
  98. package/dist/Tooltips/index.js +16 -18
  99. package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
  100. package/dist/Transitions/index.js +22 -24
  101. package/dist/Tree/index.js +2 -2
  102. package/dist/TreeSelect/index.js +3 -3
  103. package/dist/Typography/index.js +8 -9
  104. package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
  105. package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
  106. package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
  107. package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
  108. package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
  109. package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
  110. package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
  111. package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
  112. package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
  113. package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
  114. package/dist/identifier-2647f844.js +3775 -0
  115. package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
  116. package/dist/index.js +140 -142
  117. package/dist/jsx-dev-runtime-48fdc504.js +615 -0
  118. package/dist/kdpaSelect-4ed993c7.js +1 -0
  119. package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
  120. package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
  123. package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
  124. package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
  125. package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
  126. package/package.json +90 -87
  127. package/dist/KdpaChip-f94c5b7e.js +0 -31
  128. package/dist/KdpaCircularProgress-aed28149.js +0 -44
  129. package/dist/KdpaCollapse-73e5e40c.js +0 -8
  130. package/dist/KdpaCollapse-7f12a32a.js +0 -11
  131. package/dist/KdpaFormControl-ae8f7241.js +0 -6
  132. package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
  133. package/dist/KdpaGrid-b93fab29.js +0 -8
  134. package/dist/KdpaIconButton-f5146164.js +0 -23
  135. package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
  136. package/dist/KdpaMenuItem-9a9ece89.js +0 -35
  137. package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
  138. package/dist/KdpaSkeleton-4696fadd.js +0 -541
  139. package/dist/KdpaTabs-a76a17a7.js +0 -38
  140. package/dist/KdpaTypography-17403558.js +0 -6
  141. package/dist/KdpaZoom-96a648cb.js +0 -10
  142. package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
  143. package/dist/Sanitizer/index.d.ts +0 -3
  144. package/dist/Sanitizer/index.d.ts.map +0 -1
  145. package/dist/Sanitizer/index.js +0 -492
  146. package/dist/identifier-5cabf5ae.js +0 -2481
  147. package/dist/index-f4329b29.js +0 -669
  148. package/dist/jsx-runtime-944c88e2.js +0 -631
  149. package/dist/utils-8a7b223e.js +0 -18
@@ -1,492 +0,0 @@
1
- import { j as Je } from "../jsx-runtime-944c88e2.js";
2
- import "react";
3
- /*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */
4
- const {
5
- entries: rt,
6
- setPrototypeOf: Qe,
7
- isFrozen: wt,
8
- getPrototypeOf: xt,
9
- getOwnPropertyDescriptor: Pt
10
- } = Object;
11
- let {
12
- freeze: h,
13
- seal: y,
14
- create: kt
15
- } = Object, {
16
- apply: Ne,
17
- construct: Oe
18
- } = typeof Reflect < "u" && Reflect;
19
- Ne || (Ne = function(i, c, s) {
20
- return i.apply(c, s);
21
- });
22
- h || (h = function(i) {
23
- return i;
24
- });
25
- y || (y = function(i) {
26
- return i;
27
- });
28
- Oe || (Oe = function(i, c) {
29
- return new i(...c);
30
- });
31
- const vt = S(Array.prototype.forEach), et = S(Array.prototype.pop), B = S(Array.prototype.push), te = S(String.prototype.toLowerCase), Se = S(String.prototype.toString), Ut = S(String.prototype.match), L = S(String.prototype.replace), Ft = S(String.prototype.indexOf), Ht = S(String.prototype.trim), A = S(RegExp.prototype.test), Y = zt(TypeError);
32
- function S(r) {
33
- return function(i) {
34
- for (var c = arguments.length, s = new Array(c > 1 ? c - 1 : 0), m = 1; m < c; m++)
35
- s[m - 1] = arguments[m];
36
- return Ne(r, i, s);
37
- };
38
- }
39
- function zt(r) {
40
- return function() {
41
- for (var i = arguments.length, c = new Array(i), s = 0; s < i; s++)
42
- c[s] = arguments[s];
43
- return Oe(r, c);
44
- };
45
- }
46
- function a(r, i, c) {
47
- var s;
48
- c = (s = c) !== null && s !== void 0 ? s : te, Qe && Qe(r, null);
49
- let m = i.length;
50
- for (; m--; ) {
51
- let R = i[m];
52
- if (typeof R == "string") {
53
- const D = c(R);
54
- D !== R && (wt(i) || (i[m] = D), R = D);
55
- }
56
- r[R] = !0;
57
- }
58
- return r;
59
- }
60
- function H(r) {
61
- const i = kt(null);
62
- for (const [c, s] of rt(r))
63
- i[c] = s;
64
- return i;
65
- }
66
- function Q(r, i) {
67
- for (; r !== null; ) {
68
- const s = Pt(r, i);
69
- if (s) {
70
- if (s.get)
71
- return S(s.get);
72
- if (typeof s.value == "function")
73
- return S(s.value);
74
- }
75
- r = xt(r);
76
- }
77
- function c(s) {
78
- return console.warn("fallback value for", s), null;
79
- }
80
- return c;
81
- }
82
- const tt = h(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Re = h(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), Le = h(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), Wt = h(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), ye = h(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), Gt = h(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), nt = h(["#text"]), ot = h(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "xmlns", "slot"]), De = h(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), it = h(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), ee = h(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Bt = y(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Yt = y(/<%[\w\W]*|[\w\W]*%>/gm), jt = y(/\${[\w\W]*}/gm), Xt = y(/^data-[\-\w.\u00B7-\uFFFF]/), Vt = y(/^aria-[\-\w]+$/), st = y(
83
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
84
- // eslint-disable-line no-useless-escape
85
- ), qt = y(/^(?:\w+script|data):/i), $t = y(
86
- /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
87
- // eslint-disable-line no-control-regex
88
- ), lt = y(/^html$/i);
89
- var at = /* @__PURE__ */ Object.freeze({
90
- __proto__: null,
91
- MUSTACHE_EXPR: Bt,
92
- ERB_EXPR: Yt,
93
- TMPLIT_EXPR: jt,
94
- DATA_ATTR: Xt,
95
- ARIA_ATTR: Vt,
96
- IS_ALLOWED_URI: st,
97
- IS_SCRIPT_OR_DATA: qt,
98
- ATTR_WHITESPACE: $t,
99
- DOCTYPE_NAME: lt
100
- });
101
- const Kt = () => typeof window > "u" ? null : window, Zt = function(i, c) {
102
- if (typeof i != "object" || typeof i.createPolicy != "function")
103
- return null;
104
- let s = null;
105
- const m = "data-tt-policy-suffix";
106
- c && c.hasAttribute(m) && (s = c.getAttribute(m));
107
- const R = "dompurify" + (s ? "#" + s : "");
108
- try {
109
- return i.createPolicy(R, {
110
- createHTML(D) {
111
- return D;
112
- },
113
- createScriptURL(D) {
114
- return D;
115
- }
116
- });
117
- } catch {
118
- return console.warn("TrustedTypes policy " + R + " could not be created."), null;
119
- }
120
- };
121
- function ct() {
122
- let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Kt();
123
- const i = (o) => ct(o);
124
- if (i.version = "3.0.3", i.removed = [], !r || !r.document || r.document.nodeType !== 9)
125
- return i.isSupported = !1, i;
126
- const c = r.document, s = c.currentScript;
127
- let {
128
- document: m
129
- } = r;
130
- const {
131
- DocumentFragment: R,
132
- HTMLTemplateElement: D,
133
- Node: ne,
134
- Element: be,
135
- NodeFilter: oe,
136
- NamedNodeMap: ut = r.NamedNodeMap || r.MozNamedAttrMap,
137
- HTMLFormElement: ft,
138
- DOMParser: mt,
139
- trustedTypes: j
140
- } = r, X = be.prototype, pt = Q(X, "cloneNode"), dt = Q(X, "nextSibling"), Tt = Q(X, "childNodes"), ie = Q(X, "parentNode");
141
- if (typeof D == "function") {
142
- const o = m.createElement("template");
143
- o.content && o.content.ownerDocument && (m = o.content.ownerDocument);
144
- }
145
- let E, z = "";
146
- const {
147
- implementation: ae,
148
- createNodeIterator: _t,
149
- createDocumentFragment: Et,
150
- getElementsByTagName: ht
151
- } = m, {
152
- importNode: At
153
- } = c;
154
- let N = {};
155
- i.isSupported = typeof rt == "function" && typeof ie == "function" && ae && ae.createHTMLDocument !== void 0;
156
- const {
157
- MUSTACHE_EXPR: re,
158
- ERB_EXPR: se,
159
- TMPLIT_EXPR: le,
160
- DATA_ATTR: gt,
161
- ARIA_ATTR: St,
162
- IS_SCRIPT_OR_DATA: Rt,
163
- ATTR_WHITESPACE: Ie
164
- } = at;
165
- let {
166
- IS_ALLOWED_URI: Me
167
- } = at, p = null;
168
- const Ce = a({}, [...tt, ...Re, ...Le, ...ye, ...nt]);
169
- let d = null;
170
- const we = a({}, [...ot, ...De, ...it, ...ee]);
171
- let f = Object.seal(Object.create(null, {
172
- tagNameCheck: {
173
- writable: !0,
174
- configurable: !1,
175
- enumerable: !0,
176
- value: null
177
- },
178
- attributeNameCheck: {
179
- writable: !0,
180
- configurable: !1,
181
- enumerable: !0,
182
- value: null
183
- },
184
- allowCustomizedBuiltInElements: {
185
- writable: !0,
186
- configurable: !1,
187
- enumerable: !0,
188
- value: !1
189
- }
190
- })), W = null, ce = null, xe = !0, ue = !0, Pe = !1, ke = !0, x = !1, M = !1, fe = !1, me = !1, P = !1, V = !1, q = !1, ve = !0, Ue = !1;
191
- const Lt = "user-content-";
192
- let pe = !0, G = !1, k = {}, v = null;
193
- const Fe = a({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
194
- let He = null;
195
- const ze = a({}, ["audio", "video", "img", "source", "image", "track"]);
196
- let de = null;
197
- const We = a({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), $ = "http://www.w3.org/1998/Math/MathML", K = "http://www.w3.org/2000/svg", b = "http://www.w3.org/1999/xhtml";
198
- let U = b, Te = !1, _e = null;
199
- const yt = a({}, [$, K, b], Se);
200
- let C;
201
- const Dt = ["application/xhtml+xml", "text/html"], Nt = "text/html";
202
- let T, F = null;
203
- const Ot = m.createElement("form"), Ge = function(e) {
204
- return e instanceof RegExp || e instanceof Function;
205
- }, Ee = function(e) {
206
- if (!(F && F === e)) {
207
- if ((!e || typeof e != "object") && (e = {}), e = H(e), C = // eslint-disable-next-line unicorn/prefer-includes
208
- Dt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? C = Nt : C = e.PARSER_MEDIA_TYPE, T = C === "application/xhtml+xml" ? Se : te, p = "ALLOWED_TAGS" in e ? a({}, e.ALLOWED_TAGS, T) : Ce, d = "ALLOWED_ATTR" in e ? a({}, e.ALLOWED_ATTR, T) : we, _e = "ALLOWED_NAMESPACES" in e ? a({}, e.ALLOWED_NAMESPACES, Se) : yt, de = "ADD_URI_SAFE_ATTR" in e ? a(
209
- H(We),
210
- // eslint-disable-line indent
211
- e.ADD_URI_SAFE_ATTR,
212
- // eslint-disable-line indent
213
- T
214
- // eslint-disable-line indent
215
- ) : We, He = "ADD_DATA_URI_TAGS" in e ? a(
216
- H(ze),
217
- // eslint-disable-line indent
218
- e.ADD_DATA_URI_TAGS,
219
- // eslint-disable-line indent
220
- T
221
- // eslint-disable-line indent
222
- ) : ze, v = "FORBID_CONTENTS" in e ? a({}, e.FORBID_CONTENTS, T) : Fe, W = "FORBID_TAGS" in e ? a({}, e.FORBID_TAGS, T) : {}, ce = "FORBID_ATTR" in e ? a({}, e.FORBID_ATTR, T) : {}, k = "USE_PROFILES" in e ? e.USE_PROFILES : !1, xe = e.ALLOW_ARIA_ATTR !== !1, ue = e.ALLOW_DATA_ATTR !== !1, Pe = e.ALLOW_UNKNOWN_PROTOCOLS || !1, ke = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, x = e.SAFE_FOR_TEMPLATES || !1, M = e.WHOLE_DOCUMENT || !1, P = e.RETURN_DOM || !1, V = e.RETURN_DOM_FRAGMENT || !1, q = e.RETURN_TRUSTED_TYPE || !1, me = e.FORCE_BODY || !1, ve = e.SANITIZE_DOM !== !1, Ue = e.SANITIZE_NAMED_PROPS || !1, pe = e.KEEP_CONTENT !== !1, G = e.IN_PLACE || !1, Me = e.ALLOWED_URI_REGEXP || st, U = e.NAMESPACE || b, f = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && Ge(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (f.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && Ge(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (f.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (f.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), x && (ue = !1), V && (P = !0), k && (p = a({}, [...nt]), d = [], k.html === !0 && (a(p, tt), a(d, ot)), k.svg === !0 && (a(p, Re), a(d, De), a(d, ee)), k.svgFilters === !0 && (a(p, Le), a(d, De), a(d, ee)), k.mathMl === !0 && (a(p, ye), a(d, it), a(d, ee))), e.ADD_TAGS && (p === Ce && (p = H(p)), a(p, e.ADD_TAGS, T)), e.ADD_ATTR && (d === we && (d = H(d)), a(d, e.ADD_ATTR, T)), e.ADD_URI_SAFE_ATTR && a(de, e.ADD_URI_SAFE_ATTR, T), e.FORBID_CONTENTS && (v === Fe && (v = H(v)), a(v, e.FORBID_CONTENTS, T)), pe && (p["#text"] = !0), M && a(p, ["html", "head", "body"]), p.table && (a(p, ["tbody"]), delete W.tbody), e.TRUSTED_TYPES_POLICY) {
223
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
224
- throw Y('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
225
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
226
- throw Y('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
227
- E = e.TRUSTED_TYPES_POLICY, z = E.createHTML("");
228
- } else
229
- E === void 0 && (E = Zt(j, s)), E !== null && typeof z == "string" && (z = E.createHTML(""));
230
- h && h(e), F = e;
231
- }
232
- }, Be = a({}, ["mi", "mo", "mn", "ms", "mtext"]), Ye = a({}, ["foreignobject", "desc", "title", "annotation-xml"]), bt = a({}, ["title", "style", "font", "a", "script"]), Z = a({}, Re);
233
- a(Z, Le), a(Z, Wt);
234
- const he = a({}, ye);
235
- a(he, Gt);
236
- const It = function(e) {
237
- let t = ie(e);
238
- (!t || !t.tagName) && (t = {
239
- namespaceURI: U,
240
- tagName: "template"
241
- });
242
- const n = te(e.tagName), l = te(t.tagName);
243
- return _e[e.namespaceURI] ? e.namespaceURI === K ? t.namespaceURI === b ? n === "svg" : t.namespaceURI === $ ? n === "svg" && (l === "annotation-xml" || Be[l]) : !!Z[n] : e.namespaceURI === $ ? t.namespaceURI === b ? n === "math" : t.namespaceURI === K ? n === "math" && Ye[l] : !!he[n] : e.namespaceURI === b ? t.namespaceURI === K && !Ye[l] || t.namespaceURI === $ && !Be[l] ? !1 : !he[n] && (bt[n] || !Z[n]) : !!(C === "application/xhtml+xml" && _e[e.namespaceURI]) : !1;
244
- }, w = function(e) {
245
- B(i.removed, {
246
- element: e
247
- });
248
- try {
249
- e.parentNode.removeChild(e);
250
- } catch {
251
- e.remove();
252
- }
253
- }, Ae = function(e, t) {
254
- try {
255
- B(i.removed, {
256
- attribute: t.getAttributeNode(e),
257
- from: t
258
- });
259
- } catch {
260
- B(i.removed, {
261
- attribute: null,
262
- from: t
263
- });
264
- }
265
- if (t.removeAttribute(e), e === "is" && !d[e])
266
- if (P || V)
267
- try {
268
- w(t);
269
- } catch {
270
- }
271
- else
272
- try {
273
- t.setAttribute(e, "");
274
- } catch {
275
- }
276
- }, je = function(e) {
277
- let t, n;
278
- if (me)
279
- e = "<remove></remove>" + e;
280
- else {
281
- const g = Ut(e, /^[\r\n\t ]+/);
282
- n = g && g[0];
283
- }
284
- C === "application/xhtml+xml" && U === b && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
285
- const l = E ? E.createHTML(e) : e;
286
- if (U === b)
287
- try {
288
- t = new mt().parseFromString(l, C);
289
- } catch {
290
- }
291
- if (!t || !t.documentElement) {
292
- t = ae.createDocument(U, "template", null);
293
- try {
294
- t.documentElement.innerHTML = Te ? z : l;
295
- } catch {
296
- }
297
- }
298
- const _ = t.body || t.documentElement;
299
- return e && n && _.insertBefore(m.createTextNode(n), _.childNodes[0] || null), U === b ? ht.call(t, M ? "html" : "body")[0] : M ? t.documentElement : _;
300
- }, Xe = function(e) {
301
- return _t.call(
302
- e.ownerDocument || e,
303
- e,
304
- // eslint-disable-next-line no-bitwise
305
- oe.SHOW_ELEMENT | oe.SHOW_COMMENT | oe.SHOW_TEXT,
306
- null,
307
- !1
308
- );
309
- }, Mt = function(e) {
310
- return e instanceof ft && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof ut) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
311
- }, J = function(e) {
312
- return typeof ne == "object" ? e instanceof ne : e && typeof e == "object" && typeof e.nodeType == "number" && typeof e.nodeName == "string";
313
- }, I = function(e, t, n) {
314
- N[e] && vt(N[e], (l) => {
315
- l.call(i, t, n, F);
316
- });
317
- }, Ve = function(e) {
318
- let t;
319
- if (I("beforeSanitizeElements", e, null), Mt(e))
320
- return w(e), !0;
321
- const n = T(e.nodeName);
322
- if (I("uponSanitizeElement", e, {
323
- tagName: n,
324
- allowedTags: p
325
- }), e.hasChildNodes() && !J(e.firstElementChild) && (!J(e.content) || !J(e.content.firstElementChild)) && A(/<[/\w]/g, e.innerHTML) && A(/<[/\w]/g, e.textContent))
326
- return w(e), !0;
327
- if (!p[n] || W[n]) {
328
- if (!W[n] && $e(n) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
329
- return !1;
330
- if (pe && !v[n]) {
331
- const l = ie(e) || e.parentNode, _ = Tt(e) || e.childNodes;
332
- if (_ && l) {
333
- const g = _.length;
334
- for (let u = g - 1; u >= 0; --u)
335
- l.insertBefore(pt(_[u], !0), dt(e));
336
- }
337
- }
338
- return w(e), !0;
339
- }
340
- return e instanceof be && !It(e) || (n === "noscript" || n === "noembed") && A(/<\/no(script|embed)/i, e.innerHTML) ? (w(e), !0) : (x && e.nodeType === 3 && (t = e.textContent, t = L(t, re, " "), t = L(t, se, " "), t = L(t, le, " "), e.textContent !== t && (B(i.removed, {
341
- element: e.cloneNode()
342
- }), e.textContent = t)), I("afterSanitizeElements", e, null), !1);
343
- }, qe = function(e, t, n) {
344
- if (ve && (t === "id" || t === "name") && (n in m || n in Ot))
345
- return !1;
346
- if (!(ue && !ce[t] && A(gt, t))) {
347
- if (!(xe && A(St, t))) {
348
- if (!d[t] || ce[t]) {
349
- if (
350
- // First condition does a very basic check if a) it's basically a valid custom element tagname AND
351
- // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
352
- // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
353
- !($e(e) && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, e) || f.tagNameCheck instanceof Function && f.tagNameCheck(e)) && (f.attributeNameCheck instanceof RegExp && A(f.attributeNameCheck, t) || f.attributeNameCheck instanceof Function && f.attributeNameCheck(t)) || // Alternative, second condition checks if it's an `is`-attribute, AND
354
- // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
355
- t === "is" && f.allowCustomizedBuiltInElements && (f.tagNameCheck instanceof RegExp && A(f.tagNameCheck, n) || f.tagNameCheck instanceof Function && f.tagNameCheck(n)))
356
- )
357
- return !1;
358
- } else if (!de[t]) {
359
- if (!A(Me, L(n, Ie, ""))) {
360
- if (!((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Ft(n, "data:") === 0 && He[e])) {
361
- if (!(Pe && !A(Rt, L(n, Ie, "")))) {
362
- if (n)
363
- return !1;
364
- }
365
- }
366
- }
367
- }
368
- }
369
- }
370
- return !0;
371
- }, $e = function(e) {
372
- return e.indexOf("-") > 0;
373
- }, Ke = function(e) {
374
- let t, n, l, _;
375
- I("beforeSanitizeAttributes", e, null);
376
- const {
377
- attributes: g
378
- } = e;
379
- if (!g)
380
- return;
381
- const u = {
382
- attrName: "",
383
- attrValue: "",
384
- keepAttr: !0,
385
- allowedAttributes: d
386
- };
387
- for (_ = g.length; _--; ) {
388
- t = g[_];
389
- const {
390
- name: O,
391
- namespaceURI: ge
392
- } = t;
393
- if (n = O === "value" ? t.value : Ht(t.value), l = T(O), u.attrName = l, u.attrValue = n, u.keepAttr = !0, u.forceKeepAttr = void 0, I("uponSanitizeAttribute", e, u), n = u.attrValue, u.forceKeepAttr || (Ae(O, e), !u.keepAttr))
394
- continue;
395
- if (!ke && A(/\/>/i, n)) {
396
- Ae(O, e);
397
- continue;
398
- }
399
- x && (n = L(n, re, " "), n = L(n, se, " "), n = L(n, le, " "));
400
- const Ze = T(e.nodeName);
401
- if (qe(Ze, l, n)) {
402
- if (Ue && (l === "id" || l === "name") && (Ae(O, e), n = Lt + n), E && typeof j == "object" && typeof j.getAttributeType == "function" && !ge)
403
- switch (j.getAttributeType(Ze, l)) {
404
- case "TrustedHTML": {
405
- n = E.createHTML(n);
406
- break;
407
- }
408
- case "TrustedScriptURL": {
409
- n = E.createScriptURL(n);
410
- break;
411
- }
412
- }
413
- try {
414
- ge ? e.setAttributeNS(ge, O, n) : e.setAttribute(O, n), et(i.removed);
415
- } catch {
416
- }
417
- }
418
- }
419
- I("afterSanitizeAttributes", e, null);
420
- }, Ct = function o(e) {
421
- let t;
422
- const n = Xe(e);
423
- for (I("beforeSanitizeShadowDOM", e, null); t = n.nextNode(); )
424
- I("uponSanitizeShadowNode", t, null), !Ve(t) && (t.content instanceof R && o(t.content), Ke(t));
425
- I("afterSanitizeShadowDOM", e, null);
426
- };
427
- return i.sanitize = function(o) {
428
- let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t, n, l, _;
429
- if (Te = !o, Te && (o = "<!-->"), typeof o != "string" && !J(o))
430
- if (typeof o.toString == "function") {
431
- if (o = o.toString(), typeof o != "string")
432
- throw Y("dirty is not a string, aborting");
433
- } else
434
- throw Y("toString is not a function");
435
- if (!i.isSupported)
436
- return o;
437
- if (fe || Ee(e), i.removed = [], typeof o == "string" && (G = !1), G) {
438
- if (o.nodeName) {
439
- const O = T(o.nodeName);
440
- if (!p[O] || W[O])
441
- throw Y("root node is forbidden and cannot be sanitized in-place");
442
- }
443
- } else if (o instanceof ne)
444
- t = je("<!---->"), n = t.ownerDocument.importNode(o, !0), n.nodeType === 1 && n.nodeName === "BODY" || n.nodeName === "HTML" ? t = n : t.appendChild(n);
445
- else {
446
- if (!P && !x && !M && // eslint-disable-next-line unicorn/prefer-includes
447
- o.indexOf("<") === -1)
448
- return E && q ? E.createHTML(o) : o;
449
- if (t = je(o), !t)
450
- return P ? null : q ? z : "";
451
- }
452
- t && me && w(t.firstChild);
453
- const g = Xe(G ? o : t);
454
- for (; l = g.nextNode(); )
455
- Ve(l) || (l.content instanceof R && Ct(l.content), Ke(l));
456
- if (G)
457
- return o;
458
- if (P) {
459
- if (V)
460
- for (_ = Et.call(t.ownerDocument); t.firstChild; )
461
- _.appendChild(t.firstChild);
462
- else
463
- _ = t;
464
- return (d.shadowroot || d.shadowrootmod) && (_ = At.call(c, _, !0)), _;
465
- }
466
- let u = M ? t.outerHTML : t.innerHTML;
467
- return M && p["!doctype"] && t.ownerDocument && t.ownerDocument.doctype && t.ownerDocument.doctype.name && A(lt, t.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + t.ownerDocument.doctype.name + `>
468
- ` + u), x && (u = L(u, re, " "), u = L(u, se, " "), u = L(u, le, " ")), E && q ? E.createHTML(u) : u;
469
- }, i.setConfig = function(o) {
470
- Ee(o), fe = !0;
471
- }, i.clearConfig = function() {
472
- F = null, fe = !1;
473
- }, i.isValidAttribute = function(o, e, t) {
474
- F || Ee({});
475
- const n = T(o), l = T(e);
476
- return qe(n, l, t);
477
- }, i.addHook = function(o, e) {
478
- typeof e == "function" && (N[o] = N[o] || [], B(N[o], e));
479
- }, i.removeHook = function(o) {
480
- if (N[o])
481
- return et(N[o]);
482
- }, i.removeHooks = function(o) {
483
- N[o] && (N[o] = []);
484
- }, i.removeAllHooks = function() {
485
- N = {};
486
- }, i;
487
- }
488
- var Jt = ct();
489
- const nn = ({ children: r }) => typeof r == "string" ? /* @__PURE__ */ Je.jsx("div", { dangerouslySetInnerHTML: { __html: Jt.sanitize(r) } }) : /* @__PURE__ */ Je.jsx("div", {});
490
- export {
491
- nn as KdpaPureHtml
492
- };