impact-nova 2.0.1 → 2.0.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/dist/assets/empty-state-1-3H9kriwm.webp +0 -0
- package/dist/assets/empty-state-2-Brn6WD3e.webp +0 -0
- package/dist/assets/empty-state-3-CqLldG5q.webp +0 -0
- package/dist/assets/empty-state-4-Br-xaUJO.webp +0 -0
- package/dist/assets/empty-state-5-BanvbHv1.webp +0 -0
- package/dist/assets/empty-state-6-Egbfj9Fe.webp +0 -0
- package/dist/components/ui/accordion.d.ts +13 -0
- package/dist/components/ui/accordion.js +50 -33
- package/dist/components/ui/ag-grid-react/cell-renderers/percent-progress-display-renderer.js +24 -23
- package/dist/components/ui/ag-grid-react/headers/components/header-info.d.ts +8 -6
- package/dist/components/ui/ag-grid-react/headers/components/header-info.js +69 -60
- package/dist/components/ui/ag-grid-react/headers/custom-header.js +23 -22
- package/dist/components/ui/ag-grid-react/headers/header-search-input.js +43 -35
- package/dist/components/ui/ag-grid-react/index.js +44 -42
- package/dist/components/ui/breadcrumb.d.ts +5 -1
- package/dist/components/ui/breadcrumb.js +59 -51
- package/dist/components/ui/date-picker/date-picker.js +14 -14
- package/dist/components/ui/date-picker/date-range-picker.js +25 -25
- package/dist/components/ui/date-picker/month-picker.js +4 -4
- package/dist/components/ui/date-picker/month-range-picker.js +7 -7
- package/dist/components/ui/date-picker/multi-date-picker.js +9 -9
- package/dist/components/ui/date-picker/multi-month-picker.js +29 -29
- package/dist/components/ui/date-picker/multi-week-picker.js +20 -20
- package/dist/components/ui/date-picker/week-picker.js +31 -31
- package/dist/components/ui/date-picker/week-range-picker.js +22 -22
- package/dist/components/ui/dynamic-layout.d.ts +1 -1
- package/dist/components/ui/empty-container/assets/empty-state-1.webp.js +1 -1
- package/dist/components/ui/empty-container/assets/empty-state-2.webp.js +2 -2
- package/dist/components/ui/empty-container/assets/empty-state-3.webp.js +1 -1
- package/dist/components/ui/empty-container/assets/empty-state-4.webp.js +1 -1
- package/dist/components/ui/empty-container/assets/empty-state-5.webp.js +1 -1
- package/dist/components/ui/empty-container/assets/empty-state-6.webp.js +2 -2
- package/dist/components/ui/empty-container/emptyStateIllustrations.d.ts +2 -2
- package/dist/components/ui/empty-container/emptyStateIllustrations.js +32 -20
- package/dist/components/ui/empty-container.js +82 -58
- package/dist/components/ui/filter-strip/filter-summary.js +28 -29
- package/dist/components/ui/filter-strip/filter-tag-list.js +87 -96
- package/dist/components/ui/radio-group.js +19 -19
- package/dist/components/ui/select/select.js +29 -28
- package/dist/components/ui/sidebar.d.ts +2 -1
- package/dist/components/ui/sidebar.js +212 -202
- package/dist/components/ui/tag.d.ts +3 -1
- package/dist/components/ui/tag.js +65 -44
- package/dist/components/ui/types/empty-container.types.d.ts +2 -0
- package/dist/i18n/defaultMessages.d.ts +1 -0
- package/dist/i18n/defaultMessages.js +1 -0
- package/dist/i18n/locales/de.js +1 -0
- package/dist/i18n/locales/es.js +1 -0
- package/dist/i18n/locales/hi.js +1 -0
- package/dist/i18n/locales/kn.js +1 -0
- package/dist/impact-nova-components.css +4 -0
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +441 -439
- package/package.json +4 -1
- package/dist/assets/empty-state-1-Bqh-20pq.webp +0 -0
- package/dist/assets/empty-state-2-DPMRkOBw.webp +0 -0
- package/dist/assets/empty-state-3-BqSOh0-t.webp +0 -0
- package/dist/assets/empty-state-4-CjN-c01q.webp +0 -0
- package/dist/assets/empty-state-5-D4RMA1H1.webp +0 -0
- package/dist/assets/empty-state-6-Dlnf1-2W.webp +0 -0
|
@@ -12,6 +12,8 @@ export interface TagProps extends React.HTMLAttributes<HTMLSpanElement>, Variant
|
|
|
12
12
|
removable?: boolean;
|
|
13
13
|
onRemove?: () => void;
|
|
14
14
|
asChild?: boolean;
|
|
15
|
+
/** Render a native `<button>` instead of `<span>` for interactive tags. */
|
|
16
|
+
asButton?: boolean;
|
|
15
17
|
}
|
|
16
|
-
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<
|
|
18
|
+
declare const Tag: React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLElement>>;
|
|
17
19
|
export { Tag, tagVariants };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { Slot as
|
|
4
|
-
import { cva as
|
|
5
|
-
import { Cross as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { useImpactNovaI18n as
|
|
9
|
-
const
|
|
1
|
+
import { jsxs as x, Fragment as y, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import * as w from "react";
|
|
3
|
+
import { Slot as N } from "@radix-ui/react-slot";
|
|
4
|
+
import { cva as k } from "class-variance-authority";
|
|
5
|
+
import { Cross as j } from "impact-nova-icons";
|
|
6
|
+
import { Button as z } from "./button.js";
|
|
7
|
+
import { cn as C } from "../../lib/utils.js";
|
|
8
|
+
import { useImpactNovaI18n as R } from "../../i18n/ImpactNovaI18nContext.js";
|
|
9
|
+
const T = k(
|
|
10
10
|
"inline-flex items-center justify-center rounded-full transition-colors whitespace-nowrap focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",
|
|
11
11
|
{
|
|
12
12
|
variants: {
|
|
@@ -39,45 +39,66 @@ const N = h(
|
|
|
39
39
|
shape: "pill"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
),
|
|
43
|
-
({ className:
|
|
44
|
-
const { t:
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
), V = w.forwardRef(
|
|
43
|
+
({ className: g, variant: s, size: c, shape: i, leftIcon: d, rightIcon: l, removable: u, onRemove: b, asChild: m = !1, asButton: f = !1, children: p, ...t }, r) => {
|
|
44
|
+
const { t: h } = R(), n = C(T({ variant: s, size: c, shape: i }), g), a = {
|
|
45
|
+
"data-component": "tag",
|
|
46
|
+
"data-variant": s ?? "default",
|
|
47
|
+
"data-size": c ?? "md",
|
|
48
|
+
"data-shape": i ?? "pill"
|
|
49
|
+
}, o = /* @__PURE__ */ x(y, { children: [
|
|
50
|
+
d && /* @__PURE__ */ e("span", { className: "mr-1.5 flex shrink-0 items-center justify-center", children: d }),
|
|
51
|
+
p,
|
|
52
|
+
l && /* @__PURE__ */ e("span", { className: "ml-1.5 flex shrink-0 items-center justify-center", children: l }),
|
|
53
|
+
u && /* @__PURE__ */ e(
|
|
54
|
+
z,
|
|
55
|
+
{
|
|
56
|
+
type: "button",
|
|
57
|
+
variant: "ghost",
|
|
58
|
+
size: "icon",
|
|
59
|
+
"aria-label": h("aria.remove"),
|
|
60
|
+
onClick: (v) => {
|
|
61
|
+
v.stopPropagation(), b?.();
|
|
62
|
+
},
|
|
63
|
+
className: "ml-1.5 h-4 w-4 shrink-0 rounded-full hover:bg-content/10 transition-colors p-0 [&_svg]:size-3",
|
|
64
|
+
"data-component": "tag-remove",
|
|
65
|
+
children: /* @__PURE__ */ e(j, { className: "!h-2.5 !w-2.5" })
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
] });
|
|
69
|
+
return m ? /* @__PURE__ */ e(
|
|
70
|
+
N,
|
|
47
71
|
{
|
|
48
|
-
ref:
|
|
49
|
-
className:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
)
|
|
74
|
-
]
|
|
72
|
+
ref: r,
|
|
73
|
+
className: n,
|
|
74
|
+
...a,
|
|
75
|
+
...t,
|
|
76
|
+
children: o
|
|
77
|
+
}
|
|
78
|
+
) : f ? /* @__PURE__ */ e(
|
|
79
|
+
"button",
|
|
80
|
+
{
|
|
81
|
+
ref: r,
|
|
82
|
+
type: "button",
|
|
83
|
+
className: n,
|
|
84
|
+
...a,
|
|
85
|
+
...t,
|
|
86
|
+
children: o
|
|
87
|
+
}
|
|
88
|
+
) : /* @__PURE__ */ e(
|
|
89
|
+
"span",
|
|
90
|
+
{
|
|
91
|
+
ref: r,
|
|
92
|
+
className: n,
|
|
93
|
+
...a,
|
|
94
|
+
...t,
|
|
95
|
+
children: o
|
|
75
96
|
}
|
|
76
97
|
);
|
|
77
98
|
}
|
|
78
99
|
);
|
|
79
|
-
|
|
100
|
+
V.displayName = "Tag";
|
|
80
101
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
102
|
+
V as Tag,
|
|
103
|
+
T as tagVariants
|
|
83
104
|
};
|
|
@@ -14,6 +14,8 @@ export interface EmptyContainerImageProps extends HTMLAttributes<HTMLDivElement>
|
|
|
14
14
|
export interface EmptyContainerTitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
asChild?: boolean;
|
|
17
|
+
/** Semantic heading level for page content after the app `h1`. Defaults to `h2`. */
|
|
18
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
17
19
|
}
|
|
18
20
|
export interface EmptyContainerDescriptionProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
19
21
|
children: ReactNode;
|
package/dist/i18n/locales/de.js
CHANGED
package/dist/i18n/locales/es.js
CHANGED
package/dist/i18n/locales/hi.js
CHANGED
package/dist/i18n/locales/kn.js
CHANGED