@cagatayfdn/flora-components 0.0.79 → 0.0.81

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,14 +1,14 @@
1
1
  import { j as e } from "./jsx-runtime-BcAkpsdy.js";
2
2
  import { useState as x, useEffect as G } from "react";
3
3
  import { c as m } from "./index-BHf7G3IG.js";
4
- import { FormFieldAppearance as b, AppearanceButton as R } from "./enums/appearance.js";
4
+ import { FormFieldAppearance as w, AppearanceButton as R } from "./enums/appearance.js";
5
5
  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
- import { S as f } from "./Select-DcLZCXNo.js";
8
+ import { S as b } from "./Select-DcLZCXNo.js";
9
9
  import { u as z } from "./useTranslation-CnCPcxVj.js";
10
10
  import { T as F } from "./Trans-B4ILpbwK.js";
11
- import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4", S = "_title_1n4i1_7", K = "_subTitle_1n4i1_13", M = "_table_1n4i1_18", Y = "_fixed_1n4i1_24", q = "_light_1n4i1_50", C = "_fixedHeader_1n4i1_55", J = "_dark_1n4i1_65", Q = "_tableWrap_1n4i1_68", U = "_actionWrap_1n4i1_113", V = "_tableLoading_1n4i1_117", X = "_selectedAction_1n4i1_127", Z = "_rightGroup_1n4i1_134", $ = "_pageSizeWrap_1n4i1_138", I = "_pager_1n4i1_148", O = "_size_1n4i1_152", ee = "_noResult_1n4i1_156", se = "_scrollWrap_1n4i1_165", te = "_justifyContentEnd_1n4i1_169", ae = "_width100_1n4i1_173", s = {
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
12
  wrapper: B,
13
13
  header: D,
14
14
  title: S,
@@ -27,56 +27,56 @@ import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4",
27
27
  pager: I,
28
28
  size: O,
29
29
  noResult: ee,
30
- scrollWrap: se,
31
- justifyContentEnd: te,
30
+ scrollWrap: te,
31
+ justifyContentEnd: se,
32
32
  width100: ae
