@wireapp/react-ui-kit 9.59.3 → 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.
Files changed (32) hide show
  1. package/lib/DataDisplay/Icon/Files/PdfFileIcon.js +1 -1
  2. package/lib/Images/SuccessShield.d.ts +2 -0
  3. package/lib/Images/SuccessShield.d.ts.map +1 -0
  4. package/lib/Images/SuccessShield.js +24 -0
  5. package/lib/Images/WavesPattern.d.ts +2 -0
  6. package/lib/Images/WavesPattern.d.ts.map +1 -0
  7. package/lib/Images/WavesPattern.js +30 -0
  8. package/lib/Inputs/ComboboxSelect/ComboboxSelect.d.ts +3 -1
  9. package/lib/Inputs/ComboboxSelect/ComboboxSelect.d.ts.map +1 -1
  10. package/lib/Inputs/ComboboxSelect/ComboboxSelect.js +5 -5
  11. package/lib/Inputs/ComboboxSelect/ComboboxSelect.stories.d.ts +4 -1
  12. package/lib/Inputs/ComboboxSelect/ComboboxSelect.stories.d.ts.map +1 -1
  13. package/lib/Inputs/ComboboxSelect/ComboboxSelect.stories.js +10 -1
  14. package/lib/Inputs/ComboboxSelect/ComboboxSelect.styles.d.ts +3 -0
  15. package/lib/Inputs/ComboboxSelect/ComboboxSelect.styles.d.ts.map +1 -1
  16. package/lib/Inputs/ComboboxSelect/ComboboxSelect.styles.js +5 -2
  17. package/lib/Inputs/InputLabel/InputLabel.d.ts +2 -0
  18. package/lib/Inputs/InputLabel/InputLabel.d.ts.map +1 -1
  19. package/lib/Inputs/InputLabel/InputLabel.js +2 -1
  20. package/lib/Inputs/Select/Select.stories.d.ts +1 -1
  21. package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.d.ts +2 -1
  22. package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.d.ts.map +1 -1
  23. package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.js +2 -2
  24. package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.styles.d.ts +3 -1
  25. package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.styles.d.ts.map +1 -1
  26. package/lib/Navigation/Breadcrumbs/BreadcrumbItem/BreadcrumbItem.styles.js +6 -3
  27. package/lib/Navigation/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  28. package/lib/Navigation/Breadcrumbs/Breadcrumbs.js +2 -2
  29. package/lib/utils/util.d.ts +1 -0
  30. package/lib/utils/util.d.ts.map +1 -1
  31. package/lib/utils/util.js +9 -1
  32. 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: 13, 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" })] }));
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;
@@ -0,0 +1,2 @@
1
+ export declare const SuccessShield: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=SuccessShield.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SuccessShield.d.ts","sourceRoot":"","sources":["../../src/Images/SuccessShield.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,aAAa,wDAqDzB,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SuccessShield = void 0;
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ /*
6
+ * Wire
7
+ * Copyright (C) 2025 Wire Swiss GmbH
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see http://www.gnu.org/licenses/.
21
+ *
22
+ */
23
+ const SuccessShield = () => ((0, jsx_runtime_1.jsxs)("svg", { width: "240", height: "241", viewBox: "0 0 240 241", fill: "none", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", children: [(0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M124.995 30.3382L125.813 31.1008L126.372 31.5963L127.228 32.302L128.379 33.1958C131.092 35.2446 134.401 37.3271 138.303 39.2916C149.684 45.0214 163.443 48.4847 179.674 48.4847C185.311 48.4847 189.882 53.0865 189.882 58.763V140.989C189.882 163.089 179.827 181.78 163.083 195.267C149.451 206.247 132.012 212.937 118.426 212.937C104.841 212.937 87.4008 206.247 73.7696 195.267C57.0254 181.78 46.9707 163.089 46.9707 140.989V58.763C46.9707 53.0865 51.5409 48.4847 57.1786 48.4847C73.4093 48.4847 87.168 45.0214 98.5491 39.2916C102.451 37.3271 105.76 35.2446 108.473 33.1958L109.624 32.302L110.797 31.3209L111.208 30.9387C114.985 27.136 120.984 26.9359 124.995 30.3382Z", fill: "url(#paint0_linear_8509_36899)", stroke: "black", strokeWidth: "4.11429" }), (0, jsx_runtime_1.jsx)("rect", { x: "51.0859", y: "52.0981", width: "136.455", height: "120.32", rx: "16.1385", fill: "url(#pattern0_8509_36899)" }), (0, jsx_runtime_1.jsx)("path", { d: "M87.626 105.797C90.3875 105.797 92.6337 108.06 92.6338 110.842L92.6299 127.9C92.6299 131.189 91.4525 134.195 89.4756 136.513C91.2438 137.831 93.4488 138.621 95.8125 138.621C101.498 138.621 106.107 134.108 106.39 128.452L106.403 127.9V107.091H108.907V127.9C108.907 135.202 103.049 141.144 95.7998 141.144C92.7262 141.144 89.9413 140.068 87.7002 138.281C85.4591 140.068 82.6085 141.144 79.5352 141.144C72.2859 141.143 66.3359 135.202 66.3359 127.9V107.091H68.8398V127.9C68.8398 133.812 73.6402 138.621 79.5088 138.621C81.8728 138.621 84.0784 137.831 85.8467 136.513C83.8697 134.195 82.6133 131.189 82.6133 127.9L82.6172 110.842C82.6173 108.06 84.8644 105.797 87.626 105.797ZM144.623 111.521C151.336 104.753 162.258 104.753 168.971 111.521C169.268 111.821 169.552 112.129 169.823 112.445L157.679 124.689L147.316 135.137C153.09 140.048 161.758 139.765 167.196 134.285L168.968 136.07C162.255 142.835 151.335 142.834 144.623 136.067C137.91 129.3 137.91 118.288 144.623 111.521ZM118.929 140.476H116.424V107.022H118.929V140.476ZM140.853 108.966C134.288 108.966 128.946 114.346 128.946 120.958H128.945V140.476H126.44V107.022H128.945V112.787C131.543 108.958 135.911 106.439 140.853 106.439V108.966ZM87.626 108.319C86.2453 108.319 85.1212 109.451 85.1211 110.842L85.1172 127.9C85.1172 130.525 86.0611 132.929 87.6211 134.795C89.181 132.93 90.1249 130.525 90.125 127.901L90.1299 110.842C90.1298 109.451 89.0065 108.32 87.626 108.319ZM166.276 112.451C160.502 107.539 151.832 107.823 146.394 113.306C140.956 118.788 140.673 127.53 145.546 133.352L166.276 112.451Z", fill: "white" }), (0, jsx_runtime_1.jsx)("rect", { x: "144", y: "167.5", width: "50", height: "50", rx: "25", fill: "white" }), (0, jsx_runtime_1.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M169 167.5C155.193 167.5 144 178.693 144 192.5C144 206.307 155.193 217.5 169 217.5C182.807 217.5 194 206.307 194 192.5C194 178.693 182.807 167.5 169 167.5ZM186.875 185.828L164.802 207.681L150.972 194.039L155.391 189.62L164.802 198.842L182.455 181.409L186.875 185.828Z", fill: "#1D7833" }), (0, jsx_runtime_1.jsxs)("defs", { children: [(0, jsx_runtime_1.jsx)("pattern", { id: "pattern0_8509_36899", patternContentUnits: "objectBoundingBox", width: "0.0236539", height: "0.0268259", children: (0, jsx_runtime_1.jsx)("use", { xlinkHref: "#image0_8509_36899", transform: "scale(0.00295674 0.00335324)" }) }), (0, jsx_runtime_1.jsxs)("linearGradient", { id: "paint0_linear_8509_36899", x1: "160.772", y1: "200.018", x2: "62.5707", y2: "35.9853", gradientUnits: "userSpaceOnUse", children: [(0, jsx_runtime_1.jsx)("stop", { offset: "0.82932" }), (0, jsx_runtime_1.jsx)("stop", { offset: "1", stopColor: "#54A6FF" })] }), (0, jsx_runtime_1.jsx)("image", { id: "image0_8509_36899", width: "8", height: "8", preserveAspectRatio: "none", xlinkHref: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAAXNSR0IArs4c6QAAACZJREFUGBljYGBg+A/EuAA+OVx6CIiDjEQxlomABipJo9iJZuZ/AC8NBf1LtGs1AAAAAElFTkSuQmCC" })] })] }));
24
+ exports.SuccessShield = SuccessShield;
@@ -0,0 +1,2 @@
1
+ export declare const WavesPattern: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=WavesPattern.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WavesPattern.d.ts","sourceRoot":"","sources":["../../src/Images/WavesPattern.tsx"],"names":[],"mappings":"AAmBA,eAAO,MAAM,YAAY,wDAwCxB,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WavesPattern = void 0;
4
+ const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
5
+ /*
6
+ * Wire
7
+ * Copyright (C) 2025 Wire Swiss GmbH
8
+ *
9
+ * This program is free software: you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation, either version 3 of the License, or
12
+ * (at your option) any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
+ * GNU General Public License for more details.
18
+ *
19
+ * You should have received a copy of the GNU General Public License
20
+ * along with this program. If not, see http://www.gnu.org/licenses/.
21
+ *
22
+ */
23
+ const WavesPattern = () => ((0, jsx_runtime_1.jsxs)("svg", { css: {
24
+ bottom: 0,
25
+ position: 'absolute',
26
+ width: '100%',
27
+ height: 'auto',
28
+ left: 0,
29
+ }, width: "457", height: "311", viewBox: "0 0 457 311", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("path", { d: "M841.651 -527.209C964.429 -307.492 902.996 -233.095 657.354 -304.019C411.713 -374.943 350.28 -300.546 473.058 -80.829C595.835 138.888 534.402 213.285 288.761 142.361C43.1188 71.4374 -18.3134 145.834 104.464 365.551C227.241 585.269 165.809 659.665 -79.8332 588.741", stroke: "#54A6FF", strokeWidth: "8.46296", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M812.808 -272.458C823.01 -144.581 764.405 -95.9381 636.992 -126.53C509.579 -157.121 450.974 -108.479 461.177 19.3985C471.38 147.276 412.775 195.918 285.362 165.327C157.949 134.735 99.3436 183.378 109.546 311.255C119.749 439.132 61.144 487.775 -66.2689 457.183", stroke: "#FFE57D", strokeWidth: "6.77037", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M383.347 148.382C413.674 260.208 374.864 292.421 266.917 245.021C158.969 197.62 120.159 229.833 150.486 341.659C180.813 453.485 142.003 485.698 34.0553 438.297C-73.892 390.897 -112.702 423.11 -82.3753 534.936C-52.0485 646.762 -90.8587 678.975 -198.806 631.574M849.424 -238.409C879.751 -126.583 840.941 -94.37 732.994 -141.771C625.046 -189.171 586.236 -156.959 616.563 -45.1322C646.89 66.6941 608.08 98.9069 500.132 51.5063C392.185 4.10561 353.375 36.3184 383.702 148.145C414.029 259.971 375.218 292.184 267.271 244.783", stroke: "#30DB5B", strokeWidth: "7.86659", strokeLinecap: "round" }), (0, jsx_runtime_1.jsx)("path", { d: "M-137.046 621.16C-107.536 538.457 -48.8093 488.749 39.1334 472.036C127.076 455.324 185.802 405.616 215.313 322.913C244.823 240.21 303.549 190.502 391.492 173.79C479.434 157.078 538.161 107.37 567.671 24.6669C597.181 -58.0361 655.907 -107.744 743.85 -124.456", stroke: "#DA8FFF", strokeWidth: "2.94997", strokeLinecap: "round" })] }));
30
+ exports.WavesPattern = WavesPattern;
@@ -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;AAUtG,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,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;CACzB;AAED,eAAO,MAAM,cAAc,0NAkBxB,mBAAmB,qDA2BrB,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: false, components: components }));
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: false, isLoading: isLoading, components: components }));
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;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
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;AAY3C,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"}
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 18px',
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;AAKpC,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;CACtB;AAED,QAAA,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAuBnC,CAAC;AAEF,OAAO,EAAC,UAAU,EAAC,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;CAC1E;AAED,eAAO,MAAM,cAAc,sCAAqC,mBAAmB,qDAgBlF,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: CSSObject;
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,SAc1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,SAO9B,CAAC"}
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
- exports.buttonStyles = {
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
- padding: '0 8px',
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,qDAoDlB,CAAC"}
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;
@@ -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
@@ -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
@@ -79,6 +79,6 @@
79
79
  "test:watch": "jest --watch",
80
80
  "test:update": "jest --updateSnapshot"
81
81
  },
82
- "version": "9.59.3",
83
- "gitHead": "50271e30cf0771b51c9ea94394f9193db3188731"
82
+ "version": "9.60.1",
83
+ "gitHead": "fbcb702e7536947fe230f988c9845d51cd86104e"
84
84
  }