@cagatayfdn/flora-components 0.0.94 → 0.0.96

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/Divider.css CHANGED
@@ -1 +1 @@
1
- ._divider_1b99i_1{border:none}._divider_1b99i_1._grey_1b99i_4{border-top:1px solid #d8d8d8}._divider_1b99i_1._light_1b99i_7{border-top:1px solid #dfdfdf}._margin-15_1b99i_11{margin:15px 0}._margin-30_1b99i_15{margin:30px 0}
1
+ ._divider_9z2uf_1{border:none}._divider_9z2uf_1._grey_9z2uf_4{border-top:1px solid #d8d8d8}._divider_9z2uf_1._light_9z2uf_7{border-top:1px solid #dfdfdf}._divider_9z2uf_1 ._dark_grey_9z2uf_10{border-top:1px solid #333b57}._margin-15_9z2uf_14{margin:15px 0}._margin-30_9z2uf_18{margin:30px 0}
package/dist/Modal.css CHANGED
@@ -1 +1 @@
1
- ._modal_1jora_1{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;width:100%;height:100%;background-color:#00000073;display:flex;justify-content:center;overflow:auto;align-items:center}._modal_1jora_1 ._content_1jora_16{border-radius:10px;background-color:#333b57;position:relative;box-shadow:0 3px 6px -4px #0000007a,0 6px 16px #00000052,0 9px 28px 8px #0003;pointer-events:auto;margin:30px;width:450px;display:inline-block}._modal_1jora_1 ._content_1jora_16 ._header_1jora_26{padding:16px 30px;position:relative;border-bottom:1px solid #3b4768}._modal_1jora_1 ._content_1jora_16 ._header_1jora_26 h2{margin:0;font-size:20px;font-weight:500}._modal_1jora_1 ._content_1jora_16 ._header_1jora_26 h2:before{content:"";position:absolute;top:50%;left:0;width:4px;height:16px;margin-top:-8px;background-color:#4482ff}._modal_1jora_1 ._content_1jora_16 ._header_1jora_26 ._close_1jora_46{position:absolute;right:30px;top:50%;cursor:pointer;margin-top:-10px}._modal_1jora_1 ._content_1jora_16 ._body_1jora_53{padding:40px 30px;height:100%}._modal_1jora_1 ._content_1jora_16 ._body_1jora_53 ._desc_1jora_57{color:#bcbcbc;margin-bottom:23px}._modal__light_1jora_61 ._content_1jora_16{background-color:#f5f5f5}._modal__light_1jora_61 ._content_1jora_16 ._header_1jora_26{background-color:#fff;border-bottom-color:#c8daec;border-radius:10px 10px 0 0}._modal__light_1jora_61 ._content_1jora_16 ._header_1jora_26 h2,._modal__light_1jora_61 ._content_1jora_16 ._header_1jora_26 ._close_1jora_46{color:#3d4561}._modal__light_1jora_61 ._content_1jora_16 ._body_1jora_53,._modal__light_1jora_61 ._content_1jora_16 ._body_1jora_53 ._desc_1jora_57{color:#788195}
1
+ ._overlay_yit4w_1{position:fixed;top:0;left:0;width:100%;height:100%;z-index:999}._modal_yit4w_10{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;width:100%;height:100%;display:flex;background:#00000073;justify-content:center;overflow:auto;align-items:center}._modal_yit4w_10 ._content_yit4w_25{border-radius:10px;background-color:#333b57;position:relative;box-shadow:0 3px 6px -4px #0000007a,0 6px 16px #00000052,0 9px 28px 8px #0003;pointer-events:auto;margin:30px;width:450px;display:inline-block}._modal_yit4w_10 ._content_yit4w_25 ._header_yit4w_35{padding:16px 30px;position:relative;border-bottom:1px solid #3b4768}._modal_yit4w_10 ._content_yit4w_25 ._header_yit4w_35 h2{margin:0;font-size:20px;font-weight:500}._modal_yit4w_10 ._content_yit4w_25 ._header_yit4w_35 h2:before{content:"";position:absolute;top:50%;left:0;width:4px;height:16px;margin-top:-8px;background-color:#4482ff}._modal_yit4w_10 ._content_yit4w_25 ._header_yit4w_35 ._close_yit4w_55{position:absolute;right:30px;top:50%;cursor:pointer;margin-top:-10px}._modal_yit4w_10 ._content_yit4w_25 ._body_yit4w_62{padding:40px 30px;height:100%}._modal_yit4w_10 ._content_yit4w_25 ._body_yit4w_62 ._desc_yit4w_66{color:#bcbcbc;margin-bottom:23px}._modal__light_yit4w_70 ._content_yit4w_25{background-color:#f5f5f5}._modal__light_yit4w_70 ._content_yit4w_25 ._header_yit4w_35{background-color:#fff;border-bottom-color:#c8daec;border-radius:10px 10px 0 0}._modal__light_yit4w_70 ._content_yit4w_25 ._header_yit4w_35 h2,._modal__light_yit4w_70 ._content_yit4w_25 ._header_yit4w_35 ._close_yit4w_55{color:#3d4561}._modal__light_yit4w_70 ._content_yit4w_25 ._body_yit4w_62,._modal__light_yit4w_70 ._content_yit4w_25 ._body_yit4w_62 ._desc_yit4w_66{color:#788195}
@@ -1,26 +1,27 @@
1
- import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
2
- import { DividerAppearance as d } from "../../enums/appearance.js";
3
- import { c as _ } from "../../index-BHf7G3IG.js";
4
- import '../../Divider.css';const a = "_divider_1b99i_1", m = "_grey_1b99i_4", o = "_light_1b99i_7", i = {
1
+ import { j as _ } from "../../jsx-runtime-BcAkpsdy.js";
2
+ import { DividerAppearance as s } from "../../enums/appearance.js";
3
+ import { c as d } from "../../index-BHf7G3IG.js";
4
+ import '../../Divider.css';const a = "_divider_9z2uf_1", o = "_grey_9z2uf_4", g = "_light_9z2uf_7", m = "_dark_grey_9z2uf_10", r = {
5
5
  divider: a,
6
- grey: m,
7
- light: o,
8
- "margin-15": "_margin-15_1b99i_11",
9
- "margin-30": "_margin-30_1b99i_15"
10
- }, l = ({
11
- appearance: r = d.GREY,
12
- className: s,
13
- margin: t = "15"
14
- }) => /* @__PURE__ */ e.jsx(
6
+ grey: o,
7
+ light: g,
8
+ dark_grey: m,
9
+ "margin-15": "_margin-15_9z2uf_14",
10
+ "margin-30": "_margin-30_9z2uf_18"
11
+ }, u = ({
12
+ appearance: i = s.GREY,
13
+ className: t,
14
+ margin: e = "15"
15
+ }) => /* @__PURE__ */ _.jsx(
15
16
  "hr",
16
17
  {
17
18
  "data-testid": "divider",
18
- className: _(i.divider, s, {
19
- [i[`${r}`]]: r,
20
- [i[`margin-${t}`]]: t
19
+ className: d(r.divider, t, {
20
+ [r[`${i}`]]: i,
21
+ [r[`margin-${e}`]]: e
21
22
  })
22
23
  }
23
24
  );
24
25
  export {
25
- l as default
26
+ u as default
26
27
  };
@@ -1,57 +1,73 @@
1
1
  import { j as e } from "../../jsx-runtime-BcAkpsdy.js";
2
- import { useEffect as x } from "react";
2
+ import { useEffect as u } from "react";
3
3
  import { c as s } from "../../index-BHf7G3IG.js";
4
- import { Icons as u } from "../../assets/icons/icons.js";
4
+ import { Icons as w } from "../../assets/icons/icons.js";
5
5
  import N from "../Icon/index.js";
6
- import '../../Modal.css';const b = "_modal_1jora_1", f = "_content_1jora_16", v = "_header_1jora_26", g = "_close_1jora_46", C = "_body_1jora_53", S = "_desc_1jora_57", w = "_modal__light_1jora_61", o = {
7
- modal: b,
8
- content: f,
9
- header: v,
10
- close: g,
11
- body: C,
6
+ import '../../Modal.css';const b = "_overlay_yit4w_1", f = "_modal_yit4w_10", g = "_content_yit4w_25", C = "_header_yit4w_35", k = "_close_yit4w_55", E = "_body_yit4w_62", S = "_desc_yit4w_66", F = "_modal__light_yit4w_70", o = {
7
+ overlay: b,
8
+ modal: f,
9
+ content: g,
10
+ header: C,
11
+ close: k,
12
+ body: E,
12
13
  desc: S,
13
- modal__light: w
14
- }, A = (n) => {
14
+ modal__light: F
15
+ }, H = (i) => {
15
16
  const {
16
- children: r,
17
+ children: m,
17
18
  header: a,
18
- title: c,
19
- description: l,
20
- className: m,
21
- onClose: i,
22
- visible: t = !0,
23
- appearance: d,
24
- headerClass: _,
25
- descriptionClass: h
26
- } = n, j = () => {
19
+ title: t,
20
+ description: d,
21
+ className: y,
22
+ onClose: _,
23
+ visible: c = !0,
24
+ appearance: l,
25
+ headerClass: h,
26
+ descriptionClass: v
27
+ } = i, x = () => {
27
28
  document.body.style.width = "calc(100% - 15px)", document.body.className = "overflow-hidden";
28
- }, y = () => {
29
- document.body.className = "", document.body.removeAttribute("style");
30
29
  }, p = () => {
31
- i();
30
+ document.body.className = "", document.body.removeAttribute("style");
31
+ }, n = () => {
32
+ _();
32
33
  };
33
- return x(() => (t && j(), () => {
34
- y();
35
- }), [t]), /* @__PURE__ */ e.jsx(e.Fragment, { children: t && /* @__PURE__ */ e.jsx(
36
- "div",
37
- {
38
- className: s(o.modal, {
39
- [o[`modal__${d}`]]: d
40
- }),
41
- "data-testid": "modal-container",
42
- children: /* @__PURE__ */ e.jsxs("div", { className: s(m, o.content), children: [
43
- c || a ? /* @__PURE__ */ e.jsxs("div", { className: s(o.header, _), children: [
44
- c ? /* @__PURE__ */ e.jsx("h2", { children: c }) : a,
45
- /* @__PURE__ */ e.jsx("span", { className: o.close, onClick: p, children: /* @__PURE__ */ e.jsx(N, { name: u.Close }) })
46
- ] }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
47
- /* @__PURE__ */ e.jsxs("div", { className: o.body, children: [
48
- l && /* @__PURE__ */ e.jsx("p", { className: s(o.desc, h), children: l }),
49
- r
34
+ return u(() => {
35
+ const r = (j) => {
36
+ j.key === "Escape" && n();
37
+ };
38
+ return document.addEventListener("keydown", r), c && x(), () => {
39
+ p(), document.removeEventListener("keydown", r);
40
+ };
41
+ }, [c]), /* @__PURE__ */ e.jsx(e.Fragment, { children: c && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
42
+ /* @__PURE__ */ e.jsx(
43
+ "div",
44
+ {
45
+ "data-testid": "modal-overlay",
46
+ onClick: n,
47
+ className: o.overlay
48
+ }
49
+ ),
50
+ /* @__PURE__ */ e.jsx(
51
+ "div",
52
+ {
53
+ className: s(o.modal, {
54
+ [o[`modal__${l}`]]: l
55
+ }),
56
+ "data-testid": "modal-container",
57
+ children: /* @__PURE__ */ e.jsxs("div", { className: s(y, o.content), children: [
58
+ t || a ? /* @__PURE__ */ e.jsxs("div", { className: s(o.header, h), children: [
59
+ t ? /* @__PURE__ */ e.jsx("h2", { children: t }) : a,
60
+ /* @__PURE__ */ e.jsx("span", { className: o.close, onClick: n, children: /* @__PURE__ */ e.jsx(N, { name: w.Close }) })
61
+ ] }) : /* @__PURE__ */ e.jsx(e.Fragment, {}),
62
+ /* @__PURE__ */ e.jsxs("div", { className: o.body, children: [
63
+ d && /* @__PURE__ */ e.jsx("p", { className: s(o.desc, v), children: d }),
64
+ m
65
+ ] })
50
66
  ] })
51
- ] })
52
- }
53
- ) });
67
+ }
68
+ )
69
+ ] }) });
54
70
  };
55
71
  export {
56
- A as default
72
+ H as default
57
73
  };
@@ -1,14 +1,14 @@
1
- var E = /* @__PURE__ */ ((I) => (I.DEFAULT = "default", I.SUCCESS = "success", I))(E || {}), L = /* @__PURE__ */ ((I) => (I.ADDONS_INITIALIZING = "addons_initializing", I.ADDONS_ADDONS_INITILIZATION_FAILED = "addons_initialization_failed", I.DEPLOYING = "deploying", I.FAILED = "failed", I.DEPLOYED = "deployed", I.INITIALIZING = "initializing", I.INITIALIZING_FAILED = "initialization_failed", I.QUEUEING = "queueing", I.QUEUED = "queued", I))(L || {}), N = /* @__PURE__ */ ((I) => (I.INFO = "info", I.SUCCESS = "success", I.ERROR = "error", I.WARNING = "warning", I.LOADING = "loading", I))(N || {}), D = /* @__PURE__ */ ((I) => (I.LIGHT = "light", I.DARK = "dark", I.LIGHT_FULL = "light_full", I.DARK_FULL = "darkFull", I))(D || {}), R = /* @__PURE__ */ ((I) => (I.LIGHT = "light", I.DARK = "dark", I.MORE_DARK = "more_dark", I))(R || {}), l = /* @__PURE__ */ ((I) => (I.LIGHT = "light", I.DARK = "dark", I.DARK_BLUE = "dark_blue", I))(l || {}), G = /* @__PURE__ */ ((I) => (I.LIGHT = "light", I.GREY = "grey", I))(G || {}), g = /* @__PURE__ */ ((I) => (I.LINK = "link", I.DEFAULT = "default", I.PRIMARY = "primary", I.DANGER = "danger", I.SUCCESS = "success", I.WARNING = "warning", I.DARK = "dark", I))(g || {}), _ = /* @__PURE__ */ ((I) => (I.TOP = "top", I.RIGHT = "right", I.BOTTOM = "bottom", I.LEFT = "left", I))(_ || {}), O = /* @__PURE__ */ ((I) => (I.DANGER = "danger", I.SUCCESS = "success", I.WARNING = "warning", I))(O || {}), U = /* @__PURE__ */ ((I) => (I.DANGER = "danger", I.WARNING = "warning", I))(U || {});
1
+ var E = /* @__PURE__ */ ((I) => (I.DEFAULT = "default", I.SUCCESS = "success", I))(E || {}), L = /* @__PURE__ */ ((I) => (I.ADDONS_INITIALIZING = "addons_initializing", I.ADDONS_ADDONS_INITILIZATION_FAILED = "addons_initialization_failed", I.DEPLOYING = "deploying", I.FAILED = "failed", I.DEPLOYED = "deployed", I.INITIALIZING = "initializing", I.INITIALIZING_FAILED = "initialization_failed", I.QUEUEING = "queueing", I.QUEUED = "queued", I))(L || {}), R = /* @__PURE__ */ ((I) => (I.INFO = "info", I.SUCCESS = "success", I.ERROR = "error", I.WARNING = "warning", I.LOADING = "loading", I))(R || {}), N = /* @__PURE__ */ ((I) => (I.LIGHT = "light", I.DARK = "dark", I.LIGHT_FULL = "light_full", I.DARK_FULL = "darkFull", I))(N || {}), D = /* @__PURE__ */ ((I) => (I.LIGHT = "light", I.DARK = "dark", I.MORE_DARK = "more_dark", I))(D || {}), G = /* @__PURE__ */ ((I) => (I.LIGHT = "light", I.DARK = "dark", I.DARK_BLUE = "dark_blue", I))(G || {}), l = /* @__PURE__ */ ((I) => (I.LIGHT = "light", I.GREY = "grey", I.DARK_GREY = "dark_grey", I))(l || {}), g = /* @__PURE__ */ ((I) => (I.LINK = "link", I.DEFAULT = "default", I.PRIMARY = "primary", I.DANGER = "danger", I.SUCCESS = "success", I.WARNING = "warning", I.DARK = "dark", I))(g || {}), _ = /* @__PURE__ */ ((I) => (I.TOP = "top", I.RIGHT = "right", I.BOTTOM = "bottom", I.LEFT = "left", I))(_ || {}), O = /* @__PURE__ */ ((I) => (I.DANGER = "danger", I.SUCCESS = "success", I.WARNING = "warning", I))(O || {}), U = /* @__PURE__ */ ((I) => (I.DANGER = "danger", I.WARNING = "warning", I))(U || {});
2
2
  export {
3
3
  L as AppAndServicesStatusApperenceType,
4
4
  U as AppearanceAlertCard,
5
5
  g as AppearanceButton,
6
6
  _ as AppearanceDirection,
7
- D as AppearanceSpinner,
7
+ N as AppearanceSpinner,
8
8
  O as AppearanceTag,
9
- G as DividerAppearance,
10
- R as FormFieldAppearance,
9
+ l as DividerAppearance,
10
+ D as FormFieldAppearance,
11
11
  E as ModalAppearanceType,
12
- N as NotificationAppearanceType,
13
- l as ThemeAppearance
12
+ R as NotificationAppearanceType,
13
+ G as ThemeAppearance
14
14
  };
package/dist/index.d.mts CHANGED
@@ -429,7 +429,8 @@ export declare const Divider: ({ appearance, className, margin, }: DividerProps)
429
429
 
430
430
  export declare enum DividerAppearance {
431
431
  LIGHT = "light",
432
- GREY = "grey"
432
+ GREY = "grey",
433
+ DARK_GREY = "dark_grey"
433
434
  }
434
435
 
435
436
  export declare type DividerProps = {
package/dist/index.d.ts CHANGED
@@ -429,7 +429,8 @@ export declare const Divider: ({ appearance, className, margin, }: DividerProps)
429
429
 
430
430
  export declare enum DividerAppearance {
431
431
  LIGHT = "light",
432
- GREY = "grey"
432
+ GREY = "grey",
433
+ DARK_GREY = "dark_grey"
433
434
  }
434
435
 
435
436
  export declare type DividerProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cagatayfdn/flora-components",
3
- "version": "0.0.94",
3
+ "version": "0.0.96",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",