@cagatayfdn/flora-components 0.0.105 → 0.0.107

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.
@@ -1 +1 @@
1
- ._container_1sqyh_1{border-top:1px solid #495679}._container_1sqyh_1:last-child{border-bottom:1px solid #495679}._header_1sqyh_8{padding:15px 0;font-size:16px;font-weight:600;color:#fff;display:flex;cursor:pointer;align-items:center;width:100%}._header_1sqyh_8:hover{color:#fff}._header_1sqyh_8 ._arrow_1sqyh_21{font-size:20px;color:#4482ff;margin-right:17px}
1
+ ._container_sjptf_1{border-top:1px solid #495679}._container_sjptf_1:last-child{border-bottom:1px solid #495679}._header_sjptf_8{padding:15px 0;font-size:16px;font-weight:600;color:#fff;display:flex;cursor:pointer;align-items:center;width:100%}._header_sjptf_8:hover{color:#fff}._header_sjptf_8 ._arrow_sjptf_21{font-size:20px;color:#4482ff;margin-right:17px;rotate:0deg}._header_sjptf_8 ._up_sjptf_27{transform:rotate(180deg)}
package/dist/Checkbox.css CHANGED
@@ -1 +1 @@
1
- @font-face{font-family:icons;src:url(./icons.ttf?d7c5f4afeb19a281435835a1c99d5e42) format("truetype"),url(./icons.woff?d7c5f4afeb19a281435835a1c99d5e42) format("woff"),url(./icons.woff2?d7c5f4afeb19a281435835a1c99d5e42) format("woff2")}i[class^=icon-]:before,i[class*=" icon-"]:before{font-family:icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-applications_jqcu1_16:before{content:""}._icon-attach_jqcu1_20:before{content:""}._icon-attachment_jqcu1_24:before{content:""}._icon-billing_jqcu1_28:before{content:""}._icon-box_jqcu1_32:before{content:""}._icon-calendar_jqcu1_36:before{content:""}._icon-cart_jqcu1_40:before{content:""}._icon-certificate_jqcu1_44:before{content:""}._icon-check_jqcu1_48:before{content:""}._icon-chevron-left_jqcu1_52:before{content:""}._icon-chevron-right_jqcu1_56:before{content:""}._icon-circle-minus_jqcu1_60:before{content:""}._icon-circle-plus_jqcu1_64:before{content:""}._icon-clock_jqcu1_68:before{content:""}._icon-close_jqcu1_72:before{content:""}._icon-copy_jqcu1_76:before{content:""}._icon-credit-card_jqcu1_80:before{content:""}._icon-document_jqcu1_84:before{content:""}._icon-domain-registration_jqcu1_88:before{content:""}._icon-domains_jqcu1_92:before{content:""}._icon-down-arrow_jqcu1_96:before{content:""}._icon-down-square_jqcu1_100:before{content:""}._icon-down_jqcu1_96:before{content:""}._icon-download_jqcu1_108:before{content:""}._icon-edit-outline_jqcu1_112:before{content:""}._icon-edit_jqcu1_112:before{content:""}._icon-email_jqcu1_120:before{content:""}._icon-environment_jqcu1_124:before{content:""}._icon-error-fill_jqcu1_128:before{content:""}._icon-error_jqcu1_128:before{content:""}._icon-fileTextOutlined_jqcu1_136:before{content:""}._icon-info_jqcu1_140:before{content:""}._icon-install_jqcu1_144:before{content:""}._icon-link_jqcu1_148:before{content:""}._icon-log_jqcu1_152:before{content:""}._icon-menu-close_jqcu1_156:before{content:""}._icon-menu-open_jqcu1_160:before{content:""}._icon-monitoring_jqcu1_164:before{content:""}._icon-network_jqcu1_168:before{content:""}._icon-no-results_jqcu1_172:before{content:""}._icon-not-edit_jqcu1_176:before{content:""}._icon-out_jqcu1_180:before{content:""}._icon-path_jqcu1_184:before{content:""}._icon-plus_jqcu1_188:before{content:""}._icon-preview_jqcu1_192:before{content:""}._icon-profile_jqcu1_196:before{content:""}._icon-project-list_jqcu1_200:before{content:""}._icon-projects_jqcu1_204:before{content:""}._icon-reload_jqcu1_208:before{content:""}._icon-retry_jqcu1_212:before{content:""}._icon-search_jqcu1_216:before{content:""}._icon-settings_jqcu1_220:before{content:""}._icon-support_jqcu1_224:before{content:""}._icon-trash_jqcu1_228:before{content:""}._icon-users_jqcu1_232:before{content:""}._icon-warning_jqcu1_236:before{content:""}._checkbox_jqcu1_240{line-height:18px;position:relative;height:20px;display:inline-block}._checkbox_jqcu1_240 input[type=checkbox]{vertical-align:middle;left:0;position:absolute;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}._checkbox_jqcu1_240 label{padding-left:18px;line-height:22px;font-weight:400;cursor:pointer;color:#fff;margin-bottom:0}._checkbox_jqcu1_240 label span{margin-left:10px}._checkbox_jqcu1_240 input[type=checkbox]+label:before,._checkbox_jqcu1_240 input[type=checkbox]+label:after{content:"";font-family:icons;display:inline-block;vertical-align:middle;position:absolute;top:2px;left:0;cursor:pointer}._checkbox_jqcu1_240 input[type=checkbox]+label:after{color:#fff;font-size:18px;width:18px;height:18px;border-radius:4px}._checkbox_jqcu1_240 input[type=checkbox]+label:before{height:18px;width:18px;background-color:#e9f0f7;border:solid 1px #c8daec;border-radius:4px}._checkbox_jqcu1_240 input[type=checkbox]:disabled{cursor:not-allowed}._checkbox_jqcu1_240 input[type=checkbox]:disabled+label{opacity:.3}._checkbox_jqcu1_240 input[type=checkbox]:checked+label:before{content:"";text-align:center;top:2px;left:0;z-index:1;background-color:#6c7ebe;border-color:#6c7ebe;color:#fdfdfd;font-size:11px;line-height:17px}._checkbox_jqcu1_240 a{text-decoration:underline!important;cursor:pointer!important}._switch_jqcu1_315{position:relative;display:inline-block;min-width:43px;height:26px;margin-bottom:0}._switch_jqcu1_315._text-hide_jqcu1_322:before,._switch_jqcu1_315._text-hide_jqcu1_322:after{display:none!important}._switch_jqcu1_315 input{opacity:0;width:0;height:0}._slider_jqcu1_332{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#78788029;-webkit-transition:.4s;transition:.4s}._slider_jqcu1_332:after{content:"";color:#fff;line-height:28px;padding-left:30px}._slider_jqcu1_332:before{position:absolute;content:"";height:22px;width:22px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+._slider_jqcu1_332{background-color:#71d200}input:checked+._slider_jqcu1_332:after{content:"";padding-left:10px}input:checked+._slider_jqcu1_332:before{-webkit-transform:translateX(17px);-moz-transform:translateX(17px);-ms-transform:translateX(17px);-o-transform:translateX(17px);transform-origin:center center}._slider_jqcu1_332._round_jqcu1_379{border-radius:34px}._slider_jqcu1_332._round_jqcu1_379:before{border-radius:50%;box-shadow:0 3px 1px #0000000f,0 3px 8px #00000026}
1
+ @font-face{font-family:icons;src:url(./icons.ttf?d7c5f4afeb19a281435835a1c99d5e42) format("truetype"),url(./icons.woff?d7c5f4afeb19a281435835a1c99d5e42) format("woff"),url(./icons.woff2?d7c5f4afeb19a281435835a1c99d5e42) format("woff2")}i[class^=icon-]:before,i[class*=" icon-"]:before{font-family:icons!important;font-style:normal;font-weight:400!important;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}._icon-applications_1jok7_16:before{content:""}._icon-attach_1jok7_20:before{content:""}._icon-attachment_1jok7_24:before{content:""}._icon-billing_1jok7_28:before{content:""}._icon-box_1jok7_32:before{content:""}._icon-calendar_1jok7_36:before{content:""}._icon-cart_1jok7_40:before{content:""}._icon-certificate_1jok7_44:before{content:""}._icon-check_1jok7_48:before{content:""}._icon-chevron-left_1jok7_52:before{content:""}._icon-chevron-right_1jok7_56:before{content:""}._icon-circle-minus_1jok7_60:before{content:""}._icon-circle-plus_1jok7_64:before{content:""}._icon-clock_1jok7_68:before{content:""}._icon-close_1jok7_72:before{content:""}._icon-copy_1jok7_76:before{content:""}._icon-credit-card_1jok7_80:before{content:""}._icon-document_1jok7_84:before{content:""}._icon-domain-registration_1jok7_88:before{content:""}._icon-domains_1jok7_92:before{content:""}._icon-down-arrow_1jok7_96:before{content:""}._icon-down-square_1jok7_100:before{content:""}._icon-down_1jok7_96:before{content:""}._icon-download_1jok7_108:before{content:""}._icon-edit-outline_1jok7_112:before{content:""}._icon-edit_1jok7_112:before{content:""}._icon-email_1jok7_120:before{content:""}._icon-environment_1jok7_124:before{content:""}._icon-error-fill_1jok7_128:before{content:""}._icon-error_1jok7_128:before{content:""}._icon-fileTextOutlined_1jok7_136:before{content:""}._icon-info_1jok7_140:before{content:""}._icon-install_1jok7_144:before{content:""}._icon-link_1jok7_148:before{content:""}._icon-log_1jok7_152:before{content:""}._icon-menu-close_1jok7_156:before{content:""}._icon-menu-open_1jok7_160:before{content:""}._icon-monitoring_1jok7_164:before{content:""}._icon-network_1jok7_168:before{content:""}._icon-no-results_1jok7_172:before{content:""}._icon-not-edit_1jok7_176:before{content:""}._icon-out_1jok7_180:before{content:""}._icon-path_1jok7_184:before{content:""}._icon-plus_1jok7_188:before{content:""}._icon-preview_1jok7_192:before{content:""}._icon-profile_1jok7_196:before{content:""}._icon-project-list_1jok7_200:before{content:""}._icon-projects_1jok7_204:before{content:""}._icon-reload_1jok7_208:before{content:""}._icon-retry_1jok7_212:before{content:""}._icon-search_1jok7_216:before{content:""}._icon-settings_1jok7_220:before{content:""}._icon-support_1jok7_224:before{content:""}._icon-trash_1jok7_228:before{content:""}._icon-users_1jok7_232:before{content:""}._icon-warning_1jok7_236:before{content:""}._checkbox_1jok7_240{line-height:18px;position:relative;height:20px;display:inline-block}._checkbox_1jok7_240 input[type=checkbox]{vertical-align:middle;left:0;position:absolute;z-index:2;width:100%;height:100%;cursor:pointer;opacity:0}._checkbox_1jok7_240 label{padding-left:18px;line-height:22px;font-weight:400;cursor:pointer;color:#fff;margin-bottom:0}._checkbox_1jok7_240 label span{margin-left:10px}._checkbox_1jok7_240 input[type=checkbox]+label:before,._checkbox_1jok7_240 input[type=checkbox]+label:after{content:"";font-family:icons;display:inline-block;vertical-align:middle;position:absolute;top:2px;left:0;cursor:pointer}._checkbox_1jok7_240 input[type=checkbox]+label:after{color:#fff;font-size:18px;width:18px;height:18px;border-radius:4px}._checkbox_1jok7_240 input[type=checkbox]+label:before{height:18px;width:18px;background-color:#e9f0f7;border:solid 1px #c8daec;border-radius:4px}._checkbox_1jok7_240 input[type=checkbox]:disabled{cursor:not-allowed}._checkbox_1jok7_240 input[type=checkbox]:disabled+label{opacity:.3}._checkbox_1jok7_240 input[type=checkbox]:checked+label:before{content:"";text-align:center;top:2px;left:0;z-index:1;background-color:#6c7ebe;border-color:#6c7ebe;color:#fdfdfd;font-size:11px;line-height:17px}._checkbox_1jok7_240 a{text-decoration:underline!important;cursor:pointer!important}._checkbox__filter_1jok7_314{background-color:#2b344c;color:#fff;border:2px solid #262e47;border-radius:5px;padding:10px 0;display:flex;align-items:center}._checkbox__filter_1jok7_314 label{margin-left:16px}._checkbox__filter_1jok7_314 input{width:18px!important;height:18px!important}._checkbox__filter_1jok7_314 input+label:before{margin-top:8px;margin-left:16px;height:18px;width:18px;background-color:#e9f0f7;border:solid 1px #c8daec;border-radius:4px}._switch_1jok7_340{position:relative;display:inline-block;min-width:43px;height:26px;margin-bottom:0}._switch_1jok7_340._text-hide_1jok7_347:before,._switch_1jok7_340._text-hide_1jok7_347:after{display:none!important}._switch_1jok7_340 input{opacity:0;width:0;height:0}._slider_1jok7_357{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#78788029;-webkit-transition:.4s;transition:.4s}._slider_1jok7_357:after{content:"";color:#fff;line-height:28px;padding-left:30px}._slider_1jok7_357:before{position:absolute;content:"";height:22px;width:22px;left:2px;bottom:2px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input:checked+._slider_1jok7_357{background-color:#71d200}input:checked+._slider_1jok7_357:after{content:"";padding-left:10px}input:checked+._slider_1jok7_357:before{-webkit-transform:translateX(17px);-moz-transform:translateX(17px);-ms-transform:translateX(17px);-o-transform:translateX(17px);transform-origin:center center}._slider_1jok7_357._round_1jok7_404{border-radius:34px}._slider_1jok7_357._round_1jok7_404:before{border-radius:50%;box-shadow:0 3px 1px #0000000f,0 3px 8px #00000026}
@@ -1,25 +1,26 @@
1
1
  import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
2
- import { useState as h } from "react";
3
- import { c as i } from "../../index-BHf7G3IG.js";
4
- import { Icons as n } from "../../assets/icons/icons.js";
5
- import p from "../Icon/index.js";
6
- import '../../Accordion.css';const x = "_container_1sqyh_1", _ = "_header_1sqyh_8", j = "_arrow_1sqyh_21", o = {
7
- container: x,
8
- header: _,
9
- arrow: j
10
- }, y = ({
11
- children: a,
12
- title: e,
13
- isVisible: d,
14
- className: m,
15
- onClick: c,
16
- customItemRenderer: t
2
+ import { useState as p } from "react";
3
+ import { c } from "../../index-BHf7G3IG.js";
4
+ import { Icons as j } from "../../assets/icons/icons.js";
5
+ import _ from "../Icon/index.js";
6
+ import '../../Accordion.css';const l = "_container_sjptf_1", f = "_header_sjptf_8", x = "_arrow_sjptf_21", h = "_up_sjptf_27", o = {
7
+ container: l,
8
+ header: f,
9
+ arrow: x,
10
+ up: h
11
+ }, I = ({
12
+ children: t,
13
+ title: a,
14
+ isVisible: i,
15
+ className: d,
16
+ onClick: e,
17
+ customItemRenderer: n
17
18
  }) => {
18
- const [r, l] = h(d);
19
+ const [r, m] = p(i);
19
20
  return /* @__PURE__ */ s.jsxs(
20
21
  "div",
21
22
  {
22
- className: i(o.container, m, {
23
+ className: c(o.container, d, {
23
24
  [o.active]: r
24
25
  }),
25
26
  "data-testid": "accordion-item",
@@ -29,29 +30,31 @@ import '../../Accordion.css';const x = "_container_1sqyh_1", _ = "_header_1sqyh_
29
30
  {
30
31
  className: o.header,
31
32
  onClick: () => {
32
- c && c(!r), l(!r);
33
+ e && e(!r), m(!r);
33
34
  },
34
- children: t ? t(r) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
35
+ children: n ? n(r) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
35
36
  /* @__PURE__ */ s.jsx(
36
- p,
37
+ _,
37
38
  {
38
- name: r ? n.CircleMinus : n.CirclePlus,
39
- className: o.arrow
39
+ name: j.DownArrow,
40
+ className: c(o.arrow, {
41
+ [o.up]: r
42
+ })
40
43
  }
41
44
  ),
42
- e
45
+ a
43
46
  ] })
44
47
  }
45
48
  ),
46
- r && /* @__PURE__ */ s.jsx("div", { className: o.content, children: a })
49
+ r && /* @__PURE__ */ s.jsx("div", { className: o.content, children: t })
47
50
  ]
48
51
  }
49
52
  );
50
- }, q = ({
51
- children: a,
52
- className: e
53
- }) => /* @__PURE__ */ s.jsx("div", { "data-testid": "accordion", className: i(o.accordionWrap, e), children: a });
53
+ }, O = ({
54
+ children: t,
55
+ className: a
56
+ }) => /* @__PURE__ */ s.jsx("div", { "data-testid": "accordion", className: c(o.accordionWrap, a), children: t });
54
57
  export {
55
- q as Accordion,
56
- y as AccordionItem
58
+ O as Accordion,
59
+ I as AccordionItem
57
60
  };
@@ -1,120 +1,124 @@
1
- import { j as c } from "../../jsx-runtime-BcAkpsdy.js";
2
- import h, { useState as m, useEffect as f } from "react";
3
- import { c as x } from "../../index-BHf7G3IG.js";
4
- import w from "../Label/Label.js";
5
- import k from "../ValidationError/ValidationError.js";
6
- import '../../Checkbox.css';const g = "_checkbox_jqcu1_240", b = "_slider_jqcu1_332", v = "_round_jqcu1_379", n = {
7
- "icon-applications": "_icon-applications_jqcu1_16",
8
- "icon-attach": "_icon-attach_jqcu1_20",
9
- "icon-attachment": "_icon-attachment_jqcu1_24",
10
- "icon-billing": "_icon-billing_jqcu1_28",
11
- "icon-box": "_icon-box_jqcu1_32",
12
- "icon-calendar": "_icon-calendar_jqcu1_36",
13
- "icon-cart": "_icon-cart_jqcu1_40",
14
- "icon-certificate": "_icon-certificate_jqcu1_44",
15
- "icon-check": "_icon-check_jqcu1_48",
16
- "icon-chevron-left": "_icon-chevron-left_jqcu1_52",
17
- "icon-chevron-right": "_icon-chevron-right_jqcu1_56",
18
- "icon-circle-minus": "_icon-circle-minus_jqcu1_60",
19
- "icon-circle-plus": "_icon-circle-plus_jqcu1_64",
20
- "icon-clock": "_icon-clock_jqcu1_68",
21
- "icon-close": "_icon-close_jqcu1_72",
22
- "icon-copy": "_icon-copy_jqcu1_76",
23
- "icon-credit-card": "_icon-credit-card_jqcu1_80",
24
- "icon-document": "_icon-document_jqcu1_84",
25
- "icon-domain-registration": "_icon-domain-registration_jqcu1_88",
26
- "icon-domains": "_icon-domains_jqcu1_92",
27
- "icon-down-arrow": "_icon-down-arrow_jqcu1_96",
28
- "icon-down-square": "_icon-down-square_jqcu1_100",
29
- "icon-down": "_icon-down_jqcu1_96",
30
- "icon-download": "_icon-download_jqcu1_108",
31
- "icon-edit-outline": "_icon-edit-outline_jqcu1_112",
32
- "icon-edit": "_icon-edit_jqcu1_112",
33
- "icon-email": "_icon-email_jqcu1_120",
34
- "icon-environment": "_icon-environment_jqcu1_124",
35
- "icon-error-fill": "_icon-error-fill_jqcu1_128",
36
- "icon-error": "_icon-error_jqcu1_128",
37
- "icon-fileTextOutlined": "_icon-fileTextOutlined_jqcu1_136",
38
- "icon-info": "_icon-info_jqcu1_140",
39
- "icon-install": "_icon-install_jqcu1_144",
40
- "icon-link": "_icon-link_jqcu1_148",
41
- "icon-log": "_icon-log_jqcu1_152",
42
- "icon-menu-close": "_icon-menu-close_jqcu1_156",
43
- "icon-menu-open": "_icon-menu-open_jqcu1_160",
44
- "icon-monitoring": "_icon-monitoring_jqcu1_164",
45
- "icon-network": "_icon-network_jqcu1_168",
46
- "icon-no-results": "_icon-no-results_jqcu1_172",
47
- "icon-not-edit": "_icon-not-edit_jqcu1_176",
48
- "icon-out": "_icon-out_jqcu1_180",
49
- "icon-path": "_icon-path_jqcu1_184",
50
- "icon-plus": "_icon-plus_jqcu1_188",
51
- "icon-preview": "_icon-preview_jqcu1_192",
52
- "icon-profile": "_icon-profile_jqcu1_196",
53
- "icon-project-list": "_icon-project-list_jqcu1_200",
54
- "icon-projects": "_icon-projects_jqcu1_204",
55
- "icon-reload": "_icon-reload_jqcu1_208",
56
- "icon-retry": "_icon-retry_jqcu1_212",
57
- "icon-search": "_icon-search_jqcu1_216",
58
- "icon-settings": "_icon-settings_jqcu1_220",
59
- "icon-support": "_icon-support_jqcu1_224",
60
- "icon-trash": "_icon-trash_jqcu1_228",
61
- "icon-users": "_icon-users_jqcu1_232",
62
- "icon-warning": "_icon-warning_jqcu1_236",
63
- checkbox: g,
64
- switch: "_switch_jqcu1_315",
65
- "text-hide": "_text-hide_jqcu1_322",
66
- slider: b,
67
- round: v
68
- }, R = h.forwardRef(
1
+ import { j as o } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import m, { useState as f, useEffect as x } from "react";
3
+ import { c as w } from "../../index-BHf7G3IG.js";
4
+ import b from "../Label/Label.js";
5
+ import g from "../ValidationError/ValidationError.js";
6
+ import '../../Checkbox.css';const v = "_checkbox_1jok7_240", y = "_checkbox__filter_1jok7_314", C = "_slider_1jok7_357", E = "_round_1jok7_404", i = {
7
+ "icon-applications": "_icon-applications_1jok7_16",
8
+ "icon-attach": "_icon-attach_1jok7_20",
9
+ "icon-attachment": "_icon-attachment_1jok7_24",
10
+ "icon-billing": "_icon-billing_1jok7_28",
11
+ "icon-box": "_icon-box_1jok7_32",
12
+ "icon-calendar": "_icon-calendar_1jok7_36",
13
+ "icon-cart": "_icon-cart_1jok7_40",
14
+ "icon-certificate": "_icon-certificate_1jok7_44",
15
+ "icon-check": "_icon-check_1jok7_48",
16
+ "icon-chevron-left": "_icon-chevron-left_1jok7_52",
17
+ "icon-chevron-right": "_icon-chevron-right_1jok7_56",
18
+ "icon-circle-minus": "_icon-circle-minus_1jok7_60",
19
+ "icon-circle-plus": "_icon-circle-plus_1jok7_64",
20
+ "icon-clock": "_icon-clock_1jok7_68",
21
+ "icon-close": "_icon-close_1jok7_72",
22
+ "icon-copy": "_icon-copy_1jok7_76",
23
+ "icon-credit-card": "_icon-credit-card_1jok7_80",
24
+ "icon-document": "_icon-document_1jok7_84",
25
+ "icon-domain-registration": "_icon-domain-registration_1jok7_88",
26
+ "icon-domains": "_icon-domains_1jok7_92",
27
+ "icon-down-arrow": "_icon-down-arrow_1jok7_96",
28
+ "icon-down-square": "_icon-down-square_1jok7_100",
29
+ "icon-down": "_icon-down_1jok7_96",
30
+ "icon-download": "_icon-download_1jok7_108",
31
+ "icon-edit-outline": "_icon-edit-outline_1jok7_112",
32
+ "icon-edit": "_icon-edit_1jok7_112",
33
+ "icon-email": "_icon-email_1jok7_120",
34
+ "icon-environment": "_icon-environment_1jok7_124",
35
+ "icon-error-fill": "_icon-error-fill_1jok7_128",
36
+ "icon-error": "_icon-error_1jok7_128",
37
+ "icon-fileTextOutlined": "_icon-fileTextOutlined_1jok7_136",
38
+ "icon-info": "_icon-info_1jok7_140",
39
+ "icon-install": "_icon-install_1jok7_144",
40
+ "icon-link": "_icon-link_1jok7_148",
41
+ "icon-log": "_icon-log_1jok7_152",
42
+ "icon-menu-close": "_icon-menu-close_1jok7_156",
43
+ "icon-menu-open": "_icon-menu-open_1jok7_160",
44
+ "icon-monitoring": "_icon-monitoring_1jok7_164",
45
+ "icon-network": "_icon-network_1jok7_168",
46
+ "icon-no-results": "_icon-no-results_1jok7_172",
47
+ "icon-not-edit": "_icon-not-edit_1jok7_176",
48
+ "icon-out": "_icon-out_1jok7_180",
49
+ "icon-path": "_icon-path_1jok7_184",
50
+ "icon-plus": "_icon-plus_1jok7_188",
51
+ "icon-preview": "_icon-preview_1jok7_192",
52
+ "icon-profile": "_icon-profile_1jok7_196",
53
+ "icon-project-list": "_icon-project-list_1jok7_200",
54
+ "icon-projects": "_icon-projects_1jok7_204",
55
+ "icon-reload": "_icon-reload_1jok7_208",
56
+ "icon-retry": "_icon-retry_1jok7_212",
57
+ "icon-search": "_icon-search_1jok7_216",
58
+ "icon-settings": "_icon-settings_1jok7_220",
59
+ "icon-support": "_icon-support_1jok7_224",
60
+ "icon-trash": "_icon-trash_1jok7_228",
61
+ "icon-users": "_icon-users_1jok7_232",
62
+ "icon-warning": "_icon-warning_1jok7_236",
63
+ checkbox: v,
64
+ checkbox__filter: y,
65
+ switch: "_switch_1jok7_340",
66
+ "text-hide": "_text-hide_1jok7_347",
67
+ slider: C,
68
+ round: E
69
+ }, F = m.forwardRef(
69
70
  ({
70
- name: _,
71
+ name: c,
71
72
  label: e,
72
73
  labelAppearance: j,
73
74
  error: t,
74
75
  isDisabled: r = !1,
75
- isInline: q,
76
- checked: o = !1,
77
- onChange: u,
78
- wrapperClassName: d,
79
- ...i
76
+ isInline: d,
77
+ checked: n = !1,
78
+ onChange: k,
79
+ filterInput: h,
80
+ wrapperClassName: p,
81
+ ..._
80
82
  }) => {
81
- const [s, a] = m(
82
- o || !!i.value
83
+ const [s, l] = f(
84
+ n || !!_.value
83
85
  );
84
- f(() => {
85
- a(o);
86
- }, [o]);
87
- const p = (l) => {
88
- !i.readOnly && !r && (l.persist(), a(!s), u && u(l));
86
+ x(() => {
87
+ l(n);
88
+ }, [n]);
89
+ const u = (a) => {
90
+ !_.readOnly && !r && (a.persist(), l(!s), k && k(a));
89
91
  };
90
- return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
91
- /* @__PURE__ */ c.jsxs(
92
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
93
+ /* @__PURE__ */ o.jsxs(
92
94
  "div",
93
95
  {
94
- className: x(n.checkbox, d, {
95
- [n.inline]: q
96
+ className: w(i.checkbox, p, {
97
+ [i.inline]: d,
98
+ [i.checkbox__filter]: h
96
99
  }),
97
100
  "data-testid": "checkbox",
98
101
  children: [
99
- /* @__PURE__ */ c.jsx(
102
+ /* @__PURE__ */ o.jsx(
100
103
  "input",
101
104
  {
102
105
  type: "checkbox",
103
- name: _,
106
+ name: c,
107
+ id: c,
104
108
  disabled: r,
105
109
  checked: s,
106
- onChange: p,
107
- ...i
110
+ onChange: u,
111
+ ..._
108
112
  }
109
113
  ),
110
- /* @__PURE__ */ c.jsx(w, { className: n.label, name: _, appearance: j, children: e && /* @__PURE__ */ c.jsx("span", { children: e }) })
114
+ /* @__PURE__ */ o.jsx(b, { className: i.label, name: c, appearance: j, children: e && /* @__PURE__ */ o.jsx("span", { children: e }) })
111
115
  ]
112
116
  }
113
117
  ),
114
- t && /* @__PURE__ */ c.jsx(k, { ...t })
118
+ t && /* @__PURE__ */ o.jsx(g, { ...t })
115
119
  ] });
116
120
  }
117
121
  );
118
122
  export {
119
- R as default
123
+ F as default
120
124
  };
package/dist/index.d.mts CHANGED
@@ -248,6 +248,7 @@ export declare const Checkbox: React_2.ForwardRefExoticComponent<{
248
248
  wrapperClassName?: string | undefined;
249
249
  checked?: boolean | undefined;
250
250
  isInline?: boolean | undefined;
251
+ filterInput?: boolean | undefined;
251
252
  } & FormElementProps & Pick<EventProps<HTMLInputElement>, "onClick" | "onChange" | "onFocus"> & React_2.RefAttributes<HTMLInputElement>>;
252
253
 
253
254
  export declare type CheckboxProps = {
@@ -258,6 +259,7 @@ export declare type CheckboxProps = {
258
259
  wrapperClassName?: string;
259
260
  checked?: boolean;
260
261
  isInline?: boolean;
262
+ filterInput?: boolean;
261
263
  } & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus' | 'onClick'>;
262
264
 
263
265
  export declare const CLIENT_DATE_AND_TIME_FORMAT = "DD MMMM YYYY HH:mm";
package/dist/index.d.ts CHANGED
@@ -248,6 +248,7 @@ export declare const Checkbox: React_2.ForwardRefExoticComponent<{
248
248
  wrapperClassName?: string | undefined;
249
249
  checked?: boolean | undefined;
250
250
  isInline?: boolean | undefined;
251
+ filterInput?: boolean | undefined;
251
252
  } & FormElementProps & Pick<EventProps<HTMLInputElement>, "onClick" | "onChange" | "onFocus"> & React_2.RefAttributes<HTMLInputElement>>;
252
253
 
253
254
  export declare type CheckboxProps = {
@@ -258,6 +259,7 @@ export declare type CheckboxProps = {
258
259
  wrapperClassName?: string;
259
260
  checked?: boolean;
260
261
  isInline?: boolean;
262
+ filterInput?: boolean;
261
263
  } & FormElementProps & Pick<EventProps<HTMLInputElement>, 'onChange' | 'onFocus' | 'onClick'>;
262
264
 
263
265
  export declare const CLIENT_DATE_AND_TIME_FORMAT = "DD MMMM YYYY HH:mm";
@@ -1,214 +1,214 @@
1
1
  import { c as K, g as X } from "../_commonjsHelpers-CT_km90n.js";
2
- var st = { exports: {} }, tt = { exports: {} };
3
- (function(_, U) {
4
- (function(g, m) {
5
- _.exports = m();
6
- })(K, function() {
7
- var g = 1e3, m = 6e4, L = 36e5, p = "millisecond", d = "second", $ = "minute", r = "hour", D = "day", E = "week", Y = "month", S = "quarter", A = "year", w = "date", s = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") }, O = function(o, n, t) {
8
- var i = String(o);
9
- return !i || i.length >= n ? o : "" + Array(n + 1 - i.length).join(t) + o;
10
- }, G = { s: O, z: function(o) {
11
- var n = -o.utcOffset(), t = Math.abs(n), i = Math.floor(t / 60), e = t % 60;
12
- return (n <= 0 ? "+" : "-") + O(i, 2, "0") + ":" + O(e, 2, "0");
13
- }, m: function o(n, t) {
14
- if (n.date() < t.date())
15
- return -o(t, n);
16
- var i = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(i, Y), u = t - e < 0, a = n.clone().add(i + (u ? -1 : 1), Y);
17
- return +(-(i + (t - e) / (u ? e - a : a - e)) || 0);
18
- }, a: function(o) {
19
- return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
20
- }, p: function(o) {
21
- return { M: Y, y: A, w: E, d: D, D: w, h: r, m: $, s: d, ms: p, Q: S }[o] || String(o || "").toLowerCase().replace(/s$/, "");
22
- }, u: function(o) {
23
- return o === void 0;
24
- } }, C = "en", H = {};
25
- H[C] = k;
26
- var b = function(o) {
27
- return o instanceof V;
28
- }, W = function o(n, t, i) {
29
- var e;
30
- if (!n)
31
- return C;
32
- if (typeof n == "string") {
33
- var u = n.toLowerCase();
34
- H[u] && (e = u), t && (H[u] = t, e = u);
35
- var a = n.split("-");
36
- if (!e && a.length > 1)
37
- return o(a[0]);
38
- } else {
39
- var f = n.name;
40
- H[f] = n, e = f;
41
- }
42
- return !i && e && (C = e), e || !i && C;
43
- }, h = function(o, n) {
44
- if (b(o))
45
- return o.clone();
46
- var t = typeof n == "object" ? n : {};
47
- return t.date = o, t.args = arguments, new V(t);
48
- }, c = G;
49
- c.l = W, c.i = b, c.w = function(o, n) {
50
- return h(o, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
51
- };
52
- var V = function() {
53
- function o(t) {
54
- this.$L = W(t.locale, null, !0), this.parse(t);
55
- }
56
- var n = o.prototype;
57
- return n.parse = function(t) {
58
- this.$d = function(i) {
59
- var e = i.date, u = i.utc;
60
- if (e === null)
61
- return /* @__PURE__ */ new Date(NaN);
62
- if (c.u(e))
63
- return /* @__PURE__ */ new Date();
64
- if (e instanceof Date)
65
- return new Date(e);
66
- if (typeof e == "string" && !/Z$/i.test(e)) {
67
- var a = e.match(v);
68
- if (a) {
69
- var f = a[2] - 1 || 0, M = (a[7] || "0").substring(0, 3);
70
- return u ? new Date(Date.UTC(a[1], f, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, M)) : new Date(a[1], f, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, M);
2
+ var st = { exports: {} }, Q = { exports: {} }, tt;
3
+ function nt() {
4
+ return tt || (tt = 1, function(_, U) {
5
+ (function(g, m) {
6
+ _.exports = m();
7
+ })(K, function() {
8
+ var g = 1e3, m = 6e4, L = 36e5, p = "millisecond", d = "second", $ = "minute", r = "hour", D = "day", E = "week", Y = "month", S = "quarter", A = "year", w = "date", i = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, F = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, k = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") }, O = function(o, n, t) {
9
+ var s = String(o);
10
+ return !s || s.length >= n ? o : "" + Array(n + 1 - s.length).join(t) + o;
11
+ }, G = { s: O, z: function(o) {
12
+ var n = -o.utcOffset(), t = Math.abs(n), s = Math.floor(t / 60), e = t % 60;
13
+ return (n <= 0 ? "+" : "-") + O(s, 2, "0") + ":" + O(e, 2, "0");
14
+ }, m: function o(n, t) {
15
+ if (n.date() < t.date())
16
+ return -o(t, n);
17
+ var s = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(s, Y), u = t - e < 0, a = n.clone().add(s + (u ? -1 : 1), Y);
18
+ return +(-(s + (t - e) / (u ? e - a : a - e)) || 0);
19
+ }, a: function(o) {
20
+ return o < 0 ? Math.ceil(o) || 0 : Math.floor(o);
21
+ }, p: function(o) {
22
+ return { M: Y, y: A, w: E, d: D, D: w, h: r, m: $, s: d, ms: p, Q: S }[o] || String(o || "").toLowerCase().replace(/s$/, "");
23
+ }, u: function(o) {
24
+ return o === void 0;
25
+ } }, C = "en", H = {};
26
+ H[C] = k;
27
+ var b = function(o) {
28
+ return o instanceof V;
29
+ }, W = function o(n, t, s) {
30
+ var e;
31
+ if (!n)
32
+ return C;
33
+ if (typeof n == "string") {
34
+ var u = n.toLowerCase();
35
+ H[u] && (e = u), t && (H[u] = t, e = u);
36
+ var a = n.split("-");
37
+ if (!e && a.length > 1)
38
+ return o(a[0]);
39
+ } else {
40
+ var f = n.name;
41
+ H[f] = n, e = f;
42
+ }
43
+ return !s && e && (C = e), e || !s && C;
44
+ }, h = function(o, n) {
45
+ if (b(o))
46
+ return o.clone();
47
+ var t = typeof n == "object" ? n : {};
48
+ return t.date = o, t.args = arguments, new V(t);
49
+ }, c = G;
50
+ c.l = W, c.i = b, c.w = function(o, n) {
51
+ return h(o, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
52
+ };
53
+ var V = function() {
54
+ function o(t) {
55
+ this.$L = W(t.locale, null, !0), this.parse(t);
56
+ }
57
+ var n = o.prototype;
58
+ return n.parse = function(t) {
59
+ this.$d = function(s) {
60
+ var e = s.date, u = s.utc;
61
+ if (e === null)
62
+ return /* @__PURE__ */ new Date(NaN);
63
+ if (c.u(e))
64
+ return /* @__PURE__ */ new Date();
65
+ if (e instanceof Date)
66
+ return new Date(e);
67
+ if (typeof e == "string" && !/Z$/i.test(e)) {
68
+ var a = e.match(v);
69
+ if (a) {
70
+ var f = a[2] - 1 || 0, M = (a[7] || "0").substring(0, 3);
71
+ return u ? new Date(Date.UTC(a[1], f, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, M)) : new Date(a[1], f, a[3] || 1, a[4] || 0, a[5] || 0, a[6] || 0, M);
72
+ }
71
73
  }
74
+ return new Date(e);
75
+ }(t), this.$x = t.x || {}, this.init();
76
+ }, n.init = function() {
77
+ var t = this.$d;
78
+ this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
79
+ }, n.$utils = function() {
80
+ return c;
81
+ }, n.isValid = function() {
82
+ return this.$d.toString() !== i;
83
+ }, n.isSame = function(t, s) {
84
+ var e = h(t);
85
+ return this.startOf(s) <= e && e <= this.endOf(s);
86
+ }, n.isAfter = function(t, s) {
87
+ return h(t) < this.startOf(s);
88
+ }, n.isBefore = function(t, s) {
89
+ return this.endOf(s) < h(t);
90
+ }, n.$g = function(t, s, e) {
91
+ return c.u(t) ? this[s] : this.set(e, t);
92
+ }, n.unix = function() {
93
+ return Math.floor(this.valueOf() / 1e3);
94
+ }, n.valueOf = function() {
95
+ return this.$d.getTime();
96
+ }, n.startOf = function(t, s) {
97
+ var e = this, u = !!c.u(s) || s, a = c.p(t), f = function(z, y) {
98
+ var N = c.w(e.$u ? Date.UTC(e.$y, y, z) : new Date(e.$y, y, z), e);
99
+ return u ? N : N.endOf(D);
100
+ }, M = function(z, y) {
101
+ return c.w(e.toDate()[z].apply(e.toDate("s"), (u ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(y)), e);
102
+ }, l = this.$W, T = this.$M, x = this.$D, R = "set" + (this.$u ? "UTC" : "");
103
+ switch (a) {
104
+ case A:
105
+ return u ? f(1, 0) : f(31, 11);
106
+ case Y:
107
+ return u ? f(1, T) : f(0, T + 1);
108
+ case E:
109
+ var P = this.$locale().weekStart || 0, j = (l < P ? l + 7 : l) - P;
110
+ return f(u ? x - j : x + (6 - j), T);
111
+ case D:
112
+ case w:
113
+ return M(R + "Hours", 0);
114
+ case r:
115
+ return M(R + "Minutes", 1);
116
+ case $:
117
+ return M(R + "Seconds", 2);
118
+ case d:
119
+ return M(R + "Milliseconds", 3);
120
+ default:
121
+ return this.clone();
72
122
  }
73
- return new Date(e);
74
- }(t), this.$x = t.x || {}, this.init();
75
- }, n.init = function() {
76
- var t = this.$d;
77
- this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
78
- }, n.$utils = function() {
79
- return c;
80
- }, n.isValid = function() {
81
- return this.$d.toString() !== s;
82
- }, n.isSame = function(t, i) {
83
- var e = h(t);
84
- return this.startOf(i) <= e && e <= this.endOf(i);
85
- }, n.isAfter = function(t, i) {
86
- return h(t) < this.startOf(i);
87
- }, n.isBefore = function(t, i) {
88
- return this.endOf(i) < h(t);
89
- }, n.$g = function(t, i, e) {
90
- return c.u(t) ? this[i] : this.set(e, t);
91
- }, n.unix = function() {
92
- return Math.floor(this.valueOf() / 1e3);
93
- }, n.valueOf = function() {
94
- return this.$d.getTime();
95
- }, n.startOf = function(t, i) {
96
- var e = this, u = !!c.u(i) || i, a = c.p(t), f = function(z, y) {
97
- var N = c.w(e.$u ? Date.UTC(e.$y, y, z) : new Date(e.$y, y, z), e);
98
- return u ? N : N.endOf(D);
99
- }, M = function(z, y) {
100
- return c.w(e.toDate()[z].apply(e.toDate("s"), (u ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(y)), e);
101
- }, l = this.$W, T = this.$M, x = this.$D, I = "set" + (this.$u ? "UTC" : "");
102
- switch (a) {
103
- case A:
104
- return u ? f(1, 0) : f(31, 11);
105
- case Y:
106
- return u ? f(1, T) : f(0, T + 1);
107
- case E:
108
- var P = this.$locale().weekStart || 0, j = (l < P ? l + 7 : l) - P;
109
- return f(u ? x - j : x + (6 - j), T);
110
- case D:
111
- case w:
112
- return M(I + "Hours", 0);
113
- case r:
114
- return M(I + "Minutes", 1);
115
- case $:
116
- return M(I + "Seconds", 2);
117
- case d:
118
- return M(I + "Milliseconds", 3);
119
- default:
120
- return this.clone();
121
- }
122
- }, n.endOf = function(t) {
123
- return this.startOf(t, !1);
124
- }, n.$set = function(t, i) {
125
- var e, u = c.p(t), a = "set" + (this.$u ? "UTC" : ""), f = (e = {}, e[D] = a + "Date", e[w] = a + "Date", e[Y] = a + "Month", e[A] = a + "FullYear", e[r] = a + "Hours", e[$] = a + "Minutes", e[d] = a + "Seconds", e[p] = a + "Milliseconds", e)[u], M = u === D ? this.$D + (i - this.$W) : i;
126
- if (u === Y || u === A) {
127
- var l = this.clone().set(w, 1);
128
- l.$d[f](M), l.init(), this.$d = l.set(w, Math.min(this.$D, l.daysInMonth())).$d;
129
- } else
130
- f && this.$d[f](M);
131
- return this.init(), this;
132
- }, n.set = function(t, i) {
133
- return this.clone().$set(t, i);
134
- }, n.get = function(t) {
135
- return this[c.p(t)]();
136
- }, n.add = function(t, i) {
137
- var e, u = this;
138
- t = Number(t);
139
- var a = c.p(i), f = function(T) {
140
- var x = h(u);
141
- return c.w(x.date(x.date() + Math.round(T * t)), u);
123
+ }, n.endOf = function(t) {
124
+ return this.startOf(t, !1);
125
+ }, n.$set = function(t, s) {
126
+ var e, u = c.p(t), a = "set" + (this.$u ? "UTC" : ""), f = (e = {}, e[D] = a + "Date", e[w] = a + "Date", e[Y] = a + "Month", e[A] = a + "FullYear", e[r] = a + "Hours", e[$] = a + "Minutes", e[d] = a + "Seconds", e[p] = a + "Milliseconds", e)[u], M = u === D ? this.$D + (s - this.$W) : s;
127
+ if (u === Y || u === A) {
128
+ var l = this.clone().set(w, 1);
129
+ l.$d[f](M), l.init(), this.$d = l.set(w, Math.min(this.$D, l.daysInMonth())).$d;
130
+ } else
131
+ f && this.$d[f](M);
132
+ return this.init(), this;
133
+ }, n.set = function(t, s) {
134
+ return this.clone().$set(t, s);
135
+ }, n.get = function(t) {
136
+ return this[c.p(t)]();
137
+ }, n.add = function(t, s) {
138
+ var e, u = this;
139
+ t = Number(t);
140
+ var a = c.p(s), f = function(T) {
141
+ var x = h(u);
142
+ return c.w(x.date(x.date() + Math.round(T * t)), u);
143
+ };
144
+ if (a === Y)
145
+ return this.set(Y, this.$M + t);
146
+ if (a === A)
147
+ return this.set(A, this.$y + t);
148
+ if (a === D)
149
+ return f(1);
150
+ if (a === E)
151
+ return f(7);
152
+ var M = (e = {}, e[$] = m, e[r] = L, e[d] = g, e)[a] || 1, l = this.$d.getTime() + t * M;
153
+ return c.w(l, this);
154
+ }, n.subtract = function(t, s) {
155
+ return this.add(-1 * t, s);
156
+ }, n.format = function(t) {
157
+ var s = this, e = this.$locale();
158
+ if (!this.isValid())
159
+ return e.invalidDate || i;
160
+ var u = t || "YYYY-MM-DDTHH:mm:ssZ", a = c.z(this), f = this.$H, M = this.$m, l = this.$M, T = e.weekdays, x = e.months, R = function(y, N, q, Z) {
161
+ return y && (y[N] || y(s, u)) || q[N].substr(0, Z);
162
+ }, P = function(y) {
163
+ return c.s(f % 12 || 12, y, "0");
164
+ }, j = e.meridiem || function(y, N, q) {
165
+ var Z = y < 12 ? "AM" : "PM";
166
+ return q ? Z.toLowerCase() : Z;
167
+ }, z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: l + 1, MM: c.s(l + 1, 2, "0"), MMM: R(e.monthsShort, l, x, 3), MMMM: R(x, l), D: this.$D, DD: c.s(this.$D, 2, "0"), d: String(this.$W), dd: R(e.weekdaysMin, this.$W, T, 2), ddd: R(e.weekdaysShort, this.$W, T, 3), dddd: T[this.$W], H: String(f), HH: c.s(f, 2, "0"), h: P(1), hh: P(2), a: j(f, M, !0), A: j(f, M, !1), m: String(M), mm: c.s(M, 2, "0"), s: String(this.$s), ss: c.s(this.$s, 2, "0"), SSS: c.s(this.$ms, 3, "0"), Z: a };
168
+ return u.replace(F, function(y, N) {
169
+ return N || z[y] || a.replace(":", "");
170
+ });
171
+ }, n.utcOffset = function() {
172
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
173
+ }, n.diff = function(t, s, e) {
174
+ var u, a = c.p(s), f = h(t), M = (f.utcOffset() - this.utcOffset()) * m, l = this - f, T = c.m(this, f);
175
+ return T = (u = {}, u[A] = T / 12, u[Y] = T, u[S] = T / 3, u[E] = (l - M) / 6048e5, u[D] = (l - M) / 864e5, u[r] = l / L, u[$] = l / m, u[d] = l / g, u)[a] || l, e ? T : c.a(T);
176
+ }, n.daysInMonth = function() {
177
+ return this.endOf(Y).$D;
178
+ }, n.$locale = function() {
179
+ return H[this.$L];
180
+ }, n.locale = function(t, s) {
181
+ if (!t)
182
+ return this.$L;
183
+ var e = this.clone(), u = W(t, s, !0);
184
+ return u && (e.$L = u), e;
185
+ }, n.clone = function() {
186
+ return c.w(this.$d, this);
187
+ }, n.toDate = function() {
188
+ return new Date(this.valueOf());
189
+ }, n.toJSON = function() {
190
+ return this.isValid() ? this.toISOString() : null;
191
+ }, n.toISOString = function() {
192
+ return this.$d.toISOString();
193
+ }, n.toString = function() {
194
+ return this.$d.toUTCString();
195
+ }, o;
196
+ }(), B = V.prototype;
197
+ return h.prototype = B, [["$ms", p], ["$s", d], ["$m", $], ["$H", r], ["$W", D], ["$M", Y], ["$y", A], ["$D", w]].forEach(function(o) {
198
+ B[o[1]] = function(n) {
199
+ return this.$g(n, o[0], o[1]);
142
200
  };
143
- if (a === Y)
144
- return this.set(Y, this.$M + t);
145
- if (a === A)
146
- return this.set(A, this.$y + t);
147
- if (a === D)
148
- return f(1);
149
- if (a === E)
150
- return f(7);
151
- var M = (e = {}, e[$] = m, e[r] = L, e[d] = g, e)[a] || 1, l = this.$d.getTime() + t * M;
152
- return c.w(l, this);
153
- }, n.subtract = function(t, i) {
154
- return this.add(-1 * t, i);
155
- }, n.format = function(t) {
156
- var i = this, e = this.$locale();
157
- if (!this.isValid())
158
- return e.invalidDate || s;
159
- var u = t || "YYYY-MM-DDTHH:mm:ssZ", a = c.z(this), f = this.$H, M = this.$m, l = this.$M, T = e.weekdays, x = e.months, I = function(y, N, Q, Z) {
160
- return y && (y[N] || y(i, u)) || Q[N].substr(0, Z);
161
- }, P = function(y) {
162
- return c.s(f % 12 || 12, y, "0");
163
- }, j = e.meridiem || function(y, N, Q) {
164
- var Z = y < 12 ? "AM" : "PM";
165
- return Q ? Z.toLowerCase() : Z;
166
- }, z = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: l + 1, MM: c.s(l + 1, 2, "0"), MMM: I(e.monthsShort, l, x, 3), MMMM: I(x, l), D: this.$D, DD: c.s(this.$D, 2, "0"), d: String(this.$W), dd: I(e.weekdaysMin, this.$W, T, 2), ddd: I(e.weekdaysShort, this.$W, T, 3), dddd: T[this.$W], H: String(f), HH: c.s(f, 2, "0"), h: P(1), hh: P(2), a: j(f, M, !0), A: j(f, M, !1), m: String(M), mm: c.s(M, 2, "0"), s: String(this.$s), ss: c.s(this.$s, 2, "0"), SSS: c.s(this.$ms, 3, "0"), Z: a };
167
- return u.replace(F, function(y, N) {
168
- return N || z[y] || a.replace(":", "");
169
- });
170
- }, n.utcOffset = function() {
171
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
172
- }, n.diff = function(t, i, e) {
173
- var u, a = c.p(i), f = h(t), M = (f.utcOffset() - this.utcOffset()) * m, l = this - f, T = c.m(this, f);
174
- return T = (u = {}, u[A] = T / 12, u[Y] = T, u[S] = T / 3, u[E] = (l - M) / 6048e5, u[D] = (l - M) / 864e5, u[r] = l / L, u[$] = l / m, u[d] = l / g, u)[a] || l, e ? T : c.a(T);
175
- }, n.daysInMonth = function() {
176
- return this.endOf(Y).$D;
177
- }, n.$locale = function() {
178
- return H[this.$L];
179
- }, n.locale = function(t, i) {
180
- if (!t)
181
- return this.$L;
182
- var e = this.clone(), u = W(t, i, !0);
183
- return u && (e.$L = u), e;
184
- }, n.clone = function() {
185
- return c.w(this.$d, this);
186
- }, n.toDate = function() {
187
- return new Date(this.valueOf());
188
- }, n.toJSON = function() {
189
- return this.isValid() ? this.toISOString() : null;
190
- }, n.toISOString = function() {
191
- return this.$d.toISOString();
192
- }, n.toString = function() {
193
- return this.$d.toUTCString();
194
- }, o;
195
- }(), q = V.prototype;
196
- return h.prototype = q, [["$ms", p], ["$s", d], ["$m", $], ["$H", r], ["$W", D], ["$M", Y], ["$y", A], ["$D", w]].forEach(function(o) {
197
- q[o[1]] = function(n) {
198
- return this.$g(n, o[0], o[1]);
199
- };
200
- }), h.extend = function(o, n) {
201
- return o.$i || (o(n, V, h), o.$i = !0), h;
202
- }, h.locale = W, h.isDayjs = b, h.unix = function(o) {
203
- return h(1e3 * o);
204
- }, h.en = H[C], h.Ls = H, h.p = {}, h;
205
- });
206
- })(tt);
207
- var et = tt.exports;
208
- const R = /* @__PURE__ */ X(et);
201
+ }), h.extend = function(o, n) {
202
+ return o.$i || (o(n, V, h), o.$i = !0), h;
203
+ }, h.locale = W, h.isDayjs = b, h.unix = function(o) {
204
+ return h(1e3 * o);
205
+ }, h.en = H[C], h.Ls = H, h.p = {}, h;
206
+ });
207
+ }(Q)), Q.exports;
208
+ }
209
209
  (function(_, U) {
210
210
  (function(g, m) {
211
- _.exports = m(et);
211
+ _.exports = m(nt());
212
212
  })(K, function(g) {
213
213
  function m(d) {
214
214
  return d && typeof d == "object" && "default" in d ? d : { default: d };
@@ -219,7 +219,9 @@ const R = /* @__PURE__ */ X(et);
219
219
  return L.default.locale(p, null, !0), p;
220
220
  });
221
221
  })(st);
222
- var nt = { exports: {} };
222
+ var at = nt();
223
+ const I = /* @__PURE__ */ X(at);
224
+ var rt = { exports: {} };
223
225
  (function(_, U) {
224
226
  (function(g, m) {
225
227
  _.exports = m();
@@ -270,10 +272,10 @@ var nt = { exports: {} };
270
272
  };
271
273
  };
272
274
  });
273
- })(nt);
274
- var it = nt.exports;
275
- const at = /* @__PURE__ */ X(it);
276
- var rt = { exports: {} };
275
+ })(rt);
276
+ var ut = rt.exports;
277
+ const ot = /* @__PURE__ */ X(ut);
278
+ var it = { exports: {} };
277
279
  (function(_, U) {
278
280
  (function(g, m) {
279
281
  _.exports = m();
@@ -281,45 +283,45 @@ var rt = { exports: {} };
281
283
  var g = "minute", m = /[+-]\d\d(?::?\d\d)?/g, L = /([+-]|\d\d)/g;
282
284
  return function(p, d, $) {
283
285
  var r = d.prototype;
284
- $.utc = function(s) {
285
- var v = { date: s, utc: !0, args: arguments };
286
+ $.utc = function(i) {
287
+ var v = { date: i, utc: !0, args: arguments };
286
288
  return new d(v);
287
- }, r.utc = function(s) {
289
+ }, r.utc = function(i) {
288
290
  var v = $(this.toDate(), { locale: this.$L, utc: !0 });
289
- return s ? v.add(this.utcOffset(), g) : v;
291
+ return i ? v.add(this.utcOffset(), g) : v;
290
292
  }, r.local = function() {
291
293
  return $(this.toDate(), { locale: this.$L, utc: !1 });
292
294
  };
293
295
  var D = r.parse;
294
- r.parse = function(s) {
295
- s.utc && (this.$u = !0), this.$utils().u(s.$offset) || (this.$offset = s.$offset), D.call(this, s);
296
+ r.parse = function(i) {
297
+ i.utc && (this.$u = !0), this.$utils().u(i.$offset) || (this.$offset = i.$offset), D.call(this, i);
296
298
  };
297
299
  var E = r.init;
298
300
  r.init = function() {
299
301
  if (this.$u) {
300
- var s = this.$d;
301
- this.$y = s.getUTCFullYear(), this.$M = s.getUTCMonth(), this.$D = s.getUTCDate(), this.$W = s.getUTCDay(), this.$H = s.getUTCHours(), this.$m = s.getUTCMinutes(), this.$s = s.getUTCSeconds(), this.$ms = s.getUTCMilliseconds();
302
+ var i = this.$d;
303
+ this.$y = i.getUTCFullYear(), this.$M = i.getUTCMonth(), this.$D = i.getUTCDate(), this.$W = i.getUTCDay(), this.$H = i.getUTCHours(), this.$m = i.getUTCMinutes(), this.$s = i.getUTCSeconds(), this.$ms = i.getUTCMilliseconds();
302
304
  } else
303
305
  E.call(this);
304
306
  };
305
307
  var Y = r.utcOffset;
306
- r.utcOffset = function(s, v) {
308
+ r.utcOffset = function(i, v) {
307
309
  var F = this.$utils().u;
308
- if (F(s))
310
+ if (F(i))
309
311
  return this.$u ? 0 : F(this.$offset) ? Y.call(this) : this.$offset;
310
- if (typeof s == "string" && (s = function(C) {
312
+ if (typeof i == "string" && (i = function(C) {
311
313
  C === void 0 && (C = "");
312
314
  var H = C.match(m);
313
315
  if (!H)
314
316
  return null;
315
317
  var b = ("" + H[0]).match(L) || ["-", 0, 0], W = b[0], h = 60 * +b[1] + +b[2];
316
318
  return h === 0 ? 0 : W === "+" ? h : -h;
317
- }(s), s === null))
319
+ }(i), i === null))
318
320
  return this;
319
- var k = Math.abs(s) <= 16 ? 60 * s : s, O = this;
321
+ var k = Math.abs(i) <= 16 ? 60 * i : i, O = this;
320
322
  if (v)
321
- return O.$offset = k, O.$u = s === 0, O;
322
- if (s !== 0) {
323
+ return O.$offset = k, O.$u = i === 0, O;
324
+ if (i !== 0) {
323
325
  var G = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
324
326
  (O = this.local().add(k + G, g)).$offset = k, O.$x.$localOffset = G;
325
327
  } else
@@ -327,12 +329,12 @@ var rt = { exports: {} };
327
329
  return O;
328
330
  };
329
331
  var S = r.format;
330
- r.format = function(s) {
331
- var v = s || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
332
+ r.format = function(i) {
333
+ var v = i || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
332
334
  return S.call(this, v);
333
335
  }, r.valueOf = function() {
334
- var s = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || (/* @__PURE__ */ new Date()).getTimezoneOffset());
335
- return this.$d.valueOf() - 6e4 * s;
336
+ var i = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || (/* @__PURE__ */ new Date()).getTimezoneOffset());
337
+ return this.$d.valueOf() - 6e4 * i;
336
338
  }, r.isUTC = function() {
337
339
  return !!this.$u;
338
340
  }, r.toISOString = function() {
@@ -341,45 +343,45 @@ var rt = { exports: {} };
341
343
  return this.toDate().toUTCString();
342
344
  };
343
345
  var A = r.toDate;
344
- r.toDate = function(s) {
345
- return s === "s" && this.$offset ? $(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
346
+ r.toDate = function(i) {
347
+ return i === "s" && this.$offset ? $(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
346
348
  };
347
349
  var w = r.diff;
348
- r.diff = function(s, v, F) {
349
- if (s && this.$u === s.$u)
350
- return w.call(this, s, v, F);
351
- var k = this.local(), O = $(s).local();
350
+ r.diff = function(i, v, F) {
351
+ if (i && this.$u === i.$u)
352
+ return w.call(this, i, v, F);
353
+ var k = this.local(), O = $(i).local();
352
354
  return w.call(k, O, v, F);
353
355
  };
354
356
  };
355
357
  });
356
- })(rt);
357
- var ut = rt.exports;
358
- const ot = /* @__PURE__ */ X(ut);
359
- R.extend(ot);
360
- R.extend(at);
361
- R.locale("tr");
362
- var ft = /* @__PURE__ */ ((_) => (_.moonStringDateFormat = "dd MMM yyyy", _.defaultDateFormat = "dd.MM.yyyy", _.defaultTimeFormat = "HH:MM:ss", _))(ft || {});
363
- const B = "YYYY-MM-DD", ct = "YYYY-MM-DD HH:mm", J = "DD MMM YYYY", Mt = "DD-MM-YYYY", ht = "DD MMMM YYYY HH:mm", lt = "DD MMM YY HH:mm", _t = "YYYY-MM-DD", $t = "H:i", mt = "HH:mm", Dt = /* @__PURE__ */ new Date(), Tt = R().add(1, "day").toDate(), Yt = (_, U = "single", g = !1) => {
358
+ })(it);
359
+ var ft = it.exports;
360
+ const ct = /* @__PURE__ */ X(ft);
361
+ I.extend(ct);
362
+ I.extend(ot);
363
+ I.locale("tr");
364
+ var ht = /* @__PURE__ */ ((_) => (_.moonStringDateFormat = "dd MMM yyyy", _.defaultDateFormat = "dd.MM.yyyy", _.defaultTimeFormat = "HH:MM:ss", _))(ht || {});
365
+ const et = "YYYY-MM-DD", lt = "YYYY-MM-DD HH:mm", J = "DD MMM YYYY", $t = "DD-MM-YYYY", dt = "DD MMMM YYYY HH:mm", Mt = "DD MMM YY HH:mm", mt = "YYYY-MM-DD", Dt = "H:i", Tt = "HH:mm", Yt = /* @__PURE__ */ new Date(), gt = I().add(1, "day").toDate(), yt = (_, U = "single", g = !1) => {
364
366
  switch (U) {
365
367
  case "datetime":
366
- return R(_, ct).format(
367
- g ? lt : ht
368
+ return I(_, lt).format(
369
+ g ? Mt : dt
368
370
  );
369
371
  case "single":
370
- return R(_, J).format(
372
+ return I(_, J).format(
371
373
  J
372
374
  );
373
375
  case "range":
374
- return `${R(_.starDate, B).format(
376
+ return `${I(_.starDate, et).format(
375
377
  J
376
- )} - ${R(_.endDate, B).format(
378
+ )} - ${I(_.endDate, et).format(
377
379
  J
378
380
  )}`;
379
381
  default:
380
382
  return _;
381
383
  }
382
- }, gt = {
384
+ }, vt = {
383
385
  SERVER_DATE_FORMAT: "YYYY-MM-DD",
384
386
  SERVER_DATE_AND_TIME_FORMAT: "YYYY-MM-DD HH:mm",
385
387
  CLIENT_DATE_SHORT_FORMAT: "DD MMM YYYY",
@@ -390,22 +392,22 @@ const B = "YYYY-MM-DD", ct = "YYYY-MM-DD HH:mm", J = "DD MMM YYYY", Mt = "DD-MM-
390
392
  CLIENT_TIME_FORMAT_PICKER: "H:i",
391
393
  CLIENT_TIME_FORMAT: "HH:mm",
392
394
  MIN_DATE_TODAY: /* @__PURE__ */ new Date(),
393
- MIN_DATE_TOMORROW: R().add(1, "day").toDate()
395
+ MIN_DATE_TOMORROW: I().add(1, "day").toDate()
394
396
  };
395
397
  export {
396
- ht as CLIENT_DATE_AND_TIME_FORMAT,
397
- lt as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
398
- Mt as CLIENT_DATE_COMPARE_FORMAT,
399
- _t as CLIENT_DATE_FILTER_FORMAT,
398
+ dt as CLIENT_DATE_AND_TIME_FORMAT,
399
+ Mt as CLIENT_DATE_AND_TIME_SHORT_FORMAT,
400
+ $t as CLIENT_DATE_COMPARE_FORMAT,
401
+ mt as CLIENT_DATE_FILTER_FORMAT,
400
402
  J as CLIENT_DATE_SHORT_FORMAT,
401
- mt as CLIENT_TIME_FORMAT,
402
- $t as CLIENT_TIME_FORMAT_PICKER,
403
- ft as DateFormat,
404
- gt as DateFormats,
405
- Dt as MIN_DATE_TODAY,
406
- Tt as MIN_DATE_TOMORROW,
407
- ct as SERVER_DATE_AND_TIME_FORMAT,
408
- B as SERVER_DATE_FORMAT,
409
- R as default,
410
- Yt as friendlyDate
403
+ Tt as CLIENT_TIME_FORMAT,
404
+ Dt as CLIENT_TIME_FORMAT_PICKER,
405
+ ht as DateFormat,
406
+ vt as DateFormats,
407
+ Yt as MIN_DATE_TODAY,
408
+ gt as MIN_DATE_TOMORROW,
409
+ lt as SERVER_DATE_AND_TIME_FORMAT,
410
+ et as SERVER_DATE_FORMAT,
411
+ I as default,
412
+ yt as friendlyDate
411
413
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cagatayfdn/flora-components",
3
- "version": "0.0.105",
3
+ "version": "0.0.107",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",