impact-ui 4.0.2-alpha.4 → 4.0.2
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/_virtual/index13.js +2 -2
- package/dist/_virtual/index14.js +2 -2
- package/dist/_virtual/index15.js +2 -2
- package/dist/_virtual/index16.js +2 -2
- package/dist/_virtual/index2.js +2 -2
- package/dist/_virtual/index3.js +2 -4
- package/dist/_virtual/index4.js +3 -3
- package/dist/_virtual/index5.js +4 -2
- package/dist/components/AccordionModern/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Breadcrumbs/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Chart/index.d.ts +1 -4
- package/dist/components/Chart/index.d.ts.map +1 -1
- package/dist/components/Chart/index.js +3 -15
- package/dist/components/Chatbot/index.js +1 -1
- package/dist/components/Chips/index.js +1 -1
- package/dist/components/CommentsPanel/CommentsPanel.impl.js +1 -1
- package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts +10 -4
- package/dist/components/CreateItemFlow/CreateItemFlow.types.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.d.ts +3 -15
- package/dist/components/CreateItemFlow/index.d.ts.map +1 -1
- package/dist/components/CreateItemFlow/index.js +132 -52
- package/dist/components/DatePicker/index.js +1 -1
- package/dist/components/DateRangePicker/index.js +1 -1
- package/dist/components/DynamicLayout/index.d.ts +9 -12
- package/dist/components/DynamicLayout/index.d.ts.map +1 -1
- package/dist/components/DynamicLayout/index.js +37 -29
- package/dist/components/FileUpload/index.js +1 -1
- package/dist/components/FilterPanel/index.js +1 -1
- package/dist/components/FiltersStrip/FilterSlider.js +1 -1
- package/dist/components/FiltersStrip/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutLandingPage.js +1 -1
- package/dist/components/KeyboardShortCuts/ShortcutModal.js +1 -1
- package/dist/components/KeyboardShortCuts/allSetBox.js +1 -1
- package/dist/components/KeyboardShortCuts/index.js +1 -1
- package/dist/components/KeyboardShortCuts/tutorial.js +1 -1
- package/dist/components/Loader/Loader.types.d.ts +3 -3
- package/dist/components/Loader/Loader.types.d.ts.map +1 -1
- package/dist/components/Loader/index.d.ts.map +1 -1
- package/dist/components/Loader/index.js +2 -4
- package/dist/components/Menu/IconMenuItem.js +1 -1
- package/dist/components/Menu/NestedMenuItem.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/nestedMenuItemsFromObject.js +1 -1
- package/dist/components/Modal/index.js +1 -1
- package/dist/components/MonthPicker/index.js +1 -1
- package/dist/components/MonthRangePicker/index.js +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Prompt/index.js +1 -1
- package/dist/components/Select/Select.types.d.ts +2 -2
- package/dist/components/Select/Select.types.d.ts.map +1 -1
- package/dist/components/Select/dropdown.d.ts.map +1 -1
- package/dist/components/Select/dropdown.js +1 -9
- package/dist/components/Select/index.d.ts.map +1 -1
- package/dist/components/Select/index.js +4 -3
- package/dist/components/Stepper/index.js +1 -1
- package/dist/components/Table/AgGridHeader.d.ts.map +1 -1
- package/dist/components/Table/AgGridHeader.js +20 -28
- package/dist/components/Table/index.js +1 -1
- package/dist/components/TableChat/EmptyContainer.js +1 -1
- package/dist/components/TableChat/TableChatSidePanel.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/AddChatContainer/AddChatContainer.js +1 -1
- package/dist/components/TableChat/components/TableChatLeftSection/TableChatChannelHeader.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDefaultMessageType/ChatDefaultMessageType.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatDeleteMessageType/ChatDeletedMessageType.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatHeader/ChatHeader.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatInput/ChatInput.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatMessages/ChatMessage.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/ChatNotificationSettings/ChatNotificationSettings.js +1 -1
- package/dist/components/TableChat/components/TableChatRightSection/TableChatRightSection.js +1 -1
- package/dist/components/TableChat/components/TextEditor/EditorToolbar.js +1 -1
- package/dist/components/TableChat/components/TextEditor/Mention.js +1 -1
- package/dist/components/TableChat/components/TextEditor/MentionList.js +1 -1
- package/dist/components/TableOld/AgGridHeader.d.ts.map +1 -1
- package/dist/components/TableOld/AgGridHeader.js +13 -33
- package/dist/components/TableOld/index.js +1 -1
- package/dist/components/Tag/index.js +1 -1
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/common/MentionEditor/MentionList/index.js +1 -1
- package/dist/components/common/MentionEditor/index.js +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +0 -3
- package/dist/mcp-component-registry.json +1 -1
- package/dist/node_modules/@mui/system/colorManipulator.js +2 -2
- package/dist/node_modules/call-bind/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/is-symbol/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-with-styles-interface-css/dist/index.js +1 -1
- package/dist/styles/style.css +1 -1
- package/dist/utils/helper.d.ts +0 -1
- package/dist/utils/helper.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/Chart/ChartSkeleton.d.ts +0 -23
- package/dist/components/Chart/ChartSkeleton.d.ts.map +0 -1
- package/dist/components/Chart/ChartSkeleton.js +0 -171
- package/dist/components/Skeleton/Skeleton.types.d.ts +0 -39
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +0 -1
- package/dist/components/Skeleton/index.d.ts +0 -13
- package/dist/components/Skeleton/index.d.ts.map +0 -1
- package/dist/components/Skeleton/index.js +0 -94
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".ia-skeleton{box-sizing:border-box;display:block;flex-shrink:0}.ia-skeleton--rectangular{border-radius:4px}.ia-skeleton--rounded{border-radius:8px}.ia-skeleton--circular{border-radius:50%}.ia-skeleton--text{height:12px}.ia-skeleton--pill,.ia-skeleton--text{border-radius:999px}.ia-skeleton__group{display:flex;flex-direction:column;gap:8px;width:100%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}}();
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
const VARIANT_CLASS = {
|
|
5
|
-
rectangular: "ia-skeleton--rectangular",
|
|
6
|
-
rounded: "ia-skeleton--rounded",
|
|
7
|
-
circular: "ia-skeleton--circular",
|
|
8
|
-
text: "ia-skeleton--text",
|
|
9
|
-
pill: "ia-skeleton--pill"
|
|
10
|
-
};
|
|
11
|
-
const SHIMMER_DIRECTIONS = ["ltr", "rtl", "btt", "ttb", "circular"];
|
|
12
|
-
const toCssSize = (value) => {
|
|
13
|
-
if (value === void 0 || value === null || value === "") return void 0;
|
|
14
|
-
return typeof value === "number" ? `${value}px` : value;
|
|
15
|
-
};
|
|
16
|
-
const getShimmerClass = (direction = "ltr") => {
|
|
17
|
-
const normalized = SHIMMER_DIRECTIONS.includes(direction) ? direction : "ltr";
|
|
18
|
-
return `ia-shimmer ia-shimmer--${normalized}`;
|
|
19
|
-
};
|
|
20
|
-
function Skeleton({
|
|
21
|
-
variant = "rectangular",
|
|
22
|
-
width,
|
|
23
|
-
height,
|
|
24
|
-
borderRadius,
|
|
25
|
-
direction = "ltr",
|
|
26
|
-
count = 1,
|
|
27
|
-
className = "",
|
|
28
|
-
style = {},
|
|
29
|
-
id,
|
|
30
|
-
"data-testid": dataTestId,
|
|
31
|
-
...rest
|
|
32
|
-
}) {
|
|
33
|
-
const variantClass = VARIANT_CLASS[variant] || VARIANT_CLASS.rectangular;
|
|
34
|
-
const shimmerClass = getShimmerClass(direction);
|
|
35
|
-
const itemStyle = {
|
|
36
|
-
width: toCssSize(width),
|
|
37
|
-
height: toCssSize(height),
|
|
38
|
-
...borderRadius !== void 0 && borderRadius !== null ? { borderRadius: toCssSize(borderRadius) } : {},
|
|
39
|
-
...style
|
|
40
|
-
};
|
|
41
|
-
if (variant === "circular") {
|
|
42
|
-
const size = itemStyle.width || itemStyle.height || "40px";
|
|
43
|
-
itemStyle.width = itemStyle.width || size;
|
|
44
|
-
itemStyle.height = itemStyle.height || size;
|
|
45
|
-
}
|
|
46
|
-
if (variant === "text" && !itemStyle.height) {
|
|
47
|
-
itemStyle.height = "12px";
|
|
48
|
-
}
|
|
49
|
-
if (!itemStyle.width && variant !== "circular") {
|
|
50
|
-
itemStyle.width = "100%";
|
|
51
|
-
}
|
|
52
|
-
if (!itemStyle.height && variant !== "circular" && variant !== "text") {
|
|
53
|
-
itemStyle.height = "16px";
|
|
54
|
-
}
|
|
55
|
-
const safeCount = Math.max(1, count);
|
|
56
|
-
const items = Array.from({ length: safeCount }, (_, index) => {
|
|
57
|
-
const isLast = index === safeCount - 1;
|
|
58
|
-
const lineStyle = safeCount > 1 && variant === "text" && isLast ? {
|
|
59
|
-
...itemStyle,
|
|
60
|
-
width: itemStyle.width === "100%" ? "70%" : itemStyle.width
|
|
61
|
-
} : itemStyle;
|
|
62
|
-
return /* @__PURE__ */ jsx(
|
|
63
|
-
"div",
|
|
64
|
-
{
|
|
65
|
-
"aria-hidden": "true",
|
|
66
|
-
className: `ia-skeleton ${variantClass} ${shimmerClass} ${className}`.trim(),
|
|
67
|
-
"data-testid": dataTestId,
|
|
68
|
-
id: safeCount === 1 ? id : void 0,
|
|
69
|
-
style: lineStyle,
|
|
70
|
-
...rest
|
|
71
|
-
},
|
|
72
|
-
`ia-skeleton-${index}`
|
|
73
|
-
);
|
|
74
|
-
});
|
|
75
|
-
if (safeCount > 1) {
|
|
76
|
-
return /* @__PURE__ */ jsx(
|
|
77
|
-
"div",
|
|
78
|
-
{
|
|
79
|
-
"aria-busy": "true",
|
|
80
|
-
"aria-live": "polite",
|
|
81
|
-
className: "ia-skeleton__group",
|
|
82
|
-
"data-testid": dataTestId,
|
|
83
|
-
id,
|
|
84
|
-
children: items
|
|
85
|
-
}
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
return items[0] ?? null;
|
|
89
|
-
}
|
|
90
|
-
Skeleton.displayName = "Skeleton";
|
|
91
|
-
export {
|
|
92
|
-
Skeleton,
|
|
93
|
-
getShimmerClass
|
|
94
|
-
};
|