@trackunit/react-components 0.0.55 → 0.0.57

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.
@@ -28,8 +28,19 @@ export interface CheckboxProps extends CommonProps, React.InputHTMLAttributes<HT
28
28
  indeterminate?: boolean;
29
29
  }
30
30
  /**
31
- * A base checkbox component that can be used for boolean inputs, selectors etc.
32
- * A reference to the input element is provided as the `ref` prop.
33
- * Extends props from [React.InputHTMLAttributes](https://reactjs.org/docs/dom-elements.html#input)
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
@@ -1435,9 +1435,20 @@ const IndeterminateIcon = ({
1435
1435
  }));
1436
1436
 
1437
1437
  /**
1438
- * A base checkbox component that can be used for boolean inputs, selectors etc.
1439
- * A reference to the input element is provided as the `ref` prop.
1440
- * Extends props from [React.InputHTMLAttributes](https://reactjs.org/docs/dom-elements.html#input)
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "0.0.55",
3
+ "version": "0.0.57",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "MIT",
6
6
  "dependencies": {