@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.
- package/.ai/components/tag.md +43 -3
- package/.ai/skills/figma-to-ids.md +2 -1
- package/.ai/skills/ui-translation.md +2 -2
- package/README.md +16 -1
- package/dist/{Autocomplete-JZcorz66.js → Autocomplete-CuUjmIAw.js} +66 -63
- package/dist/Shadow-DdGxqWgh.js +56 -0
- package/dist/components/Alert/Alert.js +0 -1
- package/dist/components/Alert/index.js +0 -1
- package/dist/components/Autocomplete/Autocomplete.js +1 -3
- package/dist/components/Autocomplete/hooks/useAutocompleteSearch.js +1 -2
- package/dist/components/Autocomplete/index.js +2 -4
- package/dist/components/Button/Button.js +0 -1
- package/dist/components/Button/CloseButton/CloseButton.js +0 -1
- package/dist/components/Button/index.js +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.js +0 -1
- package/dist/components/ButtonGroup/index.js +0 -1
- package/dist/components/Checkbox/Checkbox.js +0 -1
- package/dist/components/Checkbox/index.js +0 -1
- package/dist/components/Expander/Expander.js +0 -1
- package/dist/components/Expander/index.js +0 -1
- package/dist/components/Field/Field.js +0 -1
- package/dist/components/Field/FieldGroup/FieldGroup.js +0 -1
- package/dist/components/Field/components/FieldFooter.js +0 -1
- package/dist/components/Field/components/FieldHint.js +0 -1
- package/dist/components/Field/index.js +0 -1
- package/dist/components/Hide/Hide.js +0 -1
- package/dist/components/Hide/index.js +0 -1
- package/dist/components/Icon/Icon.js +0 -1
- package/dist/components/Icon/helpers/getMaterialSymbolsList.js +1 -1
- package/dist/components/Input/Input.js +0 -1
- package/dist/components/Input/index.js +0 -1
- package/dist/components/InputCurrency/InputCurrency.js +0 -1
- package/dist/components/InputCurrency/index.js +0 -1
- package/dist/components/Label/Label.js +0 -1
- package/dist/components/Label/LabelBase/LabelBase.js +0 -1
- package/dist/components/Label/index.js +0 -1
- package/dist/components/Link/Link.js +0 -1
- package/dist/components/Link/index.js +0 -1
- package/dist/components/Menu/Menu.js +4 -8
- package/dist/components/Menu/MenuDivider/MenuDivider.js +0 -1
- package/dist/components/Menu/MenuGroup/MenuGroup.js +0 -1
- package/dist/components/Menu/MenuItem/MenuItem.js +0 -1
- package/dist/components/Menu/MenuItem/hooks/useMenuItemRole.js +0 -1
- package/dist/components/Menu/MenuText/MenuText.js +0 -1
- package/dist/components/Menu/index.js +0 -1
- package/dist/components/Modal/Modal.js +0 -1
- package/dist/components/Modal/index.js +0 -1
- package/dist/components/Popover/InputPopover/InputPopover.js +0 -1
- package/dist/components/Popover/InputPopover/InputPopoverActivator.js +0 -1
- package/dist/components/Popover/Popover.js +0 -1
- package/dist/components/Popover/components/PopoverActivator.js +0 -1
- package/dist/components/Popover/components/PopoverContent.js +0 -1
- package/dist/components/Popover/helpers/composeFloatingProps.js +0 -1
- package/dist/components/Popover/hooks/useFloatingPopover.js +0 -1
- package/dist/components/Popover/hooks/usePopover.js +0 -1
- package/dist/components/Popover/hooks/usePopoverItem.js +0 -1
- package/dist/components/Popover/index.js +0 -1
- package/dist/components/Provider/Provider.js +0 -1
- package/dist/components/Provider/index.js +0 -1
- package/dist/components/Radio/Radio.js +0 -1
- package/dist/components/Radio/index.js +0 -1
- package/dist/components/Readonly/Readonly.js +0 -1
- package/dist/components/Readonly/index.js +0 -1
- package/dist/components/Select/Select.js +1 -3
- package/dist/components/Select/SelectCreate/SelectCreate.js +0 -1
- package/dist/components/Select/SelectHeading/SelectHeading.js +0 -1
- package/dist/components/Select/SelectMenu/SelectMenu.js +0 -1
- package/dist/components/Select/SelectMenu/SelectMenuItem.js +0 -1
- package/dist/components/Select/SelectSearch/SelectSearch.js +0 -1
- package/dist/components/Select/SelectSearchInput/SelectSearchInput.js +0 -1
- package/dist/components/Select/SelectTags/SelectTags.js +0 -1
- package/dist/components/Select/components/NativeSelect.js +0 -1
- package/dist/components/Select/components/SelectActivator.js +0 -1
- package/dist/components/Select/components/SelectOptions.js +2 -3
- package/dist/components/Select/index.js +1 -3
- package/dist/components/SkipLink/SkipLink.js +0 -1
- package/dist/components/SkipLink/index.js +0 -1
- package/dist/components/Slideout/Slideout.js +0 -1
- package/dist/components/Slideout/components/SlideoutInner.js +0 -1
- package/dist/components/Slideout/hooks/usePushElement.js +0 -1
- package/dist/components/Slideout/index.js +0 -1
- package/dist/components/Slider/Slider.js +0 -1
- package/dist/components/Slider/components/SliderTicks.js +2 -2
- package/dist/components/Slider/index.js +0 -1
- package/dist/components/Spinner/Spinner.js +0 -1
- package/dist/components/Spinner/index.js +0 -1
- package/dist/components/TabSet/Tab/Tab.js +0 -1
- package/dist/components/TabSet/TabSet.js +0 -1
- package/dist/components/TabSet/TabSetProvider.js +0 -1
- package/dist/components/TabSet/index.js +0 -1
- package/dist/components/Table/Table.js +0 -2
- package/dist/components/Table/TableBody/TableBody.js +0 -2
- package/dist/components/Table/components/TableFilterButton.js +0 -2
- package/dist/components/Table/components/TableHeader.js +0 -2
- package/dist/components/Table/components/TableHeaderCell.js +0 -2
- package/dist/components/Table/index.js +0 -2
- package/dist/components/Tag/Tag.d.ts +15 -23
- package/dist/components/Tag/Tag.js +28 -32
- package/dist/components/Tag/Tag.styles.d.ts +8 -9
- package/dist/components/Tag/Tag.styles.js +26 -14
- package/dist/components/Tag/TagInput/TagInput.js +0 -1
- package/dist/components/Tag/index.js +0 -1
- package/dist/components/Toaster/Toaster.js +0 -1
- package/dist/components/Toaster/Toaster.styles.d.ts +6 -6
- package/dist/components/Toaster/Toaster.styles.js +7 -8
- package/dist/components/Toaster/ToasterProvider.js +0 -1
- package/dist/components/Toaster/components/Toast/Toast.js +0 -1
- package/dist/components/Toaster/index.js +0 -1
- package/dist/components/Toggle/Toggle.js +0 -1
- package/dist/components/Toggle/index.js +0 -1
- package/dist/components/Tooltip/Tooltip.js +0 -1
- package/dist/components/Tooltip/index.js +0 -1
- package/dist/components/ValidationMessage/ValidationSummary/ValidationSummary.js +0 -1
- package/dist/components/ValidationMessage/index.js +0 -1
- package/dist/constants.d.ts +5 -0
- package/dist/hooks/index.js +0 -1
- package/dist/index.d-BJM5_ZcV.js +4 -0
- package/dist/main.js +3 -4
- package/dist/patterns/Breadcrumbs/Breadcrumbs.js +0 -1
- package/dist/patterns/Breadcrumbs/index.js +0 -1
- package/dist/patterns/ContextualMenu/ContextualMenu.d.ts +1 -1
- package/dist/patterns/ContextualMenu/ContextualMenu.js +10 -10
- package/dist/patterns/ContextualMenu/ContextualMenu.styles.js +1 -2
- package/dist/patterns/ContextualMenu/index.js +0 -1
- package/dist/patterns/DropdownMenu/DropdownMenu.js +1 -3
- package/dist/patterns/DropdownMenu/index.js +0 -2
- package/dist/patterns/Form/Form.js +0 -1
- package/dist/patterns/Form/FormField/FormField.js +0 -1
- package/dist/patterns/Form/FormField/FormFieldset.js +0 -1
- package/dist/patterns/Form/FormValidationSummary/FormValidationSummary.js +0 -1
- package/dist/patterns/Form/HookForm/HookForm.js +0 -1
- package/dist/patterns/Form/components/LongForm.js +0 -1
- package/dist/patterns/Form/components/ShortForm.js +0 -1
- package/dist/patterns/Form/index.js +0 -1
- package/dist/patterns/Loading/Loading.js +0 -1
- package/dist/patterns/Loading/LoadingSuspense.js +0 -1
- package/dist/patterns/Loading/components/ComponentLoading.js +0 -1
- package/dist/patterns/Loading/components/DefaultLoading.js +0 -1
- package/dist/patterns/Loading/components/ValidateLoading.js +0 -1
- package/dist/patterns/Loading/index.js +0 -1
- package/dist/patterns/Shadow/Shadow.js +1 -2
- package/dist/patterns/Shadow/index.js +1 -2
- package/dist/patterns/SideNav/SideNav.js +0 -1
- package/dist/patterns/SideNav/index.js +0 -1
- package/dist/style.css +1 -1
- package/dist/{useAutocompleteSearch-Dl1-OeQy.js → useAutocompleteSearch-BJ_hhoKp.js} +3 -3
- package/package.json +10 -10
- package/dist/Shadow-BzgLadE2.js +0 -56
- 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";
|
|
@@ -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)
|
|
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:
|
|
14
|
+
style: _,
|
|
15
15
|
children: [/* @__PURE__ */ i("option", {
|
|
16
16
|
value: h,
|
|
17
17
|
"data-testid": s
|
|
@@ -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";
|
|
@@ -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,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 {
|
|
2
|
-
import {
|
|
3
|
-
interface
|
|
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
|
-
|
|
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
|
-
(
|
|
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 {
|
|
5
|
-
import {
|
|
6
|
-
import "
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
|
14
|
-
let C =
|
|
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:
|
|
15
|
+
clickable: w,
|
|
17
16
|
compact: m,
|
|
18
|
-
mode:
|
|
19
|
-
}),
|
|
17
|
+
mode: y
|
|
18
|
+
}), E = o.raw({
|
|
19
|
+
bordered: d,
|
|
20
20
|
customDeleteButton: !!g,
|
|
21
|
-
clickable:
|
|
21
|
+
clickable: w,
|
|
22
22
|
compact: m,
|
|
23
|
-
mode:
|
|
24
|
-
}),
|
|
25
|
-
return /* @__PURE__ */
|
|
26
|
-
className: t(p, e(
|
|
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
|
-
...
|
|
29
|
-
|
|
30
|
-
|
|
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:
|
|
32
|
+
className: T.content,
|
|
36
33
|
children: f
|
|
37
|
-
}),
|
|
38
|
-
className:
|
|
39
|
-
children: g ?? /* @__PURE__ */
|
|
40
|
-
"data-testid":
|
|
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
|
-
|
|
49
|
-
var p = f;
|
|
45
|
+
d.displayName = "IressTag";
|
|
50
46
|
//#endregion
|
|
51
|
-
export {
|
|
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
|
-
|
|
50
|
-
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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,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: "
|
|
5
|
+
insetBlockEnd: "var(--iress-toaster-offset, 0px)";
|
|
6
6
|
insetInlineEnd: "[0]";
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
'bottom-start': {
|
|
10
10
|
root: {
|
|
11
|
-
insetBlockEnd: "
|
|
11
|
+
insetBlockEnd: "var(--iress-toaster-offset, 0px)";
|
|
12
12
|
insetInlineStart: "[0]";
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
'bottom-center': {
|
|
16
16
|
root: {
|
|
17
|
-
insetBlockEnd: "
|
|
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: "
|
|
24
|
+
insetBlockStart: "var(--iress-toaster-offset, 0px)";
|
|
25
25
|
insetInlineEnd: "[0]";
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
'top-start': {
|
|
29
29
|
root: {
|
|
30
|
-
insetBlockStart: "
|
|
30
|
+
insetBlockStart: "var(--iress-toaster-offset, 0px)";
|
|
31
31
|
insetInlineStart: "[0]";
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
'top-center': {
|
|
35
35
|
root: {
|
|
36
|
-
insetBlockStart: "
|
|
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:
|
|
17
|
+
insetBlockEnd: t,
|
|
19
18
|
insetInlineEnd: "[0]"
|
|
20
19
|
} },
|
|
21
20
|
"bottom-start": { root: {
|
|
22
|
-
insetBlockEnd:
|
|
21
|
+
insetBlockEnd: t,
|
|
23
22
|
insetInlineStart: "[0]"
|
|
24
23
|
} },
|
|
25
24
|
"bottom-center": { root: {
|
|
26
|
-
insetBlockEnd:
|
|
25
|
+
insetBlockEnd: t,
|
|
27
26
|
insetInlineStart: "[50%]",
|
|
28
27
|
transform: "translateX(-50%)"
|
|
29
28
|
} },
|
|
30
29
|
"top-end": { root: {
|
|
31
|
-
insetBlockStart:
|
|
30
|
+
insetBlockStart: t,
|
|
32
31
|
insetInlineEnd: "[0]"
|
|
33
32
|
} },
|
|
34
33
|
"top-start": { root: {
|
|
35
|
-
insetBlockStart:
|
|
34
|
+
insetBlockStart: t,
|
|
36
35
|
insetInlineStart: "[0]"
|
|
37
36
|
} },
|
|
38
37
|
"top-center": { root: {
|
|
39
|
-
insetBlockStart:
|
|
38
|
+
insetBlockStart: t,
|
|
40
39
|
insetInlineStart: "[50%]",
|
|
41
40
|
transform: "translateX(-50%)"
|
|
42
41
|
} }
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -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,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";
|
package/dist/constants.d.ts
CHANGED
|
@@ -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
|
/**
|
package/dist/hooks/index.js
CHANGED