@iress-oss/ids-components 6.0.0-beta.1 → 6.0.0-beta.3

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 (149) hide show
  1. package/.ai/components/tag.md +43 -3
  2. package/.ai/skills/figma-to-ids.md +2 -1
  3. package/.ai/skills/ui-translation.md +2 -2
  4. package/README.md +16 -1
  5. package/dist/{Autocomplete-JZcorz66.js → Autocomplete-CuUjmIAw.js} +66 -63
  6. package/dist/Shadow-DdGxqWgh.js +56 -0
  7. package/dist/components/Alert/Alert.js +0 -1
  8. package/dist/components/Alert/index.js +0 -1
  9. package/dist/components/Autocomplete/Autocomplete.js +1 -3
  10. package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +1 -2
  11. package/dist/components/Autocomplete/index.js +2 -4
  12. package/dist/components/Button/Button.js +0 -1
  13. package/dist/components/Button/CloseButton/CloseButton.js +0 -1
  14. package/dist/components/Button/index.js +0 -1
  15. package/dist/components/ButtonGroup/ButtonGroup.js +0 -1
  16. package/dist/components/ButtonGroup/index.js +0 -1
  17. package/dist/components/Checkbox/Checkbox.js +0 -1
  18. package/dist/components/Checkbox/index.js +0 -1
  19. package/dist/components/Expander/Expander.js +0 -1
  20. package/dist/components/Expander/index.js +0 -1
  21. package/dist/components/Field/Field.js +0 -1
  22. package/dist/components/Field/FieldGroup/FieldGroup.js +0 -1
  23. package/dist/components/Field/components/FieldFooter.js +0 -1
  24. package/dist/components/Field/components/FieldHint.js +0 -1
  25. package/dist/components/Field/index.js +0 -1
  26. package/dist/components/Hide/Hide.js +0 -1
  27. package/dist/components/Hide/index.js +0 -1
  28. package/dist/components/Icon/Icon.js +0 -1
  29. package/dist/components/Icon/helpers/getMaterialSymbolsList.js +1 -1
  30. package/dist/components/Input/Input.js +0 -1
  31. package/dist/components/Input/index.js +0 -1
  32. package/dist/components/InputCurrency/InputCurrency.js +0 -1
  33. package/dist/components/InputCurrency/index.js +0 -1
  34. package/dist/components/Label/Label.js +0 -1
  35. package/dist/components/Label/LabelBase/LabelBase.js +0 -1
  36. package/dist/components/Label/index.js +0 -1
  37. package/dist/components/Link/Link.js +0 -1
  38. package/dist/components/Link/index.js +0 -1
  39. package/dist/components/Menu/Menu.js +4 -8
  40. package/dist/components/Menu/MenuDivider/MenuDivider.js +0 -1
  41. package/dist/components/Menu/MenuGroup/MenuGroup.js +0 -1
  42. package/dist/components/Menu/MenuItem/MenuItem.js +0 -1
  43. package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +0 -1
  44. package/dist/components/Menu/MenuText/MenuText.js +0 -1
  45. package/dist/components/Menu/index.js +0 -1
  46. package/dist/components/Modal/Modal.js +0 -1
  47. package/dist/components/Modal/index.js +0 -1
  48. package/dist/components/Popover/InputPopover/InputPopover.js +0 -1
  49. package/dist/components/Popover/InputPopover/InputPopoverActivator.js +0 -1
  50. package/dist/components/Popover/Popover.js +0 -1
  51. package/dist/components/Popover/components/PopoverActivator.js +0 -1
  52. package/dist/components/Popover/components/PopoverContent.js +0 -1
  53. package/dist/components/Popover/helpers/composeFloatingProps.js +0 -1
  54. package/dist/components/Popover/hooks/useFloatingPopover.js +0 -1
  55. package/dist/components/Popover/hooks/usePopover.js +0 -1
  56. package/dist/components/Popover/hooks/usePopoverItem.js +0 -1
  57. package/dist/components/Popover/index.js +0 -1
  58. package/dist/components/Provider/Provider.js +0 -1
  59. package/dist/components/Provider/index.js +0 -1
  60. package/dist/components/Radio/Radio.js +0 -1
  61. package/dist/components/Radio/index.js +0 -1
  62. package/dist/components/Readonly/Readonly.js +0 -1
  63. package/dist/components/Readonly/index.js +0 -1
  64. package/dist/components/Select/Select.js +1 -3
  65. package/dist/components/Select/SelectCreate/SelectCreate.js +0 -1
  66. package/dist/components/Select/SelectHeading/SelectHeading.js +0 -1
  67. package/dist/components/Select/SelectMenu/SelectMenu.js +0 -1
  68. package/dist/components/Select/SelectMenu/SelectMenuItem.js +0 -1
  69. package/dist/components/Select/SelectSearch/SelectSearch.js +0 -1
  70. package/dist/components/Select/SelectSearchInput/SelectSearchInput.js +0 -1
  71. package/dist/components/Select/SelectTags/SelectTags.js +0 -1
  72. package/dist/components/Select/components/NativeSelect.js +0 -1
  73. package/dist/components/Select/components/SelectActivator.js +0 -1
  74. package/dist/components/Select/components/SelectOptions.js +2 -3
  75. package/dist/components/Select/index.js +1 -3
  76. package/dist/components/SkipLink/SkipLink.js +0 -1
  77. package/dist/components/SkipLink/index.js +0 -1
  78. package/dist/components/Slideout/Slideout.js +0 -1
  79. package/dist/components/Slideout/components/SlideoutInner.js +0 -1
  80. package/dist/components/Slideout/hooks/usePushElement.js +0 -1
  81. package/dist/components/Slideout/index.js +0 -1
  82. package/dist/components/Slider/Slider.js +0 -1
  83. package/dist/components/Slider/components/SliderTicks.js +2 -2
  84. package/dist/components/Slider/index.js +0 -1
  85. package/dist/components/Spinner/Spinner.js +0 -1
  86. package/dist/components/Spinner/index.js +0 -1
  87. package/dist/components/TabSet/Tab/Tab.js +0 -1
  88. package/dist/components/TabSet/TabSet.js +0 -1
  89. package/dist/components/TabSet/TabSetProvider.js +0 -1
  90. package/dist/components/TabSet/index.js +0 -1
  91. package/dist/components/Table/Table.js +0 -2
  92. package/dist/components/Table/TableBody/TableBody.js +0 -2
  93. package/dist/components/Table/components/TableFilterButton.js +0 -2
  94. package/dist/components/Table/components/TableHeader.js +0 -2
  95. package/dist/components/Table/components/TableHeaderCell.js +0 -2
  96. package/dist/components/Table/index.js +0 -2
  97. package/dist/components/Tag/Tag.d.ts +15 -23
  98. package/dist/components/Tag/Tag.js +28 -32
  99. package/dist/components/Tag/Tag.styles.d.ts +8 -9
  100. package/dist/components/Tag/Tag.styles.js +26 -14
  101. package/dist/components/Tag/TagInput/TagInput.js +0 -1
  102. package/dist/components/Tag/index.js +0 -1
  103. package/dist/components/Toaster/Toaster.js +0 -1
  104. package/dist/components/Toaster/Toaster.styles.d.ts +6 -6
  105. package/dist/components/Toaster/Toaster.styles.js +7 -8
  106. package/dist/components/Toaster/ToasterProvider.js +0 -1
  107. package/dist/components/Toaster/components/Toast/Toast.js +0 -1
  108. package/dist/components/Toaster/index.js +0 -1
  109. package/dist/components/Toggle/Toggle.js +0 -1
  110. package/dist/components/Toggle/index.js +0 -1
  111. package/dist/components/Tooltip/Tooltip.js +0 -1
  112. package/dist/components/Tooltip/index.js +0 -1
  113. package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +0 -1
  114. package/dist/components/ValidationMessage/index.js +0 -1
  115. package/dist/constants.d.ts +5 -0
  116. package/dist/hooks/index.js +0 -1
  117. package/dist/index.d-BJM5_ZcV.js +4 -0
  118. package/dist/main.js +3 -4
  119. package/dist/patterns/Breadcrumbs/Breadcrumbs.js +0 -1
  120. package/dist/patterns/Breadcrumbs/index.js +0 -1
  121. package/dist/patterns/ContextualMenu/ContextualMenu.d.ts +1 -1
  122. package/dist/patterns/ContextualMenu/ContextualMenu.js +10 -10
  123. package/dist/patterns/ContextualMenu/ContextualMenu.styles.js +1 -2
  124. package/dist/patterns/ContextualMenu/index.js +0 -1
  125. package/dist/patterns/DropdownMenu/DropdownMenu.js +1 -3
  126. package/dist/patterns/DropdownMenu/index.js +0 -2
  127. package/dist/patterns/Form/Form.js +0 -1
  128. package/dist/patterns/Form/FormField/FormField.js +0 -1
  129. package/dist/patterns/Form/FormField/FormFieldset.js +0 -1
  130. package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +0 -1
  131. package/dist/patterns/Form/HookForm/HookForm.js +0 -1
  132. package/dist/patterns/Form/components/LongForm.js +0 -1
  133. package/dist/patterns/Form/components/ShortForm.js +0 -1
  134. package/dist/patterns/Form/index.js +0 -1
  135. package/dist/patterns/Loading/Loading.js +0 -1
  136. package/dist/patterns/Loading/LoadingSuspense.js +0 -1
  137. package/dist/patterns/Loading/components/ComponentLoading.js +0 -1
  138. package/dist/patterns/Loading/components/DefaultLoading.js +0 -1
  139. package/dist/patterns/Loading/components/ValidateLoading.js +0 -1
  140. package/dist/patterns/Loading/index.js +0 -1
  141. package/dist/patterns/Shadow/Shadow.js +1 -2
  142. package/dist/patterns/Shadow/index.js +1 -2
  143. package/dist/patterns/SideNav/SideNav.js +0 -1
  144. package/dist/patterns/SideNav/index.js +0 -1
  145. package/dist/style.css +1 -1
  146. package/dist/{useAutocompleteSearch-Dl1-OeQy.js → useAutocompleteSearch-BJ_hhoKp.js} +3 -3
  147. package/package.json +10 -10
  148. package/dist/Shadow-BzgLadE2.js +0 -56
  149. package/dist/index.d-VI1Ndupn.js +0 -4
