@nlxai/touchpoint-ui 1.0.5-alpha.2 → 1.0.5-alpha.4
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/LICENSE +406 -19
- package/index.html +1 -1
- package/lib/components/FullscreenVoice.d.ts +6 -0
- package/lib/components/Ripple.d.ts +4 -0
- package/lib/components/ui/Icons.d.ts +1 -1
- package/lib/index.js +17170 -17103
- package/lib/index.umd.js +92 -92
- package/lib/types.d.ts +1 -1
- package/lib/voice.d.ts +1 -0
- package/package.json +3 -3
- package/docs/.nojekyll +0 -1
- package/docs/README.md +0 -341
- package/docs/interfaces/CustomCardProps.md +0 -47
- package/docs/interfaces/CustomCardRowProps.md +0 -39
- package/docs/interfaces/DateInputProps.md +0 -29
- package/docs/interfaces/IconButtonProps.md +0 -71
- package/docs/interfaces/Icons.IconProps.md +0 -29
- package/docs/interfaces/TextButtonProps.md +0 -72
- package/docs/interfaces/Theme.md +0 -303
- package/docs/interfaces/TouchpointConfiguration.md +0 -89
- package/docs/interfaces/TouchpointInstance.md +0 -47
- package/docs/modules/Icons.md +0 -857
package/lib/types.d.ts
CHANGED
package/lib/voice.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlxai/touchpoint-ui",
|
|
3
|
-
"version": "1.0.5-alpha.
|
|
3
|
+
"version": "1.0.5-alpha.4",
|
|
4
4
|
"description": "Web UI for Touchpoint",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"tsc": "tsc"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@nlxai/chat-core": "^1.0.5-alpha.
|
|
27
|
+
"@nlxai/chat-core": "^1.0.5-alpha.4",
|
|
28
28
|
"@react-hookz/web": "^25.0.1",
|
|
29
29
|
"@react-input/mask": "^2.0.4",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "4cc1ed43fde42daf06e14e0fc5dd4c386bc5f354"
|
|
61
61
|
}
|
package/docs/.nojekyll
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
|
package/docs/README.md
DELETED
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
# @nlxai/touchpoint-ui
|
|
2
|
-
|
|
3
|
-
## Namespaces
|
|
4
|
-
|
|
5
|
-
- [Icons](modules/Icons.md)
|
|
6
|
-
|
|
7
|
-
## Interfaces
|
|
8
|
-
|
|
9
|
-
- [CustomCardProps](interfaces/CustomCardProps.md)
|
|
10
|
-
- [CustomCardRowProps](interfaces/CustomCardRowProps.md)
|
|
11
|
-
- [DateInputProps](interfaces/DateInputProps.md)
|
|
12
|
-
- [IconButtonProps](interfaces/IconButtonProps.md)
|
|
13
|
-
- [TextButtonProps](interfaces/TextButtonProps.md)
|
|
14
|
-
- [TouchpointInstance](interfaces/TouchpointInstance.md)
|
|
15
|
-
- [Theme](interfaces/Theme.md)
|
|
16
|
-
- [TouchpointConfiguration](interfaces/TouchpointConfiguration.md)
|
|
17
|
-
|
|
18
|
-
## Type Aliases
|
|
19
|
-
|
|
20
|
-
### IconButtonType
|
|
21
|
-
|
|
22
|
-
Ƭ **IconButtonType**: ``"main"`` \| ``"ghost"`` \| ``"activated"`` \| ``"coverup"`` \| ``"overlay"``
|
|
23
|
-
|
|
24
|
-
Represents the different types of icon buttons available in the application.
|
|
25
|
-
|
|
26
|
-
- `main`: The primary icon button.
|
|
27
|
-
- `ghost`: A transparent or less prominent icon button.
|
|
28
|
-
- `activated`: An icon button that indicates an active state.
|
|
29
|
-
- `coverup`: An icon button used to cover up or mask something.
|
|
30
|
-
- `overlay`: An icon button that appears over other content.
|
|
31
|
-
|
|
32
|
-
#### Defined in
|
|
33
|
-
|
|
34
|
-
[packages/touchpoint-ui/src/components/ui/IconButton.tsx:16](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/IconButton.tsx#L16)
|
|
35
|
-
|
|
36
|
-
___
|
|
37
|
-
|
|
38
|
-
### WindowSize
|
|
39
|
-
|
|
40
|
-
Ƭ **WindowSize**: ``"half"`` \| ``"full"``
|
|
41
|
-
|
|
42
|
-
Window size configuration
|
|
43
|
-
|
|
44
|
-
#### Defined in
|
|
45
|
-
|
|
46
|
-
[packages/touchpoint-ui/src/types.ts:7](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/types.ts#L7)
|
|
47
|
-
|
|
48
|
-
___
|
|
49
|
-
|
|
50
|
-
### ColorMode
|
|
51
|
-
|
|
52
|
-
Ƭ **ColorMode**: ``"light"`` \| ``"dark"``
|
|
53
|
-
|
|
54
|
-
Color mode configuration (light/dark modes)
|
|
55
|
-
|
|
56
|
-
#### Defined in
|
|
57
|
-
|
|
58
|
-
[packages/touchpoint-ui/src/types.ts:12](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/types.ts#L12)
|
|
59
|
-
|
|
60
|
-
___
|
|
61
|
-
|
|
62
|
-
### CustomModalityComponent
|
|
63
|
-
|
|
64
|
-
Ƭ **CustomModalityComponent**\<`Data`\>: `FC`\<\{ `data`: `Data` ; `conversationHandler`: `ConversationHandler` ; `enabled`: `boolean` }\>
|
|
65
|
-
|
|
66
|
-
Custom Modalities allow rendering of rich components from nodes.
|
|
67
|
-
See: https://docs.studio.nlx.ai/build/resources/modalities
|
|
68
|
-
|
|
69
|
-
#### Type parameters
|
|
70
|
-
|
|
71
|
-
| Name |
|
|
72
|
-
| :------ |
|
|
73
|
-
| `Data` |
|
|
74
|
-
|
|
75
|
-
#### Defined in
|
|
76
|
-
|
|
77
|
-
[packages/touchpoint-ui/src/types.ts:36](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/types.ts#L36)
|
|
78
|
-
|
|
79
|
-
## Functions
|
|
80
|
-
|
|
81
|
-
### Carousel
|
|
82
|
-
|
|
83
|
-
▸ **Carousel**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
84
|
-
|
|
85
|
-
#### Parameters
|
|
86
|
-
|
|
87
|
-
| Name | Type | Description |
|
|
88
|
-
| :------ | :------ | :------ |
|
|
89
|
-
| `props` | `Object` | - |
|
|
90
|
-
| `props.children` | `ReactNode` | - |
|
|
91
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
92
|
-
|
|
93
|
-
#### Returns
|
|
94
|
-
|
|
95
|
-
`ReactNode`
|
|
96
|
-
|
|
97
|
-
#### Defined in
|
|
98
|
-
|
|
99
|
-
[packages/touchpoint-ui/src/components/ui/Carousel.tsx:5](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/Carousel.tsx#L5)
|
|
100
|
-
|
|
101
|
-
___
|
|
102
|
-
|
|
103
|
-
### CustomCard
|
|
104
|
-
|
|
105
|
-
▸ **CustomCard**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
106
|
-
|
|
107
|
-
#### Parameters
|
|
108
|
-
|
|
109
|
-
| Name | Type | Description |
|
|
110
|
-
| :------ | :------ | :------ |
|
|
111
|
-
| `props` | [`CustomCardProps`](interfaces/CustomCardProps.md) | - |
|
|
112
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
113
|
-
|
|
114
|
-
#### Returns
|
|
115
|
-
|
|
116
|
-
`ReactNode`
|
|
117
|
-
|
|
118
|
-
#### Defined in
|
|
119
|
-
|
|
120
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:25](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L25)
|
|
121
|
-
|
|
122
|
-
___
|
|
123
|
-
|
|
124
|
-
### CustomCardImageRow
|
|
125
|
-
|
|
126
|
-
▸ **CustomCardImageRow**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
127
|
-
|
|
128
|
-
#### Parameters
|
|
129
|
-
|
|
130
|
-
| Name | Type | Description |
|
|
131
|
-
| :------ | :------ | :------ |
|
|
132
|
-
| `props` | `Object` | - |
|
|
133
|
-
| `props.src` | `string` | - |
|
|
134
|
-
| `props.alt?` | `string` | - |
|
|
135
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
136
|
-
|
|
137
|
-
#### Returns
|
|
138
|
-
|
|
139
|
-
`ReactNode`
|
|
140
|
-
|
|
141
|
-
#### Defined in
|
|
142
|
-
|
|
143
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:44](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L44)
|
|
144
|
-
|
|
145
|
-
___
|
|
146
|
-
|
|
147
|
-
### CustomCardRow
|
|
148
|
-
|
|
149
|
-
▸ **CustomCardRow**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
150
|
-
|
|
151
|
-
#### Parameters
|
|
152
|
-
|
|
153
|
-
| Name | Type | Description |
|
|
154
|
-
| :------ | :------ | :------ |
|
|
155
|
-
| `props` | [`CustomCardRowProps`](interfaces/CustomCardRowProps.md) | - |
|
|
156
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
157
|
-
|
|
158
|
-
#### Returns
|
|
159
|
-
|
|
160
|
-
`ReactNode`
|
|
161
|
-
|
|
162
|
-
#### Defined in
|
|
163
|
-
|
|
164
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:69](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L69)
|
|
165
|
-
|
|
166
|
-
___
|
|
167
|
-
|
|
168
|
-
### DateInput
|
|
169
|
-
|
|
170
|
-
▸ **DateInput**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
171
|
-
|
|
172
|
-
#### Parameters
|
|
173
|
-
|
|
174
|
-
| Name | Type | Description |
|
|
175
|
-
| :------ | :------ | :------ |
|
|
176
|
-
| `props` | [`DateInputProps`](interfaces/DateInputProps.md) | - |
|
|
177
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
178
|
-
|
|
179
|
-
#### Returns
|
|
180
|
-
|
|
181
|
-
`ReactNode`
|
|
182
|
-
|
|
183
|
-
#### Defined in
|
|
184
|
-
|
|
185
|
-
[packages/touchpoint-ui/src/components/ui/DateInput.tsx:25](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/DateInput.tsx#L25)
|
|
186
|
-
|
|
187
|
-
___
|
|
188
|
-
|
|
189
|
-
### IconButton
|
|
190
|
-
|
|
191
|
-
▸ **IconButton**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
192
|
-
|
|
193
|
-
#### Parameters
|
|
194
|
-
|
|
195
|
-
| Name | Type | Description |
|
|
196
|
-
| :------ | :------ | :------ |
|
|
197
|
-
| `props` | [`IconButtonProps`](interfaces/IconButtonProps.md) | - |
|
|
198
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
199
|
-
|
|
200
|
-
#### Returns
|
|
201
|
-
|
|
202
|
-
`ReactNode`
|
|
203
|
-
|
|
204
|
-
#### Defined in
|
|
205
|
-
|
|
206
|
-
[packages/touchpoint-ui/src/components/ui/IconButton.tsx:64](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/IconButton.tsx#L64)
|
|
207
|
-
|
|
208
|
-
___
|
|
209
|
-
|
|
210
|
-
### TextButton
|
|
211
|
-
|
|
212
|
-
▸ **TextButton**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
213
|
-
|
|
214
|
-
#### Parameters
|
|
215
|
-
|
|
216
|
-
| Name | Type | Description |
|
|
217
|
-
| :------ | :------ | :------ |
|
|
218
|
-
| `props` | [`TextButtonProps`](interfaces/TextButtonProps.md) | - |
|
|
219
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
220
|
-
|
|
221
|
-
#### Returns
|
|
222
|
-
|
|
223
|
-
`ReactNode`
|
|
224
|
-
|
|
225
|
-
#### Defined in
|
|
226
|
-
|
|
227
|
-
[packages/touchpoint-ui/src/components/ui/TextButton.tsx:33](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/TextButton.tsx#L33)
|
|
228
|
-
|
|
229
|
-
___
|
|
230
|
-
|
|
231
|
-
### BaseText
|
|
232
|
-
|
|
233
|
-
▸ **BaseText**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
234
|
-
|
|
235
|
-
#### Parameters
|
|
236
|
-
|
|
237
|
-
| Name | Type | Description |
|
|
238
|
-
| :------ | :------ | :------ |
|
|
239
|
-
| `props` | `Object` | - |
|
|
240
|
-
| `props.children` | `ReactNode` | - |
|
|
241
|
-
| `props.faded?` | `boolean` | - |
|
|
242
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
243
|
-
|
|
244
|
-
#### Returns
|
|
245
|
-
|
|
246
|
-
`ReactNode`
|
|
247
|
-
|
|
248
|
-
#### Defined in
|
|
249
|
-
|
|
250
|
-
[packages/touchpoint-ui/src/components/ui/Typography.tsx:5](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/Typography.tsx#L5)
|
|
251
|
-
|
|
252
|
-
___
|
|
253
|
-
|
|
254
|
-
### SmallText
|
|
255
|
-
|
|
256
|
-
▸ **SmallText**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
257
|
-
|
|
258
|
-
#### Parameters
|
|
259
|
-
|
|
260
|
-
| Name | Type | Description |
|
|
261
|
-
| :------ | :------ | :------ |
|
|
262
|
-
| `props` | `Object` | - |
|
|
263
|
-
| `props.children` | `ReactNode` | - |
|
|
264
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
265
|
-
|
|
266
|
-
#### Returns
|
|
267
|
-
|
|
268
|
-
`ReactNode`
|
|
269
|
-
|
|
270
|
-
#### Defined in
|
|
271
|
-
|
|
272
|
-
[packages/touchpoint-ui/src/components/ui/Typography.tsx:16](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/Typography.tsx#L16)
|
|
273
|
-
|
|
274
|
-
___
|
|
275
|
-
|
|
276
|
-
### html
|
|
277
|
-
|
|
278
|
-
▸ **html**(`strings`, `...values`): `unknown`
|
|
279
|
-
|
|
280
|
-
#### Parameters
|
|
281
|
-
|
|
282
|
-
| Name | Type |
|
|
283
|
-
| :------ | :------ |
|
|
284
|
-
| `strings` | `TemplateStringsArray` |
|
|
285
|
-
| `...values` | `any`[] |
|
|
286
|
-
|
|
287
|
-
#### Returns
|
|
288
|
-
|
|
289
|
-
`unknown`
|
|
290
|
-
|
|
291
|
-
#### Defined in
|
|
292
|
-
|
|
293
|
-
[packages/touchpoint-ui/src/index.tsx:33](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/index.tsx#L33)
|
|
294
|
-
|
|
295
|
-
___
|
|
296
|
-
|
|
297
|
-
### create
|
|
298
|
-
|
|
299
|
-
▸ **create**(`props`): `Promise`\<[`TouchpointInstance`](interfaces/TouchpointInstance.md)\>
|
|
300
|
-
|
|
301
|
-
Creates a new Touchpoint UI instance and appends it to the document body
|
|
302
|
-
|
|
303
|
-
#### Parameters
|
|
304
|
-
|
|
305
|
-
| Name | Type | Description |
|
|
306
|
-
| :------ | :------ | :------ |
|
|
307
|
-
| `props` | [`TouchpointConfiguration`](interfaces/TouchpointConfiguration.md) | Configuration props for Touchpoint |
|
|
308
|
-
|
|
309
|
-
#### Returns
|
|
310
|
-
|
|
311
|
-
`Promise`\<[`TouchpointInstance`](interfaces/TouchpointInstance.md)\>
|
|
312
|
-
|
|
313
|
-
A promise that resolves to a TouchpointInstance
|
|
314
|
-
|
|
315
|
-
#### Defined in
|
|
316
|
-
|
|
317
|
-
[packages/touchpoint-ui/src/index.tsx:195](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/index.tsx#L195)
|
|
318
|
-
|
|
319
|
-
___
|
|
320
|
-
|
|
321
|
-
### PreviewContainer
|
|
322
|
-
|
|
323
|
-
▸ **PreviewContainer**(`props`, `deprecatedLegacyContext?`): `ReactNode`
|
|
324
|
-
|
|
325
|
-
#### Parameters
|
|
326
|
-
|
|
327
|
-
| Name | Type | Description |
|
|
328
|
-
| :------ | :------ | :------ |
|
|
329
|
-
| `props` | `Object` | - |
|
|
330
|
-
| `props.children` | `ReactNode` | - |
|
|
331
|
-
| `props.mode` | [`ColorMode`](README.md#colormode) | - |
|
|
332
|
-
| `props.theme` | `Partial`\<[`Theme`](interfaces/Theme.md)\> | - |
|
|
333
|
-
| `deprecatedLegacyContext?` | `any` | **`Deprecated`** **`See`** [React Docs](https://legacy.reactjs.org/docs/legacy-context.html#referencing-context-in-lifecycle-methods) |
|
|
334
|
-
|
|
335
|
-
#### Returns
|
|
336
|
-
|
|
337
|
-
`ReactNode`
|
|
338
|
-
|
|
339
|
-
#### Defined in
|
|
340
|
-
|
|
341
|
-
[packages/touchpoint-ui/src/preview.tsx:10](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/preview.tsx#L10)
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Interface: CustomCardProps
|
|
2
|
-
|
|
3
|
-
Props for the CustomCard component
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### children
|
|
8
|
-
|
|
9
|
-
• **children**: `ReactNode`
|
|
10
|
-
|
|
11
|
-
Content to be rendered inside the card.
|
|
12
|
-
|
|
13
|
-
#### Defined in
|
|
14
|
-
|
|
15
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:14](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L14)
|
|
16
|
-
|
|
17
|
-
___
|
|
18
|
-
|
|
19
|
-
### selected
|
|
20
|
-
|
|
21
|
-
• `Optional` **selected**: `boolean`
|
|
22
|
-
|
|
23
|
-
Whether the card is in a selected state. Used to highlight the card.
|
|
24
|
-
|
|
25
|
-
#### Defined in
|
|
26
|
-
|
|
27
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:18](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L18)
|
|
28
|
-
|
|
29
|
-
___
|
|
30
|
-
|
|
31
|
-
### onClick
|
|
32
|
-
|
|
33
|
-
• `Optional` **onClick**: () => `void`
|
|
34
|
-
|
|
35
|
-
Handler function for when the card is clicked
|
|
36
|
-
|
|
37
|
-
#### Type declaration
|
|
38
|
-
|
|
39
|
-
▸ (): `void`
|
|
40
|
-
|
|
41
|
-
##### Returns
|
|
42
|
-
|
|
43
|
-
`void`
|
|
44
|
-
|
|
45
|
-
#### Defined in
|
|
46
|
-
|
|
47
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:22](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L22)
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Interface: CustomCardRowProps
|
|
2
|
-
|
|
3
|
-
Props for the CustomCardRow component
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### left
|
|
8
|
-
|
|
9
|
-
• **left**: `ReactNode`
|
|
10
|
-
|
|
11
|
-
Content to be displayed on the left side of the row
|
|
12
|
-
|
|
13
|
-
#### Defined in
|
|
14
|
-
|
|
15
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:58](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L58)
|
|
16
|
-
|
|
17
|
-
___
|
|
18
|
-
|
|
19
|
-
### right
|
|
20
|
-
|
|
21
|
-
• **right**: `ReactNode`
|
|
22
|
-
|
|
23
|
-
Content to be displayed on the right side of the row
|
|
24
|
-
|
|
25
|
-
#### Defined in
|
|
26
|
-
|
|
27
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:62](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L62)
|
|
28
|
-
|
|
29
|
-
___
|
|
30
|
-
|
|
31
|
-
### icon
|
|
32
|
-
|
|
33
|
-
• `Optional` **icon**: [`Icon`](../modules/Icons.md#icon)
|
|
34
|
-
|
|
35
|
-
Optional icon to be displayed in the center of the row
|
|
36
|
-
|
|
37
|
-
#### Defined in
|
|
38
|
-
|
|
39
|
-
[packages/touchpoint-ui/src/components/ui/CustomCard.tsx:66](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/CustomCard.tsx#L66)
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Interface: DateInputProps
|
|
2
|
-
|
|
3
|
-
Props for the DateInput component
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### onSubmit
|
|
8
|
-
|
|
9
|
-
• `Optional` **onSubmit**: (`date`: `string`) => `void`
|
|
10
|
-
|
|
11
|
-
Handler function called when the date is submitted
|
|
12
|
-
|
|
13
|
-
#### Type declaration
|
|
14
|
-
|
|
15
|
-
▸ (`date`): `void`
|
|
16
|
-
|
|
17
|
-
##### Parameters
|
|
18
|
-
|
|
19
|
-
| Name | Type | Description |
|
|
20
|
-
| :------ | :------ | :------ |
|
|
21
|
-
| `date` | `string` | The submitted date in YYYY-MM-DD format |
|
|
22
|
-
|
|
23
|
-
##### Returns
|
|
24
|
-
|
|
25
|
-
`void`
|
|
26
|
-
|
|
27
|
-
#### Defined in
|
|
28
|
-
|
|
29
|
-
[packages/touchpoint-ui/src/components/ui/DateInput.tsx:16](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/DateInput.tsx#L16)
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# Interface: IconButtonProps
|
|
2
|
-
|
|
3
|
-
Props for the IconButton component
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### onClick
|
|
8
|
-
|
|
9
|
-
• `Optional` **onClick**: () => `void`
|
|
10
|
-
|
|
11
|
-
Handler function called when the button is clicked
|
|
12
|
-
|
|
13
|
-
#### Type declaration
|
|
14
|
-
|
|
15
|
-
▸ (): `void`
|
|
16
|
-
|
|
17
|
-
##### Returns
|
|
18
|
-
|
|
19
|
-
`void`
|
|
20
|
-
|
|
21
|
-
#### Defined in
|
|
22
|
-
|
|
23
|
-
[packages/touchpoint-ui/src/components/ui/IconButton.tsx:30](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/IconButton.tsx#L30)
|
|
24
|
-
|
|
25
|
-
___
|
|
26
|
-
|
|
27
|
-
### label
|
|
28
|
-
|
|
29
|
-
• **label**: `string`
|
|
30
|
-
|
|
31
|
-
Accessible label for the button
|
|
32
|
-
|
|
33
|
-
#### Defined in
|
|
34
|
-
|
|
35
|
-
[packages/touchpoint-ui/src/components/ui/IconButton.tsx:34](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/IconButton.tsx#L34)
|
|
36
|
-
|
|
37
|
-
___
|
|
38
|
-
|
|
39
|
-
### className
|
|
40
|
-
|
|
41
|
-
• `Optional` **className**: `string`
|
|
42
|
-
|
|
43
|
-
Additional CSS classes to apply to the button
|
|
44
|
-
|
|
45
|
-
#### Defined in
|
|
46
|
-
|
|
47
|
-
[packages/touchpoint-ui/src/components/ui/IconButton.tsx:38](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/IconButton.tsx#L38)
|
|
48
|
-
|
|
49
|
-
___
|
|
50
|
-
|
|
51
|
-
### type
|
|
52
|
-
|
|
53
|
-
• **type**: [`IconButtonType`](../README.md#iconbuttontype)
|
|
54
|
-
|
|
55
|
-
Visual style variant of the button. One of IconButtonType.
|
|
56
|
-
|
|
57
|
-
#### Defined in
|
|
58
|
-
|
|
59
|
-
[packages/touchpoint-ui/src/components/ui/IconButton.tsx:42](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/IconButton.tsx#L42)
|
|
60
|
-
|
|
61
|
-
___
|
|
62
|
-
|
|
63
|
-
### Icon
|
|
64
|
-
|
|
65
|
-
• **Icon**: `FC`\<[`IconProps`](Icons.IconProps.md)\>
|
|
66
|
-
|
|
67
|
-
Icon component to display inside the button
|
|
68
|
-
|
|
69
|
-
#### Defined in
|
|
70
|
-
|
|
71
|
-
[packages/touchpoint-ui/src/components/ui/IconButton.tsx:46](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/IconButton.tsx#L46)
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# Interface: IconProps
|
|
2
|
-
|
|
3
|
-
[Icons](../modules/Icons.md).IconProps
|
|
4
|
-
|
|
5
|
-
Props for icon components
|
|
6
|
-
|
|
7
|
-
## Properties
|
|
8
|
-
|
|
9
|
-
### className
|
|
10
|
-
|
|
11
|
-
• `Optional` **className**: `string`
|
|
12
|
-
|
|
13
|
-
Additional CSS classes to apply to the icon
|
|
14
|
-
|
|
15
|
-
#### Defined in
|
|
16
|
-
|
|
17
|
-
[packages/touchpoint-ui/src/components/ui/Icons.tsx:11](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/Icons.tsx#L11)
|
|
18
|
-
|
|
19
|
-
___
|
|
20
|
-
|
|
21
|
-
### size
|
|
22
|
-
|
|
23
|
-
• `Optional` **size**: `number`
|
|
24
|
-
|
|
25
|
-
Custom size in pixels for the icon
|
|
26
|
-
|
|
27
|
-
#### Defined in
|
|
28
|
-
|
|
29
|
-
[packages/touchpoint-ui/src/components/ui/Icons.tsx:15](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/Icons.tsx#L15)
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
# Interface: TextButtonProps
|
|
2
|
-
|
|
3
|
-
Props for the TextButton component
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### onClick
|
|
8
|
-
|
|
9
|
-
• `Optional` **onClick**: () => `void`
|
|
10
|
-
|
|
11
|
-
Handler function called when the button is clicked
|
|
12
|
-
|
|
13
|
-
#### Type declaration
|
|
14
|
-
|
|
15
|
-
▸ (): `void`
|
|
16
|
-
|
|
17
|
-
##### Returns
|
|
18
|
-
|
|
19
|
-
`void`
|
|
20
|
-
|
|
21
|
-
#### Defined in
|
|
22
|
-
|
|
23
|
-
[packages/touchpoint-ui/src/components/ui/TextButton.tsx:13](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/TextButton.tsx#L13)
|
|
24
|
-
|
|
25
|
-
___
|
|
26
|
-
|
|
27
|
-
### label
|
|
28
|
-
|
|
29
|
-
• **label**: `string`
|
|
30
|
-
|
|
31
|
-
Text to display on the button
|
|
32
|
-
|
|
33
|
-
#### Defined in
|
|
34
|
-
|
|
35
|
-
[packages/touchpoint-ui/src/components/ui/TextButton.tsx:17](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/TextButton.tsx#L17)
|
|
36
|
-
|
|
37
|
-
___
|
|
38
|
-
|
|
39
|
-
### className
|
|
40
|
-
|
|
41
|
-
• `Optional` **className**: `string`
|
|
42
|
-
|
|
43
|
-
Additional CSS classes to apply to the button
|
|
44
|
-
|
|
45
|
-
#### Defined in
|
|
46
|
-
|
|
47
|
-
[packages/touchpoint-ui/src/components/ui/TextButton.tsx:21](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/TextButton.tsx#L21)
|
|
48
|
-
|
|
49
|
-
___
|
|
50
|
-
|
|
51
|
-
### type
|
|
52
|
-
|
|
53
|
-
• `Optional` **type**: ``"main"`` \| ``"ghost"``
|
|
54
|
-
|
|
55
|
-
Visual style variant of the button
|
|
56
|
-
Default value is "ghost"
|
|
57
|
-
|
|
58
|
-
#### Defined in
|
|
59
|
-
|
|
60
|
-
[packages/touchpoint-ui/src/components/ui/TextButton.tsx:26](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/TextButton.tsx#L26)
|
|
61
|
-
|
|
62
|
-
___
|
|
63
|
-
|
|
64
|
-
### Icon
|
|
65
|
-
|
|
66
|
-
• **Icon**: `FC`\<[`IconProps`](Icons.IconProps.md)\>
|
|
67
|
-
|
|
68
|
-
Icon component to display inside the button.
|
|
69
|
-
|
|
70
|
-
#### Defined in
|
|
71
|
-
|
|
72
|
-
[packages/touchpoint-ui/src/components/ui/TextButton.tsx:30](https://github.com/nlxai/sdk/blob/8b853457d427626d7c75ba959ddb9dd0754725af/packages/touchpoint-ui/src/components/ui/TextButton.tsx#L30)
|