@situaction/traq-ui-ste 1.1.16 → 1.1.18

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.
Files changed (68) hide show
  1. package/README.md +42 -5
  2. package/dist/X-Bd1VjKAF.mjs +190 -0
  3. package/dist/components/accordion/Accordion.d.ts +3 -0
  4. package/dist/components/accordion/Accordion.js +6 -5
  5. package/dist/components/accordion/item/AccordionItem.d.ts +3 -0
  6. package/dist/components/accordion/item/AccordionItem.js +34 -30
  7. package/dist/components/button/Button.d.ts +2 -2
  8. package/dist/components/button/Button.js +4 -3
  9. package/dist/components/buttonControledScroll/ButtonControlledScroll.d.ts +11 -1
  10. package/dist/components/calendar/Calendar.d.ts +6 -0
  11. package/dist/components/calendar/Calendar.js +833 -509
  12. package/dist/components/card/Card.d.ts +7 -0
  13. package/dist/components/checkbox/Checkbox.d.ts +4 -0
  14. package/dist/components/icon/Icon.d.ts +18 -0
  15. package/dist/components/icon/Icon.js +78592 -0
  16. package/dist/components/icon-button/IconButton.d.ts +8 -3
  17. package/dist/components/input/Input.d.ts +5 -0
  18. package/dist/components/list/list-controls/ListControls.d.ts +19 -0
  19. package/dist/components/list/list-controls/ListControls.js +49 -0
  20. package/dist/components/list/nested-list/NestedList.d.ts +18 -0
  21. package/dist/components/list/nested-list/NestedList.js +19 -0
  22. package/dist/components/list/nested-list/item/NestedListItem.d.ts +23 -0
  23. package/dist/components/list/nested-list/item/NestedListItem.js +71 -0
  24. package/dist/components/menu/Menu.d.ts +59 -0
  25. package/dist/components/menu/Menu.js +121 -0
  26. package/dist/components/modal/Modal.d.ts +32 -0
  27. package/dist/components/modal/Modal.js +24 -0
  28. package/dist/components/panel/side-panel/SidePanel.d.ts +30 -0
  29. package/dist/components/panel/side-panel/SidePanel.js +47 -0
  30. package/dist/components/panel/side-panel-header/SidePanelHeader.d.ts +22 -0
  31. package/dist/components/panel/side-panel-header/SidePanelHeader.js +60 -0
  32. package/dist/components/select/Select.d.ts +34 -15
  33. package/dist/components/select/Select.js +79 -64
  34. package/dist/components/select-filter-input-tags/SelectFilterInputTags.d.ts +17 -0
  35. package/dist/components/select-filter-input-tags/SelectFilterInputTags.js +31 -0
  36. package/dist/components/select-multi-items/SelectMultiItems.d.ts +24 -0
  37. package/dist/components/select-multi-items/SelectMultiItems.js +44 -0
  38. package/dist/components/switch/Switch.d.ts +30 -0
  39. package/dist/components/switch/Switch.js +93 -0
  40. package/dist/components/tabs/Tabs.d.ts +4 -0
  41. package/dist/components/tabs/Tabs.js +14 -13
  42. package/dist/components/tag/Tag.d.ts +4 -0
  43. package/dist/components/tag-counter/TagCounter.d.ts +5 -0
  44. package/dist/components/theme/variables_dark.d.ts +9 -0
  45. package/dist/components/theme/variables_dark.js +10 -1
  46. package/dist/components/theme/variables_light.d.ts +9 -0
  47. package/dist/components/theme/variables_light.js +10 -1
  48. package/dist/components/title/Title.d.ts +3 -0
  49. package/dist/components/tooltip/Tooltip.d.ts +5 -0
  50. package/dist/main.d.ts +15 -4
  51. package/dist/main.js +58 -34
  52. package/dist/styles/AccordionItem.css +1 -1
  53. package/dist/styles/Button.css +1 -1
  54. package/dist/styles/ListControls.css +1 -0
  55. package/dist/styles/Menu.css +1 -0
  56. package/dist/styles/Modal.css +1 -0
  57. package/dist/styles/NestedList.css +1 -0
  58. package/dist/styles/NestedListItem.css +1 -0
  59. package/dist/styles/Select.css +1 -1
  60. package/dist/styles/SelectFilterInputTags.css +1 -0
  61. package/dist/styles/SelectMultiItems.css +1 -0
  62. package/dist/styles/SidePanel.css +1 -0
  63. package/dist/styles/SidePanelHeader.css +1 -0
  64. package/dist/styles/Size.css +1 -0
  65. package/dist/styles/Switch.css +1 -0
  66. package/dist/styles/index.css +1 -0
  67. package/package.json +5 -4
  68. package/dist/styles/main.css +0 -1
