@customafk/lunas-ui 0.0.10 → 0.0.12
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/{alert-dialog-0KwdjY-6.js → alert-dialog-CQa0TLlF.js} +1 -1
- package/dist/{alert-dialog-0KwdjY-6.js.map → alert-dialog-CQa0TLlF.js.map} +1 -1
- package/dist/{alert-dialog-BQv-ZvW9.cjs → alert-dialog-D1DFrl-0.cjs} +1 -1
- package/dist/{alert-dialog-BQv-ZvW9.cjs.map → alert-dialog-D1DFrl-0.cjs.map} +1 -1
- package/dist/{badge-DfSj5nwV.cjs → badge-DYEZ71Xn.cjs} +1 -1
- package/dist/{badge-DfSj5nwV.cjs.map → badge-DYEZ71Xn.cjs.map} +1 -1
- package/dist/{badge-D_qEoSL8.js → badge-DzKUgC8v.js} +1 -1
- package/dist/{badge-D_qEoSL8.js.map → badge-DzKUgC8v.js.map} +1 -1
- package/dist/{button-Blg2XhHo.d.ts → button-BAqUUT0m.d.cts} +4 -4
- package/dist/{button-DThtZ8g0.d.cts → button-O7LPNFsW.d.ts} +5 -5
- package/dist/{calendar-5D53vIAn.js → calendar-DaYVxwJx.js} +1 -1
- package/dist/{calendar-5D53vIAn.js.map → calendar-DaYVxwJx.js.map} +1 -1
- package/dist/{calendar-CPFb8F_s.cjs → calendar-DzAxQqFI.cjs} +1 -1
- package/dist/{calendar-CPFb8F_s.cjs.map → calendar-DzAxQqFI.cjs.map} +1 -1
- package/dist/cards/simple-card.d.ts +2 -2
- package/dist/{command-D8k85t1c.cjs → command-BaCe_FWz.cjs} +2 -2
- package/dist/{command-D8k85t1c.cjs.map → command-BaCe_FWz.cjs.map} +1 -1
- package/dist/{command-DXhsKiMq.d.ts → command-CzvzZ5v7.d.ts} +12 -12
- package/dist/{command-DieInaEN.js → command-DCJja1nB.js} +2 -2
- package/dist/{command-DieInaEN.js.map → command-DCJja1nB.js.map} +1 -1
- package/dist/{command-ByvjNMyq.d.cts → command-DrdWHvOO.d.cts} +12 -12
- package/dist/data-display/date-tooltip.cjs +2 -0
- package/dist/data-display/date-tooltip.cjs.map +1 -0
- package/dist/data-display/date-tooltip.d.cts +8 -0
- package/dist/data-display/date-tooltip.d.ts +8 -0
- package/dist/data-display/date-tooltip.js +2 -0
- package/dist/data-display/date-tooltip.js.map +1 -0
- package/dist/data-display/empty.d.ts +2 -2
- package/dist/data-display/name.cjs +1 -1
- package/dist/data-display/name.js +1 -1
- package/dist/data-display/phone-number.cjs +1 -1
- package/dist/data-display/phone-number.js +1 -1
- package/dist/data-display/role-badge.cjs +1 -1
- package/dist/data-display/role-badge.js +1 -1
- package/dist/data-display/statistic.d.cts +2 -2
- package/dist/data-display/statistic.d.ts +2 -2
- package/dist/{dialog-C4hf-Puw.js → dialog-C0AcPpDH.js} +2 -2
- package/dist/{dialog-C4hf-Puw.js.map → dialog-C0AcPpDH.js.map} +1 -1
- package/dist/{dialog-Cn8cFeu-.cjs → dialog-CH0Dihp0.cjs} +2 -2
- package/dist/{dialog-Cn8cFeu-.cjs.map → dialog-CH0Dihp0.cjs.map} +1 -1
- package/dist/{dialog-Dlozd6qY.d.ts → dialog-Ch71L6oE.d.ts} +12 -12
- package/dist/{dialog-B3V9xxdD.d.cts → dialog-DQY1Cjay.d.cts} +12 -12
- package/dist/dialogs/confirm-dialog.cjs +1 -1
- package/dist/dialogs/confirm-dialog.js +1 -1
- package/dist/dialogs/detail-dialog/index.cjs +1 -1
- package/dist/dialogs/detail-dialog/index.js +1 -1
- package/dist/dialogs/error-dialog.cjs +1 -1
- package/dist/dialogs/error-dialog.js +1 -1
- package/dist/dialogs/form-dialog.cjs +1 -1
- package/dist/dialogs/form-dialog.d.cts +2 -2
- package/dist/dialogs/form-dialog.d.ts +2 -2
- package/dist/dialogs/form-dialog.js +1 -1
- package/dist/dialogs/loading-dialog.cjs +1 -1
- package/dist/dialogs/loading-dialog.js +1 -1
- package/dist/{dropdown-menu-DTFOCPH_.js → dropdown-menu-CMHZTUhT.js} +2 -2
- package/dist/{dropdown-menu-DTFOCPH_.js.map → dropdown-menu-CMHZTUhT.js.map} +1 -1
- package/dist/{dropdown-menu-D2Kh77uw.cjs → dropdown-menu-QdmFgxxq.cjs} +2 -2
- package/dist/{dropdown-menu-D2Kh77uw.cjs.map → dropdown-menu-QdmFgxxq.cjs.map} +1 -1
- package/dist/{error-dialog-DO0Bb-pi.cjs → error-dialog-BTjeT7x-.cjs} +2 -2
- package/dist/{error-dialog-DO0Bb-pi.cjs.map → error-dialog-BTjeT7x-.cjs.map} +1 -1
- package/dist/{error-dialog-D_4WL-Hj.js → error-dialog-DlhosP10.js} +2 -2
- package/dist/{error-dialog-D_4WL-Hj.js.map → error-dialog-DlhosP10.js.map} +1 -1
- package/dist/{form-wrapper-FYiHHas7.cjs → form-wrapper-CCqogufb.cjs} +2 -2
- package/dist/{form-wrapper-FYiHHas7.cjs.map → form-wrapper-CCqogufb.cjs.map} +1 -1
- package/dist/{form-wrapper-D-2Uz518.js → form-wrapper-YPIbD8rh.js} +2 -2
- package/dist/{form-wrapper-D-2Uz518.js.map → form-wrapper-YPIbD8rh.js.map} +1 -1
- package/dist/forms/combobox-field.cjs +2 -2
- package/dist/forms/combobox-field.d.cts +2 -2
- package/dist/forms/combobox-field.d.ts +2 -2
- package/dist/forms/combobox-field.js +2 -2
- package/dist/forms/date-field.cjs +1 -1
- package/dist/forms/date-field.d.cts +2 -2
- package/dist/forms/date-field.d.ts +2 -2
- package/dist/forms/date-field.js +1 -1
- package/dist/forms/form-wrapper.cjs +1 -1
- package/dist/forms/form-wrapper.d.cts +2 -2
- package/dist/forms/form-wrapper.d.ts +2 -2
- package/dist/forms/form-wrapper.js +1 -1
- package/dist/forms/multi-select-field.cjs +1 -1
- package/dist/forms/multi-select-field.cjs.map +1 -1
- package/dist/forms/multi-select-field.d.cts +2 -2
- package/dist/forms/multi-select-field.d.ts +2 -2
- package/dist/forms/multi-select-field.js +1 -1
- package/dist/forms/number-field.d.cts +2 -2
- package/dist/forms/number-field.d.ts +2 -2
- package/dist/forms/password-field.d.cts +2 -2
- package/dist/forms/password-field.d.ts +2 -2
- package/dist/forms/select-field.cjs +1 -1
- package/dist/forms/select-field.d.cts +2 -2
- package/dist/forms/select-field.d.ts +2 -2
- package/dist/forms/select-field.js +1 -1
- package/dist/forms/switch-field.d.cts +2 -2
- package/dist/forms/switch-field.d.ts +2 -2
- package/dist/forms/text-field.d.cts +2 -2
- package/dist/forms/text-field.d.ts +2 -2
- package/dist/forms/textarea-field.d.cts +2 -2
- package/dist/forms/textarea-field.d.ts +2 -2
- package/dist/{input-yduNlg8y.d.ts → input-DhLxB8V-.d.cts} +3 -3
- package/dist/{input-DlRU8OGl.d.cts → input-cj6Jc1Zj.d.ts} +3 -3
- package/dist/layouts/flex.d.cts +4 -4
- package/dist/layouts/flex.d.ts +8 -8
- package/dist/layouts/main/index.cjs +1 -1
- package/dist/layouts/main/index.js +1 -1
- package/dist/{multi-select-EqlnkO5V.cjs → multi-select-C-r_XSFy.cjs} +2 -2
- package/dist/{multi-select-EqlnkO5V.cjs.map → multi-select-C-r_XSFy.cjs.map} +1 -1
- package/dist/{multi-select-Bbv0Z0TP.js → multi-select-p5ihXgWH.js} +2 -2
- package/dist/{multi-select-Bbv0Z0TP.js.map → multi-select-p5ihXgWH.js.map} +1 -1
- package/dist/{popover-CAokgoc_.cjs → popover-Ce0OTSQL.cjs} +1 -1
- package/dist/{popover-CAokgoc_.cjs.map → popover-Ce0OTSQL.cjs.map} +1 -1
- package/dist/{popover-B8j86VQv.js → popover-tDri6Ded.js} +1 -1
- package/dist/{popover-B8j86VQv.js.map → popover-tDri6Ded.js.map} +1 -1
- package/dist/{select-4IO3vAjO.js → select-Cly99ppn.js} +2 -2
- package/dist/{select-4IO3vAjO.js.map → select-Cly99ppn.js.map} +1 -1
- package/dist/{select-UsiicIRo.cjs → select-sfw-dJW8.cjs} +2 -2
- package/dist/{select-UsiicIRo.cjs.map → select-sfw-dJW8.cjs.map} +1 -1
- package/dist/{separator-C4XPc_2Y.d.cts → separator-BsnCT8LX.d.cts} +3 -3
- package/dist/{separator-o7tKOtGF.d.ts → separator-D1cml8sE.d.ts} +3 -3
- package/dist/{sheet-2JqHfdYi.js → sheet-DeJpnbAR.js} +2 -2
- package/dist/{sheet-2JqHfdYi.js.map → sheet-DeJpnbAR.js.map} +1 -1
- package/dist/{sheet-Dr-a3-o2.cjs → sheet-sg-NUPt_.cjs} +2 -2
- package/dist/{sheet-Dr-a3-o2.cjs.map → sheet-sg-NUPt_.cjs.map} +1 -1
- package/dist/{sidebar-COBzB7S8.js → sidebar-BDATBAxY.js} +2 -2
- package/dist/{sidebar-COBzB7S8.js.map → sidebar-BDATBAxY.js.map} +1 -1
- package/dist/{sidebar-gXuaHBie.cjs → sidebar-cprcAORD.cjs} +2 -2
- package/dist/{sidebar-gXuaHBie.cjs.map → sidebar-cprcAORD.cjs.map} +1 -1
- package/dist/table/index.cjs +1 -1
- package/dist/table/index.d.ts +2 -2
- package/dist/table/index.js +1 -1
- package/dist/{toggle-BCSHdzP0.d.cts → toggle-CxXbGIf5.d.ts} +4 -4
- package/dist/{toggle-D42pqCTD.d.ts → toggle-DfC247hI.d.cts} +5 -5
- package/dist/{tooltip-MgToVOzy.cjs → tooltip-BFeC0iub.cjs} +1 -1
- package/dist/{tooltip-MgToVOzy.cjs.map → tooltip-BFeC0iub.cjs.map} +1 -1
- package/dist/{tooltip-Dn8AOhc4.d.cts → tooltip-CA4xH6Zd.d.cts} +6 -6
- package/dist/{tooltip-Dzyf5smh.js → tooltip-mqfVQzkp.js} +1 -1
- package/dist/{tooltip-Dzyf5smh.js.map → tooltip-mqfVQzkp.js.map} +1 -1
- package/dist/typography/paragraph.d.cts +2 -2
- package/dist/typography/paragraph.d.ts +2 -2
- package/dist/typography/title.d.cts +2 -2
- package/dist/typography/title.d.ts +2 -2
- package/dist/ui/alert-dialog.cjs +1 -1
- package/dist/ui/alert-dialog.d.cts +12 -12
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert-dialog.js +1 -1
- package/dist/ui/alert.d.cts +4 -4
- package/dist/ui/alert.d.ts +6 -6
- package/dist/ui/aspect-ratio.d.cts +2 -2
- package/dist/ui/aspect-ratio.d.ts +2 -2
- package/dist/ui/avatar.d.cts +4 -4
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.cjs +1 -1
- package/dist/ui/badge.d.cts +3 -3
- package/dist/ui/badge.d.ts +5 -5
- package/dist/ui/badge.js +1 -1
- package/dist/ui/breadcrumb.cjs +1 -1
- package/dist/ui/breadcrumb.d.cts +8 -8
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.js +1 -1
- package/dist/ui/button.d.cts +1 -1
- package/dist/ui/button.d.ts +1 -1
- package/dist/ui/buttons/edit.cjs +2 -0
- package/dist/ui/buttons/edit.cjs.map +1 -0
- package/dist/ui/buttons/edit.d.cts +8 -0
- package/dist/ui/buttons/edit.d.ts +8 -0
- package/dist/ui/buttons/edit.js +2 -0
- package/dist/ui/buttons/edit.js.map +1 -0
- package/dist/ui/buttons/trash.cjs +2 -0
- package/dist/ui/buttons/trash.cjs.map +1 -0
- package/dist/ui/buttons/trash.d.cts +8 -0
- package/dist/ui/buttons/trash.d.ts +8 -0
- package/dist/ui/buttons/trash.js +2 -0
- package/dist/ui/buttons/trash.js.map +1 -0
- package/dist/ui/buttons/upload-image.cjs +2 -0
- package/dist/ui/buttons/upload-image.cjs.map +1 -0
- package/dist/ui/buttons/upload-image.d.cts +11 -0
- package/dist/ui/buttons/upload-image.d.ts +11 -0
- package/dist/ui/buttons/upload-image.js +2 -0
- package/dist/ui/buttons/upload-image.js.map +1 -0
- package/dist/ui/calendar.cjs +1 -1
- package/dist/ui/calendar.d.cts +4 -4
- package/dist/ui/calendar.d.ts +4 -4
- package/dist/ui/calendar.js +1 -1
- package/dist/ui/card.d.cts +8 -8
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.d.cts +7 -7
- package/dist/ui/carousel.d.ts +7 -7
- package/dist/ui/collapsible.d.cts +4 -4
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/command.cjs +1 -1
- package/dist/ui/command.d.cts +2 -2
- package/dist/ui/command.d.ts +2 -2
- package/dist/ui/command.js +1 -1
- package/dist/ui/context-menu.cjs +1 -1
- package/dist/ui/context-menu.d.cts +16 -16
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/context-menu.js +1 -1
- package/dist/ui/dialog.cjs +1 -1
- package/dist/ui/dialog.d.cts +1 -1
- package/dist/ui/dialog.d.ts +1 -1
- package/dist/ui/dialog.js +1 -1
- package/dist/ui/dropdown-menu.cjs +1 -1
- package/dist/ui/dropdown-menu.d.cts +16 -16
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.js +1 -1
- package/dist/ui/file-uploader.d.cts +2 -2
- package/dist/ui/file-uploader.d.ts +2 -2
- package/dist/ui/form.d.cts +7 -7
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.cts +4 -4
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-otp.d.cts +5 -5
- package/dist/ui/input-otp.d.ts +5 -5
- package/dist/ui/input.d.cts +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/inputs/search-input.d.cts +3 -3
- package/dist/ui/inputs/search-input.d.ts +3 -3
- package/dist/ui/label.d.cts +2 -2
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/menubar.cjs +1 -1
- package/dist/ui/menubar.d.cts +17 -17
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/menubar.js +1 -1
- package/dist/ui/multi-select.cjs +1 -1
- package/dist/ui/multi-select.d.cts +2 -2
- package/dist/ui/multi-select.d.ts +2 -2
- package/dist/ui/multi-select.js +1 -1
- package/dist/ui/navigation-menu.cjs +1 -1
- package/dist/ui/navigation-menu.d.cts +11 -11
- package/dist/ui/navigation-menu.d.ts +11 -11
- package/dist/ui/navigation-menu.js +1 -1
- package/dist/ui/pagination.d.cts +9 -9
- package/dist/ui/pagination.d.ts +9 -9
- package/dist/ui/popover.cjs +1 -1
- package/dist/ui/popover.d.cts +5 -5
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/popover.js +1 -1
- package/dist/ui/progress.d.cts +2 -2
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.cjs +1 -1
- package/dist/ui/radio-group.d.cts +3 -3
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/radio-group.js +1 -1
- package/dist/ui/resizable.d.cts +4 -4
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/scroll-area.d.cts +3 -3
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/select.cjs +1 -1
- package/dist/ui/select.d.cts +11 -11
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/select.js +1 -1
- package/dist/ui/separator.d.cts +1 -1
- package/dist/ui/separator.d.ts +1 -1
- package/dist/ui/sheet.cjs +1 -1
- package/dist/ui/sheet.d.cts +9 -9
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/sidebar.cjs +1 -1
- package/dist/ui/sidebar.d.cts +30 -30
- package/dist/ui/sidebar.d.ts +29 -29
- package/dist/ui/sidebar.js +1 -1
- package/dist/ui/skeleton.d.cts +2 -2
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/slider.d.cts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.cts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/switch.d.cts +2 -2
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/table.d.cts +9 -9
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/tabs.d.cts +5 -5
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/textarea.d.cts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/toggle-group.d.cts +4 -4
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle.d.cts +1 -1
- package/dist/ui/toggle.d.ts +1 -1
- package/dist/ui/tooltip.cjs +1 -1
- package/dist/ui/tooltip.d.cts +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/package.json +17 -1
- package/packages/components/data-display/date-tooltip.tsx +37 -0
- package/packages/components/ui/buttons/edit.tsx +20 -0
- package/packages/components/ui/buttons/trash.tsx +20 -0
- package/packages/components/ui/buttons/upload-image.tsx +28 -0
package/dist/ui/textarea.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime179 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region packages/components/ui/textarea.d.ts
|
|
5
5
|
declare function Textarea({
|
|
@@ -9,7 +9,7 @@ declare function Textarea({
|
|
|
9
9
|
...props
|
|
10
10
|
}: React.ComponentProps<"textarea"> & {
|
|
11
11
|
onValueChange?: (value: string) => void;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime179.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Textarea };
|
|
15
15
|
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { toggleVariants } from "../toggle-
|
|
2
|
-
import * as
|
|
1
|
+
import { toggleVariants } from "../toggle-DfC247hI.cjs";
|
|
2
|
+
import * as react_jsx_runtime227 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
|
|
@@ -11,14 +11,14 @@ declare function ToggleGroup({
|
|
|
11
11
|
size,
|
|
12
12
|
children,
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>):
|
|
14
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime227.JSX.Element;
|
|
15
15
|
declare function ToggleGroupItem({
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
18
18
|
variant,
|
|
19
19
|
size,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>):
|
|
21
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime227.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ToggleGroup, ToggleGroupItem };
|
|
24
24
|
//# sourceMappingURL=toggle-group.d.cts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { toggleVariants } from "../toggle-
|
|
1
|
+
import { toggleVariants } from "../toggle-CxXbGIf5.js";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime195 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import { ToggleGroup as ToggleGroup$1 } from "radix-ui";
|
|
6
6
|
|
|
@@ -11,14 +11,14 @@ declare function ToggleGroup({
|
|
|
11
11
|
size,
|
|
12
12
|
children,
|
|
13
13
|
...props
|
|
14
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>):
|
|
14
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime195.JSX.Element;
|
|
15
15
|
declare function ToggleGroupItem({
|
|
16
16
|
className,
|
|
17
17
|
children,
|
|
18
18
|
variant,
|
|
19
19
|
size,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>):
|
|
21
|
+
}: React.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime195.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { ToggleGroup, ToggleGroupItem };
|
|
24
24
|
//# sourceMappingURL=toggle-group.d.ts.map
|
package/dist/ui/toggle.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Toggle, toggleVariants } from "../toggle-
|
|
1
|
+
import { Toggle, toggleVariants } from "../toggle-DfC247hI.cjs";
|
|
2
2
|
export { Toggle, toggleVariants };
|
package/dist/ui/toggle.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Toggle, toggleVariants } from "../toggle-
|
|
1
|
+
import { Toggle, toggleVariants } from "../toggle-CxXbGIf5.js";
|
|
2
2
|
export { Toggle, toggleVariants };
|
package/dist/ui/tooltip.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../tooltip-
|
|
1
|
+
"use client";const e=require(`../chunk-hhQzssFb.cjs`);require(`../utils-DaJ1XZgX.cjs`);const t=require(`../tooltip-BFeC0iub.cjs`);exports.Tooltip=t.Tooltip,exports.TooltipContent=t.TooltipContent,exports.TooltipProvider=t.TooltipProvider,exports.TooltipTrigger=t.TooltipTrigger;
|
package/dist/ui/tooltip.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-
|
|
1
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip-CA4xH6Zd.cjs";
|
|
2
2
|
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/dist/ui/tooltip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import"../utils-D9AH0PUV.js";import{Tooltip as e,TooltipContent as t,TooltipProvider as n,TooltipTrigger as r}from"../tooltip-
|
|
1
|
+
"use client";import"../utils-D9AH0PUV.js";import{Tooltip as e,TooltipContent as t,TooltipProvider as n,TooltipTrigger as r}from"../tooltip-mqfVQzkp.js";export{e as Tooltip,t as TooltipContent,n as TooltipProvider,r as TooltipTrigger};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@customafk/lunas-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "UI library for Lunas Enterprise",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
"import": "./dist/data-display/date.js",
|
|
42
42
|
"require": "./dist/data-display/date.cjs"
|
|
43
43
|
},
|
|
44
|
+
"./data-display/date-tooltip": {
|
|
45
|
+
"import": "./dist/data-display/date-tooltip.js",
|
|
46
|
+
"require": "./dist/data-display/date-tooltip.cjs"
|
|
47
|
+
},
|
|
44
48
|
"./data-display/empty": {
|
|
45
49
|
"import": "./dist/data-display/empty.js",
|
|
46
50
|
"require": "./dist/data-display/empty.cjs"
|
|
@@ -173,10 +177,22 @@
|
|
|
173
177
|
"import": "./dist/ui/buttons/add-new.js",
|
|
174
178
|
"require": "./dist/ui/buttons/add-new.cjs"
|
|
175
179
|
},
|
|
180
|
+
"./ui/buttons/edit": {
|
|
181
|
+
"import": "./dist/ui/buttons/edit.js",
|
|
182
|
+
"require": "./dist/ui/buttons/edit.cjs"
|
|
183
|
+
},
|
|
176
184
|
"./ui/buttons/refresh": {
|
|
177
185
|
"import": "./dist/ui/buttons/refresh.js",
|
|
178
186
|
"require": "./dist/ui/buttons/refresh.cjs"
|
|
179
187
|
},
|
|
188
|
+
"./ui/buttons/trash": {
|
|
189
|
+
"import": "./dist/ui/buttons/trash.js",
|
|
190
|
+
"require": "./dist/ui/buttons/trash.cjs"
|
|
191
|
+
},
|
|
192
|
+
"./ui/buttons/upload-image": {
|
|
193
|
+
"import": "./dist/ui/buttons/upload-image.js",
|
|
194
|
+
"require": "./dist/ui/buttons/upload-image.cjs"
|
|
195
|
+
},
|
|
180
196
|
"./ui/calendar": {
|
|
181
197
|
"import": "./dist/ui/calendar.js",
|
|
182
198
|
"require": "./dist/ui/calendar.cjs"
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { DateDisplay } from "./date";
|
|
2
|
+
import { Badge } from "../ui/badge";
|
|
3
|
+
import {
|
|
4
|
+
Tooltip,
|
|
5
|
+
TooltipContent,
|
|
6
|
+
TooltipProvider,
|
|
7
|
+
TooltipTrigger,
|
|
8
|
+
} from "../ui/tooltip";
|
|
9
|
+
|
|
10
|
+
type Props = {
|
|
11
|
+
date: Date | string | number;
|
|
12
|
+
};
|
|
13
|
+
export const DateTooltip: React.FC<Props> = ({ date }) => {
|
|
14
|
+
return (
|
|
15
|
+
<TooltipProvider>
|
|
16
|
+
<Tooltip>
|
|
17
|
+
<TooltipTrigger asChild>
|
|
18
|
+
<Badge>
|
|
19
|
+
<DateDisplay
|
|
20
|
+
date={date}
|
|
21
|
+
format="medium"
|
|
22
|
+
className="font-normal text-white"
|
|
23
|
+
/>
|
|
24
|
+
</Badge>
|
|
25
|
+
</TooltipTrigger>
|
|
26
|
+
<TooltipContent>
|
|
27
|
+
<DateDisplay
|
|
28
|
+
date={date}
|
|
29
|
+
format="full"
|
|
30
|
+
showTime
|
|
31
|
+
className="text-secondary !font-[Inter] font-medium"
|
|
32
|
+
/>
|
|
33
|
+
</TooltipContent>
|
|
34
|
+
</Tooltip>
|
|
35
|
+
</TooltipProvider>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Edit2Icon } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { Button } from "../button";
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export const EditBtn: React.FC<Props> = ({ onClick }) => {
|
|
9
|
+
return (
|
|
10
|
+
<Button
|
|
11
|
+
aria-label="Chỉnh sửa"
|
|
12
|
+
variant="ghost"
|
|
13
|
+
size="icon"
|
|
14
|
+
className="aspect-square max-sm:p-0"
|
|
15
|
+
onClick={onClick}
|
|
16
|
+
>
|
|
17
|
+
<Edit2Icon size={16} className="opacity-60" />
|
|
18
|
+
</Button>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Trash2Icon } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { Button } from "../button";
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
};
|
|
8
|
+
export const TrashBtn: React.FC<Props> = ({ onClick }) => {
|
|
9
|
+
return (
|
|
10
|
+
<Button
|
|
11
|
+
aria-label="Xoá"
|
|
12
|
+
variant="ghost"
|
|
13
|
+
size="icon"
|
|
14
|
+
className="aspect-square max-sm:p-0"
|
|
15
|
+
onClick={onClick}
|
|
16
|
+
>
|
|
17
|
+
<Trash2Icon size={16} className="opacity-60" aria-hidden="true" />
|
|
18
|
+
</Button>
|
|
19
|
+
);
|
|
20
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { PropsWithChildren } from "react";
|
|
3
|
+
import { UploadIcon } from "lucide-react";
|
|
4
|
+
|
|
5
|
+
import { Button } from "../button";
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
size?: number;
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export const UploadImageBtn: React.FC<PropsWithChildren<Props>> = ({
|
|
13
|
+
size = "5rem",
|
|
14
|
+
onClick,
|
|
15
|
+
}) => {
|
|
16
|
+
return (
|
|
17
|
+
<Button
|
|
18
|
+
style={{
|
|
19
|
+
width: size,
|
|
20
|
+
height: size,
|
|
21
|
+
}}
|
|
22
|
+
variant="outline"
|
|
23
|
+
onClick={onClick}
|
|
24
|
+
>
|
|
25
|
+
<UploadIcon className="size-6" />
|
|
26
|
+
</Button>
|
|
27
|
+
);
|
|
28
|
+
};
|