@julseb-lib/react 0.1.0 → 0.1.1
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/index.cjs.js +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.umd.js +1 -1
- package/dist/lib/components/Avatar/Avatar.tsx +1 -1
- package/dist/lib/components/Avatar/AvatarFunction.tsx +0 -3
- package/dist/lib/components/InputImage/InputImage.tsx +1 -1
- package/dist/lib/types/component-items.ts +185 -185
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1112,7 +1112,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1112
1112
|
${h?`#${h}`:`.${H}`} {
|
|
1113
1113
|
--avatar-size: ${m}px;
|
|
1114
1114
|
}
|
|
1115
|
-
`),
|
|
1115
|
+
`),t.jsxs(r4,{"data-testid":d&&l?`${l}.Avatar`:l,ref:d?void 0:e,as:d?"span":c,id:h,className:T(d&&a?"Avatar":a,C),$backgroundColor:i,$border:f,$borderRadius:r,$size:m,$contentColor:p,$fontSize:y,...u,children:[z&&t.jsx(D2,{"data-testid":l&&`${l}.Image`,className:a&&"Image",src:typeof z=="object"?z.src:z,alt:typeof z=="object"?z.alt:"Avatar",width:"100%",height:"100%",fit:"cover",imgFallback:typeof z=="object"?{text:z.fallback??"",fontSize:z.fallbackFontSize??y,background:z.fallbackBackgroundColor??i,textColor:z.fallbackFontColor??p}:void 0}),M&&M,v&&t.jsx(l2,{"data-testid":l&&`${l}.Icon`,className:a&&"Icon",icon:v,size:g,color:p,baseUrl:n})]})},$l=({"data-testid":l,as:c,ref:e,size:a=32,border:h,borderRadius:d="circle",badge:i,img:f,letter:r,icon:m,iconSize:p=h2(a),backgroundColor:z="primary",contentColor:M=z==="white"?"primary":z==="black"?"white":"background",className:v,containerStyle:g,role:n="img",...y})=>{var L,$;const u=typeof i=="object",C=u&&i.size?i.size:8,H={"data-testid":l,as:c,className:v,hasBadge:!!i,backgroundColor:z,border:h,borderRadius:d,size:a,contentColor:M,img:f,letter:r,icon:m,iconSize:p,ref:e,role:n,...y};return i?t.jsxs(i4,{"data-testid":l,ref:e,as:c,className:v,style:g,$backgroundColor:z,$border:h,$borderRadius:d,$size:a,$contentColor:M,children:[t.jsx(g3,{...H}),t.jsx(f4,{"data-testid":l&&`${l}.Badge`,className:T({Badge:v},`Position${w.capitalize(u&&i.position?i.position:"top")}`),size:C,number:u&&i.content?i.content:void 0,backgroundColor:u&&i.backgroundColor?i.backgroundColor:void 0,contentColor:u&&i.contentColor?i.contentColor:void 0,padding:u&&i.padding?i.padding:void 0,$width:C,$paddingLeftRight:u&&typeof i.padding=="object"&&((L=i.padding)!=null&&L.leftRight)?($=i.padding)==null?void 0:$.leftRight:"0px",$outline:u&&i.outline?i.outline:void 0})]}):t.jsx(g3,{...H})},z0=({$size:l})=>o.css`
|
|
1116
1116
|
width: ${l&&w.stringifyPx(l)};
|
|
1117
1117
|
height: ${l&&w.stringifyPx(l)};
|
|
1118
1118
|
position: relative;
|
package/dist/index.es.js
CHANGED
|
@@ -7914,7 +7914,7 @@ const L3 = ({
|
|
|
7914
7914
|
${h ? `#${h}` : `.${u}`} {
|
|
7915
7915
|
--avatar-size: ${m}px;
|
|
7916
7916
|
}
|
|
7917
|
-
`),
|
|
7917
|
+
`), /* @__PURE__ */ t.jsxs(
|
|
7918
7918
|
z4,
|
|
7919
7919
|
{
|
|
7920
7920
|
"data-testid": d && l ? `${l}.Avatar` : l,
|
|
@@ -7978,7 +7978,7 @@ const L3 = ({
|
|
|
7978
7978
|
letter: f,
|
|
7979
7979
|
icon: m,
|
|
7980
7980
|
iconSize: o = r2(a),
|
|
7981
|
-
backgroundColor: z = "
|
|
7981
|
+
backgroundColor: z = "primary",
|
|
7982
7982
|
contentColor: n = z === "white" ? "primary" : z === "black" ? "white" : "background",
|
|
7983
7983
|
className: p,
|
|
7984
7984
|
containerStyle: M,
|
package/dist/index.umd.js
CHANGED
|
@@ -1112,7 +1112,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1112
1112
|
${h?`#${h}`:`.${C}`} {
|
|
1113
1113
|
--avatar-size: ${m}px;
|
|
1114
1114
|
}
|
|
1115
|
-
`),
|
|
1115
|
+
`),t.jsxs(P1,{"data-testid":d&&l?`${l}.Avatar`:l,ref:d?void 0:e,as:d?"span":c,id:h,className:G(d&&a?"Avatar":a,$),$backgroundColor:i,$border:r,$borderRadius:f,$size:m,$contentColor:z,$fontSize:y,...u,children:[p&&t.jsx(V2,{"data-testid":l&&`${l}.Image`,className:a&&"Image",src:typeof p=="object"?p.src:p,alt:typeof p=="object"?p.alt:"Avatar",width:"100%",height:"100%",fit:"cover",imgFallback:typeof p=="object"?{text:p.fallback??"",fontSize:p.fallbackFontSize??y,background:p.fallbackBackgroundColor??i,textColor:p.fallbackFontColor??z}:void 0}),M&&M,v&&t.jsx(l2,{"data-testid":l&&`${l}.Icon`,className:a&&"Icon",icon:v,size:g,color:z,baseUrl:n})]})},wl=({"data-testid":l,as:c,ref:e,size:a=32,border:h,borderRadius:d="circle",badge:i,img:r,letter:f,icon:m,iconSize:z=h2(a),backgroundColor:p="primary",contentColor:M=p==="white"?"primary":p==="black"?"white":"background",className:v,containerStyle:g,role:n="img",...y})=>{var R,A;const u=typeof i=="object",$=u&&i.size?i.size:8,C={"data-testid":l,as:c,className:v,hasBadge:!!i,backgroundColor:p,border:h,borderRadius:d,size:a,contentColor:M,img:r,letter:f,icon:m,iconSize:z,ref:e,role:n,...y};return i?t.jsxs(B1,{"data-testid":l,ref:e,as:c,className:v,style:g,$backgroundColor:p,$border:h,$borderRadius:d,$size:a,$contentColor:M,children:[t.jsx(U1,{...C}),t.jsx(Y1,{"data-testid":l&&`${l}.Badge`,className:G({Badge:v},`Position${x.capitalize(u&&i.position?i.position:"top")}`),size:$,number:u&&i.content?i.content:void 0,backgroundColor:u&&i.backgroundColor?i.backgroundColor:void 0,contentColor:u&&i.contentColor?i.contentColor:void 0,padding:u&&i.padding?i.padding:void 0,$width:$,$paddingLeftRight:u&&typeof i.padding=="object"&&((R=i.padding)!=null&&R.leftRight)?(A=i.padding)==null?void 0:A.leftRight:"0px",$outline:u&&i.outline?i.outline:void 0})]}):t.jsx(U1,{...C})},s0=({$size:l})=>s.css`
|
|
1116
1116
|
width: ${l&&x.stringifyPx(l)};
|
|
1117
1117
|
height: ${l&&x.stringifyPx(l)};
|
|
1118
1118
|
position: relative;
|
|
@@ -12,7 +12,7 @@ import type { ILibInputImage } from "./types"
|
|
|
12
12
|
* @extends HTMLInputElement
|
|
13
13
|
* @param {Object} props - InputImage props.
|
|
14
14
|
* @param {string} [props.data-testid] - Test id for testing purposes.
|
|
15
|
-
*
|
|
15
|
+
* @param {Ref<HTMLInputElement>} [props.ref] - Ref forwarded to the input element.
|
|
16
16
|
* @param {string} props.id - Input id.
|
|
17
17
|
* @param {string} props.value - Image source value.
|
|
18
18
|
* @param {string|number} [props.width=64] - Width of the image/input.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { ReactNode, Ref } from "react"
|
|
1
|
+
import type { ReactElement, ReactNode, Ref } from "react"
|
|
2
2
|
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
LibButtonLinkBlank,
|
|
4
|
+
LibAllColors,
|
|
5
|
+
LibIcon,
|
|
6
|
+
LibButtonLinkBlankRequired,
|
|
7
|
+
LibSpacers,
|
|
8
|
+
LibToastStatus,
|
|
9
|
+
ReactChildren,
|
|
10
|
+
LibMessageType,
|
|
11
|
+
CssFontStyle,
|
|
12
|
+
LibColorsHover,
|
|
13
13
|
} from "./"
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -21,44 +21,44 @@ import type {
|
|
|
21
21
|
* @prop ref?: ForwardedRef<T>
|
|
22
22
|
*/
|
|
23
23
|
interface LibComponentItemBase<T> {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
"data-testid"?: string
|
|
25
|
+
className?: string
|
|
26
|
+
id?: string
|
|
27
|
+
ref?: Ref<T>
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
type ButtonGroupItemsBase = LibComponentItemBase<HTMLButtonElement> &
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
LibButtonLinkBlank & {
|
|
32
|
+
"aria-label"?: string
|
|
33
|
+
iconBaseUrl?: string
|
|
34
|
+
}
|
|
35
35
|
|
|
36
36
|
type ButtonGroupItemText = ButtonGroupItemsBase & {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
37
|
+
text: string
|
|
38
|
+
icons?: {
|
|
39
|
+
left?: LibIcon
|
|
40
|
+
right?: LibIcon
|
|
41
|
+
only?: never
|
|
42
|
+
}
|
|
43
|
+
iconSizes?: {
|
|
44
|
+
left?: number
|
|
45
|
+
right?: number
|
|
46
|
+
only?: never
|
|
47
|
+
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
type ButtonGroupItemIcon = ButtonGroupItemsBase & {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
text?: never
|
|
52
|
+
icons?: {
|
|
53
|
+
left?: never
|
|
54
|
+
right?: never
|
|
55
|
+
only?: LibIcon
|
|
56
|
+
}
|
|
57
|
+
iconSizes?: {
|
|
58
|
+
left?: never
|
|
59
|
+
right?: never
|
|
60
|
+
only?: number
|
|
61
|
+
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
@@ -78,27 +78,27 @@ type ButtonGroupItemIcon = ButtonGroupItemsBase & {
|
|
|
78
78
|
export type LibButtonGroupButtonItem = ButtonGroupItemText | ButtonGroupItemIcon
|
|
79
79
|
|
|
80
80
|
interface LibButtonGroupToggleBase
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
extends LibComponentItemBase<HTMLInputElement> {
|
|
82
|
+
id: string
|
|
83
|
+
value: boolean
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
interface ButtonGroupToggleWithIcon extends LibButtonGroupToggleBase {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
87
|
+
icon: LibIcon
|
|
88
|
+
iconSize?: number
|
|
89
|
+
label?: string
|
|
90
|
+
tooltip?: string
|
|
91
|
+
showTooltip?: boolean
|
|
92
|
+
text?: never
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
interface ButtonGroupToggleWithText extends LibButtonGroupToggleBase {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
icon?: never
|
|
97
|
+
iconSize?: never
|
|
98
|
+
label?: never
|
|
99
|
+
tooltip?: never
|
|
100
|
+
showTooltip?: never
|
|
101
|
+
text: string
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -116,27 +116,27 @@ interface ButtonGroupToggleWithText extends LibButtonGroupToggleBase {
|
|
|
116
116
|
* @prop showTooltip?: boolean => only if text is not defined
|
|
117
117
|
*/
|
|
118
118
|
export type LibButtonGroupToggle =
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
| ButtonGroupToggleWithIcon
|
|
120
|
+
| ButtonGroupToggleWithText
|
|
121
121
|
|
|
122
122
|
// ! DO NOT EXPORT
|
|
123
123
|
|
|
124
124
|
type ListGroupItemBadgeColor = {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
backgroundColor?: LibAllColors
|
|
126
|
+
contentColor?: LibAllColors
|
|
127
|
+
size?: number
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
type ListGroupItemBadgeIcon = ListGroupItemBadgeColor & {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
icon?: LibIcon
|
|
132
|
+
iconSize?: number
|
|
133
|
+
number?: never
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
type ListGroupItemBadgeNumber = ListGroupItemBadgeColor & {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
icon?: never
|
|
138
|
+
iconSize?: never
|
|
139
|
+
number?: number
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
/**
|
|
@@ -148,25 +148,25 @@ type ListGroupItemBadgeNumber = ListGroupItemBadgeColor & {
|
|
|
148
148
|
* @prop number?: number => only if icon is not defined
|
|
149
149
|
*/
|
|
150
150
|
type ListGroupItemBadgeExtended =
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
| ListGroupItemBadgeIcon
|
|
152
|
+
| ListGroupItemBadgeNumber
|
|
153
153
|
|
|
154
154
|
// ! END DO NOT EXPORT
|
|
155
155
|
|
|
156
156
|
type ListGroupItemBase = LibButtonLinkBlank &
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
LibComponentItemBase<HTMLDivElement> & {
|
|
158
|
+
text: string
|
|
159
|
+
body?: string
|
|
160
|
+
}
|
|
161
161
|
|
|
162
162
|
type ListGroupItemWithBadge = ListGroupItemBase & {
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
badge?: boolean | ListGroupItemBadgeExtended
|
|
164
|
+
date?: never
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
type ListGroupItemWithDate = ListGroupItemBase & {
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
badge?: never
|
|
169
|
+
date?: string | Date
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
/**
|
|
@@ -194,9 +194,9 @@ export type LibListGroupItem = ListGroupItemWithBadge | ListGroupItemWithDate
|
|
|
194
194
|
* @prop content?: ReactChildren
|
|
195
195
|
*/
|
|
196
196
|
export interface LibAccordionItem extends LibComponentItemBase<HTMLDivElement> {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
197
|
+
title: string
|
|
198
|
+
content?: ReactChildren
|
|
199
|
+
defaultOpen?: boolean
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
/**
|
|
@@ -212,12 +212,12 @@ export interface LibAccordionItem extends LibComponentItemBase<HTMLDivElement> {
|
|
|
212
212
|
* @prop gap?: LibSpacers
|
|
213
213
|
*/
|
|
214
214
|
export type LibDropdownItem = LibButtonLinkBlankRequired &
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
215
|
+
LibComponentItemBase<HTMLButtonElement & HTMLAnchorElement> & {
|
|
216
|
+
text: string
|
|
217
|
+
icon?: LibIcon
|
|
218
|
+
iconSize?: number
|
|
219
|
+
gap?: LibSpacers
|
|
220
|
+
}
|
|
221
221
|
|
|
222
222
|
/**
|
|
223
223
|
* @description Props for Toaster component items: https://documentation-components-react.vercel.app/components/toast
|
|
@@ -235,21 +235,21 @@ export type LibDropdownItem = LibButtonLinkBlankRequired &
|
|
|
235
235
|
* @prop timerBackgroundColor?: Any color from the library
|
|
236
236
|
*/
|
|
237
237
|
export interface LibToastOptions extends LibComponentItemBase<HTMLDivElement> {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
238
|
+
body?: string | ReactChildren
|
|
239
|
+
duration?: number
|
|
240
|
+
icons?: {
|
|
241
|
+
left?: LibIcon
|
|
242
|
+
close?: LibIcon
|
|
243
|
+
}
|
|
244
|
+
iconSizes?: {
|
|
245
|
+
left?: number
|
|
246
|
+
close?: number
|
|
247
|
+
}
|
|
248
|
+
iconLeftColor?: LibAllColors
|
|
249
|
+
iconsBaseUrl?: string
|
|
250
|
+
labelClose?: string
|
|
251
|
+
withTimer?: boolean
|
|
252
|
+
timerBackgroundColor?: LibAllColors
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
/**
|
|
@@ -278,10 +278,10 @@ export interface LibToastOptions extends LibComponentItemBase<HTMLDivElement> {
|
|
|
278
278
|
* @prop timerBackgroundColor?: Any color from the library
|
|
279
279
|
*/
|
|
280
280
|
export interface LibToast extends LibComponentItemBase<HTMLDivElement> {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
281
|
+
title: string
|
|
282
|
+
id?: string
|
|
283
|
+
status?: LibToastStatus
|
|
284
|
+
options?: LibToastOptions
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
/**
|
|
@@ -299,9 +299,9 @@ export interface LibToast extends LibComponentItemBase<HTMLDivElement> {
|
|
|
299
299
|
* @prop blank?: boolean => only if to or href are defined
|
|
300
300
|
*/
|
|
301
301
|
export type LibStep = LibButtonLinkBlank &
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
LibComponentItemBase<HTMLDivElement> & {
|
|
303
|
+
text: string
|
|
304
|
+
}
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
307
|
* @description Props for Breadcrumbs component items: https://documentation-components-react.vercel.app/components/breadcrumbs
|
|
@@ -313,9 +313,9 @@ export type LibStep = LibButtonLinkBlank &
|
|
|
313
313
|
* @prop text: string
|
|
314
314
|
*/
|
|
315
315
|
export type LibBreadcrumbItem = LibButtonLinkBlank &
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
LibComponentItemBase<HTMLAnchorElement & HTMLSpanElement> & {
|
|
317
|
+
text: string | ReactElement
|
|
318
|
+
}
|
|
319
319
|
|
|
320
320
|
/**
|
|
321
321
|
* @description Props for Tabs component items: https://documentation-components-react.vercel.app/components/tabs
|
|
@@ -327,9 +327,9 @@ export type LibBreadcrumbItem = LibButtonLinkBlank &
|
|
|
327
327
|
* @prop content: ReactNode
|
|
328
328
|
*/
|
|
329
329
|
export interface LibTabItem
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
extends LibComponentItemBase<HTMLDivElement & HTMLButtonElement> {
|
|
331
|
+
title: string
|
|
332
|
+
content: ReactNode
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
/**
|
|
@@ -344,10 +344,10 @@ export interface LibTabItem
|
|
|
344
344
|
* @prop time?: string
|
|
345
345
|
*/
|
|
346
346
|
export interface LibMessage extends LibComponentItemBase<HTMLDivElement> {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
347
|
+
type: LibMessageType
|
|
348
|
+
text: string
|
|
349
|
+
date?: Date | string
|
|
350
|
+
time?: string
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
/**
|
|
@@ -371,23 +371,23 @@ export interface LibMessage extends LibComponentItemBase<HTMLDivElement> {
|
|
|
371
371
|
* @prop editorPreview?: boolean
|
|
372
372
|
*/
|
|
373
373
|
export interface LibMarkdownEditorOptions {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
374
|
+
titles?: boolean
|
|
375
|
+
bold?: boolean
|
|
376
|
+
italic?: boolean
|
|
377
|
+
strikethrough?: boolean
|
|
378
|
+
underline?: boolean
|
|
379
|
+
ul?: boolean
|
|
380
|
+
ol?: boolean
|
|
381
|
+
link?: boolean
|
|
382
|
+
quote?: boolean
|
|
383
|
+
hr?: boolean
|
|
384
|
+
code?: boolean
|
|
385
|
+
codeBlock?: boolean
|
|
386
|
+
comment?: boolean
|
|
387
|
+
image?: boolean
|
|
388
|
+
editorCode?: boolean
|
|
389
|
+
editorLive?: boolean
|
|
390
|
+
editorPreview?: boolean
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
/**
|
|
@@ -401,10 +401,10 @@ export interface LibMarkdownEditorOptions {
|
|
|
401
401
|
* @prop end?: boolean => prop from react-router, to render the active class only if path is not further
|
|
402
402
|
*/
|
|
403
403
|
export type LibHeaderLink = LibButtonLinkBlankRequired &
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
404
|
+
LibComponentItemBase<HTMLAnchorElement & HTMLButtonElement> & {
|
|
405
|
+
text: ReactChildren
|
|
406
|
+
end?: boolean
|
|
407
|
+
}
|
|
408
408
|
|
|
409
409
|
/**
|
|
410
410
|
* @description Props for Items in IconMenu component items: https://documentation-components-react.vercel.app/icon-menu
|
|
@@ -418,11 +418,11 @@ export type LibHeaderLink = LibButtonLinkBlankRequired &
|
|
|
418
418
|
* @prop iconSize?: number
|
|
419
419
|
*/
|
|
420
420
|
export type LibIconMenuItem = LibButtonLinkBlankRequired &
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
421
|
+
LibComponentItemBase<HTMLButtonElement & HTMLAnchorElement> & {
|
|
422
|
+
label: string
|
|
423
|
+
icon: LibIcon
|
|
424
|
+
iconSize?: number
|
|
425
|
+
}
|
|
426
426
|
|
|
427
427
|
/**
|
|
428
428
|
* @description Props for links in Footer component items: https://documentation-components-react.vercel.app/components/footer
|
|
@@ -434,36 +434,36 @@ export type LibIconMenuItem = LibButtonLinkBlankRequired &
|
|
|
434
434
|
* @prop text: ReactChildren
|
|
435
435
|
*/
|
|
436
436
|
export type LibFooterLink = LibButtonLinkBlankRequired &
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
437
|
+
LibComponentItemBase<HTMLAnchorElement & HTMLButtonElement> & {
|
|
438
|
+
text: ReactChildren
|
|
439
|
+
}
|
|
440
440
|
|
|
441
441
|
type LibDragListItemBase = LibComponentItemBase<HTMLDivElement> & {
|
|
442
|
-
|
|
442
|
+
id: string
|
|
443
443
|
}
|
|
444
444
|
|
|
445
445
|
interface DragListItemWithContentAndBadge extends LibDragListItemBase {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
446
|
+
title: string
|
|
447
|
+
body?: string
|
|
448
|
+
badge?: boolean | ListGroupItemBadgeExtended
|
|
449
|
+
date?: never
|
|
450
|
+
element?: never
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
interface DragListItemWithContentAndDate extends LibDragListItemBase {
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
454
|
+
title: string
|
|
455
|
+
body?: string
|
|
456
|
+
badge?: never
|
|
457
|
+
date?: string | Date
|
|
458
|
+
element?: never
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
interface DragListItemWithElement extends LibDragListItemBase {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
462
|
+
title?: never
|
|
463
|
+
body?: never
|
|
464
|
+
badge?: never
|
|
465
|
+
date?: never
|
|
466
|
+
element?: ReactElement
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
/**
|
|
@@ -479,33 +479,33 @@ interface DragListItemWithElement extends LibDragListItemBase {
|
|
|
479
479
|
* @prop element?: JSX.ELement => only if title and other props are not defined
|
|
480
480
|
*/
|
|
481
481
|
export type LibDragListItem =
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
482
|
+
| DragListItemWithContentAndBadge
|
|
483
|
+
| DragListItemWithContentAndDate
|
|
484
|
+
| DragListItemWithElement
|
|
485
485
|
|
|
486
486
|
interface HelperBottomWithText {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
487
|
+
text: string
|
|
488
|
+
textColor?: LibAllColors
|
|
489
|
+
fontStyle?: CssFontStyle
|
|
490
|
+
icon?: LibIcon
|
|
491
|
+
iconColor?: LibAllColors
|
|
492
|
+
iconSize?: number
|
|
493
|
+
element?: never
|
|
494
|
+
linkColor?: LibColorsHover
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
interface HelperBottomWithElement {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
498
|
+
text?: never
|
|
499
|
+
textColor?: never
|
|
500
|
+
fontStyle?: never
|
|
501
|
+
icon?: never
|
|
502
|
+
iconColor?: never
|
|
503
|
+
iconSize?: never
|
|
504
|
+
element: ReactChildren
|
|
505
|
+
linkColor?: LibColorsHover
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
export type LibHelperBottom =
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
509
|
+
| string
|
|
510
|
+
| HelperBottomWithText
|
|
511
|
+
| HelperBottomWithElement
|