@@ -1,5 +1,4 @@
1
1
  import { GlobalCSSClass as e } from "../../../enums.js";
2
- import "../../../constants-D0UW4Ewm.js";
3
2
  import { useBreakpoint as t } from "../../../hooks/useBreakpoint.js";
4
3
  import { t as n } from "../../../tokens-DuvqF4DC.js";
5
4
  import { useEffect as r, useRef as i } from "react";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { t as e } from "../../Slideout-BHpB44El.js";
3
2
  import { slideout as t } from "./Slideout.styles.js";
4
3
  import { SlideoutContext as n, useSlideout as r } from "./hooks/useSlideout.js";
@@ -2,7 +2,6 @@ import { t as e } from "../../cx-CZ8IJJTy.js";
2
2
  import { n as t } from "../../is-valid-prop-BoZ7GJt2.js";
3
3
  import { t as n } from "../../factory-sKbby7-S.js";
4
4
  import { GlobalCSSClass as r } from "../../enums.js";
5
- import "../../constants-D0UW4Ewm.js";
6
5
  import { propagateTestid as i } from "../../helpers/utility/propagateTestid.js";
7
6
  import { useControlledState as a } from "../../hooks/useControlledState.js";
8
7
  import { useIdIfNeeded as o } from "../../hooks/useIdIfNeeded.js";
