@umbra.ui/core 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/inputs/Tags/types.js +1 -1
- package/dist/readme.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/controls/Button/Button.vue +1 -1
- package/src/components/controls/Checkbox/Checkbox.vue +1 -1
- package/src/components/controls/Dropdown/Dropdown.vue +2 -2
- package/src/components/controls/IconButton/IconButton.vue +1 -1
- package/src/components/controls/Stepper/Stepper.vue +1 -1
- package/src/components/dialogs/Toast/Toast.vue +2 -2
- package/src/components/inputs/InputCard/InputCard.vue +1 -1
- package/src/components/inputs/InputEmail/InputEmail.vue +1 -1
- package/src/components/inputs/InputNumber/InputNumber.vue +1 -1
- package/src/components/inputs/InputPhone/InputPhone.vue +1 -1
- package/src/components/inputs/InputSecure/InputSecure.vue +1 -1
- package/src/components/inputs/InputText/InputText.vue +1 -1
- package/src/components/inputs/StringCapture/StringCapture.vue +1 -1
- package/src/components/inputs/Tags/TagBar.vue +1 -1
- package/src/components/inputs/Tags/TagCreation.vue +1 -1
- package/src/components/inputs/Tags/TagPicker.vue +1 -1
- package/src/components/inputs/Tags/types.ts +1 -1
- package/src/components/inputs/search/SearchBar.vue +1 -1
- package/src/components/inputs/search/SearchResults.vue +1 -1
- package/src/components/menus/ActionMenu/ActionMenu.vue +1 -1
- package/src/components/navigation/adaptive/AdaptiveLayoutMenuButton.vue +2 -2
- package/src/components/navigation/slideover/SlideoverController.vue +1 -1
- package/src/components/navigation/tabcontroller/TabController.vue +1 -1
- package/src/components/pickers/CollectionPicker/CollectionPicker.vue +2 -2
- package/src/components/pickers/DatePicker/DatePicker.vue +1 -1
- package/src/components/pickers/FilePicker/FilePicker.vue +1 -1
- package/src/components/pickers/IconPicker/IconPicker.vue +1 -1
- package/src/components/views/MarkdownViewer/MarkdownViewer.vue +1 -1
- package/src/readme.ts +4 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import tinycolor from "tinycolor2";
|
|
2
|
-
import * as colors from "@umbra
|
|
2
|
+
import * as colors from "@umbra.ui/colors";
|
|
3
3
|
import { getThemeConfig } from "../../../theme";
|
|
4
4
|
// Color mode detection function that uses theme or falls back to system
|
|
5
5
|
export const getColorMode = () => {
|
package/dist/readme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readme.d.ts","sourceRoot":"","sources":["../src/readme.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAmC1C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"readme.d.ts","sourceRoot":"","sources":["../src/readme.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAmC1C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAC7B,eAAe,MAAM,KACpB,MAAM,GAAG,SAOX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,MAAM,EAE/C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,WAEjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,IAMjE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
import { RippleAnimOutlineIcon } from "@umbra
|
|
3
|
+
import { RippleAnimOutlineIcon } from "@umbra.ui/icons";
|
|
4
4
|
import type { TooltipConfig } from "../../indicators/Tooltip/types";
|
|
5
5
|
import "./theme.css";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ChevronRightIcon } from "@umbra
|
|
3
|
-
import { Button } from "@umbra
|
|
2
|
+
import { ChevronRightIcon } from "@umbra.ui/icons";
|
|
3
|
+
import { Button } from "@umbra.ui/core";
|
|
4
4
|
import { ref, onUnmounted, onMounted, computed, nextTick, watch } from "vue";
|
|
5
5
|
import { DropdownItem } from "./types";
|
|
6
6
|
import "./theme.css";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed } from "vue";
|
|
3
|
-
import { CircleAnimOutlineIcon, icons, type IconKey } from "@umbra
|
|
3
|
+
import { CircleAnimOutlineIcon, icons, type IconKey } from "@umbra.ui/icons";
|
|
4
4
|
import type { TooltipConfig } from "../../indicators/Tooltip/types";
|
|
5
5
|
import "./theme.css";
|
|
6
6
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import tinycolor from "tinycolor2";
|
|
4
4
|
import { computed, ref } from "vue";
|
|
5
|
-
import { icons, type IconKey, XmarkIcon } from "@umbra
|
|
5
|
+
import { icons, type IconKey, XmarkIcon } from "@umbra.ui/icons";
|
|
6
6
|
import type { ToastInstance } from "./types";
|
|
7
|
-
import { IconButton } from "@umbra
|
|
7
|
+
import { IconButton } from "@umbra.ui/core";
|
|
8
8
|
import "./theme.css";
|
|
9
9
|
|
|
10
10
|
interface Props {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, watch, computed } from "vue";
|
|
3
3
|
import "../theme.css";
|
|
4
|
-
import { RippleAnimOutlineIcon, LockIcon } from "@umbra
|
|
4
|
+
import { RippleAnimOutlineIcon, LockIcon } from "@umbra.ui/icons";
|
|
5
5
|
|
|
6
6
|
export interface Props {
|
|
7
7
|
value?: number;
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "vue";
|
|
11
11
|
import { useTheme } from "../../../theme";
|
|
12
12
|
import { TagItem, generateTagStyle } from "./types";
|
|
13
|
-
import { IconButton } from "@umbra
|
|
13
|
+
import { IconButton } from "@umbra.ui/core";
|
|
14
14
|
import { gsap } from "gsap";
|
|
15
15
|
import TagPicker from "./TagPicker.vue";
|
|
16
16
|
import {
|
|
@@ -7,7 +7,7 @@ import { ref, computed } from "vue";
|
|
|
7
7
|
import { gsap } from "gsap";
|
|
8
8
|
import ColorPicker from "../../pickers/ColorPicker/ColorPicker.vue";
|
|
9
9
|
import { Color } from "../../pickers/ColorPicker/colors";
|
|
10
|
-
import { CheckIcon } from "@umbra
|
|
10
|
+
import { CheckIcon } from "@umbra.ui/icons";
|
|
11
11
|
const props = defineProps({
|
|
12
12
|
containerID: {
|
|
13
13
|
type: String,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { computed, ref, watch, nextTick } from "vue";
|
|
3
3
|
import { TagItem, generateTagStyle } from "./types";
|
|
4
|
-
import { ArrowTurnLeftIcon } from "@umbra
|
|
4
|
+
import { ArrowTurnLeftIcon } from "@umbra.ui/icons";
|
|
5
5
|
import "./theme.css";
|
|
6
6
|
|
|
7
7
|
// - Props (Pure Data)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- SearchResults.vue -->
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { SearchResult } from "./types";
|
|
4
|
-
import { CircleAnim32GlyphIcon, ChevronDownIcon } from "@umbra
|
|
4
|
+
import { CircleAnim32GlyphIcon, ChevronDownIcon } from "@umbra.ui/icons";
|
|
5
5
|
import { computed, ref, watch } from "vue";
|
|
6
6
|
import "./theme.css";
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { computed, useCssModule } from "vue";
|
|
4
4
|
import { useAdaptiveLayoutState } from "./useAdaptiveLayout";
|
|
5
|
-
import { IconButton } from "@umbra
|
|
6
|
-
import { MenuIcon } from "@umbra
|
|
5
|
+
import { IconButton } from "@umbra.ui/core";
|
|
6
|
+
import { MenuIcon } from "@umbra.ui/icons";
|
|
7
7
|
|
|
8
8
|
// Props
|
|
9
9
|
const props = withDefaults(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { gsap } from "gsap";
|
|
3
3
|
import { ref, computed, onMounted } from "vue";
|
|
4
|
-
import { ChevronLeftIcon } from "@umbra
|
|
4
|
+
import { ChevronLeftIcon } from "@umbra.ui/icons";
|
|
5
5
|
import { useSlideoverController } from "./useSlideoverController";
|
|
6
6
|
import "../theme.css";
|
|
7
7
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<script setup lang="ts">
|
|
3
3
|
import { ref, watch, provide, computed, useCssModule, type Ref } from "vue";
|
|
4
4
|
import { TabControllerKey } from "./useTabController";
|
|
5
|
-
import { icons, type IconKey } from "@umbra
|
|
5
|
+
import { icons, type IconKey } from "@umbra.ui/icons";
|
|
6
6
|
import type { Tab, TabPosition } from "./types";
|
|
7
7
|
import "../theme.css";
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref, onMounted, nextTick, onUnmounted } from "vue";
|
|
3
|
-
import { icons } from "@umbra
|
|
4
|
-
import { IconButton } from "@umbra
|
|
3
|
+
import { icons } from "@umbra.ui/icons";
|
|
4
|
+
import { IconButton } from "@umbra.ui/core";
|
|
5
5
|
import {
|
|
6
6
|
offset,
|
|
7
7
|
flip,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { ChevronRightIcon, CalendarDaysIcon } from "@umbra
|
|
2
|
+
import { ChevronRightIcon, CalendarDaysIcon } from "@umbra.ui/icons";
|
|
3
3
|
// - Imports
|
|
4
4
|
import { ref, watch, onMounted, nextTick, computed, onUnmounted } from "vue";
|
|
5
5
|
import {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ref, computed, watch } from "vue";
|
|
3
3
|
import gsap from "gsap";
|
|
4
4
|
import { type FileError, type DropState } from "./types";
|
|
5
|
-
import { icons } from "@umbra
|
|
5
|
+
import { icons } from "@umbra.ui/icons";
|
|
6
6
|
import "./theme.css";
|
|
7
7
|
|
|
8
8
|
export interface FileDropProps {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "vue";
|
|
11
11
|
import { marked } from "marked";
|
|
12
12
|
import Prism from "prismjs";
|
|
13
|
-
import { CloneIcon, CheckIcon } from "@umbra
|
|
13
|
+
import { CloneIcon, CheckIcon } from "@umbra.ui/icons";
|
|
14
14
|
import "./theme.css";
|
|
15
15
|
|
|
16
16
|
interface Props {
|
package/src/readme.ts
CHANGED
|
@@ -41,12 +41,14 @@ for (const [path, content] of Object.entries(__readmeModules)) {
|
|
|
41
41
|
* @param componentName - The component name (kebab-case or PascalCase)
|
|
42
42
|
* @returns The README content as a string, or undefined if not found
|
|
43
43
|
*/
|
|
44
|
-
export const getComponentReadme = (
|
|
44
|
+
export const getComponentReadme = (
|
|
45
|
+
componentName: string
|
|
46
|
+
): string | undefined => {
|
|
45
47
|
const kebab = componentName
|
|
46
48
|
.replace(/([a-z0-9])([A-Z])/g, "$1-$2")
|
|
47
49
|
.replace(/[\s_]+/g, "-")
|
|
48
50
|
.toLowerCase();
|
|
49
|
-
|
|
51
|
+
|
|
50
52
|
return README_INDEX[kebab] || README_INDEX[componentName.toLowerCase()];
|
|
51
53
|
};
|
|
52
54
|
|