@situaction/traq-ui-ste 1.1.16 → 1.1.17
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/README.md +42 -5
- package/dist/X-Bd1VjKAF.mjs +190 -0
- package/dist/components/button/Button.d.ts +2 -2
- package/dist/components/button/Button.js +4 -3
- package/dist/components/buttonControledScroll/ButtonControlledScroll.d.ts +11 -1
- package/dist/components/calendar/Calendar.d.ts +6 -0
- package/dist/components/calendar/Calendar.js +833 -509
- package/dist/components/card/Card.d.ts +7 -0
- package/dist/components/checkbox/Checkbox.d.ts +4 -0
- package/dist/components/icon/Icon.d.ts +18 -0
- package/dist/components/icon/Icon.js +78592 -0
- package/dist/components/icon-button/IconButton.d.ts +8 -3
- package/dist/components/input/Input.d.ts +5 -0
- package/dist/components/list/list-controls/ListControls.d.ts +19 -0
- package/dist/components/list/list-controls/ListControls.js +49 -0
- package/dist/components/list/nested-list/NestedList.d.ts +18 -0
- package/dist/components/list/nested-list/NestedList.js +19 -0
- package/dist/components/list/nested-list/item/NestedListItem.d.ts +23 -0
- package/dist/components/list/nested-list/item/NestedListItem.js +71 -0
- package/dist/components/menu/Menu.d.ts +57 -0
- package/dist/components/menu/Menu.js +117 -0
- package/dist/components/modal/Modal.d.ts +32 -0
- package/dist/components/modal/Modal.js +24 -0
- package/dist/components/panel/side-panel/SidePanel.d.ts +30 -0
- package/dist/components/panel/side-panel/SidePanel.js +47 -0
- package/dist/components/panel/side-panel-header/SidePanelHeader.d.ts +22 -0
- package/dist/components/panel/side-panel-header/SidePanelHeader.js +60 -0
- package/dist/components/select/Select.d.ts +34 -15
- package/dist/components/select/Select.js +79 -64
- package/dist/components/select-filter-input-tags/SelectFilterInputTags.d.ts +17 -0
- package/dist/components/select-filter-input-tags/SelectFilterInputTags.js +31 -0
- package/dist/components/select-multi-items/SelectMultiItems.d.ts +24 -0
- package/dist/components/select-multi-items/SelectMultiItems.js +44 -0
- package/dist/components/switch/Switch.d.ts +30 -0
- package/dist/components/switch/Switch.js +93 -0
- package/dist/components/tabs/Tabs.d.ts +4 -0
- package/dist/components/tabs/Tabs.js +14 -13
- package/dist/components/tag/Tag.d.ts +4 -0
- package/dist/components/tag-counter/TagCounter.d.ts +5 -0
- package/dist/components/theme/variables_dark.d.ts +9 -0
- package/dist/components/theme/variables_dark.js +10 -1
- package/dist/components/theme/variables_light.d.ts +9 -0
- package/dist/components/theme/variables_light.js +10 -1
- package/dist/components/title/Title.d.ts +3 -0
- package/dist/components/tooltip/Tooltip.d.ts +5 -0
- package/dist/main.d.ts +11 -0
- package/dist/main.js +58 -34
- package/dist/styles/Button.css +1 -1
- package/dist/styles/ListControls.css +1 -0
- package/dist/styles/Menu.css +1 -0
- package/dist/styles/Modal.css +1 -0
- package/dist/styles/NestedList.css +1 -0
- package/dist/styles/NestedListItem.css +1 -0
- package/dist/styles/Select.css +1 -1
- package/dist/styles/SelectFilterInputTags.css +1 -0
- package/dist/styles/SelectMultiItems.css +1 -0
- package/dist/styles/SidePanel.css +1 -0
- package/dist/styles/SidePanelHeader.css +1 -0
- package/dist/styles/Switch.css +1 -0
- package/dist/styles/index.css +1 -0
- package/package.json +5 -4
- /package/dist/styles/{main.css → Size.css} +0 -0
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
|
-
|
|
4
|
+
## Installation
|
|
5
5
|
|
|
6
|
-
|
|
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
|
-
|
|
13
|
+
`@phosphor-icons/react` :
|
|
9
14
|
|
|
10
|
-
|
|
11
|
-
|
|
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,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/
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
|
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>;
|