moduix 0.11.1 → 0.11.3
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/LICENSE.md +21 -0
- package/README.md +6 -3
- package/dist/components/Field/Field.css +1 -0
- package/dist/components/Input/Input.css +16 -16
- package/dist/components/NavigationMenu/NavigationMenu.css +2 -1
- package/package.json +6 -6
- package/dist/_virtual/_rolldown/runtime.cjs +0 -23
- package/dist/components/Accordion/Accordion.cjs +0 -65
- package/dist/components/Accordion/Accordion.module.cjs +0 -12
- package/dist/components/Alert/Alert.cjs +0 -50
- package/dist/components/Alert/Alert.module.cjs +0 -11
- package/dist/components/AlertDialog/AlertDialog.cjs +0 -122
- package/dist/components/AlertDialog/AlertDialog.module.cjs +0 -18
- package/dist/components/AspectRatio/AspectRatio.cjs +0 -24
- package/dist/components/AspectRatio/AspectRatio.module.cjs +0 -5
- package/dist/components/Autocomplete/Autocomplete.cjs +0 -303
- package/dist/components/Autocomplete/Autocomplete.module.cjs +0 -37
- package/dist/components/Avatar/Avatar.cjs +0 -31
- package/dist/components/Avatar/Avatar.module.cjs +0 -9
- package/dist/components/Badge/Badge.cjs +0 -25
- package/dist/components/Badge/Badge.module.cjs +0 -8
- package/dist/components/Bleed/Bleed.cjs +0 -17
- package/dist/components/Bleed/Bleed.module.cjs +0 -5
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +0 -72
- package/dist/components/Breadcrumbs/Breadcrumbs.module.cjs +0 -13
- package/dist/components/Button/Button.cjs +0 -18
- package/dist/components/Button/Button.module.cjs +0 -5
- package/dist/components/Card/Card.cjs +0 -81
- package/dist/components/Card/Card.module.cjs +0 -14
- package/dist/components/Checkbox/Checkbox.cjs +0 -63
- package/dist/components/Checkbox/Checkbox.module.cjs +0 -13
- package/dist/components/CheckboxGroup/CheckboxGroup.cjs +0 -55
- package/dist/components/CheckboxGroup/CheckboxGroup.module.cjs +0 -11
- package/dist/components/CloseButton/CloseButton.cjs +0 -22
- package/dist/components/CloseButton/CloseButton.module.cjs +0 -5
- package/dist/components/Collapsible/Collapsible.cjs +0 -47
- package/dist/components/Collapsible/Collapsible.module.cjs +0 -10
- package/dist/components/Combobox/Combobox.cjs +0 -330
- package/dist/components/Combobox/Combobox.module.cjs +0 -42
- package/dist/components/CommandPalette/CommandPalette.cjs +0 -304
- package/dist/components/CommandPalette/CommandPalette.module.cjs +0 -30
- package/dist/components/Container/Container.cjs +0 -17
- package/dist/components/Container/Container.module.cjs +0 -5
- package/dist/components/ContextMenu/ContextMenu.cjs +0 -241
- package/dist/components/ContextMenu/ContextMenu.module.cjs +0 -33
- package/dist/components/CopyButton/CopyButton.cjs +0 -66
- package/dist/components/CopyButton/CopyButton.module.cjs +0 -5
- package/dist/components/Dialog/Dialog.cjs +0 -136
- package/dist/components/Dialog/Dialog.module.cjs +0 -18
- package/dist/components/Drawer/Drawer.cjs +0 -202
- package/dist/components/Drawer/Drawer.module.cjs +0 -24
- package/dist/components/Empty/Empty.cjs +0 -55
- package/dist/components/Empty/Empty.module.cjs +0 -12
- package/dist/components/Field/Field.cjs +0 -56
- package/dist/components/Field/Field.module.cjs +0 -12
- package/dist/components/Fieldset/Fieldset.cjs +0 -22
- package/dist/components/Fieldset/Fieldset.module.cjs +0 -8
- package/dist/components/Form/Form.cjs +0 -16
- package/dist/components/Form/Form.module.cjs +0 -5
- package/dist/components/Heading/Heading.cjs +0 -25
- package/dist/components/Heading/Heading.module.cjs +0 -5
- package/dist/components/Input/Input.cjs +0 -18
- package/dist/components/Input/Input.module.cjs +0 -5
- package/dist/components/InputGroup/InputGroup.cjs +0 -77
- package/dist/components/InputGroup/InputGroup.module.cjs +0 -11
- package/dist/components/Kbd/Kbd.cjs +0 -23
- package/dist/components/Kbd/Kbd.module.cjs +0 -8
- package/dist/components/Lightbox/Lightbox.cjs +0 -220
- package/dist/components/Lightbox/Lightbox.module.cjs +0 -14
- package/dist/components/List/List.cjs +0 -31
- package/dist/components/List/List.module.cjs +0 -5
- package/dist/components/Menu/Menu.cjs +0 -260
- package/dist/components/Menu/Menu.module.cjs +0 -36
- package/dist/components/Menubar/Menubar.cjs +0 -261
- package/dist/components/Menubar/Menubar.module.cjs +0 -36
- package/dist/components/Meter/Meter.cjs +0 -60
- package/dist/components/Meter/Meter.module.cjs +0 -11
- package/dist/components/NavigationMenu/NavigationMenu.cjs +0 -146
- package/dist/components/NavigationMenu/NavigationMenu.module.cjs +0 -21
- package/dist/components/NumberField/NumberField.cjs +0 -82
- package/dist/components/NumberField/NumberField.module.cjs +0 -13
- package/dist/components/OTPField/OTPField.cjs +0 -41
- package/dist/components/OTPField/OTPField.module.cjs +0 -9
- package/dist/components/Pagination/Pagination.cjs +0 -123
- package/dist/components/Pagination/Pagination.module.cjs +0 -16
- package/dist/components/PasswordInput/PasswordInput.cjs +0 -47
- package/dist/components/PasswordInput/PasswordInput.module.cjs +0 -9
- package/dist/components/Popover/Popover.cjs +0 -146
- package/dist/components/Popover/Popover.module.cjs +0 -22
- package/dist/components/PreviewCard/PreviewCard.cjs +0 -96
- package/dist/components/PreviewCard/PreviewCard.module.cjs +0 -16
- package/dist/components/Progress/Progress.cjs +0 -60
- package/dist/components/Progress/Progress.module.cjs +0 -12
- package/dist/components/Radio/Radio.cjs +0 -78
- package/dist/components/Radio/Radio.module.cjs +0 -14
- package/dist/components/Rating/Rating.cjs +0 -61
- package/dist/components/Rating/Rating.module.cjs +0 -9
- package/dist/components/ScrollArea/ScrollArea.cjs +0 -82
- package/dist/components/ScrollArea/ScrollArea.module.cjs +0 -12
- package/dist/components/Select/Select.cjs +0 -219
- package/dist/components/Select/Select.module.cjs +0 -33
- package/dist/components/Separator/Separator.cjs +0 -16
- package/dist/components/Separator/Separator.module.cjs +0 -5
- package/dist/components/Skeleton/Skeleton.cjs +0 -25
- package/dist/components/Skeleton/Skeleton.module.cjs +0 -5
- package/dist/components/Slider/Slider.cjs +0 -106
- package/dist/components/Slider/Slider.module.cjs +0 -13
- package/dist/components/SnapCarousel/SnapCarousel.cjs +0 -130
- package/dist/components/SnapCarousel/SnapCarousel.module.cjs +0 -13
- package/dist/components/Spinner/Spinner.cjs +0 -30
- package/dist/components/Spinner/Spinner.module.cjs +0 -9
- package/dist/components/SplitButton/SplitButton.cjs +0 -69
- package/dist/components/SplitButton/SplitButton.module.cjs +0 -9
- package/dist/components/Stack/Stack.cjs +0 -27
- package/dist/components/Stack/Stack.module.cjs +0 -5
- package/dist/components/Stepper/Stepper.cjs +0 -138
- package/dist/components/Stepper/Stepper.module.cjs +0 -14
- package/dist/components/Switch/Switch.cjs +0 -43
- package/dist/components/Switch/Switch.module.cjs +0 -10
- package/dist/components/Table/Table.cjs +0 -96
- package/dist/components/Table/Table.module.cjs +0 -18
- package/dist/components/Tabs/Tabs.cjs +0 -70
- package/dist/components/Tabs/Tabs.module.cjs +0 -11
- package/dist/components/Text/Text.cjs +0 -42
- package/dist/components/Text/Text.module.cjs +0 -5
- package/dist/components/Textarea/Textarea.cjs +0 -28
- package/dist/components/Textarea/Textarea.module.cjs +0 -5
- package/dist/components/Toast/Toast.cjs +0 -278
- package/dist/components/Toast/Toast.module.cjs +0 -26
- package/dist/components/Toggle/Toggle.cjs +0 -18
- package/dist/components/Toggle/Toggle.module.cjs +0 -5
- package/dist/components/ToggleGroup/ToggleGroup.cjs +0 -42
- package/dist/components/ToggleGroup/ToggleGroup.module.cjs +0 -8
- package/dist/components/Toolbar/Toolbar.cjs +0 -61
- package/dist/components/Toolbar/Toolbar.module.cjs +0 -12
- package/dist/components/Tooltip/Tooltip.cjs +0 -91
- package/dist/components/Tooltip/Tooltip.module.cjs +0 -15
- package/dist/icons/demo/Icons.cjs +0 -234
- package/dist/icons/ui/Icons.cjs +0 -324
- package/dist/index.cjs +0 -619
- package/dist/index.d.cts +0 -1
- package/dist/reset.cjs +0 -1
- package/dist/reset.d.cts +0 -1
- package/dist/style.cjs +0 -1
- package/dist/style.d.cts +0 -1
- package/dist/utils/mergeClassName.cjs +0 -8
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Blinks44
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -51,12 +51,15 @@ bundle, so moduix does not ship duplicate React or Base UI runtimes.
|
|
|
51
51
|
|
|
52
52
|
## Usage
|
|
53
53
|
|
|
54
|
-
Import the
|
|
54
|
+
Import the required foundation stylesheet once in your application entry point:
|
|
55
55
|
|
|
56
56
|
```tsx
|
|
57
57
|
import 'moduix/style.css';
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
This stylesheet is required. It provides the shared design tokens and base styles that component
|
|
61
|
+
CSS depends on.
|
|
62
|
+
|
|
60
63
|
If you want the optional reset, import it explicitly before the main stylesheet:
|
|
61
64
|
|
|
62
65
|
```tsx
|
|
@@ -81,8 +84,8 @@ export function Example() {
|
|
|
81
84
|
}
|
|
82
85
|
```
|
|
83
86
|
|
|
84
|
-
`style.css` ships the shared design tokens and base styles. Component imports bring along only
|
|
85
|
-
CSS they use
|
|
87
|
+
`style.css` ships the shared design tokens and base styles. Component imports still bring along only
|
|
88
|
+
the component CSS they use.
|
|
86
89
|
|
|
87
90
|
## Styling
|
|
88
91
|
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
outline: var(--field-focus-ring-width, var(--border-width-sm)) solid transparent;
|
|
54
54
|
outline-offset: var(--field-focus-ring-offset, -1px);
|
|
55
55
|
transition: border-color var(--field-control-transition, var(--transition-default)),
|
|
56
|
+
outline-color var(--field-control-transition, var(--transition-default)),
|
|
56
57
|
opacity var(--field-control-transition, var(--transition-default));
|
|
57
58
|
margin: 0;
|
|
58
59
|
|
|
@@ -21,27 +21,27 @@
|
|
|
21
21
|
outline-color var(--input-transition, var(--transition-default)),
|
|
22
22
|
opacity var(--input-transition, var(--transition-default));
|
|
23
23
|
margin: 0;
|
|
24
|
-
}
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
&::placeholder {
|
|
26
|
+
color: var(--input-placeholder-color, var(--color-muted-foreground));
|
|
27
|
+
}
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
&:focus-visible {
|
|
30
|
+
outline-color: var(--input-focus-ring-color, var(--color-ring));
|
|
31
|
+
}
|
|
33
32
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
&[data-invalid] {
|
|
34
|
+
border-color: var(--input-border-color-invalid, var(--color-destructive));
|
|
35
|
+
}
|
|
37
36
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
&[data-invalid]:focus-visible {
|
|
38
|
+
outline-color: var(--input-border-color-invalid, var(--color-destructive));
|
|
39
|
+
}
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
&[data-disabled] {
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
opacity: var(--input-disabled-opacity, var(--opacity-disabled));
|
|
44
|
+
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.ek-HaW_root[data-size="xs"] {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
.BPQarq_trigger, .BPQarq_link {
|
|
27
27
|
box-sizing: border-box;
|
|
28
|
-
justify-content:
|
|
28
|
+
justify-content: flex-start;
|
|
29
29
|
align-items: center;
|
|
30
30
|
gap: var(--navigation-menu-trigger-gap, .375rem);
|
|
31
31
|
min-height: var(--navigation-menu-trigger-height, var(--size-md));
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
font: inherit;
|
|
41
41
|
font-size: var(--navigation-menu-trigger-font-size, var(--text-sm));
|
|
42
42
|
line-height: var(--navigation-menu-trigger-line-height, var(--line-height-text-sm));
|
|
43
|
+
text-align: left;
|
|
43
44
|
user-select: none;
|
|
44
45
|
cursor: pointer;
|
|
45
46
|
transition: background-color var(--navigation-menu-transition, var(--transition-default)),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moduix",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "Composable React UI components built on Base UI primitives.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessible",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"directory": "packages/ui"
|
|
22
22
|
},
|
|
23
23
|
"files": [
|
|
24
|
-
"dist"
|
|
24
|
+
"dist",
|
|
25
|
+
"LICENSE.md"
|
|
25
26
|
],
|
|
26
27
|
"type": "module",
|
|
27
28
|
"sideEffects": [
|
|
28
29
|
"**/*.css"
|
|
29
30
|
],
|
|
30
|
-
"main": "./dist/index.
|
|
31
|
+
"main": "./dist/index.js",
|
|
31
32
|
"module": "./dist/index.js",
|
|
32
33
|
"types": "./dist/index.d.ts",
|
|
33
34
|
"exports": {
|
|
34
35
|
".": {
|
|
35
36
|
"types": "./dist/index.d.ts",
|
|
36
|
-
"import": "./dist/index.js"
|
|
37
|
-
"require": "./dist/index.cjs"
|
|
37
|
+
"import": "./dist/index.js"
|
|
38
38
|
},
|
|
39
39
|
"./style.css": "./dist/styles/style.css",
|
|
40
40
|
"./reset.css": "./dist/styles/reset.css",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"vite-plugin-svgr": "^5.2.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@base-ui/react": "^1.
|
|
72
|
+
"@base-ui/react": "^1.5.0",
|
|
73
73
|
"react": "^17 || ^18 || ^19",
|
|
74
74
|
"react-dom": "^17 || ^18 || ^19"
|
|
75
75
|
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
-
key = keys[i];
|
|
11
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
-
get: ((k) => from[k]).bind(null, key),
|
|
13
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
//#endregion
|
|
23
|
-
exports.__toESM = __toESM;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
const require_Icons = require("../../icons/ui/Icons.cjs");
|
|
2
|
-
const require_mergeClassName = require("../../utils/mergeClassName.cjs");
|
|
3
|
-
const require_Accordion_module = require("./Accordion.module.cjs");
|
|
4
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
let clsx = require("clsx");
|
|
6
|
-
let _base_ui_react_accordion = require("@base-ui/react/accordion");
|
|
7
|
-
let react = require("react");
|
|
8
|
-
//#region src/components/Accordion/Accordion.tsx
|
|
9
|
-
const Accordion = (0, react.forwardRef)(function Accordion({ className, ...props }, ref) {
|
|
10
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Root, {
|
|
11
|
-
ref,
|
|
12
|
-
"data-slot": "accordion-root",
|
|
13
|
-
className: require_mergeClassName.mergeClassName(className, require_Accordion_module.default.root),
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
const AccordionItem = (0, react.forwardRef)(function AccordionItem({ className, ...props }, ref) {
|
|
18
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Item, {
|
|
19
|
-
ref,
|
|
20
|
-
"data-slot": "accordion-item",
|
|
21
|
-
className: require_mergeClassName.mergeClassName(className, require_Accordion_module.default.item),
|
|
22
|
-
...props
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
const AccordionHeader = (0, react.forwardRef)(function AccordionHeader({ className, ...props }, ref) {
|
|
26
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Header, {
|
|
27
|
-
ref,
|
|
28
|
-
"data-slot": "accordion-header",
|
|
29
|
-
className: require_mergeClassName.mergeClassName(className, require_Accordion_module.default.header),
|
|
30
|
-
...props
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
const AccordionTrigger = (0, react.forwardRef)(function AccordionTrigger({ className, render, ...props }, ref) {
|
|
34
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Trigger, {
|
|
35
|
-
ref,
|
|
36
|
-
"data-slot": "accordion-trigger",
|
|
37
|
-
render,
|
|
38
|
-
className: render ? className : require_mergeClassName.mergeClassName(className, require_Accordion_module.default.trigger),
|
|
39
|
-
...props
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
function AccordionTriggerIcon({ className, children, "aria-hidden": ariaHidden = true, ...props }) {
|
|
43
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
44
|
-
"data-slot": "accordion-trigger-icon",
|
|
45
|
-
"aria-hidden": ariaHidden,
|
|
46
|
-
className: (0, clsx.clsx)(require_Accordion_module.default.triggerIcon, className),
|
|
47
|
-
...props,
|
|
48
|
-
children: children ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Icons.PlusIcon, {})
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
const AccordionPanel = (0, react.forwardRef)(function AccordionPanel({ className, ...props }, ref) {
|
|
52
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_accordion.Accordion.Panel, {
|
|
53
|
-
ref,
|
|
54
|
-
"data-slot": "accordion-panel",
|
|
55
|
-
className: require_mergeClassName.mergeClassName(className, require_Accordion_module.default.panel),
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
//#endregion
|
|
60
|
-
exports.Accordion = Accordion;
|
|
61
|
-
exports.AccordionHeader = AccordionHeader;
|
|
62
|
-
exports.AccordionItem = AccordionItem;
|
|
63
|
-
exports.AccordionPanel = AccordionPanel;
|
|
64
|
-
exports.AccordionTrigger = AccordionTrigger;
|
|
65
|
-
exports.AccordionTriggerIcon = AccordionTriggerIcon;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import './Accordion.css';
|
|
2
|
-
//#region src/components/Accordion/Accordion.module.css
|
|
3
|
-
var Accordion_module_default = {
|
|
4
|
-
"header": "BP0x5G_header",
|
|
5
|
-
"item": "BP0x5G_item",
|
|
6
|
-
"panel": "BP0x5G_panel",
|
|
7
|
-
"root": "BP0x5G_root",
|
|
8
|
-
"trigger": "BP0x5G_trigger",
|
|
9
|
-
"triggerIcon": "BP0x5G_triggerIcon"
|
|
10
|
-
};
|
|
11
|
-
//#endregion
|
|
12
|
-
exports.default = Accordion_module_default;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
2
|
-
const require_Alert_module = require("./Alert.module.cjs");
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
let clsx = require("clsx");
|
|
5
|
-
clsx = require_runtime.__toESM(clsx);
|
|
6
|
-
//#region src/components/Alert/Alert.tsx
|
|
7
|
-
function Alert({ className, role, variant = "default", ...props }) {
|
|
8
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
9
|
-
role: role ?? (variant === "destructive" ? "alert" : "status"),
|
|
10
|
-
"data-slot": "alert-root",
|
|
11
|
-
"data-variant": variant,
|
|
12
|
-
className: (0, clsx.default)(require_Alert_module.default.root, className),
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function AlertIcon({ className, ...props }) {
|
|
17
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
18
|
-
"data-slot": "alert-icon",
|
|
19
|
-
"aria-hidden": "true",
|
|
20
|
-
className: (0, clsx.default)(require_Alert_module.default.icon, className),
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function AlertContent({ className, ...props }) {
|
|
25
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
26
|
-
"data-slot": "alert-content",
|
|
27
|
-
className: (0, clsx.default)(require_Alert_module.default.content, className),
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function AlertTitle({ as: Root = "h3", className, ...props }) {
|
|
32
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Root, {
|
|
33
|
-
"data-slot": "alert-title",
|
|
34
|
-
className: (0, clsx.default)(require_Alert_module.default.title, className),
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function AlertDescription({ className, ...props }) {
|
|
39
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
40
|
-
"data-slot": "alert-description",
|
|
41
|
-
className: (0, clsx.default)(require_Alert_module.default.description, className),
|
|
42
|
-
...props
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
exports.Alert = Alert;
|
|
47
|
-
exports.AlertContent = AlertContent;
|
|
48
|
-
exports.AlertDescription = AlertDescription;
|
|
49
|
-
exports.AlertIcon = AlertIcon;
|
|
50
|
-
exports.AlertTitle = AlertTitle;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './Alert.css';
|
|
2
|
-
//#region src/components/Alert/Alert.module.css
|
|
3
|
-
var Alert_module_default = {
|
|
4
|
-
"content": "Rbv-4q_content",
|
|
5
|
-
"description": "Rbv-4q_description",
|
|
6
|
-
"icon": "Rbv-4q_icon",
|
|
7
|
-
"root": "Rbv-4q_root",
|
|
8
|
-
"title": "Rbv-4q_title"
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
exports.default = Alert_module_default;
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
const require_mergeClassName = require("../../utils/mergeClassName.cjs");
|
|
2
|
-
const require_AlertDialog_module = require("./AlertDialog.module.cjs");
|
|
3
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
4
|
-
let clsx = require("clsx");
|
|
5
|
-
let _base_ui_react_alert_dialog = require("@base-ui/react/alert-dialog");
|
|
6
|
-
//#region src/components/AlertDialog/AlertDialog.tsx
|
|
7
|
-
const AlertDialog = _base_ui_react_alert_dialog.AlertDialog.Root;
|
|
8
|
-
const createAlertDialogHandle = _base_ui_react_alert_dialog.AlertDialog.createHandle;
|
|
9
|
-
function AlertDialogPortal({ className, ...props }) {
|
|
10
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Portal, {
|
|
11
|
-
"data-slot": "alert-dialog-portal",
|
|
12
|
-
className,
|
|
13
|
-
...props
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function AlertDialogTrigger({ className, render, ...props }) {
|
|
17
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Trigger, {
|
|
18
|
-
"data-slot": "alert-dialog-trigger",
|
|
19
|
-
render,
|
|
20
|
-
className: render ? className : require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.trigger),
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function AlertDialogBackdrop({ className, ...props }) {
|
|
25
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Backdrop, {
|
|
26
|
-
"data-slot": "alert-dialog-backdrop",
|
|
27
|
-
className: require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.backdrop),
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function AlertDialogViewport({ className, ...props }) {
|
|
32
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Viewport, {
|
|
33
|
-
"data-slot": "alert-dialog-viewport",
|
|
34
|
-
className: require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.viewport),
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function AlertDialogPopup({ className, ...props }) {
|
|
39
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Popup, {
|
|
40
|
-
"data-slot": "alert-dialog-popup",
|
|
41
|
-
className: require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.popup),
|
|
42
|
-
...props
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function AlertDialogTitle({ className, ...props }) {
|
|
46
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Title, {
|
|
47
|
-
"data-slot": "alert-dialog-title",
|
|
48
|
-
className: require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.title),
|
|
49
|
-
...props
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
function AlertDialogDescription({ className, ...props }) {
|
|
53
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Description, {
|
|
54
|
-
"data-slot": "alert-dialog-description",
|
|
55
|
-
className: require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.description),
|
|
56
|
-
...props
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
function AlertDialogClose({ className, ...props }) {
|
|
60
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_alert_dialog.AlertDialog.Close, {
|
|
61
|
-
"data-slot": "alert-dialog-close",
|
|
62
|
-
className: require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.close),
|
|
63
|
-
...props
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
function AlertDialogContent({ className, children, ...props }) {
|
|
67
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(AlertDialogPortal, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertDialogBackdrop, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertDialogViewport, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertDialogPopup, {
|
|
68
|
-
className,
|
|
69
|
-
...props,
|
|
70
|
-
children
|
|
71
|
-
}) })] });
|
|
72
|
-
}
|
|
73
|
-
function AlertDialogHeader({ className, ...props }) {
|
|
74
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
75
|
-
"data-slot": "alert-dialog-header",
|
|
76
|
-
className: (0, clsx.clsx)(require_AlertDialog_module.default.header, className),
|
|
77
|
-
...props
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
function AlertDialogFooter({ className, ...props }) {
|
|
81
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
82
|
-
"data-slot": "alert-dialog-footer",
|
|
83
|
-
className: (0, clsx.clsx)(require_AlertDialog_module.default.footer, className),
|
|
84
|
-
...props
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function AlertDialogBody({ className, ...props }) {
|
|
88
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
89
|
-
"data-slot": "alert-dialog-body",
|
|
90
|
-
className: (0, clsx.clsx)(require_AlertDialog_module.default.body, className),
|
|
91
|
-
...props
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
function AlertDialogAction({ className, ...props }) {
|
|
95
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertDialogClose, {
|
|
96
|
-
className: require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.action),
|
|
97
|
-
...props
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
function AlertDialogCancel({ className, ...props }) {
|
|
101
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AlertDialogClose, {
|
|
102
|
-
className: require_mergeClassName.mergeClassName(className, require_AlertDialog_module.default.cancel),
|
|
103
|
-
...props
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
exports.AlertDialog = AlertDialog;
|
|
108
|
-
exports.AlertDialogAction = AlertDialogAction;
|
|
109
|
-
exports.AlertDialogBackdrop = AlertDialogBackdrop;
|
|
110
|
-
exports.AlertDialogBody = AlertDialogBody;
|
|
111
|
-
exports.AlertDialogCancel = AlertDialogCancel;
|
|
112
|
-
exports.AlertDialogClose = AlertDialogClose;
|
|
113
|
-
exports.AlertDialogContent = AlertDialogContent;
|
|
114
|
-
exports.AlertDialogDescription = AlertDialogDescription;
|
|
115
|
-
exports.AlertDialogFooter = AlertDialogFooter;
|
|
116
|
-
exports.AlertDialogHeader = AlertDialogHeader;
|
|
117
|
-
exports.AlertDialogPopup = AlertDialogPopup;
|
|
118
|
-
exports.AlertDialogPortal = AlertDialogPortal;
|
|
119
|
-
exports.AlertDialogTitle = AlertDialogTitle;
|
|
120
|
-
exports.AlertDialogTrigger = AlertDialogTrigger;
|
|
121
|
-
exports.AlertDialogViewport = AlertDialogViewport;
|
|
122
|
-
exports.createAlertDialogHandle = createAlertDialogHandle;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import './AlertDialog.css';
|
|
2
|
-
//#region src/components/AlertDialog/AlertDialog.module.css
|
|
3
|
-
var AlertDialog_module_default = {
|
|
4
|
-
"action": "ktfPPa_action",
|
|
5
|
-
"backdrop": "ktfPPa_backdrop",
|
|
6
|
-
"body": "ktfPPa_body",
|
|
7
|
-
"cancel": "ktfPPa_cancel",
|
|
8
|
-
"close": "ktfPPa_close",
|
|
9
|
-
"description": "ktfPPa_description",
|
|
10
|
-
"footer": "ktfPPa_footer",
|
|
11
|
-
"header": "ktfPPa_header",
|
|
12
|
-
"popup": "ktfPPa_popup",
|
|
13
|
-
"title": "ktfPPa_title",
|
|
14
|
-
"trigger": "ktfPPa_trigger",
|
|
15
|
-
"viewport": "ktfPPa_viewport"
|
|
16
|
-
};
|
|
17
|
-
//#endregion
|
|
18
|
-
exports.default = AlertDialog_module_default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const require_AspectRatio_module = require("./AspectRatio.module.cjs");
|
|
2
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
-
let clsx = require("clsx");
|
|
4
|
-
//#region src/components/AspectRatio/AspectRatio.tsx
|
|
5
|
-
const PRESETS = {
|
|
6
|
-
square: 1,
|
|
7
|
-
video: 16 / 9,
|
|
8
|
-
portrait: 9 / 16,
|
|
9
|
-
photo: 4 / 3
|
|
10
|
-
};
|
|
11
|
-
function AspectRatio({ ratio, className, style, ...props }) {
|
|
12
|
-
const resolvedRatio = typeof ratio === "string" ? PRESETS[ratio] : ratio;
|
|
13
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
14
|
-
"data-slot": "aspect-ratio-root",
|
|
15
|
-
className: (0, clsx.clsx)(require_AspectRatio_module.default.root, className),
|
|
16
|
-
style: {
|
|
17
|
-
aspectRatio: resolvedRatio,
|
|
18
|
-
...style
|
|
19
|
-
},
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
//#endregion
|
|
24
|
-
exports.AspectRatio = AspectRatio;
|