twenty-ui 2.50.0 → 2.51.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +36 -32
- package/dist/{AllIcons-Cyd7721G.cjs → AllIcons-1tBWXXrE.cjs} +1 -1
- package/dist/{AllIcons-D132B8_i.js → AllIcons-ayl8BCtV.js} +1 -1
- package/dist/Dropdown-D_hFndP5.cjs +1 -0
- package/dist/Dropdown-xXsGBv57.js +1056 -0
- package/dist/Input-D1sIHUZ5.js +25 -0
- package/dist/Input-D69M4UwD.cjs +1 -0
- package/dist/ListItem-B-SFWJZb.cjs +1 -0
- package/dist/ListItem-WLONJMo5.js +91 -0
- package/dist/ListItem.module-B31VK9XZ.js +34 -0
- package/dist/ListItem.module-DiUK6-0Z.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-ClpPsdpP.cjs +1 -0
- package/dist/OverflowingTextWithTooltip-D4eZc-7P.js +96 -0
- package/dist/ProgressBar-8pjpGrmZ.js +99 -0
- package/dist/ProgressBar-goqxS9NE.cjs +1 -0
- package/dist/Radio-CpQPRHXa.cjs +1 -0
- package/dist/Radio-VTjpEz8M.js +175 -0
- package/dist/Skeleton-BbIF780H.js +31 -0
- package/dist/Skeleton-tXeIy4qq.cjs +1 -0
- package/dist/TablerIcons-B-5Ua_Ne.js +460 -0
- package/dist/{Tooltip-DL3sfbuw.cjs → Tooltip-08dDawT_.cjs} +1 -1
- package/dist/components/data-display/DetailsRow/DetailsRow.d.ts +2 -0
- package/dist/components/data-display/DetailsRow/types/DetailsRowProps.d.ts +9 -0
- package/dist/components/data-display/index.d.ts +2 -0
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +9 -8
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +1 -1
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerCssVariableThemeExample.d.ts +1 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerExample.d.ts +5 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerExternalMonthExample.d.ts +4 -0
- package/dist/components/input/DatePicker/__stories__/DatePickerNavigationUnmountExample.d.ts +2 -0
- package/dist/components/input/DatePicker/__stories__/datePickerWeekdayLabels.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/DatePickerException.d.ts +5 -0
- package/dist/components/input/DatePicker/internal/DatePickerHeader.d.ts +3 -0
- package/dist/components/input/DatePicker/internal/DatePickerSelect.d.ts +15 -0
- package/dist/components/input/DatePicker/internal/DatePickerSelectLifecycleEffect.d.ts +7 -0
- package/dist/components/input/DatePicker/internal/DatePickerViewedMonthEffect.d.ts +9 -0
- package/dist/components/input/DatePicker/internal/ReactDatePickerLibrary.d.ts +2 -0
- package/dist/components/input/DatePicker/internal/datePickerConstants.d.ts +6 -0
- package/dist/components/input/DatePicker/internal/formatDatePickerLocalDate.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/parseDatePickerDateOrThrow.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/parseDatePickerLocalDateOrThrow.d.ts +1 -0
- package/dist/components/input/DatePicker/internal/validateDatePickerHighlightedRangeOrThrow.d.ts +4 -0
- package/dist/components/input/DatePicker/types/DatePickerHeaderProps.d.ts +9 -0
- package/dist/components/input/DatePicker/types/DatePickerProps.d.ts +42 -0
- package/dist/components/input/EmojiPicker/EmojiPicker.d.ts +2 -0
- package/dist/components/input/EmojiPicker/__stories__/EmojiPickerExample.d.ts +4 -0
- package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryData.d.ts +30 -0
- package/dist/components/input/EmojiPicker/__stories__/emojiPickerStoryEmojibaseUrl.d.ts +1 -0
- package/dist/components/input/EmojiPicker/__stories__/mockEmojiPickerStoryData.d.ts +5 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerEmoji.d.ts +2 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerRow.d.ts +2 -0
- package/dist/components/input/EmojiPicker/internal/EmojiPickerScrollEffect.d.ts +6 -0
- package/dist/components/input/EmojiPicker/internal/scrollActiveEmojiIntoView.d.ts +1 -0
- package/dist/components/input/EmojiPicker/types/EmojiPickerProps.d.ts +11 -0
- package/dist/components/input/FormFieldRow/FormFieldRow.d.ts +2 -0
- package/dist/components/input/FormFieldRow/types/FormFieldRowProps.d.ts +12 -0
- package/dist/components/input/ReactionButton/ReactionButton.d.ts +2 -0
- package/dist/components/input/ReactionButton/__stories__/ReactionButtonExample.d.ts +2 -0
- package/dist/components/input/ReactionButton/types/ReactionButtonProps.d.ts +14 -0
- package/dist/components/input/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/input/SearchInput/types/SearchInputProps.d.ts +1 -1
- package/dist/components/input/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +2 -0
- package/dist/components/input/SegmentedControl/types/SegmentedControlVariant.d.ts +1 -0
- package/dist/components/input/index.d.ts +10 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +17 -13
- package/dist/components/layout/LabeledSeparator/LabeledSeparator.d.ts +2 -0
- package/dist/components/layout/LabeledSeparator/types/LabeledSeparatorProps.d.ts +7 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +5 -4
- package/dist/components/navigation/CountPager/CountPager.d.ts +2 -0
- package/dist/components/navigation/CountPager/__stories__/CountPagerCollectionExample.d.ts +3 -0
- package/dist/components/navigation/CountPager/__stories__/CountPagerExample.d.ts +2 -0
- package/dist/components/navigation/CountPager/types/CountPagerProps.d.ts +11 -0
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +4 -4
- package/dist/components/navigation/Dropdown/__stories__/DropdownControlledPageSessionExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownNestedPageSessionExample.d.ts +6 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPageActivityExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPageSessionExample.d.ts +5 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownPickerPageSessionExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/hooks/useDropdownPage.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContent.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +3 -0
- package/dist/components/navigation/Dropdown/internal/DropdownEmpty.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownLoading.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownPageEffect.d.ts +8 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/isActiveDropdownElement.d.ts +1 -0
- package/dist/components/navigation/Dropdown/types/DropdownSearchProps.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/ListItemButton.d.ts +1 -1
- package/dist/components/navigation/ListItemButton/types/ListItemButtonProps.d.ts +1 -1
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +7 -6
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +44 -37
- package/dist/{data-display-CXw-mxeS.js → data-display-DUMj_z1t.js} +25 -25
- package/dist/data-display-D_kbXJJd.cjs +2 -0
- package/dist/{data-display-DdES9XqZ.cjs → data-display-DzHM5j7j.cjs} +1 -1
- package/dist/data-display-b-9s0RTe.js +422 -0
- package/dist/feedback-B50I0C35.cjs +1 -0
- package/dist/feedback-BQFSnMjh.js +10 -0
- package/dist/{feedback-DspXawf9.cjs → feedback-BzR4ggrP.cjs} +1 -1
- package/dist/{feedback-4HKPcMRs.js → feedback-EaZszoXf.js} +29 -29
- package/dist/icon/components/TablerIcons.d.ts +1 -1
- package/dist/icon/constants/TwentyIconDictionary.d.ts +9 -0
- package/dist/icon/index.d.ts +1 -1
- package/dist/{icon-CUE-QGQK.js → icon-ICz2_dVB.js} +550 -944
- package/dist/icon-TSBamkxk.cjs +1 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.mjs +510 -504
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +666 -652
- package/dist/input-BQABEELu.cjs +1 -0
- package/dist/input-CuySKbhm.js +2356 -0
- package/dist/input-DxoXgI5-.js +373 -0
- package/dist/input-ExCbk62Y.cjs +1 -0
- package/dist/layout-B1Iwc9ku.cjs +1 -0
- package/dist/layout-B2KvJ900.js +479 -0
- package/dist/navigation-DP5Edsq_.cjs +1 -0
- package/dist/navigation-DXMjQMPm.js +134 -0
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +1 -1
- package/dist/primitives/feedback/Banner/Banner.d.ts +1 -1
- package/dist/primitives/feedback/Banner/internal/BannerComponent.d.ts +1 -1
- package/dist/primitives/feedback/Banner/types/BannerProps.d.ts +2 -0
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +9 -8
- package/dist/primitives/input/Autocomplete/types/AutocompleteItemProps.d.ts +3 -1
- package/dist/primitives/input/Input/Input.d.ts +1 -1
- package/dist/primitives/input/Input/types/InputProps.d.ts +3 -0
- package/dist/primitives/input/InputGroup/InputGroup.d.ts +1 -1
- package/dist/primitives/input/InputGroup/types/InputGroupProps.d.ts +1 -0
- package/dist/primitives/input/Textarea/Textarea.d.ts +1 -1
- package/dist/primitives/input/Textarea/internal/TextareaAutoResizeEffect.d.ts +8 -0
- package/dist/primitives/input/Textarea/types/TextareaProps.d.ts +2 -0
- package/dist/primitives/input/index.d.ts +1 -0
- package/dist/primitives/input/types/InputVariant.d.ts +1 -0
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +14 -14
- package/dist/primitives/navigation/ListItem/ListItem.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/__stories__/ListItemMultilineExample.d.ts +7 -0
- package/dist/primitives/navigation/ListItem/types/ListItemDescriptionPlacement.d.ts +1 -1
- package/dist/primitives/navigation/ListItem/types/ListItemProps.d.ts +3 -0
- package/dist/primitives/navigation/ListItem/types/ListItemState.d.ts +1 -0
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +1 -1
- package/dist/primitives/surfaces/Card/Card.d.ts +2 -0
- package/dist/primitives/surfaces/Card/internal/CardAction.d.ts +2 -0
- package/dist/primitives/surfaces/Card/internal/CardControl.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardActionProps.d.ts +2 -0
- package/dist/primitives/surfaces/Card/types/CardControlProps.d.ts +2 -0
- package/dist/primitives/surfaces/index.d.ts +2 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +4 -2
- package/dist/primitives/typography/OverflowingTextWithTooltip/types/OverflowingTextWithTooltipProps.d.ts +2 -1
- package/dist/primitives/typography/Text/Text.d.ts +1 -1
- package/dist/primitives/typography/Text/internal/TextTypographyProps.d.ts +7 -0
- package/dist/primitives/typography/Text/types/TextProps.d.ts +2 -1
- package/dist/primitives/typography/internal/TypographyColor.d.ts +2 -0
- package/dist/primitives/typography/internal/TypographyFontSize.d.ts +2 -0
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +2 -2
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +52 -51
- package/dist/{settings-XGSJtobU.js → settings-BTFAqYrD.js} +1 -1
- package/dist/{settings-DT5bEO6A.cjs → settings-D_iT1ngl.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-DtZwsfms.cjs +1 -0
- package/dist/surfaces-v0kQLZYO.js +224 -0
- package/dist/{typography-CWtuNruY.cjs → typography-B05olPwL.cjs} +1 -1
- package/dist/{typography-BPdXzW2T.js → typography-BwyZEDDi.js} +1 -1
- package/dist/utilities/color/utils/themeColorSchema.d.ts +15 -15
- package/package.json +3 -1
- package/dist/Dropdown-ChTVyesF.js +0 -1018
- package/dist/Dropdown-DlItz8Gh.cjs +0 -1
- package/dist/Input-DZWl81G_.js +0 -23
- package/dist/Input-DvL77rvu.cjs +0 -1
- package/dist/ListItem-C6Xl00m1.cjs +0 -1
- package/dist/ListItem-C84ANa76.js +0 -86
- package/dist/ListItem.module-BJ9Ttjrc.js +0 -34
- package/dist/ListItem.module-CO4u2oeF.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BQmpPObX.cjs +0 -1
- package/dist/OverflowingTextWithTooltip-BtB9cGdJ.js +0 -89
- package/dist/ProgressBar-CzGs7cuE.cjs +0 -1
- package/dist/ProgressBar-D4tKQ7OA.js +0 -84
- package/dist/Radio-BwBZ4e8g.js +0 -103
- package/dist/Radio-sIYxZnR_.cjs +0 -1
- package/dist/data-display-C-eoJ5En.js +0 -378
- package/dist/data-display-CM1yXpnE.cjs +0 -2
- package/dist/feedback-BSOWDBI0.js +0 -38
- package/dist/feedback-DBRXDPSP.cjs +0 -1
- package/dist/icon-BNcdwwdl.cjs +0 -1
- package/dist/input-CWWp7cqL.cjs +0 -1
- package/dist/input-CvZ_uB_9.cjs +0 -1
- package/dist/input-Qn5_aFYU.js +0 -785
- package/dist/input-k5cMhFI_.js +0 -428
- package/dist/layout-DDqeMgFv.js +0 -439
- package/dist/layout-iSfGrMrH.cjs +0 -1
- package/dist/navigation-7Y6gHFlj.cjs +0 -1
- package/dist/navigation-BcXCiLE1.js +0 -86
- package/dist/primitives/typography/internal/Label/Label.d.ts +0 -8
- package/dist/surfaces-q8voTXEJ.cjs +0 -1
- package/dist/surfaces-vhSZBmbz.js +0 -201
- package/dist/{Tooltip-6uS8_wdA.js → Tooltip-C7zc16gI.js} +1 -1
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { t as _ } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as u } from "./theme-B2EaXhye.js";
|
|
3
|
+
import { t as c } from "./mergeClassNames-ClFMR1v0.js";
|
|
4
|
+
import { t as v } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
5
|
+
import { t as f } from "./Heading-Nj5BlPqB.js";
|
|
6
|
+
import { useRender as l } from "@base-ui/react/use-render";
|
|
7
|
+
import { isUndefined as D } from "@sniptt/guards";
|
|
8
|
+
import { clsx as d } from "clsx";
|
|
9
|
+
import { isValidElement as C } from "react";
|
|
10
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
11
|
+
import { AlertDialog as s } from "@base-ui/react/alert-dialog";
|
|
12
|
+
import { Dialog as p } from "@base-ui/react/dialog";
|
|
13
|
+
var N = "_backdrop_aak4r_1", k = "_viewport_aak4r_12", H = "_popup_aak4r_30", A = "_header_aak4r_82", T = "_body_aak4r_91", y = "_footer_aak4r_95", b = "_title_aak4r_106", P = "_description_aak4r_113", t = {
|
|
14
|
+
backdrop: N,
|
|
15
|
+
viewport: k,
|
|
16
|
+
popup: H,
|
|
17
|
+
header: A,
|
|
18
|
+
body: T,
|
|
19
|
+
footer: y,
|
|
20
|
+
title: b,
|
|
21
|
+
description: P
|
|
22
|
+
}, w = ({ className: a, ...r }) => /* @__PURE__ */ i(s.Backdrop, {
|
|
23
|
+
...r,
|
|
24
|
+
className: c(t.backdrop, a)
|
|
25
|
+
}), B = ({ render: a, ref: r, className: o, ...e }) => l({
|
|
26
|
+
render: a,
|
|
27
|
+
ref: r,
|
|
28
|
+
props: {
|
|
29
|
+
...e,
|
|
30
|
+
className: d(t.body, o)
|
|
31
|
+
}
|
|
32
|
+
}), F = ({ className: a, ...r }) => /* @__PURE__ */ i(s.Description, {
|
|
33
|
+
...r,
|
|
34
|
+
className: c(t.description, a)
|
|
35
|
+
}), h = ({ render: a, ref: r, className: o, ...e }) => l({
|
|
36
|
+
render: a,
|
|
37
|
+
ref: r,
|
|
38
|
+
props: {
|
|
39
|
+
...e,
|
|
40
|
+
className: d(t.footer, o)
|
|
41
|
+
}
|
|
42
|
+
}), R = ({ render: a, ref: r, className: o, ...e }) => l({
|
|
43
|
+
render: a,
|
|
44
|
+
ref: r,
|
|
45
|
+
props: {
|
|
46
|
+
...e,
|
|
47
|
+
className: d(t.header, o)
|
|
48
|
+
}
|
|
49
|
+
}), V = ({ container: a, ...r }) => {
|
|
50
|
+
const o = u(), e = v();
|
|
51
|
+
return /* @__PURE__ */ i(s.Portal, {
|
|
52
|
+
dir: e,
|
|
53
|
+
...r,
|
|
54
|
+
container: a === void 0 ? o ?? void 0 : a
|
|
55
|
+
});
|
|
56
|
+
}, x = ({ size: a = "md", className: r, ...o }) => /* @__PURE__ */ i(s.Popup, {
|
|
57
|
+
...o,
|
|
58
|
+
"data-size": a,
|
|
59
|
+
className: c(t.popup, r)
|
|
60
|
+
}), $ = ({ className: a, ...r }) => /* @__PURE__ */ i(s.Title, {
|
|
61
|
+
...r,
|
|
62
|
+
className: c(t.title, a)
|
|
63
|
+
}), z = ({ className: a, ...r }) => {
|
|
64
|
+
const o = v();
|
|
65
|
+
return /* @__PURE__ */ i(s.Viewport, {
|
|
66
|
+
dir: o,
|
|
67
|
+
...r,
|
|
68
|
+
className: c(t.viewport, a)
|
|
69
|
+
});
|
|
70
|
+
}, j = () => ({
|
|
71
|
+
Root: s.Root,
|
|
72
|
+
Trigger: s.Trigger,
|
|
73
|
+
Portal: V,
|
|
74
|
+
Backdrop: w,
|
|
75
|
+
Viewport: z,
|
|
76
|
+
Popup: x,
|
|
77
|
+
Title: $,
|
|
78
|
+
Description: F,
|
|
79
|
+
Close: s.Close,
|
|
80
|
+
Header: R,
|
|
81
|
+
Body: B,
|
|
82
|
+
Footer: h,
|
|
83
|
+
Handle: s.Handle,
|
|
84
|
+
createHandle: s.createHandle
|
|
85
|
+
}), Pa = /* @__PURE__ */ j(), E = "_action_mi80l_1", U = { action: E }, q = ({ className: a, disabled: r = !1, render: o, ref: e, ...n }) => l({
|
|
86
|
+
defaultTagName: "button",
|
|
87
|
+
render: o,
|
|
88
|
+
ref: e,
|
|
89
|
+
props: {
|
|
90
|
+
...!_(o) || C(o) && o.type === "button" ? { type: "button" } : void 0,
|
|
91
|
+
disabled: r || void 0,
|
|
92
|
+
...n,
|
|
93
|
+
className: d(U.action, a),
|
|
94
|
+
"data-card-action": "",
|
|
95
|
+
"data-disabled": r || void 0
|
|
96
|
+
}
|
|
97
|
+
}), G = "_control_do7fa_1", I = { control: G }, J = ({ className: a, render: r, ref: o, ...e }) => l({
|
|
98
|
+
defaultTagName: "span",
|
|
99
|
+
render: r,
|
|
100
|
+
ref: o,
|
|
101
|
+
props: {
|
|
102
|
+
...e,
|
|
103
|
+
className: d(I.control, a)
|
|
104
|
+
}
|
|
105
|
+
}), K = "_cardContent_58fb8_1", L = { cardContent: K }, M = ({ className: a, divider: r, render: o, ref: e, ...n }) => l({
|
|
106
|
+
render: o,
|
|
107
|
+
ref: e,
|
|
108
|
+
props: {
|
|
109
|
+
...n,
|
|
110
|
+
className: d(L.cardContent, a),
|
|
111
|
+
"data-divider": r || void 0
|
|
112
|
+
}
|
|
113
|
+
}), O = "_cardFooter_1mjcf_1", Q = { cardFooter: O }, S = ({ className: a, divider: r, render: o, ref: e, ...n }) => l({
|
|
114
|
+
render: o,
|
|
115
|
+
ref: e,
|
|
116
|
+
props: {
|
|
117
|
+
...n,
|
|
118
|
+
className: d(Q.cardFooter, a),
|
|
119
|
+
"data-no-divider": r === !1 || void 0
|
|
120
|
+
}
|
|
121
|
+
}), W = "_cardHeader_1u3yd_1", X = { cardHeader: W }, Y = ({ className: a, render: r, ref: o, ...e }) => l({
|
|
122
|
+
render: r,
|
|
123
|
+
ref: o,
|
|
124
|
+
props: {
|
|
125
|
+
...e,
|
|
126
|
+
className: d(X.cardHeader, a)
|
|
127
|
+
}
|
|
128
|
+
}), Z = "_card_12yh1_1", aa = { card: Z }, ra = ({ className: a, fullWidth: r, backgroundColor: o, style: e, render: n, ref: m, ...g }) => l({
|
|
129
|
+
render: n,
|
|
130
|
+
ref: m,
|
|
131
|
+
props: {
|
|
132
|
+
...g,
|
|
133
|
+
className: d(aa.card, a),
|
|
134
|
+
"data-full-width": r || void 0,
|
|
135
|
+
style: _(o) ? {
|
|
136
|
+
...e,
|
|
137
|
+
"--card-background-color": o
|
|
138
|
+
} : e
|
|
139
|
+
}
|
|
140
|
+
}), wa = {
|
|
141
|
+
Root: ra,
|
|
142
|
+
Action: q,
|
|
143
|
+
Control: J,
|
|
144
|
+
Header: Y,
|
|
145
|
+
Content: M,
|
|
146
|
+
Footer: S
|
|
147
|
+
}, oa = ({ className: a, ...r }) => /* @__PURE__ */ i(p.Backdrop, {
|
|
148
|
+
...r,
|
|
149
|
+
className: c(t.backdrop, a)
|
|
150
|
+
}), ea = ({ render: a, ref: r, className: o, ...e }) => l({
|
|
151
|
+
render: a,
|
|
152
|
+
ref: r,
|
|
153
|
+
props: {
|
|
154
|
+
...e,
|
|
155
|
+
className: d(t.body, o)
|
|
156
|
+
}
|
|
157
|
+
}), ta = "_description_3f4d1_1", ia = { description: ta }, da = ({ className: a, ...r }) => /* @__PURE__ */ i(p.Description, {
|
|
158
|
+
...r,
|
|
159
|
+
className: c(d(t.description, ia.description), a)
|
|
160
|
+
}), la = ({ render: a, ref: r, className: o, ...e }) => l({
|
|
161
|
+
render: a,
|
|
162
|
+
ref: r,
|
|
163
|
+
props: {
|
|
164
|
+
...e,
|
|
165
|
+
className: d(t.footer, o)
|
|
166
|
+
}
|
|
167
|
+
}), sa = ({ render: a, ref: r, className: o, ...e }) => l({
|
|
168
|
+
render: a,
|
|
169
|
+
ref: r,
|
|
170
|
+
props: {
|
|
171
|
+
...e,
|
|
172
|
+
className: d(t.header, o)
|
|
173
|
+
}
|
|
174
|
+
}), pa = ({ size: a = "md", className: r, ...o }) => {
|
|
175
|
+
const e = v();
|
|
176
|
+
return /* @__PURE__ */ i(p.Popup, {
|
|
177
|
+
dir: e,
|
|
178
|
+
...o,
|
|
179
|
+
"data-size": a,
|
|
180
|
+
className: c(t.popup, r)
|
|
181
|
+
});
|
|
182
|
+
}, ca = ({ container: a, ...r }) => {
|
|
183
|
+
const o = u();
|
|
184
|
+
return /* @__PURE__ */ i(p.Portal, {
|
|
185
|
+
...r,
|
|
186
|
+
container: D(a) ? o ?? void 0 : a
|
|
187
|
+
});
|
|
188
|
+
}, na = "_title_yzpck_1", va = { title: na }, ma = ({ level: a = 2, size: r = "lg", color: o = "primary", className: e, render: n, ...m }) => /* @__PURE__ */ i(p.Title, {
|
|
189
|
+
...m,
|
|
190
|
+
className: c(va.title, e),
|
|
191
|
+
render: /* @__PURE__ */ i(f, {
|
|
192
|
+
level: a,
|
|
193
|
+
size: r,
|
|
194
|
+
color: o,
|
|
195
|
+
render: n
|
|
196
|
+
})
|
|
197
|
+
}), _a = ({ className: a, ...r }) => {
|
|
198
|
+
const o = v();
|
|
199
|
+
return /* @__PURE__ */ i(p.Viewport, {
|
|
200
|
+
dir: o,
|
|
201
|
+
...r,
|
|
202
|
+
className: c(t.viewport, a)
|
|
203
|
+
});
|
|
204
|
+
}, Ba = {
|
|
205
|
+
createHandle: p.createHandle,
|
|
206
|
+
Handle: p.Handle,
|
|
207
|
+
Root: p.Root,
|
|
208
|
+
Trigger: p.Trigger,
|
|
209
|
+
Portal: ca,
|
|
210
|
+
Backdrop: oa,
|
|
211
|
+
Viewport: _a,
|
|
212
|
+
Popup: pa,
|
|
213
|
+
Title: ma,
|
|
214
|
+
Description: da,
|
|
215
|
+
Close: p.Close,
|
|
216
|
+
Header: sa,
|
|
217
|
+
Body: ea,
|
|
218
|
+
Footer: la
|
|
219
|
+
};
|
|
220
|
+
export {
|
|
221
|
+
wa as n,
|
|
222
|
+
Pa as r,
|
|
223
|
+
Ba as t
|
|
224
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("./Shortcut-N8TELGPI.cjs"),o=require("./OverflowingTextWithTooltip-
|
|
1
|
+
const t=require("./Shortcut-N8TELGPI.cjs"),o=require("./OverflowingTextWithTooltip-ClpPsdpP.cjs");let i=require("react/jsx-runtime");var n=({mode:e,children:r})=>(0,i.jsx)(o.OverflowingTextTooltipModeContext.Provider,{value:e,children:r}),u=e=>t.getShortcutPresentation(e).text;Object.defineProperty(exports,"OverflowingTextTooltipModeProvider",{enumerable:!0,get:function(){return n}});Object.defineProperty(exports,"formatShortcut",{enumerable:!0,get:function(){return u}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as r } from "./Shortcut-Bp9iDdQg.js";
|
|
2
|
-
import { n as e } from "./OverflowingTextWithTooltip-
|
|
2
|
+
import { n as e } from "./OverflowingTextWithTooltip-D4eZc-7P.js";
|
|
3
3
|
import { jsx as i } from "react/jsx-runtime";
|
|
4
4
|
var v = ({ mode: o, children: t }) => /* @__PURE__ */ i(e.Provider, {
|
|
5
5
|
value: o,
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const themeColorSchema: z.ZodEnum<{
|
|
3
3
|
ruby: "ruby";
|
|
4
|
-
|
|
4
|
+
blue: "blue";
|
|
5
|
+
brown: "brown";
|
|
5
6
|
crimson: "crimson";
|
|
6
|
-
|
|
7
|
+
cyan: "cyan";
|
|
8
|
+
gold: "gold";
|
|
9
|
+
gray: "gray";
|
|
10
|
+
green: "green";
|
|
11
|
+
lime: "lime";
|
|
7
12
|
orange: "orange";
|
|
8
|
-
|
|
13
|
+
pink: "pink";
|
|
14
|
+
plum: "plum";
|
|
15
|
+
purple: "purple";
|
|
16
|
+
red: "red";
|
|
17
|
+
tomato: "tomato";
|
|
18
|
+
turquoise: "turquoise";
|
|
19
|
+
violet: "violet";
|
|
9
20
|
yellow: "yellow";
|
|
10
|
-
|
|
21
|
+
amber: "amber";
|
|
11
22
|
grass: "grass";
|
|
12
|
-
green: "green";
|
|
13
23
|
jade: "jade";
|
|
14
24
|
mint: "mint";
|
|
15
|
-
turquoise: "turquoise";
|
|
16
|
-
cyan: "cyan";
|
|
17
25
|
sky: "sky";
|
|
18
|
-
blue: "blue";
|
|
19
26
|
iris: "iris";
|
|
20
|
-
violet: "violet";
|
|
21
|
-
purple: "purple";
|
|
22
|
-
plum: "plum";
|
|
23
|
-
pink: "pink";
|
|
24
27
|
bronze: "bronze";
|
|
25
|
-
gold: "gold";
|
|
26
|
-
brown: "brown";
|
|
27
|
-
gray: "gray";
|
|
28
28
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twenty-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.51.3",
|
|
4
4
|
"description": "Twenty's shared React UI component library.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@vitejs/plugin-react-swc": "^4.3.1",
|
|
52
52
|
"@vitest/browser-playwright": "^4.1.0",
|
|
53
53
|
"esbuild": "^0.28.1",
|
|
54
|
+
"frimousse": "^0.4.0",
|
|
54
55
|
"glob": "^11.1.0",
|
|
55
56
|
"jsdom": "^30.0.1",
|
|
56
57
|
"lightningcss": "^1.32.0",
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
"@sniptt/guards": "^0.2.0",
|
|
81
82
|
"@tabler/icons-react": "^3.31.0",
|
|
82
83
|
"clsx": "^2.1.1",
|
|
84
|
+
"react-datepicker": "^9.1.0",
|
|
83
85
|
"type-fest": "^4.10.1",
|
|
84
86
|
"zod": "^4.1.11"
|
|
85
87
|
},
|