pxd 0.0.13 → 0.0.16
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/active-graph/index.vue +331 -0
- package/dist/components/active-graph/index.vue.d.ts +49 -0
- package/dist/components/avatar/index.vue +30 -8
- package/dist/components/avatar/index.vue.d.ts +10 -1
- package/dist/components/avatar-group/index.vue +5 -4
- package/dist/components/avatar-group/index.vue.d.ts +1 -0
- package/dist/components/button/index.vue +11 -7
- package/dist/components/button/index.vue.d.ts +8 -6
- package/dist/components/checkbox/index.vue +7 -6
- package/dist/components/checkbox/index.vue.d.ts +4 -3
- package/dist/components/checkbox-group/index.vue +10 -6
- package/dist/components/checkbox-group/index.vue.d.ts +3 -7
- package/dist/components/config-provider/index.vue +3 -1
- package/dist/components/config-provider/index.vue.d.ts +2 -1
- package/dist/components/description/index.vue +31 -0
- package/dist/components/description/index.vue.d.ts +19 -0
- package/dist/components/error/index.vue +17 -13
- package/dist/components/gauge/index.vue +24 -23
- package/dist/components/gauge/index.vue.d.ts +2 -2
- package/dist/components/hold-button/index.vue +9 -8
- package/dist/components/index.d.ts +8 -1
- package/dist/components/index.js +8 -1
- package/dist/components/input/index.vue +27 -19
- package/dist/components/input/index.vue.d.ts +13 -10
- package/dist/components/kbd/index.vue +1 -1
- package/dist/components/link-button/index.vue +4 -4
- package/dist/components/more-button/index.vue +5 -5
- package/dist/components/more-button/index.vue.d.ts +3 -3
- package/dist/components/note/index.vue +17 -12
- package/dist/components/note/index.vue.d.ts +35 -7
- package/dist/components/popover/index.vue +364 -0
- package/dist/components/popover/index.vue.d.ts +54 -0
- package/dist/components/progress/index.vue +9 -15
- package/dist/components/progress/index.vue.d.ts +2 -2
- package/dist/components/radio/index.vue +14 -16
- package/dist/components/radio/index.vue.d.ts +4 -3
- package/dist/components/radio-group/index.vue +5 -5
- package/dist/components/radio-group/index.vue.d.ts +5 -9
- package/dist/components/scrollable/index.vue +43 -30
- package/dist/components/slider/index.vue +52 -38
- package/dist/components/slider/index.vue.d.ts +5 -4
- package/dist/components/snippet/index.vue +4 -3
- package/dist/components/stack/index.vue +41 -38
- package/dist/components/stack/index.vue.d.ts +14 -3
- package/dist/components/switch/index.vue +65 -0
- package/dist/components/switch/index.vue.d.ts +19 -0
- package/dist/components/switch-group/index.vue +48 -0
- package/dist/components/switch-group/index.vue.d.ts +28 -0
- package/dist/components/teleport/index.vue +68 -0
- package/dist/components/teleport/index.vue.d.ts +20 -0
- package/dist/components/textarea/index.vue +18 -10
- package/dist/components/textarea/index.vue.d.ts +17 -6
- package/dist/components/{color-scheme → theme-switcher}/index.vue +9 -6
- package/dist/components/toggle/index.vue +4 -4
- package/dist/components/toggle/index.vue.d.ts +2 -2
- package/dist/components/tooltip/index.vue +49 -0
- package/dist/components/tooltip/index.vue.d.ts +27 -0
- package/dist/composables/index.d.ts +2 -0
- package/dist/composables/index.js +2 -0
- package/dist/composables/useConfigProviderContext.d.ts +1 -0
- package/dist/composables/useConfigProviderContext.js +3 -1
- package/dist/composables/useDelayChange.d.ts +8 -0
- package/dist/composables/useDelayChange.js +20 -0
- package/dist/composables/useIntersectionObserver.d.ts +7 -0
- package/dist/composables/useIntersectionObserver.js +44 -0
- package/dist/composables/useMediaQuery.d.ts +2 -1
- package/dist/composables/useMediaQuery.js +3 -4
- package/dist/composables/useModelValue.d.ts +2 -1
- package/dist/composables/useRandomValueContext.js +6 -6
- package/dist/composables/useResizeObserver.d.ts +5 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.d.ts +32 -0
- package/dist/locales/en-US.js +31 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/index.js +2 -0
- package/dist/locales/zh-CN.d.ts +32 -0
- package/dist/locales/zh-CN.js +31 -0
- package/dist/styles/dst.css +277 -0
- package/dist/styles/styles.css +2 -0
- package/dist/styles/tw.css +361 -355
- package/dist/types/components.d.ts +6 -10
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/shared.d.ts +1 -0
- package/dist/types/shared.js +0 -0
- package/dist/utils/colors.d.ts +1 -0
- package/dist/utils/colors.js +13 -0
- package/dist/utils/dates.d.ts +12 -0
- package/dist/utils/dates.js +40 -0
- package/dist/utils/device.d.ts +1 -0
- package/dist/utils/device.js +1 -0
- package/dist/utils/dom.d.ts +12 -0
- package/dist/utils/dom.js +16 -0
- package/dist/utils/events.d.ts +5 -0
- package/dist/utils/events.js +27 -0
- package/dist/utils/fn.d.ts +4 -0
- package/dist/utils/fn.js +44 -0
- package/dist/utils/random.d.ts +1 -1
- package/dist/utils/random.js +2 -2
- package/dist/utils/uid.d.ts +1 -0
- package/dist/utils/uid.js +4 -0
- package/package.json +27 -11
- package/dist/styles/index.css +0 -2
- package/dist/styles/tokens.css +0 -238
- /package/dist/components/{color-scheme → theme-switcher}/index.vue.d.ts +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CSSProperties } from 'vue';
|
|
2
|
+
import type { ComponentVariant } from '../../types/components';
|
|
3
|
+
interface Props {
|
|
4
|
+
content?: string;
|
|
5
|
+
desktopOnly?: boolean;
|
|
6
|
+
popoverClass?: string;
|
|
7
|
+
popoverStyle?: CSSProperties | string;
|
|
8
|
+
variant?: ComponentVariant;
|
|
9
|
+
}
|
|
10
|
+
declare var __VLS_5: {}, __VLS_7: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
default?: (props: typeof __VLS_5) => any;
|
|
13
|
+
} & {
|
|
14
|
+
content?: (props: typeof __VLS_7) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
17
|
+
variant: ComponentVariant;
|
|
18
|
+
popoverClass: string;
|
|
19
|
+
popoverStyle: CSSProperties | string;
|
|
20
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './useComputedSize.js';
|
|
2
2
|
export * from './useConfigProviderContext.js';
|
|
3
|
+
export * from './useDelayChange.js';
|
|
4
|
+
export * from './useIntersectionObserver.js';
|
|
3
5
|
export * from './useMediaQuery.js';
|
|
4
6
|
export * from './useModelValue.js';
|
|
5
7
|
export * from './useRandomValueContext.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from "./useComputedSize.js";
|
|
2
2
|
export * from "./useConfigProviderContext.js";
|
|
3
|
+
export * from "./useDelayChange.js";
|
|
4
|
+
export * from "./useIntersectionObserver.js";
|
|
3
5
|
export * from "./useMediaQuery.js";
|
|
4
6
|
export * from "./useModelValue.js";
|
|
5
7
|
export * from "./useRandomValueContext.js";
|
|
@@ -2,6 +2,7 @@ import type { ComponentSize } from '../types/components';
|
|
|
2
2
|
export declare const injectionKey = "configProvider";
|
|
3
3
|
export interface ConfigProviderProps {
|
|
4
4
|
size?: ComponentSize;
|
|
5
|
+
locale?: Record<string, any>;
|
|
5
6
|
}
|
|
6
7
|
export declare function provideConfigProvider(configProvider: ConfigProviderProps): void;
|
|
7
8
|
export declare function useConfigProvider(): Required<ConfigProviderProps>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { inject, provide } from "vue";
|
|
2
|
+
import enUS from "../locales/en-US.js";
|
|
2
3
|
export const injectionKey = "configProvider";
|
|
3
4
|
export function provideConfigProvider(configProvider) {
|
|
4
5
|
provide(injectionKey, configProvider);
|
|
5
6
|
}
|
|
6
7
|
export function useConfigProvider() {
|
|
7
8
|
const defaultConfig = {
|
|
8
|
-
size: "md"
|
|
9
|
+
size: "md",
|
|
10
|
+
locale: enUS
|
|
9
11
|
};
|
|
10
12
|
return inject(injectionKey, defaultConfig);
|
|
11
13
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
interface UseDelayChangeReturnType<T> {
|
|
3
|
+
value: Ref<T>;
|
|
4
|
+
set: (value: T) => void;
|
|
5
|
+
setImmediate: (value: T) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function useDelayChange<T>(value: T, delay?: number): UseDelayChangeReturnType<T>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { shallowRef } from "vue";
|
|
2
|
+
export function useDelayChange(value, delay = 1e3) {
|
|
3
|
+
const delayValue = shallowRef(value);
|
|
4
|
+
let timerId;
|
|
5
|
+
function set(value2) {
|
|
6
|
+
clearTimeout(timerId);
|
|
7
|
+
timerId = setTimeout(() => {
|
|
8
|
+
setImmediate(value2);
|
|
9
|
+
}, delay);
|
|
10
|
+
}
|
|
11
|
+
function setImmediate(value2) {
|
|
12
|
+
clearTimeout(timerId);
|
|
13
|
+
delayValue.value = value2;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
value: delayValue,
|
|
17
|
+
set,
|
|
18
|
+
setImmediate
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MaybeRef } from 'vue';
|
|
2
|
+
interface UseIntersectionObserverReturnType {
|
|
3
|
+
observer: IntersectionObserver | undefined;
|
|
4
|
+
stop: () => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function useIntersectionObserver(target: MaybeRef<HTMLElement | null | undefined>, callback: (entries: IntersectionObserverEntry) => void): UseIntersectionObserverReturnType;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { onBeforeUnmount, unref, watch } from "vue";
|
|
2
|
+
export function useIntersectionObserver(target, callback) {
|
|
3
|
+
let observer;
|
|
4
|
+
const cleanup = () => {
|
|
5
|
+
if (!observer) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
observer.disconnect();
|
|
9
|
+
observer = void 0;
|
|
10
|
+
};
|
|
11
|
+
const unwatch = watch(
|
|
12
|
+
() => unref(target),
|
|
13
|
+
(newVal, oldVal) => {
|
|
14
|
+
if (typeof window === "undefined" || typeof IntersectionObserver === "undefined") {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
cleanup();
|
|
18
|
+
observer = new IntersectionObserver((entries) => {
|
|
19
|
+
entries.forEach(callback);
|
|
20
|
+
});
|
|
21
|
+
if (oldVal) {
|
|
22
|
+
observer.unobserve(oldVal);
|
|
23
|
+
}
|
|
24
|
+
if (newVal) {
|
|
25
|
+
observer.observe(newVal);
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
immediate: true,
|
|
30
|
+
flush: "post"
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
const stop = () => {
|
|
34
|
+
unwatch();
|
|
35
|
+
cleanup();
|
|
36
|
+
};
|
|
37
|
+
onBeforeUnmount(() => {
|
|
38
|
+
stop();
|
|
39
|
+
});
|
|
40
|
+
return {
|
|
41
|
+
observer,
|
|
42
|
+
stop
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export declare function useMediaQuery(query: string): Ref<boolean>;
|
|
2
3
|
export declare const MEDIA_QUERY: {
|
|
3
4
|
MOTION_REDUCE: string;
|
|
4
5
|
MOTION_NO_PREFERENCE: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { onUnmounted, shallowRef } from "vue";
|
|
2
|
+
import { on } from "../utils/events.js";
|
|
2
3
|
export function useMediaQuery(query) {
|
|
3
4
|
const matches = shallowRef(false);
|
|
4
5
|
if (typeof window === "undefined" || !window.matchMedia) {
|
|
@@ -9,10 +10,8 @@ export function useMediaQuery(query) {
|
|
|
9
10
|
const handler = (event) => {
|
|
10
11
|
matches.value = event.matches;
|
|
11
12
|
};
|
|
12
|
-
mediaQuery
|
|
13
|
-
onUnmounted(
|
|
14
|
-
mediaQuery.removeEventListener("change", handler);
|
|
15
|
-
});
|
|
13
|
+
const unbindEvent = on(mediaQuery, "change", handler, { passive: true });
|
|
14
|
+
onUnmounted(unbindEvent);
|
|
16
15
|
return matches;
|
|
17
16
|
}
|
|
18
17
|
export const MEDIA_QUERY = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WritableComputedRef } from 'vue';
|
|
1
2
|
interface Options {
|
|
2
3
|
get?: (value: any) => any;
|
|
3
4
|
set?: (value: any) => void;
|
|
@@ -6,5 +7,5 @@ export declare function useModelValue<P extends {
|
|
|
6
7
|
modelValue: any;
|
|
7
8
|
}, E extends {
|
|
8
9
|
(event: 'update:modelValue', ...args: any[]): void;
|
|
9
|
-
}>(props: P, emits: E, options?: Options):
|
|
10
|
+
}>(props: P, emits: E, options?: Options): WritableComputedRef<NonNullable<P['modelValue']>>;
|
|
10
11
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { inject, provide } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { getRandomKey } from "../utils/random.js";
|
|
3
3
|
export function provideRandomValue(provideKey = "randomValue") {
|
|
4
|
-
const
|
|
5
|
-
provide(provideKey,
|
|
6
|
-
return
|
|
4
|
+
const randomKey = getRandomKey();
|
|
5
|
+
provide(provideKey, randomKey);
|
|
6
|
+
return randomKey;
|
|
7
7
|
}
|
|
8
8
|
export function useRandomValue(provideKey = "randomValue") {
|
|
9
|
-
const
|
|
10
|
-
return
|
|
9
|
+
const injectedValue = inject(provideKey, getRandomKey());
|
|
10
|
+
return injectedValue;
|
|
11
11
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { MaybeRef } from 'vue';
|
|
2
|
-
|
|
3
|
-
observer: ResizeObserver;
|
|
2
|
+
interface UseResizeObserverReturnType {
|
|
3
|
+
observer: ResizeObserver | undefined;
|
|
4
4
|
stop: () => void;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
|
+
export declare function useResizeObserver(target: MaybeRef<HTMLElement | null | undefined>, callback: (entries: ResizeObserverEntry) => void): UseResizeObserverReturnType;
|
|
7
|
+
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as components from "./components/index.js";
|
|
2
2
|
export * from "./components/index.js";
|
|
3
|
-
export const version = "0.0.
|
|
3
|
+
export const version = "0.0.16";
|
|
4
4
|
export default function install(app, prefix = "P") {
|
|
5
5
|
Object.entries(components).forEach(([key, component]) => {
|
|
6
6
|
app.component(`${prefix}${key}`, component);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
date: {
|
|
3
|
+
month: {
|
|
4
|
+
0: string;
|
|
5
|
+
1: string;
|
|
6
|
+
2: string;
|
|
7
|
+
3: string;
|
|
8
|
+
4: string;
|
|
9
|
+
5: string;
|
|
10
|
+
6: string;
|
|
11
|
+
7: string;
|
|
12
|
+
8: string;
|
|
13
|
+
9: string;
|
|
14
|
+
10: string;
|
|
15
|
+
11: string;
|
|
16
|
+
};
|
|
17
|
+
day: {
|
|
18
|
+
0: string;
|
|
19
|
+
1: string;
|
|
20
|
+
2: string;
|
|
21
|
+
3: string;
|
|
22
|
+
4: string;
|
|
23
|
+
5: string;
|
|
24
|
+
6: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
compare: {
|
|
28
|
+
less: string;
|
|
29
|
+
more: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
date: {
|
|
3
|
+
month: {
|
|
4
|
+
0: "Jan",
|
|
5
|
+
1: "Feb",
|
|
6
|
+
2: "Mar",
|
|
7
|
+
3: "Apr",
|
|
8
|
+
4: "May",
|
|
9
|
+
5: "Jun",
|
|
10
|
+
6: "Jul",
|
|
11
|
+
7: "Aug",
|
|
12
|
+
8: "Sep",
|
|
13
|
+
9: "Oct",
|
|
14
|
+
10: "Nov",
|
|
15
|
+
11: "Dec"
|
|
16
|
+
},
|
|
17
|
+
day: {
|
|
18
|
+
0: "Sun",
|
|
19
|
+
1: "Mon",
|
|
20
|
+
2: "Tue",
|
|
21
|
+
3: "Wed",
|
|
22
|
+
4: "Thu",
|
|
23
|
+
5: "Fri",
|
|
24
|
+
6: "Sat"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
compare: {
|
|
28
|
+
less: "Less",
|
|
29
|
+
more: "More"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
date: {
|
|
3
|
+
month: {
|
|
4
|
+
0: string;
|
|
5
|
+
1: string;
|
|
6
|
+
2: string;
|
|
7
|
+
3: string;
|
|
8
|
+
4: string;
|
|
9
|
+
5: string;
|
|
10
|
+
6: string;
|
|
11
|
+
7: string;
|
|
12
|
+
8: string;
|
|
13
|
+
9: string;
|
|
14
|
+
10: string;
|
|
15
|
+
11: string;
|
|
16
|
+
};
|
|
17
|
+
day: {
|
|
18
|
+
0: string;
|
|
19
|
+
1: string;
|
|
20
|
+
2: string;
|
|
21
|
+
3: string;
|
|
22
|
+
4: string;
|
|
23
|
+
5: string;
|
|
24
|
+
6: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
compare: {
|
|
28
|
+
less: string;
|
|
29
|
+
more: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
date: {
|
|
3
|
+
month: {
|
|
4
|
+
0: "\u4E00\u6708",
|
|
5
|
+
1: "\u4E8C\u6708",
|
|
6
|
+
2: "\u4E09\u6708",
|
|
7
|
+
3: "\u56DB\u6708",
|
|
8
|
+
4: "\u4E94\u6708",
|
|
9
|
+
5: "\u516D\u6708",
|
|
10
|
+
6: "\u4E03\u6708",
|
|
11
|
+
7: "\u516B\u6708",
|
|
12
|
+
8: "\u4E5D\u6708",
|
|
13
|
+
9: "\u5341\u6708",
|
|
14
|
+
10: "\u5341\u4E00\u6708",
|
|
15
|
+
11: "\u5341\u4E8C\u6708"
|
|
16
|
+
},
|
|
17
|
+
day: {
|
|
18
|
+
0: "\u65E5",
|
|
19
|
+
1: "\u4E00",
|
|
20
|
+
2: "\u4E8C",
|
|
21
|
+
3: "\u4E09",
|
|
22
|
+
4: "\u56DB",
|
|
23
|
+
5: "\u4E94",
|
|
24
|
+
6: "\u516D"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
compare: {
|
|
28
|
+
less: "\u5C11",
|
|
29
|
+
more: "\u591A"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--radius: 0.5rem;
|
|
3
|
+
|
|
4
|
+
--background-100: #fff;
|
|
5
|
+
--background-200: #f8f8f8;
|
|
6
|
+
|
|
7
|
+
--ring: var(--color-blue-900-value);
|
|
8
|
+
--primary: var(--color-gray-1000-value);
|
|
9
|
+
|
|
10
|
+
--color-gray-alpha-100: hsla(0, 0%, 0%, 0.05);
|
|
11
|
+
--color-gray-alpha-200: hsla(0, 0%, 0%, 0.08);
|
|
12
|
+
--color-gray-alpha-300: hsla(0, 0%, 0%, 0.12);
|
|
13
|
+
--color-gray-alpha-400: hsla(0, 0%, 0%, 0.17);
|
|
14
|
+
--color-gray-alpha-500: hsla(0, 0%, 0%, 0.21);
|
|
15
|
+
--color-gray-alpha-600: hsla(0, 0%, 0%, 0.34);
|
|
16
|
+
--color-gray-alpha-700: hsla(0, 0%, 0%, 0.44);
|
|
17
|
+
--color-gray-alpha-800: hsla(0, 0%, 0%, 0.51);
|
|
18
|
+
--color-gray-alpha-900: hsla(0, 0%, 0%, 0.61);
|
|
19
|
+
--color-gray-alpha-1000: hsla(0, 0%, 0%, 0.91);
|
|
20
|
+
|
|
21
|
+
--color-gray-100-value: 0, 0%, 95%;
|
|
22
|
+
--color-gray-200-value: 0, 0%, 93%;
|
|
23
|
+
--color-gray-300-value: 0, 0%, 90%;
|
|
24
|
+
--color-gray-400-value: 0, 0%, 85%;
|
|
25
|
+
--color-gray-500-value: 0, 0%, 79%;
|
|
26
|
+
--color-gray-600-value: 0, 0%, 66%;
|
|
27
|
+
--color-gray-700-value: 0, 0%, 56%;
|
|
28
|
+
--color-gray-800-value: 0, 0%, 49%;
|
|
29
|
+
--color-gray-900-value: 0, 0%, 40%;
|
|
30
|
+
--color-gray-1000-value: 0, 0%, 9%;
|
|
31
|
+
|
|
32
|
+
--color-blue-100-value: 212, 100%, 97%;
|
|
33
|
+
--color-blue-200-value: 210, 100%, 96%;
|
|
34
|
+
--color-blue-300-value: 210, 100%, 94%;
|
|
35
|
+
--color-blue-400-value: 209, 100%, 90%;
|
|
36
|
+
--color-blue-500-value: 209, 100%, 80%;
|
|
37
|
+
--color-blue-600-value: 208, 100%, 66%;
|
|
38
|
+
--color-blue-700-value: 212, 100%, 48%;
|
|
39
|
+
--color-blue-800-value: 212, 100%, 41%;
|
|
40
|
+
--color-blue-900-value: 211, 100%, 42%;
|
|
41
|
+
--color-blue-1000-value: 211, 100%, 15%;
|
|
42
|
+
|
|
43
|
+
--color-red-100-value: 0, 100%, 97%;
|
|
44
|
+
--color-red-200-value: 0, 100%, 96%;
|
|
45
|
+
--color-red-300-value: 0, 100%, 95%;
|
|
46
|
+
--color-red-400-value: 0, 90%, 92%;
|
|
47
|
+
--color-red-500-value: 0, 82%, 85%;
|
|
48
|
+
--color-red-600-value: 359, 90%, 71%;
|
|
49
|
+
--color-red-700-value: 358, 75%, 59%;
|
|
50
|
+
--color-red-800-value: 358, 70%, 52%;
|
|
51
|
+
--color-red-900-value: 358, 66%, 48%;
|
|
52
|
+
--color-red-1000-value: 355, 49%, 15%;
|
|
53
|
+
|
|
54
|
+
--color-amber-100-value: 39, 100%, 95%;
|
|
55
|
+
--color-amber-200-value: 44, 100%, 92%;
|
|
56
|
+
--color-amber-300-value: 43, 96%, 90%;
|
|
57
|
+
--color-amber-400-value: 42, 100%, 78%;
|
|
58
|
+
--color-amber-500-value: 38, 100%, 71%;
|
|
59
|
+
--color-amber-600-value: 36, 90%, 62%;
|
|
60
|
+
--color-amber-700-value: 39, 100%, 57%;
|
|
61
|
+
--color-amber-800-value: 35, 100%, 52%;
|
|
62
|
+
--color-amber-900-value: 30, 100%, 32%;
|
|
63
|
+
--color-amber-1000-value: 20, 79%, 17%;
|
|
64
|
+
|
|
65
|
+
--color-green-100-value: 120, 60%, 96%;
|
|
66
|
+
--color-green-200-value: 120, 60%, 95%;
|
|
67
|
+
--color-green-300-value: 120, 60%, 91%;
|
|
68
|
+
--color-green-400-value: 122, 60%, 86%;
|
|
69
|
+
--color-green-500-value: 124, 60%, 75%;
|
|
70
|
+
--color-green-600-value: 125, 60%, 64%;
|
|
71
|
+
--color-green-700-value: 131, 41%, 46%;
|
|
72
|
+
--color-green-800-value: 132, 43%, 39%;
|
|
73
|
+
--color-green-900-value: 133, 50%, 32%;
|
|
74
|
+
--color-green-1000-value: 128, 29%, 15%;
|
|
75
|
+
|
|
76
|
+
--color-teal-100-value: 169, 70%, 96%;
|
|
77
|
+
--color-teal-200-value: 167, 70%, 94%;
|
|
78
|
+
--color-teal-300-value: 168, 70%, 90%;
|
|
79
|
+
--color-teal-400-value: 170, 70%, 85%;
|
|
80
|
+
--color-teal-500-value: 170, 70%, 72%;
|
|
81
|
+
--color-teal-600-value: 170, 70%, 57%;
|
|
82
|
+
--color-teal-700-value: 173, 80%, 36%;
|
|
83
|
+
--color-teal-800-value: 173, 83%, 30%;
|
|
84
|
+
--color-teal-900-value: 174, 91%, 25%;
|
|
85
|
+
--color-teal-1000-value: 171, 80%, 13%;
|
|
86
|
+
|
|
87
|
+
--color-purple-100-value: 276, 100%, 97%;
|
|
88
|
+
--color-purple-200-value: 277, 87%, 97%;
|
|
89
|
+
--color-purple-300-value: 274, 78%, 95%;
|
|
90
|
+
--color-purple-400-value: 276, 71%, 92%;
|
|
91
|
+
--color-purple-500-value: 274, 70%, 82%;
|
|
92
|
+
--color-purple-600-value: 273, 72%, 73%;
|
|
93
|
+
--color-purple-700-value: 272, 51%, 54%;
|
|
94
|
+
--color-purple-800-value: 272, 47%, 45%;
|
|
95
|
+
--color-purple-900-value: 274, 71%, 43%;
|
|
96
|
+
--color-purple-1000-value: 276, 100%, 15%;
|
|
97
|
+
|
|
98
|
+
--color-pink-100-value: 330, 100%, 96%;
|
|
99
|
+
--color-pink-200-value: 340, 90%, 96%;
|
|
100
|
+
--color-pink-300-value: 340, 82%, 94%;
|
|
101
|
+
--color-pink-400-value: 341, 76%, 91%;
|
|
102
|
+
--color-pink-500-value: 340, 75%, 84%;
|
|
103
|
+
--color-pink-600-value: 341, 75%, 73%;
|
|
104
|
+
--color-pink-700-value: 336, 80%, 58%;
|
|
105
|
+
--color-pink-800-value: 336, 74%, 51%;
|
|
106
|
+
--color-pink-900-value: 336, 65%, 45%;
|
|
107
|
+
--color-pink-1000-value: 333, 74%, 15%;
|
|
108
|
+
|
|
109
|
+
color-scheme: light;
|
|
110
|
+
background-color: var(--color-background);
|
|
111
|
+
color: var(--color-foreground);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:root.dark {
|
|
115
|
+
--background-100: #121212;
|
|
116
|
+
--background-200: #000;
|
|
117
|
+
|
|
118
|
+
--color-gray-alpha-100: hsla(0, 0%, 100%, .06);
|
|
119
|
+
--color-gray-alpha-200: hsla(0, 0%, 100%, .09);
|
|
120
|
+
--color-gray-alpha-300: hsla(0, 0%, 100%, .13);
|
|
121
|
+
--color-gray-alpha-400: hsla(0, 0%, 100%, .14);
|
|
122
|
+
--color-gray-alpha-500: hsla(0, 0%, 100%, .24);
|
|
123
|
+
--color-gray-alpha-600: hsla(0, 0%, 100%, .51);
|
|
124
|
+
--color-gray-alpha-700: hsla(0, 0%, 100%, .54);
|
|
125
|
+
--color-gray-alpha-800: hsla(0, 0%, 100%, .47);
|
|
126
|
+
--color-gray-alpha-900: hsla(0, 0%, 100%, .61);
|
|
127
|
+
--color-gray-alpha-1000: hsla(0, 0%, 100%, .92);
|
|
128
|
+
|
|
129
|
+
--color-gray-100-value: 0, 0%, 10%;
|
|
130
|
+
--color-gray-200-value: 0, 0%, 12%;
|
|
131
|
+
--color-gray-300-value: 0, 0%, 16%;
|
|
132
|
+
--color-gray-400-value: 0, 0%, 18%;
|
|
133
|
+
--color-gray-500-value: 0, 0%, 27%;
|
|
134
|
+
--color-gray-600-value: 0, 0%, 53%;
|
|
135
|
+
--color-gray-700-value: 0, 0%, 56%;
|
|
136
|
+
--color-gray-800-value: 0, 0%, 49%;
|
|
137
|
+
--color-gray-900-value: 0, 0%, 63%;
|
|
138
|
+
--color-gray-1000-value: 0, 0%, 93%;
|
|
139
|
+
|
|
140
|
+
--color-blue-100-value: 216, 50%, 12%;
|
|
141
|
+
--color-blue-200-value: 214, 59%, 15%;
|
|
142
|
+
--color-blue-300-value: 213, 71%, 20%;
|
|
143
|
+
--color-blue-400-value: 212, 78%, 23%;
|
|
144
|
+
--color-blue-500-value: 211, 86%, 27%;
|
|
145
|
+
--color-blue-600-value: 206, 100%, 50%;
|
|
146
|
+
--color-blue-700-value: 212, 100%, 48%;
|
|
147
|
+
--color-blue-800-value: 212, 100%, 41%;
|
|
148
|
+
--color-blue-900-value: 210, 100%, 66%;
|
|
149
|
+
--color-blue-1000-value: 206, 100%, 96%;
|
|
150
|
+
|
|
151
|
+
--color-red-100-value: 357, 37%, 12%;
|
|
152
|
+
--color-red-200-value: 357, 46%, 16%;
|
|
153
|
+
--color-red-300-value: 356, 54%, 22%;
|
|
154
|
+
--color-red-400-value: 357, 55%, 26%;
|
|
155
|
+
--color-red-500-value: 357, 60%, 32%;
|
|
156
|
+
--color-red-600-value: 358, 75%, 59%;
|
|
157
|
+
--color-red-700-value: 358, 75%, 59%;
|
|
158
|
+
--color-red-800-value: 358, 69%, 52%;
|
|
159
|
+
--color-red-900-value: 358, 100%, 69%;
|
|
160
|
+
--color-red-1000-value: 353, 90%, 96%;
|
|
161
|
+
|
|
162
|
+
--color-amber-100-value: 35, 100%, 8%;
|
|
163
|
+
--color-amber-200-value: 32, 100%, 10%;
|
|
164
|
+
--color-amber-300-value: 33, 100%, 15%;
|
|
165
|
+
--color-amber-400-value: 35, 100%, 17%;
|
|
166
|
+
--color-amber-500-value: 35, 91%, 22%;
|
|
167
|
+
--color-amber-600-value: 39, 85%, 49%;
|
|
168
|
+
--color-amber-700-value: 39, 100%, 57%;
|
|
169
|
+
--color-amber-800-value: 35, 100%, 52%;
|
|
170
|
+
--color-amber-900-value: 39, 90%, 50%;
|
|
171
|
+
--color-amber-1000-value: 40, 94%, 93%;
|
|
172
|
+
|
|
173
|
+
--color-green-100-value: 136, 50%, 9%;
|
|
174
|
+
--color-green-200-value: 137, 50%, 12%;
|
|
175
|
+
--color-green-300-value: 136, 50%, 14%;
|
|
176
|
+
--color-green-400-value: 135, 70%, 16%;
|
|
177
|
+
--color-green-500-value: 135, 70%, 23%;
|
|
178
|
+
--color-green-600-value: 135, 70%, 34%;
|
|
179
|
+
--color-green-700-value: 131, 41%, 46%;
|
|
180
|
+
--color-green-800-value: 132, 43%, 39%;
|
|
181
|
+
--color-green-900-value: 131, 43%, 57%;
|
|
182
|
+
--color-green-1000-value: 136, 73%, 94%;
|
|
183
|
+
|
|
184
|
+
--color-teal-100-value: 169, 78%, 7%;
|
|
185
|
+
--color-teal-200-value: 170, 74%, 9%;
|
|
186
|
+
--color-teal-300-value: 171, 75%, 13%;
|
|
187
|
+
--color-teal-400-value: 171, 85%, 13%;
|
|
188
|
+
--color-teal-500-value: 172, 85%, 20%;
|
|
189
|
+
--color-teal-600-value: 172, 85%, 32%;
|
|
190
|
+
--color-teal-700-value: 173, 80%, 36%;
|
|
191
|
+
--color-teal-800-value: 173, 83%, 30%;
|
|
192
|
+
--color-teal-900-value: 174, 90%, 41%;
|
|
193
|
+
--color-teal-1000-value: 166, 71%, 93%;
|
|
194
|
+
|
|
195
|
+
--color-purple-100-value: 283, 30%, 12%;
|
|
196
|
+
--color-purple-200-value: 281, 38%, 16%;
|
|
197
|
+
--color-purple-300-value: 279, 44%, 23%;
|
|
198
|
+
--color-purple-400-value: 277, 46%, 28%;
|
|
199
|
+
--color-purple-500-value: 274, 49%, 35%;
|
|
200
|
+
--color-purple-600-value: 272, 51%, 54%;
|
|
201
|
+
--color-purple-700-value: 272, 51%, 54%;
|
|
202
|
+
--color-purple-800-value: 272, 47%, 45%;
|
|
203
|
+
--color-purple-900-value: 275, 80%, 71%;
|
|
204
|
+
--color-purple-1000-value: 281, 73%, 96%;
|
|
205
|
+
|
|
206
|
+
--color-pink-100-value: 335, 32%, 12%;
|
|
207
|
+
--color-pink-200-value: 335, 43%, 16%;
|
|
208
|
+
--color-pink-300-value: 335, 47%, 21%;
|
|
209
|
+
--color-pink-400-value: 335, 51%, 22%;
|
|
210
|
+
--color-pink-500-value: 335, 57%, 27%;
|
|
211
|
+
--color-pink-600-value: 336, 75%, 40%;
|
|
212
|
+
--color-pink-700-value: 336, 80%, 58%;
|
|
213
|
+
--color-pink-800-value: 336, 74%, 51%;
|
|
214
|
+
--color-pink-900-value: 341, 90%, 67%;
|
|
215
|
+
--color-pink-1000-value: 333, 90%, 96%;
|
|
216
|
+
|
|
217
|
+
color-scheme: dark;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.scrollbar-hidden {
|
|
221
|
+
scrollbar-width: none;
|
|
222
|
+
-ms-overflow-style: none;
|
|
223
|
+
-webkit-overflow-scrolling: touch;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.scrollbar-hidden::-webkit-scrollbar {
|
|
227
|
+
display: none;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.rounded-inherit {
|
|
231
|
+
border-radius: inherit;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.peer:focus-visible ~ .peer-focus-ring {
|
|
235
|
+
box-shadow: 0 0 0 2px var(--background-100),0 0 0 4px hsl(var(--ring))
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.self-focus-ring:focus-visible {
|
|
239
|
+
box-shadow: 0 0 0 2px var(--background-100),0 0 0 4px hsl(var(--ring))
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.z-1 {
|
|
243
|
+
z-index: 1;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.size-em {
|
|
247
|
+
width: 1em;
|
|
248
|
+
height: 1em;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.smallest {
|
|
252
|
+
position: absolute;
|
|
253
|
+
width: 1px;
|
|
254
|
+
height: 1px;
|
|
255
|
+
padding: 0;
|
|
256
|
+
margin: -1px;
|
|
257
|
+
overflow: hidden;
|
|
258
|
+
clip: rect(0, 0, 0, 0);
|
|
259
|
+
white-space: nowrap;
|
|
260
|
+
border-width: 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
* {
|
|
264
|
+
border-color: var(--color-border);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
268
|
+
.pxd-transition--fade-enter-active,
|
|
269
|
+
.pxd-transition--fade-leave-active {
|
|
270
|
+
transition: opacity 0.2s ease;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.pxd-transition--fade-enter-from,
|
|
274
|
+
.pxd-transition--fade-leave-to {
|
|
275
|
+
opacity: 0;
|
|
276
|
+
}
|
|
277
|
+
}
|