@fluidattacks/design 3.1.12 → 3.1.14
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/dist/assets/design.css +1 -0
- package/dist/components/@core/index.js +15 -16
- package/dist/components/accordion/accordion-content/index.js +3 -7
- package/dist/components/accordion/index.js +5 -19
- package/dist/components/alert/index.js +4 -111
- package/dist/components/button/index.js +4 -16
- package/dist/components/card/card-header/index.js +4 -12
- package/dist/components/card/card-with-image/index.js +5 -16
- package/dist/components/card/card-with-input/index.js +5 -54
- package/dist/components/card/card-with-selector/index.js +4 -14
- package/dist/components/card/card-with-switch/index.js +4 -10
- package/dist/components/card/index.js +6 -10
- package/dist/components/carousel/index.js +4 -47
- package/dist/components/checkbox/index.js +4 -82
- package/dist/components/cloud-image/index.js +2 -2
- package/dist/components/code-snippet/index.js +6 -25
- package/dist/components/code-snippet/location-code/index.js +7 -123
- package/dist/components/colors/index.js +7 -7
- package/dist/components/confirm-dialog/index.js +4 -20
- package/dist/components/container/index.js +4 -25
- package/dist/components/content-card/category-tag/index.js +4 -11
- package/dist/components/content-card/event-date/index.js +5 -16
- package/dist/components/content-card/index.js +4 -61
- package/dist/components/content-card-carousel/index.js +4 -13
- package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
- package/dist/components/divider/index.js +4 -8
- package/dist/components/empty-state/empty-button/index.js +3 -4
- package/dist/components/empty-state/index.js +3 -46
- package/dist/components/file-preview/index.js +3 -26
- package/dist/components/form/index.js +4 -24
- package/dist/components/grid-container/index.js +4 -26
- package/dist/components/group-selector/index.js +6 -24
- package/dist/components/group-selector/option-container/index.js +3 -7
- package/dist/components/icon/index.js +4 -46
- package/dist/components/icon-button/index.js +4 -25
- package/dist/components/indicator-card/index.js +5 -13
- package/dist/components/info-sidebar/index.js +4 -14
- package/dist/components/inputs/fields/combobox/index.js +7 -24
- package/dist/components/inputs/fields/combobox/option/index.js +2 -3
- package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -14
- package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -13
- package/dist/components/inputs/fields/date/calendar/header/index.js +4 -14
- package/dist/components/inputs/fields/date/calendar/index.js +6 -13
- package/dist/components/inputs/fields/date/index.js +8 -16
- package/dist/components/inputs/fields/date-range/calendar/index.js +7 -14
- package/dist/components/inputs/fields/date-range/index.js +6 -26
- package/dist/components/inputs/fields/date-time/calendar/index.js +7 -33
- package/dist/components/inputs/fields/date-time/index.js +6 -16
- package/dist/components/inputs/fields/editable/index.js +4 -14
- package/dist/components/inputs/fields/input/index.js +5 -11
- package/dist/components/inputs/fields/input-file/index.js +6 -30
- package/dist/components/inputs/fields/input-tags/index.js +4 -17
- package/dist/components/inputs/fields/number/index.js +4 -8
- package/dist/components/inputs/fields/number-range/index.js +4 -9
- package/dist/components/inputs/fields/phone/index.js +7 -417
- package/dist/components/inputs/fields/text-area/index.js +5 -11
- package/dist/components/inputs/index.js +14 -26
- package/dist/components/inputs/label/index.js +5 -10
- package/dist/components/inputs/outline-container/index.js +4 -16
- package/dist/components/inputs/utils/action-button/index.js +4 -8
- package/dist/components/inputs/utils/calendar-button/index.js +5 -11
- package/dist/components/inputs/utils/date-selector/index.js +3 -6
- package/dist/components/inputs/utils/date-time-field/index.js +10 -30
- package/dist/components/inputs/utils/dialog/index.js +5 -9
- package/dist/components/inputs/utils/number-field/index.js +5 -11
- package/dist/components/inputs/utils/popover/index.js +5 -11
- package/dist/components/interactive-card/icon/index.js +2 -4
- package/dist/components/interactive-card/index.js +4 -13
- package/dist/components/language-selector/index.js +4 -11
- package/dist/components/language-selector/item-list/index.js +2 -5
- package/dist/components/link/index.js +3 -50
- package/dist/components/list-item/index.js +6 -14
- package/dist/components/little-flag/index.js +3 -13
- package/dist/components/loading/index.js +4 -65
- package/dist/components/logo/index.js +3 -5
- package/dist/components/logo-carousel/index.js +4 -50
- package/dist/components/lottie/index.js +3 -13
- package/dist/components/menu/index.js +5 -20
- package/dist/components/message-banner/index.js +5 -33
- package/dist/components/modal/index.js +6 -17
- package/dist/components/modal/modal-confirm/index.js +3 -8
- package/dist/components/modal/modal-footer/index.js +5 -14
- package/dist/components/modal/modal-header/index.js +6 -23
- package/dist/components/notification/index.js +5 -66
- package/dist/components/notification-sign/index.js +4 -28
- package/dist/components/number-input/index.js +5 -50
- package/dist/components/oauth-selector/index.js +6 -24
- package/dist/components/oauth-selector/option-container/index.js +4 -13
- package/dist/components/plan-card/index.js +3 -82
- package/dist/components/plan-card/recommended-tag/index.js +3 -8
- package/dist/components/pop-up/description/index.js +5 -11
- package/dist/components/pop-up/index.js +7 -21
- package/dist/components/premium-feature/index.js +4 -43
- package/dist/components/priority-score/index.js +4 -12
- package/dist/components/progress/index.js +5 -32
- package/dist/components/progress-bar/index.js +3 -93
- package/dist/components/radio-button/index.js +4 -86
- package/dist/components/scroll-button/index.js +4 -22
- package/dist/components/search/index.js +7 -61
- package/dist/components/search-bar/index.js +4 -30
- package/dist/components/search-bar/item-searching/index.js +2 -7
- package/dist/components/severity-badge/index.js +4 -12
- package/dist/components/severity-overview/badge/index.js +4 -16
- package/dist/components/severity-overview/index.js +3 -5
- package/dist/components/show-on-hover/index.js +3 -23
- package/dist/components/slide-out-menu/index.js +6 -2006
- package/dist/components/slide-out-menu/menu-item/index.js +4 -13
- package/dist/components/slider/index.js +7 -91
- package/dist/components/slider/thumb/index.js +5 -8
- package/dist/components/step-lapse/index.js +4 -99
- package/dist/components/table-button/index.js +4 -54
- package/dist/components/tabs/fixed-tabs/index.js +3 -7
- package/dist/components/tabs/index.js +6 -12
- package/dist/components/tabs/tab/index.js +3 -6
- package/dist/components/tag/index.js +4 -114
- package/dist/components/timeline/card/index.js +2 -5
- package/dist/components/timeline/index.js +4 -5
- package/dist/components/toggle/index.js +4 -61
- package/dist/components/toggle-buttons/index.js +4 -72
- package/dist/components/tooltip/index.js +3 -6
- package/dist/components/tour/index.js +7 -2514
- package/dist/components/typography/heading/index.js +4 -7
- package/dist/components/typography/index.js +4 -6
- package/dist/components/typography/span/index.js +4 -7
- package/dist/components/typography/text/index.js +4 -7
- package/dist/components/web-form/index.js +4 -69
- package/dist/components-C2JBXbtI.mjs +9653 -0
- package/dist/hooks/index.js +6 -10
- package/dist/index.js +113 -205
- package/dist/vendor-CVMqCpkZ.mjs +14504 -0
- package/package.json +2 -3
- package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
- package/dist/assets/index.css +0 -1
- package/dist/assets/index2.css +0 -1
- package/dist/index-38JqtnAI.mjs +0 -122
- package/dist/index-B5yoGFs6.mjs +0 -54
- package/dist/index-BLbKylyw.mjs +0 -209
- package/dist/index-Bu448Tz2.mjs +0 -106
- package/dist/index-BwFnfaRh.mjs +0 -2310
- package/dist/index-Co_k0WFk.mjs +0 -75
- package/dist/index-Cu7uUMlx.mjs +0 -82
- package/dist/index-D-lcuEHY.mjs +0 -1018
- package/dist/index-DrfjITyT.mjs +0 -61
- package/dist/styles-7_q7nHce.mjs +0 -110
- package/dist/styles-BA0WIQL-.mjs +0 -74
- package/dist/styles-C3cZmKVJ.mjs +0 -131
- package/dist/styles-CI-I6joH.mjs +0 -144
- package/dist/styles-Cx93EcVo.mjs +0 -76
- package/dist/styles-D85YYIjM.mjs +0 -131
- package/dist/styles-EIbGRPlk.mjs +0 -106
- package/dist/styles-Q1VXuWI7.mjs +0 -65
- package/dist/styles-fH2c4cfc.mjs +0 -77
- package/dist/styles-lSVV9kjn.mjs +0 -133
- package/dist/use-carousel-CvRxi2FI.mjs +0 -17
- package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
- package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
- package/dist/use-modal-CkrZ-_-M.mjs +0 -14
- package/dist/use-search-DpLNvt7Q.mjs +0 -12
- package/dist/utils-CQvBF-wY.mjs +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:#997a6614;background:linear-gradient(to right,#997a661a 70%,#997a6600);pointer-events:none;line-height:inherit;white-space:pre}@media print{.line-highlight{-webkit-print-color-adjust:exact;color-adjust:exact}}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:#997a6666;color:#f5f2f0;font:700 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px #fff}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[id].linkable-line-numbers span.line-numbers-rows{pointer-events:all}pre[id].linkable-line-numbers span.line-numbers-rows>span:before{cursor:pointer}pre[id].linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:#80808033}*,: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!important}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.mb-1\.5{margin-bottom:.375rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-\[500px\]{height:500px}.h-\[600px\]{height:600px}.h-\[900px\]{height:900px}.w-\[400px\]{width:400px}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-72{max-width:18rem}.max-w-min{max-width:-moz-min-content;max-width:min-content}.flex-shrink{flex-shrink:1}.flex-grow{flex-grow:1}.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))}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-slate-100{--tw-bg-opacity: 1;background-color:rgb(241 245 249 / var(--tw-bg-opacity, 1))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-8{padding:2rem}.px-12{padding-left:3rem;padding-right:3rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\[90px\]{padding-top:90px;padding-bottom:90px}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.capitalize{text-transform:capitalize}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.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}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@property --btn-padding-x{syntax: "<length>"; initial-value: 16px; inherits: false;}@property --btn-padding-y{syntax: "<length>"; initial-value: 10px; inherits: false;}@property --btn-spacing{syntax: "<length>"; initial-value: 8px; inherits: false;}@property --grid-columns{syntax: "<number>"; initial-value: 12; inherits: false;}@property --grid-width{syntax: "<length>"; initial-value: 1440px; inherits: false;}@property --angle-grad{syntax: "<angle>"; initial-value: 45deg; inherits: false;}@property --opacity-grad{syntax: "<number>"; initial-value: 0; inherits: false;}@property --tag-padding-x{syntax: "<length>"; initial-value: 4px; inherits: false;}@property --tag-padding-y{syntax: "<length>"; initial-value: 0; inherits: false;}@keyframes spinAnimation{to{--border-angle: 360deg}}@keyframes gradientAnimation{0%{--animate-position: 45deg}33%{--animate-position: -50deg}66%{--animate-position: -100deg}to{--animate-position: 45deg}}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as o, B as n, c as i, b as r, k as p, h as d, j as B, i as m, f as g, e as C, s as f, g as x, d as l } from "../../styles-C3cZmKVJ.mjs";
|
|
1
|
+
import { a as e, B as t, c as n, b as o, k as i, h as r, j as d, i as p, f as B, e as g, s as m, g as C, d as f, v as l } from "../../components-C2JBXbtI.mjs";
|
|
3
2
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
e as BaseButtonComponent,
|
|
4
|
+
t as BaseComponent,
|
|
5
|
+
n as BaseSpanComponent,
|
|
6
|
+
o as BaseTextComponent,
|
|
7
|
+
i as getStyledConfig,
|
|
8
|
+
r as hiddenProps,
|
|
9
|
+
d as setBorder,
|
|
10
|
+
p as setDisplay,
|
|
11
|
+
B as setInteraction,
|
|
12
|
+
g as setMargin,
|
|
13
|
+
m as setPadding,
|
|
14
|
+
C as setPosition,
|
|
15
|
+
f as setText,
|
|
16
|
+
l as variantBuilder
|
|
18
17
|
};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import "../../typography/heading/index.js";
|
|
4
|
-
import "../../typography/span/index.js";
|
|
5
|
-
import { Text as r } from "../../typography/text/index.js";
|
|
6
|
-
const p = ({ item: i }) => o(t, { display: "block", id: `panel-${i.title}`, padding: [0.75, 0.75, 0.75, 0.75], children: [i.description ? e(r, { mb: i.extraElement ? 0.5 : void 0, size: "sm", children: i.description }) : void 0, i.extraElement ? e(t, { children: i.extraElement }) : void 0] });
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import { aV as n } from "../../../components-C2JBXbtI.mjs";
|
|
7
3
|
export {
|
|
8
|
-
|
|
4
|
+
n as AccordionContent
|
|
9
5
|
};
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Container as i } from "../container/index.js";
|
|
6
|
-
import { Icon as w } from "../icon/index.js";
|
|
7
|
-
import "../typography/heading/index.js";
|
|
8
|
-
import "../typography/span/index.js";
|
|
9
|
-
import { Text as v } from "../typography/text/index.js";
|
|
10
|
-
const I = x(function({ aligned: m = "end", items: l, bgColor: s }, f) {
|
|
11
|
-
const e = y(), [p, g] = c(!1), [a, h] = c(-1), b = u((o) => () => {
|
|
12
|
-
h(o), g(o !== a || ((t) => !t));
|
|
13
|
-
}, [a]);
|
|
14
|
-
return r(i, { ref: f, children: l.map((o, t) => {
|
|
15
|
-
const n = t === a && p;
|
|
16
|
-
return d(i, { bgColor: s ?? e.palette.white, children: [r(i, { "aria-controls": `panel-${o.title}`, "aria-expanded": p, "aria-label": o.title, as: "button", bgColor: s ?? e.palette.white, bgColorHover: e.palette.gray[100], borderBottom: n || t === l.length - 1 ? "1px solid" : void 0, borderColor: e.palette.gray[200], borderTop: "1px solid", cursor: "pointer", display: "flex", onClick: b(t), padding: [0.75, 0.75, 0.75, 0.75], width: "100%", children: d(i, { as: "summary", display: "flex", flexDirection: m === "end" ? "row" : "row-reverse", gap: 0.75, justify: "space-between", width: "100%", children: [r(v, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", sizeSm: "sm", textAlign: "start", children: o.title }), r(w, { icon: n ? "chevron-up" : "chevron-down", iconColor: e.palette.gray[400], iconSize: "xs", iconType: "fa-light" })] }) }), n && r(C, { item: o })] }, o.title);
|
|
17
|
-
}) });
|
|
18
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { A as t } from "../../components-C2JBXbtI.mjs";
|
|
19
5
|
export {
|
|
20
|
-
|
|
6
|
+
t as Accordion
|
|
21
7
|
};
|
|
@@ -1,113 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { v as x } from "../../utils-CQvBF-wY.mjs";
|
|
5
|
-
import { Container as y } from "../container/index.js";
|
|
6
|
-
import { Icon as v } from "../icon/index.js";
|
|
7
|
-
import { IconButton as T } from "../icon-button/index.js";
|
|
8
|
-
const z = (e) => {
|
|
9
|
-
switch (e) {
|
|
10
|
-
case "warning":
|
|
11
|
-
return "triangle-exclamation";
|
|
12
|
-
case "info":
|
|
13
|
-
return "circle-info";
|
|
14
|
-
case "success":
|
|
15
|
-
return "circle-check";
|
|
16
|
-
default:
|
|
17
|
-
return "circle-exclamation";
|
|
18
|
-
}
|
|
19
|
-
}, { getVariant: C } = x((e) => ({ error: `
|
|
20
|
-
background: ${e.palette.error[50]};
|
|
21
|
-
border: 1px solid ${e.palette.error[500]};
|
|
22
|
-
color: ${e.palette.error[700]};
|
|
23
|
-
|
|
24
|
-
button {
|
|
25
|
-
color: ${e.palette.error[700]};
|
|
26
|
-
|
|
27
|
-
&:hover:not([disabled]) {
|
|
28
|
-
background-color: ${e.palette.error[200]};
|
|
29
|
-
color: ${e.palette.error[700]};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
`, info: `
|
|
33
|
-
background: ${e.palette.info[50]};
|
|
34
|
-
border: 1px solid ${e.palette.info[500]};
|
|
35
|
-
color: ${e.palette.info[700]};
|
|
36
|
-
|
|
37
|
-
button {
|
|
38
|
-
color: ${e.palette.info[700]};
|
|
39
|
-
|
|
40
|
-
&:hover:not([disabled]) {
|
|
41
|
-
background-color: ${e.palette.info[200]};
|
|
42
|
-
color: ${e.palette.info[700]};
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
`, success: `
|
|
46
|
-
background: ${e.palette.success[50]};
|
|
47
|
-
border: 1px solid ${e.palette.success[500]};
|
|
48
|
-
color: ${e.palette.success[700]};
|
|
49
|
-
|
|
50
|
-
button {
|
|
51
|
-
color: ${e.palette.success[700]};
|
|
52
|
-
|
|
53
|
-
&:hover:not([disabled]) {
|
|
54
|
-
background-color: ${e.palette.success[200]};
|
|
55
|
-
color: ${e.palette.success[700]};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
`, warning: `
|
|
59
|
-
background: ${e.palette.warning[50]};
|
|
60
|
-
border: 1px solid ${e.palette.warning[500]};
|
|
61
|
-
color: ${e.palette.warning[700]};
|
|
62
|
-
|
|
63
|
-
button {
|
|
64
|
-
color: ${e.palette.warning[700]};
|
|
65
|
-
|
|
66
|
-
&:hover:not([disabled]) {
|
|
67
|
-
background-color: ${e.palette.warning[200]};
|
|
68
|
-
color: ${e.palette.warning[700]};
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
` })), S = p.div`
|
|
72
|
-
${({ theme: e, $variant: t }) => `
|
|
73
|
-
background: transparent;
|
|
74
|
-
align-items: center;
|
|
75
|
-
border-radius: ${e.spacing[0.25]};
|
|
76
|
-
display: inline-flex;
|
|
77
|
-
font-family: ${e.typography.type.primary};
|
|
78
|
-
font-size: ${e.typography.text.sm};
|
|
79
|
-
font-weight: ${e.typography.weight.bold};
|
|
80
|
-
line-height: ${e.spacing[1.25]};
|
|
81
|
-
min-width: 250px;
|
|
82
|
-
width: 100%;
|
|
83
|
-
padding: ${e.spacing[0.75]};
|
|
84
|
-
position: relative;
|
|
85
|
-
gap: ${e.spacing[0.75]};
|
|
86
|
-
|
|
87
|
-
button {
|
|
88
|
-
background-color: transparent;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
${C(e, t ?? "error")}
|
|
92
|
-
`}
|
|
93
|
-
`, j = p.div`
|
|
94
|
-
padding-right: 4px;
|
|
95
|
-
width: 100%;
|
|
96
|
-
`, V = m(function({ autoHide: e = !1, children: t, closable: d = !1, onTimeOut: n, show: r = !0, time: c = 8, variant: l = "error", id: u, ...$ }, g) {
|
|
97
|
-
const [f, a] = k(r), i = w(() => {
|
|
98
|
-
a(!1);
|
|
99
|
-
}, []);
|
|
100
|
-
return s(() => {
|
|
101
|
-
const b = setTimeout(() => {
|
|
102
|
-
n == null || n(!0), e && i();
|
|
103
|
-
}, 1e3 * c);
|
|
104
|
-
return () => {
|
|
105
|
-
clearTimeout(b);
|
|
106
|
-
};
|
|
107
|
-
}, [e, i, c, n]), s(() => {
|
|
108
|
-
a(r);
|
|
109
|
-
}, [r, a]), o(y, { display: f ? "block" : "none", ref: g, role: "alert", ...$, children: h(S, { $variant: l, id: u, children: [o(v, { clickable: !1, icon: z(l), iconSize: "xs", iconType: "fa-light" }), o(j, { children: t }), d ? o(T, { height: "fit-content", icon: "close", iconSize: "xs", iconType: "fa-light", onClick: i, px: 0.125, py: 0.125, variant: "ghost" }) : void 0] }) });
|
|
110
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { l as p } from "../../components-C2JBXbtI.mjs";
|
|
111
4
|
export {
|
|
112
|
-
|
|
5
|
+
p as Alert
|
|
113
6
|
};
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Icon as p } from "../icon/index.js";
|
|
5
|
-
import { T as A } from "../../index-D-lcuEHY.mjs";
|
|
6
|
-
import { isObject as B } from "lodash";
|
|
7
|
-
const q = C(function({ children: m, disabled: r = !1, external: n = !1, href: o, id: a, icon: t, name: f, onClick: u, showArrow: b = !1, type: h = "button", tooltip: l, tooltipPlace: v = "bottom", underline: w = !1, value: k, variant: i = "primary", ...x }, y) {
|
|
8
|
-
const s = l !== void 0, d = `${a}-tooltip`, S = $(() => {
|
|
9
|
-
o && ((T, g = !0) => {
|
|
10
|
-
const c = window.open(T, g ? void 0 : "_self", "noopener,noreferrer,");
|
|
11
|
-
B(c) && (c.opener = null);
|
|
12
|
-
})(o, n);
|
|
13
|
-
}, [n, o]);
|
|
14
|
-
return e(A, { disabled: !s, id: d, place: v, tip: l, children: z(j, { $variant: i, "aria-disabled": r, className: w ? "underline" : void 0, disabled: r, id: a, name: f, onClick: i === "link" ? S : u, ref: y, type: h, value: k, ...s ? { "data-tooltip-id": d } : {}, ...x, children: [t !== void 0 && e(p, { icon: t, iconSize: "xs", iconType: "fa-light" }), m, (b || i === "link") && e(p, { icon: "arrow-right", iconSize: "xs", iconType: "fa-light" })] }) });
|
|
15
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { m as p } from "../../components-C2JBXbtI.mjs";
|
|
16
4
|
export {
|
|
17
|
-
|
|
5
|
+
p as Button
|
|
18
6
|
};
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { T as x } from "../../../index-D-lcuEHY.mjs";
|
|
5
|
-
import "../../typography/heading/index.js";
|
|
6
|
-
import "../../typography/span/index.js";
|
|
7
|
-
import { Text as o } from "../../typography/text/index.js";
|
|
8
|
-
const B = ({ authorEmail: a, date: n, description: i, descriptionColor: p, id: c, title: l, titleColor: g, textAlign: r, textSpacing: f = 0, tooltip: s }) => {
|
|
9
|
-
const e = h();
|
|
10
|
-
return d(m, { width: "100%", children: [typeof l == "string" ? t(o, { color: g ?? e.palette.gray[800], fontWeight: "bold", mb: f, size: "sm", textAlign: r, wordBreak: "break-word", children: l }) : l, d(m, { alignItems: "start", display: "flex", flexDirection: "column", gap: 0.25, children: [i && t(o, { color: p ?? e.palette.gray[800], fontWeight: i === void 0 ? "bold" : "regular", size: "sm", textAlign: r, wordBreak: "break-word", children: i }), n && t(o, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", textAlign: r, wordBreak: "break-word", children: `Date: ${n.split(" ")[0]}` }), a && t(o, { color: e.palette.gray[800], fontWeight: "bold", size: "sm", textAlign: r, wordBreak: "break-word", children: `$Author: ${a}` }), s && t(x, { icon: "circle-info", id: c, tip: s })] })] });
|
|
11
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { C as m } from "../../../components-C2JBXbtI.mjs";
|
|
12
4
|
export {
|
|
13
|
-
|
|
5
|
+
m as CardHeader
|
|
14
6
|
};
|
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Container as e } from "../../container/index.js";
|
|
6
|
-
import { FilePreview as z } from "../../file-preview/index.js";
|
|
7
|
-
import { IconButton as E } from "../../icon-button/index.js";
|
|
8
|
-
const L = ({ alt: r, authorEmail: l, date: d, description: c, src: p, children: o, isEditing: m, onClick: h, title: u, hideDescription: x = !1, headerType: f = "image", showMaximize: g = !0 }) => {
|
|
9
|
-
const t = k(), [C, a] = w(!1), y = s(() => {
|
|
10
|
-
a(!0);
|
|
11
|
-
}, []), b = s(() => {
|
|
12
|
-
a(!1);
|
|
13
|
-
}, []);
|
|
14
|
-
return n(e, { bgColor: "transparent", border: "1px solid transparent", borderColorHover: "black", borderRadius: t.spacing[0.25], display: "flex", flexDirection: "column", gap: 1, onHover: y, onLeave: b, padding: [0.5, 0.5, 0.5, 0.5], width: "100%", children: [i(e, { cursor: m ? "unset" : "pointer", display: "inline-flex", justify: "center", onClick: h, position: "relative", width: "100%", children: o === void 0 ? n(v.Fragment, { children: [i(z, { alt: r, fileType: f, height: "147px", opacity: C ? 0.3 : 0, src: p, width: "100%" }), g ? i(e, { bottom: "10px", position: "absolute", right: "10px", children: i(E, { color: "white", icon: "arrows-maximize", iconSize: "xxs", iconType: "fa-light", variant: "secondary" }) }) : void 0] }) : o }), x ? null : i(j, { authorEmail: l, date: d, description: c, descriptionColor: t.palette.gray[600], id: `${r}-card-header`, title: u })] });
|
|
15
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "styled-components";
|
|
4
|
+
import { o as p } from "../../../components-C2JBXbtI.mjs";
|
|
16
5
|
export {
|
|
17
|
-
|
|
6
|
+
p as CardWithImage
|
|
18
7
|
};
|
|
@@ -1,57 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { CardHeader as y } from "../card-header/index.js";
|
|
5
|
-
import "../../inputs/fields/combobox/index.js";
|
|
6
|
-
import { InputDate as H } from "../../inputs/fields/date/index.js";
|
|
7
|
-
import "../../inputs/fields/date-range/index.js";
|
|
8
|
-
import "../../inputs/fields/date-time/index.js";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { n as a } from "../../../components-C2JBXbtI.mjs";
|
|
9
4
|
import "lodash";
|
|
10
|
-
import "
|
|
11
|
-
import "../../../index-D-lcuEHY.mjs";
|
|
12
|
-
import "../../container/index.js";
|
|
13
|
-
import "../../link/index.js";
|
|
14
|
-
import "../../typography/heading/index.js";
|
|
15
|
-
import "../../typography/span/index.js";
|
|
16
|
-
import "../../typography/text/index.js";
|
|
17
|
-
import { Input as I } from "../../inputs/fields/input/index.js";
|
|
18
|
-
import "../../inputs/fields/input-file/index.js";
|
|
19
|
-
import "../../inputs/fields/input-tags/index.js";
|
|
20
|
-
import { InputNumber as W } from "../../inputs/fields/number/index.js";
|
|
21
|
-
import "../../inputs/fields/number-range/index.js";
|
|
22
|
-
import "../../inputs/fields/phone/index.js";
|
|
23
|
-
import "../../inputs/fields/text-area/index.js";
|
|
24
|
-
import "../../../styles-lSVV9kjn.mjs";
|
|
25
|
-
import "../../tag/index.js";
|
|
26
|
-
import "../../icon-button/index.js";
|
|
27
|
-
const j = f.div`
|
|
28
|
-
${({ theme: t, $align: i = "center", $minWidth: n = "auto", $minHeight: o = "auto" }) => `
|
|
29
|
-
display: flex;
|
|
30
|
-
background-color: ${t.palette.white};
|
|
31
|
-
border-radius: ${t.spacing[0.25]};
|
|
32
|
-
border: 1px solid ${t.palette.gray[200]};
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
gap: ${t.spacing[0.5]};
|
|
36
|
-
min-width: ${n};
|
|
37
|
-
min-height: ${o};
|
|
38
|
-
padding: ${t.spacing[1]};
|
|
39
|
-
|
|
40
|
-
input {
|
|
41
|
-
color: ${t.palette.gray[800]};
|
|
42
|
-
line-height: ${t.spacing[1.5]};
|
|
43
|
-
text-align: ${i};
|
|
44
|
-
}
|
|
45
|
-
`}
|
|
46
|
-
`, Y = ({ description: t, disabled: i, id: n, align: o, inputType: p = "text", inputNumberProps: a, minHeight: d, minWidth: l, name: e, placeholder: m, tooltip: s, title: c }) => {
|
|
47
|
-
const u = x(() => {
|
|
48
|
-
if (p === "text") return r(I, { disabled: i, name: e, placeholder: m });
|
|
49
|
-
if (p === "date") return r(H, { disabled: i, name: e });
|
|
50
|
-
const { decimalPlaces: g, max: $, min: h } = a ?? {};
|
|
51
|
-
return r(W, { decimalPlaces: g, disabled: i, max: $, min: h, name: e, placeholder: m });
|
|
52
|
-
}, [i, a, p, e, m]);
|
|
53
|
-
return b(j, { $align: o, $minHeight: d, $minWidth: l, children: [r(y, { description: t, id: n, title: c, tooltip: s }), u] });
|
|
54
|
-
};
|
|
5
|
+
import "styled-components";
|
|
55
6
|
export {
|
|
56
|
-
|
|
7
|
+
a as CardWithInput
|
|
57
8
|
};
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Container as t } from "../../container/index.js";
|
|
5
|
-
import { Icon as f } from "../../icon/index.js";
|
|
6
|
-
import { RadioButton as h } from "../../radio-button/index.js";
|
|
7
|
-
import { Heading as g } from "../../typography/heading/index.js";
|
|
8
|
-
import "../../typography/span/index.js";
|
|
9
|
-
import "../../typography/text/index.js";
|
|
10
|
-
const j = ({ alt: d, imageId: o, icon: r, selectorProps: a, onClick: l, title: s, width: p = "fit-content" }) => {
|
|
11
|
-
const e = m();
|
|
12
|
-
return n(t, { alignItems: "center", border: `1px solid ${e.palette.gray[200]}`, borderColorHover: e.palette.gray[600], borderRadius: e.spacing[0.25], display: "inline-flex", padding: [1, 1, 1, 1], shadowHover: "md", width: p, children: [i(t, { alignSelf: "start", display: "flex", width: "fit-content", children: i(h, { name: a.name, onClick: l, value: a.value }) }), n(t, { alignItems: "center", display: "flex", gap: 0.5, justify: "space-between", ml: 1, mr: 1, width: "100%", children: [o === void 0 ? void 0 : i(c, { alt: d ?? "card image", height: "32px", publicId: o, width: "32px" }), r === void 0 ? void 0 : i(f, { icon: r, iconSize: "sm", iconType: "fa-light" }), i(g, { fontWeight: "bold", lineSpacing: 1.75, size: "xs", children: s })] })] });
|
|
13
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { p as e } from "../../../components-C2JBXbtI.mjs";
|
|
14
4
|
export {
|
|
15
|
-
|
|
5
|
+
e as CardWithSelector
|
|
16
6
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Container as r } from "../../container/index.js";
|
|
5
|
-
import { Toggle as p } from "../../toggle/index.js";
|
|
6
|
-
const y = ({ id: o, title: a, toggles: n, minWidth: s = "auto", height: d = "auto" }) => {
|
|
7
|
-
const i = m();
|
|
8
|
-
return l(r, { alignItems: "center", bgColor: i.palette.white, border: `1px solid ${i.palette.gray[200]}`, borderRadius: i.spacing[0.25], display: "flex", flexDirection: "column", gap: 0.5, height: d, justify: "center", minHeight: "100px", minWidth: s, padding: [1.25, 1.25, 1.25, 1.25], children: [t(g, { id: o, title: a }), t(r, { display: "flex", flexDirection: "column", gap: 0.5, minHeight: "40px", width: "100%", children: n.map((e) => t(p, { ...e }, `$card-toggle-${e.name}`)) })] });
|
|
9
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "styled-components";
|
|
3
|
+
import { q as m } from "../../../components-C2JBXbtI.mjs";
|
|
10
4
|
export {
|
|
11
|
-
|
|
5
|
+
m as CardWithSwitch
|
|
12
6
|
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CardWithImage as a } from "./card-with-image/index.js";
|
|
3
|
-
import { CardWithInput as m } from "./card-with-input/index.js";
|
|
4
|
-
import { CardWithSelector as f } from "./card-with-selector/index.js";
|
|
5
|
-
import { CardWithSwitch as i } from "./card-with-switch/index.js";
|
|
1
|
+
import { C as t, o as d, n as e, p as C, q as h } from "../../components-C2JBXbtI.mjs";
|
|
6
2
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
t as CardHeader,
|
|
4
|
+
d as CardWithImage,
|
|
5
|
+
e as CardWithInput,
|
|
6
|
+
C as CardWithSelector,
|
|
7
|
+
h as CardWithSwitch
|
|
12
8
|
};
|
|
@@ -1,50 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { u } from "../../use-carousel-CvRxi2FI.mjs";
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { r as i } from "../../components-C2JBXbtI.mjs";
|
|
5
4
|
import "lodash";
|
|
6
|
-
const h = r.div`
|
|
7
|
-
position: relative;
|
|
8
|
-
margin: auto;
|
|
9
|
-
overflow: hidden;
|
|
10
|
-
`, $ = r.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
transition: transform 0.5s ease-in-out;
|
|
13
|
-
transform: translateX(
|
|
14
|
-
${({ $currentIndex: e }) => 100 * -e}%
|
|
15
|
-
);
|
|
16
|
-
`, g = r.div`
|
|
17
|
-
align-items: center;
|
|
18
|
-
display: flex;
|
|
19
|
-
justify-content: center;
|
|
20
|
-
min-width: 100%;
|
|
21
|
-
`, f = r.button`
|
|
22
|
-
${({ theme: e, $isActive: s }) => `
|
|
23
|
-
background-color: ${s ? e.palette.primary[400] : e.palette.white};
|
|
24
|
-
border: none;
|
|
25
|
-
border-radius: 50%;
|
|
26
|
-
cursor: pointer;
|
|
27
|
-
height: ${e.spacing[0.75]};
|
|
28
|
-
width: ${e.spacing[0.75]};
|
|
29
|
-
`}
|
|
30
|
-
`, v = r.div`
|
|
31
|
-
align-items: center;
|
|
32
|
-
display: flex;
|
|
33
|
-
gap: ${({ theme: e }) => e.spacing[0.5]};
|
|
34
|
-
justify-content: center;
|
|
35
|
-
margin-top: ${({ theme: e }) => e.spacing[2]};
|
|
36
|
-
`, C = ({ slides: e, interval: s = 300 }) => {
|
|
37
|
-
const { cycle: o, setCycle: l, setProgress: c } = u(s, e.length), d = m((n) => () => {
|
|
38
|
-
l(n), c(0);
|
|
39
|
-
}, [l, c]);
|
|
40
|
-
return p(h, { "aria-roledescription": "carousel", children: [a($, { $currentIndex: o, children: e.map((n, t) => {
|
|
41
|
-
const i = `slide-${t}`;
|
|
42
|
-
return a(g, { "aria-label": i, "aria-roledescription": "slide", children: n.content }, i);
|
|
43
|
-
}) }), a(v, { children: e.map((n, t) => {
|
|
44
|
-
const i = `nav-button-${t}`;
|
|
45
|
-
return a(f, { $isActive: t === o, "aria-label": `Go to slide ${t + 1}`, "data-testid": t === o ? "active" : "inactive", onClick: d(t) }, i);
|
|
46
|
-
}) })] });
|
|
47
|
-
};
|
|
48
5
|
export {
|
|
49
|
-
|
|
6
|
+
i as Carousel
|
|
50
7
|
};
|
|
@@ -1,84 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { Icon as b } from "../icon/index.js";
|
|
5
|
-
const y = u.label`
|
|
6
|
-
${({ theme: e }) => `
|
|
7
|
-
align-items: start;
|
|
8
|
-
color: ${e.palette.gray[600]};
|
|
9
|
-
display: flex;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
font-family: ${e.typography.type.primary};
|
|
12
|
-
font-size: ${e.typography.text.sm};
|
|
13
|
-
font-weight: ${e.typography.weight.regular};
|
|
14
|
-
line-height: ${e.spacing[1]};
|
|
15
|
-
letter-spacing: 0;
|
|
16
|
-
position: relative;
|
|
17
|
-
text-align: left;
|
|
18
|
-
|
|
19
|
-
&[aria-disabled="true"] {
|
|
20
|
-
color: ${e.palette.gray[300]};
|
|
21
|
-
cursor: not-allowed;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
input {
|
|
25
|
-
position: absolute;
|
|
26
|
-
opacity: 0;
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
height: 0;
|
|
29
|
-
width: 0;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
svg {
|
|
33
|
-
background-color: ${e.palette.white};
|
|
34
|
-
border-radius: ${e.spacing[0.25]};
|
|
35
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
36
|
-
top: 0;
|
|
37
|
-
left: 0;
|
|
38
|
-
height: ${e.spacing[0.5]};
|
|
39
|
-
margin-right: ${e.spacing[0.5]};
|
|
40
|
-
width: ${e.spacing[0.5]};
|
|
41
|
-
padding: ${e.spacing[0.25]};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
svg > path {
|
|
45
|
-
fill: ${e.palette.white};
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
input:checked ~ span > svg {
|
|
49
|
-
background-color: ${e.palette.primary[500]};
|
|
50
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
input:disabled ~ span > svg {
|
|
54
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
55
|
-
cursor: not-allowed;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
input:not(:disabled):hover ~ span > svg {
|
|
59
|
-
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
input:checked:disabled ~ span > svg {
|
|
63
|
-
background-color: ${e.palette.gray[300]};
|
|
64
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
input:not(:disabled):hover:checked ~ span > svg {
|
|
68
|
-
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
input:checked ~ span > svg > path {
|
|
72
|
-
fill: ${e.palette.white};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
input:checked:disabled ~ span > svg > path {
|
|
76
|
-
fill: ${e.palette.white};
|
|
77
|
-
}
|
|
78
|
-
`}
|
|
79
|
-
`, x = h(function({ defaultChecked: e = !1, disabled: n = !1, label: o, name: a, onChange: r, onClick: l, onFocus: p, onKeyDown: s, value: t, ...d }, c) {
|
|
80
|
-
return g(y, { "aria-disabled": n, htmlFor: a, children: [i("input", { "aria-checked": e, "aria-disabled": n, "aria-label": a, defaultChecked: e, disabled: n, id: a, name: a, onChange: r, onClick: l, onFocus: p, onKeyDown: s, ref: c, type: "checkbox", value: t, ...d }), i(b, { disabled: n, icon: "check", iconSize: "sm" }), o ?? t] });
|
|
81
|
-
});
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { t as p } from "../../components-C2JBXbtI.mjs";
|
|
82
4
|
export {
|
|
83
|
-
|
|
5
|
+
p as Checkbox
|
|
84
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "../../vendor-CVMqCpkZ.mjs";
|
|
3
3
|
import "react";
|
|
4
|
-
import "../../
|
|
4
|
+
import { M as a } from "../../components-C2JBXbtI.mjs";
|
|
5
5
|
import "lodash";
|
|
6
6
|
export {
|
|
7
7
|
a as CloudImage
|
|
@@ -1,27 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { Button as w } from "../button/index.js";
|
|
7
|
-
import { Container as S } from "../container/index.js";
|
|
8
|
-
import { Icon as b } from "../icon/index.js";
|
|
9
|
-
import { IconButton as j } from "../icon-button/index.js";
|
|
10
|
-
const L = ({ noCodeMessage: l = "Code snippet not available", snippet: o }) => {
|
|
11
|
-
const e = x(), [t, c] = f(!1), [g, m] = f(!0), u = p(() => {
|
|
12
|
-
c((i) => !i);
|
|
13
|
-
}, [c]), h = p(() => {
|
|
14
|
-
if (s.isNil(o) || s.isEmpty(o) || !s.isString(o)) return m(!1), l;
|
|
15
|
-
const i = o.split(`
|
|
16
|
-
`);
|
|
17
|
-
return i.length > 8 && !t ? `${[...i].splice(0, 7).join(`
|
|
18
|
-
`)}
|
|
19
|
-
${i[8]}...` : (i.length < 8 && m(!1), o);
|
|
20
|
-
}, [t, o, l]), r = C(h, [h]), d = p(async () => {
|
|
21
|
-
await navigator.clipboard.writeText(r);
|
|
22
|
-
}, [r]);
|
|
23
|
-
return a(S, { bgColor: e.palette.gray[100], borderRadius: "4px", display: "inline-flex", minWidth: "565px", position: "relative", children: [n(y, { "data-private": !0, children: n("pre", { children: n("code", { className: "language-none", children: r }) }) }), a(v, { children: [n(j, { height: e.spacing[2.5], icon: "copy", iconColor: e.palette.gray[700], iconSize: "xs", iconType: "fa-light", onClick: d, variant: "ghost", width: e.spacing[2.5] }), !!g && a(w, { onClick: u, variant: "ghost", children: [t ? "Show Less" : "Show more", n(b, { icon: t ? "chevron-up" : "chevron-down", iconColor: e.palette.gray[700], iconSize: "xxs", iconType: "fa-light", ml: 0.25, onClick: d })] })] })] });
|
|
24
|
-
};
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "lodash";
|
|
3
|
+
import "react";
|
|
4
|
+
import "styled-components";
|
|
5
|
+
import { u as e } from "../../components-C2JBXbtI.mjs";
|
|
25
6
|
export {
|
|
26
|
-
|
|
7
|
+
e as CodeSnippet
|
|
27
8
|
};
|