mtxuilib 0.0.308 → 0.0.310
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/App.cjs +17 -1
- package/dist/MtmButton.cjs +2 -1
- package/dist/NovelEditorLoader.cjs +8 -4
- package/dist/browser/index.min.js +2 -1
- package/dist/common/FullCenter.cjs +2 -1
- package/dist/common/MtImage.cjs +2 -1
- package/dist/common/mtlink.cjs +2 -1
- package/dist/common/table/cells/ExpenderCell.cjs +9 -4
- package/dist/common/table/cells/SelectCell.cjs +8 -4
- package/dist/common/table/cells/Text.cjs +2 -1
- package/dist/common/table/cells/ViewLink.cjs +8 -4
- package/dist/common/table/cells/container/cellWrapper.cjs +2 -1
- package/dist/common/table/cells/number.cjs +2 -1
- package/dist/common/table/cells/string.cjs +2 -1
- package/dist/common/table/data-table-pagination.cjs +89 -51
- package/dist/common/table/data-table-view-options.cjs +32 -22
- package/dist/common/tailwind-indicator.cjs +9 -1
- package/dist/entry-client.cjs +2 -1
- package/dist/entry-server.cjs +2 -1
- package/dist/esm/App.js +17 -1
- package/dist/esm/MtmButton.js +2 -1
- package/dist/esm/NovelEditorLoader.js +8 -4
- package/dist/esm/common/FullCenter.js +2 -1
- package/dist/esm/common/MtImage.js +2 -1
- package/dist/esm/common/mtlink.js +2 -1
- package/dist/esm/common/table/cells/ExpenderCell.js +9 -4
- package/dist/esm/common/table/cells/SelectCell.js +8 -4
- package/dist/esm/common/table/cells/Text.js +2 -1
- package/dist/esm/common/table/cells/ViewLink.js +8 -4
- package/dist/esm/common/table/cells/container/cellWrapper.js +2 -1
- package/dist/esm/common/table/cells/number.js +2 -1
- package/dist/esm/common/table/cells/string.js +2 -1
- package/dist/esm/common/table/data-table-pagination.js +89 -51
- package/dist/esm/common/table/data-table-view-options.js +32 -22
- package/dist/esm/common/tailwind-indicator.js +9 -1
- package/dist/esm/entry-client.js +2 -1
- package/dist/esm/entry-server.js +2 -1
- package/dist/esm/icons/icons.js +41 -31
- package/dist/esm/index.js +2 -1
- package/dist/esm/lib/connectquery/use-transport.js +2 -1
- package/dist/esm/lib/render copy.js +2 -1
- package/dist/esm/lib/render.js +2 -1
- package/dist/esm/store/MtConnectProvider.js +2 -1
- package/dist/esm/store/ReactQueryProvider.js +18 -10
- package/dist/esm/store/StorybookDecorator.js +5 -4
- package/dist/esm/store/appContext.js +28 -18
- package/dist/esm/store/hydrateCore.js +6 -5
- package/dist/esm/store/logger.context.js +3 -2
- package/dist/esm/store/pageMeta.js +5 -1
- package/dist/esm/tailwind.d.cts +88 -1
- package/dist/esm/ui/accordion.js +19 -11
- package/dist/esm/ui/alert copy.js +4 -3
- package/dist/esm/ui/alert-dialog.js +21 -17
- package/dist/esm/ui/alert.js +4 -3
- package/dist/esm/ui/avatar.js +4 -3
- package/dist/esm/ui/badge.js +2 -2
- package/dist/esm/ui/button.js +2 -1
- package/dist/esm/ui/calendar.js +4 -4
- package/dist/esm/ui/card.js +7 -6
- package/dist/esm/ui/checkbox.js +15 -10
- package/dist/esm/ui/command.js +25 -18
- package/dist/esm/ui/context-menu.js +35 -22
- package/dist/esm/ui/dialog.js +30 -17
- package/dist/esm/ui/drawer.js +28 -18
- package/dist/esm/ui/dropdown-menu.js +35 -22
- package/dist/esm/ui/form copy.js +14 -9
- package/dist/esm/ui/form.js +14 -9
- package/dist/esm/ui/hover-card.js +2 -1
- package/dist/esm/ui/input.js +2 -1
- package/dist/esm/ui/label.js +2 -1
- package/dist/esm/ui/menubar.js +37 -24
- package/dist/esm/ui/navigation-menu.js +36 -25
- package/dist/esm/ui/novel/novel/src/components/editor-bubble-item.js +2 -1
- package/dist/esm/ui/novel/novel/src/components/editor-bubble.js +5 -1
- package/dist/esm/ui/novel/novel/src/components/editor-command-item.js +5 -4
- package/dist/esm/ui/novel/novel/src/components/editor-command.js +21 -14
- package/dist/esm/ui/novel/novel/src/components/editor.js +7 -6
- package/dist/esm/ui/novel/novel/src/extensions/image-resizer.js +2 -1
- package/dist/esm/ui/novel/tailwind/advanced-editor.js +58 -35
- package/dist/esm/ui/novel/tailwind/generative/ai-completion-command.js +45 -30
- package/dist/esm/ui/novel/tailwind/generative/ai-selector-commands.js +37 -28
- package/dist/esm/ui/novel/tailwind/generative/ai-selector.js +58 -43
- package/dist/esm/ui/novel/tailwind/generative/generative-menu-switch.js +23 -15
- package/dist/esm/ui/novel/tailwind/selectors/color-selector.js +78 -55
- package/dist/esm/ui/novel/tailwind/selectors/link-selector.js +58 -50
- package/dist/esm/ui/novel/tailwind/selectors/node-selector.js +31 -19
- package/dist/esm/ui/novel/tailwind/selectors/text-buttons.js +13 -12
- package/dist/esm/ui/novel/tailwind/slash-command.js +12 -11
- package/dist/esm/ui/novel/tailwind/ui/button.js +2 -1
- package/dist/esm/ui/novel/tailwind/ui/command.js +25 -18
- package/dist/esm/ui/novel/tailwind/ui/dialog.js +30 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/crazy-spinner.js +6 -1
- package/dist/esm/ui/novel/tailwind/ui/icons/font-default.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/font-mono.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/font-serif.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/github.js +5 -4
- package/dist/esm/ui/novel/tailwind/ui/icons/loading-circle.js +20 -17
- package/dist/esm/ui/novel/tailwind/ui/icons/magic.js +27 -24
- package/dist/esm/ui/novel/tailwind/ui/menu.js +28 -16
- package/dist/esm/ui/novel/tailwind/ui/popover.js +3 -2
- package/dist/esm/ui/novel/tailwind/ui/scroll-area.js +18 -10
- package/dist/esm/ui/novel/tailwind/ui/separator.js +2 -1
- package/dist/esm/ui/pagination.js +32 -19
- package/dist/esm/ui/popover.js +3 -2
- package/dist/esm/ui/progress.js +15 -10
- package/dist/esm/ui/radio-group.js +7 -5
- package/dist/esm/ui/resizable.js +10 -5
- package/dist/esm/ui/scroll-area.js +26 -18
- package/dist/esm/ui/select.js +37 -26
- package/dist/esm/ui/separator.js +2 -1
- package/dist/esm/ui/sheet.js +24 -14
- package/dist/esm/ui/skeleton.js +2 -1
- package/dist/esm/ui/slider.js +12 -5
- package/dist/esm/ui/sonner.js +2 -1
- package/dist/esm/ui/switch.js +12 -11
- package/dist/esm/ui/table.js +10 -9
- package/dist/esm/ui/tabs.js +4 -3
- package/dist/esm/ui/textarea.js +2 -1
- package/dist/esm/ui/toast.js +14 -9
- package/dist/esm/ui/toaster.js +18 -4
- package/dist/esm/ui/toggle.js +2 -1
- package/dist/esm/ui/tooltip.js +2 -1
- package/dist/esm/ui/ui-mt/NavTag.js +5 -4
- package/dist/esm/ui/ui-mt/SimpleModel.js +12 -11
- package/dist/esm/ui/ui-mt/inputField/InputField.js +27 -20
- package/dist/esm/ui/ui-mt/inputField/SingleUploadForm.js +67 -56
- package/dist/esm/ui/ui-mt/inputField/TextArea.js +20 -16
- package/dist/esm/ui/ui-mt/inputField/TextFileInput.js +18 -15
- package/dist/esm/ui/ui-mt/inputField/select/InputSelect.js +35 -27
- package/dist/esm/ui/ui-mt/inputs/SearchInput.js +2 -1
- package/dist/esm/ui/ui-mt/inputs/searchBar.js +12 -8
- package/dist/esm/ui/ui-mt/skeleton/skeleton-card.js +9 -4
- package/dist/esm/ui/ui-mt/skeleton/skeleton2.js +5 -1
- package/dist/esm/ui/ui-mt/skeleton/skeletons.js +9 -1
- package/dist/esm/ui/ui-vamp/alert.js +30 -24
- package/dist/esm/ui/ui-vamp/avatar.js +12 -7
- package/dist/esm/ui/ui-vamp/button.js +2 -1
- package/dist/esm/ui/ui-vamp/card.js +15 -8
- package/dist/esm/ui/ui-vamp/checkbox.js +15 -8
- package/dist/esm/ui/ui-vamp/chip.js +2 -1
- package/dist/esm/ui/ui-vamp/dropdown.js +7 -6
- package/dist/esm/ui/ui-vamp/external-link.js +9 -4
- package/dist/esm/ui/ui-vamp/headline.js +5 -1
- package/dist/esm/ui/ui-vamp/input.js +3 -2
- package/dist/esm/ui/ui-vamp/keyvalue.js +5 -1
- package/dist/esm/ui/ui-vamp/label.js +2 -1
- package/dist/esm/ui/ui-vamp/mobile-nav-button.js +6 -5
- package/dist/esm/ui/ui-vamp/modal.js +17 -13
- package/dist/esm/ui/ui-vamp/pagination.js +57 -35
- package/dist/esm/ui/ui-vamp/scroll-area.js +5 -4
- package/dist/esm/ui/ui-vamp/skeleton.js +2 -2
- package/dist/esm/ui/ui-vamp/stripe-not-connected-modal.js +13 -2
- package/dist/esm/ui/ui-vamp/textarea.js +12 -8
- package/dist/esm/ui/ui-vamp/toggle-group.js +3 -2
- package/dist/icons/icons.cjs +41 -31
- package/dist/index.cjs +2 -1
- package/dist/lib/connectquery/use-transport.cjs +2 -1
- package/dist/lib/render copy.cjs +2 -1
- package/dist/lib/render.cjs +2 -1
- package/dist/store/MtConnectProvider.cjs +2 -1
- package/dist/store/ReactQueryProvider.cjs +18 -10
- package/dist/store/StorybookDecorator.cjs +5 -4
- package/dist/store/appContext.cjs +28 -28
- package/dist/store/hydrateCore.cjs +6 -5
- package/dist/store/logger.context.cjs +3 -2
- package/dist/store/pageMeta.cjs +5 -1
- package/dist/tailwind.cjs +72 -2
- package/dist/tsconfig.type.tsbuildinfo +1 -1
- package/dist/ui/accordion.cjs +19 -11
- package/dist/ui/alert copy.cjs +4 -3
- package/dist/ui/alert-dialog.cjs +21 -17
- package/dist/ui/alert.cjs +4 -3
- package/dist/ui/avatar.cjs +4 -3
- package/dist/ui/badge.cjs +2 -12
- package/dist/ui/button.cjs +2 -1
- package/dist/ui/calendar.cjs +4 -14
- package/dist/ui/card.cjs +7 -6
- package/dist/ui/checkbox.cjs +15 -10
- package/dist/ui/command.cjs +25 -18
- package/dist/ui/context-menu.cjs +35 -22
- package/dist/ui/dialog.cjs +30 -17
- package/dist/ui/drawer.cjs +28 -18
- package/dist/ui/dropdown-menu.cjs +35 -22
- package/dist/ui/form copy.cjs +14 -9
- package/dist/ui/form.cjs +14 -9
- package/dist/ui/hover-card.cjs +2 -1
- package/dist/ui/input.cjs +2 -1
- package/dist/ui/label.cjs +2 -1
- package/dist/ui/menubar.cjs +37 -24
- package/dist/ui/navigation-menu.cjs +36 -25
- package/dist/ui/novel/novel/src/components/editor-bubble-item.cjs +2 -1
- package/dist/ui/novel/novel/src/components/editor-bubble.cjs +5 -1
- package/dist/ui/novel/novel/src/components/editor-command-item.cjs +5 -4
- package/dist/ui/novel/novel/src/components/editor-command.cjs +21 -14
- package/dist/ui/novel/novel/src/components/editor.cjs +7 -6
- package/dist/ui/novel/novel/src/extensions/image-resizer.cjs +2 -1
- package/dist/ui/novel/tailwind/advanced-editor.cjs +58 -35
- package/dist/ui/novel/tailwind/generative/ai-completion-command.cjs +45 -30
- package/dist/ui/novel/tailwind/generative/ai-selector-commands.cjs +37 -28
- package/dist/ui/novel/tailwind/generative/ai-selector.cjs +58 -43
- package/dist/ui/novel/tailwind/generative/generative-menu-switch.cjs +23 -15
- package/dist/ui/novel/tailwind/selectors/color-selector.cjs +78 -55
- package/dist/ui/novel/tailwind/selectors/link-selector.cjs +58 -50
- package/dist/ui/novel/tailwind/selectors/node-selector.cjs +31 -19
- package/dist/ui/novel/tailwind/selectors/text-buttons.cjs +13 -12
- package/dist/ui/novel/tailwind/slash-command.cjs +12 -11
- package/dist/ui/novel/tailwind/ui/button.cjs +2 -1
- package/dist/ui/novel/tailwind/ui/command.cjs +25 -18
- package/dist/ui/novel/tailwind/ui/dialog.cjs +30 -17
- package/dist/ui/novel/tailwind/ui/icons/crazy-spinner.cjs +6 -1
- package/dist/ui/novel/tailwind/ui/icons/font-default.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/font-mono.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/font-serif.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/github.cjs +5 -4
- package/dist/ui/novel/tailwind/ui/icons/loading-circle.cjs +20 -17
- package/dist/ui/novel/tailwind/ui/icons/magic.cjs +27 -24
- package/dist/ui/novel/tailwind/ui/menu.cjs +28 -16
- package/dist/ui/novel/tailwind/ui/popover.cjs +3 -2
- package/dist/ui/novel/tailwind/ui/scroll-area.cjs +18 -10
- package/dist/ui/novel/tailwind/ui/separator.cjs +2 -1
- package/dist/ui/pagination.cjs +32 -19
- package/dist/ui/popover.cjs +3 -2
- package/dist/ui/progress.cjs +15 -10
- package/dist/ui/radio-group.cjs +7 -5
- package/dist/ui/resizable.cjs +10 -5
- package/dist/ui/scroll-area.cjs +26 -18
- package/dist/ui/select.cjs +37 -26
- package/dist/ui/separator.cjs +2 -1
- package/dist/ui/sheet.cjs +24 -14
- package/dist/ui/skeleton.cjs +2 -1
- package/dist/ui/slider.cjs +12 -5
- package/dist/ui/sonner.cjs +2 -1
- package/dist/ui/switch.cjs +12 -11
- package/dist/ui/table.cjs +10 -9
- package/dist/ui/tabs.cjs +4 -3
- package/dist/ui/textarea.cjs +2 -1
- package/dist/ui/toast.cjs +14 -9
- package/dist/ui/toaster.cjs +18 -4
- package/dist/ui/toggle.cjs +2 -1
- package/dist/ui/tooltip.cjs +2 -1
- package/dist/ui/ui-mt/NavTag.cjs +5 -4
- package/dist/ui/ui-mt/SimpleModel.cjs +12 -11
- package/dist/ui/ui-mt/inputField/InputField.cjs +27 -20
- package/dist/ui/ui-mt/inputField/SingleUploadForm.cjs +67 -56
- package/dist/ui/ui-mt/inputField/TextArea.cjs +20 -16
- package/dist/ui/ui-mt/inputField/TextFileInput.cjs +18 -25
- package/dist/ui/ui-mt/inputField/select/InputSelect.cjs +35 -27
- package/dist/ui/ui-mt/inputs/SearchInput.cjs +2 -1
- package/dist/ui/ui-mt/inputs/searchBar.cjs +12 -8
- package/dist/ui/ui-mt/skeleton/skeleton-card.cjs +9 -4
- package/dist/ui/ui-mt/skeleton/skeleton2.cjs +5 -1
- package/dist/ui/ui-mt/skeleton/skeletons.cjs +9 -1
- package/dist/ui/ui-vamp/alert.cjs +30 -24
- package/dist/ui/ui-vamp/avatar.cjs +12 -7
- package/dist/ui/ui-vamp/button.cjs +2 -1
- package/dist/ui/ui-vamp/card.cjs +15 -18
- package/dist/ui/ui-vamp/checkbox.cjs +15 -8
- package/dist/ui/ui-vamp/chip.cjs +2 -1
- package/dist/ui/ui-vamp/dropdown.cjs +7 -6
- package/dist/ui/ui-vamp/external-link.cjs +9 -4
- package/dist/ui/ui-vamp/headline.cjs +5 -1
- package/dist/ui/ui-vamp/input.cjs +3 -2
- package/dist/ui/ui-vamp/keyvalue.cjs +5 -1
- package/dist/ui/ui-vamp/label.cjs +2 -1
- package/dist/ui/ui-vamp/mobile-nav-button.cjs +6 -5
- package/dist/ui/ui-vamp/modal.cjs +17 -13
- package/dist/ui/ui-vamp/pagination.cjs +57 -35
- package/dist/ui/ui-vamp/scroll-area.cjs +5 -4
- package/dist/ui/ui-vamp/skeleton.cjs +2 -12
- package/dist/ui/ui-vamp/stripe-not-connected-modal.cjs +13 -2
- package/dist/ui/ui-vamp/textarea.cjs +12 -8
- package/dist/ui/ui-vamp/toggle-group.cjs +3 -2
- package/package.json +5 -4
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
1
2
|
function Github({ className }) {
|
|
2
|
-
return /* @__PURE__ */
|
|
3
|
+
return /* @__PURE__ */ jsx(
|
|
3
4
|
"svg",
|
|
4
5
|
{
|
|
5
6
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7,9 +8,9 @@ function Github({ className }) {
|
|
|
7
8
|
height: "20",
|
|
8
9
|
fill: "currentColor",
|
|
9
10
|
viewBox: "0 0 24 24",
|
|
10
|
-
className
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
className,
|
|
12
|
+
children: /* @__PURE__ */ jsx("path", { d: "M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" })
|
|
13
|
+
}
|
|
13
14
|
);
|
|
14
15
|
}
|
|
15
16
|
export {
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
function LoadingCircle({ dimensions }) {
|
|
2
|
-
return /* @__PURE__ */
|
|
3
|
+
return /* @__PURE__ */ jsxs(
|
|
3
4
|
"svg",
|
|
4
5
|
{
|
|
5
6
|
"aria-hidden": "true",
|
|
6
7
|
className: `${dimensions || "h-4 w-4"} animate-spin fill-stone-600 text-stone-200`,
|
|
7
8
|
viewBox: "0 0 100 101",
|
|
8
9
|
fill: "none",
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ jsx(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ jsx(
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
d: "M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",
|
|
23
|
+
fill: "currentFill"
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
]
|
|
27
|
+
}
|
|
25
28
|
);
|
|
26
29
|
}
|
|
27
30
|
export {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
function Magic({ className }) {
|
|
2
|
-
return /* @__PURE__ */
|
|
3
|
+
return /* @__PURE__ */ jsxs(
|
|
3
4
|
"svg",
|
|
4
5
|
{
|
|
5
6
|
width: "469",
|
|
@@ -12,29 +13,31 @@ function Magic({ className }) {
|
|
|
12
13
|
strokeLinecap: "round",
|
|
13
14
|
strokeLinejoin: "round",
|
|
14
15
|
strokeWidth: "1.5",
|
|
15
|
-
className
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
16
|
+
className,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ jsx(
|
|
19
|
+
"path",
|
|
20
|
+
{
|
|
21
|
+
d: "M237.092 62.3004L266.754 71.4198C267.156 71.5285 267.51 71.765 267.765 72.0934C268.02 72.4218 268.161 72.8243 268.166 73.2399C268.172 73.6555 268.042 74.0616 267.796 74.3967C267.55 74.7318 267.201 74.9777 266.803 75.097L237.141 84.3145C236.84 84.4058 236.566 84.5699 236.344 84.7922C236.121 85.0146 235.957 85.2883 235.866 85.5893L226.747 115.252C226.638 115.653 226.401 116.008 226.073 116.263C225.745 116.517 225.342 116.658 224.926 116.664C224.511 116.669 224.105 116.539 223.77 116.293C223.435 116.047 223.189 115.699 223.069 115.301L213.852 85.6383C213.761 85.3374 213.597 85.0636 213.374 84.8412C213.152 84.6189 212.878 84.4548 212.577 84.3635L182.914 75.2441C182.513 75.1354 182.158 74.8989 181.904 74.5705C181.649 74.2421 181.508 73.8396 181.503 73.424C181.497 73.0084 181.627 72.6023 181.873 72.2672C182.119 71.9321 182.467 71.6863 182.865 71.5669L212.528 62.3494C212.829 62.2582 213.103 62.0941 213.325 61.8717C213.547 61.6494 213.712 61.3756 213.803 61.0747L222.922 31.4121C223.031 31.0109 223.267 30.656 223.596 30.4013C223.924 30.1465 224.327 30.0057 224.742 30.0002C225.158 29.9946 225.564 30.1247 225.899 30.3706C226.234 30.6165 226.48 30.9649 226.599 31.363L235.817 61.0257C235.908 61.3266 236.072 61.6003 236.295 61.8227C236.517 62.0451 236.791 62.2091 237.092 62.3004Z",
|
|
22
|
+
fill: "currentColor"
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ jsx(
|
|
26
|
+
"path",
|
|
27
|
+
{
|
|
28
|
+
d: "M155.948 155.848L202.771 168.939C203.449 169.131 204.045 169.539 204.47 170.101C204.895 170.663 205.125 171.348 205.125 172.052C205.125 172.757 204.895 173.442 204.47 174.004C204.045 174.566 203.449 174.974 202.771 175.166L155.899 188.06C155.361 188.209 154.87 188.496 154.475 188.891C154.079 189.286 153.793 189.777 153.644 190.316L140.553 237.138C140.361 237.816 139.953 238.413 139.391 238.838C138.829 239.262 138.144 239.492 137.44 239.492C136.735 239.492 136.05 239.262 135.488 238.838C134.927 238.413 134.519 237.816 134.327 237.138L121.432 190.267C121.283 189.728 120.997 189.237 120.601 188.842C120.206 188.446 119.715 188.16 119.177 188.011L72.3537 174.92C71.676 174.728 71.0795 174.32 70.6547 173.759C70.2299 173.197 70 172.512 70 171.807C70 171.103 70.2299 170.418 70.6547 169.856C71.0795 169.294 71.676 168.886 72.3537 168.694L119.226 155.799C119.764 155.65 120.255 155.364 120.65 154.969C121.046 154.573 121.332 154.082 121.481 153.544L134.572 106.721C134.764 106.043 135.172 105.447 135.734 105.022C136.295 104.597 136.981 104.367 137.685 104.367C138.389 104.367 139.075 104.597 139.637 105.022C140.198 105.447 140.606 106.043 140.798 106.721L153.693 153.593C153.842 154.131 154.128 154.622 154.524 155.018C154.919 155.413 155.41 155.699 155.948 155.848Z",
|
|
29
|
+
fill: "currentColor"
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
/* @__PURE__ */ jsx(
|
|
33
|
+
"path",
|
|
34
|
+
{
|
|
35
|
+
d: "M386.827 289.992C404.33 292.149 403.84 305.828 386.876 307.299C346.623 310.829 298.869 316.271 282.199 360.005C274.844 379.192 269.942 403.2 267.49 432.029C267.427 432.846 267.211 433.626 266.856 434.319C266.501 435.012 266.015 435.602 265.431 436.05C254.988 444.041 251.212 434.186 250.183 425.606C239.2 332.353 214.588 316.909 124.668 306.122C123.892 306.031 123.151 305.767 122.504 305.35C121.857 304.933 121.322 304.375 120.942 303.72C116.399 295.679 119.324 291.038 129.718 289.796C224.688 278.47 236.062 262.83 250.183 169.331C252.177 156.355 257.259 154.083 265.431 162.516C266.51 163.593 267.202 165.099 267.392 166.782C279.257 258.564 293.328 278.617 386.827 289.992Z",
|
|
36
|
+
fill: "currentColor"
|
|
37
|
+
}
|
|
38
|
+
)
|
|
39
|
+
]
|
|
40
|
+
}
|
|
38
41
|
);
|
|
39
42
|
}
|
|
40
43
|
export {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { Check, Menu as MenuIcon, Monitor, Moon, SunDim } from "lucide-react";
|
|
3
4
|
import { useTheme } from "next-themes";
|
|
4
5
|
import { Button } from "./button";
|
|
@@ -6,32 +7,43 @@ import { Popover, PopoverContent, PopoverTrigger } from "./popover";
|
|
|
6
7
|
const appearances = [
|
|
7
8
|
{
|
|
8
9
|
theme: "System",
|
|
9
|
-
icon: /* @__PURE__ */
|
|
10
|
+
icon: /* @__PURE__ */ jsx(Monitor, { className: "h-4 w-4" })
|
|
10
11
|
},
|
|
11
12
|
{
|
|
12
13
|
theme: "Light",
|
|
13
|
-
icon: /* @__PURE__ */
|
|
14
|
+
icon: /* @__PURE__ */ jsx(SunDim, { className: "h-4 w-4" })
|
|
14
15
|
},
|
|
15
16
|
{
|
|
16
17
|
theme: "Dark",
|
|
17
|
-
icon: /* @__PURE__ */
|
|
18
|
+
icon: /* @__PURE__ */ jsx(Moon, { className: "h-4 w-4" })
|
|
18
19
|
}
|
|
19
20
|
];
|
|
20
21
|
function Menu() {
|
|
21
22
|
const { theme: currentTheme, setTheme } = useTheme();
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
Button,
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
24
|
+
/* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "icon", children: /* @__PURE__ */ jsx(MenuIcon, { width: 16 }) }) }),
|
|
25
|
+
/* @__PURE__ */ jsxs(PopoverContent, { className: "w-52 p-2", align: "end", children: [
|
|
26
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground p-2 text-xs font-medium", children: "Appearance" }),
|
|
27
|
+
appearances.map(({ theme, icon }) => /* @__PURE__ */ jsxs(
|
|
28
|
+
Button,
|
|
29
|
+
{
|
|
30
|
+
variant: "ghost",
|
|
31
|
+
className: "flex w-full items-center justify-between rounded px-2 py-1.5 text-sm",
|
|
32
|
+
onClick: () => {
|
|
33
|
+
setTheme(theme.toLowerCase());
|
|
34
|
+
},
|
|
35
|
+
children: [
|
|
36
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
37
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-sm border p-1", children: icon }),
|
|
38
|
+
/* @__PURE__ */ jsx("span", { children: theme })
|
|
39
|
+
] }),
|
|
40
|
+
currentTheme === theme.toLowerCase() && /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" })
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
theme
|
|
44
|
+
))
|
|
45
|
+
] })
|
|
46
|
+
] });
|
|
35
47
|
}
|
|
36
48
|
export {
|
|
37
49
|
Menu as default
|
|
@@ -27,6 +27,7 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
31
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
31
32
|
import * as React from "react";
|
|
32
33
|
import { cn } from "../../../../lib/utils";
|
|
@@ -34,7 +35,7 @@ const Popover = PopoverPrimitive.Root;
|
|
|
34
35
|
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
35
36
|
const PopoverContent = React.forwardRef((_a, ref) => {
|
|
36
37
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
38
39
|
PopoverPrimitive.Content,
|
|
39
40
|
__spreadValues({
|
|
40
41
|
ref,
|
|
@@ -45,7 +46,7 @@ const PopoverContent = React.forwardRef((_a, ref) => {
|
|
|
45
46
|
className
|
|
46
47
|
)
|
|
47
48
|
}, props)
|
|
48
|
-
));
|
|
49
|
+
) });
|
|
49
50
|
});
|
|
50
51
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
51
52
|
export {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __objRest = (source, exclude) => {
|
|
19
22
|
var target = {};
|
|
20
23
|
for (var prop in source)
|
|
@@ -27,28 +30,32 @@ var __objRest = (source, exclude) => {
|
|
|
27
30
|
}
|
|
28
31
|
return target;
|
|
29
32
|
};
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
34
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
31
35
|
import * as React from "react";
|
|
32
36
|
import { cn } from "../../../../lib/utils";
|
|
33
37
|
const ScrollArea = React.forwardRef((_a, ref) => {
|
|
34
38
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
35
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsxs(
|
|
36
40
|
ScrollAreaPrimitive.Root,
|
|
37
|
-
__spreadValues({
|
|
41
|
+
__spreadProps(__spreadValues({
|
|
38
42
|
ref,
|
|
39
43
|
className: cn("relative overflow-hidden", className)
|
|
40
|
-
}, props),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
}, props), {
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
47
|
+
/* @__PURE__ */ jsx(ScrollBar, {}),
|
|
48
|
+
/* @__PURE__ */ jsx(ScrollAreaPrimitive.Corner, {})
|
|
49
|
+
]
|
|
50
|
+
})
|
|
44
51
|
);
|
|
45
52
|
});
|
|
46
53
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
47
54
|
const ScrollBar = React.forwardRef((_c, ref) => {
|
|
48
55
|
var _d = _c, { className, orientation = "vertical" } = _d, props = __objRest(_d, ["className", "orientation"]);
|
|
49
|
-
return /* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
50
57
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
51
|
-
__spreadValues({
|
|
58
|
+
__spreadProps(__spreadValues({
|
|
52
59
|
ref,
|
|
53
60
|
orientation,
|
|
54
61
|
className: cn(
|
|
@@ -57,8 +64,9 @@ const ScrollBar = React.forwardRef((_c, ref) => {
|
|
|
57
64
|
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px",
|
|
58
65
|
className
|
|
59
66
|
)
|
|
60
|
-
}, props),
|
|
61
|
-
|
|
67
|
+
}, props), {
|
|
68
|
+
children: /* @__PURE__ */ jsx(ScrollAreaPrimitive.ScrollAreaThumb, { className: "bg-border relative flex-1 rounded-full" })
|
|
69
|
+
})
|
|
62
70
|
);
|
|
63
71
|
});
|
|
64
72
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
@@ -27,13 +27,14 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
31
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
31
32
|
import * as React from "react";
|
|
32
33
|
import { cn } from "../../../../lib/utils";
|
|
33
34
|
const Separator = React.forwardRef(
|
|
34
35
|
(_a, ref) => {
|
|
35
36
|
var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
37
38
|
SeparatorPrimitive.Root,
|
|
38
39
|
__spreadValues({
|
|
39
40
|
ref,
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,7 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
17
20
|
var __objRest = (source, exclude) => {
|
|
18
21
|
var target = {};
|
|
19
22
|
for (var prop in source)
|
|
@@ -26,6 +29,7 @@ var __objRest = (source, exclude) => {
|
|
|
26
29
|
}
|
|
27
30
|
return target;
|
|
28
31
|
};
|
|
32
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
33
|
import {
|
|
30
34
|
ChevronLeftIcon,
|
|
31
35
|
ChevronRightIcon,
|
|
@@ -36,7 +40,7 @@ import { cn } from "../lib/utils";
|
|
|
36
40
|
import { buttonVariants } from "./button";
|
|
37
41
|
const Pagination = (_a) => {
|
|
38
42
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
39
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
40
44
|
"nav",
|
|
41
45
|
__spreadValues({
|
|
42
46
|
role: "navigation",
|
|
@@ -48,7 +52,7 @@ const Pagination = (_a) => {
|
|
|
48
52
|
Pagination.displayName = "Pagination";
|
|
49
53
|
const PaginationContent = React.forwardRef((_c, ref) => {
|
|
50
54
|
var _d = _c, { className } = _d, props = __objRest(_d, ["className"]);
|
|
51
|
-
return /* @__PURE__ */
|
|
55
|
+
return /* @__PURE__ */ jsx(
|
|
52
56
|
"ul",
|
|
53
57
|
__spreadValues({
|
|
54
58
|
ref,
|
|
@@ -59,7 +63,7 @@ const PaginationContent = React.forwardRef((_c, ref) => {
|
|
|
59
63
|
PaginationContent.displayName = "PaginationContent";
|
|
60
64
|
const PaginationItem = React.forwardRef((_e, ref) => {
|
|
61
65
|
var _f = _e, { className } = _f, props = __objRest(_f, ["className"]);
|
|
62
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ jsx("li", __spreadValues({ ref, className: cn("", className) }, props));
|
|
63
67
|
});
|
|
64
68
|
PaginationItem.displayName = "PaginationItem";
|
|
65
69
|
const PaginationLink = (_g) => {
|
|
@@ -72,7 +76,7 @@ const PaginationLink = (_g) => {
|
|
|
72
76
|
"isActive",
|
|
73
77
|
"size"
|
|
74
78
|
]);
|
|
75
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ jsx(
|
|
76
80
|
"a",
|
|
77
81
|
__spreadValues({
|
|
78
82
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -93,15 +97,18 @@ const PaginationPrevious = (_i) => {
|
|
|
93
97
|
} = _j, props = __objRest(_j, [
|
|
94
98
|
"className"
|
|
95
99
|
]);
|
|
96
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ jsxs(
|
|
97
101
|
PaginationLink,
|
|
98
|
-
__spreadValues({
|
|
102
|
+
__spreadProps(__spreadValues({
|
|
99
103
|
"aria-label": "Go to previous page",
|
|
100
104
|
size: "default",
|
|
101
105
|
className: cn("gap-1 pl-2.5", className)
|
|
102
|
-
}, props),
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
}, props), {
|
|
107
|
+
children: [
|
|
108
|
+
/* @__PURE__ */ jsx(ChevronLeftIcon, { className: "h-4 w-4" }),
|
|
109
|
+
/* @__PURE__ */ jsx("span", { children: "Previous" })
|
|
110
|
+
]
|
|
111
|
+
})
|
|
105
112
|
);
|
|
106
113
|
};
|
|
107
114
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
@@ -111,15 +118,18 @@ const PaginationNext = (_k) => {
|
|
|
111
118
|
} = _l, props = __objRest(_l, [
|
|
112
119
|
"className"
|
|
113
120
|
]);
|
|
114
|
-
return /* @__PURE__ */
|
|
121
|
+
return /* @__PURE__ */ jsxs(
|
|
115
122
|
PaginationLink,
|
|
116
|
-
__spreadValues({
|
|
123
|
+
__spreadProps(__spreadValues({
|
|
117
124
|
"aria-label": "Go to next page",
|
|
118
125
|
size: "default",
|
|
119
126
|
className: cn("gap-1 pr-2.5", className)
|
|
120
|
-
}, props),
|
|
121
|
-
|
|
122
|
-
|
|
127
|
+
}, props), {
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ jsx("span", { children: "Next" }),
|
|
130
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "h-4 w-4" })
|
|
131
|
+
]
|
|
132
|
+
})
|
|
123
133
|
);
|
|
124
134
|
};
|
|
125
135
|
PaginationNext.displayName = "PaginationNext";
|
|
@@ -129,14 +139,17 @@ const PaginationEllipsis = (_m) => {
|
|
|
129
139
|
} = _n, props = __objRest(_n, [
|
|
130
140
|
"className"
|
|
131
141
|
]);
|
|
132
|
-
return /* @__PURE__ */
|
|
142
|
+
return /* @__PURE__ */ jsxs(
|
|
133
143
|
"span",
|
|
134
|
-
__spreadValues({
|
|
144
|
+
__spreadProps(__spreadValues({
|
|
135
145
|
"aria-hidden": true,
|
|
136
146
|
className: cn("flex h-9 w-9 items-center justify-center", className)
|
|
137
|
-
}, props),
|
|
138
|
-
|
|
139
|
-
|
|
147
|
+
}, props), {
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ jsx(DotsHorizontalIcon, { className: "h-4 w-4" }),
|
|
150
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
|
|
151
|
+
]
|
|
152
|
+
})
|
|
140
153
|
);
|
|
141
154
|
};
|
|
142
155
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
package/dist/esm/ui/popover.js
CHANGED
|
@@ -27,6 +27,7 @@ var __objRest = (source, exclude) => {
|
|
|
27
27
|
}
|
|
28
28
|
return target;
|
|
29
29
|
};
|
|
30
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
31
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
31
32
|
import * as React from "react";
|
|
32
33
|
import { cn } from "../lib/utils";
|
|
@@ -34,7 +35,7 @@ const Popover = PopoverPrimitive.Root;
|
|
|
34
35
|
const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
35
36
|
const PopoverContent = React.forwardRef((_a, ref) => {
|
|
36
37
|
var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
38
39
|
PopoverPrimitive.Content,
|
|
39
40
|
__spreadValues({
|
|
40
41
|
ref,
|
|
@@ -45,7 +46,7 @@ const PopoverContent = React.forwardRef((_a, ref) => {
|
|
|
45
46
|
className
|
|
46
47
|
)
|
|
47
48
|
}, props)
|
|
48
|
-
));
|
|
49
|
+
) });
|
|
49
50
|
});
|
|
50
51
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
51
52
|
export {
|
package/dist/esm/ui/progress.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __objRest = (source, exclude) => {
|
|
19
22
|
var target = {};
|
|
20
23
|
for (var prop in source)
|
|
@@ -27,27 +30,29 @@ var __objRest = (source, exclude) => {
|
|
|
27
30
|
}
|
|
28
31
|
return target;
|
|
29
32
|
};
|
|
33
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
34
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
31
35
|
import * as React from "react";
|
|
32
36
|
import { cn } from "../lib/utils";
|
|
33
37
|
const Progress = React.forwardRef((_a, ref) => {
|
|
34
38
|
var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
|
|
35
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsx(
|
|
36
40
|
ProgressPrimitive.Root,
|
|
37
|
-
__spreadValues({
|
|
41
|
+
__spreadProps(__spreadValues({
|
|
38
42
|
ref,
|
|
39
43
|
className: cn(
|
|
40
44
|
"bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
|
|
41
45
|
className
|
|
42
46
|
)
|
|
43
|
-
}, props),
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
}, props), {
|
|
48
|
+
children: /* @__PURE__ */ jsx(
|
|
49
|
+
ProgressPrimitive.Indicator,
|
|
50
|
+
{
|
|
51
|
+
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
52
|
+
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
})
|
|
51
56
|
);
|
|
52
57
|
});
|
|
53
58
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
@@ -30,13 +30,14 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
}
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
|
+
import { jsx } from "react/jsx-runtime";
|
|
33
34
|
import { CheckIcon } from "@radix-ui/react-icons";
|
|
34
35
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
35
36
|
import * as React from "react";
|
|
36
37
|
import { cn } from "../lib/utils";
|
|
37
38
|
const RadioGroup = React.forwardRef((_a, ref) => {
|
|
38
39
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ jsx(
|
|
40
41
|
RadioGroupPrimitive.Root,
|
|
41
42
|
__spreadProps(__spreadValues({
|
|
42
43
|
className: cn("grid gap-2", className)
|
|
@@ -48,16 +49,17 @@ const RadioGroup = React.forwardRef((_a, ref) => {
|
|
|
48
49
|
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
|
|
49
50
|
const RadioGroupItem = React.forwardRef((_c, ref) => {
|
|
50
51
|
var _d = _c, { className, children } = _d, props = __objRest(_d, ["className", "children"]);
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
52
53
|
RadioGroupPrimitive.Item,
|
|
53
|
-
__spreadValues({
|
|
54
|
+
__spreadProps(__spreadValues({
|
|
54
55
|
ref,
|
|
55
56
|
className: cn(
|
|
56
57
|
"border-primary text-primary focus-visible:ring-ring aspect-square size-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
|
|
57
58
|
className
|
|
58
59
|
)
|
|
59
|
-
}, props),
|
|
60
|
-
|
|
60
|
+
}, props), {
|
|
61
|
+
children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(CheckIcon, { className: "fill-primary size-3.5" }) })
|
|
62
|
+
})
|
|
61
63
|
);
|
|
62
64
|
});
|
|
63
65
|
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
|
package/dist/esm/ui/resizable.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
3
5
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -15,6 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
15
17
|
}
|
|
16
18
|
return a;
|
|
17
19
|
};
|
|
20
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
18
21
|
var __objRest = (source, exclude) => {
|
|
19
22
|
var target = {};
|
|
20
23
|
for (var prop in source)
|
|
@@ -27,6 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
27
30
|
}
|
|
28
31
|
return target;
|
|
29
32
|
};
|
|
33
|
+
import { jsx } from "react/jsx-runtime";
|
|
30
34
|
import { DragHandleDots2Icon } from "@radix-ui/react-icons";
|
|
31
35
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
32
36
|
import { cn } from "../lib/utils";
|
|
@@ -36,7 +40,7 @@ const ResizablePanelGroup = (_a) => {
|
|
|
36
40
|
} = _b, props = __objRest(_b, [
|
|
37
41
|
"className"
|
|
38
42
|
]);
|
|
39
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ jsx(
|
|
40
44
|
ResizablePrimitive.PanelGroup,
|
|
41
45
|
__spreadValues({
|
|
42
46
|
className: cn(
|
|
@@ -55,15 +59,16 @@ const ResizableHandle = (_c) => {
|
|
|
55
59
|
"withHandle",
|
|
56
60
|
"className"
|
|
57
61
|
]);
|
|
58
|
-
return /* @__PURE__ */
|
|
62
|
+
return /* @__PURE__ */ jsx(
|
|
59
63
|
ResizablePrimitive.PanelResizeHandle,
|
|
60
|
-
__spreadValues({
|
|
64
|
+
__spreadProps(__spreadValues({
|
|
61
65
|
className: cn(
|
|
62
66
|
"bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
63
67
|
className
|
|
64
68
|
)
|
|
65
|
-
}, props),
|
|
66
|
-
|
|
69
|
+
}, props), {
|
|
70
|
+
children: withHandle && /* @__PURE__ */ jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border", children: /* @__PURE__ */ jsx(DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
|
|
71
|
+
})
|
|
67
72
|
);
|
|
68
73
|
};
|
|
69
74
|
export {
|