@humu-tech/ui 0.4.0 → 0.5.0
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/index.d.mts +35 -25
- package/dist/index.d.ts +35 -25
- package/dist/index.js +386 -160
- package/dist/index.mjs +405 -173
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7835,6 +7835,7 @@ Switch.displayName = "Switch";
|
|
|
7835
7835
|
// src/primitives/Tabs/Tabs.tsx
|
|
7836
7836
|
var import_react59 = require("react");
|
|
7837
7837
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"));
|
|
7838
|
+
var import_lucide_react27 = require("lucide-react");
|
|
7838
7839
|
|
|
7839
7840
|
// src/primitives/Tabs/Tabs.styles.ts
|
|
7840
7841
|
var import_class_variance_authority15 = require("class-variance-authority");
|
|
@@ -7917,16 +7918,174 @@ var tabsContentStyles = (0, import_class_variance_authority15.cva)(
|
|
|
7917
7918
|
// src/primitives/Tabs/Tabs.tsx
|
|
7918
7919
|
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
7919
7920
|
var TabsVariantContext = (0, import_react59.createContext)("pill");
|
|
7920
|
-
var
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7921
|
+
var TabsValueContext = (0, import_react59.createContext)(null);
|
|
7922
|
+
var isTrigger = (child) => (0, import_react59.isValidElement)(child) && typeof child.props.value === "string";
|
|
7923
|
+
function pickVisible(values, widths, active, available, gap, moreWidth) {
|
|
7924
|
+
const width = (value) => widths.get(value) ?? 0;
|
|
7925
|
+
const total = values.reduce((sum, value) => sum + width(value), 0) + gap * Math.max(values.length - 1, 0);
|
|
7926
|
+
if (total <= available) return values;
|
|
7927
|
+
const room = available - moreWidth - gap;
|
|
7928
|
+
const activeIndex = active ? values.indexOf(active) : -1;
|
|
7929
|
+
let used = 0;
|
|
7930
|
+
const visible = [];
|
|
7931
|
+
for (const value of values) {
|
|
7932
|
+
const next = used + width(value) + (visible.length > 0 ? gap : 0);
|
|
7933
|
+
if (next > room) break;
|
|
7934
|
+
visible.push(value);
|
|
7935
|
+
used = next;
|
|
7936
|
+
}
|
|
7937
|
+
if (activeIndex >= 0 && !visible.includes(values[activeIndex])) {
|
|
7938
|
+
const activeValue = values[activeIndex];
|
|
7939
|
+
while (visible.length > 0 && used + width(activeValue) + gap > room) {
|
|
7940
|
+
const removed = visible.pop();
|
|
7941
|
+
used -= width(removed) + (visible.length > 0 ? gap : 0);
|
|
7928
7942
|
}
|
|
7929
|
-
|
|
7943
|
+
visible.push(activeValue);
|
|
7944
|
+
}
|
|
7945
|
+
return visible;
|
|
7946
|
+
}
|
|
7947
|
+
var List2 = (0, import_react59.forwardRef)(
|
|
7948
|
+
({
|
|
7949
|
+
className,
|
|
7950
|
+
variant = "pill",
|
|
7951
|
+
overflow = "none",
|
|
7952
|
+
moreLabel = "Mais",
|
|
7953
|
+
children,
|
|
7954
|
+
...props
|
|
7955
|
+
}, ref) => {
|
|
7956
|
+
const valueContext = (0, import_react59.useContext)(TabsValueContext);
|
|
7957
|
+
const active = valueContext?.value;
|
|
7958
|
+
const wrapperRef = (0, import_react59.useRef)(null);
|
|
7959
|
+
const moreRef = (0, import_react59.useRef)(null);
|
|
7960
|
+
const widthsRef = (0, import_react59.useRef)(/* @__PURE__ */ new Map());
|
|
7961
|
+
const moreWidthRef = (0, import_react59.useRef)(0);
|
|
7962
|
+
const childArray = import_react59.Children.toArray(children);
|
|
7963
|
+
const triggers = childArray.filter(isTrigger);
|
|
7964
|
+
const signature = triggers.map((trigger) => trigger.props.value).join("\0");
|
|
7965
|
+
const enabled = overflow === "menu" && triggers.length > 1;
|
|
7966
|
+
const layoutKey = `${signature}${active ?? ""}`;
|
|
7967
|
+
const [measuredKey, setMeasuredKey] = (0, import_react59.useState)(null);
|
|
7968
|
+
const [visibleValues, setVisibleValues] = (0, import_react59.useState)(null);
|
|
7969
|
+
const measuring = enabled && measuredKey !== layoutKey;
|
|
7970
|
+
(0, import_react59.useLayoutEffect)(() => {
|
|
7971
|
+
if (!measuring) return;
|
|
7972
|
+
const wrapper = wrapperRef.current;
|
|
7973
|
+
if (!wrapper) return;
|
|
7974
|
+
wrapper.querySelectorAll("[data-tab-value]").forEach((element) => {
|
|
7975
|
+
const value = element.dataset.tabValue;
|
|
7976
|
+
if (value) widthsRef.current.set(value, element.offsetWidth);
|
|
7977
|
+
});
|
|
7978
|
+
moreWidthRef.current = moreRef.current?.offsetWidth ?? 0;
|
|
7979
|
+
setMeasuredKey(layoutKey);
|
|
7980
|
+
}, [measuring, layoutKey]);
|
|
7981
|
+
(0, import_react59.useLayoutEffect)(() => {
|
|
7982
|
+
if (!enabled || measuring) return;
|
|
7983
|
+
const wrapper = wrapperRef.current;
|
|
7984
|
+
const list2 = wrapper?.firstElementChild;
|
|
7985
|
+
if (!wrapper || !(list2 instanceof HTMLElement)) return;
|
|
7986
|
+
const update = () => {
|
|
7987
|
+
const style = getComputedStyle(list2);
|
|
7988
|
+
const gap = parseFloat(style.columnGap) || 0;
|
|
7989
|
+
const padding = (parseFloat(style.paddingLeft) || 0) + (parseFloat(style.paddingRight) || 0) + (parseFloat(style.borderLeftWidth) || 0) + (parseFloat(style.borderRightWidth) || 0);
|
|
7990
|
+
const next = pickVisible(
|
|
7991
|
+
signature ? signature.split("\0") : [],
|
|
7992
|
+
widthsRef.current,
|
|
7993
|
+
active,
|
|
7994
|
+
wrapper.clientWidth - padding,
|
|
7995
|
+
gap,
|
|
7996
|
+
moreWidthRef.current
|
|
7997
|
+
);
|
|
7998
|
+
setVisibleValues(
|
|
7999
|
+
(previous) => previous && previous.join("\0") === next.join("\0") ? previous : next
|
|
8000
|
+
);
|
|
8001
|
+
};
|
|
8002
|
+
update();
|
|
8003
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
8004
|
+
const observer = new ResizeObserver(update);
|
|
8005
|
+
observer.observe(wrapper);
|
|
8006
|
+
return () => observer.disconnect();
|
|
8007
|
+
}, [enabled, measuring, signature, active]);
|
|
8008
|
+
const shown = !enabled || measuring || !visibleValues ? null : new Set(visibleValues);
|
|
8009
|
+
const hidden = shown ? triggers.filter((trigger) => !shown.has(trigger.props.value)) : [];
|
|
8010
|
+
const showMore = enabled && (measuring || hidden.length > 0);
|
|
8011
|
+
const hiddenHasError = hidden.some((trigger) => trigger.props.hasError);
|
|
8012
|
+
const moreClassName = cn(
|
|
8013
|
+
variant === "underline" ? tabsUnderlineTriggerStyles() : tabsTriggerStyles({ tone: "brand" }),
|
|
8014
|
+
"data-[state=open]:text-humu-content-title"
|
|
8015
|
+
);
|
|
8016
|
+
const more = showMore ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(Dropdown, { children: [
|
|
8017
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Dropdown.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
8018
|
+
"button",
|
|
8019
|
+
{
|
|
8020
|
+
ref: moreRef,
|
|
8021
|
+
type: "button",
|
|
8022
|
+
className: moreClassName,
|
|
8023
|
+
"aria-label": hiddenHasError ? `${moreLabel}, com erro` : void 0,
|
|
8024
|
+
children: [
|
|
8025
|
+
moreLabel,
|
|
8026
|
+
hiddenHasError && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8027
|
+
"span",
|
|
8028
|
+
{
|
|
8029
|
+
"aria-hidden": "true",
|
|
8030
|
+
className: "inline-block size-1.5 shrink-0 rounded-full bg-humu-status-background-error"
|
|
8031
|
+
}
|
|
8032
|
+
),
|
|
8033
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(import_lucide_react27.ChevronDownIcon, { "aria-hidden": "true" })
|
|
8034
|
+
]
|
|
8035
|
+
}
|
|
8036
|
+
) }),
|
|
8037
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Dropdown.Content, { align: "end", className: "min-w-48 gap-0.5 p-1", children: hidden.map((trigger) => /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
8038
|
+
Dropdown.Item,
|
|
8039
|
+
{
|
|
8040
|
+
disabled: trigger.props.disabled,
|
|
8041
|
+
onSelect: () => valueContext?.setValue(trigger.props.value),
|
|
8042
|
+
className: "text-humu-body-xs [&_svg]:size-4",
|
|
8043
|
+
children: [
|
|
8044
|
+
trigger.props.icon && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { "aria-hidden": "true", className: "flex", children: trigger.props.icon }),
|
|
8045
|
+
trigger.props.children,
|
|
8046
|
+
trigger.props.count !== void 0 && trigger.props.count !== null && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: tabsUnderlineCountStyles(), children: trigger.props.count }),
|
|
8047
|
+
trigger.props.hasError && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
8048
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8049
|
+
"span",
|
|
8050
|
+
{
|
|
8051
|
+
"aria-hidden": "true",
|
|
8052
|
+
className: "inline-block size-1.5 shrink-0 rounded-full bg-humu-status-background-error"
|
|
8053
|
+
}
|
|
8054
|
+
),
|
|
8055
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "sr-only", children: `, ${trigger.props.errorLabel ?? "com erro"}` })
|
|
8056
|
+
] })
|
|
8057
|
+
]
|
|
8058
|
+
},
|
|
8059
|
+
trigger.props.value
|
|
8060
|
+
)) })
|
|
8061
|
+
] }) : null;
|
|
8062
|
+
const list = /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8063
|
+
TabsPrimitive.List,
|
|
8064
|
+
{
|
|
8065
|
+
ref,
|
|
8066
|
+
"data-variant": variant,
|
|
8067
|
+
className: cn(tabsListStyles({ variant }), className),
|
|
8068
|
+
...props,
|
|
8069
|
+
children: childArray.map(
|
|
8070
|
+
(child) => isTrigger(child) && shown && !shown.has(child.props.value) ? null : child
|
|
8071
|
+
)
|
|
8072
|
+
}
|
|
8073
|
+
);
|
|
8074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TabsVariantContext.Provider, { value: variant, children: enabled ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
8075
|
+
"div",
|
|
8076
|
+
{
|
|
8077
|
+
ref: wrapperRef,
|
|
8078
|
+
className: cn(
|
|
8079
|
+
"flex w-full min-w-0 items-center",
|
|
8080
|
+
variant === "pill" && "gap-1"
|
|
8081
|
+
),
|
|
8082
|
+
children: [
|
|
8083
|
+
list,
|
|
8084
|
+
more
|
|
8085
|
+
]
|
|
8086
|
+
}
|
|
8087
|
+
) : list });
|
|
8088
|
+
}
|
|
7930
8089
|
);
|
|
7931
8090
|
List2.displayName = "Tabs.List";
|
|
7932
8091
|
var Trigger12 = (0, import_react59.forwardRef)(
|
|
@@ -7951,41 +8110,51 @@ var Trigger12 = (0, import_react59.forwardRef)(
|
|
|
7951
8110
|
TabsPrimitive.Trigger,
|
|
7952
8111
|
{
|
|
7953
8112
|
ref,
|
|
8113
|
+
"data-tab-value": props.value,
|
|
7954
8114
|
className: triggerClassName,
|
|
7955
8115
|
...props,
|
|
7956
8116
|
children
|
|
7957
8117
|
}
|
|
7958
8118
|
);
|
|
7959
8119
|
}
|
|
7960
|
-
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
|
|
8120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
8121
|
+
TabsPrimitive.Trigger,
|
|
8122
|
+
{
|
|
8123
|
+
ref,
|
|
8124
|
+
"data-tab-value": props.value,
|
|
8125
|
+
className: triggerClassName,
|
|
8126
|
+
...props,
|
|
8127
|
+
children: [
|
|
8128
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8129
|
+
"span",
|
|
8130
|
+
{
|
|
8131
|
+
"aria-hidden": "true",
|
|
8132
|
+
className: underline ? "flex" : tabsTriggerIconStyles({ tone }),
|
|
8133
|
+
children: icon
|
|
8134
|
+
}
|
|
8135
|
+
),
|
|
8136
|
+
children,
|
|
8137
|
+
count !== void 0 && count !== null && /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8138
|
+
"span",
|
|
8139
|
+
{
|
|
8140
|
+
className: underline ? tabsUnderlineCountStyles() : tabsTriggerCountStyles({ tone }),
|
|
8141
|
+
children: count
|
|
8142
|
+
}
|
|
8143
|
+
),
|
|
8144
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(import_jsx_runtime69.Fragment, { children: [
|
|
8145
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8146
|
+
"span",
|
|
8147
|
+
{
|
|
8148
|
+
"aria-hidden": "true",
|
|
8149
|
+
"data-tab-error": "",
|
|
8150
|
+
className: "inline-block size-1.5 shrink-0 rounded-full bg-humu-status-background-error"
|
|
8151
|
+
}
|
|
8152
|
+
),
|
|
8153
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: "sr-only", children: `, ${errorLabel}` })
|
|
8154
|
+
] })
|
|
8155
|
+
]
|
|
8156
|
+
}
|
|
8157
|
+
);
|
|
7989
8158
|
}
|
|
7990
8159
|
);
|
|
7991
8160
|
Trigger12.displayName = "Tabs.Trigger";
|
|
@@ -7998,15 +8167,33 @@ var Content12 = (0, import_react59.forwardRef)(({ className, ...props }, ref) =>
|
|
|
7998
8167
|
}
|
|
7999
8168
|
));
|
|
8000
8169
|
Content12.displayName = "Tabs.Content";
|
|
8001
|
-
function TabsRoot({
|
|
8002
|
-
|
|
8170
|
+
function TabsRoot({
|
|
8171
|
+
children,
|
|
8172
|
+
className,
|
|
8173
|
+
value,
|
|
8174
|
+
defaultValue,
|
|
8175
|
+
onValueChange,
|
|
8176
|
+
...props
|
|
8177
|
+
}) {
|
|
8178
|
+
const [innerValue, setInnerValue] = (0, import_react59.useState)(defaultValue);
|
|
8179
|
+
const current = value ?? innerValue;
|
|
8180
|
+
const setValue = (0, import_react59.useCallback)(
|
|
8181
|
+
(next) => {
|
|
8182
|
+
if (value === void 0) setInnerValue(next);
|
|
8183
|
+
onValueChange?.(next);
|
|
8184
|
+
},
|
|
8185
|
+
[value, onValueChange]
|
|
8186
|
+
);
|
|
8187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(TabsValueContext.Provider, { value: { value: current, setValue }, children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
8003
8188
|
TabsPrimitive.Root,
|
|
8004
8189
|
{
|
|
8005
8190
|
className: cn("group/tabs w-full", className),
|
|
8191
|
+
value: current,
|
|
8192
|
+
onValueChange: setValue,
|
|
8006
8193
|
...props,
|
|
8007
8194
|
children
|
|
8008
8195
|
}
|
|
8009
|
-
);
|
|
8196
|
+
) });
|
|
8010
8197
|
}
|
|
8011
8198
|
TabsRoot.displayName = "Tabs";
|
|
8012
8199
|
var Tabs = Object.assign(TabsRoot, {
|
|
@@ -8017,7 +8204,7 @@ var Tabs = Object.assign(TabsRoot, {
|
|
|
8017
8204
|
|
|
8018
8205
|
// src/primitives/ThemeToggle/ThemeToggle.tsx
|
|
8019
8206
|
var import_react60 = require("react");
|
|
8020
|
-
var
|
|
8207
|
+
var import_lucide_react28 = require("lucide-react");
|
|
8021
8208
|
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
8022
8209
|
var sizeClass2 = {
|
|
8023
8210
|
sm: "size-7",
|
|
@@ -8037,17 +8224,17 @@ var NEXT_LABEL = {
|
|
|
8037
8224
|
var ICONS = [
|
|
8038
8225
|
{
|
|
8039
8226
|
preference: "light",
|
|
8040
|
-
Icon:
|
|
8227
|
+
Icon: import_lucide_react28.SunIcon,
|
|
8041
8228
|
hidden: "-rotate-90 scale-50 opacity-0"
|
|
8042
8229
|
},
|
|
8043
8230
|
{
|
|
8044
8231
|
preference: "dark",
|
|
8045
|
-
Icon:
|
|
8232
|
+
Icon: import_lucide_react28.MoonIcon,
|
|
8046
8233
|
hidden: "rotate-90 scale-50 opacity-0"
|
|
8047
8234
|
},
|
|
8048
8235
|
{
|
|
8049
8236
|
preference: "system",
|
|
8050
|
-
Icon:
|
|
8237
|
+
Icon: import_lucide_react28.MonitorIcon,
|
|
8051
8238
|
hidden: "rotate-90 scale-50 opacity-0"
|
|
8052
8239
|
}
|
|
8053
8240
|
];
|
|
@@ -8428,7 +8615,7 @@ function useToast() {
|
|
|
8428
8615
|
}
|
|
8429
8616
|
|
|
8430
8617
|
// src/primitives/TitleSelect/TitleSelect.tsx
|
|
8431
|
-
var
|
|
8618
|
+
var import_lucide_react29 = require("lucide-react");
|
|
8432
8619
|
var import_react65 = require("react");
|
|
8433
8620
|
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
8434
8621
|
var labelClass2 = "truncate text-humu-body-xxs font-semibold uppercase";
|
|
@@ -8484,7 +8671,7 @@ var TitleSelect = (0, import_react65.forwardRef)(
|
|
|
8484
8671
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: labelClass2, children: current?.label }),
|
|
8485
8672
|
ariaLabel && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { className: "sr-only", children: `, ${ariaLabel}` }),
|
|
8486
8673
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8487
|
-
|
|
8674
|
+
import_lucide_react29.ChevronDownIcon,
|
|
8488
8675
|
{
|
|
8489
8676
|
className: "size-4 shrink-0 transition-transform duration-humu-normal group-data-[state=open]/title:rotate-180 motion-reduce:transition-none",
|
|
8490
8677
|
"aria-hidden": "true"
|
|
@@ -8503,7 +8690,7 @@ var TitleSelect = (0, import_react65.forwardRef)(
|
|
|
8503
8690
|
className: "justify-between gap-4",
|
|
8504
8691
|
children: [
|
|
8505
8692
|
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("span", { children: option.label }),
|
|
8506
|
-
selected && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
8693
|
+
selected && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_lucide_react29.CheckIcon, { className: "size-4 shrink-0", "aria-hidden": "true" })
|
|
8507
8694
|
]
|
|
8508
8695
|
},
|
|
8509
8696
|
option.value
|
|
@@ -8515,10 +8702,10 @@ var TitleSelect = (0, import_react65.forwardRef)(
|
|
|
8515
8702
|
TitleSelect.displayName = "TitleSelect";
|
|
8516
8703
|
|
|
8517
8704
|
// src/patterns/AppShell/AppShell.tsx
|
|
8518
|
-
var
|
|
8705
|
+
var import_lucide_react32 = require("lucide-react");
|
|
8519
8706
|
|
|
8520
8707
|
// src/patterns/Sidebar/Sidebar.tsx
|
|
8521
|
-
var
|
|
8708
|
+
var import_lucide_react30 = require("lucide-react");
|
|
8522
8709
|
var import_react66 = require("react");
|
|
8523
8710
|
var import_Sidebar = require("./Sidebar-RBBNUVDV.css");
|
|
8524
8711
|
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
@@ -8721,7 +8908,7 @@ var Sidebar = (0, import_react66.forwardRef)(function Sidebar2({
|
|
|
8721
8908
|
"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-humu-focus"
|
|
8722
8909
|
),
|
|
8723
8910
|
children: [
|
|
8724
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { "aria-hidden": "true", className: "flex shrink-0 items-center", children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8911
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { "aria-hidden": "true", className: "flex shrink-0 items-center", children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_lucide_react30.ChevronsLeftRightIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_lucide_react30.ChevronsRightLeftIcon, {}) }),
|
|
8725
8912
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("span", { className: collapsed ? "sr-only" : "flex-1 text-left", children: toggleLabel })
|
|
8726
8913
|
]
|
|
8727
8914
|
}
|
|
@@ -8738,10 +8925,10 @@ var Sidebar = (0, import_react66.forwardRef)(function Sidebar2({
|
|
|
8738
8925
|
style: { width: collapsed ? collapsedWidth : expandedWidth, ...style },
|
|
8739
8926
|
...rest,
|
|
8740
8927
|
children: [
|
|
8741
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex h-20 shrink-0 items-center border-b border-humu-background-border px-8", children: header }),
|
|
8928
|
+
header && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex h-20 shrink-0 items-center border-b border-humu-background-border px-8", children: header }),
|
|
8742
8929
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "humu-sidebar-nav flex min-h-0 flex-1 flex-col overflow-y-auto", children: [
|
|
8743
8930
|
/* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("nav", { className: "flex flex-1 flex-col", children: [
|
|
8744
|
-
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col gap-6 pt-6", children: topGroups.map((group, idx) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8931
|
+
/* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: cn("flex flex-col gap-6", header ? "pt-6" : "pt-4"), children: topGroups.map((group, idx) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
8745
8932
|
GroupItems,
|
|
8746
8933
|
{
|
|
8747
8934
|
group,
|
|
@@ -8787,6 +8974,8 @@ var Sidebar = (0, import_react66.forwardRef)(function Sidebar2({
|
|
|
8787
8974
|
var import_react67 = require("react");
|
|
8788
8975
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
8789
8976
|
var Topbar = (0, import_react67.forwardRef)(function Topbar2({
|
|
8977
|
+
brandSlot,
|
|
8978
|
+
compactBrandSlot,
|
|
8790
8979
|
pageTitle,
|
|
8791
8980
|
searchTrigger,
|
|
8792
8981
|
notificationCenter,
|
|
@@ -8796,6 +8985,7 @@ var Topbar = (0, import_react67.forwardRef)(function Topbar2({
|
|
|
8796
8985
|
className,
|
|
8797
8986
|
...props
|
|
8798
8987
|
}, ref) {
|
|
8988
|
+
const hasBrand = Boolean(brandSlot);
|
|
8799
8989
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
8800
8990
|
"header",
|
|
8801
8991
|
{
|
|
@@ -8803,16 +8993,30 @@ var Topbar = (0, import_react67.forwardRef)(function Topbar2({
|
|
|
8803
8993
|
role: "banner",
|
|
8804
8994
|
"aria-label": ariaLabel,
|
|
8805
8995
|
className: cn(
|
|
8806
|
-
"z-30 flex h-20 shrink-0 items-center
|
|
8996
|
+
"z-30 flex h-20 shrink-0 items-center border-b border-humu-background-border bg-humu-background-surface font-humu-ibm-plex-sans",
|
|
8997
|
+
hasBrand ? "gap-4 pr-4 sm:pr-6" : "gap-6 px-6",
|
|
8807
8998
|
className
|
|
8808
8999
|
),
|
|
8809
9000
|
...props,
|
|
8810
9001
|
children: [
|
|
8811
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.
|
|
8812
|
-
|
|
8813
|
-
|
|
8814
|
-
] }),
|
|
8815
|
-
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
9002
|
+
hasBrand && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "flex h-full shrink-0 items-center pl-4 sm:px-8", children: compactBrandSlot ? /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
9003
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "flex items-center md:hidden", children: compactBrandSlot }),
|
|
9004
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("span", { className: "hidden items-center md:flex", children: brandSlot })
|
|
9005
|
+
] }) : brandSlot }),
|
|
9006
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(
|
|
9007
|
+
"div",
|
|
9008
|
+
{
|
|
9009
|
+
className: cn(
|
|
9010
|
+
"flex min-w-0 flex-1 items-center gap-6",
|
|
9011
|
+
hasBrand && "justify-center"
|
|
9012
|
+
),
|
|
9013
|
+
children: [
|
|
9014
|
+
pageTitle && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("h2", { className: "truncate text-humu-heading-xm font-bold text-humu-content-title", children: pageTitle }),
|
|
9015
|
+
searchTrigger
|
|
9016
|
+
]
|
|
9017
|
+
}
|
|
9018
|
+
),
|
|
9019
|
+
/* @__PURE__ */ (0, import_jsx_runtime78.jsxs)("div", { className: "flex shrink-0 items-center gap-2 sm:gap-4", children: [
|
|
8816
9020
|
notificationCenter,
|
|
8817
9021
|
themeToggle,
|
|
8818
9022
|
userMenu
|
|
@@ -8824,31 +9028,53 @@ var Topbar = (0, import_react67.forwardRef)(function Topbar2({
|
|
|
8824
9028
|
Topbar.displayName = "Topbar";
|
|
8825
9029
|
|
|
8826
9030
|
// src/patterns/Topbar/TopbarButtons.tsx
|
|
8827
|
-
var
|
|
9031
|
+
var import_lucide_react31 = require("lucide-react");
|
|
8828
9032
|
var import_react68 = require("react");
|
|
8829
9033
|
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
8830
9034
|
var TopbarSearchButton = (0, import_react68.forwardRef)(
|
|
8831
9035
|
({
|
|
8832
9036
|
placeholder = "Buscar cliente, opera\xE7\xE3o ou organiza\xE7\xE3o...",
|
|
9037
|
+
shortcutKeys,
|
|
8833
9038
|
className,
|
|
8834
9039
|
type = "button",
|
|
8835
9040
|
...props
|
|
8836
|
-
}, ref) =>
|
|
8837
|
-
|
|
8838
|
-
|
|
8839
|
-
|
|
8840
|
-
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
className
|
|
8844
|
-
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
9041
|
+
}, ref) => {
|
|
9042
|
+
const hasShortcut = Boolean(shortcutKeys?.length);
|
|
9043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
9044
|
+
"button",
|
|
9045
|
+
{
|
|
9046
|
+
ref,
|
|
9047
|
+
type,
|
|
9048
|
+
className: cn(
|
|
9049
|
+
"inline-flex h-10 max-w-full items-center gap-2 rounded-humu-md bg-humu-background-interaction-hover-tabs pl-3.5 text-left text-humu-body-xs font-medium text-humu-content-subtitle transition-colors duration-humu-fast hover:bg-humu-background-interaction-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-humu-focus motion-reduce:transition-none",
|
|
9050
|
+
hasShortcut ? "w-[424px] pr-4" : "w-[346px] pr-3.5",
|
|
9051
|
+
className
|
|
9052
|
+
),
|
|
9053
|
+
...props,
|
|
9054
|
+
children: [
|
|
9055
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsxs)("span", { className: "flex min-w-0 flex-1 items-center gap-4", children: [
|
|
9056
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_lucide_react31.SearchIcon, { className: "size-6 shrink-0", "aria-hidden": "true" }),
|
|
9057
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)("span", { className: "truncate", children: placeholder })
|
|
9058
|
+
] }),
|
|
9059
|
+
hasShortcut && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
9060
|
+
"span",
|
|
9061
|
+
{
|
|
9062
|
+
"aria-hidden": "true",
|
|
9063
|
+
className: "hidden shrink-0 items-center gap-1 md:flex",
|
|
9064
|
+
children: shortcutKeys?.map((key) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
9065
|
+
"kbd",
|
|
9066
|
+
{
|
|
9067
|
+
className: "inline-flex h-5 min-w-5 items-center justify-center rounded-humu-sm bg-humu-content-subtitle/15 px-1 font-humu-ibm-plex-sans text-humu-body-xxs font-normal text-humu-content-subtitle",
|
|
9068
|
+
children: key
|
|
9069
|
+
},
|
|
9070
|
+
key
|
|
9071
|
+
))
|
|
9072
|
+
}
|
|
9073
|
+
)
|
|
9074
|
+
]
|
|
9075
|
+
}
|
|
9076
|
+
);
|
|
9077
|
+
}
|
|
8852
9078
|
);
|
|
8853
9079
|
TopbarSearchButton.displayName = "TopbarSearchButton";
|
|
8854
9080
|
var TopbarIconButton = (0, import_react68.forwardRef)(({ className, type = "button", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
@@ -8874,55 +9100,55 @@ var DEFAULT_GROUPS = [
|
|
|
8874
9100
|
{
|
|
8875
9101
|
id: "home",
|
|
8876
9102
|
label: "P\xE1gina inicial",
|
|
8877
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9103
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.HouseIcon, { size: 20 }),
|
|
8878
9104
|
to: "/"
|
|
8879
9105
|
},
|
|
8880
9106
|
{
|
|
8881
9107
|
id: "users",
|
|
8882
9108
|
label: "Usu\xE1rios",
|
|
8883
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9109
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.UsersIcon, { size: 20 }),
|
|
8884
9110
|
to: "/users"
|
|
8885
9111
|
},
|
|
8886
9112
|
{
|
|
8887
9113
|
id: "orgs",
|
|
8888
9114
|
label: "Organiza\xE7\xF5es",
|
|
8889
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9115
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.Building2Icon, { size: 20 }),
|
|
8890
9116
|
to: "/organizations"
|
|
8891
9117
|
},
|
|
8892
9118
|
{
|
|
8893
9119
|
id: "configs-op",
|
|
8894
9120
|
label: "Configs Opera\xE7\xE3o",
|
|
8895
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9121
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.BriefcaseIcon, { size: 20 }),
|
|
8896
9122
|
to: "/configs/operation"
|
|
8897
9123
|
},
|
|
8898
9124
|
{
|
|
8899
9125
|
id: "clients",
|
|
8900
9126
|
label: "Clientes",
|
|
8901
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9127
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.UsersRoundIcon, { size: 20 }),
|
|
8902
9128
|
to: "/clients"
|
|
8903
9129
|
},
|
|
8904
9130
|
{
|
|
8905
9131
|
id: "requests",
|
|
8906
9132
|
label: "Requisi\xE7\xF5es",
|
|
8907
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9133
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.SendIcon, { size: 20 }),
|
|
8908
9134
|
to: "/requests"
|
|
8909
9135
|
},
|
|
8910
9136
|
{
|
|
8911
9137
|
id: "operations",
|
|
8912
9138
|
label: "Opera\xE7\xF5es",
|
|
8913
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9139
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.ReceiptIcon, { size: 20 }),
|
|
8914
9140
|
to: "/operations"
|
|
8915
9141
|
},
|
|
8916
9142
|
{
|
|
8917
9143
|
id: "finance",
|
|
8918
9144
|
label: "Financeiro",
|
|
8919
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9145
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.CoinsIcon, { size: 20 }),
|
|
8920
9146
|
to: "/finance"
|
|
8921
9147
|
},
|
|
8922
9148
|
{
|
|
8923
9149
|
id: "configurations",
|
|
8924
9150
|
label: "Configura\xE7\xF5es",
|
|
8925
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9151
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.SettingsIcon, { size: 20 }),
|
|
8926
9152
|
to: "/configurations"
|
|
8927
9153
|
}
|
|
8928
9154
|
]
|
|
@@ -8933,7 +9159,7 @@ var DEFAULT_GROUPS = [
|
|
|
8933
9159
|
{
|
|
8934
9160
|
id: "tutorials",
|
|
8935
9161
|
label: "Tutoriais",
|
|
8936
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
9162
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_lucide_react32.GraduationCapIcon, { size: 20 }),
|
|
8937
9163
|
to: "/tutorials"
|
|
8938
9164
|
}
|
|
8939
9165
|
]
|
|
@@ -8955,7 +9181,7 @@ function AppShell({
|
|
|
8955
9181
|
collapsedHeaderSlot,
|
|
8956
9182
|
defaultSidebarCollapsed = false
|
|
8957
9183
|
}) {
|
|
8958
|
-
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex h-screen overflow-hidden bg-humu-background-base text-humu-content-title", children: [
|
|
9184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex h-screen flex-col overflow-hidden bg-humu-background-base text-humu-content-title", children: [
|
|
8959
9185
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
8960
9186
|
"a",
|
|
8961
9187
|
{
|
|
@@ -8965,25 +9191,25 @@ function AppShell({
|
|
|
8965
9191
|
}
|
|
8966
9192
|
),
|
|
8967
9193
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
8968
|
-
|
|
9194
|
+
Topbar,
|
|
8969
9195
|
{
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
9196
|
+
brandSlot: headerSlot ?? DEFAULT_HEADER_SLOT,
|
|
9197
|
+
compactBrandSlot: collapsedHeaderSlot ?? (headerSlot ? void 0 : DEFAULT_COLLAPSED_HEADER_SLOT),
|
|
9198
|
+
pageTitle,
|
|
9199
|
+
searchTrigger,
|
|
9200
|
+
notificationCenter,
|
|
9201
|
+
themeToggle,
|
|
9202
|
+
userMenu
|
|
8976
9203
|
}
|
|
8977
9204
|
),
|
|
8978
|
-
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex min-h-0 min-w-0 flex-1
|
|
9205
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsxs)("div", { className: "flex min-h-0 min-w-0 flex-1", children: [
|
|
8979
9206
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
8980
|
-
|
|
9207
|
+
Sidebar,
|
|
8981
9208
|
{
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
userMenu
|
|
9209
|
+
groups: sidebarGroups ?? DEFAULT_GROUPS,
|
|
9210
|
+
currentPath,
|
|
9211
|
+
linkComponent,
|
|
9212
|
+
defaultCollapsed: defaultSidebarCollapsed
|
|
8987
9213
|
}
|
|
8988
9214
|
),
|
|
8989
9215
|
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
@@ -9003,7 +9229,7 @@ AppShell.displayName = "AppShell";
|
|
|
9003
9229
|
|
|
9004
9230
|
// src/patterns/KpiHero/KpiHero.tsx
|
|
9005
9231
|
var import_react69 = require("react");
|
|
9006
|
-
var
|
|
9232
|
+
var import_lucide_react33 = require("lucide-react");
|
|
9007
9233
|
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
9008
9234
|
var resolveTone = (tone) => tone === "warn" ? "warning" : tone === "danger" ? "error" : tone;
|
|
9009
9235
|
var iconClass = {
|
|
@@ -9039,9 +9265,9 @@ var trendToneClass = {
|
|
|
9039
9265
|
flat: "bg-humu-background-base text-humu-content-subtitle"
|
|
9040
9266
|
};
|
|
9041
9267
|
var arrowIcon2 = {
|
|
9042
|
-
up: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
9043
|
-
down: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
9044
|
-
flat: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(
|
|
9268
|
+
up: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_lucide_react33.ArrowUpIcon, { className: "size-3", "aria-hidden": "true" }),
|
|
9269
|
+
down: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_lucide_react33.ArrowDownIcon, { className: "size-3", "aria-hidden": "true" }),
|
|
9270
|
+
flat: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_lucide_react33.MinusIcon, { className: "size-3", "aria-hidden": "true" })
|
|
9045
9271
|
};
|
|
9046
9272
|
function buildSparklinePaths(data) {
|
|
9047
9273
|
const width = 100;
|
|
@@ -9350,7 +9576,7 @@ var import_react71 = require("react");
|
|
|
9350
9576
|
|
|
9351
9577
|
// src/patterns/SortableColumnHeader/SortableColumnHeader.tsx
|
|
9352
9578
|
var import_react70 = require("react");
|
|
9353
|
-
var
|
|
9579
|
+
var import_lucide_react34 = require("lucide-react");
|
|
9354
9580
|
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
9355
9581
|
function nextDirection(current, cycleMode) {
|
|
9356
9582
|
if (cycleMode === "asc-desc") {
|
|
@@ -9395,8 +9621,8 @@ var SortableColumnHeader = (0, import_react70.forwardRef)(
|
|
|
9395
9621
|
...props,
|
|
9396
9622
|
children: [
|
|
9397
9623
|
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)("span", { children: label }),
|
|
9398
|
-
direction === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9399
|
-
|
|
9624
|
+
direction === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_lucide_react34.ChevronUpIcon, { className: "size-4", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_lucide_react34.ChevronDownIcon, { className: "size-4", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
9625
|
+
import_lucide_react34.ChevronsUpDownIcon,
|
|
9400
9626
|
{
|
|
9401
9627
|
className: "size-4 text-humu-content-body-text",
|
|
9402
9628
|
"aria-hidden": "true"
|
|
@@ -9561,7 +9787,7 @@ var DataTable = (0, import_react71.forwardRef)(
|
|
|
9561
9787
|
|
|
9562
9788
|
// src/patterns/DataTable/DataTableCells.tsx
|
|
9563
9789
|
var import_react_slot3 = require("@radix-ui/react-slot");
|
|
9564
|
-
var
|
|
9790
|
+
var import_lucide_react35 = require("lucide-react");
|
|
9565
9791
|
var import_react72 = require("react");
|
|
9566
9792
|
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
9567
9793
|
var DataTableTextCell = (0, import_react72.forwardRef)(({ title, info, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)("div", { ref, className: cn("flex flex-col", className), ...props, children: [
|
|
@@ -9583,7 +9809,7 @@ var DataTableLinkCell = (0, import_react72.forwardRef)(({ hideIcon, asChild = fa
|
|
|
9583
9809
|
children: [
|
|
9584
9810
|
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(import_react_slot3.Slottable, { children }),
|
|
9585
9811
|
!hideIcon && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
9586
|
-
|
|
9812
|
+
import_lucide_react35.SquareArrowOutUpRightIcon,
|
|
9587
9813
|
{
|
|
9588
9814
|
className: "size-5 shrink-0",
|
|
9589
9815
|
"aria-hidden": "true"
|
|
@@ -9626,7 +9852,7 @@ DataTableActionButton.displayName = "DataTableActionButton";
|
|
|
9626
9852
|
|
|
9627
9853
|
// src/patterns/DataTablePagination/DataTablePagination.tsx
|
|
9628
9854
|
var import_react73 = require("react");
|
|
9629
|
-
var
|
|
9855
|
+
var import_lucide_react36 = require("lucide-react");
|
|
9630
9856
|
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
9631
9857
|
var DEFAULT_PER_PAGE_OPTIONS = [5, 10, 20, 30, 50, 70, 100];
|
|
9632
9858
|
var pageBoxStyles = "inline-flex size-[34px] items-center justify-center rounded-humu-md border border-humu-background-border text-humu-body-xs tabular-nums transition-colors duration-humu-fast motion-reduce:transition-none focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-humu-focus [&_svg]:size-4";
|
|
@@ -9703,7 +9929,7 @@ var DataTablePagination = (0, import_react73.forwardRef)(
|
|
|
9703
9929
|
className: "inline-flex h-[34px] items-center gap-1 rounded-humu-md border border-humu-background-border bg-humu-background-surface px-3 text-humu-body-xs text-humu-content-title transition-colors duration-humu-fast motion-reduce:transition-none hover:bg-humu-background-interaction-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-humu-focus",
|
|
9704
9930
|
children: [
|
|
9705
9931
|
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)("span", { className: "tabular-nums", children: perPage }),
|
|
9706
|
-
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9932
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_lucide_react36.ChevronDownIcon, { className: "size-4", "aria-hidden": "true" })
|
|
9707
9933
|
]
|
|
9708
9934
|
}
|
|
9709
9935
|
) }),
|
|
@@ -9725,7 +9951,7 @@ var DataTablePagination = (0, import_react73.forwardRef)(
|
|
|
9725
9951
|
),
|
|
9726
9952
|
children: [
|
|
9727
9953
|
opt,
|
|
9728
|
-
selected && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
9954
|
+
selected && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_lucide_react36.CheckIcon, { className: "size-3", "aria-hidden": "true" })
|
|
9729
9955
|
]
|
|
9730
9956
|
}
|
|
9731
9957
|
) }, opt);
|
|
@@ -9783,7 +10009,7 @@ var DataTablePagination = (0, import_react73.forwardRef)(
|
|
|
9783
10009
|
disabled: page <= 1,
|
|
9784
10010
|
onClick: () => onPageChange(page - 1),
|
|
9785
10011
|
className: pageButtonStyles,
|
|
9786
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
10012
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_lucide_react36.ChevronLeftIcon, { "aria-hidden": "true" })
|
|
9787
10013
|
}
|
|
9788
10014
|
) }),
|
|
9789
10015
|
pages.map(
|
|
@@ -9822,7 +10048,7 @@ var DataTablePagination = (0, import_react73.forwardRef)(
|
|
|
9822
10048
|
disabled: page >= totalPages,
|
|
9823
10049
|
onClick: () => onPageChange(page + 1),
|
|
9824
10050
|
className: pageButtonStyles,
|
|
9825
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
|
|
10051
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(import_lucide_react36.ChevronRightIcon, { "aria-hidden": "true" })
|
|
9826
10052
|
}
|
|
9827
10053
|
) })
|
|
9828
10054
|
] })
|
|
@@ -9835,7 +10061,7 @@ var DataTablePagination = (0, import_react73.forwardRef)(
|
|
|
9835
10061
|
DataTablePagination.displayName = "DataTablePagination";
|
|
9836
10062
|
|
|
9837
10063
|
// src/patterns/ReadOnlyDataView/ReadOnlyDataView.tsx
|
|
9838
|
-
var
|
|
10064
|
+
var import_lucide_react37 = require("lucide-react");
|
|
9839
10065
|
var import_react74 = require("react");
|
|
9840
10066
|
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
9841
10067
|
function formatDate(value, format3) {
|
|
@@ -9924,20 +10150,20 @@ function ReadOnlyDataView({
|
|
|
9924
10150
|
children: [
|
|
9925
10151
|
column.label,
|
|
9926
10152
|
isSorted ? sortValue?.direction === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9927
|
-
|
|
10153
|
+
import_lucide_react37.ChevronUpIcon,
|
|
9928
10154
|
{
|
|
9929
10155
|
size: 12,
|
|
9930
10156
|
strokeWidth: 2.5,
|
|
9931
10157
|
"aria-hidden": "true"
|
|
9932
10158
|
}
|
|
9933
10159
|
) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
9934
|
-
|
|
10160
|
+
import_lucide_react37.ChevronDownIcon,
|
|
9935
10161
|
{
|
|
9936
10162
|
size: 12,
|
|
9937
10163
|
strokeWidth: 2.5,
|
|
9938
10164
|
"aria-hidden": "true"
|
|
9939
10165
|
}
|
|
9940
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
|
|
10166
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_lucide_react37.ChevronsUpDownIcon, { size: 12, "aria-hidden": "true" })
|
|
9941
10167
|
]
|
|
9942
10168
|
}
|
|
9943
10169
|
) : column.label
|
|
@@ -10045,7 +10271,7 @@ function renderCell(column, row) {
|
|
|
10045
10271
|
|
|
10046
10272
|
// src/patterns/NotificationCenter/NotificationCenter.tsx
|
|
10047
10273
|
var import_react75 = require("react");
|
|
10048
|
-
var
|
|
10274
|
+
var import_lucide_react38 = require("lucide-react");
|
|
10049
10275
|
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
10050
10276
|
var severityDotClass = {
|
|
10051
10277
|
info: "bg-humu-status-background-info",
|
|
@@ -10093,7 +10319,7 @@ var NotificationCenter = (0, import_react75.forwardRef)(
|
|
|
10093
10319
|
type: "button",
|
|
10094
10320
|
className: "relative inline-flex size-10 items-center justify-center rounded text-humu-content-subtitle transition-colors duration-humu-fast hover:bg-humu-background-interaction-hover hover:text-humu-content-title focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-humu-focus motion-reduce:transition-none",
|
|
10095
10321
|
children: [
|
|
10096
|
-
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
10322
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(import_lucide_react38.BellIcon, { size: 20, "aria-hidden": "true" }),
|
|
10097
10323
|
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)("span", { className: "sr-only", children: unreadCount > 0 ? `${triggerAriaLabel} (${unreadCount} ${unreadCount === 1 ? "n\xE3o lida" : "n\xE3o lidas"})` : triggerAriaLabel }),
|
|
10098
10324
|
unreadCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
10099
10325
|
"span",
|
|
@@ -10217,7 +10443,7 @@ var NotificationCenter = (0, import_react75.forwardRef)(
|
|
|
10217
10443
|
NotificationCenter.displayName = "NotificationCenter";
|
|
10218
10444
|
|
|
10219
10445
|
// src/patterns/NavigatorTile/NavigatorTile.tsx
|
|
10220
|
-
var
|
|
10446
|
+
var import_lucide_react39 = require("lucide-react");
|
|
10221
10447
|
var import_react76 = require("react");
|
|
10222
10448
|
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
10223
10449
|
var NavigatorTile = (0, import_react76.forwardRef)(
|
|
@@ -10259,7 +10485,7 @@ var NavigatorTile = (0, import_react76.forwardRef)(
|
|
|
10259
10485
|
),
|
|
10260
10486
|
badge && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)("span", { className: "shrink-0", children: badge }),
|
|
10261
10487
|
showChevron && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
10262
|
-
|
|
10488
|
+
import_lucide_react39.ChevronRightIcon,
|
|
10263
10489
|
{
|
|
10264
10490
|
"aria-hidden": "true",
|
|
10265
10491
|
className: "size-6 shrink-0 text-humu-content-brand transition-transform duration-humu-fast ease-humu-out group-hover:translate-x-0.5 motion-reduce:transition-none"
|
|
@@ -10374,7 +10600,7 @@ var PublicPageLayout = (0, import_react77.forwardRef)(
|
|
|
10374
10600
|
PublicPageLayout.displayName = "PublicPageLayout";
|
|
10375
10601
|
|
|
10376
10602
|
// src/patterns/ErrorPageLayout/ErrorPageLayout.tsx
|
|
10377
|
-
var
|
|
10603
|
+
var import_lucide_react40 = require("lucide-react");
|
|
10378
10604
|
var import_react78 = require("react");
|
|
10379
10605
|
var import_jsx_runtime92 = require("react/jsx-runtime");
|
|
10380
10606
|
function isHrefAction(action) {
|
|
@@ -10393,7 +10619,7 @@ var ErrorPageLayout = (0, import_react78.forwardRef)(
|
|
|
10393
10619
|
{
|
|
10394
10620
|
asChild: true,
|
|
10395
10621
|
leftIcon: primaryAction.icon ?? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
10396
|
-
|
|
10622
|
+
import_lucide_react40.ArrowLeftIcon,
|
|
10397
10623
|
{
|
|
10398
10624
|
size: 16,
|
|
10399
10625
|
strokeWidth: 2.5,
|
|
@@ -10407,7 +10633,7 @@ var ErrorPageLayout = (0, import_react78.forwardRef)(
|
|
|
10407
10633
|
{
|
|
10408
10634
|
onClick: primaryAction.onClick,
|
|
10409
10635
|
leftIcon: primaryAction.icon ?? /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
|
|
10410
|
-
|
|
10636
|
+
import_lucide_react40.ArrowLeftIcon,
|
|
10411
10637
|
{
|
|
10412
10638
|
size: 16,
|
|
10413
10639
|
strokeWidth: 2.5,
|
|
@@ -10422,7 +10648,7 @@ var ErrorPageLayout = (0, import_react78.forwardRef)(
|
|
|
10422
10648
|
ErrorPageLayout.displayName = "ErrorPageLayout";
|
|
10423
10649
|
|
|
10424
10650
|
// src/patterns/PageTitle/PageTitle.tsx
|
|
10425
|
-
var
|
|
10651
|
+
var import_lucide_react41 = require("lucide-react");
|
|
10426
10652
|
var import_react79 = require("react");
|
|
10427
10653
|
var import_jsx_runtime93 = require("react/jsx-runtime");
|
|
10428
10654
|
var PageTitle = (0, import_react79.forwardRef)(
|
|
@@ -10455,7 +10681,7 @@ var PageTitle = (0, import_react79.forwardRef)(
|
|
|
10455
10681
|
"aria-label": backLabel,
|
|
10456
10682
|
onClick: onBack,
|
|
10457
10683
|
className: "inline-flex size-6 shrink-0 items-center justify-center rounded text-humu-content-title transition-colors duration-humu-fast hover:bg-humu-background-interaction-hover focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-humu-focus motion-reduce:transition-none",
|
|
10458
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
|
|
10684
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(import_lucide_react41.ChevronLeftIcon, { className: "size-6", "aria-hidden": "true" })
|
|
10459
10685
|
}
|
|
10460
10686
|
),
|
|
10461
10687
|
/* @__PURE__ */ (0, import_jsx_runtime93.jsxs)("div", { className: "flex min-w-0 flex-col gap-1", children: [
|
|
@@ -10522,7 +10748,7 @@ var TutorialCard = (0, import_react80.forwardRef)(
|
|
|
10522
10748
|
TutorialCard.displayName = "TutorialCard";
|
|
10523
10749
|
|
|
10524
10750
|
// src/patterns/KpiCard/KpiCard.tsx
|
|
10525
|
-
var
|
|
10751
|
+
var import_lucide_react42 = require("lucide-react");
|
|
10526
10752
|
var import_react81 = require("react");
|
|
10527
10753
|
var import_jsx_runtime95 = require("react/jsx-runtime");
|
|
10528
10754
|
var resolveVariant = (variant) => variant === "danger" ? "error" : variant;
|
|
@@ -10599,7 +10825,7 @@ var KpiCard = (0, import_react81.forwardRef)(
|
|
|
10599
10825
|
}
|
|
10600
10826
|
),
|
|
10601
10827
|
/* @__PURE__ */ (0, import_jsx_runtime95.jsx)("span", { className: "truncate text-humu-body-xxs font-semibold uppercase", children: label }),
|
|
10602
|
-
onLabelClick && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
|
|
10828
|
+
onLabelClick && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(import_lucide_react42.ChevronDownIcon, { className: "size-4 shrink-0", "aria-hidden": "true" })
|
|
10603
10829
|
] });
|
|
10604
10830
|
return /* @__PURE__ */ (0, import_jsx_runtime95.jsxs)(
|
|
10605
10831
|
"div",
|
|
@@ -10700,7 +10926,7 @@ var KpiCard = (0, import_react81.forwardRef)(
|
|
|
10700
10926
|
KpiCard.displayName = "KpiCard";
|
|
10701
10927
|
|
|
10702
10928
|
// src/patterns/CommandPalette/CommandPalette.tsx
|
|
10703
|
-
var
|
|
10929
|
+
var import_lucide_react43 = require("lucide-react");
|
|
10704
10930
|
var import_react82 = require("react");
|
|
10705
10931
|
var import_react_dom = require("react-dom");
|
|
10706
10932
|
var import_jsx_runtime96 = require("react/jsx-runtime");
|
|
@@ -10792,7 +11018,7 @@ function CommandPalette({
|
|
|
10792
11018
|
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "relative z-10 flex w-full max-w-2xl flex-col overflow-hidden rounded-humu-lg border border-humu-border-default bg-humu-background-surface shadow-xl", children: [
|
|
10793
11019
|
/* @__PURE__ */ (0, import_jsx_runtime96.jsxs)("div", { className: "flex items-center gap-3 border-b border-humu-border-default px-4 py-3", children: [
|
|
10794
11020
|
/* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
|
|
10795
|
-
|
|
11021
|
+
import_lucide_react43.SearchIcon,
|
|
10796
11022
|
{
|
|
10797
11023
|
size: 18,
|
|
10798
11024
|
"aria-hidden": "true",
|
|
@@ -11275,7 +11501,7 @@ var DonutChart = (0, import_react84.forwardRef)(
|
|
|
11275
11501
|
);
|
|
11276
11502
|
|
|
11277
11503
|
// src/patterns/EmptyState/EmptyState.tsx
|
|
11278
|
-
var
|
|
11504
|
+
var import_lucide_react44 = require("lucide-react");
|
|
11279
11505
|
var import_react85 = require("react");
|
|
11280
11506
|
var import_jsx_runtime99 = require("react/jsx-runtime");
|
|
11281
11507
|
var variantIconBg = {
|
|
@@ -11284,9 +11510,9 @@ var variantIconBg = {
|
|
|
11284
11510
|
error: "bg-humu-status-background-error-subtle text-humu-status-content-error"
|
|
11285
11511
|
};
|
|
11286
11512
|
var variantIcon2 = {
|
|
11287
|
-
"no-data": /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
11288
|
-
"no-results": /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
11289
|
-
error: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
|
|
11513
|
+
"no-data": /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_lucide_react44.InboxIcon, { size: 32, "aria-hidden": "true" }),
|
|
11514
|
+
"no-results": /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_lucide_react44.SearchIcon, { size: 32, "aria-hidden": "true" }),
|
|
11515
|
+
error: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(import_lucide_react44.CircleAlertIcon, { size: 32, "aria-hidden": "true" })
|
|
11290
11516
|
};
|
|
11291
11517
|
var EmptyState = (0, import_react85.forwardRef)(
|
|
11292
11518
|
({
|
|
@@ -11398,7 +11624,7 @@ function CookieConsent({
|
|
|
11398
11624
|
}
|
|
11399
11625
|
|
|
11400
11626
|
// src/patterns/ErrorBoundary/ErrorBoundary.tsx
|
|
11401
|
-
var
|
|
11627
|
+
var import_lucide_react45 = require("lucide-react");
|
|
11402
11628
|
var import_react88 = require("react");
|
|
11403
11629
|
var import_jsx_runtime102 = require("react/jsx-runtime");
|
|
11404
11630
|
var ErrorBoundary = class extends import_react88.Component {
|
|
@@ -11428,7 +11654,7 @@ var ErrorBoundary = class extends import_react88.Component {
|
|
|
11428
11654
|
primaryAction: {
|
|
11429
11655
|
label: this.props.retryLabel ?? "Tentar novamente",
|
|
11430
11656
|
onClick: this.reset,
|
|
11431
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(
|
|
11657
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime102.jsx)(import_lucide_react45.RotateCcwIcon, { size: 16, strokeWidth: 2.5, "aria-hidden": "true" })
|
|
11432
11658
|
}
|
|
11433
11659
|
}
|
|
11434
11660
|
);
|
|
@@ -11436,7 +11662,7 @@ var ErrorBoundary = class extends import_react88.Component {
|
|
|
11436
11662
|
};
|
|
11437
11663
|
|
|
11438
11664
|
// src/patterns/QuickFilters/QuickFilters.tsx
|
|
11439
|
-
var
|
|
11665
|
+
var import_lucide_react46 = require("lucide-react");
|
|
11440
11666
|
var import_react89 = require("react");
|
|
11441
11667
|
var import_jsx_runtime103 = require("react/jsx-runtime");
|
|
11442
11668
|
var visibleFrom = {
|
|
@@ -11497,11 +11723,11 @@ function QuickFilters({
|
|
|
11497
11723
|
ToggleChip,
|
|
11498
11724
|
{
|
|
11499
11725
|
"aria-pressed": void 0,
|
|
11500
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
11726
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_lucide_react46.EllipsisIcon, {}),
|
|
11501
11727
|
className: "inline-flex data-[state=open]:bg-humu-background-brand-brand data-[state=open]:font-medium data-[state=open]:text-humu-content-on-brand lg:hidden",
|
|
11502
11728
|
children: [
|
|
11503
11729
|
moreLabel,
|
|
11504
|
-
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(
|
|
11730
|
+
/* @__PURE__ */ (0, import_jsx_runtime103.jsx)(import_lucide_react46.ChevronDownIcon, { "aria-hidden": "true" })
|
|
11505
11731
|
]
|
|
11506
11732
|
}
|
|
11507
11733
|
) }),
|
|
@@ -11773,7 +11999,7 @@ var ToggleTile = (0, import_react92.forwardRef)(
|
|
|
11773
11999
|
ToggleTile.displayName = "ToggleTile";
|
|
11774
12000
|
|
|
11775
12001
|
// src/patterns/WizardShell/WizardShell.tsx
|
|
11776
|
-
var
|
|
12002
|
+
var import_lucide_react47 = require("lucide-react");
|
|
11777
12003
|
var import_react93 = require("react");
|
|
11778
12004
|
var import_jsx_runtime108 = require("react/jsx-runtime");
|
|
11779
12005
|
var stepIndicatorClass = {
|
|
@@ -11798,7 +12024,7 @@ function StepIndicator({
|
|
|
11798
12024
|
"flex size-8 shrink-0 items-center justify-center rounded-humu-pill border-2 text-humu-body-xs font-semibold",
|
|
11799
12025
|
stepIndicatorClass[step.state]
|
|
11800
12026
|
),
|
|
11801
|
-
children: step.state === "completed" ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
12027
|
+
children: step.state === "completed" ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_lucide_react47.CheckIcon, { size: 16, strokeWidth: 2.5 }) : step.state === "blocked" ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_lucide_react47.XIcon, { size: 16, strokeWidth: 2.5 }) : step.state === "error" ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_lucide_react47.CircleAlertIcon, { size: 16, strokeWidth: 2.5 }) : index + 1
|
|
11802
12028
|
}
|
|
11803
12029
|
),
|
|
11804
12030
|
/* @__PURE__ */ (0, import_jsx_runtime108.jsxs)("div", { className: "flex flex-col", children: [
|
|
@@ -11880,7 +12106,7 @@ function WizardAside({
|
|
|
11880
12106
|
onClick: () => setCollapsed((value) => !value),
|
|
11881
12107
|
"aria-expanded": !isCollapsed,
|
|
11882
12108
|
"aria-label": isCollapsed ? "Expandir resumo" : "Recolher resumo",
|
|
11883
|
-
icon: isCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(
|
|
12109
|
+
icon: isCollapsed ? /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_lucide_react47.ChevronsLeftIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime108.jsx)(import_lucide_react47.ChevronsRightIcon, { "aria-hidden": "true" })
|
|
11884
12110
|
}
|
|
11885
12111
|
)
|
|
11886
12112
|
]
|
|
@@ -12031,7 +12257,7 @@ function WizardShell(props) {
|
|
|
12031
12257
|
WizardShell.displayName = "WizardShell";
|
|
12032
12258
|
|
|
12033
12259
|
// src/patterns/DSAccordion/DSAccordion.tsx
|
|
12034
|
-
var
|
|
12260
|
+
var import_lucide_react48 = require("lucide-react");
|
|
12035
12261
|
var import_react94 = require("react");
|
|
12036
12262
|
var AccordionPrimitive = __toESM(require("@radix-ui/react-accordion"));
|
|
12037
12263
|
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
@@ -12091,7 +12317,7 @@ var Trigger16 = (0, import_react94.forwardRef)(
|
|
|
12091
12317
|
/* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("span", { className: "flex shrink-0 items-center gap-3", children: [
|
|
12092
12318
|
meta,
|
|
12093
12319
|
/* @__PURE__ */ (0, import_jsx_runtime109.jsx)(
|
|
12094
|
-
|
|
12320
|
+
import_lucide_react48.ChevronDownIcon,
|
|
12095
12321
|
{
|
|
12096
12322
|
size: 16,
|
|
12097
12323
|
strokeWidth: 2.5,
|
|
@@ -12183,7 +12409,7 @@ function DataField({
|
|
|
12183
12409
|
}
|
|
12184
12410
|
|
|
12185
12411
|
// src/patterns/FilterBar/FilterBar.tsx
|
|
12186
|
-
var
|
|
12412
|
+
var import_lucide_react49 = require("lucide-react");
|
|
12187
12413
|
var import_react95 = require("react");
|
|
12188
12414
|
var import_jsx_runtime111 = require("react/jsx-runtime");
|
|
12189
12415
|
function isStringValue(v) {
|
|
@@ -12469,7 +12695,7 @@ function FilterBar({
|
|
|
12469
12695
|
{
|
|
12470
12696
|
"aria-hidden": "true",
|
|
12471
12697
|
className: tabsTriggerIconStyles({ tone: "brand" }),
|
|
12472
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(
|
|
12698
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime111.jsx)(import_lucide_react49.ListFilterIcon, {})
|
|
12473
12699
|
}
|
|
12474
12700
|
),
|
|
12475
12701
|
triggerLabel,
|
|
@@ -12543,7 +12769,7 @@ function FilterBar({
|
|
|
12543
12769
|
}
|
|
12544
12770
|
|
|
12545
12771
|
// src/patterns/FilterBar/FilterToolbar.tsx
|
|
12546
|
-
var
|
|
12772
|
+
var import_lucide_react50 = require("lucide-react");
|
|
12547
12773
|
var import_react96 = require("react");
|
|
12548
12774
|
var import_jsx_runtime112 = require("react/jsx-runtime");
|
|
12549
12775
|
var FilterToolbar = (0, import_react96.forwardRef)(
|
|
@@ -12576,7 +12802,7 @@ var FilterToolbar = (0, import_react96.forwardRef)(
|
|
|
12576
12802
|
variant: "ghost",
|
|
12577
12803
|
size: "sm",
|
|
12578
12804
|
onClick: onClearAll,
|
|
12579
|
-
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
12805
|
+
leftIcon: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_lucide_react50.XIcon, { "aria-hidden": "true" }),
|
|
12580
12806
|
className: "ml-auto",
|
|
12581
12807
|
children: clearAllLabel
|
|
12582
12808
|
}
|
|
@@ -12630,7 +12856,7 @@ function FormSection({
|
|
|
12630
12856
|
|
|
12631
12857
|
// src/patterns/FormWithAside/FormWithAside.tsx
|
|
12632
12858
|
var import_react97 = require("react");
|
|
12633
|
-
var
|
|
12859
|
+
var import_lucide_react51 = require("lucide-react");
|
|
12634
12860
|
var import_jsx_runtime114 = require("react/jsx-runtime");
|
|
12635
12861
|
function scrollToId(id) {
|
|
12636
12862
|
const el = document.getElementById(id);
|
|
@@ -12678,7 +12904,7 @@ function FormWithAside({
|
|
|
12678
12904
|
"aria-label": collapsed ? "Expandir resumo" : "Recolher resumo",
|
|
12679
12905
|
title: collapsed ? "Expandir resumo" : "Recolher resumo",
|
|
12680
12906
|
className: "inline-flex size-6 shrink-0 items-center justify-center rounded text-humu-content-subtitle transition-colors duration-humu-fast hover:bg-humu-background-interaction-hover hover:text-humu-content-title focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-humu-focus [&_svg]:size-6 motion-reduce:transition-none",
|
|
12681
|
-
children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(
|
|
12907
|
+
children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_lucide_react51.ChevronsLeftIcon, { "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime114.jsx)(import_lucide_react51.ChevronsRightIcon, { "aria-hidden": "true" })
|
|
12682
12908
|
}
|
|
12683
12909
|
)
|
|
12684
12910
|
]
|
|
@@ -13072,7 +13298,7 @@ var PanelCard = (0, import_react98.forwardRef)(
|
|
|
13072
13298
|
PanelCard.displayName = "PanelCard";
|
|
13073
13299
|
|
|
13074
13300
|
// src/patterns/SectionCard/SectionCard.tsx
|
|
13075
|
-
var
|
|
13301
|
+
var import_lucide_react52 = require("lucide-react");
|
|
13076
13302
|
var import_jsx_runtime119 = require("react/jsx-runtime");
|
|
13077
13303
|
function SectionCard({
|
|
13078
13304
|
title,
|
|
@@ -13108,7 +13334,7 @@ function SectionCard({
|
|
|
13108
13334
|
/* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
13109
13335
|
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)("h3", { className: "text-humu-body-m font-bold text-humu-content-title", children: title }),
|
|
13110
13336
|
highlight && /* @__PURE__ */ (0, import_jsx_runtime119.jsxs)("span", { className: "inline-flex h-5 items-center gap-1 rounded-full border border-humu-border-warning-subtle bg-humu-status-background-warning-subtle px-2 text-humu-body-xxs font-medium text-humu-status-content-warning-subtle [&_svg]:size-3", children: [
|
|
13111
|
-
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
13337
|
+
/* @__PURE__ */ (0, import_jsx_runtime119.jsx)(import_lucide_react52.CircleAlertIcon, { "aria-hidden": "true" }),
|
|
13112
13338
|
"Pendente"
|
|
13113
13339
|
] })
|
|
13114
13340
|
] }),
|
|
@@ -13263,12 +13489,12 @@ function StackedBarChart({
|
|
|
13263
13489
|
}
|
|
13264
13490
|
|
|
13265
13491
|
// src/patterns/WorkflowDesigner/WorkflowDesigner.tsx
|
|
13266
|
-
var
|
|
13492
|
+
var import_lucide_react53 = require("lucide-react");
|
|
13267
13493
|
var import_jsx_runtime121 = require("react/jsx-runtime");
|
|
13268
13494
|
var kindIconMap = {
|
|
13269
|
-
automatic: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
13270
|
-
manual: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
13271
|
-
system: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(
|
|
13495
|
+
automatic: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react53.ZapIcon, { size: 14, "aria-hidden": "true" }),
|
|
13496
|
+
manual: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react53.HandIcon, { size: 14, "aria-hidden": "true" }),
|
|
13497
|
+
system: /* @__PURE__ */ (0, import_jsx_runtime121.jsx)(import_lucide_react53.SettingsIcon, { size: 14, "aria-hidden": "true" })
|
|
13272
13498
|
};
|
|
13273
13499
|
function NodeCard({
|
|
13274
13500
|
node,
|
|
@@ -13431,7 +13657,7 @@ function WorkflowDesigner({
|
|
|
13431
13657
|
|
|
13432
13658
|
// src/patterns/Timeline/Timeline.tsx
|
|
13433
13659
|
var import_react99 = require("react");
|
|
13434
|
-
var
|
|
13660
|
+
var import_lucide_react54 = require("lucide-react");
|
|
13435
13661
|
var import_jsx_runtime122 = require("react/jsx-runtime");
|
|
13436
13662
|
var TONE_ICON = {
|
|
13437
13663
|
neutral: "border border-humu-background-border bg-humu-background-surface",
|
|
@@ -13501,7 +13727,7 @@ var TimelineItem = (0, import_react99.forwardRef)(
|
|
|
13501
13727
|
"aria-hidden": "true",
|
|
13502
13728
|
className: "inline-flex size-6 shrink-0 items-center justify-center text-humu-content-body-text",
|
|
13503
13729
|
children: /* @__PURE__ */ (0, import_jsx_runtime122.jsx)(
|
|
13504
|
-
|
|
13730
|
+
import_lucide_react54.ChevronDownIcon,
|
|
13505
13731
|
{
|
|
13506
13732
|
className: cn(
|
|
13507
13733
|
"size-4 transition-transform duration-humu-fast motion-reduce:transition-none",
|