@@ -8,10 +8,10 @@ var o = (e, t, n, r, i) => {
8
8
  let a = t === 0 ? e - i : e - (n[t - 1]?.value ?? 0);
9
9
  return `${Number(a / (r - i) * 100)}%`;
10
10
  }, s = ({ allTickLabels: n, "data-testid": s, index: c, max: l, min: u, tickLabel: d }) => {
11
- let f = r(), { className: p, label: m, value: h, ...g } = d, _ = o(h, c, n, l, u), v = { "--iress-tick-label-width": _ };
11
+ let f = r(), { className: p, label: m, value: h, ...g } = d, _ = { "--iress-tick-label-width": o(h, c, n, l, u) };
12
12
  return /* @__PURE__ */ a("div", {
13
13
  className: e(f.tickMark),
14
- style: v,
14
+ style: _,
15
15
  children: [/* @__PURE__ */ i("option", {
16
16
  value: h,
17
17
  "data-testid": s
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { slider as e } from "./Slider.styles.js";
3
2
  import { IressSlider as t } from "./Slider.js";
4
3
  export { t as IressSlider, e as slider };
@@ -1,6 +1,5 @@
1
1
  import { t as e } from "../../cx-CZ8IJJTy.js";
2
2
  import { GlobalCSSClass as t } from "../../enums.js";
3
- import "../../constants-D0UW4Ewm.js";
4
3
  import { IressIcon as n } from "../Icon/Icon.js";
5
4
  import { chatty as r, spinner as i } from "./Spinner.styles.js";
6
5
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { chatty as e, spinner as t } from "./Spinner.styles.js";
3
2
  import { IressSpinner as n } from "./Spinner.js";
4
3
  export { n as IressSpinner, e as chatty, t as spinner };
@@ -2,7 +2,6 @@ import { t as e } from "../../../cx-CZ8IJJTy.js";
2
2
  import { t } from "../../../factory-sKbby7-S.js";
3
3
  import { GlobalCSSClass as n } from "../../../enums.js";
4
4
  import { idsLogger as r } from "../../../helpers/utility/idsLogger.js";
5
- import "../../../constants-D0UW4Ewm.js";
6
5
  import { useIdIfNeeded as i } from "../../../hooks/useIdIfNeeded.js";
7
6
  import { focusableElements as a } from "../../../helpers/dom/focusableElements.js";
8
7
  import { n as o } from "../../../floating-ui.react-JvHZyrqX.js";
@@ -1,7 +1,6 @@
1
1
  import { t as e } from "../../cx-CZ8IJJTy.js";
2
2
  import { t } from "../../factory-sKbby7-S.js";
3
3
  import { GlobalCSSClass as n } from "../../enums.js";
4
- import "../../constants-D0UW4Ewm.js";
5
4
  import { propagateTestid as r } from "../../helpers/utility/propagateTestid.js";
6
5
  import { t as i } from "../../floating-ui.react-JvHZyrqX.js";
7
6
  import { TabSetContext as a, TabSetProvider as o } from "./TabSetProvider.js";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { useControlledState as e } from "../../hooks/useControlledState.js";
3
2
  import { createContext as t, useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
4
3
  import { jsx as o } from "react/jsx-runtime";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { tabSet as e } from "./TabSet.styles.js";
3
2
  import { IressTabSet as t } from "./TabSet.js";
4
3
  import { tab as n } from "./Tab/Tab.styles.js";
@@ -1,4 +1,2 @@
1
- import "../../highlightQueryInLabel-M67urShz.js";
2
1
  import { n as e } from "../../main-5Ict6dyR.js";
3
- import "../../constants-D0UW4Ewm.js";
4
2
  export { e as IressTable };
@@ -1,4 +1,2 @@
1
- import "../../../highlightQueryInLabel-M67urShz.js";
2
1
  import { t as e } from "../../../main-5Ict6dyR.js";
3
- import "../../../constants-D0UW4Ewm.js";
4
2
  export { e as IressTableBody };
@@ -1,4 +1,2 @@
1
- import "../../../highlightQueryInLabel-M67urShz.js";
2
1
  import { a as e } from "../../../main-5Ict6dyR.js";
3
- import "../../../constants-D0UW4Ewm.js";
4
2
  export { e as TableFilterButton };
@@ -1,4 +1,2 @@
1
- import "../../../highlightQueryInLabel-M67urShz.js";
2
1
  import { r as e } from "../../../main-5Ict6dyR.js";
3
- import "../../../constants-D0UW4Ewm.js";
4
2
  export { e as TableHeader };
@@ -1,4 +1,2 @@
1
- import "../../../highlightQueryInLabel-M67urShz.js";
2
1
  import { i as e } from "../../../main-5Ict6dyR.js";
3
- import "../../../constants-D0UW4Ewm.js";
4
2
  export { e as TableHeaderCell };
@@ -1,6 +1,4 @@
1
- import "../../highlightQueryInLabel-M67urShz.js";
2
1
  import { n as e, t } from "../../main-5Ict6dyR.js";
3
- import "../../constants-D0UW4Ewm.js";
4
2
  import { n, t as r } from "../../Table.styles-Qfui4aZG.js";
5
3
  import { IressTableFormattedValue as i } from "./TableFormattedValue/TableFormattedValue.js";
6
4
  import { useTable as a } from "./hooks/useTable.js";
@@ -1,6 +1,6 @@
1
- import { MouseEventHandler, FocusEvent, ReactNode, SyntheticEvent } from 'react';
2
- import { IressStyledProps } from '../../types';
3
- interface TagBaseProps {
1
+ import { FocusEvent, ReactNode, SyntheticEvent, ElementType, ComponentPropsWithoutRef } from 'react';
2
+ import { IressCSSProps, IressTestProps } from '../../interfaces';
3
+ interface InternalTagProps<E extends ElementType = 'span'> extends IressCSSProps, IressTestProps {
4
4
  /**
5
5
  * Contents of the tag.
6
6
  */
@@ -18,12 +18,20 @@ interface TagBaseProps {
18
18
  * Screen reader text for delete button
19
19
  */
20
20
  deleteButtonText?: string;
21
+ /**
22
+ * Element type to render the Tag as.
23
+ * @default 'span'
24
+ */
25
+ element?: E;
21
26
  /**
22
27
  * Style of the tag, based on the data colour palette (10-90) or system status colours (danger, info, success, warning).
23
28
  * Can be a number (10-90), a string ('10'-'90'), or a system status ('danger', 'info', 'success', 'warning').
24
- * @default '90'
25
29
  */
26
30
  mode?: 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90 | '10' | '20' | '30' | '40' | '50' | '60' | '70' | '80' | '90' | 'danger' | 'info' | 'success' | 'warning';
31
+ /**
32
+ * When true, renders the tag with a visible border instead of a filled background.
33
+ */
34
+ bordered?: boolean;
27
35
  /**
28
36
  * Callback triggered when the tag is deleted
29
37
  */
@@ -33,26 +41,10 @@ interface TagBaseProps {
33
41
  */
34
42
  onDeleteButtonBlur?: (e: FocusEvent<HTMLButtonElement>) => void;
35
43
  }
36
- /**
37
- * Props for IressTag when onClick is provided (renders as button)
38
- */
39
- type ClickableTagProps = Omit<IressStyledProps<'button'>, 'onClick'> & TagBaseProps & {
40
- /**
41
- * Callback triggered when the tag is clicked.
42
- * If this prop is provided, the tag will render as a `<button>` element with hover styles to indicate it is clickable.
43
- */
44
- onClick: MouseEventHandler<HTMLButtonElement>;
45
- };
46
- /**
47
- * Props for IressTag when onClick is not provided (renders as span)
48
- */
49
- type StaticTagProps = IressStyledProps<'span'> & TagBaseProps & {
50
- onClick?: never;
51
- };
52
- export type IressTagProps = ClickableTagProps | StaticTagProps;
44
+ type ElementProps<E extends ElementType = 'span'> = Omit<ComponentPropsWithoutRef<E>, keyof InternalTagProps<E>>;
45
+ export type IressTagProps<E extends ElementType = 'span'> = ElementProps<E> & InternalTagProps<E>;
53
46
  export declare const IressTag: {
54
- (props: StaticTagProps): React.JSX.Element;
55
- (props: ClickableTagProps): React.JSX.Element;
47
+ <E extends ElementType = "span">({ bordered, children, className, compact, "data-testid": dataTestId, deleteButton, deleteButtonText, element, mode, onDelete, onDeleteButtonBlur, ...restProps }: IressTagProps<E>): import("react/jsx-runtime").JSX.Element;
56
48
  displayName: string;
57
49
  };
58
50
  export {};
@@ -1,43 +1,40 @@
1
1
  import { t as e } from "../../css-D3KwXbP0.js";
2
2
  import { t } from "../../cx-CZ8IJJTy.js";
3
3
  import { n } from "../../is-valid-prop-BoZ7GJt2.js";
4
- import { t as r } from "../../factory-sKbby7-S.js";
5
- import { GlobalCSSClass as i } from "../../enums.js";
6
- import "../../constants-D0UW4Ewm.js";
7
- import { propagateTestid as a } from "../../helpers/utility/propagateTestid.js";
8
- import { IressCloseButton as o } from "../Button/CloseButton/CloseButton.js";
9
- import { tag as s } from "./Tag.styles.js";
10
- import { useMemo as c, useRef as l } from "react";
11
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
4
+ import { GlobalCSSClass as r } from "../../enums.js";
5
+ import { propagateTestid as i } from "../../helpers/utility/propagateTestid.js";
6
+ import { IressCloseButton as a } from "../Button/CloseButton/CloseButton.js";
7
+ import { tag as o } from "./Tag.styles.js";
8
+ import { useMemo as s, useRef as c } from "react";
9
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
12
10
  //#region src/components/Tag/Tag.tsx
13
- var f = ({ children: f, className: p, compact: m, "data-testid": h, deleteButton: g, deleteButtonText: _ = "Delete", mode: v, onClick: y, onDelete: b, onDeleteButtonBlur: x, ...S }) => {
14
- let C = l(null), w = s({
11
+ var d = ({ bordered: d = !1, children: f, className: p, compact: m, "data-testid": h, deleteButton: g, deleteButtonText: _ = "Delete", element: v, mode: y, onDelete: b, onDeleteButtonBlur: x, ...S }) => {
12
+ let C = c(null), w = v == "button" || v == "a" || !!S.onClick, T = o({
13
+ bordered: d,
15
14
  customDeleteButton: !!g,
16
- clickable: !!y,
15
+ clickable: w,
17
16
  compact: m,
18
- mode: v
19
- }), T = s.raw({
17
+ mode: y
18
+ }), E = o.raw({
19
+ bordered: d,
20
20
  customDeleteButton: !!g,
21
- clickable: !!y,
21
+ clickable: w,
22
22
  compact: m,
23
- mode: v
24
- }), E = !!(b ?? g), [D, O] = n(S);
25
- return /* @__PURE__ */ d(c(() => y ? r.button : r.span, [y]), {
26
- className: t(p, e(T.root, D), i.Tag),
23
+ mode: y
24
+ }), D = !!(b ?? g), [O, k] = n(S), A = s(() => v || (w ? "button" : "span"), [v, w]);
25
+ return /* @__PURE__ */ u(A, {
26
+ className: t(p, e(E.root, O), r.Tag),
27
27
  "data-testid": h,
28
- ...y ? {
29
- onClick: y,
30
- type: "button"
31
- } : {},
32
- ...O,
33
- children: [/* @__PURE__ */ u("span", {
28
+ ...A === "button" ? { type: "button" } : {},
29
+ ...k,
30
+ children: [/* @__PURE__ */ l("span", {
34
31
  ref: C,
35
- className: w.content,
32
+ className: T.content,
36
33
  children: f
37
- }), E && /* @__PURE__ */ u("span", {
38
- className: w.deleteButton,
39
- children: g ?? /* @__PURE__ */ u(o, {
40
- "data-testid": a(h, "delete-button__button"),
34
+ }), D && /* @__PURE__ */ l("span", {
35
+ className: T.deleteButton,
36
+ children: g ?? /* @__PURE__ */ l(a, {
37
+ "data-testid": i(h, "delete-button__button"),
41
38
  onBlur: x,
42
39
  onClick: (e) => b?.(C.current?.textContent ?? "", e),
43
40
  screenreaderText: _
@@ -45,7 +42,6 @@ var f = ({ children: f, className: p, compact: m, "data-testid": h, deleteButton
45
42
  })]
46
43
  });
47
44
  };
48
- f.displayName = "IressTag";
49
- var p = f;
45
+ d.displayName = "IressTag";
50
46
  //#endregion
51
- export { p as IressTag };
47
+ export { d as IressTag };
@@ -11,16 +11,8 @@ export declare const tag: import('../../styled-system/types').SlotRecipeRuntimeF
11
11
  clickable: {
12
12
  true: {
13
13
  root: {
14
+ cursor: "pointer";
14
15
  focusable: "true";
15
- _hover: {
16
- bg: "colour.primary.surface";
17
- borderColor: "colour.primary.fill";
18
- color: "colour.primary.text";
19
- cursor: "pointer";
20
- };
21
- _active: {
22
- boxShadow: "color-mix(in srgb, {colors.colour.primary.surface}, transparent 60%) 0px 0px 0px 3px";
23
- };
24
16
  };
25
17
  };
26
18
  };
@@ -145,4 +137,11 @@ export declare const tag: import('../../styled-system/types').SlotRecipeRuntimeF
145
137
  };
146
138
  };
147
139
  };
140
+ bordered: {
141
+ true: {
142
+ root: {
143
+ borderColor: "[currentColor]";
144
+ };
145
+ };
146
+ };
148
147
  }>;
@@ -13,7 +13,7 @@ var t = e({
13
13
  bg: "[var(--tag-bg, {colors.colour.neutral.20})]",
14
14
  borderRadius: "radius.system.tag",
15
15
  border: "divider",
16
- borderColor: "[var(--tag-border)]",
16
+ borderColor: "[var(--tag-border, transparent)]",
17
17
  color: "[var(--tag-color, {colors.colour.neutral.80})]",
18
18
  display: "inline-flex",
19
19
  gap: "spacing.1",
@@ -46,14 +46,8 @@ var t = e({
46
46
  color: "colour.primary.text"
47
47
  } } },
48
48
  clickable: { true: { root: {
49
- focusable: "true",
50
- _hover: {
51
- bg: "colour.primary.surface",
52
- borderColor: "colour.primary.fill",
53
- color: "colour.primary.text",
54
- cursor: "pointer"
55
- },
56
- _active: { boxShadow: "color-mix(in srgb, {colors.colour.primary.surface}, transparent 60%) 0px 0px 0px 3px" }
49
+ cursor: "pointer",
50
+ focusable: "true"
57
51
  } } },
58
52
  compact: { true: { root: {
59
53
  py: "spacing.0",
@@ -137,12 +131,30 @@ var t = e({
137
131
  "--tag-border": "{colors.colour.system.warning.surface}",
138
132
  "--tag-color": "{colors.colour.system.warning.text}"
139
133
  } }
140
- }
134
+ },
135
+ bordered: { true: { root: { borderColor: "[currentColor]" } } }
141
136
  },
142
- defaultVariants: {
143
- customDeleteButton: !1,
144
- mode: "90"
145
- }
137
+ compoundVariants: [{
138
+ bordered: !0,
139
+ clickable: !0,
140
+ css: { root: {
141
+ _hover: { boxShadow: "[0 0 0 1px currentColor]" },
142
+ _active: { boxShadow: "[0 0 0 1px currentColor, 0px 0px 0px 4px color-mix(in srgb, currentColor, transparent 60%)]" }
143
+ } }
144
+ }, {
145
+ bordered: !1,
146
+ clickable: !0,
147
+ css: { root: {
148
+ _hover: {
149
+ bg: "colour.primary.surface",
150
+ borderColor: "colour.primary.fill",
151
+ color: "colour.primary.text",
152
+ cursor: "pointer"
153
+ },
154
+ _active: { boxShadow: "color-mix(in srgb, {colors.colour.primary.surface}, transparent 60%) 0px 0px 0px 3px" }
155
+ } }
156
+ }],
157
+ defaultVariants: { customDeleteButton: !1 }
146
158
  });
147
159
  //#endregion
148
160
  export { t as tag };
@@ -1,4 +1,3 @@
1
- import "../../../constants-D0UW4Ewm.js";
2
1
  import { propagateTestid as e } from "../../../helpers/utility/propagateTestid.js";
3
2
  import { useControlledState as t } from "../../../hooks/useControlledState.js";
4
3
  import { IressInput as n } from "../../Input/Input.js";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { tag as e } from "./Tag.styles.js";
3
2
  import { IressTag as t } from "./Tag.js";
4
3
  import { IressTagInput as n } from "./TagInput/TagInput.js";
@@ -1,7 +1,6 @@
1
1
  import { t as e } from "../../cx-CZ8IJJTy.js";
2
2
  import { t } from "../../factory-sKbby7-S.js";
3
3
  import { GlobalCSSClass as n } from "../../enums.js";
4
- import "../../constants-D0UW4Ewm.js";
5
4
  import { s as r } from "../../floating-ui.react-JvHZyrqX.js";
6
5
  import { IressStack as i } from "../Stack/Stack.js";
7
6
  import { toaster as a } from "./Toaster.styles.js";
@@ -2,38 +2,38 @@ export declare const toaster: import('../../styled-system/types').SlotRecipeRunt
2
2
  position: {
3
3
  'bottom-end': {
4
4
  root: {
5
- insetBlockEnd: "[var(--iress-toaster-offset, 0px)]";
5
+ insetBlockEnd: "var(--iress-toaster-offset, 0px)";
6
6
  insetInlineEnd: "[0]";
7
7
  };
8
8
  };
9
9
  'bottom-start': {
10
10
  root: {
11
- insetBlockEnd: "[var(--iress-toaster-offset, 0px)]";
11
+ insetBlockEnd: "var(--iress-toaster-offset, 0px)";
12
12
  insetInlineStart: "[0]";
13
13
  };
14
14
  };
15
15
  'bottom-center': {
16
16
  root: {
17
- insetBlockEnd: "[var(--iress-toaster-offset, 0px)]";
17
+ insetBlockEnd: "var(--iress-toaster-offset, 0px)";
18
18
  insetInlineStart: "[50%]";
19
19
  transform: "translateX(-50%)";
20
20
  };
21
21
  };
22
22
  'top-end': {
23
23
  root: {
24
- insetBlockStart: "[var(--iress-toaster-offset, 0px)]";
24
+ insetBlockStart: "var(--iress-toaster-offset, 0px)";
25
25
  insetInlineEnd: "[0]";
26
26
  };
27
27
  };
28
28
  'top-start': {
29
29
  root: {
30
- insetBlockStart: "[var(--iress-toaster-offset, 0px)]";
30
+ insetBlockStart: "var(--iress-toaster-offset, 0px)";
31
31
  insetInlineStart: "[0]";
32
32
  };
33
33
  };
34
34
  'top-center': {
35
35
  root: {
36
- insetBlockStart: "[var(--iress-toaster-offset, 0px)]";
36
+ insetBlockStart: "var(--iress-toaster-offset, 0px)";
37
37
  insetInlineStart: "[50%]";
38
38
  transform: "translateX(-50%)";
39
39
  };
@@ -1,7 +1,6 @@
1
1
  import { t as e } from "../../sva-DOLIp5Dd.js";
2
- import { u as t } from "../../constants-D0UW4Ewm.js";
3
2
  //#region src/components/Toaster/Toaster.styles.ts
4
- var n = e({
3
+ var t = "var(--iress-toaster-offset, 0px)", n = e({
5
4
  slots: ["root"],
6
5
  base: { root: {
7
6
  display: "flex",
@@ -15,28 +14,28 @@ var n = e({
15
14
  } },
16
15
  variants: { position: {
17
16
  "bottom-end": { root: {
18
- insetBlockEnd: `[var(${t}, 0px)]`,
17
+ insetBlockEnd: t,
19
18
  insetInlineEnd: "[0]"
20
19
  } },
21
20
  "bottom-start": { root: {
22
- insetBlockEnd: `[var(${t}, 0px)]`,
21
+ insetBlockEnd: t,
23
22
  insetInlineStart: "[0]"
24
23
  } },
25
24
  "bottom-center": { root: {
26
- insetBlockEnd: `[var(${t}, 0px)]`,
25
+ insetBlockEnd: t,
27
26
  insetInlineStart: "[50%]",
28
27
  transform: "translateX(-50%)"
29
28
  } },
30
29
  "top-end": { root: {
31
- insetBlockStart: `[var(${t}, 0px)]`,
30
+ insetBlockStart: t,
32
31
  insetInlineEnd: "[0]"
33
32
  } },
34
33
  "top-start": { root: {
35
- insetBlockStart: `[var(${t}, 0px)]`,
34
+ insetBlockStart: t,
36
35
  insetInlineStart: "[0]"
37
36
  } },
38
37
  "top-center": { root: {
39
- insetBlockStart: `[var(${t}, 0px)]`,
38
+ insetBlockStart: t,
40
39
  insetInlineStart: "[50%]",
41
40
  transform: "translateX(-50%)"
42
41
  } }
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { registerToaster as e, unregisterToaster as t } from "./helpers/toasterRegister.js";
3
2
  import { ToasterContext as n } from "./hooks/useToaster.js";
4
3
  import { Toaster as r } from "./Toaster.js";
@@ -1,6 +1,5 @@
1
1
  import { t as e } from "../../../../cx-CZ8IJJTy.js";
2
2
  import { GlobalCSSClass as t } from "../../../../enums.js";
3
- import "../../../../constants-D0UW4Ewm.js";
4
3
  import { b as n, d as r } from "../../../../floating-ui.react-JvHZyrqX.js";
5
4
  import { IressAlert as i } from "../../../Alert/Alert.js";
6
5
  import { getTransitionDuration as a } from "../../../../helpers/transition/getTransitionDuration.js";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { toaster as e } from "./Toaster.styles.js";
3
2
  import { ToasterContext as t, useToaster as n } from "./hooks/useToaster.js";
4
3
  import { toast as r } from "./components/Toast/Toast.styles.js";
@@ -2,7 +2,6 @@ import { t as e } from "../../css-D3KwXbP0.js";
2
2
  import { t } from "../../cx-CZ8IJJTy.js";
3
3
  import { t as n } from "../../factory-sKbby7-S.js";
4
4
  import { GlobalCSSClass as r } from "../../enums.js";
5
- import "../../constants-D0UW4Ewm.js";
6
5
  import { propagateTestid as i } from "../../helpers/utility/propagateTestid.js";
7
6
  import { useControlledState as a } from "../../hooks/useControlledState.js";
8
7
  import { IressCheckboxMark as o } from "../CheckboxMark/CheckboxMark.js";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { toggle as e } from "./Toggle.styles.js";
3
2
  import { IressToggle as t } from "./Toggle.js";
4
3
  export { t as IressToggle, e as toggle };
@@ -2,7 +2,6 @@ import { t as e } from "../../cx-CZ8IJJTy.js";
2
2
  import { t } from "../../factory-sKbby7-S.js";
3
3
  import { GlobalCSSClass as n } from "../../enums.js";
4
4
  import { idsLogger as r } from "../../helpers/utility/idsLogger.js";
5
- import "../../constants-D0UW4Ewm.js";
6
5
  import { propagateTestid as i } from "../../helpers/utility/propagateTestid.js";
7
6
  import { toArray as a } from "../../helpers/formatting/toArray.js";
8
7
  import { focusableElements as o } from "../../helpers/dom/focusableElements.js";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { tooltip as e } from "./Tooltip.styles.js";
3
2
  import { IressTooltip as t } from "./Tooltip.js";
4
3
  export { t as IressTooltip, e as tooltip };
@@ -1,7 +1,6 @@
1
1
  import { t as e } from "../../../cx-CZ8IJJTy.js";
2
2
  import { t } from "../../../factory-sKbby7-S.js";
3
3
  import { GlobalCSSClass as n } from "../../../enums.js";
4
- import "../../../constants-D0UW4Ewm.js";
5
4
  import { propagateTestid as r } from "../../../helpers/utility/propagateTestid.js";
6
5
  import { useIdIfNeeded as i } from "../../../hooks/useIdIfNeeded.js";
7
6
  import { IressValidationMessage as a } from "../ValidationMessage.js";
@@ -1,4 +1,3 @@
1
- import "../../constants-D0UW4Ewm.js";
2
1
  import { IressValidationMessage as e } from "./ValidationMessage.js";
3
2
  import { IressValidationLink as t } from "./ValidationLink/ValidationLink.js";
4
3
  import { IressValidationSummary as n } from "./ValidationSummary/ValidationSummary.js";
@@ -102,6 +102,11 @@ export declare const Z_INDEX_OFFSET_VAR = "--iress-zindex-offset";
102
102
  * --iress-toaster-offset: 60px;
103
103
  * }
104
104
  * ```
105
+ *
106
+ * IMPORTANT: The literal string `'var(--iress-toaster-offset, 0px)'` used in
107
+ * `Toaster.styles.ts` must stay in sync with this constant. Template literals
108
+ * that interpolate this constant cannot be resolved by the Panda CSS static
109
+ * scanner, so the value is duplicated there as a plain string constant.
105
110
  */
106
111
  export declare const TOASTER_OFFSET_VAR = "--iress-toaster-offset";
107
112
  /**
@@ -1,4 +1,3 @@
1
- import "../constants-D0UW4Ewm.js";
2
1
  import { useBreakpoint as e } from "./useBreakpoint.js";
3
2
  import { useControlledState as t } from "./useControlledState.js";
4
3
  import { useIdIfNeeded as n } from "./useIdIfNeeded.js";