@surgeui/ds-vue 2.0.0 → 2.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/dist/components/atoms/Avatar.vue.d.ts +1 -0
- package/dist/components/atoms/Avatar.vue.d.ts.map +1 -1
- package/dist/components/atoms/Button.vue.d.ts +1 -0
- package/dist/components/atoms/Button.vue.d.ts.map +1 -1
- package/dist/components/atoms/FileUpload.vue.d.ts +2 -0
- package/dist/components/atoms/FileUpload.vue.d.ts.map +1 -1
- package/dist/components/atoms/FormField.vue.d.ts +1 -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 +3 -0
- package/dist/components/atoms/Image.vue.d.ts.map +1 -1
- package/dist/components/atoms/Input.vue.d.ts +2 -2
- package/dist/components/atoms/Input.vue.d.ts.map +1 -1
- package/dist/components/atoms/Slider.vue.d.ts +2 -2
- package/dist/components/atoms/Switch.vue.d.ts +0 -1
- package/dist/components/atoms/Switch.vue.d.ts.map +1 -1
- package/dist/components/atoms/Textarea.vue.d.ts +2 -2
- package/dist/components/molecules/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/molecules/CheckboxGroupField.vue.d.ts.map +1 -1
- package/dist/components/molecules/Dropdown.vue.d.ts +3 -2
- package/dist/components/molecules/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/molecules/FileUploadField.vue.d.ts +2 -0
- package/dist/components/molecules/FileUploadField.vue.d.ts.map +1 -1
- package/dist/components/molecules/FloatButton.vue.d.ts +8 -2
- package/dist/components/molecules/FloatButton.vue.d.ts.map +1 -1
- package/dist/components/molecules/InputField.vue.d.ts +12 -8
- package/dist/components/molecules/InputField.vue.d.ts.map +1 -1
- package/dist/components/molecules/Password.vue.d.ts +2 -2
- package/dist/components/molecules/PasswordField.vue.d.ts +2 -2
- package/dist/components/molecules/RadioGroupField.vue.d.ts.map +1 -1
- package/dist/components/molecules/SelectBoxField.vue.d.ts.map +1 -1
- package/dist/components/molecules/SliderField.vue.d.ts +2 -2
- package/dist/components/molecules/SwitchField.vue.d.ts.map +1 -1
- package/dist/components/molecules/TextareaField.vue.d.ts +5 -5
- package/dist/components/molecules/TextareaField.vue.d.ts.map +1 -1
- package/dist/components/organisms/Accordion.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 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/useCustomTheme.d.ts +65 -0
- package/dist/composables/useCustomTheme.d.ts.map +1 -0
- package/dist/composables/useTheme.d.ts +7 -3
- package/dist/composables/useTheme.d.ts.map +1 -1
- package/dist/{index-7PaC4pth.js → index-DK5ikXj4.js} +1 -1
- package/dist/index-qVwCNMxx.js +5992 -0
- package/dist/index.es.js +27 -25
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/theme.config.d.ts.map +1 -1
- package/dist/types/index.d.ts +35 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/theme.d.ts +21 -5
- package/dist/types/theme.d.ts.map +1 -1
- package/dist/utils/accessibility.d.ts +2 -2
- package/dist/utils/accessibility.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-CWUPixNs.js +0 -5852
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SurgeuiTheme } from '../plugin/theme';
|
|
2
|
+
/**
|
|
3
|
+
* Composable pour gérer les variables CSS custom du système de thème
|
|
4
|
+
*
|
|
5
|
+
* Permet de:
|
|
6
|
+
* - Appliquer des variables CSS custom au DOM
|
|
7
|
+
* - Définir des variables individuelles
|
|
8
|
+
* - Réinitialiser les variables
|
|
9
|
+
* - Fusionner avec des thèmes existants
|
|
10
|
+
*/
|
|
11
|
+
export declare function useCustomTheme(): {
|
|
12
|
+
customTheme: import('vue').ComputedRef<{
|
|
13
|
+
textPrimary?: string | undefined;
|
|
14
|
+
textSecondary?: string | undefined;
|
|
15
|
+
textTertiary?: string | undefined;
|
|
16
|
+
textDisabled?: string | undefined;
|
|
17
|
+
textInverse?: string | undefined;
|
|
18
|
+
linkDefault?: string | undefined;
|
|
19
|
+
linkHover?: string | undefined;
|
|
20
|
+
linkVisited?: string | undefined;
|
|
21
|
+
linkMuted?: string | undefined;
|
|
22
|
+
bgCanvas?: string | undefined;
|
|
23
|
+
bgSurface?: string | undefined;
|
|
24
|
+
bgSurfaceElevated?: string | undefined;
|
|
25
|
+
bgOverlay?: string | undefined;
|
|
26
|
+
bgDisabled?: string | undefined;
|
|
27
|
+
bgHover?: string | undefined;
|
|
28
|
+
bgActive?: string | undefined;
|
|
29
|
+
bgSelected?: string | undefined;
|
|
30
|
+
borderDefault?: string | undefined;
|
|
31
|
+
borderSubtle?: string | undefined;
|
|
32
|
+
borderStrong?: string | undefined;
|
|
33
|
+
borderFocus?: string | undefined;
|
|
34
|
+
borderDisabled?: string | undefined;
|
|
35
|
+
stateSuccess?: string | undefined;
|
|
36
|
+
stateSuccessBg?: string | undefined;
|
|
37
|
+
stateWarning?: string | undefined;
|
|
38
|
+
stateWarningBg?: string | undefined;
|
|
39
|
+
stateError?: string | undefined;
|
|
40
|
+
stateErrorBg?: string | undefined;
|
|
41
|
+
stateInfo?: string | undefined;
|
|
42
|
+
stateInfoBg?: string | undefined;
|
|
43
|
+
primaryDefault?: string | undefined;
|
|
44
|
+
primaryHover?: string | undefined;
|
|
45
|
+
primaryActive?: string | undefined;
|
|
46
|
+
primaryDisabled?: string | undefined;
|
|
47
|
+
primaryText?: string | undefined;
|
|
48
|
+
secondaryDefault?: string | undefined;
|
|
49
|
+
secondaryHover?: string | undefined;
|
|
50
|
+
secondaryActive?: string | undefined;
|
|
51
|
+
secondaryDisabled?: string | undefined;
|
|
52
|
+
secondaryText?: string | undefined;
|
|
53
|
+
shadowColor?: string | undefined;
|
|
54
|
+
linkVariant?: Exclude<import('..').LinkVariant, "custom"> | undefined;
|
|
55
|
+
linkSize?: Exclude<import('..').LinkSize, "default"> | undefined;
|
|
56
|
+
linkUnderline?: Exclude<import('..').LinkUnderline, "default"> | undefined;
|
|
57
|
+
dialogDisplay?: Exclude<import('..').DialogDisplay, "center"> | undefined;
|
|
58
|
+
}>;
|
|
59
|
+
applyCustomTheme: (theme: SurgeuiTheme) => void;
|
|
60
|
+
setCustomVariable: (property: string, value: string) => void;
|
|
61
|
+
getCustomTheme: () => SurgeuiTheme;
|
|
62
|
+
resetCustomTheme: () => void;
|
|
63
|
+
mergeWithTheme: (baseTheme: SurgeuiTheme, overrideTheme: SurgeuiTheme) => SurgeuiTheme;
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=useCustomTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCustomTheme.d.ts","sourceRoot":"","sources":["../../src/composables/useCustomTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD;;;;;;;;GAQG;AACH,wBAAgB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BAcK,YAAY,KAAG,IAAI;kCAgBf,MAAM,SAAS,MAAM,KAAG,IAAI;0BAwBtC,YAAY;4BAOV,IAAI;gCA0BE,YAAY,iBAAiB,YAAY,KAAG,YAAY;EA+B5F"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ThemeName, ContrastMode, MotionMode, ThemeMetadata, UseThemeOptions } from '../types/theme';
|
|
1
|
+
import { ThemeName, ThemeMode, ContrastMode, MotionMode, ThemeMetadata, UseThemeOptions, DeprecatedThemeName } from '../types/theme';
|
|
2
2
|
export declare function useTheme(options?: UseThemeOptions): {
|
|
3
3
|
themeName: import('vue').Ref<ThemeName, ThemeName>;
|
|
4
|
+
themeMode: import('vue').Ref<ThemeMode, ThemeMode>;
|
|
4
5
|
contrastMode: import('vue').Ref<ContrastMode, ContrastMode>;
|
|
5
6
|
motionMode: import('vue').Ref<MotionMode, MotionMode>;
|
|
6
|
-
effectiveTheme: import('vue').ComputedRef<
|
|
7
|
+
effectiveTheme: import('vue').ComputedRef<ThemeName>;
|
|
8
|
+
effectiveThemeMode: import('vue').ComputedRef<"dark" | "light">;
|
|
7
9
|
effectiveContrast: import('vue').ComputedRef<"normal" | "high">;
|
|
8
10
|
effectiveMotion: import('vue').ComputedRef<"reduce" | "normal">;
|
|
9
11
|
systemTheme: import('vue').ComputedRef<"dark" | "light">;
|
|
@@ -14,9 +16,11 @@ export declare function useTheme(options?: UseThemeOptions): {
|
|
|
14
16
|
availableThemes: import('vue').ComputedRef<ThemeMetadata[]>;
|
|
15
17
|
systemThemes: import('vue').ComputedRef<ThemeMetadata[]>;
|
|
16
18
|
colorThemes: import('vue').ComputedRef<ThemeMetadata[]>;
|
|
17
|
-
setTheme: (
|
|
19
|
+
setTheme: (name: ThemeName | DeprecatedThemeName) => void;
|
|
20
|
+
setThemeMode: (mode: ThemeMode) => void;
|
|
18
21
|
setContrast: (contrast: ContrastMode) => void;
|
|
19
22
|
setMotion: (motion: MotionMode) => void;
|
|
23
|
+
toggleMode: () => void;
|
|
20
24
|
toggleTheme: () => void;
|
|
21
25
|
cycleTheme: () => void;
|
|
22
26
|
clearConfig: () => void;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
1
|
+
{"version":3,"file":"useTheme.d.ts","sourceRoot":"","sources":["../../src/composables/useTheme.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EAEV,aAAa,EACb,eAAe,EACf,mBAAmB,EACpB,MAAM,eAAe,CAAC;AA2DvB,wBAAgB,QAAQ,CAAC,OAAO,GAAE,eAAoB;;;;;;;;;;;;;;;;;qBA4L5B,SAAS,GAAG,mBAAmB;yBAuC3B,SAAS;4BAMN,YAAY;wBAMhB,UAAU;;;;;EA4GtC"}
|
|
@@ -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-qVwCNMxx.js";
|
|
3
3
|
function i(e, t) {
|
|
4
4
|
return n(), o("svg", {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|