@qualtrics/ui-react 2.54.0 → 2.56.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/CHANGELOG.md +27 -0
- package/dist/__shared/cjs/{index-25c1e427.js → index-055534a9.js} +140 -134
- package/dist/__shared/cjs/{index-fedfd2ec.js → index-e7eb4a52.js} +27 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +7 -1
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/design-tokens/css/styles.css +1 -0
- package/dist/design-tokens/css/typography.css +580 -0
- package/dist/design-tokens/less/styles.less +1 -0
- package/dist/design-tokens/less/typography.js +8 -0
- package/dist/design-tokens/less/typography.less +578 -0
- package/dist/design-tokens/scss/styles.scss +1 -0
- package/dist/design-tokens/scss/typography.scss +578 -0
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/CreditsIcon.js +6 -0
- package/dist/icons/components/ExperienceTransparencyIcon.js +6 -0
- package/dist/icons/components/QualitativeIcon.js +6 -0
- package/dist/icons/components/QuantitativeIcon.js +6 -0
- package/dist/icons/components/TruncateDateIcon.js +6 -0
- package/dist/icons/components/ZoomToFitIcon.js +6 -0
- package/dist/icons/index.d.ts +12 -0
- package/dist/icons/index.es.js +6 -0
- package/dist/icons/index.js +7 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/Typography/Typography.js +36 -0
- package/dist/next/Typography/TypographyTypesMapper.js +26 -0
- package/dist/next/Typography/index.js +1 -0
- package/dist/next/index.d.ts +22 -0
- package/dist/next/index.es.js +2 -0
- package/dist/next/index.js +296 -236
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +5 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._xo4zY{display:flex}._uvGXZ{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._uvGXZ._VBErC{background-color:#fff}._uvGXZ._hqqSb,._uvGXZ._VBErC._JlVEO.focus-visible:not(._A-2RP),._uvGXZ._VBErC._JlVEO:focus-visible:not(._A-2RP),._uvGXZ._VBErC._tkkV2:not(._uvGXZ._VBErC._3nfGl){background-color:#0b6ed0}._uvGXZ._hqqSb._3nfGl._tkkV2,._uvGXZ._hqqSb._A-2RP._3nfGl,._uvGXZ._hqqSb._A-2RP._JlVEO{opacity:.4}._D6N8e{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._D6N8e:focus{z-index:1}._xD8dm{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._xD8dm svg{margin-left:1px}._xD8dm._VBErC{background-color:#0b6ed0;border-color:transparent}._xD8dm._VBErC svg{fill:#fff!important}._xD8dm._VBErC:not(._Z4gmL):hover{background-color:#085caf!important}._xD8dm._VBErC:not(._Z4gmL):active{background-color:#0854a1!important}._xD8dm._VBErC._Z4gmL{opacity:.4}._xD8dm._VBErC._Z4gmL svg{background-color:transparent}._xD8dm._hqqSb{border-color:#0b6ed0;background-color:#fff}._xD8dm._hqqSb svg{fill:#0b6ed0!important}._xD8dm._hqqSb:not(._Z4gmL):hover{background-color:#eef5fc!important}._xD8dm._hqqSb:not(._Z4gmL):active{background-color:#e1edf9!important}._xD8dm._hqqSb._Z4gmL{opacity:.4}._xD8dm._hqqSb._Z4gmL svg{background-color:transparent}._8Ww-L{width:260px}";
|
|
4
|
+
var styles = {"container":"_xo4zY","divider":"_uvGXZ","primary":"_VBErC","mainButtonFocus":"_JlVEO","mainButtonDisabled":"_A-2RP","dropdownButtonFocus":"_tkkV2","dropdownButtonDisabled":"_3nfGl","secondary":"_hqqSb","mainButton":"_D6N8e","dropdownButton":"_xD8dm","disabled":"_Z4gmL","dropdownOption":"_8Ww-L"};
|
|
5
|
+
var stylesheet="._xo4zY{display:flex}._uvGXZ{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._uvGXZ._VBErC{background-color:#fff}._uvGXZ._hqqSb,._uvGXZ._VBErC._JlVEO.focus-visible:not(._A-2RP),._uvGXZ._VBErC._JlVEO:focus-visible:not(._A-2RP),._uvGXZ._VBErC._tkkV2:not(._uvGXZ._VBErC._3nfGl){background-color:#0b6ed0}._uvGXZ._hqqSb._3nfGl._tkkV2,._uvGXZ._hqqSb._A-2RP._3nfGl,._uvGXZ._hqqSb._A-2RP._JlVEO{opacity:.4}._D6N8e{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._D6N8e:focus{z-index:1}._xD8dm{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._xD8dm svg{margin-left:1px}._xD8dm._VBErC{background-color:#0b6ed0;border-color:transparent}._xD8dm._VBErC svg{fill:#fff!important}._xD8dm._VBErC:not(._Z4gmL):hover{background-color:#085caf!important}._xD8dm._VBErC:not(._Z4gmL):active{background-color:#0854a1!important}._xD8dm._VBErC._Z4gmL{opacity:.4}._xD8dm._VBErC._Z4gmL svg{background-color:transparent}._xD8dm._hqqSb{border-color:#0b6ed0;background-color:#fff}._xD8dm._hqqSb svg{fill:#0b6ed0!important}._xD8dm._hqqSb:not(._Z4gmL):hover{background-color:#eef5fc!important}._xD8dm._hqqSb:not(._Z4gmL):active{background-color:#e1edf9!important}._xD8dm._hqqSb._Z4gmL{opacity:.4}._xD8dm._hqqSb._Z4gmL svg{background-color:transparent}._8Ww-L{width:260px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"timePickerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._hSaDN{display:inline-block;position:relative}._hSaDN ._picyo{width:120px}._hSaDN ._picyo ._ZKD-q._iCicS{transform:rotate(-180deg)}._hSaDN ._picyo ._ZKD-q._RxqIN{fill:#9d9fa1;opacity:.4}._hSaDN ._zT-tq>input:focus{box-shadow:none!important;border:1px solid #898989!important}._hSaDN ._ZKD-q{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._hSaDN ._ZKD-q._iCicS{transform:rotate(-180deg)}._pWfdt{width:120px}._pWfdt ._ZlrXS._ECYy1{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_hSaDN","input":"_picyo","icon":"_ZKD-q","open":"_iCicS","disabled":"_RxqIN","ignoreFocusStyle":"_zT-tq","timePickerFlyout":"_pWfdt","option":"_ZlrXS","exactMatch":"_ECYy1"};
|
|
5
|
+
var stylesheet="._hSaDN{display:inline-block;position:relative}._hSaDN ._picyo{width:120px}._hSaDN ._picyo ._ZKD-q._iCicS{transform:rotate(-180deg)}._hSaDN ._picyo ._ZKD-q._RxqIN{fill:#9d9fa1;opacity:.4}._hSaDN ._zT-tq>input:focus{box-shadow:none!important;border:1px solid #898989!important}._hSaDN ._ZKD-q{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._hSaDN ._ZKD-q._iCicS{transform:rotate(-180deg)}._pWfdt{width:120px}._pWfdt ._ZlrXS._ECYy1{background-color:#efefef;border-radius:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"default":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._co6Xb{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._jan-y{background-color:rgba(50,54,58,.08)}._eAx5-{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._P2oeh{color:rgba(81,85,89,.4);cursor:not-allowed}._8fuhy{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._tJO21{color:#085caf;border-color:#085caf}._AvGZu,._tJO21{background:rgba(11,110,208,.11)}._AvGZu{color:#0854a1;border-color:#0854a1}._Szzpj{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._rny-g{position:relative;display:inline-grid}._rny-g svg{fill:currentColor}._rny-g ._ICj72{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._rny-g ._ICj72+._qsI6f{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._rny-g ._ICj72+._qsI6f._O85Bu{padding:5px;max-width:36px;min-width:36px}._rny-g ._ICj72+._qsI6f._ku4s0{padding:0 16px}._rny-g ._ICj72+._qsI6f._ngwIh{padding:0 16px 0 12px}._rny-g ._ICj72:hover+._qsI6f{background-color:rgba(50,54,58,.08)}._rny-g ._ICj72:disabled+._qsI6f{color:rgba(81,85,89,.4);cursor:not-allowed}._rny-g ._ICj72:active+._qsI6f,._rny-g ._ICj72:focus:active+._qsI6f{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._rny-g ._ICj72:checked+._qsI6f{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._rny-g ._ICj72:checked:hover+._qsI6f{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._rny-g ._ICj72:checked:disabled+._qsI6f{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._rny-g ._ICj72:checked:active+._qsI6f,._rny-g ._ICj72:checked:focus:active+._qsI6f{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._2VMPY{display:inline-flex;position:relative}._2VMPY:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._2VMPY>*{flex-shrink:0;flex-grow:0}._SJm6Q{border:none;margin:0;padding:0}._SJm6Q legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._rny-g ._ICj72.focus-visible,._rny-g ._ICj72:focus-visible{outline:none}._rny-g ._ICj72.focus-visible+._qsI6f,._rny-g ._ICj72:focus-visible+._qsI6f{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_co6Xb","hovered":"_jan-y","pressed":"_eAx5-","disabled":"_P2oeh","selectedDefault":"_8fuhy","selectedHovered":"_tJO21","selectedPressed":"_AvGZu","selectedDisabled":"_Szzpj","toggleContainer":"_rny-g","toggleInput":"_ICj72","toggleButton":"_qsI6f","iconOnly":"_O85Bu","text":"_ku4s0","iconText":"_ngwIh","toggleButtonGroup":"_2VMPY","toggleButtonGroupFieldset":"_SJm6Q"};
|
|
5
|
+
var stylesheet="._co6Xb{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._jan-y{background-color:rgba(50,54,58,.08)}._eAx5-{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._P2oeh{color:rgba(81,85,89,.4);cursor:not-allowed}._8fuhy{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._tJO21{color:#085caf;border-color:#085caf}._AvGZu,._tJO21{background:rgba(11,110,208,.11)}._AvGZu{color:#0854a1;border-color:#0854a1}._Szzpj{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._rny-g{position:relative;display:inline-grid}._rny-g svg{fill:currentColor}._rny-g ._ICj72{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._rny-g ._ICj72+._qsI6f{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._rny-g ._ICj72+._qsI6f._O85Bu{padding:5px;max-width:36px;min-width:36px}._rny-g ._ICj72+._qsI6f._ku4s0{padding:0 16px}._rny-g ._ICj72+._qsI6f._ngwIh{padding:0 16px 0 12px}._rny-g ._ICj72:hover+._qsI6f{background-color:rgba(50,54,58,.08)}._rny-g ._ICj72:disabled+._qsI6f{color:rgba(81,85,89,.4);cursor:not-allowed}._rny-g ._ICj72:active+._qsI6f,._rny-g ._ICj72:focus:active+._qsI6f{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._rny-g ._ICj72:checked+._qsI6f{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._rny-g ._ICj72:checked:hover+._qsI6f{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._rny-g ._ICj72:checked:disabled+._qsI6f{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._rny-g ._ICj72:checked:active+._qsI6f,._rny-g ._ICj72:checked:focus:active+._qsI6f{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._2VMPY{display:inline-flex;position:relative}._2VMPY:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._2VMPY>*{flex-shrink:0;flex-grow:0}._SJm6Q{border:none;margin:0;padding:0}._SJm6Q legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._rny-g ._ICj72.focus-visible,._rny-g ._ICj72:focus-visible{outline:none}._rny-g ._ICj72.focus-visible+._qsI6f,._rny-g ._ICj72:focus-visible+._qsI6f{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default, { useMemo } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import styles from '../../design-tokens/less/typography.js';
|
|
5
|
+
import { TypographyTypesMapper } from './TypographyTypesMapper.js';
|
|
6
|
+
|
|
7
|
+
const Typography = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
8
|
+
let {
|
|
9
|
+
children,
|
|
10
|
+
variant,
|
|
11
|
+
fontWeight = 'regular',
|
|
12
|
+
baseStyle,
|
|
13
|
+
...props
|
|
14
|
+
} = _ref;
|
|
15
|
+
const Element = useMemo(() => {
|
|
16
|
+
if (TypographyTypesMapper[variant]) {
|
|
17
|
+
return TypographyTypesMapper[variant].target || variant;
|
|
18
|
+
}
|
|
19
|
+
return 'div';
|
|
20
|
+
}, [variant]);
|
|
21
|
+
const classNameGenerated = useMemo(() => {
|
|
22
|
+
if (baseStyle && TypographyTypesMapper[baseStyle]) {
|
|
23
|
+
return "".concat(TypographyTypesMapper[baseStyle].bundleName, "-").concat(fontWeight);
|
|
24
|
+
}
|
|
25
|
+
if (TypographyTypesMapper[variant]) {
|
|
26
|
+
return "".concat(TypographyTypesMapper[variant].bundleName, "-").concat(fontWeight);
|
|
27
|
+
}
|
|
28
|
+
return '';
|
|
29
|
+
}, [baseStyle, fontWeight, variant]);
|
|
30
|
+
return /*#__PURE__*/React__default.createElement(Element, _extends({
|
|
31
|
+
ref: ref,
|
|
32
|
+
className: classNames(styles[classNameGenerated], props.className)
|
|
33
|
+
}, props), children);
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export { Typography };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const TypographyTypesMapper = {
|
|
2
|
+
h1: {
|
|
3
|
+
bundleName: 'heading-1'
|
|
4
|
+
},
|
|
5
|
+
h2: {
|
|
6
|
+
bundleName: 'heading-2'
|
|
7
|
+
},
|
|
8
|
+
h3: {
|
|
9
|
+
bundleName: 'heading-3'
|
|
10
|
+
},
|
|
11
|
+
h4: {
|
|
12
|
+
bundleName: 'heading-4'
|
|
13
|
+
},
|
|
14
|
+
h5: {
|
|
15
|
+
bundleName: 'heading-5'
|
|
16
|
+
},
|
|
17
|
+
h6: {
|
|
18
|
+
bundleName: 'heading-6'
|
|
19
|
+
},
|
|
20
|
+
body: {
|
|
21
|
+
bundleName: 'body-text',
|
|
22
|
+
target: 'p'
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export { TypographyTypesMapper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Typography } from './Typography.js';
|
package/dist/next/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { E164Number } from 'libphonenumber-js';
|
|
|
8
8
|
import { FocusEventHandler } from 'react';
|
|
9
9
|
import { FormEvent } from 'react';
|
|
10
10
|
import { FunctionComponent } from 'react';
|
|
11
|
+
import { HTMLAttributes } from 'react';
|
|
11
12
|
import type { InputHTMLAttributes } from 'react';
|
|
12
13
|
import { MouseEventHandler } from 'react';
|
|
13
14
|
import { MutableRefObject } from 'react';
|
|
@@ -1413,6 +1414,27 @@ declare interface TooltipProps_2 extends Omit<React_2.AllHTMLAttributes<HTMLDivE
|
|
|
1413
1414
|
[prop: string]: any;
|
|
1414
1415
|
}
|
|
1415
1416
|
|
|
1417
|
+
export declare const Typography: React_2.FC<TypographyProps>;
|
|
1418
|
+
|
|
1419
|
+
declare type TypographyFontWeight = 'regular' | 'bold';
|
|
1420
|
+
|
|
1421
|
+
export declare interface TypographyProps extends HTMLAttributes<HTMLElement> {
|
|
1422
|
+
/** Element or component to be displayed inside the Typography component.*/
|
|
1423
|
+
children: React_2.ReactNode;
|
|
1424
|
+
/** The variant of tag this component will be rendered as */
|
|
1425
|
+
variant: TypographyVariant;
|
|
1426
|
+
/** The kind of font weight to use
|
|
1427
|
+
* @defaultValue 'regular'
|
|
1428
|
+
*/
|
|
1429
|
+
fontWeight?: TypographyFontWeight;
|
|
1430
|
+
/** The base style to use for the typography variant */
|
|
1431
|
+
baseStyle?: TypographyVariant;
|
|
1432
|
+
/** Additional props to be spread to the component */
|
|
1433
|
+
[prop: string]: any;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
declare type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body';
|
|
1437
|
+
|
|
1416
1438
|
export declare function useForm<V extends Values>({ initialValues, validateField, }: UseFormOptions<V>): {
|
|
1417
1439
|
Form: (props: FormProps) => JSX.Element;
|
|
1418
1440
|
register: {
|
package/dist/next/index.es.js
CHANGED
|
@@ -17,6 +17,7 @@ import './TimePicker/index.js';
|
|
|
17
17
|
import './Tooltip/index.js';
|
|
18
18
|
import './ToggleButton/index.js';
|
|
19
19
|
import './Chat/index.js';
|
|
20
|
+
import './Typography/index.js';
|
|
20
21
|
export { AdvancedTable } from './AdvancedTable/AdvancedTable.js';
|
|
21
22
|
export { default as CollapsibleSearchInput } from './CollapsibleSearchInput/CollapsibleSearchInput.js';
|
|
22
23
|
export { CollectionGrid } from './CollectionGrid/CollectionGrid.js';
|
|
@@ -59,5 +60,6 @@ export { default as Chat } from './Chat/Chat.js';
|
|
|
59
60
|
export { default as ChatInput } from './Chat/ChatInput.js';
|
|
60
61
|
export { default as ChatMessage } from './Chat/ChatMessage.js';
|
|
61
62
|
export { default as ChatMessageList } from './Chat/ChatMessageList.js';
|
|
63
|
+
export { Typography } from './Typography/Typography.js';
|
|
62
64
|
|
|
63
65
|
/* eslint-disable camelcase */
|