@doist/reactist 29.1.1 → 29.1.2
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 +7 -0
- package/dist/reactist.cjs.development.js +6749 -1832
- package/dist/reactist.cjs.development.js.map +1 -1
- package/dist/reactist.cjs.production.min.js +1 -1
- package/dist/reactist.cjs.production.min.js.map +1 -1
- package/es/avatar/avatar.js +106 -36
- package/es/avatar/avatar.js.map +1 -1
- package/es/avatar/utils.js +17 -19
- package/es/avatar/utils.js.map +1 -1
- package/es/badge/badge.js +50 -6
- package/es/badge/badge.js.map +1 -1
- package/es/banner/banner.js +384 -41
- package/es/banner/banner.js.map +1 -1
- package/es/base-field/base-field.js +367 -77
- package/es/base-field/base-field.js.map +1 -1
- package/es/box/box.js +139 -61
- package/es/box/box.js.map +1 -1
- package/es/button/button.js +346 -36
- package/es/button/button.js.map +1 -1
- package/es/checkbox-field/checkbox-field.js +71 -48
- package/es/checkbox-field/checkbox-field.js.map +1 -1
- package/es/checkbox-field/checkbox-icon.js +88 -28
- package/es/checkbox-field/checkbox-icon.js.map +1 -1
- package/es/checkbox-field/use-fork-ref.js +15 -20
- package/es/checkbox-field/use-fork-ref.js.map +1 -1
- package/es/columns/columns.js +46 -23
- package/es/columns/columns.js.map +1 -1
- package/es/components/color-picker/color-picker.js +190 -46
- package/es/components/color-picker/color-picker.js.map +1 -1
- package/es/components/deprecated-button/deprecated-button.js +102 -9
- package/es/components/deprecated-button/deprecated-button.js.map +1 -1
- package/es/components/deprecated-button/index.js +5 -2
- package/es/components/deprecated-button/index.js.map +1 -1
- package/es/components/deprecated-dropdown/dropdown.js +234 -134
- package/es/components/deprecated-dropdown/dropdown.js.map +1 -1
- package/es/components/deprecated-dropdown/index.js +4 -1
- package/es/components/deprecated-dropdown/index.js.map +1 -1
- package/es/components/deprecated-input/index.js +5 -2
- package/es/components/deprecated-input/index.js.map +1 -1
- package/es/components/deprecated-input/input.js +27 -4
- package/es/components/deprecated-input/input.js.map +1 -1
- package/es/components/deprecated-select/select.js +110 -7
- package/es/components/deprecated-select/select.js.map +1 -1
- package/es/components/key-capturer/key-capturer.js +190 -137
- package/es/components/key-capturer/key-capturer.js.map +1 -1
- package/es/components/keyboard-shortcut/keyboard-shortcut.js +65 -45
- package/es/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/es/components/progress-bar/progress-bar.js +61 -9
- package/es/components/progress-bar/progress-bar.js.map +1 -1
- package/es/components/time/index.js +5 -2
- package/es/components/time/index.js.map +1 -1
- package/es/components/time/time-utils.js +59 -53
- package/es/components/time/time-utils.js.map +1 -1
- package/es/components/time/time.js +94 -91
- package/es/components/time/time.js.map +1 -1
- package/es/divider/divider.js +44 -5
- package/es/divider/divider.js.map +1 -1
- package/es/heading/heading.js +122 -20
- package/es/heading/heading.js.map +1 -1
- package/es/hidden/hidden.js +36 -30
- package/es/hidden/hidden.js.map +1 -1
- package/es/hidden-visually/hidden-visually.js +9 -4
- package/es/hidden-visually/hidden-visually.js.map +1 -1
- package/es/icons/alert-icon.js +145 -18
- package/es/icons/alert-icon.js.map +1 -1
- package/es/icons/banner-icon.js +213 -25
- package/es/icons/banner-icon.js.map +1 -1
- package/es/icons/close-icon.js +26 -3
- package/es/icons/close-icon.js.map +1 -1
- package/es/icons/password-hidden-icon.js +40 -6
- package/es/icons/password-hidden-icon.js.map +1 -1
- package/es/icons/password-visible-icon.js +33 -5
- package/es/icons/password-visible-icon.js.map +1 -1
- package/es/index.js +9 -9
- package/es/inline/inline.js +24 -9
- package/es/inline/inline.js.map +1 -1
- package/es/loading/loading.js +63 -17
- package/es/loading/loading.js.map +1 -1
- package/es/menu/menu.js +469 -92
- package/es/menu/menu.js.map +1 -1
- package/es/modal/modal.js +675 -112
- package/es/modal/modal.js.map +1 -1
- package/es/notice/notice.js +77 -10
- package/es/notice/notice.js.map +1 -1
- package/es/password-field/password-field.js +89 -11
- package/es/password-field/password-field.js.map +1 -1
- package/es/prose/prose.js +48 -9
- package/es/prose/prose.js.map +1 -1
- package/es/select-field/select-field.js +150 -19
- package/es/select-field/select-field.js.map +1 -1
- package/es/spinner/spinner.js +39 -6
- package/es/spinner/spinner.js.map +1 -1
- package/es/stack/stack.js +29 -17
- package/es/stack/stack.js.map +1 -1
- package/es/switch-field/switch-field.js +225 -42
- package/es/switch-field/switch-field.js.map +1 -1
- package/es/tabs/tabs.js +207 -109
- package/es/tabs/tabs.js.map +1 -1
- package/es/text/text.js +27 -17
- package/es/text/text.js.map +1 -1
- package/es/text-area/text-area.js +264 -54
- package/es/text-area/text-area.js.map +1 -1
- package/es/text-field/text-field.js +204 -31
- package/es/text-field/text-field.js.map +1 -1
- package/es/text-link/text-link.js +21 -10
- package/es/text-link/text-link.js.map +1 -1
- package/es/toast/static-toast.js +143 -25
- package/es/toast/static-toast.js.map +1 -1
- package/es/toast/toast-animation.js +159 -109
- package/es/toast/toast-animation.js.map +1 -1
- package/es/toast/use-toasts.js +309 -84
- package/es/toast/use-toasts.js.map +1 -1
- package/es/tooltip/tooltip.js +88 -32
- package/es/tooltip/tooltip.js.map +1 -1
- package/es/utils/common-helpers.js +12 -11
- package/es/utils/common-helpers.js.map +1 -1
- package/es/utils/polymorphism.js +84 -1
- package/es/utils/polymorphism.js.map +1 -1
- package/es/utils/responsive-props.js +43 -32
- package/es/utils/responsive-props.js.map +1 -1
- package/lib/avatar/avatar.js +109 -35
- package/lib/avatar/avatar.js.map +1 -1
- package/lib/avatar/utils.js +17 -19
- package/lib/avatar/utils.js.map +1 -1
- package/lib/badge/badge.js +53 -5
- package/lib/badge/badge.js.map +1 -1
- package/lib/banner/banner.js +385 -38
- package/lib/banner/banner.js.map +1 -1
- package/lib/base-field/base-field.js +366 -73
- package/lib/base-field/base-field.js.map +1 -1
- package/lib/box/box.js +141 -61
- package/lib/box/box.js.map +1 -1
- package/lib/button/button.js +347 -35
- package/lib/button/button.js.map +1 -1
- package/lib/checkbox-field/checkbox-field.js +73 -46
- package/lib/checkbox-field/checkbox-field.js.map +1 -1
- package/lib/checkbox-field/checkbox-icon.js +92 -28
- package/lib/checkbox-field/checkbox-icon.js.map +1 -1
- package/lib/checkbox-field/use-fork-ref.js +15 -20
- package/lib/checkbox-field/use-fork-ref.js.map +1 -1
- package/lib/columns/columns.js +49 -22
- package/lib/columns/columns.js.map +1 -1
- package/lib/components/color-picker/color-picker.js +189 -45
- package/lib/components/color-picker/color-picker.js.map +1 -1
- package/lib/components/deprecated-button/deprecated-button.js +104 -9
- package/lib/components/deprecated-button/deprecated-button.js.map +1 -1
- package/lib/components/deprecated-dropdown/dropdown.js +235 -133
- package/lib/components/deprecated-dropdown/dropdown.js.map +1 -1
- package/lib/components/deprecated-input/input.js +28 -4
- package/lib/components/deprecated-input/input.js.map +1 -1
- package/lib/components/deprecated-select/select.js +112 -7
- package/lib/components/deprecated-select/select.js.map +1 -1
- package/lib/components/key-capturer/key-capturer.js +188 -135
- package/lib/components/key-capturer/key-capturer.js.map +1 -1
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js +67 -45
- package/lib/components/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/lib/components/progress-bar/progress-bar.js +60 -8
- package/lib/components/progress-bar/progress-bar.js.map +1 -1
- package/lib/components/time/time-utils.js +59 -53
- package/lib/components/time/time-utils.js.map +1 -1
- package/lib/components/time/time.js +93 -90
- package/lib/components/time/time.js.map +1 -1
- package/lib/divider/divider.js +47 -4
- package/lib/divider/divider.js.map +1 -1
- package/lib/heading/heading.js +125 -19
- package/lib/heading/heading.js.map +1 -1
- package/lib/hidden/hidden.js +39 -29
- package/lib/hidden/hidden.js.map +1 -1
- package/lib/hidden-visually/hidden-visually.js +11 -3
- package/lib/hidden-visually/hidden-visually.js.map +1 -1
- package/lib/icons/alert-icon.js +149 -18
- package/lib/icons/alert-icon.js.map +1 -1
- package/lib/icons/banner-icon.js +217 -25
- package/lib/icons/banner-icon.js.map +1 -1
- package/lib/icons/close-icon.js +29 -3
- package/lib/icons/close-icon.js.map +1 -1
- package/lib/icons/password-hidden-icon.js +43 -6
- package/lib/icons/password-hidden-icon.js.map +1 -1
- package/lib/icons/password-visible-icon.js +36 -5
- package/lib/icons/password-visible-icon.js.map +1 -1
- package/lib/inline/inline.js +27 -8
- package/lib/inline/inline.js.map +1 -1
- package/lib/loading/loading.js +67 -17
- package/lib/loading/loading.js.map +1 -1
- package/lib/menu/menu.js +471 -91
- package/lib/menu/menu.js.map +1 -1
- package/lib/modal/modal.js +671 -106
- package/lib/modal/modal.js.map +1 -1
- package/lib/notice/notice.js +75 -8
- package/lib/notice/notice.js.map +1 -1
- package/lib/password-field/password-field.js +92 -10
- package/lib/password-field/password-field.js.map +1 -1
- package/lib/prose/prose.js +51 -8
- package/lib/prose/prose.js.map +1 -1
- package/lib/select-field/select-field.js +152 -17
- package/lib/select-field/select-field.js.map +1 -1
- package/lib/spinner/spinner.js +39 -6
- package/lib/spinner/spinner.js.map +1 -1
- package/lib/stack/stack.js +29 -15
- package/lib/stack/stack.js.map +1 -1
- package/lib/switch-field/switch-field.js +225 -38
- package/lib/switch-field/switch-field.js.map +1 -1
- package/lib/tabs/tabs.js +207 -107
- package/lib/tabs/tabs.js.map +1 -1
- package/lib/text/text.js +30 -16
- package/lib/text/text.js.map +1 -1
- package/lib/text-area/text-area.js +264 -52
- package/lib/text-area/text-area.js.map +1 -1
- package/lib/text-field/text-field.js +207 -30
- package/lib/text-field/text-field.js.map +1 -1
- package/lib/text-link/text-link.js +24 -9
- package/lib/text-link/text-link.js.map +1 -1
- package/lib/toast/static-toast.js +142 -22
- package/lib/toast/static-toast.js.map +1 -1
- package/lib/toast/toast-animation.js +158 -108
- package/lib/toast/toast-animation.js.map +1 -1
- package/lib/toast/use-toasts.js +310 -82
- package/lib/toast/use-toasts.js.map +1 -1
- package/lib/tooltip/tooltip.js +87 -31
- package/lib/tooltip/tooltip.js.map +1 -1
- package/lib/utils/common-helpers.js +12 -11
- package/lib/utils/common-helpers.js.map +1 -1
- package/lib/utils/polymorphism.js +84 -1
- package/lib/utils/polymorphism.js.map +1 -1
- package/lib/utils/responsive-props.js +43 -32
- package/lib/utils/responsive-props.js.map +1 -1
- package/package.json +10 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time.js","sources":["../../../src/components/time/time.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"time.js","sources":["../../../src/components/time/time.tsx"],"sourcesContent":["import './time.less'\n\nimport * as React from 'react'\n\nimport { Tooltip } from '../../tooltip'\n\nimport { TimeUtils } from './time-utils'\n\nimport type { TimeConfig } from './time-utils'\n\nconst DELAY = 60000\n\ntype Props = {\n /** UNIX timestamp of the time to display. */\n time?: number\n /** Configuration for localization. */\n config?: TimeConfig\n /** Additional css class applied to the time element. */\n className?: string\n tooltipOnHover?: boolean\n /** Refresh the component every DELAY seconds. */\n refresh?: boolean\n /** If you don't want to use the default time format on the tooltip use this prop to supply a custom text */\n tooltip?: React.ReactNode\n /** When hovering over time it expands to short absolute version. */\n expandOnHover?: boolean\n /** When hovering over time it expands to the full absolute version. */\n expandFullyOnHover?: boolean\n}\n\ntype State = {\n hovered: boolean\n mouseX?: number\n mouseY?: number\n}\n\nclass Time extends React.Component<Props, State> {\n public static displayName: string\n public static defaultProps: Props\n\n constructor(props: Props) {\n super(props)\n this.refreshInterval = undefined\n\n this.state = {\n hovered: false,\n mouseX: undefined,\n mouseY: undefined,\n }\n }\n\n componentDidMount() {\n if (this.props.refresh) {\n this._refresh()\n }\n }\n\n componentDidUpdate(prevProps: Props) {\n if (!prevProps.refresh && this.props.refresh) {\n this._refresh()\n }\n\n if (prevProps.refresh && !this.props.refresh) {\n if (this.refreshInterval) {\n clearTimeout(this.refreshInterval)\n }\n }\n }\n\n componentWillUnmount() {\n if (this.refreshInterval) {\n clearTimeout(this.refreshInterval)\n }\n }\n\n refreshInterval?: ReturnType<typeof setTimeout>\n\n _setHovered(hovered: boolean, event: React.MouseEvent) {\n const { mouseX, mouseY } = this.state\n const { clientX, clientY } = event\n if (clientX !== mouseX || clientY !== mouseY) {\n // mouse has moved\n this.setState(() => ({\n hovered,\n mouseX: clientX,\n mouseY: clientY,\n }))\n }\n }\n\n _renderTime(config: Props['config']) {\n if (!this.props.time) {\n return\n }\n if (this.state.hovered) {\n if (this.props.expandFullyOnHover && !this.props.tooltipOnHover) {\n return TimeUtils.formatTimeLong(this.props.time, config)\n }\n if (this.props.expandOnHover && !this.props.tooltipOnHover) {\n return TimeUtils.formatTime(this.props.time, config)\n }\n }\n return TimeUtils.timeAgo(this.props.time, config)\n }\n\n _refresh() {\n this.refreshInterval = setInterval(() => {\n this.forceUpdate()\n }, DELAY)\n }\n\n render() {\n let className = 'reactist_time'\n if (this.props.className) {\n className = this.props.className\n }\n\n const timeComponent = this._renderTime(this.props.config)\n\n return (\n <time\n className={className}\n onMouseEnter={(event) => this._setHovered(true, event)}\n onMouseLeave={(event) => this._setHovered(false, event)}\n >\n {this.props.tooltipOnHover ? (\n <Tooltip\n content={\n this.props.tooltip ||\n (this.props.time &&\n TimeUtils.formatTimeLong(this.props.time, this.props.config))\n }\n >\n <span>{timeComponent}</span>\n </Tooltip>\n ) : (\n timeComponent\n )}\n </time>\n )\n }\n}\nTime.displayName = 'Time'\n\nTime.defaultProps = {\n expandOnHover: false,\n expandFullyOnHover: false,\n tooltipOnHover: false,\n refresh: true,\n config: {\n locale: 'en',\n daysSuffix: 'd',\n hoursSuffix: 'h',\n minutesSuffix: 'm',\n momentsAgo: 'moments ago',\n },\n}\n\nexport { Time }\n"],"names":["DELAY","Time","React","Component","constructor","props","refreshInterval","undefined","state","hovered","mouseX","mouseY","componentDidMount","refresh","_refresh","componentDidUpdate","prevProps","clearTimeout","componentWillUnmount","_setHovered","event","clientX","clientY","setState","_renderTime","config","time","expandFullyOnHover","tooltipOnHover","TimeUtils","formatTimeLong","expandOnHover","formatTime","timeAgo","setInterval","forceUpdate","render","className","timeComponent","createElement","onMouseEnter","onMouseLeave","Tooltip","content","tooltip","displayName","def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AE,GAAG;AACfC,IAAAA,WAAW,EAAE,GAAG;AAChBC,IAAAA,aAAa,EAAE,GAAG;AAClBC,IAAAA,UAAU,EAAE,aAAA;AAChB,GAAA;AACJ,CAAC;;;;"}
|
package/es/divider/divider.js
CHANGED
|
@@ -1,12 +1,51 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import { c } from 'react-compiler-runtime';
|
|
2
4
|
import * as React from 'react';
|
|
3
|
-
import { Box } from '../box/box.js';
|
|
4
5
|
import { getClassNames } from '../utils/responsive-props.js';
|
|
5
6
|
import modules_c742c4d7 from './divider.module.css.js';
|
|
7
|
+
import { Box } from '../box/box.js';
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
const _excluded = ["weight"];
|
|
10
|
+
function Divider(t0) {
|
|
11
|
+
const $ = c(8);
|
|
12
|
+
let props;
|
|
13
|
+
let t1;
|
|
14
|
+
if ($[0] !== t0) {
|
|
15
|
+
var _t = t0;
|
|
16
|
+
({
|
|
17
|
+
weight: t1
|
|
18
|
+
} = _t);
|
|
19
|
+
props = _objectWithoutProperties(_t, _excluded);
|
|
20
|
+
$[0] = t0;
|
|
21
|
+
$[1] = props;
|
|
22
|
+
$[2] = t1;
|
|
23
|
+
} else {
|
|
24
|
+
props = $[1];
|
|
25
|
+
t1 = $[2];
|
|
26
|
+
}
|
|
27
|
+
const weight = t1 === undefined ? "tertiary" : t1;
|
|
28
|
+
let t2;
|
|
29
|
+
if ($[3] !== weight) {
|
|
30
|
+
t2 = getClassNames(modules_c742c4d7, "weight", weight);
|
|
31
|
+
$[3] = weight;
|
|
32
|
+
$[4] = t2;
|
|
33
|
+
} else {
|
|
34
|
+
t2 = $[4];
|
|
35
|
+
}
|
|
36
|
+
let t3;
|
|
37
|
+
if ($[5] !== props || $[6] !== t2) {
|
|
38
|
+
t3 = /*#__PURE__*/React.createElement(Box, _extends({
|
|
39
|
+
as: "hr",
|
|
40
|
+
className: t2
|
|
41
|
+
}, props));
|
|
42
|
+
$[5] = props;
|
|
43
|
+
$[6] = t2;
|
|
44
|
+
$[7] = t3;
|
|
45
|
+
} else {
|
|
46
|
+
t3 = $[7];
|
|
47
|
+
}
|
|
48
|
+
return t3;
|
|
10
49
|
}
|
|
11
50
|
|
|
12
51
|
export { Divider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.js","sources":["../../src/divider/divider.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"divider.js","sources":["../../src/divider/divider.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Box } from '../box'\nimport { getClassNames } from '../utils/responsive-props'\n\nimport styles from './divider.module.css'\n\nimport type { DividerWeight } from '../utils/common-types'\n\ninterface DividerProps {\n weight?: Exclude<DividerWeight, 'none'>\n}\n\nfunction Divider({ weight = 'tertiary', ...props }: DividerProps) {\n return <Box as=\"hr\" className={getClassNames(styles, 'weight', weight)} {...props} />\n}\n\nexport type { DividerProps, DividerWeight }\nexport { Divider }\n"],"names":["Divider","t0","$","_c","props","t1","_t","weight","_objectWithoutProperties","_excluded","undefined","t2","getClassNames","styles","t3","React","createElement","Box","_extends","as","className"],"mappings":";;;;;;;;;AAaA,SAAAA,QAAAC,EAAA,EAAA;EAAA,MAAAC,CAAA,GAAAC,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,EAAA,IAAAC,KAAA,CAAA;AAAA,EAAA,IAAAC,EAAA,CAAA;EAAA,IAAAH,CAAA,QAAAD,EAAA,EAAA;IAAA,IAAAK,EAAA,GAAiBL,EAA+C,CAAA;AAAA,IAAA,CAAA;AAAAM,MAAAA,MAAA,EAAAF,EAAAA;AAAA,KAAA,GAAAC,EAAA,EAAA;AAAAF,IAAAA,KAAA,GAAAI,wBAAA,CAAAF,EAAA,EAAAG,SAAA,CAAA,CAAA;AAAAP,IAAAA,CAA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.js
CHANGED
|
@@ -1,27 +1,129 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import { c } from 'react-compiler-runtime';
|
|
2
4
|
import * as React from 'react';
|
|
3
|
-
import { Box } from '../box/box.js';
|
|
4
5
|
import { getClassNames } from '../utils/responsive-props.js';
|
|
5
6
|
import modules_949d2ff4 from './heading.module.css.js';
|
|
7
|
+
import { Box } from '../box/box.js';
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
9
|
+
const _excluded = ["level", "weight", "size", "tone", "children", "lineClamp", "align", "exceptionallySetClassName"];
|
|
10
|
+
const Heading = /*#__PURE__*/React.forwardRef(function Heading(t0, ref) {
|
|
11
|
+
const $ = c(33);
|
|
12
|
+
let align;
|
|
13
|
+
let children;
|
|
14
|
+
let exceptionallySetClassName;
|
|
15
|
+
let level;
|
|
16
|
+
let lineClamp;
|
|
17
|
+
let props;
|
|
18
|
+
let size;
|
|
19
|
+
let t1;
|
|
20
|
+
let t2;
|
|
21
|
+
if ($[0] !== t0) {
|
|
22
|
+
var _t = t0;
|
|
23
|
+
({
|
|
24
|
+
level,
|
|
25
|
+
weight: t1,
|
|
26
|
+
size,
|
|
27
|
+
tone: t2,
|
|
28
|
+
children,
|
|
29
|
+
lineClamp,
|
|
30
|
+
align,
|
|
31
|
+
exceptionallySetClassName
|
|
32
|
+
} = _t);
|
|
33
|
+
props = _objectWithoutProperties(_t, _excluded);
|
|
34
|
+
$[0] = t0;
|
|
35
|
+
$[1] = align;
|
|
36
|
+
$[2] = children;
|
|
37
|
+
$[3] = exceptionallySetClassName;
|
|
38
|
+
$[4] = level;
|
|
39
|
+
$[5] = lineClamp;
|
|
40
|
+
$[6] = props;
|
|
41
|
+
$[7] = size;
|
|
42
|
+
$[8] = t1;
|
|
43
|
+
$[9] = t2;
|
|
44
|
+
} else {
|
|
45
|
+
align = $[1];
|
|
46
|
+
children = $[2];
|
|
47
|
+
exceptionallySetClassName = $[3];
|
|
48
|
+
level = $[4];
|
|
49
|
+
lineClamp = $[5];
|
|
50
|
+
props = $[6];
|
|
51
|
+
size = $[7];
|
|
52
|
+
t1 = $[8];
|
|
53
|
+
t2 = $[9];
|
|
54
|
+
}
|
|
55
|
+
const weight = t1 === undefined ? "regular" : t1;
|
|
56
|
+
const tone = t2 === undefined ? "normal" : t2;
|
|
57
|
+
const headingElementName = `h${level}`;
|
|
58
|
+
const lineClampMultipleLines = typeof lineClamp === "string" ? parseInt(lineClamp, 10) > 1 : (lineClamp || 0) > 1;
|
|
59
|
+
let t3;
|
|
60
|
+
if ($[10] !== weight) {
|
|
61
|
+
t3 = weight !== "regular" ? getClassNames(modules_949d2ff4, "weight", weight) : null;
|
|
62
|
+
$[10] = weight;
|
|
63
|
+
$[11] = t3;
|
|
64
|
+
} else {
|
|
65
|
+
t3 = $[11];
|
|
66
|
+
}
|
|
67
|
+
let t4;
|
|
68
|
+
if ($[12] !== tone) {
|
|
69
|
+
t4 = tone !== "normal" ? getClassNames(modules_949d2ff4, "tone", tone) : null;
|
|
70
|
+
$[12] = tone;
|
|
71
|
+
$[13] = t4;
|
|
72
|
+
} else {
|
|
73
|
+
t4 = $[13];
|
|
74
|
+
}
|
|
75
|
+
let t5;
|
|
76
|
+
if ($[14] !== size) {
|
|
77
|
+
t5 = getClassNames(modules_949d2ff4, "size", size);
|
|
78
|
+
$[14] = size;
|
|
79
|
+
$[15] = t5;
|
|
80
|
+
} else {
|
|
81
|
+
t5 = $[15];
|
|
82
|
+
}
|
|
83
|
+
const t6 = lineClampMultipleLines ? modules_949d2ff4.lineClampMultipleLines : null;
|
|
84
|
+
let t7;
|
|
85
|
+
if ($[16] !== lineClamp) {
|
|
86
|
+
t7 = lineClamp ? getClassNames(modules_949d2ff4, "lineClamp", lineClamp.toString()) : null;
|
|
87
|
+
$[16] = lineClamp;
|
|
88
|
+
$[17] = t7;
|
|
89
|
+
} else {
|
|
90
|
+
t7 = $[17];
|
|
91
|
+
}
|
|
92
|
+
let t8;
|
|
93
|
+
if ($[18] !== exceptionallySetClassName || $[19] !== t3 || $[20] !== t4 || $[21] !== t5 || $[22] !== t6 || $[23] !== t7) {
|
|
94
|
+
t8 = [exceptionallySetClassName, modules_949d2ff4.heading, t3, t4, t5, t6, t7];
|
|
95
|
+
$[18] = exceptionallySetClassName;
|
|
96
|
+
$[19] = t3;
|
|
97
|
+
$[20] = t4;
|
|
98
|
+
$[21] = t5;
|
|
99
|
+
$[22] = t6;
|
|
100
|
+
$[23] = t7;
|
|
101
|
+
$[24] = t8;
|
|
102
|
+
} else {
|
|
103
|
+
t8 = $[24];
|
|
104
|
+
}
|
|
105
|
+
const t9 = lineClamp ? "xsmall" : undefined;
|
|
106
|
+
let t10;
|
|
107
|
+
if ($[25] !== align || $[26] !== children || $[27] !== headingElementName || $[28] !== props || $[29] !== ref || $[30] !== t8 || $[31] !== t9) {
|
|
108
|
+
t10 = /*#__PURE__*/React.createElement(Box, _extends({}, props, {
|
|
109
|
+
className: t8,
|
|
110
|
+
textAlign: align,
|
|
111
|
+
paddingRight: t9,
|
|
112
|
+
as: headingElementName,
|
|
113
|
+
ref: ref
|
|
114
|
+
}), children);
|
|
115
|
+
$[25] = align;
|
|
116
|
+
$[26] = children;
|
|
117
|
+
$[27] = headingElementName;
|
|
118
|
+
$[28] = props;
|
|
119
|
+
$[29] = ref;
|
|
120
|
+
$[30] = t8;
|
|
121
|
+
$[31] = t9;
|
|
122
|
+
$[32] = t10;
|
|
123
|
+
} else {
|
|
124
|
+
t10 = $[32];
|
|
125
|
+
}
|
|
126
|
+
return t10;
|
|
25
127
|
});
|
|
26
128
|
|
|
27
129
|
export { Heading };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heading.js","sources":["../../src/heading/heading.tsx"],"sourcesContent":[null],"names":["styles"],"mappings":"
|
|
1
|
+
{"version":3,"file":"heading.js","sources":["../../src/heading/heading.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Box } from '../box'\nimport { getClassNames } from '../utils/responsive-props'\n\nimport styles from './heading.module.css'\n\nimport type { BoxProps } from '../box'\nimport type { ObfuscatedClassName, Tone } from '../utils/common-types'\n\ntype HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6 | '1' | '2' | '3' | '4' | '5' | '6'\ntype HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\ntype HeadingProps = Omit<React.HTMLAttributes<HTMLHeadingElement>, 'className' | 'children'> & {\n children: React.ReactNode\n /**\n * The semantic level of the heading.\n */\n level: HeadingLevel\n\n /**\n * The weight of the heading. Used to de-emphasize the heading visually when using 'medium' or 'light'.\n *\n * @default 'regular'\n */\n weight?: 'regular' | 'medium' | 'light'\n\n /**\n * Shifts the default heading visual text size up or down, depending on the original size\n * imposed by the `level`. The heading continues to be semantically at the given level.\n *\n * By default, no value is applied, and the default size from the level is applied. The values\n * have the following effect:\n *\n * - 'smaller' shifts the default level size down in the font-size scale (it tends to make the\n * level look visually as if it were of the immediately lower level).\n * - 'larger' has the opposite effect than 'smaller' shifting the visual font size up in the\n * scale.\n * - 'largest' can be thought of as applying 'larger' twice.\n *\n * @see level\n * @default undefined\n */\n size?: 'smaller' | 'larger' | 'largest'\n\n /**\n * The tone (semantic color) of the heading.\n *\n * @default 'normal'\n */\n tone?: Tone\n\n /**\n * Used to truncate the heading to a given number of lines.\n *\n * It will add an ellipsis (`…`) to the text at the end of the last line, only if the text was\n * truncated. If the text fits without it being truncated, no ellipsis is added.\n *\n * By default, the text is not truncated at all, no matter how many lines it takes to render it.\n *\n * @default undefined\n */\n lineClamp?: 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5'\n\n /**\n * How to align the heading text horizontally.\n *\n * @default 'start'\n */\n align?: BoxProps['textAlign']\n}\n\nconst Heading = React.forwardRef<HTMLHeadingElement, HeadingProps & ObfuscatedClassName>(\n function Heading(\n {\n level,\n weight = 'regular',\n size,\n tone = 'normal',\n children,\n lineClamp,\n align,\n exceptionallySetClassName,\n ...props\n },\n ref,\n ) {\n // In TypeScript v4.1, this would be properly recognized without needing the type assertion\n // https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/#template-literal-types\n const headingElementName = `h${level}` as HeadingElement\n const lineClampMultipleLines =\n typeof lineClamp === 'string' ? parseInt(lineClamp, 10) > 1 : (lineClamp || 0) > 1\n\n return (\n <Box\n {...props}\n className={[\n exceptionallySetClassName,\n styles.heading,\n weight !== 'regular' ? getClassNames(styles, 'weight', weight) : null,\n tone !== 'normal' ? getClassNames(styles, 'tone', tone) : null,\n getClassNames(styles, 'size', size),\n lineClampMultipleLines ? styles.lineClampMultipleLines : null,\n lineClamp ? getClassNames(styles, 'lineClamp', lineClamp.toString()) : null,\n ]}\n textAlign={align}\n // Prevents emojis from being cut-off\n // See https://github.com/Doist/reactist/pull/528\n paddingRight={lineClamp ? 'xsmall' : undefined}\n as={headingElementName}\n ref={ref}\n >\n {children}\n </Box>\n )\n },\n)\n\nexport type { HeadingLevel, HeadingProps }\nexport { Heading }\n"],"names":["Heading","React","forwardRef","t0","ref","$","_c","align","children","exceptionallySetClassName","level","lineClamp","props","size","t1","t2","_t","weight","tone","_objectWithoutProperties","_excluded","undefined","headingElementName","lineClampMultipleLines","parseInt","t3","getClassNames","styles","t4","t5","t6","t7","toString","t8","heading","t9","t10","createElement","Box","_extends","className","paddingRight"],"mappings":";;;;;;;;;AAwEMA,MAAAA,OAAO,gBAAGC,KAAK,CAACC,UAAU,CAC5B,SAAAF,OAAAA,CAAAG,EAAA,EAAAC,GAAA,EAAA;EAAA,MAAAC,CAAA,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AAA;AACE4B,MAAAA,SAQV,EARUP,EAQV;AACU1B,MAAAA,SAAK,EAALA,KAAK;AAGFkC,MAAAA,YAAgC,EAAhCN,EAAgC;AAC1Cb,MAAAA,EAAkB,EAAlBA,kBAAkB;AACjBlB,MAAAA,GAAG,EAAHA,GAAAA;AAAG,KAAA,CAAA,EAEPI,QACA,CAAC,CAAA;AAAAH,IAAAA,CAAA,OAAAE,KAAA,CAAA;AAAAF,IAAAA,CAAA,OAAAG,QAAA,CAAA;AAAAH,IAAAA,CAAA,OAAAiB,kBAAA,CAAA;AAAAjB,IAAAA,CAAA,OAAAO,KAAA,CAAA;AAAAP,IAAAA,CAAA,OAAAD,GAAA,CAAA;AAAAC,IAAAA,CAAA,OAAA4B,EAAA,CAAA;AAAA5B,IAAAA,CAAA,OAAA8B,EAAA,CAAA;AAAA9B,IAAAA,CAAA,OAAA+B,GAAA,CAAA;AAAA,GAAA,MAAA;AAAAA,IAAAA,GAAA,GAAA/B,CAAA,CAAA,EAAA,CAAA,CAAA;AAAA,GAAA;AAAA,EAAA,OAnBN+B,GAmBM,CAAA;AAAA,CAGlB;;;;"}
|
package/es/hidden/hidden.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
2
3
|
import * as React from 'react';
|
|
3
|
-
import { Box } from '../box/box.js';
|
|
4
4
|
import { polymorphicComponent } from '../utils/polymorphism.js';
|
|
5
5
|
import modules_4689e97e from './hidden.module.css.js';
|
|
6
|
+
import { Box } from '../box/box.js';
|
|
6
7
|
|
|
8
|
+
const _excluded = ["display", "children", "exceptionallySetClassName"];
|
|
7
9
|
/**
|
|
8
10
|
* A component that allows to specify how to hide itself on certain responsive screen sizes, or on
|
|
9
11
|
* print media.
|
|
@@ -12,35 +14,39 @@ import modules_4689e97e from './hidden.module.css.js';
|
|
|
12
14
|
* @see HiddenVisually for hiding content only visually, while keeping it available for assistive
|
|
13
15
|
* technologies.
|
|
14
16
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
const Hidden = polymorphicComponent(function Hidden(_ref, ref) {
|
|
18
|
+
let {
|
|
19
|
+
display = 'block',
|
|
20
|
+
children,
|
|
21
|
+
exceptionallySetClassName
|
|
22
|
+
} = _ref,
|
|
23
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
|
+
const hiddenOnPrint = 'print' in props && props.print;
|
|
25
|
+
const hiddenOnDesktop = 'above' in props;
|
|
26
|
+
const hiddenOnMobile = 'below' in props;
|
|
27
|
+
const hiddenOnTablet = 'below' in props && props.below === 'desktop' || 'above' in props && props.above === 'mobile';
|
|
28
|
+
if (hiddenOnDesktop && hiddenOnMobile) {
|
|
29
|
+
// eslint-disable-next-line no-console
|
|
30
|
+
console.warn('<Hidden /> should receive either above="…" or below="…" but not both');
|
|
31
|
+
}
|
|
32
|
+
if (!hiddenOnDesktop && !hiddenOnMobile && !hiddenOnPrint) {
|
|
33
|
+
// eslint-disable-next-line no-console
|
|
34
|
+
console.warn('<Hidden /> did not receive any criteria to hide itself');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// We need to delete these so they do not get forwarded to the Box
|
|
38
|
+
if ('above' in props) delete props['above'];
|
|
39
|
+
if ('below' in props) delete props['below'];
|
|
40
|
+
if ('print' in props) delete props['print'];
|
|
41
|
+
return /*#__PURE__*/React.createElement(Box, _extends({}, props, {
|
|
42
|
+
ref: ref,
|
|
43
|
+
className: [exceptionallySetClassName, hiddenOnPrint ? modules_4689e97e.hiddenOnPrint : null],
|
|
44
|
+
display: hiddenOnDesktop && hiddenOnMobile ? 'none' : {
|
|
45
|
+
mobile: hiddenOnMobile ? 'none' : display,
|
|
46
|
+
tablet: hiddenOnTablet ? 'none' : display,
|
|
47
|
+
desktop: hiddenOnDesktop ? 'none' : display
|
|
29
48
|
}
|
|
30
|
-
|
|
31
|
-
if ('above' in props)
|
|
32
|
-
delete props['above'];
|
|
33
|
-
if ('below' in props)
|
|
34
|
-
delete props['below'];
|
|
35
|
-
if ('print' in props)
|
|
36
|
-
delete props['print'];
|
|
37
|
-
return (React.createElement(Box, __assign({}, props, { ref: ref, className: [exceptionallySetClassName, hiddenOnPrint ? modules_4689e97e.hiddenOnPrint : null], display: hiddenOnDesktop && hiddenOnMobile
|
|
38
|
-
? 'none'
|
|
39
|
-
: {
|
|
40
|
-
mobile: hiddenOnMobile ? 'none' : display,
|
|
41
|
-
tablet: hiddenOnTablet ? 'none' : display,
|
|
42
|
-
desktop: hiddenOnDesktop ? 'none' : display,
|
|
43
|
-
} }), children));
|
|
49
|
+
}), children);
|
|
44
50
|
});
|
|
45
51
|
|
|
46
52
|
export { Hidden };
|
package/es/hidden/hidden.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hidden.js","sources":["../../src/hidden/hidden.tsx"],"sourcesContent":[null],"names":["styles"],"mappings":"
|
|
1
|
+
{"version":3,"file":"hidden.js","sources":["../../src/hidden/hidden.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Box } from '../box'\nimport { polymorphicComponent } from '../utils/polymorphism'\n\nimport styles from './hidden.module.css'\n\nimport type { ResponsiveBreakpoints } from '../utils/responsive-props'\n\ntype AboveProp = {\n /**\n * Hides the element on viewport sizes equal or larger to the one given.\n *\n * It is not supported to pass it alongside `below`, and the resulting behavior is undefined\n * (most likely itʼll hide the element all the time to make it apparent that there's a problem).\n *\n * @see below\n */\n above: Exclude<ResponsiveBreakpoints, 'desktop'>\n below?: never\n}\n\ntype BelowProp = {\n /**\n * Hides the element on viewport sizes equal or smaller to the one given.\n *\n * It is not supported to pass it alongside `above`, and the resulting behavior is undefined\n * (most likely itʼll hide the element all the time to make it apparent that there's a problem).\n *\n * @see above\n */\n below: Exclude<ResponsiveBreakpoints, 'mobile'>\n above?: never\n}\n\ntype CommonProps = {\n children: React.ReactNode\n /**\n * hides the element when on print media.\n */\n print?: boolean\n /**\n * Useful if you want the element to be an inline element when it is visible.\n */\n display?: 'inline' | 'block'\n}\n\ntype HiddenProps = CommonProps & (AboveProp | BelowProp | Required<Pick<CommonProps, 'print'>>)\n\n/**\n * A component that allows to specify how to hide itself on certain responsive screen sizes, or on\n * print media.\n *\n * @see HiddenProps\n * @see HiddenVisually for hiding content only visually, while keeping it available for assistive\n * technologies.\n */\nconst Hidden = polymorphicComponent<'div', HiddenProps>(function Hidden(\n { display = 'block', children, exceptionallySetClassName, ...props },\n ref,\n) {\n const hiddenOnPrint = 'print' in props && props.print\n\n const hiddenOnDesktop = 'above' in props\n const hiddenOnMobile = 'below' in props\n const hiddenOnTablet =\n ('below' in props && props.below === 'desktop') ||\n ('above' in props && props.above === 'mobile')\n\n if (hiddenOnDesktop && hiddenOnMobile) {\n // eslint-disable-next-line no-console\n console.warn('<Hidden /> should receive either above=\"…\" or below=\"…\" but not both')\n }\n\n if (!hiddenOnDesktop && !hiddenOnMobile && !hiddenOnPrint) {\n // eslint-disable-next-line no-console\n console.warn('<Hidden /> did not receive any criteria to hide itself')\n }\n\n // We need to delete these so they do not get forwarded to the Box\n if ('above' in props) delete props['above']\n if ('below' in props) delete props['below']\n if ('print' in props) delete props['print']\n\n return (\n <Box\n {...props}\n ref={ref}\n className={[exceptionallySetClassName, hiddenOnPrint ? styles.hiddenOnPrint : null]}\n display={\n hiddenOnDesktop && hiddenOnMobile\n ? 'none'\n : {\n mobile: hiddenOnMobile ? 'none' : display,\n tablet: hiddenOnTablet ? 'none' : display,\n desktop: hiddenOnDesktop ? 'none' : display,\n }\n }\n >\n {children}\n </Box>\n )\n})\n\nexport { Hidden }\nexport type { HiddenProps }\n"],"names":["Hidden","polymorphicComponent","_ref","ref","display","children","exceptionallySetClassName","props","_objectWithoutProperties","_excluded","hiddenOnPrint","print","hiddenOnDesktop","hiddenOnMobile","hiddenOnTablet","below","above","console","warn","React","createElement","Box","_extends","className","styles","mobile","tablet","desktop"],"mappings":";;;;;;;;AAiDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACMA,MAAAA,MAAM,GAAGC,oBAAoB,CAAqB,SAASD,MAAMA,CAAAE,IAAA,EAEnEC,GAAG,EACL;EAAA,IAFE;AAAEC,MAAAA,OAAO,GAAG,OAAO;MAAEC,QAAQ;AAAEC,MAAAA,yBAAAA;AAAoC,KAAC,GAAAJ,IAAA;AAAPK,IAAAA,KAAK,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,SAAA,CAAA,CAAA;EAGlE,MAAMC,aAAa,GAAG,OAAO,IAAIH,KAAK,IAAIA,KAAK,CAACI,KAAK,CAAA;AAErD,EAAA,MAAMC,eAAe,GAAG,OAAO,IAAIL,KAAK,CAAA;AACxC,EAAA,MAAMM,cAAc,GAAG,OAAO,IAAIN,KAAK,CAAA;EACvC,MAAMO,cAAc,GACf,OAAO,IAAIP,KAAK,IAAIA,KAAK,CAACQ,KAAK,KAAK,SAAS,IAC7C,OAAO,IAAIR,KAAK,IAAIA,KAAK,CAACS,KAAK,KAAK,QAAS,CAAA;EAElD,IAAIJ,eAAe,IAAIC,cAAc,EAAE;AACnC;AACAI,IAAAA,OAAO,CAACC,IAAI,CAAC,sEAAsE,CAAC,CAAA;AACxF,GAAA;EAEA,IAAI,CAACN,eAAe,IAAI,CAACC,cAAc,IAAI,CAACH,aAAa,EAAE;AACvD;AACAO,IAAAA,OAAO,CAACC,IAAI,CAAC,wDAAwD,CAAC,CAAA;AAC1E,GAAA;;AAEA;EACA,IAAI,OAAO,IAAIX,KAAK,EAAE,OAAOA,KAAK,CAAC,OAAO,CAAC,CAAA;EAC3C,IAAI,OAAO,IAAIA,KAAK,EAAE,OAAOA,KAAK,CAAC,OAAO,CAAC,CAAA;EAC3C,IAAI,OAAO,IAAIA,KAAK,EAAE,OAAOA,KAAK,CAAC,OAAO,CAAC,CAAA;EAE3C,oBACIY,KAAA,CAAAC,aAAA,CAACC,GAAG,EAAAC,QAAA,KACIf,KAAK,EAAA;AACTJ,IAAAA,GAAG,EAAEA,GAAI;IACToB,SAAS,EAAE,CAACjB,yBAAyB,EAAEI,aAAa,GAAGc,gBAAM,CAACd,aAAa,GAAG,IAAI,CAAE;AACpFN,IAAAA,OAAO,EACHQ,eAAe,IAAIC,cAAc,GAC3B,MAAM,GACN;AACIY,MAAAA,MAAM,EAAEZ,cAAc,GAAG,MAAM,GAAGT,OAAO;AACzCsB,MAAAA,MAAM,EAAEZ,cAAc,GAAG,MAAM,GAAGV,OAAO;AACzCuB,MAAAA,OAAO,EAAEf,eAAe,GAAG,MAAM,GAAGR,OAAAA;AACxC,KAAA;AACT,GAAA,CAAA,EAEAC,QACA,CAAC,CAAA;AAEd,CAAC;;;;"}
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Box } from '../box/box.js';
|
|
4
3
|
import { polymorphicComponent } from '../utils/polymorphism.js';
|
|
5
4
|
import modules_61c16c43 from './hidden-visually.module.css.js';
|
|
5
|
+
import { Box } from '../box/box.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Provides content to assistive technologies while hiding it from the screen.
|
|
9
9
|
*
|
|
10
10
|
* @see Hidden for fully hiding content, and only under certain conditions.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
const HiddenVisually = polymorphicComponent(function HiddenVisually(props, ref) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Box, _extends({}, props, {
|
|
14
|
+
ref: ref,
|
|
15
|
+
position: "absolute",
|
|
16
|
+
overflow: "hidden",
|
|
17
|
+
className: modules_61c16c43.hiddenVisually
|
|
18
|
+
}));
|
|
14
19
|
});
|
|
15
20
|
|
|
16
21
|
export { HiddenVisually };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hidden-visually.js","sources":["../../src/hidden-visually/hidden-visually.tsx"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"hidden-visually.js","sources":["../../src/hidden-visually/hidden-visually.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { Box } from '../box'\nimport { polymorphicComponent } from '../utils/polymorphism'\n\nimport styles from './hidden-visually.module.css'\n\ntype Props = {\n children: React.ReactNode\n}\n\n/**\n * Provides content to assistive technologies while hiding it from the screen.\n *\n * @see Hidden for fully hiding content, and only under certain conditions.\n */\nconst HiddenVisually = polymorphicComponent<'div', Props, 'omitClassName'>(\n function HiddenVisually(props, ref) {\n return (\n <Box\n {...props}\n ref={ref}\n position=\"absolute\"\n overflow=\"hidden\"\n className={styles.hiddenVisually}\n />\n )\n },\n)\n\nexport { HiddenVisually }\n"],"names":["HiddenVisually","polymorphicComponent","props","ref","React","createElement","Box","_extends","position","overflow","className","styles","hiddenVisually"],"mappings":";;;;;;AAWA;AACA;AACA;AACA;AACA;AACMA,MAAAA,cAAc,GAAGC,oBAAoB,CACvC,SAASD,cAAcA,CAACE,KAAK,EAAEC,GAAG,EAAE;EAChC,oBACIC,KAAA,CAAAC,aAAA,CAACC,GAAG,EAAAC,QAAA,KACIL,KAAK,EAAA;AACTC,IAAAA,GAAG,EAAEA,GAAI;AACTK,IAAAA,QAAQ,EAAC,UAAU;AACnBC,IAAAA,QAAQ,EAAC,QAAQ;IACjBC,SAAS,EAAEC,gBAAM,CAACC,cAAAA;AAAe,GAAA,CACpC,CAAC,CAAA;AAEV,CACJ;;;;"}
|
package/es/icons/alert-icon.js
CHANGED
|
@@ -1,32 +1,159 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _extends from '@babel/runtime/helpers/extends';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import { c } from 'react-compiler-runtime';
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const _excluded = ["tone"];
|
|
7
|
+
const alertIconForTone = {
|
|
8
|
+
info: AlertInfoIcon,
|
|
9
|
+
positive: AlertPositiveIcon,
|
|
10
|
+
caution: AlertCautionIcon,
|
|
11
|
+
critical: AlertCriticalIcon
|
|
9
12
|
};
|
|
10
|
-
function AlertIcon(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
function AlertIcon(t0) {
|
|
14
|
+
const $ = c(6);
|
|
15
|
+
let props;
|
|
16
|
+
let tone;
|
|
17
|
+
if ($[0] !== t0) {
|
|
18
|
+
var _t = t0;
|
|
19
|
+
({
|
|
20
|
+
tone
|
|
21
|
+
} = _t);
|
|
22
|
+
props = _objectWithoutProperties(_t, _excluded);
|
|
23
|
+
$[0] = t0;
|
|
24
|
+
$[1] = props;
|
|
25
|
+
$[2] = tone;
|
|
26
|
+
} else {
|
|
27
|
+
props = $[1];
|
|
28
|
+
tone = $[2];
|
|
29
|
+
}
|
|
30
|
+
const Icon = alertIconForTone[tone];
|
|
31
|
+
let t1;
|
|
32
|
+
if ($[3] !== Icon || $[4] !== props) {
|
|
33
|
+
t1 = Icon ? /*#__PURE__*/React.createElement(Icon, props) : null;
|
|
34
|
+
$[3] = Icon;
|
|
35
|
+
$[4] = props;
|
|
36
|
+
$[5] = t1;
|
|
37
|
+
} else {
|
|
38
|
+
t1 = $[5];
|
|
39
|
+
}
|
|
40
|
+
return t1;
|
|
14
41
|
}
|
|
15
42
|
function AlertInfoIcon(props) {
|
|
16
|
-
|
|
17
|
-
|
|
43
|
+
const $ = c(3);
|
|
44
|
+
let t0;
|
|
45
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
46
|
+
t0 = /*#__PURE__*/React.createElement("path", {
|
|
47
|
+
fillRule: "evenodd",
|
|
48
|
+
clipRule: "evenodd",
|
|
49
|
+
d: "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-8-3.94a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM10.25 10a.75.75 0 0 0 0 1.5h1.25V15h-1.25a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5H13v-4.25a.75.75 0 0 0-.75-.75h-2Z",
|
|
50
|
+
fill: "currentColor"
|
|
51
|
+
});
|
|
52
|
+
$[0] = t0;
|
|
53
|
+
} else {
|
|
54
|
+
t0 = $[0];
|
|
55
|
+
}
|
|
56
|
+
let t1;
|
|
57
|
+
if ($[1] !== props) {
|
|
58
|
+
t1 = /*#__PURE__*/React.createElement("svg", _extends({
|
|
59
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
60
|
+
width: "24",
|
|
61
|
+
height: "24",
|
|
62
|
+
viewBox: "0 0 24 24"
|
|
63
|
+
}, props), t0);
|
|
64
|
+
$[1] = props;
|
|
65
|
+
$[2] = t1;
|
|
66
|
+
} else {
|
|
67
|
+
t1 = $[2];
|
|
68
|
+
}
|
|
69
|
+
return t1;
|
|
18
70
|
}
|
|
19
71
|
function AlertPositiveIcon(props) {
|
|
20
|
-
|
|
21
|
-
|
|
72
|
+
const $ = c(3);
|
|
73
|
+
let t0;
|
|
74
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
75
|
+
t0 = /*#__PURE__*/React.createElement("path", {
|
|
76
|
+
fillRule: "evenodd",
|
|
77
|
+
clipRule: "evenodd",
|
|
78
|
+
d: "M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-5.555-2.99a.75.75 0 0 1 1.06 1.06l-5.303 5.304a.748.748 0 0 1-1.061 0l-2.475-2.475a.75.75 0 0 1 1.06-1.06l1.945 1.944 4.774-4.773Z",
|
|
79
|
+
fill: "currentColor"
|
|
80
|
+
});
|
|
81
|
+
$[0] = t0;
|
|
82
|
+
} else {
|
|
83
|
+
t0 = $[0];
|
|
84
|
+
}
|
|
85
|
+
let t1;
|
|
86
|
+
if ($[1] !== props) {
|
|
87
|
+
t1 = /*#__PURE__*/React.createElement("svg", _extends({
|
|
88
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
89
|
+
width: "24",
|
|
90
|
+
height: "24",
|
|
91
|
+
viewBox: "0 0 24 24"
|
|
92
|
+
}, props), t0);
|
|
93
|
+
$[1] = props;
|
|
94
|
+
$[2] = t1;
|
|
95
|
+
} else {
|
|
96
|
+
t1 = $[2];
|
|
97
|
+
}
|
|
98
|
+
return t1;
|
|
22
99
|
}
|
|
23
100
|
function AlertCautionIcon(props) {
|
|
24
|
-
|
|
25
|
-
|
|
101
|
+
const $ = c(3);
|
|
102
|
+
let t0;
|
|
103
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
104
|
+
t0 = /*#__PURE__*/React.createElement("path", {
|
|
105
|
+
fillRule: "evenodd",
|
|
106
|
+
clipRule: "evenodd",
|
|
107
|
+
d: "m10.272 4.962-7.018 12.03A2 2 0 0 0 4.982 20h14.036a2 2 0 0 0 1.727-3.008l-7.018-12.03a2 2 0 0 0-3.455 0ZM13 16.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.014-7.013A.987.987 0 0 0 12 8.5h-.028l-.027.002a.987.987 0 0 0-.93 1.04l.236 4.25c.052.944 1.445.944 1.498 0l.236-4.25a1.925 1.925 0 0 0 .001-.055Z",
|
|
108
|
+
fill: "currentColor"
|
|
109
|
+
});
|
|
110
|
+
$[0] = t0;
|
|
111
|
+
} else {
|
|
112
|
+
t0 = $[0];
|
|
113
|
+
}
|
|
114
|
+
let t1;
|
|
115
|
+
if ($[1] !== props) {
|
|
116
|
+
t1 = /*#__PURE__*/React.createElement("svg", _extends({
|
|
117
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
118
|
+
width: "24",
|
|
119
|
+
height: "24",
|
|
120
|
+
viewBox: "0 0 24 24"
|
|
121
|
+
}, props), t0);
|
|
122
|
+
$[1] = props;
|
|
123
|
+
$[2] = t1;
|
|
124
|
+
} else {
|
|
125
|
+
t1 = $[2];
|
|
126
|
+
}
|
|
127
|
+
return t1;
|
|
26
128
|
}
|
|
27
129
|
function AlertCriticalIcon(props) {
|
|
28
|
-
|
|
29
|
-
|
|
130
|
+
const $ = c(3);
|
|
131
|
+
let t0;
|
|
132
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
133
|
+
t0 = /*#__PURE__*/React.createElement("path", {
|
|
134
|
+
fillRule: "evenodd",
|
|
135
|
+
clipRule: "evenodd",
|
|
136
|
+
d: "M12.9866 2.25049C12.3729 1.91683 11.6271 1.91683 11.0134 2.25049L4.04793 6.03744C3.40122 6.38904 2.99999 7.05702 2.99999 7.78208V15.2184C2.99999 15.9435 3.40122 16.6115 4.04793 16.963L11.0134 20.75C11.6271 21.0837 12.3729 21.0837 12.9866 20.75L19.9521 16.963C20.5988 16.6114 21 15.9435 21 15.2184V7.78208C21 7.05701 20.5988 6.38904 19.9521 6.03744L12.9866 2.25049ZM12 7.00024C12.5448 7.00024 12.9865 7.44191 12.9865 7.98674C12.9864 8.00043 12.9863 8.00727 12.9861 8.01411C12.9859 8.02095 12.9856 8.02779 12.985 8.04146L12.7489 12.2918C12.6964 13.2364 11.3036 13.2364 11.2512 12.2918L11.015 8.04146C10.9848 7.49747 11.4013 7.03198 11.9453 7.00176L11.9726 7.00062L12 7.00024ZM13 15.0002C13 15.5525 12.5523 16.0002 12 16.0002C11.4477 16.0002 11 15.5525 11 15.0002C11 14.448 11.4477 14.0002 12 14.0002C12.5523 14.0002 13 14.448 13 15.0002Z",
|
|
137
|
+
fill: "currentColor"
|
|
138
|
+
});
|
|
139
|
+
$[0] = t0;
|
|
140
|
+
} else {
|
|
141
|
+
t0 = $[0];
|
|
142
|
+
}
|
|
143
|
+
let t1;
|
|
144
|
+
if ($[1] !== props) {
|
|
145
|
+
t1 = /*#__PURE__*/React.createElement("svg", _extends({
|
|
146
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
147
|
+
width: "24",
|
|
148
|
+
height: "24",
|
|
149
|
+
viewBox: "0 0 24 24"
|
|
150
|
+
}, props), t0);
|
|
151
|
+
$[1] = props;
|
|
152
|
+
$[2] = t1;
|
|
153
|
+
} else {
|
|
154
|
+
t1 = $[2];
|
|
155
|
+
}
|
|
156
|
+
return t1;
|
|
30
157
|
}
|
|
31
158
|
|
|
32
159
|
export { AlertIcon };
|