33
- }, ne = [
33
+ }, le = [
34
34
  { value: "10", label: "10" },
35
35
  { value: "20", label: "20" },
36
36
  { value: "50", label: "50" },
37
37
  { value: "100", label: "100" },
38
38
  { value: "250", label: "250" }
39
39
  ], me = ({
40
- totalCount: l = 0,
41
- currentPage: h,
42
- title: n,
43
- actionOnChange: i,
44
- className: j,
45
- pagerOnChange: g,
40
+ totalCount: i = 0,
41
+ currentPage: f,
42
+ title: l,
43
+ actionOnChange: r,
44
+ className: h,
45
+ pagerOnChange: j,
46
46
  pageSizeOnChange: d,
47
- pagerVisible: v = !0,
48
- pageSizeVisible: W = !0,
47
+ pagerVisible: g = !0,
48
+ pageSizeVisible: v = !0,
49
49
  pageSize: a = 10,
50
50
  actionItems: o,
51
- pageSizeItems: T = ne,
52
- headerLeftItem: r,
51
+ pageSizeItems: W = le,
52
+ headerLeftItem: n,
53
53
  customItem: c,
54
- appearance: w,
54
+ appearance: T,
55
55
  showItemsText: N
56
56
  }) => {
57
- const { t: _ } = z(), [y, p] = x(!0), [A, u] = x({
57
+ const { t: _ } = z(), [y, u] = x(!0), [A, p] = x({
58
58
  label: a,
59
59
  value: a
60
- }), H = (t) => [
61
- { value: "exportexel", label: t("text.excel_export") }
62
- ], E = (t) => {
63
- p(!t), i && i(t);
60
+ }), H = (s) => [
61
+ { value: "exportexel", label: s("text.excel_export") }
62
+ ], E = (s) => {
63
+ u(!s), r && r(s);
64
64
  };
65
65
  return o = o || H(_), G(() => {
66
- u({ label: a, value: a });
66
+ p({ label: a, value: a });
67
67
  }, [a]), /* @__PURE__ */ e.jsxs(
68
68
  "div",
69
69
  {
70
70
  "data-testid": "tableheader-container",
71
- className: m(s.header, j, {
72
- "d-flex justify-content-between": n && !i || c,
73
- "d-flex justify-content-end": !n && !i
71
+ className: m(t.header, h, {
72
+ "d-flex justify-content-between": l && !r || c,
73
+ "d-flex justify-content-end": !l && !r
74
74
  }),
75
75
  children: [
76
- n && /* @__PURE__ */ e.jsxs("div", { children: [
77
- /* @__PURE__ */ e.jsx(L, { className: s.title, children: n }),
78
- /* @__PURE__ */ e.jsxs("p", { className: s.subTitle, children: [
79
- l,
76
+ l && /* @__PURE__ */ e.jsxs("div", { children: [
77
+ /* @__PURE__ */ e.jsx(L, { className: t.title, children: l }),
78
+ /* @__PURE__ */ e.jsxs("p", { className: t.subTitle, children: [
79
+ i,
80
80
  " ",
81
81
  _("text.results_listing")
82
82
  ] })
@@ -85,18 +85,18 @@ import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4",
85
85
  /* @__PURE__ */ e.jsx(
86
86
  "div",
87
87
  {
88
- className: m(s.actionWrap, {
89
- [s.justifyContentEnd]: !r,
90
- [s.width100]: r
88
+ className: m(t.actionWrap, {
89
+ [t.justifyContentEnd]: !n,
90
+ [t.width100]: n
91
91
  }),
92
92
  children: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
93
- i && /* @__PURE__ */ e.jsxs("div", { className: s.selectedAction, children: [
93
+ r && /* @__PURE__ */ e.jsxs("div", { className: t.selectedAction, children: [
94
94
  /* @__PURE__ */ e.jsx(
95
- f,
95
+ b,
96
96
  {
97
97
  name: "action",
98
98
  items: o,
99
- appearance: b.LIGHT,
99
+ appearance: w.LIGHT,
100
100
  onChange: E
101
101
  }
102
102
  ),
@@ -109,40 +109,40 @@ import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4",
109
109
  }
110
110
  )
111
111
  ] }),
112
- r && r,
113
- /* @__PURE__ */ e.jsxs("div", { className: s.rightGroup, children: [
114
- W && /* @__PURE__ */ e.jsxs("div", { className: s.pageSizeWrap, children: [
112
+ n && n,
113
+ /* @__PURE__ */ e.jsxs("div", { className: t.rightGroup, children: [
114
+ v && /* @__PURE__ */ e.jsxs("div", { className: t.pageSizeWrap, children: [
115
115
  /* @__PURE__ */ e.jsx(
116
- f,
116
+ b,
117
117
  {
118
118
  name: "action",
119
119
  value: A,
120
- items: T,
121
- className: s.size,
120
+ items: W,
121
+ className: t.size,
122
122
  showPlaceholder: !1,
123
- onAddItem: ({ item: t }) => {
124
- u(t), d && d(t.value);
123
+ onAddItem: ({ item: s }) => {
124
+ p(s), d && d(s.value);
125
125
  },
126
- appearance: b.LIGHT
126
+ appearance: w.LIGHT
127
127
  }
128
128
  ),
129
129
  /* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
130
130
  F,
131
131
  {
132
132
  i18nKey: "text.show",
133
- values: { title: N || n }
133
+ values: { title: N || l }
134
134
  }
135
135
  ) })
136
136
  ] }),
137
- v && l > 0 && /* @__PURE__ */ e.jsx(
137
+ g && i > 0 && /* @__PURE__ */ e.jsx(
138
138
  k,
139
139
  {
140
- currentPage: h,
140
+ currentPage: f,
141
141
  pageSize: a,
142
- totalCount: l,
143
- onChange: g,
144
- appearance: w,
145
- className: s.pager
142
+ totalCount: i,
143
+ onChange: j,
144
+ appearance: T,
145
+ className: t.pager
146
146
  }
147
147
  )
148
148
  ] })
@@ -155,5 +155,5 @@ import './TableHeader.css';const B = "_wrapper_1n4i1_1", D = "_header_1n4i1_4",
155
155
  };
156
156
  export {
157
157
  me as T,
158
- s
158
+ t as s
159
159
  };
@@ -1 +1 @@
1
- ._wrapper_1n4i1_1{position:relative}._wrapper_1n4i1_1 ._header_1n4i1_4{padding:20px}._wrapper_1n4i1_1 ._header_1n4i1_4 ._title_1n4i1_7{font-size:18px;font-weight:500;color:#062a4a;margin:0}._wrapper_1n4i1_1 ._header_1n4i1_4 ._subTitle_1n4i1_13{margin:0;font-weight:400;color:#788195}._wrapper_1n4i1_1 ._table_1n4i1_18{width:100%;text-align:left;border-spacing:0px;border-collapse:collapse}._wrapper_1n4i1_1 ._table_1n4i1_18._fixed_1n4i1_24{position:relative}._wrapper_1n4i1_1 ._table_1n4i1_18._fixed_1n4i1_24 th{position:sticky;box-shadow:0 2px 2px -1px #00000080;top:0;background:#333b57;z-index:999}._wrapper_1n4i1_1 ._table_1n4i1_18 thead{background-color:#f1f3f9}._wrapper_1n4i1_1 ._table_1n4i1_18 td,._wrapper_1n4i1_1 ._table_1n4i1_18 th{padding:10px 20px;border:1px solid #eef0f2;color:#3f4b5c}._wrapper_1n4i1_1 ._table_1n4i1_18 th{font-weight:500;font-size:12px}._wrapper_1n4i1_1 ._table_1n4i1_18 td{font-weight:400}._wrapper_1n4i1_1._light_1n4i1_50{background-color:#fff;color:#000;border-radius:10px}._wrapper_1n4i1_1._light_1n4i1_50 ._table_1n4i1_18._fixedHeader_1n4i1_55 th{top:0;background:#fff}._wrapper_1n4i1_1._light_1n4i1_50 ._table_1n4i1_18 tbody td{padding:20px}._wrapper_1n4i1_1._light_1n4i1_50 ._table_1n4i1_18 tbody tr:nth-child(2n) td{background-color:#fdfdfd}._wrapper_1n4i1_1._dark_1n4i1_65 ._header_1n4i1_4{padding:20px 12px}._wrapper_1n4i1_1._dark_1n4i1_65>._tableWrap_1n4i1_68{position:relative;border-radius:10px;box-shadow:0 2px 4px #0003;background-color:#333b57;padding:30px;height:100%}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 thead{background:none}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 thead th{border:none}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 td,._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 th{border:none;color:#3f4b5c}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 td:first-child,._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 th:first-child{padding-left:0}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 td:last-child,._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 th:last-child{padding-right:0}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 th{color:#9b9b9b;font-size:11px;font-weight:600;letter-spacing:.39px;text-transform:uppercase;padding-top:0}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 td{color:#eef0f2;font-size:16px;font-weight:500;border-bottom:1px solid #3f4b5c}._wrapper_1n4i1_1._dark_1n4i1_65 ._table_1n4i1_18 tbody tr:last-child td{border-bottom:none;padding-bottom:0}._wrapper_1n4i1_1._dark_1n4i1_65 ._actionWrap_1n4i1_113{margin-top:0}._tableLoading_1n4i1_117{border-radius:10px}._actionWrap_1n4i1_113{display:flex;justify-content:space-between;margin-top:10px}._selectedAction_1n4i1_127{display:flex}._selectedAction_1n4i1_127 button{margin-left:15px}._rightGroup_1n4i1_134{display:flex}._pageSizeWrap_1n4i1_138{display:inline-flex;align-items:center}._pageSizeWrap_1n4i1_138 span{margin-left:10px;font-weight:500;color:#788195}._pager_1n4i1_148{margin-left:35px}._size_1n4i1_152{max-width:75px}._noResult_1n4i1_156{text-align:left;display:flex;font-weight:500;font-size:15px;min-height:60px;align-items:center}._scrollWrap_1n4i1_165{max-height:100%!important}._justifyContentEnd_1n4i1_169{justify-content:flex-end}._width100_1n4i1_173{width:100%}
1
+ ._wrapper_1tluw_1{position:relative}._wrapper_1tluw_1 ._header_1tluw_4{padding:20px}._wrapper_1tluw_1 ._header_1tluw_4 ._title_1tluw_7{font-size:18px;font-weight:500;color:#062a4a;margin:0}._wrapper_1tluw_1 ._header_1tluw_4 ._subTitle_1tluw_13{margin:0;font-weight:400;color:#788195}._wrapper_1tluw_1 ._table_1tluw_18{width:100%;text-align:left;border-spacing:0px;border-collapse:collapse}._wrapper_1tluw_1 ._table_1tluw_18._fixed_1tluw_24{position:relative}._wrapper_1tluw_1 ._table_1tluw_18._fixed_1tluw_24 th{position:sticky;box-shadow:0 2px 2px -1px #00000080;top:0;background:#333b57;z-index:999}._wrapper_1tluw_1 ._table_1tluw_18 thead{background-color:#f1f3f9}._wrapper_1tluw_1 ._table_1tluw_18 td,._wrapper_1tluw_1 ._table_1tluw_18 th{padding:10px 20px;border:1px solid #eef0f2;color:#3f4b5c}._wrapper_1tluw_1 ._table_1tluw_18 th{font-weight:500;font-size:12px}._wrapper_1tluw_1 ._table_1tluw_18 td{font-weight:400}._wrapper_1tluw_1._light_1tluw_50{background-color:#fff;color:#000;border-radius:10px}._wrapper_1tluw_1._light_1tluw_50 ._table_1tluw_18._fixedHeader_1tluw_55 th{top:0;background:#fff}._wrapper_1tluw_1._light_1tluw_50 ._table_1tluw_18 tbody td{padding:20px}._wrapper_1tluw_1._light_1tluw_50 ._table_1tluw_18 tbody tr:nth-child(2n) td{background-color:#fdfdfd}._wrapper_1tluw_1._dark_1tluw_65 ._header_1tluw_4{padding:20px 12px}._wrapper_1tluw_1._dark_1tluw_65 ._header_1tluw_4 ._title_1tluw_7{color:#fff}._wrapper_1tluw_1._dark_1tluw_65>._tableWrap_1tluw_71{position:relative;border-radius:10px;box-shadow:0 2px 4px #0003;background-color:#333b57;padding:30px;height:100%}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 thead{background:none}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 thead th{border:none}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 td,._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 th{border:none;color:#3f4b5c}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 td:first-child,._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 th:first-child{padding-left:0}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 td:last-child,._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 th:last-child{padding-right:0}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 th{color:#9b9b9b;font-size:11px;font-weight:600;letter-spacing:.39px;text-transform:uppercase;padding-top:0}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 td{color:#eef0f2;font-size:16px;font-weight:500;border-bottom:1px solid #3f4b5c}._wrapper_1tluw_1._dark_1tluw_65 ._table_1tluw_18 tbody tr:last-child td{border-bottom:none;padding-bottom:0}._wrapper_1tluw_1._dark_1tluw_65 ._actionWrap_1tluw_116{margin-top:0}._tableLoading_1tluw_120{border-radius:10px}._actionWrap_1tluw_116{display:flex;justify-content:space-between;margin-top:10px}._selectedAction_1tluw_130{display:flex}._selectedAction_1tluw_130 button{margin-left:15px}._rightGroup_1tluw_137{display:flex}._pageSizeWrap_1tluw_141{display:inline-flex;align-items:center}._pageSizeWrap_1tluw_141 span{margin-left:10px;font-weight:500;color:#788195}._pager_1tluw_151{margin-left:35px}._size_1tluw_155{max-width:75px}._noResult_1tluw_159{text-align:left;display:flex;font-weight:500;font-size:15px;min-height:60px;align-items:center}._scrollWrap_1tluw_168{max-height:100%!important}._justifyContentEnd_1tluw_172{justify-content:flex-end}._width100_1tluw_176{width:100%}
@@ -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-B91BXue0.js";
5
+ import { s as c, T as H } from "../../TableHeader-Cjx9ZwYH.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-B91BXue0.js";
4
+ import { T as u } from "../../TableHeader-Cjx9ZwYH.js";
5
5
  import "../../enums/appearance.js";
6
6
  import "../Button/Button.js";
7
7
  import "../Heading/Heading.js";
@@ -53,7 +53,7 @@ import { default as oe } from "./Stepper/Stepper.js";
53
53
  import { default as re } from "./Switch/Switch.js";
54
54
  import { default as ae } from "./Tab/Tab.js";
55
55
  import { default as le } from "./Table/Table.js";
56
- import { T as pe } from "../TableHeader-B91BXue0.js";
56
+ import { T as pe } from "../TableHeader-Cjx9ZwYH.js";
57
57
  import { default as xe } from "./Textarea/Textarea.js";
58
58
  import { default as ue } from "./Tooltip/Tooltip.js";
59
59
  import { default as ne } from "./TypographyText/TypographyText.js";
package/dist/index.d.mts CHANGED
@@ -1045,6 +1045,8 @@ export declare const Select: {
1045
1045
  displayName: string;
1046
1046
  };
1047
1047
 
1048
+ export { SelectItemRenderer }
1049
+
1048
1050
  export declare type SelectProps = {
1049
1051
  id?: string;
1050
1052
  items?: OptionProps[];
package/dist/index.d.ts CHANGED
@@ -1045,6 +1045,8 @@ export declare const Select: {
1045
1045
  displayName: string;
1046
1046
  };
1047
1047
 
1048
+ export { SelectItemRenderer }
1049
+
1048
1050
  export declare type SelectProps = {
1049
1051
  id?: string;
1050
1052
  items?: OptionProps[];
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ import { default as So } from "./components/Stepper/Stepper.js";
58
58
  import { default as No } from "./components/Switch/Switch.js";
59
59
  import { default as Fo } from "./components/Tab/Tab.js";
60
60
  import { default as yo } from "./components/Table/Table.js";
61
- import { T as ho } from "./TableHeader-B91BXue0.js";
61
+ import { T as ho } from "./TableHeader-Cjx9ZwYH.js";
62
62
  import { default as bo } from "./components/Textarea/Textarea.js";
63
63
  import { default as ko } from "./components/Tooltip/Tooltip.js";
64
64
  import { default as Ho } 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.79",
3
+ "version": "0.0.81",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",