@cagatayfdn/flora-components 0.0.104 → 0.0.106

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)}
@@ -6,24 +6,24 @@ import P from "./components/Button/Button.js";
6
6
  import L from "./components/Heading/Heading.js";
7
7
  import k from "./components/Pager/Pager.js";
8
8
  import { S as b } from "./Select-DcLZCXNo.js";
9
- import { u as z } from "./useTranslation-CnCPcxVj.js";
10
- import { T as F } from "./Trans-B4ILpbwK.js";
11
- import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4", S = "_title_1tluw_7", K = "_subTitle_1tluw_13", M = "_table_1tluw_18", Y = "_fixed_1tluw_24", q = "_light_1tluw_50", C = "_fixedHeader_1tluw_55", J = "_dark_1tluw_65", Q = "_tableWrap_1tluw_71", U = "_actionWrap_1tluw_116", V = "_tableLoading_1tluw_120", X = "_selectedAction_1tluw_130", Z = "_rightGroup_1tluw_137", $ = "_pageSizeWrap_1tluw_141", I = "_pager_1tluw_151", O = "_size_1tluw_155", ee = "_noResult_1tluw_159", te = "_scrollWrap_1tluw_168", se = "_justifyContentEnd_1tluw_172", ae = "_width100_1tluw_176", t = {
12
- wrapper: B,
13
- header: D,
14
- title: S,
15
- subTitle: K,
16
- table: M,
17
- fixed: Y,
18
- light: q,
19
- fixedHeader: C,
20
- dark: J,
21
- tableWrap: Q,
22
- actionWrap: U,
23
- tableLoading: V,
24
- selectedAction: X,
25
- rightGroup: Z,
26
- pageSizeWrap: $,
9
+ import { u as F } from "./useTranslation-CnCPcxVj.js";
10
+ import { T as B } from "./Trans-B4ILpbwK.js";
11
+ import './TableHeader.css';const D = "_wrapper_1tluw_1", z = "_header_1tluw_4", K = "_title_1tluw_7", M = "_subTitle_1tluw_13", Y = "_table_1tluw_18", q = "_fixed_1tluw_24", J = "_light_1tluw_50", Q = "_fixedHeader_1tluw_55", S = "_dark_1tluw_65", U = "_tableWrap_1tluw_71", V = "_actionWrap_1tluw_116", X = "_tableLoading_1tluw_120", Z = "_selectedAction_1tluw_130", $ = "_rightGroup_1tluw_137", C = "_pageSizeWrap_1tluw_141", I = "_pager_1tluw_151", O = "_size_1tluw_155", ee = "_noResult_1tluw_159", te = "_scrollWrap_1tluw_168", se = "_justifyContentEnd_1tluw_172", ae = "_width100_1tluw_176", t = {
12
+ wrapper: D,
13
+ header: z,
14
+ title: K,
15
+ subTitle: M,
16
+ table: Y,
17
+ fixed: q,
18
+ light: J,
19
+ fixedHeader: Q,
20
+ dark: S,
21
+ tableWrap: U,
22
+ actionWrap: V,
23
+ tableLoading: X,
24
+ selectedAction: Z,
25
+ rightGroup: $,
26
+ pageSizeWrap: C,
27
27
  pager: I,
28
28
  size: O,
29
29
  noResult: ee,
@@ -37,34 +37,34 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
37
37
  { value: "100", label: "100" },
38
38
  { value: "250", label: "250" }
39
39
  ], me = ({
40
- totalCount: i = 0,
40
+ totalCount: n = 0,
41
41
  currentPage: f,
42
42
  title: l,
43
43
  actionOnChange: r,
44
44
  className: h,
45
45
  pagerOnChange: j,
46
46
  pageSizeOnChange: d,
47
- pagerVisible: g = !0,
48
- pageSizeVisible: v = !0,
49
- pageSize: a = 10,
47
+ pagerVisible: v = !0,
48
+ pageSizeVisible: g = !0,
49
+ pageSize: s = 10,
50
50
  actionItems: o,
51
51
  pageSizeItems: W = le,
52
- headerLeftItem: n,
52
+ headerLeftItem: i,
53
53
  customItem: c,
54
54
  appearance: T,
55
55
  showItemsText: N
56
56
  }) => {
57
- const { t: _ } = z(), [y, u] = x(!0), [A, p] = x({
58
- label: a,
59
- value: a
60
- }), H = (s) => [
61
- { value: "exportexel", label: s("text.excel_export") }
62
- ], E = (s) => {
63
- u(!s), r && r(s);
57
+ const { t: _ } = F(), [y, u] = x(!0), [A, p] = x({
58
+ label: s,
59
+ value: s
60
+ }), H = (a) => [
61
+ { value: "exportexel", label: a("text.excel_export") }
62
+ ], E = (a) => {
63
+ u(!a), r && r(a);
64
64
  };
65
65
  return o = o || H(_), G(() => {
66
- p({ label: a, value: a });
67
- }, [a]), /* @__PURE__ */ e.jsxs(
66
+ p({ label: s, value: s });
67
+ }, [s]), /* @__PURE__ */ e.jsxs(
68
68
  "div",
69
69
  {
70
70
  "data-testid": "tableheader-container",
@@ -76,7 +76,7 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
76
76
  l && /* @__PURE__ */ e.jsxs("div", { children: [
77
77
  /* @__PURE__ */ e.jsx(L, { className: t.title, children: l }),
78
78
  /* @__PURE__ */ e.jsxs("p", { className: t.subTitle, children: [
79
- i,
79
+ n,
80
80
  " ",
81
81
  _("text.results_listing")
82
82
  ] })
@@ -86,8 +86,8 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
86
86
  "div",
87
87
  {
88
88
  className: m(t.actionWrap, {
89
- [t.justifyContentEnd]: !n,
90
- [t.width100]: n
89
+ [t.justifyContentEnd]: !i,
90
+ [t.width100]: i
91
91
  }),
92
92
  children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
93
93
  r && /* @__PURE__ */ e.jsxs("div", { className: t.selectedAction, children: [
@@ -109,9 +109,9 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
109
109
  }
110
110
  )
111
111
  ] }),
112
- n && n,
112
+ i && i,
113
113
  /* @__PURE__ */ e.jsxs("div", { className: t.rightGroup, children: [
114
- v && /* @__PURE__ */ e.jsxs("div", { className: t.pageSizeWrap, children: [
114
+ g && n > s && /* @__PURE__ */ e.jsxs("div", { className: t.pageSizeWrap, children: [
115
115
  /* @__PURE__ */ e.jsx(
116
116
  b,
117
117
  {
@@ -120,26 +120,26 @@ import './TableHeader.css';const B = "_wrapper_1tluw_1", D = "_header_1tluw_4",
120
120
  items: W,
121
121
  className: t.size,
122
122
  showPlaceholder: !1,
123
- onAddItem: ({ item: s }) => {
124
- p(s), d && d(s.value);
123
+ onAddItem: ({ item: a }) => {
124
+ p(a), d && d(a.value);
125
125
  },
126
126
  appearance: w.LIGHT
127
127
  }
128
128
  ),
129
129
  /* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
130
- F,
130
+ B,
131
131
  {
132
132
  i18nKey: "text.show",
133
133
  values: { title: N || l }
134
134
  }
135
135
  ) })
136
136
  ] }),
137
- g && i > 0 && /* @__PURE__ */ e.jsx(
137
+ v && n > s && /* @__PURE__ */ e.jsx(
138
138
  k,
139
139
  {
140
140
  currentPage: f,
141
- pageSize: a,
142
- totalCount: i,
141
+ pageSize: s,
142
+ totalCount: n,
143
143
  onChange: j,
144
144
  appearance: T,
145
145
  className: t.pager
@@ -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
  };
@@ -2,7 +2,7 @@ import { j as s } from "../../jsx-runtime-BcAkpsdy.js";
2
2
  import { useState as Q, useEffect as Y } from "react";
3
3
  import Z from "../NoResult/NoResult.js";
4
4
  import { c as g } from "../../index-BHf7G3IG.js";
5
- import { s as c, T as H } from "../../TableHeader-Cjx9ZwYH.js";
5
+ import { s as c, T as H } from "../../TableHeader-CZpy30xO.js";
6
6
  import { ThemeAppearance as L, AppearanceSpinner as T } from "../../enums/appearance.js";
7
7
  import A from "../Checkbox/Checkbox.js";
8
8
  import I from "../Loading/Loading.js";
@@ -1,7 +1,7 @@
1
1
  import "../../jsx-runtime-BcAkpsdy.js";
2
2
  import "react";
3
3
  import "../../index-BHf7G3IG.js";
4
- import { T as u } from "../../TableHeader-Cjx9ZwYH.js";
4
+ import { T as u } from "../../TableHeader-CZpy30xO.js";
5
5
  import "../../enums/appearance.js";
6
6
  import "../Button/Button.js";
7
7
  import "../Heading/Heading.js";
@@ -56,7 +56,7 @@ import { default as le } from "./Stepper/Stepper.js";
56
56
  import { default as pe } from "./Switch/Switch.js";
57
57
  import { default as xe } from "./Tab/Tab.js";
58
58
  import { default as ue } from "./Table/Table.js";
59
- import { T as ne } from "../TableHeader-Cjx9ZwYH.js";
59
+ import { T as ne } from "../TableHeader-CZpy30xO.js";
60
60
  import { default as Ce } from "./Textarea/Textarea.js";
61
61
  import { default as Te } from "./Tooltip/Tooltip.js";
62
62
  import { default as Se } from "./TypographyText/TypographyText.js";
package/dist/index.js CHANGED
@@ -61,7 +61,7 @@ import { default as yr } from "./components/Stepper/Stepper.js";
61
61
  import { default as hr } from "./components/Switch/Switch.js";
62
62
  import { default as wr } from "./components/Tab/Tab.js";
63
63
  import { default as Br } from "./components/Table/Table.js";
64
- import { T as Hr } from "./TableHeader-Cjx9ZwYH.js";
64
+ import { T as Hr } from "./TableHeader-CZpy30xO.js";
65
65
  import { default as Vr } from "./components/Textarea/Textarea.js";
66
66
  import { default as jr } from "./components/Tooltip/Tooltip.js";
67
67
  import { default as Kr } from "./components/TypographyText/TypographyText.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cagatayfdn/flora-components",
3
- "version": "0.0.104",
3
+ "version": "0.0.106",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",