@muraldevkit/ui-toolkit 1.20.1 → 1.21.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/components/form/checkbox/MrlCheckbox/MrlCheckbox.d.ts +31 -0
- package/dist/components/form/checkbox/MrlCheckbox/index.d.ts +1 -0
- package/dist/components/form/checkbox/MrlCheckboxStandalone/MrlCheckboxStandalone.d.ts +26 -0
- package/dist/components/form/checkbox/MrlCheckboxStandalone/index.d.ts +1 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/styles/MrlCheckbox/global.scss +30 -0
- package/dist/styles/MrlCheckbox/module.scss +27 -0
- package/dist/styles/MrlCheckbox/variables.scss +38 -0
- package/dist/styles/MrlCheckboxStandalone/global.scss +31 -0
- package/dist/styles/MrlCheckboxStandalone/module.scss +45 -0
- package/dist/styles/MrlCheckboxStandalone/variables.scss +41 -0
- package/dist/styles/form/global.scss +0 -31
- package/dist/styles/form/variables.scss +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AttrsObject } from '../../../../utils';
|
|
3
|
+
import { CheckboxSelected, CheckboxStates, StaticIconConfig } from '../../constants';
|
|
4
|
+
import './MrlCheckbox.global.scss';
|
|
5
|
+
interface MrlCheckboxProps {
|
|
6
|
+
/** Applies additional HTML attributes to the checkbox element */
|
|
7
|
+
attrs?: AttrsObject;
|
|
8
|
+
/** Additional class to add to the container of the checkbox and label */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** The current state of the checkbox input based on user interactions or permissions */
|
|
11
|
+
state?: CheckboxStates;
|
|
12
|
+
/**
|
|
13
|
+
* Sets what selection state the checkbox is in.
|
|
14
|
+
*
|
|
15
|
+
* @todo implement 'indeterminate'
|
|
16
|
+
*/
|
|
17
|
+
selected?: CheckboxSelected;
|
|
18
|
+
/** The text to display as the checkbox's label */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Leading label icon */
|
|
21
|
+
icon?: StaticIconConfig;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Form element with an associated text label that allows the user to select one or more options
|
|
25
|
+
* from a provided list
|
|
26
|
+
*
|
|
27
|
+
* @param {MrlCheckboxProps} props - the component props
|
|
28
|
+
* @returns a checkbox element with an associated label
|
|
29
|
+
*/
|
|
30
|
+
export declare function MrlCheckbox({ attrs, className, state, selected, icon, label }: MrlCheckboxProps): JSX.Element;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlCheckbox';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AttrsObject } from '../../../../utils';
|
|
3
|
+
import { CheckboxSelected, CheckboxStates } from '../../constants';
|
|
4
|
+
import './MrlCheckboxStandalone.global.scss';
|
|
5
|
+
interface MrlCheckboxStandaloneProps {
|
|
6
|
+
/** Applies additional HTML attributes to the checkbox element */
|
|
7
|
+
attrs?: AttrsObject;
|
|
8
|
+
/** The current state of the checkbox input based on user interactions or permissions */
|
|
9
|
+
state?: CheckboxStates;
|
|
10
|
+
/**
|
|
11
|
+
* Sets what selection state the checkbox is in.
|
|
12
|
+
*
|
|
13
|
+
* @todo implement 'indeterminate'
|
|
14
|
+
*/
|
|
15
|
+
selected?: CheckboxSelected;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Input that allows the user to select one or more options from a provided list.
|
|
19
|
+
* Note, this component does not provide out of the box accessibility for ensuring
|
|
20
|
+
* an associated label and must be manually setup during adoption.
|
|
21
|
+
*
|
|
22
|
+
* @param {MrlCheckboxStandaloneProps} props - the component props
|
|
23
|
+
* @returns a checkbox element
|
|
24
|
+
*/
|
|
25
|
+
export declare function MrlCheckboxStandalone({ attrs, state, selected }: MrlCheckboxStandaloneProps): JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MrlCheckboxStandalone';
|