@trackunit/react-components 0.0.56 → 0.0.60-alpha-4730.0
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/components/Checkbox/Checkbox.d.ts +14 -3
- package/index.js +16 -4
- package/package.json +5 -5
|
@@ -28,8 +28,19 @@ export interface CheckboxProps extends CommonProps, React.InputHTMLAttributes<HT
|
|
|
28
28
|
indeterminate?: boolean;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* Checkbox are interactive elements that represent the boolean logical value (true or false) that can be used for boolean inputs, selectors etc.
|
|
32
|
+
*
|
|
33
|
+
* Checkboxes are used when there are multiple items to select in a list. Users can select zero, one, or any number of items.
|
|
34
|
+
*
|
|
35
|
+
* Checkboxes are used for multiple choices, not for mutually exclusive choices. Each checkbox works independently from other checkboxes in the list, therefore checking an additional box does not affect any other selections.
|
|
36
|
+
*
|
|
37
|
+
* _**Do use** checkboxes to allow selection in a form, for filtering, terms and conditions to indicate agreement, and bulk actions in lists or tables._
|
|
38
|
+
*
|
|
39
|
+
* _**Do not use** checkboxes if the user can only select one option from a list, radio buttons should be used instead of checkboxes._
|
|
40
|
+
*
|
|
41
|
+
* @description A reference to the input element is provided as the `ref` prop.
|
|
42
|
+
* @augments props from [React.InputHTMLAttributes](https://reactjs.org/docs/dom-elements.html#input)
|
|
43
|
+
* @param {CheckboxProps} props - The props for the Checkbox component
|
|
44
|
+
* @returns {JSX.Element} Checkbox component
|
|
34
45
|
*/
|
|
35
46
|
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
|
package/index.js
CHANGED
|
@@ -1396,7 +1396,7 @@ const CheckIcon = ({
|
|
|
1396
1396
|
return jsx("svg", Object.assign({
|
|
1397
1397
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1398
1398
|
className: className,
|
|
1399
|
-
"data-
|
|
1399
|
+
"data-testid": dataTestId,
|
|
1400
1400
|
fill: "none",
|
|
1401
1401
|
viewBox: "0 0 10 10",
|
|
1402
1402
|
stroke: "currentColor",
|
|
@@ -1435,9 +1435,20 @@ const IndeterminateIcon = ({
|
|
|
1435
1435
|
}));
|
|
1436
1436
|
|
|
1437
1437
|
/**
|
|
1438
|
-
*
|
|
1439
|
-
*
|
|
1440
|
-
*
|
|
1438
|
+
* Checkbox are interactive elements that represent the boolean logical value (true or false) that can be used for boolean inputs, selectors etc.
|
|
1439
|
+
*
|
|
1440
|
+
* Checkboxes are used when there are multiple items to select in a list. Users can select zero, one, or any number of items.
|
|
1441
|
+
*
|
|
1442
|
+
* Checkboxes are used for multiple choices, not for mutually exclusive choices. Each checkbox works independently from other checkboxes in the list, therefore checking an additional box does not affect any other selections.
|
|
1443
|
+
*
|
|
1444
|
+
* _**Do use** checkboxes to allow selection in a form, for filtering, terms and conditions to indicate agreement, and bulk actions in lists or tables._
|
|
1445
|
+
*
|
|
1446
|
+
* _**Do not use** checkboxes if the user can only select one option from a list, radio buttons should be used instead of checkboxes._
|
|
1447
|
+
*
|
|
1448
|
+
* @description A reference to the input element is provided as the `ref` prop.
|
|
1449
|
+
* @augments props from [React.InputHTMLAttributes](https://reactjs.org/docs/dom-elements.html#input)
|
|
1450
|
+
* @param {CheckboxProps} props - The props for the Checkbox component
|
|
1451
|
+
* @returns {JSX.Element} Checkbox component
|
|
1441
1452
|
*/
|
|
1442
1453
|
|
|
1443
1454
|
const Checkbox = React.forwardRef((_a, ref) => {
|
|
@@ -1515,6 +1526,7 @@ const StyledIndeterminateIcon = tw(IndeterminateIcon)`
|
|
|
1515
1526
|
`;
|
|
1516
1527
|
const CheckboxWrapper = tw.span`
|
|
1517
1528
|
checkbox
|
|
1529
|
+
transition
|
|
1518
1530
|
${({
|
|
1519
1531
|
$checked,
|
|
1520
1532
|
$disabled,
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60-alpha-4730.0",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@trackunit/css-core": "0.0.
|
|
8
|
-
"@trackunit/tailwind-styled-components": "0.0.
|
|
7
|
+
"@trackunit/css-core": "0.0.40-alpha-4730.0",
|
|
8
|
+
"@trackunit/tailwind-styled-components": "0.0.38-alpha-4730.0",
|
|
9
9
|
"react": "17.0.1",
|
|
10
|
-
"@trackunit/ui-design-tokens": "0.0.
|
|
10
|
+
"@trackunit/ui-design-tokens": "0.0.37-alpha-4730.0",
|
|
11
11
|
"echarts-for-react": "^3.0.2",
|
|
12
12
|
"uuid": "^8.3.2",
|
|
13
13
|
"@react-spring/web": "^9.4.4",
|
|
14
14
|
"react-use": "^17.3.2",
|
|
15
15
|
"react-day-picker": "^8.0.3",
|
|
16
16
|
"date-fns": "^2.28.0",
|
|
17
|
-
"@trackunit/ui-icons": "0.0.
|
|
17
|
+
"@trackunit/ui-icons": "0.0.38-alpha-4730.0",
|
|
18
18
|
"react-useportal": "^1.0.16",
|
|
19
19
|
"react-helmet": "^6.1.0",
|
|
20
20
|
"@popperjs/core": "^2.11.4",
|