@cagatayfdn/flora-components 0.0.127 → 0.0.129
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/Button.css +1 -1
- package/dist/Checkbox.css +1 -1
- package/dist/components/ActionButton/ActionButton.js +12 -12
- package/dist/components/Button/Button.js +40 -40
- package/dist/components/Checkbox/Checkbox.js +23 -23
- package/dist/components/Dropdown/DropdownList.js +10 -10
- package/dist/components/FileUpload/FileUpload.js +3 -3
- package/dist/components/Loading/Loading.js +4 -4
- package/dist/components/Panel/Panel.js +8 -8
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/Table/TableHeader.js +2 -2
- package/dist/prodivers.css +1 -1
- package/package.json +1 -1
package/dist/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}._btn_1nrmt_2{max-height:calc(var(--spacing,.25rem)*10);cursor:pointer;border-style:var(--tw-border-style);--tw-leading:normal;white-space:nowrap;--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);--tw-outline-style:none;border-width:1px;border-color:#0000;border-radius:5px;outline-style:none;line-height:normal;--tw-font-weight:var(--font-weight-semibold,600)!important;font-size:14px!important;font-weight:var(--font-weight-semibold,600)!important;align-items:center!important;padding:10px 23px!important;display:inline-flex!important}._btn__block_1nrmt_2{width:100%;display:block!important}._btn__round_1nrmt_2{border-radius:50%}._btn_1nrmt_2._solid__success_1nrmt_2{background-color:var(--color-white,var(--white));border-color:var(--color-success,var(--success))!important;color:var(--color-success,var(--success))!important}._btn_1nrmt_2._solid__danger_1nrmt_2{background-color:var(--color-white,var(--white));border-color:var(--color-danger,var(--danger))!important;color:var(--color-danger,var(--danger))!important}._btn_1nrmt_2._solid__warning_1nrmt_2{background-color:var(--color-white,var(--white));border-color:var(--color-warning,var(--warning))!important;color:var(--color-warning,var(--warning))!important}._btn_1nrmt_2._solid__default_1nrmt_2{border-color:var(--color-blue-ff,var(--blue-ff));background-color:var(--color-white,var(--white));color:var(--color-blue-ff,var(--blue-ff))}._btn__pill_1nrmt_2{border-radius:11px!important}._btn_1nrmt_2 i{margin-inline:5px;margin-block:calc(var(--spacing,.25rem)*0)}._btn_1nrmt_2 i._prefixIcon_1nrmt_2{margin-right:calc(var(--spacing,.25rem)*2.5);margin-left:calc(var(--spacing,.25rem)*0);color:var(--font-lg);display:inline-block}._btn_1nrmt_2:focus{--tw-shadow:0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}._btn__loading_1nrmt_2{padding-right:35px;position:relative}._btn__loading_1nrmt_2 ._loading_1nrmt_2{top:50%;right:calc(var(--spacing,.25rem)*0);width:15px;height:15px;margin-top:-7.5px;position:absolute}._btn__loading_1nrmt_2 ._loading_1nrmt_2>div:before{background-color:var(--color-white,var(--white))}._btn_1nrmt_2._disabled_1nrmt_2{cursor:not-allowed!important;border-color:var(--color-gray-bc,var(--gray-bc))!important;background-color:var(--color-gray-bc,var(--gray-bc))!important;color:var(--color-white,var(--white))!important}._btn_1nrmt_2._disabled_1nrmt_2:hover{background-color:var(--color-gray-bc,var(--gray-bc))}._btn__default_1nrmt_2{border-color:var(--color-blue-ff,var(--blue-ff));background-color:var(--color-white,var(--white));color:var(--color-blue-ff,var(--blue-ff))}._btn__default_1nrmt_2:hover{background-color:var(--color-blue-ff,var(--blue-ff));color:var(--color-white,var(--white))}._btn__default_1nrmt_2._btn__loading_1nrmt_2 ._loading_1nrmt_2>div:before{background-color:var(--color-blue-ff,var(--blue-ff))}._btn__link_1nrmt_2{background-color:#0000;padding:calc(var(--spacing,.25rem)*0)!important;color:var(--color-blue-ff,var(--blue-ff))!important;border-color:#0000!important}._btn__link_1nrmt_2:hover{background-color:#0000;color:var(--color-blue-ff,var(--blue-ff))!important}._btn__primary_1nrmt_2{background-color:var(--color-blue-ff,var(--blue-ff))!important;color:var(--color-white,var(--white))!important}._btn__primary_1nrmt_2:hover{background-color:#3062d9!important}._btn__primary_1nrmt_2._disabled_1nrmt_2{cursor:not-allowed!important;border-color:var(--color-gray-ec,var(--gray-ec))!important;background-color:var(--color-white,var(--white))!important;color:var(--color-gray-ec,var(--gray-ec))!important}._btn__primary_1nrmt_2._disabled_1nrmt_2:hover{background-color:var(--color-white,var(--white))!important}._btn__success_1nrmt_2{background-color:var(--color-success,var(--success))!important;color:var(--color-white,var(--white))!important}._btn__success_1nrmt_2:hover{background-color:var(--color-success,var(--success))!important}._btn__warning_1nrmt_2{background-color:var(--color-warning,var(--warning))!important;color:var(--color-white,var(--white))!important}._btn__warning_1nrmt_2:hover{background-color:var(--color-warning,var(--warning))!important}._btn__danger_1nrmt_2{background-color:var(--color-danger,var(--danger))!important;color:var(--color-white,var(--white))!important}._btn__danger_1nrmt_2:hover{background-color:var(--color-danger,var(--danger))!important}._btn__dark_1nrmt_2{background-color:var(--color-dark,var(--dark))!important;color:var(--color-white,var(--white))!important}._btn__xsmall_1nrmt_2{border-radius:3px;padding-block:1px!important;padding-inline:9px!important;font-size:13px!important}._btn__small_1nrmt_2{padding-inline:calc(var(--spacing,.25rem)*1.5);border-radius:3px;padding-block:13px;font-size:9px}._btn__focus_1nrmt_2{border-color:var(--color-info,var(--info))}._loading_1nrmt_2{margin-right:.7rem}._no-border_1nrmt_2{border-style:var(--tw-border-style)!important;border-width:0!important}._no-background_1nrmt_2{background-color:#0000!important}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
package/dist/Checkbox.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial;--tw-font-weight:initial;--tw-content:"";--tw-border-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.
|
|
1
|
+
/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial;--tw-font-weight:initial;--tw-content:"";--tw-border-style:solid;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}._checkbox_1msjn_2{--tw-leading:18px;height:20px;line-height:18px;display:inline-block;position:relative}._checkbox_1msjn_2 input[type=checkbox]{left:calc(var(--spacing,.25rem)*0);z-index:2;cursor:pointer;vertical-align:middle;opacity:0;width:100%;height:100%;position:absolute}._checkbox_1msjn_2 label{margin-bottom:calc(var(--spacing,.25rem)*0);cursor:pointer;--tw-leading:22px;--tw-font-weight:var(--font-weight-normal,400);line-height:22px;font-weight:var(--font-weight-normal,400);color:var(--white);padding-left:18px}._checkbox_1msjn_2 label span{margin-left:10px}._checkbox_1msjn_2 input[type=checkbox]+label:before,._checkbox_1msjn_2 input[type=checkbox]+label:after{top:2px;left:calc(var(--spacing,.25rem)*0);cursor:pointer;vertical-align:middle;--tw-content:"";content:var(--tw-content);display:inline-block;position:absolute}._checkbox_1msjn_2 input[type=checkbox]+label:after{width:18px;height:18px;font-size:var(--font-lg);color:var(--white);border-radius:4px}._checkbox_1msjn_2 input[type=checkbox]+label:before{border-style:var(--tw-border-style);--tw-border-style:solid;border-style:solid;border-width:1px;border-color:var(--gray-ec);background-color:var(--gray-f7);border-radius:4px;width:18px;height:18px}._checkbox_1msjn_2 input[type=checkbox]:disabled{cursor:not-allowed}._checkbox_1msjn_2 input[type=checkbox]:disabled+label{opacity:.3}._checkbox_1msjn_2 input[type=checkbox]:checked+label:before{top:2px;left:calc(var(--spacing,.25rem)*0);z-index:1;border-color:var(--checkbox-checked);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:10px;background-color:var(--checkbox-checked);text-align:center;--tw-leading:17px;color:var(--gray-fd);font-size:11px;line-height:17px}._checkbox_1msjn_2 a{cursor:pointer!important;text-decoration-line:underline!important}._checkbox__filter_1msjn_2{border-style:var(--tw-border-style);--tw-border-style:solid;border-style:solid;border-width:2px;border-color:var(--dark-47);background-color:var(--dark);height:40px;padding-top:10px;padding-bottom:10px;padding-right:10px;padding-left:calc(var(--spacing,.25rem)*0);border-radius:5px;align-items:center;display:flex}._checkbox__filter_1msjn_2 label{margin-left:16px}._checkbox__filter_1msjn_2 label span{--tw-font-weight:var(--font-weight-semibold,600);font-weight:var(--font-weight-semibold,600);color:var(--white)}._checkbox__filter_1msjn_2 input{width:18px!important;height:18px!important}._checkbox__filter_1msjn_2 input+label:before{border-style:var(--tw-border-style);--tw-border-style:solid;border-style:solid;border-width:1px;border-color:var(--gray-ec);background-color:var(--gray-f7);border-radius:4px;width:18px;height:18px;margin-top:6px;margin-left:16px}._switch_1msjn_2{margin-bottom:calc(var(--spacing,.25rem)*0);min-width:43px;height:26px;display:inline-block;position:relative}._switch_1msjn_2._text-hide_1msjn_2:before,._switch_1msjn_2._text-hide_1msjn_2:after{display:none!important}._switch_1msjn_2 input{height:calc(var(--spacing,.25rem)*0);width:calc(var(--spacing,.25rem)*0);opacity:0}._slider_1msjn_2{top:calc(var(--spacing,.25rem)*0);right:calc(var(--spacing,.25rem)*0);bottom:calc(var(--spacing,.25rem)*0);left:calc(var(--spacing,.25rem)*0);cursor:pointer;transition-property:.4s;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));background-color:#78788029;position:absolute}._slider_1msjn_2:after{--tw-leading:28px;color:var(--white);--tw-content:"";content:var(--tw-content);padding-left:30px;line-height:28px}._slider_1msjn_2:before{background-color:var(--white);width:22px;height:22px;transition-property:.4s;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-content:"";content:var(--tw-content);position:absolute;bottom:2px;left:2px}input:checked+._slider_1msjn_2{background-color:var(--success)}input:checked+._slider_1msjn_2:after{--tw-content:"";content:var(--tw-content);padding-left:10px}input:checked+._slider_1msjn_2:before{--tw-translate-x:17px;translate:var(--tw-translate-x)var(--tw-translate-y)}._slider_1msjn_2._round_1msjn_2{border-radius:34px}._slider_1msjn_2._round_1msjn_2:before{--tw-shadow:0 3px 1px 0 var(--tw-shadow-color,#0000000f),0 3px 8px 0 var(--tw-shadow-color,#00000026);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-radius:3.40282e38px}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import i from "../Button/Button.js";
|
|
3
3
|
import r from "../Icon/index.js";
|
|
4
4
|
import { AppearanceButton as _ } from "../../enums/appearance.js";
|
|
@@ -15,11 +15,11 @@ import '../../ActionButton.css';const l = "_dropdownMenu_1xfje_2", p = "_icon_1x
|
|
|
15
15
|
title: M,
|
|
16
16
|
active: h
|
|
17
17
|
};
|
|
18
|
-
function
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
18
|
+
function g({ items: s, isDisabled: d }) {
|
|
19
|
+
return /* @__PURE__ */ o.jsx("div", { className: "h-full flex items-center", "data-testid": "actionbutton-container", children: /* @__PURE__ */ o.jsxs("div", { className: e(t.dropdownMenuWrapper, {
|
|
20
|
+
"cursor-not-allowed!": d
|
|
21
21
|
}), children: [
|
|
22
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ o.jsx(
|
|
23
23
|
i,
|
|
24
24
|
{
|
|
25
25
|
isSolid: !0,
|
|
@@ -28,21 +28,21 @@ function B({ items: s, isDisabled: d }) {
|
|
|
28
28
|
round: !0,
|
|
29
29
|
appearance: _.DEFAULT,
|
|
30
30
|
className: t.buttonChild,
|
|
31
|
-
children: /* @__PURE__ */
|
|
31
|
+
children: /* @__PURE__ */ o.jsx(r, { name: u.Plus })
|
|
32
32
|
}
|
|
33
33
|
),
|
|
34
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ o.jsx("div", { className: e(t.dropdownMenu, {
|
|
35
35
|
[t.disabled]: d
|
|
36
|
-
}), children: /* @__PURE__ */
|
|
36
|
+
}), children: /* @__PURE__ */ o.jsx("ul", { "data-testid": "actionbutton-list", children: s.map((n, c) => /* @__PURE__ */ o.jsxs(
|
|
37
37
|
"li",
|
|
38
38
|
{
|
|
39
39
|
"data-testid": "actionbutton-item",
|
|
40
40
|
className: e({
|
|
41
|
-
[t.icon]:
|
|
41
|
+
[t.icon]: n.icon
|
|
42
42
|
}),
|
|
43
43
|
children: [
|
|
44
|
-
|
|
45
|
-
/* @__PURE__ */
|
|
44
|
+
n.icon && /* @__PURE__ */ o.jsx(r, { name: n.icon }),
|
|
45
|
+
/* @__PURE__ */ o.jsx("a", { className: "text-dark", onClick: (a) => n.onClick && n.onClick(a), children: n.text })
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
c
|
|
@@ -50,5 +50,5 @@ function B({ items: s, isDisabled: d }) {
|
|
|
50
50
|
] }) });
|
|
51
51
|
}
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
g as default
|
|
54
54
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
3
|
-
import { AppearanceButton as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import '../../Button.css';const $ = "
|
|
1
|
+
import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import { c as j } from "../../index-BHf7G3IG.js";
|
|
3
|
+
import { AppearanceButton as I } from "../../enums/appearance.js";
|
|
4
|
+
import N from "../Icon/index.js";
|
|
5
|
+
import y from "../Loading/Loading.js";
|
|
6
|
+
import '../../Button.css';const $ = "_btn_1nrmt_2", R = "_btn__block_1nrmt_2", A = "_btn__round_1nrmt_2", B = "_solid__success_1nrmt_2", h = "_solid__danger_1nrmt_2", C = "_solid__warning_1nrmt_2", E = "_solid__default_1nrmt_2", H = "_btn__pill_1nrmt_2", M = "_prefixIcon_1nrmt_2", P = "_btn__loading_1nrmt_2", Y = "_loading_1nrmt_2", q = "_disabled_1nrmt_2", v = "_btn__default_1nrmt_2", F = "_btn__link_1nrmt_2", G = "_btn__primary_1nrmt_2", J = "_btn__success_1nrmt_2", K = "_btn__warning_1nrmt_2", O = "_btn__danger_1nrmt_2", Q = "_btn__dark_1nrmt_2", T = "_btn__xsmall_1nrmt_2", U = "_btn__small_1nrmt_2", V = "_btn__focus_1nrmt_2", _ = {
|
|
7
7
|
btn: $,
|
|
8
8
|
btn__block: R,
|
|
9
9
|
btn__round: A,
|
|
@@ -26,58 +26,58 @@ import '../../Button.css';const $ = "_btn_1ayoj_2", R = "_btn__block_1ayoj_2", A
|
|
|
26
26
|
btn__xsmall: T,
|
|
27
27
|
btn__small: U,
|
|
28
28
|
btn__focus: V,
|
|
29
|
-
"no-border": "_no-
|
|
30
|
-
"no-background": "_no-
|
|
29
|
+
"no-border": "_no-border_1nrmt_2",
|
|
30
|
+
"no-background": "_no-background_1nrmt_2"
|
|
31
31
|
}, L = ({
|
|
32
|
-
children:
|
|
32
|
+
children: d,
|
|
33
33
|
size: s,
|
|
34
34
|
isLoading: n,
|
|
35
|
-
isDisabled:
|
|
36
|
-
isBlock:
|
|
37
|
-
noBorder:
|
|
38
|
-
noBackground:
|
|
39
|
-
round:
|
|
35
|
+
isDisabled: r,
|
|
36
|
+
isBlock: m,
|
|
37
|
+
noBorder: i,
|
|
38
|
+
noBackground: e,
|
|
39
|
+
round: u,
|
|
40
40
|
isSolid: b,
|
|
41
|
-
isPill:
|
|
41
|
+
isPill: g,
|
|
42
42
|
type: l = "button",
|
|
43
|
-
focus:
|
|
44
|
-
className:
|
|
45
|
-
prefixIcon:
|
|
46
|
-
appearance:
|
|
47
|
-
onClick:
|
|
43
|
+
focus: f,
|
|
44
|
+
className: k,
|
|
45
|
+
prefixIcon: a,
|
|
46
|
+
appearance: t = I.PRIMARY,
|
|
47
|
+
onClick: c
|
|
48
48
|
}) => {
|
|
49
|
-
const
|
|
49
|
+
const p = j(
|
|
50
50
|
"btn",
|
|
51
51
|
_.btn,
|
|
52
52
|
{
|
|
53
|
-
[_.btn__block]:
|
|
54
|
-
[_[`btn__${
|
|
55
|
-
[_[`solid__${
|
|
53
|
+
[_.btn__block]: m,
|
|
54
|
+
[_[`btn__${t}`]]: t && !b,
|
|
55
|
+
[_[`solid__${t}`]]: b,
|
|
56
56
|
[_[`btn__${s}`]]: s,
|
|
57
|
-
[_["no-border"]]:
|
|
58
|
-
[_["no-background"]]:
|
|
59
|
-
[_.btn__round]:
|
|
57
|
+
[_["no-border"]]: i,
|
|
58
|
+
[_["no-background"]]: e,
|
|
59
|
+
[_.btn__round]: u,
|
|
60
60
|
[_.btn__loading]: n,
|
|
61
|
-
[_.disabled]:
|
|
62
|
-
[_.btn__pill]:
|
|
63
|
-
[_.btn__focus]:
|
|
61
|
+
[_.disabled]: r,
|
|
62
|
+
[_.btn__pill]: g,
|
|
63
|
+
[_.btn__focus]: f
|
|
64
64
|
},
|
|
65
|
-
|
|
66
|
-
),
|
|
67
|
-
!n &&
|
|
65
|
+
k
|
|
66
|
+
), x = (w) => {
|
|
67
|
+
!n && c && c(w);
|
|
68
68
|
};
|
|
69
|
-
return /* @__PURE__ */
|
|
69
|
+
return /* @__PURE__ */ o.jsxs(
|
|
70
70
|
"button",
|
|
71
71
|
{
|
|
72
72
|
type: l,
|
|
73
|
-
className:
|
|
74
|
-
onClick:
|
|
73
|
+
className: p,
|
|
74
|
+
onClick: x,
|
|
75
75
|
"data-testid": `button-${l}`,
|
|
76
|
-
disabled:
|
|
76
|
+
disabled: r,
|
|
77
77
|
children: [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
n && /* @__PURE__ */
|
|
78
|
+
a && /* @__PURE__ */ o.jsx(N, { name: a, className: _.prefixIcon }),
|
|
79
|
+
d,
|
|
80
|
+
n && /* @__PURE__ */ o.jsx(y, { className: _.loading, layer: !1 })
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
83
|
);
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
-
import
|
|
2
|
+
import b, { useState as k, useEffect as p } from "react";
|
|
3
3
|
import { c as u } from "../../index-BHf7G3IG.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import '../../Checkbox.css';const y = "
|
|
4
|
+
import C from "../Label/Label.js";
|
|
5
|
+
import w from "../ValidationError/ValidationError.js";
|
|
6
|
+
import '../../Checkbox.css';const y = "_checkbox_1msjn_2", E = "_checkbox__filter_1msjn_2", N = "_slider_1msjn_2", R = "_round_1msjn_2", s = {
|
|
7
7
|
checkbox: y,
|
|
8
8
|
checkbox__filter: E,
|
|
9
|
-
switch: "
|
|
10
|
-
"text-hide": "_text-
|
|
9
|
+
switch: "_switch_1msjn_2",
|
|
10
|
+
"text-hide": "_text-hide_1msjn_2",
|
|
11
11
|
slider: N,
|
|
12
12
|
round: R
|
|
13
|
-
}, S =
|
|
13
|
+
}, S = b.forwardRef(
|
|
14
14
|
({
|
|
15
|
-
name:
|
|
15
|
+
name: c,
|
|
16
16
|
label: i,
|
|
17
17
|
labelAppearance: x,
|
|
18
18
|
error: n,
|
|
19
19
|
isDisabled: r = !1,
|
|
20
20
|
isInline: h,
|
|
21
|
-
checked:
|
|
21
|
+
checked: t = !1,
|
|
22
22
|
onChange: _,
|
|
23
|
-
filterInput:
|
|
23
|
+
filterInput: m,
|
|
24
24
|
wrapperClassName: f,
|
|
25
25
|
...o
|
|
26
26
|
}) => {
|
|
27
|
-
const [a, d] =
|
|
28
|
-
|
|
27
|
+
const [a, d] = k(
|
|
28
|
+
t || !!o.value
|
|
29
29
|
);
|
|
30
30
|
p(() => {
|
|
31
|
-
d(
|
|
32
|
-
}, [
|
|
33
|
-
const
|
|
31
|
+
d(t);
|
|
32
|
+
}, [t]);
|
|
33
|
+
const j = (l) => {
|
|
34
34
|
!o.readOnly && !r && (l.persist(), d(!a), _ && _(l));
|
|
35
35
|
};
|
|
36
36
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
37
37
|
/* @__PURE__ */ e.jsxs(
|
|
38
38
|
"div",
|
|
39
39
|
{
|
|
40
|
-
className: u(
|
|
41
|
-
[
|
|
42
|
-
[
|
|
40
|
+
className: u(s.checkbox, f, {
|
|
41
|
+
[s.inline]: h,
|
|
42
|
+
[s.checkbox__filter]: m
|
|
43
43
|
}),
|
|
44
44
|
"data-testid": "checkbox",
|
|
45
45
|
children: [
|
|
@@ -47,19 +47,19 @@ import '../../Checkbox.css';const y = "_checkbox_webnw_2", E = "_checkbox__filte
|
|
|
47
47
|
"input",
|
|
48
48
|
{
|
|
49
49
|
type: "checkbox",
|
|
50
|
-
name:
|
|
51
|
-
id:
|
|
50
|
+
name: c,
|
|
51
|
+
id: c,
|
|
52
52
|
disabled: r,
|
|
53
53
|
checked: a,
|
|
54
|
-
onChange:
|
|
54
|
+
onChange: j,
|
|
55
55
|
...o
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
|
-
/* @__PURE__ */ e.jsx(
|
|
58
|
+
/* @__PURE__ */ e.jsx(C, { className: s.label, name: c, appearance: x, children: i && /* @__PURE__ */ e.jsx("span", { children: i }) })
|
|
59
59
|
]
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
|
-
n && /* @__PURE__ */ e.jsx(
|
|
62
|
+
n && /* @__PURE__ */ e.jsx(w, { ...n })
|
|
63
63
|
] });
|
|
64
64
|
}
|
|
65
65
|
);
|
|
@@ -2,10 +2,10 @@ import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
|
|
|
2
2
|
import { useState as x, useRef as j, useEffect as k } from "react";
|
|
3
3
|
import { c as d } from "../../index-BHf7G3IG.js";
|
|
4
4
|
import N from "../Icon/index.js";
|
|
5
|
-
import
|
|
6
|
-
import '../../DropdownList.css';const
|
|
7
|
-
dropdownMenu:
|
|
8
|
-
dropdownMenu__lg:
|
|
5
|
+
import E from "../PermaLink/PermaLink.js";
|
|
6
|
+
import '../../DropdownList.css';const b = "_dropdownMenu_1n5ha_2", g = "_dropdownMenu__lg_1n5ha_2", C = "_dropdownMenu__md_1n5ha_2", L = "_dropdownMenu__sm_1n5ha_2", R = "_active_1n5ha_2", $ = "_icon_1n5ha_2", y = "_title_1n5ha_2", H = "_disabled_1n5ha_2", e = {
|
|
7
|
+
dropdownMenu: b,
|
|
8
|
+
dropdownMenu__lg: g,
|
|
9
9
|
dropdownMenu__md: C,
|
|
10
10
|
dropdownMenu__sm: L,
|
|
11
11
|
active: R,
|
|
@@ -17,10 +17,10 @@ import '../../DropdownList.css';const E = "_dropdownMenu_1n5ha_2", b = "_dropdow
|
|
|
17
17
|
items: h,
|
|
18
18
|
footerItem: a,
|
|
19
19
|
className: w,
|
|
20
|
-
title:
|
|
20
|
+
title: l,
|
|
21
21
|
titleClass: M,
|
|
22
22
|
event: r = "hover",
|
|
23
|
-
size:
|
|
23
|
+
size: i = "lg",
|
|
24
24
|
isDisabled: c
|
|
25
25
|
}) => {
|
|
26
26
|
const [_, t] = x(!1), u = j(null), p = (n) => {
|
|
@@ -36,7 +36,7 @@ import '../../DropdownList.css';const E = "_dropdownMenu_1n5ha_2", b = "_dropdow
|
|
|
36
36
|
return /* @__PURE__ */ o.jsx(
|
|
37
37
|
"div",
|
|
38
38
|
{
|
|
39
|
-
className: d("h-
|
|
39
|
+
className: d("h-full flex items-center", {
|
|
40
40
|
[e.disabled]: c
|
|
41
41
|
}),
|
|
42
42
|
ref: u,
|
|
@@ -57,10 +57,10 @@ import '../../DropdownList.css';const E = "_dropdownMenu_1n5ha_2", b = "_dropdow
|
|
|
57
57
|
{
|
|
58
58
|
className: d(e.dropdownMenu, {
|
|
59
59
|
[e.active]: _,
|
|
60
|
-
[e[`dropdownMenu__${
|
|
60
|
+
[e[`dropdownMenu__${i}`]]: i
|
|
61
61
|
}),
|
|
62
62
|
children: /* @__PURE__ */ o.jsxs("ul", { children: [
|
|
63
|
-
|
|
63
|
+
l && /* @__PURE__ */ o.jsx("li", { className: d(e.title, M), children: l }),
|
|
64
64
|
h.map((n, s) => /* @__PURE__ */ o.jsxs(
|
|
65
65
|
"li",
|
|
66
66
|
{
|
|
@@ -70,7 +70,7 @@ import '../../DropdownList.css';const E = "_dropdownMenu_1n5ha_2", b = "_dropdow
|
|
|
70
70
|
}),
|
|
71
71
|
children: [
|
|
72
72
|
n.icon && /* @__PURE__ */ o.jsx(N, { name: n.icon }),
|
|
73
|
-
n.to ? /* @__PURE__ */ o.jsx(
|
|
73
|
+
n.to ? /* @__PURE__ */ o.jsx(E, { to: n.to, children: n.text }) : /* @__PURE__ */ o.jsx("a", { onClick: (v) => n.onClick && n.onClick(v), children: n.text })
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
s
|
|
@@ -132,9 +132,9 @@ const ue = Z.forwardRef(
|
|
|
132
132
|
/* @__PURE__ */ e.jsxs(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
135
|
-
className: p("
|
|
136
|
-
"justify-
|
|
137
|
-
"justify-
|
|
135
|
+
className: p("flex", "w-full", {
|
|
136
|
+
"justify-between": g,
|
|
137
|
+
"justify-start": !g
|
|
138
138
|
}),
|
|
139
139
|
children: [
|
|
140
140
|
g && /* @__PURE__ */ e.jsx(M, { appearance: x, name: h, children: g }),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as c } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import { c as e } from "../../index-BHf7G3IG.js";
|
|
3
|
-
import '../../Loading.css';const t = "_layer_uipj5_2", o = "_light_uipj5_2", n = "_skChild_uipj5_2", u = "_dark_uipj5_2",
|
|
3
|
+
import '../../Loading.css';const t = "_layer_uipj5_2", o = "_light_uipj5_2", n = "_skChild_uipj5_2", u = "_dark_uipj5_2", j = "_darkFull_uipj5_2", d = "_skCircle_uipj5_2", a = "_skcircleBounceDelay_uipj5_1", p = "_skCircle2_uipj5_2", h = "_skCircle3_uipj5_2", m = "_skCircle4_uipj5_2", y = "_skCircle5_uipj5_2", x = "_skCircle6_uipj5_2", g = "_skCircle7_uipj5_2", f = "_skCircle8_uipj5_2", N = "_skCircle9_uipj5_2", $ = "_skCircle10_uipj5_2", v = "_skCircle11_uipj5_2", B = "_skCircle12_uipj5_2", s = {
|
|
4
4
|
layer: t,
|
|
5
5
|
light: o,
|
|
6
6
|
skChild: n,
|
|
7
7
|
dark: u,
|
|
8
|
-
darkFull:
|
|
9
|
-
skCircle:
|
|
8
|
+
darkFull: j,
|
|
9
|
+
skCircle: d,
|
|
10
10
|
skcircleBounceDelay: a,
|
|
11
11
|
skCircle2: p,
|
|
12
12
|
skCircle3: h,
|
|
@@ -41,7 +41,7 @@ import '../../Loading.css';const t = "_layer_uipj5_2", o = "_light_uipj5_2", n =
|
|
|
41
41
|
{
|
|
42
42
|
"data-testid": "loading",
|
|
43
43
|
className: e(C, {
|
|
44
|
-
"
|
|
44
|
+
"block!": !i,
|
|
45
45
|
[s.layer]: k,
|
|
46
46
|
[s[`${i}`]]: i
|
|
47
47
|
}),
|
|
@@ -11,9 +11,9 @@ import '../../Panel.css';const x = "_box_1bthr_2", p = "_header_1bthr_2", j = "_
|
|
|
11
11
|
dark: u,
|
|
12
12
|
line: v
|
|
13
13
|
}, A = ({
|
|
14
|
-
title:
|
|
14
|
+
title: a,
|
|
15
15
|
children: i,
|
|
16
|
-
description:
|
|
16
|
+
description: n,
|
|
17
17
|
className: _,
|
|
18
18
|
type: d = "box",
|
|
19
19
|
appearance: t = m.DARK,
|
|
@@ -31,18 +31,18 @@ import '../../Panel.css';const x = "_box_1bthr_2", p = "_header_1bthr_2", j = "_
|
|
|
31
31
|
[s[`${d}`]]: d
|
|
32
32
|
}),
|
|
33
33
|
children: [
|
|
34
|
-
|
|
34
|
+
a && /* @__PURE__ */ e.jsxs(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
37
|
"data-testid": "panel-header",
|
|
38
38
|
className: r(s.header, h, {
|
|
39
|
-
|
|
40
|
-
"justify-
|
|
39
|
+
flex: o,
|
|
40
|
+
"justify-between": o,
|
|
41
41
|
[s.hasBorder]: l
|
|
42
42
|
}),
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ e.jsxs("div", { children: [
|
|
45
|
-
/* @__PURE__ */ e.jsx("h1", { children:
|
|
45
|
+
/* @__PURE__ */ e.jsx("h1", { children: a }),
|
|
46
46
|
c && /* @__PURE__ */ e.jsx("p", { className: r("m-0", s.description), children: c })
|
|
47
47
|
] }),
|
|
48
48
|
o
|
|
@@ -53,10 +53,10 @@ import '../../Panel.css';const x = "_box_1bthr_2", p = "_header_1bthr_2", j = "_
|
|
|
53
53
|
"div",
|
|
54
54
|
{
|
|
55
55
|
className: r(b, s.body, {
|
|
56
|
-
[s.noHeaders]: !
|
|
56
|
+
[s.noHeaders]: !a
|
|
57
57
|
}),
|
|
58
58
|
children: [
|
|
59
|
-
|
|
59
|
+
n && /* @__PURE__ */ e.jsx("p", { "data-testid": "panel-description", className: s.description, children: n }),
|
|
60
60
|
i
|
|
61
61
|
]
|
|
62
62
|
}
|
|
@@ -22,7 +22,7 @@ import '../../Radio.css';const f = "_container_a9a9s_2", N = "_checkmark_a9a9s_2
|
|
|
22
22
|
const d = (o) => {
|
|
23
23
|
e && e({ label: `${n}`, value: o.currentTarget.value }), r && r(o);
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */ a.jsxs("div", { className: _("
|
|
25
|
+
return /* @__PURE__ */ a.jsxs("div", { className: _("flex", s.container), "data-testid": "radio-container", children: [
|
|
26
26
|
/* @__PURE__ */ a.jsxs(
|
|
27
27
|
h,
|
|
28
28
|
{
|
|
@@ -48,8 +48,8 @@ const M = [
|
|
|
48
48
|
{
|
|
49
49
|
"data-testid": "tableheader-container",
|
|
50
50
|
className: f(s.header, h, {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"flex justify-between": r && !t || c,
|
|
52
|
+
"flex justify-end": !r && !t
|
|
53
53
|
}),
|
|
54
54
|
children: [
|
|
55
55
|
r && /* @__PURE__ */ e.jsxs("div", { children: [
|