@jobber/components 7.1.2-MIKElock--7916eb4.2 → 7.2.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/AtlantisThemeContext-cjs.js +1 -1
- package/dist/AtlantisThemeContext-es.js +9 -9
- package/dist/Autocomplete/index.cjs +2 -2
- package/dist/Autocomplete/index.mjs +5 -5
- package/dist/Body-cjs.js +1 -1
- package/dist/Body-es.js +2 -2
- package/dist/BottomSheet-cjs.js +1 -1
- package/dist/BottomSheet-es.js +1 -1
- package/dist/Box-cjs.js +2 -2
- package/dist/Box-es.js +2 -2
- package/dist/Button/index.mjs +1 -1
- package/dist/Button-es.js +1 -1
- package/dist/Card-cjs.js +1 -1
- package/dist/Card-es.js +1 -1
- package/dist/Checkbox/index.cjs +1 -1
- package/dist/Checkbox/index.mjs +1 -1
- package/dist/Chip/Chip.d.ts +7 -1
- package/dist/Chip/Chip.types.d.ts +7 -2
- package/dist/Chip/index.cjs +1 -1
- package/dist/Chip/index.mjs +2 -2
- package/dist/Chip-cjs.js +42 -27
- package/dist/Chip-es.js +42 -27
- package/dist/ChipDismissible-es.js +1 -1
- package/dist/Chips/InternalChipDismissible/hooks/index.mjs +1 -1
- package/dist/Combobox/components/ComboboxTrigger/index.cjs +1 -1
- package/dist/Combobox/components/ComboboxTrigger/index.mjs +1 -1
- package/dist/Combobox-cjs.js +1 -1
- package/dist/Combobox-es.js +1 -1
- package/dist/ComboboxAction-cjs.js +1 -1
- package/dist/ComboboxAction-es.js +1 -1
- package/dist/ComboboxContent-cjs.js +1 -1
- package/dist/ComboboxContent-es.js +2 -2
- package/dist/ComboboxContentHeader-cjs.js +1 -1
- package/dist/ComboboxContentHeader-es.js +1 -1
- package/dist/ComboboxContentList-es.js +1 -1
- package/dist/ComboboxContentSearch-cjs.js +1 -1
- package/dist/ComboboxContentSearch-es.js +1 -1
- package/dist/ComboboxLoadMore-cjs.js +1 -1
- package/dist/ComboboxLoadMore-es.js +1 -1
- package/dist/ComboboxOption-cjs.js +1 -1
- package/dist/ComboboxOption-es.js +1 -1
- package/dist/Container-cjs.js +1 -1
- package/dist/Container-es.js +1 -1
- package/dist/Content-cjs.js +1 -1
- package/dist/Content-es.js +1 -1
- package/dist/ContentBlock-cjs.js +1 -1
- package/dist/ContentBlock-es.js +1 -1
- package/dist/Countdown-cjs.js +3 -7
- package/dist/Countdown-es.js +4 -8
- package/dist/Cover-cjs.js +1 -1
- package/dist/Cover-es.js +1 -1
- package/dist/DataList-es.js +3 -3
- package/dist/DataList.const-cjs.js +1 -0
- package/dist/DataList.const-es.js +2 -1
- package/dist/DataList.module-cjs.js +1 -1
- package/dist/DataList.module-es.js +1 -1
- package/dist/DataList.utils-es.js +6 -6
- package/dist/DataListAction-cjs.js +1 -1
- package/dist/DataListAction-es.js +1 -1
- package/dist/DataListActionsMenu-cjs.js +1 -1
- package/dist/DataListActionsMenu-es.js +2 -2
- package/dist/DataListBulkActions-cjs.js +1 -1
- package/dist/DataListBulkActions-es.js +1 -1
- package/dist/DataListEmptyState-cjs.js +1 -1
- package/dist/DataListEmptyState-es.js +1 -1
- package/dist/DataListHeaderTile-cjs.js +2 -2
- package/dist/DataListHeaderTile-es.js +2 -2
- package/dist/DataListItemActions-cjs.js +1 -1
- package/dist/DataListItemActions-es.js +2 -2
- package/dist/DataListLayoutActions-cjs.js +1 -1
- package/dist/DataListLayoutActions-es.js +2 -2
- package/dist/DataListLoadMore-cjs.js +1 -1
- package/dist/DataListLoadMore-es.js +1 -1
- package/dist/DataListLoadingState-cjs.js +1 -1
- package/dist/DataListLoadingState-es.js +2 -2
- package/dist/DataListOverflowFade-cjs.js +1 -1
- package/dist/DataListOverflowFade-es.js +1 -1
- package/dist/DataListSearch-cjs.js +1 -1
- package/dist/DataListSearch-es.js +1 -1
- package/dist/DataListSortingOptions-cjs.js +1 -1
- package/dist/DataListSortingOptions-es.js +1 -1
- package/dist/DataListStickyHeader-cjs.js +1 -1
- package/dist/DataListStickyHeader-es.js +1 -1
- package/dist/DataListTags-cjs.js +1 -1
- package/dist/DataListTags-es.js +1 -1
- package/dist/DataListTotalCount-cjs.js +1 -1
- package/dist/DataListTotalCount-es.js +2 -2
- package/dist/DataTable/index.mjs +1 -1
- package/dist/DataTable-cjs.js +3 -3
- package/dist/DataTable-es.js +5 -5
- package/dist/DataTableTable-cjs.js +2 -2
- package/dist/DataTableTable-es.js +3 -3
- package/dist/DatePicker-cjs.js +81 -266
- package/dist/DatePicker-es.js +83 -268
- package/dist/DayOfMonthSelect-cjs.js +5 -5
- package/dist/DayOfMonthSelect-es.js +6 -6
- package/dist/DescriptionList-cjs.js +1 -1
- package/dist/DescriptionList-es.js +1 -1
- package/dist/Disclosure-cjs.js +1 -1
- package/dist/Disclosure-es.js +1 -1
- package/dist/Divider-cjs.js +1 -1
- package/dist/Divider-es.js +1 -1
- package/dist/DrawerGrid-cjs.js +2 -2
- package/dist/DrawerGrid-es.js +2 -2
- package/dist/DrawerRoot-cjs.js +48 -10
- package/dist/DrawerRoot-es.js +50 -12
- package/dist/FeatureSwitch-cjs.js +1 -1
- package/dist/FeatureSwitch-es.js +1 -1
- package/dist/FormField/index.mjs +1 -1
- package/dist/FormField-cjs.js +1 -1
- package/dist/FormField-es.js +2 -2
- package/dist/FormatEmail-cjs.js +1 -1
- package/dist/FormatEmail-es.js +1 -1
- package/dist/FormatFile-cjs.js +6 -1
- package/dist/FormatFile-es.js +6 -1
- package/dist/Frame-cjs.js +1 -1
- package/dist/Frame-es.js +1 -1
- package/dist/Glimmer/index.mjs +1 -1
- package/dist/Glimmer-cjs.js +1 -1
- package/dist/Glimmer-es.js +2 -2
- package/dist/Grid-cjs.js +1 -1
- package/dist/Grid-es.js +1 -1
- package/dist/GridCell-cjs.js +1 -1
- package/dist/GridCell-es.js +1 -1
- package/dist/InputAvatar-cjs.js +1 -1
- package/dist/InputAvatar-es.js +1 -1
- package/dist/InputDate/index.mjs +1 -1
- package/dist/InputEmail/index.mjs +1 -1
- package/dist/InputFile-cjs.js +3 -8
- package/dist/InputFile-es.js +3 -8
- package/dist/InputNumber/index.cjs +59 -165
- package/dist/InputNumber/index.mjs +62 -168
- package/dist/InputPassword-es.js +1 -1
- package/dist/InputPhoneNumber/index.cjs +1 -1
- package/dist/InputPhoneNumber/index.mjs +2 -2
- package/dist/InputText/InputText.d.ts +70 -2
- package/dist/InputText/index.mjs +1 -1
- package/dist/InputTime/index.cjs +1 -0
- package/dist/InputTime/index.mjs +2 -1
- package/dist/InputValidation-cjs.js +1 -1
- package/dist/InputValidation-es.js +1 -1
- package/dist/InternalChipDismissible-cjs.js +2 -2
- package/dist/InternalChipDismissible-es.js +3 -3
- package/dist/LightBox-cjs.js +1 -1
- package/dist/LightBox-es.js +1 -1
- package/dist/Link-cjs.js +1 -1
- package/dist/Link-es.js +1 -1
- package/dist/List-cjs.js +3 -3
- package/dist/List-es.js +7 -7
- package/dist/Markdown-cjs.js +392 -466
- package/dist/Markdown-es.js +398 -472
- package/dist/Menu-cjs.js +577 -739
- package/dist/Menu-es.js +573 -735
- package/dist/Modal/index.cjs +2 -2
- package/dist/Modal/index.mjs +2 -2
- package/dist/MultiSelect-cjs.js +2 -2
- package/dist/MultiSelect-es.js +2 -2
- package/dist/OverlaySeparator-cjs.js +1 -1
- package/dist/OverlaySeparator-es.js +1 -1
- package/dist/Popover-cjs.js +1 -1
- package/dist/Popover-es.js +2 -2
- package/dist/ProgressBar-cjs.js +1 -1
- package/dist/ProgressBar-es.js +1 -1
- package/dist/RadioGroup-cjs.js +1 -1
- package/dist/RadioGroup-es.js +1 -1
- package/dist/RecurringSelect/components/index.mjs +1 -1
- package/dist/RecurringSelect/index.cjs +0 -1
- package/dist/RecurringSelect/index.mjs +0 -1
- package/dist/RecurringSelect-cjs.js +1 -1
- package/dist/RecurringSelect-es.js +2 -2
- package/dist/SegmentedControl-cjs.js +1 -1
- package/dist/SegmentedControl-es.js +2 -2
- package/dist/Select/index.cjs +1 -1
- package/dist/Select/index.mjs +2 -2
- package/dist/SideDrawer-cjs.js +1 -1
- package/dist/SideDrawer-es.js +1 -1
- package/dist/Spinner-cjs.js +1 -1
- package/dist/Spinner-es.js +1 -1
- package/dist/StatusIndicator-cjs.js +1 -1
- package/dist/StatusIndicator-es.js +1 -1
- package/dist/Switch-cjs.js +1 -1
- package/dist/Switch-es.js +1 -1
- package/dist/Table/index.mjs +1 -1
- package/dist/Tabs/index.mjs +1 -1
- package/dist/Tabs-cjs.js +1 -1
- package/dist/Tabs-es.js +6 -6
- package/dist/Text-cjs2.js +164 -298
- package/dist/Text-es2.js +164 -295
- package/dist/Thumbnail-cjs.js +1 -1
- package/dist/Thumbnail-es.js +2 -2
- package/dist/Tiles-cjs.js +1 -1
- package/dist/Tiles-es.js +1 -1
- package/dist/Tooltip-cjs.js +1 -1
- package/dist/Tooltip-es.js +2 -2
- package/dist/Typography-cjs.js +3 -3
- package/dist/Typography-es.js +3 -3
- package/dist/_baseEach-cjs.js +1 -1
- package/dist/_baseEach-es.js +7 -7
- package/dist/_baseFlatten-es.js +1 -1
- package/dist/_getAllKeys-cjs.js +8 -2
- package/dist/_getAllKeys-es.js +10 -4
- package/dist/_getTag-es.js +1 -1
- package/dist/_isIterateeCall-es.js +3 -3
- package/dist/_setToString-es.js +2 -2
- package/dist/debounce-es.js +4 -4
- package/dist/docs/Autocomplete/AutocompleteV1.md +1 -1
- package/dist/docs/Autocomplete/AutocompleteV2.md +1 -1
- package/dist/docs/Banner/Banner.md +1 -1
- package/dist/docs/Chip/Chip.md +4 -2
- package/dist/docs/DataList/DataList.md +1 -1
- package/dist/docs/FormField/FormField.md +2 -2
- package/dist/docs/InputEmail/InputEmail.md +1 -1
- package/dist/docs/InputNumber/InputNumber.md +2 -2
- package/dist/docs/InputPhoneNumber/InputPhoneNumber.md +1 -1
- package/dist/docs/InputText/InputText.md +2 -2
- package/dist/docs/Modal/Modal.md +3 -3
- package/dist/docs/Select/Select.md +2 -2
- package/dist/floating-ui.react-cjs.js +16 -35
- package/dist/floating-ui.react-dom-es.js +2 -2
- package/dist/floating-ui.react-es.js +18 -37
- package/dist/identity-es.js +5 -5
- package/dist/index-cjs.js +6 -6
- package/dist/index-es.js +6 -6
- package/dist/index.esm-es.js +1 -1
- package/dist/index.mjs +6 -6
- package/dist/isSymbol-es.js +1 -1
- package/dist/isTypedArray-cjs.js +4 -4
- package/dist/isTypedArray-es.js +6 -6
- package/dist/keysIn-cjs.js +2 -2
- package/dist/keysIn-es.js +5 -5
- package/dist/noop-es.js +4 -4
- package/dist/omit-cjs.js +5 -37
- package/dist/omit-es.js +14 -46
- package/dist/showToast-cjs.js +1 -1
- package/dist/showToast-es.js +1 -1
- package/dist/styles.css +117 -54
- package/dist/unstyledPrimitives/index.mjs +3 -3
- package/dist/useScrollToActive-cjs.js +1 -1
- package/dist/useScrollToActive-es.js +8 -8
- package/package.json +3 -4
package/dist/Thumbnail-cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ var Typography = require('./Typography-cjs.js');
|
|
|
8
8
|
|
|
9
9
|
var styles$1 = {"content":"b9lhF-BkUnI-","hasName":"BJLJeUxloeQ-","large":"t5IzWH6-Sy0-","fileName":"tj--cPRjQfI-","base":"l2Vxo1qaR8U-","spinning":"LDAOyzklETo-"};
|
|
10
10
|
|
|
11
|
-
var styles = {"image":"qOmZU-rbNf4-","hidden":"_2bihNsPs7w4-"};
|
|
11
|
+
var styles = {"image":"qOmZU-rbNf4-","fadeIn":"zB1aNhsmmqY-","hidden":"_2bihNsPs7w4-","spinning":"ZLMkLuZeH-o-"};
|
|
12
12
|
|
|
13
13
|
function InternalThumbnailImage({ file, UNSAFE_className, UNSAFE_style, }) {
|
|
14
14
|
const { name, src } = file;
|
package/dist/Thumbnail-es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import {
|
|
3
|
+
import { G as Glimmer } from './Glimmer-es.js';
|
|
4
4
|
import { I as Icon } from './Icon-es.js';
|
|
5
5
|
import { T as Typography } from './Typography-es.js';
|
|
6
6
|
|
|
7
7
|
var styles$1 = {"content":"b9lhF-BkUnI-","hasName":"BJLJeUxloeQ-","large":"t5IzWH6-Sy0-","fileName":"tj--cPRjQfI-","base":"l2Vxo1qaR8U-","spinning":"LDAOyzklETo-"};
|
|
8
8
|
|
|
9
|
-
var styles = {"image":"qOmZU-rbNf4-","hidden":"_2bihNsPs7w4-"};
|
|
9
|
+
var styles = {"image":"qOmZU-rbNf4-","fadeIn":"zB1aNhsmmqY-","hidden":"_2bihNsPs7w4-","spinning":"ZLMkLuZeH-o-"};
|
|
10
10
|
|
|
11
11
|
function InternalThumbnailImage({ file, UNSAFE_className, UNSAFE_style, }) {
|
|
12
12
|
const { name, src } = file;
|
package/dist/Tiles-cjs.js
CHANGED
|
@@ -4,7 +4,7 @@ var React = require('react');
|
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
var getMappedAtlantisSpaceToken = require('./getMappedAtlantisSpaceToken-cjs.js');
|
|
6
6
|
|
|
7
|
-
var styles = {"tiles":"jC1GzRIJp74-"};
|
|
7
|
+
var styles = {"tiles":"jC1GzRIJp74-","spinning":"Ou05ff3MXU8-"};
|
|
8
8
|
|
|
9
9
|
function Tiles({ children, minSize = "30ch", gap = "base", autoWidth = false, as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align = "start", }) {
|
|
10
10
|
return (React.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--public-tile-min-size": minSize, "--public-tile-space": getMappedAtlantisSpaceToken.getMappedAtlantisSpaceToken(gap), "--public-tiles-width": autoWidth ? "auto" : "100%", "--public-tiles-align": align }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.tiles, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
|
package/dist/Tiles-es.js
CHANGED
|
@@ -2,7 +2,7 @@ import React__default from 'react';
|
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
import { g as getMappedAtlantisSpaceToken } from './getMappedAtlantisSpaceToken-es.js';
|
|
4
4
|
|
|
5
|
-
var styles = {"tiles":"jC1GzRIJp74-"};
|
|
5
|
+
var styles = {"tiles":"jC1GzRIJp74-","spinning":"Ou05ff3MXU8-"};
|
|
6
6
|
|
|
7
7
|
function Tiles({ children, minSize = "30ch", gap = "base", autoWidth = false, as: Tag = "div", dataAttributes, ariaAttributes, role, id, UNSAFE_className, UNSAFE_style, align = "start", }) {
|
|
8
8
|
return (React__default.createElement(Tag, Object.assign({ role: role, id: id }, dataAttributes, ariaAttributes, { style: Object.assign({ "--public-tile-min-size": minSize, "--public-tile-space": getMappedAtlantisSpaceToken(gap), "--public-tiles-width": autoWidth ? "auto" : "100%", "--public-tiles-align": align }, UNSAFE_style === null || UNSAFE_style === void 0 ? void 0 : UNSAFE_style.container), className: classnames(styles.tiles, UNSAFE_className === null || UNSAFE_className === void 0 ? void 0 : UNSAFE_className.container) }), children));
|
package/dist/Tooltip-cjs.js
CHANGED
|
@@ -7,7 +7,7 @@ var framerMotion = require('framer-motion');
|
|
|
7
7
|
var jobberHooks = require('@jobber/hooks');
|
|
8
8
|
var floatingUi_reactDom = require('./floating-ui.react-dom-cjs.js');
|
|
9
9
|
|
|
10
|
-
var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-"};
|
|
10
|
+
var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
|
|
11
11
|
|
|
12
12
|
const TOOLTIP_SHIFT_PADDING = 8;
|
|
13
13
|
const TOOLTIP_ARROW_PADDING = 6;
|
package/dist/Tooltip-es.js
CHANGED
|
@@ -3,9 +3,9 @@ import classnames from 'classnames';
|
|
|
3
3
|
import { u as useFloating, F as FloatingPortal } from './floating-ui.react-es.js';
|
|
4
4
|
import { motion } from 'framer-motion';
|
|
5
5
|
import { useSafeLayoutEffect, useIsMounted } from '@jobber/hooks';
|
|
6
|
-
import {
|
|
6
|
+
import { s as shift, f as flip, a as arrow, h as hide, b as autoUpdate, l as limitShift } from './floating-ui.react-dom-es.js';
|
|
7
7
|
|
|
8
|
-
var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-"};
|
|
8
|
+
var styles = {"shadowActivator":"sZQ1M6tj8-c-","tooltipWrapper":"_0o-yEgfXmSQ-","tooltip":"Q1YfFqI71cw-","arrow":"ZP3ev-wT-OI-","top":"jlEmO6f6uHg-","bottom":"z9JQ-DR-QYc-","left":"zWATWgq3bS4-","right":"-tDm6lNCCic-","tooltipMessage":"djrmr4mADlA-","hidden":"p92TIli5Sgw-","spinning":"bobYmlUMnuY-"};
|
|
9
9
|
|
|
10
10
|
const TOOLTIP_SHIFT_PADDING = 8;
|
|
11
11
|
const TOOLTIP_ARROW_PADDING = 6;
|
package/dist/Typography-cjs.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
5
|
|
|
6
|
-
var styles = {"base":"j4h-0Mxa5gk-"};
|
|
6
|
+
var styles = {"base":"j4h-0Mxa5gk-","spinning":"vNKBQk0oak4-"};
|
|
7
7
|
|
|
8
8
|
var fontSizes = {"extravagant":"_1CXlSTO0w8g-","jumbo":"v5TK2OwNTaI-","largest":"CcGPmsMUVfg-","larger":"ETyC5vbbImA-","large":"ejYSlnHYn2U-","base":"e9lFMke1PNs-","small":"MiITdlbzofc-","smaller":"hs1hcOgrK1s-","spinning":"wbsSTlLw-cA-"};
|
|
9
9
|
|
|
@@ -15,13 +15,13 @@ var textColors = {"blue":"xNqFL54SrGc-","grey":"_9XmiMJWBidk-","greyBlueDark":"Y
|
|
|
15
15
|
|
|
16
16
|
var emphasis = {"italic":"ws2Y0LqNNfk-","highlight":"kw63z71hYYU-","spinning":"ki-I8aPAhmA-"};
|
|
17
17
|
|
|
18
|
-
var truncate = {"textTruncate":"bvnCrlndVHs-"};
|
|
18
|
+
var truncate = {"textTruncate":"bvnCrlndVHs-","spinning":"kdOkoNCczRo-"};
|
|
19
19
|
|
|
20
20
|
var alignment = {"start":"r5lyOVfBlMI-","center":"w1MIwv35jXA-","end":"oOJPwUQFllQ-","spinning":"geH1XNdqO8M-"};
|
|
21
21
|
|
|
22
22
|
var fontFamilies = {"base":"V9SSKxs15xE-","display":"dvw7zxC9s9g-","spinning":"NBpK9JnmLJ4-"};
|
|
23
23
|
|
|
24
|
-
var underlineStyles = {"basicUnderline":"qp8E5e4q-so-"};
|
|
24
|
+
var underlineStyles = {"basicUnderline":"qp8E5e4q-so-","spinning":"F-Ybr7sJi6Q-"};
|
|
25
25
|
|
|
26
26
|
function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, underline, UNSAFE_className, UNSAFE_style, }) {
|
|
27
27
|
const shouldTruncateText = numberOfLines && numberOfLines > 0;
|
package/dist/Typography-es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
3
|
|
|
4
|
-
var styles = {"base":"j4h-0Mxa5gk-"};
|
|
4
|
+
var styles = {"base":"j4h-0Mxa5gk-","spinning":"vNKBQk0oak4-"};
|
|
5
5
|
|
|
6
6
|
var fontSizes = {"extravagant":"_1CXlSTO0w8g-","jumbo":"v5TK2OwNTaI-","largest":"CcGPmsMUVfg-","larger":"ETyC5vbbImA-","large":"ejYSlnHYn2U-","base":"e9lFMke1PNs-","small":"MiITdlbzofc-","smaller":"hs1hcOgrK1s-","spinning":"wbsSTlLw-cA-"};
|
|
7
7
|
|
|
@@ -13,13 +13,13 @@ var textColors = {"blue":"xNqFL54SrGc-","grey":"_9XmiMJWBidk-","greyBlueDark":"Y
|
|
|
13
13
|
|
|
14
14
|
var emphasis = {"italic":"ws2Y0LqNNfk-","highlight":"kw63z71hYYU-","spinning":"ki-I8aPAhmA-"};
|
|
15
15
|
|
|
16
|
-
var truncate = {"textTruncate":"bvnCrlndVHs-"};
|
|
16
|
+
var truncate = {"textTruncate":"bvnCrlndVHs-","spinning":"kdOkoNCczRo-"};
|
|
17
17
|
|
|
18
18
|
var alignment = {"start":"r5lyOVfBlMI-","center":"w1MIwv35jXA-","end":"oOJPwUQFllQ-","spinning":"geH1XNdqO8M-"};
|
|
19
19
|
|
|
20
20
|
var fontFamilies = {"base":"V9SSKxs15xE-","display":"dvw7zxC9s9g-","spinning":"NBpK9JnmLJ4-"};
|
|
21
21
|
|
|
22
|
-
var underlineStyles = {"basicUnderline":"qp8E5e4q-so-"};
|
|
22
|
+
var underlineStyles = {"basicUnderline":"qp8E5e4q-so-","spinning":"F-Ybr7sJi6Q-"};
|
|
23
23
|
|
|
24
24
|
function Typography({ id, children, element: Tag = "p", size, align, fontWeight = "regular", textCase, textColor, emphasisType, numberOfLines, fontFamily, underline, UNSAFE_className, UNSAFE_style, }) {
|
|
25
25
|
const shouldTruncateText = numberOfLines && numberOfLines > 0;
|
package/dist/_baseEach-cjs.js
CHANGED
|
@@ -36,7 +36,7 @@ var _setCacheAdd = setCacheAdd$1;
|
|
|
36
36
|
* @name has
|
|
37
37
|
* @memberOf SetCache
|
|
38
38
|
* @param {*} value The value to search for.
|
|
39
|
-
* @returns {
|
|
39
|
+
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
function setCacheHas$1(value) {
|
package/dist/_baseEach-es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { g as _MapCache, d as _Uint8Array, e as eq_1, c as _Stack, a as _isIndex, i as identity_1 } from './identity-es.js';
|
|
2
2
|
import { b as _Symbol, i as isObjectLike_1, a as isObject_1 } from './isObjectLike-es.js';
|
|
3
3
|
import { e as _getAllKeys, k as keys_1, b as _baseGet, f as _castPath, g as _toKey, h as _isKey } from './_getAllKeys-es.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { a as _getTag } from './_getTag-es.js';
|
|
5
|
+
import { c as isBufferExports, d as isTypedArray_1, a as isArray_1, i as isArguments_1, m as isLength_1, b as isArrayLike_1 } from './isTypedArray-es.js';
|
|
6
6
|
import { g as getDefaultExportFromCjs } from './_commonjsHelpers-es.js';
|
|
7
7
|
import { _ as _baseFor } from './_baseFor-es.js';
|
|
8
8
|
|
|
@@ -34,7 +34,7 @@ var _setCacheAdd = setCacheAdd$1;
|
|
|
34
34
|
* @name has
|
|
35
35
|
* @memberOf SetCache
|
|
36
36
|
* @param {*} value The value to search for.
|
|
37
|
-
* @returns {
|
|
37
|
+
* @returns {number} Returns `true` if `value` is found, else `false`.
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
40
|
function setCacheHas$1(value) {
|
|
@@ -729,14 +729,14 @@ var baseGet$1 = _baseGet;
|
|
|
729
729
|
* _.get(object, 'a.b.c', 'default');
|
|
730
730
|
* // => 'default'
|
|
731
731
|
*/
|
|
732
|
-
function get$
|
|
732
|
+
function get$1(object, path, defaultValue) {
|
|
733
733
|
var result = object == null ? undefined : baseGet$1(object, path);
|
|
734
734
|
return result === undefined ? defaultValue : result;
|
|
735
735
|
}
|
|
736
736
|
|
|
737
|
-
var get_1 = get$
|
|
737
|
+
var get_1 = get$1;
|
|
738
738
|
|
|
739
|
-
var get$
|
|
739
|
+
var get$2 = /*@__PURE__*/getDefaultExportFromCjs(get_1);
|
|
740
740
|
|
|
741
741
|
/**
|
|
742
742
|
* The base implementation of `_.hasIn` without support for deep paths.
|
|
@@ -1025,4 +1025,4 @@ var baseEach = createBaseEach(baseForOwn);
|
|
|
1025
1025
|
|
|
1026
1026
|
var _baseEach = baseEach;
|
|
1027
1027
|
|
|
1028
|
-
export { _baseEach as _, _baseIteratee as a, get$
|
|
1028
|
+
export { _baseEach as _, _baseIteratee as a, get$2 as g };
|
package/dist/_baseFlatten-es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _ as _arrayPush } from './_getAllKeys-es.js';
|
|
2
2
|
import { b as _Symbol } from './isObjectLike-es.js';
|
|
3
|
-
import {
|
|
3
|
+
import { i as isArguments_1, a as isArray_1 } from './isTypedArray-es.js';
|
|
4
4
|
|
|
5
5
|
var Symbol = _Symbol,
|
|
6
6
|
isArguments = isArguments_1,
|
package/dist/_getAllKeys-cjs.js
CHANGED
|
@@ -215,6 +215,9 @@ var Symbol = isObjectLike._Symbol,
|
|
|
215
215
|
isArray$2 = isTypedArray.isArray_1,
|
|
216
216
|
isSymbol$1 = isSymbol$3.isSymbol_1;
|
|
217
217
|
|
|
218
|
+
/** Used as references for various `Number` constants. */
|
|
219
|
+
var INFINITY$1 = 1 / 0;
|
|
220
|
+
|
|
218
221
|
/** Used to convert symbols to primitives and strings. */
|
|
219
222
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
220
223
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
@@ -240,7 +243,7 @@ function baseToString$1(value) {
|
|
|
240
243
|
return symbolToString ? symbolToString.call(value) : '';
|
|
241
244
|
}
|
|
242
245
|
var result = (value + '');
|
|
243
|
-
return (result == '0' && (1 / value) == -
|
|
246
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
244
247
|
}
|
|
245
248
|
|
|
246
249
|
var _baseToString = baseToString$1;
|
|
@@ -298,6 +301,9 @@ var _castPath = castPath$1;
|
|
|
298
301
|
|
|
299
302
|
var isSymbol = isSymbol$3.isSymbol_1;
|
|
300
303
|
|
|
304
|
+
/** Used as references for various `Number` constants. */
|
|
305
|
+
var INFINITY = 1 / 0;
|
|
306
|
+
|
|
301
307
|
/**
|
|
302
308
|
* Converts `value` to a string key if it's not a string or symbol.
|
|
303
309
|
*
|
|
@@ -310,7 +316,7 @@ function toKey$1(value) {
|
|
|
310
316
|
return value;
|
|
311
317
|
}
|
|
312
318
|
var result = (value + '');
|
|
313
|
-
return (result == '0' && (1 / value) == -
|
|
319
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
314
320
|
}
|
|
315
321
|
|
|
316
322
|
var _toKey = toKey$1;
|
package/dist/_getAllKeys-es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as isArray_1,
|
|
1
|
+
import { a as isArray_1, b as isArrayLike_1 } from './isTypedArray-es.js';
|
|
2
2
|
import { i as isSymbol_1 } from './isSymbol-es.js';
|
|
3
3
|
import { g as _MapCache, f as _arrayLikeKeys } from './identity-es.js';
|
|
4
4
|
import { b as _Symbol } from './isObjectLike-es.js';
|
|
5
|
-
import {
|
|
5
|
+
import { _ as _baseKeys } from './_getTag-es.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Appends the elements of `values` to `array`.
|
|
@@ -213,6 +213,9 @@ var Symbol = _Symbol,
|
|
|
213
213
|
isArray$2 = isArray_1,
|
|
214
214
|
isSymbol$1 = isSymbol_1;
|
|
215
215
|
|
|
216
|
+
/** Used as references for various `Number` constants. */
|
|
217
|
+
var INFINITY$1 = 1 / 0;
|
|
218
|
+
|
|
216
219
|
/** Used to convert symbols to primitives and strings. */
|
|
217
220
|
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
218
221
|
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
@@ -238,7 +241,7 @@ function baseToString$1(value) {
|
|
|
238
241
|
return symbolToString ? symbolToString.call(value) : '';
|
|
239
242
|
}
|
|
240
243
|
var result = (value + '');
|
|
241
|
-
return (result == '0' && (1 / value) == -
|
|
244
|
+
return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
|
|
242
245
|
}
|
|
243
246
|
|
|
244
247
|
var _baseToString = baseToString$1;
|
|
@@ -296,6 +299,9 @@ var _castPath = castPath$1;
|
|
|
296
299
|
|
|
297
300
|
var isSymbol = isSymbol_1;
|
|
298
301
|
|
|
302
|
+
/** Used as references for various `Number` constants. */
|
|
303
|
+
var INFINITY = 1 / 0;
|
|
304
|
+
|
|
299
305
|
/**
|
|
300
306
|
* Converts `value` to a string key if it's not a string or symbol.
|
|
301
307
|
*
|
|
@@ -308,7 +314,7 @@ function toKey$1(value) {
|
|
|
308
314
|
return value;
|
|
309
315
|
}
|
|
310
316
|
var result = (value + '');
|
|
311
|
-
return (result == '0' && (1 / value) == -
|
|
317
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
312
318
|
}
|
|
313
319
|
|
|
314
320
|
var _toKey = toKey$1;
|
package/dist/_getTag-es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as identity_1,
|
|
2
|
-
import { _ as
|
|
3
|
-
import {
|
|
1
|
+
import { i as identity_1, e as eq_1, a as _isIndex } from './identity-es.js';
|
|
2
|
+
import { _ as _overRest, a as _setToString } from './_setToString-es.js';
|
|
3
|
+
import { b as isArrayLike_1 } from './isTypedArray-es.js';
|
|
4
4
|
import { a as isObject_1 } from './isObjectLike-es.js';
|
|
5
5
|
|
|
6
6
|
var identity = identity_1,
|
package/dist/_setToString-es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _defineProperty, i as identity_1 } from './identity-es.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
@@ -165,4 +165,4 @@ var setToString = shortOut(baseSetToString);
|
|
|
165
165
|
|
|
166
166
|
var _setToString = setToString;
|
|
167
167
|
|
|
168
|
-
export {
|
|
168
|
+
export { _overRest as _, _setToString as a };
|
package/dist/debounce-es.js
CHANGED
|
@@ -197,7 +197,7 @@ var nativeMax = Math.max,
|
|
|
197
197
|
* // Cancel the trailing debounced invocation.
|
|
198
198
|
* jQuery(window).on('popstate', debounced.cancel);
|
|
199
199
|
*/
|
|
200
|
-
function debounce
|
|
200
|
+
function debounce(func, wait, options) {
|
|
201
201
|
var lastArgs,
|
|
202
202
|
lastThis,
|
|
203
203
|
maxWait,
|
|
@@ -322,8 +322,8 @@ function debounce$1(func, wait, options) {
|
|
|
322
322
|
return debounced;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
var debounce_1 = debounce
|
|
325
|
+
var debounce_1 = debounce;
|
|
326
326
|
|
|
327
|
-
var debounce = /*@__PURE__*/getDefaultExportFromCjs(debounce_1);
|
|
327
|
+
var debounce$1 = /*@__PURE__*/getDefaultExportFromCjs(debounce_1);
|
|
328
328
|
|
|
329
|
-
export { debounce as a, debounce_1 as d };
|
|
329
|
+
export { debounce$1 as a, debounce_1 as d };
|
|
@@ -1324,6 +1324,6 @@ is, focus the extra element and if not it will focus the input.
|
|
|
1324
1324
|
| `prefix` | `Affix` | No | — | Adds a prefix label and icon to the field |
|
|
1325
1325
|
| `ref` | `Ref<InputTextRef>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
|
|
1326
1326
|
| `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
|
|
1327
|
-
| `suffix` | `
|
|
1327
|
+
| `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
|
|
1328
1328
|
| `validations` | `RegisterOptions` | No | — | Validations to run on the input. |
|
|
1329
1329
|
| `version` | `1` | No | `1` | Version of the component to use. |
|
|
@@ -812,6 +812,6 @@ This is not yet implemented fully. Avoid using.
|
|
|
812
812
|
| `readOnly` | `boolean` | No | — | Whether the input is read-only (HTML standard casing). |
|
|
813
813
|
| `ref` | `Ref<HTMLInputElement | HTMLTextAreaElement>` | No | — | |
|
|
814
814
|
| `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
|
|
815
|
-
| `suffix` | `
|
|
815
|
+
| `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field. |
|
|
816
816
|
| `UNSAFE_className` | `{ menu?: string; option?: string; section?: string; action?: string; input?: string; header?: string; footer?: string; selection?: string; }` | No | — | **Use at your own risk:** Custom class names for specific elements. This should only be used as a **last resort**. Us... |
|
|
817
817
|
| `UNSAFE_styles` | `{ menu?: CSSProperties; option?: CSSProperties; section?: CSSProperties; action?: CSSProperties; input?: CSSProperties; header?: CSSProperties; footer?: CSSProperties; selection?: CSSProperties; }` | No | — | **Use at your own risk:** Custom style for specific elements. This should only be used as a **last resort**. Using th... |
|
|
@@ -389,7 +389,7 @@ Use `UNSAFE_style` to apply inline custom styles to the Banner.
|
|
|
389
389
|
| `dismissible` | `boolean` | No | `true` | Set to false to hide the dismiss button |
|
|
390
390
|
| `icon` | `IconNames` | No | — | Use to override the default status Icon |
|
|
391
391
|
| `onDismiss` | `() => void` | No | — | Callback to be called when the Banner is dismissed. |
|
|
392
|
-
| `primaryAction` | `
|
|
392
|
+
| `primaryAction` | `{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly UNSAFE_className?: { container?: string; buttonLabel?: { ...; }; buttonIcon?: { ...; }; }; ... 18 more ...; readonly children?: never; } | ... 34 more ... | { ...; }` | No | — | Accepts props for Button. Default action uses a 'subtle' Button |
|
|
393
393
|
|
|
394
394
|
#### Banner.Provider
|
|
395
395
|
|
package/dist/docs/Chip/Chip.md
CHANGED
|
@@ -362,11 +362,13 @@ those more complex selection flows.
|
|
|
362
362
|
|------|------|----------|---------|-------------|
|
|
363
363
|
| `label` | `string` | Yes | — | The content of the chip. Will be displayed on the right if you include a heading. |
|
|
364
364
|
| `ariaLabel` | `string` | No | — | Accessible label, which can be different from the primary label. |
|
|
365
|
+
| `data-testid` | `string` | No | — | |
|
|
365
366
|
| `disabled` | `boolean` | No | — | Disables both mouse and keyboard functionality, and updates the visual style of the Chip to appear disabled. |
|
|
366
367
|
| `heading` | `string` | No | — | Adds more prominent text to act as a heading. Will be displayed on the left with a | separator. |
|
|
367
368
|
| `invalid` | `boolean` | No | — | Changes Chip styling to inform the user of an issue. |
|
|
368
|
-
| `onClick` | `(
|
|
369
|
-
| `
|
|
369
|
+
| `onClick` | `((ev: MouseEvent<HTMLButtonElement | HTMLDivElement, MouseEvent>) => void) & MouseEventHandler<ChipElement>` | No | — | Chip click callback using a standard event-first signature. |
|
|
370
|
+
| `onClickValue` | `(value: string | number, ev: MouseEvent<HTMLButtonElement | HTMLDivElement, MouseEvent>) => void` | No | — | Value-first click callback retained as an upgrade path for existing consumers. @deprecated Prefer `onClick` with a cl... |
|
|
371
|
+
| `onKeyDown` | `((ev: KeyboardEvent<HTMLButtonElement | HTMLDivElement>) => void) & KeyboardEventHandler<ChipElement>` | No | — | Callback. Called when you keydown on Chip. Ships the event, so you can get the key pushed. |
|
|
370
372
|
| `ref` | `Ref<HTMLButtonElement | HTMLDivElement>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
|
|
371
373
|
| `role` | `string` | No | `button` | The accessible role the Chip is fulfilling. Defaults to 'button' |
|
|
372
374
|
| `tabIndex` | `number` | No | `0` | Used for accessibility purpopses, specifically using the tab key as navigation. |
|
|
@@ -534,7 +534,7 @@ objects that will define the sorting options for the column.
|
|
|
534
534
|
| Prop | Type | Required | Default | Description |
|
|
535
535
|
|------|------|----------|---------|-------------|
|
|
536
536
|
| `message` | `string` | Yes | — | The message that shows when the DataList is empty. |
|
|
537
|
-
| `action` | `ReactElement<
|
|
537
|
+
| `action` | `ReactElement<{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly id?: string; readonly variation?: ButtonVariation; ... 17 more ...; readonly children?: never; } | ... 34 more ... | { ...; }, string | JSXElementConstructor<...>>` | No | — | The action that shows when the DataList is empty. This only accepts a Button component. Adding a non-Button componen... |
|
|
538
538
|
| `customRender` | `(emptyState: Omit<DataListEmptyStateProps, "customRender">) => ReactNode` | No | — | Custom render function for the empty state. If provided, this function will be used to render the empty state instea... |
|
|
539
539
|
| `type` | `"filtered" | "empty"` | No | — | Determine the type of empty state to show. By default, it will show the "empty" state when there is no data. If you ... |
|
|
540
540
|
|
|
@@ -71,7 +71,7 @@ export function SpecialInput(props) {
|
|
|
71
71
|
| `min` | `number` | No | — | Specifies the minimum numerical or date value that a user can type |
|
|
72
72
|
| `name` | `string` | No | — | Name of the input. |
|
|
73
73
|
| `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
|
|
74
|
-
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
|
74
|
+
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
|
|
75
75
|
| `onEnter` | `(event: KeyboardEvent<Element>) => void` | No | — | A callback to handle "Enter" keypress. This will only run if Enter is the only key. Will not run if Shift or Control ... |
|
|
76
76
|
| `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
|
|
77
77
|
| `onKeyUp` | `(event: KeyboardEvent<HTMLInputElement>) => void` | No | — | |
|
|
@@ -83,7 +83,7 @@ export function SpecialInput(props) {
|
|
|
83
83
|
| `rows` | `number` | No | — | Exclusively for textareas. Specifies the visible height of a textarea. |
|
|
84
84
|
| `showMiniLabel` | `boolean` | No | `true` | Controls the visibility of the mini label that appears inside the input when a value is entered. By default, the plac... |
|
|
85
85
|
| `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
|
|
86
|
-
| `suffix` | `
|
|
86
|
+
| `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
|
|
87
87
|
| `toolbar` | `ReactNode` | No | — | Toolbar to render content below the input. |
|
|
88
88
|
| `toolbarVisibility` | `"always" | "while-editing"` | No | — | Determines the visibility of the toolbar. |
|
|
89
89
|
| `type` | `FormFieldTypes` | No | — | Determines what kind of form field should the component give you. |
|
|
@@ -43,7 +43,7 @@ If you are not worried about email address validation, consider using
|
|
|
43
43
|
| `loading` | `boolean` | No | — | Show a spinner to indicate loading |
|
|
44
44
|
| `maxLength` | `number` | No | — | Maximum character length for an input. This also changes the width to roughly the same size as the max length. This i... |
|
|
45
45
|
| `name` | `string` | No | — | Name of the input. |
|
|
46
|
-
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
|
46
|
+
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
|
|
47
47
|
| `onValidation` | `(message: string) => void` | No | — | Callback to get the the status and message when validating a field @param message |
|
|
48
48
|
| `placeholder` | `string` | No | — | Text that appears inside the input when empty and floats above the value as a mini label once the user enters a value... |
|
|
49
49
|
| `readonly` | `boolean` | No | — | Prevents users from editing the value. |
|
|
@@ -51,7 +51,7 @@ For more details about `validation` using `Input` components, see the
|
|
|
51
51
|
| `min` | `number` | No | — | Specifies the minimum numerical or date value that a user can type |
|
|
52
52
|
| `name` | `string` | No | — | Name of the input. |
|
|
53
53
|
| `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
|
|
54
|
-
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
|
54
|
+
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
|
|
55
55
|
| `onEnter` | `(event: KeyboardEvent<Element>) => void` | No | — | A callback to handle "Enter" keypress. This will only run if Enter is the only key. Will not run if Shift or Control ... |
|
|
56
56
|
| `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
|
|
57
57
|
| `onValidation` | `(message: string) => void` | No | — | Callback to get the the status and message when validating a field @param message |
|
|
@@ -61,7 +61,7 @@ For more details about `validation` using `Input` components, see the
|
|
|
61
61
|
| `ref` | `Ref<InputNumberRef>` | No | — | Allows getting a ref to the component instance. Once the component unmounts, React will set `ref.current` to `null` (... |
|
|
62
62
|
| `showMiniLabel` | `boolean` | No | `true` | Controls the visibility of the mini label that appears inside the input when a value is entered. By default, the plac... |
|
|
63
63
|
| `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
|
|
64
|
-
| `suffix` | `
|
|
64
|
+
| `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
|
|
65
65
|
| `validations` | `RegisterOptions` | No | — | Show an error message above the field. This also highlights the the field red if an error message shows up. |
|
|
66
66
|
| `value` | `number` | No | — | Set the component to the given value. |
|
|
67
67
|
| `version` | `1` | No | — | Experimental: Determine which version of the FormField to use. |
|
|
@@ -66,6 +66,6 @@ edits the input.
|
|
|
66
66
|
| `required` | `boolean` | No | — | Shows a "required" validation message when the component is left empty. |
|
|
67
67
|
| `showMiniLabel` | `boolean` | No | `true` | Controls the visibility of the mini label that appears inside the input when a value is entered. By default, the plac... |
|
|
68
68
|
| `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
|
|
69
|
-
| `suffix` | `
|
|
69
|
+
| `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
|
|
70
70
|
| `validations` | `RegisterOptions` | No | — | Show an error message above the field. This also highlights the the field red if an error message shows up. |
|
|
71
71
|
| `version` | `1` | No | — | Experimental: Determine which version of the FormField to use. Right now this isn't used but it will be used in the f... |
|
|
@@ -303,7 +303,7 @@ they will not do anything.
|
|
|
303
303
|
| `multiline` | `boolean` | No | — | Use this when you're expecting a long answer. |
|
|
304
304
|
| `name` | `string` | No | — | Name of the input. |
|
|
305
305
|
| `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
|
|
306
|
-
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
|
306
|
+
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
|
|
307
307
|
| `onEnter` | `(event: KeyboardEvent<Element>) => void` | No | — | A callback to handle "Enter" keypress. This will only run if Enter is the only key. Will not run if Shift or Control ... |
|
|
308
308
|
| `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
|
|
309
309
|
| `onValidation` | `(message: string) => void` | No | — | Callback to get the the status and message when validating a field @param message |
|
|
@@ -314,7 +314,7 @@ they will not do anything.
|
|
|
314
314
|
| `rows` | `number | RowRange` | No | — | Specifies the visible height of a long answer form field. Can be in the form of a single number to set a static heigh... |
|
|
315
315
|
| `showMiniLabel` | `boolean` | No | `true` | Controls the visibility of the mini label that appears inside the input when a value is entered. By default, the plac... |
|
|
316
316
|
| `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
|
|
317
|
-
| `suffix` | `
|
|
317
|
+
| `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
|
|
318
318
|
| `toolbar` | `ReactNode` | No | — | Toolbar to render content below the input. |
|
|
319
319
|
| `toolbarVisibility` | `"while-editing" | "always"` | No | — | Determines the visibility of the toolbar. |
|
|
320
320
|
| `validations` | `RegisterOptions` | No | — | Show an error message above the field. This also highlights the the field red if an error message shows up. |
|
package/dist/docs/Modal/Modal.md
CHANGED
|
@@ -290,9 +290,9 @@ screen.getByRole("dialog", { name: /Billing Settings/i });
|
|
|
290
290
|
| `dismissible` | `boolean` | No | `true` | |
|
|
291
291
|
| `onRequestClose` | `() => void` | No | — | |
|
|
292
292
|
| `open` | `boolean` | No | `false` | |
|
|
293
|
-
| `primaryAction` | `
|
|
294
|
-
| `secondaryAction` | `
|
|
293
|
+
| `primaryAction` | `{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly variation?: ButtonVariation; ... 18 more ...; readonly children?: never; } | ... 34 more ... | { ...; }` | No | — | |
|
|
294
|
+
| `secondaryAction` | `{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly variation?: ButtonVariation; ... 18 more ...; readonly children?: never; } | ... 34 more ... | { ...; }` | No | — | |
|
|
295
295
|
| `size` | `"fullScreen" | "large" | "small"` | No | — | |
|
|
296
|
-
| `tertiaryAction` | `
|
|
296
|
+
| `tertiaryAction` | `{ external?: never; onClick?: never; readonly name?: string; submit: never; readonly type?: ButtonType; readonly value?: string; readonly variation?: ButtonVariation; ... 18 more ...; readonly children?: never; } | ... 34 more ... | { ...; }` | No | — | |
|
|
297
297
|
| `title` | `string` | No | `false` | |
|
|
298
298
|
| `version` | `1` | No | — | |
|
|
@@ -201,14 +201,14 @@ dropdown content is stylable; the closed value alignment is not.
|
|
|
201
201
|
| `maxLength` | `number` | No | — | Changes the width to roughly the same size as the maximum character length |
|
|
202
202
|
| `name` | `string` | No | — | Name of the input. |
|
|
203
203
|
| `onBlur` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Blur callback. |
|
|
204
|
-
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
|
|
204
|
+
| `onChange` | `(newValue: string | number | boolean | Date, event?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void` | No | — | onChange handler that provides the new value (or event) @param newValue @param event |
|
|
205
205
|
| `onEnter` | `(event: KeyboardEvent<Element>) => void` | No | — | A callback to handle "Enter" keypress. This will only run if Enter is the only key. Will not run if Shift or Control ... |
|
|
206
206
|
| `onFocus` | `(event?: FocusEvent<Element, Element>) => void` | No | — | Focus callback. |
|
|
207
207
|
| `onValidation` | `(message: string) => void` | No | — | Callback to get the the status and message when validating a field @param message |
|
|
208
208
|
| `placeholder` | `string` | No | — | Text that appears inside the input when empty and floats above the value as a mini label once the user enters a value... |
|
|
209
209
|
| `prefix` | `Affix` | No | — | Adds a prefix label and icon to the field |
|
|
210
210
|
| `size` | `"small" | "large"` | No | — | Adjusts the interface to either have small or large spacing. |
|
|
211
|
-
| `suffix` | `
|
|
211
|
+
| `suffix` | `{ onClick: () => void; readonly ariaLabel: string; readonly icon: IconNames; readonly label?: string; } | { onClick?: never; ariaLabel?: never; readonly label?: string; readonly icon?: IconNames; }` | No | — | Adds a suffix label and icon with an optional action to the field |
|
|
212
212
|
| `validations` | `RegisterOptions` | No | — | Show an error message above the field. This also highlights the the field red if an error message shows up. |
|
|
213
213
|
| `value` | `string | number | Date` | No | — | Set the component to the given value. |
|
|
214
214
|
| `version` | `1` | No | — | Experimental: Determine which version of the FormField to use. Right now this isn't used but it will be used in the f... |
|
|
@@ -886,12 +886,7 @@ let uncontrolledElementsSet = /*#__PURE__*/new WeakSet();
|
|
|
886
886
|
let markerMap = {};
|
|
887
887
|
let lockCount$1 = 0;
|
|
888
888
|
const supportsInert = () => typeof HTMLElement !== 'undefined' && 'inert' in HTMLElement.prototype;
|
|
889
|
-
|
|
890
|
-
if (!node) {
|
|
891
|
-
return null;
|
|
892
|
-
}
|
|
893
|
-
return index_esm.isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);
|
|
894
|
-
}
|
|
889
|
+
const unwrapHost = node => node && (node.host || unwrapHost(node.parentNode));
|
|
895
890
|
const correctElements = (parent, targets) => targets.map(target => {
|
|
896
891
|
if (parent.contains(target)) {
|
|
897
892
|
return target;
|
|
@@ -1032,12 +1027,6 @@ const FocusGuard = /*#__PURE__*/React__namespace.forwardRef(function FocusGuard(
|
|
|
1032
1027
|
});
|
|
1033
1028
|
});
|
|
1034
1029
|
|
|
1035
|
-
const HIDDEN_OWNER_STYLES = {
|
|
1036
|
-
clipPath: 'inset(50%)',
|
|
1037
|
-
position: 'fixed',
|
|
1038
|
-
top: 0,
|
|
1039
|
-
left: 0
|
|
1040
|
-
};
|
|
1041
1030
|
const PortalContext = /*#__PURE__*/React__namespace.createContext(null);
|
|
1042
1031
|
const attr = /*#__PURE__*/createAttribute('portal');
|
|
1043
1032
|
/**
|
|
@@ -1196,7 +1185,7 @@ function FloatingPortal(props) {
|
|
|
1196
1185
|
}
|
|
1197
1186
|
}), shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1198
1187
|
"aria-owns": portalNode.id,
|
|
1199
|
-
style:
|
|
1188
|
+
style: HIDDEN_STYLES
|
|
1200
1189
|
}), portalNode && /*#__PURE__*/ReactDOM__namespace.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/jsxRuntime.jsx(FocusGuard, {
|
|
1201
1190
|
"data-type": "outside",
|
|
1202
1191
|
ref: afterOutsideRef,
|
|
@@ -1232,24 +1221,20 @@ function useLiteMergeRefs(refs) {
|
|
|
1232
1221
|
const LIST_LIMIT = 20;
|
|
1233
1222
|
let previouslyFocusedElements = [];
|
|
1234
1223
|
function clearDisconnectedPreviouslyFocusedElements() {
|
|
1235
|
-
previouslyFocusedElements = previouslyFocusedElements.filter(
|
|
1236
|
-
var _elementRef$deref;
|
|
1237
|
-
return (_elementRef$deref = elementRef.deref()) == null ? void 0 : _elementRef$deref.isConnected;
|
|
1238
|
-
});
|
|
1224
|
+
previouslyFocusedElements = previouslyFocusedElements.filter(el => el.isConnected);
|
|
1239
1225
|
}
|
|
1240
1226
|
function addPreviouslyFocusedElement(element) {
|
|
1241
1227
|
clearDisconnectedPreviouslyFocusedElements();
|
|
1242
1228
|
if (element && index_esm.getNodeName(element) !== 'body') {
|
|
1243
|
-
previouslyFocusedElements.push(
|
|
1229
|
+
previouslyFocusedElements.push(element);
|
|
1244
1230
|
if (previouslyFocusedElements.length > LIST_LIMIT) {
|
|
1245
|
-
previouslyFocusedElements = previouslyFocusedElements.slice(-
|
|
1231
|
+
previouslyFocusedElements = previouslyFocusedElements.slice(-20);
|
|
1246
1232
|
}
|
|
1247
1233
|
}
|
|
1248
1234
|
}
|
|
1249
1235
|
function getPreviouslyFocusedElement() {
|
|
1250
1236
|
clearDisconnectedPreviouslyFocusedElements();
|
|
1251
|
-
|
|
1252
|
-
return elementRef == null ? void 0 : elementRef.deref();
|
|
1237
|
+
return previouslyFocusedElements[previouslyFocusedElements.length - 1];
|
|
1253
1238
|
}
|
|
1254
1239
|
function getFirstTabbableElement(container) {
|
|
1255
1240
|
const tabbableOptions = getTabbableOptions();
|
|
@@ -2181,22 +2166,18 @@ function useDismiss(context, props) {
|
|
|
2181
2166
|
})
|
|
2182
2167
|
})
|
|
2183
2168
|
}), [closeOnEscapeKeyDown, onOpenChange, referencePress, referencePressEvent]);
|
|
2184
|
-
const floating = React__namespace.useMemo(() => {
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
return;
|
|
2188
|
-
}
|
|
2169
|
+
const floating = React__namespace.useMemo(() => ({
|
|
2170
|
+
onKeyDown: closeOnEscapeKeyDown,
|
|
2171
|
+
onMouseDown() {
|
|
2189
2172
|
endedOrStartedInsideRef.current = true;
|
|
2173
|
+
},
|
|
2174
|
+
onMouseUp() {
|
|
2175
|
+
endedOrStartedInsideRef.current = true;
|
|
2176
|
+
},
|
|
2177
|
+
[captureHandlerKeys[outsidePressEvent]]: () => {
|
|
2178
|
+
dataRef.current.insideReactTree = true;
|
|
2190
2179
|
}
|
|
2191
|
-
|
|
2192
|
-
onKeyDown: closeOnEscapeKeyDown,
|
|
2193
|
-
onMouseDown: setMouseDownOrUpInside,
|
|
2194
|
-
onMouseUp: setMouseDownOrUpInside,
|
|
2195
|
-
[captureHandlerKeys[outsidePressEvent]]: () => {
|
|
2196
|
-
dataRef.current.insideReactTree = true;
|
|
2197
|
-
}
|
|
2198
|
-
};
|
|
2199
|
-
}, [closeOnEscapeKeyDown, outsidePressEvent, dataRef]);
|
|
2180
|
+
}), [closeOnEscapeKeyDown, outsidePressEvent, dataRef]);
|
|
2200
2181
|
return React__namespace.useMemo(() => enabled ? {
|
|
2201
2182
|
reference,
|
|
2202
2183
|
floating
|