singularity-components 0.1.106 → 0.1.127
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/README.md +15 -15
- package/dist/components/index.d.ts +32 -0
- package/dist/components/index.js +4 -26
- package/dist/components/index.js.map +1 -0
- package/dist/components/primitives/accordion/accordion.d.ts +10 -0
- package/dist/components/primitives/accordion/accordion.js +67 -0
- package/dist/components/primitives/accordion/accordion.js.map +1 -0
- package/dist/components/primitives/accordion/accordion.stories.d.ts +16 -0
- package/dist/components/primitives/accordion/accordion.stories.js +61 -0
- package/dist/components/primitives/accordion/accordion.stories.js.map +1 -0
- package/dist/components/primitives/alert/alert.d.ts +19 -0
- package/dist/components/primitives/alert/alert.js +70 -0
- package/dist/components/primitives/alert/alert.js.map +1 -0
- package/dist/components/primitives/alert/alert.stories.d.ts +22 -0
- package/dist/components/primitives/alert/alert.stories.js +37 -0
- package/dist/components/primitives/alert/alert.stories.js.map +1 -0
- package/dist/components/primitives/badge/badge.d.ts +13 -0
- package/dist/components/primitives/badge/badge.js +42 -0
- package/dist/components/primitives/badge/badge.js.map +1 -0
- package/dist/components/primitives/badge/badges.d.ts +8 -0
- package/dist/components/primitives/badge/badges.js +10 -0
- package/dist/components/primitives/badge/badges.js.map +1 -0
- package/dist/components/primitives/button/button.d.ts +36 -0
- package/dist/components/primitives/button/button.js +74 -0
- package/dist/components/primitives/button/button.js.map +1 -0
- package/dist/components/primitives/button/button.stories.d.ts +37 -0
- package/dist/components/primitives/button/button.stories.js +87 -0
- package/dist/components/primitives/button/button.stories.js.map +1 -0
- package/dist/components/primitives/icon/icon.d.ts +32 -0
- package/dist/components/primitives/icon/icon.js +53 -0
- package/dist/components/primitives/icon/icon.js.map +1 -0
- package/dist/components/primitives/icon/icon.stories.d.ts +24 -0
- package/dist/components/primitives/icon/icon.stories.js +27 -0
- package/dist/components/primitives/icon/icon.stories.js.map +1 -0
- package/dist/components/primitives/index.d.ts +29 -0
- package/dist/components/primitives/index.js +20 -0
- package/dist/components/primitives/index.js.map +1 -0
- package/dist/components/primitives/input/input.d.ts +6 -0
- package/dist/components/primitives/input/input.js +23 -0
- package/dist/components/primitives/input/input.js.map +1 -0
- package/dist/components/primitives/layout/layout.d.ts +53 -0
- package/dist/components/primitives/layout/layout.js +93 -0
- package/dist/components/primitives/layout/layout.js.map +1 -0
- package/dist/components/primitives/layout/layout.stories.d.ts +32 -0
- package/dist/components/primitives/layout/layout.stories.js +72 -0
- package/dist/components/primitives/layout/layout.stories.js.map +1 -0
- package/dist/components/primitives/separator/separator.d.ts +7 -0
- package/dist/components/primitives/separator/separator.js +39 -0
- package/dist/components/primitives/separator/separator.js.map +1 -0
- package/dist/components/primitives/separator/separator.stories.d.ts +16 -0
- package/dist/components/primitives/separator/separator.stories.js +18 -0
- package/dist/components/primitives/separator/separator.stories.js.map +1 -0
- package/dist/components/primitives/skeleton/skeleton.d.ts +5 -0
- package/dist/components/primitives/skeleton/skeleton.js +16 -0
- package/dist/components/primitives/skeleton/skeleton.js.map +1 -0
- package/dist/components/primitives/skeleton/skeleton.stories.d.ts +13 -0
- package/dist/components/primitives/skeleton/skeleton.stories.js +16 -0
- package/dist/components/primitives/skeleton/skeleton.stories.js.map +1 -0
- package/dist/components/primitives/spinner/spinner.d.ts +10 -0
- package/dist/components/primitives/spinner/spinner.js +80 -0
- package/dist/components/primitives/spinner/spinner.js.map +1 -0
- package/dist/components/primitives/spinner/spinner.stories.d.ts +16 -0
- package/dist/components/primitives/spinner/spinner.stories.js +35 -0
- package/dist/components/primitives/spinner/spinner.stories.js.map +1 -0
- package/dist/components/primitives/stack/stack.d.ts +13 -0
- package/dist/components/primitives/stack/stack.js +44 -0
- package/dist/components/primitives/stack/stack.js.map +1 -0
- package/dist/components/primitives/stack/stack.stories.d.ts +13 -0
- package/dist/components/primitives/stack/stack.stories.js +26 -0
- package/dist/components/primitives/stack/stack.stories.js.map +1 -0
- package/dist/components/primitives/table/table.d.ts +13 -0
- package/dist/components/primitives/table/table.js +117 -0
- package/dist/components/primitives/table/table.js.map +1 -0
- package/dist/components/primitives/text/internal/text-element.d.ts +62 -0
- package/dist/components/primitives/text/internal/text-element.js +78 -0
- package/dist/components/primitives/text/internal/text-element.js.map +1 -0
- package/dist/components/primitives/text/text-div.d.ts +10 -0
- package/dist/components/primitives/text/text-div.js +35 -0
- package/dist/components/primitives/text/text-div.js.map +1 -0
- package/dist/components/primitives/text/text-div.stories.d.ts +32 -0
- package/dist/components/primitives/text/text-div.stories.js +59 -0
- package/dist/components/primitives/text/text-div.stories.js.map +1 -0
- package/dist/components/primitives/text/text-heading.d.ts +26 -0
- package/dist/components/primitives/text/text-heading.js +53 -0
- package/dist/components/primitives/text/text-heading.js.map +1 -0
- package/dist/components/primitives/text/text-heading.stories.d.ts +27 -0
- package/dist/components/primitives/text/text-heading.stories.js +47 -0
- package/dist/components/primitives/text/text-heading.stories.js.map +1 -0
- package/dist/components/primitives/text/text-paragraph.d.ts +10 -0
- package/dist/components/primitives/text/text-paragraph.js +35 -0
- package/dist/components/primitives/text/text-paragraph.js.map +1 -0
- package/dist/components/primitives/text/text-span.d.ts +10 -0
- package/dist/components/primitives/text/text-span.js +35 -0
- package/dist/components/primitives/text/text-span.js.map +1 -0
- package/dist/components/primitives/text/text-span.stories.d.ts +31 -0
- package/dist/components/primitives/text/text-span.stories.js +59 -0
- package/dist/components/primitives/text/text-span.stories.js.map +1 -0
- package/dist/components/primitives/text/text-time.d.ts +10 -0
- package/dist/components/primitives/text/text-time.js +35 -0
- package/dist/components/primitives/text/text-time.js.map +1 -0
- package/dist/components/primitives/ui-image.d.ts +6 -0
- package/dist/components/primitives/ui-image.js +26 -0
- package/dist/components/primitives/ui-image.js.map +1 -0
- package/dist/components/providers/ImageContext.d.ts +17 -0
- package/dist/components/providers/ImageContext.js +23 -0
- package/dist/components/providers/ImageContext.js.map +1 -0
- package/dist/components/providers/index.d.ts +2 -0
- package/dist/components/providers/index.js +2 -0
- package/dist/components/providers/index.js.map +1 -0
- package/dist/components/units/cards/blog-card.d.ts +18 -0
- package/dist/components/units/cards/blog-card.js +80 -0
- package/dist/components/units/cards/blog-card.js.map +1 -0
- package/dist/components/units/cards/card.d.ts +15 -0
- package/dist/components/units/cards/card.js +89 -0
- package/dist/components/units/cards/card.js.map +1 -0
- package/dist/components/units/cards/cards.d.ts +17 -0
- package/dist/components/units/cards/cards.js +37 -0
- package/dist/components/units/cards/cards.js.map +1 -0
- package/dist/components/units/index.d.ts +5 -0
- package/dist/components/units/index.js +4 -0
- package/dist/components/units/index.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/helpers/date.d.ts +1 -3
- package/dist/lib/helpers/date.js +11 -7
- package/dist/lib/helpers/date.js.map +1 -1
- package/dist/lib/helpers/index.d.ts +1 -0
- package/dist/lib/helpers/index.js +2 -0
- package/dist/lib/helpers/index.js.map +1 -0
- package/dist/lib/index.d.ts +1 -0
- package/dist/lib/index.js +2 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/try-catch.d.ts +12 -0
- package/dist/lib/try-catch.js +12 -0
- package/dist/lib/try-catch.js.map +1 -0
- package/dist/lib/types.d.ts +8 -5
- package/dist/lib/types.js +1 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/main.css +1823 -0
- package/dist/main.css.map +1 -0
- package/dist/main.d.ts +2 -25
- package/dist/main.js +3 -28
- package/dist/main.js.map +1 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +19 -12
- package/dist/utils.js.map +1 -1
- package/package.json +78 -67
- package/dist/_virtual/rolldown_runtime.cjs +0 -29
- package/dist/_virtual/rolldown_runtime.js +0 -30
- package/dist/components/client/index.cjs +0 -7
- package/dist/components/client/index.js +0 -9
- package/dist/components/client/primitives/accordion/accordion.cjs +0 -57
- package/dist/components/client/primitives/accordion/accordion.cjs.map +0 -1
- package/dist/components/client/primitives/accordion/accordion.d.cts +0 -25
- package/dist/components/client/primitives/accordion/accordion.d.ts +0 -25
- package/dist/components/client/primitives/accordion/accordion.js +0 -51
- package/dist/components/client/primitives/accordion/accordion.js.map +0 -1
- package/dist/components/client/primitives/index.cjs +0 -4
- package/dist/components/client/primitives/index.js +0 -6
- package/dist/components/client/primitives/separator/separator.cjs +0 -26
- package/dist/components/client/primitives/separator/separator.cjs.map +0 -1
- package/dist/components/client/primitives/separator/separator.d.cts +0 -14
- package/dist/components/client/primitives/separator/separator.d.ts +0 -14
- package/dist/components/client/primitives/separator/separator.js +0 -22
- package/dist/components/client/primitives/separator/separator.js.map +0 -1
- package/dist/components/client/primitives/table/table.cjs +0 -82
- package/dist/components/client/primitives/table/table.cjs.map +0 -1
- package/dist/components/client/primitives/table/table.d.cts +0 -39
- package/dist/components/client/primitives/table/table.d.ts +0 -39
- package/dist/components/client/primitives/table/table.js +0 -72
- package/dist/components/client/primitives/table/table.js.map +0 -1
- package/dist/components/client/primitives/ui-image.cjs +0 -24
- package/dist/components/client/primitives/ui-image.cjs.map +0 -1
- package/dist/components/client/primitives/ui-image.d.cts +0 -8
- package/dist/components/client/primitives/ui-image.d.ts +0 -8
- package/dist/components/client/primitives/ui-image.js +0 -21
- package/dist/components/client/primitives/ui-image.js.map +0 -1
- package/dist/components/client/providers/ImageContext.cjs +0 -30
- package/dist/components/client/providers/ImageContext.cjs.map +0 -1
- package/dist/components/client/providers/ImageContext.d.cts +0 -18
- package/dist/components/client/providers/ImageContext.d.ts +0 -18
- package/dist/components/client/providers/ImageContext.js +0 -26
- package/dist/components/client/providers/ImageContext.js.map +0 -1
- package/dist/components/client/providers/index.cjs +0 -1
- package/dist/components/client/providers/index.js +0 -3
- package/dist/components/index.cjs +0 -24
- package/dist/components/server/index.cjs +0 -18
- package/dist/components/server/index.js +0 -20
- package/dist/components/server/primitives/alert/alert.cjs +0 -47
- package/dist/components/server/primitives/alert/alert.cjs.map +0 -1
- package/dist/components/server/primitives/alert/alert.d.cts +0 -31
- package/dist/components/server/primitives/alert/alert.d.ts +0 -31
- package/dist/components/server/primitives/alert/alert.js +0 -40
- package/dist/components/server/primitives/alert/alert.js.map +0 -1
- package/dist/components/server/primitives/badge/badge.cjs +0 -33
- package/dist/components/server/primitives/badge/badge.cjs.map +0 -1
- package/dist/components/server/primitives/badge/badge.d.cts +0 -20
- package/dist/components/server/primitives/badge/badge.d.ts +0 -20
- package/dist/components/server/primitives/badge/badge.js +0 -27
- package/dist/components/server/primitives/badge/badge.js.map +0 -1
- package/dist/components/server/primitives/badge/badges.cjs +0 -19
- package/dist/components/server/primitives/badge/badges.cjs.map +0 -1
- package/dist/components/server/primitives/badge/badges.d.cts +0 -13
- package/dist/components/server/primitives/badge/badges.d.ts +0 -13
- package/dist/components/server/primitives/badge/badges.js +0 -16
- package/dist/components/server/primitives/badge/badges.js.map +0 -1
- package/dist/components/server/primitives/button/button.cjs +0 -65
- package/dist/components/server/primitives/button/button.cjs.map +0 -1
- package/dist/components/server/primitives/button/button.d.cts +0 -49
- package/dist/components/server/primitives/button/button.d.ts +0 -49
- package/dist/components/server/primitives/button/button.js +0 -58
- package/dist/components/server/primitives/button/button.js.map +0 -1
- package/dist/components/server/primitives/cards/blog-card.cjs +0 -10
- package/dist/components/server/primitives/cards/blog-card.d.cts +0 -14
- package/dist/components/server/primitives/cards/blog-card.d.ts +0 -16
- package/dist/components/server/primitives/cards/blog-card.js +0 -10
- package/dist/components/server/primitives/cards/card.cjs +0 -66
- package/dist/components/server/primitives/cards/card.cjs.map +0 -1
- package/dist/components/server/primitives/cards/card.d.cts +0 -17
- package/dist/components/server/primitives/cards/card.d.ts +0 -17
- package/dist/components/server/primitives/cards/card.js +0 -57
- package/dist/components/server/primitives/cards/card.js.map +0 -1
- package/dist/components/server/primitives/cards/cards.cjs +0 -36
- package/dist/components/server/primitives/cards/cards.cjs.map +0 -1
- package/dist/components/server/primitives/cards/cards.d.cts +0 -24
- package/dist/components/server/primitives/cards/cards.d.ts +0 -24
- package/dist/components/server/primitives/cards/cards.js +0 -32
- package/dist/components/server/primitives/cards/cards.js.map +0 -1
- package/dist/components/server/primitives/icon/icon.cjs +0 -54
- package/dist/components/server/primitives/icon/icon.cjs.map +0 -1
- package/dist/components/server/primitives/icon/icon.d.cts +0 -41
- package/dist/components/server/primitives/icon/icon.d.ts +0 -41
- package/dist/components/server/primitives/icon/icon.js +0 -49
- package/dist/components/server/primitives/icon/icon.js.map +0 -1
- package/dist/components/server/primitives/index.cjs +0 -18
- package/dist/components/server/primitives/index.js +0 -20
- package/dist/components/server/primitives/input/input.cjs +0 -20
- package/dist/components/server/primitives/input/input.cjs.map +0 -1
- package/dist/components/server/primitives/input/input.d.cts +0 -12
- package/dist/components/server/primitives/input/input.d.ts +0 -12
- package/dist/components/server/primitives/input/input.js +0 -17
- package/dist/components/server/primitives/input/input.js.map +0 -1
- package/dist/components/server/primitives/layout/layout.cjs +0 -83
- package/dist/components/server/primitives/layout/layout.cjs.map +0 -1
- package/dist/components/server/primitives/layout/layout.d.cts +0 -69
- package/dist/components/server/primitives/layout/layout.d.ts +0 -69
- package/dist/components/server/primitives/layout/layout.js +0 -77
- package/dist/components/server/primitives/layout/layout.js.map +0 -1
- package/dist/components/server/primitives/skeleton/skeleton.cjs +0 -17
- package/dist/components/server/primitives/skeleton/skeleton.cjs.map +0 -1
- package/dist/components/server/primitives/skeleton/skeleton.d.cts +0 -10
- package/dist/components/server/primitives/skeleton/skeleton.d.ts +0 -10
- package/dist/components/server/primitives/skeleton/skeleton.js +0 -15
- package/dist/components/server/primitives/skeleton/skeleton.js.map +0 -1
- package/dist/components/server/primitives/spinner/spinner.cjs +0 -33
- package/dist/components/server/primitives/spinner/spinner.cjs.map +0 -1
- package/dist/components/server/primitives/spinner/spinner.d.cts +0 -16
- package/dist/components/server/primitives/spinner/spinner.d.ts +0 -16
- package/dist/components/server/primitives/spinner/spinner.js +0 -31
- package/dist/components/server/primitives/spinner/spinner.js.map +0 -1
- package/dist/components/server/primitives/stack/stack.cjs +0 -41
- package/dist/components/server/primitives/stack/stack.cjs.map +0 -1
- package/dist/components/server/primitives/stack/stack.d.cts +0 -15
- package/dist/components/server/primitives/stack/stack.d.ts +0 -15
- package/dist/components/server/primitives/stack/stack.js +0 -35
- package/dist/components/server/primitives/stack/stack.js.map +0 -1
- package/dist/components/server/primitives/text/internal/text-element.cjs +0 -67
- package/dist/components/server/primitives/text/internal/text-element.cjs.map +0 -1
- package/dist/components/server/primitives/text/internal/text-element.d.cts +0 -17
- package/dist/components/server/primitives/text/internal/text-element.d.ts +0 -18
- package/dist/components/server/primitives/text/internal/text-element.js +0 -62
- package/dist/components/server/primitives/text/internal/text-element.js.map +0 -1
- package/dist/components/server/primitives/text/text-div.cjs +0 -23
- package/dist/components/server/primitives/text/text-div.cjs.map +0 -1
- package/dist/components/server/primitives/text/text-div.d.cts +0 -16
- package/dist/components/server/primitives/text/text-div.d.ts +0 -16
- package/dist/components/server/primitives/text/text-div.js +0 -21
- package/dist/components/server/primitives/text/text-div.js.map +0 -1
- package/dist/components/server/primitives/text/text-heading.cjs +0 -36
- package/dist/components/server/primitives/text/text-heading.cjs.map +0 -1
- package/dist/components/server/primitives/text/text-heading.d.cts +0 -34
- package/dist/components/server/primitives/text/text-heading.d.ts +0 -34
- package/dist/components/server/primitives/text/text-heading.js +0 -31
- package/dist/components/server/primitives/text/text-heading.js.map +0 -1
- package/dist/components/server/primitives/text/text-paragraph.cjs +0 -23
- package/dist/components/server/primitives/text/text-paragraph.cjs.map +0 -1
- package/dist/components/server/primitives/text/text-paragraph.d.cts +0 -16
- package/dist/components/server/primitives/text/text-paragraph.d.ts +0 -16
- package/dist/components/server/primitives/text/text-paragraph.js +0 -21
- package/dist/components/server/primitives/text/text-paragraph.js.map +0 -1
- package/dist/components/server/primitives/text/text-span.cjs +0 -23
- package/dist/components/server/primitives/text/text-span.cjs.map +0 -1
- package/dist/components/server/primitives/text/text-span.d.cts +0 -16
- package/dist/components/server/primitives/text/text-span.d.ts +0 -16
- package/dist/components/server/primitives/text/text-span.js +0 -21
- package/dist/components/server/primitives/text/text-span.js.map +0 -1
- package/dist/components/server/primitives/text/text-time.cjs +0 -23
- package/dist/components/server/primitives/text/text-time.cjs.map +0 -1
- package/dist/components/server/primitives/text/text-time.d.cts +0 -16
- package/dist/components/server/primitives/text/text-time.d.ts +0 -16
- package/dist/components/server/primitives/text/text-time.js +0 -21
- package/dist/components/server/primitives/text/text-time.js.map +0 -1
- package/dist/css/variables-HJ1tH8SD.css +0 -63
- package/dist/css/variables-HJ1tH8SD.css.map +0 -1
- package/dist/css/variables.cjs +0 -0
- package/dist/css/variables.js +0 -1
- package/dist/lib/helpers/date.cjs +0 -11
- package/dist/lib/helpers/date.cjs.map +0 -1
- package/dist/lib/helpers/date.d.cts +0 -5
- package/dist/lib/types.d.cts +0 -6
- package/dist/main.cjs +0 -81
- package/dist/main.d.cts +0 -25
- package/dist/node_modules/lucide-react/dist/cjs/lucide-react.cjs +0 -33010
- package/dist/node_modules/lucide-react/dist/cjs/lucide-react.cjs.map +0 -1
- package/dist/node_modules/lucide-react/dist/cjs/lucide-react.js +0 -33007
- package/dist/node_modules/lucide-react/dist/cjs/lucide-react.js.map +0 -1
- package/dist/tailwind-0e8cQs9T.css +0 -219
- package/dist/tailwind-0e8cQs9T.css.map +0 -1
- package/dist/tailwind.cjs +0 -0
- package/dist/tailwind.js +0 -1
- package/dist/utils.cjs +0 -20
- package/dist/utils.cjs.map +0 -1
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const require_lucide_react$1 = require('../../../../node_modules/lucide-react/dist/cjs/lucide-react.cjs');
|
|
6
|
-
const require_utils = require('../../../../utils.cjs');
|
|
7
|
-
let react = require("react");
|
|
8
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
9
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
10
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
11
|
-
let __radix_ui_react_accordion = require("@radix-ui/react-accordion");
|
|
12
|
-
__radix_ui_react_accordion = require_rolldown_runtime.__toESM(__radix_ui_react_accordion);
|
|
13
|
-
|
|
14
|
-
//#region src/components/client/primitives/accordion/accordion.tsx
|
|
15
|
-
var import_lucide_react = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_lucide_react$1.require_lucide_react());
|
|
16
|
-
function Accordion({ ...props }) {
|
|
17
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_accordion.Root, {
|
|
18
|
-
"data-slot": "accordion",
|
|
19
|
-
...props
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
function AccordionItem({ className,...props }) {
|
|
23
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_accordion.Item, {
|
|
24
|
-
"data-slot": "accordion-item",
|
|
25
|
-
className: require_utils.cn("sg:border-b sg:last:border-b-0", className),
|
|
26
|
-
...props
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function AccordionTrigger({ className, children,...props }) {
|
|
30
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_accordion.Header, {
|
|
31
|
-
className: "sg:flex",
|
|
32
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(__radix_ui_react_accordion.Trigger, {
|
|
33
|
-
"data-slot": "accordion-trigger",
|
|
34
|
-
className: require_utils.cn("sg:focus-visible:border-ring sg:focus-visible:ring-ring/50 sg:flex sg:flex-1 sg:items-start sg:justify-between sg:gap-4 sg:rounded-md sg:py-4 sg:text-left sg:text-sm sg:font-medium sg:transition-all sg:outline-none sg:hover:underline sg:focus-visible:ring-[3px] sg:disabled:pointer-events-none sg:disabled:opacity-50 sg:[&[data-state=open]>svg]:rotate-180", className),
|
|
35
|
-
...props,
|
|
36
|
-
children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(import_lucide_react.ChevronDownIcon, { className: "sg:text-muted-foreground sg:pointer-events-none sg:size-4 sg:shrink-0 sg:translate-y-0.5 sg:transition-transform sg:duration-200" })]
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function AccordionContent({ className, children,...props }) {
|
|
41
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_accordion.Content, {
|
|
42
|
-
"data-slot": "accordion-content",
|
|
43
|
-
className: "sg:data-[state=closed]:animate-accordion-up sg:data-[state=open]:animate-accordion-down sg:overflow-hidden sg:text-sm",
|
|
44
|
-
...props,
|
|
45
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
46
|
-
className: require_utils.cn("sg:pt-0 sg:pb-4", className),
|
|
47
|
-
children
|
|
48
|
-
})
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
//#endregion
|
|
53
|
-
exports.Accordion = Accordion;
|
|
54
|
-
exports.AccordionContent = AccordionContent;
|
|
55
|
-
exports.AccordionItem = AccordionItem;
|
|
56
|
-
exports.AccordionTrigger = AccordionTrigger;
|
|
57
|
-
//# sourceMappingURL=accordion.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.cjs","names":["AccordionPrimitive","cn","ChevronDownIcon"],"sources":["../../../../../src/components/client/primitives/accordion/accordion.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { ChevronDownIcon } from \"lucide-react\";\nimport { cn } from \"../../../../utils\";\n\nfunction Accordion({\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Root>) {\n return <AccordionPrimitive.Root data-slot=\"accordion\" {...props} />;\n}\n\nfunction AccordionItem({\n className,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Item>) {\n return (\n <AccordionPrimitive.Item\n data-slot=\"accordion-item\"\n className={cn(\"sg:border-b sg:last:border-b-0\", className)}\n {...props}\n />\n );\n}\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {\n return (\n <AccordionPrimitive.Header className=\"sg:flex\">\n <AccordionPrimitive.Trigger\n data-slot=\"accordion-trigger\"\n className={cn(\n \"sg:focus-visible:border-ring sg:focus-visible:ring-ring/50 sg:flex sg:flex-1 sg:items-start sg:justify-between sg:gap-4 sg:rounded-md sg:py-4 sg:text-left sg:text-sm sg:font-medium sg:transition-all sg:outline-none sg:hover:underline sg:focus-visible:ring-[3px] sg:disabled:pointer-events-none sg:disabled:opacity-50 sg:[&[data-state=open]>svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"sg:text-muted-foreground sg:pointer-events-none sg:size-4 sg:shrink-0 sg:translate-y-0.5 sg:transition-transform sg:duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n );\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Content>) {\n return (\n <AccordionPrimitive.Content\n data-slot=\"accordion-content\"\n className=\"sg:data-[state=closed]:animate-accordion-up sg:data-[state=open]:animate-accordion-down sg:overflow-hidden sg:text-sm\"\n {...props}\n >\n <div className={cn(\"sg:pt-0 sg:pb-4\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n );\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent };\n"],"mappings":";;;;;;;;;;;;;;;AAMA,SAAS,UAAU,EACjB,GAAG,SACoD;AACvD,QAAO,2CAACA,2BAAmB;EAAK,aAAU;EAAY,GAAI;GAAS;;AAGrE,SAAS,cAAc,EACrB,UACA,GAAG,SACoD;AACvD,QACE,2CAACA,2BAAmB;EAClB,aAAU;EACV,WAAWC,iBAAG,kCAAkC,UAAU;EAC1D,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,SACA,GAAG,SACuD;AAC1D,QACE,2CAACD,2BAAmB;EAAO,WAAU;YACnC,4CAACA,2BAAmB;GAClB,aAAU;GACV,WAAWC,iBACT,uWACA,UACD;GACD,GAAI;cAEH,UACD,2CAACC,uCAAgB,WAAU,qIAAqI;IACrI;GACH;;AAIhC,SAAS,iBAAiB,EACxB,WACA,SACA,GAAG,SACuD;AAC1D,QACE,2CAACF,2BAAmB;EAClB,aAAU;EACV,WAAU;EACV,GAAI;YAEJ,2CAAC;GAAI,WAAWC,iBAAG,mBAAmB,UAAU;GAAG;IAAe;GACvC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
4
|
-
|
|
5
|
-
//#region src/components/client/primitives/accordion/accordion.d.ts
|
|
6
|
-
declare function Accordion({
|
|
7
|
-
...props
|
|
8
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime0.JSX.Element;
|
|
9
|
-
declare function AccordionItem({
|
|
10
|
-
className,
|
|
11
|
-
...props
|
|
12
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime0.JSX.Element;
|
|
13
|
-
declare function AccordionTrigger({
|
|
14
|
-
className,
|
|
15
|
-
children,
|
|
16
|
-
...props
|
|
17
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime0.JSX.Element;
|
|
18
|
-
declare function AccordionContent({
|
|
19
|
-
className,
|
|
20
|
-
children,
|
|
21
|
-
...props
|
|
22
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime0.JSX.Element;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
25
|
-
//# sourceMappingURL=accordion.d.cts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
4
|
-
|
|
5
|
-
//#region src/components/client/primitives/accordion/accordion.d.ts
|
|
6
|
-
declare function Accordion({
|
|
7
|
-
...props
|
|
8
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime18.JSX.Element;
|
|
9
|
-
declare function AccordionItem({
|
|
10
|
-
className,
|
|
11
|
-
...props
|
|
12
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime18.JSX.Element;
|
|
13
|
-
declare function AccordionTrigger({
|
|
14
|
-
className,
|
|
15
|
-
children,
|
|
16
|
-
...props
|
|
17
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime18.JSX.Element;
|
|
18
|
-
declare function AccordionContent({
|
|
19
|
-
className,
|
|
20
|
-
children,
|
|
21
|
-
...props
|
|
22
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime18.JSX.Element;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
25
|
-
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { __toESM } from "../../../../_virtual/rolldown_runtime.js";
|
|
5
|
-
import { require_lucide_react } from "../../../../node_modules/lucide-react/dist/cjs/lucide-react.js";
|
|
6
|
-
import { cn } from "../../../../utils.js";
|
|
7
|
-
import "react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
10
|
-
|
|
11
|
-
//#region src/components/client/primitives/accordion/accordion.tsx
|
|
12
|
-
var import_lucide_react = /* @__PURE__ */ __toESM(require_lucide_react());
|
|
13
|
-
function Accordion({ ...props }) {
|
|
14
|
-
return /* @__PURE__ */ jsx(AccordionPrimitive.Root, {
|
|
15
|
-
"data-slot": "accordion",
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function AccordionItem({ className,...props }) {
|
|
20
|
-
return /* @__PURE__ */ jsx(AccordionPrimitive.Item, {
|
|
21
|
-
"data-slot": "accordion-item",
|
|
22
|
-
className: cn("sg:border-b sg:last:border-b-0", className),
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function AccordionTrigger({ className, children,...props }) {
|
|
27
|
-
return /* @__PURE__ */ jsx(AccordionPrimitive.Header, {
|
|
28
|
-
className: "sg:flex",
|
|
29
|
-
children: /* @__PURE__ */ jsxs(AccordionPrimitive.Trigger, {
|
|
30
|
-
"data-slot": "accordion-trigger",
|
|
31
|
-
className: cn("sg:focus-visible:border-ring sg:focus-visible:ring-ring/50 sg:flex sg:flex-1 sg:items-start sg:justify-between sg:gap-4 sg:rounded-md sg:py-4 sg:text-left sg:text-sm sg:font-medium sg:transition-all sg:outline-none sg:hover:underline sg:focus-visible:ring-[3px] sg:disabled:pointer-events-none sg:disabled:opacity-50 sg:[&[data-state=open]>svg]:rotate-180", className),
|
|
32
|
-
...props,
|
|
33
|
-
children: [children, /* @__PURE__ */ jsx(import_lucide_react.ChevronDownIcon, { className: "sg:text-muted-foreground sg:pointer-events-none sg:size-4 sg:shrink-0 sg:translate-y-0.5 sg:transition-transform sg:duration-200" })]
|
|
34
|
-
})
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function AccordionContent({ className, children,...props }) {
|
|
38
|
-
return /* @__PURE__ */ jsx(AccordionPrimitive.Content, {
|
|
39
|
-
"data-slot": "accordion-content",
|
|
40
|
-
className: "sg:data-[state=closed]:animate-accordion-up sg:data-[state=open]:animate-accordion-down sg:overflow-hidden sg:text-sm",
|
|
41
|
-
...props,
|
|
42
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
43
|
-
className: cn("sg:pt-0 sg:pb-4", className),
|
|
44
|
-
children
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
//#endregion
|
|
50
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
51
|
-
//# sourceMappingURL=accordion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.js","names":["ChevronDownIcon"],"sources":["../../../../../src/components/client/primitives/accordion/accordion.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\";\nimport { ChevronDownIcon } from \"lucide-react\";\nimport { cn } from \"../../../../utils\";\n\nfunction Accordion({\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Root>) {\n return <AccordionPrimitive.Root data-slot=\"accordion\" {...props} />;\n}\n\nfunction AccordionItem({\n className,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Item>) {\n return (\n <AccordionPrimitive.Item\n data-slot=\"accordion-item\"\n className={cn(\"sg:border-b sg:last:border-b-0\", className)}\n {...props}\n />\n );\n}\n\nfunction AccordionTrigger({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Trigger>) {\n return (\n <AccordionPrimitive.Header className=\"sg:flex\">\n <AccordionPrimitive.Trigger\n data-slot=\"accordion-trigger\"\n className={cn(\n \"sg:focus-visible:border-ring sg:focus-visible:ring-ring/50 sg:flex sg:flex-1 sg:items-start sg:justify-between sg:gap-4 sg:rounded-md sg:py-4 sg:text-left sg:text-sm sg:font-medium sg:transition-all sg:outline-none sg:hover:underline sg:focus-visible:ring-[3px] sg:disabled:pointer-events-none sg:disabled:opacity-50 sg:[&[data-state=open]>svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"sg:text-muted-foreground sg:pointer-events-none sg:size-4 sg:shrink-0 sg:translate-y-0.5 sg:transition-transform sg:duration-200\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n );\n}\n\nfunction AccordionContent({\n className,\n children,\n ...props\n}: React.ComponentProps<typeof AccordionPrimitive.Content>) {\n return (\n <AccordionPrimitive.Content\n data-slot=\"accordion-content\"\n className=\"sg:data-[state=closed]:animate-accordion-up sg:data-[state=open]:animate-accordion-down sg:overflow-hidden sg:text-sm\"\n {...props}\n >\n <div className={cn(\"sg:pt-0 sg:pb-4\", className)}>{children}</div>\n </AccordionPrimitive.Content>\n );\n}\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent };\n"],"mappings":";;;;;;;;;;;;AAMA,SAAS,UAAU,EACjB,GAAG,SACoD;AACvD,QAAO,oBAAC,mBAAmB;EAAK,aAAU;EAAY,GAAI;GAAS;;AAGrE,SAAS,cAAc,EACrB,UACA,GAAG,SACoD;AACvD,QACE,oBAAC,mBAAmB;EAClB,aAAU;EACV,WAAW,GAAG,kCAAkC,UAAU;EAC1D,GAAI;GACJ;;AAIN,SAAS,iBAAiB,EACxB,WACA,SACA,GAAG,SACuD;AAC1D,QACE,oBAAC,mBAAmB;EAAO,WAAU;YACnC,qBAAC,mBAAmB;GAClB,aAAU;GACV,WAAW,GACT,uWACA,UACD;GACD,GAAI;cAEH,UACD,oBAACA,uCAAgB,WAAU,qIAAqI;IACrI;GACH;;AAIhC,SAAS,iBAAiB,EACxB,WACA,SACA,GAAG,SACuD;AAC1D,QACE,oBAAC,mBAAmB;EAClB,aAAU;EACV,WAAU;EACV,GAAI;YAEJ,oBAAC;GAAI,WAAW,GAAG,mBAAmB,UAAU;GAAG;IAAe;GACvC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./accordion/accordion.js";
|
|
2
|
-
import { Separator } from "./separator/separator.js";
|
|
3
|
-
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "./table/table.js";
|
|
4
|
-
import { UiImage } from "./ui-image.js";
|
|
5
|
-
|
|
6
|
-
export { };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const require_utils = require('../../../../utils.cjs');
|
|
6
|
-
let react = require("react");
|
|
7
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
|
-
let __radix_ui_react_separator = require("@radix-ui/react-separator");
|
|
11
|
-
__radix_ui_react_separator = require_rolldown_runtime.__toESM(__radix_ui_react_separator);
|
|
12
|
-
|
|
13
|
-
//#region src/components/client/primitives/separator/separator.tsx
|
|
14
|
-
function Separator({ className, orientation = "horizontal", decorative = true,...props }) {
|
|
15
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_separator.Root, {
|
|
16
|
-
"data-slot": "separator",
|
|
17
|
-
decorative,
|
|
18
|
-
orientation,
|
|
19
|
-
className: require_utils.cn("sg:bg-border sg:shrink-0 sg:data-[orientation=horizontal]:h-px sg:data-[orientation=horizontal]:w-full sg:data-[orientation=vertical]:h-full sg:data-[orientation=vertical]:w-px sg:my-4", className),
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
exports.Separator = Separator;
|
|
26
|
-
//# sourceMappingURL=separator.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"separator.cjs","names":["SeparatorPrimitive","cn"],"sources":["../../../../../src/components/client/primitives/separator/separator.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport { cn } from \"../../../../utils\";\n\nexport function Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"sg:bg-border sg:shrink-0 sg:data-[orientation=horizontal]:h-px sg:data-[orientation=horizontal]:w-full sg:data-[orientation=vertical]:h-full sg:data-[orientation=vertical]:w-px sg:my-4\",\n className\n )}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAMA,SAAgB,UAAU,EACxB,WACA,cAAc,cACd,aAAa,KACb,GAAG,SACoD;AACvD,QACE,2CAACA,2BAAmB;EAClB,aAAU;EACE;EACC;EACb,WAAWC,iBACT,4LACA,UACD;EACD,GAAI;GACJ"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
3
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
4
|
-
|
|
5
|
-
//#region src/components/client/primitives/separator/separator.d.ts
|
|
6
|
-
declare function Separator({
|
|
7
|
-
className,
|
|
8
|
-
orientation,
|
|
9
|
-
decorative,
|
|
10
|
-
...props
|
|
11
|
-
}: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime11.JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Separator };
|
|
14
|
-
//# sourceMappingURL=separator.d.cts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
3
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
4
|
-
|
|
5
|
-
//#region src/components/client/primitives/separator/separator.d.ts
|
|
6
|
-
declare function Separator({
|
|
7
|
-
className,
|
|
8
|
-
orientation,
|
|
9
|
-
decorative,
|
|
10
|
-
...props
|
|
11
|
-
}: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime30.JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { Separator };
|
|
14
|
-
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../../../utils.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
8
|
-
|
|
9
|
-
//#region src/components/client/primitives/separator/separator.tsx
|
|
10
|
-
function Separator({ className, orientation = "horizontal", decorative = true,...props }) {
|
|
11
|
-
return /* @__PURE__ */ jsx(SeparatorPrimitive.Root, {
|
|
12
|
-
"data-slot": "separator",
|
|
13
|
-
decorative,
|
|
14
|
-
orientation,
|
|
15
|
-
className: cn("sg:bg-border sg:shrink-0 sg:data-[orientation=horizontal]:h-px sg:data-[orientation=horizontal]:w-full sg:data-[orientation=vertical]:h-full sg:data-[orientation=vertical]:w-px sg:my-4", className),
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { Separator };
|
|
22
|
-
//# sourceMappingURL=separator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"separator.js","names":[],"sources":["../../../../../src/components/client/primitives/separator/separator.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport { cn } from \"../../../../utils\";\n\nexport function Separator({\n className,\n orientation = \"horizontal\",\n decorative = true,\n ...props\n}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {\n return (\n <SeparatorPrimitive.Root\n data-slot=\"separator\"\n decorative={decorative}\n orientation={orientation}\n className={cn(\n \"sg:bg-border sg:shrink-0 sg:data-[orientation=horizontal]:h-px sg:data-[orientation=horizontal]:w-full sg:data-[orientation=vertical]:h-full sg:data-[orientation=vertical]:w-px sg:my-4\",\n className\n )}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;;;;;AAMA,SAAgB,UAAU,EACxB,WACA,cAAc,cACd,aAAa,KACb,GAAG,SACoD;AACvD,QACE,oBAAC,mBAAmB;EAClB,aAAU;EACE;EACC;EACb,WAAW,GACT,4LACA,UACD;EACD,GAAI;GACJ"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const require_utils = require('../../../../utils.cjs');
|
|
6
|
-
let react = require("react");
|
|
7
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
|
-
|
|
11
|
-
//#region src/components/client/primitives/table/table.tsx
|
|
12
|
-
function Table({ className,...props }) {
|
|
13
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
14
|
-
"data-slot": "table-container",
|
|
15
|
-
className: "sg:relative sg:w-full sg:overflow-x-auto",
|
|
16
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("table", {
|
|
17
|
-
"data-slot": "table",
|
|
18
|
-
className: require_utils.cn("sg:w-full sg:caption-bottom sg:text-sm", className),
|
|
19
|
-
...props
|
|
20
|
-
})
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function TableHeader({ className,...props }) {
|
|
24
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("thead", {
|
|
25
|
-
"data-slot": "table-header",
|
|
26
|
-
className: require_utils.cn("sg:[&_tr]:border-b", className),
|
|
27
|
-
...props
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function TableBody({ className,...props }) {
|
|
31
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tbody", {
|
|
32
|
-
"data-slot": "table-body",
|
|
33
|
-
className: require_utils.cn("sg:[&_tr:last-child]:border-0", className),
|
|
34
|
-
...props
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function TableFooter({ className,...props }) {
|
|
38
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tfoot", {
|
|
39
|
-
"data-slot": "table-footer",
|
|
40
|
-
className: require_utils.cn("sg:bg-muted/50 sg:border-t sg:font-medium sg:[&>tr]:last:border-b-0", className),
|
|
41
|
-
...props
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
function TableRow({ className,...props }) {
|
|
45
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("tr", {
|
|
46
|
-
"data-slot": "table-row",
|
|
47
|
-
className: require_utils.cn("sg:hover:bg-muted/50 sg:data-[state=selected]:bg-muted sg:border-b sg:transition-colors", className),
|
|
48
|
-
...props
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
function TableHead({ className,...props }) {
|
|
52
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("th", {
|
|
53
|
-
"data-slot": "table-head",
|
|
54
|
-
className: require_utils.cn("sg:text-foreground sg:h-10 sg:px-2 sg:text-left sg:align-middle sg:font-medium sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]", className),
|
|
55
|
-
...props
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function TableCell({ className,...props }) {
|
|
59
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("td", {
|
|
60
|
-
"data-slot": "table-cell",
|
|
61
|
-
className: require_utils.cn("sg:p-2 sg:align-middle sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]", className),
|
|
62
|
-
...props
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
function TableCaption({ className,...props }) {
|
|
66
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("caption", {
|
|
67
|
-
"data-slot": "table-caption",
|
|
68
|
-
className: require_utils.cn("sg:text-muted-foreground sg:mt-4 sg:text-sm", className),
|
|
69
|
-
...props
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
//#endregion
|
|
74
|
-
exports.Table = Table;
|
|
75
|
-
exports.TableBody = TableBody;
|
|
76
|
-
exports.TableCaption = TableCaption;
|
|
77
|
-
exports.TableCell = TableCell;
|
|
78
|
-
exports.TableFooter = TableFooter;
|
|
79
|
-
exports.TableHead = TableHead;
|
|
80
|
-
exports.TableHeader = TableHeader;
|
|
81
|
-
exports.TableRow = TableRow;
|
|
82
|
-
//# sourceMappingURL=table.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.cjs","names":["cn"],"sources":["../../../../../src/components/client/primitives/table/table.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"../../../../utils\";\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div\n data-slot=\"table-container\"\n className=\"sg:relative sg:w-full sg:overflow-x-auto\"\n >\n <table\n data-slot=\"table\"\n className={cn(\"sg:w-full sg:caption-bottom sg:text-sm\", className)}\n {...props}\n />\n </div>\n );\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return (\n <thead\n data-slot=\"table-header\"\n className={cn(\"sg:[&_tr]:border-b\", className)}\n {...props}\n />\n );\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"sg:[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n );\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\n \"sg:bg-muted/50 sg:border-t sg:font-medium sg:[&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"sg:hover:bg-muted/50 sg:data-[state=selected]:bg-muted sg:border-b sg:transition-colors\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n \"sg:text-foreground sg:h-10 sg:px-2 sg:text-left sg:align-middle sg:font-medium sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\n \"sg:p-2 sg:align-middle sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableCaption({\n className,\n ...props\n}: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"sg:text-muted-foreground sg:mt-4 sg:text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n};\n"],"mappings":";;;;;;;;;;;AAKA,SAAS,MAAM,EAAE,UAAW,GAAG,SAAwC;AACrE,QACE,2CAAC;EACC,aAAU;EACV,WAAU;YAEV,2CAAC;GACC,aAAU;GACV,WAAWA,iBAAG,0CAA0C,UAAU;GAClE,GAAI;IACJ;GACE;;AAIV,SAAS,YAAY,EAAE,UAAW,GAAG,SAAwC;AAC3E,QACE,2CAAC;EACC,aAAU;EACV,WAAWA,iBAAG,sBAAsB,UAAU;EAC9C,GAAI;GACJ;;AAIN,SAAS,UAAU,EAAE,UAAW,GAAG,SAAwC;AACzE,QACE,2CAAC;EACC,aAAU;EACV,WAAWA,iBAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,UAAW,GAAG,SAAwC;AAC3E,QACE,2CAAC;EACC,aAAU;EACV,WAAWA,iBACT,uEACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,SAAS,EAAE,UAAW,GAAG,SAAqC;AACrE,QACE,2CAAC;EACC,aAAU;EACV,WAAWA,iBACT,2FACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,UAAU,EAAE,UAAW,GAAG,SAAqC;AACtE,QACE,2CAAC;EACC,aAAU;EACV,WAAWA,iBACT,iLACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,UAAU,EAAE,UAAW,GAAG,SAAqC;AACtE,QACE,2CAAC;EACC,aAAU;EACV,WAAWA,iBACT,yHACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,aAAa,EACpB,UACA,GAAG,SAC+B;AAClC,QACE,2CAAC;EACC,aAAU;EACV,WAAWA,iBAAG,+CAA+C,UAAU;EACvE,GAAI;GACJ"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/client/primitives/table/table.d.ts
|
|
5
|
-
declare function Table({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}: React$1.ComponentProps<"table">): react_jsx_runtime3.JSX.Element;
|
|
9
|
-
declare function TableHeader({
|
|
10
|
-
className,
|
|
11
|
-
...props
|
|
12
|
-
}: React$1.ComponentProps<"thead">): react_jsx_runtime3.JSX.Element;
|
|
13
|
-
declare function TableBody({
|
|
14
|
-
className,
|
|
15
|
-
...props
|
|
16
|
-
}: React$1.ComponentProps<"tbody">): react_jsx_runtime3.JSX.Element;
|
|
17
|
-
declare function TableFooter({
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}: React$1.ComponentProps<"tfoot">): react_jsx_runtime3.JSX.Element;
|
|
21
|
-
declare function TableRow({
|
|
22
|
-
className,
|
|
23
|
-
...props
|
|
24
|
-
}: React$1.ComponentProps<"tr">): react_jsx_runtime3.JSX.Element;
|
|
25
|
-
declare function TableHead({
|
|
26
|
-
className,
|
|
27
|
-
...props
|
|
28
|
-
}: React$1.ComponentProps<"th">): react_jsx_runtime3.JSX.Element;
|
|
29
|
-
declare function TableCell({
|
|
30
|
-
className,
|
|
31
|
-
...props
|
|
32
|
-
}: React$1.ComponentProps<"td">): react_jsx_runtime3.JSX.Element;
|
|
33
|
-
declare function TableCaption({
|
|
34
|
-
className,
|
|
35
|
-
...props
|
|
36
|
-
}: React$1.ComponentProps<"caption">): react_jsx_runtime3.JSX.Element;
|
|
37
|
-
//#endregion
|
|
38
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
39
|
-
//# sourceMappingURL=table.d.cts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/client/primitives/table/table.d.ts
|
|
5
|
-
declare function Table({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}: React$1.ComponentProps<"table">): react_jsx_runtime22.JSX.Element;
|
|
9
|
-
declare function TableHeader({
|
|
10
|
-
className,
|
|
11
|
-
...props
|
|
12
|
-
}: React$1.ComponentProps<"thead">): react_jsx_runtime22.JSX.Element;
|
|
13
|
-
declare function TableBody({
|
|
14
|
-
className,
|
|
15
|
-
...props
|
|
16
|
-
}: React$1.ComponentProps<"tbody">): react_jsx_runtime22.JSX.Element;
|
|
17
|
-
declare function TableFooter({
|
|
18
|
-
className,
|
|
19
|
-
...props
|
|
20
|
-
}: React$1.ComponentProps<"tfoot">): react_jsx_runtime22.JSX.Element;
|
|
21
|
-
declare function TableRow({
|
|
22
|
-
className,
|
|
23
|
-
...props
|
|
24
|
-
}: React$1.ComponentProps<"tr">): react_jsx_runtime22.JSX.Element;
|
|
25
|
-
declare function TableHead({
|
|
26
|
-
className,
|
|
27
|
-
...props
|
|
28
|
-
}: React$1.ComponentProps<"th">): react_jsx_runtime22.JSX.Element;
|
|
29
|
-
declare function TableCell({
|
|
30
|
-
className,
|
|
31
|
-
...props
|
|
32
|
-
}: React$1.ComponentProps<"td">): react_jsx_runtime22.JSX.Element;
|
|
33
|
-
declare function TableCaption({
|
|
34
|
-
className,
|
|
35
|
-
...props
|
|
36
|
-
}: React$1.ComponentProps<"caption">): react_jsx_runtime22.JSX.Element;
|
|
37
|
-
//#endregion
|
|
38
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
39
|
-
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../../../utils.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
//#region src/components/client/primitives/table/table.tsx
|
|
9
|
-
function Table({ className,...props }) {
|
|
10
|
-
return /* @__PURE__ */ jsx("div", {
|
|
11
|
-
"data-slot": "table-container",
|
|
12
|
-
className: "sg:relative sg:w-full sg:overflow-x-auto",
|
|
13
|
-
children: /* @__PURE__ */ jsx("table", {
|
|
14
|
-
"data-slot": "table",
|
|
15
|
-
className: cn("sg:w-full sg:caption-bottom sg:text-sm", className),
|
|
16
|
-
...props
|
|
17
|
-
})
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function TableHeader({ className,...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx("thead", {
|
|
22
|
-
"data-slot": "table-header",
|
|
23
|
-
className: cn("sg:[&_tr]:border-b", className),
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function TableBody({ className,...props }) {
|
|
28
|
-
return /* @__PURE__ */ jsx("tbody", {
|
|
29
|
-
"data-slot": "table-body",
|
|
30
|
-
className: cn("sg:[&_tr:last-child]:border-0", className),
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function TableFooter({ className,...props }) {
|
|
35
|
-
return /* @__PURE__ */ jsx("tfoot", {
|
|
36
|
-
"data-slot": "table-footer",
|
|
37
|
-
className: cn("sg:bg-muted/50 sg:border-t sg:font-medium sg:[&>tr]:last:border-b-0", className),
|
|
38
|
-
...props
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
function TableRow({ className,...props }) {
|
|
42
|
-
return /* @__PURE__ */ jsx("tr", {
|
|
43
|
-
"data-slot": "table-row",
|
|
44
|
-
className: cn("sg:hover:bg-muted/50 sg:data-[state=selected]:bg-muted sg:border-b sg:transition-colors", className),
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function TableHead({ className,...props }) {
|
|
49
|
-
return /* @__PURE__ */ jsx("th", {
|
|
50
|
-
"data-slot": "table-head",
|
|
51
|
-
className: cn("sg:text-foreground sg:h-10 sg:px-2 sg:text-left sg:align-middle sg:font-medium sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]", className),
|
|
52
|
-
...props
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function TableCell({ className,...props }) {
|
|
56
|
-
return /* @__PURE__ */ jsx("td", {
|
|
57
|
-
"data-slot": "table-cell",
|
|
58
|
-
className: cn("sg:p-2 sg:align-middle sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]", className),
|
|
59
|
-
...props
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function TableCaption({ className,...props }) {
|
|
63
|
-
return /* @__PURE__ */ jsx("caption", {
|
|
64
|
-
"data-slot": "table-caption",
|
|
65
|
-
className: cn("sg:text-muted-foreground sg:mt-4 sg:text-sm", className),
|
|
66
|
-
...props
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
//#endregion
|
|
71
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
72
|
-
//# sourceMappingURL=table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","names":[],"sources":["../../../../../src/components/client/primitives/table/table.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"../../../../utils\";\n\nfunction Table({ className, ...props }: React.ComponentProps<\"table\">) {\n return (\n <div\n data-slot=\"table-container\"\n className=\"sg:relative sg:w-full sg:overflow-x-auto\"\n >\n <table\n data-slot=\"table\"\n className={cn(\"sg:w-full sg:caption-bottom sg:text-sm\", className)}\n {...props}\n />\n </div>\n );\n}\n\nfunction TableHeader({ className, ...props }: React.ComponentProps<\"thead\">) {\n return (\n <thead\n data-slot=\"table-header\"\n className={cn(\"sg:[&_tr]:border-b\", className)}\n {...props}\n />\n );\n}\n\nfunction TableBody({ className, ...props }: React.ComponentProps<\"tbody\">) {\n return (\n <tbody\n data-slot=\"table-body\"\n className={cn(\"sg:[&_tr:last-child]:border-0\", className)}\n {...props}\n />\n );\n}\n\nfunction TableFooter({ className, ...props }: React.ComponentProps<\"tfoot\">) {\n return (\n <tfoot\n data-slot=\"table-footer\"\n className={cn(\n \"sg:bg-muted/50 sg:border-t sg:font-medium sg:[&>tr]:last:border-b-0\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableRow({ className, ...props }: React.ComponentProps<\"tr\">) {\n return (\n <tr\n data-slot=\"table-row\"\n className={cn(\n \"sg:hover:bg-muted/50 sg:data-[state=selected]:bg-muted sg:border-b sg:transition-colors\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableHead({ className, ...props }: React.ComponentProps<\"th\">) {\n return (\n <th\n data-slot=\"table-head\"\n className={cn(\n \"sg:text-foreground sg:h-10 sg:px-2 sg:text-left sg:align-middle sg:font-medium sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableCell({ className, ...props }: React.ComponentProps<\"td\">) {\n return (\n <td\n data-slot=\"table-cell\"\n className={cn(\n \"sg:p-2 sg:align-middle sg:whitespace-nowrap sg:[&:has([role=checkbox])]:pr-0 sg:[&>[role=checkbox]]:translate-y-[2px]\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction TableCaption({\n className,\n ...props\n}: React.ComponentProps<\"caption\">) {\n return (\n <caption\n data-slot=\"table-caption\"\n className={cn(\"sg:text-muted-foreground sg:mt-4 sg:text-sm\", className)}\n {...props}\n />\n );\n}\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n};\n"],"mappings":";;;;;;;;AAKA,SAAS,MAAM,EAAE,UAAW,GAAG,SAAwC;AACrE,QACE,oBAAC;EACC,aAAU;EACV,WAAU;YAEV,oBAAC;GACC,aAAU;GACV,WAAW,GAAG,0CAA0C,UAAU;GAClE,GAAI;IACJ;GACE;;AAIV,SAAS,YAAY,EAAE,UAAW,GAAG,SAAwC;AAC3E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,sBAAsB,UAAU;EAC9C,GAAI;GACJ;;AAIN,SAAS,UAAU,EAAE,UAAW,GAAG,SAAwC;AACzE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,iCAAiC,UAAU;EACzD,GAAI;GACJ;;AAIN,SAAS,YAAY,EAAE,UAAW,GAAG,SAAwC;AAC3E,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,uEACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,SAAS,EAAE,UAAW,GAAG,SAAqC;AACrE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,2FACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,UAAU,EAAE,UAAW,GAAG,SAAqC;AACtE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,iLACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,UAAU,EAAE,UAAW,GAAG,SAAqC;AACtE,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GACT,yHACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,aAAa,EACpB,UACA,GAAG,SAC+B;AAClC,QACE,oBAAC;EACC,aAAU;EACV,WAAW,GAAG,+CAA+C,UAAU;EACvE,GAAI;GACJ"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const require_rolldown_runtime = require('../../../_virtual/rolldown_runtime.cjs');
|
|
5
|
-
const require_ImageContext = require('../providers/ImageContext.cjs');
|
|
6
|
-
let react = require("react");
|
|
7
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
|
-
|
|
11
|
-
//#region src/components/client/primitives/ui-image.tsx
|
|
12
|
-
const UiImage = (props) => {
|
|
13
|
-
const [isClient, setIsClient] = (0, react.useState)(false);
|
|
14
|
-
const ImageComponent = require_ImageContext.useImage();
|
|
15
|
-
(0, react.useEffect)(() => {
|
|
16
|
-
setIsClient(true);
|
|
17
|
-
}, []);
|
|
18
|
-
if (!isClient) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", { ...props });
|
|
19
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageComponent, { ...props });
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
//#endregion
|
|
23
|
-
exports.UiImage = UiImage;
|
|
24
|
-
//# sourceMappingURL=ui-image.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-image.cjs","names":["UiImage: React.FC<BaseImageProps>","useImage"],"sources":["../../../../src/components/client/primitives/ui-image.tsx"],"sourcesContent":["\"use client\";\r\nimport React, { useEffect, useState } from \"react\";\r\nimport { BaseImageProps, useImage } from \"../providers/ImageContext\";\r\n\r\nexport const UiImage: React.FC<BaseImageProps> = (props) => {\r\n const [isClient, setIsClient] = useState(false);\r\n const ImageComponent = useImage();\r\n\r\n useEffect(() => {\r\n setIsClient(true);\r\n }, []);\r\n\r\n if (!isClient) {\r\n return <img {...props} />;\r\n }\r\n\r\n return <ImageComponent {...props} />;\r\n};\r\n"],"mappings":";;;;;;;;;;;AAIA,MAAaA,WAAqC,UAAU;CAC1D,MAAM,CAAC,UAAU,mCAAwB,MAAM;CAC/C,MAAM,iBAAiBC,+BAAU;AAEjC,4BAAgB;AACd,cAAY,KAAK;IAChB,EAAE,CAAC;AAEN,KAAI,CAAC,SACH,QAAO,2CAAC,SAAI,GAAI,QAAS;AAG3B,QAAO,2CAAC,kBAAe,GAAI,QAAS"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseImageProps } from "../providers/ImageContext.cjs";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/client/primitives/ui-image.d.ts
|
|
5
|
-
declare const UiImage: React.FC<BaseImageProps>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { UiImage };
|
|
8
|
-
//# sourceMappingURL=ui-image.d.cts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BaseImageProps } from "../providers/ImageContext.js";
|
|
2
|
-
import React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/client/primitives/ui-image.d.ts
|
|
5
|
-
declare const UiImage: React.FC<BaseImageProps>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { UiImage };
|
|
8
|
-
//# sourceMappingURL=ui-image.d.ts.map
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { useImage } from "../providers/ImageContext.js";
|
|
5
|
-
import React, { useEffect, useState } from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
//#region src/components/client/primitives/ui-image.tsx
|
|
9
|
-
const UiImage = (props) => {
|
|
10
|
-
const [isClient, setIsClient] = useState(false);
|
|
11
|
-
const ImageComponent = useImage();
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
setIsClient(true);
|
|
14
|
-
}, []);
|
|
15
|
-
if (!isClient) return /* @__PURE__ */ jsx("img", { ...props });
|
|
16
|
-
return /* @__PURE__ */ jsx(ImageComponent, { ...props });
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { UiImage };
|
|
21
|
-
//# sourceMappingURL=ui-image.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ui-image.js","names":["UiImage: React.FC<BaseImageProps>"],"sources":["../../../../src/components/client/primitives/ui-image.tsx"],"sourcesContent":["\"use client\";\r\nimport React, { useEffect, useState } from \"react\";\r\nimport { BaseImageProps, useImage } from \"../providers/ImageContext\";\r\n\r\nexport const UiImage: React.FC<BaseImageProps> = (props) => {\r\n const [isClient, setIsClient] = useState(false);\r\n const ImageComponent = useImage();\r\n\r\n useEffect(() => {\r\n setIsClient(true);\r\n }, []);\r\n\r\n if (!isClient) {\r\n return <img {...props} />;\r\n }\r\n\r\n return <ImageComponent {...props} />;\r\n};\r\n"],"mappings":";;;;;;;;AAIA,MAAaA,WAAqC,UAAU;CAC1D,MAAM,CAAC,UAAU,eAAe,SAAS,MAAM;CAC/C,MAAM,iBAAiB,UAAU;AAEjC,iBAAgB;AACd,cAAY,KAAK;IAChB,EAAE,CAAC;AAEN,KAAI,CAAC,SACH,QAAO,oBAAC,SAAI,GAAI,QAAS;AAG3B,QAAO,oBAAC,kBAAe,GAAI,QAAS"}
|