@mahatisystems/mahati-ui-components 1.0.7 → 1.0.8
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.
- package/package.json +1 -1
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -1
- package/dist/index.js +0 -280
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -280
- package/dist/index.mjs.map +0 -1
package/package.json
CHANGED
package/dist/index.css
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.block{display:block}.flex{display:flex}.table{display:table}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-wrap{flex-wrap:wrap}.border{border-width:1px}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.tooltipContainer{position:relative;display:inline-block;cursor:pointer}.tooltip{position:absolute;background-color:#349db8e6;color:#fff;padding:8px;border-radius:4px;font-size:13px;font-weight:600;white-space:nowrap;z-index:1000;opacity:0;transition:opacity .2s ease-in-out}.tooltip.top{bottom:100%;left:50%;transform:translate(-50%);margin-bottom:8px}.tooltip.right{top:50%;left:100%;transform:translateY(-50%);margin-left:8px}.tooltip.bottom{top:100%;left:50%;transform:translate(-50%);margin-top:8px}.tooltip.left{top:50%;right:100%;transform:translateY(-50%);margin-right:8px}.tooltipContainer:hover .tooltip{opacity:1}
|
|
2
|
-
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles/index.css","../src/styles/Tooltip.module.css"],"sourcesContent":["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: ;\n}/*\n! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */\n -moz-tab-size: 4; /* 3 */\n -o-tab-size: 4;\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font-family by default.\n2. Use the user's configured `mono` font-feature-settings by default.\n3. Use the user's configured `mono` font-variation-settings by default.\n4. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-feature-settings: normal; /* 2 */\n font-variation-settings: normal; /* 3 */\n font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-feature-settings: inherit; /* 1 */\n font-variation-settings: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n letter-spacing: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-moz-placeholder, textarea::-moz-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden]:where(:not([hidden=\"until-found\"])) {\n display: none;\n}\r\n .container {\n width: 100%;\n}\r\n @media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\r\n @media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\r\n @media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\r\n @media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\r\n @media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\r\n .visible {\n visibility: visible;\n}\r\n .collapse {\n visibility: collapse;\n}\r\n .fixed {\n position: fixed;\n}\r\n .absolute {\n position: absolute;\n}\r\n .relative {\n position: relative;\n}\r\n .block {\n display: block;\n}\r\n .flex {\n display: flex;\n}\r\n .table {\n display: table;\n}\r\n .border-collapse {\n border-collapse: collapse;\n}\r\n .transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\r\n .flex-wrap {\n flex-wrap: wrap;\n}\r\n .border {\n border-width: 1px;\n}\r\n .uppercase {\n text-transform: uppercase;\n}\r\n .lowercase {\n text-transform: lowercase;\n}\r\n .shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\r\n .outline {\n outline-style: solid;\n}\r\n .transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}",".tooltipContainer {\r\n position: relative;\r\n display: inline-block;\r\n cursor: pointer;\r\n }\r\n \r\n .tooltip {\r\n position: absolute;\r\n background-color: rgba(52, 157, 184, 0.9);\r\n color: #fff;\r\n padding: 8px;\r\n border-radius: 4px;\r\n font-size: 13px;\r\n font-weight: 600;\r\n white-space: nowrap;\r\n z-index: 1000;\r\n opacity: 0;\r\n transition: opacity 0.2s ease-in-out;\r\n }\r\n \r\n .tooltip.top {\r\n bottom: 100%;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n margin-bottom: 8px;\r\n }\r\n \r\n .tooltip.right {\r\n top: 50%;\r\n left: 100%;\r\n transform: translateY(-50%);\r\n margin-left: 8px;\r\n }\r\n \r\n .tooltip.bottom {\r\n top: 100%;\r\n left: 50%;\r\n transform: translateX(-50%);\r\n margin-top: 8px;\r\n }\r\n \r\n .tooltip.left {\r\n top: 50%;\r\n right: 100%;\r\n transform: translateY(-50%);\r\n margin-right: 8px;\r\n }\r\n \r\n .tooltipContainer:hover .tooltip {\r\n opacity: 1;\r\n }\r\n "],"mappings":"AAAA,EAAG,QAAU,OACX,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,aACA,aACA,kBACA,6BAA6B,UAC7B,8BACA,6BACA,4BACA,eACA,oBACA,sBACA,uBACA,wBACA,kBACA,wBAAwB,IACxB,wBAAwB,KACxB,iBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE,IAClC,yBAAyB,EAAE,EAAE,MAC7B,kBAAkB,EAAE,EAAE,MACtB,aAAa,EAAE,EAAE,MACjB,qBAAqB,EAAE,EAAE,MACzB,YACA,kBACA,gBACA,iBACA,kBACA,cACA,gBACA,aACA,mBACA,qBACA,2BACA,yBACA,0BACA,2BACA,uBACA,wBACA,yBACA,sBACA,oBACA,sBACA,qBACA,oBACF,CAEA,WACE,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,aACA,aACA,kBACA,6BAA6B,UAC7B,8BACA,6BACA,4BACA,eACA,oBACA,sBACA,uBACA,wBACA,kBACA,wBAAwB,IACxB,wBAAwB,KACxB,iBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE,IAClC,yBAAyB,EAAE,EAAE,MAC7B,kBAAkB,EAAE,EAAE,MACtB,aAAa,EAAE,EAAE,MACjB,qBAAqB,EAAE,EAAE,MACzB,YACA,kBACA,gBACA,iBACA,kBACA,cACA,gBACA,aACA,mBACA,qBACA,2BACA,yBACA,0BACA,2BACA,uBACA,wBACA,yBACA,sBACA,oBACA,sBACA,qBACA,oBACF,CAOA,EACA,QACA,OACE,WAAY,WACZ,aAAc,EACd,aAAc,MACd,aAAc,OAChB,CAEA,QACA,OACE,cAAc,EAChB,CAYA,KACA,MACE,YAAa,IACb,yBAA0B,KAC1B,cAAe,EACf,YAAa,EACV,SAAU,EACb,YAAa,aAAa,CAAE,SAAS,CAAE,UAAU,CAAE,mBAAmB,CAAE,gBAAgB,CAAE,eAAiB,CAAE,mBAC7G,sBAA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","names":[]}
|
package/dist/index.js
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
var en=Object.create;var Oe=Object.defineProperty;var tn=Object.getOwnPropertyDescriptor;var rn=Object.getOwnPropertyNames;var nn=Object.getPrototypeOf,on=Object.prototype.hasOwnProperty;var an=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sn=(e,t)=>{for(var r in t)Oe(e,r,{get:t[r],enumerable:!0})},kt=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of rn(t))!on.call(e,o)&&o!==r&&Oe(e,o,{get:()=>t[o],enumerable:!(n=tn(t,o))||n.enumerable});return e};var et=(e,t,r)=>(r=e!=null?en(nn(e)):{},kt(t||!e||!e.__esModule?Oe(r,"default",{value:e,enumerable:!0}):r,e)),cn=e=>kt(Oe({},"__esModule",{value:!0}),e);var Ot=an((Wo,Tt)=>{Tt.exports=function(t,r,n,o){var i=n?n.call(o,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var a=Object.keys(t),c=Object.keys(r);if(a.length!==c.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(r),f=0;f<a.length;f++){var h=a[f];if(!s(h))return!1;var l=t[h],g=r[h];if(i=n?n.call(o,l,g,h):void 0,i===!1||i===void 0&&l!==g)return!1}return!0}});var zo={};sn(zo,{MahatiButton:()=>Pr,MahatiCard:()=>Tr,MahatiDropdown:()=>Or,MahatiFormContainer:()=>Rr,MahatiInput:()=>Ar,MahatiKeyValueDisplay:()=>Nr,MahatiLabel:()=>Ir,MahatiMain:()=>zr,MahatiParagraph:()=>Br,MahatiRow:()=>Vr,MahatiSection:()=>Lr,MahatiSpinner:()=>Fr,MahatiTabbedInterface:()=>$r,MahatiTable:()=>jr,MahatiTooltip:()=>Ct,isValidPassword:()=>Wr,isValidUsername:()=>Hr,maxLength:()=>Gr,minLength:()=>Yr,required:()=>Ur});module.exports=cn(zo);var Et=require("react");var Re=require("react/jsx-runtime"),ln=({text:e,position:t,children:r})=>{let[n,o]=(0,Et.useState)(!1);return(0,Re.jsxs)("div",{className:"tooltipContainer",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[r,n&&(0,Re.jsx)("div",{className:`tooltip ${n?"tooltipVisible":""}`,children:e})]})},Ct=ln;var N=function(){return N=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},N.apply(this,arguments)};function K(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function _t(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var pn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Pt=_t(function(e){return pn.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var k=et(require("react")),pr=et(Ot());var S="-ms-",X="-moz-",w="-webkit-",Ae="comm",Y="rule",ne="decl";var Rt="@import";var Ne="@keyframes";var At="@layer";var tt=Math.abs,be=String.fromCharCode,we=Object.assign;function Nt(e,t){return T(e,0)^45?(((t<<2^T(e,0))<<2^T(e,1))<<2^T(e,2))<<2^T(e,3):0}function Ie(e){return e.trim()}function j(e,t){return(e=t.exec(e))?e[0]:e}function d(e,t,r){return e.replace(t,r)}function oe(e,t,r){return e.indexOf(t,r)}function T(e,t){return e.charCodeAt(t)|0}function F(e,t,r){return e.slice(t,r)}function I(e){return e.length}function ze(e){return e.length}function Z(e,t){return t.push(e),e}function It(e,t){return e.map(t).join("")}function rt(e,t){return e.filter(function(r){return!j(r,t)})}var De=1,ie=1,zt=0,D=0,A=0,ae="";function ve(e,t,r,n,o,i,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:De,column:ie,length:a,return:"",siblings:c}}function V(e,t){return we(ve("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function J(e){for(;e.root;)e=V(e.root,{children:[e]});Z(e,e.siblings)}function Dt(){return A}function Mt(){return A=D>0?T(ae,--D):0,ie--,A===10&&(ie=1,De--),A}function M(){return A=D<zt?T(ae,D++):0,ie++,A===10&&(ie=1,De++),A}function H(){return T(ae,D)}function xe(){return D}function Me(e,t){return F(ae,e,t)}function nt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function jt(e){return De=ie=1,zt=I(ae=e),D=0,[]}function $t(e){return ae="",e}function je(e){return Ie(Me(D-1,ot(e===91?e+2:e===40?e+1:e)))}function Ft(e){for(;(A=H())&&A<33;)M();return nt(e)>2||nt(A)>3?"":" "}function Lt(e,t){for(;--t&&M()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return Me(e,xe()+(t<6&&H()==32&&M()==32))}function ot(e){for(;M();)switch(A){case e:return D;case 34:case 39:e!==34&&e!==39&&ot(A);break;case 40:e===41&&ot(e);break;case 92:M();break}return D}function Vt(e,t){for(;M()&&e+A!==57;)if(e+A===84&&H()===47)break;return"/*"+Me(t,D-1)+"*"+be(e===47?e:M())}function Bt(e){for(;!nt(H());)M();return Me(e,D)}function Yt(e){return $t($e("",null,null,null,[""],e=jt(e),0,[0],e))}function $e(e,t,r,n,o,i,a,c,s){for(var f=0,h=0,l=a,g=0,m=0,x=0,u=1,O=1,R=1,_=0,E="",C=o,P=i,b=n,y=E;O;)switch(x=_,_=M()){case 40:if(x!=108&&T(y,l-1)==58){oe(y+=d(je(_),"&","&\f"),"&\f",tt(f?c[f-1]:0))!=-1&&(R=-1);break}case 34:case 39:case 91:y+=je(_);break;case 9:case 10:case 13:case 32:y+=Ft(x);break;case 92:y+=Lt(xe()-1,7);continue;case 47:switch(H()){case 42:case 47:Z(un(Vt(M(),xe()),t,r,s),s);break;default:y+="/"}break;case 123*u:c[f++]=I(y)*R;case 125*u:case 59:case 0:switch(_){case 0:case 125:O=0;case 59+h:R==-1&&(y=d(y,/\f/g,"")),m>0&&I(y)-l&&Z(m>32?Gt(y+";",n,r,l-1,s):Gt(d(y," ","")+";",n,r,l-2,s),s);break;case 59:y+=";";default:if(Z(b=Ut(y,t,r,f,h,o,c,E,C=[],P=[],l,i),i),_===123)if(h===0)$e(y,t,b,b,C,i,l,c,P);else switch(g===99&&T(y,3)===110?100:g){case 100:case 108:case 109:case 115:$e(e,b,b,n&&Z(Ut(e,b,b,0,0,o,c,E,o,C=[],l,P),P),o,P,l,c,n?C:P);break;default:$e(y,b,b,b,[""],P,0,c,P)}}f=h=m=0,u=R=1,E=y="",l=a;break;case 58:l=1+I(y),m=x;default:if(u<1){if(_==123)--u;else if(_==125&&u++==0&&Mt()==125)continue}switch(y+=be(_),_*u){case 38:R=h>0?1:(y+="\f",-1);break;case 44:c[f++]=(I(y)-1)*R,R=1;break;case 64:H()===45&&(y+=je(M())),g=H(),h=l=I(E=y+=Bt(xe())),_++;break;case 45:x===45&&I(y)==2&&(u=0)}}return i}function Ut(e,t,r,n,o,i,a,c,s,f,h,l){for(var g=o-1,m=o===0?i:[""],x=ze(m),u=0,O=0,R=0;u<n;++u)for(var _=0,E=F(e,g+1,g=tt(O=a[u])),C=e;_<x;++_)(C=Ie(O>0?m[_]+" "+E:d(E,/&\f/g,m[_])))&&(s[R++]=C);return ve(e,t,r,o===0?Y:c,s,f,h,l)}function un(e,t,r,n){return ve(e,t,r,Ae,be(Dt()),F(e,2,-2),0,n)}function Gt(e,t,r,n,o){return ve(e,t,r,ne,F(e,0,n),F(e,n+1,-1),n,o)}function it(e,t,r){switch(Nt(e,t)){case 5103:return w+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return w+e+e;case 4789:return X+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return w+e+X+e+S+e+e;case 5936:switch(T(e,t+11)){case 114:return w+e+S+d(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return w+e+S+d(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return w+e+S+d(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return w+e+S+e+e;case 6165:return w+e+S+"flex-"+e+e;case 5187:return w+e+d(e,/(\w+).+(:[^]+)/,w+"box-$1$2"+S+"flex-$1$2")+e;case 5443:return w+e+S+"flex-item-"+d(e,/flex-|-self/g,"")+(j(e,/flex-|baseline/)?"":S+"grid-row-"+d(e,/flex-|-self/g,""))+e;case 4675:return w+e+S+"flex-line-pack"+d(e,/align-content|flex-|-self/g,"")+e;case 5548:return w+e+S+d(e,"shrink","negative")+e;case 5292:return w+e+S+d(e,"basis","preferred-size")+e;case 6060:return w+"box-"+d(e,"-grow","")+w+e+S+d(e,"grow","positive")+e;case 4554:return w+d(e,/([^-])(transform)/g,"$1"+w+"$2")+e;case 6187:return d(d(d(e,/(zoom-|grab)/,w+"$1"),/(image-set)/,w+"$1"),e,"")+e;case 5495:case 3959:return d(e,/(image-set\([^]*)/,w+"$1$`$1");case 4968:return d(d(e,/(.+:)(flex-)?(.*)/,w+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+w+e+e;case 4200:if(!j(e,/flex-|baseline/))return S+"grid-column-align"+F(e,t)+e;break;case 2592:case 3360:return S+d(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,o){return t=o,j(n.props,/grid-\w+-end/)})?~oe(e+(r=r[t].value),"span",0)?e:S+d(e,"-start","")+e+S+"grid-row-span:"+(~oe(r,"span",0)?j(r,/\d+/):+j(r,/\d+/)-+j(e,/\d+/))+";":S+d(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return j(n.props,/grid-\w+-start/)})?e:S+d(d(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return d(e,/(.+)-inline(.+)/,w+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(I(e)-1-t>6)switch(T(e,t+1)){case 109:if(T(e,t+4)!==45)break;case 102:return d(e,/(.+:)(.+)-([^]+)/,"$1"+w+"$2-$3$1"+X+(T(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oe(e,"stretch",0)?it(d(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return d(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,o,i,a,c,s,f){return S+o+":"+i+f+(a?S+o+"-span:"+(c?s:+s-+i)+f:"")+e});case 4949:if(T(e,t+6)===121)return d(e,":",":"+w)+e;break;case 6444:switch(T(e,T(e,14)===45?18:11)){case 120:return d(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+w+(T(e,14)===45?"inline-":"")+"box$3$1"+w+"$2$3$1"+S+"$2box$3")+e;case 100:return d(e,":",":"+S)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return d(e,"scroll-","scroll-snap-")+e}return e}function se(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ht(e,t,r,n){switch(e.type){case At:if(e.children.length)break;case Rt:case ne:return e.return=e.return||e.value;case Ae:return"";case Ne:return e.return=e.value+"{"+se(e.children,n)+"}";case Y:if(!I(e.value=e.props.join(",")))return""}return I(r=se(e.children,n))?e.return=e.value+"{"+r+"}":""}function Wt(e){var t=ze(e);return function(r,n,o,i){for(var a="",c=0;c<t;c++)a+=e[c](r,n,o,i)||"";return a}}function qt(e){return function(t){t.root||(t=t.return)&&e(t)}}function Kt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ne:e.return=it(e.value,e.length,r);return;case Ne:return se([V(e,{value:d(e.value,"@","@"+w)})],n);case Y:if(e.length)return It(r=e.props,function(o){switch(j(o,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":J(V(e,{props:[d(o,/:(read-\w+)/,":"+X+"$1")]})),J(V(e,{props:[o]})),we(e,{props:rt(r,n)});break;case"::placeholder":J(V(e,{props:[d(o,/:(plac\w+)/,":"+w+"input-$1")]})),J(V(e,{props:[d(o,/:(plac\w+)/,":"+X+"$1")]})),J(V(e,{props:[d(o,/:(plac\w+)/,S+"input-$1")]})),J(V(e,{props:[o]})),we(e,{props:rt(r,n)});break}return""})}}var Xt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var B=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ur="active",Ye="data-styled-version",ce="6.1.19",gt=`/*!sc*/
|
|
2
|
-
`,Se=typeof window<"u"&&typeof document<"u",dn=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production");var Zt=/invalid hook call/i,Fe=new Set,fn=function(e,t){if(process.env.NODE_ENV!=="production"){var r=t?' with the id of "'.concat(t,'"'):"",n="The component ".concat(e).concat(r,` has been created dynamically.
|
|
3
|
-
`)+`You may see this warning because you've called styled inside another component.
|
|
4
|
-
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
5
|
-
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
6
|
-
`,o=console.error;try{var i=!0;console.error=function(a){for(var c=[],s=1;s<arguments.length;s++)c[s-1]=arguments[s];Zt.test(a)?(i=!1,Fe.delete(n)):o.apply(void 0,K([a],c,!1))},(0,k.useRef)(),i&&!Fe.has(n)&&(console.warn(n),Fe.add(n))}catch(a){Zt.test(a.message)&&Fe.delete(n)}finally{console.error=o}}},qe=Object.freeze([]),le=Object.freeze({});function hn(e,t,r){return r===void 0&&(r=le),e.theme!==r.theme&&e.theme||t||r.theme}var lt=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),mn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,gn=/(^-|-$)/g;function Jt(e){return e.replace(mn,"-").replace(gn,"")}var yn=/(a)(d)/gi,Le=52,Qt=function(e){return String.fromCharCode(e+(e>25?39:97))};function pt(e){var t,r="";for(t=Math.abs(e);t>Le;t=t/Le|0)r=Qt(t%Le)+r;return(Qt(t%Le)+r).replace(yn,"$1-$2")}var at,dr=5381,Q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},fr=function(e){return Q(dr,e)};function bn(e){return pt(fr(e)>>>0)}function hr(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function st(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var mr=typeof Symbol=="function"&&Symbol.for,gr=mr?Symbol.for("react.memo"):60115,wn=mr?Symbol.for("react.forward_ref"):60112,vn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},xn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Sn=((at={})[wn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},at[gr]=yr,at);function er(e){return("type"in(t=e)&&t.type.$$typeof)===gr?yr:"$$typeof"in e?Sn[e.$$typeof]:vn;var t}var kn=Object.defineProperty,En=Object.getOwnPropertyNames,tr=Object.getOwnPropertySymbols,Cn=Object.getOwnPropertyDescriptor,_n=Object.getPrototypeOf,rr=Object.prototype;function br(e,t,r){if(typeof t!="string"){if(rr){var n=_n(t);n&&n!==rr&&br(e,n,r)}var o=En(t);tr&&(o=o.concat(tr(t)));for(var i=er(e),a=er(t),c=0;c<o.length;++c){var s=o[c];if(!(s in xn||r&&r[s]||a&&s in a||i&&s in i)){var f=Cn(t,s);try{kn(e,s,f)}catch{}}}}return e}function pe(e){return typeof e=="function"}function yt(e){return typeof e=="object"&&"styledComponentId"in e}function ee(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function He(e,t){if(e.length===0)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function ue(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ut(e,t,r){if(r===void 0&&(r=!1),!r&&!ue(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=ut(e[n],t[n]);else if(ue(t))for(var n in t)e[n]=ut(e[n],t[n]);return e}function bt(e,t){Object.defineProperty(e,"toString",{value:t})}var Pn=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
7
|
-
|
|
8
|
-
`,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
|
|
9
|
-
|
|
10
|
-
- Are you trying to reuse it across renders?
|
|
11
|
-
- Are you accidentally calling collectStyles twice?
|
|
12
|
-
|
|
13
|
-
`,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
14
|
-
|
|
15
|
-
`,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
16
|
-
|
|
17
|
-
- Does this error occur on the client and is your target falsy?
|
|
18
|
-
- Does this error occur on the server and is the sheet falsy?
|
|
19
|
-
|
|
20
|
-
`,5:`The clone method cannot be used on the client!
|
|
21
|
-
|
|
22
|
-
- Are you running in a client-like environment on the server?
|
|
23
|
-
- Are you trying to run SSR on the client?
|
|
24
|
-
|
|
25
|
-
`,6:`Trying to insert a new style tag, but the given Node is unmounted!
|
|
26
|
-
|
|
27
|
-
- Are you using a custom target that isn't mounted?
|
|
28
|
-
- Does your document not have a valid head element?
|
|
29
|
-
- Have you accidentally removed a style tag manually?
|
|
30
|
-
|
|
31
|
-
`,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
|
|
32
|
-
|
|
33
|
-
`,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
|
|
34
|
-
|
|
35
|
-
`,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
|
|
36
|
-
|
|
37
|
-
`,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
|
|
38
|
-
|
|
39
|
-
`,14:`ThemeProvider: "theme" prop is required.
|
|
40
|
-
|
|
41
|
-
`,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
|
|
42
|
-
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
43
|
-
as for instance in your render method then you may be running into this limitation.
|
|
44
|
-
|
|
45
|
-
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
46
|
-
Has styled-components' style tag been unmounted or altered by another script?
|
|
47
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Tn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=[],o=1,i=e.length;o<i;o+=1)n.push(e[o]);return n.forEach(function(a){r=r.replace(/%[a-z]/,a)}),r}function $(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(Tn.apply(void 0,K([Pn[e]],t,!1)).trim())}var On=(function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,n=0;n<t;n++)r+=this.groupSizes[n];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,i=o;t>=i;)if((i<<=1)<0)throw $(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=o;a<i;a++)this.groupSizes[a]=0}for(var c=this.indexOfGroup(t+1),s=(a=0,r.length);a<s;a++)this.tag.insertRule(c,r[a])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],n=this.indexOfGroup(t),o=n+r;this.groupSizes[t]=0;for(var i=n;i<o;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var n=this.groupSizes[t],o=this.indexOfGroup(t),i=o+n,a=o;a<i;a++)r+="".concat(this.tag.getRule(a)).concat(gt);return r},e})(),Rn=1<<30,Ue=new Map,We=new Map,Ge=1,Ve=function(e){if(Ue.has(e))return Ue.get(e);for(;We.has(Ge);)Ge++;var t=Ge++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Rn))throw $(16,"".concat(t));return Ue.set(e,t),We.set(t,e),t},An=function(e,t){Ge=t+1,Ue.set(e,t),We.set(t,e)},Nn="style[".concat(B,"][").concat(Ye,'="').concat(ce,'"]'),In=new RegExp("^".concat(B,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zn=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Dn=function(e,t){for(var r,n=((r=t.textContent)!==null&&r!==void 0?r:"").split(gt),o=[],i=0,a=n.length;i<a;i++){var c=n[i].trim();if(c){var s=c.match(In);if(s){var f=0|parseInt(s[1],10),h=s[2];f!==0&&(An(h,f),zn(e,h,s[3]),e.getTag().insertRules(f,o)),o.length=0}else o.push(c)}}},nr=function(e){for(var t=document.querySelectorAll(Nn),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(B)!==ur&&(Dn(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function dt(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var wr=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=(function(c){var s=Array.from(c.querySelectorAll("style[".concat(B,"]")));return s[s.length-1]})(r),i=o!==void 0?o.nextSibling:null;n.setAttribute(B,ur),n.setAttribute(Ye,ce);var a=dt();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Mn=(function(){function e(t){this.element=wr(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(r){if(r.sheet)return r.sheet;for(var n=document.styleSheets,o=0,i=n.length;o<i;o++){var a=n[o];if(a.ownerNode===r)return a}throw $(17)})(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e})(),jn=(function(){function e(t){this.element=wr(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var n=document.createTextNode(r);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e})(),$n=(function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e})(),or=Se,Fn={isServer:!Se,useCSSOMInjection:!dn},ke=(function(){function e(t,r,n){t===void 0&&(t=le),r===void 0&&(r={});var o=this;this.options=N(N({},Fn),t),this.gs=r,this.names=new Map(n),this.server=!!t.isServer,!this.server&&Se&&or&&(or=!1,nr(this)),bt(this,function(){return(function(i){for(var a=i.getTag(),c=a.length,s="",f=function(l){var g=(function(R){return We.get(R)})(l);if(g===void 0)return"continue";var m=i.names.get(g),x=a.getGroup(l);if(m===void 0||!m.size||x.length===0)return"continue";var u="".concat(B,".g").concat(l,'[id="').concat(g,'"]'),O="";m!==void 0&&m.forEach(function(R){R.length>0&&(O+="".concat(R,","))}),s+="".concat(x).concat(u,'{content:"').concat(O,'"}').concat(gt)},h=0;h<c;h++)f(h);return s})(o)})}return e.registerId=function(t){return Ve(t)},e.prototype.rehydrate=function(){!this.server&&Se&&nr(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(N(N({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=(function(r){var n=r.useCSSOMInjection,o=r.target;return r.isServer?new $n(o):n?new Mn(o):new jn(o)})(this.options),new On(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Ve(t),this.names.has(t))this.names.get(t).add(r);else{var n=new Set;n.add(r),this.names.set(t,n)}},e.prototype.insertRules=function(t,r,n){this.registerName(t,r),this.getTag().insertRules(Ve(t),n)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ve(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),Ln=/&/g,Vn=/^\s*\/\/.*$/gm;function vr(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(n){return"".concat(t," ").concat(n)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=vr(r.children,t)),r})}function xr(e){var t,r,n,o=e===void 0?le:e,i=o.options,a=i===void 0?le:i,c=o.plugins,s=c===void 0?qe:c,f=function(g,m,x){return x.startsWith(r)&&x.endsWith(r)&&x.replaceAll(r,"").length>0?".".concat(t):g},h=s.slice();h.push(function(g){g.type===Y&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(Ln,r).replace(n,f))}),a.prefix&&h.push(Kt),h.push(Ht);var l=function(g,m,x,u){m===void 0&&(m=""),x===void 0&&(x=""),u===void 0&&(u="&"),t=u,r=m,n=new RegExp("\\".concat(r,"\\b"),"g");var O=g.replace(Vn,""),R=Yt(x||m?"".concat(x," ").concat(m," { ").concat(O," }"):O);a.namespace&&(R=vr(R,a.namespace));var _=[];return se(R,Wt(h.concat(qt(function(E){return _.push(E)})))),_};return l.hash=s.length?s.reduce(function(g,m){return m.name||$(15),Q(g,m.name)},dr).toString():"",l}var Bn=new ke,ft=xr(),wt=k.default.createContext({shouldForwardProp:void 0,styleSheet:Bn,stylis:ft}),vi=wt.Consumer,Un=k.default.createContext(void 0);function ht(){return(0,k.useContext)(wt)}function Gn(e){var t=(0,k.useState)(e.stylisPlugins),r=t[0],n=t[1],o=ht().styleSheet,i=(0,k.useMemo)(function(){var s=o;return e.sheet?s=e.sheet:e.target&&(s=s.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(s=s.reconstructWithOptions({useCSSOMInjection:!1})),s},[e.disableCSSOMInjection,e.sheet,e.target,o]),a=(0,k.useMemo)(function(){return xr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})},[e.enableVendorPrefixes,e.namespace,r]);(0,k.useEffect)(function(){(0,pr.default)(r,e.stylisPlugins)||n(e.stylisPlugins)},[e.stylisPlugins]);var c=(0,k.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}},[e.shouldForwardProp,i,a]);return k.default.createElement(wt.Provider,{value:c},k.default.createElement(Un.Provider,{value:a},e.children))}var ir=(function(){function e(t,r){var n=this;this.inject=function(o,i){i===void 0&&(i=ft);var a=n.name+i.hash;o.hasNameForId(n.id,a)||o.insertRules(n.id,a,i(n.rules,a,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,bt(this,function(){throw $(12,String(n.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=ft),this.name+t.hash},e})(),Yn=function(e){return e>="A"&&e<="Z"};function ar(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(r===1&&n==="-"&&e[0]==="-")return e;Yn(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Sr=function(e){return e==null||e===!1||e===""},kr=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Sr(i)&&(Array.isArray(i)&&i.isCss||pe(i)?n.push("".concat(ar(o),":"),i,";"):ue(i)?n.push.apply(n,K(K(["".concat(o," {")],kr(i),!1),["}"],!1)):n.push("".concat(ar(o),": ").concat((t=o,(r=i)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Xt||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function W(e,t,r,n){if(Sr(e))return[];if(yt(e))return[".".concat(e.styledComponentId)];if(pe(e)){if(!pe(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof ir||ue(o)||o===null||console.error("".concat(hr(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),W(o,t,r,n)}var i;return e instanceof ir?r?(e.inject(r,n),[e.getName(n)]):[e]:ue(e)?kr(e):Array.isArray(e)?Array.prototype.concat.apply(qe,e.map(function(a){return W(a,t,r,n)})):[e.toString()]}function Er(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(pe(r)&&!yt(r))return!1}return!0}var Hn=fr(ce),Wn=(function(){function e(t,r,n){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&Er(t),this.componentId=r,this.baseHash=Q(Hn,r),this.baseStyle=n,ke.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))o=ee(o,this.staticRulesId);else{var i=He(W(this.rules,t,r,n)),a=pt(Q(this.baseHash,i)>>>0);if(!r.hasNameForId(this.componentId,a)){var c=n(i,".".concat(a),void 0,this.componentId);r.insertRules(this.componentId,a,c)}o=ee(o,a),this.staticRulesId=a}else{for(var s=Q(this.baseHash,n.hash),f="",h=0;h<this.rules.length;h++){var l=this.rules[h];if(typeof l=="string")f+=l,process.env.NODE_ENV!=="production"&&(s=Q(s,l));else if(l){var g=He(W(l,t,r,n));s=Q(s,g+h),f+=g}}if(f){var m=pt(s>>>0);r.hasNameForId(this.componentId,m)||r.insertRules(this.componentId,m,n(f,".".concat(m),void 0,this.componentId)),o=ee(o,m)}}return o},e})(),Cr=k.default.createContext(void 0),xi=Cr.Consumer;var ct={},sr=new Set;function qn(e,t,r){var n=yt(e),o=e,i=!st(e),a=t.attrs,c=a===void 0?qe:a,s=t.componentId,f=s===void 0?(function(C,P){var b=typeof C!="string"?"sc":Jt(C);ct[b]=(ct[b]||0)+1;var y="".concat(b,"-").concat(bn(ce+b+ct[b]));return P?"".concat(P,"-").concat(y):y})(t.displayName,t.parentComponentId):s,h=t.displayName,l=h===void 0?(function(C){return st(C)?"styled.".concat(C):"Styled(".concat(hr(C),")")})(e):h,g=t.displayName&&t.componentId?"".concat(Jt(t.displayName),"-").concat(t.componentId):t.componentId||f,m=n&&o.attrs?o.attrs.concat(c).filter(Boolean):c,x=t.shouldForwardProp;if(n&&o.shouldForwardProp){var u=o.shouldForwardProp;if(t.shouldForwardProp){var O=t.shouldForwardProp;x=function(C,P){return u(C,P)&&O(C,P)}}else x=u}var R=new Wn(r,g,n?o.componentStyle:void 0);function _(C,P){return(function(b,y,U){var te=b.attrs,qr=b.componentStyle,Kr=b.defaultProps,Xr=b.foldedComponentIds,xt=b.styledComponentId,Zr=b.target,Jr=k.default.useContext(Cr),Qr=ht(),Xe=b.shouldForwardProp||Qr.shouldForwardProp;process.env.NODE_ENV!=="production"&&(0,k.useDebugValue)(xt);var St=hn(y,Jr,Kr)||le,L=(function(_e,ye,Pe){for(var re,q=N(N({},ye),{className:void 0,theme:Pe}),Qe=0;Qe<_e.length;Qe+=1){var Te=pe(re=_e[Qe])?re(q):re;for(var G in Te)q[G]=G==="className"?ee(q[G],Te[G]):G==="style"?N(N({},q[G]),Te[G]):Te[G]}return ye.className&&(q.className=ee(q.className,ye.className)),q})(te,y,St),me=L.as||Zr,ge={};for(var z in L)L[z]===void 0||z[0]==="$"||z==="as"||z==="theme"&&L.theme===St||(z==="forwardedAs"?ge.as=L.forwardedAs:Xe&&!Xe(z,me)||(ge[z]=L[z],Xe||process.env.NODE_ENV!=="development"||Pt(z)||sr.has(z)||!lt.has(me)||(sr.add(z),console.warn('styled-components: it looks like an unknown prop "'.concat(z,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var Ze=(function(_e,ye){var Pe=ht(),re=_e.generateAndInjectStyles(ye,Pe.styleSheet,Pe.stylis);return process.env.NODE_ENV!=="production"&&(0,k.useDebugValue)(re),re})(qr,L);process.env.NODE_ENV!=="production"&&b.warnTooManyClasses&&b.warnTooManyClasses(Ze);var Je=ee(Xr,xt);return Ze&&(Je+=" "+Ze),L.className&&(Je+=" "+L.className),ge[st(me)&&!lt.has(me)?"class":"className"]=Je,U&&(ge.ref=U),(0,k.createElement)(me,ge)})(E,C,P)}_.displayName=l;var E=k.default.forwardRef(_);return E.attrs=m,E.componentStyle=R,E.displayName=l,E.shouldForwardProp=x,E.foldedComponentIds=n?ee(o.foldedComponentIds,o.styledComponentId):"",E.styledComponentId=g,E.target=n?o.target:e,Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(C){this._foldedDefaultProps=n?(function(P){for(var b=[],y=1;y<arguments.length;y++)b[y-1]=arguments[y];for(var U=0,te=b;U<te.length;U++)ut(P,te[U],!0);return P})({},o.defaultProps,C):C}}),process.env.NODE_ENV!=="production"&&(fn(l,g),E.warnTooManyClasses=(function(C,P){var b={},y=!1;return function(U){if(!y&&(b[U]=!0,Object.keys(b).length>=200)){var te=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(C).concat(te,`.
|
|
48
|
-
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
49
|
-
Example:
|
|
50
|
-
const Component = styled.div.attrs(props => ({
|
|
51
|
-
style: {
|
|
52
|
-
background: props.background,
|
|
53
|
-
},
|
|
54
|
-
}))\`width: 100%;\`
|
|
55
|
-
|
|
56
|
-
<Component />`),y=!0,b={}}}})(l,g)),bt(E,function(){return".".concat(E.styledComponentId)}),i&&br(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),E}function cr(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var lr=function(e){return Object.assign(e,{isCss:!0})};function Kn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(pe(e)||ue(e))return lr(W(cr(qe,K([e],t,!0))));var n=e;return t.length===0&&n.length===1&&typeof n[0]=="string"?W(n):lr(W(cr(n,t)))}function mt(e,t,r){if(r===void 0&&(r=le),!t)throw $(1,t);var n=function(o){for(var i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];return e(t,r,Kn.apply(void 0,K([o],i,!1)))};return n.attrs=function(o){return mt(e,t,N(N({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},n.withConfig=function(o){return mt(e,t,N(N({},r),o))},n}var _r=function(e){return mt(qn,e)},p=_r;lt.forEach(function(e){p[e]=_r(e)});var Si=(function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=Er(t),ke.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,n,o){var i=o(He(W(this.rules,r,n,o)),""),a=this.componentId+t;n.insertRules(a,a,i)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,n,o){t>2&&ke.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,r,n,o)},e})();var Xn=/^\s*<\/[a-z]/i,ki=(function(){function e(){var t=this;this._emitSheetCSS=function(){var r=t.instance.toString();if(!r)return"";var n=dt(),o=He([n&&'nonce="'.concat(n,'"'),"".concat(B,'="true"'),"".concat(Ye,'="').concat(ce,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(r,"</style>")},this.getStyleTags=function(){if(t.sealed)throw $(2);return t._emitSheetCSS()},this.getStyleElement=function(){var r;if(t.sealed)throw $(2);var n=t.instance.toString();if(!n)return[];var o=((r={})[B]="",r[Ye]=ce,r.dangerouslySetInnerHTML={__html:n},r),i=dt();return i&&(o.nonce=i),[k.default.createElement("style",N({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new ke({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(t){if(this.sealed)throw $(2);return k.default.createElement(Gn,{sheet:this.instance},t)},e.prototype.interleaveWithNodeStream=function(t){if(Se)throw $(3);if(this.sealed)throw $(2);this.seal();var r=require("stream").Transform,n=t,o=this.instance,i=this._emitSheetCSS,a=new r({transform:function(c,s,f){var h=c.toString(),l=i();if(o.clearTag(),Xn.test(h)){var g=h.indexOf(">")+1,m=h.slice(0,g),x=h.slice(g);this.push(m+l+x)}else this.push(l+h);f()}});return n.on("error",function(c){a.emit("error",c)}),n.pipe(a)},e})();process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
57
|
-
Perhaps you're looking to import 'styled-components/native'?
|
|
58
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Be="__sc-".concat(B,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Be]||(window[Be]=0),window[Be]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
|
|
59
|
-
|
|
60
|
-
See https://s-c.sh/2BAXzed for more info.`),window[Be]+=1);var Zn=p.button.attrs(e=>({type:e.type||"button"}))`
|
|
61
|
-
|
|
62
|
-
padding: ${e=>e.size==="large"?"15px":e.size==="small"?"5px":"10px"};
|
|
63
|
-
margin-top: 10px;
|
|
64
|
-
background-color: ${e=>e.color==="none"?"transparent":e.color||"#55b382"};
|
|
65
|
-
color: ${e=>e.textColor||"#ffffff"};
|
|
66
|
-
border: none;
|
|
67
|
-
border-radius: 4px;
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
display: flex;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
align-items: center;
|
|
72
|
-
font-weight: bolder;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
&:disabled {
|
|
77
|
-
background-color: #ccc;
|
|
78
|
-
cursor: not-allowed;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
${({isLoading:e})=>e&&`
|
|
82
|
-
pointer-events: none;
|
|
83
|
-
`}
|
|
84
|
-
`,Pr=Zn;var Jn=p.div`
|
|
85
|
-
background: #fff;
|
|
86
|
-
border-radius: 8px;
|
|
87
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
88
|
-
padding: 20px;
|
|
89
|
-
margin-top: 20px;
|
|
90
|
-
text-align: center;
|
|
91
|
-
`,Tr=Jn;var vt=require("react");var de=require("react/jsx-runtime"),Qn=p.div`
|
|
92
|
-
position: relative;
|
|
93
|
-
display: inline-block;
|
|
94
|
-
width: 200px;
|
|
95
|
-
margin: 10px 0;
|
|
96
|
-
`,eo=p.button`
|
|
97
|
-
width: 100%;
|
|
98
|
-
padding: 10px;
|
|
99
|
-
background-color: #007bff;
|
|
100
|
-
color: white;
|
|
101
|
-
border: none;
|
|
102
|
-
border-radius: 4px;
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
text-align: left;
|
|
105
|
-
|
|
106
|
-
&:hover {
|
|
107
|
-
background-color: #0056b3;
|
|
108
|
-
}
|
|
109
|
-
`,to=p.div`
|
|
110
|
-
display: ${({open:e})=>e?"block":"none"};
|
|
111
|
-
position: absolute;
|
|
112
|
-
background-color: white;
|
|
113
|
-
min-width: 100%;
|
|
114
|
-
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
|
|
115
|
-
z-index: 1;
|
|
116
|
-
border-radius: 4px;
|
|
117
|
-
`,ro=p.div`
|
|
118
|
-
padding: 10px;
|
|
119
|
-
cursor: pointer;
|
|
120
|
-
color: #333;
|
|
121
|
-
|
|
122
|
-
&:hover {
|
|
123
|
-
background-color: #f1f1f1;
|
|
124
|
-
}
|
|
125
|
-
`,no=({options:e,onSelect:t})=>{let[r,n]=(0,vt.useState)(!1),[o,i]=(0,vt.useState)(null),a=c=>{i(c),t(c),n(!1)};return(0,de.jsxs)(Qn,{children:[(0,de.jsx)(eo,{onClick:()=>n(!r),children:o||"Select an option"}),(0,de.jsx)(to,{open:r,children:e.map((c,s)=>(0,de.jsx)(ro,{onClick:()=>a(c),children:c},s))})]})},Or=no;var oo=p.form`
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
align-items: center;
|
|
129
|
-
justify-content: center;
|
|
130
|
-
height: 80vh; /* Take full screen height */
|
|
131
|
-
width: 100%; /* Full width of the screen */
|
|
132
|
-
max-width: 400px; /* Limit form width */
|
|
133
|
-
margin: 0 auto; /* Center horizontally */
|
|
134
|
-
padding: 80px;
|
|
135
|
-
background-color: white;
|
|
136
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for design */
|
|
137
|
-
border-radius: 8px;
|
|
138
|
-
`,Rr=oo;var Ee=require("react/jsx-runtime"),io=p.div`
|
|
139
|
-
margin-bottom: 1rem;
|
|
140
|
-
`,ao=p.input`
|
|
141
|
-
width: 300px; /* Set a fixed width to prevent expansion */
|
|
142
|
-
max-width: 100%; /* Optional: Ensure it doesn't exceed the container width */
|
|
143
|
-
padding: 0.75rem;
|
|
144
|
-
border: 1px solid black;
|
|
145
|
-
border-radius: 4px;
|
|
146
|
-
background-color: ${e=>e.hasError?"#fff5f5":"#fff"};
|
|
147
|
-
font-size: 1rem;
|
|
148
|
-
transition: all 0.2s ease-in-out;
|
|
149
|
-
|
|
150
|
-
&:focus {
|
|
151
|
-
outline: none;
|
|
152
|
-
border-color: ${e=>e.hasError?"red":"#0070f3"};
|
|
153
|
-
}
|
|
154
|
-
`,so=p.span`
|
|
155
|
-
color: red;
|
|
156
|
-
font-size: 0.875rem;
|
|
157
|
-
height: 0.8rem; /* Fixed height for error text to avoid layout shift */
|
|
158
|
-
display: block;
|
|
159
|
-
`,co=({type:e="text",name:t,placeholder:r,onChange:n,hasError:o=!1,errorMessage:i="",value:a})=>(0,Ee.jsxs)(io,{children:[(0,Ee.jsx)(ao,{type:e,name:t,placeholder:r,value:a,onChange:n,hasError:o}),(0,Ee.jsx)(so,{children:i})]}),Ar=co;var fe=require("react/jsx-runtime"),lo=p.div`
|
|
160
|
-
display: flex;
|
|
161
|
-
flex-direction: column;
|
|
162
|
-
gap: 0.75rem;
|
|
163
|
-
padding: 1.5rem;
|
|
164
|
-
background-color: #f4f6f8;
|
|
165
|
-
margin: 0 auto;
|
|
166
|
-
@media (max-width: 600px) {
|
|
167
|
-
padding: 0rem;
|
|
168
|
-
}
|
|
169
|
-
`,po=p.div`
|
|
170
|
-
display: flex;
|
|
171
|
-
align-items: center;
|
|
172
|
-
justify-content: space-between;
|
|
173
|
-
padding: 0.5rem 0;
|
|
174
|
-
border-bottom: 1px solid #e0e0e0;
|
|
175
|
-
transition: background-color 0.2s;
|
|
176
|
-
|
|
177
|
-
&:last-child {
|
|
178
|
-
border-bottom: none;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
&:hover {
|
|
182
|
-
background-color: #55b382;
|
|
183
|
-
}
|
|
184
|
-
`,uo=p.div`
|
|
185
|
-
font-weight: 600;
|
|
186
|
-
font-size: 0.95rem;
|
|
187
|
-
color: #333;
|
|
188
|
-
display: flex;
|
|
189
|
-
align-items: center;
|
|
190
|
-
width: 45%;
|
|
191
|
-
@media (max-width: 600px) {
|
|
192
|
-
font-size: 0.85rem;
|
|
193
|
-
}
|
|
194
|
-
`,fo=p.div`
|
|
195
|
-
font-size: 1.2rem;
|
|
196
|
-
color: #555;
|
|
197
|
-
text-align: left;
|
|
198
|
-
word-wrap: break-word;
|
|
199
|
-
font-weight: ${e=>e.isBold?"bold":"normal"};
|
|
200
|
-
@media (max-width: 600px) {
|
|
201
|
-
font-size: 0.85rem;
|
|
202
|
-
}
|
|
203
|
-
`,ho=({data:e})=>(0,fe.jsx)(lo,{children:Object.entries(e).map(([t,r])=>(0,fe.jsxs)(po,{children:[(0,fe.jsx)(uo,{children:t}),(0,fe.jsx)(fo,{isBold:t==="SegmentName",children:r||"N/A"})]},t))}),Nr=ho;var mo=p.label`
|
|
204
|
-
display: block;
|
|
205
|
-
margin-bottom: 5px;
|
|
206
|
-
font-weight: bold;
|
|
207
|
-
`,Ir=mo;var go=p.main`
|
|
208
|
-
display: flex;
|
|
209
|
-
flex-direction: column;
|
|
210
|
-
align-items: center;
|
|
211
|
-
justify-content: center;
|
|
212
|
-
min-height: 100vh;
|
|
213
|
-
padding: 20px;
|
|
214
|
-
background-color: #f9f9f9;
|
|
215
|
-
`,zr=go;var Ke=et(require("react"));var v=require("react/jsx-runtime"),yo=p.div`margin-top: 10px;`,bo=p.table`width: 100%; border-collapse: collapse;`,Dr=p.th`padding: 12px; background: #135f9b; color: white; text-align: left;`,wo=p.tr`&:nth-child(even) { background-color: #f9f9f9; } &:hover { background-color: #f1f1f1; }`,Mr=p.td`padding: 10px; border-bottom: 1px solid #ccc;`,vo=p.td`text-align: center; padding: 20px; color: #999;`,xo=p.div`margin-top: 15px; display: flex; flex-direction: column; align-items: center;`,So=p.div`display: flex; gap: 6px; align-items: center; flex-wrap: wrap;`,Ce=p.button`
|
|
216
|
-
padding: 6px 12px;
|
|
217
|
-
background: #135f9b;
|
|
218
|
-
color: white;
|
|
219
|
-
border: none;
|
|
220
|
-
border-radius: 4px;
|
|
221
|
-
cursor: pointer;
|
|
222
|
-
|
|
223
|
-
&:disabled {
|
|
224
|
-
background: #ccc;
|
|
225
|
-
cursor: not-allowed;
|
|
226
|
-
}
|
|
227
|
-
`,ko=p.select`
|
|
228
|
-
margin-left: 10px;
|
|
229
|
-
padding: 6px;
|
|
230
|
-
border-radius: 4px;
|
|
231
|
-
border: 1px solid #aaa;
|
|
232
|
-
`,Eo=p.div`margin-top: 8px; font-size: 13px;`,Co=({headers:e,data:t,page:r=0,setPage:n,limit:o=0,setLimit:i,totalCount:a=0,highlightRowColor:c,actions:s})=>{let f=Math.ceil(a/o)||0,h=()=>{let l=[];if(f<=1)return null;l.push((0,v.jsx)(Ce,{onClick:()=>n?.(1),disabled:r===1,children:"1"},1)),r>3&&l.push((0,v.jsx)("span",{children:"..."},"start-ellipsis"));for(let m=Math.max(2,r-1);m<=Math.min(f-1,r+1);m++)l.push((0,v.jsx)(Ce,{onClick:()=>n?.(m),disabled:r===m,children:m},m));return r<f-1-1&&l.push((0,v.jsx)("span",{children:"..."},"end-ellipsis")),f>1&&l.push((0,v.jsx)(Ce,{onClick:()=>n?.(1),disabled:r===1,children:"1"},1)),l};return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(yo,{children:(0,v.jsxs)(bo,{children:[(0,v.jsx)("thead",{children:(0,v.jsxs)("tr",{children:[e.map((l,g)=>(0,v.jsx)(Dr,{children:l.label},g)),s&&(0,v.jsx)(Dr,{children:"Actions"})]})}),(0,v.jsx)("tbody",{children:t.length>0?t.map((l,g)=>(0,v.jsxs)(wo,{className:c,children:[e.map((m,x)=>(0,v.jsx)(Mr,{children:(()=>{let u=l[m.key];if(Ke.default.isValidElement(u))return u;if(typeof u=="function")try{let O=u();if(Ke.default.isValidElement(O))return O}catch(O){console.warn("Error executing function in table cell:",O)}return typeof u=="string"&&u.trim().startsWith("<")&&u.trim().endsWith(">")?(0,v.jsx)("div",{dangerouslySetInnerHTML:{__html:u}}):Array.isArray(u)?u.some(O=>Ke.default.isValidElement(O))?(0,v.jsx)(v.Fragment,{children:u}):u.join(", "):u instanceof Date?u.toLocaleString():typeof u=="boolean"?u?"Yes":"No":u==null?"-":typeof u=="number"?u.toString():typeof u=="object"?JSON.stringify(u):String(u)})()},x)),s&&(0,v.jsx)(Mr,{children:s(l)})]},g)):(0,v.jsx)("tr",{children:(0,v.jsx)(vo,{colSpan:e.length+(s?1:0),children:"No data available"})})})]})}),(f>1||a<=o)&&(0,v.jsxs)(xo,{children:[(0,v.jsxs)(So,{children:[(0,v.jsx)(Ce,{onClick:()=>n?.(r-1),disabled:r===1,children:"Previous"}),h(),(0,v.jsx)(Ce,{onClick:()=>n?.(r+1),disabled:r===f,children:"Next"}),(0,v.jsx)(ko,{value:o,onChange:l=>{n?.(1),i?.(Number(l.target.value))},children:[5,10,15].map(l=>(0,v.jsxs)("option",{value:l,children:[l," per page"]},l))})]}),(0,v.jsxs)(Eo,{children:["Page ",r," of ",f," (Total: ",a," items)"]})]})]})},jr=Co;var he=require("react/jsx-runtime"),_o=p.div`
|
|
233
|
-
display: flex;
|
|
234
|
-
background: #135f9b;
|
|
235
|
-
color: #fff;
|
|
236
|
-
`,Po=p.div`
|
|
237
|
-
padding: 12px 20px;
|
|
238
|
-
font-size: 16px;
|
|
239
|
-
font-weight: 600;
|
|
240
|
-
cursor: pointer;
|
|
241
|
-
border-bottom: ${({$active:e})=>e?"6px solid #55b382":"none"};
|
|
242
|
-
color: ${({$active:e})=>e?"#dcffed":"#fff"};
|
|
243
|
-
transition: color 0.3s, border-bottom 0.3s;
|
|
244
|
-
|
|
245
|
-
&:hover {
|
|
246
|
-
color: #dcffed;
|
|
247
|
-
}
|
|
248
|
-
`,To=p.div`
|
|
249
|
-
padding: 20px;
|
|
250
|
-
background: #f9f9f9;
|
|
251
|
-
border-radius: 10px;
|
|
252
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
253
|
-
max-width: 1300px;
|
|
254
|
-
`,Oo=({tabs:e,activeTabId:t,onTabClick:r,content:n})=>(0,he.jsxs)("div",{children:[(0,he.jsx)(_o,{children:e.map(o=>(0,he.jsx)(Po,{$active:o.id===t,onClick:()=>r(o.id),children:o.label},o.id))}),(0,he.jsx)(To,{children:n})]}),$r=Oo;var Ro=p.div`
|
|
255
|
-
border: 4px solid rgba(0, 123, 255, 0.2);
|
|
256
|
-
border-radius: 10%;
|
|
257
|
-
border-top: 4px solid #007bff;
|
|
258
|
-
width: 24px;
|
|
259
|
-
height: 24px;
|
|
260
|
-
animation: spin 1s linear infinite;
|
|
261
|
-
|
|
262
|
-
@keyframes spin {
|
|
263
|
-
0% {
|
|
264
|
-
transform: rotate(0deg);
|
|
265
|
-
}
|
|
266
|
-
100% {
|
|
267
|
-
transform: rotate(360deg);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
`,Fr=Ro;var Ao=p.section`
|
|
271
|
-
text-align: center;
|
|
272
|
-
`,Lr=Ao;var No=p.div`
|
|
273
|
-
display: flex;
|
|
274
|
-
justify-content: space-around;
|
|
275
|
-
margin-top: 20px;
|
|
276
|
-
`,Vr=No;var Io=p.p`
|
|
277
|
-
font-size: 20px;
|
|
278
|
-
margin: 0;
|
|
279
|
-
`,Br=Io;var Ur=e=>e?"":"This field is required.",Gr=e=>t=>t.length<=e?"":`This field must be at most ${e} characters.`,Yr=e=>t=>t.length>=e?"":`This field must be at least ${e} characters.`,Hr=e=>/^[a-zA-Z0-9_]+$/.test(e)?"":"Username can only contain alphanumeric characters and underscores.",Wr=e=>/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,20}$/.test(e)?"":"Password must be 6-20 characters long, include uppercase, lowercase, and a number.";0&&(module.exports={MahatiButton,MahatiCard,MahatiDropdown,MahatiFormContainer,MahatiInput,MahatiKeyValueDisplay,MahatiLabel,MahatiMain,MahatiParagraph,MahatiRow,MahatiSection,MahatiSpinner,MahatiTabbedInterface,MahatiTable,MahatiTooltip,isValidPassword,isValidUsername,maxLength,minLength,required});
|
|
280
|
-
//# sourceMappingURL=index.js.map
|