@surgeui/ds-vue 1.1.0 → 2.0.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/README.md +183 -30
- package/dist/components/atoms/Avatar.vue.d.ts.map +1 -1
- package/dist/components/atoms/Badge.vue.d.ts.map +1 -1
- package/dist/components/atoms/Button.vue.d.ts.map +1 -1
- package/dist/components/atoms/CheckboxGroup.vue.d.ts.map +1 -1
- package/dist/components/atoms/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/atoms/FormField.vue.d.ts +19 -0
- package/dist/components/atoms/FormField.vue.d.ts.map +1 -1
- package/dist/components/atoms/Heading.vue.d.ts.map +1 -1
- package/dist/components/atoms/Image.vue.d.ts.map +1 -1
- package/dist/components/atoms/Input.vue.d.ts.map +1 -1
- package/dist/components/atoms/Link.vue.d.ts.map +1 -1
- package/dist/components/atoms/Panel.vue.d.ts.map +1 -1
- package/dist/components/atoms/Progress.vue.d.ts +1 -1
- package/dist/components/atoms/Progress.vue.d.ts.map +1 -1
- package/dist/components/atoms/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/atoms/SelectBox.vue.d.ts +0 -1
- package/dist/components/atoms/SelectBox.vue.d.ts.map +1 -1
- package/dist/components/atoms/Slider.vue.d.ts +2 -2
- package/dist/components/atoms/Slider.vue.d.ts.map +1 -1
- package/dist/components/atoms/Switch.vue.d.ts.map +1 -1
- package/dist/components/atoms/Textarea.vue.d.ts.map +1 -1
- package/dist/components/molecules/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/molecules/AvatarGroup.vue.d.ts +1 -1
- package/dist/components/molecules/AvatarGroup.vue.d.ts.map +1 -1
- package/dist/components/molecules/ButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/molecules/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/molecules/FileUploadField.vue.d.ts.map +1 -1
- package/dist/components/molecules/FloatButton.vue.d.ts.map +1 -1
- package/dist/components/molecules/{FormFields.vue.d.ts → FormFieldGroup.vue.d.ts} +3 -3
- package/dist/components/molecules/FormFieldGroup.vue.d.ts.map +1 -0
- package/dist/components/molecules/InputField.vue.d.ts +1 -0
- package/dist/components/molecules/InputField.vue.d.ts.map +1 -1
- package/dist/components/molecules/LinkGroup.vue.d.ts.map +1 -1
- package/dist/components/molecules/Password.vue.d.ts.map +1 -1
- package/dist/components/molecules/PasswordField.vue.d.ts +85 -0
- package/dist/components/molecules/PasswordField.vue.d.ts.map +1 -0
- package/dist/components/molecules/SelectBoxField.vue.d.ts +0 -3
- package/dist/components/molecules/SelectBoxField.vue.d.ts.map +1 -1
- package/dist/components/molecules/SliderField.vue.d.ts +1 -1
- package/dist/components/molecules/SliderField.vue.d.ts.map +1 -1
- package/dist/components/organisms/Accordion.vue.d.ts.map +1 -1
- package/dist/components/organisms/Alert.vue.d.ts.map +1 -1
- package/dist/components/organisms/Dialog.vue.d.ts.map +1 -1
- package/dist/components/organisms/Tabs.vue.d.ts.map +1 -1
- package/dist/composables/index.d.ts +3 -0
- package/dist/composables/index.d.ts.map +1 -0
- package/dist/composables/useTheme.d.ts +18 -14
- package/dist/composables/useTheme.d.ts.map +1 -1
- package/dist/{index-BuLJg9Es.js → index-7PaC4pth.js} +1 -1
- package/dist/index-CWUPixNs.js +5852 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +34 -32
- package/dist/index.umd.js +1 -1
- package/dist/plugin/theme.d.ts +59 -16
- package/dist/plugin/theme.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme.config.d.ts +10 -0
- package/dist/theme.config.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/theme.d.ts +76 -6
- package/dist/types/theme.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/components/molecules/FormFields.vue.d.ts.map +0 -1
- package/dist/index-BTQ892Rw.js +0 -5485
|
@@ -43,7 +43,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
43
43
|
searchPlaceholder: string;
|
|
44
44
|
noOptionsText: string;
|
|
45
45
|
noResultsText: string;
|
|
46
|
-
dir: "ltr" | "rtl" | "auto";
|
|
47
46
|
closeOnSelect: boolean;
|
|
48
47
|
maxSelectedItems: number;
|
|
49
48
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
@@ -89,7 +88,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
89
88
|
searchPlaceholder: string;
|
|
90
89
|
noOptionsText: string;
|
|
91
90
|
noResultsText: string;
|
|
92
|
-
dir: "ltr" | "rtl" | "auto";
|
|
93
91
|
closeOnSelect: boolean;
|
|
94
92
|
maxSelectedItems: number;
|
|
95
93
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
@@ -138,7 +136,6 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
138
136
|
searchPlaceholder: string;
|
|
139
137
|
noOptionsText: string;
|
|
140
138
|
noResultsText: string;
|
|
141
|
-
dir: "ltr" | "rtl" | "auto";
|
|
142
139
|
closeOnSelect: boolean;
|
|
143
140
|
maxSelectedItems: number;
|
|
144
141
|
}> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectBoxField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/SelectBoxField.vue"],"names":[],"mappings":"AAiGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA8FvC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC;CAC9D,GAAG,WAAW,CAAC
|
|
1
|
+
{"version":3,"file":"SelectBoxField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/SelectBoxField.vue"],"names":[],"mappings":"AAiGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,KAAK,WAAW,GAAG,mBAAmB,CAAC;AA8FvC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC;CAC9D,GAAG,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqIhB,wBAWG"}
|
|
@@ -40,13 +40,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
40
40
|
onChange?: ((value: number | [number, number]) => any) | undefined;
|
|
41
41
|
"onUpdate:modelValue"?: ((value: number | [number, number]) => any) | undefined;
|
|
42
42
|
}>, {
|
|
43
|
-
max: number;
|
|
44
43
|
size: import('../../types').Size;
|
|
45
44
|
disabled: boolean;
|
|
46
45
|
state: import('../../types').State;
|
|
47
46
|
required: boolean;
|
|
48
47
|
readonly: boolean;
|
|
49
48
|
min: number;
|
|
49
|
+
max: number;
|
|
50
50
|
step: number;
|
|
51
51
|
orientation: import('../../types').Orientation;
|
|
52
52
|
tooltip: "none" | "top" | "bottom";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/SliderField.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SliderField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/molecules/SliderField.vue"],"names":[],"mappings":"AA+jCA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,MAAM,WAAW,KAAM,SAAQ,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC;CAAG;AAEjE,KAAK,WAAW,GAAG,KAAK,CAAC;AAmYzB,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAkQT,OAAO,IAA6B;;wBAftB,GAAG;uBACJ,GAAG;;;;;;;;;EAmB7B;AAuCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAWnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/Accordion.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Accordion.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/Accordion.vue"],"names":[],"mappings":"AAiSA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AA+NhE,iBAAS,cAAc;WAwET,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;kBAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/Alert.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Alert.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/Alert.vue"],"names":[],"mappings":"AA+YA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAiFzC,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;uBAZvB,GAAG;6BACG,GAAG;yBACP,GAAG;;;;EAe/B;AAoBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;6EASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/Dialog.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dialog.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/Dialog.vue"],"names":[],"mappings":"AA8cA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAoK1C,iBAAS,cAAc;WAmHT,OAAO,IAA6B;;sBAbvB,GAAG;yBACA,GAAG;wBACJ,GAAG;;;;;;EAgB/B;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;OAWnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/Tabs.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/organisms/Tabs.vue"],"names":[],"mappings":"AAwKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AA6CxC,iBAAS,cAAc;WA0ET,OAAO,IAA6B;;;;;YAXzB,GAAG;;;;YACD,GAAG;;;;EAe7B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;wFASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composables/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EACL,QAAQ,GACT,CAAA"}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
theme: SurgeuiTheme;
|
|
5
|
-
themeMode: import('vue').Ref<ThemeMode, ThemeMode>;
|
|
1
|
+
import { ThemeName, ContrastMode, MotionMode, ThemeMetadata, UseThemeOptions } from '../types/theme';
|
|
2
|
+
export declare function useTheme(options?: UseThemeOptions): {
|
|
3
|
+
themeName: import('vue').Ref<ThemeName, ThemeName>;
|
|
6
4
|
contrastMode: import('vue').Ref<ContrastMode, ContrastMode>;
|
|
7
5
|
motionMode: import('vue').Ref<MotionMode, MotionMode>;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
effectiveTheme: import('vue').ComputedRef<"dark" | "light" | "ocean" | "forest" | "sunset">;
|
|
7
|
+
effectiveContrast: import('vue').ComputedRef<"normal" | "high">;
|
|
8
|
+
effectiveMotion: import('vue').ComputedRef<"reduce" | "normal">;
|
|
9
|
+
systemTheme: import('vue').ComputedRef<"dark" | "light">;
|
|
11
10
|
systemContrast: import('vue').ComputedRef<"normal" | "high">;
|
|
12
|
-
systemMotion: import('vue').ComputedRef<"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
systemMotion: import('vue').ComputedRef<"reduce" | "normal">;
|
|
12
|
+
currentThemeMetadata: import('vue').ComputedRef<ThemeMetadata>;
|
|
13
|
+
isDarkMode: import('vue').ComputedRef<boolean>;
|
|
14
|
+
availableThemes: import('vue').ComputedRef<ThemeMetadata[]>;
|
|
15
|
+
systemThemes: import('vue').ComputedRef<ThemeMetadata[]>;
|
|
16
|
+
colorThemes: import('vue').ComputedRef<ThemeMetadata[]>;
|
|
17
|
+
setTheme: (theme: ThemeName) => void;
|
|
18
|
+
setContrast: (contrast: ContrastMode) => void;
|
|
19
|
+
setMotion: (motion: MotionMode) => void;
|
|
17
20
|
toggleTheme: () => void;
|
|
18
|
-
|
|
21
|
+
cycleTheme: () => void;
|
|
22
|
+
clearConfig: () => void;
|
|
19
23
|
};
|
|
20
24
|
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/composables/useTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/composables/useTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,UAAU,EAEV,aAAa,EACb,eAAe,EAChB,MAAM,eAAe,CAAC;AA8DvB,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB;;;;;;;;;;;;;;;sBAsJ3B,SAAS;4BAcH,YAAY;wBAKhB,UAAU;;;;EAiFtC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createElementBlock as o, openBlock as n, createElementVNode as r } from "vue";
|
|
2
|
-
import { r as Wr, a as Xr, b as Qr, c as Kr, d as Yr, e as Jr, f as ro, g as oo, i as no, h as eo, j as to, k as ao, l as io, m as co } from "./index-
|
|
2
|
+
import { r as Wr, a as Xr, b as Qr, c as Kr, d as Yr, e as Jr, f as ro, g as oo, i as no, h as eo, j as to, k as ao, l as io, m as co } from "./index-CWUPixNs.js";
|
|
3
3
|
function i(e, t) {
|
|
4
4
|
return n(), o("svg", {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|