@ifhover/leaf-ui 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/browser/modules/alert/alert.cjs +1 -1
- package/dist/cjs/browser/modules/alert/alert.cjs.map +1 -1
- package/dist/cjs/browser/modules/anchor/anchor.cjs +1 -1
- package/dist/cjs/browser/modules/anchor/anchor.cjs.map +1 -1
- package/dist/cjs/browser/modules/autocomplete/autocomplete.cjs +1 -1
- package/dist/cjs/browser/modules/autocomplete/autocomplete.cjs.map +1 -1
- package/dist/cjs/browser/modules/avatar/avatar.cjs +1 -1
- package/dist/cjs/browser/modules/avatar/avatar.cjs.map +1 -1
- package/dist/cjs/browser/modules/avatar/group.cjs +1 -1
- package/dist/cjs/browser/modules/avatar/group.cjs.map +1 -1
- package/dist/cjs/browser/modules/backtop/backtop.cjs +1 -1
- package/dist/cjs/browser/modules/backtop/backtop.cjs.map +1 -1
- package/dist/cjs/browser/modules/badge/badge.cjs +1 -1
- package/dist/cjs/browser/modules/badge/badge.cjs.map +1 -1
- package/dist/cjs/browser/modules/breadcrumb/breadcrumb.cjs +1 -1
- package/dist/cjs/browser/modules/breadcrumb/breadcrumb.cjs.map +1 -1
- package/dist/cjs/browser/modules/button/button.cjs +1 -1
- package/dist/cjs/browser/modules/button/button.cjs.map +1 -1
- package/dist/cjs/browser/modules/button/group.cjs +1 -1
- package/dist/cjs/browser/modules/button/group.cjs.map +1 -1
- package/dist/cjs/browser/modules/calendar/calendar.cjs +1 -1
- package/dist/cjs/browser/modules/calendar/calendar.cjs.map +1 -1
- package/dist/cjs/browser/modules/card/card.cjs +1 -1
- package/dist/cjs/browser/modules/card/card.cjs.map +1 -1
- package/dist/cjs/browser/modules/card/title.cjs +1 -1
- package/dist/cjs/browser/modules/card/title.cjs.map +1 -1
- package/dist/cjs/browser/modules/carousel/carousel.cjs +1 -1
- package/dist/cjs/browser/modules/carousel/carousel.cjs.map +1 -1
- package/dist/cjs/browser/modules/cascader/cascader.cjs +1 -1
- package/dist/cjs/browser/modules/cascader/cascader.cjs.map +1 -1
- package/dist/cjs/browser/modules/checkbox/checkbox.cjs +1 -1
- package/dist/cjs/browser/modules/checkbox/checkbox.cjs.map +1 -1
- package/dist/cjs/browser/modules/checkbox/group.cjs +1 -1
- package/dist/cjs/browser/modules/checkbox/group.cjs.map +1 -1
- package/dist/cjs/browser/modules/collapse/collapse.cjs +1 -1
- package/dist/cjs/browser/modules/collapse/collapse.cjs.map +1 -1
- package/dist/cjs/browser/modules/colorpicker/colorpicker.cjs +1 -1
- package/dist/cjs/browser/modules/colorpicker/colorpicker.cjs.map +1 -1
- package/dist/cjs/browser/modules/colorpicker/gradient.cjs +1 -1
- package/dist/cjs/browser/modules/colorpicker/gradient.cjs.map +1 -1
- package/dist/cjs/browser/modules/colorpicker/trigger.cjs +1 -1
- package/dist/cjs/browser/modules/colorpicker/trigger.cjs.map +1 -1
- package/dist/cjs/browser/modules/datepicker/datepicker.cjs +1 -1
- package/dist/cjs/browser/modules/datepicker/datepicker.cjs.map +1 -1
- package/dist/cjs/browser/modules/descriptions/descriptions.cjs +1 -1
- package/dist/cjs/browser/modules/descriptions/descriptions.cjs.map +1 -1
- package/dist/cjs/browser/modules/divider/divider.cjs +1 -1
- package/dist/cjs/browser/modules/divider/divider.cjs.map +1 -1
- package/dist/cjs/browser/modules/drawer/drawer.cjs +1 -1
- package/dist/cjs/browser/modules/drawer/drawer.cjs.map +1 -1
- package/dist/cjs/browser/modules/dropdown/dropdown.cjs +1 -1
- package/dist/cjs/browser/modules/dropdown/dropdown.cjs.map +1 -1
- package/dist/cjs/browser/modules/errorboundary/errorboundary.cjs +1 -1
- package/dist/cjs/browser/modules/errorboundary/errorboundary.cjs.map +1 -1
- package/dist/cjs/browser/modules/filelist/filelist.cjs +1 -1
- package/dist/cjs/browser/modules/filelist/filelist.cjs.map +1 -1
- package/dist/cjs/browser/modules/flex/flex.cjs +1 -1
- package/dist/cjs/browser/modules/flex/flex.cjs.map +1 -1
- package/dist/cjs/browser/modules/floatbutton/floatbutton.cjs +1 -1
- package/dist/cjs/browser/modules/floatbutton/floatbutton.cjs.map +1 -1
- package/dist/cjs/browser/modules/form/form.cjs +1 -1
- package/dist/cjs/browser/modules/form/form.cjs.map +1 -1
- package/dist/cjs/browser/modules/form/list.cjs +1 -1
- package/dist/cjs/browser/modules/form/list.cjs.map +1 -1
- package/dist/cjs/browser/modules/grid/grid.cjs +1 -1
- package/dist/cjs/browser/modules/grid/grid.cjs.map +1 -1
- package/dist/cjs/browser/modules/image/image.cjs +1 -1
- package/dist/cjs/browser/modules/image/image.cjs.map +1 -1
- package/dist/cjs/browser/modules/image/preview-renderer.cjs +1 -1
- package/dist/cjs/browser/modules/image/preview-renderer.cjs.map +1 -1
- package/dist/cjs/browser/modules/image/viewer.cjs +1 -1
- package/dist/cjs/browser/modules/image/viewer.cjs.map +1 -1
- package/dist/cjs/browser/modules/infinitescroll/infinitescroll.cjs +1 -1
- package/dist/cjs/browser/modules/infinitescroll/infinitescroll.cjs.map +1 -1
- package/dist/cjs/browser/modules/input/group.cjs +1 -1
- package/dist/cjs/browser/modules/input/group.cjs.map +1 -1
- package/dist/cjs/browser/modules/input/input.cjs +1 -1
- package/dist/cjs/browser/modules/input/input.cjs.map +1 -1
- package/dist/cjs/browser/modules/inputmask/inputmask.cjs +1 -1
- package/dist/cjs/browser/modules/inputmask/inputmask.cjs.map +1 -1
- package/dist/cjs/browser/modules/inputnumber/inputnumber.cjs +1 -1
- package/dist/cjs/browser/modules/inputnumber/inputnumber.cjs.map +1 -1
- package/dist/cjs/browser/modules/inputnumber/string.cjs +1 -1
- package/dist/cjs/browser/modules/inputnumber/string.cjs.map +1 -1
- package/dist/cjs/browser/modules/inputotp/inputotp.cjs +1 -1
- package/dist/cjs/browser/modules/inputotp/inputotp.cjs.map +1 -1
- package/dist/cjs/browser/modules/layout/layout.cjs +1 -1
- package/dist/cjs/browser/modules/layout/layout.cjs.map +1 -1
- package/dist/cjs/browser/modules/loading/loading.cjs +1 -1
- package/dist/cjs/browser/modules/loading/loading.cjs.map +1 -1
- package/dist/cjs/browser/modules/loadingbar/loadingbar.cjs +1 -1
- package/dist/cjs/browser/modules/loadingbar/loadingbar.cjs.map +1 -1
- package/dist/cjs/browser/modules/masonry/masonry.cjs +1 -1
- package/dist/cjs/browser/modules/masonry/masonry.cjs.map +1 -1
- package/dist/cjs/browser/modules/mentions/mentions.cjs +1 -1
- package/dist/cjs/browser/modules/mentions/mentions.cjs.map +1 -1
- package/dist/cjs/browser/modules/menu/menu.cjs +1 -1
- package/dist/cjs/browser/modules/menu/menu.cjs.map +1 -1
- package/dist/cjs/browser/modules/message/item.cjs +1 -1
- package/dist/cjs/browser/modules/message/item.cjs.map +1 -1
- package/dist/cjs/browser/modules/message/message.cjs +1 -1
- package/dist/cjs/browser/modules/message/message.cjs.map +1 -1
- package/dist/cjs/browser/modules/message/provider.cjs +1 -1
- package/dist/cjs/browser/modules/message/provider.cjs.map +1 -1
- package/dist/cjs/browser/modules/modal/base.cjs +1 -1
- package/dist/cjs/browser/modules/modal/base.cjs.map +1 -1
- package/dist/cjs/browser/modules/modal/modal.cjs +1 -1
- package/dist/cjs/browser/modules/modal/modal.cjs.map +1 -1
- package/dist/cjs/browser/modules/notification/notification.cjs +1 -1
- package/dist/cjs/browser/modules/notification/notification.cjs.map +1 -1
- package/dist/cjs/browser/modules/pagination/pagination.cjs +1 -1
- package/dist/cjs/browser/modules/pagination/pagination.cjs.map +1 -1
- package/dist/cjs/browser/modules/popconfirm/popconfirm.cjs +1 -1
- package/dist/cjs/browser/modules/popconfirm/popconfirm.cjs.map +1 -1
- package/dist/cjs/browser/modules/popover/popover.cjs +1 -1
- package/dist/cjs/browser/modules/popover/popover.cjs.map +1 -1
- package/dist/cjs/browser/modules/progress/progress.cjs +1 -1
- package/dist/cjs/browser/modules/progress/progress.cjs.map +1 -1
- package/dist/cjs/browser/modules/qrcode/qrcode.cjs +1 -1
- package/dist/cjs/browser/modules/qrcode/qrcode.cjs.map +1 -1
- package/dist/cjs/browser/modules/radio/radio.cjs +1 -1
- package/dist/cjs/browser/modules/radio/radio.cjs.map +1 -1
- package/dist/cjs/browser/modules/rate/rate.cjs +1 -1
- package/dist/cjs/browser/modules/rate/rate.cjs.map +1 -1
- package/dist/cjs/browser/modules/result/result.cjs +1 -1
- package/dist/cjs/browser/modules/result/result.cjs.map +1 -1
- package/dist/cjs/browser/modules/scrollarea/scrollarea.cjs +1 -1
- package/dist/cjs/browser/modules/scrollarea/scrollarea.cjs.map +1 -1
- package/dist/cjs/browser/modules/scrollbar/scrollbar.cjs +1 -1
- package/dist/cjs/browser/modules/scrollbar/scrollbar.cjs.map +1 -1
- package/dist/cjs/browser/modules/select/select.cjs +1 -1
- package/dist/cjs/browser/modules/select/select.cjs.map +1 -1
- package/dist/cjs/browser/modules/shared/calendar.cjs +1 -1
- package/dist/cjs/browser/modules/shared/calendar.cjs.map +1 -1
- package/dist/cjs/browser/modules/skeleton/skeleton.cjs +1 -1
- package/dist/cjs/browser/modules/skeleton/skeleton.cjs.map +1 -1
- package/dist/cjs/browser/modules/slider/slider.cjs +1 -1
- package/dist/cjs/browser/modules/slider/slider.cjs.map +1 -1
- package/dist/cjs/browser/modules/space/space.cjs +1 -1
- package/dist/cjs/browser/modules/space/space.cjs.map +1 -1
- package/dist/cjs/browser/modules/splitter/splitter.cjs +1 -1
- package/dist/cjs/browser/modules/splitter/splitter.cjs.map +1 -1
- package/dist/cjs/browser/modules/statistic/statistic.cjs +1 -1
- package/dist/cjs/browser/modules/statistic/statistic.cjs.map +1 -1
- package/dist/cjs/browser/modules/steps/steps.cjs +1 -1
- package/dist/cjs/browser/modules/steps/steps.cjs.map +1 -1
- package/dist/cjs/browser/modules/switch/switch.cjs +1 -1
- package/dist/cjs/browser/modules/switch/switch.cjs.map +1 -1
- package/dist/cjs/browser/modules/table/table.cjs +1 -1
- package/dist/cjs/browser/modules/table/table.cjs.map +1 -1
- package/dist/cjs/browser/modules/tabletanstack/tabletanstack.cjs +1 -1
- package/dist/cjs/browser/modules/tabletanstack/tabletanstack.cjs.map +1 -1
- package/dist/cjs/browser/modules/tabs/tabs.cjs +1 -1
- package/dist/cjs/browser/modules/tabs/tabs.cjs.map +1 -1
- package/dist/cjs/browser/modules/tabs/use-moving-indicator.cjs +15 -1
- package/dist/cjs/browser/modules/tabs/use-moving-indicator.cjs.map +1 -1
- package/dist/cjs/browser/modules/tag/group.cjs +1 -1
- package/dist/cjs/browser/modules/tag/group.cjs.map +1 -1
- package/dist/cjs/browser/modules/tag/tag.cjs +1 -1
- package/dist/cjs/browser/modules/tag/tag.cjs.map +1 -1
- package/dist/cjs/browser/modules/textarea/textarea.cjs +1 -1
- package/dist/cjs/browser/modules/textarea/textarea.cjs.map +1 -1
- package/dist/cjs/browser/modules/timeline/timeline.cjs +1 -1
- package/dist/cjs/browser/modules/timeline/timeline.cjs.map +1 -1
- package/dist/cjs/browser/modules/timepicker/time-panel.cjs +1 -1
- package/dist/cjs/browser/modules/timepicker/time-panel.cjs.map +1 -1
- package/dist/cjs/browser/modules/timepicker/timepicker.cjs +1 -1
- package/dist/cjs/browser/modules/timepicker/timepicker.cjs.map +1 -1
- package/dist/cjs/browser/modules/timerangepicker/timerangepicker.cjs +1 -1
- package/dist/cjs/browser/modules/timerangepicker/timerangepicker.cjs.map +1 -1
- package/dist/cjs/browser/modules/tooltip/tooltip.cjs +1 -1
- package/dist/cjs/browser/modules/tooltip/tooltip.cjs.map +1 -1
- package/dist/cjs/browser/modules/tour/tour.cjs +1 -1
- package/dist/cjs/browser/modules/tour/tour.cjs.map +1 -1
- package/dist/cjs/browser/modules/transfer/transfer.cjs +1 -1
- package/dist/cjs/browser/modules/transfer/transfer.cjs.map +1 -1
- package/dist/cjs/browser/modules/tree/drag.cjs +1 -1
- package/dist/cjs/browser/modules/tree/drag.cjs.map +1 -1
- package/dist/cjs/browser/modules/tree/tree.cjs +1 -1
- package/dist/cjs/browser/modules/tree/tree.cjs.map +1 -1
- package/dist/cjs/browser/modules/treeselect/treeselect.cjs +1 -1
- package/dist/cjs/browser/modules/treeselect/treeselect.cjs.map +1 -1
- package/dist/cjs/browser/modules/typography/typography.cjs +1 -1
- package/dist/cjs/browser/modules/typography/typography.cjs.map +1 -1
- package/dist/cjs/browser/modules/upload/upload.cjs +1 -1
- package/dist/cjs/browser/modules/upload/upload.cjs.map +1 -1
- package/dist/cjs/browser/modules/virtuallist/virtuallist.cjs +1 -1
- package/dist/cjs/browser/modules/virtuallist/virtuallist.cjs.map +1 -1
- package/dist/cjs/styles/components/tabletanstack.css +1 -1
- package/dist/cjs/styles/index.css +5 -1
- package/dist/cjs/styles/index.css.map +1 -1
- package/dist/cjs/styles/tabletanstack.css +1 -1
- package/dist/cjs/tabs/use-moving-indicator.cjs +15 -1
- package/dist/cjs/tabs/use-moving-indicator.cjs.map +1 -1
- package/dist/cjs/tabs/use-moving-indicator.d.cts.map +1 -1
- package/dist/esm/browser/modules/alert/alert.js +1 -1
- package/dist/esm/browser/modules/anchor/anchor.js +1 -1
- package/dist/esm/browser/modules/autocomplete/autocomplete.js +1 -1
- package/dist/esm/browser/modules/avatar/avatar.js +1 -1
- package/dist/esm/browser/modules/avatar/group.js +1 -1
- package/dist/esm/browser/modules/backtop/backtop.js +1 -1
- package/dist/esm/browser/modules/badge/badge.js +1 -1
- package/dist/esm/browser/modules/breadcrumb/breadcrumb.js +1 -1
- package/dist/esm/browser/modules/button/button.js +1 -1
- package/dist/esm/browser/modules/button/group.js +1 -1
- package/dist/esm/browser/modules/calendar/calendar.js +1 -1
- package/dist/esm/browser/modules/card/card.js +1 -1
- package/dist/esm/browser/modules/card/title.js +1 -1
- package/dist/esm/browser/modules/carousel/carousel.js +1 -1
- package/dist/esm/browser/modules/cascader/cascader.js +1 -1
- package/dist/esm/browser/modules/checkbox/checkbox.js +1 -1
- package/dist/esm/browser/modules/checkbox/group.js +1 -1
- package/dist/esm/browser/modules/collapse/collapse.js +1 -1
- package/dist/esm/browser/modules/colorpicker/colorpicker.js +1 -1
- package/dist/esm/browser/modules/colorpicker/gradient.js +1 -1
- package/dist/esm/browser/modules/colorpicker/trigger.js +1 -1
- package/dist/esm/browser/modules/datepicker/datepicker.js +1 -1
- package/dist/esm/browser/modules/descriptions/descriptions.js +1 -1
- package/dist/esm/browser/modules/divider/divider.js +1 -1
- package/dist/esm/browser/modules/drawer/drawer.js +1 -1
- package/dist/esm/browser/modules/dropdown/dropdown.js +1 -1
- package/dist/esm/browser/modules/errorboundary/errorboundary.js +1 -1
- package/dist/esm/browser/modules/filelist/filelist.js +1 -1
- package/dist/esm/browser/modules/flex/flex.js +1 -1
- package/dist/esm/browser/modules/floatbutton/floatbutton.js +1 -1
- package/dist/esm/browser/modules/form/form.js +1 -1
- package/dist/esm/browser/modules/form/list.js +1 -1
- package/dist/esm/browser/modules/grid/grid.js +1 -1
- package/dist/esm/browser/modules/image/image.js +1 -1
- package/dist/esm/browser/modules/image/preview-renderer.js +1 -1
- package/dist/esm/browser/modules/image/viewer.js +1 -1
- package/dist/esm/browser/modules/infinitescroll/infinitescroll.js +1 -1
- package/dist/esm/browser/modules/input/group.js +1 -1
- package/dist/esm/browser/modules/input/input.js +1 -1
- package/dist/esm/browser/modules/inputmask/inputmask.js +1 -1
- package/dist/esm/browser/modules/inputnumber/inputnumber.js +1 -1
- package/dist/esm/browser/modules/inputnumber/string.js +1 -1
- package/dist/esm/browser/modules/inputotp/inputotp.js +1 -1
- package/dist/esm/browser/modules/layout/layout.js +1 -1
- package/dist/esm/browser/modules/loading/loading.js +1 -1
- package/dist/esm/browser/modules/loadingbar/loadingbar.js +1 -1
- package/dist/esm/browser/modules/masonry/masonry.js +1 -1
- package/dist/esm/browser/modules/mentions/mentions.js +1 -1
- package/dist/esm/browser/modules/menu/menu.js +1 -1
- package/dist/esm/browser/modules/message/item.js +1 -1
- package/dist/esm/browser/modules/message/message.js +1 -1
- package/dist/esm/browser/modules/message/provider.js +1 -1
- package/dist/esm/browser/modules/modal/base.js +1 -1
- package/dist/esm/browser/modules/modal/modal.js +1 -1
- package/dist/esm/browser/modules/notification/notification.js +1 -1
- package/dist/esm/browser/modules/pagination/pagination.js +1 -1
- package/dist/esm/browser/modules/popconfirm/popconfirm.js +1 -1
- package/dist/esm/browser/modules/popover/popover.js +1 -1
- package/dist/esm/browser/modules/progress/progress.js +1 -1
- package/dist/esm/browser/modules/qrcode/qrcode.js +1 -1
- package/dist/esm/browser/modules/radio/radio.js +1 -1
- package/dist/esm/browser/modules/rate/rate.js +1 -1
- package/dist/esm/browser/modules/result/result.js +1 -1
- package/dist/esm/browser/modules/scrollarea/scrollarea.js +1 -1
- package/dist/esm/browser/modules/scrollbar/scrollbar.js +1 -1
- package/dist/esm/browser/modules/select/select.js +1 -1
- package/dist/esm/browser/modules/shared/calendar.js +1 -1
- package/dist/esm/browser/modules/skeleton/skeleton.js +1 -1
- package/dist/esm/browser/modules/slider/slider.js +1 -1
- package/dist/esm/browser/modules/space/space.js +1 -1
- package/dist/esm/browser/modules/splitter/splitter.js +1 -1
- package/dist/esm/browser/modules/statistic/statistic.js +1 -1
- package/dist/esm/browser/modules/steps/steps.js +1 -1
- package/dist/esm/browser/modules/switch/switch.js +1 -1
- package/dist/esm/browser/modules/table/table.js +1 -1
- package/dist/esm/browser/modules/tabletanstack/tabletanstack.js +1 -1
- package/dist/esm/browser/modules/tabs/tabs.js +1 -1
- package/dist/esm/browser/modules/tabs/use-moving-indicator.js +15 -1
- package/dist/esm/browser/modules/tabs/use-moving-indicator.js.map +1 -1
- package/dist/esm/browser/modules/tag/group.js +1 -1
- package/dist/esm/browser/modules/tag/tag.js +1 -1
- package/dist/esm/browser/modules/textarea/textarea.js +1 -1
- package/dist/esm/browser/modules/timeline/timeline.js +1 -1
- package/dist/esm/browser/modules/timepicker/time-panel.js +1 -1
- package/dist/esm/browser/modules/timepicker/timepicker.js +1 -1
- package/dist/esm/browser/modules/timerangepicker/timerangepicker.js +1 -1
- package/dist/esm/browser/modules/tooltip/tooltip.js +1 -1
- package/dist/esm/browser/modules/tour/tour.js +1 -1
- package/dist/esm/browser/modules/transfer/transfer.js +1 -1
- package/dist/esm/browser/modules/tree/drag.js +1 -1
- package/dist/esm/browser/modules/tree/tree.js +1 -1
- package/dist/esm/browser/modules/treeselect/treeselect.js +1 -1
- package/dist/esm/browser/modules/typography/typography.js +1 -1
- package/dist/esm/browser/modules/upload/upload.js +1 -1
- package/dist/esm/browser/modules/virtuallist/virtuallist.js +1 -1
- package/dist/esm/styles/components/tabletanstack.css +1 -1
- package/dist/esm/styles/index.css +5 -1
- package/dist/esm/styles/index.css.map +1 -1
- package/dist/esm/styles/tabletanstack.css +1 -1
- package/dist/esm/tabs/use-moving-indicator.d.ts.map +1 -1
- package/dist/esm/tabs/use-moving-indicator.js +15 -1
- package/dist/esm/tabs/use-moving-indicator.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/image.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { ChevronLeft, ChevronRight, Download, FlipHorizontal2, FlipVertical2, ImageOff, Minus, Plus, RefreshCw, RotateCcw, RotateCw, X } from "lucide-react";
|
|
6
5
|
import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -11,6 +10,7 @@ import { ScopedPortal } from "../shared/scoped-portal.js";
|
|
|
11
10
|
import { useFormattedText } from "../shared/use-formatted-text.js";
|
|
12
11
|
import { useText } from "../shared/use-text.js";
|
|
13
12
|
import { fitRatio, initialTransform, transformStyle, wrapIndex, zoomAt } from "./geometry.js";
|
|
13
|
+
import '../../../styles/components/image.css';
|
|
14
14
|
function ImageViewer(props) {
|
|
15
15
|
const [identity, setIdentity] = useState({
|
|
16
16
|
session: props.session,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/infinitescroll.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useEffect, useRef, useState } from "react";
|
|
6
5
|
import { ButtonControl } from "../button/button.js";
|
|
@@ -8,6 +7,7 @@ import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
|
8
7
|
import { LoadingControl } from "../loading/loading.js";
|
|
9
8
|
import { classes } from "../shared/classes.js";
|
|
10
9
|
import { useText } from "../shared/use-text.js";
|
|
10
|
+
import '../../../styles/components/infinitescroll.css';
|
|
11
11
|
function InfiniteScroll(rawProps) {
|
|
12
12
|
const { dataLength, hasMore, onLoadMore, target, threshold = 200, loader, endMessage, onError, className, children, ...props } = useComponentProps('InfiniteScroll', rawProps);
|
|
13
13
|
const t = useText();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/input.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Search } from "lucide-react";
|
|
6
5
|
import { forwardRef, useRef } from "react";
|
|
@@ -11,6 +10,7 @@ import { classes } from "../shared/classes.js";
|
|
|
11
10
|
import { useFieldValue, useMergedRef } from "../shared/field.js";
|
|
12
11
|
import { useText } from "../shared/use-text.js";
|
|
13
12
|
import { InputControl } from "./input.js";
|
|
13
|
+
import '../../../styles/components/input.css';
|
|
14
14
|
const group_InputSearch = /*#__PURE__*/ forwardRef(function(rawProps, ref) {
|
|
15
15
|
const { onSearch, loading = false, enterButton, ...searchProps } = useComponentProps('InputSearch', rawProps);
|
|
16
16
|
const { value, defaultValue, onChange, onPressEnter, className, style, size = 'md', disabled: disabledProp, ...props } = useComponentProps('Input', searchProps);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/input.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Eye, EyeOff, X } from "lucide-react";
|
|
6
5
|
import { forwardRef, useRef, useState } from "react";
|
|
@@ -9,6 +8,7 @@ import { useLeafConfig } from "../config-provider/context.js";
|
|
|
9
8
|
import { useFormField } from "../form/form.js";
|
|
10
9
|
import { classes } from "../shared/classes.js";
|
|
11
10
|
import { useFieldValue, useMergedRef } from "../shared/field.js";
|
|
11
|
+
import '../../../styles/components/input.css';
|
|
12
12
|
const input_InputControl = /*#__PURE__*/ forwardRef(function({ size = 'md', status: statusProp, prefix, suffix, allowClear = false, onClear, showCount = false, value, defaultValue, onChange, type = 'text', visibilityToggle = true, visible: controlledVisible, defaultVisible = false, onVisibleChange, visibilityIcon, className, style, disabled: disabledProp, onKeyDown, onPressEnter, 'aria-invalid': ariaInvalid, ...props }, ref) {
|
|
13
13
|
const field = useFormField();
|
|
14
14
|
const { messages } = useLeafConfig();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/inputmask.css';
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
6
5
|
import { useIMask } from "react-imask";
|
|
@@ -8,6 +7,7 @@ import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
|
8
7
|
import { InputControl } from "../input/input.js";
|
|
9
8
|
import { classes } from "../shared/classes.js";
|
|
10
9
|
import { useFieldValue, useMergedRef } from "../shared/field.js";
|
|
10
|
+
import '../../../styles/components/inputmask.css';
|
|
11
11
|
const inputmask_InputMask = /*#__PURE__*/ forwardRef(function(rawProps, ref) {
|
|
12
12
|
const { mask, definitions, lazy = true, unmask = false, value, defaultValue = '', onChange, onComplete, onClear, className, ...props } = useComponentProps('InputMask', rawProps);
|
|
13
13
|
const native = useRef(null);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/inputnumber.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
6
5
|
import { forwardRef, useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -10,6 +9,7 @@ import { useFormField } from "../form/form.js";
|
|
|
10
9
|
import { classes } from "../shared/classes.js";
|
|
11
10
|
import { FormValue, useFieldValue, useMergedRef } from "../shared/field.js";
|
|
12
11
|
import { ExactInputNumber } from "./string.js";
|
|
12
|
+
import '../../../styles/components/inputnumber.css';
|
|
13
13
|
const parse = (text)=>{
|
|
14
14
|
if (!text.trim() || !/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i.test(text.trim())) return null;
|
|
15
15
|
const value = Number(text);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/inputnumber.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { ChevronDown, ChevronUp } from "lucide-react";
|
|
6
5
|
import { forwardRef, useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -9,6 +8,7 @@ import { useFormField } from "../form/form.js";
|
|
|
9
8
|
import { classes } from "../shared/classes.js";
|
|
10
9
|
import { FormValue, useFieldValue, useMergedRef } from "../shared/field.js";
|
|
11
10
|
import { addDecimal, compareDecimal, decimalParts, roundDecimal } from "./decimal.js";
|
|
11
|
+
import '../../../styles/components/inputnumber.css';
|
|
12
12
|
const string_ExactInputNumber = /*#__PURE__*/ forwardRef(function({ value, defaultValue = null, onChange, min, max, step = '1', precision, formatter, parser, grouping, locale: numberLocale, controls = true, keyboard = true, size = 'md', status, prefix, suffix, disabled: disabledProp, readOnly, onBlur, onKeyDown, onFocus, className, style, stringMode: _stringMode, name, ...props }, ref) {
|
|
13
13
|
const field = useFormField();
|
|
14
14
|
const config = useLeafConfig();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/inputotp.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRef, useEffect, useRef, useState } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
@@ -8,6 +7,7 @@ import { useFormField } from "../form/form.js";
|
|
|
8
7
|
import { classes } from "../shared/classes.js";
|
|
9
8
|
import { useFieldValue, useMergedRef } from "../shared/field.js";
|
|
10
9
|
import { useText } from "../shared/use-text.js";
|
|
10
|
+
import '../../../styles/components/inputotp.css';
|
|
11
11
|
const inputotp_InputOTP = /*#__PURE__*/ forwardRef(function(rawProps, ref) {
|
|
12
12
|
const { length = 6, value, defaultValue = '', onChange, onComplete, mode = 'numeric', mask = false, separator, size = 'md', status, className, style, disabled: disabledProp, onSelect, onFocus, onBlur, onClick, ...props } = useComponentProps('InputOTP', rawProps);
|
|
13
13
|
const t = useText();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/layout.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRef, useEffect, useState } from "react";
|
|
6
5
|
import { ButtonControl } from "../button/button.js";
|
|
@@ -9,6 +8,7 @@ import { ScrollbarControl } from "../scrollbar/scrollbar.js";
|
|
|
9
8
|
import { classes } from "../shared/classes.js";
|
|
10
9
|
import { useControllable } from "../shared/use-controllable.js";
|
|
11
10
|
import { useText } from "../shared/use-text.js";
|
|
11
|
+
import '../../../styles/components/layout.css';
|
|
12
12
|
const LayoutRoot = /*#__PURE__*/ forwardRef(function(rawProps, ref) {
|
|
13
13
|
const { direction = 'vertical', className, ...props } = useComponentProps('Layout', rawProps);
|
|
14
14
|
return /*#__PURE__*/ jsx("div", {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/loading.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { LoaderCircle } from "lucide-react";
|
|
6
5
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -9,6 +8,7 @@ import { useLeafConfig } from "../config-provider/context.js";
|
|
|
9
8
|
import { classes } from "../shared/classes.js";
|
|
10
9
|
import { inertProps } from "../shared/inert.js";
|
|
11
10
|
import { usePresence } from "../shared/presence.js";
|
|
11
|
+
import '../../../styles/components/loading.css';
|
|
12
12
|
function LoadingControl({ spinning = true, size = 'md', tip, delay = 0, children, className, ...props }) {
|
|
13
13
|
const { messages } = useLeafConfig();
|
|
14
14
|
const [ready, setReady] = useState(spinning && delay <= 0);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/loadingbar.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
6
5
|
import { ComponentDefaultsContext, mergeComponentProps, useComponentProps } from "../config-provider/component-defaults.js";
|
|
@@ -11,6 +10,7 @@ import { motionDuration, useMotionEnabled } from "../shared/motion.js";
|
|
|
11
10
|
import { ScopedPortal } from "../shared/scoped-portal.js";
|
|
12
11
|
import { useText } from "../shared/use-text.js";
|
|
13
12
|
import { leafThemeVariables } from "../theme.js";
|
|
13
|
+
import '../../../styles/components/loadingbar.css';
|
|
14
14
|
function LoadingBarControl({ active = false, progress, color, height = 3, position = 'top', className, style }) {
|
|
15
15
|
const t = useText();
|
|
16
16
|
const bar = useRef(null);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/masonry.css';
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { Children, forwardRef } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
7
6
|
import { classes } from "../shared/classes.js";
|
|
7
|
+
import '../../../styles/components/masonry.css';
|
|
8
8
|
const masonry_Masonry = /*#__PURE__*/ forwardRef(function(rawProps, ref) {
|
|
9
9
|
const { columns = {
|
|
10
10
|
xs: 1,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/mentions.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRef, useId, useRef, useState } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
@@ -10,6 +9,7 @@ import { classes } from "../shared/classes.js";
|
|
|
10
9
|
import { useFieldValue, useMergedRef } from "../shared/field.js";
|
|
11
10
|
import { FloatingPanel, useFloatingDismiss } from "../shared/floating.js";
|
|
12
11
|
import { TextareaControl } from "../textarea/textarea.js";
|
|
12
|
+
import '../../../styles/components/mentions.css';
|
|
13
13
|
const defaultPrefixes = [
|
|
14
14
|
'@'
|
|
15
15
|
];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/menu.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { ChevronDown } from "lucide-react";
|
|
6
5
|
import { forwardRef, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
@@ -11,6 +10,7 @@ import { classes } from "../shared/classes.js";
|
|
|
11
10
|
import { inertProps } from "../shared/inert.js";
|
|
12
11
|
import { useControllable } from "../shared/use-controllable.js";
|
|
13
12
|
import { useText } from "../shared/use-text.js";
|
|
13
|
+
import '../../../styles/components/menu.css';
|
|
14
14
|
const useBrowserLayoutEffect = "u" < typeof window ? useEffect : useLayoutEffect;
|
|
15
15
|
const menu_MenuGroupControl = /*#__PURE__*/ forwardRef(function({ title, children, className, ...props }, ref) {
|
|
16
16
|
const titleId = useId();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/message.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { X } from "lucide-react";
|
|
6
5
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -10,6 +9,7 @@ import { normalizeFeedbackType } from "../shared/feedback.js";
|
|
|
10
9
|
import { inertProps } from "../shared/inert.js";
|
|
11
10
|
import { usePresence } from "../shared/presence.js";
|
|
12
11
|
import { leafThemeVariables } from "../theme.js";
|
|
12
|
+
import '../../../styles/components/message.css';
|
|
13
13
|
function MessageItem({ entry, close, remove }) {
|
|
14
14
|
const inherited = useLeafConfig();
|
|
15
15
|
const config = entry.config ?? inherited;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/message.css';
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { useContext, useEffect, useId, useMemo, useRef } from "react";
|
|
6
5
|
import { ComponentDefaultsContext, useComponentProps } from "../config-provider/component-defaults.js";
|
|
@@ -8,6 +7,7 @@ import { useLeafConfig } from "../config-provider/context.js";
|
|
|
8
7
|
import { ScopedPortal } from "../shared/scoped-portal.js";
|
|
9
8
|
import { MessageItem } from "./item.js";
|
|
10
9
|
import { MessageContext } from "./store.js";
|
|
10
|
+
import '../../../styles/components/message.css';
|
|
11
11
|
function Message(rawProps) {
|
|
12
12
|
const { open, afterClose, onClose, ...options } = useComponentProps('Message', rawProps);
|
|
13
13
|
return /*#__PURE__*/ jsx(ScopedPortal, {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/message.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useContext, useState, useSyncExternalStore } from "react";
|
|
6
5
|
import { ComponentDefaultsContext } from "../config-provider/component-defaults.js";
|
|
@@ -8,6 +7,7 @@ import { useLeafConfig } from "../config-provider/context.js";
|
|
|
8
7
|
import { ScopedPortal } from "../shared/scoped-portal.js";
|
|
9
8
|
import { MessageItem } from "./item.js";
|
|
10
9
|
import { MessageContext, createMessageStore, emptyMessages } from "./store.js";
|
|
10
|
+
import '../../../styles/components/message.css';
|
|
11
11
|
function MessageProvider({ children }) {
|
|
12
12
|
const [store] = useState(createMessageStore);
|
|
13
13
|
return /*#__PURE__*/ jsxs(MessageContext.Provider, {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/modal.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { X } from "lucide-react";
|
|
6
5
|
import { useEffect, useId, useRef, useState } from "react";
|
|
@@ -13,6 +12,7 @@ import { inertProps } from "../shared/inert.js";
|
|
|
13
12
|
import { OverlayOwner } from "../shared/overlay-owner.js";
|
|
14
13
|
import { useNaturalHeightTransition, usePresence } from "../shared/presence.js";
|
|
15
14
|
import { ScopedPortal } from "../shared/scoped-portal.js";
|
|
15
|
+
import '../../../styles/components/modal.css';
|
|
16
16
|
function ModalSurface({ open, title, description, icon, divided = true, tabs, footer, confirmText, cancelText, confirmLoading = false, confirmButtonProps, cancelButtonProps, onConfirm, onCancel, width = 480, closable = true, maskClosable = true, keyboard = true, onClose, afterClose, forceRender = false, destroyOnClose = false, preserve, initialFocus, returnFocus, container: _container, renderTabsLayout: RenderTabsLayout, children, className, style, ...props }) {
|
|
17
17
|
const { messages, maskBlur } = useLeafConfig();
|
|
18
18
|
const [pending, setPending] = useState(false);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/modal.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useEffect, useLayoutEffect, useRef } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
@@ -8,6 +7,7 @@ import { ScrollbarControl } from "../scrollbar/scrollbar.js";
|
|
|
8
7
|
import { classes } from "../shared/classes.js";
|
|
9
8
|
import { useTabsParts } from "../tabs/tabs.js";
|
|
10
9
|
import { ModalBase } from "./base.js";
|
|
10
|
+
import '../../../styles/components/modal.css';
|
|
11
11
|
const useBrowserLayoutEffect = "u" < typeof window ? useEffect : useLayoutEffect;
|
|
12
12
|
function ModalTabsLayout({ open, tabs, title, titleId, hasHeading, closeButton, contentRef, snapHeight, ariaLabel, ariaLabelledBy, scrollbarLabel, scrollbarLabelledBy, error, children }) {
|
|
13
13
|
const tabExtra = hasHeading || null == closeButton ? tabs.extra : /*#__PURE__*/ jsxs("div", {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/notification.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { X } from "lucide-react";
|
|
6
5
|
import { createContext, useContext, useEffect, useId, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
@@ -12,6 +11,7 @@ import { inertProps } from "../shared/inert.js";
|
|
|
12
11
|
import { useContentTransition, usePresence } from "../shared/presence.js";
|
|
13
12
|
import { ScopedPortal } from "../shared/scoped-portal.js";
|
|
14
13
|
import { leafThemeVariables } from "../theme.js";
|
|
14
|
+
import '../../../styles/components/notification.css';
|
|
15
15
|
const empty = [];
|
|
16
16
|
function createStore(maxCount) {
|
|
17
17
|
let entries = empty;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/pagination.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
|
|
6
5
|
import { useId, useRef, useState } from "react";
|
|
@@ -12,6 +11,7 @@ import { SelectControl } from "../select/select.js";
|
|
|
12
11
|
import { classes } from "../shared/classes.js";
|
|
13
12
|
import { useFormattedText } from "../shared/use-formatted-text.js";
|
|
14
13
|
import { useMovingIndicator } from "../tabs/use-moving-indicator.js";
|
|
14
|
+
import '../../../styles/components/pagination.css';
|
|
15
15
|
const positiveInteger = (value)=>Number.isFinite(value) ? Math.max(1, Math.floor(value)) : 1;
|
|
16
16
|
function PaginationControl({ total, current, defaultCurrent = 1, pageSize, defaultPageSize = 10, onChange, showSizeChanger = false, pageSizeOptions = [
|
|
17
17
|
10,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/popconfirm.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useEffect, useRef, useState } from "react";
|
|
6
5
|
import { FeedbackIcon } from "../alert/alert.js";
|
|
@@ -11,6 +10,7 @@ import { PopoverControl } from "../popover/popover.js";
|
|
|
11
10
|
import { normalizeFeedbackType } from "../shared/feedback.js";
|
|
12
11
|
import { useControllable } from "../shared/use-controllable.js";
|
|
13
12
|
import { useText } from "../shared/use-text.js";
|
|
13
|
+
import '../../../styles/components/popconfirm.css';
|
|
14
14
|
function Popconfirm(rawProps) {
|
|
15
15
|
const { title, description, type = 'warning', icon, confirmText, cancelText, confirmButtonProps, cancelButtonProps, showCancel = true, onConfirm, onCancel, onError, open: controlled, defaultOpen = false, onOpenChange, children, ...props } = useComponentProps('Popconfirm', rawProps);
|
|
16
16
|
const normalizedType = 'default' === type ? type : normalizeFeedbackType(type);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/popover.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { cloneElement, useEffect, useId, useRef, useState, version } from "react";
|
|
6
5
|
import { tabbable } from "tabbable";
|
|
@@ -9,6 +8,7 @@ import { classes } from "../shared/classes.js";
|
|
|
9
8
|
import { useMergedRef } from "../shared/field.js";
|
|
10
9
|
import { FloatingPanel, useFloatingDismiss } from "../shared/floating.js";
|
|
11
10
|
import { useNaturalHeightTransition } from "../shared/presence.js";
|
|
11
|
+
import '../../../styles/components/popover.css';
|
|
12
12
|
function PopoverControl({ children, title, content, trigger: mode = 'click', placement = 'top', open: controlled, defaultOpen = false, onOpenChange, disabled = false, autoFocus = true, enterDelay = 100, leaveDelay = 100, width = 'max-content', maxWidth = 320, className, popupPlacement, popupClassName, popupStyle, popupRender, getPopupContainer, style, 'aria-label': label }) {
|
|
13
13
|
const [internal, setInternal] = useState(defaultOpen);
|
|
14
14
|
const inactive = disabled || children.props.disabled;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/progress.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Check, X } from "lucide-react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
7
6
|
import { useLeafConfig } from "../config-provider/context.js";
|
|
8
7
|
import { classes } from "../shared/classes.js";
|
|
8
|
+
import '../../../styles/components/progress.css';
|
|
9
9
|
function Progress(rawProps) {
|
|
10
10
|
const { percent = 0, type = 'line', status = 'normal', showInfo = true, format, strokeWidth, color, size = 100, indeterminate = false, active = false, trailColor, segments, steps, dashboard = false, successPercent, className, style, 'aria-label': label, ...props } = useComponentProps('Progress', rawProps);
|
|
11
11
|
const { messages } = useLeafConfig();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/qrcode.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Download, RefreshCw } from "lucide-react";
|
|
6
5
|
import { QRCodeSVG } from "qrcode.react";
|
|
@@ -10,6 +9,7 @@ import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
|
10
9
|
import { LoadingControl } from "../loading/loading.js";
|
|
11
10
|
import { classes } from "../shared/classes.js";
|
|
12
11
|
import { useText } from "../shared/use-text.js";
|
|
12
|
+
import '../../../styles/components/qrcode.css';
|
|
13
13
|
function QRCode(rawProps) {
|
|
14
14
|
const { value, size = 160, color = 'var(--leaf-color-text)', backgroundColor = 'var(--leaf-color-surface)', level = 'M', logo, logoSize = 32, status = 'active', onRefresh, downloadable = false, fileName = 'qrcode.svg', className, ...props } = useComponentProps('QRCode', rawProps);
|
|
15
15
|
const t = useText();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/radio.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRef, useId } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
7
6
|
import { useFormField } from "../form/form.js";
|
|
8
7
|
import { classes } from "../shared/classes.js";
|
|
8
|
+
import '../../../styles/components/radio.css';
|
|
9
9
|
const radio_RadioControl = /*#__PURE__*/ forwardRef(function({ size = 'md', variant = 'plain', description, icon, extra, className, style, disabled: disabledProp, children, ...props }, ref) {
|
|
10
10
|
const field = useFormField();
|
|
11
11
|
const id = useId();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/rate.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Star } from "lucide-react";
|
|
6
5
|
import { useRef, useState } from "react";
|
|
@@ -9,6 +8,7 @@ import { useLeafConfig } from "../config-provider/context.js";
|
|
|
9
8
|
import { useFormField } from "../form/form.js";
|
|
10
9
|
import { classes } from "../shared/classes.js";
|
|
11
10
|
import { FormValue, useFieldValue } from "../shared/field.js";
|
|
11
|
+
import '../../../styles/components/rate.css';
|
|
12
12
|
function Rate(rawProps) {
|
|
13
13
|
const { value, defaultValue = 0, onChange, count = 5, allowHalf = false, allowClear = true, disabled: disabledProp, readOnly = false, size = 'md', color, colorByValue = false, colors = [
|
|
14
14
|
'#ef5350',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/result.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Check, CircleAlert, Inbox, Info, TriangleAlert } from "lucide-react";
|
|
6
5
|
import { useRef } from "react";
|
|
@@ -8,6 +7,7 @@ import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
|
8
7
|
import { useLeafConfig } from "../config-provider/context.js";
|
|
9
8
|
import { classes } from "../shared/classes.js";
|
|
10
9
|
import { useContentTransition } from "../shared/presence.js";
|
|
10
|
+
import '../../../styles/components/result.css';
|
|
11
11
|
const icons = {
|
|
12
12
|
empty: Inbox,
|
|
13
13
|
success: Check,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/scrollarea.css';
|
|
4
3
|
import { jsx } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRef } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
7
6
|
import { ScrollbarControl } from "../scrollbar/scrollbar.js";
|
|
8
7
|
import { classes } from "../shared/classes.js";
|
|
8
|
+
import '../../../styles/components/scrollarea.css';
|
|
9
9
|
const scrollarea_ScrollArea = /*#__PURE__*/ forwardRef(function(rawProps, ref) {
|
|
10
10
|
const { orientation = 'vertical', className, ...props } = useComponentProps('ScrollArea', rawProps);
|
|
11
11
|
return /*#__PURE__*/ jsx(ScrollbarControl, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/scrollbar.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { forwardRef, useCallback, useEffect, useId, useRef, useState } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
7
6
|
import { classes } from "../shared/classes.js";
|
|
8
7
|
import { useMergedRef } from "../shared/field.js";
|
|
9
8
|
import { useText } from "../shared/use-text.js";
|
|
9
|
+
import '../../../styles/components/scrollbar.css';
|
|
10
10
|
const trackMetrics = {
|
|
11
11
|
sm: {
|
|
12
12
|
inset: 2,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/select.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
6
5
|
import { Check, ChevronDown, LoaderCircle, Plus } from "lucide-react";
|
|
@@ -16,6 +15,7 @@ import { FloatingPanel, useActiveOption, useFloatingDismiss, usePopupState } fro
|
|
|
16
15
|
import { FloatingFeedback } from "../shared/floating-feedback.js";
|
|
17
16
|
import { SelectionContent } from "../shared/selection-content.js";
|
|
18
17
|
import { useFormattedText } from "../shared/use-formatted-text.js";
|
|
18
|
+
import '../../../styles/components/select.css';
|
|
19
19
|
const empty = [];
|
|
20
20
|
const searchText = (option)=>option.searchLabel ?? ('string' == typeof option.label || 'number' == typeof option.label ? String(option.label) : option.value);
|
|
21
21
|
const select_SelectControl = /*#__PURE__*/ forwardRef(function(props, forwardedRef) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/shared-calendar.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
|
6
5
|
import { useEffect, useRef, useState } from "react";
|
|
@@ -8,6 +7,7 @@ import { useLeafConfig } from "../config-provider/context.js";
|
|
|
8
7
|
import { classes } from "./classes.js";
|
|
9
8
|
import { calendarDays, dateKey, formatMonthLabel, sameDate, shiftMonth } from "./date.js";
|
|
10
9
|
import { useContentTransition } from "./presence.js";
|
|
10
|
+
import '../../../styles/components/shared-calendar.css';
|
|
11
11
|
function startOfPeriod(date, mode, weekStartsOn = 1) {
|
|
12
12
|
const next = new Date(date);
|
|
13
13
|
next.setMilliseconds(0);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/skeleton.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useEffect, useLayoutEffect, useRef } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
7
6
|
import { useLeafConfig } from "../config-provider/context.js";
|
|
8
7
|
import { classes } from "../shared/classes.js";
|
|
9
8
|
import { animateMotion, useMotionEnabled } from "../shared/motion.js";
|
|
9
|
+
import '../../../styles/components/skeleton.css';
|
|
10
10
|
const useBrowserLayoutEffect = "u" < typeof window ? useEffect : useLayoutEffect;
|
|
11
11
|
function SkeletonControl({ loading = true, active = true, avatar = false, title = true, titleWidth = '38%', rows = 3, rowWidths, round = false, children, className, ...props }) {
|
|
12
12
|
const { messages } = useLeafConfig();
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/slider.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { createElement, forwardRef, useId, useRef, useState } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
@@ -9,6 +8,7 @@ import { useFormField } from "../form/form.js";
|
|
|
9
8
|
import { classes } from "../shared/classes.js";
|
|
10
9
|
import { useFieldValue, useMergedRef } from "../shared/field.js";
|
|
11
10
|
import { TooltipControl } from "../tooltip/tooltip.js";
|
|
11
|
+
import '../../../styles/components/slider.css';
|
|
12
12
|
const slider_SliderControl = /*#__PURE__*/ forwardRef(function(props, forwardedRef) {
|
|
13
13
|
const { range = false, value, defaultValue, onChange: _onChange, min = 0, max = 100, step = 1, marks = [], vertical = false, showValue = false, onChangeComplete, tooltip = false, disabled: disabledProp, readOnly, className, style, name, id: idProp, onKeyDown, onKeyUp, onPointerUp, onBlur, 'aria-label': label, ...inputProps } = props;
|
|
14
14
|
const { messages, direction } = useLeafConfig();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/space.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Children, Fragment, forwardRef } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
7
6
|
import { classes } from "../shared/classes.js";
|
|
7
|
+
import '../../../styles/components/space.css';
|
|
8
8
|
const space_Space = /*#__PURE__*/ forwardRef(function(rawProps, ref) {
|
|
9
9
|
const { direction = 'horizontal', size = 'md', align = 'center', wrap = false, split, className, children, style, ...props } = useComponentProps('Space', rawProps);
|
|
10
10
|
const sizes = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/splitter.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useEffect, useRef } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
@@ -11,6 +10,7 @@ import { inertProps } from "../shared/inert.js";
|
|
|
11
10
|
import { useControllable } from "../shared/use-controllable.js";
|
|
12
11
|
import { useFormattedText } from "../shared/use-formatted-text.js";
|
|
13
12
|
import { useText } from "../shared/use-text.js";
|
|
13
|
+
import '../../../styles/components/splitter.css';
|
|
14
14
|
function Splitter(rawProps) {
|
|
15
15
|
const { panels, sizes, defaultSizes, onResize, onResizeEnd, direction = 'horizontal', className, style, ...props } = useComponentProps('Splitter', rawProps);
|
|
16
16
|
const t = useText();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/statistic.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
6
5
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
7
6
|
import { useLeafConfig } from "../config-provider/context.js";
|
|
8
7
|
import { classes } from "../shared/classes.js";
|
|
9
8
|
import { motionDuration, useMotionEnabled } from "../shared/motion.js";
|
|
9
|
+
import '../../../styles/components/statistic.css';
|
|
10
10
|
const useBrowserLayoutEffect = "u" < typeof window ? useEffect : useLayoutEffect;
|
|
11
11
|
function StatisticControl({ title, value, precision, grouping = true, prefix, suffix, formatter, loading, animation = true, initialValue = 0, duration = 1000, className, ...props }) {
|
|
12
12
|
const { locale, messages } = useLeafConfig();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/steps.css';
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { Check, LoaderCircle, X } from "lucide-react";
|
|
6
5
|
import { useEffect, useLayoutEffect, useRef } from "react";
|
|
7
6
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
8
7
|
import { classes } from "../shared/classes.js";
|
|
9
8
|
import { animateMotion, useMotionEnabled } from "../shared/motion.js";
|
|
9
|
+
import '../../../styles/components/steps.css';
|
|
10
10
|
const useBrowserLayoutEffect = "u" < typeof window ? useEffect : useLayoutEffect;
|
|
11
11
|
function Steps(rawProps) {
|
|
12
12
|
const { items, current = 0, status = 'process', direction = 'horizontal', size = 'md', loading = false, onChange, progressDot, percent, className, ...props } = useComponentProps('Steps', rawProps);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import '../../../styles/foundation.css';
|
|
3
|
-
import '../../../styles/components/switch.css';
|
|
4
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
4
|
import { LoaderCircle } from "lucide-react";
|
|
6
5
|
import { forwardRef } from "react";
|
|
7
6
|
import { useComponentProps } from "../config-provider/component-defaults.js";
|
|
8
7
|
import { useFormField } from "../form/form.js";
|
|
9
8
|
import { classes } from "../shared/classes.js";
|
|
9
|
+
import '../../../styles/components/switch.css';
|
|
10
10
|
const switch_Switch = /*#__PURE__*/ forwardRef(function(rawProps, ref) {
|
|
11
11
|
const { size = 'md', loading = false, disabled: disabledProp, children, className, style, 'aria-busy': ariaBusy, ...props } = useComponentProps('Switch', rawProps);
|
|
12
12
|
const field = useFormField();
|