@julseb-lib/react 0.0.0 → 0.0.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*=============================================== Form types ===============================================*/
|
|
2
2
|
|
|
3
3
|
import type {
|
|
4
|
-
|
|
4
|
+
LibButtonLinkRequired,
|
|
5
5
|
LibComponentBase,
|
|
6
6
|
LibIcon,
|
|
7
7
|
LibSpacers,
|
|
@@ -18,7 +18,7 @@ export interface ILibForm
|
|
|
18
18
|
iconLeftSize?: number
|
|
19
19
|
iconRightSize?: number
|
|
20
20
|
}
|
|
21
|
-
buttonSecondary?:
|
|
21
|
+
buttonSecondary?: LibButtonLinkRequired & {
|
|
22
22
|
text: string
|
|
23
23
|
iconLeft?: LibIcon
|
|
24
24
|
iconRight?: LibIcon
|
package/dist/lib/types/global.ts
CHANGED
|
@@ -242,7 +242,7 @@ export type LibButtonLink =
|
|
|
242
242
|
* @prop to?: string => only if onClick and href are not defined
|
|
243
243
|
* @prop href?: string => only if onClick and to are not defined
|
|
244
244
|
*/
|
|
245
|
-
export type
|
|
245
|
+
export type LibButtonLinkRequired = RequireAtLeastOne<
|
|
246
246
|
LibButtonLink,
|
|
247
247
|
"onClick" | "to" | "href"
|
|
248
248
|
>
|
|
@@ -439,4 +439,5 @@ export type LibTimepickerHours = keyof typeof typeValues.hours
|
|
|
439
439
|
export type LibTimepickerHalfTimes = keyof typeof typeValues.halfHours
|
|
440
440
|
export type LibTimepickerQuarterTimes = keyof typeof typeValues.quarterHours
|
|
441
441
|
export type LibTimepickerMinutes = keyof typeof typeValues.minutes
|
|
442
|
-
export type LibMessagingDateFormat =
|
|
442
|
+
export type LibMessagingDateFormat =
|
|
443
|
+
keyof typeof typeValues.messagingDateFormats
|