@sme.up/ketchup2 1.0.2 → 1.1.0
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/assets/layoutAssets.d.ts +7 -0
- package/dist/assets/layoutAssets.d.ts.map +1 -0
- package/dist/assets/svg/arrow_left.svg +1 -0
- package/dist/assets/svg/chevron-right.svg +1 -0
- package/dist/assets/svg/drag_indicator_horizontal.svg +11 -0
- package/dist/assets/svg/drag_indicator_vertical.svg +1 -0
- package/dist/assets/svg/groups.svg +1 -0
- package/dist/assets/svg/menu.svg +1 -0
- package/dist/assets/svg/menu_close.svg +1 -0
- package/dist/assets/svg/power_settings_new.svg +1 -0
- package/dist/assets/svg/refresh.svg +1 -0
- package/dist/assets/testAsset.d.ts +158 -0
- package/dist/assets/testAsset.d.ts.map +1 -1
- package/dist/basic-components/button/button-types.d.ts +34 -9
- package/dist/basic-components/button/button-types.d.ts.map +1 -1
- package/dist/basic-components/button/button-utils.d.ts +14 -0
- package/dist/basic-components/button/button-utils.d.ts.map +1 -0
- package/dist/basic-components/button/button.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +9 -3
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/cell/stories/utils.d.ts +1 -1
- package/dist/basic-components/cell/stories/utils.d.ts.map +1 -1
- package/dist/basic-components/cell/tests/utils.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +16 -0
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/combobox/combobox.d.ts.map +1 -1
- package/dist/basic-components/date-picker/date-picker-calendar/date-picker-calendar.d.ts.map +1 -1
- package/dist/basic-components/icon/icon-types.d.ts +39 -1
- package/dist/basic-components/icon/icon-types.d.ts.map +1 -1
- package/dist/basic-components/icon/icon.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/password/password.d.ts.map +1 -1
- package/dist/basic-components/searchbar/search-bar-types.d.ts +3 -0
- package/dist/basic-components/searchbar/search-bar-types.d.ts.map +1 -0
- package/dist/basic-components/searchbar/search-bar.d.ts +3 -0
- package/dist/basic-components/searchbar/search-bar.d.ts.map +1 -0
- package/dist/basic-components/textfield/textfield-types.d.ts +14 -0
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/basic-components/typography/typography-types.d.ts +4 -0
- package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/components/app-bar/app-bar-types.d.ts +20 -0
- package/dist/components/app-bar/app-bar-types.d.ts.map +1 -0
- package/dist/components/app-bar/app-bar.d.ts +3 -0
- package/dist/components/app-bar/app-bar.d.ts.map +1 -0
- package/dist/components/app-bar/app-bar.data.d.ts +155 -0
- package/dist/components/app-bar/app-bar.data.d.ts.map +1 -0
- package/dist/components/dash-list/dash-list.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-group.d.ts +49 -0
- package/dist/components/data-table/assets/data-table-group.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-shapes.d.ts +168 -0
- package/dist/components/data-table/assets/data-table-shapes.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +80 -0
- package/dist/components/data-table/data-table-types.d.ts.map +1 -0
- package/dist/components/data-table/data-table-utils.d.ts +24 -0
- package/dist/components/data-table/data-table-utils.d.ts.map +1 -0
- package/dist/components/data-table/data-table.d.ts +4 -0
- package/dist/components/data-table/data-table.d.ts.map +1 -0
- package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts +21 -0
- package/dist/components/data-table/utils/buildFlatGroupedRows.d.ts.map +1 -0
- package/dist/components/drawer/drawer-types.d.ts +43 -0
- package/dist/components/drawer/drawer-types.d.ts.map +1 -0
- package/dist/components/drawer/drawer.d.ts +3 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/drawer.data.d.ts +6 -0
- package/dist/components/drawer/drawer.data.d.ts.map +1 -0
- package/dist/components/field/field-types.d.ts +7 -8
- package/dist/components/field/field-types.d.ts.map +1 -1
- package/dist/components/field/field.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/spotlight/spotlight-types.d.ts +8 -0
- package/dist/components/spotlight/spotlight-types.d.ts.map +1 -0
- package/dist/components/spotlight/spotlight.d.ts +3 -0
- package/dist/components/spotlight/spotlight.d.ts.map +1 -0
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar-types.d.ts +36 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -0
- package/dist/functional-components/group-bar/group-bar.d.ts +4 -0
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -0
- package/dist/functional-components/group-row/group-row-types.d.ts +36 -0
- package/dist/functional-components/group-row/group-row-types.d.ts.map +1 -0
- package/dist/functional-components/group-row/group-row.d.ts +4 -0
- package/dist/functional-components/group-row/group-row.d.ts.map +1 -0
- package/dist/functional-components/helper-text/helper-text.d.ts.map +1 -1
- package/dist/functional-components/label/label.d.ts.map +1 -1
- package/dist/functional-components/layout/layout-utils.d.ts +25 -0
- package/dist/functional-components/layout/layout-utils.d.ts.map +1 -0
- package/dist/functional-components/layout/layout.d.ts.map +1 -1
- package/dist/functional-components/row/row-assets.d.ts +5 -0
- package/dist/functional-components/row/row-assets.d.ts.map +1 -0
- package/dist/functional-components/row/row-types.d.ts +19 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -0
- package/dist/functional-components/row/row.d.ts +3 -0
- package/dist/functional-components/row/row.d.ts.map +1 -0
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/hooks/useDebounce.d.ts.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/ketchup2.cjs.js +21 -21
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +4019 -3675
- package/dist/locale/en/translation.json.d.ts +2 -1
- package/dist/locale/it/translation.json.d.ts +2 -1
- package/dist/types/data-structures.d.ts +28 -3
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +1 -1
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/legacy.d.ts +1 -0
- package/dist/types/legacy.d.ts.map +1 -1
- package/dist/types/translation.d.ts +2 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/array.d.ts +8 -0
- package/dist/utils/array.d.ts.map +1 -0
- package/dist/utils/display-value.d.ts.map +1 -1
- package/dist/utils/hash.d.ts +7 -0
- package/dist/utils/hash.d.ts.map +1 -0
- package/dist/utils/legacy.d.ts.map +1 -1
- package/dist/utils/objects.d.ts.map +1 -1
- package/dist/utils/translation.d.ts.map +1 -1
- package/package.json +40 -43
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LayoutProps } from '../functional-components/layout/layout-types';
|
|
2
|
+
export declare const defaultLayout: LayoutProps;
|
|
3
|
+
export declare const complexLayout: LayoutProps;
|
|
4
|
+
export declare const gridLayout: LayoutProps;
|
|
5
|
+
export declare const columnsLayout: LayoutProps;
|
|
6
|
+
export declare const columnsNestedLayout: LayoutProps;
|
|
7
|
+
//# sourceMappingURL=layoutAssets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutAssets.d.ts","sourceRoot":"","sources":["../../src/assets/layoutAssets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAA;AAG1E,eAAO,MAAM,aAAa,EAAE,WA8D3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,WAmlB3B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,WAgHxB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,WAwG3B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,WA6GjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 24 24"><path d="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z" /></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 24 24"><path d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" /></svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960">
|
|
2
|
+
<!-- Prima riga - centrata orizzontalmente -->
|
|
3
|
+
<circle cx="240" cy="-360" r="80"/>
|
|
4
|
+
<circle cx="480" cy="-360" r="80"/>
|
|
5
|
+
<circle cx="720" cy="-360" r="80"/>
|
|
6
|
+
|
|
7
|
+
<!-- Seconda riga - centrata orizzontalmente -->
|
|
8
|
+
<circle cx="240" cy="-600" r="80"/>
|
|
9
|
+
<circle cx="480" cy="-600" r="80"/>
|
|
10
|
+
<circle cx="720" cy="-600" r="80"/>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M360-160q-33 0-56.5-23.5T280-240q0-33 23.5-56.5T360-320q33 0 56.5 23.5T440-240q0 33-23.5 56.5T360-160Zm240 0q-33 0-56.5-23.5T520-240q0-33 23.5-56.5T600-320q33 0 56.5 23.5T680-240q0 33-23.5 56.5T600-160ZM360-400q-33 0-56.5-23.5T280-480q0-33 23.5-56.5T360-560q33 0 56.5 23.5T440-480q0 33-23.5 56.5T360-400Zm240 0q-33 0-56.5-23.5T520-480q0-33 23.5-56.5T600-560q33 0 56.5 23.5T680-480q0 33-23.5 56.5T600-400ZM360-640q-33 0-56.5-23.5T280-720q0-33 23.5-56.5T360-800q33 0 56.5 23.5T440-720q0 33-23.5 56.5T360-640Zm240 0q-33 0-56.5-23.5T520-720q0-33 23.5-56.5T600-800q33 0 56.5 23.5T680-720q0 33-23.5 56.5T600-640Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M300-160q-58 0-99-41t-41-99q0-58 41-99t99-41h440q58 0 99 41t41 99q0 58-41 99t-99 41H300Zm0-80h440q25 0 42.5-17.5T800-300q0-25-17.5-42.5T740-360H300q-25 0-42.5 17.5T240-300q0 25 17.5 42.5T300-240Zm-80-280q-58 0-99-41t-41-99q0-58 41-99t99-41h440q58 0 99 41t41 99q0 58-41 99t-99 41H220Zm0-80h440q25 0 42.5-17.5T720-660q0-25-17.5-42.5T660-720H220q-25 0-42.5 17.5T160-660q0 25 17.5 42.5T220-600Zm300 300Zm-80-360Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M6 36h36v-4H6v4zm0-10h36v-4H6v4zm0-14v4h36v-4H6z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" ><path d="M0 0h24v24H0V0z" fill="none"/><path d="M3 18h13v-2H3v2zm0-5h10v-2H3v2zm0-7v2h13V6H3zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5L21 15.59z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M26 6h-4v20h4V6zm9.67 4.33l-2.83 2.83C35.98 15.73 38 19.62 38 24c0 7.73-6.27 14-14 14s-14-6.27-14-14c0-4.38 2.02-8.27 5.16-10.84l-2.83-2.83C8.47 13.63 6 18.52 6 24c0 9.94 8.06 18 18 18s18-8.06 18-18c0-5.48-2.47-10.37-6.33-13.67z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M35.3 12.7C32.41 9.8 28.42 8 24 8 15.16 8 8.02 15.16 8.02 24S15.16 40 24 40c7.45 0 13.69-5.1 15.46-12H35.3c-1.65 4.66-6.07 8-11.3 8-6.63 0-12-5.37-12-12s5.37-12 12-12c3.31 0 6.28 1.38 8.45 3.55L26 22h14V8l-4.7 4.7z"/></svg>
|
|
@@ -1,4 +1,162 @@
|
|
|
1
1
|
import { DataCellOption, DataTable } from '../types/data-structures';
|
|
2
2
|
export declare const generateMockedOptions: (multiplier: number) => DataCellOption[];
|
|
3
|
+
export declare const generateRows: (count: number) => {
|
|
4
|
+
layout: {};
|
|
5
|
+
rowId: string;
|
|
6
|
+
error: null;
|
|
7
|
+
cells: {
|
|
8
|
+
ACP: {
|
|
9
|
+
decode: string;
|
|
10
|
+
obj: {
|
|
11
|
+
t: string;
|
|
12
|
+
p: string;
|
|
13
|
+
k: string;
|
|
14
|
+
};
|
|
15
|
+
tooltip: boolean;
|
|
16
|
+
data: {
|
|
17
|
+
size: number;
|
|
18
|
+
maxLength: number;
|
|
19
|
+
displayMode: string;
|
|
20
|
+
};
|
|
21
|
+
isEditable: boolean;
|
|
22
|
+
shape: "ACP";
|
|
23
|
+
};
|
|
24
|
+
AML: {
|
|
25
|
+
decode: string;
|
|
26
|
+
obj: {
|
|
27
|
+
t: string;
|
|
28
|
+
p: string;
|
|
29
|
+
k: string;
|
|
30
|
+
};
|
|
31
|
+
data: {
|
|
32
|
+
displayMode: string;
|
|
33
|
+
};
|
|
34
|
+
isEditable: boolean;
|
|
35
|
+
shape: "AML";
|
|
36
|
+
};
|
|
37
|
+
CMB: {
|
|
38
|
+
decode: string;
|
|
39
|
+
obj: {
|
|
40
|
+
t: string;
|
|
41
|
+
p: string;
|
|
42
|
+
k: string;
|
|
43
|
+
};
|
|
44
|
+
tooltip: boolean;
|
|
45
|
+
data: {
|
|
46
|
+
size: number;
|
|
47
|
+
maxLength: number;
|
|
48
|
+
displayMode: string;
|
|
49
|
+
};
|
|
50
|
+
isEditable: boolean;
|
|
51
|
+
shape: "CMB";
|
|
52
|
+
};
|
|
53
|
+
BTN_1: {
|
|
54
|
+
decode: string;
|
|
55
|
+
obj: {
|
|
56
|
+
k: string;
|
|
57
|
+
p: string;
|
|
58
|
+
t: string;
|
|
59
|
+
};
|
|
60
|
+
data: {
|
|
61
|
+
label: string;
|
|
62
|
+
};
|
|
63
|
+
icon: string;
|
|
64
|
+
fun: string;
|
|
65
|
+
isEditable: boolean;
|
|
66
|
+
shape: "BTN";
|
|
67
|
+
};
|
|
68
|
+
BTN_2: {
|
|
69
|
+
decode: string;
|
|
70
|
+
obj: {
|
|
71
|
+
k: string;
|
|
72
|
+
p: string;
|
|
73
|
+
t: string;
|
|
74
|
+
};
|
|
75
|
+
icon: string;
|
|
76
|
+
fun: string;
|
|
77
|
+
isEditable: boolean;
|
|
78
|
+
shape: "BTN";
|
|
79
|
+
};
|
|
80
|
+
CHK: {
|
|
81
|
+
obj: {
|
|
82
|
+
k: string;
|
|
83
|
+
p: string;
|
|
84
|
+
t: string;
|
|
85
|
+
};
|
|
86
|
+
data: {
|
|
87
|
+
checked: boolean;
|
|
88
|
+
label: string;
|
|
89
|
+
};
|
|
90
|
+
decode: string;
|
|
91
|
+
shape: "CHK";
|
|
92
|
+
isEditable: boolean;
|
|
93
|
+
};
|
|
94
|
+
CHI: {
|
|
95
|
+
data: {
|
|
96
|
+
data: ({
|
|
97
|
+
id: string;
|
|
98
|
+
decode: string;
|
|
99
|
+
icon?: undefined;
|
|
100
|
+
} | {
|
|
101
|
+
icon: string;
|
|
102
|
+
id: string;
|
|
103
|
+
decode: string;
|
|
104
|
+
})[];
|
|
105
|
+
};
|
|
106
|
+
obj: {
|
|
107
|
+
t: string;
|
|
108
|
+
p: string;
|
|
109
|
+
k: string;
|
|
110
|
+
};
|
|
111
|
+
decode: string;
|
|
112
|
+
shape: "CHI";
|
|
113
|
+
isEditable: boolean;
|
|
114
|
+
};
|
|
115
|
+
CAL: {
|
|
116
|
+
decode: string;
|
|
117
|
+
obj: {
|
|
118
|
+
t: string;
|
|
119
|
+
p: string;
|
|
120
|
+
k: string;
|
|
121
|
+
};
|
|
122
|
+
shape: "CAL";
|
|
123
|
+
isEditable: boolean;
|
|
124
|
+
};
|
|
125
|
+
ITX: {
|
|
126
|
+
decode: string;
|
|
127
|
+
obj: {
|
|
128
|
+
t: string;
|
|
129
|
+
p: string;
|
|
130
|
+
k: string;
|
|
131
|
+
};
|
|
132
|
+
isEditable: boolean;
|
|
133
|
+
shape: "ITX";
|
|
134
|
+
};
|
|
135
|
+
ICO: {
|
|
136
|
+
decode: string;
|
|
137
|
+
obj: {
|
|
138
|
+
t: string;
|
|
139
|
+
p: string;
|
|
140
|
+
k: string;
|
|
141
|
+
};
|
|
142
|
+
icon: string;
|
|
143
|
+
shape: "ICO";
|
|
144
|
+
isEditable: boolean;
|
|
145
|
+
};
|
|
146
|
+
IMG: {
|
|
147
|
+
decode: string;
|
|
148
|
+
obj: {
|
|
149
|
+
t: string;
|
|
150
|
+
p: string;
|
|
151
|
+
k: string;
|
|
152
|
+
};
|
|
153
|
+
icon: string;
|
|
154
|
+
shape: "IMG";
|
|
155
|
+
data: {
|
|
156
|
+
sizeX: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}[];
|
|
3
161
|
export declare const dashlistData: DataTable;
|
|
4
162
|
//# sourceMappingURL=testAsset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testAsset.d.ts","sourceRoot":"","sources":["../../src/assets/testAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"testAsset.d.ts","sourceRoot":"","sources":["../../src/assets/testAsset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAkB,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEpF,eAAO,MAAM,qBAAqB,GAAI,YAAY,MAAM,KAAG,cAAc,EAKxE,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6FzC,CAAA;AAGD,eAAO,MAAM,YAAY,EAAE,SA4D1B,CAAA"}
|
|
@@ -2,27 +2,52 @@ import { buttonVariant } from '../../types/global';
|
|
|
2
2
|
import { StringCellBindProps } from '../cell/cell-types';
|
|
3
3
|
export interface ButtonProps extends StringCellBindProps {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Name of the icon to display alongside the button text
|
|
6
|
+
* @optional
|
|
6
7
|
*/
|
|
7
8
|
icon?: string;
|
|
8
9
|
/**
|
|
9
10
|
* Color and style variant of the button
|
|
10
|
-
* @
|
|
11
|
+
* @default 'primary'
|
|
11
12
|
*/
|
|
12
13
|
variant?: buttonVariant;
|
|
13
14
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
* Visual appearance style of the button
|
|
16
|
+
* - 'raised': Button with shadow and elevation
|
|
17
|
+
* - 'ghost': Minimal button with outline or subtle background
|
|
18
|
+
* @default 'raised'
|
|
19
|
+
*/
|
|
20
|
+
appearance?: "raised" | "ghost" | "outlined";
|
|
21
|
+
/**
|
|
22
|
+
* Whether to display the button text
|
|
23
|
+
* @default true
|
|
24
|
+
* @optional
|
|
25
|
+
*/
|
|
18
26
|
showText?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to display the button icon
|
|
29
|
+
* @default true
|
|
30
|
+
* @optional
|
|
31
|
+
*/
|
|
19
32
|
showIcon?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Whether the button should expand to fill the available width
|
|
35
|
+
* @default false
|
|
36
|
+
* @optional
|
|
37
|
+
*/
|
|
20
38
|
fullWidth?: boolean;
|
|
21
39
|
/**
|
|
22
|
-
*
|
|
40
|
+
* Loading state of the button
|
|
41
|
+
* When true, displays a spinner and disables interaction
|
|
42
|
+
* @default false
|
|
43
|
+
* @optional
|
|
23
44
|
*/
|
|
24
45
|
loading?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* title is the alternative text on the button text hover
|
|
48
|
+
* @default decode/optionalDisplayValue
|
|
49
|
+
* @optional
|
|
50
|
+
*/
|
|
51
|
+
title?: string;
|
|
25
52
|
}
|
|
26
|
-
type Type = "raised" | "ghost";
|
|
27
|
-
export {};
|
|
28
53
|
//# sourceMappingURL=button-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/button/button-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/button/button-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,WAAY,SAAQ,mBAAmB;IACtD;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;IAExB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;IAE7C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { buttonVariant, IconState, Sizing } from '../../types/global';
|
|
2
|
+
/**
|
|
3
|
+
* Based on the button sizing it returns the correct iconWidth
|
|
4
|
+
* @param sizing button variant
|
|
5
|
+
* @returns an iconSize value
|
|
6
|
+
*/
|
|
7
|
+
export declare const getIconSize: (sizing: Sizing) => number;
|
|
8
|
+
/**
|
|
9
|
+
* Based on the button variant it returns the correct iconState
|
|
10
|
+
* @param variant button variant
|
|
11
|
+
* @returns an iconState value
|
|
12
|
+
*/
|
|
13
|
+
export declare const getIconVariant: (variant: buttonVariant) => IconState;
|
|
14
|
+
//# sourceMappingURL=button-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-utils.d.ts","sourceRoot":"","sources":["../../../src/basic-components/button/button-utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAErE;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,KAAG,MAS5C,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,aAAa,KAAG,SAOvD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/basic-components/button/button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/basic-components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAE5C,OAAO,cAAc,CAAA;AAErB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAgDxC,CAAA"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ArgTypes } from '@storybook/react';
|
|
1
|
+
import { ArgTypes } from '@storybook/react-vite';
|
|
2
2
|
import { DataCell, DataCellOption } from '../../types/data-structures';
|
|
3
3
|
import { A11yProps, Position, Sizing } from '../../types/global';
|
|
4
4
|
import { OptionsRequest } from '../../types/generic';
|
|
5
|
+
import { LegacyPosition } from '../../types/legacy';
|
|
5
6
|
export type CellBindProps = {
|
|
6
7
|
fun?: string;
|
|
7
8
|
options?: DataCellOption[];
|
|
@@ -12,6 +13,10 @@ export type CellBindProps = {
|
|
|
12
13
|
sizing?: Sizing;
|
|
13
14
|
readOnly?: boolean;
|
|
14
15
|
isEditable?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* title is the alternative text on hover
|
|
18
|
+
*/
|
|
19
|
+
title?: string;
|
|
15
20
|
onBlur?: () => void;
|
|
16
21
|
onClick?: () => void;
|
|
17
22
|
onOptionsRequest?: OptionsRequest;
|
|
@@ -20,6 +25,7 @@ export interface StringCellBindProps extends CellBindProps {
|
|
|
20
25
|
bindValue: string;
|
|
21
26
|
optionalDisplayValue?: string;
|
|
22
27
|
onChange?: (bindValue: string, optionalDisplayValue?: string) => void;
|
|
28
|
+
onEnter?: (bindValue: string) => void;
|
|
23
29
|
}
|
|
24
30
|
export interface BooleanCellBindProps extends CellBindProps {
|
|
25
31
|
bindValue: boolean;
|
|
@@ -36,12 +42,12 @@ export type ArrayElementBindProps = {
|
|
|
36
42
|
};
|
|
37
43
|
export interface CellProps extends DataCell {
|
|
38
44
|
label?: string;
|
|
39
|
-
labelPosition?:
|
|
45
|
+
labelPosition?: LegacyPosition;
|
|
40
46
|
options?: DataCellOption[];
|
|
41
|
-
fun?: string;
|
|
42
47
|
onChange?: (cell: DataCell) => void;
|
|
43
48
|
onClick?: (cell: DataCell) => void;
|
|
44
49
|
onBlur?: () => void;
|
|
50
|
+
onEnter?: (cell: DataCell) => void;
|
|
45
51
|
onOptionsRequest?: OptionsRequest;
|
|
46
52
|
}
|
|
47
53
|
export declare const cellArgs: Partial<ArgTypes<CellProps>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/cell/cell-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cell-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/cell/cell-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EACL,QAAQ,EACR,cAAc,EAEf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEnD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,QAAQ,CAAA;IACxB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,gBAAgB,CAAC,EAAE,cAAc,CAAA;CAClC,GAAG,SAAS,CAAA;AAEb,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,oBAAoB,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACrE,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC;AAED,MAAM,WAAW,oBAAqB,SAAQ,aAAa;IACzD,SAAS,EAAE,OAAO,CAAA;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;CACxC;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,QAAQ,EAAE,qBAAqB,EAAE,CAAA;IACjC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAA;CACvD;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,CAAC,EAAE,MAAM,CAAA;CAC9B,CAAA;AAED,MAAM,WAAW,SAAU,SAAQ,QAAQ;IACzC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,cAAc,CAAA;IAC9B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IACnC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,cAAc,CAAA;CAClC;AAED,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAgBjD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell-utils.d.ts","sourceRoot":"","sources":["../../../src/basic-components/cell/cell-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"cell-utils.d.ts","sourceRoot":"","sources":["../../../src/basic-components/cell/cell-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD,eAAO,MAAM,UAAU,GACrB,MAAM,QAAQ,EACd,WAAW,MAAM,EACjB,uBAAuB,MAAM,KAC5B,QAUF,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GACtC,MAAM,QAAQ,KACb,qBAAqB,EAUvB,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,QAAQ,EACd,UAAU,qBAAqB,EAAE,KAChC,QAYF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/basic-components/cell/cell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cell.d.ts","sourceRoot":"","sources":["../../../src/basic-components/cell/cell.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAKL,SAAS,EAEV,MAAM,cAAc,CAAA;AAOrB,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA0L7B,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactRenderer } from '@storybook/react';
|
|
1
|
+
import { ReactRenderer } from '@storybook/react-vite';
|
|
2
2
|
import { CellProps } from '../cell-types';
|
|
3
3
|
import { ArgsStoryFn } from 'storybook/internal/types';
|
|
4
4
|
export declare const ControlledCell: ArgsStoryFn<ReactRenderer, CellProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/basic-components/cell/stories/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/basic-components/cell/stories/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAErD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAItD,eAAO,MAAM,cAAc,EAAE,WAAW,CAAC,aAAa,EAAE,SAAS,CAYhE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/basic-components/cell/tests/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAW,MAAM,gCAAgC,CAAA;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEvD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAyBvD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/basic-components/cell/tests/utils.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAW,MAAM,gCAAgC,CAAA;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEvD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,CAyBvD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,SAAS,cAAc,EAAE,KACxB,cAeF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/basic-components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/basic-components/checkbox/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsB5C,CAAA"}
|
|
@@ -2,5 +2,21 @@ import { DisplayMode } from '../../types/global';
|
|
|
2
2
|
import { ArrayCellBindProps } from '../cell/cell-types';
|
|
3
3
|
export interface ChipsProps extends ArrayCellBindProps {
|
|
4
4
|
displayMode?: DisplayMode;
|
|
5
|
+
/**
|
|
6
|
+
* When specified it will override the color of the chip
|
|
7
|
+
*/
|
|
8
|
+
color?: string;
|
|
9
|
+
/**
|
|
10
|
+
* When specified it will override the backgroundColor of the chip
|
|
11
|
+
*/
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Whether you can re-order and drag the single chips.
|
|
15
|
+
*/
|
|
16
|
+
isDraggable?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether you can cancel the single chips.
|
|
19
|
+
*/
|
|
20
|
+
isEditable?: boolean;
|
|
5
21
|
}
|
|
6
22
|
//# sourceMappingURL=chips-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chips-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/chips/chips-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IAClD,WAAW,CAAC,EAAE,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"chips-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/chips/chips-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,UAAW,SAAQ,kBAAkB;IAClD,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACtB;;EAEF;IACF,WAAW,CAAC,EAAE,OAAO,CAAC;IACpB;;IAEA;IACF,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chips.d.ts","sourceRoot":"","sources":["../../../src/basic-components/chips/chips.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chips.d.ts","sourceRoot":"","sources":["../../../src/basic-components/chips/chips.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,aAAa,CAAA;AAEpB,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA+FtC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/basic-components/combobox/combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAQhD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../src/basic-components/combobox/combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0B,MAAM,OAAO,CAAA;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAQhD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiG5C,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
package/dist/basic-components/date-picker/date-picker-calendar/date-picker-calendar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker-calendar.d.ts","sourceRoot":"","sources":["../../../../src/basic-components/date-picker/date-picker-calendar/date-picker-calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAmD,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"date-picker-calendar.d.ts","sourceRoot":"","sources":["../../../../src/basic-components/date-picker/date-picker-calendar/date-picker-calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAmD,MAAM,OAAO,CAAA;AAU5E,OAAO,mCAAmC,CAAA;AAE1C,UAAU,eAAe;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,CAAA;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9C,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KAAK,CAAC;QAClC,KAAK,EAAE,IAAI,CAAA;QACX,GAAG,EAAE,IAAI,CAAA;KACV,CAAC,CAAA;IACF,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAA;CAC7C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,YAAY,EAAE,oBAAoB,EAClC,YAAY,EACZ,kBAAuB,EACvB,YAAY,EACZ,SAAS,GACV,EAAE,eAAe,2CA8mBjB"}
|
|
@@ -1,18 +1,56 @@
|
|
|
1
1
|
import { IconState } from '../../types/global';
|
|
2
2
|
export interface IconProps {
|
|
3
|
+
/**
|
|
4
|
+
* Name or URL of the icon to display.
|
|
5
|
+
*/
|
|
3
6
|
icon: string;
|
|
7
|
+
/**
|
|
8
|
+
* Callback fired when the icon is clicked.
|
|
9
|
+
*/
|
|
4
10
|
onClick?: () => void;
|
|
11
|
+
/**
|
|
12
|
+
* Width of the icon. Can be a number (pixels) or string (e.g., '1em', '24px').
|
|
13
|
+
*/
|
|
5
14
|
width?: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* Height of the icon. Can be a number (pixels) or string (e.g., '1em', '24px').
|
|
17
|
+
*/
|
|
6
18
|
height?: number | string;
|
|
19
|
+
/**
|
|
20
|
+
* Fallback icon name or URL to display when the main icon is not available.
|
|
21
|
+
*/
|
|
7
22
|
placeholderIcon?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Icon color (applied via CSS `fill` or `color`, depending on implementation).
|
|
25
|
+
*/
|
|
8
26
|
color?: string;
|
|
27
|
+
/**
|
|
28
|
+
* If true, the icon appears visually disabled and is not interactive.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
9
31
|
disabled?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Visual state of the icon, used for conditional styling (e.g., active, warning, error).
|
|
34
|
+
*/
|
|
10
35
|
state?: IconState;
|
|
36
|
+
/**
|
|
37
|
+
* If true, rotates the icon (usually 90 or 180 degrees).
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
11
40
|
rotated?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* If true, applies `cursor: pointer` to indicate interactivity.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
12
45
|
isInteractable?: boolean;
|
|
13
46
|
/**
|
|
14
|
-
*
|
|
47
|
+
* If true, applies a spinning animation to the icon (typically used for loading states).
|
|
48
|
+
* @default false
|
|
15
49
|
*/
|
|
16
50
|
spin?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Tooltip or alternative text shown on hover (used for accessibility and UX).
|
|
53
|
+
*/
|
|
54
|
+
title?: string;
|
|
17
55
|
}
|
|
18
56
|
//# sourceMappingURL=icon-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"icon-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IAExB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAA;IAEjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAA;IAExB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/basic-components/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAGxC,OAAO,YAAY,CAAA;AAEnB,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAiGpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/basic-components/list/list.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/basic-components/list/list.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAIxC,OAAO,YAAY,CAAA;AAInB,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CA+KpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiple-autocomplete.d.ts","sourceRoot":"","sources":["../../../src/basic-components/mulitple-autocomplete/multiple-autocomplete.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;
|
|
1
|
+
{"version":3,"file":"multiple-autocomplete.d.ts","sourceRoot":"","sources":["../../../src/basic-components/mulitple-autocomplete/multiple-autocomplete.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACzE,OAAO,6BAA6B,CAAA;AAEpC,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAuEpE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../src/basic-components/password/password.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,
|
|
1
|
+
{"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../../src/basic-components/password/password.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAkB5C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-bar-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/searchbar/search-bar-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG,EAC7C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["../../../src/basic-components/searchbar/search-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAInD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA4B9C,CAAA"}
|
|
@@ -9,6 +9,11 @@ export interface TextfieldProps extends StringCellBindProps {
|
|
|
9
9
|
sizing?: Sizing;
|
|
10
10
|
state?: State;
|
|
11
11
|
variant?: string;
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* It manages the textfield border as outlined or base
|
|
15
|
+
*/
|
|
16
|
+
appearance?: "base" | "outlined";
|
|
12
17
|
rotatedShapeIcon?: boolean;
|
|
13
18
|
ref?: React.Ref<HTMLDivElement>;
|
|
14
19
|
/**
|
|
@@ -30,5 +35,14 @@ export interface TextfieldProps extends StringCellBindProps {
|
|
|
30
35
|
* @default ''
|
|
31
36
|
*/
|
|
32
37
|
error?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Internal prop to manage the data-component attribute
|
|
40
|
+
* @default 'textfield'
|
|
41
|
+
*/
|
|
42
|
+
_dataComponent?: string;
|
|
43
|
+
/**
|
|
44
|
+
* It manages the textfield width. It can either take a string with a Unit Measure or a width value like `fit-content`
|
|
45
|
+
*/
|
|
46
|
+
width?: string;
|
|
33
47
|
}
|
|
34
48
|
//# sourceMappingURL=textfield-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textfield-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/textfield/textfield-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,cAAe,SAAQ,mBAAmB;IACzD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;IAE/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;IACtC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"textfield-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/textfield/textfield-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,cAAe,SAAQ,mBAAmB;IACzD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;IAChC,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;IAE/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;IACtC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC7B,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEZ;;;KAGC;IACH,cAAc,CAAC,EAAE,MAAM,CAAA;IAErB;;KAEC;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../../src/basic-components/textfield/textfield.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../../src/basic-components/textfield/textfield.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAClD,OAAO,iBAAiB,CAAA;AAExB,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA+F9C,CAAA"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { StringCellBindProps } from '../cell/cell-types';
|
|
2
2
|
export interface TypographyProps extends StringCellBindProps {
|
|
3
3
|
variant: TypographyVariant;
|
|
4
|
+
/**
|
|
5
|
+
* When specified, it will override the `color`
|
|
6
|
+
*/
|
|
7
|
+
color?: string;
|
|
4
8
|
}
|
|
5
9
|
export declare const variantToComponent: Record<TypographyVariant, React.ElementType>;
|
|
6
10
|
type TypographyVariant = 'titleLarge' | 'title' | 'body' | 'label';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/typography/typography-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACxD,OAAO,EAAE,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"typography-types.d.ts","sourceRoot":"","sources":["../../../src/basic-components/typography/typography-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AAExD,MAAM,WAAW,eAAgB,SAAQ,mBAAmB;IACxD,OAAO,EAAE,iBAAiB,CAAC;IAE3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,iBAAiB,EAAE,KAAK,CAAC,WAAW,CAKzE,CAAC;AAEF,KAAK,iBAAiB,GACpB,YAAY,GACZ,OAAO,GACP,MAAM,GACN,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/basic-components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsB,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/basic-components/typography/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsB,MAAM,oBAAoB,CAAA;AACxE,OAAO,kBAAkB,CAAA;AAEzB,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA4BhD,CAAA;AAED,eAAe,UAAU,CAAA"}
|