loon-bulma-react 2024.0.22 → 2024.0.24
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 +121 -121
- package/dist/index.d.cts +19 -13
- package/dist/index.d.ts +19 -13
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1196,14 +1196,16 @@ type ModalProps = {
|
|
|
1196
1196
|
/** Callback voor openen van de modal */
|
|
1197
1197
|
onOpened?: (helptag?: string) => void;
|
|
1198
1198
|
/** De grootte van de modal: met SizeProp of een string. ( DEFAULT = 'm', 800px)
|
|
1199
|
-
* - `SizeProp`: s: 600px, m: 800px, l: 1000px, xl: 1200px
|
|
1199
|
+
* - `SizeProp`: s: 600px, m: 800px, l: 1000px, xl: 1200px, max: 95%;
|
|
1200
1200
|
* - `string`: '834px', '50%, 60em', '100%'
|
|
1201
1201
|
*/
|
|
1202
|
-
size?: SizeProp | string;
|
|
1202
|
+
size?: SizeProp | 'max' | string | undefined;
|
|
1203
1203
|
/** Helptag in Loon voor de modal */
|
|
1204
|
-
helpTag?: string;
|
|
1204
|
+
helpTag?: string | undefined;
|
|
1205
1205
|
/** blokkeer sluiten van modal als je er buiten klikt? (default = false) */
|
|
1206
1206
|
disableOutsideClickDismiss?: boolean;
|
|
1207
|
+
/** id for the modal itself */
|
|
1208
|
+
id?: string | undefined;
|
|
1207
1209
|
};
|
|
1208
1210
|
/**
|
|
1209
1211
|
* Een modal-component. Als een modal ene Foot en een Head heeft, wordt de rest automatisch toegevoegd in een Body
|
|
@@ -1219,34 +1221,37 @@ type ModalProps = {
|
|
|
1219
1221
|
* </Modal>
|
|
1220
1222
|
*/
|
|
1221
1223
|
declare const Modal: {
|
|
1222
|
-
({ size, children: nodeChildren, onOpened, onDismiss, helpTag, disableOutsideClickDismiss, }: ModalProps): JSX.Element;
|
|
1224
|
+
({ id, size, children: nodeChildren, onOpened, onDismiss, helpTag, disableOutsideClickDismiss, }: ModalProps): JSX.Element;
|
|
1223
1225
|
/**
|
|
1224
1226
|
* Een niet-scrollende, altijd zichtbare head voor de modal
|
|
1225
1227
|
* @param props
|
|
1226
1228
|
* @returns modal head
|
|
1227
1229
|
* @example <Modal.Head>Optional Modal Head</Modal.Head>
|
|
1228
1230
|
*/
|
|
1229
|
-
Head({ children }: {
|
|
1231
|
+
Head: ({ id, children }: {
|
|
1232
|
+
id?: string | undefined;
|
|
1230
1233
|
children: React$1.ReactNode;
|
|
1231
|
-
})
|
|
1234
|
+
}) => JSX.Element;
|
|
1232
1235
|
/**
|
|
1233
1236
|
* Een scrollende body voor de modal
|
|
1234
1237
|
* @param props
|
|
1235
1238
|
* @returns modal body
|
|
1236
1239
|
* @example <Modal.Body>Modal Body</Modal.Body>
|
|
1237
1240
|
*/
|
|
1238
|
-
Body({ children }: {
|
|
1241
|
+
Body: ({ id, children }: {
|
|
1242
|
+
id?: string | undefined;
|
|
1239
1243
|
children: React$1.ReactNode;
|
|
1240
|
-
})
|
|
1244
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1241
1245
|
/**
|
|
1242
1246
|
* Een niet-scrollende, altijd zichtbare foot voor de modal
|
|
1243
1247
|
* @param props props
|
|
1244
1248
|
* @returns modal foot
|
|
1245
1249
|
* @example <Modal.Foot>Optional Modal Foot</Modal.Foot>
|
|
1246
1250
|
*/
|
|
1247
|
-
Foot({ children }: {
|
|
1251
|
+
Foot: ({ id, children }: {
|
|
1252
|
+
id?: string | undefined;
|
|
1248
1253
|
children: React$1.ReactNode;
|
|
1249
|
-
})
|
|
1254
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1250
1255
|
};
|
|
1251
1256
|
|
|
1252
1257
|
/** Props voor een Notification */
|
|
@@ -3315,7 +3320,7 @@ type InputStylingPropsType = {
|
|
|
3315
3320
|
/** moet het label van de input verborgen worden? (screenreader only) (default = `false`) */ labelHidden?: boolean;
|
|
3316
3321
|
/** label boven (`v`) of voor (`h`) de input, (default = `v`, vertical) */ direction?: DirectionProp;
|
|
3317
3322
|
/** (optioneel) icon op de input */ icon?: IconProp | string | undefined | null;
|
|
3318
|
-
infoData?: string | React$1.ReactNode | (() => void) | undefined;
|
|
3323
|
+
infoData?: string | React$1.ReactNode | ((helptag?: string | undefined) => void) | undefined;
|
|
3319
3324
|
};
|
|
3320
3325
|
type InputPropsType<T = InputValueType> = {
|
|
3321
3326
|
optionList?: string[] | Array<{
|
|
@@ -3488,7 +3493,7 @@ declare function BaseInput<T extends InputValueType = string>({ alignment, autoC
|
|
|
3488
3493
|
* | type | `string` | type voor deze input (default = `text`)|
|
|
3489
3494
|
* | value | `string` | value voor deze input (default = `undefined`)|
|
|
3490
3495
|
*/
|
|
3491
|
-
declare function Input<T extends InputValueType = string>({ direction, errorMessage, showRequiredOnLabel, icon, id, label, labelHidden, name, required, loading, size, value, infoData, optionList, onBlur, onFocus, ...props }: StrictOmit<InputPropsType<T>, 'optionListId'> & InputStylingPropsType): JSX.Element;
|
|
3496
|
+
declare function Input<T extends InputValueType = string>({ direction, errorMessage, showRequiredOnLabel, icon, id, label, labelHidden, name, required, loading, size, value, infoData, helpTag, optionList, onBlur, onFocus, ...props }: StrictOmit<InputPropsType<T>, 'optionListId'> & InputStylingPropsType): JSX.Element;
|
|
3492
3497
|
|
|
3493
3498
|
type CheckBoxInputProps = StrictOmit<InputPropsType<boolean>, 'value' | 'type' | 'step' | 'pattern' | 'errorMessage' | 'infoMessage' | 'min' | 'max' | 'pattern' | 'placeholder'> & StrictOmit<InputStylingPropsType, 'icon'> & {
|
|
3494
3499
|
/** is de input checked? */
|
|
@@ -3833,6 +3838,7 @@ type RadioGroupProps<T extends RBValueType = string> = StrictOmit<InputStylingPr
|
|
|
3833
3838
|
/** label bij de radio-group. Als geen label, dan wordt de `name`-property gebruikt */ label?: string;
|
|
3834
3839
|
/** name-property voor de input. Deze hoort bij **alle** radio-buttons in de groep */ name: string;
|
|
3835
3840
|
/** huidige waarde voor de radio-group. Dus de geselecteerde RadioButton */ value: T;
|
|
3841
|
+
/** help-tag voor deze radio-group */ helpTag?: string | undefined;
|
|
3836
3842
|
/** is deze input required (default= `false`) */ required?: boolean;
|
|
3837
3843
|
/** Wordt er een rood sterretje bij het label getoond als een Radiogroup item required is ? (default = `false`) */ showRequiredOnLabel?: boolean;
|
|
3838
3844
|
/** is deze input disabled (default= `false`) */ disabled?: boolean;
|
|
@@ -3911,7 +3917,7 @@ declare function RB<T extends RBValueType = string>({ helpTag, disabled, keyboar
|
|
|
3911
3917
|
* ..<RB value="Z">set to Z</RB>
|
|
3912
3918
|
* </RadioGroup>
|
|
3913
3919
|
*/
|
|
3914
|
-
declare function RadioGroup<T extends RBValueType = string>({ children: nodeChildren, id, label, disabled, labelHidden, name, value, required, showRequiredOnLabel, size, direction, itemsDirection, alignment, errorMessage, infoMessage, infoData, onValueChanged, onBlur, onChange, onFocus, onKeyDown, onKeyUp, }: RadioGroupProps<T>): JSX.Element;
|
|
3920
|
+
declare function RadioGroup<T extends RBValueType = string>({ children: nodeChildren, id, label, disabled, labelHidden, name, value, required, showRequiredOnLabel, size, direction, itemsDirection, alignment, errorMessage, infoMessage, infoData, helpTag, onValueChanged, onBlur, onChange, onFocus, onKeyDown, onKeyUp, }: RadioGroupProps<T>): JSX.Element;
|
|
3915
3921
|
declare namespace RadioGroup {
|
|
3916
3922
|
var Item: typeof SpecialRadioItem;
|
|
3917
3923
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1196,14 +1196,16 @@ type ModalProps = {
|
|
|
1196
1196
|
/** Callback voor openen van de modal */
|
|
1197
1197
|
onOpened?: (helptag?: string) => void;
|
|
1198
1198
|
/** De grootte van de modal: met SizeProp of een string. ( DEFAULT = 'm', 800px)
|
|
1199
|
-
* - `SizeProp`: s: 600px, m: 800px, l: 1000px, xl: 1200px
|
|
1199
|
+
* - `SizeProp`: s: 600px, m: 800px, l: 1000px, xl: 1200px, max: 95%;
|
|
1200
1200
|
* - `string`: '834px', '50%, 60em', '100%'
|
|
1201
1201
|
*/
|
|
1202
|
-
size?: SizeProp | string;
|
|
1202
|
+
size?: SizeProp | 'max' | string | undefined;
|
|
1203
1203
|
/** Helptag in Loon voor de modal */
|
|
1204
|
-
helpTag?: string;
|
|
1204
|
+
helpTag?: string | undefined;
|
|
1205
1205
|
/** blokkeer sluiten van modal als je er buiten klikt? (default = false) */
|
|
1206
1206
|
disableOutsideClickDismiss?: boolean;
|
|
1207
|
+
/** id for the modal itself */
|
|
1208
|
+
id?: string | undefined;
|
|
1207
1209
|
};
|
|
1208
1210
|
/**
|
|
1209
1211
|
* Een modal-component. Als een modal ene Foot en een Head heeft, wordt de rest automatisch toegevoegd in een Body
|
|
@@ -1219,34 +1221,37 @@ type ModalProps = {
|
|
|
1219
1221
|
* </Modal>
|
|
1220
1222
|
*/
|
|
1221
1223
|
declare const Modal: {
|
|
1222
|
-
({ size, children: nodeChildren, onOpened, onDismiss, helpTag, disableOutsideClickDismiss, }: ModalProps): JSX.Element;
|
|
1224
|
+
({ id, size, children: nodeChildren, onOpened, onDismiss, helpTag, disableOutsideClickDismiss, }: ModalProps): JSX.Element;
|
|
1223
1225
|
/**
|
|
1224
1226
|
* Een niet-scrollende, altijd zichtbare head voor de modal
|
|
1225
1227
|
* @param props
|
|
1226
1228
|
* @returns modal head
|
|
1227
1229
|
* @example <Modal.Head>Optional Modal Head</Modal.Head>
|
|
1228
1230
|
*/
|
|
1229
|
-
Head({ children }: {
|
|
1231
|
+
Head: ({ id, children }: {
|
|
1232
|
+
id?: string | undefined;
|
|
1230
1233
|
children: React$1.ReactNode;
|
|
1231
|
-
})
|
|
1234
|
+
}) => JSX.Element;
|
|
1232
1235
|
/**
|
|
1233
1236
|
* Een scrollende body voor de modal
|
|
1234
1237
|
* @param props
|
|
1235
1238
|
* @returns modal body
|
|
1236
1239
|
* @example <Modal.Body>Modal Body</Modal.Body>
|
|
1237
1240
|
*/
|
|
1238
|
-
Body({ children }: {
|
|
1241
|
+
Body: ({ id, children }: {
|
|
1242
|
+
id?: string | undefined;
|
|
1239
1243
|
children: React$1.ReactNode;
|
|
1240
|
-
})
|
|
1244
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1241
1245
|
/**
|
|
1242
1246
|
* Een niet-scrollende, altijd zichtbare foot voor de modal
|
|
1243
1247
|
* @param props props
|
|
1244
1248
|
* @returns modal foot
|
|
1245
1249
|
* @example <Modal.Foot>Optional Modal Foot</Modal.Foot>
|
|
1246
1250
|
*/
|
|
1247
|
-
Foot({ children }: {
|
|
1251
|
+
Foot: ({ id, children }: {
|
|
1252
|
+
id?: string | undefined;
|
|
1248
1253
|
children: React$1.ReactNode;
|
|
1249
|
-
})
|
|
1254
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
1250
1255
|
};
|
|
1251
1256
|
|
|
1252
1257
|
/** Props voor een Notification */
|
|
@@ -3315,7 +3320,7 @@ type InputStylingPropsType = {
|
|
|
3315
3320
|
/** moet het label van de input verborgen worden? (screenreader only) (default = `false`) */ labelHidden?: boolean;
|
|
3316
3321
|
/** label boven (`v`) of voor (`h`) de input, (default = `v`, vertical) */ direction?: DirectionProp;
|
|
3317
3322
|
/** (optioneel) icon op de input */ icon?: IconProp | string | undefined | null;
|
|
3318
|
-
infoData?: string | React$1.ReactNode | (() => void) | undefined;
|
|
3323
|
+
infoData?: string | React$1.ReactNode | ((helptag?: string | undefined) => void) | undefined;
|
|
3319
3324
|
};
|
|
3320
3325
|
type InputPropsType<T = InputValueType> = {
|
|
3321
3326
|
optionList?: string[] | Array<{
|
|
@@ -3488,7 +3493,7 @@ declare function BaseInput<T extends InputValueType = string>({ alignment, autoC
|
|
|
3488
3493
|
* | type | `string` | type voor deze input (default = `text`)|
|
|
3489
3494
|
* | value | `string` | value voor deze input (default = `undefined`)|
|
|
3490
3495
|
*/
|
|
3491
|
-
declare function Input<T extends InputValueType = string>({ direction, errorMessage, showRequiredOnLabel, icon, id, label, labelHidden, name, required, loading, size, value, infoData, optionList, onBlur, onFocus, ...props }: StrictOmit<InputPropsType<T>, 'optionListId'> & InputStylingPropsType): JSX.Element;
|
|
3496
|
+
declare function Input<T extends InputValueType = string>({ direction, errorMessage, showRequiredOnLabel, icon, id, label, labelHidden, name, required, loading, size, value, infoData, helpTag, optionList, onBlur, onFocus, ...props }: StrictOmit<InputPropsType<T>, 'optionListId'> & InputStylingPropsType): JSX.Element;
|
|
3492
3497
|
|
|
3493
3498
|
type CheckBoxInputProps = StrictOmit<InputPropsType<boolean>, 'value' | 'type' | 'step' | 'pattern' | 'errorMessage' | 'infoMessage' | 'min' | 'max' | 'pattern' | 'placeholder'> & StrictOmit<InputStylingPropsType, 'icon'> & {
|
|
3494
3499
|
/** is de input checked? */
|
|
@@ -3833,6 +3838,7 @@ type RadioGroupProps<T extends RBValueType = string> = StrictOmit<InputStylingPr
|
|
|
3833
3838
|
/** label bij de radio-group. Als geen label, dan wordt de `name`-property gebruikt */ label?: string;
|
|
3834
3839
|
/** name-property voor de input. Deze hoort bij **alle** radio-buttons in de groep */ name: string;
|
|
3835
3840
|
/** huidige waarde voor de radio-group. Dus de geselecteerde RadioButton */ value: T;
|
|
3841
|
+
/** help-tag voor deze radio-group */ helpTag?: string | undefined;
|
|
3836
3842
|
/** is deze input required (default= `false`) */ required?: boolean;
|
|
3837
3843
|
/** Wordt er een rood sterretje bij het label getoond als een Radiogroup item required is ? (default = `false`) */ showRequiredOnLabel?: boolean;
|
|
3838
3844
|
/** is deze input disabled (default= `false`) */ disabled?: boolean;
|
|
@@ -3911,7 +3917,7 @@ declare function RB<T extends RBValueType = string>({ helpTag, disabled, keyboar
|
|
|
3911
3917
|
* ..<RB value="Z">set to Z</RB>
|
|
3912
3918
|
* </RadioGroup>
|
|
3913
3919
|
*/
|
|
3914
|
-
declare function RadioGroup<T extends RBValueType = string>({ children: nodeChildren, id, label, disabled, labelHidden, name, value, required, showRequiredOnLabel, size, direction, itemsDirection, alignment, errorMessage, infoMessage, infoData, onValueChanged, onBlur, onChange, onFocus, onKeyDown, onKeyUp, }: RadioGroupProps<T>): JSX.Element;
|
|
3920
|
+
declare function RadioGroup<T extends RBValueType = string>({ children: nodeChildren, id, label, disabled, labelHidden, name, value, required, showRequiredOnLabel, size, direction, itemsDirection, alignment, errorMessage, infoMessage, infoData, helpTag, onValueChanged, onBlur, onChange, onFocus, onKeyDown, onKeyUp, }: RadioGroupProps<T>): JSX.Element;
|
|
3915
3921
|
declare namespace RadioGroup {
|
|
3916
3922
|
var Item: typeof SpecialRadioItem;
|
|
3917
3923
|
}
|