@px-ui/ui 1.0.11 → 1.1.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/{avatar-cLlUF5Lz.d.ts → avatar-DTxH_yTY.d.ts} +6 -6
- package/dist/{avatar-cLlUF5Lz.d.ts.map → avatar-DTxH_yTY.d.ts.map} +1 -1
- package/dist/{avatar-a40DzPi3.js → avatar-DnDnGmSj.js} +4 -4
- package/dist/{avatar-a40DzPi3.js.map → avatar-DnDnGmSj.js.map} +1 -1
- package/dist/{button-BJ727apo.d.ts → button-Cfd9X6pX.d.ts} +6 -6
- package/dist/{button-BJ727apo.d.ts.map → button-Cfd9X6pX.d.ts.map} +1 -1
- package/dist/{button-Cp2S1spE.js → button-DnHwqwy0.js} +2 -2
- package/dist/{button-Cp2S1spE.js.map → button-DnHwqwy0.js.map} +1 -1
- package/dist/checkbox-CwkX29tL.js +22 -0
- package/dist/checkbox-CwkX29tL.js.map +1 -0
- package/dist/collapsible-DsrYXIW5.js +28 -0
- package/dist/collapsible-DsrYXIW5.js.map +1 -0
- package/dist/{combobox-Di5naqIR.js → combobox-5IAivvXw.js} +9 -9
- package/dist/{combobox-Di5naqIR.js.map → combobox-5IAivvXw.js.map} +1 -1
- package/dist/{combobox-B73nb6Tq.d.ts → combobox-BBMYGrI2.d.ts} +19 -19
- package/dist/{combobox-B73nb6Tq.d.ts.map → combobox-BBMYGrI2.d.ts.map} +1 -1
- package/dist/components/accordion.d.ts +5 -5
- package/dist/components/accordion.d.ts.map +1 -1
- package/dist/components/accordion.js +2 -2
- package/dist/components/alert-dialog.d.ts +14 -14
- package/dist/components/alert-dialog.d.ts.map +1 -1
- package/dist/components/alert-dialog.js +3 -3
- package/dist/components/alert.d.ts +5 -5
- package/dist/components/alert.js +2 -2
- package/dist/components/aspect-ratio.d.ts +2 -2
- package/dist/components/aspect-ratio.d.ts.map +1 -1
- package/dist/components/aspect-ratio.js +1 -1
- package/dist/components/attachment.d.ts +14 -14
- package/dist/components/attachment.js +3 -3
- package/dist/components/avatar-group.d.ts +4 -4
- package/dist/components/avatar-group.js +5 -5
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.js +3 -3
- package/dist/components/badge.d.ts +4 -4
- package/dist/components/badge.js +1 -1
- package/dist/components/breadcrumb.d.ts +7 -7
- package/dist/components/breadcrumb.js +2 -2
- package/dist/components/bubble.d.ts +7 -7
- package/dist/components/bubble.js +2 -2
- package/dist/components/button-group.d.ts +9 -9
- package/dist/components/button-group.d.ts.map +1 -1
- package/dist/components/button-group.js +2 -2
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/calendar.d.ts +4 -4
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +3 -3
- package/dist/components/card.d.ts +8 -8
- package/dist/components/card.d.ts.map +1 -1
- package/dist/components/card.js +2 -2
- package/dist/components/carousel.d.ts +7 -7
- package/dist/components/carousel.d.ts.map +1 -1
- package/dist/components/carousel.js +3 -3
- package/dist/components/chart.d.ts +5 -5
- package/dist/components/chart.d.ts.map +1 -1
- package/dist/components/chart.js +2 -2
- package/dist/components/checkbox.d.ts +2 -2
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +3 -21
- package/dist/components/collapsible.d.ts +4 -4
- package/dist/components/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible.js +3 -27
- package/dist/components/combobox.d.ts +2 -2
- package/dist/components/combobox.js +11 -11
- package/dist/components/command.d.ts +11 -11
- package/dist/components/command.js +7 -7
- package/dist/components/context-menu.d.ts +16 -16
- package/dist/components/context-menu.d.ts.map +1 -1
- package/dist/components/context-menu.js +2 -2
- package/dist/components/currency-select-field.d.ts +4 -4
- package/dist/components/currency-select-field.d.ts.map +1 -1
- package/dist/components/currency-select-field.js +12 -12
- package/dist/components/dialog.d.ts +11 -11
- package/dist/components/dialog.js +3 -3
- package/dist/components/direction.js +1 -1
- package/dist/components/drawer.d.ts +11 -11
- package/dist/components/drawer.js +2 -2
- package/dist/components/dropdown-menu.d.ts +1 -1
- package/dist/components/dropdown-menu.js +2 -2
- package/dist/components/editor-output.d.ts +87 -0
- package/dist/components/editor-output.d.ts.map +1 -0
- package/dist/components/editor-output.js +158 -0
- package/dist/components/editor-output.js.map +1 -0
- package/dist/components/empty.d.ts +7 -7
- package/dist/components/empty.js +3 -61
- package/dist/components/field.d.ts +16 -16
- package/dist/components/field.d.ts.map +1 -1
- package/dist/components/field.js +4 -4
- package/dist/components/file-upload-field.d.ts +3 -3
- package/dist/components/file-upload-field.js +6 -6
- package/dist/components/file-upload.d.ts +3 -3
- package/dist/components/file-upload.js +4 -4
- package/dist/components/hover-card.d.ts +4 -4
- package/dist/components/hover-card.js +1 -1
- package/dist/components/icon.d.ts +83 -0
- package/dist/components/icon.d.ts.map +1 -0
- package/dist/components/icon.js +188 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/input-group.d.ts +11 -11
- package/dist/components/input-group.d.ts.map +1 -1
- package/dist/components/input-group.js +5 -5
- package/dist/components/input-otp.d.ts +5 -5
- package/dist/components/input-otp.js +2 -2
- package/dist/components/input.d.ts +1 -1
- package/dist/components/input.js +2 -2
- package/dist/components/item.d.ts +15 -15
- package/dist/components/item.d.ts.map +1 -1
- package/dist/components/item.js +3 -3
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/kbd.js +1 -1
- package/dist/components/label.d.ts +1 -1
- package/dist/components/label.js +2 -2
- package/dist/components/marker.d.ts +5 -5
- package/dist/components/marker.js +2 -2
- package/dist/components/menubar.d.ts +18 -18
- package/dist/components/menubar.d.ts.map +1 -1
- package/dist/components/menubar.js +8 -8
- package/dist/components/menubar.js.map +1 -1
- package/dist/components/message-scroller.d.ts +8 -8
- package/dist/components/message-scroller.js +3 -3
- package/dist/components/message.d.ts +7 -7
- package/dist/components/message.js +2 -2
- package/dist/components/native-select.d.ts +4 -4
- package/dist/components/native-select.js +2 -2
- package/dist/components/navigation-menu.d.ts +11 -11
- package/dist/components/navigation-menu.js +1 -1
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/pagination.js +3 -3
- package/dist/components/phone-input.d.ts +2 -2
- package/dist/components/phone-input.js +2 -2
- package/dist/components/popover.d.ts +7 -7
- package/dist/components/popover.js +2 -2
- package/dist/components/progress.d.ts +6 -6
- package/dist/components/progress.js +1 -1
- package/dist/components/radio-group.d.ts +3 -3
- package/dist/components/radio-group.js +1 -1
- package/dist/components/resizable.d.ts +4 -4
- package/dist/components/resizable.js +1 -1
- package/dist/components/rich-text-editor.d.ts +204 -0
- package/dist/components/rich-text-editor.d.ts.map +1 -0
- package/dist/components/rich-text-editor.js +359 -0
- package/dist/components/rich-text-editor.js.map +1 -0
- package/dist/components/scroll-area.d.ts +13 -3
- package/dist/components/scroll-area.d.ts.map +1 -1
- package/dist/components/scroll-area.js +3 -38
- package/dist/components/select.d.ts +10 -10
- package/dist/components/select.js +2 -2
- package/dist/components/separator.d.ts +1 -1
- package/dist/components/separator.js +2 -2
- package/dist/components/sheet.d.ts +9 -9
- package/dist/components/sheet.js +3 -3
- package/dist/components/sidebar.d.ts +26 -26
- package/dist/components/sidebar.js +9 -9
- package/dist/components/skeleton.d.ts +2 -2
- package/dist/components/skeleton.js +2 -2
- package/dist/components/slider.d.ts +2 -2
- package/dist/components/slider.js +1 -1
- package/dist/components/sortable-list.d.ts +153 -0
- package/dist/components/sortable-list.d.ts.map +1 -0
- package/dist/components/sortable-list.js +191 -0
- package/dist/components/sortable-list.js.map +1 -0
- package/dist/components/spinner.d.ts +2 -2
- package/dist/components/spinner.js +2 -2
- package/dist/components/stepper.d.ts +171 -0
- package/dist/components/stepper.d.ts.map +1 -0
- package/dist/components/stepper.js +281 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch.d.ts +2 -2
- package/dist/components/switch.js +1 -1
- package/dist/components/table.d.ts +9 -9
- package/dist/components/table.js +2 -2
- package/dist/components/tabs.d.ts +7 -7
- package/dist/components/tabs.js +1 -1
- package/dist/components/textarea.d.ts +2 -2
- package/dist/components/textarea.js +2 -2
- package/dist/components/toast.d.ts +1 -1
- package/dist/components/toast.js +2 -2
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle-group.js +3 -3
- package/dist/components/toggle.d.ts +1 -1
- package/dist/components/toggle.js +2 -2
- package/dist/components/tooltip.d.ts +1 -1
- package/dist/components/tooltip.js +2 -2
- package/dist/components/tree-select.d.ts +192 -0
- package/dist/components/tree-select.d.ts.map +1 -0
- package/dist/components/tree-select.js +421 -0
- package/dist/components/tree-select.js.map +1 -0
- package/dist/{dialog-B3HhbIdv.js → dialog-DuGJUPQl.js} +4 -4
- package/dist/{dialog-B3HhbIdv.js.map → dialog-DuGJUPQl.js.map} +1 -1
- package/dist/{dropdown-menu-vwX--mgm.js → dropdown-menu-BWEfcvmP.js} +20 -20
- package/dist/{dropdown-menu-vwX--mgm.js.map → dropdown-menu-BWEfcvmP.js.map} +1 -1
- package/dist/{dropdown-menu-C6n_oYre.d.ts → dropdown-menu-DGgfWYrK.d.ts} +17 -17
- package/dist/{dropdown-menu-C6n_oYre.d.ts.map → dropdown-menu-DGgfWYrK.d.ts.map} +1 -1
- package/dist/empty-U4zrLmFU.js +62 -0
- package/dist/empty-U4zrLmFU.js.map +1 -0
- package/dist/{file-upload-CGfXHKPZ.d.ts → file-upload-BvAtAxLc.d.ts} +13 -13
- package/dist/{file-upload-CGfXHKPZ.d.ts.map → file-upload-BvAtAxLc.d.ts.map} +1 -1
- package/dist/{file-upload-B0fHdUBL.js → file-upload-DU5FAkHm.js} +5 -5
- package/dist/{file-upload-B0fHdUBL.js.map → file-upload-DU5FAkHm.js.map} +1 -1
- package/dist/hooks/use-async-options.d.ts +1 -1
- package/dist/hooks/use-async-options.js +1 -1
- package/dist/hooks/use-debounce.js +1 -1
- package/dist/hooks/use-file-upload.d.ts +1 -1
- package/dist/hooks/use-file-upload.js +1 -1
- package/dist/hooks/use-infinite-scroll.d.ts +1 -1
- package/dist/hooks/use-infinite-scroll.js +2 -2
- package/dist/hooks/use-intersection-observer.d.ts +1 -1
- package/dist/hooks/use-intersection-observer.js +1 -1
- package/dist/hooks/use-mobile.js +1 -1
- package/dist/{input-BtI3FvrB.d.ts → input-BExbcSu4.d.ts} +3 -3
- package/dist/input-BExbcSu4.d.ts.map +1 -0
- package/dist/{input-group-C78_1dEy.js → input-group-B5PMRYld.js} +6 -6
- package/dist/{input-group-C78_1dEy.js.map → input-group-B5PMRYld.js.map} +1 -1
- package/dist/{input-B-RCmrtR.js → input-jIoNIdLQ.js} +3 -3
- package/dist/{input-B-RCmrtR.js.map → input-jIoNIdLQ.js.map} +1 -1
- package/dist/label-BFg2hxuL.d.ts +11 -0
- package/dist/label-BFg2hxuL.d.ts.map +1 -0
- package/dist/{label-Cmlhz-uF.js → label-DsRhOKY_.js} +3 -3
- package/dist/{label-Cmlhz-uF.js.map → label-DsRhOKY_.js.map} +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/{popover-CsTnnBvx.js → popover-BGkU46G7.js} +3 -3
- package/dist/{popover-CsTnnBvx.js.map → popover-BGkU46G7.js.map} +1 -1
- package/dist/providers/px-ui-provider.d.ts +4 -4
- package/dist/providers/px-ui-provider.d.ts.map +1 -1
- package/dist/providers/px-ui-provider.js +4 -4
- package/dist/scroll-area-mNVMQ0Of.js +40 -0
- package/dist/scroll-area-mNVMQ0Of.js.map +1 -0
- package/dist/{separator-BQBOLUMc.js → separator-D0bew2D_.js} +2 -2
- package/dist/{separator-BQBOLUMc.js.map → separator-D0bew2D_.js.map} +1 -1
- package/dist/{separator-pyhTqgkN.d.ts → separator-Df76guaT.d.ts} +3 -3
- package/dist/{separator-pyhTqgkN.d.ts.map → separator-Df76guaT.d.ts.map} +1 -1
- package/dist/{sheet-Chg_afex.js → sheet-BB23q6wd.js} +4 -4
- package/dist/{sheet-Chg_afex.js.map → sheet-BB23q6wd.js.map} +1 -1
- package/dist/{skeleton-J879XBBA.js → skeleton-knxLhbA5.js} +2 -2
- package/dist/{skeleton-J879XBBA.js.map → skeleton-knxLhbA5.js.map} +1 -1
- package/dist/{spinner-C7yzrK_s.js → spinner-9MdgLDTZ.js} +2 -2
- package/dist/{spinner-C7yzrK_s.js.map → spinner-9MdgLDTZ.js.map} +1 -1
- package/dist/{textarea-CaHmr0re.js → textarea-hZg0gA8u.js} +3 -3
- package/dist/{textarea-CaHmr0re.js.map → textarea-hZg0gA8u.js.map} +1 -1
- package/dist/{toast-BrPEQywl.js → toast-BdxoP8vz.js} +4 -4
- package/dist/{toast-BrPEQywl.js.map → toast-BdxoP8vz.js.map} +1 -1
- package/dist/{toast-CSU7vJkV.d.ts → toast-C5FRpq1P.d.ts} +5 -5
- package/dist/{toast-CSU7vJkV.d.ts.map → toast-C5FRpq1P.d.ts.map} +1 -1
- package/dist/{toggle-CA4KsgWs.js → toggle-BZXrLBLK.js} +2 -2
- package/dist/{toggle-CA4KsgWs.js.map → toggle-BZXrLBLK.js.map} +1 -1
- package/dist/{toggle-gjMAPmkg.d.ts → toggle-CyTngkhT.d.ts} +6 -6
- package/dist/{toggle-gjMAPmkg.d.ts.map → toggle-CyTngkhT.d.ts.map} +1 -1
- package/dist/{tooltip-7bptiThf.d.ts → tooltip-CkX3CD71.d.ts} +6 -6
- package/dist/{tooltip-7bptiThf.d.ts.map → tooltip-CkX3CD71.d.ts.map} +1 -1
- package/dist/{tooltip-BhxGE3Gb.js → tooltip-Dsfn_zZD.js} +2 -2
- package/dist/{tooltip-BhxGE3Gb.js.map → tooltip-Dsfn_zZD.js.map} +1 -1
- package/dist/{use-async-options-rNdyxIrQ.d.ts → use-async-options-DdyHJxHh.d.ts} +1 -1
- package/dist/{use-async-options-rNdyxIrQ.d.ts.map → use-async-options-DdyHJxHh.d.ts.map} +1 -1
- package/dist/{use-async-options-CtB4wZrr.js → use-async-options-tueAuVs_.js} +1 -1
- package/dist/{use-async-options-CtB4wZrr.js.map → use-async-options-tueAuVs_.js.map} +1 -1
- package/dist/{use-debounce--Lv1ABSa.js → use-debounce-7gIeOwla.js} +1 -1
- package/dist/{use-debounce--Lv1ABSa.js.map → use-debounce-7gIeOwla.js.map} +1 -1
- package/dist/{use-file-upload-Cbb_9kTw.d.ts → use-file-upload-Bc7CyQ7O.d.ts} +1 -1
- package/dist/{use-file-upload-Cbb_9kTw.d.ts.map → use-file-upload-Bc7CyQ7O.d.ts.map} +1 -1
- package/dist/{use-file-upload-BbERd3Nw.js → use-file-upload-DQD1vY_Z.js} +1 -1
- package/dist/{use-file-upload-BbERd3Nw.js.map → use-file-upload-DQD1vY_Z.js.map} +1 -1
- package/dist/{use-infinite-scroll-CC_Guyvn.js → use-infinite-scroll-HpeMA2MK.js} +2 -2
- package/dist/{use-infinite-scroll-CC_Guyvn.js.map → use-infinite-scroll-HpeMA2MK.js.map} +1 -1
- package/dist/{use-intersection-observer-CgAaXczI.d.ts → use-intersection-observer-DNPextJs.d.ts} +1 -1
- package/dist/{use-intersection-observer-CgAaXczI.d.ts.map → use-intersection-observer-DNPextJs.d.ts.map} +1 -1
- package/dist/{use-intersection-observer-S0wsPmhF.js → use-intersection-observer-rlKEjyL1.js} +1 -1
- package/dist/{use-intersection-observer-S0wsPmhF.js.map → use-intersection-observer-rlKEjyL1.js.map} +1 -1
- package/dist/{use-mobile--NaMWuCj.js → use-mobile-DUqQzj2D.js} +1 -1
- package/dist/{use-mobile--NaMWuCj.js.map → use-mobile-DUqQzj2D.js.map} +1 -1
- package/dist/{utils-DeIaBj75.js → utils-DUlptRpf.js} +1 -1
- package/dist/{utils-DeIaBj75.js.map → utils-DUlptRpf.js.map} +1 -1
- package/package.json +60 -1
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/empty.js.map +0 -1
- package/dist/components/scroll-area.js.map +0 -1
- package/dist/input-BtI3FvrB.d.ts.map +0 -1
- package/dist/label-BnSHwOyi.d.ts +0 -11
- package/dist/label-BnSHwOyi.d.ts.map +0 -1
- /package/dist/{direction-ZS2Hta3v.js → direction-DFPbwDSF.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../utils-
|
|
2
|
-
import "../button-
|
|
3
|
-
import "../spinner-
|
|
4
|
-
import { n as getFileTypeIcon, t as FileUpload } from "../file-upload-
|
|
1
|
+
import "../utils-DUlptRpf.js";
|
|
2
|
+
import "../button-DnHwqwy0.js";
|
|
3
|
+
import "../spinner-9MdgLDTZ.js";
|
|
4
|
+
import { n as getFileTypeIcon, t as FileUpload } from "../file-upload-DU5FAkHm.js";
|
|
5
5
|
|
|
6
6
|
export { FileUpload, getFileTypeIcon };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime185 from "react/jsx-runtime";
|
|
2
2
|
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
3
3
|
|
|
4
4
|
//#region src/components/hover-card.d.ts
|
|
5
5
|
declare function HoverCard({
|
|
6
6
|
...props
|
|
7
|
-
}: PreviewCard.Root.Props):
|
|
7
|
+
}: PreviewCard.Root.Props): react_jsx_runtime185.JSX.Element;
|
|
8
8
|
declare function HoverCardTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: PreviewCard.Trigger.Props):
|
|
10
|
+
}: PreviewCard.Trigger.Props): react_jsx_runtime185.JSX.Element;
|
|
11
11
|
declare function HoverCardContent({
|
|
12
12
|
className,
|
|
13
13
|
side,
|
|
@@ -15,7 +15,7 @@ declare function HoverCardContent({
|
|
|
15
15
|
align,
|
|
16
16
|
alignOffset,
|
|
17
17
|
...props
|
|
18
|
-
}: PreviewCard.Popup.Props & Pick<PreviewCard.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">):
|
|
18
|
+
}: PreviewCard.Popup.Props & Pick<PreviewCard.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime185.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { HoverCard, HoverCardContent, HoverCardTrigger };
|
|
21
21
|
//# sourceMappingURL=hover-card.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { LucideIcon } from "lucide-react";
|
|
2
|
+
import * as react_jsx_runtime192 from "react/jsx-runtime";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/icon.d.ts
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Union of every legacy icon name known to {@link ICON_MAP}. Consumers get
|
|
9
|
+
* autocomplete for known names while still being allowed to pass an arbitrary
|
|
10
|
+
* string (see {@link IconProps.name}).
|
|
11
|
+
*/
|
|
12
|
+
type IconName = "plus" | "plusV2" | "plus-circle" | "add" | "edit" | "edit-pencil" | "pencil" | "dot-gripper" | "gripper" | "drag" | "syncrule" | "sync" | "refresh" | "curvy-chevron" | "chevron-down" | "chevron-up" | "chevron-left" | "chevron-right" | "arrow-up" | "arrow-down" | "arrow-left" | "arrow-right" | "trash" | "delete" | "close" | "cross" | "cancel" | "search" | "filter" | "filter-options" | "sliders" | "check" | "tick" | "check-circle" | "success" | "info" | "warning" | "alert" | "error" | "dot" | "eye" | "eye-off" | "eye-slash" | "download" | "upload" | "copy" | "duplicate" | "file" | "file-text" | "document" | "folder" | "save" | "more-vertical" | "more-horizontal" | "ellipsis" | "menu" | "hamburger" | "user" | "users" | "team" | "building" | "company" | "briefcase" | "job" | "settings" | "gear" | "star" | "mail" | "email" | "phone" | "map-pin" | "location" | "link" | "external-link" | "calendar" | "clock" | "time" | "bell" | "notification" | "lock" | "unlock" | "home" | "logout" | "sign-out" | "send" | "tag" | "tags" | "dollar" | "currency" | "spinner" | "loading" | "help";
|
|
13
|
+
/**
|
|
14
|
+
* Parity layer mapping legacy Icomoon glyph names to `lucide-react`
|
|
15
|
+
* components. See the doc comment above {@link ICON_MAP_SOURCE} (the backing
|
|
16
|
+
* literal) for the list and extension notes.
|
|
17
|
+
*
|
|
18
|
+
* Explicitly annotated as `Record<IconName, LucideIcon>` so the exported type
|
|
19
|
+
* stays portable across the multiple `@types/react` copies pnpm hoists.
|
|
20
|
+
*/
|
|
21
|
+
declare const ICON_MAP: Record<IconName, LucideIcon>;
|
|
22
|
+
/**
|
|
23
|
+
* Fallback rendered when {@link IconProps.name} is not present in
|
|
24
|
+
* {@link ICON_MAP}. Chosen to be visually obvious so missing mappings surface
|
|
25
|
+
* during development rather than rendering nothing.
|
|
26
|
+
*/
|
|
27
|
+
declare const FALLBACK_ICON: LucideIcon;
|
|
28
|
+
interface IconProps extends React$1.ComponentProps<LucideIcon> {
|
|
29
|
+
/**
|
|
30
|
+
* Legacy Icomoon glyph name to render. Known names (see {@link ICON_MAP})
|
|
31
|
+
* are autocompleted; any other string is accepted and resolves to
|
|
32
|
+
* {@link FALLBACK_ICON}.
|
|
33
|
+
*/
|
|
34
|
+
name: IconName | (string & {});
|
|
35
|
+
/**
|
|
36
|
+
* Pixel size for both width and height. Forwarded to the underlying
|
|
37
|
+
* `lucide-react` icon's `size` prop.
|
|
38
|
+
* @default 16
|
|
39
|
+
*/
|
|
40
|
+
size?: number;
|
|
41
|
+
/** Additional classes merged onto the rendered svg. */
|
|
42
|
+
className?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Icon parity layer for migrating off the legacy Icomoon icon font.
|
|
46
|
+
*
|
|
47
|
+
* Renders the `lucide-react` icon mapped from a legacy glyph `name`. This lets
|
|
48
|
+
* existing markup keep its old names (`"edit-pencil"`, `"dot-gripper"`, …)
|
|
49
|
+
* while the actual glyphs are served by lucide. Unknown names fall back to
|
|
50
|
+
* {@link FALLBACK_ICON} so a missing mapping never throws or renders blank.
|
|
51
|
+
*
|
|
52
|
+
* Sizing/coloring/accessibility props (`size`, `className`, `aria-hidden`,
|
|
53
|
+
* `aria-label`, `strokeWidth`, event handlers, …) pass straight through to the
|
|
54
|
+
* lucide icon. By default icons are decorative (`aria-hidden`); pass an
|
|
55
|
+
* `aria-label` to make one announced by screen readers.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```tsx
|
|
59
|
+
* import { Icon } from "@px-ui/ui/components/icon";
|
|
60
|
+
*
|
|
61
|
+
* // Legacy name, default 16px, decorative
|
|
62
|
+
* <Icon name="edit-pencil" />
|
|
63
|
+
*
|
|
64
|
+
* // Larger, tinted via design-token utility, and labelled for a11y
|
|
65
|
+
* <Icon name="trash" size={20} className="text-destructive" aria-label="Delete" />
|
|
66
|
+
*
|
|
67
|
+
* // Inside a Button (lucide auto-sizes to the button's icon slot)
|
|
68
|
+
* <Button variant="ghost" size="icon" aria-label="Refresh">
|
|
69
|
+
* <Icon name="syncrule" />
|
|
70
|
+
* </Button>
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
declare function Icon({
|
|
74
|
+
name,
|
|
75
|
+
size,
|
|
76
|
+
className,
|
|
77
|
+
"aria-label": ariaLabel,
|
|
78
|
+
"aria-hidden": ariaHidden,
|
|
79
|
+
...props
|
|
80
|
+
}: IconProps): react_jsx_runtime192.JSX.Element;
|
|
81
|
+
//#endregion
|
|
82
|
+
export { FALLBACK_ICON, ICON_MAP, Icon, IconName, IconProps };
|
|
83
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","names":[],"sources":["../../src/components/icon.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;AAoOA;AA8BA;AAA8B,KA9BlB,QAAA,GA8BkB,MAAA,GAAA,QAAA,GAAA,aAAA,GAAA,KAAA,GAAA,MAAA,GAAA,aAAA,GAAA,QAAA,GAAA,aAAA,GAAA,SAAA,GAAA,MAAA,GAAA,UAAA,GAAA,MAAA,GAAA,SAAA,GAAA,eAAA,GAAA,cAAA,GAAA,YAAA,GAAA,cAAA,GAAA,eAAA,GAAA,UAAA,GAAA,YAAA,GAAA,YAAA,GAAA,aAAA,GAAA,OAAA,GAAA,QAAA,GAAA,OAAA,GAAA,OAAA,GAAA,QAAA,GAAA,QAAA,GAAA,QAAA,GAAA,gBAAA,GAAA,SAAA,GAAA,OAAA,GAAA,MAAA,GAAA,cAAA,GAAA,SAAA,GAAA,MAAA,GAAA,SAAA,GAAA,OAAA,GAAA,OAAA,GAAA,KAAA,GAAA,KAAA,GAAA,SAAA,GAAA,WAAA,GAAA,UAAA,GAAA,QAAA,GAAA,MAAA,GAAA,WAAA,GAAA,MAAA,GAAA,WAAA,GAAA,UAAA,GAAA,QAAA,GAAA,MAAA,GAAA,eAAA,GAAA,iBAAA,GAAA,UAAA,GAAA,MAAA,GAAA,WAAA,GAAA,MAAA,GAAA,OAAA,GAAA,MAAA,GAAA,UAAA,GAAA,SAAA,GAAA,WAAA,GAAA,KAAA,GAAA,UAAA,GAAA,MAAA,GAAA,MAAA,GAAA,MAAA,GAAA,OAAA,GAAA,OAAA,GAAA,SAAA,GAAA,UAAA,GAAA,MAAA,GAAA,eAAA,GAAA,UAAA,GAAA,OAAA,GAAA,MAAA,GAAA,MAAA,GAAA,cAAA,GAAA,MAAA,GAAA,QAAA,GAAA,MAAA,GAAA,QAAA,GAAA,UAAA,GAAA,MAAA,GAAA,KAAA,GAAA,MAAA,GAAA,QAAA,GAAA,UAAA,GAAA,SAAA,GAAA,SAAA,GAAA,MAAA;;;;AAO9B;AAMA;;;;AAAuD,cAb1C,QAa0C,EAbhC,MAagC,CAbzB,QAayB,EAbf,UAae,CAAA;AAgDvD;;;;;AAKiB,cA3DJ,aA2DI,EA3DW,UA2DX;AAEd,UAvDc,SAAA,SAAkB,OAAA,CAAM,cAuDtC,CAvDqD,UAuDrD,CAAA,CAAA;EAAS;;;;;QAjDJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0CQ,IAAA;;;;gBAIA;iBACC;;GAEd,YAAS,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { t as cn } from "../utils-DUlptRpf.js";
|
|
2
|
+
import { AlertTriangle, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Bell, Briefcase, Building2, Calendar, Check, CheckCircle, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, CircleAlert, Clock, Copy, DollarSign, Dot, Download, ExternalLink, Eye, EyeOff, File, FileText, Filter, Folder, GripVertical, HelpCircle, Home, Info, Link, Loader2, Lock, LogOut, Mail, MapPin, Menu, MoreHorizontal, MoreVertical, Pencil, Phone, Plus, PlusCircle, RefreshCw, Save, Search, Send, Settings, SlidersHorizontal, Star, Tag, Tags, Trash2, Unlock, Upload, User, Users, X, XCircle } from "lucide-react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
|
+
|
|
6
|
+
//#region src/components/icon.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Parity layer mapping legacy Icomoon glyph names (as used by the old
|
|
9
|
+
* `@px-ui/core` icon font) to their closest `lucide-react` equivalents.
|
|
10
|
+
*
|
|
11
|
+
* The keys are the *legacy* names exactly as they appear in existing markup
|
|
12
|
+
* (e.g. `"plusV2"`, `"edit-pencil"`, `"dot-gripper"`). The values are
|
|
13
|
+
* `lucide-react` components.
|
|
14
|
+
*
|
|
15
|
+
* ## Extending this map
|
|
16
|
+
*
|
|
17
|
+
* To add a new legacy alias, import the desired component from
|
|
18
|
+
* `lucide-react` and add a single entry below keyed by the *legacy* name.
|
|
19
|
+
* Prefer reusing an existing lucide import over adding near-duplicates.
|
|
20
|
+
* Unknown names fall back to {@link FALLBACK_ICON} ({@link HelpCircle}) so a
|
|
21
|
+
* missing mapping degrades gracefully instead of throwing.
|
|
22
|
+
*
|
|
23
|
+
* Browse available glyphs at https://lucide.dev/icons.
|
|
24
|
+
*
|
|
25
|
+
* Declared with `satisfies Record<string, LucideIcon>` so the literal key
|
|
26
|
+
* union is preserved for {@link IconName} while the inferred value type never
|
|
27
|
+
* leaks lucide's bundled `@types/react` into the emitted declarations
|
|
28
|
+
* (which TS cannot name portably across pnpm-hoisted copies — TS2742). The
|
|
29
|
+
* public, portably-typed export is {@link ICON_MAP}.
|
|
30
|
+
*/
|
|
31
|
+
const ICON_MAP_SOURCE = {
|
|
32
|
+
plus: Plus,
|
|
33
|
+
plusV2: Plus,
|
|
34
|
+
"plus-circle": PlusCircle,
|
|
35
|
+
add: Plus,
|
|
36
|
+
edit: Pencil,
|
|
37
|
+
"edit-pencil": Pencil,
|
|
38
|
+
pencil: Pencil,
|
|
39
|
+
"dot-gripper": GripVertical,
|
|
40
|
+
gripper: GripVertical,
|
|
41
|
+
drag: GripVertical,
|
|
42
|
+
syncrule: RefreshCw,
|
|
43
|
+
sync: RefreshCw,
|
|
44
|
+
refresh: RefreshCw,
|
|
45
|
+
"curvy-chevron": ChevronDown,
|
|
46
|
+
"chevron-down": ChevronDown,
|
|
47
|
+
"chevron-up": ChevronUp,
|
|
48
|
+
"chevron-left": ChevronLeft,
|
|
49
|
+
"chevron-right": ChevronRight,
|
|
50
|
+
"arrow-up": ArrowUp,
|
|
51
|
+
"arrow-down": ArrowDown,
|
|
52
|
+
"arrow-left": ArrowLeft,
|
|
53
|
+
"arrow-right": ArrowRight,
|
|
54
|
+
trash: Trash2,
|
|
55
|
+
delete: Trash2,
|
|
56
|
+
close: X,
|
|
57
|
+
cross: X,
|
|
58
|
+
cancel: X,
|
|
59
|
+
search: Search,
|
|
60
|
+
filter: Filter,
|
|
61
|
+
"filter-options": SlidersHorizontal,
|
|
62
|
+
sliders: SlidersHorizontal,
|
|
63
|
+
check: Check,
|
|
64
|
+
tick: Check,
|
|
65
|
+
"check-circle": CheckCircle,
|
|
66
|
+
success: CheckCircle,
|
|
67
|
+
info: Info,
|
|
68
|
+
warning: AlertTriangle,
|
|
69
|
+
alert: CircleAlert,
|
|
70
|
+
error: XCircle,
|
|
71
|
+
dot: Dot,
|
|
72
|
+
eye: Eye,
|
|
73
|
+
"eye-off": EyeOff,
|
|
74
|
+
"eye-slash": EyeOff,
|
|
75
|
+
download: Download,
|
|
76
|
+
upload: Upload,
|
|
77
|
+
copy: Copy,
|
|
78
|
+
duplicate: Copy,
|
|
79
|
+
file: File,
|
|
80
|
+
"file-text": FileText,
|
|
81
|
+
document: FileText,
|
|
82
|
+
folder: Folder,
|
|
83
|
+
save: Save,
|
|
84
|
+
"more-vertical": MoreVertical,
|
|
85
|
+
"more-horizontal": MoreHorizontal,
|
|
86
|
+
ellipsis: MoreHorizontal,
|
|
87
|
+
menu: Menu,
|
|
88
|
+
hamburger: Menu,
|
|
89
|
+
user: User,
|
|
90
|
+
users: Users,
|
|
91
|
+
team: Users,
|
|
92
|
+
building: Building2,
|
|
93
|
+
company: Building2,
|
|
94
|
+
briefcase: Briefcase,
|
|
95
|
+
job: Briefcase,
|
|
96
|
+
settings: Settings,
|
|
97
|
+
gear: Settings,
|
|
98
|
+
star: Star,
|
|
99
|
+
mail: Mail,
|
|
100
|
+
email: Mail,
|
|
101
|
+
phone: Phone,
|
|
102
|
+
"map-pin": MapPin,
|
|
103
|
+
location: MapPin,
|
|
104
|
+
link: Link,
|
|
105
|
+
"external-link": ExternalLink,
|
|
106
|
+
calendar: Calendar,
|
|
107
|
+
clock: Clock,
|
|
108
|
+
time: Clock,
|
|
109
|
+
bell: Bell,
|
|
110
|
+
notification: Bell,
|
|
111
|
+
lock: Lock,
|
|
112
|
+
unlock: Unlock,
|
|
113
|
+
home: Home,
|
|
114
|
+
logout: LogOut,
|
|
115
|
+
"sign-out": LogOut,
|
|
116
|
+
send: Send,
|
|
117
|
+
tag: Tag,
|
|
118
|
+
tags: Tags,
|
|
119
|
+
dollar: DollarSign,
|
|
120
|
+
currency: DollarSign,
|
|
121
|
+
spinner: Loader2,
|
|
122
|
+
loading: Loader2,
|
|
123
|
+
help: HelpCircle
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Parity layer mapping legacy Icomoon glyph names to `lucide-react`
|
|
127
|
+
* components. See the doc comment above {@link ICON_MAP_SOURCE} (the backing
|
|
128
|
+
* literal) for the list and extension notes.
|
|
129
|
+
*
|
|
130
|
+
* Explicitly annotated as `Record<IconName, LucideIcon>` so the exported type
|
|
131
|
+
* stays portable across the multiple `@types/react` copies pnpm hoists.
|
|
132
|
+
*/
|
|
133
|
+
const ICON_MAP = ICON_MAP_SOURCE;
|
|
134
|
+
/**
|
|
135
|
+
* Fallback rendered when {@link IconProps.name} is not present in
|
|
136
|
+
* {@link ICON_MAP}. Chosen to be visually obvious so missing mappings surface
|
|
137
|
+
* during development rather than rendering nothing.
|
|
138
|
+
*/
|
|
139
|
+
const FALLBACK_ICON = HelpCircle;
|
|
140
|
+
/**
|
|
141
|
+
* Icon parity layer for migrating off the legacy Icomoon icon font.
|
|
142
|
+
*
|
|
143
|
+
* Renders the `lucide-react` icon mapped from a legacy glyph `name`. This lets
|
|
144
|
+
* existing markup keep its old names (`"edit-pencil"`, `"dot-gripper"`, …)
|
|
145
|
+
* while the actual glyphs are served by lucide. Unknown names fall back to
|
|
146
|
+
* {@link FALLBACK_ICON} so a missing mapping never throws or renders blank.
|
|
147
|
+
*
|
|
148
|
+
* Sizing/coloring/accessibility props (`size`, `className`, `aria-hidden`,
|
|
149
|
+
* `aria-label`, `strokeWidth`, event handlers, …) pass straight through to the
|
|
150
|
+
* lucide icon. By default icons are decorative (`aria-hidden`); pass an
|
|
151
|
+
* `aria-label` to make one announced by screen readers.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```tsx
|
|
155
|
+
* import { Icon } from "@px-ui/ui/components/icon";
|
|
156
|
+
*
|
|
157
|
+
* // Legacy name, default 16px, decorative
|
|
158
|
+
* <Icon name="edit-pencil" />
|
|
159
|
+
*
|
|
160
|
+
* // Larger, tinted via design-token utility, and labelled for a11y
|
|
161
|
+
* <Icon name="trash" size={20} className="text-destructive" aria-label="Delete" />
|
|
162
|
+
*
|
|
163
|
+
* // Inside a Button (lucide auto-sizes to the button's icon slot)
|
|
164
|
+
* <Button variant="ghost" size="icon" aria-label="Refresh">
|
|
165
|
+
* <Icon name="syncrule" />
|
|
166
|
+
* </Button>
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
function Icon({ name, size = 16, className, "aria-label": ariaLabel, "aria-hidden": ariaHidden, ...props }) {
|
|
170
|
+
const mapped = ICON_MAP[name];
|
|
171
|
+
const Glyph = mapped ?? FALLBACK_ICON;
|
|
172
|
+
if (typeof process !== "undefined" && process.env.NODE_ENV !== "production" && mapped === void 0) console.warn(`[px-ui] <Icon name="${name}"> has no mapping in ICON_MAP; rendering FALLBACK_ICON (HelpCircle). Add a legacy alias in icon.tsx or pass a known name (see IconName).`);
|
|
173
|
+
const hidden = ariaHidden ?? (ariaLabel ? void 0 : true);
|
|
174
|
+
return /* @__PURE__ */ jsx(Glyph, {
|
|
175
|
+
"data-slot": "icon",
|
|
176
|
+
"data-icon": name,
|
|
177
|
+
size,
|
|
178
|
+
className: cn("shrink-0", className),
|
|
179
|
+
"aria-hidden": hidden,
|
|
180
|
+
"aria-label": ariaLabel,
|
|
181
|
+
role: ariaLabel ? "img" : void 0,
|
|
182
|
+
...props
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
//#endregion
|
|
187
|
+
export { FALLBACK_ICON, ICON_MAP, Icon };
|
|
188
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.js","names":["ICON_MAP_SOURCE: Record<IconName, LucideIcon>","LinkIcon","ICON_MAP: Record<IconName, LucideIcon>","FALLBACK_ICON: LucideIcon"],"sources":["../../src/components/icon.tsx"],"sourcesContent":["import * as React from \"react\";\nimport {\n AlertTriangle,\n ArrowDown,\n ArrowLeft,\n ArrowRight,\n ArrowUp,\n Bell,\n Briefcase,\n Building2,\n Calendar,\n Check,\n CheckCircle,\n ChevronDown,\n ChevronLeft,\n ChevronRight,\n ChevronUp,\n CircleAlert,\n Clock,\n Copy,\n Dot,\n DollarSign,\n Download,\n Eye,\n EyeOff,\n ExternalLink,\n File,\n FileText,\n Filter,\n Folder,\n GripVertical,\n HelpCircle,\n Home,\n Info,\n Link as LinkIcon,\n Loader2,\n Lock,\n LogOut,\n Mail,\n MapPin,\n Menu,\n MoreHorizontal,\n MoreVertical,\n Pencil,\n Phone,\n Plus,\n PlusCircle,\n RefreshCw,\n Save,\n Search,\n Send,\n Settings,\n SlidersHorizontal,\n Star,\n Tag,\n Tags,\n Trash2,\n Unlock,\n Upload,\n User,\n Users,\n X,\n XCircle,\n type LucideIcon,\n} from \"lucide-react\";\n\nimport { cn } from \"@px-ui/ui/lib/utils\";\n\n// Bundler-replaced (`process.env.NODE_ENV`) in consumer builds; declared here\n// because the package tsconfig uses `types: []` (no node globals). The runtime\n// `typeof` guard below keeps it safe in raw-ESM/browser contexts.\ndeclare const process: { env: { NODE_ENV?: string } } | undefined;\n\n// ============================================================================\n// Icon parity map\n// ============================================================================\n\n/**\n * Parity layer mapping legacy Icomoon glyph names (as used by the old\n * `@px-ui/core` icon font) to their closest `lucide-react` equivalents.\n *\n * The keys are the *legacy* names exactly as they appear in existing markup\n * (e.g. `\"plusV2\"`, `\"edit-pencil\"`, `\"dot-gripper\"`). The values are\n * `lucide-react` components.\n *\n * ## Extending this map\n *\n * To add a new legacy alias, import the desired component from\n * `lucide-react` and add a single entry below keyed by the *legacy* name.\n * Prefer reusing an existing lucide import over adding near-duplicates.\n * Unknown names fall back to {@link FALLBACK_ICON} ({@link HelpCircle}) so a\n * missing mapping degrades gracefully instead of throwing.\n *\n * Browse available glyphs at https://lucide.dev/icons.\n *\n * Declared with `satisfies Record<string, LucideIcon>` so the literal key\n * union is preserved for {@link IconName} while the inferred value type never\n * leaks lucide's bundled `@types/react` into the emitted declarations\n * (which TS cannot name portably across pnpm-hoisted copies — TS2742). The\n * public, portably-typed export is {@link ICON_MAP}.\n */\nconst ICON_MAP_SOURCE: Record<IconName, LucideIcon> = {\n // --- Add / create -------------------------------------------------------\n plus: Plus,\n plusV2: Plus,\n \"plus-circle\": PlusCircle,\n add: Plus,\n\n // --- Edit ---------------------------------------------------------------\n edit: Pencil,\n \"edit-pencil\": Pencil,\n pencil: Pencil,\n\n // --- Drag / reorder -----------------------------------------------------\n \"dot-gripper\": GripVertical,\n gripper: GripVertical,\n drag: GripVertical,\n\n // --- Sync / refresh -----------------------------------------------------\n syncrule: RefreshCw,\n sync: RefreshCw,\n refresh: RefreshCw,\n\n // --- Chevrons / carets --------------------------------------------------\n \"curvy-chevron\": ChevronDown,\n \"chevron-down\": ChevronDown,\n \"chevron-up\": ChevronUp,\n \"chevron-left\": ChevronLeft,\n \"chevron-right\": ChevronRight,\n\n // --- Arrows -------------------------------------------------------------\n \"arrow-up\": ArrowUp,\n \"arrow-down\": ArrowDown,\n \"arrow-left\": ArrowLeft,\n \"arrow-right\": ArrowRight,\n\n // --- Destructive / dismiss ----------------------------------------------\n trash: Trash2,\n delete: Trash2,\n close: X,\n cross: X,\n cancel: X,\n\n // --- Search / filter ----------------------------------------------------\n search: Search,\n filter: Filter,\n \"filter-options\": SlidersHorizontal,\n sliders: SlidersHorizontal,\n\n // --- Status -------------------------------------------------------------\n check: Check,\n tick: Check,\n \"check-circle\": CheckCircle,\n success: CheckCircle,\n info: Info,\n warning: AlertTriangle,\n alert: CircleAlert,\n error: XCircle,\n dot: Dot,\n\n // --- Visibility ---------------------------------------------------------\n eye: Eye,\n \"eye-off\": EyeOff,\n \"eye-slash\": EyeOff,\n\n // --- Files / transfer ---------------------------------------------------\n download: Download,\n upload: Upload,\n copy: Copy,\n duplicate: Copy,\n file: File,\n \"file-text\": FileText,\n document: FileText,\n folder: Folder,\n save: Save,\n\n // --- Overflow / menus ---------------------------------------------------\n \"more-vertical\": MoreVertical,\n \"more-horizontal\": MoreHorizontal,\n ellipsis: MoreHorizontal,\n menu: Menu,\n hamburger: Menu,\n\n // --- People / org -------------------------------------------------------\n user: User,\n users: Users,\n team: Users,\n building: Building2,\n company: Building2,\n briefcase: Briefcase,\n job: Briefcase,\n\n // --- Misc ---------------------------------------------------------------\n settings: Settings,\n gear: Settings,\n star: Star,\n mail: Mail,\n email: Mail,\n phone: Phone,\n \"map-pin\": MapPin,\n location: MapPin,\n link: LinkIcon,\n \"external-link\": ExternalLink,\n calendar: Calendar,\n clock: Clock,\n time: Clock,\n bell: Bell,\n notification: Bell,\n lock: Lock,\n unlock: Unlock,\n home: Home,\n logout: LogOut,\n \"sign-out\": LogOut,\n send: Send,\n tag: Tag,\n tags: Tags,\n dollar: DollarSign,\n currency: DollarSign,\n spinner: Loader2,\n loading: Loader2,\n help: HelpCircle,\n};\n\n/**\n * Union of every legacy icon name known to {@link ICON_MAP}. Consumers get\n * autocomplete for known names while still being allowed to pass an arbitrary\n * string (see {@link IconProps.name}).\n */\nexport type IconName =\n | \"plus\" | \"plusV2\" | \"plus-circle\" | \"add\"\n | \"edit\" | \"edit-pencil\" | \"pencil\"\n | \"dot-gripper\" | \"gripper\" | \"drag\"\n | \"syncrule\" | \"sync\" | \"refresh\"\n | \"curvy-chevron\" | \"chevron-down\" | \"chevron-up\" | \"chevron-left\" | \"chevron-right\"\n | \"arrow-up\" | \"arrow-down\" | \"arrow-left\" | \"arrow-right\"\n | \"trash\" | \"delete\" | \"close\" | \"cross\" | \"cancel\"\n | \"search\" | \"filter\" | \"filter-options\" | \"sliders\"\n | \"check\" | \"tick\" | \"check-circle\" | \"success\"\n | \"info\" | \"warning\" | \"alert\" | \"error\" | \"dot\"\n | \"eye\" | \"eye-off\" | \"eye-slash\"\n | \"download\" | \"upload\" | \"copy\" | \"duplicate\"\n | \"file\" | \"file-text\" | \"document\" | \"folder\" | \"save\"\n | \"more-vertical\" | \"more-horizontal\" | \"ellipsis\" | \"menu\" | \"hamburger\"\n | \"user\" | \"users\" | \"team\" | \"building\" | \"company\" | \"briefcase\" | \"job\"\n | \"settings\" | \"gear\" | \"star\" | \"mail\" | \"email\" | \"phone\"\n | \"map-pin\" | \"location\" | \"link\" | \"external-link\"\n | \"calendar\" | \"clock\" | \"time\" | \"bell\" | \"notification\"\n | \"lock\" | \"unlock\" | \"home\" | \"logout\" | \"sign-out\" | \"send\"\n | \"tag\" | \"tags\" | \"dollar\" | \"currency\" | \"spinner\" | \"loading\" | \"help\";\n\n/**\n * Parity layer mapping legacy Icomoon glyph names to `lucide-react`\n * components. See the doc comment above {@link ICON_MAP_SOURCE} (the backing\n * literal) for the list and extension notes.\n *\n * Explicitly annotated as `Record<IconName, LucideIcon>` so the exported type\n * stays portable across the multiple `@types/react` copies pnpm hoists.\n */\nexport const ICON_MAP: Record<IconName, LucideIcon> = ICON_MAP_SOURCE;\n\n/**\n * Fallback rendered when {@link IconProps.name} is not present in\n * {@link ICON_MAP}. Chosen to be visually obvious so missing mappings surface\n * during development rather than rendering nothing.\n */\nexport const FALLBACK_ICON: LucideIcon = HelpCircle;\n\n// ============================================================================\n// Component\n// ============================================================================\n\nexport interface IconProps extends React.ComponentProps<LucideIcon> {\n /**\n * Legacy Icomoon glyph name to render. Known names (see {@link ICON_MAP})\n * are autocompleted; any other string is accepted and resolves to\n * {@link FALLBACK_ICON}.\n */\n name: IconName | (string & {});\n\n /**\n * Pixel size for both width and height. Forwarded to the underlying\n * `lucide-react` icon's `size` prop.\n * @default 16\n */\n size?: number;\n\n /** Additional classes merged onto the rendered svg. */\n className?: string;\n}\n\n/**\n * Icon parity layer for migrating off the legacy Icomoon icon font.\n *\n * Renders the `lucide-react` icon mapped from a legacy glyph `name`. This lets\n * existing markup keep its old names (`\"edit-pencil\"`, `\"dot-gripper\"`, …)\n * while the actual glyphs are served by lucide. Unknown names fall back to\n * {@link FALLBACK_ICON} so a missing mapping never throws or renders blank.\n *\n * Sizing/coloring/accessibility props (`size`, `className`, `aria-hidden`,\n * `aria-label`, `strokeWidth`, event handlers, …) pass straight through to the\n * lucide icon. By default icons are decorative (`aria-hidden`); pass an\n * `aria-label` to make one announced by screen readers.\n *\n * @example\n * ```tsx\n * import { Icon } from \"@px-ui/ui/components/icon\";\n *\n * // Legacy name, default 16px, decorative\n * <Icon name=\"edit-pencil\" />\n *\n * // Larger, tinted via design-token utility, and labelled for a11y\n * <Icon name=\"trash\" size={20} className=\"text-destructive\" aria-label=\"Delete\" />\n *\n * // Inside a Button (lucide auto-sizes to the button's icon slot)\n * <Button variant=\"ghost\" size=\"icon\" aria-label=\"Refresh\">\n * <Icon name=\"syncrule\" />\n * </Button>\n * ```\n */\nexport function Icon({\n name,\n size = 16,\n className,\n \"aria-label\": ariaLabel,\n \"aria-hidden\": ariaHidden,\n ...props\n}: IconProps) {\n const mapped = ICON_MAP[name as IconName];\n const Glyph = mapped ?? FALLBACK_ICON;\n\n // Surface missing Icomoon mappings during migration. Dev-only so production\n // bundles stay quiet and the warning can be stripped by minifiers.\n if (\n typeof process !== \"undefined\" &&\n process.env.NODE_ENV !== \"production\" &&\n mapped === undefined\n ) {\n console.warn(\n `[px-ui] <Icon name=\"${name}\"> has no mapping in ICON_MAP; ` +\n `rendering FALLBACK_ICON (HelpCircle). Add a legacy alias in icon.tsx ` +\n `or pass a known name (see IconName).`,\n );\n }\n\n // Decorative by default; an explicit aria-label opts into being announced.\n const hidden = ariaHidden ?? (ariaLabel ? undefined : true);\n\n return (\n <Glyph\n data-slot=\"icon\"\n data-icon={name}\n size={size}\n className={cn(\"shrink-0\", className)}\n aria-hidden={hidden}\n aria-label={ariaLabel}\n role={ariaLabel ? \"img\" : undefined}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGA,MAAMA,kBAAgD;CAEpD,MAAM;CACN,QAAQ;CACR,eAAe;CACf,KAAK;CAGL,MAAM;CACN,eAAe;CACf,QAAQ;CAGR,eAAe;CACf,SAAS;CACT,MAAM;CAGN,UAAU;CACV,MAAM;CACN,SAAS;CAGT,iBAAiB;CACjB,gBAAgB;CAChB,cAAc;CACd,gBAAgB;CAChB,iBAAiB;CAGjB,YAAY;CACZ,cAAc;CACd,cAAc;CACd,eAAe;CAGf,OAAO;CACP,QAAQ;CACR,OAAO;CACP,OAAO;CACP,QAAQ;CAGR,QAAQ;CACR,QAAQ;CACR,kBAAkB;CAClB,SAAS;CAGT,OAAO;CACP,MAAM;CACN,gBAAgB;CAChB,SAAS;CACT,MAAM;CACN,SAAS;CACT,OAAO;CACP,OAAO;CACP,KAAK;CAGL,KAAK;CACL,WAAW;CACX,aAAa;CAGb,UAAU;CACV,QAAQ;CACR,MAAM;CACN,WAAW;CACX,MAAM;CACN,aAAa;CACb,UAAU;CACV,QAAQ;CACR,MAAM;CAGN,iBAAiB;CACjB,mBAAmB;CACnB,UAAU;CACV,MAAM;CACN,WAAW;CAGX,MAAM;CACN,OAAO;CACP,MAAM;CACN,UAAU;CACV,SAAS;CACT,WAAW;CACX,KAAK;CAGL,UAAU;CACV,MAAM;CACN,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACP,WAAW;CACX,UAAU;CACV,MAAMC;CACN,iBAAiB;CACjB,UAAU;CACV,OAAO;CACP,MAAM;CACN,MAAM;CACN,cAAc;CACd,MAAM;CACN,QAAQ;CACR,MAAM;CACN,QAAQ;CACR,YAAY;CACZ,MAAM;CACN,KAAK;CACL,MAAM;CACN,QAAQ;CACR,UAAU;CACV,SAAS;CACT,SAAS;CACT,MAAM;CACP;;;;;;;;;AAqCD,MAAaC,WAAyC;;;;;;AAOtD,MAAaC,gBAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDzC,SAAgB,KAAK,EACnB,MACA,OAAO,IACP,WACA,cAAc,WACd,eAAe,YACf,GAAG,SACS;CACZ,MAAM,SAAS,SAAS;CACxB,MAAM,QAAQ,UAAU;AAIxB,KACE,OAAO,YAAY,eACnB,QAAQ,IAAI,aAAa,gBACzB,WAAW,OAEX,SAAQ,KACN,uBAAuB,KAAK,0IAG7B;CAIH,MAAM,SAAS,eAAe,YAAY,SAAY;AAEtD,QACE,oBAAC;EACC,aAAU;EACV,aAAW;EACL;EACN,WAAW,GAAG,YAAY,UAAU;EACpC,eAAa;EACb,cAAY;EACZ,MAAM,YAAY,QAAQ;EAC1B,GAAI;GACJ"}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { t as Button } from "../button-
|
|
1
|
+
import { t as Button } from "../button-Cfd9X6pX.js";
|
|
2
|
+
import * as react_jsx_runtime193 from "react/jsx-runtime";
|
|
2
3
|
import * as React$1 from "react";
|
|
3
|
-
import * as react_jsx_runtime192 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as
|
|
5
|
+
import * as class_variance_authority_types9 from "class-variance-authority/types";
|
|
6
6
|
|
|
7
7
|
//#region src/components/input-group.d.ts
|
|
8
8
|
declare function InputGroup({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React$1.ComponentProps<"div">):
|
|
11
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime193.JSX.Element;
|
|
12
12
|
declare const inputGroupAddonVariants: (props?: ({
|
|
13
13
|
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
14
|
-
} &
|
|
14
|
+
} & class_variance_authority_types9.ClassProp) | undefined) => string;
|
|
15
15
|
declare function InputGroupAddon({
|
|
16
16
|
className,
|
|
17
17
|
align,
|
|
18
18
|
...props
|
|
19
|
-
}: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>):
|
|
19
|
+
}: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime193.JSX.Element;
|
|
20
20
|
declare const inputGroupButtonVariants: (props?: ({
|
|
21
21
|
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
22
|
-
} &
|
|
22
|
+
} & class_variance_authority_types9.ClassProp) | undefined) => string;
|
|
23
23
|
declare function InputGroupButton({
|
|
24
24
|
className,
|
|
25
25
|
type,
|
|
@@ -28,19 +28,19 @@ declare function InputGroupButton({
|
|
|
28
28
|
...props
|
|
29
29
|
}: Omit<React$1.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
30
30
|
type?: "button" | "submit" | "reset";
|
|
31
|
-
}):
|
|
31
|
+
}): react_jsx_runtime193.JSX.Element;
|
|
32
32
|
declare function InputGroupText({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React$1.ComponentProps<"span">):
|
|
35
|
+
}: React$1.ComponentProps<"span">): react_jsx_runtime193.JSX.Element;
|
|
36
36
|
declare function InputGroupInput({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}: React$1.ComponentProps<"input">):
|
|
39
|
+
}: React$1.ComponentProps<"input">): react_jsx_runtime193.JSX.Element;
|
|
40
40
|
declare function InputGroupTextarea({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: React$1.ComponentProps<"textarea">):
|
|
43
|
+
}: React$1.ComponentProps<"textarea">): react_jsx_runtime193.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
46
46
|
//# sourceMappingURL=input-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.d.ts","names":[],"sources":["../../src/components/input-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAUS,UAAA;;;GAAoC,OAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;cAclE;;IAmBL,
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","names":[],"sources":["../../src/components/input-group.tsx"],"sourcesContent":[],"mappings":";;;;;;;iBAUS,UAAA;;;GAAoC,OAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;cAclE;;IAmBL,+BAAA,CAAA;AArCoD,iBAuC5C,eAAA,CAnCU;EAAA,SAAA;EAAA,KAAA;EAAA,GAAA;AAAA,CAAA,EAuChB,OAAA,CAAM,cAvCU,CAAA,KAAA,CAAA,GAuCc,YAvCd,CAAA,OAuCkC,uBAvClC,CAAA,CAAA,EAuC0D,oBAAA,CAAA,GAAA,CAAA,OAvC1D;cAyDb,wBAzDgB,EAAA,CAAA,KAAkD,CAAlD,EAAA,CAAA;EAAuB,IAAA,CAAM,EAAA,IAAA,GAAA,IAAA,GAAA,SAAA,GAAA,SAAA,GAAA,IAAA,GAAA,SAAA;CAAqB,GAyEvE,+BAAA,CAAA,SAzEuE,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBA2E/D,gBAAA,CA3E+D;EAAA,SAAA;EAAA,IAAA;EAAA,OAAA;EAAA,IAAA;EAAA,GAAA;CAAA,EAiFrE,IAjFqE,CAiFhE,OAAA,CAAM,cAjF0D,CAAA,OAiFpC,MAjFoC,CAAA,EAAA,MAAA,GAAA,MAAA,CAAA,GAkFtE,YAlFsE,CAAA,OAkFlD,wBAlFkD,CAAA,GAAA;EAclE,IAAA,CAAA,EAAA,QAAA,GAAA,QAmBL,GAAA,OAAA;IAmDE,oBAAA,CAAA,GAAA,CAAA,OAjDqB;iBA6Df,cAAA,CA5DP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA4D+C,OAAA,CAAM,cA5DrD,CAAA,MAAA,CAAA,CAAA,EA4D2E,oBAAA,CAAA,GAAA,CAAA,OA5D3E;iBAwEO,eAAA,CAvEP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0EC,OAAA,CAAM,cA1EP,CAAA,OAAA,CAAA,CAAA,EA0E8B,oBAAA,CAAA,GAAA,CAAA,OA1E9B;iBAuFO,kBAAA,CArFA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAwFN,OAAA,CAAM,cAxFA,CAAA,UAAA,CAAA,CAAA,EAwF0B,oBAAA,CAAA,GAAA,CAAA,OAxF1B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import "../utils-
|
|
4
|
-
import "../button-
|
|
5
|
-
import "../input-
|
|
6
|
-
import "../textarea-
|
|
7
|
-
import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as InputGroupTextarea, r as InputGroupButton, t as InputGroup } from "../input-group-
|
|
3
|
+
import "../utils-DUlptRpf.js";
|
|
4
|
+
import "../button-DnHwqwy0.js";
|
|
5
|
+
import "../input-jIoNIdLQ.js";
|
|
6
|
+
import "../textarea-hZg0gA8u.js";
|
|
7
|
+
import { a as InputGroupText, i as InputGroupInput, n as InputGroupAddon, o as InputGroupTextarea, r as InputGroupButton, t as InputGroup } from "../input-group-B5PMRYld.js";
|
|
8
8
|
|
|
9
9
|
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
+
import * as react_jsx_runtime188 from "react/jsx-runtime";
|
|
1
2
|
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime200 from "react/jsx-runtime";
|
|
3
3
|
import { OTPFieldPreview } from "@base-ui/react/otp-field";
|
|
4
4
|
|
|
5
5
|
//#region src/components/input-otp.d.ts
|
|
6
6
|
declare function InputOTP({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: OTPFieldPreview.Root.Props):
|
|
9
|
+
}: OTPFieldPreview.Root.Props): react_jsx_runtime188.JSX.Element;
|
|
10
10
|
declare function InputOTPGroup({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React$1.ComponentProps<"div">):
|
|
13
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime188.JSX.Element;
|
|
14
14
|
declare function InputOTPSlot({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: OTPFieldPreview.Input.Props):
|
|
17
|
+
}: OTPFieldPreview.Input.Props): react_jsx_runtime188.JSX.Element;
|
|
18
18
|
declare function InputOTPSeparator({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: OTPFieldPreview.Separator.Props):
|
|
21
|
+
}: OTPFieldPreview.Separator.Props): react_jsx_runtime188.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
24
24
|
//# sourceMappingURL=input-otp.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import "react";
|
|
1
|
+
import { t as cn } from "../utils-DUlptRpf.js";
|
|
3
2
|
import { MinusIcon } from "lucide-react";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
5
|
import { OTPFieldPreview } from "@base-ui/react/otp-field";
|
|
6
6
|
|
|
7
7
|
//#region src/components/input-otp.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Input } from "../input-
|
|
1
|
+
import { t as Input } from "../input-BExbcSu4.js";
|
|
2
2
|
export { Input };
|
package/dist/components/input.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { t as Separator } from "../separator-
|
|
1
|
+
import { t as Separator } from "../separator-Df76guaT.js";
|
|
2
|
+
import * as react_jsx_runtime200 from "react/jsx-runtime";
|
|
2
3
|
import * as React$1 from "react";
|
|
3
|
-
import * as react_jsx_runtime174 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import { useRender } from "@base-ui/react/use-render";
|
|
6
|
-
import * as
|
|
6
|
+
import * as class_variance_authority_types11 from "class-variance-authority/types";
|
|
7
7
|
|
|
8
8
|
//#region src/components/item.d.ts
|
|
9
9
|
declare function ItemGroup({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.ComponentProps<"div">):
|
|
12
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
13
13
|
declare function ItemSeparator({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.ComponentProps<typeof Separator>):
|
|
16
|
+
}: React$1.ComponentProps<typeof Separator>): react_jsx_runtime200.JSX.Element;
|
|
17
17
|
declare const itemVariants: (props?: ({
|
|
18
|
-
variant?: "default" | "
|
|
18
|
+
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
19
19
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
20
|
-
} &
|
|
20
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
21
21
|
declare function Item({
|
|
22
22
|
className,
|
|
23
23
|
variant,
|
|
@@ -27,36 +27,36 @@ declare function Item({
|
|
|
27
27
|
}: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
28
28
|
declare const itemMediaVariants: (props?: ({
|
|
29
29
|
variant?: "default" | "image" | "icon" | null | undefined;
|
|
30
|
-
} &
|
|
30
|
+
} & class_variance_authority_types11.ClassProp) | undefined) => string;
|
|
31
31
|
declare function ItemMedia({
|
|
32
32
|
className,
|
|
33
33
|
variant,
|
|
34
34
|
...props
|
|
35
|
-
}: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>):
|
|
35
|
+
}: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): react_jsx_runtime200.JSX.Element;
|
|
36
36
|
declare function ItemContent({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}: React$1.ComponentProps<"div">):
|
|
39
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
40
40
|
declare function ItemTitle({
|
|
41
41
|
className,
|
|
42
42
|
...props
|
|
43
|
-
}: React$1.ComponentProps<"div">):
|
|
43
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
44
44
|
declare function ItemDescription({
|
|
45
45
|
className,
|
|
46
46
|
...props
|
|
47
|
-
}: React$1.ComponentProps<"p">):
|
|
47
|
+
}: React$1.ComponentProps<"p">): react_jsx_runtime200.JSX.Element;
|
|
48
48
|
declare function ItemActions({
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: React$1.ComponentProps<"div">):
|
|
51
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
52
52
|
declare function ItemHeader({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React$1.ComponentProps<"div">):
|
|
55
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
56
56
|
declare function ItemFooter({
|
|
57
57
|
className,
|
|
58
58
|
...props
|
|
59
|
-
}: React$1.ComponentProps<"div">):
|
|
59
|
+
}: React$1.ComponentProps<"div">): react_jsx_runtime200.JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle };
|
|
62
62
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","names":[],"sources":["../../src/components/item.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAQS,SAAA;;;GAAmC,OAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;iBAc9D,aAAA;;;GAGN,OAAA,CAAM,sBAAsB,aAAU,oBAAA,CAAA,GAAA,CAAA;cAWnC,oBA5Be;;EAAZ,IAAA,CAAA,EAAA,SAAS,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;CAAG,GAgDpB
|
|
1
|
+
{"version":3,"file":"item.d.ts","names":[],"sources":["../../src/components/item.tsx"],"sourcesContent":[],"mappings":";;;;;;;;iBAQS,SAAA;;;GAAmC,OAAA,CAAM,wBAAqB,oBAAA,CAAA,GAAA,CAAA;iBAc9D,aAAA;;;GAGN,OAAA,CAAM,sBAAsB,aAAU,oBAAA,CAAA,GAAA,CAAA;cAWnC,oBA5Be;;EAAZ,IAAA,CAAA,EAAA,SAAS,GAAA,IAAA,GAAA,IAAA,GAAA,IAAA,GAAA,SAAA;CAAG,GAgDpB,gCAAA,CAAA,SAhDoB,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBAkDZ,IAAA,CAlDyC;EAAA,SAAA;EAAA,OAAA;EAAA,IAAA;EAAA,MAAA;EAAA,GAAA;AAAA,CAAA,EAwD/C,SAAA,CAAU,cAxDqC,CAAA,KAAA,CAAA,GAwDb,YAxDa,CAAA,OAwDO,YAxDP,CAAA,CAAA,EAwDoB,OAAA,CAAA,YAxDpB,CAAA,OAAA,EAAA,MAAA,GAwDoB,OAAA,CAAA,qBAxDpB,CAAA,GAAA,CAAA,CAAA;cA0E5C,iBA1EiE,EAAA,CAAA,KAcjD,CAdiD,EAAA,CAAA;EAAA,OAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;AAAA,CAAA,GAyFtE,gCAAA,CAAA,SA3EqB,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;iBA6Eb,SAAA,CA5EP;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAgFC,OAAA,CAAM,cAhFP,CAAA,KAAA,CAAA,GAgF+B,YAhF/B,CAAA,OAgFmD,iBAhFnD,CAAA,CAAA,EAgFqE,oBAAA,CAAA,GAAA,CAAA,OAhFrE;iBA2FO,WAAA,CAzFsB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyFe,OAAA,CAAM,cAzFrB,CAAA,KAAA,CAAA,CAAA,EAyF0C,oBAAA,CAAA,GAAA,CAAA,OAzF1C;iBAsGtB,SAAA,CAtGA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsGmC,OAAA,CAAM,cAtGzC,CAAA,KAAA,CAAA,CAAA,EAsG8D,oBAAA,CAAA,GAAA,CAAA,OAtG9D;iBAmHA,eAAA,CAnHgC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAmHS,OAAA,CAAM,cAnHf,CAAA,GAAA,CAAA,CAAA,EAmHkC,oBAAA,CAAA,GAAA,CAAA,OAnHlC;iBAgIhC,WAAA,CAhIgC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgIK,OAAA,CAAM,cAhIX,CAAA,KAAA,CAAA,CAAA,EAgIgC,oBAAA,CAAA,GAAA,CAAA,OAhIhC;AAAA,iBA0IhC,UAAA,CA3GR;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2G4C,OAAA,CAAM,cA3GlD,CAAA,KAAA,CAAA,CAAA,EA2GuE,oBAAA,CAAA,GAAA,CAAA,OA3GvE;iBAwHQ,UAAA,CAtHI;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsHgC,OAAA,CAAM,cAtHtC,CAAA,KAAA,CAAA,CAAA,EAsH2D,oBAAA,CAAA,GAAA,CAAA,OAtH3D"}
|
package/dist/components/item.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as cn } from "../utils-
|
|
2
|
-
import { t as Separator } from "../separator-
|
|
3
|
-
import "react";
|
|
1
|
+
import { t as cn } from "../utils-DUlptRpf.js";
|
|
2
|
+
import { t as Separator } from "../separator-D0bew2D_.js";
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
7
7
|
import { useRender } from "@base-ui/react/use-render";
|
package/dist/components/kbd.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime215 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/kbd.d.ts
|
|
4
4
|
declare function Kbd({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<"kbd">):
|
|
7
|
+
}: React.ComponentProps<"kbd">): react_jsx_runtime215.JSX.Element;
|
|
8
8
|
declare function KbdGroup({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<"div">):
|
|
11
|
+
}: React.ComponentProps<"div">): react_jsx_runtime215.JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Kbd, KbdGroup };
|
|
14
14
|
//# sourceMappingURL=kbd.d.ts.map
|
package/dist/components/kbd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as Label } from "../label-
|
|
1
|
+
import { t as Label } from "../label-BFg2hxuL.js";
|
|
2
2
|
export { Label };
|
package/dist/components/label.js
CHANGED