@jobber/components 7.2.0 → 7.4.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/dist/Button/Button.d.ts +8 -2
- package/dist/Button/index.cjs +1 -1
- package/dist/Button/index.mjs +1 -1
- package/dist/Button-cjs.js +35 -10
- package/dist/Button-es.js +35 -10
- package/dist/ButtonDismiss/index.cjs +1 -1
- package/dist/ButtonDismiss/index.mjs +1 -1
- package/dist/Card/index.cjs +1 -1
- package/dist/Card/index.mjs +1 -1
- package/dist/Checkbox/Checkbox.d.ts +6 -2
- package/dist/Checkbox/Checkbox.types.d.ts +2 -55
- package/dist/Checkbox/index.cjs +7 -92
- package/dist/Checkbox/index.d.ts +2 -5
- package/dist/Checkbox/index.mjs +6 -95
- package/dist/Checkbox-cjs.js +41 -0
- package/dist/Checkbox-es.js +39 -0
- package/dist/Chips/InternalChipDismissible/index.cjs +1 -1
- package/dist/Chips/InternalChipDismissible/index.mjs +1 -1
- package/dist/Chips/index.cjs +1 -1
- package/dist/Chips/index.mjs +1 -1
- package/dist/Combobox/components/ComboboxActivator/index.cjs +1 -1
- package/dist/Combobox/components/ComboboxActivator/index.mjs +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.cjs +1 -1
- package/dist/Combobox/components/ComboboxContent/ComboboxContentHeader/index.mjs +1 -1
- package/dist/ConfirmationModal/index.cjs +1 -1
- package/dist/ConfirmationModal/index.mjs +1 -1
- package/dist/DataDump/index.cjs +1 -1
- package/dist/DataDump/index.mjs +1 -1
- package/dist/DataList/components/DataListActions/index.cjs +1 -1
- package/dist/DataList/components/DataListActions/index.mjs +1 -1
- package/dist/DataList/components/DataListBulkActions/index.cjs +1 -1
- package/dist/DataList/components/DataListBulkActions/index.mjs +1 -1
- package/dist/DataList/components/DataListHeader/index.cjs +2 -3
- package/dist/DataList/components/DataListHeader/index.mjs +2 -3
- package/dist/DataList/components/DataListItem/index.cjs +2 -3
- package/dist/DataList/components/DataListItem/index.mjs +2 -3
- package/dist/DataList/components/DataListItemActions/index.cjs +1 -1
- package/dist/DataList/components/DataListItemActions/index.mjs +1 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.cjs +1 -1
- package/dist/DataList/components/DataListItemActionsOverflow/index.mjs +1 -1
- package/dist/DataList/components/DataListItems/index.cjs +2 -3
- package/dist/DataList/components/DataListItems/index.mjs +2 -3
- package/dist/DataList/components/DataListLayout/index.cjs +2 -3
- package/dist/DataList/components/DataListLayout/index.mjs +2 -3
- package/dist/DataList/components/DataListLayoutActions/index.cjs +1 -1
- package/dist/DataList/components/DataListLayoutActions/index.mjs +1 -1
- package/dist/DataList/components/DataListLoadMore/index.cjs +1 -1
- package/dist/DataList/components/DataListLoadMore/index.mjs +1 -1
- package/dist/DataList/components/DataListSearch/index.cjs +1 -1
- package/dist/DataList/components/DataListSearch/index.mjs +1 -1
- package/dist/DataList/index.cjs +2 -2
- package/dist/DataList/index.mjs +2 -2
- package/dist/DataListHeader-cjs.js +2 -3
- package/dist/DataListHeader-es.js +2 -3
- package/dist/DataListItem-cjs.js +2 -2
- package/dist/DataListItem-es.js +1 -1
- package/dist/DatePicker/index.cjs +1 -1
- package/dist/DatePicker/index.mjs +1 -1
- package/dist/Drawer/index.cjs +1 -1
- package/dist/Drawer/index.mjs +1 -1
- package/dist/FeatureSwitch/index.cjs +1 -1
- package/dist/FeatureSwitch/index.mjs +1 -1
- package/dist/FormField/index.cjs +1 -1
- package/dist/FormField/index.mjs +1 -1
- package/dist/InputPassword/index.cjs +1 -1
- package/dist/InputPassword/index.mjs +1 -1
- package/dist/LightBox/index.cjs +1 -1
- package/dist/LightBox/index.mjs +1 -1
- package/dist/Menu/index.cjs +1 -1
- package/dist/Menu/index.mjs +1 -1
- package/dist/Modal/index.cjs +1 -1
- package/dist/Modal/index.mjs +1 -1
- package/dist/MultiSelect/index.cjs +1 -3
- package/dist/MultiSelect/index.mjs +1 -3
- package/dist/MultiSelect-cjs.js +2 -2
- package/dist/MultiSelect-es.js +1 -1
- package/dist/RecurringSelect/index.cjs +1 -1
- package/dist/RecurringSelect/index.mjs +1 -1
- package/dist/SideDrawer/index.cjs +1 -1
- package/dist/SideDrawer/index.mjs +1 -1
- package/dist/Toast/index.cjs +1 -1
- package/dist/Toast/index.mjs +1 -1
- package/dist/docs/Button/Button.md +4 -4
- package/dist/docs/Checkbox/Checkbox.md +24 -10
- package/dist/docs/Icon/Icon.md +1 -0
- package/dist/docs/usage-guidelines/usage-guidelines.md +0 -1
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/Checkbox/Checkbox.rebuilt.d.ts +0 -7
package/dist/FormField/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@ import 'framer-motion';
|
|
|
5
5
|
import '@jobber/design';
|
|
6
6
|
import 'classnames';
|
|
7
7
|
import '../Button-es.js';
|
|
8
|
-
import 'react-router-dom';
|
|
9
8
|
import '../tslib.es6-es.js';
|
|
9
|
+
import 'react-router-dom';
|
|
10
10
|
import '../Icon-es.js';
|
|
11
11
|
import '../Typography-es.js';
|
|
12
12
|
import '../Text-es.js';
|
|
@@ -8,8 +8,8 @@ require('framer-motion');
|
|
|
8
8
|
require('@jobber/design');
|
|
9
9
|
require('classnames');
|
|
10
10
|
require('../Button-cjs.js');
|
|
11
|
-
require('react-router-dom');
|
|
12
11
|
require('../tslib.es6-cjs.js');
|
|
12
|
+
require('react-router-dom');
|
|
13
13
|
require('../Icon-cjs.js');
|
|
14
14
|
require('../Typography-cjs.js');
|
|
15
15
|
require('../Text-cjs.js');
|
|
@@ -6,8 +6,8 @@ import 'framer-motion';
|
|
|
6
6
|
import '@jobber/design';
|
|
7
7
|
import 'classnames';
|
|
8
8
|
import '../Button-es.js';
|
|
9
|
-
import 'react-router-dom';
|
|
10
9
|
import '../tslib.es6-es.js';
|
|
10
|
+
import 'react-router-dom';
|
|
11
11
|
import '../Icon-es.js';
|
|
12
12
|
import '../Typography-es.js';
|
|
13
13
|
import '../Text-es.js';
|
package/dist/LightBox/index.cjs
CHANGED
|
@@ -10,8 +10,8 @@ require('../noop-cjs.js');
|
|
|
10
10
|
require('../_commonjsHelpers-cjs.js');
|
|
11
11
|
require('../ButtonDismiss-cjs.js');
|
|
12
12
|
require('../Button-cjs.js');
|
|
13
|
-
require('react-router-dom');
|
|
14
13
|
require('../tslib.es6-cjs.js');
|
|
14
|
+
require('react-router-dom');
|
|
15
15
|
require('../Icon-cjs.js');
|
|
16
16
|
require('@jobber/design');
|
|
17
17
|
require('../Typography-cjs.js');
|
package/dist/LightBox/index.mjs
CHANGED
|
@@ -8,8 +8,8 @@ import '../noop-es.js';
|
|
|
8
8
|
import '../_commonjsHelpers-es.js';
|
|
9
9
|
import '../ButtonDismiss-es.js';
|
|
10
10
|
import '../Button-es.js';
|
|
11
|
-
import 'react-router-dom';
|
|
12
11
|
import '../tslib.es6-es.js';
|
|
12
|
+
import 'react-router-dom';
|
|
13
13
|
import '../Icon-es.js';
|
|
14
14
|
import '@jobber/design';
|
|
15
15
|
import '../Typography-es.js';
|
package/dist/Menu/index.cjs
CHANGED
|
@@ -14,8 +14,8 @@ require('../Text-cjs2.js');
|
|
|
14
14
|
require('../clsx-cjs.js');
|
|
15
15
|
require('../index-cjs.js');
|
|
16
16
|
require('../Button-cjs.js');
|
|
17
|
-
require('react-router-dom');
|
|
18
17
|
require('../tslib.es6-cjs.js');
|
|
18
|
+
require('react-router-dom');
|
|
19
19
|
require('../Icon-cjs.js');
|
|
20
20
|
require('@jobber/design');
|
|
21
21
|
require('../Typography-cjs.js');
|
package/dist/Menu/index.mjs
CHANGED
|
@@ -12,8 +12,8 @@ import '../Text-es2.js';
|
|
|
12
12
|
import '../clsx-es.js';
|
|
13
13
|
import '../index-es.js';
|
|
14
14
|
import '../Button-es.js';
|
|
15
|
-
import 'react-router-dom';
|
|
16
15
|
import '../tslib.es6-es.js';
|
|
16
|
+
import 'react-router-dom';
|
|
17
17
|
import '../Icon-es.js';
|
|
18
18
|
import '@jobber/design';
|
|
19
19
|
import '../Typography-es.js';
|
package/dist/Modal/index.cjs
CHANGED
|
@@ -13,8 +13,8 @@ var floatingUi_react = require('../floating-ui.react-cjs.js');
|
|
|
13
13
|
var identity = require('../identity-cjs.js');
|
|
14
14
|
var AtlantisPortalContent = require('../AtlantisPortalContent-cjs.js');
|
|
15
15
|
require('../Typography-cjs.js');
|
|
16
|
-
require('react-router-dom');
|
|
17
16
|
require('../tslib.es6-cjs.js');
|
|
17
|
+
require('react-router-dom');
|
|
18
18
|
require('../Icon-cjs.js');
|
|
19
19
|
require('@jobber/design');
|
|
20
20
|
require('../_commonjsHelpers-cjs.js');
|
package/dist/Modal/index.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import { b as useFloatingNodeId, u as useFloating, c as useDismiss, g as useRole
|
|
|
11
11
|
import { b as identity } from '../identity-es.js';
|
|
12
12
|
import { A as AtlantisPortalContent } from '../AtlantisPortalContent-es.js';
|
|
13
13
|
import '../Typography-es.js';
|
|
14
|
-
import 'react-router-dom';
|
|
15
14
|
import '../tslib.es6-es.js';
|
|
15
|
+
import 'react-router-dom';
|
|
16
16
|
import '../Icon-es.js';
|
|
17
17
|
import '@jobber/design';
|
|
18
18
|
import '../_commonjsHelpers-es.js';
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
var MultiSelect = require('../MultiSelect-cjs.js');
|
|
4
4
|
require('react');
|
|
5
5
|
require('classnames');
|
|
6
|
-
require('../Checkbox
|
|
7
|
-
require('../tslib.es6-cjs.js');
|
|
8
|
-
require('react-hook-form');
|
|
6
|
+
require('../Checkbox-cjs.js');
|
|
9
7
|
require('../Icon-cjs.js');
|
|
10
8
|
require('@jobber/design');
|
|
11
9
|
require('../Text-cjs.js');
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export { M as MultiSelect } from '../MultiSelect-es.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'classnames';
|
|
4
|
-
import '../Checkbox
|
|
5
|
-
import '../tslib.es6-es.js';
|
|
6
|
-
import 'react-hook-form';
|
|
4
|
+
import '../Checkbox-es.js';
|
|
7
5
|
import '../Icon-es.js';
|
|
8
6
|
import '@jobber/design';
|
|
9
7
|
import '../Text-es.js';
|
package/dist/MultiSelect-cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
|
-
var
|
|
5
|
+
var Checkbox = require('./Checkbox-cjs.js');
|
|
6
6
|
var Text = require('./Text-cjs.js');
|
|
7
7
|
var Icon = require('./Icon-cjs.js');
|
|
8
8
|
|
|
@@ -81,7 +81,7 @@ function DropDownMenu({ options, setOptions }) {
|
|
|
81
81
|
event.preventDefault();
|
|
82
82
|
handleOptionClick(option);
|
|
83
83
|
}, onMouseOver: e => handleOptionHover(e, index) },
|
|
84
|
-
React.createElement(
|
|
84
|
+
React.createElement(Checkbox.Checkbox, { label: option.label, checked: option.checked, onFocus: () => setHighlightedIndex(index) })));
|
|
85
85
|
})));
|
|
86
86
|
function handlePressUp(event) {
|
|
87
87
|
event.preventDefault();
|
package/dist/MultiSelect-es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useState, useRef, useCallback, useEffect } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import { Checkbox } from './Checkbox
|
|
3
|
+
import { C as Checkbox } from './Checkbox-es.js';
|
|
4
4
|
import { T as Text } from './Text-es.js';
|
|
5
5
|
import { I as Icon } from './Icon-es.js';
|
|
6
6
|
|
|
@@ -24,8 +24,8 @@ require('@jobber/hooks');
|
|
|
24
24
|
require('framer-motion');
|
|
25
25
|
require('@jobber/design');
|
|
26
26
|
require('../Button-cjs.js');
|
|
27
|
-
require('react-router-dom');
|
|
28
27
|
require('../tslib.es6-cjs.js');
|
|
28
|
+
require('react-router-dom');
|
|
29
29
|
require('../Icon-cjs.js');
|
|
30
30
|
require('../useFormFieldFocus-cjs.js');
|
|
31
31
|
require('../InputValidation-cjs.js');
|
|
@@ -22,8 +22,8 @@ import '@jobber/hooks';
|
|
|
22
22
|
import 'framer-motion';
|
|
23
23
|
import '@jobber/design';
|
|
24
24
|
import '../Button-es.js';
|
|
25
|
-
import 'react-router-dom';
|
|
26
25
|
import '../tslib.es6-es.js';
|
|
26
|
+
import 'react-router-dom';
|
|
27
27
|
import '../Icon-es.js';
|
|
28
28
|
import '../useFormFieldFocus-es.js';
|
|
29
29
|
import '../InputValidation-es.js';
|
|
@@ -10,8 +10,8 @@ require('@jobber/design');
|
|
|
10
10
|
require('../Heading-cjs.js');
|
|
11
11
|
require('../Typography-cjs.js');
|
|
12
12
|
require('../Button-cjs.js');
|
|
13
|
-
require('react-router-dom');
|
|
14
13
|
require('../tslib.es6-cjs.js');
|
|
14
|
+
require('react-router-dom');
|
|
15
15
|
require('../Icon-cjs.js');
|
|
16
16
|
require('../Flex-cjs.js');
|
|
17
17
|
|
package/dist/Toast/index.cjs
CHANGED
|
@@ -7,9 +7,9 @@ require('framer-motion');
|
|
|
7
7
|
require('../Icon-cjs.js');
|
|
8
8
|
require('@jobber/design');
|
|
9
9
|
require('../Button-cjs.js');
|
|
10
|
+
require('../tslib.es6-cjs.js');
|
|
10
11
|
require('react-router-dom');
|
|
11
12
|
require('classnames');
|
|
12
|
-
require('../tslib.es6-cjs.js');
|
|
13
13
|
require('../Typography-cjs.js');
|
|
14
14
|
|
|
15
15
|
|
package/dist/Toast/index.mjs
CHANGED
|
@@ -917,9 +917,9 @@ export const styles = StyleSheet.create({
|
|
|
917
917
|
| `label` | `string` | No | — | |
|
|
918
918
|
| `loading` | `boolean` | No | — | |
|
|
919
919
|
| `name` | `string` | No | — | |
|
|
920
|
-
| `onClick` | `(event: MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void
|
|
921
|
-
| `onMouseDown` | `(event: MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void
|
|
922
|
-
| `
|
|
920
|
+
| `onClick` | `((event: MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void) & MouseEventHandler<ButtonElement>` | No | — | |
|
|
921
|
+
| `onMouseDown` | `((event: MouseEvent<HTMLAnchorElement | HTMLButtonElement, MouseEvent>) => void) & MouseEventHandler<ButtonElement>` | No | — | |
|
|
922
|
+
| `ref` | `Ref<ButtonElement>` | No | — | |
|
|
923
923
|
| `size` | `ButtonSize` | No | — | |
|
|
924
924
|
| `submit` | `boolean` | No | — | Allows the button to submit a form |
|
|
925
925
|
| `to` | `LocationDescriptor<unknown> | ((location: Location<unknown>) => LocationDescriptor<unknown>)` | No | — | **Deprecated**: to will be removed in the next major version @deprecated |
|
|
@@ -942,7 +942,7 @@ export const styles = StyleSheet.create({
|
|
|
942
942
|
| `id` | `string` | No | — | |
|
|
943
943
|
| `numberOfLines` | `number` | No | — | |
|
|
944
944
|
| `size` | `"small" | "base" | "large" | "extravagant" | "jumbo" | "larger" | "largest" | "smaller"` | No | — | |
|
|
945
|
-
| `textCase` | `"
|
|
945
|
+
| `textCase` | `"none" | "capitalize" | "lowercase" | "uppercase"` | No | — | |
|
|
946
946
|
| `underline` | `UnderlineStyle | "solid color-indigo" | "solid color-indigo--light" | "solid color-indigo--lighter" | "solid color-indigo--lightest" | "solid color-indigo--dark" | ... 646 more ... | "dashed color-client--onSurface"` | No | — | The style (and optionally a color) of underline the text is decorated with. All semantic color tokens (other than the... |
|
|
947
947
|
| `UNSAFE_className` | `{ textStyle?: string; }` | No | — | **Use at your own risk:** Custom classNames for specific elements. This should only be used as a **last resort**. Usi... |
|
|
948
948
|
| `UNSAFE_style` | `{ textStyle?: CSSProperties; }` | No | — | **Use at your own risk:** Custom style for specific elements. This should only be used as a **last resort**. Using th... |
|
|
@@ -58,17 +58,31 @@ able to keep track the state of the child Checkboxes. See
|
|
|
58
58
|
|
|
59
59
|
| Prop | Type | Required | Default | Description |
|
|
60
60
|
|------|------|----------|---------|-------------|
|
|
61
|
+
| `aria-activedescendant` | `string` | No | — | ID of the currently active descendant element. Used for composite widgets like combobox or listbox. @see {@link https... |
|
|
62
|
+
| `aria-autocomplete` | `"none" | "inline" | "list" | "both"` | No | — | Indicates the type of autocomplete interaction. @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-autocomplete} |
|
|
63
|
+
| `aria-controls` | `string` | No | — | Indicates the element that controls the current element. @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-controls} |
|
|
64
|
+
| `aria-describedby` | `string` | No | — | Identifies the element (or elements) that describes the object. @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-... |
|
|
65
|
+
| `aria-details` | `string` | No | — | Identifies the element (or elements) that provide a detailed, extended description. @see {@link https://www.w3.org/TR... |
|
|
66
|
+
| `aria-expanded` | `Booleanish` | No | — | Indicates whether the element is expanded or collapsed. @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-expanded} |
|
|
67
|
+
| `aria-label` | `string` | No | — | Defines a string value that labels the current element. @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-label} |
|
|
68
|
+
| `aria-labelledby` | `string` | No | — | Identifies the element (or elements) that labels the current element. @see {@link https://www.w3.org/TR/wai-aria-1.2/... |
|
|
69
|
+
| `aria-required` | `Booleanish` | No | — | Indicates that user input is required before form submission. @see {@link https://www.w3.org/TR/wai-aria-1.2/#aria-re... |
|
|
61
70
|
| `checked` | `boolean` | No | — | Determines if the checkbox is checked or not. |
|
|
62
|
-
| `children` | `ReactElement<unknown, string | JSXElementConstructor<any>>` | No | — | Component children, which shows up as a label |
|
|
63
71
|
| `defaultChecked` | `boolean` | No | — | Initial checked value of the checkbox. Only use this when you need to pre-populate the checked attribute that is not ... |
|
|
64
|
-
| `description` | `ReactNode` | No | — |
|
|
65
|
-
| `disabled` | `boolean` | No | — |
|
|
66
|
-
| `id` | `string` | No | — |
|
|
72
|
+
| `description` | `ReactNode` | No | — | Additional description of the checkbox. String will be rendered with the default markup. ReactElement will be rendere... |
|
|
73
|
+
| `disabled` | `boolean` | No | — | Whether the input is disabled. |
|
|
74
|
+
| `id` | `string` | No | — | The unique identifier for the input element. |
|
|
67
75
|
| `indeterminate` | `boolean` | No | `false` | When `true` the checkbox to appears in indeterminate. |
|
|
68
|
-
| `
|
|
69
|
-
| `
|
|
70
|
-
| `
|
|
71
|
-
| `
|
|
72
|
-
| `
|
|
76
|
+
| `invalid` | `boolean` | No | — | Whether the checkbox is invalid |
|
|
77
|
+
| `label` | `string | ReactElement<unknown, string | JSXElementConstructor<any>>` | No | — | Label that shows up beside the checkbox. String will be rendered with the default markup. ReactElement will be render... |
|
|
78
|
+
| `name` | `string` | No | — | The name attribute for the input element. |
|
|
79
|
+
| `onBlur` | `(event: FocusEvent<HTMLInputElement, Element>) => void` | No | — | Blur event handler. |
|
|
80
|
+
| `onChange` | `(newValue: boolean, event: ChangeEvent<HTMLInputElement>) => void` | No | — | Called when the checkbox value changes. Includes the change event as a second argument. This is the recommended event... |
|
|
81
|
+
| `onClick` | `(event: MouseEvent<HTMLInputElement, MouseEvent>) => void` | No | — | Click event handler. |
|
|
82
|
+
| `onFocus` | `(event: FocusEvent<HTMLInputElement, Element>) => void` | No | — | Focus event handler. |
|
|
83
|
+
| `onMouseDown` | `(event: MouseEvent<HTMLInputElement, MouseEvent>) => void` | No | — | Mouse down event handler. |
|
|
84
|
+
| `onMouseUp` | `(event: MouseEvent<HTMLInputElement, MouseEvent>) => void` | No | — | Mouse up event handler. |
|
|
85
|
+
| `onPointerDown` | `(event: PointerEvent<HTMLInputElement>) => void` | No | — | Pointer down event handler. |
|
|
86
|
+
| `onPointerUp` | `(event: PointerEvent<HTMLInputElement>) => void` | No | — | Pointer up event handler. |
|
|
87
|
+
| `ref` | `Ref<HTMLInputElement>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
|
|
73
88
|
| `value` | `string` | No | — | Value of the checkbox. |
|
|
74
|
-
| `version` | `1` | No | — | |
|
package/dist/docs/Icon/Icon.md
CHANGED
|
@@ -14,7 +14,6 @@ deprecated.
|
|
|
14
14
|
| Component | Import | v2 prop |
|
|
15
15
|
| ---------------- | ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------- |
|
|
16
16
|
| Autocomplete | `import { Autocomplete } from "@jobber/components/Autocomplete"` | `version={2}` — fully controlled, async support |
|
|
17
|
-
| Checkbox | `import { Checkbox } from "@jobber/components/Checkbox"` | `version={2}` |
|
|
18
17
|
| InputDate | `import { InputDate } from "@jobber/components/InputDate"` | `version={2}` |
|
|
19
18
|
| InputEmail | `import { InputEmail } from "@jobber/components/InputEmail"` | `version={2}` |
|
|
20
19
|
| InputNumber | `import { InputNumber } from "@jobber/components/InputNumber"` | `version={2}` |
|
package/dist/index.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var Card = require('./Card-cjs.js');
|
|
|
15
15
|
var Cluster = require('./Cluster-cjs.js');
|
|
16
16
|
var Container = require('./Container-cjs.js');
|
|
17
17
|
var Cover = require('./Cover-cjs.js');
|
|
18
|
-
var
|
|
18
|
+
var Checkbox = require('./Checkbox-cjs.js');
|
|
19
19
|
var Chip = require('./Chip-cjs.js');
|
|
20
20
|
var ChipDismissible = require('./ChipDismissible-cjs.js');
|
|
21
21
|
require('react');
|
|
@@ -222,7 +222,7 @@ exports.Card = Card.Card;
|
|
|
222
222
|
exports.Cluster = Cluster.Cluster;
|
|
223
223
|
exports.Container = Container.Container;
|
|
224
224
|
exports.Cover = Cover.Cover;
|
|
225
|
-
exports.Checkbox =
|
|
225
|
+
exports.Checkbox = Checkbox.Checkbox;
|
|
226
226
|
exports.Chip = Chip.Chip;
|
|
227
227
|
exports.ChipDismissible = ChipDismissible.ChipDismissible;
|
|
228
228
|
exports.ChipSelectable = ChipDismissible.ChipSelectable;
|
package/dist/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ export { C as Card } from './Card-es.js';
|
|
|
13
13
|
export { C as Cluster } from './Cluster-es.js';
|
|
14
14
|
export { C as Container } from './Container-es.js';
|
|
15
15
|
export { C as Cover } from './Cover-es.js';
|
|
16
|
-
export { Checkbox } from './Checkbox
|
|
16
|
+
export { C as Checkbox } from './Checkbox-es.js';
|
|
17
17
|
export { C as Chip } from './Chip-es.js';
|
|
18
18
|
export { a as ChipDismissible, C as ChipSelectable } from './ChipDismissible-es.js';
|
|
19
19
|
import 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.4.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -528,7 +528,7 @@
|
|
|
528
528
|
"devDependencies": {
|
|
529
529
|
"@apollo/client": "^3.7.10",
|
|
530
530
|
"@csstools/postcss-global-data": "^1.0.3",
|
|
531
|
-
"@jobber/design": "0.
|
|
531
|
+
"@jobber/design": "0.99.0",
|
|
532
532
|
"@jobber/hooks": "2.19.4",
|
|
533
533
|
"@rollup/plugin-alias": "^5.1.0",
|
|
534
534
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
@@ -583,5 +583,5 @@
|
|
|
583
583
|
"> 1%",
|
|
584
584
|
"IE 10"
|
|
585
585
|
],
|
|
586
|
-
"gitHead": "
|
|
586
|
+
"gitHead": "1513cc5ba2285ff22a2cb3eb537a2c105e9f793b"
|
|
587
587
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const CheckboxRebuilt: React.ForwardRefExoticComponent<import("./Checkbox.types").CheckboxCoreProps & import("../sharedHelpers/types").AriaInputProps & import("../sharedHelpers/types").FocusEvents<HTMLInputElement> & import("../sharedHelpers/types").MouseEvents<HTMLInputElement> & Pick<import("../sharedHelpers/types").HTMLInputBaseProps, "id" | "name" | "disabled"> & Pick<import("../sharedHelpers/types").RebuiltInputCommonProps, "version"> & {
|
|
3
|
-
label?: string | React.ReactElement;
|
|
4
|
-
description?: React.ReactNode;
|
|
5
|
-
invalid?: boolean;
|
|
6
|
-
onChange?(newValue: boolean, event: React.ChangeEvent<HTMLInputElement>): void;
|
|
7
|
-
} & React.RefAttributes<HTMLInputElement>>;
|