@humu-tech/ui 0.4.0 → 0.4.1
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 +29 -25
- package/dist/index.d.ts +29 -25
- package/dist/index.js +309 -122
- package/dist/index.mjs +287 -94
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7765,11 +7765,18 @@ Switch.displayName = "Switch";
|
|
|
7765
7765
|
|
|
7766
7766
|
// src/primitives/Tabs/Tabs.tsx
|
|
7767
7767
|
import {
|
|
7768
|
+
Children,
|
|
7768
7769
|
createContext as createContext2,
|
|
7769
7770
|
forwardRef as forwardRef46,
|
|
7770
|
-
|
|
7771
|
+
isValidElement,
|
|
7772
|
+
useCallback as useCallback5,
|
|
7773
|
+
useContext as useContext2,
|
|
7774
|
+
useLayoutEffect as useLayoutEffect5,
|
|
7775
|
+
useRef as useRef9,
|
|
7776
|
+
useState as useState21
|
|
7771
7777
|
} from "react";
|
|
7772
7778
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
7779
|
+
import { ChevronDownIcon as ChevronDownIcon5 } from "lucide-react";
|
|
7773
7780
|
|
|
7774
7781
|
// src/primitives/Tabs/Tabs.styles.ts
|
|
7775
7782
|
import { cva as cva15 } from "class-variance-authority";
|
|
@@ -7852,16 +7859,174 @@ var tabsContentStyles = cva15(
|
|
|
7852
7859
|
// src/primitives/Tabs/Tabs.tsx
|
|
7853
7860
|
import { Fragment as Fragment11, jsx as jsx68, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7854
7861
|
var TabsVariantContext = createContext2("pill");
|
|
7855
|
-
var
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7862
|
+
var TabsValueContext = createContext2(null);
|
|
7863
|
+
var isTrigger = (child) => isValidElement(child) && typeof child.props.value === "string";
|
|
7864
|
+
function pickVisible(values, widths, active, available, gap, moreWidth) {
|
|
7865
|
+
const width = (value) => widths.get(value) ?? 0;
|
|
7866
|
+
const total = values.reduce((sum, value) => sum + width(value), 0) + gap * Math.max(values.length - 1, 0);
|
|
7867
|
+
if (total <= available) return values;
|
|
7868
|
+
const room = available - moreWidth - gap;
|
|
7869
|
+
const activeIndex = active ? values.indexOf(active) : -1;
|
|
7870
|
+
let used = 0;
|
|
7871
|
+
const visible = [];
|
|
7872
|
+
for (const value of values) {
|
|
7873
|
+
const next = used + width(value) + (visible.length > 0 ? gap : 0);
|
|
7874
|
+
if (next > room) break;
|
|
7875
|
+
visible.push(value);
|
|
7876
|
+
used = next;
|
|
7877
|
+
}
|
|
7878
|
+
if (activeIndex >= 0 && !visible.includes(values[activeIndex])) {
|
|
7879
|
+
const activeValue = values[activeIndex];
|
|
7880
|
+
while (visible.length > 0 && used + width(activeValue) + gap > room) {
|
|
7881
|
+
const removed = visible.pop();
|
|
7882
|
+
used -= width(removed) + (visible.length > 0 ? gap : 0);
|
|
7863
7883
|
}
|
|
7864
|
-
|
|
7884
|
+
visible.push(activeValue);
|
|
7885
|
+
}
|
|
7886
|
+
return visible;
|
|
7887
|
+
}
|
|
7888
|
+
var List2 = forwardRef46(
|
|
7889
|
+
({
|
|
7890
|
+
className,
|
|
7891
|
+
variant = "pill",
|
|
7892
|
+
overflow = "none",
|
|
7893
|
+
moreLabel = "Mais",
|
|
7894
|
+
children,
|
|
7895
|
+
...props
|
|
7896
|
+
}, ref) => {
|
|
7897
|
+
const valueContext = useContext2(TabsValueContext);
|
|
7898
|
+
const active = valueContext?.value;
|
|
7899
|
+
const wrapperRef = useRef9(null);
|
|
7900
|
+
const moreRef = useRef9(null);
|
|
7901
|
+
const widthsRef = useRef9(/* @__PURE__ */ new Map());
|
|
7902
|
+
const moreWidthRef = useRef9(0);
|
|
7903
|
+
const childArray = Children.toArray(children);
|
|
7904
|
+
const triggers = childArray.filter(isTrigger);
|
|
7905
|
+
const signature = triggers.map((trigger) => trigger.props.value).join("\0");
|
|
7906
|
+
const enabled = overflow === "menu" && triggers.length > 1;
|
|
7907
|
+
const layoutKey = `${signature}${active ?? ""}`;
|
|
7908
|
+
const [measuredKey, setMeasuredKey] = useState21(null);
|
|
7909
|
+
const [visibleValues, setVisibleValues] = useState21(null);
|
|
7910
|
+
const measuring = enabled && measuredKey !== layoutKey;
|
|
7911
|
+
useLayoutEffect5(() => {
|
|
7912
|
+
if (!measuring) return;
|
|
7913
|
+
const wrapper = wrapperRef.current;
|
|
7914
|
+
if (!wrapper) return;
|
|
7915
|
+
wrapper.querySelectorAll("[data-tab-value]").forEach((element) => {
|
|
7916
|
+
const value = element.dataset.tabValue;
|
|
7917
|
+
if (value) widthsRef.current.set(value, element.offsetWidth);
|
|
7918
|
+
});
|
|
7919
|
+
moreWidthRef.current = moreRef.current?.offsetWidth ?? 0;
|
|
7920
|
+
setMeasuredKey(layoutKey);
|
|
7921
|
+
}, [measuring, layoutKey]);
|
|
7922
|
+
useLayoutEffect5(() => {
|
|
7923
|
+
if (!enabled || measuring) return;
|
|
7924
|
+
const wrapper = wrapperRef.current;
|
|
7925
|
+
const list2 = wrapper?.firstElementChild;
|
|
7926
|
+
if (!wrapper || !(list2 instanceof HTMLElement)) return;
|
|
7927
|
+
const update = () => {
|
|
7928
|
+
const style = getComputedStyle(list2);
|
|
7929
|
+
const gap = parseFloat(style.columnGap) || 0;
|
|
7930
|
+
const padding = (parseFloat(style.paddingLeft) || 0) + (parseFloat(style.paddingRight) || 0) + (parseFloat(style.borderLeftWidth) || 0) + (parseFloat(style.borderRightWidth) || 0);
|
|
7931
|
+
const next = pickVisible(
|
|
7932
|
+
signature ? signature.split("\0") : [],
|
|
7933
|
+
widthsRef.current,
|
|
7934
|
+
active,
|
|
7935
|
+
wrapper.clientWidth - padding,
|
|
7936
|
+
gap,
|
|
7937
|
+
moreWidthRef.current
|
|
7938
|
+
);
|
|
7939
|
+
setVisibleValues(
|
|
7940
|
+
(previous) => previous && previous.join("\0") === next.join("\0") ? previous : next
|
|
7941
|
+
);
|
|
7942
|
+
};
|
|
7943
|
+
update();
|
|
7944
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
7945
|
+
const observer = new ResizeObserver(update);
|
|
7946
|
+
observer.observe(wrapper);
|
|
7947
|
+
return () => observer.disconnect();
|
|
7948
|
+
}, [enabled, measuring, signature, active]);
|
|
7949
|
+
const shown = !enabled || measuring || !visibleValues ? null : new Set(visibleValues);
|
|
7950
|
+
const hidden = shown ? triggers.filter((trigger) => !shown.has(trigger.props.value)) : [];
|
|
7951
|
+
const showMore = enabled && (measuring || hidden.length > 0);
|
|
7952
|
+
const hiddenHasError = hidden.some((trigger) => trigger.props.hasError);
|
|
7953
|
+
const moreClassName = cn(
|
|
7954
|
+
variant === "underline" ? tabsUnderlineTriggerStyles() : tabsTriggerStyles({ tone: "brand" }),
|
|
7955
|
+
"data-[state=open]:text-humu-content-title"
|
|
7956
|
+
);
|
|
7957
|
+
const more = showMore ? /* @__PURE__ */ jsxs44(Dropdown, { children: [
|
|
7958
|
+
/* @__PURE__ */ jsx68(Dropdown.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs44(
|
|
7959
|
+
"button",
|
|
7960
|
+
{
|
|
7961
|
+
ref: moreRef,
|
|
7962
|
+
type: "button",
|
|
7963
|
+
className: moreClassName,
|
|
7964
|
+
"aria-label": hiddenHasError ? `${moreLabel}, com erro` : void 0,
|
|
7965
|
+
children: [
|
|
7966
|
+
moreLabel,
|
|
7967
|
+
hiddenHasError && /* @__PURE__ */ jsx68(
|
|
7968
|
+
"span",
|
|
7969
|
+
{
|
|
7970
|
+
"aria-hidden": "true",
|
|
7971
|
+
className: "inline-block size-1.5 shrink-0 rounded-full bg-humu-status-background-error"
|
|
7972
|
+
}
|
|
7973
|
+
),
|
|
7974
|
+
/* @__PURE__ */ jsx68(ChevronDownIcon5, { "aria-hidden": "true" })
|
|
7975
|
+
]
|
|
7976
|
+
}
|
|
7977
|
+
) }),
|
|
7978
|
+
/* @__PURE__ */ jsx68(Dropdown.Content, { align: "end", className: "min-w-48 gap-0.5 p-1", children: hidden.map((trigger) => /* @__PURE__ */ jsxs44(
|
|
7979
|
+
Dropdown.Item,
|
|
7980
|
+
{
|
|
7981
|
+
disabled: trigger.props.disabled,
|
|
7982
|
+
onSelect: () => valueContext?.setValue(trigger.props.value),
|
|
7983
|
+
className: "text-humu-body-xs [&_svg]:size-4",
|
|
7984
|
+
children: [
|
|
7985
|
+
trigger.props.icon && /* @__PURE__ */ jsx68("span", { "aria-hidden": "true", className: "flex", children: trigger.props.icon }),
|
|
7986
|
+
trigger.props.children,
|
|
7987
|
+
trigger.props.count !== void 0 && trigger.props.count !== null && /* @__PURE__ */ jsx68("span", { className: tabsUnderlineCountStyles(), children: trigger.props.count }),
|
|
7988
|
+
trigger.props.hasError && /* @__PURE__ */ jsxs44(Fragment11, { children: [
|
|
7989
|
+
/* @__PURE__ */ jsx68(
|
|
7990
|
+
"span",
|
|
7991
|
+
{
|
|
7992
|
+
"aria-hidden": "true",
|
|
7993
|
+
className: "inline-block size-1.5 shrink-0 rounded-full bg-humu-status-background-error"
|
|
7994
|
+
}
|
|
7995
|
+
),
|
|
7996
|
+
/* @__PURE__ */ jsx68("span", { className: "sr-only", children: `, ${trigger.props.errorLabel ?? "com erro"}` })
|
|
7997
|
+
] })
|
|
7998
|
+
]
|
|
7999
|
+
},
|
|
8000
|
+
trigger.props.value
|
|
8001
|
+
)) })
|
|
8002
|
+
] }) : null;
|
|
8003
|
+
const list = /* @__PURE__ */ jsx68(
|
|
8004
|
+
TabsPrimitive.List,
|
|
8005
|
+
{
|
|
8006
|
+
ref,
|
|
8007
|
+
"data-variant": variant,
|
|
8008
|
+
className: cn(tabsListStyles({ variant }), className),
|
|
8009
|
+
...props,
|
|
8010
|
+
children: childArray.map(
|
|
8011
|
+
(child) => isTrigger(child) && shown && !shown.has(child.props.value) ? null : child
|
|
8012
|
+
)
|
|
8013
|
+
}
|
|
8014
|
+
);
|
|
8015
|
+
return /* @__PURE__ */ jsx68(TabsVariantContext.Provider, { value: variant, children: enabled ? /* @__PURE__ */ jsxs44(
|
|
8016
|
+
"div",
|
|
8017
|
+
{
|
|
8018
|
+
ref: wrapperRef,
|
|
8019
|
+
className: cn(
|
|
8020
|
+
"flex w-full min-w-0 items-center",
|
|
8021
|
+
variant === "pill" && "gap-1"
|
|
8022
|
+
),
|
|
8023
|
+
children: [
|
|
8024
|
+
list,
|
|
8025
|
+
more
|
|
8026
|
+
]
|
|
8027
|
+
}
|
|
8028
|
+
) : list });
|
|
8029
|
+
}
|
|
7865
8030
|
);
|
|
7866
8031
|
List2.displayName = "Tabs.List";
|
|
7867
8032
|
var Trigger12 = forwardRef46(
|
|
@@ -7886,41 +8051,51 @@ var Trigger12 = forwardRef46(
|
|
|
7886
8051
|
TabsPrimitive.Trigger,
|
|
7887
8052
|
{
|
|
7888
8053
|
ref,
|
|
8054
|
+
"data-tab-value": props.value,
|
|
7889
8055
|
className: triggerClassName,
|
|
7890
8056
|
...props,
|
|
7891
8057
|
children
|
|
7892
8058
|
}
|
|
7893
8059
|
);
|
|
7894
8060
|
}
|
|
7895
|
-
return /* @__PURE__ */ jsxs44(
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
8061
|
+
return /* @__PURE__ */ jsxs44(
|
|
8062
|
+
TabsPrimitive.Trigger,
|
|
8063
|
+
{
|
|
8064
|
+
ref,
|
|
8065
|
+
"data-tab-value": props.value,
|
|
8066
|
+
className: triggerClassName,
|
|
8067
|
+
...props,
|
|
8068
|
+
children: [
|
|
8069
|
+
icon && /* @__PURE__ */ jsx68(
|
|
8070
|
+
"span",
|
|
8071
|
+
{
|
|
8072
|
+
"aria-hidden": "true",
|
|
8073
|
+
className: underline ? "flex" : tabsTriggerIconStyles({ tone }),
|
|
8074
|
+
children: icon
|
|
8075
|
+
}
|
|
8076
|
+
),
|
|
8077
|
+
children,
|
|
8078
|
+
count !== void 0 && count !== null && /* @__PURE__ */ jsx68(
|
|
8079
|
+
"span",
|
|
8080
|
+
{
|
|
8081
|
+
className: underline ? tabsUnderlineCountStyles() : tabsTriggerCountStyles({ tone }),
|
|
8082
|
+
children: count
|
|
8083
|
+
}
|
|
8084
|
+
),
|
|
8085
|
+
hasError && /* @__PURE__ */ jsxs44(Fragment11, { children: [
|
|
8086
|
+
/* @__PURE__ */ jsx68(
|
|
8087
|
+
"span",
|
|
8088
|
+
{
|
|
8089
|
+
"aria-hidden": "true",
|
|
8090
|
+
"data-tab-error": "",
|
|
8091
|
+
className: "inline-block size-1.5 shrink-0 rounded-full bg-humu-status-background-error"
|
|
8092
|
+
}
|
|
8093
|
+
),
|
|
8094
|
+
/* @__PURE__ */ jsx68("span", { className: "sr-only", children: `, ${errorLabel}` })
|
|
8095
|
+
] })
|
|
8096
|
+
]
|
|
8097
|
+
}
|
|
8098
|
+
);
|
|
7924
8099
|
}
|
|
7925
8100
|
);
|
|
7926
8101
|
Trigger12.displayName = "Tabs.Trigger";
|
|
@@ -7933,15 +8108,33 @@ var Content12 = forwardRef46(({ className, ...props }, ref) => /* @__PURE__ */ j
|
|
|
7933
8108
|
}
|
|
7934
8109
|
));
|
|
7935
8110
|
Content12.displayName = "Tabs.Content";
|
|
7936
|
-
function TabsRoot({
|
|
7937
|
-
|
|
8111
|
+
function TabsRoot({
|
|
8112
|
+
children,
|
|
8113
|
+
className,
|
|
8114
|
+
value,
|
|
8115
|
+
defaultValue,
|
|
8116
|
+
onValueChange,
|
|
8117
|
+
...props
|
|
8118
|
+
}) {
|
|
8119
|
+
const [innerValue, setInnerValue] = useState21(defaultValue);
|
|
8120
|
+
const current = value ?? innerValue;
|
|
8121
|
+
const setValue = useCallback5(
|
|
8122
|
+
(next) => {
|
|
8123
|
+
if (value === void 0) setInnerValue(next);
|
|
8124
|
+
onValueChange?.(next);
|
|
8125
|
+
},
|
|
8126
|
+
[value, onValueChange]
|
|
8127
|
+
);
|
|
8128
|
+
return /* @__PURE__ */ jsx68(TabsValueContext.Provider, { value: { value: current, setValue }, children: /* @__PURE__ */ jsx68(
|
|
7938
8129
|
TabsPrimitive.Root,
|
|
7939
8130
|
{
|
|
7940
8131
|
className: cn("group/tabs w-full", className),
|
|
8132
|
+
value: current,
|
|
8133
|
+
onValueChange: setValue,
|
|
7941
8134
|
...props,
|
|
7942
8135
|
children
|
|
7943
8136
|
}
|
|
7944
|
-
);
|
|
8137
|
+
) });
|
|
7945
8138
|
}
|
|
7946
8139
|
TabsRoot.displayName = "Tabs";
|
|
7947
8140
|
var Tabs = Object.assign(TabsRoot, {
|
|
@@ -8027,7 +8220,7 @@ var ThemeToggle = forwardRef47(
|
|
|
8027
8220
|
ThemeToggle.displayName = "ThemeToggle";
|
|
8028
8221
|
|
|
8029
8222
|
// src/primitives/TextArea/TextArea.tsx
|
|
8030
|
-
import { forwardRef as forwardRef48, useId as useId19, useState as
|
|
8223
|
+
import { forwardRef as forwardRef48, useId as useId19, useState as useState22 } from "react";
|
|
8031
8224
|
import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
8032
8225
|
var TextArea = forwardRef48(
|
|
8033
8226
|
({
|
|
@@ -8051,7 +8244,7 @@ var TextArea = forwardRef48(
|
|
|
8051
8244
|
const helperId = helper ? `${textareaId}-helper` : void 0;
|
|
8052
8245
|
const errorId = error ? `${textareaId}-error` : void 0;
|
|
8053
8246
|
const describedBy = (error ? errorId : helperId) || void 0;
|
|
8054
|
-
const [uncontrolledLength, setUncontrolledLength] =
|
|
8247
|
+
const [uncontrolledLength, setUncontrolledLength] = useState22(
|
|
8055
8248
|
typeof defaultValue === "string" ? defaultValue.length : 0
|
|
8056
8249
|
);
|
|
8057
8250
|
const currentLength = typeof value === "string" ? value.length : uncontrolledLength;
|
|
@@ -8138,7 +8331,7 @@ TextArea.displayName = "TextArea";
|
|
|
8138
8331
|
// src/primitives/ToggleChip/ToggleChip.tsx
|
|
8139
8332
|
import {
|
|
8140
8333
|
forwardRef as forwardRef49,
|
|
8141
|
-
useState as
|
|
8334
|
+
useState as useState23
|
|
8142
8335
|
} from "react";
|
|
8143
8336
|
import { jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
8144
8337
|
var ToggleChip = forwardRef49(
|
|
@@ -8155,7 +8348,7 @@ var ToggleChip = forwardRef49(
|
|
|
8155
8348
|
type = "button",
|
|
8156
8349
|
...props
|
|
8157
8350
|
}, ref) => {
|
|
8158
|
-
const [uncontrolled, setUncontrolled] =
|
|
8351
|
+
const [uncontrolled, setUncontrolled] = useState23(defaultPressed);
|
|
8159
8352
|
const isPressed = pressed ?? uncontrolled;
|
|
8160
8353
|
return /* @__PURE__ */ jsxs46(
|
|
8161
8354
|
"button",
|
|
@@ -8368,7 +8561,7 @@ function useToast() {
|
|
|
8368
8561
|
}
|
|
8369
8562
|
|
|
8370
8563
|
// src/primitives/TitleSelect/TitleSelect.tsx
|
|
8371
|
-
import { CheckIcon as CheckIcon10, ChevronDownIcon as
|
|
8564
|
+
import { CheckIcon as CheckIcon10, ChevronDownIcon as ChevronDownIcon6 } from "lucide-react";
|
|
8372
8565
|
import { forwardRef as forwardRef51 } from "react";
|
|
8373
8566
|
import { jsx as jsx75, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
8374
8567
|
var labelClass2 = "truncate text-humu-body-xxs font-semibold uppercase";
|
|
@@ -8424,7 +8617,7 @@ var TitleSelect = forwardRef51(
|
|
|
8424
8617
|
/* @__PURE__ */ jsx75("span", { className: labelClass2, children: current?.label }),
|
|
8425
8618
|
ariaLabel && /* @__PURE__ */ jsx75("span", { className: "sr-only", children: `, ${ariaLabel}` }),
|
|
8426
8619
|
/* @__PURE__ */ jsx75(
|
|
8427
|
-
|
|
8620
|
+
ChevronDownIcon6,
|
|
8428
8621
|
{
|
|
8429
8622
|
className: "size-4 shrink-0 transition-transform duration-humu-normal group-data-[state=open]/title:rotate-180 motion-reduce:transition-none",
|
|
8430
8623
|
"aria-hidden": "true"
|
|
@@ -8470,7 +8663,7 @@ import {
|
|
|
8470
8663
|
|
|
8471
8664
|
// src/patterns/Sidebar/Sidebar.tsx
|
|
8472
8665
|
import { ChevronsLeftRightIcon, ChevronsRightLeftIcon } from "lucide-react";
|
|
8473
|
-
import { forwardRef as forwardRef52, useCallback as
|
|
8666
|
+
import { forwardRef as forwardRef52, useCallback as useCallback6, useEffect as useEffect11, useState as useState24 } from "react";
|
|
8474
8667
|
import "./Sidebar-RBBNUVDV.css";
|
|
8475
8668
|
import { Fragment as Fragment12, jsx as jsx76, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
8476
8669
|
var LINK_BASE_CLASS = "flex w-full rounded-humu-md focus-visible:outline focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-humu-focus";
|
|
@@ -8628,11 +8821,11 @@ var Sidebar = forwardRef52(function Sidebar2({
|
|
|
8628
8821
|
...rest
|
|
8629
8822
|
}, ref) {
|
|
8630
8823
|
const isControlled = controlledCollapsed !== void 0;
|
|
8631
|
-
const [internalCollapsed, setInternalCollapsed] =
|
|
8824
|
+
const [internalCollapsed, setInternalCollapsed] = useState24(
|
|
8632
8825
|
() => readStoredCollapsed(defaultCollapsed)
|
|
8633
8826
|
);
|
|
8634
8827
|
const collapsed = isControlled ? controlledCollapsed : internalCollapsed;
|
|
8635
|
-
const toggleCollapse =
|
|
8828
|
+
const toggleCollapse = useCallback6(() => {
|
|
8636
8829
|
const next = !collapsed;
|
|
8637
8830
|
if (!isControlled) {
|
|
8638
8831
|
setInternalCollapsed(next);
|
|
@@ -9302,7 +9495,7 @@ import { forwardRef as forwardRef56 } from "react";
|
|
|
9302
9495
|
// src/patterns/SortableColumnHeader/SortableColumnHeader.tsx
|
|
9303
9496
|
import { forwardRef as forwardRef55 } from "react";
|
|
9304
9497
|
import {
|
|
9305
|
-
ChevronDownIcon as
|
|
9498
|
+
ChevronDownIcon as ChevronDownIcon7,
|
|
9306
9499
|
ChevronsUpDownIcon,
|
|
9307
9500
|
ChevronUpIcon
|
|
9308
9501
|
} from "lucide-react";
|
|
@@ -9350,7 +9543,7 @@ var SortableColumnHeader = forwardRef55(
|
|
|
9350
9543
|
...props,
|
|
9351
9544
|
children: [
|
|
9352
9545
|
/* @__PURE__ */ jsx83("span", { children: label }),
|
|
9353
|
-
direction === "asc" ? /* @__PURE__ */ jsx83(ChevronUpIcon, { className: "size-4", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ jsx83(
|
|
9546
|
+
direction === "asc" ? /* @__PURE__ */ jsx83(ChevronUpIcon, { className: "size-4", "aria-hidden": "true" }) : direction === "desc" ? /* @__PURE__ */ jsx83(ChevronDownIcon7, { className: "size-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsx83(
|
|
9354
9547
|
ChevronsUpDownIcon,
|
|
9355
9548
|
{
|
|
9356
9549
|
className: "size-4 text-humu-content-body-text",
|
|
@@ -9582,10 +9775,10 @@ var DataTableActionButton = forwardRef57(({ className, type = "button", asChild
|
|
|
9582
9775
|
DataTableActionButton.displayName = "DataTableActionButton";
|
|
9583
9776
|
|
|
9584
9777
|
// src/patterns/DataTablePagination/DataTablePagination.tsx
|
|
9585
|
-
import { forwardRef as forwardRef58, useState as
|
|
9778
|
+
import { forwardRef as forwardRef58, useState as useState25 } from "react";
|
|
9586
9779
|
import {
|
|
9587
9780
|
CheckIcon as CheckIcon11,
|
|
9588
|
-
ChevronDownIcon as
|
|
9781
|
+
ChevronDownIcon as ChevronDownIcon8,
|
|
9589
9782
|
ChevronLeftIcon,
|
|
9590
9783
|
ChevronRightIcon as ChevronRightIcon2
|
|
9591
9784
|
} from "lucide-react";
|
|
@@ -9634,7 +9827,7 @@ var DataTablePagination = forwardRef58(
|
|
|
9634
9827
|
className,
|
|
9635
9828
|
...props
|
|
9636
9829
|
}, ref) => {
|
|
9637
|
-
const [perPageOpen, setPerPageOpen] =
|
|
9830
|
+
const [perPageOpen, setPerPageOpen] = useState25(false);
|
|
9638
9831
|
const first = (page - 1) * perPage + 1;
|
|
9639
9832
|
const last = Math.min(page * perPage, total);
|
|
9640
9833
|
const totalPages = Math.max(1, Math.ceil(total / perPage));
|
|
@@ -9665,7 +9858,7 @@ var DataTablePagination = forwardRef58(
|
|
|
9665
9858
|
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",
|
|
9666
9859
|
children: [
|
|
9667
9860
|
/* @__PURE__ */ jsx86("span", { className: "tabular-nums", children: perPage }),
|
|
9668
|
-
/* @__PURE__ */ jsx86(
|
|
9861
|
+
/* @__PURE__ */ jsx86(ChevronDownIcon8, { className: "size-4", "aria-hidden": "true" })
|
|
9669
9862
|
]
|
|
9670
9863
|
}
|
|
9671
9864
|
) }),
|
|
@@ -9798,11 +9991,11 @@ DataTablePagination.displayName = "DataTablePagination";
|
|
|
9798
9991
|
|
|
9799
9992
|
// src/patterns/ReadOnlyDataView/ReadOnlyDataView.tsx
|
|
9800
9993
|
import {
|
|
9801
|
-
ChevronDownIcon as
|
|
9994
|
+
ChevronDownIcon as ChevronDownIcon9,
|
|
9802
9995
|
ChevronUpIcon as ChevronUpIcon2,
|
|
9803
9996
|
ChevronsUpDownIcon as ChevronsUpDownIcon2
|
|
9804
9997
|
} from "lucide-react";
|
|
9805
|
-
import { useState as
|
|
9998
|
+
import { useState as useState26 } from "react";
|
|
9806
9999
|
import { Fragment as Fragment17, jsx as jsx87, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
9807
10000
|
function formatDate(value, format3) {
|
|
9808
10001
|
if (!value) return "\u2014";
|
|
@@ -9840,7 +10033,7 @@ function ReadOnlyDataView({
|
|
|
9840
10033
|
density = "normal",
|
|
9841
10034
|
className
|
|
9842
10035
|
}) {
|
|
9843
|
-
const [activeDialog, setActiveDialog] =
|
|
10036
|
+
const [activeDialog, setActiveDialog] = useState26(null);
|
|
9844
10037
|
const cellPadding = density === "compact" ? "px-3 py-2" : "px-4 py-3";
|
|
9845
10038
|
const headerPadding = density === "compact" ? "px-3 py-2" : "px-4 py-3";
|
|
9846
10039
|
const handleHeaderClick = (column) => {
|
|
@@ -9897,7 +10090,7 @@ function ReadOnlyDataView({
|
|
|
9897
10090
|
"aria-hidden": "true"
|
|
9898
10091
|
}
|
|
9899
10092
|
) : /* @__PURE__ */ jsx87(
|
|
9900
|
-
|
|
10093
|
+
ChevronDownIcon9,
|
|
9901
10094
|
{
|
|
9902
10095
|
size: 12,
|
|
9903
10096
|
strokeWidth: 2.5,
|
|
@@ -10010,7 +10203,7 @@ function renderCell(column, row) {
|
|
|
10010
10203
|
}
|
|
10011
10204
|
|
|
10012
10205
|
// src/patterns/NotificationCenter/NotificationCenter.tsx
|
|
10013
|
-
import { forwardRef as forwardRef59, useState as
|
|
10206
|
+
import { forwardRef as forwardRef59, useState as useState27 } from "react";
|
|
10014
10207
|
import { BellIcon } from "lucide-react";
|
|
10015
10208
|
import { jsx as jsx88, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
10016
10209
|
var severityDotClass = {
|
|
@@ -10048,7 +10241,7 @@ var NotificationCenter = forwardRef59(
|
|
|
10048
10241
|
triggerAriaLabel = "Notifica\xE7\xF5es",
|
|
10049
10242
|
relativeTime
|
|
10050
10243
|
}, ref) => {
|
|
10051
|
-
const [filter, setFilter] =
|
|
10244
|
+
const [filter, setFilter] = useState27("unread");
|
|
10052
10245
|
const relativeTimeFn = relativeTime ?? defaultRelativeTime;
|
|
10053
10246
|
const filteredNotifs = filter === "unread" ? notifications.filter((n) => !n.read) : notifications;
|
|
10054
10247
|
return /* @__PURE__ */ jsxs61(Popover, { children: [
|
|
@@ -10448,7 +10641,7 @@ PageTitle.displayName = "PageTitle";
|
|
|
10448
10641
|
import {
|
|
10449
10642
|
cloneElement,
|
|
10450
10643
|
forwardRef as forwardRef64,
|
|
10451
|
-
isValidElement
|
|
10644
|
+
isValidElement as isValidElement2
|
|
10452
10645
|
} from "react";
|
|
10453
10646
|
import { Fragment as Fragment19, jsx as jsx93, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
10454
10647
|
var TutorialCard = forwardRef64(
|
|
@@ -10474,7 +10667,7 @@ var TutorialCard = forwardRef64(
|
|
|
10474
10667
|
duration && /* @__PURE__ */ jsx93("div", { className: "mt-auto pt-2", children: /* @__PURE__ */ jsx93(Badge, { variant: "info", size: "sm", children: duration }) })
|
|
10475
10668
|
] })
|
|
10476
10669
|
] });
|
|
10477
|
-
const emptyChild = asChild &&
|
|
10670
|
+
const emptyChild = asChild && isValidElement2(children) && children.props.children == null ? children : null;
|
|
10478
10671
|
return /* @__PURE__ */ jsx93(
|
|
10479
10672
|
Card,
|
|
10480
10673
|
{
|
|
@@ -10492,7 +10685,7 @@ var TutorialCard = forwardRef64(
|
|
|
10492
10685
|
TutorialCard.displayName = "TutorialCard";
|
|
10493
10686
|
|
|
10494
10687
|
// src/patterns/KpiCard/KpiCard.tsx
|
|
10495
|
-
import { ChevronDownIcon as
|
|
10688
|
+
import { ChevronDownIcon as ChevronDownIcon10 } from "lucide-react";
|
|
10496
10689
|
import { forwardRef as forwardRef65, useId as useId21 } from "react";
|
|
10497
10690
|
import { Fragment as Fragment20, jsx as jsx94, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
10498
10691
|
var resolveVariant = (variant) => variant === "danger" ? "error" : variant;
|
|
@@ -10569,7 +10762,7 @@ var KpiCard = forwardRef65(
|
|
|
10569
10762
|
}
|
|
10570
10763
|
),
|
|
10571
10764
|
/* @__PURE__ */ jsx94("span", { className: "truncate text-humu-body-xxs font-semibold uppercase", children: label }),
|
|
10572
|
-
onLabelClick && /* @__PURE__ */ jsx94(
|
|
10765
|
+
onLabelClick && /* @__PURE__ */ jsx94(ChevronDownIcon10, { className: "size-4 shrink-0", "aria-hidden": "true" })
|
|
10573
10766
|
] });
|
|
10574
10767
|
return /* @__PURE__ */ jsxs67(
|
|
10575
10768
|
"div",
|
|
@@ -10671,7 +10864,7 @@ KpiCard.displayName = "KpiCard";
|
|
|
10671
10864
|
|
|
10672
10865
|
// src/patterns/CommandPalette/CommandPalette.tsx
|
|
10673
10866
|
import { SearchIcon as SearchIcon4 } from "lucide-react";
|
|
10674
|
-
import { useEffect as useEffect12, useRef as
|
|
10867
|
+
import { useEffect as useEffect12, useRef as useRef10, useState as useState28 } from "react";
|
|
10675
10868
|
import { createPortal } from "react-dom";
|
|
10676
10869
|
import { Fragment as Fragment21, jsx as jsx95, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
10677
10870
|
function CommandPalette({
|
|
@@ -10687,9 +10880,9 @@ function CommandPalette({
|
|
|
10687
10880
|
emptyMessage = "Sem resultados.",
|
|
10688
10881
|
ariaLabel = "Paleta de comandos"
|
|
10689
10882
|
}) {
|
|
10690
|
-
const [queryValue, setQueryValue] =
|
|
10691
|
-
const [highlightedId, setHighlightedId] =
|
|
10692
|
-
const inputRef =
|
|
10883
|
+
const [queryValue, setQueryValue] = useState28(query ?? "");
|
|
10884
|
+
const [highlightedId, setHighlightedId] = useState28(null);
|
|
10885
|
+
const inputRef = useRef10(null);
|
|
10693
10886
|
const flatItems = groups.flatMap((g) => g.items.filter((i) => !i.disabled));
|
|
10694
10887
|
const filteredGroups = groups.filter((g) => g.loading || g.items.length > 0);
|
|
10695
10888
|
useEffect12(() => {
|
|
@@ -10880,7 +11073,7 @@ function CommandPalette({
|
|
|
10880
11073
|
}
|
|
10881
11074
|
|
|
10882
11075
|
// src/patterns/ChartTimeSeries/ChartTimeSeries.tsx
|
|
10883
|
-
import { forwardRef as forwardRef66, useId as useId22, useState as
|
|
11076
|
+
import { forwardRef as forwardRef66, useId as useId22, useState as useState29 } from "react";
|
|
10884
11077
|
import { Fragment as Fragment22, jsx as jsx96, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
10885
11078
|
var DEFAULT_RANGES = ["3m", "6m", "12m", "YTD"];
|
|
10886
11079
|
var DEFAULT_EMPTY_MESSAGE = "Sem dados no per\xEDodo.";
|
|
@@ -10937,7 +11130,7 @@ var ChartTimeSeries = forwardRef66(
|
|
|
10937
11130
|
className,
|
|
10938
11131
|
...props
|
|
10939
11132
|
}, ref) {
|
|
10940
|
-
const [internalRange, setInternalRange] =
|
|
11133
|
+
const [internalRange, setInternalRange] = useState29(
|
|
10941
11134
|
defaultRange ?? ranges[0]
|
|
10942
11135
|
);
|
|
10943
11136
|
const activeRange = range ?? internalRange;
|
|
@@ -11059,7 +11252,7 @@ var ChartTimeSeries = forwardRef66(
|
|
|
11059
11252
|
);
|
|
11060
11253
|
|
|
11061
11254
|
// src/patterns/DonutChart/DonutChart.tsx
|
|
11062
|
-
import { forwardRef as forwardRef67, useState as
|
|
11255
|
+
import { forwardRef as forwardRef67, useState as useState30 } from "react";
|
|
11063
11256
|
import { Cell, Pie, PieChart, ResponsiveContainer, Tooltip as Tooltip2 } from "recharts";
|
|
11064
11257
|
import { jsx as jsx97, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
11065
11258
|
var DEFAULT_COLORS = [
|
|
@@ -11144,7 +11337,7 @@ var DonutChart = forwardRef67(
|
|
|
11144
11337
|
const total = totalProp ?? data.reduce((acc, s) => acc + s.value, 0);
|
|
11145
11338
|
const slices = buildSlices(data, topN, othersLabel, defaultColors);
|
|
11146
11339
|
const isEmpty2 = data.length === 0 || total === 0;
|
|
11147
|
-
const [activeIdx, setActiveIdx] =
|
|
11340
|
+
const [activeIdx, setActiveIdx] = useState30(null);
|
|
11148
11341
|
return /* @__PURE__ */ jsxs70(
|
|
11149
11342
|
"div",
|
|
11150
11343
|
{
|
|
@@ -11327,7 +11520,7 @@ var ActionBar = forwardRef69(
|
|
|
11327
11520
|
ActionBar.displayName = "ActionBar";
|
|
11328
11521
|
|
|
11329
11522
|
// src/patterns/CookieConsent/CookieConsent.tsx
|
|
11330
|
-
import { useState as
|
|
11523
|
+
import { useState as useState31 } from "react";
|
|
11331
11524
|
import { Fragment as Fragment24, jsx as jsx100, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
11332
11525
|
var readConsent = (cookieName) => typeof document !== "undefined" && document.cookie.split("; ").some((cookie) => cookie.startsWith(`${cookieName}=`));
|
|
11333
11526
|
function CookieConsent({
|
|
@@ -11339,7 +11532,7 @@ function CookieConsent({
|
|
|
11339
11532
|
onAccept,
|
|
11340
11533
|
className
|
|
11341
11534
|
}) {
|
|
11342
|
-
const [open, setOpen] =
|
|
11535
|
+
const [open, setOpen] = useState31(() => !readConsent(cookieName));
|
|
11343
11536
|
if (!open) return null;
|
|
11344
11537
|
const accept = () => {
|
|
11345
11538
|
document.cookie = `${cookieName}=true; max-age=${maxAgeDays * 24 * 60 * 60}; path=/; SameSite=Lax`;
|
|
@@ -11408,8 +11601,8 @@ var ErrorBoundary = class extends Component {
|
|
|
11408
11601
|
};
|
|
11409
11602
|
|
|
11410
11603
|
// src/patterns/QuickFilters/QuickFilters.tsx
|
|
11411
|
-
import { ChevronDownIcon as
|
|
11412
|
-
import { useState as
|
|
11604
|
+
import { ChevronDownIcon as ChevronDownIcon11, EllipsisIcon } from "lucide-react";
|
|
11605
|
+
import { useState as useState32 } from "react";
|
|
11413
11606
|
import { Fragment as Fragment25, jsx as jsx102, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
11414
11607
|
var visibleFrom = {
|
|
11415
11608
|
0: "inline-flex",
|
|
@@ -11437,7 +11630,7 @@ function QuickFilters({
|
|
|
11437
11630
|
onValueChange,
|
|
11438
11631
|
moreLabel = "Mais"
|
|
11439
11632
|
}) {
|
|
11440
|
-
const [moreOpen, setMoreOpen] =
|
|
11633
|
+
const [moreOpen, setMoreOpen] = useState32(false);
|
|
11441
11634
|
if (items.length === 0) return null;
|
|
11442
11635
|
const toggle = (id) => {
|
|
11443
11636
|
onValueChange(id === value ? null : id);
|
|
@@ -11473,7 +11666,7 @@ function QuickFilters({
|
|
|
11473
11666
|
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",
|
|
11474
11667
|
children: [
|
|
11475
11668
|
moreLabel,
|
|
11476
|
-
/* @__PURE__ */ jsx102(
|
|
11669
|
+
/* @__PURE__ */ jsx102(ChevronDownIcon11, { "aria-hidden": "true" })
|
|
11477
11670
|
]
|
|
11478
11671
|
}
|
|
11479
11672
|
) }),
|
|
@@ -11754,7 +11947,7 @@ import {
|
|
|
11754
11947
|
CircleAlertIcon as CircleAlertIcon4,
|
|
11755
11948
|
XIcon as XIcon9
|
|
11756
11949
|
} from "lucide-react";
|
|
11757
|
-
import { useState as
|
|
11950
|
+
import { useState as useState33 } from "react";
|
|
11758
11951
|
import { Fragment as Fragment26, jsx as jsx107, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
11759
11952
|
var stepIndicatorClass = {
|
|
11760
11953
|
completed: "bg-humu-status-background-success text-humu-content-on-brand border-humu-status-background-success",
|
|
@@ -11830,7 +12023,7 @@ function WizardAside({
|
|
|
11830
12023
|
defaultCollapsed,
|
|
11831
12024
|
children
|
|
11832
12025
|
}) {
|
|
11833
|
-
const [collapsed, setCollapsed] =
|
|
12026
|
+
const [collapsed, setCollapsed] = useState33(Boolean(defaultCollapsed));
|
|
11834
12027
|
const isCollapsed = Boolean(collapsible && collapsed);
|
|
11835
12028
|
return /* @__PURE__ */ jsxs77(
|
|
11836
12029
|
"aside",
|
|
@@ -12011,7 +12204,7 @@ function WizardShell(props) {
|
|
|
12011
12204
|
WizardShell.displayName = "WizardShell";
|
|
12012
12205
|
|
|
12013
12206
|
// src/patterns/DSAccordion/DSAccordion.tsx
|
|
12014
|
-
import { ChevronDownIcon as
|
|
12207
|
+
import { ChevronDownIcon as ChevronDownIcon12 } from "lucide-react";
|
|
12015
12208
|
import {
|
|
12016
12209
|
forwardRef as forwardRef72
|
|
12017
12210
|
} from "react";
|
|
@@ -12073,7 +12266,7 @@ var Trigger16 = forwardRef72(
|
|
|
12073
12266
|
/* @__PURE__ */ jsxs78("span", { className: "flex shrink-0 items-center gap-3", children: [
|
|
12074
12267
|
meta,
|
|
12075
12268
|
/* @__PURE__ */ jsx108(
|
|
12076
|
-
|
|
12269
|
+
ChevronDownIcon12,
|
|
12077
12270
|
{
|
|
12078
12271
|
size: 16,
|
|
12079
12272
|
strokeWidth: 2.5,
|
|
@@ -12168,7 +12361,7 @@ function DataField({
|
|
|
12168
12361
|
import { ListFilterIcon } from "lucide-react";
|
|
12169
12362
|
import {
|
|
12170
12363
|
useEffect as useEffect14,
|
|
12171
|
-
useState as
|
|
12364
|
+
useState as useState34
|
|
12172
12365
|
} from "react";
|
|
12173
12366
|
import { Fragment as Fragment27, jsx as jsx110, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
12174
12367
|
function isStringValue(v) {
|
|
@@ -12408,13 +12601,13 @@ function FilterBar({
|
|
|
12408
12601
|
onOpenChange
|
|
12409
12602
|
}) {
|
|
12410
12603
|
const isOpenControlled = controlledOpen !== void 0;
|
|
12411
|
-
const [internalOpen, setInternalOpen] =
|
|
12604
|
+
const [internalOpen, setInternalOpen] = useState34(defaultOpen);
|
|
12412
12605
|
const open = isOpenControlled ? controlledOpen : internalOpen;
|
|
12413
12606
|
const setOpen = (next) => {
|
|
12414
12607
|
if (!isOpenControlled) setInternalOpen(next);
|
|
12415
12608
|
onOpenChange?.(next);
|
|
12416
12609
|
};
|
|
12417
|
-
const [draftValues, setDraftValues] =
|
|
12610
|
+
const [draftValues, setDraftValues] = useState34(
|
|
12418
12611
|
controlledValues ?? defaultValues ?? {}
|
|
12419
12612
|
);
|
|
12420
12613
|
useEffect14(() => {
|
|
@@ -12614,7 +12807,7 @@ function FormSection({
|
|
|
12614
12807
|
}
|
|
12615
12808
|
|
|
12616
12809
|
// src/patterns/FormWithAside/FormWithAside.tsx
|
|
12617
|
-
import { useState as
|
|
12810
|
+
import { useState as useState35 } from "react";
|
|
12618
12811
|
import { ChevronsLeftIcon as ChevronsLeftIcon2, ChevronsRightIcon as ChevronsRightIcon2 } from "lucide-react";
|
|
12619
12812
|
import { Fragment as Fragment28, jsx as jsx113, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
12620
12813
|
function scrollToId(id) {
|
|
@@ -12629,7 +12822,7 @@ function FormWithAside({
|
|
|
12629
12822
|
overallPercent,
|
|
12630
12823
|
asideExtra
|
|
12631
12824
|
}) {
|
|
12632
|
-
const [collapsed, setCollapsed] =
|
|
12825
|
+
const [collapsed, setCollapsed] = useState35(false);
|
|
12633
12826
|
const computedOverall = overallPercent ?? (sections.length > 0 ? Math.round(
|
|
12634
12827
|
sections.reduce((sum, s) => sum + (s.percent ?? 0), 0) / sections.length
|
|
12635
12828
|
) : 0);
|
|
@@ -13438,9 +13631,9 @@ function WorkflowDesigner({
|
|
|
13438
13631
|
import {
|
|
13439
13632
|
forwardRef as forwardRef75,
|
|
13440
13633
|
useId as useId23,
|
|
13441
|
-
useState as
|
|
13634
|
+
useState as useState36
|
|
13442
13635
|
} from "react";
|
|
13443
|
-
import { ChevronDownIcon as
|
|
13636
|
+
import { ChevronDownIcon as ChevronDownIcon13 } from "lucide-react";
|
|
13444
13637
|
import { Fragment as Fragment29, jsx as jsx121, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
13445
13638
|
var TONE_ICON = {
|
|
13446
13639
|
neutral: "border border-humu-background-border bg-humu-background-surface",
|
|
@@ -13478,7 +13671,7 @@ var TimelineItem = forwardRef75(
|
|
|
13478
13671
|
...props
|
|
13479
13672
|
}, ref) => {
|
|
13480
13673
|
const contentId = useId23();
|
|
13481
|
-
const [uncontrolled, setUncontrolled] =
|
|
13674
|
+
const [uncontrolled, setUncontrolled] = useState36(defaultOpen);
|
|
13482
13675
|
const isOpen = open ?? uncontrolled;
|
|
13483
13676
|
const expandable = children !== void 0 && children !== null;
|
|
13484
13677
|
const row = /* @__PURE__ */ jsxs91(Fragment29, { children: [
|
|
@@ -13510,7 +13703,7 @@ var TimelineItem = forwardRef75(
|
|
|
13510
13703
|
"aria-hidden": "true",
|
|
13511
13704
|
className: "inline-flex size-6 shrink-0 items-center justify-center text-humu-content-body-text",
|
|
13512
13705
|
children: /* @__PURE__ */ jsx121(
|
|
13513
|
-
|
|
13706
|
+
ChevronDownIcon13,
|
|
13514
13707
|
{
|
|
13515
13708
|
className: cn(
|
|
13516
13709
|
"size-4 transition-transform duration-humu-fast motion-reduce:transition-none",
|