@mudakit/ui 0.1.0
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/CHANGELOG.md +7 -0
- package/LICENSE +21 -0
- package/README.md +46 -0
- package/THIRD_PARTY_LICENSES +15 -0
- package/dist/MudaButton-Bw6Fw2-Y.js +42 -0
- package/dist/MudaButtonStack-xCMVwXHf.js +16 -0
- package/dist/MudaCalendar-f1lHTxVw.js +593 -0
- package/dist/MudaCard-C9geam4O.js +10 -0
- package/dist/MudaColorPicker-Ny8v-KZR.js +134 -0
- package/dist/MudaDialog-C6dOmY_K.js +105 -0
- package/dist/MudaDropdown-DJOG_m6C.js +54 -0
- package/dist/MudaErrorBox-C0DvbAfU.js +28 -0
- package/dist/MudaFormCheckbox-CDY-INi6.js +43 -0
- package/dist/MudaFormCombobox-CBaRBOKQ.js +186 -0
- package/dist/MudaFormField-Bt5W7NC1.js +42 -0
- package/dist/MudaFormInput-CI_xfpTj.js +56 -0
- package/dist/MudaFormRadio-DOXXv3mT.js +21 -0
- package/dist/MudaFormRadioGroup-45qiNrzt.js +48 -0
- package/dist/MudaFormSelect-Bt6EW1N-.js +28 -0
- package/dist/MudaFormSwitch-CtdB9qIP.js +33 -0
- package/dist/MudaFormText-s-Y3QoDX.js +23 -0
- package/dist/MudaIcon-BhSsLCZx.js +1886 -0
- package/dist/MudaIconPicker-CZWLPHbE.js +114 -0
- package/dist/MudaMarker-1xxDZJgb.js +24 -0
- package/dist/MudaPagination-BYyElnCp.js +119 -0
- package/dist/MudaPopover-BgwkVjjX.js +67 -0
- package/dist/MudaSpinner-C5_q8Vtn.js +26 -0
- package/dist/MudaTable-DWwTyMmj.js +33 -0
- package/dist/MudaTag-DLqit790.js +27 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/common/components.d.ts +3 -0
- package/dist/common/keymap.d.ts +9 -0
- package/dist/common/range.d.ts +1 -0
- package/dist/components/MudaButton/MudaButton.vue.d.ts +25 -0
- package/dist/components/MudaButton/index.d.ts +1 -0
- package/dist/components/MudaButton/index.js +2 -0
- package/dist/components/MudaButtonStack/MudaButtonStack.vue.d.ts +16 -0
- package/dist/components/MudaButtonStack/index.d.ts +1 -0
- package/dist/components/MudaButtonStack/index.js +2 -0
- package/dist/components/MudaCalendar/MudaCalendar.dayjs.d.ts +3 -0
- package/dist/components/MudaCalendar/MudaCalendar.types.d.ts +30 -0
- package/dist/components/MudaCalendar/MudaCalendar.vue.d.ts +27 -0
- package/dist/components/MudaCalendar/MudaCalendarDatePicker.vue.d.ts +22 -0
- package/dist/components/MudaCalendar/MudaCalendarDays.vue.d.ts +25 -0
- package/dist/components/MudaCalendar/MudaCalendarHead.vue.d.ts +21 -0
- package/dist/components/MudaCalendar/MudaCalendarInput.vue.d.ts +25 -0
- package/dist/components/MudaCalendar/MudaCalendarMonths.vue.d.ts +27 -0
- package/dist/components/MudaCalendar/MudaCalendarWeekDays.vue.d.ts +9 -0
- package/dist/components/MudaCalendar/MudaCalendarYears.vue.d.ts +27 -0
- package/dist/components/MudaCalendar/index.d.ts +4 -0
- package/dist/components/MudaCalendar/index.js +2 -0
- package/dist/components/MudaCalendar/useMudaCalendar.d.ts +18 -0
- package/dist/components/MudaCard/MudaCard.vue.d.ts +13 -0
- package/dist/components/MudaCard/index.d.ts +1 -0
- package/dist/components/MudaCard/index.js +2 -0
- package/dist/components/MudaColorPicker/MudaColorPicker.vue.d.ts +21 -0
- package/dist/components/MudaColorPicker/MudaColorPickerControl.vue.d.ts +18 -0
- package/dist/components/MudaColorPicker/index.d.ts +2 -0
- package/dist/components/MudaColorPicker/index.js +2 -0
- package/dist/components/MudaDialog/MudaDialog.vue.d.ts +20 -0
- package/dist/components/MudaDialog/MudaDialogFocusTrap.vue.d.ts +18 -0
- package/dist/components/MudaDialog/index.d.ts +1 -0
- package/dist/components/MudaDialog/index.js +2 -0
- package/dist/components/MudaDropdown/MudaDropdown.types.d.ts +8 -0
- package/dist/components/MudaDropdown/MudaDropdown.vue.d.ts +33 -0
- package/dist/components/MudaDropdown/index.d.ts +2 -0
- package/dist/components/MudaDropdown/index.js +2 -0
- package/dist/components/MudaErrorBox/MudaErrorBox.vue.d.ts +9 -0
- package/dist/components/MudaErrorBox/index.d.ts +1 -0
- package/dist/components/MudaErrorBox/index.js +2 -0
- package/dist/components/MudaFormCheckbox/MudaFormCheckbox.types.d.ts +1 -0
- package/dist/components/MudaFormCheckbox/MudaFormCheckbox.vue.d.ts +18 -0
- package/dist/components/MudaFormCheckbox/index.d.ts +2 -0
- package/dist/components/MudaFormCheckbox/index.js +2 -0
- package/dist/components/MudaFormCombobox/MudaFormCombobox.types.d.ts +5 -0
- package/dist/components/MudaFormCombobox/MudaFormComboboxMultiple.vue.d.ts +32 -0
- package/dist/components/MudaFormCombobox/MudaFormComboboxSingle.vue.d.ts +34 -0
- package/dist/components/MudaFormCombobox/index.d.ts +3 -0
- package/dist/components/MudaFormCombobox/index.js +2 -0
- package/dist/components/MudaFormField/MudaFormField.vue.d.ts +31 -0
- package/dist/components/MudaFormField/MudaFormFieldErrors.vue.d.ts +8 -0
- package/dist/components/MudaFormField/index.d.ts +2 -0
- package/dist/components/MudaFormField/index.js +2 -0
- package/dist/components/MudaFormInput/MudaFormInput.types.d.ts +5 -0
- package/dist/components/MudaFormInput/MudaFormInput.vue.d.ts +31 -0
- package/dist/components/MudaFormInput/index.d.ts +2 -0
- package/dist/components/MudaFormInput/index.js +2 -0
- package/dist/components/MudaFormRadio/MudaFormRadio.types.d.ts +1 -0
- package/dist/components/MudaFormRadio/MudaFormRadio.vue.d.ts +11 -0
- package/dist/components/MudaFormRadio/index.d.ts +2 -0
- package/dist/components/MudaFormRadio/index.js +2 -0
- package/dist/components/MudaFormRadioGroup/MudaFormRadioGroup.types.d.ts +7 -0
- package/dist/components/MudaFormRadioGroup/MudaFormRadioGroup.vue.d.ts +34 -0
- package/dist/components/MudaFormRadioGroup/index.d.ts +2 -0
- package/dist/components/MudaFormRadioGroup/index.js +2 -0
- package/dist/components/MudaFormSelect/MudaFormSelect.vue.d.ts +24 -0
- package/dist/components/MudaFormSelect/index.d.ts +1 -0
- package/dist/components/MudaFormSelect/index.js +2 -0
- package/dist/components/MudaFormSwitch/MudaFormSwitch.vue.d.ts +14 -0
- package/dist/components/MudaFormSwitch/index.d.ts +1 -0
- package/dist/components/MudaFormSwitch/index.js +2 -0
- package/dist/components/MudaFormText/MudaFormText.types.d.ts +4 -0
- package/dist/components/MudaFormText/MudaFormText.vue.d.ts +13 -0
- package/dist/components/MudaFormText/index.d.ts +2 -0
- package/dist/components/MudaFormText/index.js +2 -0
- package/dist/components/MudaIcon/MudaIcon.types.d.ts +5 -0
- package/dist/components/MudaIcon/MudaIcon.vue.d.ts +13 -0
- package/dist/components/MudaIcon/icons/filled.d.ts +100 -0
- package/dist/components/MudaIcon/icons/index.d.ts +2 -0
- package/dist/components/MudaIcon/icons/outlined.d.ts +100 -0
- package/dist/components/MudaIcon/index.d.ts +3 -0
- package/dist/components/MudaIcon/index.js +2 -0
- package/dist/components/MudaIcon/useMudaIcon.d.ts +109 -0
- package/dist/components/MudaIconPicker/MudaIconPicker.vue.d.ts +24 -0
- package/dist/components/MudaIconPicker/MudaIconPickerList.vue.d.ts +16 -0
- package/dist/components/MudaIconPicker/index.d.ts +1 -0
- package/dist/components/MudaIconPicker/index.js +2 -0
- package/dist/components/MudaIconPicker/useMudaIconPickerList.d.ts +3 -0
- package/dist/components/MudaMarker/MudaMarker.vue.d.ts +22 -0
- package/dist/components/MudaMarker/index.d.ts +1 -0
- package/dist/components/MudaMarker/index.js +2 -0
- package/dist/components/MudaPagination/MudaPagination.vue.d.ts +29 -0
- package/dist/components/MudaPagination/MudaPaginationItem.vue.d.ts +17 -0
- package/dist/components/MudaPagination/index.d.ts +1 -0
- package/dist/components/MudaPagination/index.js +2 -0
- package/dist/components/MudaPopover/MudaPopover.types.d.ts +3 -0
- package/dist/components/MudaPopover/MudaPopover.vue.d.ts +37 -0
- package/dist/components/MudaPopover/index.d.ts +2 -0
- package/dist/components/MudaPopover/index.js +2 -0
- package/dist/components/MudaSpinner/MudaSpinner.vue.d.ts +11 -0
- package/dist/components/MudaSpinner/index.d.ts +1 -0
- package/dist/components/MudaSpinner/index.js +2 -0
- package/dist/components/MudaTable/MudaTable.vue.d.ts +19 -0
- package/dist/components/MudaTable/MudaTableCell.vue.d.ts +13 -0
- package/dist/components/MudaTable/MudaTableHead.vue.d.ts +13 -0
- package/dist/components/MudaTable/MudaTableRow.vue.d.ts +13 -0
- package/dist/components/MudaTable/index.d.ts +4 -0
- package/dist/components/MudaTable/index.js +2 -0
- package/dist/components/MudaTag/MudaTag.vue.d.ts +21 -0
- package/dist/components/MudaTag/index.d.ts +1 -0
- package/dist/components/MudaTag/index.js +2 -0
- package/dist/composables/useBodyScrollLock.d.ts +2 -0
- package/dist/composables/useClickOutside.d.ts +2 -0
- package/dist/composables/useFocusTrap.d.ts +5 -0
- package/dist/composables/useKeyDown.d.ts +1 -0
- package/dist/composables/useResizeObserver.d.ts +2 -0
- package/dist/composables/useZIndex.d.ts +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +26 -0
- package/dist/keymap-BzfMgdJH.js +6 -0
- package/dist/style.css +2 -0
- package/dist/styles.js +0 -0
- package/dist/useClickOutside-B6tdxsc3.js +15 -0
- package/dist/useKeyDown-B1jmp4nA.js +11 -0
- package/dist/useZIndex-DWnsohLZ.js +8 -0
- package/package.json +79 -0
- package/style.css.d.ts +3 -0
package/CHANGELOG.md
ADDED
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Cheltcov Evgenii
|
|
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
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @mudakit/ui
|
|
2
|
+
|
|
3
|
+
Vue 3 components for Muda. The package is ESM-only and includes TypeScript declarations.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm install @mudakit/ui vue
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Import the styles once in your application entry file:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import "@mudakit/ui/style.css";
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The stylesheet contains theme tokens and component utilities without Tailwind Preflight or other global element resets. Set `data-theme="dark"` on an ancestor to use the dark theme.
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Prefer individual component entry points so bundlers only include the components and shared code you use:
|
|
22
|
+
|
|
23
|
+
```vue
|
|
24
|
+
<script setup lang="ts">
|
|
25
|
+
import { MudaButton } from "@mudakit/ui/MudaButton";
|
|
26
|
+
import { MudaCard } from "@mudakit/ui/MudaCard";
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<MudaCard>
|
|
31
|
+
<MudaButton variant="primary">Continue</MudaButton>
|
|
32
|
+
</MudaCard>
|
|
33
|
+
</template>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
The package root is also available:
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
import { MudaButton, MudaCard } from "@mudakit/ui";
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Requires Vue 3.5 or later and Node.js 22.12 or later for development tooling.
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
MIT. Bundled Material Design icons are available under Apache-2.0; see `THIRD_PARTY_LICENSES`.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Material Design Icons
|
|
2
|
+
Copyright Google LLC
|
|
3
|
+
https://github.com/google/material-design-icons
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createBlock as e, defineComponent as t, mergeProps as n, openBlock as r, renderSlot as i, resolveDynamicComponent as a, withCtx as o } from "vue";
|
|
2
|
+
//#endregion
|
|
3
|
+
//#region src/components/MudaButton/MudaButton.vue
|
|
4
|
+
var s = /* @__PURE__ */ t({
|
|
5
|
+
__name: "MudaButton",
|
|
6
|
+
props: {
|
|
7
|
+
size: { default: "medium" },
|
|
8
|
+
variant: { default: "default" },
|
|
9
|
+
disabled: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
},
|
|
13
|
+
as: { default: "button" }
|
|
14
|
+
},
|
|
15
|
+
setup(t) {
|
|
16
|
+
let s = t;
|
|
17
|
+
return (t, c) => (r(), e(a(s.as), n(t.$attrs, {
|
|
18
|
+
disabled: s.disabled,
|
|
19
|
+
class: ["muda-button-reset flex items-center justify-center gap-1 focus-visible:outline-2 focus-visible:outline-offset-2", {
|
|
20
|
+
"muda-link-reset": s.as === "a",
|
|
21
|
+
"rounded-md font-semibold shadow-xs": !0,
|
|
22
|
+
"px-2.5 py-1.5 text-xs": s.size === "small",
|
|
23
|
+
"px-3 py-2 text-sm": s.size === "medium",
|
|
24
|
+
"px-3.5 py-2.5 text-sm": s.size === "large",
|
|
25
|
+
"cursor-pointer": !s.disabled,
|
|
26
|
+
"cursor-not-allowed": s.disabled,
|
|
27
|
+
"border bg-form-background": s.variant === "default",
|
|
28
|
+
"border border-primary-dark bg-primary fill-white text-white hover:bg-primary-dark focus-visible:bg-primary disabled:border-primary-dark/20 disabled:bg-primary-light/70": s.variant === "primary",
|
|
29
|
+
"border border-secondary-dark bg-secondary fill-white text-white hover:bg-secondary-dark focus-visible:bg-secondary disabled:border-secondary-dark/20 disabled:bg-secondary-light/70": s.variant === "secondary",
|
|
30
|
+
"border border-success-dark bg-success fill-white text-white hover:bg-success-dark focus-visible:bg-success disabled:border-success-dark/20 disabled:bg-success-light/70": s.variant === "success",
|
|
31
|
+
"border border-warning-dark bg-warning fill-white text-white hover:bg-warning-dark focus-visible:bg-warning disabled:border-warning-dark/20 disabled:bg-warning-light/70": s.variant === "warning",
|
|
32
|
+
"border border-danger-dark bg-danger fill-white text-white hover:bg-danger-dark focus-visible:bg-danger disabled:border-danger-dark/20 disabled:bg-danger-light/70": s.variant === "danger",
|
|
33
|
+
"border border-info-dark bg-info fill-white text-white hover:bg-info-dark focus-visible:bg-info disabled:border-info-dark/20 disabled:bg-info-light/70": s.variant === "info"
|
|
34
|
+
}]
|
|
35
|
+
}), {
|
|
36
|
+
default: o(() => [i(t.$slots, "default")]),
|
|
37
|
+
_: 3
|
|
38
|
+
}, 16, ["disabled", "class"]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
//#endregion
|
|
42
|
+
export { s as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, renderSlot as i } from "vue";
|
|
2
|
+
//#endregion
|
|
3
|
+
//#region src/components/MudaButtonStack/MudaButtonStack.vue
|
|
4
|
+
var a = /* @__PURE__ */ t({
|
|
5
|
+
__name: "MudaButtonStack",
|
|
6
|
+
props: { layout: {} },
|
|
7
|
+
setup(t) {
|
|
8
|
+
let a = t;
|
|
9
|
+
return (t, o) => (r(), e("div", { class: n(["flex justify-start gap-px", {
|
|
10
|
+
"muda-button-stack-h": a.layout === "horizontal",
|
|
11
|
+
"muda-button-stack-v flex-col": a.layout === "vertical"
|
|
12
|
+
}]) }, [i(t.$slots, "default")], 2));
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { a as t };
|