@wireapp/react-ui-kit 9.60.0 → 9.60.1
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/lib/DataDisplay/Icon/Files/PdfFileIcon.js +1 -1
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.d.ts +3 -1
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.d.ts.map +1 -1
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.js +5 -5
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.stories.d.ts +4 -1
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.stories.d.ts.map +1 -1
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.stories.js +10 -1
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.styles.d.ts +3 -0
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.styles.d.ts.map +1 -1
- package/lib/Inputs/ComboboxSelect/ComboboxSelect.styles.js +5 -2
- package/lib/Inputs/InputLabel/InputLabel.d.ts +2 -0
- package/lib/Inputs/InputLabel/InputLabel.d.ts.map +1 -1
- package/lib/Inputs/InputLabel/InputLabel.js +2 -1
- package/lib/Inputs/Select/Select.stories.d.ts +1 -1
- package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.d.ts +2 -1
- package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.d.ts.map +1 -1
- package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +2 -2
- package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.styles.d.ts +3 -1
- package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.styles.d.ts.map +1 -1
- package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.styles.js +6 -3
- package/lib/Navigation/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/lib/Navigation/Breadcrumbs/Breadcrumbs.js +2 -2
- package/lib/utils/util.d.ts +1 -0
- package/lib/utils/util.d.ts.map +1 -1
- package/lib/utils/util.js +9 -1
- package/package.json +2 -2
|
@@ -22,6 +22,6 @@ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
|
22
22
|
*/
|
|
23
23
|
const SVGIcon_1 = require("../SVGIcon");
|
|
24
24
|
const PdfFileIcon = ({ ...props }) => {
|
|
25
|
-
return ((0, jsx_runtime_1.jsxs)(SVGIcon_1.SVGIcon, { realWidth:
|
|
25
|
+
return ((0, jsx_runtime_1.jsxs)(SVGIcon_1.SVGIcon, { realWidth: 14, realHeight: 16, fill: "none", ...props, children: [(0, jsx_runtime_1.jsx)("path", { fill: "var(--pdf-file-icon-bg)", stroke: "var(--pdf-file-icon-stroke)", d: "M1 2.5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v9.006a2.5 2.5 0 0 1-.719 1.754l-1.47 1.494a2.5 2.5 0 0 1-1.782.746H3a2 2 0 0 1-2-2v-11Z" }), (0, jsx_runtime_1.jsx)("path", { stroke: "var(--pdf-file-icon-stroke)", d: "M13 11.5a4 4 0 0 0-4 4" }), (0, jsx_runtime_1.jsx)("path", { fill: "var(--pdf-file-icon-stroke)", d: "M3.231 11.17a.985.985 0 0 0 .746.33 1.88 1.88 0 0 0 1.077-.406c.329-.24.69-.884 1.038-1.756a24.574 24.574 0 0 1 1.705-.415c.57.573 1.293.967 2.082 1.135a1.025 1.025 0 0 0 .962-.433.966.966 0 0 0 .043-.99c-.135-.254-.502-.683-1.458-.69-.467.02-.931.074-1.39.162A5.57 5.57 0 0 1 7.018 6.58c.125-.415.247-.844.368-1.277l.125-.429A2.32 2.32 0 0 0 7.6 3.94c-.099-.696-.546-.967-.933-.937-.49.043-.963.551-.917 1.442.033.74.188 1.47.46 2.159a37.817 37.817 0 0 1-.693 2.092c-.985.307-1.852.66-2.158.99a1.094 1.094 0 0 0-.128 1.485Zm6.191-2.475c.598 0 .76.221.795.287a.195.195 0 0 1 0 .208.272.272 0 0 1-.266.099 2.727 2.727 0 0 1-1.179-.545c.215-.03.43-.046.647-.05h.003Zm-2.69-4.95c.017 0 .09.062.115.264.02.211-.002.424-.065.627l-.125.439c-.016.06-.036.122-.053.184a6.487 6.487 0 0 1-.088-.851c-.033-.445.138-.643.213-.65l.004-.013Zm-.029 3.848c.147.237.31.464.486.68-.256.056-.516.118-.775.184.102-.277.19-.567.289-.864Zm-2.792 2.623a3.815 3.815 0 0 1 1.238-.594 2.344 2.344 0 0 1-.535.845c-.453.33-.736.3-.818.205-.082-.096-.049-.278.115-.46v.004Z" })] }));
|
|
26
26
|
};
|
|
27
27
|
exports.PdfFileIcon = PdfFileIcon;
|
|
@@ -17,12 +17,14 @@ export interface ComboboxSelectProps {
|
|
|
17
17
|
createOptionLabel?: (inputValue: string) => string;
|
|
18
18
|
noOptionsMessage: string;
|
|
19
19
|
label?: string;
|
|
20
|
+
labelVisuallyHidden?: boolean;
|
|
20
21
|
required?: boolean;
|
|
21
22
|
menuPortalTarget?: HTMLElement;
|
|
22
23
|
menuPosition?: MenuPosition;
|
|
23
24
|
menuListCSS?: CSSObject;
|
|
24
25
|
isLoading?: boolean;
|
|
25
26
|
loadingMessage?: string;
|
|
27
|
+
closeMenuOnSelect?: boolean;
|
|
26
28
|
}
|
|
27
|
-
export declare const ComboboxSelect: ({ id, options, value, onChange, isDisabled, placeholder, dataUieName, onCreateOption, createOptionLabel, noOptionsMessage, label, required, menuPortalTarget, menuPosition, menuListCSS, isLoading, loadingMessage, }: ComboboxSelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const ComboboxSelect: ({ id, options, value, onChange, isDisabled, placeholder, dataUieName, onCreateOption, createOptionLabel, noOptionsMessage, label, labelVisuallyHidden, required, menuPortalTarget, menuPosition, menuListCSS, isLoading, loadingMessage, closeMenuOnSelect, }: ComboboxSelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
28
30
|
//# sourceMappingURL=ComboboxSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxSelect.d.ts","sourceRoot":"","sources":["../../../src/Inputs/ComboboxSelect/ComboboxSelect.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAC,SAAS,EAAW,MAAM,gBAAgB,CAAC;AACnD,OAAmB,EAAa,YAAY,EAAqC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ComboboxSelect.d.ts","sourceRoot":"","sources":["../../../src/Inputs/ComboboxSelect/ComboboxSelect.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAC,SAAS,EAAW,MAAM,gBAAgB,CAAC;AACnD,OAAmB,EAAa,YAAY,EAAqC,MAAM,cAAc,CAAC;AAgBtG,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,EAAE,CAAC;IACtD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,GAAG,oBAAoB,EAAE,KAAK,IAAI,CAAC;IAC1E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,iBAAiB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,WAAW,CAAC;IAC/B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc,kQAoBxB,mBAAmB,qDA4BrB,CAAC"}
|
|
@@ -54,11 +54,11 @@ const ComboboxSelect_styles_1 = require("./ComboboxSelect.styles");
|
|
|
54
54
|
const Icon_1 = require("../../DataDisplay/Icon");
|
|
55
55
|
const InputLabel_1 = require("../InputLabel");
|
|
56
56
|
const BaseSelectDropdownIndicator_1 = require("../Select/BaseSelect/BaseSelectDropdownIndicator");
|
|
57
|
-
const ComboboxSelect = ({ id, options, value, onChange, isDisabled = false, placeholder, dataUieName, onCreateOption, createOptionLabel, noOptionsMessage, label, required, menuPortalTarget, menuPosition = 'absolute', menuListCSS, isLoading = false, loadingMessage, }) => {
|
|
58
|
-
return ((0, jsx_runtime_1.jsxs)("div", { css: ComboboxSelect_styles_1.wrapperStyles, "data-uie-name": dataUieName, children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.InputLabel, { htmlFor: id, isRequired: required, children: label })), (0, jsx_runtime_1.jsx)(Select, { id: id, options: options, value: value, onChange: onChange, isDisabled: isDisabled, placeholder: placeholder, menuPortalTarget: menuPortalTarget, menuPosition: menuPosition, createOptionLabel: createOptionLabel, onCreateOption: onCreateOption, creatable: !!onCreateOption, isLoading: isLoading, noOptionsMessage: noOptionsMessage, loadingMessage: loadingMessage, menuListCSS: menuListCSS })] }));
|
|
57
|
+
const ComboboxSelect = ({ id, options, value, onChange, isDisabled = false, placeholder, dataUieName, onCreateOption, createOptionLabel, noOptionsMessage, label, labelVisuallyHidden = false, required, menuPortalTarget, menuPosition = 'absolute', menuListCSS, isLoading = false, loadingMessage, closeMenuOnSelect = true, }) => {
|
|
58
|
+
return ((0, jsx_runtime_1.jsxs)("div", { css: ComboboxSelect_styles_1.wrapperStyles, "data-uie-name": dataUieName, children: [label && ((0, jsx_runtime_1.jsx)(InputLabel_1.InputLabel, { htmlFor: id, isRequired: required, labelCSS: (0, ComboboxSelect_styles_1.labelCSS)({ isVisuallyHidden: labelVisuallyHidden }), children: label })), (0, jsx_runtime_1.jsx)(Select, { id: id, options: options, value: value, onChange: onChange, isDisabled: isDisabled, placeholder: placeholder, menuPortalTarget: menuPortalTarget, menuPosition: menuPosition, createOptionLabel: createOptionLabel, onCreateOption: onCreateOption, creatable: !!onCreateOption, isLoading: isLoading, noOptionsMessage: noOptionsMessage, loadingMessage: loadingMessage, menuListCSS: menuListCSS, closeMenuOnSelect: closeMenuOnSelect })] }));
|
|
59
59
|
};
|
|
60
60
|
exports.ComboboxSelect = ComboboxSelect;
|
|
61
|
-
const Select = ({ id, options, value, onChange, isDisabled = false, placeholder, onCreateOption, createOptionLabel, noOptionsMessage, menuPortalTarget, menuPosition = 'absolute', menuListCSS, isLoading = false, loadingMessage, creatable = false, }) => {
|
|
61
|
+
const Select = ({ id, options, value, onChange, isDisabled = false, placeholder, onCreateOption, createOptionLabel, noOptionsMessage, menuPortalTarget, menuPosition = 'absolute', menuListCSS, isLoading = false, loadingMessage, creatable = false, closeMenuOnSelect = true, }) => {
|
|
62
62
|
const theme = (0, react_2.useTheme)();
|
|
63
63
|
const components = (0, react_1.useMemo)(() => {
|
|
64
64
|
return {
|
|
@@ -70,9 +70,9 @@ const Select = ({ id, options, value, onChange, isDisabled = false, placeholder,
|
|
|
70
70
|
};
|
|
71
71
|
}, [loadingMessage, noOptionsMessage]);
|
|
72
72
|
if (!creatable) {
|
|
73
|
-
return ((0, jsx_runtime_1.jsx)(react_select_1.default, { id: id, options: options, value: value, onChange: onChange, isMulti: true, isSearchable: true, isDisabled: isDisabled, placeholder: placeholder, menuPortalTarget: menuPortalTarget, menuPosition: menuPosition, styles: (0, ComboboxSelect_styles_1.selectStyles)({ theme, menuListCSS }), classNamePrefix: "select", closeMenuOnSelect:
|
|
73
|
+
return ((0, jsx_runtime_1.jsx)(react_select_1.default, { id: id, inputId: id, options: options, value: value, onChange: onChange, isMulti: true, isSearchable: true, isDisabled: isDisabled, placeholder: placeholder, menuPortalTarget: menuPortalTarget, menuPosition: menuPosition, styles: (0, ComboboxSelect_styles_1.selectStyles)({ theme, menuListCSS }), classNamePrefix: "select", closeMenuOnSelect: closeMenuOnSelect, components: components }));
|
|
74
74
|
}
|
|
75
|
-
return ((0, jsx_runtime_1.jsx)(creatable_1.default, { id: id, options: options, value: value, onChange: onChange, isMulti: true, isSearchable: true, isDisabled: isDisabled, placeholder: placeholder, menuPortalTarget: menuPortalTarget, menuPosition: menuPosition, styles: (0, ComboboxSelect_styles_1.selectStyles)({ theme, menuListCSS }), classNamePrefix: "select", formatCreateLabel: createOptionLabel, onCreateOption: onCreateOption, closeMenuOnSelect:
|
|
75
|
+
return ((0, jsx_runtime_1.jsx)(creatable_1.default, { id: id, inputId: id, options: options, value: value, onChange: onChange, isMulti: true, isSearchable: true, isDisabled: isDisabled, placeholder: placeholder, menuPortalTarget: menuPortalTarget, menuPosition: menuPosition, styles: (0, ComboboxSelect_styles_1.selectStyles)({ theme, menuListCSS }), classNamePrefix: "select", formatCreateLabel: createOptionLabel, onCreateOption: onCreateOption, closeMenuOnSelect: closeMenuOnSelect, isLoading: isLoading, components: components }));
|
|
76
76
|
};
|
|
77
77
|
const MultiValueRemove = (props) => ((0, jsx_runtime_1.jsx)(react_select_1.components.MultiValueRemove, { ...props, children: (0, jsx_runtime_1.jsx)(Icon_1.CloseIcon, { width: 10, height: 10 }) }));
|
|
78
78
|
const NoOptionsMessage = ({ message, ...props }) => ((0, jsx_runtime_1.jsx)(react_select_1.components.NoOptionsMessage, { ...props, children: (0, jsx_runtime_1.jsx)("div", { css: ComboboxSelect_styles_1.noOptionsMessageStyles, children: message }) }));
|
|
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { type ComboboxSelectProps } from './ComboboxSelect';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ id, options, value, onChange, isDisabled, placeholder, dataUieName, onCreateOption, createOptionLabel, noOptionsMessage, label, required, menuPortalTarget, menuPosition, menuListCSS, isLoading, loadingMessage, }: ComboboxSelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ id, options, value, onChange, isDisabled, placeholder, dataUieName, onCreateOption, createOptionLabel, noOptionsMessage, label, labelVisuallyHidden, required, menuPortalTarget, menuPosition, menuListCSS, isLoading, loadingMessage, closeMenuOnSelect, }: ComboboxSelectProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
|
@@ -18,12 +18,14 @@ declare const meta: {
|
|
|
18
18
|
createOptionLabel?: (inputValue: string) => string;
|
|
19
19
|
noOptionsMessage: string;
|
|
20
20
|
label?: string;
|
|
21
|
+
labelVisuallyHidden?: boolean;
|
|
21
22
|
required?: boolean;
|
|
22
23
|
menuPortalTarget?: HTMLElement;
|
|
23
24
|
menuPosition?: import("react-select").MenuPosition;
|
|
24
25
|
menuListCSS?: import("@emotion/serialize").CSSObject;
|
|
25
26
|
isLoading?: boolean;
|
|
26
27
|
loadingMessage?: string;
|
|
28
|
+
closeMenuOnSelect?: boolean;
|
|
27
29
|
}>) => import("@emotion/react/jsx-runtime").JSX.Element)[];
|
|
28
30
|
tags: string[];
|
|
29
31
|
};
|
|
@@ -35,4 +37,5 @@ export declare const Disabled: Story;
|
|
|
35
37
|
export declare const Creatable: Story;
|
|
36
38
|
export declare const WithLabel: Story;
|
|
37
39
|
export declare const Loading: Story;
|
|
40
|
+
export declare const WithLabelVisuallyHidden: Story;
|
|
38
41
|
//# sourceMappingURL=ComboboxSelect.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/Inputs/ComboboxSelect/ComboboxSelect.stories.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAiB,KAAK,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAU1E,QAAA,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"ComboboxSelect.stories.d.ts","sourceRoot":"","sources":["../../../src/Inputs/ComboboxSelect/ComboboxSelect.stories.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAO,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAiB,KAAK,mBAAmB,EAAC,MAAM,kBAAkB,CAAC;AAU1E,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc6B,CAAC;AAExC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KASvB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AA8BF,eAAO,MAAM,SAAS,EAAE,KAUvB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAOvB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,KAQrC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Loading = exports.WithLabel = exports.Creatable = exports.Disabled = exports.WithValue = exports.Default = void 0;
|
|
3
|
+
exports.WithLabelVisuallyHidden = exports.Loading = exports.WithLabel = exports.Creatable = exports.Disabled = exports.WithValue = exports.Default = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
5
|
/*
|
|
6
6
|
* Wire
|
|
@@ -112,3 +112,12 @@ exports.Loading = {
|
|
|
112
112
|
loadingMessage: 'Loading options...',
|
|
113
113
|
},
|
|
114
114
|
};
|
|
115
|
+
exports.WithLabelVisuallyHidden = {
|
|
116
|
+
args: {
|
|
117
|
+
id: 'with-label-visually-hidden-select',
|
|
118
|
+
label: 'Select options',
|
|
119
|
+
labelVisuallyHidden: true,
|
|
120
|
+
options: initialOptions,
|
|
121
|
+
noOptionsMessage: 'No options available',
|
|
122
|
+
},
|
|
123
|
+
};
|
|
@@ -17,5 +17,8 @@ export declare const noOptionsMessageStyles: {
|
|
|
17
17
|
export declare const loadingMessageStyles: {
|
|
18
18
|
padding: string;
|
|
19
19
|
};
|
|
20
|
+
export declare const labelCSS: ({ isVisuallyHidden }: {
|
|
21
|
+
isVisuallyHidden: boolean;
|
|
22
|
+
}) => CSSObject;
|
|
20
23
|
export {};
|
|
21
24
|
//# sourceMappingURL=ComboboxSelect.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxSelect.styles.d.ts","sourceRoot":"","sources":["../../../src/Inputs/ComboboxSelect/ComboboxSelect.styles.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"ComboboxSelect.styles.d.ts","sourceRoot":"","sources":["../../../src/Inputs/ComboboxSelect/ComboboxSelect.styles.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAC,YAAY,EAAC,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAC,KAAK,EAAC,MAAM,sBAAsB,CAAC;AAa3C,UAAU,kBAAkB;IAC1B,KAAK,EAAE,KAAK,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACvC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,aAAa,EAAE,SAO3B,CAAC;AAEF,eAAO,MAAM,YAAY,mEAMtB,kBAAkB,KAAG,YAqFtB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;CAElC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;CAEhC,CAAC;AAEF,eAAO,MAAM,QAAQ,yBAAwB;IAAC,gBAAgB,EAAE,OAAO,CAAA;CAAC,cAA+C,CAAC"}
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.loadingMessageStyles = exports.noOptionsMessageStyles = exports.selectStyles = exports.wrapperStyles = void 0;
|
|
21
|
+
exports.labelCSS = exports.loadingMessageStyles = exports.noOptionsMessageStyles = exports.selectStyles = exports.wrapperStyles = void 0;
|
|
22
|
+
const utils_1 = require("../../utils");
|
|
22
23
|
const BaseSelect_styles_1 = require("../Select/BaseSelect/BaseSelect.styles");
|
|
23
24
|
exports.wrapperStyles = {
|
|
24
25
|
marginBottom: '20px',
|
|
@@ -48,7 +49,7 @@ const selectStyles = ({ theme, markInvalid = false, controlCSS = {}, containerCS
|
|
|
48
49
|
option: (provided, { isDisabled, isFocused, isSelected, isMulti }) => ({
|
|
49
50
|
...provided,
|
|
50
51
|
...(0, BaseSelect_styles_1.baseOptionStyles)({ theme, isDisabled, isFocused, isSelected, isMulti }),
|
|
51
|
-
padding: '10px
|
|
52
|
+
padding: '10px 16px',
|
|
52
53
|
fontWeight: 400,
|
|
53
54
|
'&:not(:last-of-type)': {
|
|
54
55
|
borderBottom: `1px solid ${theme.Select.borderColor}`,
|
|
@@ -119,3 +120,5 @@ exports.noOptionsMessageStyles = {
|
|
|
119
120
|
exports.loadingMessageStyles = {
|
|
120
121
|
padding: '8px 12px',
|
|
121
122
|
};
|
|
123
|
+
const labelCSS = ({ isVisuallyHidden }) => (isVisuallyHidden ? (0, utils_1.visuallyHidden)() : {});
|
|
124
|
+
exports.labelCSS = labelCSS;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { CSSObject } from '@emotion/react';
|
|
2
3
|
export interface InputLabelProps {
|
|
3
4
|
children: ReactNode | string;
|
|
4
5
|
htmlFor?: string;
|
|
5
6
|
markInvalid?: boolean;
|
|
6
7
|
isRequired?: boolean;
|
|
8
|
+
labelCSS?: CSSObject;
|
|
7
9
|
}
|
|
8
10
|
declare const InputLabel: FC<InputLabelProps>;
|
|
9
11
|
export { InputLabel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/Inputs/InputLabel/InputLabel.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,EAAE,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/Inputs/InputLabel/InputLabel.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,EAAE,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAKzC,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAwBnC,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,CAAC"}
|
|
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InputLabel = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
5
|
const Identity_1 = require("../../Identity");
|
|
6
|
-
const InputLabel = ({ htmlFor, markInvalid, isRequired, children, ...props }) => ((0, jsx_runtime_1.jsxs)("label", { htmlFor: htmlFor, css: (theme) => ({
|
|
6
|
+
const InputLabel = ({ htmlFor, markInvalid, isRequired, children, labelCSS, ...props }) => ((0, jsx_runtime_1.jsxs)("label", { htmlFor: htmlFor, css: (theme) => ({
|
|
7
7
|
fontSize: theme.fontSizes.medium,
|
|
8
8
|
fontWeight: 400,
|
|
9
9
|
lineHeight: '1rem',
|
|
10
10
|
color: markInvalid ? Identity_1.COLOR_V2.RED_LIGHT_500 : theme.Input.labelColor,
|
|
11
11
|
marginBottom: '2px',
|
|
12
12
|
display: 'block',
|
|
13
|
+
...labelCSS,
|
|
13
14
|
}), ...props, children: [children, isRequired && ((0, jsx_runtime_1.jsx)("span", { css: (theme) => ({ fontSize: theme.fontSizes.base, marginLeft: '4px', color: Identity_1.COLOR_V2.RED_LIGHT_500 }), children: "*" }))] }));
|
|
14
15
|
exports.InputLabel = InputLabel;
|
|
@@ -51,12 +51,12 @@ declare const meta: {
|
|
|
51
51
|
isRtl?: boolean;
|
|
52
52
|
menuPortalTarget?: HTMLElement | null;
|
|
53
53
|
isLoading?: boolean;
|
|
54
|
+
closeMenuOnSelect?: boolean;
|
|
54
55
|
ariaLiveMessages?: import("react-select").AriaLiveMessages<import("./Select").Option, boolean, import("react-select").GroupBase<import("./Select").Option>>;
|
|
55
56
|
backspaceRemovesValue?: boolean;
|
|
56
57
|
blurInputOnSelect?: boolean;
|
|
57
58
|
captureMenuScroll?: boolean;
|
|
58
59
|
classNamePrefix?: string | null;
|
|
59
|
-
closeMenuOnSelect?: boolean;
|
|
60
60
|
closeMenuOnScroll?: boolean | ((event: Event) => boolean);
|
|
61
61
|
components?: Partial<import("react-select/dist/declarations/src/components").SelectComponents<import("./Select").Option, boolean, import("react-select").GroupBase<import("./Select").Option>>>;
|
|
62
62
|
controlShouldRenderValue?: boolean;
|
|
@@ -4,7 +4,8 @@ interface BreadcrumbItemProps {
|
|
|
4
4
|
icon?: ReactNode;
|
|
5
5
|
isActive: boolean;
|
|
6
6
|
onClick: (event: ReactMouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
7
|
+
isFirst: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare const BreadcrumbItem: ({ name, icon, isActive, onClick }: BreadcrumbItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const BreadcrumbItem: ({ name, icon, isActive, onClick, isFirst }: BreadcrumbItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=BreadcrumbItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbItem.d.ts","sourceRoot":"","sources":["../../../../src/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,IAAI,eAAe,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAI/D,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"BreadcrumbItem.d.ts","sourceRoot":"","sources":["../../../../src/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,UAAU,IAAI,eAAe,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AAI/D,UAAU,mBAAmB;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IACzE,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,cAAc,+CAA8C,mBAAmB,qDAgB3F,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BreadcrumbItem = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
5
|
const BreadcrumbItem_styles_1 = require("./BreadcrumbItem.styles");
|
|
6
|
-
const BreadcrumbItem = ({ name, icon, isActive, onClick }) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("li", { css: BreadcrumbItem_styles_1.listItemStyles, children: isActive ? ((0, jsx_runtime_1.jsxs)("span", { css: BreadcrumbItem_styles_1.activeItemStyles, children: [icon, name] })) : ((0, jsx_runtime_1.jsxs)("button", { type: "button", css: BreadcrumbItem_styles_1.buttonStyles, onClick: onClick, children: [icon, name] })) }));
|
|
6
|
+
const BreadcrumbItem = ({ name, icon, isActive, onClick, isFirst }) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("li", { css: BreadcrumbItem_styles_1.listItemStyles, children: isActive ? ((0, jsx_runtime_1.jsxs)("span", { css: BreadcrumbItem_styles_1.activeItemStyles, children: [icon, name] })) : ((0, jsx_runtime_1.jsxs)("button", { type: "button", css: (0, BreadcrumbItem_styles_1.buttonStyles)({ isFirst }), onClick: onClick, children: [icon, name] })) }));
|
|
8
8
|
};
|
|
9
9
|
exports.BreadcrumbItem = BreadcrumbItem;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/react';
|
|
2
2
|
export declare const listItemStyles: CSSObject;
|
|
3
|
-
export declare const buttonStyles:
|
|
3
|
+
export declare const buttonStyles: ({ isFirst }: {
|
|
4
|
+
isFirst: boolean;
|
|
5
|
+
}) => CSSObject;
|
|
4
6
|
export declare const activeItemStyles: CSSObject;
|
|
5
7
|
//# sourceMappingURL=BreadcrumbItem.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreadcrumbItem.styles.d.ts","sourceRoot":"","sources":["../../../../src/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.styles.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAIzC,eAAO,MAAM,cAAc,EAAE,SAI5B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"BreadcrumbItem.styles.d.ts","sourceRoot":"","sources":["../../../../src/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.styles.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAIzC,eAAO,MAAM,cAAc,EAAE,SAI5B,CAAC;AAEF,eAAO,MAAM,YAAY,gBAAe;IAAC,OAAO,EAAE,OAAO,CAAA;CAAC,KAAG,SAgB3D,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,SAQ9B,CAAC"}
|
|
@@ -25,7 +25,7 @@ exports.listItemStyles = {
|
|
|
25
25
|
alignItems: 'center',
|
|
26
26
|
flexShrink: 0,
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
const buttonStyles = ({ isFirst }) => ({
|
|
29
29
|
background: 'none',
|
|
30
30
|
border: 'none',
|
|
31
31
|
padding: '0 8px',
|
|
@@ -35,15 +35,18 @@ exports.buttonStyles = {
|
|
|
35
35
|
display: 'flex',
|
|
36
36
|
alignItems: 'center',
|
|
37
37
|
gap: '8px',
|
|
38
|
+
...(isFirst && { paddingLeft: '0' }),
|
|
38
39
|
'&:hover': {
|
|
39
40
|
color: 'var(--main-color)',
|
|
40
41
|
},
|
|
41
|
-
};
|
|
42
|
+
});
|
|
43
|
+
exports.buttonStyles = buttonStyles;
|
|
42
44
|
exports.activeItemStyles = {
|
|
43
45
|
display: 'inline-flex',
|
|
44
46
|
alignItems: 'center',
|
|
45
47
|
gap: '8px',
|
|
46
|
-
|
|
48
|
+
paddingLeft: '8px',
|
|
49
|
+
paddingRight: '0',
|
|
47
50
|
fontSize: '14px',
|
|
48
51
|
color: 'var(--main-color)',
|
|
49
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../src/Navigation/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAShC,UAAU,gBAAgB;IACxB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,KAAK,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,CAAA;KAAC,CAAC,CAAC;IAE/C,WAAW,EAAE,CAAC,IAAI,EAAE;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,KAAK,IAAI,CAAC;CAC7C;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,iDAIrB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../../../src/Navigation/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAShC,UAAU,gBAAgB;IACxB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,KAAK,EAAE,KAAK,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,SAAS,CAAA;KAAC,CAAC,CAAC;IAE/C,WAAW,EAAE,CAAC,IAAI,EAAE;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,KAAK,IAAI,CAAC;CAC7C;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,iDAIrB,gBAAgB,qDAuDlB,CAAC"}
|
|
@@ -19,13 +19,13 @@ const DEFAULT_MAX_VISIBLE_BREADCRUMBS = 4;
|
|
|
19
19
|
*/
|
|
20
20
|
const Breadcrumbs = ({ maxNotCombinedItems = DEFAULT_MAX_VISIBLE_BREADCRUMBS, items, onItemClick, }) => {
|
|
21
21
|
if (items.length <= maxNotCombinedItems) {
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)("ol", { css: Breadcrumbs_styles_1.listStyles, children: items.map((crumb, index) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [index > 0 && (0, jsx_runtime_1.jsx)(BreadcrumbLeaf_1.BreadcrumbLeaf, {}), (0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { name: crumb.name, icon: crumb.icon, isActive: index === items.length - 1, onClick: () => onItemClick(crumb) }, crumb.name)] }))) }));
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)("ol", { css: Breadcrumbs_styles_1.listStyles, children: items.map((crumb, index) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [index > 0 && (0, jsx_runtime_1.jsx)(BreadcrumbLeaf_1.BreadcrumbLeaf, {}), (0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { name: crumb.name, icon: crumb.icon, isActive: index === items.length - 1, onClick: () => onItemClick(crumb), isFirst: index === 0 }, crumb.name)] }))) }));
|
|
23
23
|
}
|
|
24
24
|
const firstCrumb = items[0];
|
|
25
25
|
// eslint-disable-next-line no-magic-numbers
|
|
26
26
|
const lastTwoCrumbs = items.slice(-2);
|
|
27
27
|
// eslint-disable-next-line no-magic-numbers
|
|
28
28
|
const middleCrumbs = items.slice(1, -2);
|
|
29
|
-
return ((0, jsx_runtime_1.jsxs)("ol", { css: Breadcrumbs_styles_1.listStyles, children: [(0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { name: firstCrumb.name, icon: firstCrumb.icon, isActive: false, onClick: () => onItemClick(firstCrumb) }), (0, jsx_runtime_1.jsx)(BreadcrumbLeaf_1.BreadcrumbLeaf, {}), (0, jsx_runtime_1.jsx)(CombainedBreadcrumbs_1.CombainedBreadcrumbs, { items: middleCrumbs, onItemClick: onItemClick }), (0, jsx_runtime_1.jsx)(BreadcrumbLeaf_1.BreadcrumbLeaf, {}), lastTwoCrumbs.map((crumb, index) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [index > 0 && (0, jsx_runtime_1.jsx)(BreadcrumbLeaf_1.BreadcrumbLeaf, {}), (0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { name: crumb.name, icon: crumb.icon, isActive: index === lastTwoCrumbs.length - 1, onClick: () => onItemClick(crumb) }, crumb.name)] })))] }));
|
|
29
|
+
return ((0, jsx_runtime_1.jsxs)("ol", { css: Breadcrumbs_styles_1.listStyles, children: [(0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { name: firstCrumb.name, icon: firstCrumb.icon, isActive: false, onClick: () => onItemClick(firstCrumb), isFirst: true }), (0, jsx_runtime_1.jsx)(BreadcrumbLeaf_1.BreadcrumbLeaf, {}), (0, jsx_runtime_1.jsx)(CombainedBreadcrumbs_1.CombainedBreadcrumbs, { items: middleCrumbs, onItemClick: onItemClick }), (0, jsx_runtime_1.jsx)(BreadcrumbLeaf_1.BreadcrumbLeaf, {}), lastTwoCrumbs.map((crumb, index) => ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [index > 0 && (0, jsx_runtime_1.jsx)(BreadcrumbLeaf_1.BreadcrumbLeaf, {}), (0, jsx_runtime_1.jsx)(BreadcrumbItem_1.BreadcrumbItem, { name: crumb.name, icon: crumb.icon, isActive: index === lastTwoCrumbs.length - 1, onClick: () => onItemClick(crumb), isFirst: false }, crumb.name)] })))] }));
|
|
30
30
|
};
|
|
31
31
|
exports.Breadcrumbs = Breadcrumbs;
|
package/lib/utils/util.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ export declare const inlineSVG: (svg: string) => string;
|
|
|
4
4
|
export declare const filterProps: <T extends Record<string, any>>(props: T, propsToFilter: (keyof T)[]) => Object;
|
|
5
5
|
export declare const manySelectors: (selectors: string[], css: CSSObject) => {};
|
|
6
6
|
export declare const ellipsis: () => CSSObject;
|
|
7
|
+
export declare const visuallyHidden: () => CSSObject;
|
|
7
8
|
//# sourceMappingURL=util.d.ts.map
|
package/lib/utils/util.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/utils/util.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,SAAS,QAAS,MAAM,WAAyD,CAAC;AAE/F,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,MAQlG,CAAC;AAEF,eAAO,MAAM,aAAa,cAAe,MAAM,EAAE,OAAO,SAAS,OAIzD,CAAC;AAET,eAAO,MAAM,QAAQ,QAAO,SAI1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/utils/util.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,eAAO,MAAM,IAAI,YAAW,CAAC;AAE7B,eAAO,MAAM,SAAS,QAAS,MAAM,WAAyD,CAAC;AAE/F,eAAO,MAAM,WAAW,EAAE,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,MAQlG,CAAC;AAEF,eAAO,MAAM,aAAa,cAAe,MAAM,EAAE,OAAO,SAAS,OAIzD,CAAC;AAET,eAAO,MAAM,QAAQ,QAAO,SAI1B,CAAC;AAEH,eAAO,MAAM,cAAc,QAAO,SAMhC,CAAC"}
|
package/lib/utils/util.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.ellipsis = exports.manySelectors = exports.filterProps = exports.inlineSVG = exports.noop = void 0;
|
|
21
|
+
exports.visuallyHidden = exports.ellipsis = exports.manySelectors = exports.filterProps = exports.inlineSVG = exports.noop = void 0;
|
|
22
22
|
const noop = () => { };
|
|
23
23
|
exports.noop = noop;
|
|
24
24
|
const inlineSVG = (svg) => `data:image/svg+xml;utf8,${encodeURIComponent(svg)}`;
|
|
@@ -38,3 +38,11 @@ const ellipsis = () => ({
|
|
|
38
38
|
whiteSpace: 'nowrap',
|
|
39
39
|
});
|
|
40
40
|
exports.ellipsis = ellipsis;
|
|
41
|
+
const visuallyHidden = () => ({
|
|
42
|
+
position: 'absolute',
|
|
43
|
+
left: '-9999px',
|
|
44
|
+
top: 'auto',
|
|
45
|
+
width: '1px',
|
|
46
|
+
height: '1px',
|
|
47
|
+
});
|
|
48
|
+
exports.visuallyHidden = visuallyHidden;
|
package/package.json
CHANGED