package/README.md CHANGED
@@ -1,11 +1,48 @@
1
1
  # Traq[UI]ste
2
2
  Tra[UI]ste est une librairie de composant crée par Situaction.
3
3
 
4
- # React + TypeScript + Vite
4
+ ## Installation
5
5
 
6
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
6
+ ### Installation de la librairie
7
+ ```
8
+ npm i @situaction/traq-ui-ste
9
+ ```
10
+ ### Dépendances
11
+ Votre projet doit avoir installé certaines dépendances:
7
12
 
8
- Currently, two official plugins are available:
13
+ `@phosphor-icons/react` :
9
14
 
10
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
11
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
15
+ ```bash
16
+ npm install @phosphor-icons/react
17
+ ````
18
+
19
+ `date-fns` :
20
+
21
+ ```bash
22
+ npm install date-fns --save
23
+ ```
24
+
25
+ ### Composants de la librairie
26
+ - Accordion
27
+ - Button
28
+ - ButtonControlledScroll
29
+ - Calendar
30
+ - Card
31
+ - Checkbox
32
+ - Icon
33
+ - IconButton
34
+ - Input
35
+ - ListControls
36
+ - Menu
37
+ - Modal
38
+ - NestedList
39
+ - Select
40
+ - SelectFilterInputTags
41
+ - SelectMultiItems
42
+ - Switch
43
+ - SidePanel
44
+ - Tabs
45
+ - Tag
46
+ - TagCounter
47
+ - Title
48
+ - Tooltip
@@ -0,0 +1,190 @@
1
+ import t, { createContext as C, forwardRef as o, useContext as I } from "react";
2
+ const z = /* @__PURE__ */ new Map([
3
+ [
4
+ "bold",
5
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))
6
+ ],
7
+ [
8
+ "duotone",
9
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,96l-80,80L48,96Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z" }))
10
+ ],
11
+ [
12
+ "fill",
13
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z" }))
14
+ ],
15
+ [
16
+ "light",
17
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z" }))
18
+ ],
19
+ [
20
+ "regular",
21
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }))
22
+ ],
23
+ [
24
+ "thin",
25
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))
26
+ ]
27
+ ]), D = /* @__PURE__ */ new Map([
28
+ [
29
+ "bold",
30
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z" }))
31
+ ],
32
+ [
33
+ "duotone",
34
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,160H48l80-80Z", opacity: "0.2" }), /* @__PURE__ */ t.createElement("path", { d: "M213.66,154.34l-80-80a8,8,0,0,0-11.32,0l-80,80A8,8,0,0,0,48,168H208a8,8,0,0,0,5.66-13.66ZM67.31,152,128,91.31,188.69,152Z" }))
35
+ ],
36
+ [
37
+ "fill",
38
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M215.39,163.06A8,8,0,0,1,208,168H48a8,8,0,0,1-5.66-13.66l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,215.39,163.06Z" }))
39
+ ],
40
+ [
41
+ "light",
42
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M212.24,164.24a6,6,0,0,1-8.48,0L128,88.49,52.24,164.24a6,6,0,0,1-8.48-8.48l80-80a6,6,0,0,1,8.48,0l80,80A6,6,0,0,1,212.24,164.24Z" }))
43
+ ],
44
+ [
45
+ "regular",
46
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }))
47
+ ],
48
+ [
49
+ "thin",
50
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M210.83,162.83a4,4,0,0,1-5.66,0L128,85.66,50.83,162.83a4,4,0,0,1-5.66-5.66l80-80a4,4,0,0,1,5.66,0l80,80A4,4,0,0,1,210.83,162.83Z" }))
51
+ ]
52
+ ]), N = /* @__PURE__ */ new Map([
53
+ [
54
+ "bold",
55
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z" }))
56
+ ],
57
+ [
58
+ "duotone",
59
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
60
+ "path",
61
+ {
62
+ d: "M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z",
63
+ opacity: "0.2"
64
+ }
65
+ ), /* @__PURE__ */ t.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
66
+ ],
67
+ [
68
+ "fill",
69
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
70
+ ],
71
+ [
72
+ "light",
73
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z" }))
74
+ ],
75
+ [
76
+ "regular",
77
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z" }))
78
+ ],
79
+ [
80
+ "thin",
81
+ /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("path", { d: "M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z" }))
82
+ ]
83
+ ]), S = C({
84
+ color: "currentColor",
85
+ size: "1em",
86
+ weight: "regular",
87
+ mirrored: !1
88
+ });
89
+ var V = Object.defineProperty, c = Object.getOwnPropertySymbols, O = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable, g = (a, e, r) => e in a ? V(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r, d = (a, e) => {
90
+ for (var r in e || (e = {}))
91
+ O.call(e, r) && g(a, r, e[r]);
92
+ if (c)
93
+ for (var r of c(e))
94
+ L.call(e, r) && g(a, r, e[r]);
95
+ return a;
96
+ }, f = (a, e) => {
97
+ var r = {};
98
+ for (var l in a)
99
+ O.call(a, l) && e.indexOf(l) < 0 && (r[l] = a[l]);
100
+ if (a != null && c)
101
+ for (var l of c(a))
102
+ e.indexOf(l) < 0 && L.call(a, l) && (r[l] = a[l]);
103
+ return r;
104
+ };
105
+ const M = o((a, e) => {
106
+ const r = a, {
107
+ alt: l,
108
+ color: i,
109
+ size: n,
110
+ weight: p,
111
+ mirrored: $,
112
+ children: Z,
113
+ weights: j
114
+ } = r, A = f(r, [
115
+ "alt",
116
+ "color",
117
+ "size",
118
+ "weight",
119
+ "mirrored",
120
+ "children",
121
+ "weights"
122
+ ]), s = I(S), {
123
+ color: F = "currentColor",
124
+ size: u,
125
+ weight: P = "regular",
126
+ mirrored: H = !1
127
+ } = s, x = f(s, [
128
+ "color",
129
+ "size",
130
+ "weight",
131
+ "mirrored"
132
+ ]);
133
+ return /* @__PURE__ */ t.createElement(
134
+ "svg",
135
+ d(d({
136
+ ref: e,
137
+ xmlns: "http://www.w3.org/2000/svg",
138
+ width: n ?? u,
139
+ height: n ?? u,
140
+ fill: i ?? F,
141
+ viewBox: "0 0 256 256",
142
+ transform: $ || H ? "scale(-1, 1)" : void 0
143
+ }, x), A),
144
+ !!l && /* @__PURE__ */ t.createElement("title", null, l),
145
+ Z,
146
+ j.get(p ?? P)
147
+ );
148
+ });
149
+ M.displayName = "IconBase";
150
+ const m = M;
151
+ var B = Object.defineProperty, R = Object.defineProperties, U = Object.getOwnPropertyDescriptors, E = Object.getOwnPropertySymbols, X = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable, h = (a, e, r) => e in a ? B(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r, q = (a, e) => {
152
+ for (var r in e || (e = {}))
153
+ X.call(e, r) && h(a, r, e[r]);
154
+ if (E)
155
+ for (var r of E(e))
156
+ k.call(e, r) && h(a, r, e[r]);
157
+ return a;
158
+ }, G = (a, e) => R(a, U(e));
159
+ const J = o((a, e) => /* @__PURE__ */ t.createElement(m, G(q({ ref: e }, a), { weights: z })));
160
+ J.displayName = "CaretDown";
161
+ var K = Object.defineProperty, Q = Object.defineProperties, T = Object.getOwnPropertyDescriptors, b = Object.getOwnPropertySymbols, W = Object.prototype.hasOwnProperty, Y = Object.prototype.propertyIsEnumerable, v = (a, e, r) => e in a ? K(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r, _ = (a, e) => {
162
+ for (var r in e || (e = {}))
163
+ W.call(e, r) && v(a, r, e[r]);
164
+ if (b)
165
+ for (var r of b(e))
166
+ Y.call(e, r) && v(a, r, e[r]);
167
+ return a;
168
+ }, e1 = (a, e) => Q(a, T(e));
169
+ const t1 = o((a, e) => /* @__PURE__ */ t.createElement(m, e1(_({ ref: e }, a), { weights: D })));
170
+ t1.displayName = "CaretUp";
171
+ var a1 = Object.defineProperty, r1 = Object.defineProperties, l1 = Object.getOwnPropertyDescriptors, y = Object.getOwnPropertySymbols, n1 = Object.prototype.hasOwnProperty, c1 = Object.prototype.propertyIsEnumerable, w = (a, e, r) => e in a ? a1(a, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[e] = r, o1 = (a, e) => {
172
+ for (var r in e || (e = {}))
173
+ n1.call(e, r) && w(a, r, e[r]);
174
+ if (y)
175
+ for (var r of y(e))
176
+ c1.call(e, r) && w(a, r, e[r]);
177
+ return a;
178
+ }, m1 = (a, e) => r1(a, l1(e));
179
+ const i1 = o((a, e) => /* @__PURE__ */ t.createElement(m, m1(o1({ ref: e }, a), { weights: N })));
180
+ i1.displayName = "X";
181
+ export {
182
+ J as D,
183
+ t1 as I,
184
+ i1 as R,
185
+ D as a,
186
+ m as b,
187
+ z as l,
188
+ S as o,
189
+ N as t
190
+ };
@@ -1,4 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
+ import { Size } from '../interface';
2
3
 
3
4
  export interface AccordionProps {
4
5
  /** An array of accordion items, each containing a header, content, and optional settings. */
@@ -14,6 +15,8 @@ export interface AccordionProps {
14
15
  }[];
15
16
  /** Accordion style if block type the header and the content are in the same block, if it is tile they are separated into 2 blocks */
16
17
  type?: 'block' | 'tile';
18
+ /** Padding size inside the Accordion: small, medium, large */
19
+ paddingHeader?: Size;
17
20
  }
18
21
  /**
19
22
  * Accordion component that displays a list of AccordionItem components.
@@ -1,18 +1,19 @@
1
1
  import { jsx as c } from "react/jsx-runtime";
2
2
  import { AccordionItem as i } from "./item/AccordionItem.js";
3
- import '../../styles/Accordion.css';const t = "_accordion_hz3a1_6", a = {
4
- accordion: t
5
- }, l = ({ items: n, type: r = "block" }) => /* @__PURE__ */ c("div", { className: a.accordion, children: n.map((o, e) => /* @__PURE__ */ c(
3
+ import '../../styles/Accordion.css';const a = "_accordion_hz3a1_6", t = {
4
+ accordion: a
5
+ }, p = ({ items: n, type: r = "block", paddingHeader: e }) => /* @__PURE__ */ c("div", { className: t.accordion, children: n.map((o, d) => /* @__PURE__ */ c(
6
6
  i,
7
7
  {
8
8
  header: o.header,
9
9
  iconPosition: o.iconPosition ?? "right",
10
10
  defaultOpen: o.defaultOpen ?? !1,
11
11
  type: r ?? "block",
12
+ paddingHeader: e ?? "m",
12
13
  children: o.content
13
14
  },
14
- e
15
+ d
15
16
  )) });
16
17
  export {
17
- l as Accordion
18
+ p as Accordion
18
19
  };
@@ -1,4 +1,5 @@
1
1
  import { FC, ReactNode } from 'react';
2
+ import { Size } from '../../interface';
2
3
 
3
4
  interface AccordionItemProps {
4
5
  /** The header content of the accordion item. */
@@ -11,6 +12,8 @@ interface AccordionItemProps {
11
12
  defaultOpen?: boolean;
12
13
  /** Accordion style if block type the header and the content are in the same block, if it is tile they are separated into 2 blocks */
13
14
  type?: 'block' | 'tile';
15
+ /** Padding size inside the Accordion: small, medium, large */
16
+ paddingHeader?: Size;
14
17
  }
15
18
  /**
16
19
  * AccordionItem component represents an individual item in an accordion.
@@ -1,48 +1,52 @@
1
- import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { useState as d, useEffect as w } from "react";
3
- import { IconButton as n } from "../../icon-button/IconButton.js";
4
- import '../../../styles/AccordionItem.css';const g = "_accordionHeader_e4xbv_7", v = "_title_e4xbv_16", _ = "_accordionContent_e4xbv_21", m = "_fullHeight_e4xbv_26", x = "_block_e4xbv_30", f = "_tile_e4xbv_38", l = {
5
- accordionHeader: g,
6
- title: v,
7
- accordionContent: _,
1
+ import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
+ import { useState as g, useEffect as _ } from "react";
3
+ import { IconButton as a } from "../../icon-button/IconButton.js";
4
+ import '../../../styles/AccordionItem.css';const w = "_accordionHeader_1tsuj_7", p = "_title_1tsuj_31", m = "_fullHeight_1tsuj_36", v = "_block_1tsuj_40", f = "_tile_1tsuj_48", l = {
5
+ accordionHeader: w,
6
+ "padding-s": "_padding-s_1tsuj_15",
7
+ "padding-m": "_padding-m_1tsuj_19",
8
+ "padding-l": "_padding-l_1tsuj_23",
9
+ "padding-xl": "_padding-xl_1tsuj_27",
10
+ title: p,
8
11
  fullHeight: m,
9
- block: x,
12
+ block: v,
10
13
  tile: f
11
- }, H = ({
12
- header: r,
13
- children: h,
14
- iconPosition: c = "right",
15
- defaultOpen: i = !1,
16
- type: a = "block"
14
+ }, k = ({
15
+ header: c,
16
+ children: n,
17
+ iconPosition: d = "right",
18
+ defaultOpen: e = !1,
19
+ type: h = "block",
20
+ paddingHeader: r = "m"
17
21
  }) => {
18
- const [e, o] = d(!1);
19
- return w(() => {
20
- i && o(i);
21
- }, [i]), /* @__PURE__ */ s("div", { className: `${a === "tile" ? l.tile : l.block}`, children: [
22
- /* @__PURE__ */ s("div", { className: l.accordionHeader, children: [
23
- c === "left" && /* @__PURE__ */ t(
24
- n,
22
+ const [i, s] = g(!1);
23
+ return _(() => {
24
+ e && s(e);
25
+ }, [e]), /* @__PURE__ */ o("div", { className: `${h === "tile" ? l.tile : l.block}`, children: [
26
+ /* @__PURE__ */ o("div", { className: `${l.accordionHeader} ${l[`padding-${r}`]}`, children: [
27
+ d === "left" && /* @__PURE__ */ t(
28
+ a,
25
29
  {
26
30
  mode: "ghost",
27
31
  size: "s",
28
- onClick: () => o(!e),
29
- children: e ? /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }) }) : /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }) })
32
+ onClick: () => s(!i),
33
+ children: i ? /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }) }) : /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }) })
30
34
  }
31
35
  ),
32
- /* @__PURE__ */ t("div", { className: l.title, children: r }),
33
- c === "right" && /* @__PURE__ */ t(
34
- n,
36
+ /* @__PURE__ */ t("div", { className: l.title, children: c }),
37
+ d === "right" && /* @__PURE__ */ t(
38
+ a,
35
39
  {
36
40
  mode: "ghost",
37
41
  size: "s",
38
- onClick: () => o(!e),
39
- children: e ? /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }) }) : /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }) })
42
+ onClick: () => s(!i),
43
+ children: i ? /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z" }) }) : /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "#000000", viewBox: "0 0 256 256", children: /* @__PURE__ */ t("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }) })
40
44
  }
41
45
  )
42
46
  ] }),
43
- e && /* @__PURE__ */ t("div", { className: l.accordionContent, children: h })
47
+ i && n
44
48
  ] });
45
49
  };
46
50
  export {
47
- H as AccordionItem
51
+ k as AccordionItem
48
52
  };
@@ -1,4 +1,4 @@
1
- import { ButtonHTMLAttributes, FC, ReactNode } from 'react';
1
+ import { ButtonHTMLAttributes, FC, ReactNode, MouseEvent } from 'react';
2
2
  import { Size } from '../interface';
3
3
 
4
4
  export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
@@ -17,7 +17,7 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
17
17
  /** Additional content inside the input */
18
18
  childrenRight?: ReactNode;
19
19
  /** Optional click handler */
20
- onClick?: () => void;
20
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
21
21
  }
22
22
  /**
23
23
  * Primary UI component for user interaction
@@ -1,5 +1,6 @@
1
1
  import { jsxs as p, jsx as n } from "react/jsx-runtime";
2
- import '../../styles/Button.css';const v = "_button_wt8sv_23", w = "_flexHorizontalCenter_wt8sv_184", t = {
2
+ import '../../styles/index.css';import '../../styles/Button.css';/* empty css */
3
+ const v = "_button_wt8sv_23", w = "_flexHorizontalCenter_wt8sv_184", t = {
3
4
  button: v,
4
5
  "button-primary": "_button-primary_wt8sv_47",
5
6
  "button-secondary": "_button-secondary_wt8sv_61",
@@ -19,7 +20,7 @@ import '../../styles/Button.css';const v = "_button_wt8sv_23", w = "_flexHorizon
19
20
  "button-gap-m": "_button-gap-m_wt8sv_171",
20
21
  "button-gap-s": "_button-gap-s_wt8sv_180",
21
22
  flexHorizontalCenter: w
22
- }, m = ({
23
+ }, c = ({
23
24
  mode: o = "primary",
24
25
  size: e = "m",
25
26
  label: u,
@@ -52,5 +53,5 @@ import '../../styles/Button.css';const v = "_button_wt8sv_23", w = "_flexHorizon
52
53
  );
53
54
  };
54
55
  export {
55
- m as Button
56
+ c as Button
56
57
  };
@@ -1,12 +1,22 @@
1
1
  import { FC, ReactNode } from 'react';
2
2
 
3
3
  export interface ButtonControlledScrollProps {
4
- items: React.ReactNode[];
4
+ /** List of items to be scrolled */
5
+ items: ReactNode[];
6
+ /** Icon to be displayed for the left scroll button */
5
7
  iconLeft: ReactNode;
8
+ /** Icon to be displayed for the right scroll button */
6
9
  iconRight: ReactNode;
10
+ /** Space between items (default is 10px) */
7
11
  gap?: number;
12
+ /** Speed at which the scroll moves when dragging (default is 1.5) */
8
13
  grabSpeed?: number;
14
+ /** Amount of scroll per button click (default is 150px) */
9
15
  scrollAmount?: number;
16
+ /** Whether the scroll container can be dragged (default is true) */
10
17
  grabbable?: boolean;
11
18
  }
19
+ /**
20
+ * ButtonControlledScroll component allowing horizontal scroll with button controls and drag functionality.
21
+ */
12
22
  export declare const ButtonControlledScroll: FC<ButtonControlledScrollProps>;
@@ -14,4 +14,10 @@ export interface CalendarProps {
14
14
  end: Date;
15
15
  }) => void;
16
16
  }
17
+ /**
18
+ * Calendar component that renders a month view for selecting dates.
19
+ *
20
+ * It supports single date selection or date range selection.
21
+ * The calendar allows navigation between months and shows the current date.
22
+ */
17
23
  export declare const Calendar: FC<CalendarProps>;